ch-admin-api-client-typescript 5.1.5 → 5.1.7
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 +55 -0
- package/lib/api/articles-api.d.ts.map +1 -1
- package/lib/api/articles-api.js +91 -0
- package/lib/api/contributors-api.d.ts +55 -0
- package/lib/api/contributors-api.d.ts.map +1 -1
- package/lib/api/contributors-api.js +91 -0
- package/lib/api/countries-api.d.ts +59 -4
- package/lib/api/countries-api.d.ts.map +1 -1
- package/lib/api/countries-api.js +95 -4
- package/lib/api/deals-api.d.ts +55 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +91 -0
- package/lib/api/doctor-affiliations-api.d.ts +55 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +91 -0
- package/lib/api/doctors-api.d.ts +55 -0
- package/lib/api/doctors-api.d.ts.map +1 -1
- package/lib/api/doctors-api.js +91 -0
- package/lib/api/faq-categories-api.d.ts +55 -0
- package/lib/api/faq-categories-api.d.ts.map +1 -1
- package/lib/api/faq-categories-api.js +91 -0
- package/lib/api/faqs-api.d.ts +55 -0
- package/lib/api/faqs-api.d.ts.map +1 -1
- package/lib/api/faqs-api.js +91 -0
- package/lib/api/hospitals-api.d.ts +256 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +388 -0
- package/lib/api/specialties-api.d.ts +55 -0
- package/lib/api/specialties-api.d.ts.map +1 -1
- package/lib/api/specialties-api.js +91 -0
- package/lib/api/specialty-types-api.d.ts +55 -0
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +91 -0
- package/lib/models/survey-form-element-input-model.d.ts +6 -0
- package/lib/models/survey-form-element-input-model.d.ts.map +1 -1
- package/lib/models/survey-form-element-model.d.ts +6 -0
- package/lib/models/survey-form-element-model.d.ts.map +1 -1
- package/lib/models/survey-form-element-types.d.ts +2 -0
- package/lib/models/survey-form-element-types.d.ts.map +1 -1
- package/lib/models/survey-form-element-types.js +3 -1
- package/package.json +1 -1
- package/src/api/articles-api.ts +99 -0
- package/src/api/contributors-api.ts +99 -0
- package/src/api/countries-api.ts +103 -4
- package/src/api/deals-api.ts +99 -0
- package/src/api/doctor-affiliations-api.ts +99 -0
- package/src/api/doctors-api.ts +99 -0
- package/src/api/faq-categories-api.ts +99 -0
- package/src/api/faqs-api.ts +99 -0
- package/src/api/hospitals-api.ts +448 -0
- package/src/api/specialties-api.ts +99 -0
- package/src/api/specialty-types-api.ts +99 -0
- package/src/models/survey-form-element-input-model.ts +6 -0
- package/src/models/survey-form-element-model.ts +6 -0
- package/src/models/survey-form-element-types.ts +3 -1
|
@@ -426,6 +426,49 @@ export const ContributorsApiAxiosParamCreator = function (configuration?: Config
|
|
|
426
426
|
options: localVarRequestOptions,
|
|
427
427
|
};
|
|
428
428
|
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @summary Revalidate countributor
|
|
432
|
+
* @param {string} contributorId
|
|
433
|
+
* @param {boolean} [includeCurrent]
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
apiV1ContributorsContributorIdRevalidatePost: async (contributorId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
438
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
439
|
+
assertParamExists('apiV1ContributorsContributorIdRevalidatePost', 'contributorId', contributorId)
|
|
440
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/revalidate`
|
|
441
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)));
|
|
442
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
443
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
444
|
+
let baseOptions;
|
|
445
|
+
if (configuration) {
|
|
446
|
+
baseOptions = configuration.baseOptions;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
450
|
+
const localVarHeaderParameter = {} as any;
|
|
451
|
+
const localVarQueryParameter = {} as any;
|
|
452
|
+
|
|
453
|
+
// authentication oauth2 required
|
|
454
|
+
// oauth required
|
|
455
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
456
|
+
|
|
457
|
+
if (includeCurrent !== undefined) {
|
|
458
|
+
localVarQueryParameter['includeCurrent'] = includeCurrent;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
466
|
+
|
|
467
|
+
return {
|
|
468
|
+
url: toPathString(localVarUrlObj),
|
|
469
|
+
options: localVarRequestOptions,
|
|
470
|
+
};
|
|
471
|
+
},
|
|
429
472
|
/**
|
|
430
473
|
*
|
|
431
474
|
* @summary Get all Contributors.
|
|
@@ -722,6 +765,18 @@ export const ContributorsApiFp = function(configuration?: Configuration) {
|
|
|
722
765
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdPut(contributorId, updateContributorCommand, options);
|
|
723
766
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
724
767
|
},
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @summary Revalidate countributor
|
|
771
|
+
* @param {string} contributorId
|
|
772
|
+
* @param {boolean} [includeCurrent]
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
async apiV1ContributorsContributorIdRevalidatePost(contributorId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
777
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdRevalidatePost(contributorId, includeCurrent, options);
|
|
778
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
779
|
+
},
|
|
725
780
|
/**
|
|
726
781
|
*
|
|
727
782
|
* @summary Get all Contributors.
|
|
@@ -874,6 +929,17 @@ export const ContributorsApiFactory = function (configuration?: Configuration, b
|
|
|
874
929
|
apiV1ContributorsContributorIdPut(contributorId: string, updateContributorCommand?: UpdateContributorCommand, options?: any): AxiosPromise<ContributorModel> {
|
|
875
930
|
return localVarFp.apiV1ContributorsContributorIdPut(contributorId, updateContributorCommand, options).then((request) => request(axios, basePath));
|
|
876
931
|
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @summary Revalidate countributor
|
|
935
|
+
* @param {string} contributorId
|
|
936
|
+
* @param {boolean} [includeCurrent]
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
apiV1ContributorsContributorIdRevalidatePost(contributorId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
941
|
+
return localVarFp.apiV1ContributorsContributorIdRevalidatePost(contributorId, includeCurrent, options).then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
877
943
|
/**
|
|
878
944
|
*
|
|
879
945
|
* @summary Get all Contributors.
|
|
@@ -1144,6 +1210,27 @@ export interface ContributorsApiApiV1ContributorsContributorIdPutRequest {
|
|
|
1144
1210
|
readonly updateContributorCommand?: UpdateContributorCommand
|
|
1145
1211
|
}
|
|
1146
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
* Request parameters for apiV1ContributorsContributorIdRevalidatePost operation in ContributorsApi.
|
|
1215
|
+
* @export
|
|
1216
|
+
* @interface ContributorsApiApiV1ContributorsContributorIdRevalidatePostRequest
|
|
1217
|
+
*/
|
|
1218
|
+
export interface ContributorsApiApiV1ContributorsContributorIdRevalidatePostRequest {
|
|
1219
|
+
/**
|
|
1220
|
+
*
|
|
1221
|
+
* @type {string}
|
|
1222
|
+
* @memberof ContributorsApiApiV1ContributorsContributorIdRevalidatePost
|
|
1223
|
+
*/
|
|
1224
|
+
readonly contributorId: string
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @type {boolean}
|
|
1229
|
+
* @memberof ContributorsApiApiV1ContributorsContributorIdRevalidatePost
|
|
1230
|
+
*/
|
|
1231
|
+
readonly includeCurrent?: boolean
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1147
1234
|
/**
|
|
1148
1235
|
* Request parameters for apiV1ContributorsGet operation in ContributorsApi.
|
|
1149
1236
|
* @export
|
|
@@ -1380,6 +1467,18 @@ export class ContributorsApi extends BaseAPI {
|
|
|
1380
1467
|
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdPut(requestParameters.contributorId, requestParameters.updateContributorCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1381
1468
|
}
|
|
1382
1469
|
|
|
1470
|
+
/**
|
|
1471
|
+
*
|
|
1472
|
+
* @summary Revalidate countributor
|
|
1473
|
+
* @param {ContributorsApiApiV1ContributorsContributorIdRevalidatePostRequest} requestParameters Request parameters.
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
* @memberof ContributorsApi
|
|
1477
|
+
*/
|
|
1478
|
+
public apiV1ContributorsContributorIdRevalidatePost(requestParameters: ContributorsApiApiV1ContributorsContributorIdRevalidatePostRequest, options?: AxiosRequestConfig) {
|
|
1479
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdRevalidatePost(requestParameters.contributorId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1383
1482
|
/**
|
|
1384
1483
|
*
|
|
1385
1484
|
* @summary Get all Contributors.
|
package/src/api/countries-api.ts
CHANGED
|
@@ -445,6 +445,49 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
445
445
|
|
|
446
446
|
|
|
447
447
|
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
451
|
+
|
|
452
|
+
return {
|
|
453
|
+
url: toPathString(localVarUrlObj),
|
|
454
|
+
options: localVarRequestOptions,
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @summary Revalidate country
|
|
460
|
+
* @param {string} countryId
|
|
461
|
+
* @param {boolean} [includeCurrent]
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
apiV1CountriesCountryIdRevalidatePost: async (countryId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
466
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
467
|
+
assertParamExists('apiV1CountriesCountryIdRevalidatePost', 'countryId', countryId)
|
|
468
|
+
const localVarPath = `/api/v1/countries/{countryId}/revalidate`
|
|
469
|
+
.replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
|
|
470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
472
|
+
let baseOptions;
|
|
473
|
+
if (configuration) {
|
|
474
|
+
baseOptions = configuration.baseOptions;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
478
|
+
const localVarHeaderParameter = {} as any;
|
|
479
|
+
const localVarQueryParameter = {} as any;
|
|
480
|
+
|
|
481
|
+
// authentication oauth2 required
|
|
482
|
+
// oauth required
|
|
483
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
484
|
+
|
|
485
|
+
if (includeCurrent !== undefined) {
|
|
486
|
+
localVarQueryParameter['includeCurrent'] = includeCurrent;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
448
491
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
492
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
493
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -577,7 +620,7 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
577
620
|
},
|
|
578
621
|
/**
|
|
579
622
|
*
|
|
580
|
-
* @summary
|
|
623
|
+
* @summary Get country by slug
|
|
581
624
|
* @param {string} slug
|
|
582
625
|
* @param {string} [languageCode]
|
|
583
626
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -746,6 +789,18 @@ export const CountriesApiFp = function(configuration?: Configuration) {
|
|
|
746
789
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdReactivePut(countryId, options);
|
|
747
790
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
748
791
|
},
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @summary Revalidate country
|
|
795
|
+
* @param {string} countryId
|
|
796
|
+
* @param {boolean} [includeCurrent]
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
async apiV1CountriesCountryIdRevalidatePost(countryId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdRevalidatePost(countryId, includeCurrent, options);
|
|
802
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
803
|
+
},
|
|
749
804
|
/**
|
|
750
805
|
*
|
|
751
806
|
* @summary Get all countries.
|
|
@@ -778,7 +833,7 @@ export const CountriesApiFp = function(configuration?: Configuration) {
|
|
|
778
833
|
},
|
|
779
834
|
/**
|
|
780
835
|
*
|
|
781
|
-
* @summary
|
|
836
|
+
* @summary Get country by slug
|
|
782
837
|
* @param {string} slug
|
|
783
838
|
* @param {string} [languageCode]
|
|
784
839
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -903,6 +958,17 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
|
|
|
903
958
|
apiV1CountriesCountryIdReactivePut(countryId: string, options?: any): AxiosPromise<boolean> {
|
|
904
959
|
return localVarFp.apiV1CountriesCountryIdReactivePut(countryId, options).then((request) => request(axios, basePath));
|
|
905
960
|
},
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @summary Revalidate country
|
|
964
|
+
* @param {string} countryId
|
|
965
|
+
* @param {boolean} [includeCurrent]
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
apiV1CountriesCountryIdRevalidatePost(countryId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
970
|
+
return localVarFp.apiV1CountriesCountryIdRevalidatePost(countryId, includeCurrent, options).then((request) => request(axios, basePath));
|
|
971
|
+
},
|
|
906
972
|
/**
|
|
907
973
|
*
|
|
908
974
|
* @summary Get all countries.
|
|
@@ -933,7 +999,7 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
|
|
|
933
999
|
},
|
|
934
1000
|
/**
|
|
935
1001
|
*
|
|
936
|
-
* @summary
|
|
1002
|
+
* @summary Get country by slug
|
|
937
1003
|
* @param {string} slug
|
|
938
1004
|
* @param {string} [languageCode]
|
|
939
1005
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1170,6 +1236,27 @@ export interface CountriesApiApiV1CountriesCountryIdReactivePutRequest {
|
|
|
1170
1236
|
readonly countryId: string
|
|
1171
1237
|
}
|
|
1172
1238
|
|
|
1239
|
+
/**
|
|
1240
|
+
* Request parameters for apiV1CountriesCountryIdRevalidatePost operation in CountriesApi.
|
|
1241
|
+
* @export
|
|
1242
|
+
* @interface CountriesApiApiV1CountriesCountryIdRevalidatePostRequest
|
|
1243
|
+
*/
|
|
1244
|
+
export interface CountriesApiApiV1CountriesCountryIdRevalidatePostRequest {
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @type {string}
|
|
1248
|
+
* @memberof CountriesApiApiV1CountriesCountryIdRevalidatePost
|
|
1249
|
+
*/
|
|
1250
|
+
readonly countryId: string
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
*
|
|
1254
|
+
* @type {boolean}
|
|
1255
|
+
* @memberof CountriesApiApiV1CountriesCountryIdRevalidatePost
|
|
1256
|
+
*/
|
|
1257
|
+
readonly includeCurrent?: boolean
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1173
1260
|
/**
|
|
1174
1261
|
* Request parameters for apiV1CountriesGet operation in CountriesApi.
|
|
1175
1262
|
* @export
|
|
@@ -1397,6 +1484,18 @@ export class CountriesApi extends BaseAPI {
|
|
|
1397
1484
|
return CountriesApiFp(this.configuration).apiV1CountriesCountryIdReactivePut(requestParameters.countryId, options).then((request) => request(this.axios, this.basePath));
|
|
1398
1485
|
}
|
|
1399
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @summary Revalidate country
|
|
1490
|
+
* @param {CountriesApiApiV1CountriesCountryIdRevalidatePostRequest} requestParameters Request parameters.
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
* @memberof CountriesApi
|
|
1494
|
+
*/
|
|
1495
|
+
public apiV1CountriesCountryIdRevalidatePost(requestParameters: CountriesApiApiV1CountriesCountryIdRevalidatePostRequest, options?: AxiosRequestConfig) {
|
|
1496
|
+
return CountriesApiFp(this.configuration).apiV1CountriesCountryIdRevalidatePost(requestParameters.countryId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1400
1499
|
/**
|
|
1401
1500
|
*
|
|
1402
1501
|
* @summary Get all countries.
|
|
@@ -1423,7 +1522,7 @@ export class CountriesApi extends BaseAPI {
|
|
|
1423
1522
|
|
|
1424
1523
|
/**
|
|
1425
1524
|
*
|
|
1426
|
-
* @summary
|
|
1525
|
+
* @summary Get country by slug
|
|
1427
1526
|
* @param {CountriesApiApiV1CountriesSlugGetRequest} requestParameters Request parameters.
|
|
1428
1527
|
* @param {*} [options] Override http request option.
|
|
1429
1528
|
* @throws {RequiredError}
|
package/src/api/deals-api.ts
CHANGED
|
@@ -941,6 +941,49 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
941
941
|
options: localVarRequestOptions,
|
|
942
942
|
};
|
|
943
943
|
},
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @summary Revalidate deal
|
|
947
|
+
* @param {string} dealId
|
|
948
|
+
* @param {boolean} [includeCurrent]
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
apiV1DealsDealIdRevalidatePost: async (dealId: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
953
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
954
|
+
assertParamExists('apiV1DealsDealIdRevalidatePost', 'dealId', dealId)
|
|
955
|
+
const localVarPath = `/api/v1/deals/{dealId}/revalidate`
|
|
956
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
957
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
958
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
959
|
+
let baseOptions;
|
|
960
|
+
if (configuration) {
|
|
961
|
+
baseOptions = configuration.baseOptions;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
965
|
+
const localVarHeaderParameter = {} as any;
|
|
966
|
+
const localVarQueryParameter = {} as any;
|
|
967
|
+
|
|
968
|
+
// authentication oauth2 required
|
|
969
|
+
// oauth required
|
|
970
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
971
|
+
|
|
972
|
+
if (includeCurrent !== undefined) {
|
|
973
|
+
localVarQueryParameter['includeCurrent'] = includeCurrent;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
980
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
981
|
+
|
|
982
|
+
return {
|
|
983
|
+
url: toPathString(localVarUrlObj),
|
|
984
|
+
options: localVarRequestOptions,
|
|
985
|
+
};
|
|
986
|
+
},
|
|
944
987
|
/**
|
|
945
988
|
*
|
|
946
989
|
* @summary Get all DealService.
|
|
@@ -1793,6 +1836,18 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
1793
1836
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPut(dealId, updateDealCommand, options);
|
|
1794
1837
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1795
1838
|
},
|
|
1839
|
+
/**
|
|
1840
|
+
*
|
|
1841
|
+
* @summary Revalidate deal
|
|
1842
|
+
* @param {string} dealId
|
|
1843
|
+
* @param {boolean} [includeCurrent]
|
|
1844
|
+
* @param {*} [options] Override http request option.
|
|
1845
|
+
* @throws {RequiredError}
|
|
1846
|
+
*/
|
|
1847
|
+
async apiV1DealsDealIdRevalidatePost(dealId: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1848
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdRevalidatePost(dealId, includeCurrent, options);
|
|
1849
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1850
|
+
},
|
|
1796
1851
|
/**
|
|
1797
1852
|
*
|
|
1798
1853
|
* @summary Get all DealService.
|
|
@@ -2167,6 +2222,17 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
2167
2222
|
apiV1DealsDealIdPut(dealId: string, updateDealCommand?: UpdateDealCommand, options?: any): AxiosPromise<DealModel> {
|
|
2168
2223
|
return localVarFp.apiV1DealsDealIdPut(dealId, updateDealCommand, options).then((request) => request(axios, basePath));
|
|
2169
2224
|
},
|
|
2225
|
+
/**
|
|
2226
|
+
*
|
|
2227
|
+
* @summary Revalidate deal
|
|
2228
|
+
* @param {string} dealId
|
|
2229
|
+
* @param {boolean} [includeCurrent]
|
|
2230
|
+
* @param {*} [options] Override http request option.
|
|
2231
|
+
* @throws {RequiredError}
|
|
2232
|
+
*/
|
|
2233
|
+
apiV1DealsDealIdRevalidatePost(dealId: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
2234
|
+
return localVarFp.apiV1DealsDealIdRevalidatePost(dealId, includeCurrent, options).then((request) => request(axios, basePath));
|
|
2235
|
+
},
|
|
2170
2236
|
/**
|
|
2171
2237
|
*
|
|
2172
2238
|
* @summary Get all DealService.
|
|
@@ -2895,6 +2961,27 @@ export interface DealsApiApiV1DealsDealIdPutRequest {
|
|
|
2895
2961
|
readonly updateDealCommand?: UpdateDealCommand
|
|
2896
2962
|
}
|
|
2897
2963
|
|
|
2964
|
+
/**
|
|
2965
|
+
* Request parameters for apiV1DealsDealIdRevalidatePost operation in DealsApi.
|
|
2966
|
+
* @export
|
|
2967
|
+
* @interface DealsApiApiV1DealsDealIdRevalidatePostRequest
|
|
2968
|
+
*/
|
|
2969
|
+
export interface DealsApiApiV1DealsDealIdRevalidatePostRequest {
|
|
2970
|
+
/**
|
|
2971
|
+
*
|
|
2972
|
+
* @type {string}
|
|
2973
|
+
* @memberof DealsApiApiV1DealsDealIdRevalidatePost
|
|
2974
|
+
*/
|
|
2975
|
+
readonly dealId: string
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
*
|
|
2979
|
+
* @type {boolean}
|
|
2980
|
+
* @memberof DealsApiApiV1DealsDealIdRevalidatePost
|
|
2981
|
+
*/
|
|
2982
|
+
readonly includeCurrent?: boolean
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2898
2985
|
/**
|
|
2899
2986
|
* Request parameters for apiV1DealsDealIdServicesGet operation in DealsApi.
|
|
2900
2987
|
* @export
|
|
@@ -3598,6 +3685,18 @@ export class DealsApi extends BaseAPI {
|
|
|
3598
3685
|
return DealsApiFp(this.configuration).apiV1DealsDealIdPut(requestParameters.dealId, requestParameters.updateDealCommand, options).then((request) => request(this.axios, this.basePath));
|
|
3599
3686
|
}
|
|
3600
3687
|
|
|
3688
|
+
/**
|
|
3689
|
+
*
|
|
3690
|
+
* @summary Revalidate deal
|
|
3691
|
+
* @param {DealsApiApiV1DealsDealIdRevalidatePostRequest} requestParameters Request parameters.
|
|
3692
|
+
* @param {*} [options] Override http request option.
|
|
3693
|
+
* @throws {RequiredError}
|
|
3694
|
+
* @memberof DealsApi
|
|
3695
|
+
*/
|
|
3696
|
+
public apiV1DealsDealIdRevalidatePost(requestParameters: DealsApiApiV1DealsDealIdRevalidatePostRequest, options?: AxiosRequestConfig) {
|
|
3697
|
+
return DealsApiFp(this.configuration).apiV1DealsDealIdRevalidatePost(requestParameters.dealId, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3601
3700
|
/**
|
|
3602
3701
|
*
|
|
3603
3702
|
* @summary Get all DealService.
|
|
@@ -782,6 +782,49 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
|
|
|
782
782
|
|
|
783
783
|
|
|
784
784
|
|
|
785
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
786
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
787
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
788
|
+
|
|
789
|
+
return {
|
|
790
|
+
url: toPathString(localVarUrlObj),
|
|
791
|
+
options: localVarRequestOptions,
|
|
792
|
+
};
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @summary Revalidate doctorAffiliation
|
|
797
|
+
* @param {string} id
|
|
798
|
+
* @param {boolean} [includeCurrent]
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
apiV1DoctoraffiliationsIdRevalidatePost: async (id: string, includeCurrent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
803
|
+
// verify required parameter 'id' is not null or undefined
|
|
804
|
+
assertParamExists('apiV1DoctoraffiliationsIdRevalidatePost', 'id', id)
|
|
805
|
+
const localVarPath = `/api/v1/doctoraffiliations/{id}/revalidate`
|
|
806
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
808
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
809
|
+
let baseOptions;
|
|
810
|
+
if (configuration) {
|
|
811
|
+
baseOptions = configuration.baseOptions;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
815
|
+
const localVarHeaderParameter = {} as any;
|
|
816
|
+
const localVarQueryParameter = {} as any;
|
|
817
|
+
|
|
818
|
+
// authentication oauth2 required
|
|
819
|
+
// oauth required
|
|
820
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
821
|
+
|
|
822
|
+
if (includeCurrent !== undefined) {
|
|
823
|
+
localVarQueryParameter['includeCurrent'] = includeCurrent;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
785
828
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
786
829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
787
830
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1072,6 +1115,18 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
|
1072
1115
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctoraffiliationsIdReactivePut(id, options);
|
|
1073
1116
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1074
1117
|
},
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @summary Revalidate doctorAffiliation
|
|
1121
|
+
* @param {string} id
|
|
1122
|
+
* @param {boolean} [includeCurrent]
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
async apiV1DoctoraffiliationsIdRevalidatePost(id: string, includeCurrent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
1127
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctoraffiliationsIdRevalidatePost(id, includeCurrent, options);
|
|
1128
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1129
|
+
},
|
|
1075
1130
|
/**
|
|
1076
1131
|
*
|
|
1077
1132
|
* @summary Translate doctorAffiliation at once
|
|
@@ -1282,6 +1337,17 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
|
|
|
1282
1337
|
apiV1DoctoraffiliationsIdReactivePut(id: string, options?: any): AxiosPromise<boolean> {
|
|
1283
1338
|
return localVarFp.apiV1DoctoraffiliationsIdReactivePut(id, options).then((request) => request(axios, basePath));
|
|
1284
1339
|
},
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @summary Revalidate doctorAffiliation
|
|
1343
|
+
* @param {string} id
|
|
1344
|
+
* @param {boolean} [includeCurrent]
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
apiV1DoctoraffiliationsIdRevalidatePost(id: string, includeCurrent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
1349
|
+
return localVarFp.apiV1DoctoraffiliationsIdRevalidatePost(id, includeCurrent, options).then((request) => request(axios, basePath));
|
|
1350
|
+
},
|
|
1285
1351
|
/**
|
|
1286
1352
|
*
|
|
1287
1353
|
* @summary Translate doctorAffiliation at once
|
|
@@ -1767,6 +1833,27 @@ export interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdReactivePutReques
|
|
|
1767
1833
|
readonly id: string
|
|
1768
1834
|
}
|
|
1769
1835
|
|
|
1836
|
+
/**
|
|
1837
|
+
* Request parameters for apiV1DoctoraffiliationsIdRevalidatePost operation in DoctorAffiliationsApi.
|
|
1838
|
+
* @export
|
|
1839
|
+
* @interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest
|
|
1840
|
+
*/
|
|
1841
|
+
export interface DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest {
|
|
1842
|
+
/**
|
|
1843
|
+
*
|
|
1844
|
+
* @type {string}
|
|
1845
|
+
* @memberof DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePost
|
|
1846
|
+
*/
|
|
1847
|
+
readonly id: string
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
*
|
|
1851
|
+
* @type {boolean}
|
|
1852
|
+
* @memberof DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePost
|
|
1853
|
+
*/
|
|
1854
|
+
readonly includeCurrent?: boolean
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1770
1857
|
/**
|
|
1771
1858
|
* Request parameters for apiV1DoctoraffiliationsIdTranslatePost operation in DoctorAffiliationsApi.
|
|
1772
1859
|
* @export
|
|
@@ -1977,6 +2064,18 @@ export class DoctorAffiliationsApi extends BaseAPI {
|
|
|
1977
2064
|
return DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsIdReactivePut(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1978
2065
|
}
|
|
1979
2066
|
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
2069
|
+
* @summary Revalidate doctorAffiliation
|
|
2070
|
+
* @param {DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest} requestParameters Request parameters.
|
|
2071
|
+
* @param {*} [options] Override http request option.
|
|
2072
|
+
* @throws {RequiredError}
|
|
2073
|
+
* @memberof DoctorAffiliationsApi
|
|
2074
|
+
*/
|
|
2075
|
+
public apiV1DoctoraffiliationsIdRevalidatePost(requestParameters: DoctorAffiliationsApiApiV1DoctoraffiliationsIdRevalidatePostRequest, options?: AxiosRequestConfig) {
|
|
2076
|
+
return DoctorAffiliationsApiFp(this.configuration).apiV1DoctoraffiliationsIdRevalidatePost(requestParameters.id, requestParameters.includeCurrent, options).then((request) => request(this.axios, this.basePath));
|
|
2077
|
+
}
|
|
2078
|
+
|
|
1980
2079
|
/**
|
|
1981
2080
|
*
|
|
1982
2081
|
* @summary Translate doctorAffiliation at once
|