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 CHANGED
@@ -1680,6 +1680,86 @@ export declare enum ChargeStatus {
1680
1680
  Succeeded = "Succeeded",
1681
1681
  Failed = "Failed"
1682
1682
  }
1683
+ /**
1684
+ *
1685
+ * @export
1686
+ * @interface ChatUserModel
1687
+ */
1688
+ export interface ChatUserModel {
1689
+ /**
1690
+ *
1691
+ * @type {string}
1692
+ * @memberof ChatUserModel
1693
+ */
1694
+ 'id'?: string | null;
1695
+ /**
1696
+ *
1697
+ * @type {string}
1698
+ * @memberof ChatUserModel
1699
+ */
1700
+ 'nickname'?: string | null;
1701
+ /**
1702
+ *
1703
+ * @type {string}
1704
+ * @memberof ChatUserModel
1705
+ */
1706
+ 'profileUrl'?: string | null;
1707
+ /**
1708
+ *
1709
+ * @type {string}
1710
+ * @memberof ChatUserModel
1711
+ */
1712
+ 'accessToken'?: string | null;
1713
+ /**
1714
+ *
1715
+ * @type {number}
1716
+ * @memberof ChatUserModel
1717
+ */
1718
+ 'isActive'?: number;
1719
+ /**
1720
+ *
1721
+ * @type {number}
1722
+ * @memberof ChatUserModel
1723
+ */
1724
+ 'isOnline'?: number;
1725
+ /**
1726
+ *
1727
+ * @type {Array<string>}
1728
+ * @memberof ChatUserModel
1729
+ */
1730
+ 'discoveryKeys'?: Array<string> | null;
1731
+ /**
1732
+ *
1733
+ * @type {Date}
1734
+ * @memberof ChatUserModel
1735
+ */
1736
+ 'createdAt'?: Date | null;
1737
+ /**
1738
+ *
1739
+ * @type {Date}
1740
+ * @memberof ChatUserModel
1741
+ */
1742
+ 'lastSeenAt'?: Date | null;
1743
+ }
1744
+ /**
1745
+ *
1746
+ * @export
1747
+ * @interface ChatUsersModel
1748
+ */
1749
+ export interface ChatUsersModel {
1750
+ /**
1751
+ *
1752
+ * @type {Array<ChatUserModel>}
1753
+ * @memberof ChatUsersModel
1754
+ */
1755
+ 'users'?: Array<ChatUserModel> | null;
1756
+ /**
1757
+ *
1758
+ * @type {string}
1759
+ * @memberof ChatUsersModel
1760
+ */
1761
+ 'next'?: string | null;
1762
+ }
1683
1763
  /**
1684
1764
  *
1685
1765
  * @export
@@ -3221,6 +3301,43 @@ export interface CreateArticleSourceCommand {
3221
3301
  */
3222
3302
  'order'?: number;
3223
3303
  }
3304
+ /**
3305
+ *
3306
+ * @export
3307
+ * @interface CreateChatUserCommand
3308
+ */
3309
+ export interface CreateChatUserCommand {
3310
+ /**
3311
+ *
3312
+ * @type {string}
3313
+ * @memberof CreateChatUserCommand
3314
+ */
3315
+ 'userId'?: string;
3316
+ /**
3317
+ *
3318
+ * @type {string}
3319
+ * @memberof CreateChatUserCommand
3320
+ */
3321
+ 'nickname'?: string | null;
3322
+ /**
3323
+ *
3324
+ * @type {string}
3325
+ * @memberof CreateChatUserCommand
3326
+ */
3327
+ 'profileUrl'?: string | null;
3328
+ /**
3329
+ *
3330
+ * @type {boolean}
3331
+ * @memberof CreateChatUserCommand
3332
+ */
3333
+ 'issueAccessToken'?: boolean;
3334
+ /**
3335
+ *
3336
+ * @type {Array<string>}
3337
+ * @memberof CreateChatUserCommand
3338
+ */
3339
+ 'discoveryKeys'?: Array<string> | null;
3340
+ }
3224
3341
  /**
3225
3342
  *
3226
3343
  * @export
@@ -7789,7 +7906,7 @@ export interface HospitalServiceItemModel {
7789
7906
  * @type {string}
7790
7907
  * @memberof HospitalServiceItemModel
7791
7908
  */
7792
- 'serviceCategoryId'?: string;
7909
+ 'serviceCategoryId'?: string | null;
7793
7910
  /**
7794
7911
  *
7795
7912
  * @type {string}
@@ -7922,7 +8039,7 @@ export interface HospitalServiceModel {
7922
8039
  * @type {string}
7923
8040
  * @memberof HospitalServiceModel
7924
8041
  */
7925
- 'serviceCategoryId'?: string;
8042
+ 'serviceCategoryId'?: string | null;
7926
8043
  /**
7927
8044
  *
7928
8045
  * @type {string}
@@ -10956,6 +11073,37 @@ export interface UpdateArticleSourceCommand {
10956
11073
  */
10957
11074
  'order'?: number;
10958
11075
  }
11076
+ /**
11077
+ *
11078
+ * @export
11079
+ * @interface UpdateChatUserCommand
11080
+ */
11081
+ export interface UpdateChatUserCommand {
11082
+ /**
11083
+ *
11084
+ * @type {string}
11085
+ * @memberof UpdateChatUserCommand
11086
+ */
11087
+ 'nickname'?: string | null;
11088
+ /**
11089
+ *
11090
+ * @type {string}
11091
+ * @memberof UpdateChatUserCommand
11092
+ */
11093
+ 'profileUrl'?: string | null;
11094
+ /**
11095
+ *
11096
+ * @type {boolean}
11097
+ * @memberof UpdateChatUserCommand
11098
+ */
11099
+ 'issueAccessToken'?: boolean;
11100
+ /**
11101
+ *
11102
+ * @type {Array<string>}
11103
+ * @memberof UpdateChatUserCommand
11104
+ */
11105
+ 'discoveryKeys'?: Array<string> | null;
11106
+ }
10959
11107
  /**
10960
11108
  *
10961
11109
  * @export
@@ -13951,6 +14099,217 @@ export declare class BookingsApi extends BaseAPI {
13951
14099
  */
13952
14100
  apiV1BookingsGet(searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsModel>>;
13953
14101
  }
14102
+ /**
14103
+ * ChatUsersApi - axios parameter creator
14104
+ * @export
14105
+ */
14106
+ export declare const ChatUsersApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
14107
+ /**
14108
+ *
14109
+ * @summary Get all chatUsers.
14110
+ * @param {number} [limit]
14111
+ * @param {string} [token]
14112
+ * @param {string} [userIds]
14113
+ * @param {string} [nickname]
14114
+ * @param {string} [nicknameStartswith]
14115
+ * @param {*} [options] Override http request option.
14116
+ * @throws {RequiredError}
14117
+ */
14118
+ apiV1ChatusersGet: (limit?: number | undefined, token?: string | undefined, userIds?: string | undefined, nickname?: string | undefined, nicknameStartswith?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14119
+ /**
14120
+ *
14121
+ * @summary Create a chatUser.
14122
+ * @param {CreateChatUserCommand} [createChatUserCommand]
14123
+ * @param {*} [options] Override http request option.
14124
+ * @throws {RequiredError}
14125
+ */
14126
+ apiV1ChatusersPost: (createChatUserCommand?: CreateChatUserCommand | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14127
+ /**
14128
+ *
14129
+ * @summary Delete chatUser.
14130
+ * @param {string} userId
14131
+ * @param {*} [options] Override http request option.
14132
+ * @throws {RequiredError}
14133
+ */
14134
+ apiV1ChatusersUserIdDelete: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14135
+ /**
14136
+ *
14137
+ * @summary Get chatUser.
14138
+ * @param {string} userId
14139
+ * @param {*} [options] Override http request option.
14140
+ * @throws {RequiredError}
14141
+ */
14142
+ apiV1ChatusersUserIdGet: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14143
+ /**
14144
+ *
14145
+ * @summary Update chatUser.
14146
+ * @param {string} userId
14147
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
14148
+ * @param {*} [options] Override http request option.
14149
+ * @throws {RequiredError}
14150
+ */
14151
+ apiV1ChatusersUserIdPut: (userId: string, updateChatUserCommand?: UpdateChatUserCommand | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14152
+ };
14153
+ /**
14154
+ * ChatUsersApi - functional programming interface
14155
+ * @export
14156
+ */
14157
+ export declare const ChatUsersApiFp: (configuration?: Configuration | undefined) => {
14158
+ /**
14159
+ *
14160
+ * @summary Get all chatUsers.
14161
+ * @param {number} [limit]
14162
+ * @param {string} [token]
14163
+ * @param {string} [userIds]
14164
+ * @param {string} [nickname]
14165
+ * @param {string} [nicknameStartswith]
14166
+ * @param {*} [options] Override http request option.
14167
+ * @throws {RequiredError}
14168
+ */
14169
+ apiV1ChatusersGet(limit?: number | undefined, token?: string | undefined, userIds?: string | undefined, nickname?: string | undefined, nicknameStartswith?: string | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ChatUsersModel>>;
14170
+ /**
14171
+ *
14172
+ * @summary Create a chatUser.
14173
+ * @param {CreateChatUserCommand} [createChatUserCommand]
14174
+ * @param {*} [options] Override http request option.
14175
+ * @throws {RequiredError}
14176
+ */
14177
+ apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ChatUserModel>>;
14178
+ /**
14179
+ *
14180
+ * @summary Delete chatUser.
14181
+ * @param {string} userId
14182
+ * @param {*} [options] Override http request option.
14183
+ * @throws {RequiredError}
14184
+ */
14185
+ apiV1ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<boolean>>;
14186
+ /**
14187
+ *
14188
+ * @summary Get chatUser.
14189
+ * @param {string} userId
14190
+ * @param {*} [options] Override http request option.
14191
+ * @throws {RequiredError}
14192
+ */
14193
+ apiV1ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ChatUserModel>>;
14194
+ /**
14195
+ *
14196
+ * @summary Update chatUser.
14197
+ * @param {string} userId
14198
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
14199
+ * @param {*} [options] Override http request option.
14200
+ * @throws {RequiredError}
14201
+ */
14202
+ apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ChatUserModel>>;
14203
+ };
14204
+ /**
14205
+ * ChatUsersApi - factory interface
14206
+ * @export
14207
+ */
14208
+ export declare const ChatUsersApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
14209
+ /**
14210
+ *
14211
+ * @summary Get all chatUsers.
14212
+ * @param {number} [limit]
14213
+ * @param {string} [token]
14214
+ * @param {string} [userIds]
14215
+ * @param {string} [nickname]
14216
+ * @param {string} [nicknameStartswith]
14217
+ * @param {*} [options] Override http request option.
14218
+ * @throws {RequiredError}
14219
+ */
14220
+ apiV1ChatusersGet(limit?: number | undefined, token?: string | undefined, userIds?: string | undefined, nickname?: string | undefined, nicknameStartswith?: string | undefined, options?: any): AxiosPromise<ChatUsersModel>;
14221
+ /**
14222
+ *
14223
+ * @summary Create a chatUser.
14224
+ * @param {CreateChatUserCommand} [createChatUserCommand]
14225
+ * @param {*} [options] Override http request option.
14226
+ * @throws {RequiredError}
14227
+ */
14228
+ apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand | undefined, options?: any): AxiosPromise<ChatUserModel>;
14229
+ /**
14230
+ *
14231
+ * @summary Delete chatUser.
14232
+ * @param {string} userId
14233
+ * @param {*} [options] Override http request option.
14234
+ * @throws {RequiredError}
14235
+ */
14236
+ apiV1ChatusersUserIdDelete(userId: string, options?: any): AxiosPromise<boolean>;
14237
+ /**
14238
+ *
14239
+ * @summary Get chatUser.
14240
+ * @param {string} userId
14241
+ * @param {*} [options] Override http request option.
14242
+ * @throws {RequiredError}
14243
+ */
14244
+ apiV1ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel>;
14245
+ /**
14246
+ *
14247
+ * @summary Update chatUser.
14248
+ * @param {string} userId
14249
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
14250
+ * @param {*} [options] Override http request option.
14251
+ * @throws {RequiredError}
14252
+ */
14253
+ apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand | undefined, options?: any): AxiosPromise<ChatUserModel>;
14254
+ };
14255
+ /**
14256
+ * ChatUsersApi - object-oriented interface
14257
+ * @export
14258
+ * @class ChatUsersApi
14259
+ * @extends {BaseAPI}
14260
+ */
14261
+ export declare class ChatUsersApi extends BaseAPI {
14262
+ /**
14263
+ *
14264
+ * @summary Get all chatUsers.
14265
+ * @param {number} [limit]
14266
+ * @param {string} [token]
14267
+ * @param {string} [userIds]
14268
+ * @param {string} [nickname]
14269
+ * @param {string} [nicknameStartswith]
14270
+ * @param {*} [options] Override http request option.
14271
+ * @throws {RequiredError}
14272
+ * @memberof ChatUsersApi
14273
+ */
14274
+ apiV1ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatUsersModel>>;
14275
+ /**
14276
+ *
14277
+ * @summary Create a chatUser.
14278
+ * @param {CreateChatUserCommand} [createChatUserCommand]
14279
+ * @param {*} [options] Override http request option.
14280
+ * @throws {RequiredError}
14281
+ * @memberof ChatUsersApi
14282
+ */
14283
+ apiV1ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatUserModel>>;
14284
+ /**
14285
+ *
14286
+ * @summary Delete chatUser.
14287
+ * @param {string} userId
14288
+ * @param {*} [options] Override http request option.
14289
+ * @throws {RequiredError}
14290
+ * @memberof ChatUsersApi
14291
+ */
14292
+ apiV1ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean>>;
14293
+ /**
14294
+ *
14295
+ * @summary Get chatUser.
14296
+ * @param {string} userId
14297
+ * @param {*} [options] Override http request option.
14298
+ * @throws {RequiredError}
14299
+ * @memberof ChatUsersApi
14300
+ */
14301
+ apiV1ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatUserModel>>;
14302
+ /**
14303
+ *
14304
+ * @summary Update chatUser.
14305
+ * @param {string} userId
14306
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
14307
+ * @param {*} [options] Override http request option.
14308
+ * @throws {RequiredError}
14309
+ * @memberof ChatUsersApi
14310
+ */
14311
+ apiV1ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatUserModel>>;
14312
+ }
13954
14313
  /**
13955
14314
  * CommunicationsApi - axios parameter creator
13956
14315
  * @export