ch-api-client-typescript2 4.0.8 → 4.0.9

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/src/api.ts CHANGED
@@ -2740,12 +2740,6 @@ export interface CreateBookingCommand {
2740
2740
  * @interface CreateChatUserCommand
2741
2741
  */
2742
2742
  export interface CreateChatUserCommand {
2743
- /**
2744
- *
2745
- * @type {string}
2746
- * @memberof CreateChatUserCommand
2747
- */
2748
- 'userId'?: string;
2749
2743
  /**
2750
2744
  *
2751
2745
  * @type {string}
@@ -2770,6 +2764,12 @@ export interface CreateChatUserCommand {
2770
2764
  * @memberof CreateChatUserCommand
2771
2765
  */
2772
2766
  'discoveryKeys'?: Array<string> | null;
2767
+ /**
2768
+ *
2769
+ * @type {string}
2770
+ * @memberof CreateChatUserCommand
2771
+ */
2772
+ 'hospitalId'?: string;
2773
2773
  }
2774
2774
  /**
2775
2775
  *
@@ -11973,6 +11973,40 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
11973
11973
 
11974
11974
 
11975
11975
 
11976
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11978
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11979
+
11980
+ return {
11981
+ url: toPathString(localVarUrlObj),
11982
+ options: localVarRequestOptions,
11983
+ };
11984
+ },
11985
+ /**
11986
+ *
11987
+ * @summary Delete chatUser.
11988
+ * @param {*} [options] Override http request option.
11989
+ * @throws {RequiredError}
11990
+ */
11991
+ apiV2ChatusersDelete: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11992
+ const localVarPath = `/api/v2/chatusers`;
11993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11995
+ let baseOptions;
11996
+ if (configuration) {
11997
+ baseOptions = configuration.baseOptions;
11998
+ }
11999
+
12000
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12001
+ const localVarHeaderParameter = {} as any;
12002
+ const localVarQueryParameter = {} as any;
12003
+
12004
+ // authentication oauth2 required
12005
+ // oauth required
12006
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12007
+
12008
+
12009
+
11976
12010
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11977
12011
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11978
12012
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12081,16 +12115,13 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
12081
12115
  },
12082
12116
  /**
12083
12117
  *
12084
- * @summary Delete chatUser.
12085
- * @param {string} userId
12118
+ * @summary Update chatUser.
12119
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
12086
12120
  * @param {*} [options] Override http request option.
12087
12121
  * @throws {RequiredError}
12088
12122
  */
12089
- apiV2ChatusersUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12090
- // verify required parameter 'userId' is not null or undefined
12091
- assertParamExists('apiV2ChatusersUserIdDelete', 'userId', userId)
12092
- const localVarPath = `/api/v2/chatusers/{userId}`
12093
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
12123
+ apiV2ChatusersPut: async (updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12124
+ const localVarPath = `/api/v2/chatusers`;
12094
12125
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12095
12126
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12096
12127
  let baseOptions;
@@ -12098,7 +12129,7 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
12098
12129
  baseOptions = configuration.baseOptions;
12099
12130
  }
12100
12131
 
12101
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12132
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12102
12133
  const localVarHeaderParameter = {} as any;
12103
12134
  const localVarQueryParameter = {} as any;
12104
12135
 
@@ -12108,9 +12139,12 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
12108
12139
 
12109
12140
 
12110
12141
 
12142
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12143
+
12111
12144
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12112
12145
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12113
12146
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12147
+ localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
12114
12148
 
12115
12149
  return {
12116
12150
  url: toPathString(localVarUrlObj),
@@ -12150,48 +12184,6 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
12150
12184
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12151
12185
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12152
12186
 
12153
- return {
12154
- url: toPathString(localVarUrlObj),
12155
- options: localVarRequestOptions,
12156
- };
12157
- },
12158
- /**
12159
- *
12160
- * @summary Update chatUser.
12161
- * @param {string} userId
12162
- * @param {UpdateChatUserCommand} [updateChatUserCommand]
12163
- * @param {*} [options] Override http request option.
12164
- * @throws {RequiredError}
12165
- */
12166
- apiV2ChatusersUserIdPut: async (userId: string, updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12167
- // verify required parameter 'userId' is not null or undefined
12168
- assertParamExists('apiV2ChatusersUserIdPut', 'userId', userId)
12169
- const localVarPath = `/api/v2/chatusers/{userId}`
12170
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
12171
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12172
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12173
- let baseOptions;
12174
- if (configuration) {
12175
- baseOptions = configuration.baseOptions;
12176
- }
12177
-
12178
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12179
- const localVarHeaderParameter = {} as any;
12180
- const localVarQueryParameter = {} as any;
12181
-
12182
- // authentication oauth2 required
12183
- // oauth required
12184
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12185
-
12186
-
12187
-
12188
- localVarHeaderParameter['Content-Type'] = 'application/json';
12189
-
12190
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12191
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12192
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12193
- localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
12194
-
12195
12187
  return {
12196
12188
  url: toPathString(localVarUrlObj),
12197
12189
  options: localVarRequestOptions,
@@ -12216,6 +12208,16 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
12216
12208
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersCurrentGet(options);
12217
12209
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12218
12210
  },
12211
+ /**
12212
+ *
12213
+ * @summary Delete chatUser.
12214
+ * @param {*} [options] Override http request option.
12215
+ * @throws {RequiredError}
12216
+ */
12217
+ async apiV2ChatusersDelete(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12218
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersDelete(options);
12219
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12220
+ },
12219
12221
  /**
12220
12222
  *
12221
12223
  * @summary Get all chatUsers.
@@ -12244,13 +12246,13 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
12244
12246
  },
12245
12247
  /**
12246
12248
  *
12247
- * @summary Delete chatUser.
12248
- * @param {string} userId
12249
+ * @summary Update chatUser.
12250
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
12249
12251
  * @param {*} [options] Override http request option.
12250
12252
  * @throws {RequiredError}
12251
12253
  */
12252
- async apiV2ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12253
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdDelete(userId, options);
12254
+ async apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
12255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersPut(updateChatUserCommand, options);
12254
12256
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12255
12257
  },
12256
12258
  /**
@@ -12264,18 +12266,6 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
12264
12266
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdGet(userId, options);
12265
12267
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12266
12268
  },
12267
- /**
12268
- *
12269
- * @summary Update chatUser.
12270
- * @param {string} userId
12271
- * @param {UpdateChatUserCommand} [updateChatUserCommand]
12272
- * @param {*} [options] Override http request option.
12273
- * @throws {RequiredError}
12274
- */
12275
- async apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
12276
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options);
12277
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12278
- },
12279
12269
  }
12280
12270
  };
12281
12271
 
@@ -12294,6 +12284,15 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
12294
12284
  apiV2ChatusersCurrentGet(options?: any): AxiosPromise<ChatUserModel> {
12295
12285
  return localVarFp.apiV2ChatusersCurrentGet(options).then((request) => request(axios, basePath));
12296
12286
  },
12287
+ /**
12288
+ *
12289
+ * @summary Delete chatUser.
12290
+ * @param {*} [options] Override http request option.
12291
+ * @throws {RequiredError}
12292
+ */
12293
+ apiV2ChatusersDelete(options?: any): AxiosPromise<boolean> {
12294
+ return localVarFp.apiV2ChatusersDelete(options).then((request) => request(axios, basePath));
12295
+ },
12297
12296
  /**
12298
12297
  *
12299
12298
  * @summary Get all chatUsers.
@@ -12320,13 +12319,13 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
12320
12319
  },
12321
12320
  /**
12322
12321
  *
12323
- * @summary Delete chatUser.
12324
- * @param {string} userId
12322
+ * @summary Update chatUser.
12323
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
12325
12324
  * @param {*} [options] Override http request option.
12326
12325
  * @throws {RequiredError}
12327
12326
  */
12328
- apiV2ChatusersUserIdDelete(userId: string, options?: any): AxiosPromise<boolean> {
12329
- return localVarFp.apiV2ChatusersUserIdDelete(userId, options).then((request) => request(axios, basePath));
12327
+ apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
12328
+ return localVarFp.apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(axios, basePath));
12330
12329
  },
12331
12330
  /**
12332
12331
  *
@@ -12338,17 +12337,6 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
12338
12337
  apiV2ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel> {
12339
12338
  return localVarFp.apiV2ChatusersUserIdGet(userId, options).then((request) => request(axios, basePath));
12340
12339
  },
12341
- /**
12342
- *
12343
- * @summary Update chatUser.
12344
- * @param {string} userId
12345
- * @param {UpdateChatUserCommand} [updateChatUserCommand]
12346
- * @param {*} [options] Override http request option.
12347
- * @throws {RequiredError}
12348
- */
12349
- apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
12350
- return localVarFp.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(axios, basePath));
12351
- },
12352
12340
  };
12353
12341
  };
12354
12342
 
@@ -12369,6 +12357,17 @@ export class ChatUsersApi extends BaseAPI {
12369
12357
  return ChatUsersApiFp(this.configuration).apiV2ChatusersCurrentGet(options).then((request) => request(this.axios, this.basePath));
12370
12358
  }
12371
12359
 
12360
+ /**
12361
+ *
12362
+ * @summary Delete chatUser.
12363
+ * @param {*} [options] Override http request option.
12364
+ * @throws {RequiredError}
12365
+ * @memberof ChatUsersApi
12366
+ */
12367
+ public apiV2ChatusersDelete(options?: AxiosRequestConfig) {
12368
+ return ChatUsersApiFp(this.configuration).apiV2ChatusersDelete(options).then((request) => request(this.axios, this.basePath));
12369
+ }
12370
+
12372
12371
  /**
12373
12372
  *
12374
12373
  * @summary Get all chatUsers.
@@ -12399,14 +12398,14 @@ export class ChatUsersApi extends BaseAPI {
12399
12398
 
12400
12399
  /**
12401
12400
  *
12402
- * @summary Delete chatUser.
12403
- * @param {string} userId
12401
+ * @summary Update chatUser.
12402
+ * @param {UpdateChatUserCommand} [updateChatUserCommand]
12404
12403
  * @param {*} [options] Override http request option.
12405
12404
  * @throws {RequiredError}
12406
12405
  * @memberof ChatUsersApi
12407
12406
  */
12408
- public apiV2ChatusersUserIdDelete(userId: string, options?: AxiosRequestConfig) {
12409
- return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
12407
+ public apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
12408
+ return ChatUsersApiFp(this.configuration).apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
12410
12409
  }
12411
12410
 
12412
12411
  /**
@@ -12420,19 +12419,6 @@ export class ChatUsersApi extends BaseAPI {
12420
12419
  public apiV2ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig) {
12421
12420
  return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
12422
12421
  }
12423
-
12424
- /**
12425
- *
12426
- * @summary Update chatUser.
12427
- * @param {string} userId
12428
- * @param {UpdateChatUserCommand} [updateChatUserCommand]
12429
- * @param {*} [options] Override http request option.
12430
- * @throws {RequiredError}
12431
- * @memberof ChatUsersApi
12432
- */
12433
- public apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
12434
- return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
12435
- }
12436
12422
  }
12437
12423
 
12438
12424