ch-api-client-typescript2 5.0.3 → 5.0.5
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/articles-api.d.ts +16 -7
- package/lib/api/articles-api.d.ts.map +1 -1
- package/lib/api/articles-api.js +16 -10
- package/lib/api/contributors-api.d.ts +12 -3
- package/lib/api/contributors-api.d.ts.map +1 -1
- package/lib/api/contributors-api.js +12 -6
- package/lib/api/countries-api.d.ts +16 -7
- package/lib/api/countries-api.d.ts.map +1 -1
- package/lib/api/countries-api.js +16 -10
- package/lib/api/deals-api.d.ts +12 -3
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +12 -6
- package/lib/api/hospitals-api.d.ts +56 -17
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +56 -26
- package/lib/api/services-api.d.ts +20 -11
- package/lib/api/services-api.d.ts.map +1 -1
- package/lib/api/services-api.js +20 -14
- package/lib/api/specialties-api.d.ts +20 -11
- package/lib/api/specialties-api.d.ts.map +1 -1
- package/lib/api/specialties-api.js +20 -14
- package/lib/api/specialty-types-api.d.ts +20 -11
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +20 -14
- package/lib/models/accreditation-document-model.d.ts +37 -0
- package/lib/models/accreditation-document-model.d.ts.map +1 -0
- package/lib/models/accreditation-document-model.js +15 -0
- package/lib/models/appointment-option-document-model.d.ts +49 -0
- package/lib/models/appointment-option-document-model.d.ts.map +1 -0
- package/lib/models/appointment-option-document-model.js +15 -0
- package/lib/models/article-contributor-document-model.d.ts +38 -0
- package/lib/models/article-contributor-document-model.d.ts.map +1 -0
- package/lib/models/article-contributor-document-model.js +15 -0
- package/lib/models/article-document-model.d.ts +101 -0
- package/lib/models/article-document-model.d.ts.map +1 -0
- package/lib/models/article-document-model.js +15 -0
- package/lib/models/contributor-document-model.d.ts +52 -0
- package/lib/models/contributor-document-model.d.ts.map +1 -0
- package/lib/models/contributor-document-model.js +15 -0
- package/lib/models/contributor-sub-document-model.d.ts +32 -0
- package/lib/models/contributor-sub-document-model.d.ts.map +1 -0
- package/lib/models/contributor-sub-document-model.js +15 -0
- package/lib/models/coordinate-system.d.ts +37 -0
- package/lib/models/coordinate-system.d.ts.map +1 -0
- package/lib/models/coordinate-system.js +15 -0
- package/lib/models/country-document-model.d.ts +63 -0
- package/lib/models/country-document-model.d.ts.map +1 -0
- package/lib/models/country-document-model.js +15 -0
- package/lib/models/country-sub-document-model.d.ts +32 -0
- package/lib/models/country-sub-document-model.d.ts.map +1 -0
- package/lib/models/country-sub-document-model.js +15 -0
- package/lib/models/deal-document-model.d.ts +103 -0
- package/lib/models/deal-document-model.d.ts.map +1 -0
- package/lib/models/deal-document-model.js +15 -0
- package/lib/models/department-document-model.d.ts +69 -0
- package/lib/models/department-document-model.d.ts.map +1 -0
- package/lib/models/department-document-model.js +15 -0
- package/lib/models/department-sub-document-model.d.ts +38 -0
- package/lib/models/department-sub-document-model.d.ts.map +1 -0
- package/lib/models/department-sub-document-model.js +15 -0
- package/lib/models/doctor-certificate-sub-document-model.d.ts +43 -0
- package/lib/models/doctor-certificate-sub-document-model.d.ts.map +1 -0
- package/lib/models/doctor-certificate-sub-document-model.js +15 -0
- package/lib/models/doctor-document-model.d.ts +116 -0
- package/lib/models/doctor-document-model.d.ts.map +1 -0
- package/lib/models/doctor-document-model.js +15 -0
- package/lib/models/doctor-specialty-sub-document-model.d.ts +32 -0
- package/lib/models/doctor-specialty-sub-document-model.d.ts.map +1 -0
- package/lib/models/doctor-specialty-sub-document-model.js +15 -0
- package/lib/models/faq-category-document-model.d.ts +45 -0
- package/lib/models/faq-category-document-model.d.ts.map +1 -0
- package/lib/models/faq-category-document-model.js +15 -0
- package/lib/models/faq-category-sub-document-model.d.ts +38 -0
- package/lib/models/faq-category-sub-document-model.d.ts.map +1 -0
- package/lib/models/faq-category-sub-document-model.js +15 -0
- package/lib/models/faq-document-model.d.ts +46 -0
- package/lib/models/faq-document-model.d.ts.map +1 -0
- package/lib/models/faq-document-model.js +15 -0
- package/lib/models/geography-point.d.ts +56 -0
- package/lib/models/geography-point.d.ts.map +1 -0
- package/lib/models/geography-point.js +15 -0
- package/lib/models/hospital-document-model.d.ts +165 -0
- package/lib/models/hospital-document-model.d.ts.map +1 -0
- package/lib/models/hospital-document-model.js +15 -0
- package/lib/models/hospital-specialty-document-model.d.ts +103 -0
- package/lib/models/hospital-specialty-document-model.d.ts.map +1 -0
- package/lib/models/hospital-specialty-document-model.js +15 -0
- package/lib/models/hospital-specialty-sub-document-model.d.ts +44 -0
- package/lib/models/hospital-specialty-sub-document-model.d.ts.map +1 -0
- package/lib/models/hospital-specialty-sub-document-model.js +15 -0
- package/lib/models/hospital-sub-document-model.d.ts +44 -0
- package/lib/models/hospital-sub-document-model.d.ts.map +1 -0
- package/lib/models/hospital-sub-document-model.js +15 -0
- package/lib/models/index.d.ts +35 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +35 -0
- package/lib/models/location-document-model.d.ts +62 -0
- package/lib/models/location-document-model.d.ts.map +1 -0
- package/lib/models/location-document-model.js +15 -0
- package/lib/models/media-document-model.d.ts +61 -0
- package/lib/models/media-document-model.d.ts.map +1 -0
- package/lib/models/media-document-model.js +15 -0
- package/lib/models/package-sub-document-model.d.ts +50 -0
- package/lib/models/package-sub-document-model.d.ts.map +1 -0
- package/lib/models/package-sub-document-model.js +15 -0
- package/lib/models/service-document-model.d.ts +89 -0
- package/lib/models/service-document-model.d.ts.map +1 -0
- package/lib/models/service-document-model.js +15 -0
- package/lib/models/service-sub-document-model.d.ts +32 -0
- package/lib/models/service-sub-document-model.d.ts.map +1 -0
- package/lib/models/service-sub-document-model.js +15 -0
- package/lib/models/sns-handle-document-model.d.ts +31 -0
- package/lib/models/sns-handle-document-model.d.ts.map +1 -0
- package/lib/models/sns-handle-document-model.js +15 -0
- package/lib/models/specialty-document-model.d.ts +70 -0
- package/lib/models/specialty-document-model.d.ts.map +1 -0
- package/lib/models/specialty-document-model.js +15 -0
- package/lib/models/specialty-sub-document-model.d.ts +32 -0
- package/lib/models/specialty-sub-document-model.d.ts.map +1 -0
- package/lib/models/specialty-sub-document-model.js +15 -0
- package/lib/models/tag-document-model.d.ts +31 -0
- package/lib/models/tag-document-model.d.ts.map +1 -0
- package/lib/models/tag-document-model.js +15 -0
- package/lib/models/translation-document-model.d.ts +61 -0
- package/lib/models/translation-document-model.d.ts.map +1 -0
- package/lib/models/translation-document-model.js +15 -0
- package/lib/models/translation-item-document-model.d.ts +43 -0
- package/lib/models/translation-item-document-model.d.ts.map +1 -0
- package/lib/models/translation-item-document-model.js +15 -0
- package/lib/models/user-location-document-model.d.ts +61 -0
- package/lib/models/user-location-document-model.d.ts.map +1 -0
- package/lib/models/user-location-document-model.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +35 -0
- package/src/api/articles-api.ts +24 -10
- package/src/api/contributors-api.ts +20 -6
- package/src/api/countries-api.ts +24 -10
- package/src/api/deals-api.ts +20 -6
- package/src/api/hospitals-api.ts +80 -26
- package/src/api/services-api.ts +28 -14
- package/src/api/specialties-api.ts +28 -14
- package/src/api/specialty-types-api.ts +28 -14
- package/src/models/accreditation-document-model.ts +42 -0
- package/src/models/appointment-option-document-model.ts +54 -0
- package/src/models/article-contributor-document-model.ts +45 -0
- package/src/models/article-document-model.ts +114 -0
- package/src/models/contributor-document-model.ts +63 -0
- package/src/models/contributor-sub-document-model.ts +39 -0
- package/src/models/coordinate-system.ts +42 -0
- package/src/models/country-document-model.ts +72 -0
- package/src/models/country-sub-document-model.ts +39 -0
- package/src/models/deal-document-model.ts +120 -0
- package/src/models/department-document-model.ts +78 -0
- package/src/models/department-sub-document-model.ts +45 -0
- package/src/models/doctor-certificate-sub-document-model.ts +48 -0
- package/src/models/doctor-document-model.ts +135 -0
- package/src/models/doctor-specialty-sub-document-model.ts +39 -0
- package/src/models/faq-category-document-model.ts +54 -0
- package/src/models/faq-category-sub-document-model.ts +45 -0
- package/src/models/faq-document-model.ts +57 -0
- package/src/models/geography-point.ts +63 -0
- package/src/models/hospital-document-model.ts +186 -0
- package/src/models/hospital-specialty-document-model.ts +120 -0
- package/src/models/hospital-specialty-sub-document-model.ts +51 -0
- package/src/models/hospital-sub-document-model.ts +51 -0
- package/src/models/index.ts +35 -0
- package/src/models/location-document-model.ts +69 -0
- package/src/models/media-document-model.ts +66 -0
- package/src/models/package-sub-document-model.ts +57 -0
- package/src/models/service-document-model.ts +102 -0
- package/src/models/service-sub-document-model.ts +39 -0
- package/src/models/sns-handle-document-model.ts +36 -0
- package/src/models/specialty-document-model.ts +81 -0
- package/src/models/specialty-sub-document-model.ts +39 -0
- package/src/models/tag-document-model.ts +36 -0
- package/src/models/translation-document-model.ts +66 -0
- package/src/models/translation-item-document-model.ts +48 -0
- package/src/models/user-location-document-model.ts +66 -0
package/src/api/articles-api.ts
CHANGED
|
@@ -631,14 +631,15 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
631
631
|
},
|
|
632
632
|
/**
|
|
633
633
|
*
|
|
634
|
-
* @summary
|
|
634
|
+
* @summary Get article by slug
|
|
635
635
|
* @param {string} slug
|
|
636
636
|
* @param {string} [languageCode]
|
|
637
637
|
* @param {boolean} [returnDefaultValue]
|
|
638
|
+
* @param {string} [previewSecret]
|
|
638
639
|
* @param {*} [options] Override http request option.
|
|
639
640
|
* @throws {RequiredError}
|
|
640
641
|
*/
|
|
641
|
-
apiV2ArticlesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
642
|
+
apiV2ArticlesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
642
643
|
// verify required parameter 'slug' is not null or undefined
|
|
643
644
|
assertParamExists('apiV2ArticlesSlugGet', 'slug', slug)
|
|
644
645
|
const localVarPath = `/api/v2/articles/{slug}`
|
|
@@ -662,6 +663,10 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
662
663
|
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
663
664
|
}
|
|
664
665
|
|
|
666
|
+
if (previewSecret !== undefined) {
|
|
667
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
668
|
+
}
|
|
669
|
+
|
|
665
670
|
|
|
666
671
|
|
|
667
672
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -841,15 +846,16 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
841
846
|
},
|
|
842
847
|
/**
|
|
843
848
|
*
|
|
844
|
-
* @summary
|
|
849
|
+
* @summary Get article by slug
|
|
845
850
|
* @param {string} slug
|
|
846
851
|
* @param {string} [languageCode]
|
|
847
852
|
* @param {boolean} [returnDefaultValue]
|
|
853
|
+
* @param {string} [previewSecret]
|
|
848
854
|
* @param {*} [options] Override http request option.
|
|
849
855
|
* @throws {RequiredError}
|
|
850
856
|
*/
|
|
851
|
-
async apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
852
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
857
|
+
async apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleModel>> {
|
|
858
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
853
859
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
854
860
|
},
|
|
855
861
|
}
|
|
@@ -1010,15 +1016,16 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1010
1016
|
},
|
|
1011
1017
|
/**
|
|
1012
1018
|
*
|
|
1013
|
-
* @summary
|
|
1019
|
+
* @summary Get article by slug
|
|
1014
1020
|
* @param {string} slug
|
|
1015
1021
|
* @param {string} [languageCode]
|
|
1016
1022
|
* @param {boolean} [returnDefaultValue]
|
|
1023
|
+
* @param {string} [previewSecret]
|
|
1017
1024
|
* @param {*} [options] Override http request option.
|
|
1018
1025
|
* @throws {RequiredError}
|
|
1019
1026
|
*/
|
|
1020
|
-
apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ArticleModel> {
|
|
1021
|
-
return localVarFp.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1027
|
+
apiV2ArticlesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<ArticleModel> {
|
|
1028
|
+
return localVarFp.apiV2ArticlesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
1022
1029
|
},
|
|
1023
1030
|
};
|
|
1024
1031
|
};
|
|
@@ -1511,6 +1518,13 @@ export interface ArticlesApiApiV2ArticlesSlugGetRequest {
|
|
|
1511
1518
|
* @memberof ArticlesApiApiV2ArticlesSlugGet
|
|
1512
1519
|
*/
|
|
1513
1520
|
readonly returnDefaultValue?: boolean
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @type {string}
|
|
1525
|
+
* @memberof ArticlesApiApiV2ArticlesSlugGet
|
|
1526
|
+
*/
|
|
1527
|
+
readonly previewSecret?: string
|
|
1514
1528
|
}
|
|
1515
1529
|
|
|
1516
1530
|
/**
|
|
@@ -1642,13 +1656,13 @@ export class ArticlesApi extends BaseAPI {
|
|
|
1642
1656
|
|
|
1643
1657
|
/**
|
|
1644
1658
|
*
|
|
1645
|
-
* @summary
|
|
1659
|
+
* @summary Get article by slug
|
|
1646
1660
|
* @param {ArticlesApiApiV2ArticlesSlugGetRequest} requestParameters Request parameters.
|
|
1647
1661
|
* @param {*} [options] Override http request option.
|
|
1648
1662
|
* @throws {RequiredError}
|
|
1649
1663
|
* @memberof ArticlesApi
|
|
1650
1664
|
*/
|
|
1651
1665
|
public apiV2ArticlesSlugGet(requestParameters: ArticlesApiApiV2ArticlesSlugGetRequest, options?: AxiosRequestConfig) {
|
|
1652
|
-
return ArticlesApiFp(this.configuration).apiV2ArticlesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1666
|
+
return ArticlesApiFp(this.configuration).apiV2ArticlesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
1653
1667
|
}
|
|
1654
1668
|
}
|
|
@@ -287,10 +287,11 @@ export const ContributorsApiAxiosParamCreator = function (configuration?: Config
|
|
|
287
287
|
* @param {string} slug
|
|
288
288
|
* @param {string} [languageCode]
|
|
289
289
|
* @param {boolean} [returnDefaultValue]
|
|
290
|
+
* @param {string} [previewSecret]
|
|
290
291
|
* @param {*} [options] Override http request option.
|
|
291
292
|
* @throws {RequiredError}
|
|
292
293
|
*/
|
|
293
|
-
apiV2ContributorsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
294
|
+
apiV2ContributorsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
294
295
|
// verify required parameter 'slug' is not null or undefined
|
|
295
296
|
assertParamExists('apiV2ContributorsSlugGet', 'slug', slug)
|
|
296
297
|
const localVarPath = `/api/v2/contributors/{slug}`
|
|
@@ -314,6 +315,10 @@ export const ContributorsApiAxiosParamCreator = function (configuration?: Config
|
|
|
314
315
|
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
315
316
|
}
|
|
316
317
|
|
|
318
|
+
if (previewSecret !== undefined) {
|
|
319
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
320
|
+
}
|
|
321
|
+
|
|
317
322
|
|
|
318
323
|
|
|
319
324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -406,11 +411,12 @@ export const ContributorsApiFp = function(configuration?: Configuration) {
|
|
|
406
411
|
* @param {string} slug
|
|
407
412
|
* @param {string} [languageCode]
|
|
408
413
|
* @param {boolean} [returnDefaultValue]
|
|
414
|
+
* @param {string} [previewSecret]
|
|
409
415
|
* @param {*} [options] Override http request option.
|
|
410
416
|
* @throws {RequiredError}
|
|
411
417
|
*/
|
|
412
|
-
async apiV2ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
413
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ContributorsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
418
|
+
async apiV2ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContributorModel>> {
|
|
419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ContributorsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
414
420
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
421
|
},
|
|
416
422
|
}
|
|
@@ -490,11 +496,12 @@ export const ContributorsApiFactory = function (configuration?: Configuration, b
|
|
|
490
496
|
* @param {string} slug
|
|
491
497
|
* @param {string} [languageCode]
|
|
492
498
|
* @param {boolean} [returnDefaultValue]
|
|
499
|
+
* @param {string} [previewSecret]
|
|
493
500
|
* @param {*} [options] Override http request option.
|
|
494
501
|
* @throws {RequiredError}
|
|
495
502
|
*/
|
|
496
|
-
apiV2ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<ContributorModel> {
|
|
497
|
-
return localVarFp.apiV2ContributorsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
503
|
+
apiV2ContributorsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<ContributorModel> {
|
|
504
|
+
return localVarFp.apiV2ContributorsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
498
505
|
},
|
|
499
506
|
};
|
|
500
507
|
};
|
|
@@ -728,6 +735,13 @@ export interface ContributorsApiApiV2ContributorsSlugGetRequest {
|
|
|
728
735
|
* @memberof ContributorsApiApiV2ContributorsSlugGet
|
|
729
736
|
*/
|
|
730
737
|
readonly returnDefaultValue?: boolean
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @type {string}
|
|
742
|
+
* @memberof ContributorsApiApiV2ContributorsSlugGet
|
|
743
|
+
*/
|
|
744
|
+
readonly previewSecret?: string
|
|
731
745
|
}
|
|
732
746
|
|
|
733
747
|
/**
|
|
@@ -794,6 +808,6 @@ export class ContributorsApi extends BaseAPI {
|
|
|
794
808
|
* @memberof ContributorsApi
|
|
795
809
|
*/
|
|
796
810
|
public apiV2ContributorsSlugGet(requestParameters: ContributorsApiApiV2ContributorsSlugGetRequest, options?: AxiosRequestConfig) {
|
|
797
|
-
return ContributorsApiFp(this.configuration).apiV2ContributorsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
811
|
+
return ContributorsApiFp(this.configuration).apiV2ContributorsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
798
812
|
}
|
|
799
813
|
}
|
package/src/api/countries-api.ts
CHANGED
|
@@ -265,14 +265,15 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
*
|
|
268
|
-
* @summary
|
|
268
|
+
* @summary Get country by slug
|
|
269
269
|
* @param {string} slug
|
|
270
270
|
* @param {string} [languageCode]
|
|
271
271
|
* @param {boolean} [returnDefaultValue]
|
|
272
|
+
* @param {string} [previewSecret]
|
|
272
273
|
* @param {*} [options] Override http request option.
|
|
273
274
|
* @throws {RequiredError}
|
|
274
275
|
*/
|
|
275
|
-
apiV2CountriesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
276
|
+
apiV2CountriesSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
276
277
|
// verify required parameter 'slug' is not null or undefined
|
|
277
278
|
assertParamExists('apiV2CountriesSlugGet', 'slug', slug)
|
|
278
279
|
const localVarPath = `/api/v2/countries/{slug}`
|
|
@@ -296,6 +297,10 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
296
297
|
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
297
298
|
}
|
|
298
299
|
|
|
300
|
+
if (previewSecret !== undefined) {
|
|
301
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
302
|
+
}
|
|
303
|
+
|
|
299
304
|
|
|
300
305
|
|
|
301
306
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -380,15 +385,16 @@ export const CountriesApiFp = function(configuration?: Configuration) {
|
|
|
380
385
|
},
|
|
381
386
|
/**
|
|
382
387
|
*
|
|
383
|
-
* @summary
|
|
388
|
+
* @summary Get country by slug
|
|
384
389
|
* @param {string} slug
|
|
385
390
|
* @param {string} [languageCode]
|
|
386
391
|
* @param {boolean} [returnDefaultValue]
|
|
392
|
+
* @param {string} [previewSecret]
|
|
387
393
|
* @param {*} [options] Override http request option.
|
|
388
394
|
* @throws {RequiredError}
|
|
389
395
|
*/
|
|
390
|
-
async apiV2CountriesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryModel>> {
|
|
391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CountriesSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
396
|
+
async apiV2CountriesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryModel>> {
|
|
397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2CountriesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
392
398
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
399
|
},
|
|
394
400
|
}
|
|
@@ -460,15 +466,16 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
|
|
|
460
466
|
},
|
|
461
467
|
/**
|
|
462
468
|
*
|
|
463
|
-
* @summary
|
|
469
|
+
* @summary Get country by slug
|
|
464
470
|
* @param {string} slug
|
|
465
471
|
* @param {string} [languageCode]
|
|
466
472
|
* @param {boolean} [returnDefaultValue]
|
|
473
|
+
* @param {string} [previewSecret]
|
|
467
474
|
* @param {*} [options] Override http request option.
|
|
468
475
|
* @throws {RequiredError}
|
|
469
476
|
*/
|
|
470
|
-
apiV2CountriesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<CountryModel> {
|
|
471
|
-
return localVarFp.apiV2CountriesSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
477
|
+
apiV2CountriesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<CountryModel> {
|
|
478
|
+
return localVarFp.apiV2CountriesSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
472
479
|
},
|
|
473
480
|
};
|
|
474
481
|
};
|
|
@@ -674,6 +681,13 @@ export interface CountriesApiApiV2CountriesSlugGetRequest {
|
|
|
674
681
|
* @memberof CountriesApiApiV2CountriesSlugGet
|
|
675
682
|
*/
|
|
676
683
|
readonly returnDefaultValue?: boolean
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof CountriesApiApiV2CountriesSlugGet
|
|
689
|
+
*/
|
|
690
|
+
readonly previewSecret?: string
|
|
677
691
|
}
|
|
678
692
|
|
|
679
693
|
/**
|
|
@@ -733,13 +747,13 @@ export class CountriesApi extends BaseAPI {
|
|
|
733
747
|
|
|
734
748
|
/**
|
|
735
749
|
*
|
|
736
|
-
* @summary
|
|
750
|
+
* @summary Get country by slug
|
|
737
751
|
* @param {CountriesApiApiV2CountriesSlugGetRequest} requestParameters Request parameters.
|
|
738
752
|
* @param {*} [options] Override http request option.
|
|
739
753
|
* @throws {RequiredError}
|
|
740
754
|
* @memberof CountriesApi
|
|
741
755
|
*/
|
|
742
756
|
public apiV2CountriesSlugGet(requestParameters: CountriesApiApiV2CountriesSlugGetRequest, options?: AxiosRequestConfig) {
|
|
743
|
-
return CountriesApiFp(this.configuration).apiV2CountriesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
757
|
+
return CountriesApiFp(this.configuration).apiV2CountriesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
744
758
|
}
|
|
745
759
|
}
|
package/src/api/deals-api.ts
CHANGED
|
@@ -746,10 +746,11 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
746
746
|
* @param {string} slug
|
|
747
747
|
* @param {string} [languageCode]
|
|
748
748
|
* @param {boolean} [returnDefaultValue]
|
|
749
|
+
* @param {string} [previewSecret]
|
|
749
750
|
* @param {*} [options] Override http request option.
|
|
750
751
|
* @throws {RequiredError}
|
|
751
752
|
*/
|
|
752
|
-
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
753
|
+
apiV2DealsSlugGet: async (slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
753
754
|
// verify required parameter 'slug' is not null or undefined
|
|
754
755
|
assertParamExists('apiV2DealsSlugGet', 'slug', slug)
|
|
755
756
|
const localVarPath = `/api/v2/deals/{slug}`
|
|
@@ -773,6 +774,10 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
773
774
|
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
774
775
|
}
|
|
775
776
|
|
|
777
|
+
if (previewSecret !== undefined) {
|
|
778
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
779
|
+
}
|
|
780
|
+
|
|
776
781
|
|
|
777
782
|
|
|
778
783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -974,11 +979,12 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
974
979
|
* @param {string} slug
|
|
975
980
|
* @param {string} [languageCode]
|
|
976
981
|
* @param {boolean} [returnDefaultValue]
|
|
982
|
+
* @param {string} [previewSecret]
|
|
977
983
|
* @param {*} [options] Override http request option.
|
|
978
984
|
* @throws {RequiredError}
|
|
979
985
|
*/
|
|
980
|
-
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
981
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
986
|
+
async apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DealModel>> {
|
|
987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options);
|
|
982
988
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
983
989
|
},
|
|
984
990
|
}
|
|
@@ -1162,11 +1168,12 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
1162
1168
|
* @param {string} slug
|
|
1163
1169
|
* @param {string} [languageCode]
|
|
1164
1170
|
* @param {boolean} [returnDefaultValue]
|
|
1171
|
+
* @param {string} [previewSecret]
|
|
1165
1172
|
* @param {*} [options] Override http request option.
|
|
1166
1173
|
* @throws {RequiredError}
|
|
1167
1174
|
*/
|
|
1168
|
-
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<DealModel> {
|
|
1169
|
-
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1175
|
+
apiV2DealsSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, previewSecret?: string, options?: any): AxiosPromise<DealModel> {
|
|
1176
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, previewSecret, options).then((request) => request(axios, basePath));
|
|
1170
1177
|
},
|
|
1171
1178
|
};
|
|
1172
1179
|
};
|
|
@@ -1848,6 +1855,13 @@ export interface DealsApiApiV2DealsSlugGetRequest {
|
|
|
1848
1855
|
* @memberof DealsApiApiV2DealsSlugGet
|
|
1849
1856
|
*/
|
|
1850
1857
|
readonly returnDefaultValue?: boolean
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
*
|
|
1861
|
+
* @type {string}
|
|
1862
|
+
* @memberof DealsApiApiV2DealsSlugGet
|
|
1863
|
+
*/
|
|
1864
|
+
readonly previewSecret?: string
|
|
1851
1865
|
}
|
|
1852
1866
|
|
|
1853
1867
|
/**
|
|
@@ -1974,6 +1988,6 @@ export class DealsApi extends BaseAPI {
|
|
|
1974
1988
|
* @memberof DealsApi
|
|
1975
1989
|
*/
|
|
1976
1990
|
public apiV2DealsSlugGet(requestParameters: DealsApiApiV2DealsSlugGetRequest, options?: AxiosRequestConfig) {
|
|
1977
|
-
return DealsApiFp(this.configuration).apiV2DealsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1991
|
+
return DealsApiFp(this.configuration).apiV2DealsSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
1978
1992
|
}
|
|
1979
1993
|
}
|