ch-api-client-typescript2 4.0.6 → 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/.github/workflows/publish-npm.yml +15 -0
- package/lib/api.d.ts +77 -67
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +129 -122
- package/package.json +1 -1
- package/src/api.ts +138 -122
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
|
*
|
|
@@ -3307,16 +3307,16 @@ export interface DealModel {
|
|
|
3307
3307
|
'content'?: string | null;
|
|
3308
3308
|
/**
|
|
3309
3309
|
*
|
|
3310
|
-
* @type {
|
|
3310
|
+
* @type {Array<LocalizedUrlModel>}
|
|
3311
3311
|
* @memberof DealModel
|
|
3312
3312
|
*/
|
|
3313
|
-
'
|
|
3313
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
3314
3314
|
/**
|
|
3315
3315
|
*
|
|
3316
|
-
* @type {
|
|
3316
|
+
* @type {number}
|
|
3317
3317
|
* @memberof DealModel
|
|
3318
3318
|
*/
|
|
3319
|
-
'
|
|
3319
|
+
'serviceDuration'?: number;
|
|
3320
3320
|
}
|
|
3321
3321
|
/**
|
|
3322
3322
|
*
|
|
@@ -3372,6 +3372,12 @@ export interface DealPackageItemModel {
|
|
|
3372
3372
|
* @memberof DealPackageItemModel
|
|
3373
3373
|
*/
|
|
3374
3374
|
'hospitalSlug'?: string | null;
|
|
3375
|
+
/**
|
|
3376
|
+
*
|
|
3377
|
+
* @type {string}
|
|
3378
|
+
* @memberof DealPackageItemModel
|
|
3379
|
+
*/
|
|
3380
|
+
'additionalServices'?: string | null;
|
|
3375
3381
|
/**
|
|
3376
3382
|
*
|
|
3377
3383
|
* @type {RefundPolicy}
|
|
@@ -11967,6 +11973,40 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
11967
11973
|
|
|
11968
11974
|
|
|
11969
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
|
+
|
|
11970
12010
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11971
12011
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11972
12012
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12075,16 +12115,13 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12075
12115
|
},
|
|
12076
12116
|
/**
|
|
12077
12117
|
*
|
|
12078
|
-
* @summary
|
|
12079
|
-
* @param {
|
|
12118
|
+
* @summary Update chatUser.
|
|
12119
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12080
12120
|
* @param {*} [options] Override http request option.
|
|
12081
12121
|
* @throws {RequiredError}
|
|
12082
12122
|
*/
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
assertParamExists('apiV2ChatusersUserIdDelete', 'userId', userId)
|
|
12086
|
-
const localVarPath = `/api/v2/chatusers/{userId}`
|
|
12087
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
12123
|
+
apiV2ChatusersPut: async (updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12124
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
12088
12125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12089
12126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12090
12127
|
let baseOptions;
|
|
@@ -12092,7 +12129,7 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12092
12129
|
baseOptions = configuration.baseOptions;
|
|
12093
12130
|
}
|
|
12094
12131
|
|
|
12095
|
-
const localVarRequestOptions = { method: '
|
|
12132
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12096
12133
|
const localVarHeaderParameter = {} as any;
|
|
12097
12134
|
const localVarQueryParameter = {} as any;
|
|
12098
12135
|
|
|
@@ -12102,9 +12139,12 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12102
12139
|
|
|
12103
12140
|
|
|
12104
12141
|
|
|
12142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12143
|
+
|
|
12105
12144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12106
12145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12107
12146
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12147
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
|
|
12108
12148
|
|
|
12109
12149
|
return {
|
|
12110
12150
|
url: toPathString(localVarUrlObj),
|
|
@@ -12144,48 +12184,6 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12144
12184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12145
12185
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12146
12186
|
|
|
12147
|
-
return {
|
|
12148
|
-
url: toPathString(localVarUrlObj),
|
|
12149
|
-
options: localVarRequestOptions,
|
|
12150
|
-
};
|
|
12151
|
-
},
|
|
12152
|
-
/**
|
|
12153
|
-
*
|
|
12154
|
-
* @summary Update chatUser.
|
|
12155
|
-
* @param {string} userId
|
|
12156
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12157
|
-
* @param {*} [options] Override http request option.
|
|
12158
|
-
* @throws {RequiredError}
|
|
12159
|
-
*/
|
|
12160
|
-
apiV2ChatusersUserIdPut: async (userId: string, updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12161
|
-
// verify required parameter 'userId' is not null or undefined
|
|
12162
|
-
assertParamExists('apiV2ChatusersUserIdPut', 'userId', userId)
|
|
12163
|
-
const localVarPath = `/api/v2/chatusers/{userId}`
|
|
12164
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
12165
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12166
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12167
|
-
let baseOptions;
|
|
12168
|
-
if (configuration) {
|
|
12169
|
-
baseOptions = configuration.baseOptions;
|
|
12170
|
-
}
|
|
12171
|
-
|
|
12172
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12173
|
-
const localVarHeaderParameter = {} as any;
|
|
12174
|
-
const localVarQueryParameter = {} as any;
|
|
12175
|
-
|
|
12176
|
-
// authentication oauth2 required
|
|
12177
|
-
// oauth required
|
|
12178
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12183
|
-
|
|
12184
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12186
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12187
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
|
|
12188
|
-
|
|
12189
12187
|
return {
|
|
12190
12188
|
url: toPathString(localVarUrlObj),
|
|
12191
12189
|
options: localVarRequestOptions,
|
|
@@ -12210,6 +12208,16 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12210
12208
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersCurrentGet(options);
|
|
12211
12209
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12212
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
|
+
},
|
|
12213
12221
|
/**
|
|
12214
12222
|
*
|
|
12215
12223
|
* @summary Get all chatUsers.
|
|
@@ -12238,13 +12246,13 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12238
12246
|
},
|
|
12239
12247
|
/**
|
|
12240
12248
|
*
|
|
12241
|
-
* @summary
|
|
12242
|
-
* @param {
|
|
12249
|
+
* @summary Update chatUser.
|
|
12250
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12243
12251
|
* @param {*} [options] Override http request option.
|
|
12244
12252
|
* @throws {RequiredError}
|
|
12245
12253
|
*/
|
|
12246
|
-
async
|
|
12247
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12254
|
+
async apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
12255
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersPut(updateChatUserCommand, options);
|
|
12248
12256
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12249
12257
|
},
|
|
12250
12258
|
/**
|
|
@@ -12258,18 +12266,6 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12258
12266
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdGet(userId, options);
|
|
12259
12267
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12260
12268
|
},
|
|
12261
|
-
/**
|
|
12262
|
-
*
|
|
12263
|
-
* @summary Update chatUser.
|
|
12264
|
-
* @param {string} userId
|
|
12265
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12266
|
-
* @param {*} [options] Override http request option.
|
|
12267
|
-
* @throws {RequiredError}
|
|
12268
|
-
*/
|
|
12269
|
-
async apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
12270
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options);
|
|
12271
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12272
|
-
},
|
|
12273
12269
|
}
|
|
12274
12270
|
};
|
|
12275
12271
|
|
|
@@ -12288,6 +12284,15 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12288
12284
|
apiV2ChatusersCurrentGet(options?: any): AxiosPromise<ChatUserModel> {
|
|
12289
12285
|
return localVarFp.apiV2ChatusersCurrentGet(options).then((request) => request(axios, basePath));
|
|
12290
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
|
+
},
|
|
12291
12296
|
/**
|
|
12292
12297
|
*
|
|
12293
12298
|
* @summary Get all chatUsers.
|
|
@@ -12314,13 +12319,13 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12314
12319
|
},
|
|
12315
12320
|
/**
|
|
12316
12321
|
*
|
|
12317
|
-
* @summary
|
|
12318
|
-
* @param {
|
|
12322
|
+
* @summary Update chatUser.
|
|
12323
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12319
12324
|
* @param {*} [options] Override http request option.
|
|
12320
12325
|
* @throws {RequiredError}
|
|
12321
12326
|
*/
|
|
12322
|
-
|
|
12323
|
-
return localVarFp.
|
|
12327
|
+
apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
12328
|
+
return localVarFp.apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
12324
12329
|
},
|
|
12325
12330
|
/**
|
|
12326
12331
|
*
|
|
@@ -12332,17 +12337,6 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12332
12337
|
apiV2ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel> {
|
|
12333
12338
|
return localVarFp.apiV2ChatusersUserIdGet(userId, options).then((request) => request(axios, basePath));
|
|
12334
12339
|
},
|
|
12335
|
-
/**
|
|
12336
|
-
*
|
|
12337
|
-
* @summary Update chatUser.
|
|
12338
|
-
* @param {string} userId
|
|
12339
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12340
|
-
* @param {*} [options] Override http request option.
|
|
12341
|
-
* @throws {RequiredError}
|
|
12342
|
-
*/
|
|
12343
|
-
apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
12344
|
-
return localVarFp.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
12345
|
-
},
|
|
12346
12340
|
};
|
|
12347
12341
|
};
|
|
12348
12342
|
|
|
@@ -12363,6 +12357,17 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12363
12357
|
return ChatUsersApiFp(this.configuration).apiV2ChatusersCurrentGet(options).then((request) => request(this.axios, this.basePath));
|
|
12364
12358
|
}
|
|
12365
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
|
+
|
|
12366
12371
|
/**
|
|
12367
12372
|
*
|
|
12368
12373
|
* @summary Get all chatUsers.
|
|
@@ -12393,14 +12398,14 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12393
12398
|
|
|
12394
12399
|
/**
|
|
12395
12400
|
*
|
|
12396
|
-
* @summary
|
|
12397
|
-
* @param {
|
|
12401
|
+
* @summary Update chatUser.
|
|
12402
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12398
12403
|
* @param {*} [options] Override http request option.
|
|
12399
12404
|
* @throws {RequiredError}
|
|
12400
12405
|
* @memberof ChatUsersApi
|
|
12401
12406
|
*/
|
|
12402
|
-
public
|
|
12403
|
-
return ChatUsersApiFp(this.configuration).
|
|
12407
|
+
public apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
|
|
12408
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12404
12409
|
}
|
|
12405
12410
|
|
|
12406
12411
|
/**
|
|
@@ -12414,19 +12419,6 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12414
12419
|
public apiV2ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig) {
|
|
12415
12420
|
return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
|
|
12416
12421
|
}
|
|
12417
|
-
|
|
12418
|
-
/**
|
|
12419
|
-
*
|
|
12420
|
-
* @summary Update chatUser.
|
|
12421
|
-
* @param {string} userId
|
|
12422
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12423
|
-
* @param {*} [options] Override http request option.
|
|
12424
|
-
* @throws {RequiredError}
|
|
12425
|
-
* @memberof ChatUsersApi
|
|
12426
|
-
*/
|
|
12427
|
-
public apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
|
|
12428
|
-
return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12429
|
-
}
|
|
12430
12422
|
}
|
|
12431
12423
|
|
|
12432
12424
|
|
|
@@ -14326,13 +14318,15 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14326
14318
|
* @param {string} [countryId]
|
|
14327
14319
|
* @param {string} [hospitalId]
|
|
14328
14320
|
* @param {string} [hospitalName]
|
|
14321
|
+
* @param {string} [languageCode]
|
|
14322
|
+
* @param {boolean} [showHidden]
|
|
14329
14323
|
* @param {number} [page]
|
|
14330
14324
|
* @param {number} [limit]
|
|
14331
14325
|
* @param {Date} [lastRetrieved]
|
|
14332
14326
|
* @param {*} [options] Override http request option.
|
|
14333
14327
|
* @throws {RequiredError}
|
|
14334
14328
|
*/
|
|
14335
|
-
apiV2DealsDealIdPackagesGet: async (dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14329
|
+
apiV2DealsDealIdPackagesGet: async (dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14336
14330
|
// verify required parameter 'dealId' is not null or undefined
|
|
14337
14331
|
assertParamExists('apiV2DealsDealIdPackagesGet', 'dealId', dealId)
|
|
14338
14332
|
const localVarPath = `/api/v2/deals/{dealId}/packages`
|
|
@@ -14372,6 +14366,14 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14372
14366
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
14373
14367
|
}
|
|
14374
14368
|
|
|
14369
|
+
if (languageCode !== undefined) {
|
|
14370
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
14371
|
+
}
|
|
14372
|
+
|
|
14373
|
+
if (showHidden !== undefined) {
|
|
14374
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
14375
|
+
}
|
|
14376
|
+
|
|
14375
14377
|
if (page !== undefined) {
|
|
14376
14378
|
localVarQueryParameter['page'] = page;
|
|
14377
14379
|
}
|
|
@@ -14402,10 +14404,11 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14402
14404
|
* @summary Get DealPackage.
|
|
14403
14405
|
* @param {string} dealId
|
|
14404
14406
|
* @param {string} packageId
|
|
14407
|
+
* @param {string} [languageCode]
|
|
14405
14408
|
* @param {*} [options] Override http request option.
|
|
14406
14409
|
* @throws {RequiredError}
|
|
14407
14410
|
*/
|
|
14408
|
-
apiV2DealsDealIdPackagesPackageIdGet: async (dealId: string, packageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14411
|
+
apiV2DealsDealIdPackagesPackageIdGet: async (dealId: string, packageId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14409
14412
|
// verify required parameter 'dealId' is not null or undefined
|
|
14410
14413
|
assertParamExists('apiV2DealsDealIdPackagesPackageIdGet', 'dealId', dealId)
|
|
14411
14414
|
// verify required parameter 'packageId' is not null or undefined
|
|
@@ -14424,6 +14427,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14424
14427
|
const localVarHeaderParameter = {} as any;
|
|
14425
14428
|
const localVarQueryParameter = {} as any;
|
|
14426
14429
|
|
|
14430
|
+
if (languageCode !== undefined) {
|
|
14431
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14432
|
+
}
|
|
14433
|
+
|
|
14427
14434
|
|
|
14428
14435
|
|
|
14429
14436
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -14895,14 +14902,16 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
14895
14902
|
* @param {string} [countryId]
|
|
14896
14903
|
* @param {string} [hospitalId]
|
|
14897
14904
|
* @param {string} [hospitalName]
|
|
14905
|
+
* @param {string} [languageCode]
|
|
14906
|
+
* @param {boolean} [showHidden]
|
|
14898
14907
|
* @param {number} [page]
|
|
14899
14908
|
* @param {number} [limit]
|
|
14900
14909
|
* @param {Date} [lastRetrieved]
|
|
14901
14910
|
* @param {*} [options] Override http request option.
|
|
14902
14911
|
* @throws {RequiredError}
|
|
14903
14912
|
*/
|
|
14904
|
-
async apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackagesModel>> {
|
|
14905
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options);
|
|
14913
|
+
async apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackagesModel>> {
|
|
14914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
14906
14915
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14907
14916
|
},
|
|
14908
14917
|
/**
|
|
@@ -14910,11 +14919,12 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
14910
14919
|
* @summary Get DealPackage.
|
|
14911
14920
|
* @param {string} dealId
|
|
14912
14921
|
* @param {string} packageId
|
|
14922
|
+
* @param {string} [languageCode]
|
|
14913
14923
|
* @param {*} [options] Override http request option.
|
|
14914
14924
|
* @throws {RequiredError}
|
|
14915
14925
|
*/
|
|
14916
|
-
async apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
14917
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options);
|
|
14926
|
+
async apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealPackageModel>> {
|
|
14927
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options);
|
|
14918
14928
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14919
14929
|
},
|
|
14920
14930
|
/**
|
|
@@ -15054,25 +15064,28 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
15054
15064
|
* @param {string} [countryId]
|
|
15055
15065
|
* @param {string} [hospitalId]
|
|
15056
15066
|
* @param {string} [hospitalName]
|
|
15067
|
+
* @param {string} [languageCode]
|
|
15068
|
+
* @param {boolean} [showHidden]
|
|
15057
15069
|
* @param {number} [page]
|
|
15058
15070
|
* @param {number} [limit]
|
|
15059
15071
|
* @param {Date} [lastRetrieved]
|
|
15060
15072
|
* @param {*} [options] Override http request option.
|
|
15061
15073
|
* @throws {RequiredError}
|
|
15062
15074
|
*/
|
|
15063
|
-
apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealPackagesModel> {
|
|
15064
|
-
return localVarFp.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15075
|
+
apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealPackagesModel> {
|
|
15076
|
+
return localVarFp.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15065
15077
|
},
|
|
15066
15078
|
/**
|
|
15067
15079
|
*
|
|
15068
15080
|
* @summary Get DealPackage.
|
|
15069
15081
|
* @param {string} dealId
|
|
15070
15082
|
* @param {string} packageId
|
|
15083
|
+
* @param {string} [languageCode]
|
|
15071
15084
|
* @param {*} [options] Override http request option.
|
|
15072
15085
|
* @throws {RequiredError}
|
|
15073
15086
|
*/
|
|
15074
|
-
apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, options?: any): AxiosPromise<DealPackageModel> {
|
|
15075
|
-
return localVarFp.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options).then((request) => request(axios, basePath));
|
|
15087
|
+
apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: any): AxiosPromise<DealPackageModel> {
|
|
15088
|
+
return localVarFp.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(axios, basePath));
|
|
15076
15089
|
},
|
|
15077
15090
|
/**
|
|
15078
15091
|
*
|
|
@@ -15208,6 +15221,8 @@ export class DealsApi extends BaseAPI {
|
|
|
15208
15221
|
* @param {string} [countryId]
|
|
15209
15222
|
* @param {string} [hospitalId]
|
|
15210
15223
|
* @param {string} [hospitalName]
|
|
15224
|
+
* @param {string} [languageCode]
|
|
15225
|
+
* @param {boolean} [showHidden]
|
|
15211
15226
|
* @param {number} [page]
|
|
15212
15227
|
* @param {number} [limit]
|
|
15213
15228
|
* @param {Date} [lastRetrieved]
|
|
@@ -15215,8 +15230,8 @@ export class DealsApi extends BaseAPI {
|
|
|
15215
15230
|
* @throws {RequiredError}
|
|
15216
15231
|
* @memberof DealsApi
|
|
15217
15232
|
*/
|
|
15218
|
-
public apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15219
|
-
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15233
|
+
public apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15234
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15220
15235
|
}
|
|
15221
15236
|
|
|
15222
15237
|
/**
|
|
@@ -15224,12 +15239,13 @@ export class DealsApi extends BaseAPI {
|
|
|
15224
15239
|
* @summary Get DealPackage.
|
|
15225
15240
|
* @param {string} dealId
|
|
15226
15241
|
* @param {string} packageId
|
|
15242
|
+
* @param {string} [languageCode]
|
|
15227
15243
|
* @param {*} [options] Override http request option.
|
|
15228
15244
|
* @throws {RequiredError}
|
|
15229
15245
|
* @memberof DealsApi
|
|
15230
15246
|
*/
|
|
15231
|
-
public apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, options?: AxiosRequestConfig) {
|
|
15232
|
-
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options).then((request) => request(this.axios, this.basePath));
|
|
15247
|
+
public apiV2DealsDealIdPackagesPackageIdGet(dealId: string, packageId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
15248
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
15233
15249
|
}
|
|
15234
15250
|
|
|
15235
15251
|
/**
|