ch-admin-api-client-typescript 2.3.6 → 2.4.0
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 +59 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +120 -8
- package/package.json +1 -1
- package/src/api.ts +109 -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
|
|
@@ -19126,6 +19126,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19126
19126
|
/**
|
|
19127
19127
|
*
|
|
19128
19128
|
* @summary Get all Managers.
|
|
19129
|
+
* @param {string} [hospitalId]
|
|
19129
19130
|
* @param {string} [id]
|
|
19130
19131
|
* @param {string} [fullname]
|
|
19131
19132
|
* @param {string} [email]
|
|
@@ -19139,7 +19140,7 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19139
19140
|
* @param {*} [options] Override http request option.
|
|
19140
19141
|
* @throws {RequiredError}
|
|
19141
19142
|
*/
|
|
19142
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19143
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19143
19144
|
if (options === void 0) { options = {}; }
|
|
19144
19145
|
return __awaiter(_this, void 0, void 0, function () {
|
|
19145
19146
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -19161,6 +19162,9 @@ exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
|
19161
19162
|
// authentication oauth2 required
|
|
19162
19163
|
// oauth required
|
|
19163
19164
|
_a.sent();
|
|
19165
|
+
if (hospitalId !== undefined) {
|
|
19166
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
19167
|
+
}
|
|
19164
19168
|
if (id !== undefined) {
|
|
19165
19169
|
localVarQueryParameter['Id'] = id;
|
|
19166
19170
|
}
|
|
@@ -19394,6 +19398,7 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19394
19398
|
/**
|
|
19395
19399
|
*
|
|
19396
19400
|
* @summary Get all Managers.
|
|
19401
|
+
* @param {string} [hospitalId]
|
|
19397
19402
|
* @param {string} [id]
|
|
19398
19403
|
* @param {string} [fullname]
|
|
19399
19404
|
* @param {string} [email]
|
|
@@ -19407,12 +19412,12 @@ exports.ManagersApiFp = function (configuration) {
|
|
|
19407
19412
|
* @param {*} [options] Override http request option.
|
|
19408
19413
|
* @throws {RequiredError}
|
|
19409
19414
|
*/
|
|
19410
|
-
apiV1ManagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19415
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19411
19416
|
return __awaiter(this, void 0, void 0, function () {
|
|
19412
19417
|
var localVarAxiosArgs;
|
|
19413
19418
|
return __generator(this, function (_a) {
|
|
19414
19419
|
switch (_a.label) {
|
|
19415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19420
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
19416
19421
|
case 1:
|
|
19417
19422
|
localVarAxiosArgs = _a.sent();
|
|
19418
19423
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -19513,6 +19518,7 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19513
19518
|
/**
|
|
19514
19519
|
*
|
|
19515
19520
|
* @summary Get all Managers.
|
|
19521
|
+
* @param {string} [hospitalId]
|
|
19516
19522
|
* @param {string} [id]
|
|
19517
19523
|
* @param {string} [fullname]
|
|
19518
19524
|
* @param {string} [email]
|
|
@@ -19526,8 +19532,8 @@ exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
|
19526
19532
|
* @param {*} [options] Override http request option.
|
|
19527
19533
|
* @throws {RequiredError}
|
|
19528
19534
|
*/
|
|
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); });
|
|
19535
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19536
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19531
19537
|
},
|
|
19532
19538
|
/**
|
|
19533
19539
|
*
|
|
@@ -19586,6 +19592,7 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19586
19592
|
/**
|
|
19587
19593
|
*
|
|
19588
19594
|
* @summary Get all Managers.
|
|
19595
|
+
* @param {string} [hospitalId]
|
|
19589
19596
|
* @param {string} [id]
|
|
19590
19597
|
* @param {string} [fullname]
|
|
19591
19598
|
* @param {string} [email]
|
|
@@ -19600,9 +19607,9 @@ var ManagersApi = /** @class */ (function (_super) {
|
|
|
19600
19607
|
* @throws {RequiredError}
|
|
19601
19608
|
* @memberof ManagersApi
|
|
19602
19609
|
*/
|
|
19603
|
-
ManagersApi.prototype.apiV1ManagersGet = function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19610
|
+
ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
19604
19611
|
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); });
|
|
19612
|
+
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
19613
|
};
|
|
19607
19614
|
/**
|
|
19608
19615
|
*
|
|
@@ -20813,6 +20820,111 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
20813
20820
|
return PatientsApi;
|
|
20814
20821
|
}(base_1.BaseAPI));
|
|
20815
20822
|
exports.PatientsApi = PatientsApi;
|
|
20823
|
+
/**
|
|
20824
|
+
* PaymentsApi - axios parameter creator
|
|
20825
|
+
* @export
|
|
20826
|
+
*/
|
|
20827
|
+
exports.PaymentsApiAxiosParamCreator = function (configuration) {
|
|
20828
|
+
var _this = this;
|
|
20829
|
+
return {
|
|
20830
|
+
/**
|
|
20831
|
+
*
|
|
20832
|
+
* @param {*} [options] Override http request option.
|
|
20833
|
+
* @throws {RequiredError}
|
|
20834
|
+
*/
|
|
20835
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
20836
|
+
if (options === void 0) { options = {}; }
|
|
20837
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20838
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20839
|
+
return __generator(this, function (_a) {
|
|
20840
|
+
localVarPath = "/api/v1/payments/webhook";
|
|
20841
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20842
|
+
if (configuration) {
|
|
20843
|
+
baseOptions = configuration.baseOptions;
|
|
20844
|
+
}
|
|
20845
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20846
|
+
localVarHeaderParameter = {};
|
|
20847
|
+
localVarQueryParameter = {};
|
|
20848
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20849
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20850
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20851
|
+
return [2 /*return*/, {
|
|
20852
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20853
|
+
options: localVarRequestOptions,
|
|
20854
|
+
}];
|
|
20855
|
+
});
|
|
20856
|
+
});
|
|
20857
|
+
},
|
|
20858
|
+
};
|
|
20859
|
+
};
|
|
20860
|
+
/**
|
|
20861
|
+
* PaymentsApi - functional programming interface
|
|
20862
|
+
* @export
|
|
20863
|
+
*/
|
|
20864
|
+
exports.PaymentsApiFp = function (configuration) {
|
|
20865
|
+
var localVarAxiosParamCreator = exports.PaymentsApiAxiosParamCreator(configuration);
|
|
20866
|
+
return {
|
|
20867
|
+
/**
|
|
20868
|
+
*
|
|
20869
|
+
* @param {*} [options] Override http request option.
|
|
20870
|
+
* @throws {RequiredError}
|
|
20871
|
+
*/
|
|
20872
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
20873
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20874
|
+
var localVarAxiosArgs;
|
|
20875
|
+
return __generator(this, function (_a) {
|
|
20876
|
+
switch (_a.label) {
|
|
20877
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PaymentsWebhookPost(options)];
|
|
20878
|
+
case 1:
|
|
20879
|
+
localVarAxiosArgs = _a.sent();
|
|
20880
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20881
|
+
}
|
|
20882
|
+
});
|
|
20883
|
+
});
|
|
20884
|
+
},
|
|
20885
|
+
};
|
|
20886
|
+
};
|
|
20887
|
+
/**
|
|
20888
|
+
* PaymentsApi - factory interface
|
|
20889
|
+
* @export
|
|
20890
|
+
*/
|
|
20891
|
+
exports.PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
20892
|
+
var localVarFp = exports.PaymentsApiFp(configuration);
|
|
20893
|
+
return {
|
|
20894
|
+
/**
|
|
20895
|
+
*
|
|
20896
|
+
* @param {*} [options] Override http request option.
|
|
20897
|
+
* @throws {RequiredError}
|
|
20898
|
+
*/
|
|
20899
|
+
apiV1PaymentsWebhookPost: function (options) {
|
|
20900
|
+
return localVarFp.apiV1PaymentsWebhookPost(options).then(function (request) { return request(axios, basePath); });
|
|
20901
|
+
},
|
|
20902
|
+
};
|
|
20903
|
+
};
|
|
20904
|
+
/**
|
|
20905
|
+
* PaymentsApi - object-oriented interface
|
|
20906
|
+
* @export
|
|
20907
|
+
* @class PaymentsApi
|
|
20908
|
+
* @extends {BaseAPI}
|
|
20909
|
+
*/
|
|
20910
|
+
var PaymentsApi = /** @class */ (function (_super) {
|
|
20911
|
+
__extends(PaymentsApi, _super);
|
|
20912
|
+
function PaymentsApi() {
|
|
20913
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20914
|
+
}
|
|
20915
|
+
/**
|
|
20916
|
+
*
|
|
20917
|
+
* @param {*} [options] Override http request option.
|
|
20918
|
+
* @throws {RequiredError}
|
|
20919
|
+
* @memberof PaymentsApi
|
|
20920
|
+
*/
|
|
20921
|
+
PaymentsApi.prototype.apiV1PaymentsWebhookPost = function (options) {
|
|
20922
|
+
var _this = this;
|
|
20923
|
+
return exports.PaymentsApiFp(this.configuration).apiV1PaymentsWebhookPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20924
|
+
};
|
|
20925
|
+
return PaymentsApi;
|
|
20926
|
+
}(base_1.BaseAPI));
|
|
20927
|
+
exports.PaymentsApi = PaymentsApi;
|
|
20816
20928
|
/**
|
|
20817
20929
|
* PlansApi - axios parameter creator
|
|
20818
20930
|
* @export
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -31166,6 +31166,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31166
31166
|
/**
|
|
31167
31167
|
*
|
|
31168
31168
|
* @summary Get all Managers.
|
|
31169
|
+
* @param {string} [hospitalId]
|
|
31169
31170
|
* @param {string} [id]
|
|
31170
31171
|
* @param {string} [fullname]
|
|
31171
31172
|
* @param {string} [email]
|
|
@@ -31179,7 +31180,7 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31179
31180
|
* @param {*} [options] Override http request option.
|
|
31180
31181
|
* @throws {RequiredError}
|
|
31181
31182
|
*/
|
|
31182
|
-
apiV1ManagersGet: async (id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31183
|
+
apiV1ManagersGet: async (hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31183
31184
|
const localVarPath = `/api/v1/managers`;
|
|
31184
31185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31185
31186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -31196,6 +31197,10 @@ export const ManagersApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31196
31197
|
// oauth required
|
|
31197
31198
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
31198
31199
|
|
|
31200
|
+
if (hospitalId !== undefined) {
|
|
31201
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
31202
|
+
}
|
|
31203
|
+
|
|
31199
31204
|
if (id !== undefined) {
|
|
31200
31205
|
localVarQueryParameter['Id'] = id;
|
|
31201
31206
|
}
|
|
@@ -31422,6 +31427,7 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31422
31427
|
/**
|
|
31423
31428
|
*
|
|
31424
31429
|
* @summary Get all Managers.
|
|
31430
|
+
* @param {string} [hospitalId]
|
|
31425
31431
|
* @param {string} [id]
|
|
31426
31432
|
* @param {string} [fullname]
|
|
31427
31433
|
* @param {string} [email]
|
|
@@ -31435,8 +31441,8 @@ export const ManagersApiFp = function(configuration?: Configuration) {
|
|
|
31435
31441
|
* @param {*} [options] Override http request option.
|
|
31436
31442
|
* @throws {RequiredError}
|
|
31437
31443
|
*/
|
|
31438
|
-
async apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
|
|
31439
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
31444
|
+
async apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
|
|
31445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
31440
31446
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
31441
31447
|
},
|
|
31442
31448
|
/**
|
|
@@ -31497,6 +31503,7 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31497
31503
|
/**
|
|
31498
31504
|
*
|
|
31499
31505
|
* @summary Get all Managers.
|
|
31506
|
+
* @param {string} [hospitalId]
|
|
31500
31507
|
* @param {string} [id]
|
|
31501
31508
|
* @param {string} [fullname]
|
|
31502
31509
|
* @param {string} [email]
|
|
@@ -31510,8 +31517,8 @@ export const ManagersApiFactory = function (configuration?: Configuration, baseP
|
|
|
31510
31517
|
* @param {*} [options] Override http request option.
|
|
31511
31518
|
* @throws {RequiredError}
|
|
31512
31519
|
*/
|
|
31513
|
-
apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
|
|
31514
|
-
return localVarFp.apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
31520
|
+
apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
|
|
31521
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
31515
31522
|
},
|
|
31516
31523
|
/**
|
|
31517
31524
|
*
|
|
@@ -31567,6 +31574,7 @@ export class ManagersApi extends BaseAPI {
|
|
|
31567
31574
|
/**
|
|
31568
31575
|
*
|
|
31569
31576
|
* @summary Get all Managers.
|
|
31577
|
+
* @param {string} [hospitalId]
|
|
31570
31578
|
* @param {string} [id]
|
|
31571
31579
|
* @param {string} [fullname]
|
|
31572
31580
|
* @param {string} [email]
|
|
@@ -31581,8 +31589,8 @@ export class ManagersApi extends BaseAPI {
|
|
|
31581
31589
|
* @throws {RequiredError}
|
|
31582
31590
|
* @memberof ManagersApi
|
|
31583
31591
|
*/
|
|
31584
|
-
public apiV1ManagersGet(id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
31585
|
-
return ManagersApiFp(this.configuration).apiV1ManagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
31592
|
+
public apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
31593
|
+
return ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
31586
31594
|
}
|
|
31587
31595
|
|
|
31588
31596
|
/**
|
|
@@ -32674,6 +32682,100 @@ export class PatientsApi extends BaseAPI {
|
|
|
32674
32682
|
}
|
|
32675
32683
|
|
|
32676
32684
|
|
|
32685
|
+
/**
|
|
32686
|
+
* PaymentsApi - axios parameter creator
|
|
32687
|
+
* @export
|
|
32688
|
+
*/
|
|
32689
|
+
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32690
|
+
return {
|
|
32691
|
+
/**
|
|
32692
|
+
*
|
|
32693
|
+
* @param {*} [options] Override http request option.
|
|
32694
|
+
* @throws {RequiredError}
|
|
32695
|
+
*/
|
|
32696
|
+
apiV1PaymentsWebhookPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32697
|
+
const localVarPath = `/api/v1/payments/webhook`;
|
|
32698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32700
|
+
let baseOptions;
|
|
32701
|
+
if (configuration) {
|
|
32702
|
+
baseOptions = configuration.baseOptions;
|
|
32703
|
+
}
|
|
32704
|
+
|
|
32705
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32706
|
+
const localVarHeaderParameter = {} as any;
|
|
32707
|
+
const localVarQueryParameter = {} as any;
|
|
32708
|
+
|
|
32709
|
+
|
|
32710
|
+
|
|
32711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32713
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32714
|
+
|
|
32715
|
+
return {
|
|
32716
|
+
url: toPathString(localVarUrlObj),
|
|
32717
|
+
options: localVarRequestOptions,
|
|
32718
|
+
};
|
|
32719
|
+
},
|
|
32720
|
+
}
|
|
32721
|
+
};
|
|
32722
|
+
|
|
32723
|
+
/**
|
|
32724
|
+
* PaymentsApi - functional programming interface
|
|
32725
|
+
* @export
|
|
32726
|
+
*/
|
|
32727
|
+
export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
32728
|
+
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
32729
|
+
return {
|
|
32730
|
+
/**
|
|
32731
|
+
*
|
|
32732
|
+
* @param {*} [options] Override http request option.
|
|
32733
|
+
* @throws {RequiredError}
|
|
32734
|
+
*/
|
|
32735
|
+
async apiV1PaymentsWebhookPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
32736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PaymentsWebhookPost(options);
|
|
32737
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32738
|
+
},
|
|
32739
|
+
}
|
|
32740
|
+
};
|
|
32741
|
+
|
|
32742
|
+
/**
|
|
32743
|
+
* PaymentsApi - factory interface
|
|
32744
|
+
* @export
|
|
32745
|
+
*/
|
|
32746
|
+
export const PaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32747
|
+
const localVarFp = PaymentsApiFp(configuration)
|
|
32748
|
+
return {
|
|
32749
|
+
/**
|
|
32750
|
+
*
|
|
32751
|
+
* @param {*} [options] Override http request option.
|
|
32752
|
+
* @throws {RequiredError}
|
|
32753
|
+
*/
|
|
32754
|
+
apiV1PaymentsWebhookPost(options?: any): AxiosPromise<void> {
|
|
32755
|
+
return localVarFp.apiV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
32756
|
+
},
|
|
32757
|
+
};
|
|
32758
|
+
};
|
|
32759
|
+
|
|
32760
|
+
/**
|
|
32761
|
+
* PaymentsApi - object-oriented interface
|
|
32762
|
+
* @export
|
|
32763
|
+
* @class PaymentsApi
|
|
32764
|
+
* @extends {BaseAPI}
|
|
32765
|
+
*/
|
|
32766
|
+
export class PaymentsApi extends BaseAPI {
|
|
32767
|
+
/**
|
|
32768
|
+
*
|
|
32769
|
+
* @param {*} [options] Override http request option.
|
|
32770
|
+
* @throws {RequiredError}
|
|
32771
|
+
* @memberof PaymentsApi
|
|
32772
|
+
*/
|
|
32773
|
+
public apiV1PaymentsWebhookPost(options?: AxiosRequestConfig) {
|
|
32774
|
+
return PaymentsApiFp(this.configuration).apiV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
32775
|
+
}
|
|
32776
|
+
}
|
|
32777
|
+
|
|
32778
|
+
|
|
32677
32779
|
/**
|
|
32678
32780
|
* PlansApi - axios parameter creator
|
|
32679
32781
|
* @export
|