ch-admin-api-client-typescript 2.1.3 → 2.1.4
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 +515 -20
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +630 -30
- package/package.json +1 -1
- package/src/api.ts +783 -30
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.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.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.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.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.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
|
|
@@ -193,6 +193,33 @@ var MediaType;
|
|
|
193
193
|
MediaType["Youtube"] = "Youtube";
|
|
194
194
|
MediaType["Document"] = "Document";
|
|
195
195
|
})(MediaType = exports.MediaType || (exports.MediaType = {}));
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @export
|
|
199
|
+
* @enum {string}
|
|
200
|
+
*/
|
|
201
|
+
var NotificationCode;
|
|
202
|
+
(function (NotificationCode) {
|
|
203
|
+
NotificationCode["WelcomeEmail"] = "WelcomeEmail";
|
|
204
|
+
NotificationCode["DirectMessageSent"] = "DirectMessageSent";
|
|
205
|
+
NotificationCode["BookingNew"] = "BookingNew";
|
|
206
|
+
NotificationCode["BookingUpdated"] = "BookingUpdated";
|
|
207
|
+
NotificationCode["BookingRejected"] = "BookingRejected";
|
|
208
|
+
NotificationCode["BookingApproved"] = "BookingApproved";
|
|
209
|
+
NotificationCode["BookingPaid"] = "BookingPaid";
|
|
210
|
+
NotificationCode["BookingCanceled"] = "BookingCanceled";
|
|
211
|
+
NotificationCode["BookingRefundRequested"] = "BookingRefundRequested";
|
|
212
|
+
NotificationCode["BookingRefunded"] = "BookingRefunded";
|
|
213
|
+
NotificationCode["ConsultationNew"] = "ConsultationNew";
|
|
214
|
+
NotificationCode["ConsultationUpdated"] = "ConsultationUpdated";
|
|
215
|
+
NotificationCode["ConsultationRejected"] = "ConsultationRejected";
|
|
216
|
+
NotificationCode["ConsultationApproved"] = "ConsultationApproved";
|
|
217
|
+
NotificationCode["ConsultationPaid"] = "ConsultationPaid";
|
|
218
|
+
NotificationCode["ConsultationCanceled"] = "ConsultationCanceled";
|
|
219
|
+
NotificationCode["ConsultationRefundRequested"] = "ConsultationRefundRequested";
|
|
220
|
+
NotificationCode["ConsultationRefunded"] = "ConsultationRefunded";
|
|
221
|
+
NotificationCode["ConsultationReady"] = "ConsultationReady";
|
|
222
|
+
})(NotificationCode = exports.NotificationCode || (exports.NotificationCode = {}));
|
|
196
223
|
/**
|
|
197
224
|
*
|
|
198
225
|
* @export
|
|
@@ -10077,7 +10104,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10077
10104
|
},
|
|
10078
10105
|
/**
|
|
10079
10106
|
*
|
|
10080
|
-
* @summary Get all
|
|
10107
|
+
* @summary Get all Doctors.
|
|
10081
10108
|
* @param {string} [countryId]
|
|
10082
10109
|
* @param {string} [hospitalId]
|
|
10083
10110
|
* @param {MarketingType} [marketingType]
|
|
@@ -10939,7 +10966,7 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10939
10966
|
},
|
|
10940
10967
|
/**
|
|
10941
10968
|
*
|
|
10942
|
-
* @summary Get all
|
|
10969
|
+
* @summary Get all Doctors.
|
|
10943
10970
|
* @param {string} [countryId]
|
|
10944
10971
|
* @param {string} [hospitalId]
|
|
10945
10972
|
* @param {MarketingType} [marketingType]
|
|
@@ -11380,7 +11407,7 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
11380
11407
|
},
|
|
11381
11408
|
/**
|
|
11382
11409
|
*
|
|
11383
|
-
* @summary Get all
|
|
11410
|
+
* @summary Get all Doctors.
|
|
11384
11411
|
* @param {string} [countryId]
|
|
11385
11412
|
* @param {string} [hospitalId]
|
|
11386
11413
|
* @param {MarketingType} [marketingType]
|
|
@@ -11853,7 +11880,7 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11853
11880
|
};
|
|
11854
11881
|
/**
|
|
11855
11882
|
*
|
|
11856
|
-
* @summary Get all
|
|
11883
|
+
* @summary Get all Doctors.
|
|
11857
11884
|
* @param {string} [countryId]
|
|
11858
11885
|
* @param {string} [hospitalId]
|
|
11859
11886
|
* @param {MarketingType} [marketingType]
|
|
@@ -12119,9 +12146,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
12119
12146
|
},
|
|
12120
12147
|
/**
|
|
12121
12148
|
*
|
|
12122
|
-
* @summary Get all
|
|
12123
|
-
* @param {string}
|
|
12124
|
-
* @param {string} [hospitalId]
|
|
12149
|
+
* @summary Get all HospitalAccreditations.
|
|
12150
|
+
* @param {string} hospitalId
|
|
12125
12151
|
* @param {string} [hospitalName]
|
|
12126
12152
|
* @param {string} [accreditationId]
|
|
12127
12153
|
* @param {string} [accreditationName]
|
|
@@ -12131,17 +12157,17 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
12131
12157
|
* @param {*} [options] Override http request option.
|
|
12132
12158
|
* @throws {RequiredError}
|
|
12133
12159
|
*/
|
|
12134
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
12160
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
12135
12161
|
if (options === void 0) { options = {}; }
|
|
12136
12162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
12137
12163
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12138
12164
|
return __generator(this, function (_a) {
|
|
12139
12165
|
switch (_a.label) {
|
|
12140
12166
|
case 0:
|
|
12141
|
-
// verify required parameter '
|
|
12142
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', '
|
|
12167
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
12168
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId', hospitalId);
|
|
12143
12169
|
localVarPath = "/api/v1/hospitals/{hospitalId}/accreditations"
|
|
12144
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(
|
|
12170
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
12145
12171
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12146
12172
|
if (configuration) {
|
|
12147
12173
|
baseOptions = configuration.baseOptions;
|
|
@@ -12156,9 +12182,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
12156
12182
|
// authentication oauth2 required
|
|
12157
12183
|
// oauth required
|
|
12158
12184
|
_a.sent();
|
|
12159
|
-
if (hospitalId !== undefined) {
|
|
12160
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
12161
|
-
}
|
|
12162
12185
|
if (hospitalName !== undefined) {
|
|
12163
12186
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
12164
12187
|
}
|
|
@@ -14093,9 +14116,8 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
14093
14116
|
},
|
|
14094
14117
|
/**
|
|
14095
14118
|
*
|
|
14096
|
-
* @summary Get all
|
|
14097
|
-
* @param {string}
|
|
14098
|
-
* @param {string} [hospitalId]
|
|
14119
|
+
* @summary Get all HospitalAccreditations.
|
|
14120
|
+
* @param {string} hospitalId
|
|
14099
14121
|
* @param {string} [hospitalName]
|
|
14100
14122
|
* @param {string} [accreditationId]
|
|
14101
14123
|
* @param {string} [accreditationName]
|
|
@@ -14105,12 +14127,12 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
14105
14127
|
* @param {*} [options] Override http request option.
|
|
14106
14128
|
* @throws {RequiredError}
|
|
14107
14129
|
*/
|
|
14108
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
14130
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
14109
14131
|
return __awaiter(this, void 0, void 0, function () {
|
|
14110
14132
|
var localVarAxiosArgs;
|
|
14111
14133
|
return __generator(this, function (_a) {
|
|
14112
14134
|
switch (_a.label) {
|
|
14113
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
14135
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options)];
|
|
14114
14136
|
case 1:
|
|
14115
14137
|
localVarAxiosArgs = _a.sent();
|
|
14116
14138
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14943,9 +14965,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
14943
14965
|
},
|
|
14944
14966
|
/**
|
|
14945
14967
|
*
|
|
14946
|
-
* @summary Get all
|
|
14947
|
-
* @param {string}
|
|
14948
|
-
* @param {string} [hospitalId]
|
|
14968
|
+
* @summary Get all HospitalAccreditations.
|
|
14969
|
+
* @param {string} hospitalId
|
|
14949
14970
|
* @param {string} [hospitalName]
|
|
14950
14971
|
* @param {string} [accreditationId]
|
|
14951
14972
|
* @param {string} [accreditationName]
|
|
@@ -14955,8 +14976,8 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
14955
14976
|
* @param {*} [options] Override http request option.
|
|
14956
14977
|
* @throws {RequiredError}
|
|
14957
14978
|
*/
|
|
14958
|
-
apiV1HospitalsHospitalIdAccreditationsGet: function (
|
|
14959
|
-
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
14979
|
+
apiV1HospitalsHospitalIdAccreditationsGet: function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
14980
|
+
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14960
14981
|
},
|
|
14961
14982
|
/**
|
|
14962
14983
|
*
|
|
@@ -15453,9 +15474,8 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15453
15474
|
};
|
|
15454
15475
|
/**
|
|
15455
15476
|
*
|
|
15456
|
-
* @summary Get all
|
|
15457
|
-
* @param {string}
|
|
15458
|
-
* @param {string} [hospitalId]
|
|
15477
|
+
* @summary Get all HospitalAccreditations.
|
|
15478
|
+
* @param {string} hospitalId
|
|
15459
15479
|
* @param {string} [hospitalName]
|
|
15460
15480
|
* @param {string} [accreditationId]
|
|
15461
15481
|
* @param {string} [accreditationName]
|
|
@@ -15466,9 +15486,9 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15466
15486
|
* @throws {RequiredError}
|
|
15467
15487
|
* @memberof HospitalsApi
|
|
15468
15488
|
*/
|
|
15469
|
-
HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (
|
|
15489
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdAccreditationsGet = function (hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options) {
|
|
15470
15490
|
var _this = this;
|
|
15471
|
-
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(
|
|
15491
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15472
15492
|
};
|
|
15473
15493
|
/**
|
|
15474
15494
|
*
|
|
@@ -16083,6 +16103,586 @@ var ImagesApi = /** @class */ (function (_super) {
|
|
|
16083
16103
|
return ImagesApi;
|
|
16084
16104
|
}(base_1.BaseAPI));
|
|
16085
16105
|
exports.ImagesApi = ImagesApi;
|
|
16106
|
+
/**
|
|
16107
|
+
* LanguagesApi - axios parameter creator
|
|
16108
|
+
* @export
|
|
16109
|
+
*/
|
|
16110
|
+
exports.LanguagesApiAxiosParamCreator = function (configuration) {
|
|
16111
|
+
var _this = this;
|
|
16112
|
+
return {
|
|
16113
|
+
/**
|
|
16114
|
+
*
|
|
16115
|
+
* @summary Get Language by code.
|
|
16116
|
+
* @param {string} code
|
|
16117
|
+
* @param {*} [options] Override http request option.
|
|
16118
|
+
* @throws {RequiredError}
|
|
16119
|
+
*/
|
|
16120
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16121
|
+
if (options === void 0) { options = {}; }
|
|
16122
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16123
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16124
|
+
return __generator(this, function (_a) {
|
|
16125
|
+
switch (_a.label) {
|
|
16126
|
+
case 0:
|
|
16127
|
+
// verify required parameter 'code' is not null or undefined
|
|
16128
|
+
common_1.assertParamExists('apiV1LanguagesCodeGet', 'code', code);
|
|
16129
|
+
localVarPath = "/api/v1/languages/{code}"
|
|
16130
|
+
.replace("{" + "code" + "}", encodeURIComponent(String(code)));
|
|
16131
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16132
|
+
if (configuration) {
|
|
16133
|
+
baseOptions = configuration.baseOptions;
|
|
16134
|
+
}
|
|
16135
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16136
|
+
localVarHeaderParameter = {};
|
|
16137
|
+
localVarQueryParameter = {};
|
|
16138
|
+
// authentication oauth2 required
|
|
16139
|
+
// oauth required
|
|
16140
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16141
|
+
case 1:
|
|
16142
|
+
// authentication oauth2 required
|
|
16143
|
+
// oauth required
|
|
16144
|
+
_a.sent();
|
|
16145
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16146
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16147
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16148
|
+
return [2 /*return*/, {
|
|
16149
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16150
|
+
options: localVarRequestOptions,
|
|
16151
|
+
}];
|
|
16152
|
+
}
|
|
16153
|
+
});
|
|
16154
|
+
});
|
|
16155
|
+
},
|
|
16156
|
+
/**
|
|
16157
|
+
*
|
|
16158
|
+
* @summary Get all Languages.
|
|
16159
|
+
* @param {string} [id]
|
|
16160
|
+
* @param {string} [name]
|
|
16161
|
+
* @param {string} [code]
|
|
16162
|
+
* @param {string} [description]
|
|
16163
|
+
* @param {number} [page]
|
|
16164
|
+
* @param {number} [limit]
|
|
16165
|
+
* @param {Date} [lastRetrieved]
|
|
16166
|
+
* @param {*} [options] Override http request option.
|
|
16167
|
+
* @throws {RequiredError}
|
|
16168
|
+
*/
|
|
16169
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16170
|
+
if (options === void 0) { options = {}; }
|
|
16171
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16172
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16173
|
+
return __generator(this, function (_a) {
|
|
16174
|
+
switch (_a.label) {
|
|
16175
|
+
case 0:
|
|
16176
|
+
localVarPath = "/api/v1/languages";
|
|
16177
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16178
|
+
if (configuration) {
|
|
16179
|
+
baseOptions = configuration.baseOptions;
|
|
16180
|
+
}
|
|
16181
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16182
|
+
localVarHeaderParameter = {};
|
|
16183
|
+
localVarQueryParameter = {};
|
|
16184
|
+
// authentication oauth2 required
|
|
16185
|
+
// oauth required
|
|
16186
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16187
|
+
case 1:
|
|
16188
|
+
// authentication oauth2 required
|
|
16189
|
+
// oauth required
|
|
16190
|
+
_a.sent();
|
|
16191
|
+
if (id !== undefined) {
|
|
16192
|
+
localVarQueryParameter['Id'] = id;
|
|
16193
|
+
}
|
|
16194
|
+
if (name !== undefined) {
|
|
16195
|
+
localVarQueryParameter['Name'] = name;
|
|
16196
|
+
}
|
|
16197
|
+
if (code !== undefined) {
|
|
16198
|
+
localVarQueryParameter['Code'] = code;
|
|
16199
|
+
}
|
|
16200
|
+
if (description !== undefined) {
|
|
16201
|
+
localVarQueryParameter['Description'] = description;
|
|
16202
|
+
}
|
|
16203
|
+
if (page !== undefined) {
|
|
16204
|
+
localVarQueryParameter['page'] = page;
|
|
16205
|
+
}
|
|
16206
|
+
if (limit !== undefined) {
|
|
16207
|
+
localVarQueryParameter['limit'] = limit;
|
|
16208
|
+
}
|
|
16209
|
+
if (lastRetrieved !== undefined) {
|
|
16210
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16211
|
+
lastRetrieved.toISOString() :
|
|
16212
|
+
lastRetrieved;
|
|
16213
|
+
}
|
|
16214
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16215
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16216
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16217
|
+
return [2 /*return*/, {
|
|
16218
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16219
|
+
options: localVarRequestOptions,
|
|
16220
|
+
}];
|
|
16221
|
+
}
|
|
16222
|
+
});
|
|
16223
|
+
});
|
|
16224
|
+
},
|
|
16225
|
+
/**
|
|
16226
|
+
*
|
|
16227
|
+
* @summary Get Language.
|
|
16228
|
+
* @param {string} id
|
|
16229
|
+
* @param {*} [options] Override http request option.
|
|
16230
|
+
* @throws {RequiredError}
|
|
16231
|
+
*/
|
|
16232
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16233
|
+
if (options === void 0) { options = {}; }
|
|
16234
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16235
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16236
|
+
return __generator(this, function (_a) {
|
|
16237
|
+
switch (_a.label) {
|
|
16238
|
+
case 0:
|
|
16239
|
+
// verify required parameter 'id' is not null or undefined
|
|
16240
|
+
common_1.assertParamExists('apiV1LanguagesIdGet', 'id', id);
|
|
16241
|
+
localVarPath = "/api/v1/languages/{id}"
|
|
16242
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
16243
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16244
|
+
if (configuration) {
|
|
16245
|
+
baseOptions = configuration.baseOptions;
|
|
16246
|
+
}
|
|
16247
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16248
|
+
localVarHeaderParameter = {};
|
|
16249
|
+
localVarQueryParameter = {};
|
|
16250
|
+
// authentication oauth2 required
|
|
16251
|
+
// oauth required
|
|
16252
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16253
|
+
case 1:
|
|
16254
|
+
// authentication oauth2 required
|
|
16255
|
+
// oauth required
|
|
16256
|
+
_a.sent();
|
|
16257
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16258
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16259
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16260
|
+
return [2 /*return*/, {
|
|
16261
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16262
|
+
options: localVarRequestOptions,
|
|
16263
|
+
}];
|
|
16264
|
+
}
|
|
16265
|
+
});
|
|
16266
|
+
});
|
|
16267
|
+
},
|
|
16268
|
+
};
|
|
16269
|
+
};
|
|
16270
|
+
/**
|
|
16271
|
+
* LanguagesApi - functional programming interface
|
|
16272
|
+
* @export
|
|
16273
|
+
*/
|
|
16274
|
+
exports.LanguagesApiFp = function (configuration) {
|
|
16275
|
+
var localVarAxiosParamCreator = exports.LanguagesApiAxiosParamCreator(configuration);
|
|
16276
|
+
return {
|
|
16277
|
+
/**
|
|
16278
|
+
*
|
|
16279
|
+
* @summary Get Language by code.
|
|
16280
|
+
* @param {string} code
|
|
16281
|
+
* @param {*} [options] Override http request option.
|
|
16282
|
+
* @throws {RequiredError}
|
|
16283
|
+
*/
|
|
16284
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16285
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16286
|
+
var localVarAxiosArgs;
|
|
16287
|
+
return __generator(this, function (_a) {
|
|
16288
|
+
switch (_a.label) {
|
|
16289
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options)];
|
|
16290
|
+
case 1:
|
|
16291
|
+
localVarAxiosArgs = _a.sent();
|
|
16292
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16293
|
+
}
|
|
16294
|
+
});
|
|
16295
|
+
});
|
|
16296
|
+
},
|
|
16297
|
+
/**
|
|
16298
|
+
*
|
|
16299
|
+
* @summary Get all Languages.
|
|
16300
|
+
* @param {string} [id]
|
|
16301
|
+
* @param {string} [name]
|
|
16302
|
+
* @param {string} [code]
|
|
16303
|
+
* @param {string} [description]
|
|
16304
|
+
* @param {number} [page]
|
|
16305
|
+
* @param {number} [limit]
|
|
16306
|
+
* @param {Date} [lastRetrieved]
|
|
16307
|
+
* @param {*} [options] Override http request option.
|
|
16308
|
+
* @throws {RequiredError}
|
|
16309
|
+
*/
|
|
16310
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16312
|
+
var localVarAxiosArgs;
|
|
16313
|
+
return __generator(this, function (_a) {
|
|
16314
|
+
switch (_a.label) {
|
|
16315
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options)];
|
|
16316
|
+
case 1:
|
|
16317
|
+
localVarAxiosArgs = _a.sent();
|
|
16318
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16319
|
+
}
|
|
16320
|
+
});
|
|
16321
|
+
});
|
|
16322
|
+
},
|
|
16323
|
+
/**
|
|
16324
|
+
*
|
|
16325
|
+
* @summary Get Language.
|
|
16326
|
+
* @param {string} id
|
|
16327
|
+
* @param {*} [options] Override http request option.
|
|
16328
|
+
* @throws {RequiredError}
|
|
16329
|
+
*/
|
|
16330
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16331
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16332
|
+
var localVarAxiosArgs;
|
|
16333
|
+
return __generator(this, function (_a) {
|
|
16334
|
+
switch (_a.label) {
|
|
16335
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options)];
|
|
16336
|
+
case 1:
|
|
16337
|
+
localVarAxiosArgs = _a.sent();
|
|
16338
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16339
|
+
}
|
|
16340
|
+
});
|
|
16341
|
+
});
|
|
16342
|
+
},
|
|
16343
|
+
};
|
|
16344
|
+
};
|
|
16345
|
+
/**
|
|
16346
|
+
* LanguagesApi - factory interface
|
|
16347
|
+
* @export
|
|
16348
|
+
*/
|
|
16349
|
+
exports.LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
16350
|
+
var localVarFp = exports.LanguagesApiFp(configuration);
|
|
16351
|
+
return {
|
|
16352
|
+
/**
|
|
16353
|
+
*
|
|
16354
|
+
* @summary Get Language by code.
|
|
16355
|
+
* @param {string} code
|
|
16356
|
+
* @param {*} [options] Override http request option.
|
|
16357
|
+
* @throws {RequiredError}
|
|
16358
|
+
*/
|
|
16359
|
+
apiV1LanguagesCodeGet: function (code, options) {
|
|
16360
|
+
return localVarFp.apiV1LanguagesCodeGet(code, options).then(function (request) { return request(axios, basePath); });
|
|
16361
|
+
},
|
|
16362
|
+
/**
|
|
16363
|
+
*
|
|
16364
|
+
* @summary Get all Languages.
|
|
16365
|
+
* @param {string} [id]
|
|
16366
|
+
* @param {string} [name]
|
|
16367
|
+
* @param {string} [code]
|
|
16368
|
+
* @param {string} [description]
|
|
16369
|
+
* @param {number} [page]
|
|
16370
|
+
* @param {number} [limit]
|
|
16371
|
+
* @param {Date} [lastRetrieved]
|
|
16372
|
+
* @param {*} [options] Override http request option.
|
|
16373
|
+
* @throws {RequiredError}
|
|
16374
|
+
*/
|
|
16375
|
+
apiV1LanguagesGet: function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16376
|
+
return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16377
|
+
},
|
|
16378
|
+
/**
|
|
16379
|
+
*
|
|
16380
|
+
* @summary Get Language.
|
|
16381
|
+
* @param {string} id
|
|
16382
|
+
* @param {*} [options] Override http request option.
|
|
16383
|
+
* @throws {RequiredError}
|
|
16384
|
+
*/
|
|
16385
|
+
apiV1LanguagesIdGet: function (id, options) {
|
|
16386
|
+
return localVarFp.apiV1LanguagesIdGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
16387
|
+
},
|
|
16388
|
+
};
|
|
16389
|
+
};
|
|
16390
|
+
/**
|
|
16391
|
+
* LanguagesApi - object-oriented interface
|
|
16392
|
+
* @export
|
|
16393
|
+
* @class LanguagesApi
|
|
16394
|
+
* @extends {BaseAPI}
|
|
16395
|
+
*/
|
|
16396
|
+
var LanguagesApi = /** @class */ (function (_super) {
|
|
16397
|
+
__extends(LanguagesApi, _super);
|
|
16398
|
+
function LanguagesApi() {
|
|
16399
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16400
|
+
}
|
|
16401
|
+
/**
|
|
16402
|
+
*
|
|
16403
|
+
* @summary Get Language by code.
|
|
16404
|
+
* @param {string} code
|
|
16405
|
+
* @param {*} [options] Override http request option.
|
|
16406
|
+
* @throws {RequiredError}
|
|
16407
|
+
* @memberof LanguagesApi
|
|
16408
|
+
*/
|
|
16409
|
+
LanguagesApi.prototype.apiV1LanguagesCodeGet = function (code, options) {
|
|
16410
|
+
var _this = this;
|
|
16411
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16412
|
+
};
|
|
16413
|
+
/**
|
|
16414
|
+
*
|
|
16415
|
+
* @summary Get all Languages.
|
|
16416
|
+
* @param {string} [id]
|
|
16417
|
+
* @param {string} [name]
|
|
16418
|
+
* @param {string} [code]
|
|
16419
|
+
* @param {string} [description]
|
|
16420
|
+
* @param {number} [page]
|
|
16421
|
+
* @param {number} [limit]
|
|
16422
|
+
* @param {Date} [lastRetrieved]
|
|
16423
|
+
* @param {*} [options] Override http request option.
|
|
16424
|
+
* @throws {RequiredError}
|
|
16425
|
+
* @memberof LanguagesApi
|
|
16426
|
+
*/
|
|
16427
|
+
LanguagesApi.prototype.apiV1LanguagesGet = function (id, name, code, description, page, limit, lastRetrieved, options) {
|
|
16428
|
+
var _this = this;
|
|
16429
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16430
|
+
};
|
|
16431
|
+
/**
|
|
16432
|
+
*
|
|
16433
|
+
* @summary Get Language.
|
|
16434
|
+
* @param {string} id
|
|
16435
|
+
* @param {*} [options] Override http request option.
|
|
16436
|
+
* @throws {RequiredError}
|
|
16437
|
+
* @memberof LanguagesApi
|
|
16438
|
+
*/
|
|
16439
|
+
LanguagesApi.prototype.apiV1LanguagesIdGet = function (id, options) {
|
|
16440
|
+
var _this = this;
|
|
16441
|
+
return exports.LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16442
|
+
};
|
|
16443
|
+
return LanguagesApi;
|
|
16444
|
+
}(base_1.BaseAPI));
|
|
16445
|
+
exports.LanguagesApi = LanguagesApi;
|
|
16446
|
+
/**
|
|
16447
|
+
* NotificationsApi - axios parameter creator
|
|
16448
|
+
* @export
|
|
16449
|
+
*/
|
|
16450
|
+
exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
16451
|
+
var _this = this;
|
|
16452
|
+
return {
|
|
16453
|
+
/**
|
|
16454
|
+
*
|
|
16455
|
+
* @summary Check notification.
|
|
16456
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16457
|
+
* @param {*} [options] Override http request option.
|
|
16458
|
+
* @throws {RequiredError}
|
|
16459
|
+
*/
|
|
16460
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16461
|
+
if (options === void 0) { options = {}; }
|
|
16462
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16463
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16464
|
+
return __generator(this, function (_a) {
|
|
16465
|
+
switch (_a.label) {
|
|
16466
|
+
case 0:
|
|
16467
|
+
localVarPath = "/api/v1/notifications/check";
|
|
16468
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16469
|
+
if (configuration) {
|
|
16470
|
+
baseOptions = configuration.baseOptions;
|
|
16471
|
+
}
|
|
16472
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16473
|
+
localVarHeaderParameter = {};
|
|
16474
|
+
localVarQueryParameter = {};
|
|
16475
|
+
// authentication oauth2 required
|
|
16476
|
+
// oauth required
|
|
16477
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16478
|
+
case 1:
|
|
16479
|
+
// authentication oauth2 required
|
|
16480
|
+
// oauth required
|
|
16481
|
+
_a.sent();
|
|
16482
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16483
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16484
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16485
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16486
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
|
|
16487
|
+
return [2 /*return*/, {
|
|
16488
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16489
|
+
options: localVarRequestOptions,
|
|
16490
|
+
}];
|
|
16491
|
+
}
|
|
16492
|
+
});
|
|
16493
|
+
});
|
|
16494
|
+
},
|
|
16495
|
+
/**
|
|
16496
|
+
*
|
|
16497
|
+
* @summary Get all notifications.
|
|
16498
|
+
* @param {NotificationCode} [notificationCode]
|
|
16499
|
+
* @param {boolean} [unreadCountOnly]
|
|
16500
|
+
* @param {number} [page]
|
|
16501
|
+
* @param {number} [limit]
|
|
16502
|
+
* @param {Date} [lastRetrieved]
|
|
16503
|
+
* @param {*} [options] Override http request option.
|
|
16504
|
+
* @throws {RequiredError}
|
|
16505
|
+
*/
|
|
16506
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16507
|
+
if (options === void 0) { options = {}; }
|
|
16508
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
16509
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16510
|
+
return __generator(this, function (_a) {
|
|
16511
|
+
switch (_a.label) {
|
|
16512
|
+
case 0:
|
|
16513
|
+
localVarPath = "/api/v1/notifications";
|
|
16514
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16515
|
+
if (configuration) {
|
|
16516
|
+
baseOptions = configuration.baseOptions;
|
|
16517
|
+
}
|
|
16518
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16519
|
+
localVarHeaderParameter = {};
|
|
16520
|
+
localVarQueryParameter = {};
|
|
16521
|
+
// authentication oauth2 required
|
|
16522
|
+
// oauth required
|
|
16523
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16524
|
+
case 1:
|
|
16525
|
+
// authentication oauth2 required
|
|
16526
|
+
// oauth required
|
|
16527
|
+
_a.sent();
|
|
16528
|
+
if (notificationCode !== undefined) {
|
|
16529
|
+
localVarQueryParameter['NotificationCode'] = notificationCode;
|
|
16530
|
+
}
|
|
16531
|
+
if (unreadCountOnly !== undefined) {
|
|
16532
|
+
localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
|
|
16533
|
+
}
|
|
16534
|
+
if (page !== undefined) {
|
|
16535
|
+
localVarQueryParameter['page'] = page;
|
|
16536
|
+
}
|
|
16537
|
+
if (limit !== undefined) {
|
|
16538
|
+
localVarQueryParameter['limit'] = limit;
|
|
16539
|
+
}
|
|
16540
|
+
if (lastRetrieved !== undefined) {
|
|
16541
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
16542
|
+
lastRetrieved.toISOString() :
|
|
16543
|
+
lastRetrieved;
|
|
16544
|
+
}
|
|
16545
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16546
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16547
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16548
|
+
return [2 /*return*/, {
|
|
16549
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16550
|
+
options: localVarRequestOptions,
|
|
16551
|
+
}];
|
|
16552
|
+
}
|
|
16553
|
+
});
|
|
16554
|
+
});
|
|
16555
|
+
},
|
|
16556
|
+
};
|
|
16557
|
+
};
|
|
16558
|
+
/**
|
|
16559
|
+
* NotificationsApi - functional programming interface
|
|
16560
|
+
* @export
|
|
16561
|
+
*/
|
|
16562
|
+
exports.NotificationsApiFp = function (configuration) {
|
|
16563
|
+
var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
|
|
16564
|
+
return {
|
|
16565
|
+
/**
|
|
16566
|
+
*
|
|
16567
|
+
* @summary Check notification.
|
|
16568
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16569
|
+
* @param {*} [options] Override http request option.
|
|
16570
|
+
* @throws {RequiredError}
|
|
16571
|
+
*/
|
|
16572
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16573
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16574
|
+
var localVarAxiosArgs;
|
|
16575
|
+
return __generator(this, function (_a) {
|
|
16576
|
+
switch (_a.label) {
|
|
16577
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
|
|
16578
|
+
case 1:
|
|
16579
|
+
localVarAxiosArgs = _a.sent();
|
|
16580
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16581
|
+
}
|
|
16582
|
+
});
|
|
16583
|
+
});
|
|
16584
|
+
},
|
|
16585
|
+
/**
|
|
16586
|
+
*
|
|
16587
|
+
* @summary Get all notifications.
|
|
16588
|
+
* @param {NotificationCode} [notificationCode]
|
|
16589
|
+
* @param {boolean} [unreadCountOnly]
|
|
16590
|
+
* @param {number} [page]
|
|
16591
|
+
* @param {number} [limit]
|
|
16592
|
+
* @param {Date} [lastRetrieved]
|
|
16593
|
+
* @param {*} [options] Override http request option.
|
|
16594
|
+
* @throws {RequiredError}
|
|
16595
|
+
*/
|
|
16596
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16597
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16598
|
+
var localVarAxiosArgs;
|
|
16599
|
+
return __generator(this, function (_a) {
|
|
16600
|
+
switch (_a.label) {
|
|
16601
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
|
|
16602
|
+
case 1:
|
|
16603
|
+
localVarAxiosArgs = _a.sent();
|
|
16604
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16605
|
+
}
|
|
16606
|
+
});
|
|
16607
|
+
});
|
|
16608
|
+
},
|
|
16609
|
+
};
|
|
16610
|
+
};
|
|
16611
|
+
/**
|
|
16612
|
+
* NotificationsApi - factory interface
|
|
16613
|
+
* @export
|
|
16614
|
+
*/
|
|
16615
|
+
exports.NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
16616
|
+
var localVarFp = exports.NotificationsApiFp(configuration);
|
|
16617
|
+
return {
|
|
16618
|
+
/**
|
|
16619
|
+
*
|
|
16620
|
+
* @summary Check notification.
|
|
16621
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16622
|
+
* @param {*} [options] Override http request option.
|
|
16623
|
+
* @throws {RequiredError}
|
|
16624
|
+
*/
|
|
16625
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
16626
|
+
return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
16627
|
+
},
|
|
16628
|
+
/**
|
|
16629
|
+
*
|
|
16630
|
+
* @summary Get all notifications.
|
|
16631
|
+
* @param {NotificationCode} [notificationCode]
|
|
16632
|
+
* @param {boolean} [unreadCountOnly]
|
|
16633
|
+
* @param {number} [page]
|
|
16634
|
+
* @param {number} [limit]
|
|
16635
|
+
* @param {Date} [lastRetrieved]
|
|
16636
|
+
* @param {*} [options] Override http request option.
|
|
16637
|
+
* @throws {RequiredError}
|
|
16638
|
+
*/
|
|
16639
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16640
|
+
return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16641
|
+
},
|
|
16642
|
+
};
|
|
16643
|
+
};
|
|
16644
|
+
/**
|
|
16645
|
+
* NotificationsApi - object-oriented interface
|
|
16646
|
+
* @export
|
|
16647
|
+
* @class NotificationsApi
|
|
16648
|
+
* @extends {BaseAPI}
|
|
16649
|
+
*/
|
|
16650
|
+
var NotificationsApi = /** @class */ (function (_super) {
|
|
16651
|
+
__extends(NotificationsApi, _super);
|
|
16652
|
+
function NotificationsApi() {
|
|
16653
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16654
|
+
}
|
|
16655
|
+
/**
|
|
16656
|
+
*
|
|
16657
|
+
* @summary Check notification.
|
|
16658
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
16659
|
+
* @param {*} [options] Override http request option.
|
|
16660
|
+
* @throws {RequiredError}
|
|
16661
|
+
* @memberof NotificationsApi
|
|
16662
|
+
*/
|
|
16663
|
+
NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
|
|
16664
|
+
var _this = this;
|
|
16665
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16666
|
+
};
|
|
16667
|
+
/**
|
|
16668
|
+
*
|
|
16669
|
+
* @summary Get all notifications.
|
|
16670
|
+
* @param {NotificationCode} [notificationCode]
|
|
16671
|
+
* @param {boolean} [unreadCountOnly]
|
|
16672
|
+
* @param {number} [page]
|
|
16673
|
+
* @param {number} [limit]
|
|
16674
|
+
* @param {Date} [lastRetrieved]
|
|
16675
|
+
* @param {*} [options] Override http request option.
|
|
16676
|
+
* @throws {RequiredError}
|
|
16677
|
+
* @memberof NotificationsApi
|
|
16678
|
+
*/
|
|
16679
|
+
NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
16680
|
+
var _this = this;
|
|
16681
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16682
|
+
};
|
|
16683
|
+
return NotificationsApi;
|
|
16684
|
+
}(base_1.BaseAPI));
|
|
16685
|
+
exports.NotificationsApi = NotificationsApi;
|
|
16086
16686
|
/**
|
|
16087
16687
|
* ServicesApi - axios parameter creator
|
|
16088
16688
|
* @export
|