ch-admin-api-client-typescript 2.5.2 → 2.5.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 +733 -108
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +864 -184
- package/package.json +1 -1
- package/src/api.ts +1054 -121
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.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.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.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.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.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = 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
|
|
@@ -5077,6 +5077,44 @@ exports.CHManagersApi = CHManagersApi;
|
|
|
5077
5077
|
exports.ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
5078
5078
|
var _this = this;
|
|
5079
5079
|
return {
|
|
5080
|
+
/**
|
|
5081
|
+
*
|
|
5082
|
+
* @param {*} [options] Override http request option.
|
|
5083
|
+
* @throws {RequiredError}
|
|
5084
|
+
*/
|
|
5085
|
+
apiV1ChatusersCurrentGet: function (options) {
|
|
5086
|
+
if (options === void 0) { options = {}; }
|
|
5087
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5088
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5089
|
+
return __generator(this, function (_a) {
|
|
5090
|
+
switch (_a.label) {
|
|
5091
|
+
case 0:
|
|
5092
|
+
localVarPath = "/api/v1/chatusers/current";
|
|
5093
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5094
|
+
if (configuration) {
|
|
5095
|
+
baseOptions = configuration.baseOptions;
|
|
5096
|
+
}
|
|
5097
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5098
|
+
localVarHeaderParameter = {};
|
|
5099
|
+
localVarQueryParameter = {};
|
|
5100
|
+
// authentication oauth2 required
|
|
5101
|
+
// oauth required
|
|
5102
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
5103
|
+
case 1:
|
|
5104
|
+
// authentication oauth2 required
|
|
5105
|
+
// oauth required
|
|
5106
|
+
_a.sent();
|
|
5107
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5108
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5109
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5110
|
+
return [2 /*return*/, {
|
|
5111
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
5112
|
+
options: localVarRequestOptions,
|
|
5113
|
+
}];
|
|
5114
|
+
}
|
|
5115
|
+
});
|
|
5116
|
+
});
|
|
5117
|
+
},
|
|
5080
5118
|
/**
|
|
5081
5119
|
*
|
|
5082
5120
|
* @summary Get all chatUsers.
|
|
@@ -5319,6 +5357,24 @@ exports.ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
5319
5357
|
exports.ChatUsersApiFp = function (configuration) {
|
|
5320
5358
|
var localVarAxiosParamCreator = exports.ChatUsersApiAxiosParamCreator(configuration);
|
|
5321
5359
|
return {
|
|
5360
|
+
/**
|
|
5361
|
+
*
|
|
5362
|
+
* @param {*} [options] Override http request option.
|
|
5363
|
+
* @throws {RequiredError}
|
|
5364
|
+
*/
|
|
5365
|
+
apiV1ChatusersCurrentGet: function (options) {
|
|
5366
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5367
|
+
var localVarAxiosArgs;
|
|
5368
|
+
return __generator(this, function (_a) {
|
|
5369
|
+
switch (_a.label) {
|
|
5370
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersCurrentGet(options)];
|
|
5371
|
+
case 1:
|
|
5372
|
+
localVarAxiosArgs = _a.sent();
|
|
5373
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
5374
|
+
}
|
|
5375
|
+
});
|
|
5376
|
+
});
|
|
5377
|
+
},
|
|
5322
5378
|
/**
|
|
5323
5379
|
*
|
|
5324
5380
|
* @summary Get all chatUsers.
|
|
@@ -5433,6 +5489,14 @@ exports.ChatUsersApiFp = function (configuration) {
|
|
|
5433
5489
|
exports.ChatUsersApiFactory = function (configuration, basePath, axios) {
|
|
5434
5490
|
var localVarFp = exports.ChatUsersApiFp(configuration);
|
|
5435
5491
|
return {
|
|
5492
|
+
/**
|
|
5493
|
+
*
|
|
5494
|
+
* @param {*} [options] Override http request option.
|
|
5495
|
+
* @throws {RequiredError}
|
|
5496
|
+
*/
|
|
5497
|
+
apiV1ChatusersCurrentGet: function (options) {
|
|
5498
|
+
return localVarFp.apiV1ChatusersCurrentGet(options).then(function (request) { return request(axios, basePath); });
|
|
5499
|
+
},
|
|
5436
5500
|
/**
|
|
5437
5501
|
*
|
|
5438
5502
|
* @summary Get all chatUsers.
|
|
@@ -5501,6 +5565,16 @@ var ChatUsersApi = /** @class */ (function (_super) {
|
|
|
5501
5565
|
function ChatUsersApi() {
|
|
5502
5566
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
5503
5567
|
}
|
|
5568
|
+
/**
|
|
5569
|
+
*
|
|
5570
|
+
* @param {*} [options] Override http request option.
|
|
5571
|
+
* @throws {RequiredError}
|
|
5572
|
+
* @memberof ChatUsersApi
|
|
5573
|
+
*/
|
|
5574
|
+
ChatUsersApi.prototype.apiV1ChatusersCurrentGet = function (options) {
|
|
5575
|
+
var _this = this;
|
|
5576
|
+
return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersCurrentGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5577
|
+
};
|
|
5504
5578
|
/**
|
|
5505
5579
|
*
|
|
5506
5580
|
* @summary Get all chatUsers.
|
|
@@ -6079,13 +6153,14 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
6079
6153
|
* @param {boolean} [isOpen]
|
|
6080
6154
|
* @param {boolean} [isCompleted]
|
|
6081
6155
|
* @param {ConsultationStatus} [status]
|
|
6156
|
+
* @param {ConsultationType} [consultationType]
|
|
6082
6157
|
* @param {number} [page]
|
|
6083
6158
|
* @param {number} [limit]
|
|
6084
6159
|
* @param {Date} [lastRetrieved]
|
|
6085
6160
|
* @param {*} [options] Override http request option.
|
|
6086
6161
|
* @throws {RequiredError}
|
|
6087
6162
|
*/
|
|
6088
|
-
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options) {
|
|
6163
|
+
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
6089
6164
|
if (options === void 0) { options = {}; }
|
|
6090
6165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
6091
6166
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -6119,6 +6194,9 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
6119
6194
|
if (status !== undefined) {
|
|
6120
6195
|
localVarQueryParameter['Status'] = status;
|
|
6121
6196
|
}
|
|
6197
|
+
if (consultationType !== undefined) {
|
|
6198
|
+
localVarQueryParameter['ConsultationType'] = consultationType;
|
|
6199
|
+
}
|
|
6122
6200
|
if (page !== undefined) {
|
|
6123
6201
|
localVarQueryParameter['page'] = page;
|
|
6124
6202
|
}
|
|
@@ -6259,18 +6337,19 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
6259
6337
|
* @param {boolean} [isOpen]
|
|
6260
6338
|
* @param {boolean} [isCompleted]
|
|
6261
6339
|
* @param {ConsultationStatus} [status]
|
|
6340
|
+
* @param {ConsultationType} [consultationType]
|
|
6262
6341
|
* @param {number} [page]
|
|
6263
6342
|
* @param {number} [limit]
|
|
6264
6343
|
* @param {Date} [lastRetrieved]
|
|
6265
6344
|
* @param {*} [options] Override http request option.
|
|
6266
6345
|
* @throws {RequiredError}
|
|
6267
6346
|
*/
|
|
6268
|
-
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options) {
|
|
6347
|
+
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
6269
6348
|
return __awaiter(this, void 0, void 0, function () {
|
|
6270
6349
|
var localVarAxiosArgs;
|
|
6271
6350
|
return __generator(this, function (_a) {
|
|
6272
6351
|
switch (_a.label) {
|
|
6273
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options)];
|
|
6352
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options)];
|
|
6274
6353
|
case 1:
|
|
6275
6354
|
localVarAxiosArgs = _a.sent();
|
|
6276
6355
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -6346,14 +6425,15 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
6346
6425
|
* @param {boolean} [isOpen]
|
|
6347
6426
|
* @param {boolean} [isCompleted]
|
|
6348
6427
|
* @param {ConsultationStatus} [status]
|
|
6428
|
+
* @param {ConsultationType} [consultationType]
|
|
6349
6429
|
* @param {number} [page]
|
|
6350
6430
|
* @param {number} [limit]
|
|
6351
6431
|
* @param {Date} [lastRetrieved]
|
|
6352
6432
|
* @param {*} [options] Override http request option.
|
|
6353
6433
|
* @throws {RequiredError}
|
|
6354
6434
|
*/
|
|
6355
|
-
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options) {
|
|
6356
|
-
return localVarFp.apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6435
|
+
apiV1ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
6436
|
+
return localVarFp.apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6357
6437
|
},
|
|
6358
6438
|
};
|
|
6359
6439
|
};
|
|
@@ -6437,6 +6517,7 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
6437
6517
|
* @param {boolean} [isOpen]
|
|
6438
6518
|
* @param {boolean} [isCompleted]
|
|
6439
6519
|
* @param {ConsultationStatus} [status]
|
|
6520
|
+
* @param {ConsultationType} [consultationType]
|
|
6440
6521
|
* @param {number} [page]
|
|
6441
6522
|
* @param {number} [limit]
|
|
6442
6523
|
* @param {Date} [lastRetrieved]
|
|
@@ -6444,9 +6525,9 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
6444
6525
|
* @throws {RequiredError}
|
|
6445
6526
|
* @memberof ConsultationsApi
|
|
6446
6527
|
*/
|
|
6447
|
-
ConsultationsApi.prototype.apiV1ConsultationsGet = function (searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options) {
|
|
6528
|
+
ConsultationsApi.prototype.apiV1ConsultationsGet = function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
6448
6529
|
var _this = this;
|
|
6449
|
-
return exports.ConsultationsApiFp(this.configuration).apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6530
|
+
return exports.ConsultationsApiFp(this.configuration).apiV1ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6450
6531
|
};
|
|
6451
6532
|
return ConsultationsApi;
|
|
6452
6533
|
}(base_1.BaseAPI));
|
|
@@ -6865,9 +6946,9 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
6865
6946
|
* @param {string} [email]
|
|
6866
6947
|
* @param {string} [description]
|
|
6867
6948
|
* @param {string} [website]
|
|
6868
|
-
* @param {string} [languageCode]
|
|
6869
6949
|
* @param {string} [hospitalId]
|
|
6870
6950
|
* @param {boolean} [interviewerOnly]
|
|
6951
|
+
* @param {string} [languageCode]
|
|
6871
6952
|
* @param {boolean} [showHidden]
|
|
6872
6953
|
* @param {number} [page]
|
|
6873
6954
|
* @param {number} [limit]
|
|
@@ -6875,7 +6956,7 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
6875
6956
|
* @param {*} [options] Override http request option.
|
|
6876
6957
|
* @throws {RequiredError}
|
|
6877
6958
|
*/
|
|
6878
|
-
apiV1ContributorsGet: function (id, name, email, description, website,
|
|
6959
|
+
apiV1ContributorsGet: function (id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
6879
6960
|
if (options === void 0) { options = {}; }
|
|
6880
6961
|
return __awaiter(_this, void 0, void 0, function () {
|
|
6881
6962
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -6912,15 +6993,15 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
6912
6993
|
if (website !== undefined) {
|
|
6913
6994
|
localVarQueryParameter['Website'] = website;
|
|
6914
6995
|
}
|
|
6915
|
-
if (languageCode !== undefined) {
|
|
6916
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
6917
|
-
}
|
|
6918
6996
|
if (hospitalId !== undefined) {
|
|
6919
6997
|
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
6920
6998
|
}
|
|
6921
6999
|
if (interviewerOnly !== undefined) {
|
|
6922
7000
|
localVarQueryParameter['InterviewerOnly'] = interviewerOnly;
|
|
6923
7001
|
}
|
|
7002
|
+
if (languageCode !== undefined) {
|
|
7003
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
7004
|
+
}
|
|
6924
7005
|
if (showHidden !== undefined) {
|
|
6925
7006
|
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
6926
7007
|
}
|
|
@@ -7226,9 +7307,9 @@ exports.ContributorsApiFp = function (configuration) {
|
|
|
7226
7307
|
* @param {string} [email]
|
|
7227
7308
|
* @param {string} [description]
|
|
7228
7309
|
* @param {string} [website]
|
|
7229
|
-
* @param {string} [languageCode]
|
|
7230
7310
|
* @param {string} [hospitalId]
|
|
7231
7311
|
* @param {boolean} [interviewerOnly]
|
|
7312
|
+
* @param {string} [languageCode]
|
|
7232
7313
|
* @param {boolean} [showHidden]
|
|
7233
7314
|
* @param {number} [page]
|
|
7234
7315
|
* @param {number} [limit]
|
|
@@ -7236,12 +7317,12 @@ exports.ContributorsApiFp = function (configuration) {
|
|
|
7236
7317
|
* @param {*} [options] Override http request option.
|
|
7237
7318
|
* @throws {RequiredError}
|
|
7238
7319
|
*/
|
|
7239
|
-
apiV1ContributorsGet: function (id, name, email, description, website,
|
|
7320
|
+
apiV1ContributorsGet: function (id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
7240
7321
|
return __awaiter(this, void 0, void 0, function () {
|
|
7241
7322
|
var localVarAxiosArgs;
|
|
7242
7323
|
return __generator(this, function (_a) {
|
|
7243
7324
|
switch (_a.label) {
|
|
7244
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsGet(id, name, email, description, website,
|
|
7325
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsGet(id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
7245
7326
|
case 1:
|
|
7246
7327
|
localVarAxiosArgs = _a.sent();
|
|
7247
7328
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -7401,9 +7482,9 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
7401
7482
|
* @param {string} [email]
|
|
7402
7483
|
* @param {string} [description]
|
|
7403
7484
|
* @param {string} [website]
|
|
7404
|
-
* @param {string} [languageCode]
|
|
7405
7485
|
* @param {string} [hospitalId]
|
|
7406
7486
|
* @param {boolean} [interviewerOnly]
|
|
7487
|
+
* @param {string} [languageCode]
|
|
7407
7488
|
* @param {boolean} [showHidden]
|
|
7408
7489
|
* @param {number} [page]
|
|
7409
7490
|
* @param {number} [limit]
|
|
@@ -7411,8 +7492,8 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
7411
7492
|
* @param {*} [options] Override http request option.
|
|
7412
7493
|
* @throws {RequiredError}
|
|
7413
7494
|
*/
|
|
7414
|
-
apiV1ContributorsGet: function (id, name, email, description, website,
|
|
7415
|
-
return localVarFp.apiV1ContributorsGet(id, name, email, description, website,
|
|
7495
|
+
apiV1ContributorsGet: function (id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
7496
|
+
return localVarFp.apiV1ContributorsGet(id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
7416
7497
|
},
|
|
7417
7498
|
/**
|
|
7418
7499
|
*
|
|
@@ -7566,9 +7647,9 @@ var ContributorsApi = /** @class */ (function (_super) {
|
|
|
7566
7647
|
* @param {string} [email]
|
|
7567
7648
|
* @param {string} [description]
|
|
7568
7649
|
* @param {string} [website]
|
|
7569
|
-
* @param {string} [languageCode]
|
|
7570
7650
|
* @param {string} [hospitalId]
|
|
7571
7651
|
* @param {boolean} [interviewerOnly]
|
|
7652
|
+
* @param {string} [languageCode]
|
|
7572
7653
|
* @param {boolean} [showHidden]
|
|
7573
7654
|
* @param {number} [page]
|
|
7574
7655
|
* @param {number} [limit]
|
|
@@ -7577,9 +7658,9 @@ var ContributorsApi = /** @class */ (function (_super) {
|
|
|
7577
7658
|
* @throws {RequiredError}
|
|
7578
7659
|
* @memberof ContributorsApi
|
|
7579
7660
|
*/
|
|
7580
|
-
ContributorsApi.prototype.apiV1ContributorsGet = function (id, name, email, description, website,
|
|
7661
|
+
ContributorsApi.prototype.apiV1ContributorsGet = function (id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
7581
7662
|
var _this = this;
|
|
7582
|
-
return exports.ContributorsApiFp(this.configuration).apiV1ContributorsGet(id, name, email, description, website,
|
|
7663
|
+
return exports.ContributorsApiFp(this.configuration).apiV1ContributorsGet(id, name, email, description, website, hospitalId, interviewerOnly, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7583
7664
|
};
|
|
7584
7665
|
/**
|
|
7585
7666
|
*
|
|
@@ -14049,31 +14130,29 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
14049
14130
|
}(base_1.BaseAPI));
|
|
14050
14131
|
exports.DoctorsApi = DoctorsApi;
|
|
14051
14132
|
/**
|
|
14052
|
-
*
|
|
14133
|
+
* EmailMarketingsApi - axios parameter creator
|
|
14053
14134
|
* @export
|
|
14054
14135
|
*/
|
|
14055
|
-
exports.
|
|
14136
|
+
exports.EmailMarketingsApiAxiosParamCreator = function (configuration) {
|
|
14056
14137
|
var _this = this;
|
|
14057
14138
|
return {
|
|
14058
14139
|
/**
|
|
14059
14140
|
*
|
|
14060
|
-
* @summary Get
|
|
14061
|
-
* @param {
|
|
14062
|
-
* @param {
|
|
14141
|
+
* @summary Get all templateVersions.
|
|
14142
|
+
* @param {number} [page]
|
|
14143
|
+
* @param {number} [limit]
|
|
14144
|
+
* @param {Date} [lastRetrieved]
|
|
14063
14145
|
* @param {*} [options] Override http request option.
|
|
14064
14146
|
* @throws {RequiredError}
|
|
14065
14147
|
*/
|
|
14066
|
-
|
|
14148
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14067
14149
|
if (options === void 0) { options = {}; }
|
|
14068
14150
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14069
14151
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14070
14152
|
return __generator(this, function (_a) {
|
|
14071
14153
|
switch (_a.label) {
|
|
14072
14154
|
case 0:
|
|
14073
|
-
|
|
14074
|
-
common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
|
|
14075
|
-
localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
|
|
14076
|
-
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14155
|
+
localVarPath = "/api/v1/emailmarketings/versions";
|
|
14077
14156
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14078
14157
|
if (configuration) {
|
|
14079
14158
|
baseOptions = configuration.baseOptions;
|
|
@@ -14088,55 +14167,16 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14088
14167
|
// authentication oauth2 required
|
|
14089
14168
|
// oauth required
|
|
14090
14169
|
_a.sent();
|
|
14091
|
-
if (
|
|
14092
|
-
localVarQueryParameter['
|
|
14170
|
+
if (page !== undefined) {
|
|
14171
|
+
localVarQueryParameter['page'] = page;
|
|
14093
14172
|
}
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14097
|
-
return [2 /*return*/, {
|
|
14098
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
14099
|
-
options: localVarRequestOptions,
|
|
14100
|
-
}];
|
|
14101
|
-
}
|
|
14102
|
-
});
|
|
14103
|
-
});
|
|
14104
|
-
},
|
|
14105
|
-
/**
|
|
14106
|
-
*
|
|
14107
|
-
* @summary Delete FaqCategory.
|
|
14108
|
-
* @param {string} faqCategoryId
|
|
14109
|
-
* @param {boolean} [forceDelete]
|
|
14110
|
-
* @param {*} [options] Override http request option.
|
|
14111
|
-
* @throws {RequiredError}
|
|
14112
|
-
*/
|
|
14113
|
-
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
14114
|
-
if (options === void 0) { options = {}; }
|
|
14115
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
14116
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14117
|
-
return __generator(this, function (_a) {
|
|
14118
|
-
switch (_a.label) {
|
|
14119
|
-
case 0:
|
|
14120
|
-
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14121
|
-
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdDelete', 'faqCategoryId', faqCategoryId);
|
|
14122
|
-
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14123
|
-
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14124
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14125
|
-
if (configuration) {
|
|
14126
|
-
baseOptions = configuration.baseOptions;
|
|
14173
|
+
if (limit !== undefined) {
|
|
14174
|
+
localVarQueryParameter['limit'] = limit;
|
|
14127
14175
|
}
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
// oauth required
|
|
14133
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14134
|
-
case 1:
|
|
14135
|
-
// authentication oauth2 required
|
|
14136
|
-
// oauth required
|
|
14137
|
-
_a.sent();
|
|
14138
|
-
if (forceDelete !== undefined) {
|
|
14139
|
-
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
14176
|
+
if (lastRetrieved !== undefined) {
|
|
14177
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14178
|
+
lastRetrieved.toISOString() :
|
|
14179
|
+
lastRetrieved;
|
|
14140
14180
|
}
|
|
14141
14181
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14142
14182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -14151,28 +14191,24 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14151
14191
|
},
|
|
14152
14192
|
/**
|
|
14153
14193
|
*
|
|
14154
|
-
* @summary
|
|
14155
|
-
* @param {
|
|
14156
|
-
* @param {string} [languageCode]
|
|
14194
|
+
* @summary Create a templateVersion.
|
|
14195
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14157
14196
|
* @param {*} [options] Override http request option.
|
|
14158
14197
|
* @throws {RequiredError}
|
|
14159
14198
|
*/
|
|
14160
|
-
|
|
14199
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14161
14200
|
if (options === void 0) { options = {}; }
|
|
14162
14201
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14163
14202
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14164
14203
|
return __generator(this, function (_a) {
|
|
14165
14204
|
switch (_a.label) {
|
|
14166
14205
|
case 0:
|
|
14167
|
-
|
|
14168
|
-
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdGet', 'faqCategoryId', faqCategoryId);
|
|
14169
|
-
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14170
|
-
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14206
|
+
localVarPath = "/api/v1/emailmarketings/versions";
|
|
14171
14207
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14172
14208
|
if (configuration) {
|
|
14173
14209
|
baseOptions = configuration.baseOptions;
|
|
14174
14210
|
}
|
|
14175
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14211
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14176
14212
|
localVarHeaderParameter = {};
|
|
14177
14213
|
localVarQueryParameter = {};
|
|
14178
14214
|
// authentication oauth2 required
|
|
@@ -14182,12 +14218,11 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14182
14218
|
// authentication oauth2 required
|
|
14183
14219
|
// oauth required
|
|
14184
14220
|
_a.sent();
|
|
14185
|
-
|
|
14186
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
14187
|
-
}
|
|
14221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14188
14222
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14189
14223
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14190
14224
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14225
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14191
14226
|
return [2 /*return*/, {
|
|
14192
14227
|
url: common_1.toPathString(localVarUrlObj),
|
|
14193
14228
|
options: localVarRequestOptions,
|
|
@@ -14198,28 +14233,27 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14198
14233
|
},
|
|
14199
14234
|
/**
|
|
14200
14235
|
*
|
|
14201
|
-
* @summary
|
|
14202
|
-
* @param {string}
|
|
14203
|
-
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14236
|
+
* @summary Delete templateVersion.
|
|
14237
|
+
* @param {string} versionId
|
|
14204
14238
|
* @param {*} [options] Override http request option.
|
|
14205
14239
|
* @throws {RequiredError}
|
|
14206
14240
|
*/
|
|
14207
|
-
|
|
14241
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14208
14242
|
if (options === void 0) { options = {}; }
|
|
14209
14243
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14210
14244
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14211
14245
|
return __generator(this, function (_a) {
|
|
14212
14246
|
switch (_a.label) {
|
|
14213
14247
|
case 0:
|
|
14214
|
-
// verify required parameter '
|
|
14215
|
-
common_1.assertParamExists('
|
|
14216
|
-
localVarPath = "/api/v1/
|
|
14217
|
-
.replace("{" + "
|
|
14248
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14249
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdDelete', 'versionId', versionId);
|
|
14250
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14251
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14218
14252
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14219
14253
|
if (configuration) {
|
|
14220
14254
|
baseOptions = configuration.baseOptions;
|
|
14221
14255
|
}
|
|
14222
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14256
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14223
14257
|
localVarHeaderParameter = {};
|
|
14224
14258
|
localVarQueryParameter = {};
|
|
14225
14259
|
// authentication oauth2 required
|
|
@@ -14229,11 +14263,9 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14229
14263
|
// authentication oauth2 required
|
|
14230
14264
|
// oauth required
|
|
14231
14265
|
_a.sent();
|
|
14232
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14233
14266
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14234
14267
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14235
14268
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14236
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCategoryCommand, localVarRequestOptions, configuration);
|
|
14237
14269
|
return [2 /*return*/, {
|
|
14238
14270
|
url: common_1.toPathString(localVarUrlObj),
|
|
14239
14271
|
options: localVarRequestOptions,
|
|
@@ -14244,26 +14276,22 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14244
14276
|
},
|
|
14245
14277
|
/**
|
|
14246
14278
|
*
|
|
14247
|
-
* @summary Get
|
|
14248
|
-
* @param {string}
|
|
14249
|
-
* @param {string} [parentId]
|
|
14250
|
-
* @param {string} [name]
|
|
14251
|
-
* @param {string} [description]
|
|
14252
|
-
* @param {string} [languageCode]
|
|
14253
|
-
* @param {number} [page]
|
|
14254
|
-
* @param {number} [limit]
|
|
14255
|
-
* @param {Date} [lastRetrieved]
|
|
14279
|
+
* @summary Get templateVersion.
|
|
14280
|
+
* @param {string} versionId
|
|
14256
14281
|
* @param {*} [options] Override http request option.
|
|
14257
14282
|
* @throws {RequiredError}
|
|
14258
14283
|
*/
|
|
14259
|
-
|
|
14284
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14260
14285
|
if (options === void 0) { options = {}; }
|
|
14261
14286
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14262
14287
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14263
14288
|
return __generator(this, function (_a) {
|
|
14264
14289
|
switch (_a.label) {
|
|
14265
14290
|
case 0:
|
|
14266
|
-
|
|
14291
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14292
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdGet', 'versionId', versionId);
|
|
14293
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14294
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14267
14295
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14268
14296
|
if (configuration) {
|
|
14269
14297
|
baseOptions = configuration.baseOptions;
|
|
@@ -14278,32 +14306,6 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14278
14306
|
// authentication oauth2 required
|
|
14279
14307
|
// oauth required
|
|
14280
14308
|
_a.sent();
|
|
14281
|
-
if (id !== undefined) {
|
|
14282
|
-
localVarQueryParameter['Id'] = id;
|
|
14283
|
-
}
|
|
14284
|
-
if (parentId !== undefined) {
|
|
14285
|
-
localVarQueryParameter['ParentId'] = parentId;
|
|
14286
|
-
}
|
|
14287
|
-
if (name !== undefined) {
|
|
14288
|
-
localVarQueryParameter['Name'] = name;
|
|
14289
|
-
}
|
|
14290
|
-
if (description !== undefined) {
|
|
14291
|
-
localVarQueryParameter['Description'] = description;
|
|
14292
|
-
}
|
|
14293
|
-
if (languageCode !== undefined) {
|
|
14294
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
14295
|
-
}
|
|
14296
|
-
if (page !== undefined) {
|
|
14297
|
-
localVarQueryParameter['page'] = page;
|
|
14298
|
-
}
|
|
14299
|
-
if (limit !== undefined) {
|
|
14300
|
-
localVarQueryParameter['limit'] = limit;
|
|
14301
|
-
}
|
|
14302
|
-
if (lastRetrieved !== undefined) {
|
|
14303
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14304
|
-
lastRetrieved.toISOString() :
|
|
14305
|
-
lastRetrieved;
|
|
14306
|
-
}
|
|
14307
14309
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14308
14310
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14309
14311
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -14317,24 +14319,28 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14317
14319
|
},
|
|
14318
14320
|
/**
|
|
14319
14321
|
*
|
|
14320
|
-
* @summary
|
|
14321
|
-
* @param {
|
|
14322
|
+
* @summary Update templateVersion.
|
|
14323
|
+
* @param {string} versionId
|
|
14324
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14322
14325
|
* @param {*} [options] Override http request option.
|
|
14323
14326
|
* @throws {RequiredError}
|
|
14324
14327
|
*/
|
|
14325
|
-
|
|
14328
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14326
14329
|
if (options === void 0) { options = {}; }
|
|
14327
14330
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14328
14331
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14329
14332
|
return __generator(this, function (_a) {
|
|
14330
14333
|
switch (_a.label) {
|
|
14331
14334
|
case 0:
|
|
14332
|
-
|
|
14335
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14336
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdPut', 'versionId', versionId);
|
|
14337
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14338
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14333
14339
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14334
14340
|
if (configuration) {
|
|
14335
14341
|
baseOptions = configuration.baseOptions;
|
|
14336
14342
|
}
|
|
14337
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14343
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14338
14344
|
localVarHeaderParameter = {};
|
|
14339
14345
|
localVarQueryParameter = {};
|
|
14340
14346
|
// authentication oauth2 required
|
|
@@ -14348,7 +14354,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14348
14354
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14349
14355
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14350
14356
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14351
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
14357
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14352
14358
|
return [2 /*return*/, {
|
|
14353
14359
|
url: common_1.toPathString(localVarUrlObj),
|
|
14354
14360
|
options: localVarRequestOptions,
|
|
@@ -14359,28 +14365,28 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14359
14365
|
},
|
|
14360
14366
|
/**
|
|
14361
14367
|
*
|
|
14362
|
-
* @summary
|
|
14363
|
-
* @param {string}
|
|
14364
|
-
* @param {
|
|
14368
|
+
* @summary Send templateVersion email.
|
|
14369
|
+
* @param {string} versionId
|
|
14370
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14365
14371
|
* @param {*} [options] Override http request option.
|
|
14366
14372
|
* @throws {RequiredError}
|
|
14367
14373
|
*/
|
|
14368
|
-
|
|
14374
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14369
14375
|
if (options === void 0) { options = {}; }
|
|
14370
14376
|
return __awaiter(_this, void 0, void 0, function () {
|
|
14371
14377
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14372
14378
|
return __generator(this, function (_a) {
|
|
14373
14379
|
switch (_a.label) {
|
|
14374
14380
|
case 0:
|
|
14375
|
-
// verify required parameter '
|
|
14376
|
-
common_1.assertParamExists('
|
|
14377
|
-
localVarPath = "/api/v1/
|
|
14378
|
-
.replace("{" + "
|
|
14381
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14382
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdSendPost', 'versionId', versionId);
|
|
14383
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}/send"
|
|
14384
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14379
14385
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14380
14386
|
if (configuration) {
|
|
14381
14387
|
baseOptions = configuration.baseOptions;
|
|
14382
14388
|
}
|
|
14383
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
14389
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14384
14390
|
localVarHeaderParameter = {};
|
|
14385
14391
|
localVarQueryParameter = {};
|
|
14386
14392
|
// authentication oauth2 required
|
|
@@ -14390,12 +14396,11 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14390
14396
|
// authentication oauth2 required
|
|
14391
14397
|
// oauth required
|
|
14392
14398
|
_a.sent();
|
|
14393
|
-
|
|
14394
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
14395
|
-
}
|
|
14399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14396
14400
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14397
14401
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14398
14402
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14403
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(sendTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14399
14404
|
return [2 /*return*/, {
|
|
14400
14405
|
url: common_1.toPathString(localVarUrlObj),
|
|
14401
14406
|
options: localVarRequestOptions,
|
|
@@ -14407,26 +14412,27 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14407
14412
|
};
|
|
14408
14413
|
};
|
|
14409
14414
|
/**
|
|
14410
|
-
*
|
|
14415
|
+
* EmailMarketingsApi - functional programming interface
|
|
14411
14416
|
* @export
|
|
14412
14417
|
*/
|
|
14413
|
-
exports.
|
|
14414
|
-
var localVarAxiosParamCreator = exports.
|
|
14418
|
+
exports.EmailMarketingsApiFp = function (configuration) {
|
|
14419
|
+
var localVarAxiosParamCreator = exports.EmailMarketingsApiAxiosParamCreator(configuration);
|
|
14415
14420
|
return {
|
|
14416
14421
|
/**
|
|
14417
14422
|
*
|
|
14418
|
-
* @summary Get
|
|
14419
|
-
* @param {
|
|
14420
|
-
* @param {
|
|
14423
|
+
* @summary Get all templateVersions.
|
|
14424
|
+
* @param {number} [page]
|
|
14425
|
+
* @param {number} [limit]
|
|
14426
|
+
* @param {Date} [lastRetrieved]
|
|
14421
14427
|
* @param {*} [options] Override http request option.
|
|
14422
14428
|
* @throws {RequiredError}
|
|
14423
14429
|
*/
|
|
14424
|
-
|
|
14430
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14425
14431
|
return __awaiter(this, void 0, void 0, function () {
|
|
14426
14432
|
var localVarAxiosArgs;
|
|
14427
14433
|
return __generator(this, function (_a) {
|
|
14428
14434
|
switch (_a.label) {
|
|
14429
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
14435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options)];
|
|
14430
14436
|
case 1:
|
|
14431
14437
|
localVarAxiosArgs = _a.sent();
|
|
14432
14438
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14436,18 +14442,17 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14436
14442
|
},
|
|
14437
14443
|
/**
|
|
14438
14444
|
*
|
|
14439
|
-
* @summary
|
|
14440
|
-
* @param {
|
|
14441
|
-
* @param {boolean} [forceDelete]
|
|
14445
|
+
* @summary Create a templateVersion.
|
|
14446
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14442
14447
|
* @param {*} [options] Override http request option.
|
|
14443
14448
|
* @throws {RequiredError}
|
|
14444
14449
|
*/
|
|
14445
|
-
|
|
14450
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14446
14451
|
return __awaiter(this, void 0, void 0, function () {
|
|
14447
14452
|
var localVarAxiosArgs;
|
|
14448
14453
|
return __generator(this, function (_a) {
|
|
14449
14454
|
switch (_a.label) {
|
|
14450
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
14455
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options)];
|
|
14451
14456
|
case 1:
|
|
14452
14457
|
localVarAxiosArgs = _a.sent();
|
|
14453
14458
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14457,18 +14462,17 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14457
14462
|
},
|
|
14458
14463
|
/**
|
|
14459
14464
|
*
|
|
14460
|
-
* @summary
|
|
14461
|
-
* @param {string}
|
|
14462
|
-
* @param {string} [languageCode]
|
|
14465
|
+
* @summary Delete templateVersion.
|
|
14466
|
+
* @param {string} versionId
|
|
14463
14467
|
* @param {*} [options] Override http request option.
|
|
14464
14468
|
* @throws {RequiredError}
|
|
14465
14469
|
*/
|
|
14466
|
-
|
|
14470
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14467
14471
|
return __awaiter(this, void 0, void 0, function () {
|
|
14468
14472
|
var localVarAxiosArgs;
|
|
14469
14473
|
return __generator(this, function (_a) {
|
|
14470
14474
|
switch (_a.label) {
|
|
14471
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
14475
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options)];
|
|
14472
14476
|
case 1:
|
|
14473
14477
|
localVarAxiosArgs = _a.sent();
|
|
14474
14478
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -14478,8 +14482,663 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14478
14482
|
},
|
|
14479
14483
|
/**
|
|
14480
14484
|
*
|
|
14481
|
-
* @summary
|
|
14482
|
-
* @param {string}
|
|
14485
|
+
* @summary Get templateVersion.
|
|
14486
|
+
* @param {string} versionId
|
|
14487
|
+
* @param {*} [options] Override http request option.
|
|
14488
|
+
* @throws {RequiredError}
|
|
14489
|
+
*/
|
|
14490
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14492
|
+
var localVarAxiosArgs;
|
|
14493
|
+
return __generator(this, function (_a) {
|
|
14494
|
+
switch (_a.label) {
|
|
14495
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options)];
|
|
14496
|
+
case 1:
|
|
14497
|
+
localVarAxiosArgs = _a.sent();
|
|
14498
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14499
|
+
}
|
|
14500
|
+
});
|
|
14501
|
+
});
|
|
14502
|
+
},
|
|
14503
|
+
/**
|
|
14504
|
+
*
|
|
14505
|
+
* @summary Update templateVersion.
|
|
14506
|
+
* @param {string} versionId
|
|
14507
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14508
|
+
* @param {*} [options] Override http request option.
|
|
14509
|
+
* @throws {RequiredError}
|
|
14510
|
+
*/
|
|
14511
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14512
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14513
|
+
var localVarAxiosArgs;
|
|
14514
|
+
return __generator(this, function (_a) {
|
|
14515
|
+
switch (_a.label) {
|
|
14516
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options)];
|
|
14517
|
+
case 1:
|
|
14518
|
+
localVarAxiosArgs = _a.sent();
|
|
14519
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14520
|
+
}
|
|
14521
|
+
});
|
|
14522
|
+
});
|
|
14523
|
+
},
|
|
14524
|
+
/**
|
|
14525
|
+
*
|
|
14526
|
+
* @summary Send templateVersion email.
|
|
14527
|
+
* @param {string} versionId
|
|
14528
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14529
|
+
* @param {*} [options] Override http request option.
|
|
14530
|
+
* @throws {RequiredError}
|
|
14531
|
+
*/
|
|
14532
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14534
|
+
var localVarAxiosArgs;
|
|
14535
|
+
return __generator(this, function (_a) {
|
|
14536
|
+
switch (_a.label) {
|
|
14537
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options)];
|
|
14538
|
+
case 1:
|
|
14539
|
+
localVarAxiosArgs = _a.sent();
|
|
14540
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14541
|
+
}
|
|
14542
|
+
});
|
|
14543
|
+
});
|
|
14544
|
+
},
|
|
14545
|
+
};
|
|
14546
|
+
};
|
|
14547
|
+
/**
|
|
14548
|
+
* EmailMarketingsApi - factory interface
|
|
14549
|
+
* @export
|
|
14550
|
+
*/
|
|
14551
|
+
exports.EmailMarketingsApiFactory = function (configuration, basePath, axios) {
|
|
14552
|
+
var localVarFp = exports.EmailMarketingsApiFp(configuration);
|
|
14553
|
+
return {
|
|
14554
|
+
/**
|
|
14555
|
+
*
|
|
14556
|
+
* @summary Get all templateVersions.
|
|
14557
|
+
* @param {number} [page]
|
|
14558
|
+
* @param {number} [limit]
|
|
14559
|
+
* @param {Date} [lastRetrieved]
|
|
14560
|
+
* @param {*} [options] Override http request option.
|
|
14561
|
+
* @throws {RequiredError}
|
|
14562
|
+
*/
|
|
14563
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14564
|
+
return localVarFp.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14565
|
+
},
|
|
14566
|
+
/**
|
|
14567
|
+
*
|
|
14568
|
+
* @summary Create a templateVersion.
|
|
14569
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14570
|
+
* @param {*} [options] Override http request option.
|
|
14571
|
+
* @throws {RequiredError}
|
|
14572
|
+
*/
|
|
14573
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14574
|
+
return localVarFp.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14575
|
+
},
|
|
14576
|
+
/**
|
|
14577
|
+
*
|
|
14578
|
+
* @summary Delete templateVersion.
|
|
14579
|
+
* @param {string} versionId
|
|
14580
|
+
* @param {*} [options] Override http request option.
|
|
14581
|
+
* @throws {RequiredError}
|
|
14582
|
+
*/
|
|
14583
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14584
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(axios, basePath); });
|
|
14585
|
+
},
|
|
14586
|
+
/**
|
|
14587
|
+
*
|
|
14588
|
+
* @summary Get templateVersion.
|
|
14589
|
+
* @param {string} versionId
|
|
14590
|
+
* @param {*} [options] Override http request option.
|
|
14591
|
+
* @throws {RequiredError}
|
|
14592
|
+
*/
|
|
14593
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14594
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(axios, basePath); });
|
|
14595
|
+
},
|
|
14596
|
+
/**
|
|
14597
|
+
*
|
|
14598
|
+
* @summary Update templateVersion.
|
|
14599
|
+
* @param {string} versionId
|
|
14600
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14601
|
+
* @param {*} [options] Override http request option.
|
|
14602
|
+
* @throws {RequiredError}
|
|
14603
|
+
*/
|
|
14604
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14605
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14606
|
+
},
|
|
14607
|
+
/**
|
|
14608
|
+
*
|
|
14609
|
+
* @summary Send templateVersion email.
|
|
14610
|
+
* @param {string} versionId
|
|
14611
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14612
|
+
* @param {*} [options] Override http request option.
|
|
14613
|
+
* @throws {RequiredError}
|
|
14614
|
+
*/
|
|
14615
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14616
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14617
|
+
},
|
|
14618
|
+
};
|
|
14619
|
+
};
|
|
14620
|
+
/**
|
|
14621
|
+
* EmailMarketingsApi - object-oriented interface
|
|
14622
|
+
* @export
|
|
14623
|
+
* @class EmailMarketingsApi
|
|
14624
|
+
* @extends {BaseAPI}
|
|
14625
|
+
*/
|
|
14626
|
+
var EmailMarketingsApi = /** @class */ (function (_super) {
|
|
14627
|
+
__extends(EmailMarketingsApi, _super);
|
|
14628
|
+
function EmailMarketingsApi() {
|
|
14629
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14630
|
+
}
|
|
14631
|
+
/**
|
|
14632
|
+
*
|
|
14633
|
+
* @summary Get all templateVersions.
|
|
14634
|
+
* @param {number} [page]
|
|
14635
|
+
* @param {number} [limit]
|
|
14636
|
+
* @param {Date} [lastRetrieved]
|
|
14637
|
+
* @param {*} [options] Override http request option.
|
|
14638
|
+
* @throws {RequiredError}
|
|
14639
|
+
* @memberof EmailMarketingsApi
|
|
14640
|
+
*/
|
|
14641
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsGet = function (page, limit, lastRetrieved, options) {
|
|
14642
|
+
var _this = this;
|
|
14643
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14644
|
+
};
|
|
14645
|
+
/**
|
|
14646
|
+
*
|
|
14647
|
+
* @summary Create a templateVersion.
|
|
14648
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14649
|
+
* @param {*} [options] Override http request option.
|
|
14650
|
+
* @throws {RequiredError}
|
|
14651
|
+
* @memberof EmailMarketingsApi
|
|
14652
|
+
*/
|
|
14653
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsPost = function (createTemplateVersionCommand, options) {
|
|
14654
|
+
var _this = this;
|
|
14655
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14656
|
+
};
|
|
14657
|
+
/**
|
|
14658
|
+
*
|
|
14659
|
+
* @summary Delete templateVersion.
|
|
14660
|
+
* @param {string} versionId
|
|
14661
|
+
* @param {*} [options] Override http request option.
|
|
14662
|
+
* @throws {RequiredError}
|
|
14663
|
+
* @memberof EmailMarketingsApi
|
|
14664
|
+
*/
|
|
14665
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdDelete = function (versionId, options) {
|
|
14666
|
+
var _this = this;
|
|
14667
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14668
|
+
};
|
|
14669
|
+
/**
|
|
14670
|
+
*
|
|
14671
|
+
* @summary Get templateVersion.
|
|
14672
|
+
* @param {string} versionId
|
|
14673
|
+
* @param {*} [options] Override http request option.
|
|
14674
|
+
* @throws {RequiredError}
|
|
14675
|
+
* @memberof EmailMarketingsApi
|
|
14676
|
+
*/
|
|
14677
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdGet = function (versionId, options) {
|
|
14678
|
+
var _this = this;
|
|
14679
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14680
|
+
};
|
|
14681
|
+
/**
|
|
14682
|
+
*
|
|
14683
|
+
* @summary Update templateVersion.
|
|
14684
|
+
* @param {string} versionId
|
|
14685
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14686
|
+
* @param {*} [options] Override http request option.
|
|
14687
|
+
* @throws {RequiredError}
|
|
14688
|
+
* @memberof EmailMarketingsApi
|
|
14689
|
+
*/
|
|
14690
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdPut = function (versionId, updateTemplateVersionCommand, options) {
|
|
14691
|
+
var _this = this;
|
|
14692
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14693
|
+
};
|
|
14694
|
+
/**
|
|
14695
|
+
*
|
|
14696
|
+
* @summary Send templateVersion email.
|
|
14697
|
+
* @param {string} versionId
|
|
14698
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14699
|
+
* @param {*} [options] Override http request option.
|
|
14700
|
+
* @throws {RequiredError}
|
|
14701
|
+
* @memberof EmailMarketingsApi
|
|
14702
|
+
*/
|
|
14703
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdSendPost = function (versionId, sendTemplateVersionCommand, options) {
|
|
14704
|
+
var _this = this;
|
|
14705
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14706
|
+
};
|
|
14707
|
+
return EmailMarketingsApi;
|
|
14708
|
+
}(base_1.BaseAPI));
|
|
14709
|
+
exports.EmailMarketingsApi = EmailMarketingsApi;
|
|
14710
|
+
/**
|
|
14711
|
+
* FaqCategoriesApi - axios parameter creator
|
|
14712
|
+
* @export
|
|
14713
|
+
*/
|
|
14714
|
+
exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
14715
|
+
var _this = this;
|
|
14716
|
+
return {
|
|
14717
|
+
/**
|
|
14718
|
+
*
|
|
14719
|
+
* @summary Get BreadCrumbs.
|
|
14720
|
+
* @param {string} faqId
|
|
14721
|
+
* @param {string} [languageCode]
|
|
14722
|
+
* @param {*} [options] Override http request option.
|
|
14723
|
+
* @throws {RequiredError}
|
|
14724
|
+
*/
|
|
14725
|
+
apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
14726
|
+
if (options === void 0) { options = {}; }
|
|
14727
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14728
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14729
|
+
return __generator(this, function (_a) {
|
|
14730
|
+
switch (_a.label) {
|
|
14731
|
+
case 0:
|
|
14732
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14733
|
+
common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
|
|
14734
|
+
localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
|
|
14735
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14736
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14737
|
+
if (configuration) {
|
|
14738
|
+
baseOptions = configuration.baseOptions;
|
|
14739
|
+
}
|
|
14740
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14741
|
+
localVarHeaderParameter = {};
|
|
14742
|
+
localVarQueryParameter = {};
|
|
14743
|
+
// authentication oauth2 required
|
|
14744
|
+
// oauth required
|
|
14745
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14746
|
+
case 1:
|
|
14747
|
+
// authentication oauth2 required
|
|
14748
|
+
// oauth required
|
|
14749
|
+
_a.sent();
|
|
14750
|
+
if (languageCode !== undefined) {
|
|
14751
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14752
|
+
}
|
|
14753
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14754
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14755
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14756
|
+
return [2 /*return*/, {
|
|
14757
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14758
|
+
options: localVarRequestOptions,
|
|
14759
|
+
}];
|
|
14760
|
+
}
|
|
14761
|
+
});
|
|
14762
|
+
});
|
|
14763
|
+
},
|
|
14764
|
+
/**
|
|
14765
|
+
*
|
|
14766
|
+
* @summary Delete FaqCategory.
|
|
14767
|
+
* @param {string} faqCategoryId
|
|
14768
|
+
* @param {boolean} [forceDelete]
|
|
14769
|
+
* @param {*} [options] Override http request option.
|
|
14770
|
+
* @throws {RequiredError}
|
|
14771
|
+
*/
|
|
14772
|
+
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
14773
|
+
if (options === void 0) { options = {}; }
|
|
14774
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14775
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14776
|
+
return __generator(this, function (_a) {
|
|
14777
|
+
switch (_a.label) {
|
|
14778
|
+
case 0:
|
|
14779
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14780
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdDelete', 'faqCategoryId', faqCategoryId);
|
|
14781
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14782
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14783
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14784
|
+
if (configuration) {
|
|
14785
|
+
baseOptions = configuration.baseOptions;
|
|
14786
|
+
}
|
|
14787
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14788
|
+
localVarHeaderParameter = {};
|
|
14789
|
+
localVarQueryParameter = {};
|
|
14790
|
+
// authentication oauth2 required
|
|
14791
|
+
// oauth required
|
|
14792
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14793
|
+
case 1:
|
|
14794
|
+
// authentication oauth2 required
|
|
14795
|
+
// oauth required
|
|
14796
|
+
_a.sent();
|
|
14797
|
+
if (forceDelete !== undefined) {
|
|
14798
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
14799
|
+
}
|
|
14800
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14801
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14802
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14803
|
+
return [2 /*return*/, {
|
|
14804
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14805
|
+
options: localVarRequestOptions,
|
|
14806
|
+
}];
|
|
14807
|
+
}
|
|
14808
|
+
});
|
|
14809
|
+
});
|
|
14810
|
+
},
|
|
14811
|
+
/**
|
|
14812
|
+
*
|
|
14813
|
+
* @summary Get FaqCategory.
|
|
14814
|
+
* @param {string} faqCategoryId
|
|
14815
|
+
* @param {string} [languageCode]
|
|
14816
|
+
* @param {*} [options] Override http request option.
|
|
14817
|
+
* @throws {RequiredError}
|
|
14818
|
+
*/
|
|
14819
|
+
apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
|
|
14820
|
+
if (options === void 0) { options = {}; }
|
|
14821
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14822
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14823
|
+
return __generator(this, function (_a) {
|
|
14824
|
+
switch (_a.label) {
|
|
14825
|
+
case 0:
|
|
14826
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14827
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdGet', 'faqCategoryId', faqCategoryId);
|
|
14828
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14829
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14830
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14831
|
+
if (configuration) {
|
|
14832
|
+
baseOptions = configuration.baseOptions;
|
|
14833
|
+
}
|
|
14834
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14835
|
+
localVarHeaderParameter = {};
|
|
14836
|
+
localVarQueryParameter = {};
|
|
14837
|
+
// authentication oauth2 required
|
|
14838
|
+
// oauth required
|
|
14839
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14840
|
+
case 1:
|
|
14841
|
+
// authentication oauth2 required
|
|
14842
|
+
// oauth required
|
|
14843
|
+
_a.sent();
|
|
14844
|
+
if (languageCode !== undefined) {
|
|
14845
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14846
|
+
}
|
|
14847
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14848
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14849
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14850
|
+
return [2 /*return*/, {
|
|
14851
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14852
|
+
options: localVarRequestOptions,
|
|
14853
|
+
}];
|
|
14854
|
+
}
|
|
14855
|
+
});
|
|
14856
|
+
});
|
|
14857
|
+
},
|
|
14858
|
+
/**
|
|
14859
|
+
*
|
|
14860
|
+
* @summary Update FaqCategory.
|
|
14861
|
+
* @param {string} faqCategoryId
|
|
14862
|
+
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14863
|
+
* @param {*} [options] Override http request option.
|
|
14864
|
+
* @throws {RequiredError}
|
|
14865
|
+
*/
|
|
14866
|
+
apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
|
|
14867
|
+
if (options === void 0) { options = {}; }
|
|
14868
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14869
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14870
|
+
return __generator(this, function (_a) {
|
|
14871
|
+
switch (_a.label) {
|
|
14872
|
+
case 0:
|
|
14873
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14874
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdPut', 'faqCategoryId', faqCategoryId);
|
|
14875
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14876
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14877
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14878
|
+
if (configuration) {
|
|
14879
|
+
baseOptions = configuration.baseOptions;
|
|
14880
|
+
}
|
|
14881
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14882
|
+
localVarHeaderParameter = {};
|
|
14883
|
+
localVarQueryParameter = {};
|
|
14884
|
+
// authentication oauth2 required
|
|
14885
|
+
// oauth required
|
|
14886
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14887
|
+
case 1:
|
|
14888
|
+
// authentication oauth2 required
|
|
14889
|
+
// oauth required
|
|
14890
|
+
_a.sent();
|
|
14891
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14892
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14893
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14894
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14895
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCategoryCommand, localVarRequestOptions, configuration);
|
|
14896
|
+
return [2 /*return*/, {
|
|
14897
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14898
|
+
options: localVarRequestOptions,
|
|
14899
|
+
}];
|
|
14900
|
+
}
|
|
14901
|
+
});
|
|
14902
|
+
});
|
|
14903
|
+
},
|
|
14904
|
+
/**
|
|
14905
|
+
*
|
|
14906
|
+
* @summary Get all FaqCategories.
|
|
14907
|
+
* @param {string} [id]
|
|
14908
|
+
* @param {string} [parentId]
|
|
14909
|
+
* @param {string} [name]
|
|
14910
|
+
* @param {string} [description]
|
|
14911
|
+
* @param {string} [languageCode]
|
|
14912
|
+
* @param {number} [page]
|
|
14913
|
+
* @param {number} [limit]
|
|
14914
|
+
* @param {Date} [lastRetrieved]
|
|
14915
|
+
* @param {*} [options] Override http request option.
|
|
14916
|
+
* @throws {RequiredError}
|
|
14917
|
+
*/
|
|
14918
|
+
apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
|
|
14919
|
+
if (options === void 0) { options = {}; }
|
|
14920
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14921
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14922
|
+
return __generator(this, function (_a) {
|
|
14923
|
+
switch (_a.label) {
|
|
14924
|
+
case 0:
|
|
14925
|
+
localVarPath = "/api/v1/faqcategories";
|
|
14926
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14927
|
+
if (configuration) {
|
|
14928
|
+
baseOptions = configuration.baseOptions;
|
|
14929
|
+
}
|
|
14930
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14931
|
+
localVarHeaderParameter = {};
|
|
14932
|
+
localVarQueryParameter = {};
|
|
14933
|
+
// authentication oauth2 required
|
|
14934
|
+
// oauth required
|
|
14935
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14936
|
+
case 1:
|
|
14937
|
+
// authentication oauth2 required
|
|
14938
|
+
// oauth required
|
|
14939
|
+
_a.sent();
|
|
14940
|
+
if (id !== undefined) {
|
|
14941
|
+
localVarQueryParameter['Id'] = id;
|
|
14942
|
+
}
|
|
14943
|
+
if (parentId !== undefined) {
|
|
14944
|
+
localVarQueryParameter['ParentId'] = parentId;
|
|
14945
|
+
}
|
|
14946
|
+
if (name !== undefined) {
|
|
14947
|
+
localVarQueryParameter['Name'] = name;
|
|
14948
|
+
}
|
|
14949
|
+
if (description !== undefined) {
|
|
14950
|
+
localVarQueryParameter['Description'] = description;
|
|
14951
|
+
}
|
|
14952
|
+
if (languageCode !== undefined) {
|
|
14953
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
14954
|
+
}
|
|
14955
|
+
if (page !== undefined) {
|
|
14956
|
+
localVarQueryParameter['page'] = page;
|
|
14957
|
+
}
|
|
14958
|
+
if (limit !== undefined) {
|
|
14959
|
+
localVarQueryParameter['limit'] = limit;
|
|
14960
|
+
}
|
|
14961
|
+
if (lastRetrieved !== undefined) {
|
|
14962
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14963
|
+
lastRetrieved.toISOString() :
|
|
14964
|
+
lastRetrieved;
|
|
14965
|
+
}
|
|
14966
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14967
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14968
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14969
|
+
return [2 /*return*/, {
|
|
14970
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14971
|
+
options: localVarRequestOptions,
|
|
14972
|
+
}];
|
|
14973
|
+
}
|
|
14974
|
+
});
|
|
14975
|
+
});
|
|
14976
|
+
},
|
|
14977
|
+
/**
|
|
14978
|
+
*
|
|
14979
|
+
* @summary Create a FaqCategory.
|
|
14980
|
+
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14981
|
+
* @param {*} [options] Override http request option.
|
|
14982
|
+
* @throws {RequiredError}
|
|
14983
|
+
*/
|
|
14984
|
+
apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
|
|
14985
|
+
if (options === void 0) { options = {}; }
|
|
14986
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14987
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14988
|
+
return __generator(this, function (_a) {
|
|
14989
|
+
switch (_a.label) {
|
|
14990
|
+
case 0:
|
|
14991
|
+
localVarPath = "/api/v1/faqcategories";
|
|
14992
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14993
|
+
if (configuration) {
|
|
14994
|
+
baseOptions = configuration.baseOptions;
|
|
14995
|
+
}
|
|
14996
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14997
|
+
localVarHeaderParameter = {};
|
|
14998
|
+
localVarQueryParameter = {};
|
|
14999
|
+
// authentication oauth2 required
|
|
15000
|
+
// oauth required
|
|
15001
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15002
|
+
case 1:
|
|
15003
|
+
// authentication oauth2 required
|
|
15004
|
+
// oauth required
|
|
15005
|
+
_a.sent();
|
|
15006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15007
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15008
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15009
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15010
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFaqCategoryCommand, localVarRequestOptions, configuration);
|
|
15011
|
+
return [2 /*return*/, {
|
|
15012
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15013
|
+
options: localVarRequestOptions,
|
|
15014
|
+
}];
|
|
15015
|
+
}
|
|
15016
|
+
});
|
|
15017
|
+
});
|
|
15018
|
+
},
|
|
15019
|
+
/**
|
|
15020
|
+
*
|
|
15021
|
+
* @summary Get FaqCategory by slug.
|
|
15022
|
+
* @param {string} slug
|
|
15023
|
+
* @param {string} [languageCode]
|
|
15024
|
+
* @param {*} [options] Override http request option.
|
|
15025
|
+
* @throws {RequiredError}
|
|
15026
|
+
*/
|
|
15027
|
+
apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
|
|
15028
|
+
if (options === void 0) { options = {}; }
|
|
15029
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15030
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15031
|
+
return __generator(this, function (_a) {
|
|
15032
|
+
switch (_a.label) {
|
|
15033
|
+
case 0:
|
|
15034
|
+
// verify required parameter 'slug' is not null or undefined
|
|
15035
|
+
common_1.assertParamExists('apiV1FaqcategoriesSlugGet', 'slug', slug);
|
|
15036
|
+
localVarPath = "/api/v1/faqcategories/{slug}"
|
|
15037
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
15038
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15039
|
+
if (configuration) {
|
|
15040
|
+
baseOptions = configuration.baseOptions;
|
|
15041
|
+
}
|
|
15042
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15043
|
+
localVarHeaderParameter = {};
|
|
15044
|
+
localVarQueryParameter = {};
|
|
15045
|
+
// authentication oauth2 required
|
|
15046
|
+
// oauth required
|
|
15047
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15048
|
+
case 1:
|
|
15049
|
+
// authentication oauth2 required
|
|
15050
|
+
// oauth required
|
|
15051
|
+
_a.sent();
|
|
15052
|
+
if (languageCode !== undefined) {
|
|
15053
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
15054
|
+
}
|
|
15055
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15056
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15057
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15058
|
+
return [2 /*return*/, {
|
|
15059
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15060
|
+
options: localVarRequestOptions,
|
|
15061
|
+
}];
|
|
15062
|
+
}
|
|
15063
|
+
});
|
|
15064
|
+
});
|
|
15065
|
+
},
|
|
15066
|
+
};
|
|
15067
|
+
};
|
|
15068
|
+
/**
|
|
15069
|
+
* FaqCategoriesApi - functional programming interface
|
|
15070
|
+
* @export
|
|
15071
|
+
*/
|
|
15072
|
+
exports.FaqCategoriesApiFp = function (configuration) {
|
|
15073
|
+
var localVarAxiosParamCreator = exports.FaqCategoriesApiAxiosParamCreator(configuration);
|
|
15074
|
+
return {
|
|
15075
|
+
/**
|
|
15076
|
+
*
|
|
15077
|
+
* @summary Get BreadCrumbs.
|
|
15078
|
+
* @param {string} faqId
|
|
15079
|
+
* @param {string} [languageCode]
|
|
15080
|
+
* @param {*} [options] Override http request option.
|
|
15081
|
+
* @throws {RequiredError}
|
|
15082
|
+
*/
|
|
15083
|
+
apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
15084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15085
|
+
var localVarAxiosArgs;
|
|
15086
|
+
return __generator(this, function (_a) {
|
|
15087
|
+
switch (_a.label) {
|
|
15088
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
|
|
15089
|
+
case 1:
|
|
15090
|
+
localVarAxiosArgs = _a.sent();
|
|
15091
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15092
|
+
}
|
|
15093
|
+
});
|
|
15094
|
+
});
|
|
15095
|
+
},
|
|
15096
|
+
/**
|
|
15097
|
+
*
|
|
15098
|
+
* @summary Delete FaqCategory.
|
|
15099
|
+
* @param {string} faqCategoryId
|
|
15100
|
+
* @param {boolean} [forceDelete]
|
|
15101
|
+
* @param {*} [options] Override http request option.
|
|
15102
|
+
* @throws {RequiredError}
|
|
15103
|
+
*/
|
|
15104
|
+
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
15105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15106
|
+
var localVarAxiosArgs;
|
|
15107
|
+
return __generator(this, function (_a) {
|
|
15108
|
+
switch (_a.label) {
|
|
15109
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options)];
|
|
15110
|
+
case 1:
|
|
15111
|
+
localVarAxiosArgs = _a.sent();
|
|
15112
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15113
|
+
}
|
|
15114
|
+
});
|
|
15115
|
+
});
|
|
15116
|
+
},
|
|
15117
|
+
/**
|
|
15118
|
+
*
|
|
15119
|
+
* @summary Get FaqCategory.
|
|
15120
|
+
* @param {string} faqCategoryId
|
|
15121
|
+
* @param {string} [languageCode]
|
|
15122
|
+
* @param {*} [options] Override http request option.
|
|
15123
|
+
* @throws {RequiredError}
|
|
15124
|
+
*/
|
|
15125
|
+
apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
|
|
15126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15127
|
+
var localVarAxiosArgs;
|
|
15128
|
+
return __generator(this, function (_a) {
|
|
15129
|
+
switch (_a.label) {
|
|
15130
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options)];
|
|
15131
|
+
case 1:
|
|
15132
|
+
localVarAxiosArgs = _a.sent();
|
|
15133
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15134
|
+
}
|
|
15135
|
+
});
|
|
15136
|
+
});
|
|
15137
|
+
},
|
|
15138
|
+
/**
|
|
15139
|
+
*
|
|
15140
|
+
* @summary Update FaqCategory.
|
|
15141
|
+
* @param {string} faqCategoryId
|
|
14483
15142
|
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14484
15143
|
* @param {*} [options] Override http request option.
|
|
14485
15144
|
* @throws {RequiredError}
|
|
@@ -15173,14 +15832,17 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
15173
15832
|
* @param {string} [title]
|
|
15174
15833
|
* @param {string} [content]
|
|
15175
15834
|
* @param {string} [categoryId]
|
|
15835
|
+
* @param {string} [hospitalId]
|
|
15836
|
+
* @param {string} [hospitalName]
|
|
15176
15837
|
* @param {string} [languageCode]
|
|
15838
|
+
* @param {boolean} [showHidden]
|
|
15177
15839
|
* @param {number} [page]
|
|
15178
15840
|
* @param {number} [limit]
|
|
15179
15841
|
* @param {Date} [lastRetrieved]
|
|
15180
15842
|
* @param {*} [options] Override http request option.
|
|
15181
15843
|
* @throws {RequiredError}
|
|
15182
15844
|
*/
|
|
15183
|
-
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15845
|
+
apiV1FaqsGet: function (id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
15184
15846
|
if (options === void 0) { options = {}; }
|
|
15185
15847
|
return __awaiter(_this, void 0, void 0, function () {
|
|
15186
15848
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -15214,9 +15876,18 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
15214
15876
|
if (categoryId !== undefined) {
|
|
15215
15877
|
localVarQueryParameter['CategoryId'] = categoryId;
|
|
15216
15878
|
}
|
|
15879
|
+
if (hospitalId !== undefined) {
|
|
15880
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
15881
|
+
}
|
|
15882
|
+
if (hospitalName !== undefined) {
|
|
15883
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
15884
|
+
}
|
|
15217
15885
|
if (languageCode !== undefined) {
|
|
15218
15886
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
15219
15887
|
}
|
|
15888
|
+
if (showHidden !== undefined) {
|
|
15889
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
15890
|
+
}
|
|
15220
15891
|
if (page !== undefined) {
|
|
15221
15892
|
localVarQueryParameter['page'] = page;
|
|
15222
15893
|
}
|
|
@@ -15516,19 +16187,22 @@ exports.FaqsApiFp = function (configuration) {
|
|
|
15516
16187
|
* @param {string} [title]
|
|
15517
16188
|
* @param {string} [content]
|
|
15518
16189
|
* @param {string} [categoryId]
|
|
16190
|
+
* @param {string} [hospitalId]
|
|
16191
|
+
* @param {string} [hospitalName]
|
|
15519
16192
|
* @param {string} [languageCode]
|
|
16193
|
+
* @param {boolean} [showHidden]
|
|
15520
16194
|
* @param {number} [page]
|
|
15521
16195
|
* @param {number} [limit]
|
|
15522
16196
|
* @param {Date} [lastRetrieved]
|
|
15523
16197
|
* @param {*} [options] Override http request option.
|
|
15524
16198
|
* @throws {RequiredError}
|
|
15525
16199
|
*/
|
|
15526
|
-
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
16200
|
+
apiV1FaqsGet: function (id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
15527
16201
|
return __awaiter(this, void 0, void 0, function () {
|
|
15528
16202
|
var localVarAxiosArgs;
|
|
15529
16203
|
return __generator(this, function (_a) {
|
|
15530
16204
|
switch (_a.label) {
|
|
15531
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options)];
|
|
16205
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
15532
16206
|
case 1:
|
|
15533
16207
|
localVarAxiosArgs = _a.sent();
|
|
15534
16208
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -15685,15 +16359,18 @@ exports.FaqsApiFactory = function (configuration, basePath, axios) {
|
|
|
15685
16359
|
* @param {string} [title]
|
|
15686
16360
|
* @param {string} [content]
|
|
15687
16361
|
* @param {string} [categoryId]
|
|
16362
|
+
* @param {string} [hospitalId]
|
|
16363
|
+
* @param {string} [hospitalName]
|
|
15688
16364
|
* @param {string} [languageCode]
|
|
16365
|
+
* @param {boolean} [showHidden]
|
|
15689
16366
|
* @param {number} [page]
|
|
15690
16367
|
* @param {number} [limit]
|
|
15691
16368
|
* @param {Date} [lastRetrieved]
|
|
15692
16369
|
* @param {*} [options] Override http request option.
|
|
15693
16370
|
* @throws {RequiredError}
|
|
15694
16371
|
*/
|
|
15695
|
-
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15696
|
-
return localVarFp.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
16372
|
+
apiV1FaqsGet: function (id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
16373
|
+
return localVarFp.apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
15697
16374
|
},
|
|
15698
16375
|
/**
|
|
15699
16376
|
*
|
|
@@ -15844,7 +16521,10 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
15844
16521
|
* @param {string} [title]
|
|
15845
16522
|
* @param {string} [content]
|
|
15846
16523
|
* @param {string} [categoryId]
|
|
16524
|
+
* @param {string} [hospitalId]
|
|
16525
|
+
* @param {string} [hospitalName]
|
|
15847
16526
|
* @param {string} [languageCode]
|
|
16527
|
+
* @param {boolean} [showHidden]
|
|
15848
16528
|
* @param {number} [page]
|
|
15849
16529
|
* @param {number} [limit]
|
|
15850
16530
|
* @param {Date} [lastRetrieved]
|
|
@@ -15852,9 +16532,9 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
15852
16532
|
* @throws {RequiredError}
|
|
15853
16533
|
* @memberof FaqsApi
|
|
15854
16534
|
*/
|
|
15855
|
-
FaqsApi.prototype.apiV1FaqsGet = function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
16535
|
+
FaqsApi.prototype.apiV1FaqsGet = function (id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
15856
16536
|
var _this = this;
|
|
15857
|
-
return exports.FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16537
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15858
16538
|
};
|
|
15859
16539
|
/**
|
|
15860
16540
|
*
|