ch-admin-api-client-typescript 2.3.7 → 2.4.1
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 +190 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +314 -8
- package/package.json +1 -1
- package/src/api.ts +343 -7
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
|
}
|
|
@@ -19394,6 +19592,7 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19394
19592
|
/**
|
|
19395
19593
|
*
|
|
19396
19594
|
* @summary Get all Managers.
|
|
19595
|
+
* @param {string} [hospitalId]
|
|
19397
19596
|
* @param {string} [id]
|
|
19398
19597
|
* @param {string} [fullname]
|
|
19399
19598
|
* @param {string} [email]
|
|
@@ -19407,12 +19606,12 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19407
19606
|
* @param {*} [options] Override http request option.
|
|
19408
19607
|
* @throws {RequiredError}
|
|
19409
19608
|
*/
|
|
19410
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19609
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19411
19610
|
return __awaiter(this, void 0, void 0, function () {
|
|
19412
19611
|
var localVarAxiosArgs;
|
|
19413
19612
|
return __generator(this, function (_a) {
|
|
19414
19613
|
switch (_a.label) {
|
|
19415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19614
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19416
19615
|
case 1:
|
|
19417
19616
|
localVarAxiosArgs = _a.sent();
|
|
19418
19617
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -19513,6 +19712,7 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19513
19712
|
/**
|
|
19514
19713
|
*
|
|
19515
19714
|
* @summary Get all Managers.
|
|
19715
|
+
* @param {string} [hospitalId]
|
|
19516
19716
|
* @param {string} [id]
|
|
19517
19717
|
* @param {string} [fullname]
|
|
19518
19718
|
* @param {string} [email]
|
|
@@ -19526,8 +19726,8 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19526
19726
|
* @param {*} [options] Override http request option.
|
|
19527
19727
|
* @throws {RequiredError}
|
|
19528
19728
|
*/
|
|
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); });
|
|
19729
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19730
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19531
19731
|
},
|
|
19532
19732
|
/**
|
|
19533
19733
|
*
|
|
@@ -19586,6 +19786,7 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19586
19786
|
/**
|
|
19587
19787
|
*
|
|
19588
19788
|
* @summary Get all Managers.
|
|
19789
|
+
* @param {string} [hospitalId]
|
|
19589
19790
|
* @param {string} [id]
|
|
19590
19791
|
* @param {string} [fullname]
|
|
19591
19792
|
* @param {string} [email]
|
|
@@ -19600,9 +19801,9 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19600
19801
|
* @throws {RequiredError}
|
|
19601
19802
|
* @memberof ManagersApi
|
|
19602
19803
|
*/
|
|
19603
|
-
ManagersApi.prototype.apiV1ManagersGet = function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19804
|
+
ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19604
19805
|
var _this = this;
|
|
19605
|
-
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19806
|
+
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); });
|
|
19606
19807
|
};
|
|
19607
19808
|
/**
|
|
19608
19809
|
*
|
|
@@ -20813,6 +21014,111 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
20813
21014
|
return PatientsApi;
|
|
20814
21015
|
}(base_1.BaseAPI));
|
|
20815
21016
|
exports.PatientsApi = PatientsApi;
|
|
21017
|
+
/**
|
|
21018
|
+
* PaymentsApi - axios parameter creator
|
|
21019
|
+
* @export
|
|
21020
|
+
*/
|
|
21021
|
+
exports.PaymentsApiAxiosParamCreator = function (configuration) {
|
|
21022
|
+
var _this = this;
|
|
21023
|
+
return {
|
|
21024
|
+
/**
|
|
21025
|
+
*
|
|
21026
|
+
* @param {*} [options] Override http request option.
|
|
21027
|
+
* @throws {RequiredError}
|
|
21028
|
+
*/
|
|
21029
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21030
|
+
if (options === void 0) { options = {}; }
|
|
21031
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
21032
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
21033
|
+
return __generator(this, function (_a) {
|
|
21034
|
+
localVarPath = "/api/v1/payments/webhook";
|
|
21035
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21036
|
+
if (configuration) {
|
|
21037
|
+
baseOptions = configuration.baseOptions;
|
|
21038
|
+
}
|
|
21039
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
21040
|
+
localVarHeaderParameter = {};
|
|
21041
|
+
localVarQueryParameter = {};
|
|
21042
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21043
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21044
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21045
|
+
return [2 /*return*/, {
|
|
21046
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
21047
|
+
options: localVarRequestOptions,
|
|
21048
|
+
}];
|
|
21049
|
+
});
|
|
21050
|
+
});
|
|
21051
|
+
},
|
|
21052
|
+
};
|
|
21053
|
+
};
|
|
21054
|
+
/**
|
|
21055
|
+
* PaymentsApi - functional programming interface
|
|
21056
|
+
* @export
|
|
21057
|
+
*/
|
|
21058
|
+
exports.PaymentsApiFp = function (configuration) {
|
|
21059
|
+
var localVarAxiosParamCreator = exports.PaymentsApiAxiosParamCreator(configuration);
|
|
21060
|
+
return {
|
|
21061
|
+
/**
|
|
21062
|
+
*
|
|
21063
|
+
* @param {*} [options] Override http request option.
|
|
21064
|
+
* @throws {RequiredError}
|
|
21065
|
+
*/
|
|
21066
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21067
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
21068
|
+
var localVarAxiosArgs;
|
|
21069
|
+
return __generator(this, function (_a) {
|
|
21070
|
+
switch (_a.label) {
|
|
21071
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PaymentsWebhookPost(options)];
|
|
21072
|
+
case 1:
|
|
21073
|
+
localVarAxiosArgs = _a.sent();
|
|
21074
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
21075
|
+
}
|
|
21076
|
+
});
|
|
21077
|
+
});
|
|
21078
|
+
},
|
|
21079
|
+
};
|
|
21080
|
+
};
|
|
21081
|
+
/**
|
|
21082
|
+
* PaymentsApi - factory interface
|
|
21083
|
+
* @export
|
|
21084
|
+
*/
|
|
21085
|
+
exports.PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
21086
|
+
var localVarFp = exports.PaymentsApiFp(configuration);
|
|
21087
|
+
return {
|
|
21088
|
+
/**
|
|
21089
|
+
*
|
|
21090
|
+
* @param {*} [options] Override http request option.
|
|
21091
|
+
* @throws {RequiredError}
|
|
21092
|
+
*/
|
|
21093
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
21094
|
+
return localVarFp.apiV1PaymentsWebhookPost(options).then(function (request) { return request(axios, basePath); });
|
|
21095
|
+
},
|
|
21096
|
+
};
|
|
21097
|
+
};
|
|
21098
|
+
/**
|
|
21099
|
+
* PaymentsApi - object-oriented interface
|
|
21100
|
+
* @export
|
|
21101
|
+
* @class PaymentsApi
|
|
21102
|
+
* @extends {BaseAPI}
|
|
21103
|
+
*/
|
|
21104
|
+
var PaymentsApi = /** @class */ (function (_super) {
|
|
21105
|
+
__extends(PaymentsApi, _super);
|
|
21106
|
+
function PaymentsApi() {
|
|
21107
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
21108
|
+
}
|
|
21109
|
+
/**
|
|
21110
|
+
*
|
|
21111
|
+
* @param {*} [options] Override http request option.
|
|
21112
|
+
* @throws {RequiredError}
|
|
21113
|
+
* @memberof PaymentsApi
|
|
21114
|
+
*/
|
|
21115
|
+
PaymentsApi.prototype.apiV1PaymentsWebhookPost = function (options) {
|
|
21116
|
+
var _this = this;
|
|
21117
|
+
return exports.PaymentsApiFp(this.configuration).apiV1PaymentsWebhookPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21118
|
+
};
|
|
21119
|
+
return PaymentsApi;
|
|
21120
|
+
}(base_1.BaseAPI));
|
|
21121
|
+
exports.PaymentsApi = PaymentsApi;
|
|
20816
21122
|
/**
|
|
20817
21123
|
* PlansApi - axios parameter creator
|
|
20818
21124
|
* @export
|