ch-api-client-typescript2 5.36.31 → 5.36.37

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.
@@ -0,0 +1,33 @@
1
+ /**
2
+ * CloudHospital Api
3
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: developer@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PagedListMetaData } from './paged-list-meta-data';
13
+ import { PromotionModel } from './promotion-model';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PromotionsModel
18
+ */
19
+ export interface PromotionsModel {
20
+ /**
21
+ *
22
+ * @type {Array<PromotionModel>}
23
+ * @memberof PromotionsModel
24
+ */
25
+ 'items'?: Array<PromotionModel> | null;
26
+ /**
27
+ *
28
+ * @type {PagedListMetaData}
29
+ * @memberof PromotionsModel
30
+ */
31
+ 'metaData'?: PagedListMetaData;
32
+ }
33
+ //# sourceMappingURL=promotions-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotions-model.d.ts","sourceRoot":"","sources":["../../src/models/promotions-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CloudHospital Api
6
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: developer@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ /**
2
+ * CloudHospital Api
3
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: developer@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WebAppMetadataModel
16
+ */
17
+ export interface WebAppMetadataModel {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebAppMetadataModel
22
+ */
23
+ 'id'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WebAppMetadataModel
28
+ */
29
+ 'hospitalId'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WebAppMetadataModel
34
+ */
35
+ 'colorPrimary'?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof WebAppMetadataModel
40
+ */
41
+ 'colorSecondary'?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof WebAppMetadataModel
46
+ */
47
+ 'colorNeutral'?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof WebAppMetadataModel
52
+ */
53
+ 'colorDark'?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof WebAppMetadataModel
58
+ */
59
+ 'colorLight'?: string | null;
60
+ }
61
+ //# sourceMappingURL=web-app-metadata-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-app-metadata-model.d.ts","sourceRoot":"","sources":["../../src/models/web-app-metadata-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CloudHospital Api
6
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: developer@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.36.31",
3
+ "version": "5.36.37",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,6 +34,7 @@ api/patients-api.ts
34
34
  api/plans-api.ts
35
35
  api/prescriptions-api.ts
36
36
  api/profiles-api.ts
37
+ api/promotions-api.ts
37
38
  api/search-curations-api.ts
38
39
  api/secure-containers-api.ts
39
40
  api/service-reviews-api.ts
@@ -348,6 +349,9 @@ models/prescription-symptom-model.ts
348
349
  models/prescriptions-model.ts
349
350
  models/problem-details.ts
350
351
  models/procedure.ts
352
+ models/promotion-model.ts
353
+ models/promotion-type.ts
354
+ models/promotions-model.ts
351
355
  models/recurring-interval.ts
352
356
  models/refund-appointment-command.ts
353
357
  models/refund-policy.ts
@@ -432,5 +436,6 @@ models/user-location-type.ts
432
436
  models/user-model.ts
433
437
  models/user-property.ts
434
438
  models/vonage-user.ts
439
+ models/web-app-metadata-model.ts
435
440
  models/working-day-item-model.ts
436
441
  models/working-day-model.ts
@@ -119,6 +119,8 @@ import { SnsHandleModel } from '../models';
119
119
  // @ts-ignore
120
120
  import { SnsType } from '../models';
121
121
  // @ts-ignore
122
+ import { WebAppMetadataModel } from '../models';
123
+ // @ts-ignore
122
124
  import { WorkingDayModel } from '../models';
123
125
  /**
124
126
  * HospitalsApi - axios parameter creator
@@ -3202,6 +3204,40 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3202
3204
 
3203
3205
 
3204
3206
 
3207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3209
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3210
+
3211
+ return {
3212
+ url: toPathString(localVarUrlObj),
3213
+ options: localVarRequestOptions,
3214
+ };
3215
+ },
3216
+ /**
3217
+ *
3218
+ * @summary Get hospital\'s webApp metadata by hospital id
3219
+ * @param {string} hospitalId
3220
+ * @param {*} [options] Override http request option.
3221
+ * @throws {RequiredError}
3222
+ */
3223
+ apiV2HospitalsHospitalIdWebappMetadataGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3224
+ // verify required parameter 'hospitalId' is not null or undefined
3225
+ assertParamExists('apiV2HospitalsHospitalIdWebappMetadataGet', 'hospitalId', hospitalId)
3226
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/webapp/metadata`
3227
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
3228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3230
+ let baseOptions;
3231
+ if (configuration) {
3232
+ baseOptions = configuration.baseOptions;
3233
+ }
3234
+
3235
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3236
+ const localVarHeaderParameter = {} as any;
3237
+ const localVarQueryParameter = {} as any;
3238
+
3239
+
3240
+
3205
3241
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3206
3242
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3207
3243
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3325,6 +3361,45 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3325
3361
 
3326
3362
 
3327
3363
 
3364
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3365
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3366
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3367
+
3368
+ return {
3369
+ url: toPathString(localVarUrlObj),
3370
+ options: localVarRequestOptions,
3371
+ };
3372
+ },
3373
+ /**
3374
+ *
3375
+ * @summary Get hospital\'s webapp metadata by hospital slug
3376
+ * @param {string} hospitalSlug
3377
+ * @param {string} [languageCode]
3378
+ * @param {*} [options] Override http request option.
3379
+ * @throws {RequiredError}
3380
+ */
3381
+ apiV2HospitalsHospitalSlugWebappMetadataGet: async (hospitalSlug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3382
+ // verify required parameter 'hospitalSlug' is not null or undefined
3383
+ assertParamExists('apiV2HospitalsHospitalSlugWebappMetadataGet', 'hospitalSlug', hospitalSlug)
3384
+ const localVarPath = `/api/v2/hospitals/{hospitalSlug}/webapp/metadata`
3385
+ .replace(`{${"hospitalSlug"}}`, encodeURIComponent(String(hospitalSlug)));
3386
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3388
+ let baseOptions;
3389
+ if (configuration) {
3390
+ baseOptions = configuration.baseOptions;
3391
+ }
3392
+
3393
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3394
+ const localVarHeaderParameter = {} as any;
3395
+ const localVarQueryParameter = {} as any;
3396
+
3397
+ if (languageCode !== undefined) {
3398
+ localVarQueryParameter['languageCode'] = languageCode;
3399
+ }
3400
+
3401
+
3402
+
3328
3403
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3329
3404
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3330
3405
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4349,6 +4424,17 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
4349
4424
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId, tagId, options);
4350
4425
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4351
4426
  },
4427
+ /**
4428
+ *
4429
+ * @summary Get hospital\'s webApp metadata by hospital id
4430
+ * @param {string} hospitalId
4431
+ * @param {*} [options] Override http request option.
4432
+ * @throws {RequiredError}
4433
+ */
4434
+ async apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppMetadataModel>> {
4435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId, options);
4436
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4437
+ },
4352
4438
  /**
4353
4439
  *
4354
4440
  * @summary Get all HospitalWorkingDays.
@@ -4381,6 +4467,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
4381
4467
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options);
4382
4468
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4383
4469
  },
4470
+ /**
4471
+ *
4472
+ * @summary Get hospital\'s webapp metadata by hospital slug
4473
+ * @param {string} hospitalSlug
4474
+ * @param {string} [languageCode]
4475
+ * @param {*} [options] Override http request option.
4476
+ * @throws {RequiredError}
4477
+ */
4478
+ async apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppMetadataModel>> {
4479
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug, languageCode, options);
4480
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4481
+ },
4384
4482
  /**
4385
4483
  *
4386
4484
  * @summary Get all Hospitals.
@@ -5212,6 +5310,16 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
5212
5310
  apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId: string, tagId: string, options?: any): AxiosPromise<HospitalTagModel> {
5213
5311
  return localVarFp.apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId, tagId, options).then((request) => request(axios, basePath));
5214
5312
  },
5313
+ /**
5314
+ *
5315
+ * @summary Get hospital\'s webApp metadata by hospital id
5316
+ * @param {string} hospitalId
5317
+ * @param {*} [options] Override http request option.
5318
+ * @throws {RequiredError}
5319
+ */
5320
+ apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId: string, options?: any): AxiosPromise<WebAppMetadataModel> {
5321
+ return localVarFp.apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId, options).then((request) => request(axios, basePath));
5322
+ },
5215
5323
  /**
5216
5324
  *
5217
5325
  * @summary Get all HospitalWorkingDays.
@@ -5242,6 +5350,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
5242
5350
  apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: any): AxiosPromise<WorkingDayModel> {
5243
5351
  return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(axios, basePath));
5244
5352
  },
5353
+ /**
5354
+ *
5355
+ * @summary Get hospital\'s webapp metadata by hospital slug
5356
+ * @param {string} hospitalSlug
5357
+ * @param {string} [languageCode]
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug: string, languageCode?: string, options?: any): AxiosPromise<WebAppMetadataModel> {
5362
+ return localVarFp.apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug, languageCode, options).then((request) => request(axios, basePath));
5363
+ },
5245
5364
  /**
5246
5365
  *
5247
5366
  * @summary Get all Hospitals.
@@ -7777,6 +7896,20 @@ export interface HospitalsApiApiV2HospitalsHospitalIdTagsTagIdGetRequest {
7777
7896
  readonly tagId: string
7778
7897
  }
7779
7898
 
7899
+ /**
7900
+ * Request parameters for apiV2HospitalsHospitalIdWebappMetadataGet operation in HospitalsApi.
7901
+ * @export
7902
+ * @interface HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest
7903
+ */
7904
+ export interface HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest {
7905
+ /**
7906
+ *
7907
+ * @type {string}
7908
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGet
7909
+ */
7910
+ readonly hospitalId: string
7911
+ }
7912
+
7780
7913
  /**
7781
7914
  * Request parameters for apiV2HospitalsHospitalIdWorkingdaysGet operation in HospitalsApi.
7782
7915
  * @export
@@ -7875,6 +8008,27 @@ export interface HospitalsApiApiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGetR
7875
8008
  readonly workingDayId: string
7876
8009
  }
7877
8010
 
8011
+ /**
8012
+ * Request parameters for apiV2HospitalsHospitalSlugWebappMetadataGet operation in HospitalsApi.
8013
+ * @export
8014
+ * @interface HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest
8015
+ */
8016
+ export interface HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest {
8017
+ /**
8018
+ *
8019
+ * @type {string}
8020
+ * @memberof HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGet
8021
+ */
8022
+ readonly hospitalSlug: string
8023
+
8024
+ /**
8025
+ *
8026
+ * @type {string}
8027
+ * @memberof HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGet
8028
+ */
8029
+ readonly languageCode?: string
8030
+ }
8031
+
7878
8032
  /**
7879
8033
  * Request parameters for apiV2HospitalsSimpleGet operation in HospitalsApi.
7880
8034
  * @export
@@ -8685,6 +8839,18 @@ export class HospitalsApi extends BaseAPI {
8685
8839
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdTagsTagIdGet(requestParameters.hospitalId, requestParameters.tagId, options).then((request) => request(this.axios, this.basePath));
8686
8840
  }
8687
8841
 
8842
+ /**
8843
+ *
8844
+ * @summary Get hospital\'s webApp metadata by hospital id
8845
+ * @param {HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest} requestParameters Request parameters.
8846
+ * @param {*} [options] Override http request option.
8847
+ * @throws {RequiredError}
8848
+ * @memberof HospitalsApi
8849
+ */
8850
+ public apiV2HospitalsHospitalIdWebappMetadataGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest, options?: AxiosRequestConfig) {
8851
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWebappMetadataGet(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
8852
+ }
8853
+
8688
8854
  /**
8689
8855
  *
8690
8856
  * @summary Get all HospitalWorkingDays.
@@ -8709,6 +8875,18 @@ export class HospitalsApi extends BaseAPI {
8709
8875
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(requestParameters.hospitalId, requestParameters.workingDayId, options).then((request) => request(this.axios, this.basePath));
8710
8876
  }
8711
8877
 
8878
+ /**
8879
+ *
8880
+ * @summary Get hospital\'s webapp metadata by hospital slug
8881
+ * @param {HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest} requestParameters Request parameters.
8882
+ * @param {*} [options] Override http request option.
8883
+ * @throws {RequiredError}
8884
+ * @memberof HospitalsApi
8885
+ */
8886
+ public apiV2HospitalsHospitalSlugWebappMetadataGet(requestParameters: HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest, options?: AxiosRequestConfig) {
8887
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalSlugWebappMetadataGet(requestParameters.hospitalSlug, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
8888
+ }
8889
+
8712
8890
  /**
8713
8891
  *
8714
8892
  * @summary Get all Hospitals.
@@ -0,0 +1,216 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CloudHospital Api
5
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: developer@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { PromotionType } from '../models';
25
+ // @ts-ignore
26
+ import { PromotionsModel } from '../models';
27
+ /**
28
+ * PromotionsApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PromotionsApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Get promotions
36
+ * @param {string} [languageCode]
37
+ * @param {string} [hospitalId]
38
+ * @param {PromotionType} [promotionType]
39
+ * @param {number} [page]
40
+ * @param {number} [limit]
41
+ * @param {Date} [lastRetrieved]
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ apiV2PromotionsGet: async (languageCode?: string, hospitalId?: string, promotionType?: PromotionType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ const localVarPath = `/api/v2/promotions`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+
54
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
55
+ const localVarHeaderParameter = {} as any;
56
+ const localVarQueryParameter = {} as any;
57
+
58
+ if (languageCode !== undefined) {
59
+ localVarQueryParameter['LanguageCode'] = languageCode;
60
+ }
61
+
62
+ if (hospitalId !== undefined) {
63
+ localVarQueryParameter['HospitalId'] = hospitalId;
64
+ }
65
+
66
+ if (promotionType !== undefined) {
67
+ localVarQueryParameter['PromotionType'] = promotionType;
68
+ }
69
+
70
+ if (page !== undefined) {
71
+ localVarQueryParameter['page'] = page;
72
+ }
73
+
74
+ if (limit !== undefined) {
75
+ localVarQueryParameter['limit'] = limit;
76
+ }
77
+
78
+ if (lastRetrieved !== undefined) {
79
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
80
+ (lastRetrieved as any).toISOString() :
81
+ lastRetrieved;
82
+ }
83
+
84
+
85
+
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
89
+
90
+ return {
91
+ url: toPathString(localVarUrlObj),
92
+ options: localVarRequestOptions,
93
+ };
94
+ },
95
+ }
96
+ };
97
+
98
+ /**
99
+ * PromotionsApi - functional programming interface
100
+ * @export
101
+ */
102
+ export const PromotionsApiFp = function(configuration?: Configuration) {
103
+ const localVarAxiosParamCreator = PromotionsApiAxiosParamCreator(configuration)
104
+ return {
105
+ /**
106
+ *
107
+ * @summary Get promotions
108
+ * @param {string} [languageCode]
109
+ * @param {string} [hospitalId]
110
+ * @param {PromotionType} [promotionType]
111
+ * @param {number} [page]
112
+ * @param {number} [limit]
113
+ * @param {Date} [lastRetrieved]
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ async apiV2PromotionsGet(languageCode?: string, hospitalId?: string, promotionType?: PromotionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsModel>> {
118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2PromotionsGet(languageCode, hospitalId, promotionType, page, limit, lastRetrieved, options);
119
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
120
+ },
121
+ }
122
+ };
123
+
124
+ /**
125
+ * PromotionsApi - factory interface
126
+ * @export
127
+ */
128
+ export const PromotionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
129
+ const localVarFp = PromotionsApiFp(configuration)
130
+ return {
131
+ /**
132
+ *
133
+ * @summary Get promotions
134
+ * @param {string} [languageCode]
135
+ * @param {string} [hospitalId]
136
+ * @param {PromotionType} [promotionType]
137
+ * @param {number} [page]
138
+ * @param {number} [limit]
139
+ * @param {Date} [lastRetrieved]
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ apiV2PromotionsGet(languageCode?: string, hospitalId?: string, promotionType?: PromotionType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PromotionsModel> {
144
+ return localVarFp.apiV2PromotionsGet(languageCode, hospitalId, promotionType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
145
+ },
146
+ };
147
+ };
148
+
149
+ /**
150
+ * Request parameters for apiV2PromotionsGet operation in PromotionsApi.
151
+ * @export
152
+ * @interface PromotionsApiApiV2PromotionsGetRequest
153
+ */
154
+ export interface PromotionsApiApiV2PromotionsGetRequest {
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof PromotionsApiApiV2PromotionsGet
159
+ */
160
+ readonly languageCode?: string
161
+
162
+ /**
163
+ *
164
+ * @type {string}
165
+ * @memberof PromotionsApiApiV2PromotionsGet
166
+ */
167
+ readonly hospitalId?: string
168
+
169
+ /**
170
+ *
171
+ * @type {PromotionType}
172
+ * @memberof PromotionsApiApiV2PromotionsGet
173
+ */
174
+ readonly promotionType?: PromotionType
175
+
176
+ /**
177
+ *
178
+ * @type {number}
179
+ * @memberof PromotionsApiApiV2PromotionsGet
180
+ */
181
+ readonly page?: number
182
+
183
+ /**
184
+ *
185
+ * @type {number}
186
+ * @memberof PromotionsApiApiV2PromotionsGet
187
+ */
188
+ readonly limit?: number
189
+
190
+ /**
191
+ *
192
+ * @type {Date}
193
+ * @memberof PromotionsApiApiV2PromotionsGet
194
+ */
195
+ readonly lastRetrieved?: Date
196
+ }
197
+
198
+ /**
199
+ * PromotionsApi - object-oriented interface
200
+ * @export
201
+ * @class PromotionsApi
202
+ * @extends {BaseAPI}
203
+ */
204
+ export class PromotionsApi extends BaseAPI {
205
+ /**
206
+ *
207
+ * @summary Get promotions
208
+ * @param {PromotionsApiApiV2PromotionsGetRequest} requestParameters Request parameters.
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ * @memberof PromotionsApi
212
+ */
213
+ public apiV2PromotionsGet(requestParameters: PromotionsApiApiV2PromotionsGetRequest = {}, options?: AxiosRequestConfig) {
214
+ return PromotionsApiFp(this.configuration).apiV2PromotionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.promotionType, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
215
+ }
216
+ }
package/src/api.ts CHANGED
@@ -46,6 +46,7 @@ export * from './api/patients-api';
46
46
  export * from './api/plans-api';
47
47
  export * from './api/prescriptions-api';
48
48
  export * from './api/profiles-api';
49
+ export * from './api/promotions-api';
49
50
  export * from './api/search-curations-api';
50
51
  export * from './api/secure-containers-api';
51
52
  export * from './api/service-reviews-api';
@@ -295,6 +295,9 @@ export * from './prescription-symptom-model';
295
295
  export * from './prescriptions-model';
296
296
  export * from './problem-details';
297
297
  export * from './procedure';
298
+ export * from './promotion-model';
299
+ export * from './promotion-type';
300
+ export * from './promotions-model';
298
301
  export * from './recurring-interval';
299
302
  export * from './refund-appointment-command';
300
303
  export * from './refund-policy';
@@ -379,5 +382,6 @@ export * from './user-location-type';
379
382
  export * from './user-model';
380
383
  export * from './user-property';
381
384
  export * from './vonage-user';
385
+ export * from './web-app-metadata-model';
382
386
  export * from './working-day-item-model';
383
387
  export * from './working-day-model';