ch-api-client-typescript2 4.0.7 → 4.1.0
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 +153 -59
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +288 -108
- package/package.json +1 -1
- package/src/api.ts +289 -108
package/package.json
CHANGED
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
|
*
|
|
@@ -3081,6 +3081,12 @@ export interface DealItemModel {
|
|
|
3081
3081
|
* @memberof DealItemModel
|
|
3082
3082
|
*/
|
|
3083
3083
|
'slug'?: string | null;
|
|
3084
|
+
/**
|
|
3085
|
+
*
|
|
3086
|
+
* @type {string}
|
|
3087
|
+
* @memberof DealItemModel
|
|
3088
|
+
*/
|
|
3089
|
+
'description'?: string | null;
|
|
3084
3090
|
/**
|
|
3085
3091
|
*
|
|
3086
3092
|
* @type {boolean}
|
|
@@ -3215,6 +3221,12 @@ export interface DealModel {
|
|
|
3215
3221
|
* @memberof DealModel
|
|
3216
3222
|
*/
|
|
3217
3223
|
'slug'?: string | null;
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @type {string}
|
|
3227
|
+
* @memberof DealModel
|
|
3228
|
+
*/
|
|
3229
|
+
'description'?: string | null;
|
|
3218
3230
|
/**
|
|
3219
3231
|
*
|
|
3220
3232
|
* @type {boolean}
|
|
@@ -3286,19 +3298,19 @@ export interface DealModel {
|
|
|
3286
3298
|
* @type {string}
|
|
3287
3299
|
* @memberof DealModel
|
|
3288
3300
|
*/
|
|
3289
|
-
'
|
|
3301
|
+
'overview'?: string | null;
|
|
3290
3302
|
/**
|
|
3291
3303
|
*
|
|
3292
3304
|
* @type {string}
|
|
3293
3305
|
* @memberof DealModel
|
|
3294
3306
|
*/
|
|
3295
|
-
'
|
|
3307
|
+
'content'?: string | null;
|
|
3296
3308
|
/**
|
|
3297
3309
|
*
|
|
3298
|
-
* @type {
|
|
3310
|
+
* @type {Array<LocalizedUrlModel>}
|
|
3299
3311
|
* @memberof DealModel
|
|
3300
3312
|
*/
|
|
3301
|
-
'
|
|
3313
|
+
'localizedUrls'?: Array<LocalizedUrlModel> | null;
|
|
3302
3314
|
/**
|
|
3303
3315
|
*
|
|
3304
3316
|
* @type {number}
|
|
@@ -11961,6 +11973,40 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
11961
11973
|
|
|
11962
11974
|
|
|
11963
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
|
+
|
|
11964
12010
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11965
12011
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11966
12012
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12069,16 +12115,13 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12069
12115
|
},
|
|
12070
12116
|
/**
|
|
12071
12117
|
*
|
|
12072
|
-
* @summary
|
|
12073
|
-
* @param {
|
|
12118
|
+
* @summary Update chatUser.
|
|
12119
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12074
12120
|
* @param {*} [options] Override http request option.
|
|
12075
12121
|
* @throws {RequiredError}
|
|
12076
12122
|
*/
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
assertParamExists('apiV2ChatusersUserIdDelete', 'userId', userId)
|
|
12080
|
-
const localVarPath = `/api/v2/chatusers/{userId}`
|
|
12081
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
12123
|
+
apiV2ChatusersPut: async (updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12124
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
12082
12125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12083
12126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12084
12127
|
let baseOptions;
|
|
@@ -12086,7 +12129,7 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12086
12129
|
baseOptions = configuration.baseOptions;
|
|
12087
12130
|
}
|
|
12088
12131
|
|
|
12089
|
-
const localVarRequestOptions = { method: '
|
|
12132
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12090
12133
|
const localVarHeaderParameter = {} as any;
|
|
12091
12134
|
const localVarQueryParameter = {} as any;
|
|
12092
12135
|
|
|
@@ -12096,9 +12139,12 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12096
12139
|
|
|
12097
12140
|
|
|
12098
12141
|
|
|
12142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12143
|
+
|
|
12099
12144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12100
12145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12101
12146
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12147
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
|
|
12102
12148
|
|
|
12103
12149
|
return {
|
|
12104
12150
|
url: toPathString(localVarUrlObj),
|
|
@@ -12138,48 +12184,6 @@ export const ChatUsersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12138
12184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12139
12185
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12140
12186
|
|
|
12141
|
-
return {
|
|
12142
|
-
url: toPathString(localVarUrlObj),
|
|
12143
|
-
options: localVarRequestOptions,
|
|
12144
|
-
};
|
|
12145
|
-
},
|
|
12146
|
-
/**
|
|
12147
|
-
*
|
|
12148
|
-
* @summary Update chatUser.
|
|
12149
|
-
* @param {string} userId
|
|
12150
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12151
|
-
* @param {*} [options] Override http request option.
|
|
12152
|
-
* @throws {RequiredError}
|
|
12153
|
-
*/
|
|
12154
|
-
apiV2ChatusersUserIdPut: async (userId: string, updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12155
|
-
// verify required parameter 'userId' is not null or undefined
|
|
12156
|
-
assertParamExists('apiV2ChatusersUserIdPut', 'userId', userId)
|
|
12157
|
-
const localVarPath = `/api/v2/chatusers/{userId}`
|
|
12158
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
12159
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12160
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12161
|
-
let baseOptions;
|
|
12162
|
-
if (configuration) {
|
|
12163
|
-
baseOptions = configuration.baseOptions;
|
|
12164
|
-
}
|
|
12165
|
-
|
|
12166
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12167
|
-
const localVarHeaderParameter = {} as any;
|
|
12168
|
-
const localVarQueryParameter = {} as any;
|
|
12169
|
-
|
|
12170
|
-
// authentication oauth2 required
|
|
12171
|
-
// oauth required
|
|
12172
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12177
|
-
|
|
12178
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12179
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12180
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12181
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateChatUserCommand, localVarRequestOptions, configuration)
|
|
12182
|
-
|
|
12183
12187
|
return {
|
|
12184
12188
|
url: toPathString(localVarUrlObj),
|
|
12185
12189
|
options: localVarRequestOptions,
|
|
@@ -12204,6 +12208,16 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12204
12208
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersCurrentGet(options);
|
|
12205
12209
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12206
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
|
+
},
|
|
12207
12221
|
/**
|
|
12208
12222
|
*
|
|
12209
12223
|
* @summary Get all chatUsers.
|
|
@@ -12232,13 +12246,13 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12232
12246
|
},
|
|
12233
12247
|
/**
|
|
12234
12248
|
*
|
|
12235
|
-
* @summary
|
|
12236
|
-
* @param {
|
|
12249
|
+
* @summary Update chatUser.
|
|
12250
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12237
12251
|
* @param {*} [options] Override http request option.
|
|
12238
12252
|
* @throws {RequiredError}
|
|
12239
12253
|
*/
|
|
12240
|
-
async
|
|
12241
|
-
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);
|
|
12242
12256
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12243
12257
|
},
|
|
12244
12258
|
/**
|
|
@@ -12252,18 +12266,6 @@ export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
12252
12266
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdGet(userId, options);
|
|
12253
12267
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12254
12268
|
},
|
|
12255
|
-
/**
|
|
12256
|
-
*
|
|
12257
|
-
* @summary Update chatUser.
|
|
12258
|
-
* @param {string} userId
|
|
12259
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12260
|
-
* @param {*} [options] Override http request option.
|
|
12261
|
-
* @throws {RequiredError}
|
|
12262
|
-
*/
|
|
12263
|
-
async apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
12264
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options);
|
|
12265
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12266
|
-
},
|
|
12267
12269
|
}
|
|
12268
12270
|
};
|
|
12269
12271
|
|
|
@@ -12282,6 +12284,15 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12282
12284
|
apiV2ChatusersCurrentGet(options?: any): AxiosPromise<ChatUserModel> {
|
|
12283
12285
|
return localVarFp.apiV2ChatusersCurrentGet(options).then((request) => request(axios, basePath));
|
|
12284
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
|
+
},
|
|
12285
12296
|
/**
|
|
12286
12297
|
*
|
|
12287
12298
|
* @summary Get all chatUsers.
|
|
@@ -12308,13 +12319,13 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12308
12319
|
},
|
|
12309
12320
|
/**
|
|
12310
12321
|
*
|
|
12311
|
-
* @summary
|
|
12312
|
-
* @param {
|
|
12322
|
+
* @summary Update chatUser.
|
|
12323
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12313
12324
|
* @param {*} [options] Override http request option.
|
|
12314
12325
|
* @throws {RequiredError}
|
|
12315
12326
|
*/
|
|
12316
|
-
|
|
12317
|
-
return localVarFp.
|
|
12327
|
+
apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
12328
|
+
return localVarFp.apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
12318
12329
|
},
|
|
12319
12330
|
/**
|
|
12320
12331
|
*
|
|
@@ -12326,17 +12337,6 @@ export const ChatUsersApiFactory = function (configuration?: Configuration, base
|
|
|
12326
12337
|
apiV2ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel> {
|
|
12327
12338
|
return localVarFp.apiV2ChatusersUserIdGet(userId, options).then((request) => request(axios, basePath));
|
|
12328
12339
|
},
|
|
12329
|
-
/**
|
|
12330
|
-
*
|
|
12331
|
-
* @summary Update chatUser.
|
|
12332
|
-
* @param {string} userId
|
|
12333
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12334
|
-
* @param {*} [options] Override http request option.
|
|
12335
|
-
* @throws {RequiredError}
|
|
12336
|
-
*/
|
|
12337
|
-
apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
12338
|
-
return localVarFp.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
12339
|
-
},
|
|
12340
12340
|
};
|
|
12341
12341
|
};
|
|
12342
12342
|
|
|
@@ -12357,6 +12357,17 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12357
12357
|
return ChatUsersApiFp(this.configuration).apiV2ChatusersCurrentGet(options).then((request) => request(this.axios, this.basePath));
|
|
12358
12358
|
}
|
|
12359
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
|
+
|
|
12360
12371
|
/**
|
|
12361
12372
|
*
|
|
12362
12373
|
* @summary Get all chatUsers.
|
|
@@ -12387,14 +12398,14 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12387
12398
|
|
|
12388
12399
|
/**
|
|
12389
12400
|
*
|
|
12390
|
-
* @summary
|
|
12391
|
-
* @param {
|
|
12401
|
+
* @summary Update chatUser.
|
|
12402
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12392
12403
|
* @param {*} [options] Override http request option.
|
|
12393
12404
|
* @throws {RequiredError}
|
|
12394
12405
|
* @memberof ChatUsersApi
|
|
12395
12406
|
*/
|
|
12396
|
-
public
|
|
12397
|
-
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));
|
|
12398
12409
|
}
|
|
12399
12410
|
|
|
12400
12411
|
/**
|
|
@@ -12408,19 +12419,6 @@ export class ChatUsersApi extends BaseAPI {
|
|
|
12408
12419
|
public apiV2ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig) {
|
|
12409
12420
|
return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
|
|
12410
12421
|
}
|
|
12411
|
-
|
|
12412
|
-
/**
|
|
12413
|
-
*
|
|
12414
|
-
* @summary Update chatUser.
|
|
12415
|
-
* @param {string} userId
|
|
12416
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
12417
|
-
* @param {*} [options] Override http request option.
|
|
12418
|
-
* @throws {RequiredError}
|
|
12419
|
-
* @memberof ChatUsersApi
|
|
12420
|
-
*/
|
|
12421
|
-
public apiV2ChatusersUserIdPut(userId: string, updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
|
|
12422
|
-
return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12423
|
-
}
|
|
12424
12422
|
}
|
|
12425
12423
|
|
|
12426
12424
|
|
|
@@ -15368,6 +15366,105 @@ export class DealsApi extends BaseAPI {
|
|
|
15368
15366
|
*/
|
|
15369
15367
|
export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15370
15368
|
return {
|
|
15369
|
+
/**
|
|
15370
|
+
*
|
|
15371
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
15372
|
+
* @param {string} doctorAffiliationId
|
|
15373
|
+
* @param {string} [id]
|
|
15374
|
+
* @param {MediaType} [mediaType]
|
|
15375
|
+
* @param {number} [page]
|
|
15376
|
+
* @param {number} [limit]
|
|
15377
|
+
* @param {Date} [lastRetrieved]
|
|
15378
|
+
* @param {*} [options] Override http request option.
|
|
15379
|
+
* @throws {RequiredError}
|
|
15380
|
+
*/
|
|
15381
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet: async (doctorAffiliationId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15382
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
15383
|
+
assertParamExists('apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet', 'doctorAffiliationId', doctorAffiliationId)
|
|
15384
|
+
const localVarPath = `/api/v2/doctoraffiliations/{doctorAffiliationId}/medias`
|
|
15385
|
+
.replace(`{${"doctorAffiliationId"}}`, encodeURIComponent(String(doctorAffiliationId)));
|
|
15386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15387
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15388
|
+
let baseOptions;
|
|
15389
|
+
if (configuration) {
|
|
15390
|
+
baseOptions = configuration.baseOptions;
|
|
15391
|
+
}
|
|
15392
|
+
|
|
15393
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15394
|
+
const localVarHeaderParameter = {} as any;
|
|
15395
|
+
const localVarQueryParameter = {} as any;
|
|
15396
|
+
|
|
15397
|
+
if (id !== undefined) {
|
|
15398
|
+
localVarQueryParameter['Id'] = id;
|
|
15399
|
+
}
|
|
15400
|
+
|
|
15401
|
+
if (mediaType !== undefined) {
|
|
15402
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
15403
|
+
}
|
|
15404
|
+
|
|
15405
|
+
if (page !== undefined) {
|
|
15406
|
+
localVarQueryParameter['page'] = page;
|
|
15407
|
+
}
|
|
15408
|
+
|
|
15409
|
+
if (limit !== undefined) {
|
|
15410
|
+
localVarQueryParameter['limit'] = limit;
|
|
15411
|
+
}
|
|
15412
|
+
|
|
15413
|
+
if (lastRetrieved !== undefined) {
|
|
15414
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
15415
|
+
(lastRetrieved as any).toISOString() :
|
|
15416
|
+
lastRetrieved;
|
|
15417
|
+
}
|
|
15418
|
+
|
|
15419
|
+
|
|
15420
|
+
|
|
15421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15423
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15424
|
+
|
|
15425
|
+
return {
|
|
15426
|
+
url: toPathString(localVarUrlObj),
|
|
15427
|
+
options: localVarRequestOptions,
|
|
15428
|
+
};
|
|
15429
|
+
},
|
|
15430
|
+
/**
|
|
15431
|
+
*
|
|
15432
|
+
* @summary Get DoctorAffiliationMedia.
|
|
15433
|
+
* @param {string} doctorAffiliationId
|
|
15434
|
+
* @param {string} mediaId
|
|
15435
|
+
* @param {*} [options] Override http request option.
|
|
15436
|
+
* @throws {RequiredError}
|
|
15437
|
+
*/
|
|
15438
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet: async (doctorAffiliationId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15439
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
15440
|
+
assertParamExists('apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'doctorAffiliationId', doctorAffiliationId)
|
|
15441
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
15442
|
+
assertParamExists('apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
15443
|
+
const localVarPath = `/api/v2/doctoraffiliations/{doctorAffiliationId}/medias/{mediaId}`
|
|
15444
|
+
.replace(`{${"doctorAffiliationId"}}`, encodeURIComponent(String(doctorAffiliationId)))
|
|
15445
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
15446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15447
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15448
|
+
let baseOptions;
|
|
15449
|
+
if (configuration) {
|
|
15450
|
+
baseOptions = configuration.baseOptions;
|
|
15451
|
+
}
|
|
15452
|
+
|
|
15453
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15454
|
+
const localVarHeaderParameter = {} as any;
|
|
15455
|
+
const localVarQueryParameter = {} as any;
|
|
15456
|
+
|
|
15457
|
+
|
|
15458
|
+
|
|
15459
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15460
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15461
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15462
|
+
|
|
15463
|
+
return {
|
|
15464
|
+
url: toPathString(localVarUrlObj),
|
|
15465
|
+
options: localVarRequestOptions,
|
|
15466
|
+
};
|
|
15467
|
+
},
|
|
15371
15468
|
/**
|
|
15372
15469
|
*
|
|
15373
15470
|
* @summary Get all doctor affiliations.
|
|
@@ -15547,6 +15644,34 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
|
|
|
15547
15644
|
export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
15548
15645
|
const localVarAxiosParamCreator = DoctorAffiliationsApiAxiosParamCreator(configuration)
|
|
15549
15646
|
return {
|
|
15647
|
+
/**
|
|
15648
|
+
*
|
|
15649
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
15650
|
+
* @param {string} doctorAffiliationId
|
|
15651
|
+
* @param {string} [id]
|
|
15652
|
+
* @param {MediaType} [mediaType]
|
|
15653
|
+
* @param {number} [page]
|
|
15654
|
+
* @param {number} [limit]
|
|
15655
|
+
* @param {Date} [lastRetrieved]
|
|
15656
|
+
* @param {*} [options] Override http request option.
|
|
15657
|
+
* @throws {RequiredError}
|
|
15658
|
+
*/
|
|
15659
|
+
async apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
15660
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options);
|
|
15661
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15662
|
+
},
|
|
15663
|
+
/**
|
|
15664
|
+
*
|
|
15665
|
+
* @summary Get DoctorAffiliationMedia.
|
|
15666
|
+
* @param {string} doctorAffiliationId
|
|
15667
|
+
* @param {string} mediaId
|
|
15668
|
+
* @param {*} [options] Override http request option.
|
|
15669
|
+
* @throws {RequiredError}
|
|
15670
|
+
*/
|
|
15671
|
+
async apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
15672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options);
|
|
15673
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15674
|
+
},
|
|
15550
15675
|
/**
|
|
15551
15676
|
*
|
|
15552
15677
|
* @summary Get all doctor affiliations.
|
|
@@ -15602,6 +15727,32 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
|
15602
15727
|
export const DoctorAffiliationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
15603
15728
|
const localVarFp = DoctorAffiliationsApiFp(configuration)
|
|
15604
15729
|
return {
|
|
15730
|
+
/**
|
|
15731
|
+
*
|
|
15732
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
15733
|
+
* @param {string} doctorAffiliationId
|
|
15734
|
+
* @param {string} [id]
|
|
15735
|
+
* @param {MediaType} [mediaType]
|
|
15736
|
+
* @param {number} [page]
|
|
15737
|
+
* @param {number} [limit]
|
|
15738
|
+
* @param {Date} [lastRetrieved]
|
|
15739
|
+
* @param {*} [options] Override http request option.
|
|
15740
|
+
* @throws {RequiredError}
|
|
15741
|
+
*/
|
|
15742
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
15743
|
+
return localVarFp.apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
15744
|
+
},
|
|
15745
|
+
/**
|
|
15746
|
+
*
|
|
15747
|
+
* @summary Get DoctorAffiliationMedia.
|
|
15748
|
+
* @param {string} doctorAffiliationId
|
|
15749
|
+
* @param {string} mediaId
|
|
15750
|
+
* @param {*} [options] Override http request option.
|
|
15751
|
+
* @throws {RequiredError}
|
|
15752
|
+
*/
|
|
15753
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
15754
|
+
return localVarFp.apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then((request) => request(axios, basePath));
|
|
15755
|
+
},
|
|
15605
15756
|
/**
|
|
15606
15757
|
*
|
|
15607
15758
|
* @summary Get all doctor affiliations.
|
|
@@ -15654,6 +15805,36 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
|
|
|
15654
15805
|
* @extends {BaseAPI}
|
|
15655
15806
|
*/
|
|
15656
15807
|
export class DoctorAffiliationsApi extends BaseAPI {
|
|
15808
|
+
/**
|
|
15809
|
+
*
|
|
15810
|
+
* @summary Get all DoctorAffiliationMedias.
|
|
15811
|
+
* @param {string} doctorAffiliationId
|
|
15812
|
+
* @param {string} [id]
|
|
15813
|
+
* @param {MediaType} [mediaType]
|
|
15814
|
+
* @param {number} [page]
|
|
15815
|
+
* @param {number} [limit]
|
|
15816
|
+
* @param {Date} [lastRetrieved]
|
|
15817
|
+
* @param {*} [options] Override http request option.
|
|
15818
|
+
* @throws {RequiredError}
|
|
15819
|
+
* @memberof DoctorAffiliationsApi
|
|
15820
|
+
*/
|
|
15821
|
+
public apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15822
|
+
return DoctorAffiliationsApiFp(this.configuration).apiV2DoctoraffiliationsDoctorAffiliationIdMediasGet(doctorAffiliationId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
15823
|
+
}
|
|
15824
|
+
|
|
15825
|
+
/**
|
|
15826
|
+
*
|
|
15827
|
+
* @summary Get DoctorAffiliationMedia.
|
|
15828
|
+
* @param {string} doctorAffiliationId
|
|
15829
|
+
* @param {string} mediaId
|
|
15830
|
+
* @param {*} [options] Override http request option.
|
|
15831
|
+
* @throws {RequiredError}
|
|
15832
|
+
* @memberof DoctorAffiliationsApi
|
|
15833
|
+
*/
|
|
15834
|
+
public apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
15835
|
+
return DoctorAffiliationsApiFp(this.configuration).apiV2DoctoraffiliationsDoctorAffiliationIdMediasMediaIdGet(doctorAffiliationId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
15836
|
+
}
|
|
15837
|
+
|
|
15657
15838
|
/**
|
|
15658
15839
|
*
|
|
15659
15840
|
* @summary Get all doctor affiliations.
|