ch-admin-api-client-typescript 2.1.8 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +361 -2
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +500 -1
- package/package.json +1 -1
- package/src/api.ts +583 -2
package/src/api.ts
CHANGED
|
@@ -1695,6 +1695,86 @@ export enum ChargeStatus {
|
|
|
1695
1695
|
Failed = 'Failed'
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @export
|
|
1701
|
+
* @interface ChatUserModel
|
|
1702
|
+
*/
|
|
1703
|
+
export interface ChatUserModel {
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @type {string}
|
|
1707
|
+
* @memberof ChatUserModel
|
|
1708
|
+
*/
|
|
1709
|
+
'id'?: string | null;
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @type {string}
|
|
1713
|
+
* @memberof ChatUserModel
|
|
1714
|
+
*/
|
|
1715
|
+
'nickname'?: string | null;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
* @memberof ChatUserModel
|
|
1720
|
+
*/
|
|
1721
|
+
'profileUrl'?: string | null;
|
|
1722
|
+
/**
|
|
1723
|
+
*
|
|
1724
|
+
* @type {string}
|
|
1725
|
+
* @memberof ChatUserModel
|
|
1726
|
+
*/
|
|
1727
|
+
'accessToken'?: string | null;
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @type {number}
|
|
1731
|
+
* @memberof ChatUserModel
|
|
1732
|
+
*/
|
|
1733
|
+
'isActive'?: number;
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* @type {number}
|
|
1737
|
+
* @memberof ChatUserModel
|
|
1738
|
+
*/
|
|
1739
|
+
'isOnline'?: number;
|
|
1740
|
+
/**
|
|
1741
|
+
*
|
|
1742
|
+
* @type {Array<string>}
|
|
1743
|
+
* @memberof ChatUserModel
|
|
1744
|
+
*/
|
|
1745
|
+
'discoveryKeys'?: Array<string> | null;
|
|
1746
|
+
/**
|
|
1747
|
+
*
|
|
1748
|
+
* @type {Date}
|
|
1749
|
+
* @memberof ChatUserModel
|
|
1750
|
+
*/
|
|
1751
|
+
'createdAt'?: Date | null;
|
|
1752
|
+
/**
|
|
1753
|
+
*
|
|
1754
|
+
* @type {Date}
|
|
1755
|
+
* @memberof ChatUserModel
|
|
1756
|
+
*/
|
|
1757
|
+
'lastSeenAt'?: Date | null;
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @export
|
|
1762
|
+
* @interface ChatUsersModel
|
|
1763
|
+
*/
|
|
1764
|
+
export interface ChatUsersModel {
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @type {Array<ChatUserModel>}
|
|
1768
|
+
* @memberof ChatUsersModel
|
|
1769
|
+
*/
|
|
1770
|
+
'users'?: Array<ChatUserModel> | null;
|
|
1771
|
+
/**
|
|
1772
|
+
*
|
|
1773
|
+
* @type {string}
|
|
1774
|
+
* @memberof ChatUsersModel
|
|
1775
|
+
*/
|
|
1776
|
+
'next'?: string | null;
|
|
1777
|
+
}
|
|
1698
1778
|
/**
|
|
1699
1779
|
*
|
|
1700
1780
|
* @export
|
|
@@ -3242,6 +3322,43 @@ export interface CreateArticleSourceCommand {
|
|
|
3242
3322
|
*/
|
|
3243
3323
|
'order'?: number;
|
|
3244
3324
|
}
|
|
3325
|
+
/**
|
|
3326
|
+
*
|
|
3327
|
+
* @export
|
|
3328
|
+
* @interface CreateChatUserCommand
|
|
3329
|
+
*/
|
|
3330
|
+
export interface CreateChatUserCommand {
|
|
3331
|
+
/**
|
|
3332
|
+
*
|
|
3333
|
+
* @type {string}
|
|
3334
|
+
* @memberof CreateChatUserCommand
|
|
3335
|
+
*/
|
|
3336
|
+
'userId'?: string;
|
|
3337
|
+
/**
|
|
3338
|
+
*
|
|
3339
|
+
* @type {string}
|
|
3340
|
+
* @memberof CreateChatUserCommand
|
|
3341
|
+
*/
|
|
3342
|
+
'nickname'?: string | null;
|
|
3343
|
+
/**
|
|
3344
|
+
*
|
|
3345
|
+
* @type {string}
|
|
3346
|
+
* @memberof CreateChatUserCommand
|
|
3347
|
+
*/
|
|
3348
|
+
'profileUrl'?: string | null;
|
|
3349
|
+
/**
|
|
3350
|
+
*
|
|
3351
|
+
* @type {boolean}
|
|
3352
|
+
* @memberof CreateChatUserCommand
|
|
3353
|
+
*/
|
|
3354
|
+
'issueAccessToken'?: boolean;
|
|
3355
|
+
/**
|
|
3356
|
+
*
|
|
3357
|
+
* @type {Array<string>}
|
|
3358
|
+
* @memberof CreateChatUserCommand
|
|
3359
|
+
*/
|
|
3360
|
+
'discoveryKeys'?: Array<string> | null;
|
|
3361
|
+
}
|
|
3245
3362
|
/**
|
|
3246
3363
|
*
|
|
3247
3364
|
* @export
|
|
@@ -7812,7 +7929,7 @@ export interface HospitalServiceItemModel {
|
|
|
7812
7929
|
* @type {string}
|
|
7813
7930
|
* @memberof HospitalServiceItemModel
|
|
7814
7931
|
*/
|
|
7815
|
-
'serviceCategoryId'?: string;
|
|
7932
|
+
'serviceCategoryId'?: string | null;
|
|
7816
7933
|
/**
|
|
7817
7934
|
*
|
|
7818
7935
|
* @type {string}
|
|
@@ -7945,7 +8062,7 @@ export interface HospitalServiceModel {
|
|
|
7945
8062
|
* @type {string}
|
|
7946
8063
|
* @memberof HospitalServiceModel
|
|
7947
8064
|
*/
|
|
7948
|
-
'serviceCategoryId'?: string;
|
|
8065
|
+
'serviceCategoryId'?: string | null;
|
|
7949
8066
|
/**
|
|
7950
8067
|
*
|
|
7951
8068
|
* @type {string}
|
|
@@ -11010,6 +11127,37 @@ export interface UpdateArticleSourceCommand {
|
|
|
11010
11127
|
*/
|
|
11011
11128
|
'order'?: number;
|
|
11012
11129
|
}
|
|
11130
|
+
/**
|
|
11131
|
+
*
|
|
11132
|
+
* @export
|
|
11133
|
+
* @interface UpdateChatUserCommand
|
|
11134
|
+
*/
|
|
11135
|
+
export interface UpdateChatUserCommand {
|
|
11136
|
+
/**
|
|
11137
|
+
*
|
|
11138
|
+
* @type {string}
|
|
11139
|
+
* @memberof UpdateChatUserCommand
|
|
11140
|
+
*/
|
|
11141
|
+
'nickname'?: string | null;
|
|
11142
|
+
/**
|
|
11143
|
+
*
|
|
11144
|
+
* @type {string}
|
|
11145
|
+
* @memberof UpdateChatUserCommand
|
|
11146
|
+
*/
|
|
11147
|
+
'profileUrl'?: string | null;
|
|
11148
|
+
/**
|
|
11149
|
+
*
|
|
11150
|
+
* @type {boolean}
|
|
11151
|
+
* @memberof UpdateChatUserCommand
|
|
11152
|
+
*/
|
|
11153
|
+
'issueAccessToken'?: boolean;
|
|
11154
|
+
/**
|
|
11155
|
+
*
|
|
11156
|
+
* @type {Array<string>}
|
|
11157
|
+
* @memberof UpdateChatUserCommand
|
|
11158
|
+
*/
|
|
11159
|
+
'discoveryKeys'?: Array<string> | null;
|
|
11160
|
+
}
|
|
11013
11161
|
/**
|
|
11014
11162
|
*
|
|
11015
11163
|
* @export
|
|
@@ -15739,6 +15887,439 @@ export class BookingsApi extends BaseAPI {
|
|
|
15739
15887
|
}
|
|
15740
15888
|
|
|
15741
15889
|
|
|
15890
|
+
/**
|
|
15891
|
+
* ChatUsersApi - axios parameter creator
|
|
15892
|
+
* @export
|
|
15893
|
+
*/
|
|
15894
|
+
export const ChatUsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15895
|
+
return {
|
|
15896
|
+
/**
|
|
15897
|
+
*
|
|
15898
|
+
* @summary Get all chatUsers.
|
|
15899
|
+
* @param {number} [limit]
|
|
15900
|
+
* @param {string} [token]
|
|
15901
|
+
* @param {string} [userIds]
|
|
15902
|
+
* @param {string} [nickname]
|
|
15903
|
+
* @param {string} [nicknameStartswith]
|
|
15904
|
+
* @param {*} [options] Override http request option.
|
|
15905
|
+
* @throws {RequiredError}
|
|
15906
|
+
*/
|
|
15907
|
+
apiV1ChatusersGet: async (limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15908
|
+
const localVarPath = `/api/v1/chatusers`;
|
|
15909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15910
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15911
|
+
let baseOptions;
|
|
15912
|
+
if (configuration) {
|
|
15913
|
+
baseOptions = configuration.baseOptions;
|
|
15914
|
+
}
|
|
15915
|
+
|
|
15916
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15917
|
+
const localVarHeaderParameter = {} as any;
|
|
15918
|
+
const localVarQueryParameter = {} as any;
|
|
15919
|
+
|
|
15920
|
+
// authentication oauth2 required
|
|
15921
|
+
// oauth required
|
|
15922
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
15923
|
+
|
|
15924
|
+
if (limit !== undefined) {
|
|
15925
|
+
localVarQueryParameter['Limit'] = limit;
|
|
15926
|
+
}
|
|
15927
|
+
|
|
15928
|
+
if (token !== undefined) {
|
|
15929
|
+
localVarQueryParameter['Token'] = token;
|
|
15930
|
+
}
|
|
15931
|
+
|
|
15932
|
+
if (userIds !== undefined) {
|
|
15933
|
+
localVarQueryParameter['UserIds'] = userIds;
|
|
15934
|
+
}
|
|
15935
|
+
|
|
15936
|
+
if (nickname !== undefined) {
|
|
15937
|
+
localVarQueryParameter['Nickname'] = nickname;
|
|
15938
|
+
}
|
|
15939
|
+
|
|
15940
|
+
if (nicknameStartswith !== undefined) {
|
|
15941
|
+
localVarQueryParameter['NicknameStartswith'] = nicknameStartswith;
|
|
15942
|
+
}
|
|
15943
|
+
|
|
15944
|
+
|
|
15945
|
+
|
|
15946
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15947
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15948
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15949
|
+
|
|
15950
|
+
return {
|
|
15951
|
+
url: toPathString(localVarUrlObj),
|
|
15952
|
+
options: localVarRequestOptions,
|
|
15953
|
+
};
|
|
15954
|
+
},
|
|
15955
|
+
/**
|
|
15956
|
+
*
|
|
15957
|
+
* @summary Create a chatUser.
|
|
15958
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
15959
|
+
* @param {*} [options] Override http request option.
|
|
15960
|
+
* @throws {RequiredError}
|
|
15961
|
+
*/
|
|
15962
|
+
apiV1ChatusersPost: async (createChatUserCommand?: CreateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15963
|
+
const localVarPath = `/api/v1/chatusers`;
|
|
15964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15965
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15966
|
+
let baseOptions;
|
|
15967
|
+
if (configuration) {
|
|
15968
|
+
baseOptions = configuration.baseOptions;
|
|
15969
|
+
}
|
|
15970
|
+
|
|
15971
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15972
|
+
const localVarHeaderParameter = {} as any;
|
|
15973
|
+
const localVarQueryParameter = {} as any;
|
|
15974
|
+
|
|
15975
|
+
// authentication oauth2 required
|
|
15976
|
+
// oauth required
|
|
15977
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
15978
|
+
|
|
15979
|
+
|
|
15980
|
+
|
|
15981
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15982
|
+
|
|
15983
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15984
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15985
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15986
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createChatUserCommand, localVarRequestOptions, configuration)
|
|
15987
|
+
|
|
15988
|
+
return {
|
|
15989
|
+
url: toPathString(localVarUrlObj),
|
|
15990
|
+
options: localVarRequestOptions,
|
|
15991
|
+
};
|
|
15992
|
+
},
|
|
15993
|
+
/**
|
|
15994
|
+
*
|
|
15995
|
+
* @summary Delete chatUser.
|
|
15996
|
+
* @param {string} userId
|
|
15997
|
+
* @param {*} [options] Override http request option.
|
|
15998
|
+
* @throws {RequiredError}
|
|
15999
|
+
*/
|
|
16000
|
+
apiV1ChatusersUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16001
|
+
// verify required parameter 'userId' is not null or undefined
|
|
16002
|
+
assertParamExists('apiV1ChatusersUserIdDelete', 'userId', userId)
|
|
16003
|
+
const localVarPath = `/api/v1/chatusers/{userId}`
|
|
16004
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
16005
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16006
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16007
|
+
let baseOptions;
|
|
16008
|
+
if (configuration) {
|
|
16009
|
+
baseOptions = configuration.baseOptions;
|
|
16010
|
+
}
|
|
16011
|
+
|
|
16012
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
16013
|
+
const localVarHeaderParameter = {} as any;
|
|
16014
|
+
const localVarQueryParameter = {} as any;
|
|
16015
|
+
|
|
16016
|
+
// authentication oauth2 required
|
|
16017
|
+
// oauth required
|
|
16018
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
16019
|
+
|
|
16020
|
+
|
|
16021
|
+
|
|
16022
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16024
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16025
|
+
|
|
16026
|
+
return {
|
|
16027
|
+
url: toPathString(localVarUrlObj),
|
|
16028
|
+
options: localVarRequestOptions,
|
|
16029
|
+
};
|
|
16030
|
+
},
|
|
16031
|
+
/**
|
|
16032
|
+
*
|
|
16033
|
+
* @summary Get chatUser.
|
|
16034
|
+
* @param {string} userId
|
|
16035
|
+
* @param {*} [options] Override http request option.
|
|
16036
|
+
* @throws {RequiredError}
|
|
16037
|
+
*/
|
|
16038
|
+
apiV1ChatusersUserIdGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16039
|
+
// verify required parameter 'userId' is not null or undefined
|
|
16040
|
+
assertParamExists('apiV1ChatusersUserIdGet', 'userId', userId)
|
|
16041
|
+
const localVarPath = `/api/v1/chatusers/{userId}`
|
|
16042
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
16043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16044
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16045
|
+
let baseOptions;
|
|
16046
|
+
if (configuration) {
|
|
16047
|
+
baseOptions = configuration.baseOptions;
|
|
16048
|
+
}
|
|
16049
|
+
|
|
16050
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16051
|
+
const localVarHeaderParameter = {} as any;
|
|
16052
|
+
const localVarQueryParameter = {} as any;
|
|
16053
|
+
|
|
16054
|
+
// authentication oauth2 required
|
|
16055
|
+
// oauth required
|
|
16056
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
16057
|
+
|
|
16058
|
+
|
|
16059
|
+
|
|
16060
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16061
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16062
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16063
|
+
|
|
16064
|
+
return {
|
|
16065
|
+
url: toPathString(localVarUrlObj),
|
|
16066
|
+
options: localVarRequestOptions,
|
|
16067
|
+
};
|
|
16068
|
+
},
|
|
16069
|
+
/**
|
|
16070
|
+
*
|
|
16071
|
+
* @summary Update chatUser.
|
|
16072
|
+
* @param {string} userId
|
|
16073
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
16074
|
+
* @param {*} [options] Override http request option.
|
|
16075
|
+
* @throws {RequiredError}
|
|
16076
|
+
*/
|
|
16077
|
+
apiV1ChatusersUserIdPut: async (userId: string, updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16078
|
+
// verify required parameter 'userId' is not null or undefined
|
|
16079
|
+
assertParamExists('apiV1ChatusersUserIdPut', 'userId', userId)
|
|
16080
|
+
const localVarPath = `/api/v1/chatusers/{userId}`
|
|
16081
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
16082
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16083
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16084
|
+
let baseOptions;
|
|
16085
|
+
if (configuration) {
|
|
16086
|
+
baseOptions = configuration.baseOptions;
|
|
16087
|
+
}
|
|
16088
|
+
|
|
16089
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16090
|
+
const localVarHeaderParameter = {} as any;
|
|
16091
|
+
const localVarQueryParameter = {} as any;
|
|
16092
|
+
|
|
16093
|
+
// authentication oauth2 required
|
|
16094
|
+
// oauth required
|
|
16095
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
16096
|
+
|
|
16097
|
+
|
|
16098
|
+
|
|
16099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16100
|
+
|
|
16101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16103
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16104
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
|
|
16105
|
+
|
|
16106
|
+
return {
|
|
16107
|
+
url: toPathString(localVarUrlObj),
|
|
16108
|
+
options: localVarRequestOptions,
|
|
16109
|
+
};
|
|
16110
|
+
},
|
|
16111
|
+
}
|
|
16112
|
+
};
|
|
16113
|
+
|
|
16114
|
+
/**
|
|
16115
|
+
* ChatUsersApi - functional programming interface
|
|
16116
|
+
* @export
|
|
16117
|
+
*/
|
|
16118
|
+
export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
16119
|
+
const localVarAxiosParamCreator = ChatUsersApiAxiosParamCreator(configuration)
|
|
16120
|
+
return {
|
|
16121
|
+
/**
|
|
16122
|
+
*
|
|
16123
|
+
* @summary Get all chatUsers.
|
|
16124
|
+
* @param {number} [limit]
|
|
16125
|
+
* @param {string} [token]
|
|
16126
|
+
* @param {string} [userIds]
|
|
16127
|
+
* @param {string} [nickname]
|
|
16128
|
+
* @param {string} [nicknameStartswith]
|
|
16129
|
+
* @param {*} [options] Override http request option.
|
|
16130
|
+
* @throws {RequiredError}
|
|
16131
|
+
*/
|
|
16132
|
+
async apiV1ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUsersModel>> {
|
|
16133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options);
|
|
16134
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16135
|
+
},
|
|
16136
|
+
/**
|
|
16137
|
+
*
|
|
16138
|
+
* @summary Create a chatUser.
|
|
16139
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
16140
|
+
* @param {*} [options] Override http request option.
|
|
16141
|
+
* @throws {RequiredError}
|
|
16142
|
+
*/
|
|
16143
|
+
async apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
16144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersPost(createChatUserCommand, options);
|
|
16145
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16146
|
+
},
|
|
16147
|
+
/**
|
|
16148
|
+
*
|
|
16149
|
+
* @summary Delete chatUser.
|
|
16150
|
+
* @param {string} userId
|
|
16151
|
+
* @param {*} [options] Override http request option.
|
|
16152
|
+
* @throws {RequiredError}
|
|
16153
|
+
*/
|
|
16154
|
+
async apiV1ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
16155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersUserIdDelete(userId, options);
|
|
16156
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16157
|
+
},
|
|
16158
|
+
/**
|
|
16159
|
+
*
|
|
16160
|
+
* @summary Get chatUser.
|
|
16161
|
+
* @param {string} userId
|
|
16162
|
+
* @param {*} [options] Override http request option.
|
|
16163
|
+
* @throws {RequiredError}
|
|
16164
|
+
*/
|
|
16165
|
+
async apiV1ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
16166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersUserIdGet(userId, options);
|
|
16167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16168
|
+
},
|
|
16169
|
+
/**
|
|
16170
|
+
*
|
|
16171
|
+
* @summary Update chatUser.
|
|
16172
|
+
* @param {string} userId
|
|
16173
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
16174
|
+
* @param {*} [options] Override http request option.
|
|
16175
|
+
* @throws {RequiredError}
|
|
16176
|
+
*/
|
|
16177
|
+
async apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
16178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options);
|
|
16179
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16180
|
+
},
|
|
16181
|
+
}
|
|
16182
|
+
};
|
|
16183
|
+
|
|
16184
|
+
/**
|
|
16185
|
+
* ChatUsersApi - factory interface
|
|
16186
|
+
* @export
|
|
16187
|
+
*/
|
|
16188
|
+
export const ChatUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16189
|
+
const localVarFp = ChatUsersApiFp(configuration)
|
|
16190
|
+
return {
|
|
16191
|
+
/**
|
|
16192
|
+
*
|
|
16193
|
+
* @summary Get all chatUsers.
|
|
16194
|
+
* @param {number} [limit]
|
|
16195
|
+
* @param {string} [token]
|
|
16196
|
+
* @param {string} [userIds]
|
|
16197
|
+
* @param {string} [nickname]
|
|
16198
|
+
* @param {string} [nicknameStartswith]
|
|
16199
|
+
* @param {*} [options] Override http request option.
|
|
16200
|
+
* @throws {RequiredError}
|
|
16201
|
+
*/
|
|
16202
|
+
apiV1ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: any): AxiosPromise<ChatUsersModel> {
|
|
16203
|
+
return localVarFp.apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then((request) => request(axios, basePath));
|
|
16204
|
+
},
|
|
16205
|
+
/**
|
|
16206
|
+
*
|
|
16207
|
+
* @summary Create a chatUser.
|
|
16208
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
16209
|
+
* @param {*} [options] Override http request option.
|
|
16210
|
+
* @throws {RequiredError}
|
|
16211
|
+
*/
|
|
16212
|
+
apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
16213
|
+
return localVarFp.apiV1ChatusersPost(createChatUserCommand, options).then((request) => request(axios, basePath));
|
|
16214
|
+
},
|
|
16215
|
+
/**
|
|
16216
|
+
*
|
|
16217
|
+
* @summary Delete chatUser.
|
|
16218
|
+
* @param {string} userId
|
|
16219
|
+
* @param {*} [options] Override http request option.
|
|
16220
|
+
* @throws {RequiredError}
|
|
16221
|
+
*/
|
|
16222
|
+
apiV1ChatusersUserIdDelete(userId: string, options?: any): AxiosPromise<boolean> {
|
|
16223
|
+
return localVarFp.apiV1ChatusersUserIdDelete(userId, options).then((request) => request(axios, basePath));
|
|
16224
|
+
},
|
|
16225
|
+
/**
|
|
16226
|
+
*
|
|
16227
|
+
* @summary Get chatUser.
|
|
16228
|
+
* @param {string} userId
|
|
16229
|
+
* @param {*} [options] Override http request option.
|
|
16230
|
+
* @throws {RequiredError}
|
|
16231
|
+
*/
|
|
16232
|
+
apiV1ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel> {
|
|
16233
|
+
return localVarFp.apiV1ChatusersUserIdGet(userId, options).then((request) => request(axios, basePath));
|
|
16234
|
+
},
|
|
16235
|
+
/**
|
|
16236
|
+
*
|
|
16237
|
+
* @summary Update chatUser.
|
|
16238
|
+
* @param {string} userId
|
|
16239
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
16240
|
+
* @param {*} [options] Override http request option.
|
|
16241
|
+
* @throws {RequiredError}
|
|
16242
|
+
*/
|
|
16243
|
+
apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
16244
|
+
return localVarFp.apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
16245
|
+
},
|
|
16246
|
+
};
|
|
16247
|
+
};
|
|
16248
|
+
|
|
16249
|
+
/**
|
|
16250
|
+
* ChatUsersApi - object-oriented interface
|
|
16251
|
+
* @export
|
|
16252
|
+
* @class ChatUsersApi
|
|
16253
|
+
* @extends {BaseAPI}
|
|
16254
|
+
*/
|
|
16255
|
+
export class ChatUsersApi extends BaseAPI {
|
|
16256
|
+
/**
|
|
16257
|
+
*
|
|
16258
|
+
* @summary Get all chatUsers.
|
|
16259
|
+
* @param {number} [limit]
|
|
16260
|
+
* @param {string} [token]
|
|
16261
|
+
* @param {string} [userIds]
|
|
16262
|
+
* @param {string} [nickname]
|
|
16263
|
+
* @param {string} [nicknameStartswith]
|
|
16264
|
+
* @param {*} [options] Override http request option.
|
|
16265
|
+
* @throws {RequiredError}
|
|
16266
|
+
* @memberof ChatUsersApi
|
|
16267
|
+
*/
|
|
16268
|
+
public apiV1ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: AxiosRequestConfig) {
|
|
16269
|
+
return ChatUsersApiFp(this.configuration).apiV1ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then((request) => request(this.axios, this.basePath));
|
|
16270
|
+
}
|
|
16271
|
+
|
|
16272
|
+
/**
|
|
16273
|
+
*
|
|
16274
|
+
* @summary Create a chatUser.
|
|
16275
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
16276
|
+
* @param {*} [options] Override http request option.
|
|
16277
|
+
* @throws {RequiredError}
|
|
16278
|
+
* @memberof ChatUsersApi
|
|
16279
|
+
*/
|
|
16280
|
+
public apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: AxiosRequestConfig) {
|
|
16281
|
+
return ChatUsersApiFp(this.configuration).apiV1ChatusersPost(createChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
16282
|
+
}
|
|
16283
|
+
|
|
16284
|
+
/**
|
|
16285
|
+
*
|
|
16286
|
+
* @summary Delete chatUser.
|
|
16287
|
+
* @param {string} userId
|
|
16288
|
+
* @param {*} [options] Override http request option.
|
|
16289
|
+
* @throws {RequiredError}
|
|
16290
|
+
* @memberof ChatUsersApi
|
|
16291
|
+
*/
|
|
16292
|
+
public apiV1ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig) {
|
|
16293
|
+
return ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
|
|
16294
|
+
}
|
|
16295
|
+
|
|
16296
|
+
/**
|
|
16297
|
+
*
|
|
16298
|
+
* @summary Get chatUser.
|
|
16299
|
+
* @param {string} userId
|
|
16300
|
+
* @param {*} [options] Override http request option.
|
|
16301
|
+
* @throws {RequiredError}
|
|
16302
|
+
* @memberof ChatUsersApi
|
|
16303
|
+
*/
|
|
16304
|
+
public apiV1ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig) {
|
|
16305
|
+
return ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
|
|
16306
|
+
}
|
|
16307
|
+
|
|
16308
|
+
/**
|
|
16309
|
+
*
|
|
16310
|
+
* @summary Update chatUser.
|
|
16311
|
+
* @param {string} userId
|
|
16312
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
16313
|
+
* @param {*} [options] Override http request option.
|
|
16314
|
+
* @throws {RequiredError}
|
|
16315
|
+
* @memberof ChatUsersApi
|
|
16316
|
+
*/
|
|
16317
|
+
public apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
|
|
16318
|
+
return ChatUsersApiFp(this.configuration).apiV1ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
16319
|
+
}
|
|
16320
|
+
}
|
|
16321
|
+
|
|
16322
|
+
|
|
15742
16323
|
/**
|
|
15743
16324
|
* CommunicationsApi - axios parameter creator
|
|
15744
16325
|
* @export
|