|
|
@ -9,31 +9,61 @@ |
|
|
|
* --------------------------------------------------------------- |
|
|
|
* --------------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* User Model |
|
|
|
|
|
|
|
*/ |
|
|
|
export interface UserType { |
|
|
|
export interface UserType { |
|
|
|
/** Unique identifier for the given user. */ |
|
|
|
/** |
|
|
|
|
|
|
|
* Unique identifier for the given user. |
|
|
|
|
|
|
|
* @example us_8kugj628ebjngs |
|
|
|
|
|
|
|
*/ |
|
|
|
id: string; |
|
|
|
id: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The first name of the user |
|
|
|
|
|
|
|
* @example Alice |
|
|
|
|
|
|
|
*/ |
|
|
|
firstname: string; |
|
|
|
firstname: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The last name of the user |
|
|
|
|
|
|
|
* @example Smith |
|
|
|
|
|
|
|
*/ |
|
|
|
lastname: string; |
|
|
|
lastname: string; |
|
|
|
/** @format email */ |
|
|
|
/** |
|
|
|
|
|
|
|
* The email of the user |
|
|
|
|
|
|
|
* @format email |
|
|
|
|
|
|
|
* @example alice.smith@nocodb.com |
|
|
|
|
|
|
|
*/ |
|
|
|
email: string; |
|
|
|
email: string; |
|
|
|
roles?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @format date |
|
|
|
* The roles of the user |
|
|
|
* @example 1997-10-31 |
|
|
|
* @example org-level-viewer |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
date_of_birth?: string; |
|
|
|
roles?: string; |
|
|
|
/** Set to true if the user's email has been verified. */ |
|
|
|
/** Set to true if the user's email has been verified. */ |
|
|
|
email_verified: boolean; |
|
|
|
email_verified: boolean; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* The date that the user was created. |
|
|
|
* The date that the user was created. |
|
|
|
* @format date |
|
|
|
* @format date-time |
|
|
|
|
|
|
|
* @example 2023-03-01 11:36:49 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
createDate?: string; |
|
|
|
created_at?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The date that the user was created. |
|
|
|
|
|
|
|
* @format date-time |
|
|
|
|
|
|
|
* @example 2023-03-01 11:36:49 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
updated_at?: string; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* List of User Models |
|
|
|
|
|
|
|
*/ |
|
|
|
export interface UserListType { |
|
|
|
export interface UserListType { |
|
|
|
|
|
|
|
/** users includes `list` and `pageInfo` */ |
|
|
|
users: { |
|
|
|
users: { |
|
|
|
|
|
|
|
/** List of User objects */ |
|
|
|
list: UserType; |
|
|
|
list: UserType; |
|
|
|
|
|
|
|
/** Pagination info */ |
|
|
|
pageInfo: PaginatedType; |
|
|
|
pageInfo: PaginatedType; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -939,12 +969,24 @@ export type ColumnReqType = ( |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* User Info Model |
|
|
|
|
|
|
|
*/ |
|
|
|
export interface UserInfoType { |
|
|
|
export interface UserInfoType { |
|
|
|
|
|
|
|
/** User ID */ |
|
|
|
id?: string; |
|
|
|
id?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* User Email |
|
|
|
|
|
|
|
* @format email |
|
|
|
|
|
|
|
*/ |
|
|
|
email?: string; |
|
|
|
email?: string; |
|
|
|
email_verified?: string; |
|
|
|
/** Set to true if the user's email has been verified. */ |
|
|
|
|
|
|
|
email_verified?: boolean; |
|
|
|
|
|
|
|
/** The firstname of the user */ |
|
|
|
firstname?: string; |
|
|
|
firstname?: string; |
|
|
|
|
|
|
|
/** The lastname of the user */ |
|
|
|
lastname?: string; |
|
|
|
lastname?: string; |
|
|
|
|
|
|
|
/** The roles of the user */ |
|
|
|
roles?: any; |
|
|
|
roles?: any; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1201,6 +1243,7 @@ export class Api< |
|
|
|
* @summary Signup |
|
|
|
* @summary Signup |
|
|
|
* @request POST:/api/v1/auth/user/signup |
|
|
|
* @request POST:/api/v1/auth/user/signup |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** The signed JWT token for information exchange *\ |
|
|
|
token?: string, |
|
|
|
token?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -1212,6 +1255,7 @@ export class Api< |
|
|
|
signup: (data: SignUpReqType, params: RequestParams = {}) => |
|
|
|
signup: (data: SignUpReqType, params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
/** The signed JWT token for information exchange */ |
|
|
|
token?: string; |
|
|
|
token?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1234,6 +1278,7 @@ export class Api< |
|
|
|
* @summary Signout |
|
|
|
* @summary Signout |
|
|
|
* @request POST:/api/v1/auth/user/signout |
|
|
|
* @request POST:/api/v1/auth/user/signout |
|
|
|
* @response `200` `{
|
|
|
|
* @response `200` `{
|
|
|
|
|
|
|
|
\** Success Message *\ |
|
|
|
msg?: string, |
|
|
|
msg?: string, |
|
|
|
|
|
|
|
|
|
|
|
}` OK
|
|
|
|
}` OK
|
|
|
@ -1241,6 +1286,7 @@ export class Api< |
|
|
|
signout: (params: RequestParams = {}) => |
|
|
|
signout: (params: RequestParams = {}) => |
|
|
|
this.request< |
|
|
|
this.request< |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
/** Success Message */ |
|
|
|
msg?: string; |
|
|
|
msg?: string; |
|
|
|
}, |
|
|
|
}, |
|
|
|
any |
|
|
|
any |
|
|
|