ch-admin-api-client-typescript 2.8.4 → 2.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +2582 -6134
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +569 -135
- package/package.json +1 -1
- package/src/api.ts +888 -4197
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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = 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.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = 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.
|
|
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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = 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.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = 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.UserLocationType = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = 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
|
|
@@ -109,17 +109,6 @@ var BookingStatus;
|
|
|
109
109
|
BookingStatus["RefundRequested"] = "RefundRequested";
|
|
110
110
|
BookingStatus["Refunded"] = "Refunded";
|
|
111
111
|
})(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @export
|
|
115
|
-
* @enum {string}
|
|
116
|
-
*/
|
|
117
|
-
var ChargeStatus;
|
|
118
|
-
(function (ChargeStatus) {
|
|
119
|
-
ChargeStatus["Pending"] = "Pending";
|
|
120
|
-
ChargeStatus["Succeeded"] = "Succeeded";
|
|
121
|
-
ChargeStatus["Failed"] = "Failed";
|
|
122
|
-
})(ChargeStatus = exports.ChargeStatus || (exports.ChargeStatus = {}));
|
|
123
112
|
/**
|
|
124
113
|
*
|
|
125
114
|
* @export
|
|
@@ -157,6 +146,19 @@ var ContributionType;
|
|
|
157
146
|
ContributionType["WrittenBy"] = "WrittenBy";
|
|
158
147
|
ContributionType["InterviewWith"] = "InterviewWith";
|
|
159
148
|
})(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @export
|
|
152
|
+
* @enum {string}
|
|
153
|
+
*/
|
|
154
|
+
var Duration;
|
|
155
|
+
(function (Duration) {
|
|
156
|
+
Duration["CurrentMonth"] = "Current_Month";
|
|
157
|
+
Duration["Last3Month"] = "Last_3_Month";
|
|
158
|
+
Duration["Last6Month"] = "Last_6_Month";
|
|
159
|
+
Duration["Last9Month"] = "Last_9_Month";
|
|
160
|
+
Duration["Last12Month"] = "Last_12_Month";
|
|
161
|
+
})(Duration = exports.Duration || (exports.Duration = {}));
|
|
160
162
|
/**
|
|
161
163
|
*
|
|
162
164
|
* @export
|
|
@@ -223,40 +225,6 @@ var NotificationCode;
|
|
|
223
225
|
NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
|
|
224
226
|
NotificationCode["ConsultationReady"] = "ConsultationReady";
|
|
225
227
|
})(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @export
|
|
229
|
-
* @enum {string}
|
|
230
|
-
*/
|
|
231
|
-
var PaymentMethod;
|
|
232
|
-
(function (PaymentMethod) {
|
|
233
|
-
PaymentMethod["Stripe"] = "Stripe";
|
|
234
|
-
PaymentMethod["Paypal"] = "Paypal";
|
|
235
|
-
PaymentMethod["BankTransfer"] = "BankTransfer";
|
|
236
|
-
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
|
|
237
|
-
/**
|
|
238
|
-
*
|
|
239
|
-
* @export
|
|
240
|
-
* @enum {string}
|
|
241
|
-
*/
|
|
242
|
-
var PaymentStatus;
|
|
243
|
-
(function (PaymentStatus) {
|
|
244
|
-
PaymentStatus["Unpaid"] = "Unpaid";
|
|
245
|
-
PaymentStatus["Paid"] = "Paid";
|
|
246
|
-
PaymentStatus["RefundRequested"] = "RefundRequested";
|
|
247
|
-
PaymentStatus["Refunded"] = "Refunded";
|
|
248
|
-
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
* @export
|
|
252
|
-
* @enum {string}
|
|
253
|
-
*/
|
|
254
|
-
var Platform;
|
|
255
|
-
(function (Platform) {
|
|
256
|
-
Platform["Web"] = "Web";
|
|
257
|
-
Platform["IOs"] = "iOS";
|
|
258
|
-
Platform["Android"] = "Android";
|
|
259
|
-
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
260
228
|
/**
|
|
261
229
|
*
|
|
262
230
|
* @export
|
|
@@ -267,31 +235,6 @@ var Procedure;
|
|
|
267
235
|
Procedure["Treatment"] = "Treatment";
|
|
268
236
|
Procedure["Diagnostic"] = "Diagnostic";
|
|
269
237
|
})(Procedure = exports.Procedure || (exports.Procedure = {}));
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @export
|
|
273
|
-
* @enum {string}
|
|
274
|
-
*/
|
|
275
|
-
var QuestionStatus;
|
|
276
|
-
(function (QuestionStatus) {
|
|
277
|
-
QuestionStatus["New"] = "New";
|
|
278
|
-
QuestionStatus["Answered"] = "Answered";
|
|
279
|
-
QuestionStatus["Replied"] = "Replied";
|
|
280
|
-
QuestionStatus["Archived"] = "Archived";
|
|
281
|
-
})(QuestionStatus = exports.QuestionStatus || (exports.QuestionStatus = {}));
|
|
282
|
-
/**
|
|
283
|
-
*
|
|
284
|
-
* @export
|
|
285
|
-
* @enum {string}
|
|
286
|
-
*/
|
|
287
|
-
var QuestionType;
|
|
288
|
-
(function (QuestionType) {
|
|
289
|
-
QuestionType["General"] = "General";
|
|
290
|
-
QuestionType["Health"] = "Health";
|
|
291
|
-
QuestionType["Treatment"] = "Treatment";
|
|
292
|
-
QuestionType["Travel"] = "Travel";
|
|
293
|
-
QuestionType["Consult"] = "Consult";
|
|
294
|
-
})(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
|
|
295
238
|
/**
|
|
296
239
|
*
|
|
297
240
|
* @export
|
|
@@ -315,17 +258,6 @@ var RefundPolicy;
|
|
|
315
258
|
RefundPolicy["Refundable"] = "Refundable";
|
|
316
259
|
RefundPolicy["PartialRefundable"] = "PartialRefundable";
|
|
317
260
|
})(RefundPolicy = exports.RefundPolicy || (exports.RefundPolicy = {}));
|
|
318
|
-
/**
|
|
319
|
-
*
|
|
320
|
-
* @export
|
|
321
|
-
* @enum {string}
|
|
322
|
-
*/
|
|
323
|
-
var RefundStatus;
|
|
324
|
-
(function (RefundStatus) {
|
|
325
|
-
RefundStatus["Pending"] = "Pending";
|
|
326
|
-
RefundStatus["Succeeded"] = "Succeeded";
|
|
327
|
-
RefundStatus["Failed"] = "Failed";
|
|
328
|
-
})(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {}));
|
|
329
261
|
/**
|
|
330
262
|
*
|
|
331
263
|
* @export
|
|
@@ -338,18 +270,6 @@ var RejectReason;
|
|
|
338
270
|
RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
|
|
339
271
|
RejectReason["OtherReason"] = "OtherReason";
|
|
340
272
|
})(RejectReason = exports.RejectReason || (exports.RejectReason = {}));
|
|
341
|
-
/**
|
|
342
|
-
*
|
|
343
|
-
* @export
|
|
344
|
-
* @enum {string}
|
|
345
|
-
*/
|
|
346
|
-
var ReviewCategory;
|
|
347
|
-
(function (ReviewCategory) {
|
|
348
|
-
ReviewCategory["Services"] = "Services";
|
|
349
|
-
ReviewCategory["Hospitality"] = "Hospitality";
|
|
350
|
-
ReviewCategory["Transfer"] = "Transfer";
|
|
351
|
-
ReviewCategory["Etc"] = "Etc";
|
|
352
|
-
})(ReviewCategory = exports.ReviewCategory || (exports.ReviewCategory = {}));
|
|
353
273
|
/**
|
|
354
274
|
*
|
|
355
275
|
* @export
|
|
@@ -382,16 +302,6 @@ var UserLocationType;
|
|
|
382
302
|
UserLocationType["LivesIn"] = "LivesIn";
|
|
383
303
|
UserLocationType["BirthPlace"] = "BirthPlace";
|
|
384
304
|
})(UserLocationType = exports.UserLocationType || (exports.UserLocationType = {}));
|
|
385
|
-
/**
|
|
386
|
-
*
|
|
387
|
-
* @export
|
|
388
|
-
* @enum {string}
|
|
389
|
-
*/
|
|
390
|
-
var VendorType;
|
|
391
|
-
(function (VendorType) {
|
|
392
|
-
VendorType["Stripe"] = "Stripe";
|
|
393
|
-
VendorType["WeChat"] = "WeChat";
|
|
394
|
-
})(VendorType = exports.VendorType || (exports.VendorType = {}));
|
|
395
305
|
/**
|
|
396
306
|
* AccreditationsApi - axios parameter creator
|
|
397
307
|
* @export
|
|
@@ -9055,6 +8965,132 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
9055
8965
|
return CountriesApi;
|
|
9056
8966
|
}(base_1.BaseAPI));
|
|
9057
8967
|
exports.CountriesApi = CountriesApi;
|
|
8968
|
+
/**
|
|
8969
|
+
* DashBoardApi - axios parameter creator
|
|
8970
|
+
* @export
|
|
8971
|
+
*/
|
|
8972
|
+
exports.DashBoardApiAxiosParamCreator = function (configuration) {
|
|
8973
|
+
var _this = this;
|
|
8974
|
+
return {
|
|
8975
|
+
/**
|
|
8976
|
+
*
|
|
8977
|
+
* @summary Create a DashBoard.
|
|
8978
|
+
* @param {Duration} duration
|
|
8979
|
+
* @param {*} [options] Override http request option.
|
|
8980
|
+
* @throws {RequiredError}
|
|
8981
|
+
*/
|
|
8982
|
+
apiV1DashboardDurationGet: function (duration, options) {
|
|
8983
|
+
if (options === void 0) { options = {}; }
|
|
8984
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8985
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8986
|
+
return __generator(this, function (_a) {
|
|
8987
|
+
switch (_a.label) {
|
|
8988
|
+
case 0:
|
|
8989
|
+
// verify required parameter 'duration' is not null or undefined
|
|
8990
|
+
common_1.assertParamExists('apiV1DashboardDurationGet', 'duration', duration);
|
|
8991
|
+
localVarPath = "/api/v1/dashboard/{duration}"
|
|
8992
|
+
.replace("{" + "duration" + "}", encodeURIComponent(String(duration)));
|
|
8993
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8994
|
+
if (configuration) {
|
|
8995
|
+
baseOptions = configuration.baseOptions;
|
|
8996
|
+
}
|
|
8997
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8998
|
+
localVarHeaderParameter = {};
|
|
8999
|
+
localVarQueryParameter = {};
|
|
9000
|
+
// authentication oauth2 required
|
|
9001
|
+
// oauth required
|
|
9002
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
9003
|
+
case 1:
|
|
9004
|
+
// authentication oauth2 required
|
|
9005
|
+
// oauth required
|
|
9006
|
+
_a.sent();
|
|
9007
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9008
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9009
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9010
|
+
return [2 /*return*/, {
|
|
9011
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
9012
|
+
options: localVarRequestOptions,
|
|
9013
|
+
}];
|
|
9014
|
+
}
|
|
9015
|
+
});
|
|
9016
|
+
});
|
|
9017
|
+
},
|
|
9018
|
+
};
|
|
9019
|
+
};
|
|
9020
|
+
/**
|
|
9021
|
+
* DashBoardApi - functional programming interface
|
|
9022
|
+
* @export
|
|
9023
|
+
*/
|
|
9024
|
+
exports.DashBoardApiFp = function (configuration) {
|
|
9025
|
+
var localVarAxiosParamCreator = exports.DashBoardApiAxiosParamCreator(configuration);
|
|
9026
|
+
return {
|
|
9027
|
+
/**
|
|
9028
|
+
*
|
|
9029
|
+
* @summary Create a DashBoard.
|
|
9030
|
+
* @param {Duration} duration
|
|
9031
|
+
* @param {*} [options] Override http request option.
|
|
9032
|
+
* @throws {RequiredError}
|
|
9033
|
+
*/
|
|
9034
|
+
apiV1DashboardDurationGet: function (duration, options) {
|
|
9035
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9036
|
+
var localVarAxiosArgs;
|
|
9037
|
+
return __generator(this, function (_a) {
|
|
9038
|
+
switch (_a.label) {
|
|
9039
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DashboardDurationGet(duration, options)];
|
|
9040
|
+
case 1:
|
|
9041
|
+
localVarAxiosArgs = _a.sent();
|
|
9042
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
9043
|
+
}
|
|
9044
|
+
});
|
|
9045
|
+
});
|
|
9046
|
+
},
|
|
9047
|
+
};
|
|
9048
|
+
};
|
|
9049
|
+
/**
|
|
9050
|
+
* DashBoardApi - factory interface
|
|
9051
|
+
* @export
|
|
9052
|
+
*/
|
|
9053
|
+
exports.DashBoardApiFactory = function (configuration, basePath, axios) {
|
|
9054
|
+
var localVarFp = exports.DashBoardApiFp(configuration);
|
|
9055
|
+
return {
|
|
9056
|
+
/**
|
|
9057
|
+
*
|
|
9058
|
+
* @summary Create a DashBoard.
|
|
9059
|
+
* @param {Duration} duration
|
|
9060
|
+
* @param {*} [options] Override http request option.
|
|
9061
|
+
* @throws {RequiredError}
|
|
9062
|
+
*/
|
|
9063
|
+
apiV1DashboardDurationGet: function (duration, options) {
|
|
9064
|
+
return localVarFp.apiV1DashboardDurationGet(duration, options).then(function (request) { return request(axios, basePath); });
|
|
9065
|
+
},
|
|
9066
|
+
};
|
|
9067
|
+
};
|
|
9068
|
+
/**
|
|
9069
|
+
* DashBoardApi - object-oriented interface
|
|
9070
|
+
* @export
|
|
9071
|
+
* @class DashBoardApi
|
|
9072
|
+
* @extends {BaseAPI}
|
|
9073
|
+
*/
|
|
9074
|
+
var DashBoardApi = /** @class */ (function (_super) {
|
|
9075
|
+
__extends(DashBoardApi, _super);
|
|
9076
|
+
function DashBoardApi() {
|
|
9077
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9078
|
+
}
|
|
9079
|
+
/**
|
|
9080
|
+
*
|
|
9081
|
+
* @summary Create a DashBoard.
|
|
9082
|
+
* @param {Duration} duration
|
|
9083
|
+
* @param {*} [options] Override http request option.
|
|
9084
|
+
* @throws {RequiredError}
|
|
9085
|
+
* @memberof DashBoardApi
|
|
9086
|
+
*/
|
|
9087
|
+
DashBoardApi.prototype.apiV1DashboardDurationGet = function (duration, options) {
|
|
9088
|
+
var _this = this;
|
|
9089
|
+
return exports.DashBoardApiFp(this.configuration).apiV1DashboardDurationGet(duration, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9090
|
+
};
|
|
9091
|
+
return DashBoardApi;
|
|
9092
|
+
}(base_1.BaseAPI));
|
|
9093
|
+
exports.DashBoardApi = DashBoardApi;
|
|
9058
9094
|
/**
|
|
9059
9095
|
* DealsApi - axios parameter creator
|
|
9060
9096
|
* @export
|
|
@@ -9875,6 +9911,119 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
9875
9911
|
});
|
|
9876
9912
|
});
|
|
9877
9913
|
},
|
|
9914
|
+
/**
|
|
9915
|
+
*
|
|
9916
|
+
* @summary Get all deals.
|
|
9917
|
+
* @param {string} [id]
|
|
9918
|
+
* @param {string} [name]
|
|
9919
|
+
* @param {MarketingType} [marketingType]
|
|
9920
|
+
* @param {string} [countryId]
|
|
9921
|
+
* @param {string} [hospitalId]
|
|
9922
|
+
* @param {string} [hospitalName]
|
|
9923
|
+
* @param {string} [specialtyId]
|
|
9924
|
+
* @param {string} [specialtyTypeId]
|
|
9925
|
+
* @param {string} [serviceId]
|
|
9926
|
+
* @param {string} [exceptHospitalId]
|
|
9927
|
+
* @param {string} [exceptDealId]
|
|
9928
|
+
* @param {Array<string>} [ids]
|
|
9929
|
+
* @param {string} [languageCode]
|
|
9930
|
+
* @param {boolean} [showHidden]
|
|
9931
|
+
* @param {boolean} [returnDefaultValue]
|
|
9932
|
+
* @param {number} [page]
|
|
9933
|
+
* @param {number} [limit]
|
|
9934
|
+
* @param {Date} [lastRetrieved]
|
|
9935
|
+
* @param {*} [options] Override http request option.
|
|
9936
|
+
* @throws {RequiredError}
|
|
9937
|
+
*/
|
|
9938
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
9939
|
+
if (options === void 0) { options = {}; }
|
|
9940
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9941
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9942
|
+
return __generator(this, function (_a) {
|
|
9943
|
+
switch (_a.label) {
|
|
9944
|
+
case 0:
|
|
9945
|
+
localVarPath = "/api/v1/deals/simple";
|
|
9946
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9947
|
+
if (configuration) {
|
|
9948
|
+
baseOptions = configuration.baseOptions;
|
|
9949
|
+
}
|
|
9950
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9951
|
+
localVarHeaderParameter = {};
|
|
9952
|
+
localVarQueryParameter = {};
|
|
9953
|
+
// authentication oauth2 required
|
|
9954
|
+
// oauth required
|
|
9955
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
9956
|
+
case 1:
|
|
9957
|
+
// authentication oauth2 required
|
|
9958
|
+
// oauth required
|
|
9959
|
+
_a.sent();
|
|
9960
|
+
if (id !== undefined) {
|
|
9961
|
+
localVarQueryParameter['Id'] = id;
|
|
9962
|
+
}
|
|
9963
|
+
if (name !== undefined) {
|
|
9964
|
+
localVarQueryParameter['Name'] = name;
|
|
9965
|
+
}
|
|
9966
|
+
if (marketingType !== undefined) {
|
|
9967
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
9968
|
+
}
|
|
9969
|
+
if (countryId !== undefined) {
|
|
9970
|
+
localVarQueryParameter['CountryId'] = countryId;
|
|
9971
|
+
}
|
|
9972
|
+
if (hospitalId !== undefined) {
|
|
9973
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
9974
|
+
}
|
|
9975
|
+
if (hospitalName !== undefined) {
|
|
9976
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
9977
|
+
}
|
|
9978
|
+
if (specialtyId !== undefined) {
|
|
9979
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
9980
|
+
}
|
|
9981
|
+
if (specialtyTypeId !== undefined) {
|
|
9982
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
9983
|
+
}
|
|
9984
|
+
if (serviceId !== undefined) {
|
|
9985
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
9986
|
+
}
|
|
9987
|
+
if (exceptHospitalId !== undefined) {
|
|
9988
|
+
localVarQueryParameter['ExceptHospitalId'] = exceptHospitalId;
|
|
9989
|
+
}
|
|
9990
|
+
if (exceptDealId !== undefined) {
|
|
9991
|
+
localVarQueryParameter['ExceptDealId'] = exceptDealId;
|
|
9992
|
+
}
|
|
9993
|
+
if (ids) {
|
|
9994
|
+
localVarQueryParameter['Ids'] = ids;
|
|
9995
|
+
}
|
|
9996
|
+
if (languageCode !== undefined) {
|
|
9997
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
9998
|
+
}
|
|
9999
|
+
if (showHidden !== undefined) {
|
|
10000
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
10001
|
+
}
|
|
10002
|
+
if (returnDefaultValue !== undefined) {
|
|
10003
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
10004
|
+
}
|
|
10005
|
+
if (page !== undefined) {
|
|
10006
|
+
localVarQueryParameter['page'] = page;
|
|
10007
|
+
}
|
|
10008
|
+
if (limit !== undefined) {
|
|
10009
|
+
localVarQueryParameter['limit'] = limit;
|
|
10010
|
+
}
|
|
10011
|
+
if (lastRetrieved !== undefined) {
|
|
10012
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10013
|
+
lastRetrieved.toISOString() :
|
|
10014
|
+
lastRetrieved;
|
|
10015
|
+
}
|
|
10016
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10017
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10018
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10019
|
+
return [2 /*return*/, {
|
|
10020
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
10021
|
+
options: localVarRequestOptions,
|
|
10022
|
+
}];
|
|
10023
|
+
}
|
|
10024
|
+
});
|
|
10025
|
+
});
|
|
10026
|
+
},
|
|
9878
10027
|
/**
|
|
9879
10028
|
*
|
|
9880
10029
|
* @summary Get deal by slug.
|
|
@@ -10207,12 +10356,69 @@ exports.DealsApiFp = function (configuration) {
|
|
|
10207
10356
|
* @param {*} [options] Override http request option.
|
|
10208
10357
|
* @throws {RequiredError}
|
|
10209
10358
|
*/
|
|
10210
|
-
apiV1DealsDealIdServicesServiceIdPut: function (dealId, serviceId, updateDealServiceCommand, options) {
|
|
10359
|
+
apiV1DealsDealIdServicesServiceIdPut: function (dealId, serviceId, updateDealServiceCommand, options) {
|
|
10360
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10361
|
+
var localVarAxiosArgs;
|
|
10362
|
+
return __generator(this, function (_a) {
|
|
10363
|
+
switch (_a.label) {
|
|
10364
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdServicesServiceIdPut(dealId, serviceId, updateDealServiceCommand, options)];
|
|
10365
|
+
case 1:
|
|
10366
|
+
localVarAxiosArgs = _a.sent();
|
|
10367
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10368
|
+
}
|
|
10369
|
+
});
|
|
10370
|
+
});
|
|
10371
|
+
},
|
|
10372
|
+
/**
|
|
10373
|
+
*
|
|
10374
|
+
* @summary Get all deals.
|
|
10375
|
+
* @param {string} [id]
|
|
10376
|
+
* @param {string} [name]
|
|
10377
|
+
* @param {MarketingType} [marketingType]
|
|
10378
|
+
* @param {string} [countryId]
|
|
10379
|
+
* @param {string} [hospitalId]
|
|
10380
|
+
* @param {string} [hospitalName]
|
|
10381
|
+
* @param {string} [specialtyId]
|
|
10382
|
+
* @param {string} [specialtyTypeId]
|
|
10383
|
+
* @param {string} [serviceId]
|
|
10384
|
+
* @param {string} [exceptHospitalId]
|
|
10385
|
+
* @param {string} [exceptDealId]
|
|
10386
|
+
* @param {Array<string>} [ids]
|
|
10387
|
+
* @param {string} [languageCode]
|
|
10388
|
+
* @param {boolean} [showHidden]
|
|
10389
|
+
* @param {boolean} [returnDefaultValue]
|
|
10390
|
+
* @param {number} [page]
|
|
10391
|
+
* @param {number} [limit]
|
|
10392
|
+
* @param {Date} [lastRetrieved]
|
|
10393
|
+
* @param {*} [options] Override http request option.
|
|
10394
|
+
* @throws {RequiredError}
|
|
10395
|
+
*/
|
|
10396
|
+
apiV1DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10397
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10398
|
+
var localVarAxiosArgs;
|
|
10399
|
+
return __generator(this, function (_a) {
|
|
10400
|
+
switch (_a.label) {
|
|
10401
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
10402
|
+
case 1:
|
|
10403
|
+
localVarAxiosArgs = _a.sent();
|
|
10404
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10405
|
+
}
|
|
10406
|
+
});
|
|
10407
|
+
});
|
|
10408
|
+
},
|
|
10409
|
+
/**
|
|
10410
|
+
*
|
|
10411
|
+
* @summary Create a deal.
|
|
10412
|
+
* @param {CreateDealCommand} [createDealCommand]
|
|
10413
|
+
* @param {*} [options] Override http request option.
|
|
10414
|
+
* @throws {RequiredError}
|
|
10415
|
+
*/
|
|
10416
|
+
apiV1DealsPost: function (createDealCommand, options) {
|
|
10211
10417
|
return __awaiter(this, void 0, void 0, function () {
|
|
10212
10418
|
var localVarAxiosArgs;
|
|
10213
10419
|
return __generator(this, function (_a) {
|
|
10214
10420
|
switch (_a.label) {
|
|
10215
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10421
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsPost(createDealCommand, options)];
|
|
10216
10422
|
case 1:
|
|
10217
10423
|
localVarAxiosArgs = _a.sent();
|
|
10218
10424
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10244,32 +10450,12 @@ exports.DealsApiFp = function (configuration) {
|
|
|
10244
10450
|
* @param {*} [options] Override http request option.
|
|
10245
10451
|
* @throws {RequiredError}
|
|
10246
10452
|
*/
|
|
10247
|
-
|
|
10248
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
10249
|
-
var localVarAxiosArgs;
|
|
10250
|
-
return __generator(this, function (_a) {
|
|
10251
|
-
switch (_a.label) {
|
|
10252
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
10253
|
-
case 1:
|
|
10254
|
-
localVarAxiosArgs = _a.sent();
|
|
10255
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10256
|
-
}
|
|
10257
|
-
});
|
|
10258
|
-
});
|
|
10259
|
-
},
|
|
10260
|
-
/**
|
|
10261
|
-
*
|
|
10262
|
-
* @summary Create a deal.
|
|
10263
|
-
* @param {CreateDealCommand} [createDealCommand]
|
|
10264
|
-
* @param {*} [options] Override http request option.
|
|
10265
|
-
* @throws {RequiredError}
|
|
10266
|
-
*/
|
|
10267
|
-
apiV1DealsPost: function (createDealCommand, options) {
|
|
10453
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10268
10454
|
return __awaiter(this, void 0, void 0, function () {
|
|
10269
10455
|
var localVarAxiosArgs;
|
|
10270
10456
|
return __generator(this, function (_a) {
|
|
10271
10457
|
switch (_a.label) {
|
|
10272
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
10458
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
10273
10459
|
case 1:
|
|
10274
10460
|
localVarAxiosArgs = _a.sent();
|
|
10275
10461
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -10500,6 +10686,33 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
10500
10686
|
apiV1DealsPost: function (createDealCommand, options) {
|
|
10501
10687
|
return localVarFp.apiV1DealsPost(createDealCommand, options).then(function (request) { return request(axios, basePath); });
|
|
10502
10688
|
},
|
|
10689
|
+
/**
|
|
10690
|
+
*
|
|
10691
|
+
* @summary Get all deals.
|
|
10692
|
+
* @param {string} [id]
|
|
10693
|
+
* @param {string} [name]
|
|
10694
|
+
* @param {MarketingType} [marketingType]
|
|
10695
|
+
* @param {string} [countryId]
|
|
10696
|
+
* @param {string} [hospitalId]
|
|
10697
|
+
* @param {string} [hospitalName]
|
|
10698
|
+
* @param {string} [specialtyId]
|
|
10699
|
+
* @param {string} [specialtyTypeId]
|
|
10700
|
+
* @param {string} [serviceId]
|
|
10701
|
+
* @param {string} [exceptHospitalId]
|
|
10702
|
+
* @param {string} [exceptDealId]
|
|
10703
|
+
* @param {Array<string>} [ids]
|
|
10704
|
+
* @param {string} [languageCode]
|
|
10705
|
+
* @param {boolean} [showHidden]
|
|
10706
|
+
* @param {boolean} [returnDefaultValue]
|
|
10707
|
+
* @param {number} [page]
|
|
10708
|
+
* @param {number} [limit]
|
|
10709
|
+
* @param {Date} [lastRetrieved]
|
|
10710
|
+
* @param {*} [options] Override http request option.
|
|
10711
|
+
* @throws {RequiredError}
|
|
10712
|
+
*/
|
|
10713
|
+
apiV1DealsSimpleGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10714
|
+
return localVarFp.apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
10715
|
+
},
|
|
10503
10716
|
/**
|
|
10504
10717
|
*
|
|
10505
10718
|
* @summary Get deal by slug.
|
|
@@ -10747,6 +10960,35 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
10747
10960
|
var _this = this;
|
|
10748
10961
|
return exports.DealsApiFp(this.configuration).apiV1DealsPost(createDealCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10749
10962
|
};
|
|
10963
|
+
/**
|
|
10964
|
+
*
|
|
10965
|
+
* @summary Get all deals.
|
|
10966
|
+
* @param {string} [id]
|
|
10967
|
+
* @param {string} [name]
|
|
10968
|
+
* @param {MarketingType} [marketingType]
|
|
10969
|
+
* @param {string} [countryId]
|
|
10970
|
+
* @param {string} [hospitalId]
|
|
10971
|
+
* @param {string} [hospitalName]
|
|
10972
|
+
* @param {string} [specialtyId]
|
|
10973
|
+
* @param {string} [specialtyTypeId]
|
|
10974
|
+
* @param {string} [serviceId]
|
|
10975
|
+
* @param {string} [exceptHospitalId]
|
|
10976
|
+
* @param {string} [exceptDealId]
|
|
10977
|
+
* @param {Array<string>} [ids]
|
|
10978
|
+
* @param {string} [languageCode]
|
|
10979
|
+
* @param {boolean} [showHidden]
|
|
10980
|
+
* @param {boolean} [returnDefaultValue]
|
|
10981
|
+
* @param {number} [page]
|
|
10982
|
+
* @param {number} [limit]
|
|
10983
|
+
* @param {Date} [lastRetrieved]
|
|
10984
|
+
* @param {*} [options] Override http request option.
|
|
10985
|
+
* @throws {RequiredError}
|
|
10986
|
+
* @memberof DealsApi
|
|
10987
|
+
*/
|
|
10988
|
+
DealsApi.prototype.apiV1DealsSimpleGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
10989
|
+
var _this = this;
|
|
10990
|
+
return exports.DealsApiFp(this.configuration).apiV1DealsSimpleGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, serviceId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
10991
|
+
};
|
|
10750
10992
|
/**
|
|
10751
10993
|
*
|
|
10752
10994
|
* @summary Get deal by slug.
|
|
@@ -18678,6 +18920,107 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
18678
18920
|
});
|
|
18679
18921
|
});
|
|
18680
18922
|
},
|
|
18923
|
+
/**
|
|
18924
|
+
*
|
|
18925
|
+
* @summary Get all HospitalSpecialties.
|
|
18926
|
+
* @param {string} hospitalId
|
|
18927
|
+
* @param {string} [hospitalName]
|
|
18928
|
+
* @param {string} [hospitalSlug]
|
|
18929
|
+
* @param {string} [specialtyId]
|
|
18930
|
+
* @param {string} [specialtyName]
|
|
18931
|
+
* @param {string} [specialtyTypeId]
|
|
18932
|
+
* @param {string} [title]
|
|
18933
|
+
* @param {MarketingType} [marketingType]
|
|
18934
|
+
* @param {string} [languageCode]
|
|
18935
|
+
* @param {boolean} [showHidden]
|
|
18936
|
+
* @param {boolean} [returnDefaultValue]
|
|
18937
|
+
* @param {boolean} [includeServices]
|
|
18938
|
+
* @param {number} [page]
|
|
18939
|
+
* @param {number} [limit]
|
|
18940
|
+
* @param {Date} [lastRetrieved]
|
|
18941
|
+
* @param {*} [options] Override http request option.
|
|
18942
|
+
* @throws {RequiredError}
|
|
18943
|
+
*/
|
|
18944
|
+
apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
18945
|
+
if (options === void 0) { options = {}; }
|
|
18946
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18947
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18948
|
+
return __generator(this, function (_a) {
|
|
18949
|
+
switch (_a.label) {
|
|
18950
|
+
case 0:
|
|
18951
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
18952
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId);
|
|
18953
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/simple"
|
|
18954
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
18955
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18956
|
+
if (configuration) {
|
|
18957
|
+
baseOptions = configuration.baseOptions;
|
|
18958
|
+
}
|
|
18959
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18960
|
+
localVarHeaderParameter = {};
|
|
18961
|
+
localVarQueryParameter = {};
|
|
18962
|
+
// authentication oauth2 required
|
|
18963
|
+
// oauth required
|
|
18964
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18965
|
+
case 1:
|
|
18966
|
+
// authentication oauth2 required
|
|
18967
|
+
// oauth required
|
|
18968
|
+
_a.sent();
|
|
18969
|
+
if (hospitalName !== undefined) {
|
|
18970
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
18971
|
+
}
|
|
18972
|
+
if (hospitalSlug !== undefined) {
|
|
18973
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
18974
|
+
}
|
|
18975
|
+
if (specialtyId !== undefined) {
|
|
18976
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
18977
|
+
}
|
|
18978
|
+
if (specialtyName !== undefined) {
|
|
18979
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
18980
|
+
}
|
|
18981
|
+
if (specialtyTypeId !== undefined) {
|
|
18982
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
18983
|
+
}
|
|
18984
|
+
if (title !== undefined) {
|
|
18985
|
+
localVarQueryParameter['Title'] = title;
|
|
18986
|
+
}
|
|
18987
|
+
if (marketingType !== undefined) {
|
|
18988
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
18989
|
+
}
|
|
18990
|
+
if (languageCode !== undefined) {
|
|
18991
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
18992
|
+
}
|
|
18993
|
+
if (showHidden !== undefined) {
|
|
18994
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
18995
|
+
}
|
|
18996
|
+
if (returnDefaultValue !== undefined) {
|
|
18997
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
18998
|
+
}
|
|
18999
|
+
if (includeServices !== undefined) {
|
|
19000
|
+
localVarQueryParameter['IncludeServices'] = includeServices;
|
|
19001
|
+
}
|
|
19002
|
+
if (page !== undefined) {
|
|
19003
|
+
localVarQueryParameter['page'] = page;
|
|
19004
|
+
}
|
|
19005
|
+
if (limit !== undefined) {
|
|
19006
|
+
localVarQueryParameter['limit'] = limit;
|
|
19007
|
+
}
|
|
19008
|
+
if (lastRetrieved !== undefined) {
|
|
19009
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
19010
|
+
lastRetrieved.toISOString() :
|
|
19011
|
+
lastRetrieved;
|
|
19012
|
+
}
|
|
19013
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19014
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19015
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19016
|
+
return [2 /*return*/, {
|
|
19017
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19018
|
+
options: localVarRequestOptions,
|
|
19019
|
+
}];
|
|
19020
|
+
}
|
|
19021
|
+
});
|
|
19022
|
+
});
|
|
19023
|
+
},
|
|
18681
19024
|
/**
|
|
18682
19025
|
*
|
|
18683
19026
|
* @summary Delete HospitalSpecialty.
|
|
@@ -20360,6 +20703,40 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
20360
20703
|
});
|
|
20361
20704
|
});
|
|
20362
20705
|
},
|
|
20706
|
+
/**
|
|
20707
|
+
*
|
|
20708
|
+
* @summary Get all HospitalSpecialties.
|
|
20709
|
+
* @param {string} hospitalId
|
|
20710
|
+
* @param {string} [hospitalName]
|
|
20711
|
+
* @param {string} [hospitalSlug]
|
|
20712
|
+
* @param {string} [specialtyId]
|
|
20713
|
+
* @param {string} [specialtyName]
|
|
20714
|
+
* @param {string} [specialtyTypeId]
|
|
20715
|
+
* @param {string} [title]
|
|
20716
|
+
* @param {MarketingType} [marketingType]
|
|
20717
|
+
* @param {string} [languageCode]
|
|
20718
|
+
* @param {boolean} [showHidden]
|
|
20719
|
+
* @param {boolean} [returnDefaultValue]
|
|
20720
|
+
* @param {boolean} [includeServices]
|
|
20721
|
+
* @param {number} [page]
|
|
20722
|
+
* @param {number} [limit]
|
|
20723
|
+
* @param {Date} [lastRetrieved]
|
|
20724
|
+
* @param {*} [options] Override http request option.
|
|
20725
|
+
* @throws {RequiredError}
|
|
20726
|
+
*/
|
|
20727
|
+
apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
20728
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20729
|
+
var localVarAxiosArgs;
|
|
20730
|
+
return __generator(this, function (_a) {
|
|
20731
|
+
switch (_a.label) {
|
|
20732
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options)];
|
|
20733
|
+
case 1:
|
|
20734
|
+
localVarAxiosArgs = _a.sent();
|
|
20735
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20736
|
+
}
|
|
20737
|
+
});
|
|
20738
|
+
});
|
|
20739
|
+
},
|
|
20363
20740
|
/**
|
|
20364
20741
|
*
|
|
20365
20742
|
* @summary Delete HospitalSpecialty.
|
|
@@ -21151,6 +21528,30 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
21151
21528
|
apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
|
|
21152
21529
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
21153
21530
|
},
|
|
21531
|
+
/**
|
|
21532
|
+
*
|
|
21533
|
+
* @summary Get all HospitalSpecialties.
|
|
21534
|
+
* @param {string} hospitalId
|
|
21535
|
+
* @param {string} [hospitalName]
|
|
21536
|
+
* @param {string} [hospitalSlug]
|
|
21537
|
+
* @param {string} [specialtyId]
|
|
21538
|
+
* @param {string} [specialtyName]
|
|
21539
|
+
* @param {string} [specialtyTypeId]
|
|
21540
|
+
* @param {string} [title]
|
|
21541
|
+
* @param {MarketingType} [marketingType]
|
|
21542
|
+
* @param {string} [languageCode]
|
|
21543
|
+
* @param {boolean} [showHidden]
|
|
21544
|
+
* @param {boolean} [returnDefaultValue]
|
|
21545
|
+
* @param {boolean} [includeServices]
|
|
21546
|
+
* @param {number} [page]
|
|
21547
|
+
* @param {number} [limit]
|
|
21548
|
+
* @param {Date} [lastRetrieved]
|
|
21549
|
+
* @param {*} [options] Override http request option.
|
|
21550
|
+
* @throws {RequiredError}
|
|
21551
|
+
*/
|
|
21552
|
+
apiV1HospitalsHospitalIdSpecialtiesSimpleGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
21553
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
21554
|
+
},
|
|
21154
21555
|
/**
|
|
21155
21556
|
*
|
|
21156
21557
|
* @summary Delete HospitalSpecialty.
|
|
@@ -21846,6 +22247,32 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
21846
22247
|
var _this = this;
|
|
21847
22248
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21848
22249
|
};
|
|
22250
|
+
/**
|
|
22251
|
+
*
|
|
22252
|
+
* @summary Get all HospitalSpecialties.
|
|
22253
|
+
* @param {string} hospitalId
|
|
22254
|
+
* @param {string} [hospitalName]
|
|
22255
|
+
* @param {string} [hospitalSlug]
|
|
22256
|
+
* @param {string} [specialtyId]
|
|
22257
|
+
* @param {string} [specialtyName]
|
|
22258
|
+
* @param {string} [specialtyTypeId]
|
|
22259
|
+
* @param {string} [title]
|
|
22260
|
+
* @param {MarketingType} [marketingType]
|
|
22261
|
+
* @param {string} [languageCode]
|
|
22262
|
+
* @param {boolean} [showHidden]
|
|
22263
|
+
* @param {boolean} [returnDefaultValue]
|
|
22264
|
+
* @param {boolean} [includeServices]
|
|
22265
|
+
* @param {number} [page]
|
|
22266
|
+
* @param {number} [limit]
|
|
22267
|
+
* @param {Date} [lastRetrieved]
|
|
22268
|
+
* @param {*} [options] Override http request option.
|
|
22269
|
+
* @throws {RequiredError}
|
|
22270
|
+
* @memberof HospitalsApi
|
|
22271
|
+
*/
|
|
22272
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSimpleGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
22273
|
+
var _this = this;
|
|
22274
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22275
|
+
};
|
|
21849
22276
|
/**
|
|
21850
22277
|
*
|
|
21851
22278
|
* @summary Delete HospitalSpecialty.
|
|
@@ -22283,13 +22710,14 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
22283
22710
|
* @param {string} [name]
|
|
22284
22711
|
* @param {string} [code]
|
|
22285
22712
|
* @param {string} [description]
|
|
22713
|
+
* @param {boolean} [showPublished]
|
|
22286
22714
|
* @param {number} [page]
|
|
22287
22715
|
* @param {number} [limit]
|
|
22288
22716
|
* @param {Date} [lastRetrieved]
|
|
22289
22717
|
* @param {*} [options] Override http request option.
|
|
22290
22718
|
* @throws {RequiredError}
|
|
22291
22719
|
*/
|
|
22292
|
-
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
22720
|
+
apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
22293
22721
|
if (options === void 0) { options = {}; }
|
|
22294
22722
|
return __awaiter(_this, void 0, void 0, function () {
|
|
22295
22723
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -22323,6 +22751,9 @@ exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
22323
22751
|
if (description !== undefined) {
|
|
22324
22752
|
localVarQueryParameter['Description'] = description;
|
|
22325
22753
|
}
|
|
22754
|
+
if (showPublished !== undefined) {
|
|
22755
|
+
localVarQueryParameter['ShowPublished'] = showPublished;
|
|
22756
|
+
}
|
|
22326
22757
|
if (page !== undefined) {
|
|
22327
22758
|
localVarQueryParameter['page'] = page;
|
|
22328
22759
|
}
|
|
@@ -22552,18 +22983,19 @@ exports.LanguagesApiFp = function (configuration) {
|
|
|
22552
22983
|
* @param {string} [name]
|
|
22553
22984
|
* @param {string} [code]
|
|
22554
22985
|
* @param {string} [description]
|
|
22986
|
+
* @param {boolean} [showPublished]
|
|
22555
22987
|
* @param {number} [page]
|
|
22556
22988
|
* @param {number} [limit]
|
|
22557
22989
|
* @param {Date} [lastRetrieved]
|
|
22558
22990
|
* @param {*} [options] Override http request option.
|
|
22559
22991
|
* @throws {RequiredError}
|
|
22560
22992
|
*/
|
|
22561
|
-
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
22993
|
+
apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
22562
22994
|
return __awaiter(this, void 0, void 0, function () {
|
|
22563
22995
|
var localVarAxiosArgs;
|
|
22564
22996
|
return __generator(this, function (_a) {
|
|
22565
22997
|
switch (_a.label) {
|
|
22566
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options)];
|
|
22998
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options)];
|
|
22567
22999
|
case 1:
|
|
22568
23000
|
localVarAxiosArgs = _a.sent();
|
|
22569
23001
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -22675,14 +23107,15 @@ exports.LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
22675
23107
|
* @param {string} [name]
|
|
22676
23108
|
* @param {string} [code]
|
|
22677
23109
|
* @param {string} [description]
|
|
23110
|
+
* @param {boolean} [showPublished]
|
|
22678
23111
|
* @param {number} [page]
|
|
22679
23112
|
* @param {number} [limit]
|
|
22680
23113
|
* @param {Date} [lastRetrieved]
|
|
22681
23114
|
* @param {*} [options] Override http request option.
|
|
22682
23115
|
* @throws {RequiredError}
|
|
22683
23116
|
*/
|
|
22684
|
-
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
22685
|
-
return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
23117
|
+
apiV1LanguagesGet: function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
23118
|
+
return localVarFp.apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
22686
23119
|
},
|
|
22687
23120
|
/**
|
|
22688
23121
|
*
|
|
@@ -22754,6 +23187,7 @@ var LanguagesApi = /** @class */ (function (_super) {
|
|
|
22754
23187
|
* @param {string} [name]
|
|
22755
23188
|
* @param {string} [code]
|
|
22756
23189
|
* @param {string} [description]
|
|
23190
|
+
* @param {boolean} [showPublished]
|
|
22757
23191
|
* @param {number} [page]
|
|
22758
23192
|
* @param {number} [limit]
|
|
22759
23193
|
* @param {Date} [lastRetrieved]
|
|
@@ -22761,9 +23195,9 @@ var LanguagesApi = /** @class */ (function (_super) {
|
|
|
22761
23195
|
* @throws {RequiredError}
|
|
22762
23196
|
* @memberof LanguagesApi
|
|
22763
23197
|
*/
|
|
22764
|
-
LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
23198
|
+
LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, showPublished, page, limit, lastRetrieved, options) {
|
|
22765
23199
|
var _this = this;
|
|
22766
|
-
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
23200
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, showPublished, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
22767
23201
|
};
|
|
22768
23202
|
/**
|
|
22769
23203
|
*
|