ch-admin-api-client-typescript 2.3.8 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +377 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +513 -8
- package/package.json +1 -1
- package/src/api.ts +629 -12
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -16321,6 +16321,113 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
16321
16321
|
});
|
|
16322
16322
|
});
|
|
16323
16323
|
},
|
|
16324
|
+
/**
|
|
16325
|
+
*
|
|
16326
|
+
* @summary Get all Hospitals.
|
|
16327
|
+
* @param {string} [hospitalId]
|
|
16328
|
+
* @param {string} [name]
|
|
16329
|
+
* @param {string} [description]
|
|
16330
|
+
* @param {string} [countryId]
|
|
16331
|
+
* @param {Date} [created]
|
|
16332
|
+
* @param {MarketingType} [marketingType]
|
|
16333
|
+
* @param {string} [specialtyTypeId]
|
|
16334
|
+
* @param {string} [specialtyId]
|
|
16335
|
+
* @param {string} [serviceId]
|
|
16336
|
+
* @param {string} [exceptHospitalId]
|
|
16337
|
+
* @param {boolean} [showHidden]
|
|
16338
|
+
* @param {string} [languageCode]
|
|
16339
|
+
* @param {Array<string>} [ids]
|
|
16340
|
+
* @param {number} [page]
|
|
16341
|
+
* @param {number} [limit]
|
|
16342
|
+
* @param {Date} [lastRetrieved]
|
|
16343
|
+
* @param {*} [options] Override http request option.
|
|
16344
|
+
* @throws {RequiredError}
|
|
16345
|
+
*/
|
|
16346
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
16347
|
+
if (options === void 0) { options = {}; }
|
|
16348
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16349
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16350
|
+
return __generator(this, function (_a) {
|
|
16351
|
+
switch (_a.label) {
|
|
16352
|
+
case 0:
|
|
16353
|
+
localVarPath = "/api/v1/hospitals/simple";
|
|
16354
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16355
|
+
if (configuration) {
|
|
16356
|
+
baseOptions = configuration.baseOptions;
|
|
16357
|
+
}
|
|
16358
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16359
|
+
localVarHeaderParameter = {};
|
|
16360
|
+
localVarQueryParameter = {};
|
|
16361
|
+
// authentication oauth2 required
|
|
16362
|
+
// oauth required
|
|
16363
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16364
|
+
case 1:
|
|
16365
|
+
// authentication oauth2 required
|
|
16366
|
+
// oauth required
|
|
16367
|
+
_a.sent();
|
|
16368
|
+
if (hospitalId !== undefined) {
|
|
16369
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
16370
|
+
}
|
|
16371
|
+
if (name !== undefined) {
|
|
16372
|
+
localVarQueryParameter['Name'] = name;
|
|
16373
|
+
}
|
|
16374
|
+
if (description !== undefined) {
|
|
16375
|
+
localVarQueryParameter['Description'] = description;
|
|
16376
|
+
}
|
|
16377
|
+
if (countryId !== undefined) {
|
|
16378
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
16379
|
+
}
|
|
16380
|
+
if (created !== undefined) {
|
|
16381
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
16382
|
+
created.toISOString() :
|
|
16383
|
+
created;
|
|
16384
|
+
}
|
|
16385
|
+
if (marketingType !== undefined) {
|
|
16386
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
16387
|
+
}
|
|
16388
|
+
if (specialtyTypeId !== undefined) {
|
|
16389
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
16390
|
+
}
|
|
16391
|
+
if (specialtyId !== undefined) {
|
|
16392
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
16393
|
+
}
|
|
16394
|
+
if (serviceId !== undefined) {
|
|
16395
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
16396
|
+
}
|
|
16397
|
+
if (exceptHospitalId !== undefined) {
|
|
16398
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
16399
|
+
}
|
|
16400
|
+
if (showHidden !== undefined) {
|
|
16401
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
16402
|
+
}
|
|
16403
|
+
if (languageCode !== undefined) {
|
|
16404
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
16405
|
+
}
|
|
16406
|
+
if (ids) {
|
|
16407
|
+
localVarQueryParameter['Ids'] = ids;
|
|
16408
|
+
}
|
|
16409
|
+
if (page !== undefined) {
|
|
16410
|
+
localVarQueryParameter['page'] = page;
|
|
16411
|
+
}
|
|
16412
|
+
if (limit !== undefined) {
|
|
16413
|
+
localVarQueryParameter['limit'] = limit;
|
|
16414
|
+
}
|
|
16415
|
+
if (lastRetrieved !== undefined) {
|
|
16416
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16417
|
+
lastRetrieved.toISOString() :
|
|
16418
|
+
lastRetrieved;
|
|
16419
|
+
}
|
|
16420
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16421
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16422
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16423
|
+
return [2 /*return*/, {
|
|
16424
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16425
|
+
options: localVarRequestOptions,
|
|
16426
|
+
}];
|
|
16427
|
+
}
|
|
16428
|
+
});
|
|
16429
|
+
});
|
|
16430
|
+
},
|
|
16324
16431
|
/**
|
|
16325
16432
|
*
|
|
16326
16433
|
* @summary Get Hospital by slug.
|
|
@@ -17373,6 +17480,41 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
17373
17480
|
});
|
|
17374
17481
|
});
|
|
17375
17482
|
},
|
|
17483
|
+
/**
|
|
17484
|
+
*
|
|
17485
|
+
* @summary Get all Hospitals.
|
|
17486
|
+
* @param {string} [hospitalId]
|
|
17487
|
+
* @param {string} [name]
|
|
17488
|
+
* @param {string} [description]
|
|
17489
|
+
* @param {string} [countryId]
|
|
17490
|
+
* @param {Date} [created]
|
|
17491
|
+
* @param {MarketingType} [marketingType]
|
|
17492
|
+
* @param {string} [specialtyTypeId]
|
|
17493
|
+
* @param {string} [specialtyId]
|
|
17494
|
+
* @param {string} [serviceId]
|
|
17495
|
+
* @param {string} [exceptHospitalId]
|
|
17496
|
+
* @param {boolean} [showHidden]
|
|
17497
|
+
* @param {string} [languageCode]
|
|
17498
|
+
* @param {Array<string>} [ids]
|
|
17499
|
+
* @param {number} [page]
|
|
17500
|
+
* @param {number} [limit]
|
|
17501
|
+
* @param {Date} [lastRetrieved]
|
|
17502
|
+
* @param {*} [options] Override http request option.
|
|
17503
|
+
* @throws {RequiredError}
|
|
17504
|
+
*/
|
|
17505
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
17506
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17507
|
+
var localVarAxiosArgs;
|
|
17508
|
+
return __generator(this, function (_a) {
|
|
17509
|
+
switch (_a.label) {
|
|
17510
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options)];
|
|
17511
|
+
case 1:
|
|
17512
|
+
localVarAxiosArgs = _a.sent();
|
|
17513
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17514
|
+
}
|
|
17515
|
+
});
|
|
17516
|
+
});
|
|
17517
|
+
},
|
|
17376
17518
|
/**
|
|
17377
17519
|
*
|
|
17378
17520
|
* @summary Get Hospital by slug.
|
|
@@ -17969,6 +18111,31 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
17969
18111
|
apiV1HospitalsPost: function (createHospitalCommand, options) {
|
|
17970
18112
|
return localVarFp.apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17971
18113
|
},
|
|
18114
|
+
/**
|
|
18115
|
+
*
|
|
18116
|
+
* @summary Get all Hospitals.
|
|
18117
|
+
* @param {string} [hospitalId]
|
|
18118
|
+
* @param {string} [name]
|
|
18119
|
+
* @param {string} [description]
|
|
18120
|
+
* @param {string} [countryId]
|
|
18121
|
+
* @param {Date} [created]
|
|
18122
|
+
* @param {MarketingType} [marketingType]
|
|
18123
|
+
* @param {string} [specialtyTypeId]
|
|
18124
|
+
* @param {string} [specialtyId]
|
|
18125
|
+
* @param {string} [serviceId]
|
|
18126
|
+
* @param {string} [exceptHospitalId]
|
|
18127
|
+
* @param {boolean} [showHidden]
|
|
18128
|
+
* @param {string} [languageCode]
|
|
18129
|
+
* @param {Array<string>} [ids]
|
|
18130
|
+
* @param {number} [page]
|
|
18131
|
+
* @param {number} [limit]
|
|
18132
|
+
* @param {Date} [lastRetrieved]
|
|
18133
|
+
* @param {*} [options] Override http request option.
|
|
18134
|
+
* @throws {RequiredError}
|
|
18135
|
+
*/
|
|
18136
|
+
apiV1HospitalsSimpleGet: function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18137
|
+
return localVarFp.apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18138
|
+
},
|
|
17972
18139
|
/**
|
|
17973
18140
|
*
|
|
17974
18141
|
* @summary Get Hospital by slug.
|
|
@@ -18645,6 +18812,33 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
18645
18812
|
var _this = this;
|
|
18646
18813
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsPost(createHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18647
18814
|
};
|
|
18815
|
+
/**
|
|
18816
|
+
*
|
|
18817
|
+
* @summary Get all Hospitals.
|
|
18818
|
+
* @param {string} [hospitalId]
|
|
18819
|
+
* @param {string} [name]
|
|
18820
|
+
* @param {string} [description]
|
|
18821
|
+
* @param {string} [countryId]
|
|
18822
|
+
* @param {Date} [created]
|
|
18823
|
+
* @param {MarketingType} [marketingType]
|
|
18824
|
+
* @param {string} [specialtyTypeId]
|
|
18825
|
+
* @param {string} [specialtyId]
|
|
18826
|
+
* @param {string} [serviceId]
|
|
18827
|
+
* @param {string} [exceptHospitalId]
|
|
18828
|
+
* @param {boolean} [showHidden]
|
|
18829
|
+
* @param {string} [languageCode]
|
|
18830
|
+
* @param {Array<string>} [ids]
|
|
18831
|
+
* @param {number} [page]
|
|
18832
|
+
* @param {number} [limit]
|
|
18833
|
+
* @param {Date} [lastRetrieved]
|
|
18834
|
+
* @param {*} [options] Override http request option.
|
|
18835
|
+
* @throws {RequiredError}
|
|
18836
|
+
* @memberof HospitalsApi
|
|
18837
|
+
*/
|
|
18838
|
+
HospitalsApi.prototype.apiV1HospitalsSimpleGet = function (hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options) {
|
|
18839
|
+
var _this = this;
|
|
18840
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsSimpleGet(hospitalId, name, description, countryId, created, marketingType, specialtyTypeId, specialtyId, serviceId, exceptHospitalId, showHidden, languageCode, ids, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18841
|
+
};
|
|
18648
18842
|
/**
|
|
18649
18843
|
*
|
|
18650
18844
|
* @summary Get Hospital by slug.
|
|
@@ -19126,6 +19320,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19126
19320
|
/**
|
|
19127
19321
|
*
|
|
19128
19322
|
* @summary Get all Managers.
|
|
19323
|
+
* @param {string} [hospitalId]
|
|
19129
19324
|
* @param {string} [id]
|
|
19130
19325
|
* @param {string} [fullname]
|
|
19131
19326
|
* @param {string} [email]
|
|
@@ -19139,7 +19334,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19139
19334
|
* @param {*} [options] Override http request option.
|
|
19140
19335
|
* @throws {RequiredError}
|
|
19141
19336
|
*/
|
|
19142
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19337
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19143
19338
|
if (options === void 0) { options = {}; }
|
|
19144
19339
|
return __awaiter(_this, void 0, void 0, function () {
|
|
19145
19340
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -19161,6 +19356,9 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19161
19356
|
// authentication oauth2 required
|
|
19162
19357
|
// oauth required
|
|
19163
19358
|
_a.sent();
|
|
19359
|
+
if (hospitalId !== undefined) {
|
|
19360
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
19361
|
+
}
|
|
19164
19362
|
if (id !== undefined) {
|
|
19165
19363
|
localVarQueryParameter['Id'] = id;
|
|
19166
19364
|
}
|
|
@@ -19208,6 +19406,67 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19208
19406
|
});
|
|
19209
19407
|
});
|
|
19210
19408
|
},
|
|
19409
|
+
/**
|
|
19410
|
+
*
|
|
19411
|
+
* @summary Get all manager affiliations.
|
|
19412
|
+
* @param {string} managerId
|
|
19413
|
+
* @param {string} [hospitalName]
|
|
19414
|
+
* @param {number} [page]
|
|
19415
|
+
* @param {number} [limit]
|
|
19416
|
+
* @param {Date} [lastRetrieved]
|
|
19417
|
+
* @param {*} [options] Override http request option.
|
|
19418
|
+
* @throws {RequiredError}
|
|
19419
|
+
*/
|
|
19420
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19421
|
+
if (options === void 0) { options = {}; }
|
|
19422
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19423
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19424
|
+
return __generator(this, function (_a) {
|
|
19425
|
+
switch (_a.label) {
|
|
19426
|
+
case 0:
|
|
19427
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
19428
|
+
common_1.assertParamExists('apiV1ManagersManagerIdAffiliationsGet', 'managerId', managerId);
|
|
19429
|
+
localVarPath = "/api/v1/managers/{managerId}/affiliations"
|
|
19430
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
19431
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19432
|
+
if (configuration) {
|
|
19433
|
+
baseOptions = configuration.baseOptions;
|
|
19434
|
+
}
|
|
19435
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19436
|
+
localVarHeaderParameter = {};
|
|
19437
|
+
localVarQueryParameter = {};
|
|
19438
|
+
// authentication oauth2 required
|
|
19439
|
+
// oauth required
|
|
19440
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19441
|
+
case 1:
|
|
19442
|
+
// authentication oauth2 required
|
|
19443
|
+
// oauth required
|
|
19444
|
+
_a.sent();
|
|
19445
|
+
if (hospitalName !== undefined) {
|
|
19446
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
19447
|
+
}
|
|
19448
|
+
if (page !== undefined) {
|
|
19449
|
+
localVarQueryParameter['page'] = page;
|
|
19450
|
+
}
|
|
19451
|
+
if (limit !== undefined) {
|
|
19452
|
+
localVarQueryParameter['limit'] = limit;
|
|
19453
|
+
}
|
|
19454
|
+
if (lastRetrieved !== undefined) {
|
|
19455
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
19456
|
+
lastRetrieved.toISOString() :
|
|
19457
|
+
lastRetrieved;
|
|
19458
|
+
}
|
|
19459
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19460
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19461
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19462
|
+
return [2 /*return*/, {
|
|
19463
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19464
|
+
options: localVarRequestOptions,
|
|
19465
|
+
}];
|
|
19466
|
+
}
|
|
19467
|
+
});
|
|
19468
|
+
});
|
|
19469
|
+
},
|
|
19211
19470
|
/**
|
|
19212
19471
|
*
|
|
19213
19472
|
* @summary Delete Manager.
|
|
@@ -19394,6 +19653,7 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19394
19653
|
/**
|
|
19395
19654
|
*
|
|
19396
19655
|
* @summary Get all Managers.
|
|
19656
|
+
* @param {string} [hospitalId]
|
|
19397
19657
|
* @param {string} [id]
|
|
19398
19658
|
* @param {string} [fullname]
|
|
19399
19659
|
* @param {string} [email]
|
|
@@ -19407,12 +19667,36 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19407
19667
|
* @param {*} [options] Override http request option.
|
|
19408
19668
|
* @throws {RequiredError}
|
|
19409
19669
|
*/
|
|
19410
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19670
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19671
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19672
|
+
var localVarAxiosArgs;
|
|
19673
|
+
return __generator(this, function (_a) {
|
|
19674
|
+
switch (_a.label) {
|
|
19675
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19676
|
+
case 1:
|
|
19677
|
+
localVarAxiosArgs = _a.sent();
|
|
19678
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19679
|
+
}
|
|
19680
|
+
});
|
|
19681
|
+
});
|
|
19682
|
+
},
|
|
19683
|
+
/**
|
|
19684
|
+
*
|
|
19685
|
+
* @summary Get all manager affiliations.
|
|
19686
|
+
* @param {string} managerId
|
|
19687
|
+
* @param {string} [hospitalName]
|
|
19688
|
+
* @param {number} [page]
|
|
19689
|
+
* @param {number} [limit]
|
|
19690
|
+
* @param {Date} [lastRetrieved]
|
|
19691
|
+
* @param {*} [options] Override http request option.
|
|
19692
|
+
* @throws {RequiredError}
|
|
19693
|
+
*/
|
|
19694
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19411
19695
|
return __awaiter(this, void 0, void 0, function () {
|
|
19412
19696
|
var localVarAxiosArgs;
|
|
19413
19697
|
return __generator(this, function (_a) {
|
|
19414
19698
|
switch (_a.label) {
|
|
19415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
19699
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options)];
|
|
19416
19700
|
case 1:
|
|
19417
19701
|
localVarAxiosArgs = _a.sent();
|
|
19418
19702
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -19513,6 +19797,7 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19513
19797
|
/**
|
|
19514
19798
|
*
|
|
19515
19799
|
* @summary Get all Managers.
|
|
19800
|
+
* @param {string} [hospitalId]
|
|
19516
19801
|
* @param {string} [id]
|
|
19517
19802
|
* @param {string} [fullname]
|
|
19518
19803
|
* @param {string} [email]
|
|
@@ -19526,8 +19811,22 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19526
19811
|
* @param {*} [options] Override http request option.
|
|
19527
19812
|
* @throws {RequiredError}
|
|
19528
19813
|
*/
|
|
19529
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19530
|
-
return localVarFp.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19814
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19815
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19816
|
+
},
|
|
19817
|
+
/**
|
|
19818
|
+
*
|
|
19819
|
+
* @summary Get all manager affiliations.
|
|
19820
|
+
* @param {string} managerId
|
|
19821
|
+
* @param {string} [hospitalName]
|
|
19822
|
+
* @param {number} [page]
|
|
19823
|
+
* @param {number} [limit]
|
|
19824
|
+
* @param {Date} [lastRetrieved]
|
|
19825
|
+
* @param {*} [options] Override http request option.
|
|
19826
|
+
* @throws {RequiredError}
|
|
19827
|
+
*/
|
|
19828
|
+
apiV1ManagersManagerIdAffiliationsGet: function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19829
|
+
return localVarFp.apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19531
19830
|
},
|
|
19532
19831
|
/**
|
|
19533
19832
|
*
|
|
@@ -19586,6 +19885,7 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19586
19885
|
/**
|
|
19587
19886
|
*
|
|
19588
19887
|
* @summary Get all Managers.
|
|
19888
|
+
* @param {string} [hospitalId]
|
|
19589
19889
|
* @param {string} [id]
|
|
19590
19890
|
* @param {string} [fullname]
|
|
19591
19891
|
* @param {string} [email]
|
|
@@ -19600,9 +19900,25 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19600
19900
|
* @throws {RequiredError}
|
|
19601
19901
|
* @memberof ManagersApi
|
|
19602
19902
|
*/
|
|
19603
|
-
ManagersApi.prototype.apiV1ManagersGet = function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19903
|
+
ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19904
|
+
var _this = this;
|
|
19905
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19906
|
+
};
|
|
19907
|
+
/**
|
|
19908
|
+
*
|
|
19909
|
+
* @summary Get all manager affiliations.
|
|
19910
|
+
* @param {string} managerId
|
|
19911
|
+
* @param {string} [hospitalName]
|
|
19912
|
+
* @param {number} [page]
|
|
19913
|
+
* @param {number} [limit]
|
|
19914
|
+
* @param {Date} [lastRetrieved]
|
|
19915
|
+
* @param {*} [options] Override http request option.
|
|
19916
|
+
* @throws {RequiredError}
|
|
19917
|
+
* @memberof ManagersApi
|
|
19918
|
+
*/
|
|
19919
|
+
ManagersApi.prototype.apiV1ManagersManagerIdAffiliationsGet = function (managerId, hospitalName, page, limit, lastRetrieved, options) {
|
|
19604
19920
|
var _this = this;
|
|
19605
|
-
return exports.ManagersApiFp(this.configuration).
|
|
19921
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdAffiliationsGet(managerId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19606
19922
|
};
|
|
19607
19923
|
/**
|
|
19608
19924
|
*
|
|
@@ -20813,6 +21129,111 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
20813
21129
|
return PatientsApi;
|
|
20814
21130
|
}(base_1.BaseAPI));
|
|
20815
21131
|
exports.PatientsApi = PatientsApi;
|
|
21132
|
+
/**
|
|
21133
|
+
* PaymentsApi - axios parameter creator
|
|
21134
|
+
* @export
|
|
21135
|
+
*/
|
|
21136
|
+
exports.PaymentsApiAxiosParamCreator = function (configuration) {
|
|
21137
|
+
var _this = this;
|
|
21138
|
+
return {
|
|
21139
|
+
/**
|
|
21140
|
+
*
|
|
21141
|
+
* @param {*} [options] Override http request option.
|
|
21142
|
+
* @throws {RequiredError}
|
|
21143
|
+
*/
|
|
21144
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21145
|
+
if (options === void 0) { options = {}; }
|
|
21146
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21147
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21148
|
+
return __generator(this, function (_a) {
|
|
21149
|
+
localVarPath = "/api/v1/payments/webhook";
|
|
21150
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21151
|
+
if (configuration) {
|
|
21152
|
+
baseOptions = configuration.baseOptions;
|
|
21153
|
+
}
|
|
21154
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
21155
|
+
localVarHeaderParameter = {};
|
|
21156
|
+
localVarQueryParameter = {};
|
|
21157
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21158
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21159
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21160
|
+
return [2 /*return*/, {
|
|
21161
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21162
|
+
options: localVarRequestOptions,
|
|
21163
|
+
}];
|
|
21164
|
+
});
|
|
21165
|
+
});
|
|
21166
|
+
},
|
|
21167
|
+
};
|
|
21168
|
+
};
|
|
21169
|
+
/**
|
|
21170
|
+
* PaymentsApi - functional programming interface
|
|
21171
|
+
* @export
|
|
21172
|
+
*/
|
|
21173
|
+
exports.PaymentsApiFp = function (configuration) {
|
|
21174
|
+
var localVarAxiosParamCreator = exports.PaymentsApiAxiosParamCreator(configuration);
|
|
21175
|
+
return {
|
|
21176
|
+
/**
|
|
21177
|
+
*
|
|
21178
|
+
* @param {*} [options] Override http request option.
|
|
21179
|
+
* @throws {RequiredError}
|
|
21180
|
+
*/
|
|
21181
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
21183
|
+
var localVarAxiosArgs;
|
|
21184
|
+
return __generator(this, function (_a) {
|
|
21185
|
+
switch (_a.label) {
|
|
21186
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PaymentsWebhookPost(options)];
|
|
21187
|
+
case 1:
|
|
21188
|
+
localVarAxiosArgs = _a.sent();
|
|
21189
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
21190
|
+
}
|
|
21191
|
+
});
|
|
21192
|
+
});
|
|
21193
|
+
},
|
|
21194
|
+
};
|
|
21195
|
+
};
|
|
21196
|
+
/**
|
|
21197
|
+
* PaymentsApi - factory interface
|
|
21198
|
+
* @export
|
|
21199
|
+
*/
|
|
21200
|
+
exports.PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
21201
|
+
var localVarFp = exports.PaymentsApiFp(configuration);
|
|
21202
|
+
return {
|
|
21203
|
+
/**
|
|
21204
|
+
*
|
|
21205
|
+
* @param {*} [options] Override http request option.
|
|
21206
|
+
* @throws {RequiredError}
|
|
21207
|
+
*/
|
|
21208
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21209
|
+
return localVarFp.apiV1PaymentsWebhookPost(options).then(function (request) { return request(axios, basePath); });
|
|
21210
|
+
},
|
|
21211
|
+
};
|
|
21212
|
+
};
|
|
21213
|
+
/**
|
|
21214
|
+
* PaymentsApi - object-oriented interface
|
|
21215
|
+
* @export
|
|
21216
|
+
* @class PaymentsApi
|
|
21217
|
+
* @extends {BaseAPI}
|
|
21218
|
+
*/
|
|
21219
|
+
var PaymentsApi = /** @class */ (function (_super) {
|
|
21220
|
+
__extends(PaymentsApi, _super);
|
|
21221
|
+
function PaymentsApi() {
|
|
21222
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21223
|
+
}
|
|
21224
|
+
/**
|
|
21225
|
+
*
|
|
21226
|
+
* @param {*} [options] Override http request option.
|
|
21227
|
+
* @throws {RequiredError}
|
|
21228
|
+
* @memberof PaymentsApi
|
|
21229
|
+
*/
|
|
21230
|
+
PaymentsApi.prototype.apiV1PaymentsWebhookPost = function (options) {
|
|
21231
|
+
var _this = this;
|
|
21232
|
+
return exports.PaymentsApiFp(this.configuration).apiV1PaymentsWebhookPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21233
|
+
};
|
|
21234
|
+
return PaymentsApi;
|
|
21235
|
+
}(base_1.BaseAPI));
|
|
21236
|
+
exports.PaymentsApi = PaymentsApi;
|
|
20816
21237
|
/**
|
|
20817
21238
|
* PlansApi - axios parameter creator
|
|
20818
21239
|
* @export
|
|
@@ -21925,6 +22346,48 @@ exports.ProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
21925
22346
|
});
|
|
21926
22347
|
});
|
|
21927
22348
|
},
|
|
22349
|
+
/**
|
|
22350
|
+
*
|
|
22351
|
+
* @summary Update Profile.
|
|
22352
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22353
|
+
* @param {*} [options] Override http request option.
|
|
22354
|
+
* @throws {RequiredError}
|
|
22355
|
+
*/
|
|
22356
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22357
|
+
if (options === void 0) { options = {}; }
|
|
22358
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
22359
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22360
|
+
return __generator(this, function (_a) {
|
|
22361
|
+
switch (_a.label) {
|
|
22362
|
+
case 0:
|
|
22363
|
+
localVarPath = "/api/v1/profiles";
|
|
22364
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22365
|
+
if (configuration) {
|
|
22366
|
+
baseOptions = configuration.baseOptions;
|
|
22367
|
+
}
|
|
22368
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
22369
|
+
localVarHeaderParameter = {};
|
|
22370
|
+
localVarQueryParameter = {};
|
|
22371
|
+
// authentication oauth2 required
|
|
22372
|
+
// oauth required
|
|
22373
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22374
|
+
case 1:
|
|
22375
|
+
// authentication oauth2 required
|
|
22376
|
+
// oauth required
|
|
22377
|
+
_a.sent();
|
|
22378
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22379
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22380
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22381
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22382
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateProfileCommand, localVarRequestOptions, configuration);
|
|
22383
|
+
return [2 /*return*/, {
|
|
22384
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
22385
|
+
options: localVarRequestOptions,
|
|
22386
|
+
}];
|
|
22387
|
+
}
|
|
22388
|
+
});
|
|
22389
|
+
});
|
|
22390
|
+
},
|
|
21928
22391
|
};
|
|
21929
22392
|
};
|
|
21930
22393
|
/**
|
|
@@ -21993,6 +22456,26 @@ exports.ProfilesApiFp = function (configuration) {
|
|
|
21993
22456
|
});
|
|
21994
22457
|
});
|
|
21995
22458
|
},
|
|
22459
|
+
/**
|
|
22460
|
+
*
|
|
22461
|
+
* @summary Update Profile.
|
|
22462
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22463
|
+
* @param {*} [options] Override http request option.
|
|
22464
|
+
* @throws {RequiredError}
|
|
22465
|
+
*/
|
|
22466
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22467
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
22468
|
+
var localVarAxiosArgs;
|
|
22469
|
+
return __generator(this, function (_a) {
|
|
22470
|
+
switch (_a.label) {
|
|
22471
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesPut(updateProfileCommand, options)];
|
|
22472
|
+
case 1:
|
|
22473
|
+
localVarAxiosArgs = _a.sent();
|
|
22474
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
22475
|
+
}
|
|
22476
|
+
});
|
|
22477
|
+
});
|
|
22478
|
+
},
|
|
21996
22479
|
};
|
|
21997
22480
|
};
|
|
21998
22481
|
/**
|
|
@@ -22031,6 +22514,16 @@ exports.ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
|
22031
22514
|
apiV1ProfilesGet: function (options) {
|
|
22032
22515
|
return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
|
|
22033
22516
|
},
|
|
22517
|
+
/**
|
|
22518
|
+
*
|
|
22519
|
+
* @summary Update Profile.
|
|
22520
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22521
|
+
* @param {*} [options] Override http request option.
|
|
22522
|
+
* @throws {RequiredError}
|
|
22523
|
+
*/
|
|
22524
|
+
apiV1ProfilesPut: function (updateProfileCommand, options) {
|
|
22525
|
+
return localVarFp.apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(axios, basePath); });
|
|
22526
|
+
},
|
|
22034
22527
|
};
|
|
22035
22528
|
};
|
|
22036
22529
|
/**
|
|
@@ -22079,6 +22572,18 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
22079
22572
|
var _this = this;
|
|
22080
22573
|
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22081
22574
|
};
|
|
22575
|
+
/**
|
|
22576
|
+
*
|
|
22577
|
+
* @summary Update Profile.
|
|
22578
|
+
* @param {UpdateProfileCommand} [updateProfileCommand]
|
|
22579
|
+
* @param {*} [options] Override http request option.
|
|
22580
|
+
* @throws {RequiredError}
|
|
22581
|
+
* @memberof ProfilesApi
|
|
22582
|
+
*/
|
|
22583
|
+
ProfilesApi.prototype.apiV1ProfilesPut = function (updateProfileCommand, options) {
|
|
22584
|
+
var _this = this;
|
|
22585
|
+
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesPut(updateProfileCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22586
|
+
};
|
|
22082
22587
|
return ProfilesApi;
|
|
22083
22588
|
}(base_1.BaseAPI));
|
|
22084
22589
|
exports.ProfilesApi = ProfilesApi;
|