|
|
@ -796,7 +796,7 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name Signup |
|
|
|
* @name Signup |
|
|
|
* @summary Signup |
|
|
|
* @summary Signup |
|
|
|
* @request POST:/auth/user/signup |
|
|
|
* @request POST:/api/v1/db/auth/user/signup |
|
|
|
* @response `200` `{ token?: string }` OK |
|
|
|
* @response `200` `{ token?: string }` OK |
|
|
|
* @response `400` `void` Bad Request |
|
|
|
* @response `400` `void` Bad Request |
|
|
|
* @response `401` `void` Unauthorized |
|
|
|
* @response `401` `void` Unauthorized |
|
|
@ -807,7 +807,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<{ token?: string }, void>({ |
|
|
|
this.request<{ token?: string }, void>({ |
|
|
|
path: `/auth/user/signup`, |
|
|
|
path: `/api/v1/db/auth/user/signup`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
@ -820,7 +820,7 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name Signin |
|
|
|
* @name Signin |
|
|
|
* @summary Signin |
|
|
|
* @summary Signin |
|
|
|
* @request POST:/auth/user/signin |
|
|
|
* @request POST:/api/v1/db/auth/user/signin |
|
|
|
* @response `200` `{ token?: string }` OK |
|
|
|
* @response `200` `{ token?: string }` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
signin: ( |
|
|
|
signin: ( |
|
|
@ -828,7 +828,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<{ token?: string }, any>({ |
|
|
|
this.request<{ token?: string }, any>({ |
|
|
|
path: `/auth/user/signin`, |
|
|
|
path: `/api/v1/db/auth/user/signin`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
@ -842,12 +842,12 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name Me |
|
|
|
* @name Me |
|
|
|
* @summary User Info |
|
|
|
* @summary User Info |
|
|
|
* @request GET:/auth/user/me |
|
|
|
* @request GET:/api/v1/db/auth/user/me |
|
|
|
* @response `200` `UserType` OK |
|
|
|
* @response `200` `UserType` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
me: (params: RequestParams = {}) => |
|
|
|
me: (params: RequestParams = {}) => |
|
|
|
this.request<UserType, any>({ |
|
|
|
this.request<UserType, any>({ |
|
|
|
path: `/auth/user/me`, |
|
|
|
path: `/api/v1/db/auth/user/me`, |
|
|
|
method: 'GET', |
|
|
|
method: 'GET', |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
@ -859,12 +859,12 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name PasswordForgot |
|
|
|
* @name PasswordForgot |
|
|
|
* @summary Password Forgot |
|
|
|
* @summary Password Forgot |
|
|
|
* @request POST:/auth/password/forgot |
|
|
|
* @request POST:/api/v1/db/auth/password/forgot |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordForgot: (data: { email?: string }, params: RequestParams = {}) => |
|
|
|
passwordForgot: (data: { email?: string }, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/password/forgot`, |
|
|
|
path: `/api/v1/db/auth/password/forgot`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
@ -877,7 +877,7 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name PasswordChange |
|
|
|
* @name PasswordChange |
|
|
|
* @summary Password Change |
|
|
|
* @summary Password Change |
|
|
|
* @request POST:/auth/password/change |
|
|
|
* @request POST:/api/v1/db/auth/password/change |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordChange: ( |
|
|
|
passwordChange: ( |
|
|
@ -889,7 +889,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/password/change`, |
|
|
|
path: `/api/v1/db/auth/password/change`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
@ -902,12 +902,12 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name PasswordResetTokenValidate |
|
|
|
* @name PasswordResetTokenValidate |
|
|
|
* @summary Reset Token Verify |
|
|
|
* @summary Reset Token Verify |
|
|
|
* @request POST:/auth/token/validate/{token} |
|
|
|
* @request POST:/api/v1/db/auth/token/validate/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordResetTokenValidate: (token: string, params: RequestParams = {}) => |
|
|
|
passwordResetTokenValidate: (token: string, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/token/validate/${token}`, |
|
|
|
path: `/api/v1/db/auth/token/validate/${token}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
@ -918,12 +918,12 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name EmailValidate |
|
|
|
* @name EmailValidate |
|
|
|
* @summary Verify Email |
|
|
|
* @summary Verify Email |
|
|
|
* @request POST:/auth/email/validate/{token} |
|
|
|
* @request POST:/api/v1/db/auth/email/validate/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
emailValidate: (token: string, params: RequestParams = {}) => |
|
|
|
emailValidate: (token: string, params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/email/validate/${token}`, |
|
|
|
path: `/api/v1/db/auth/email/validate/${token}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
@ -934,7 +934,7 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name PasswordReset |
|
|
|
* @name PasswordReset |
|
|
|
* @summary Password Reset |
|
|
|
* @summary Password Reset |
|
|
|
* @request POST:/auth/password/reset/{token} |
|
|
|
* @request POST:/api/v1/db/auth/password/reset/{token} |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
passwordReset: ( |
|
|
|
passwordReset: ( |
|
|
@ -943,7 +943,7 @@ export class Api< |
|
|
|
params: RequestParams = {} |
|
|
|
params: RequestParams = {} |
|
|
|
) => |
|
|
|
) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/password/reset/${token}`, |
|
|
|
path: `/api/v1/db/auth/password/reset/${token}`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
body: data, |
|
|
|
body: data, |
|
|
|
type: ContentType.Json, |
|
|
|
type: ContentType.Json, |
|
|
@ -956,12 +956,12 @@ export class Api< |
|
|
|
* @tags Auth |
|
|
|
* @tags Auth |
|
|
|
* @name TokenRefresh |
|
|
|
* @name TokenRefresh |
|
|
|
* @summary Refresh Token |
|
|
|
* @summary Refresh Token |
|
|
|
* @request POST:/auth/token/refresh |
|
|
|
* @request POST:/api/v1/db/auth/token/refresh |
|
|
|
* @response `200` `void` OK |
|
|
|
* @response `200` `void` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
tokenRefresh: (params: RequestParams = {}) => |
|
|
|
tokenRefresh: (params: RequestParams = {}) => |
|
|
|
this.request<void, any>({ |
|
|
|
this.request<void, any>({ |
|
|
|
path: `/auth/token/refresh`, |
|
|
|
path: `/api/v1/db/auth/token/refresh`, |
|
|
|
method: 'POST', |
|
|
|
method: 'POST', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
@ -2290,13 +2290,11 @@ export class Api< |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB Table Row |
|
|
|
* @tags DB Table Row |
|
|
|
* @name BulkCreate2 |
|
|
|
* @name BulkUpdate |
|
|
|
* @request PATCH:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName} |
|
|
|
* @request PATCH:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName} |
|
|
|
* @originalName bulkCreate |
|
|
|
|
|
|
|
* @duplicate |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
bulkCreate2: ( |
|
|
|
bulkUpdate: ( |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
@ -2316,13 +2314,11 @@ export class Api< |
|
|
|
* No description |
|
|
|
* No description |
|
|
|
* |
|
|
|
* |
|
|
|
* @tags DB Table Row |
|
|
|
* @tags DB Table Row |
|
|
|
* @name BulkCreate3 |
|
|
|
* @name BulkDelete |
|
|
|
* @request DELETE:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName} |
|
|
|
* @request DELETE:/api/v1/db/data/bulk/{orgs}/{projectName}/{tableName} |
|
|
|
* @originalName bulkCreate |
|
|
|
|
|
|
|
* @duplicate |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
* @response `200` `any` OK |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
bulkCreate3: ( |
|
|
|
bulkDelete: ( |
|
|
|
orgs: string, |
|
|
|
orgs: string, |
|
|
|
projectName: string, |
|
|
|
projectName: string, |
|
|
|
tableName: string, |
|
|
|
tableName: string, |
|
|
@ -2515,125 +2511,6 @@ export class Api< |
|
|
|
format: 'json', |
|
|
|
format: 'json', |
|
|
|
...params, |
|
|
|
...params, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table Row |
|
|
|
|
|
|
|
* @name BulkDelete |
|
|
|
|
|
|
|
* @request DELETE:/bulkData/{orgs}/{projectName}/{tableName}/ |
|
|
|
|
|
|
|
* @response `200` `void` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bulkDelete: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
data: any[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<void, any>({ |
|
|
|
|
|
|
|
path: `/bulkData/${orgs}/${projectName}/${tableName}/`, |
|
|
|
|
|
|
|
method: 'DELETE', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table Row |
|
|
|
|
|
|
|
* @name BulkInsert |
|
|
|
|
|
|
|
* @request POST:/bulkData/{orgs}/{projectName}/{tableName}/ |
|
|
|
|
|
|
|
* @response `200` `void` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bulkInsert: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
data: any[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<void, any>({ |
|
|
|
|
|
|
|
path: `/bulkData/${orgs}/${projectName}/${tableName}/`, |
|
|
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table Row |
|
|
|
|
|
|
|
* @name BulkUpdate |
|
|
|
|
|
|
|
* @request PATCH:/bulkData/{orgs}/{projectName}/{tableName}/ |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bulkUpdate: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
data: object[], |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/bulkData/${orgs}/${projectName}/${tableName}/`, |
|
|
|
|
|
|
|
method: 'PATCH', |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table Row |
|
|
|
|
|
|
|
* @name BulkUpdateAll |
|
|
|
|
|
|
|
* @request PATCH:/bulkData/{orgs}/{projectName}/{tableName}/all |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bulkUpdateAll: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
data: object, |
|
|
|
|
|
|
|
query?: { where?: string }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/bulkData/${orgs}/${projectName}/${tableName}/all`, |
|
|
|
|
|
|
|
method: 'PATCH', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
body: data, |
|
|
|
|
|
|
|
type: ContentType.Json, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* No description |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @tags DB Table Row |
|
|
|
|
|
|
|
* @name BulkDeleteAll |
|
|
|
|
|
|
|
* @request DELETE:/bulkData/{orgs}/{projectName}/{tableName}/all |
|
|
|
|
|
|
|
* @response `200` `any` OK |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bulkDeleteAll: ( |
|
|
|
|
|
|
|
orgs: string, |
|
|
|
|
|
|
|
projectName: string, |
|
|
|
|
|
|
|
tableName: string, |
|
|
|
|
|
|
|
query?: { where?: string }, |
|
|
|
|
|
|
|
params: RequestParams = {} |
|
|
|
|
|
|
|
) => |
|
|
|
|
|
|
|
this.request<any, any>({ |
|
|
|
|
|
|
|
path: `/bulkData/${orgs}/${projectName}/${tableName}/all`, |
|
|
|
|
|
|
|
method: 'DELETE', |
|
|
|
|
|
|
|
query: query, |
|
|
|
|
|
|
|
format: 'json', |
|
|
|
|
|
|
|
...params, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
dbViewRow = { |
|
|
|
dbViewRow = { |
|
|
|
/** |
|
|
|
/** |
|
|
|