ch-api-client-typescript2 4.4.4 → 4.4.6
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 +376 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +447 -3
- package/package.json +1 -1
- package/src/api.ts +561 -0
package/lib/api.js
CHANGED
|
@@ -78,9 +78,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
81
|
+
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.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.DayOfWeek = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = void 0;
|
|
82
|
+
exports.HospitalsConsultationTimetableOverridesApiFp = exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.ExternalApi = exports.ExternalApiFactory = exports.ExternalApiFp = exports.ExternalApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = void 0;
|
|
83
|
+
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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = 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.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp = exports.HospitalsConsultationTimetablesApiAxiosParamCreator = exports.HospitalsConsultationTimetableOverridesApi = exports.HospitalsConsultationTimetableOverridesApiFactory = void 0;
|
|
84
|
+
exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = void 0;
|
|
84
85
|
var axios_1 = __importDefault(require("axios"));
|
|
85
86
|
// Some imports not used depending on template conditions
|
|
86
87
|
// @ts-ignore
|
|
@@ -139,6 +140,21 @@ var ContributionType;
|
|
|
139
140
|
ContributionType["WrittenBy"] = "WrittenBy";
|
|
140
141
|
ContributionType["InterviewWith"] = "InterviewWith";
|
|
141
142
|
})(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @export
|
|
146
|
+
* @enum {string}
|
|
147
|
+
*/
|
|
148
|
+
var DayOfWeek;
|
|
149
|
+
(function (DayOfWeek) {
|
|
150
|
+
DayOfWeek["Sunday"] = "Sunday";
|
|
151
|
+
DayOfWeek["Monday"] = "Monday";
|
|
152
|
+
DayOfWeek["Tuesday"] = "Tuesday";
|
|
153
|
+
DayOfWeek["Wednesday"] = "Wednesday";
|
|
154
|
+
DayOfWeek["Thursday"] = "Thursday";
|
|
155
|
+
DayOfWeek["Friday"] = "Friday";
|
|
156
|
+
DayOfWeek["Saturday"] = "Saturday";
|
|
157
|
+
})(DayOfWeek = exports.DayOfWeek || (exports.DayOfWeek = {}));
|
|
142
158
|
/**
|
|
143
159
|
*
|
|
144
160
|
* @export
|
|
@@ -11006,6 +11022,125 @@ var GroupChannelsApi = /** @class */ (function (_super) {
|
|
|
11006
11022
|
return GroupChannelsApi;
|
|
11007
11023
|
}(base_1.BaseAPI));
|
|
11008
11024
|
exports.GroupChannelsApi = GroupChannelsApi;
|
|
11025
|
+
/**
|
|
11026
|
+
* HeaderNavigationsApi - axios parameter creator
|
|
11027
|
+
* @export
|
|
11028
|
+
*/
|
|
11029
|
+
var HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
11030
|
+
var _this = this;
|
|
11031
|
+
return {
|
|
11032
|
+
/**
|
|
11033
|
+
*
|
|
11034
|
+
* @summary Get all HeaderNavigationItems
|
|
11035
|
+
* @param {string} [languageCode]
|
|
11036
|
+
* @param {*} [options] Override http request option.
|
|
11037
|
+
* @throws {RequiredError}
|
|
11038
|
+
*/
|
|
11039
|
+
apiV2HeadernavigationsGet: function (languageCode, options) {
|
|
11040
|
+
if (options === void 0) { options = {}; }
|
|
11041
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
11042
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11043
|
+
return __generator(this, function (_a) {
|
|
11044
|
+
localVarPath = "/api/v2/headernavigations";
|
|
11045
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11046
|
+
if (configuration) {
|
|
11047
|
+
baseOptions = configuration.baseOptions;
|
|
11048
|
+
}
|
|
11049
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
11050
|
+
localVarHeaderParameter = {};
|
|
11051
|
+
localVarQueryParameter = {};
|
|
11052
|
+
if (languageCode !== undefined) {
|
|
11053
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
11054
|
+
}
|
|
11055
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11056
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11057
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11058
|
+
return [2 /*return*/, {
|
|
11059
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11060
|
+
options: localVarRequestOptions,
|
|
11061
|
+
}];
|
|
11062
|
+
});
|
|
11063
|
+
});
|
|
11064
|
+
},
|
|
11065
|
+
};
|
|
11066
|
+
};
|
|
11067
|
+
exports.HeaderNavigationsApiAxiosParamCreator = HeaderNavigationsApiAxiosParamCreator;
|
|
11068
|
+
/**
|
|
11069
|
+
* HeaderNavigationsApi - functional programming interface
|
|
11070
|
+
* @export
|
|
11071
|
+
*/
|
|
11072
|
+
var HeaderNavigationsApiFp = function (configuration) {
|
|
11073
|
+
var localVarAxiosParamCreator = (0, exports.HeaderNavigationsApiAxiosParamCreator)(configuration);
|
|
11074
|
+
return {
|
|
11075
|
+
/**
|
|
11076
|
+
*
|
|
11077
|
+
* @summary Get all HeaderNavigationItems
|
|
11078
|
+
* @param {string} [languageCode]
|
|
11079
|
+
* @param {*} [options] Override http request option.
|
|
11080
|
+
* @throws {RequiredError}
|
|
11081
|
+
*/
|
|
11082
|
+
apiV2HeadernavigationsGet: function (languageCode, options) {
|
|
11083
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11084
|
+
var localVarAxiosArgs;
|
|
11085
|
+
return __generator(this, function (_a) {
|
|
11086
|
+
switch (_a.label) {
|
|
11087
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HeadernavigationsGet(languageCode, options)];
|
|
11088
|
+
case 1:
|
|
11089
|
+
localVarAxiosArgs = _a.sent();
|
|
11090
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11091
|
+
}
|
|
11092
|
+
});
|
|
11093
|
+
});
|
|
11094
|
+
},
|
|
11095
|
+
};
|
|
11096
|
+
};
|
|
11097
|
+
exports.HeaderNavigationsApiFp = HeaderNavigationsApiFp;
|
|
11098
|
+
/**
|
|
11099
|
+
* HeaderNavigationsApi - factory interface
|
|
11100
|
+
* @export
|
|
11101
|
+
*/
|
|
11102
|
+
var HeaderNavigationsApiFactory = function (configuration, basePath, axios) {
|
|
11103
|
+
var localVarFp = (0, exports.HeaderNavigationsApiFp)(configuration);
|
|
11104
|
+
return {
|
|
11105
|
+
/**
|
|
11106
|
+
*
|
|
11107
|
+
* @summary Get all HeaderNavigationItems
|
|
11108
|
+
* @param {string} [languageCode]
|
|
11109
|
+
* @param {*} [options] Override http request option.
|
|
11110
|
+
* @throws {RequiredError}
|
|
11111
|
+
*/
|
|
11112
|
+
apiV2HeadernavigationsGet: function (languageCode, options) {
|
|
11113
|
+
return localVarFp.apiV2HeadernavigationsGet(languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
11114
|
+
},
|
|
11115
|
+
};
|
|
11116
|
+
};
|
|
11117
|
+
exports.HeaderNavigationsApiFactory = HeaderNavigationsApiFactory;
|
|
11118
|
+
/**
|
|
11119
|
+
* HeaderNavigationsApi - object-oriented interface
|
|
11120
|
+
* @export
|
|
11121
|
+
* @class HeaderNavigationsApi
|
|
11122
|
+
* @extends {BaseAPI}
|
|
11123
|
+
*/
|
|
11124
|
+
var HeaderNavigationsApi = /** @class */ (function (_super) {
|
|
11125
|
+
__extends(HeaderNavigationsApi, _super);
|
|
11126
|
+
function HeaderNavigationsApi() {
|
|
11127
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11128
|
+
}
|
|
11129
|
+
/**
|
|
11130
|
+
*
|
|
11131
|
+
* @summary Get all HeaderNavigationItems
|
|
11132
|
+
* @param {string} [languageCode]
|
|
11133
|
+
* @param {*} [options] Override http request option.
|
|
11134
|
+
* @throws {RequiredError}
|
|
11135
|
+
* @memberof HeaderNavigationsApi
|
|
11136
|
+
*/
|
|
11137
|
+
HeaderNavigationsApi.prototype.apiV2HeadernavigationsGet = function (languageCode, options) {
|
|
11138
|
+
var _this = this;
|
|
11139
|
+
return (0, exports.HeaderNavigationsApiFp)(this.configuration).apiV2HeadernavigationsGet(languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11140
|
+
};
|
|
11141
|
+
return HeaderNavigationsApi;
|
|
11142
|
+
}(base_1.BaseAPI));
|
|
11143
|
+
exports.HeaderNavigationsApi = HeaderNavigationsApi;
|
|
11009
11144
|
/**
|
|
11010
11145
|
* HospitalsApi - axios parameter creator
|
|
11011
11146
|
* @export
|
|
@@ -14545,6 +14680,315 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
14545
14680
|
return HospitalsApi;
|
|
14546
14681
|
}(base_1.BaseAPI));
|
|
14547
14682
|
exports.HospitalsApi = HospitalsApi;
|
|
14683
|
+
/**
|
|
14684
|
+
* HospitalsConsultationTimetableOverridesApi - axios parameter creator
|
|
14685
|
+
* @export
|
|
14686
|
+
*/
|
|
14687
|
+
var HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration) {
|
|
14688
|
+
var _this = this;
|
|
14689
|
+
return {
|
|
14690
|
+
/**
|
|
14691
|
+
*
|
|
14692
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
14693
|
+
* @param {string} hospitalId
|
|
14694
|
+
* @param {boolean} [includesPreviousItems]
|
|
14695
|
+
* @param {Date} [startDate]
|
|
14696
|
+
* @param {Date} [endDate]
|
|
14697
|
+
* @param {number} [page]
|
|
14698
|
+
* @param {number} [limit]
|
|
14699
|
+
* @param {Date} [lastRetrieved]
|
|
14700
|
+
* @param {*} [options] Override http request option.
|
|
14701
|
+
* @throws {RequiredError}
|
|
14702
|
+
*/
|
|
14703
|
+
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
14704
|
+
if (options === void 0) { options = {}; }
|
|
14705
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14706
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14707
|
+
return __generator(this, function (_a) {
|
|
14708
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
14709
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId);
|
|
14710
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/consultationtimetableoverrides"
|
|
14711
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
14712
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14713
|
+
if (configuration) {
|
|
14714
|
+
baseOptions = configuration.baseOptions;
|
|
14715
|
+
}
|
|
14716
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14717
|
+
localVarHeaderParameter = {};
|
|
14718
|
+
localVarQueryParameter = {};
|
|
14719
|
+
if (includesPreviousItems !== undefined) {
|
|
14720
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
14721
|
+
}
|
|
14722
|
+
if (startDate !== undefined) {
|
|
14723
|
+
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
14724
|
+
startDate.toISOString() :
|
|
14725
|
+
startDate;
|
|
14726
|
+
}
|
|
14727
|
+
if (endDate !== undefined) {
|
|
14728
|
+
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
14729
|
+
endDate.toISOString() :
|
|
14730
|
+
endDate;
|
|
14731
|
+
}
|
|
14732
|
+
if (page !== undefined) {
|
|
14733
|
+
localVarQueryParameter['page'] = page;
|
|
14734
|
+
}
|
|
14735
|
+
if (limit !== undefined) {
|
|
14736
|
+
localVarQueryParameter['limit'] = limit;
|
|
14737
|
+
}
|
|
14738
|
+
if (lastRetrieved !== undefined) {
|
|
14739
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14740
|
+
lastRetrieved.toISOString() :
|
|
14741
|
+
lastRetrieved;
|
|
14742
|
+
}
|
|
14743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14744
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14745
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14746
|
+
return [2 /*return*/, {
|
|
14747
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14748
|
+
options: localVarRequestOptions,
|
|
14749
|
+
}];
|
|
14750
|
+
});
|
|
14751
|
+
});
|
|
14752
|
+
},
|
|
14753
|
+
};
|
|
14754
|
+
};
|
|
14755
|
+
exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = HospitalsConsultationTimetableOverridesApiAxiosParamCreator;
|
|
14756
|
+
/**
|
|
14757
|
+
* HospitalsConsultationTimetableOverridesApi - functional programming interface
|
|
14758
|
+
* @export
|
|
14759
|
+
*/
|
|
14760
|
+
var HospitalsConsultationTimetableOverridesApiFp = function (configuration) {
|
|
14761
|
+
var localVarAxiosParamCreator = (0, exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator)(configuration);
|
|
14762
|
+
return {
|
|
14763
|
+
/**
|
|
14764
|
+
*
|
|
14765
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
14766
|
+
* @param {string} hospitalId
|
|
14767
|
+
* @param {boolean} [includesPreviousItems]
|
|
14768
|
+
* @param {Date} [startDate]
|
|
14769
|
+
* @param {Date} [endDate]
|
|
14770
|
+
* @param {number} [page]
|
|
14771
|
+
* @param {number} [limit]
|
|
14772
|
+
* @param {Date} [lastRetrieved]
|
|
14773
|
+
* @param {*} [options] Override http request option.
|
|
14774
|
+
* @throws {RequiredError}
|
|
14775
|
+
*/
|
|
14776
|
+
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
14777
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14778
|
+
var localVarAxiosArgs;
|
|
14779
|
+
return __generator(this, function (_a) {
|
|
14780
|
+
switch (_a.label) {
|
|
14781
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options)];
|
|
14782
|
+
case 1:
|
|
14783
|
+
localVarAxiosArgs = _a.sent();
|
|
14784
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14785
|
+
}
|
|
14786
|
+
});
|
|
14787
|
+
});
|
|
14788
|
+
},
|
|
14789
|
+
};
|
|
14790
|
+
};
|
|
14791
|
+
exports.HospitalsConsultationTimetableOverridesApiFp = HospitalsConsultationTimetableOverridesApiFp;
|
|
14792
|
+
/**
|
|
14793
|
+
* HospitalsConsultationTimetableOverridesApi - factory interface
|
|
14794
|
+
* @export
|
|
14795
|
+
*/
|
|
14796
|
+
var HospitalsConsultationTimetableOverridesApiFactory = function (configuration, basePath, axios) {
|
|
14797
|
+
var localVarFp = (0, exports.HospitalsConsultationTimetableOverridesApiFp)(configuration);
|
|
14798
|
+
return {
|
|
14799
|
+
/**
|
|
14800
|
+
*
|
|
14801
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
14802
|
+
* @param {string} hospitalId
|
|
14803
|
+
* @param {boolean} [includesPreviousItems]
|
|
14804
|
+
* @param {Date} [startDate]
|
|
14805
|
+
* @param {Date} [endDate]
|
|
14806
|
+
* @param {number} [page]
|
|
14807
|
+
* @param {number} [limit]
|
|
14808
|
+
* @param {Date} [lastRetrieved]
|
|
14809
|
+
* @param {*} [options] Override http request option.
|
|
14810
|
+
* @throws {RequiredError}
|
|
14811
|
+
*/
|
|
14812
|
+
apiV2HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
14813
|
+
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14814
|
+
},
|
|
14815
|
+
};
|
|
14816
|
+
};
|
|
14817
|
+
exports.HospitalsConsultationTimetableOverridesApiFactory = HospitalsConsultationTimetableOverridesApiFactory;
|
|
14818
|
+
/**
|
|
14819
|
+
* HospitalsConsultationTimetableOverridesApi - object-oriented interface
|
|
14820
|
+
* @export
|
|
14821
|
+
* @class HospitalsConsultationTimetableOverridesApi
|
|
14822
|
+
* @extends {BaseAPI}
|
|
14823
|
+
*/
|
|
14824
|
+
var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super) {
|
|
14825
|
+
__extends(HospitalsConsultationTimetableOverridesApi, _super);
|
|
14826
|
+
function HospitalsConsultationTimetableOverridesApi() {
|
|
14827
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14828
|
+
}
|
|
14829
|
+
/**
|
|
14830
|
+
*
|
|
14831
|
+
* @summary Get hospital consultation timetable overrides by hospitalId
|
|
14832
|
+
* @param {string} hospitalId
|
|
14833
|
+
* @param {boolean} [includesPreviousItems]
|
|
14834
|
+
* @param {Date} [startDate]
|
|
14835
|
+
* @param {Date} [endDate]
|
|
14836
|
+
* @param {number} [page]
|
|
14837
|
+
* @param {number} [limit]
|
|
14838
|
+
* @param {Date} [lastRetrieved]
|
|
14839
|
+
* @param {*} [options] Override http request option.
|
|
14840
|
+
* @throws {RequiredError}
|
|
14841
|
+
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
14842
|
+
*/
|
|
14843
|
+
HospitalsConsultationTimetableOverridesApi.prototype.apiV2HospitalsHospitalIdConsultationtimetableoverridesGet = function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
14844
|
+
var _this = this;
|
|
14845
|
+
return (0, exports.HospitalsConsultationTimetableOverridesApiFp)(this.configuration).apiV2HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14846
|
+
};
|
|
14847
|
+
return HospitalsConsultationTimetableOverridesApi;
|
|
14848
|
+
}(base_1.BaseAPI));
|
|
14849
|
+
exports.HospitalsConsultationTimetableOverridesApi = HospitalsConsultationTimetableOverridesApi;
|
|
14850
|
+
/**
|
|
14851
|
+
* HospitalsConsultationTimetablesApi - axios parameter creator
|
|
14852
|
+
* @export
|
|
14853
|
+
*/
|
|
14854
|
+
var HospitalsConsultationTimetablesApiAxiosParamCreator = function (configuration) {
|
|
14855
|
+
var _this = this;
|
|
14856
|
+
return {
|
|
14857
|
+
/**
|
|
14858
|
+
*
|
|
14859
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
14860
|
+
* @param {string} hospitalId
|
|
14861
|
+
* @param {number} [page]
|
|
14862
|
+
* @param {number} [limit]
|
|
14863
|
+
* @param {Date} [lastRetrieved]
|
|
14864
|
+
* @param {*} [options] Override http request option.
|
|
14865
|
+
* @throws {RequiredError}
|
|
14866
|
+
*/
|
|
14867
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
14868
|
+
if (options === void 0) { options = {}; }
|
|
14869
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14870
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14871
|
+
return __generator(this, function (_a) {
|
|
14872
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
14873
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdConsultationtimetablesGet', 'hospitalId', hospitalId);
|
|
14874
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/consultationtimetables"
|
|
14875
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
14876
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14877
|
+
if (configuration) {
|
|
14878
|
+
baseOptions = configuration.baseOptions;
|
|
14879
|
+
}
|
|
14880
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14881
|
+
localVarHeaderParameter = {};
|
|
14882
|
+
localVarQueryParameter = {};
|
|
14883
|
+
if (page !== undefined) {
|
|
14884
|
+
localVarQueryParameter['page'] = page;
|
|
14885
|
+
}
|
|
14886
|
+
if (limit !== undefined) {
|
|
14887
|
+
localVarQueryParameter['limit'] = limit;
|
|
14888
|
+
}
|
|
14889
|
+
if (lastRetrieved !== undefined) {
|
|
14890
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14891
|
+
lastRetrieved.toISOString() :
|
|
14892
|
+
lastRetrieved;
|
|
14893
|
+
}
|
|
14894
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14895
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14896
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14897
|
+
return [2 /*return*/, {
|
|
14898
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14899
|
+
options: localVarRequestOptions,
|
|
14900
|
+
}];
|
|
14901
|
+
});
|
|
14902
|
+
});
|
|
14903
|
+
},
|
|
14904
|
+
};
|
|
14905
|
+
};
|
|
14906
|
+
exports.HospitalsConsultationTimetablesApiAxiosParamCreator = HospitalsConsultationTimetablesApiAxiosParamCreator;
|
|
14907
|
+
/**
|
|
14908
|
+
* HospitalsConsultationTimetablesApi - functional programming interface
|
|
14909
|
+
* @export
|
|
14910
|
+
*/
|
|
14911
|
+
var HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
14912
|
+
var localVarAxiosParamCreator = (0, exports.HospitalsConsultationTimetablesApiAxiosParamCreator)(configuration);
|
|
14913
|
+
return {
|
|
14914
|
+
/**
|
|
14915
|
+
*
|
|
14916
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
14917
|
+
* @param {string} hospitalId
|
|
14918
|
+
* @param {number} [page]
|
|
14919
|
+
* @param {number} [limit]
|
|
14920
|
+
* @param {Date} [lastRetrieved]
|
|
14921
|
+
* @param {*} [options] Override http request option.
|
|
14922
|
+
* @throws {RequiredError}
|
|
14923
|
+
*/
|
|
14924
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
14925
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14926
|
+
var localVarAxiosArgs;
|
|
14927
|
+
return __generator(this, function (_a) {
|
|
14928
|
+
switch (_a.label) {
|
|
14929
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options)];
|
|
14930
|
+
case 1:
|
|
14931
|
+
localVarAxiosArgs = _a.sent();
|
|
14932
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14933
|
+
}
|
|
14934
|
+
});
|
|
14935
|
+
});
|
|
14936
|
+
},
|
|
14937
|
+
};
|
|
14938
|
+
};
|
|
14939
|
+
exports.HospitalsConsultationTimetablesApiFp = HospitalsConsultationTimetablesApiFp;
|
|
14940
|
+
/**
|
|
14941
|
+
* HospitalsConsultationTimetablesApi - factory interface
|
|
14942
|
+
* @export
|
|
14943
|
+
*/
|
|
14944
|
+
var HospitalsConsultationTimetablesApiFactory = function (configuration, basePath, axios) {
|
|
14945
|
+
var localVarFp = (0, exports.HospitalsConsultationTimetablesApiFp)(configuration);
|
|
14946
|
+
return {
|
|
14947
|
+
/**
|
|
14948
|
+
*
|
|
14949
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
14950
|
+
* @param {string} hospitalId
|
|
14951
|
+
* @param {number} [page]
|
|
14952
|
+
* @param {number} [limit]
|
|
14953
|
+
* @param {Date} [lastRetrieved]
|
|
14954
|
+
* @param {*} [options] Override http request option.
|
|
14955
|
+
* @throws {RequiredError}
|
|
14956
|
+
*/
|
|
14957
|
+
apiV2HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
14958
|
+
return localVarFp.apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14959
|
+
},
|
|
14960
|
+
};
|
|
14961
|
+
};
|
|
14962
|
+
exports.HospitalsConsultationTimetablesApiFactory = HospitalsConsultationTimetablesApiFactory;
|
|
14963
|
+
/**
|
|
14964
|
+
* HospitalsConsultationTimetablesApi - object-oriented interface
|
|
14965
|
+
* @export
|
|
14966
|
+
* @class HospitalsConsultationTimetablesApi
|
|
14967
|
+
* @extends {BaseAPI}
|
|
14968
|
+
*/
|
|
14969
|
+
var HospitalsConsultationTimetablesApi = /** @class */ (function (_super) {
|
|
14970
|
+
__extends(HospitalsConsultationTimetablesApi, _super);
|
|
14971
|
+
function HospitalsConsultationTimetablesApi() {
|
|
14972
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14973
|
+
}
|
|
14974
|
+
/**
|
|
14975
|
+
*
|
|
14976
|
+
* @summary Get hospital consultation timetables by hospitalId
|
|
14977
|
+
* @param {string} hospitalId
|
|
14978
|
+
* @param {number} [page]
|
|
14979
|
+
* @param {number} [limit]
|
|
14980
|
+
* @param {Date} [lastRetrieved]
|
|
14981
|
+
* @param {*} [options] Override http request option.
|
|
14982
|
+
* @throws {RequiredError}
|
|
14983
|
+
* @memberof HospitalsConsultationTimetablesApi
|
|
14984
|
+
*/
|
|
14985
|
+
HospitalsConsultationTimetablesApi.prototype.apiV2HospitalsHospitalIdConsultationtimetablesGet = function (hospitalId, page, limit, lastRetrieved, options) {
|
|
14986
|
+
var _this = this;
|
|
14987
|
+
return (0, exports.HospitalsConsultationTimetablesApiFp)(this.configuration).apiV2HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14988
|
+
};
|
|
14989
|
+
return HospitalsConsultationTimetablesApi;
|
|
14990
|
+
}(base_1.BaseAPI));
|
|
14991
|
+
exports.HospitalsConsultationTimetablesApi = HospitalsConsultationTimetablesApi;
|
|
14548
14992
|
/**
|
|
14549
14993
|
* ImagesApi - axios parameter creator
|
|
14550
14994
|
* @export
|