ch-admin-api-client-typescript 2.5.1 → 2.5.5
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 +605 -36
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +687 -28
- package/package.json +1 -1
- package/src/api.ts +908 -43
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.
|
|
@@ -11266,10 +11340,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11266
11340
|
*
|
|
11267
11341
|
* @summary Get Doctor.
|
|
11268
11342
|
* @param {string} doctorId
|
|
11343
|
+
* @param {string} [languageCode]
|
|
11269
11344
|
* @param {*} [options] Override http request option.
|
|
11270
11345
|
* @throws {RequiredError}
|
|
11271
11346
|
*/
|
|
11272
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
11347
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
11273
11348
|
if (options === void 0) { options = {}; }
|
|
11274
11349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
11275
11350
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -11294,6 +11369,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11294
11369
|
// authentication oauth2 required
|
|
11295
11370
|
// oauth required
|
|
11296
11371
|
_a.sent();
|
|
11372
|
+
if (languageCode !== undefined) {
|
|
11373
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
11374
|
+
}
|
|
11297
11375
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11298
11376
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11299
11377
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12651,15 +12729,16 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12651
12729
|
*
|
|
12652
12730
|
* @summary Get Doctor.
|
|
12653
12731
|
* @param {string} doctorId
|
|
12732
|
+
* @param {string} [languageCode]
|
|
12654
12733
|
* @param {*} [options] Override http request option.
|
|
12655
12734
|
* @throws {RequiredError}
|
|
12656
12735
|
*/
|
|
12657
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
12736
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
12658
12737
|
return __awaiter(this, void 0, void 0, function () {
|
|
12659
12738
|
var localVarAxiosArgs;
|
|
12660
12739
|
return __generator(this, function (_a) {
|
|
12661
12740
|
switch (_a.label) {
|
|
12662
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
|
|
12741
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options)];
|
|
12663
12742
|
case 1:
|
|
12664
12743
|
localVarAxiosArgs = _a.sent();
|
|
12665
12744
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -13287,11 +13366,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13287
13366
|
*
|
|
13288
13367
|
* @summary Get Doctor.
|
|
13289
13368
|
* @param {string} doctorId
|
|
13369
|
+
* @param {string} [languageCode]
|
|
13290
13370
|
* @param {*} [options] Override http request option.
|
|
13291
13371
|
* @throws {RequiredError}
|
|
13292
13372
|
*/
|
|
13293
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
13294
|
-
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
|
|
13373
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
13374
|
+
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
13295
13375
|
},
|
|
13296
13376
|
/**
|
|
13297
13377
|
*
|
|
@@ -13757,13 +13837,14 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13757
13837
|
*
|
|
13758
13838
|
* @summary Get Doctor.
|
|
13759
13839
|
* @param {string} doctorId
|
|
13840
|
+
* @param {string} [languageCode]
|
|
13760
13841
|
* @param {*} [options] Override http request option.
|
|
13761
13842
|
* @throws {RequiredError}
|
|
13762
13843
|
* @memberof DoctorsApi
|
|
13763
13844
|
*/
|
|
13764
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
|
|
13845
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, languageCode, options) {
|
|
13765
13846
|
var _this = this;
|
|
13766
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13847
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13767
13848
|
};
|
|
13768
13849
|
/**
|
|
13769
13850
|
*
|
|
@@ -14041,6 +14122,584 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
14041
14122
|
return DoctorsApi;
|
|
14042
14123
|
}(base_1.BaseAPI));
|
|
14043
14124
|
exports.DoctorsApi = DoctorsApi;
|
|
14125
|
+
/**
|
|
14126
|
+
* EmailMarketingsApi - axios parameter creator
|
|
14127
|
+
* @export
|
|
14128
|
+
*/
|
|
14129
|
+
exports.EmailMarketingsApiAxiosParamCreator = function (configuration) {
|
|
14130
|
+
var _this = this;
|
|
14131
|
+
return {
|
|
14132
|
+
/**
|
|
14133
|
+
*
|
|
14134
|
+
* @summary Get all templateVersions.
|
|
14135
|
+
* @param {number} [page]
|
|
14136
|
+
* @param {number} [limit]
|
|
14137
|
+
* @param {Date} [lastRetrieved]
|
|
14138
|
+
* @param {*} [options] Override http request option.
|
|
14139
|
+
* @throws {RequiredError}
|
|
14140
|
+
*/
|
|
14141
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14142
|
+
if (options === void 0) { options = {}; }
|
|
14143
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14144
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14145
|
+
return __generator(this, function (_a) {
|
|
14146
|
+
switch (_a.label) {
|
|
14147
|
+
case 0:
|
|
14148
|
+
localVarPath = "/api/v1/emailmarketings/versions";
|
|
14149
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14150
|
+
if (configuration) {
|
|
14151
|
+
baseOptions = configuration.baseOptions;
|
|
14152
|
+
}
|
|
14153
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14154
|
+
localVarHeaderParameter = {};
|
|
14155
|
+
localVarQueryParameter = {};
|
|
14156
|
+
// authentication oauth2 required
|
|
14157
|
+
// oauth required
|
|
14158
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14159
|
+
case 1:
|
|
14160
|
+
// authentication oauth2 required
|
|
14161
|
+
// oauth required
|
|
14162
|
+
_a.sent();
|
|
14163
|
+
if (page !== undefined) {
|
|
14164
|
+
localVarQueryParameter['page'] = page;
|
|
14165
|
+
}
|
|
14166
|
+
if (limit !== undefined) {
|
|
14167
|
+
localVarQueryParameter['limit'] = limit;
|
|
14168
|
+
}
|
|
14169
|
+
if (lastRetrieved !== undefined) {
|
|
14170
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14171
|
+
lastRetrieved.toISOString() :
|
|
14172
|
+
lastRetrieved;
|
|
14173
|
+
}
|
|
14174
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14175
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14176
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14177
|
+
return [2 /*return*/, {
|
|
14178
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14179
|
+
options: localVarRequestOptions,
|
|
14180
|
+
}];
|
|
14181
|
+
}
|
|
14182
|
+
});
|
|
14183
|
+
});
|
|
14184
|
+
},
|
|
14185
|
+
/**
|
|
14186
|
+
*
|
|
14187
|
+
* @summary Create a templateVersion.
|
|
14188
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14189
|
+
* @param {*} [options] Override http request option.
|
|
14190
|
+
* @throws {RequiredError}
|
|
14191
|
+
*/
|
|
14192
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14193
|
+
if (options === void 0) { options = {}; }
|
|
14194
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14195
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14196
|
+
return __generator(this, function (_a) {
|
|
14197
|
+
switch (_a.label) {
|
|
14198
|
+
case 0:
|
|
14199
|
+
localVarPath = "/api/v1/emailmarketings/versions";
|
|
14200
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14201
|
+
if (configuration) {
|
|
14202
|
+
baseOptions = configuration.baseOptions;
|
|
14203
|
+
}
|
|
14204
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14205
|
+
localVarHeaderParameter = {};
|
|
14206
|
+
localVarQueryParameter = {};
|
|
14207
|
+
// authentication oauth2 required
|
|
14208
|
+
// oauth required
|
|
14209
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14210
|
+
case 1:
|
|
14211
|
+
// authentication oauth2 required
|
|
14212
|
+
// oauth required
|
|
14213
|
+
_a.sent();
|
|
14214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14215
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14216
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14217
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14218
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14219
|
+
return [2 /*return*/, {
|
|
14220
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14221
|
+
options: localVarRequestOptions,
|
|
14222
|
+
}];
|
|
14223
|
+
}
|
|
14224
|
+
});
|
|
14225
|
+
});
|
|
14226
|
+
},
|
|
14227
|
+
/**
|
|
14228
|
+
*
|
|
14229
|
+
* @summary Delete templateVersion.
|
|
14230
|
+
* @param {string} versionId
|
|
14231
|
+
* @param {*} [options] Override http request option.
|
|
14232
|
+
* @throws {RequiredError}
|
|
14233
|
+
*/
|
|
14234
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14235
|
+
if (options === void 0) { options = {}; }
|
|
14236
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14237
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14238
|
+
return __generator(this, function (_a) {
|
|
14239
|
+
switch (_a.label) {
|
|
14240
|
+
case 0:
|
|
14241
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14242
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdDelete', 'versionId', versionId);
|
|
14243
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14244
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14245
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14246
|
+
if (configuration) {
|
|
14247
|
+
baseOptions = configuration.baseOptions;
|
|
14248
|
+
}
|
|
14249
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14250
|
+
localVarHeaderParameter = {};
|
|
14251
|
+
localVarQueryParameter = {};
|
|
14252
|
+
// authentication oauth2 required
|
|
14253
|
+
// oauth required
|
|
14254
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14255
|
+
case 1:
|
|
14256
|
+
// authentication oauth2 required
|
|
14257
|
+
// oauth required
|
|
14258
|
+
_a.sent();
|
|
14259
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14260
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14261
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14262
|
+
return [2 /*return*/, {
|
|
14263
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14264
|
+
options: localVarRequestOptions,
|
|
14265
|
+
}];
|
|
14266
|
+
}
|
|
14267
|
+
});
|
|
14268
|
+
});
|
|
14269
|
+
},
|
|
14270
|
+
/**
|
|
14271
|
+
*
|
|
14272
|
+
* @summary Get templateVersion.
|
|
14273
|
+
* @param {string} versionId
|
|
14274
|
+
* @param {*} [options] Override http request option.
|
|
14275
|
+
* @throws {RequiredError}
|
|
14276
|
+
*/
|
|
14277
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14278
|
+
if (options === void 0) { options = {}; }
|
|
14279
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14280
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14281
|
+
return __generator(this, function (_a) {
|
|
14282
|
+
switch (_a.label) {
|
|
14283
|
+
case 0:
|
|
14284
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14285
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdGet', 'versionId', versionId);
|
|
14286
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14287
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14288
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14289
|
+
if (configuration) {
|
|
14290
|
+
baseOptions = configuration.baseOptions;
|
|
14291
|
+
}
|
|
14292
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14293
|
+
localVarHeaderParameter = {};
|
|
14294
|
+
localVarQueryParameter = {};
|
|
14295
|
+
// authentication oauth2 required
|
|
14296
|
+
// oauth required
|
|
14297
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14298
|
+
case 1:
|
|
14299
|
+
// authentication oauth2 required
|
|
14300
|
+
// oauth required
|
|
14301
|
+
_a.sent();
|
|
14302
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14303
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14304
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14305
|
+
return [2 /*return*/, {
|
|
14306
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14307
|
+
options: localVarRequestOptions,
|
|
14308
|
+
}];
|
|
14309
|
+
}
|
|
14310
|
+
});
|
|
14311
|
+
});
|
|
14312
|
+
},
|
|
14313
|
+
/**
|
|
14314
|
+
*
|
|
14315
|
+
* @summary Update templateVersion.
|
|
14316
|
+
* @param {string} versionId
|
|
14317
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14318
|
+
* @param {*} [options] Override http request option.
|
|
14319
|
+
* @throws {RequiredError}
|
|
14320
|
+
*/
|
|
14321
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14322
|
+
if (options === void 0) { options = {}; }
|
|
14323
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14324
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14325
|
+
return __generator(this, function (_a) {
|
|
14326
|
+
switch (_a.label) {
|
|
14327
|
+
case 0:
|
|
14328
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14329
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdPut', 'versionId', versionId);
|
|
14330
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
|
|
14331
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14332
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14333
|
+
if (configuration) {
|
|
14334
|
+
baseOptions = configuration.baseOptions;
|
|
14335
|
+
}
|
|
14336
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14337
|
+
localVarHeaderParameter = {};
|
|
14338
|
+
localVarQueryParameter = {};
|
|
14339
|
+
// authentication oauth2 required
|
|
14340
|
+
// oauth required
|
|
14341
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14342
|
+
case 1:
|
|
14343
|
+
// authentication oauth2 required
|
|
14344
|
+
// oauth required
|
|
14345
|
+
_a.sent();
|
|
14346
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14347
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14348
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14349
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14350
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14351
|
+
return [2 /*return*/, {
|
|
14352
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14353
|
+
options: localVarRequestOptions,
|
|
14354
|
+
}];
|
|
14355
|
+
}
|
|
14356
|
+
});
|
|
14357
|
+
});
|
|
14358
|
+
},
|
|
14359
|
+
/**
|
|
14360
|
+
*
|
|
14361
|
+
* @summary Send templateVersion email.
|
|
14362
|
+
* @param {string} versionId
|
|
14363
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14364
|
+
* @param {*} [options] Override http request option.
|
|
14365
|
+
* @throws {RequiredError}
|
|
14366
|
+
*/
|
|
14367
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14368
|
+
if (options === void 0) { options = {}; }
|
|
14369
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14370
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14371
|
+
return __generator(this, function (_a) {
|
|
14372
|
+
switch (_a.label) {
|
|
14373
|
+
case 0:
|
|
14374
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
14375
|
+
common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdSendPost', 'versionId', versionId);
|
|
14376
|
+
localVarPath = "/api/v1/emailmarketings/versions/{versionId}/send"
|
|
14377
|
+
.replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
|
|
14378
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14379
|
+
if (configuration) {
|
|
14380
|
+
baseOptions = configuration.baseOptions;
|
|
14381
|
+
}
|
|
14382
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14383
|
+
localVarHeaderParameter = {};
|
|
14384
|
+
localVarQueryParameter = {};
|
|
14385
|
+
// authentication oauth2 required
|
|
14386
|
+
// oauth required
|
|
14387
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14388
|
+
case 1:
|
|
14389
|
+
// authentication oauth2 required
|
|
14390
|
+
// oauth required
|
|
14391
|
+
_a.sent();
|
|
14392
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14393
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14394
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14395
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14396
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(sendTemplateVersionCommand, localVarRequestOptions, configuration);
|
|
14397
|
+
return [2 /*return*/, {
|
|
14398
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14399
|
+
options: localVarRequestOptions,
|
|
14400
|
+
}];
|
|
14401
|
+
}
|
|
14402
|
+
});
|
|
14403
|
+
});
|
|
14404
|
+
},
|
|
14405
|
+
};
|
|
14406
|
+
};
|
|
14407
|
+
/**
|
|
14408
|
+
* EmailMarketingsApi - functional programming interface
|
|
14409
|
+
* @export
|
|
14410
|
+
*/
|
|
14411
|
+
exports.EmailMarketingsApiFp = function (configuration) {
|
|
14412
|
+
var localVarAxiosParamCreator = exports.EmailMarketingsApiAxiosParamCreator(configuration);
|
|
14413
|
+
return {
|
|
14414
|
+
/**
|
|
14415
|
+
*
|
|
14416
|
+
* @summary Get all templateVersions.
|
|
14417
|
+
* @param {number} [page]
|
|
14418
|
+
* @param {number} [limit]
|
|
14419
|
+
* @param {Date} [lastRetrieved]
|
|
14420
|
+
* @param {*} [options] Override http request option.
|
|
14421
|
+
* @throws {RequiredError}
|
|
14422
|
+
*/
|
|
14423
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14424
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14425
|
+
var localVarAxiosArgs;
|
|
14426
|
+
return __generator(this, function (_a) {
|
|
14427
|
+
switch (_a.label) {
|
|
14428
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options)];
|
|
14429
|
+
case 1:
|
|
14430
|
+
localVarAxiosArgs = _a.sent();
|
|
14431
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14432
|
+
}
|
|
14433
|
+
});
|
|
14434
|
+
});
|
|
14435
|
+
},
|
|
14436
|
+
/**
|
|
14437
|
+
*
|
|
14438
|
+
* @summary Create a templateVersion.
|
|
14439
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14440
|
+
* @param {*} [options] Override http request option.
|
|
14441
|
+
* @throws {RequiredError}
|
|
14442
|
+
*/
|
|
14443
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14444
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14445
|
+
var localVarAxiosArgs;
|
|
14446
|
+
return __generator(this, function (_a) {
|
|
14447
|
+
switch (_a.label) {
|
|
14448
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options)];
|
|
14449
|
+
case 1:
|
|
14450
|
+
localVarAxiosArgs = _a.sent();
|
|
14451
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14452
|
+
}
|
|
14453
|
+
});
|
|
14454
|
+
});
|
|
14455
|
+
},
|
|
14456
|
+
/**
|
|
14457
|
+
*
|
|
14458
|
+
* @summary Delete templateVersion.
|
|
14459
|
+
* @param {string} versionId
|
|
14460
|
+
* @param {*} [options] Override http request option.
|
|
14461
|
+
* @throws {RequiredError}
|
|
14462
|
+
*/
|
|
14463
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14465
|
+
var localVarAxiosArgs;
|
|
14466
|
+
return __generator(this, function (_a) {
|
|
14467
|
+
switch (_a.label) {
|
|
14468
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options)];
|
|
14469
|
+
case 1:
|
|
14470
|
+
localVarAxiosArgs = _a.sent();
|
|
14471
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14472
|
+
}
|
|
14473
|
+
});
|
|
14474
|
+
});
|
|
14475
|
+
},
|
|
14476
|
+
/**
|
|
14477
|
+
*
|
|
14478
|
+
* @summary Get templateVersion.
|
|
14479
|
+
* @param {string} versionId
|
|
14480
|
+
* @param {*} [options] Override http request option.
|
|
14481
|
+
* @throws {RequiredError}
|
|
14482
|
+
*/
|
|
14483
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14485
|
+
var localVarAxiosArgs;
|
|
14486
|
+
return __generator(this, function (_a) {
|
|
14487
|
+
switch (_a.label) {
|
|
14488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options)];
|
|
14489
|
+
case 1:
|
|
14490
|
+
localVarAxiosArgs = _a.sent();
|
|
14491
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14492
|
+
}
|
|
14493
|
+
});
|
|
14494
|
+
});
|
|
14495
|
+
},
|
|
14496
|
+
/**
|
|
14497
|
+
*
|
|
14498
|
+
* @summary Update templateVersion.
|
|
14499
|
+
* @param {string} versionId
|
|
14500
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14501
|
+
* @param {*} [options] Override http request option.
|
|
14502
|
+
* @throws {RequiredError}
|
|
14503
|
+
*/
|
|
14504
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14506
|
+
var localVarAxiosArgs;
|
|
14507
|
+
return __generator(this, function (_a) {
|
|
14508
|
+
switch (_a.label) {
|
|
14509
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options)];
|
|
14510
|
+
case 1:
|
|
14511
|
+
localVarAxiosArgs = _a.sent();
|
|
14512
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14513
|
+
}
|
|
14514
|
+
});
|
|
14515
|
+
});
|
|
14516
|
+
},
|
|
14517
|
+
/**
|
|
14518
|
+
*
|
|
14519
|
+
* @summary Send templateVersion email.
|
|
14520
|
+
* @param {string} versionId
|
|
14521
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14522
|
+
* @param {*} [options] Override http request option.
|
|
14523
|
+
* @throws {RequiredError}
|
|
14524
|
+
*/
|
|
14525
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14527
|
+
var localVarAxiosArgs;
|
|
14528
|
+
return __generator(this, function (_a) {
|
|
14529
|
+
switch (_a.label) {
|
|
14530
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options)];
|
|
14531
|
+
case 1:
|
|
14532
|
+
localVarAxiosArgs = _a.sent();
|
|
14533
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14534
|
+
}
|
|
14535
|
+
});
|
|
14536
|
+
});
|
|
14537
|
+
},
|
|
14538
|
+
};
|
|
14539
|
+
};
|
|
14540
|
+
/**
|
|
14541
|
+
* EmailMarketingsApi - factory interface
|
|
14542
|
+
* @export
|
|
14543
|
+
*/
|
|
14544
|
+
exports.EmailMarketingsApiFactory = function (configuration, basePath, axios) {
|
|
14545
|
+
var localVarFp = exports.EmailMarketingsApiFp(configuration);
|
|
14546
|
+
return {
|
|
14547
|
+
/**
|
|
14548
|
+
*
|
|
14549
|
+
* @summary Get all templateVersions.
|
|
14550
|
+
* @param {number} [page]
|
|
14551
|
+
* @param {number} [limit]
|
|
14552
|
+
* @param {Date} [lastRetrieved]
|
|
14553
|
+
* @param {*} [options] Override http request option.
|
|
14554
|
+
* @throws {RequiredError}
|
|
14555
|
+
*/
|
|
14556
|
+
apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
|
|
14557
|
+
return localVarFp.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14558
|
+
},
|
|
14559
|
+
/**
|
|
14560
|
+
*
|
|
14561
|
+
* @summary Create a templateVersion.
|
|
14562
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14563
|
+
* @param {*} [options] Override http request option.
|
|
14564
|
+
* @throws {RequiredError}
|
|
14565
|
+
*/
|
|
14566
|
+
apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
|
|
14567
|
+
return localVarFp.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14568
|
+
},
|
|
14569
|
+
/**
|
|
14570
|
+
*
|
|
14571
|
+
* @summary Delete templateVersion.
|
|
14572
|
+
* @param {string} versionId
|
|
14573
|
+
* @param {*} [options] Override http request option.
|
|
14574
|
+
* @throws {RequiredError}
|
|
14575
|
+
*/
|
|
14576
|
+
apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
|
|
14577
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(axios, basePath); });
|
|
14578
|
+
},
|
|
14579
|
+
/**
|
|
14580
|
+
*
|
|
14581
|
+
* @summary Get templateVersion.
|
|
14582
|
+
* @param {string} versionId
|
|
14583
|
+
* @param {*} [options] Override http request option.
|
|
14584
|
+
* @throws {RequiredError}
|
|
14585
|
+
*/
|
|
14586
|
+
apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
|
|
14587
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(axios, basePath); });
|
|
14588
|
+
},
|
|
14589
|
+
/**
|
|
14590
|
+
*
|
|
14591
|
+
* @summary Update templateVersion.
|
|
14592
|
+
* @param {string} versionId
|
|
14593
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14594
|
+
* @param {*} [options] Override http request option.
|
|
14595
|
+
* @throws {RequiredError}
|
|
14596
|
+
*/
|
|
14597
|
+
apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
|
|
14598
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14599
|
+
},
|
|
14600
|
+
/**
|
|
14601
|
+
*
|
|
14602
|
+
* @summary Send templateVersion email.
|
|
14603
|
+
* @param {string} versionId
|
|
14604
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14605
|
+
* @param {*} [options] Override http request option.
|
|
14606
|
+
* @throws {RequiredError}
|
|
14607
|
+
*/
|
|
14608
|
+
apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
|
|
14609
|
+
return localVarFp.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14610
|
+
},
|
|
14611
|
+
};
|
|
14612
|
+
};
|
|
14613
|
+
/**
|
|
14614
|
+
* EmailMarketingsApi - object-oriented interface
|
|
14615
|
+
* @export
|
|
14616
|
+
* @class EmailMarketingsApi
|
|
14617
|
+
* @extends {BaseAPI}
|
|
14618
|
+
*/
|
|
14619
|
+
var EmailMarketingsApi = /** @class */ (function (_super) {
|
|
14620
|
+
__extends(EmailMarketingsApi, _super);
|
|
14621
|
+
function EmailMarketingsApi() {
|
|
14622
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14623
|
+
}
|
|
14624
|
+
/**
|
|
14625
|
+
*
|
|
14626
|
+
* @summary Get all templateVersions.
|
|
14627
|
+
* @param {number} [page]
|
|
14628
|
+
* @param {number} [limit]
|
|
14629
|
+
* @param {Date} [lastRetrieved]
|
|
14630
|
+
* @param {*} [options] Override http request option.
|
|
14631
|
+
* @throws {RequiredError}
|
|
14632
|
+
* @memberof EmailMarketingsApi
|
|
14633
|
+
*/
|
|
14634
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsGet = function (page, limit, lastRetrieved, options) {
|
|
14635
|
+
var _this = this;
|
|
14636
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14637
|
+
};
|
|
14638
|
+
/**
|
|
14639
|
+
*
|
|
14640
|
+
* @summary Create a templateVersion.
|
|
14641
|
+
* @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
|
|
14642
|
+
* @param {*} [options] Override http request option.
|
|
14643
|
+
* @throws {RequiredError}
|
|
14644
|
+
* @memberof EmailMarketingsApi
|
|
14645
|
+
*/
|
|
14646
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsPost = function (createTemplateVersionCommand, options) {
|
|
14647
|
+
var _this = this;
|
|
14648
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14649
|
+
};
|
|
14650
|
+
/**
|
|
14651
|
+
*
|
|
14652
|
+
* @summary Delete templateVersion.
|
|
14653
|
+
* @param {string} versionId
|
|
14654
|
+
* @param {*} [options] Override http request option.
|
|
14655
|
+
* @throws {RequiredError}
|
|
14656
|
+
* @memberof EmailMarketingsApi
|
|
14657
|
+
*/
|
|
14658
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdDelete = function (versionId, options) {
|
|
14659
|
+
var _this = this;
|
|
14660
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14661
|
+
};
|
|
14662
|
+
/**
|
|
14663
|
+
*
|
|
14664
|
+
* @summary Get templateVersion.
|
|
14665
|
+
* @param {string} versionId
|
|
14666
|
+
* @param {*} [options] Override http request option.
|
|
14667
|
+
* @throws {RequiredError}
|
|
14668
|
+
* @memberof EmailMarketingsApi
|
|
14669
|
+
*/
|
|
14670
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdGet = function (versionId, options) {
|
|
14671
|
+
var _this = this;
|
|
14672
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14673
|
+
};
|
|
14674
|
+
/**
|
|
14675
|
+
*
|
|
14676
|
+
* @summary Update templateVersion.
|
|
14677
|
+
* @param {string} versionId
|
|
14678
|
+
* @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
|
|
14679
|
+
* @param {*} [options] Override http request option.
|
|
14680
|
+
* @throws {RequiredError}
|
|
14681
|
+
* @memberof EmailMarketingsApi
|
|
14682
|
+
*/
|
|
14683
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdPut = function (versionId, updateTemplateVersionCommand, options) {
|
|
14684
|
+
var _this = this;
|
|
14685
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14686
|
+
};
|
|
14687
|
+
/**
|
|
14688
|
+
*
|
|
14689
|
+
* @summary Send templateVersion email.
|
|
14690
|
+
* @param {string} versionId
|
|
14691
|
+
* @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
|
|
14692
|
+
* @param {*} [options] Override http request option.
|
|
14693
|
+
* @throws {RequiredError}
|
|
14694
|
+
* @memberof EmailMarketingsApi
|
|
14695
|
+
*/
|
|
14696
|
+
EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdSendPost = function (versionId, sendTemplateVersionCommand, options) {
|
|
14697
|
+
var _this = this;
|
|
14698
|
+
return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14699
|
+
};
|
|
14700
|
+
return EmailMarketingsApi;
|
|
14701
|
+
}(base_1.BaseAPI));
|
|
14702
|
+
exports.EmailMarketingsApi = EmailMarketingsApi;
|
|
14044
14703
|
/**
|
|
14045
14704
|
* FaqCategoriesApi - axios parameter creator
|
|
14046
14705
|
* @export
|
|
@@ -14097,7 +14756,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14097
14756
|
},
|
|
14098
14757
|
/**
|
|
14099
14758
|
*
|
|
14100
|
-
* @summary Delete
|
|
14759
|
+
* @summary Delete FaqCategory.
|
|
14101
14760
|
* @param {string} faqCategoryId
|
|
14102
14761
|
* @param {boolean} [forceDelete]
|
|
14103
14762
|
* @param {*} [options] Override http request option.
|
|
@@ -14144,7 +14803,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14144
14803
|
},
|
|
14145
14804
|
/**
|
|
14146
14805
|
*
|
|
14147
|
-
* @summary Get
|
|
14806
|
+
* @summary Get FaqCategory.
|
|
14148
14807
|
* @param {string} faqCategoryId
|
|
14149
14808
|
* @param {string} [languageCode]
|
|
14150
14809
|
* @param {*} [options] Override http request option.
|
|
@@ -14191,7 +14850,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14191
14850
|
},
|
|
14192
14851
|
/**
|
|
14193
14852
|
*
|
|
14194
|
-
* @summary Update
|
|
14853
|
+
* @summary Update FaqCategory.
|
|
14195
14854
|
* @param {string} faqCategoryId
|
|
14196
14855
|
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14197
14856
|
* @param {*} [options] Override http request option.
|
|
@@ -14310,7 +14969,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14310
14969
|
},
|
|
14311
14970
|
/**
|
|
14312
14971
|
*
|
|
14313
|
-
* @summary Create a
|
|
14972
|
+
* @summary Create a FaqCategory.
|
|
14314
14973
|
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14315
14974
|
* @param {*} [options] Override http request option.
|
|
14316
14975
|
* @throws {RequiredError}
|
|
@@ -14352,7 +15011,7 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
14352
15011
|
},
|
|
14353
15012
|
/**
|
|
14354
15013
|
*
|
|
14355
|
-
* @summary Get
|
|
15014
|
+
* @summary Get FaqCategory by slug.
|
|
14356
15015
|
* @param {string} slug
|
|
14357
15016
|
* @param {string} [languageCode]
|
|
14358
15017
|
* @param {*} [options] Override http request option.
|
|
@@ -14429,7 +15088,7 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14429
15088
|
},
|
|
14430
15089
|
/**
|
|
14431
15090
|
*
|
|
14432
|
-
* @summary Delete
|
|
15091
|
+
* @summary Delete FaqCategory.
|
|
14433
15092
|
* @param {string} faqCategoryId
|
|
14434
15093
|
* @param {boolean} [forceDelete]
|
|
14435
15094
|
* @param {*} [options] Override http request option.
|
|
@@ -14450,7 +15109,7 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14450
15109
|
},
|
|
14451
15110
|
/**
|
|
14452
15111
|
*
|
|
14453
|
-
* @summary Get
|
|
15112
|
+
* @summary Get FaqCategory.
|
|
14454
15113
|
* @param {string} faqCategoryId
|
|
14455
15114
|
* @param {string} [languageCode]
|
|
14456
15115
|
* @param {*} [options] Override http request option.
|
|
@@ -14471,7 +15130,7 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14471
15130
|
},
|
|
14472
15131
|
/**
|
|
14473
15132
|
*
|
|
14474
|
-
* @summary Update
|
|
15133
|
+
* @summary Update FaqCategory.
|
|
14475
15134
|
* @param {string} faqCategoryId
|
|
14476
15135
|
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14477
15136
|
* @param {*} [options] Override http request option.
|
|
@@ -14519,7 +15178,7 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14519
15178
|
},
|
|
14520
15179
|
/**
|
|
14521
15180
|
*
|
|
14522
|
-
* @summary Create a
|
|
15181
|
+
* @summary Create a FaqCategory.
|
|
14523
15182
|
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14524
15183
|
* @param {*} [options] Override http request option.
|
|
14525
15184
|
* @throws {RequiredError}
|
|
@@ -14539,7 +15198,7 @@ exports.FaqCategoriesApiFp = function (configuration) {
|
|
|
14539
15198
|
},
|
|
14540
15199
|
/**
|
|
14541
15200
|
*
|
|
14542
|
-
* @summary Get
|
|
15201
|
+
* @summary Get FaqCategory by slug.
|
|
14543
15202
|
* @param {string} slug
|
|
14544
15203
|
* @param {string} [languageCode]
|
|
14545
15204
|
* @param {*} [options] Override http request option.
|
|
@@ -14580,7 +15239,7 @@ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
14580
15239
|
},
|
|
14581
15240
|
/**
|
|
14582
15241
|
*
|
|
14583
|
-
* @summary Delete
|
|
15242
|
+
* @summary Delete FaqCategory.
|
|
14584
15243
|
* @param {string} faqCategoryId
|
|
14585
15244
|
* @param {boolean} [forceDelete]
|
|
14586
15245
|
* @param {*} [options] Override http request option.
|
|
@@ -14591,7 +15250,7 @@ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
14591
15250
|
},
|
|
14592
15251
|
/**
|
|
14593
15252
|
*
|
|
14594
|
-
* @summary Get
|
|
15253
|
+
* @summary Get FaqCategory.
|
|
14595
15254
|
* @param {string} faqCategoryId
|
|
14596
15255
|
* @param {string} [languageCode]
|
|
14597
15256
|
* @param {*} [options] Override http request option.
|
|
@@ -14602,7 +15261,7 @@ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
14602
15261
|
},
|
|
14603
15262
|
/**
|
|
14604
15263
|
*
|
|
14605
|
-
* @summary Update
|
|
15264
|
+
* @summary Update FaqCategory.
|
|
14606
15265
|
* @param {string} faqCategoryId
|
|
14607
15266
|
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14608
15267
|
* @param {*} [options] Override http request option.
|
|
@@ -14630,7 +15289,7 @@ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
14630
15289
|
},
|
|
14631
15290
|
/**
|
|
14632
15291
|
*
|
|
14633
|
-
* @summary Create a
|
|
15292
|
+
* @summary Create a FaqCategory.
|
|
14634
15293
|
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14635
15294
|
* @param {*} [options] Override http request option.
|
|
14636
15295
|
* @throws {RequiredError}
|
|
@@ -14640,7 +15299,7 @@ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
14640
15299
|
},
|
|
14641
15300
|
/**
|
|
14642
15301
|
*
|
|
14643
|
-
* @summary Get
|
|
15302
|
+
* @summary Get FaqCategory by slug.
|
|
14644
15303
|
* @param {string} slug
|
|
14645
15304
|
* @param {string} [languageCode]
|
|
14646
15305
|
* @param {*} [options] Override http request option.
|
|
@@ -14677,7 +15336,7 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
14677
15336
|
};
|
|
14678
15337
|
/**
|
|
14679
15338
|
*
|
|
14680
|
-
* @summary Delete
|
|
15339
|
+
* @summary Delete FaqCategory.
|
|
14681
15340
|
* @param {string} faqCategoryId
|
|
14682
15341
|
* @param {boolean} [forceDelete]
|
|
14683
15342
|
* @param {*} [options] Override http request option.
|
|
@@ -14690,7 +15349,7 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
14690
15349
|
};
|
|
14691
15350
|
/**
|
|
14692
15351
|
*
|
|
14693
|
-
* @summary Get
|
|
15352
|
+
* @summary Get FaqCategory.
|
|
14694
15353
|
* @param {string} faqCategoryId
|
|
14695
15354
|
* @param {string} [languageCode]
|
|
14696
15355
|
* @param {*} [options] Override http request option.
|
|
@@ -14703,7 +15362,7 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
14703
15362
|
};
|
|
14704
15363
|
/**
|
|
14705
15364
|
*
|
|
14706
|
-
* @summary Update
|
|
15365
|
+
* @summary Update FaqCategory.
|
|
14707
15366
|
* @param {string} faqCategoryId
|
|
14708
15367
|
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14709
15368
|
* @param {*} [options] Override http request option.
|
|
@@ -14735,7 +15394,7 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
14735
15394
|
};
|
|
14736
15395
|
/**
|
|
14737
15396
|
*
|
|
14738
|
-
* @summary Create a
|
|
15397
|
+
* @summary Create a FaqCategory.
|
|
14739
15398
|
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14740
15399
|
* @param {*} [options] Override http request option.
|
|
14741
15400
|
* @throws {RequiredError}
|
|
@@ -14747,7 +15406,7 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
14747
15406
|
};
|
|
14748
15407
|
/**
|
|
14749
15408
|
*
|
|
14750
|
-
* @summary Get
|
|
15409
|
+
* @summary Get FaqCategory by slug.
|
|
14751
15410
|
* @param {string} slug
|
|
14752
15411
|
* @param {string} [languageCode]
|
|
14753
15412
|
* @param {*} [options] Override http request option.
|