@emilgroup/insurance-sdk-node 1.93.0 → 1.93.1-beta.11

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.
Files changed (96) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/README.md +2 -2
  3. package/api/product-configs-api.ts +1371 -0
  4. package/api.ts +2 -0
  5. package/dist/api/product-configs-api.d.ts +765 -0
  6. package/dist/api/product-configs-api.js +1225 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/amount-with-limit-class.d.ts +30 -0
  10. package/dist/models/amount-with-limit-class.js +15 -0
  11. package/dist/models/category-class.d.ts +57 -0
  12. package/dist/models/category-class.js +15 -0
  13. package/dist/models/claim-config-class.d.ts +39 -0
  14. package/dist/models/claim-config-class.js +15 -0
  15. package/dist/models/claim-position-fields-class.d.ts +31 -0
  16. package/dist/models/claim-position-fields-class.js +15 -0
  17. package/dist/models/coverage-class.d.ts +43 -0
  18. package/dist/models/coverage-class.js +15 -0
  19. package/dist/models/coverage-term-class.d.ts +54 -0
  20. package/dist/models/coverage-term-class.js +25 -0
  21. package/dist/models/custom-field-class.d.ts +50 -0
  22. package/dist/models/custom-field-class.js +23 -0
  23. package/dist/models/deductible-class.d.ts +60 -0
  24. package/dist/models/deductible-class.js +25 -0
  25. package/dist/models/delete-response-by-code-class.d.ts +24 -0
  26. package/dist/models/delete-response-by-code-class.js +15 -0
  27. package/dist/models/general-setting-class.d.ts +56 -0
  28. package/dist/models/general-setting-class.js +33 -0
  29. package/dist/models/index.d.ts +28 -0
  30. package/dist/models/index.js +28 -0
  31. package/dist/models/rest-create-product-config-response-class.d.ts +25 -0
  32. package/dist/models/rest-create-product-config-response-class.js +15 -0
  33. package/dist/models/rest-create-product-config-version-response-class.d.ts +25 -0
  34. package/dist/models/rest-create-product-config-version-response-class.js +15 -0
  35. package/dist/models/rest-get-product-config-response-class.d.ts +25 -0
  36. package/dist/models/rest-get-product-config-response-class.js +15 -0
  37. package/dist/models/rest-get-product-config-version-response-class.d.ts +25 -0
  38. package/dist/models/rest-get-product-config-version-response-class.js +15 -0
  39. package/dist/models/rest-list-product-config-versions-response-class.d.ts +43 -0
  40. package/dist/models/rest-list-product-config-versions-response-class.js +15 -0
  41. package/dist/models/rest-list-product-configs-response-class.d.ts +43 -0
  42. package/dist/models/rest-list-product-configs-response-class.js +15 -0
  43. package/dist/models/rest-update-product-config-response-class.d.ts +25 -0
  44. package/dist/models/rest-update-product-config-response-class.js +15 -0
  45. package/dist/models/rest-update-product-config-version-response-class.d.ts +25 -0
  46. package/dist/models/rest-update-product-config-version-response-class.js +15 -0
  47. package/dist/models/shared-product-config-class.d.ts +79 -0
  48. package/dist/models/shared-product-config-class.js +15 -0
  49. package/dist/models/shared-product-config-version-class.d.ts +85 -0
  50. package/dist/models/shared-product-config-version-class.js +21 -0
  51. package/dist/models/shared-product-field-override-class.d.ts +48 -0
  52. package/dist/models/shared-product-field-override-class.js +15 -0
  53. package/dist/models/shared-product-version-config-class.d.ts +32 -0
  54. package/dist/models/shared-product-version-config-class.js +15 -0
  55. package/dist/models/shared-tariff-variation-class.d.ts +64 -0
  56. package/dist/models/shared-tariff-variation-class.js +15 -0
  57. package/dist/models/tariff-coverage-term-class.d.ts +72 -0
  58. package/dist/models/tariff-coverage-term-class.js +30 -0
  59. package/dist/models/update-product-config-request-dto.d.ts +24 -0
  60. package/dist/models/update-product-config-request-dto.js +15 -0
  61. package/dist/models/update-product-config-version-status-request-dto.d.ts +30 -0
  62. package/dist/models/update-product-config-version-status-request-dto.js +21 -0
  63. package/dist/models/waiting-period-class.d.ts +41 -0
  64. package/dist/models/waiting-period-class.js +20 -0
  65. package/dist/models/warning-class.d.ts +47 -0
  66. package/dist/models/warning-class.js +20 -0
  67. package/models/amount-with-limit-class.ts +36 -0
  68. package/models/category-class.ts +63 -0
  69. package/models/claim-config-class.ts +45 -0
  70. package/models/claim-position-fields-class.ts +37 -0
  71. package/models/coverage-class.ts +49 -0
  72. package/models/coverage-term-class.ts +64 -0
  73. package/models/custom-field-class.ts +59 -0
  74. package/models/deductible-class.ts +70 -0
  75. package/models/delete-response-by-code-class.ts +30 -0
  76. package/models/general-setting-class.ts +66 -0
  77. package/models/index.ts +28 -0
  78. package/models/rest-create-product-config-response-class.ts +31 -0
  79. package/models/rest-create-product-config-version-response-class.ts +31 -0
  80. package/models/rest-get-product-config-response-class.ts +31 -0
  81. package/models/rest-get-product-config-version-response-class.ts +31 -0
  82. package/models/rest-list-product-config-versions-response-class.ts +49 -0
  83. package/models/rest-list-product-configs-response-class.ts +49 -0
  84. package/models/rest-update-product-config-response-class.ts +31 -0
  85. package/models/rest-update-product-config-version-response-class.ts +31 -0
  86. package/models/shared-product-config-class.ts +85 -0
  87. package/models/shared-product-config-version-class.ts +94 -0
  88. package/models/shared-product-field-override-class.ts +54 -0
  89. package/models/shared-product-version-config-class.ts +38 -0
  90. package/models/shared-tariff-variation-class.ts +70 -0
  91. package/models/tariff-coverage-term-class.ts +83 -0
  92. package/models/update-product-config-request-dto.ts +30 -0
  93. package/models/update-product-config-version-status-request-dto.ts +39 -0
  94. package/models/waiting-period-class.ts +50 -0
  95. package/models/warning-class.ts +56 -0
  96. package/package.json +2 -2
@@ -0,0 +1,1225 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ProductConfigsApi = exports.ProductConfigsApiFactory = exports.ProductConfigsApiFp = exports.ProductConfigsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ProductConfigsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ProductConfigsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml. Required fields: slug, productVersionId, file **Required Permissions** \"policy-management.products.create\"
101
+ * @summary Creates a new product config with initial version
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createProductConfig: function (authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ localVarPath = "/insuranceservice/v1/product-configs";
114
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
120
+ localVarHeaderParameter = {};
121
+ localVarQueryParameter = {};
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _a.sent();
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ /**
144
+ * Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: productConfigCode, file **Required Permissions** \"policy-management.products.create\"
145
+ * @summary Creates a new version for a product config
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ createProductConfigVersion: function (authorization, options) {
151
+ if (options === void 0) { options = {}; }
152
+ return __awaiter(_this, void 0, void 0, function () {
153
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
154
+ return __generator(this, function (_a) {
155
+ switch (_a.label) {
156
+ case 0:
157
+ localVarPath = "/insuranceservice/v1/product-configs/versions";
158
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ baseAccessToken = configuration.accessToken;
162
+ }
163
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
164
+ localVarHeaderParameter = {};
165
+ localVarQueryParameter = {};
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
169
+ case 1:
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ _a.sent();
173
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
+ }
176
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
177
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
179
+ return [2 /*return*/, {
180
+ url: (0, common_1.toPathString)(localVarUrlObj),
181
+ options: localVarRequestOptions,
182
+ }];
183
+ }
184
+ });
185
+ });
186
+ },
187
+ /**
188
+ * Deletes a product config **Required Permissions** \"policy-management.products.delete\"
189
+ * @summary Delete the Product Config
190
+ * @param {string} code
191
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ deleteProductConfig: function (code, authorization, options) {
196
+ if (options === void 0) { options = {}; }
197
+ return __awaiter(_this, void 0, void 0, function () {
198
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
199
+ return __generator(this, function (_a) {
200
+ switch (_a.label) {
201
+ case 0:
202
+ // verify required parameter 'code' is not null or undefined
203
+ (0, common_1.assertParamExists)('deleteProductConfig', 'code', code);
204
+ localVarPath = "/insuranceservice/v1/product-configs/{code}"
205
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
206
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
209
+ baseAccessToken = configuration.accessToken;
210
+ }
211
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
212
+ localVarHeaderParameter = {};
213
+ localVarQueryParameter = {};
214
+ // authentication bearer required
215
+ // http bearer authentication required
216
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
217
+ case 1:
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ _a.sent();
221
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
222
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
223
+ }
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return [2 /*return*/, {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ }];
231
+ }
232
+ });
233
+ });
234
+ },
235
+ /**
236
+ * Deletes a product config version **Required Permissions** \"policy-management.products.delete\"
237
+ * @summary Delete the Product Config Version
238
+ * @param {string} code
239
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ deleteProductConfigVersion: function (code, authorization, options) {
244
+ if (options === void 0) { options = {}; }
245
+ return __awaiter(_this, void 0, void 0, function () {
246
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
247
+ return __generator(this, function (_a) {
248
+ switch (_a.label) {
249
+ case 0:
250
+ // verify required parameter 'code' is not null or undefined
251
+ (0, common_1.assertParamExists)('deleteProductConfigVersion', 'code', code);
252
+ localVarPath = "/insuranceservice/v1/product-configs/versions/{code}"
253
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
254
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
255
+ if (configuration) {
256
+ baseOptions = configuration.baseOptions;
257
+ baseAccessToken = configuration.accessToken;
258
+ }
259
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
260
+ localVarHeaderParameter = {};
261
+ localVarQueryParameter = {};
262
+ // authentication bearer required
263
+ // http bearer authentication required
264
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
265
+ case 1:
266
+ // authentication bearer required
267
+ // http bearer authentication required
268
+ _a.sent();
269
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
270
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
271
+ }
272
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
273
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
274
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
275
+ return [2 /*return*/, {
276
+ url: (0, common_1.toPathString)(localVarUrlObj),
277
+ options: localVarRequestOptions,
278
+ }];
279
+ }
280
+ });
281
+ });
282
+ },
283
+ /**
284
+ * Retrieves a product config by code **Required Permissions** \"policy-management.products.view\"
285
+ * @summary Retrieve the Product Config
286
+ * @param {string} code
287
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getProductConfig: function (code, authorization, options) {
292
+ if (options === void 0) { options = {}; }
293
+ return __awaiter(_this, void 0, void 0, function () {
294
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
297
+ case 0:
298
+ // verify required parameter 'code' is not null or undefined
299
+ (0, common_1.assertParamExists)('getProductConfig', 'code', code);
300
+ localVarPath = "/insuranceservice/v1/product-configs/{code}"
301
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
302
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
303
+ if (configuration) {
304
+ baseOptions = configuration.baseOptions;
305
+ baseAccessToken = configuration.accessToken;
306
+ }
307
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
308
+ localVarHeaderParameter = {};
309
+ localVarQueryParameter = {};
310
+ // authentication bearer required
311
+ // http bearer authentication required
312
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
313
+ case 1:
314
+ // authentication bearer required
315
+ // http bearer authentication required
316
+ _a.sent();
317
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
+ }
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
+ return [2 /*return*/, {
324
+ url: (0, common_1.toPathString)(localVarUrlObj),
325
+ options: localVarRequestOptions,
326
+ }];
327
+ }
328
+ });
329
+ });
330
+ },
331
+ /**
332
+ * Retrieves a product config version by code **Required Permissions** \"policy-management.products.view\"
333
+ * @summary Retrieve the Product Config Version
334
+ * @param {string} code
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ getProductConfigVersion: function (code, authorization, options) {
340
+ if (options === void 0) { options = {}; }
341
+ return __awaiter(_this, void 0, void 0, function () {
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0:
346
+ // verify required parameter 'code' is not null or undefined
347
+ (0, common_1.assertParamExists)('getProductConfigVersion', 'code', code);
348
+ localVarPath = "/insuranceservice/v1/product-configs/versions/{code}"
349
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
350
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ baseAccessToken = configuration.accessToken;
354
+ }
355
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
356
+ localVarHeaderParameter = {};
357
+ localVarQueryParameter = {};
358
+ // authentication bearer required
359
+ // http bearer authentication required
360
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
361
+ case 1:
362
+ // authentication bearer required
363
+ // http bearer authentication required
364
+ _a.sent();
365
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ }
368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
371
+ return [2 /*return*/, {
372
+ url: (0, common_1.toPathString)(localVarUrlObj),
373
+ options: localVarRequestOptions,
374
+ }];
375
+ }
376
+ });
377
+ });
378
+ },
379
+ /**
380
+ * Lists product config versions **Required Permissions** \"policy-management.products.view\"
381
+ * @summary List Product Config Versions
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
384
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
385
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
386
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
387
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, status, version, createdAt, updatedAt&lt;/i&gt;
388
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
389
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ listProductConfigVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
394
+ if (options === void 0) { options = {}; }
395
+ return __awaiter(_this, void 0, void 0, function () {
396
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
397
+ return __generator(this, function (_a) {
398
+ switch (_a.label) {
399
+ case 0:
400
+ localVarPath = "/insuranceservice/v1/product-configs/versions";
401
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
402
+ if (configuration) {
403
+ baseOptions = configuration.baseOptions;
404
+ baseAccessToken = configuration.accessToken;
405
+ }
406
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
407
+ localVarHeaderParameter = {};
408
+ localVarQueryParameter = {};
409
+ // authentication bearer required
410
+ // http bearer authentication required
411
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
412
+ case 1:
413
+ // authentication bearer required
414
+ // http bearer authentication required
415
+ _a.sent();
416
+ if (pageSize !== undefined) {
417
+ localVarQueryParameter['pageSize'] = pageSize;
418
+ }
419
+ if (pageToken !== undefined) {
420
+ localVarQueryParameter['pageToken'] = pageToken;
421
+ }
422
+ if (filter !== undefined) {
423
+ localVarQueryParameter['filter'] = filter;
424
+ }
425
+ if (search !== undefined) {
426
+ localVarQueryParameter['search'] = search;
427
+ }
428
+ if (order !== undefined) {
429
+ localVarQueryParameter['order'] = order;
430
+ }
431
+ if (expand !== undefined) {
432
+ localVarQueryParameter['expand'] = expand;
433
+ }
434
+ if (filters !== undefined) {
435
+ localVarQueryParameter['filters'] = filters;
436
+ }
437
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
438
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
439
+ }
440
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
441
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
442
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
443
+ return [2 /*return*/, {
444
+ url: (0, common_1.toPathString)(localVarUrlObj),
445
+ options: localVarRequestOptions,
446
+ }];
447
+ }
448
+ });
449
+ });
450
+ },
451
+ /**
452
+ * Lists product configs **Required Permissions** \"policy-management.products.view\"
453
+ * @summary List Product Configs
454
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
456
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
457
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
458
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
459
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
460
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions&lt;i&gt;
461
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ listProductConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
466
+ if (options === void 0) { options = {}; }
467
+ return __awaiter(_this, void 0, void 0, function () {
468
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
469
+ return __generator(this, function (_a) {
470
+ switch (_a.label) {
471
+ case 0:
472
+ localVarPath = "/insuranceservice/v1/product-configs";
473
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
474
+ if (configuration) {
475
+ baseOptions = configuration.baseOptions;
476
+ baseAccessToken = configuration.accessToken;
477
+ }
478
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
479
+ localVarHeaderParameter = {};
480
+ localVarQueryParameter = {};
481
+ // authentication bearer required
482
+ // http bearer authentication required
483
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
484
+ case 1:
485
+ // authentication bearer required
486
+ // http bearer authentication required
487
+ _a.sent();
488
+ if (pageSize !== undefined) {
489
+ localVarQueryParameter['pageSize'] = pageSize;
490
+ }
491
+ if (pageToken !== undefined) {
492
+ localVarQueryParameter['pageToken'] = pageToken;
493
+ }
494
+ if (filter !== undefined) {
495
+ localVarQueryParameter['filter'] = filter;
496
+ }
497
+ if (search !== undefined) {
498
+ localVarQueryParameter['search'] = search;
499
+ }
500
+ if (order !== undefined) {
501
+ localVarQueryParameter['order'] = order;
502
+ }
503
+ if (expand !== undefined) {
504
+ localVarQueryParameter['expand'] = expand;
505
+ }
506
+ if (filters !== undefined) {
507
+ localVarQueryParameter['filters'] = filters;
508
+ }
509
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
510
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
511
+ }
512
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
513
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
514
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
515
+ return [2 /*return*/, {
516
+ url: (0, common_1.toPathString)(localVarUrlObj),
517
+ options: localVarRequestOptions,
518
+ }];
519
+ }
520
+ });
521
+ });
522
+ },
523
+ /**
524
+ * Updates a product config **Required Permissions** \"policy-management.products.update\"
525
+ * @summary Update the Product Config
526
+ * @param {string} code
527
+ * @param {UpdateProductConfigRequestDto} updateProductConfigRequestDto
528
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ updateProductConfig: function (code, updateProductConfigRequestDto, authorization, options) {
533
+ if (options === void 0) { options = {}; }
534
+ return __awaiter(_this, void 0, void 0, function () {
535
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
536
+ return __generator(this, function (_a) {
537
+ switch (_a.label) {
538
+ case 0:
539
+ // verify required parameter 'code' is not null or undefined
540
+ (0, common_1.assertParamExists)('updateProductConfig', 'code', code);
541
+ // verify required parameter 'updateProductConfigRequestDto' is not null or undefined
542
+ (0, common_1.assertParamExists)('updateProductConfig', 'updateProductConfigRequestDto', updateProductConfigRequestDto);
543
+ localVarPath = "/insuranceservice/v1/product-configs/{code}"
544
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
545
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
546
+ if (configuration) {
547
+ baseOptions = configuration.baseOptions;
548
+ baseAccessToken = configuration.accessToken;
549
+ }
550
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
551
+ localVarHeaderParameter = {};
552
+ localVarQueryParameter = {};
553
+ // authentication bearer required
554
+ // http bearer authentication required
555
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
556
+ case 1:
557
+ // authentication bearer required
558
+ // http bearer authentication required
559
+ _a.sent();
560
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
561
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
562
+ }
563
+ localVarHeaderParameter['Content-Type'] = 'application/json';
564
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
565
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
567
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductConfigRequestDto, localVarRequestOptions, configuration);
568
+ return [2 /*return*/, {
569
+ url: (0, common_1.toPathString)(localVarUrlObj),
570
+ options: localVarRequestOptions,
571
+ }];
572
+ }
573
+ });
574
+ });
575
+ },
576
+ /**
577
+ * Updates a draft product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: file **Required Permissions** \"policy-management.products.update\"
578
+ * @summary Updates a draft product config version
579
+ * @param {string} code
580
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ updateProductConfigVersion: function (code, authorization, options) {
585
+ if (options === void 0) { options = {}; }
586
+ return __awaiter(_this, void 0, void 0, function () {
587
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
588
+ return __generator(this, function (_a) {
589
+ switch (_a.label) {
590
+ case 0:
591
+ // verify required parameter 'code' is not null or undefined
592
+ (0, common_1.assertParamExists)('updateProductConfigVersion', 'code', code);
593
+ localVarPath = "/insuranceservice/v1/product-configs/versions/{code}"
594
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
595
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
596
+ if (configuration) {
597
+ baseOptions = configuration.baseOptions;
598
+ baseAccessToken = configuration.accessToken;
599
+ }
600
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
601
+ localVarHeaderParameter = {};
602
+ localVarQueryParameter = {};
603
+ // authentication bearer required
604
+ // http bearer authentication required
605
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
606
+ case 1:
607
+ // authentication bearer required
608
+ // http bearer authentication required
609
+ _a.sent();
610
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
611
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
612
+ }
613
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
614
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
615
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
616
+ return [2 /*return*/, {
617
+ url: (0, common_1.toPathString)(localVarUrlObj),
618
+ options: localVarRequestOptions,
619
+ }];
620
+ }
621
+ });
622
+ });
623
+ },
624
+ /**
625
+ * Updates the status of a product config version **Required Permissions** \"policy-management.products.update\"
626
+ * @summary Update the Product Config Version Status
627
+ * @param {string} code
628
+ * @param {UpdateProductConfigVersionStatusRequestDto} updateProductConfigVersionStatusRequestDto
629
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ updateProductConfigVersionStatus: function (code, updateProductConfigVersionStatusRequestDto, authorization, options) {
634
+ if (options === void 0) { options = {}; }
635
+ return __awaiter(_this, void 0, void 0, function () {
636
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
637
+ return __generator(this, function (_a) {
638
+ switch (_a.label) {
639
+ case 0:
640
+ // verify required parameter 'code' is not null or undefined
641
+ (0, common_1.assertParamExists)('updateProductConfigVersionStatus', 'code', code);
642
+ // verify required parameter 'updateProductConfigVersionStatusRequestDto' is not null or undefined
643
+ (0, common_1.assertParamExists)('updateProductConfigVersionStatus', 'updateProductConfigVersionStatusRequestDto', updateProductConfigVersionStatusRequestDto);
644
+ localVarPath = "/insuranceservice/v1/product-configs/versions/{code}/status"
645
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
646
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
647
+ if (configuration) {
648
+ baseOptions = configuration.baseOptions;
649
+ baseAccessToken = configuration.accessToken;
650
+ }
651
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
652
+ localVarHeaderParameter = {};
653
+ localVarQueryParameter = {};
654
+ // authentication bearer required
655
+ // http bearer authentication required
656
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
657
+ case 1:
658
+ // authentication bearer required
659
+ // http bearer authentication required
660
+ _a.sent();
661
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
662
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
663
+ }
664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
665
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
666
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
667
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
668
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductConfigVersionStatusRequestDto, localVarRequestOptions, configuration);
669
+ return [2 /*return*/, {
670
+ url: (0, common_1.toPathString)(localVarUrlObj),
671
+ options: localVarRequestOptions,
672
+ }];
673
+ }
674
+ });
675
+ });
676
+ },
677
+ };
678
+ };
679
+ exports.ProductConfigsApiAxiosParamCreator = ProductConfigsApiAxiosParamCreator;
680
+ /**
681
+ * ProductConfigsApi - functional programming interface
682
+ * @export
683
+ */
684
+ var ProductConfigsApiFp = function (configuration) {
685
+ var localVarAxiosParamCreator = (0, exports.ProductConfigsApiAxiosParamCreator)(configuration);
686
+ return {
687
+ /**
688
+ * Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml. Required fields: slug, productVersionId, file **Required Permissions** \"policy-management.products.create\"
689
+ * @summary Creates a new product config with initial version
690
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ createProductConfig: function (authorization, options) {
695
+ return __awaiter(this, void 0, void 0, function () {
696
+ var localVarAxiosArgs;
697
+ return __generator(this, function (_a) {
698
+ switch (_a.label) {
699
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductConfig(authorization, options)];
700
+ case 1:
701
+ localVarAxiosArgs = _a.sent();
702
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
703
+ }
704
+ });
705
+ });
706
+ },
707
+ /**
708
+ * Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: productConfigCode, file **Required Permissions** \"policy-management.products.create\"
709
+ * @summary Creates a new version for a product config
710
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ createProductConfigVersion: function (authorization, options) {
715
+ return __awaiter(this, void 0, void 0, function () {
716
+ var localVarAxiosArgs;
717
+ return __generator(this, function (_a) {
718
+ switch (_a.label) {
719
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductConfigVersion(authorization, options)];
720
+ case 1:
721
+ localVarAxiosArgs = _a.sent();
722
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
723
+ }
724
+ });
725
+ });
726
+ },
727
+ /**
728
+ * Deletes a product config **Required Permissions** \"policy-management.products.delete\"
729
+ * @summary Delete the Product Config
730
+ * @param {string} code
731
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ deleteProductConfig: function (code, authorization, options) {
736
+ return __awaiter(this, void 0, void 0, function () {
737
+ var localVarAxiosArgs;
738
+ return __generator(this, function (_a) {
739
+ switch (_a.label) {
740
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductConfig(code, authorization, options)];
741
+ case 1:
742
+ localVarAxiosArgs = _a.sent();
743
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
744
+ }
745
+ });
746
+ });
747
+ },
748
+ /**
749
+ * Deletes a product config version **Required Permissions** \"policy-management.products.delete\"
750
+ * @summary Delete the Product Config Version
751
+ * @param {string} code
752
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ */
756
+ deleteProductConfigVersion: function (code, authorization, options) {
757
+ return __awaiter(this, void 0, void 0, function () {
758
+ var localVarAxiosArgs;
759
+ return __generator(this, function (_a) {
760
+ switch (_a.label) {
761
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductConfigVersion(code, authorization, options)];
762
+ case 1:
763
+ localVarAxiosArgs = _a.sent();
764
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
765
+ }
766
+ });
767
+ });
768
+ },
769
+ /**
770
+ * Retrieves a product config by code **Required Permissions** \"policy-management.products.view\"
771
+ * @summary Retrieve the Product Config
772
+ * @param {string} code
773
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ getProductConfig: function (code, authorization, options) {
778
+ return __awaiter(this, void 0, void 0, function () {
779
+ var localVarAxiosArgs;
780
+ return __generator(this, function (_a) {
781
+ switch (_a.label) {
782
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductConfig(code, authorization, options)];
783
+ case 1:
784
+ localVarAxiosArgs = _a.sent();
785
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
786
+ }
787
+ });
788
+ });
789
+ },
790
+ /**
791
+ * Retrieves a product config version by code **Required Permissions** \"policy-management.products.view\"
792
+ * @summary Retrieve the Product Config Version
793
+ * @param {string} code
794
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ getProductConfigVersion: function (code, authorization, options) {
799
+ return __awaiter(this, void 0, void 0, function () {
800
+ var localVarAxiosArgs;
801
+ return __generator(this, function (_a) {
802
+ switch (_a.label) {
803
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductConfigVersion(code, authorization, options)];
804
+ case 1:
805
+ localVarAxiosArgs = _a.sent();
806
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
807
+ }
808
+ });
809
+ });
810
+ },
811
+ /**
812
+ * Lists product config versions **Required Permissions** \"policy-management.products.view\"
813
+ * @summary List Product Config Versions
814
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
815
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
816
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
817
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
818
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
819
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, status, version, createdAt, updatedAt&lt;/i&gt;
820
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
821
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ listProductConfigVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
826
+ return __awaiter(this, void 0, void 0, function () {
827
+ var localVarAxiosArgs;
828
+ return __generator(this, function (_a) {
829
+ switch (_a.label) {
830
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductConfigVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
831
+ case 1:
832
+ localVarAxiosArgs = _a.sent();
833
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
834
+ }
835
+ });
836
+ });
837
+ },
838
+ /**
839
+ * Lists product configs **Required Permissions** \"policy-management.products.view\"
840
+ * @summary List Product Configs
841
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
842
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
843
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
844
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
845
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
846
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
847
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions&lt;i&gt;
848
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ listProductConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
853
+ return __awaiter(this, void 0, void 0, function () {
854
+ var localVarAxiosArgs;
855
+ return __generator(this, function (_a) {
856
+ switch (_a.label) {
857
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
858
+ case 1:
859
+ localVarAxiosArgs = _a.sent();
860
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
861
+ }
862
+ });
863
+ });
864
+ },
865
+ /**
866
+ * Updates a product config **Required Permissions** \"policy-management.products.update\"
867
+ * @summary Update the Product Config
868
+ * @param {string} code
869
+ * @param {UpdateProductConfigRequestDto} updateProductConfigRequestDto
870
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ updateProductConfig: function (code, updateProductConfigRequestDto, authorization, options) {
875
+ return __awaiter(this, void 0, void 0, function () {
876
+ var localVarAxiosArgs;
877
+ return __generator(this, function (_a) {
878
+ switch (_a.label) {
879
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductConfig(code, updateProductConfigRequestDto, authorization, options)];
880
+ case 1:
881
+ localVarAxiosArgs = _a.sent();
882
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
883
+ }
884
+ });
885
+ });
886
+ },
887
+ /**
888
+ * Updates a draft product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: file **Required Permissions** \"policy-management.products.update\"
889
+ * @summary Updates a draft product config version
890
+ * @param {string} code
891
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ updateProductConfigVersion: function (code, authorization, options) {
896
+ return __awaiter(this, void 0, void 0, function () {
897
+ var localVarAxiosArgs;
898
+ return __generator(this, function (_a) {
899
+ switch (_a.label) {
900
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductConfigVersion(code, authorization, options)];
901
+ case 1:
902
+ localVarAxiosArgs = _a.sent();
903
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
904
+ }
905
+ });
906
+ });
907
+ },
908
+ /**
909
+ * Updates the status of a product config version **Required Permissions** \"policy-management.products.update\"
910
+ * @summary Update the Product Config Version Status
911
+ * @param {string} code
912
+ * @param {UpdateProductConfigVersionStatusRequestDto} updateProductConfigVersionStatusRequestDto
913
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ updateProductConfigVersionStatus: function (code, updateProductConfigVersionStatusRequestDto, authorization, options) {
918
+ return __awaiter(this, void 0, void 0, function () {
919
+ var localVarAxiosArgs;
920
+ return __generator(this, function (_a) {
921
+ switch (_a.label) {
922
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductConfigVersionStatus(code, updateProductConfigVersionStatusRequestDto, authorization, options)];
923
+ case 1:
924
+ localVarAxiosArgs = _a.sent();
925
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
926
+ }
927
+ });
928
+ });
929
+ },
930
+ };
931
+ };
932
+ exports.ProductConfigsApiFp = ProductConfigsApiFp;
933
+ /**
934
+ * ProductConfigsApi - factory interface
935
+ * @export
936
+ */
937
+ var ProductConfigsApiFactory = function (configuration, basePath, axios) {
938
+ var localVarFp = (0, exports.ProductConfigsApiFp)(configuration);
939
+ return {
940
+ /**
941
+ * Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml. Required fields: slug, productVersionId, file **Required Permissions** \"policy-management.products.create\"
942
+ * @summary Creates a new product config with initial version
943
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ createProductConfig: function (authorization, options) {
948
+ return localVarFp.createProductConfig(authorization, options).then(function (request) { return request(axios, basePath); });
949
+ },
950
+ /**
951
+ * Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: productConfigCode, file **Required Permissions** \"policy-management.products.create\"
952
+ * @summary Creates a new version for a product config
953
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ */
957
+ createProductConfigVersion: function (authorization, options) {
958
+ return localVarFp.createProductConfigVersion(authorization, options).then(function (request) { return request(axios, basePath); });
959
+ },
960
+ /**
961
+ * Deletes a product config **Required Permissions** \"policy-management.products.delete\"
962
+ * @summary Delete the Product Config
963
+ * @param {string} code
964
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ deleteProductConfig: function (code, authorization, options) {
969
+ return localVarFp.deleteProductConfig(code, authorization, options).then(function (request) { return request(axios, basePath); });
970
+ },
971
+ /**
972
+ * Deletes a product config version **Required Permissions** \"policy-management.products.delete\"
973
+ * @summary Delete the Product Config Version
974
+ * @param {string} code
975
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
976
+ * @param {*} [options] Override http request option.
977
+ * @throws {RequiredError}
978
+ */
979
+ deleteProductConfigVersion: function (code, authorization, options) {
980
+ return localVarFp.deleteProductConfigVersion(code, authorization, options).then(function (request) { return request(axios, basePath); });
981
+ },
982
+ /**
983
+ * Retrieves a product config by code **Required Permissions** \"policy-management.products.view\"
984
+ * @summary Retrieve the Product Config
985
+ * @param {string} code
986
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ getProductConfig: function (code, authorization, options) {
991
+ return localVarFp.getProductConfig(code, authorization, options).then(function (request) { return request(axios, basePath); });
992
+ },
993
+ /**
994
+ * Retrieves a product config version by code **Required Permissions** \"policy-management.products.view\"
995
+ * @summary Retrieve the Product Config Version
996
+ * @param {string} code
997
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
998
+ * @param {*} [options] Override http request option.
999
+ * @throws {RequiredError}
1000
+ */
1001
+ getProductConfigVersion: function (code, authorization, options) {
1002
+ return localVarFp.getProductConfigVersion(code, authorization, options).then(function (request) { return request(axios, basePath); });
1003
+ },
1004
+ /**
1005
+ * Lists product config versions **Required Permissions** \"policy-management.products.view\"
1006
+ * @summary List Product Config Versions
1007
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1008
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1009
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1010
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
1011
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1012
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, status, version, createdAt, updatedAt&lt;/i&gt;
1013
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
1014
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productConfigCode, status, version, createdAt&lt;/i&gt;
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ listProductConfigVersions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1019
+ return localVarFp.listProductConfigVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1020
+ },
1021
+ /**
1022
+ * Lists product configs **Required Permissions** \"policy-management.products.view\"
1023
+ * @summary List Product Configs
1024
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1025
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1026
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1027
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
1028
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1029
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
1030
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions&lt;i&gt;
1031
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, slug, productSlug, productVersionId, createdAt&lt;/i&gt;
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ listProductConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1036
+ return localVarFp.listProductConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1037
+ },
1038
+ /**
1039
+ * Updates a product config **Required Permissions** \"policy-management.products.update\"
1040
+ * @summary Update the Product Config
1041
+ * @param {string} code
1042
+ * @param {UpdateProductConfigRequestDto} updateProductConfigRequestDto
1043
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ updateProductConfig: function (code, updateProductConfigRequestDto, authorization, options) {
1048
+ return localVarFp.updateProductConfig(code, updateProductConfigRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1049
+ },
1050
+ /**
1051
+ * Updates a draft product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: file **Required Permissions** \"policy-management.products.update\"
1052
+ * @summary Updates a draft product config version
1053
+ * @param {string} code
1054
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1055
+ * @param {*} [options] Override http request option.
1056
+ * @throws {RequiredError}
1057
+ */
1058
+ updateProductConfigVersion: function (code, authorization, options) {
1059
+ return localVarFp.updateProductConfigVersion(code, authorization, options).then(function (request) { return request(axios, basePath); });
1060
+ },
1061
+ /**
1062
+ * Updates the status of a product config version **Required Permissions** \"policy-management.products.update\"
1063
+ * @summary Update the Product Config Version Status
1064
+ * @param {string} code
1065
+ * @param {UpdateProductConfigVersionStatusRequestDto} updateProductConfigVersionStatusRequestDto
1066
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ updateProductConfigVersionStatus: function (code, updateProductConfigVersionStatusRequestDto, authorization, options) {
1071
+ return localVarFp.updateProductConfigVersionStatus(code, updateProductConfigVersionStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1072
+ },
1073
+ };
1074
+ };
1075
+ exports.ProductConfigsApiFactory = ProductConfigsApiFactory;
1076
+ /**
1077
+ * ProductConfigsApi - object-oriented interface
1078
+ * @export
1079
+ * @class ProductConfigsApi
1080
+ * @extends {BaseAPI}
1081
+ */
1082
+ var ProductConfigsApi = /** @class */ (function (_super) {
1083
+ __extends(ProductConfigsApi, _super);
1084
+ function ProductConfigsApi() {
1085
+ return _super !== null && _super.apply(this, arguments) || this;
1086
+ }
1087
+ /**
1088
+ * Creates a product config. Accepts a JSON or YAML file containing the initial config version. Supported formats: .json, .yaml, .yml. Required fields: slug, productVersionId, file **Required Permissions** \"policy-management.products.create\"
1089
+ * @summary Creates a new product config with initial version
1090
+ * @param {ProductConfigsApiCreateProductConfigRequest} requestParameters Request parameters.
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ * @memberof ProductConfigsApi
1094
+ */
1095
+ ProductConfigsApi.prototype.createProductConfig = function (requestParameters, options) {
1096
+ var _this = this;
1097
+ if (requestParameters === void 0) { requestParameters = {}; }
1098
+ return (0, exports.ProductConfigsApiFp)(this.configuration).createProductConfig(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1099
+ };
1100
+ /**
1101
+ * Creates a new product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: productConfigCode, file **Required Permissions** \"policy-management.products.create\"
1102
+ * @summary Creates a new version for a product config
1103
+ * @param {ProductConfigsApiCreateProductConfigVersionRequest} requestParameters Request parameters.
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ * @memberof ProductConfigsApi
1107
+ */
1108
+ ProductConfigsApi.prototype.createProductConfigVersion = function (requestParameters, options) {
1109
+ var _this = this;
1110
+ if (requestParameters === void 0) { requestParameters = {}; }
1111
+ return (0, exports.ProductConfigsApiFp)(this.configuration).createProductConfigVersion(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1112
+ };
1113
+ /**
1114
+ * Deletes a product config **Required Permissions** \"policy-management.products.delete\"
1115
+ * @summary Delete the Product Config
1116
+ * @param {ProductConfigsApiDeleteProductConfigRequest} requestParameters Request parameters.
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ * @memberof ProductConfigsApi
1120
+ */
1121
+ ProductConfigsApi.prototype.deleteProductConfig = function (requestParameters, options) {
1122
+ var _this = this;
1123
+ return (0, exports.ProductConfigsApiFp)(this.configuration).deleteProductConfig(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1124
+ };
1125
+ /**
1126
+ * Deletes a product config version **Required Permissions** \"policy-management.products.delete\"
1127
+ * @summary Delete the Product Config Version
1128
+ * @param {ProductConfigsApiDeleteProductConfigVersionRequest} requestParameters Request parameters.
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ * @memberof ProductConfigsApi
1132
+ */
1133
+ ProductConfigsApi.prototype.deleteProductConfigVersion = function (requestParameters, options) {
1134
+ var _this = this;
1135
+ return (0, exports.ProductConfigsApiFp)(this.configuration).deleteProductConfigVersion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1136
+ };
1137
+ /**
1138
+ * Retrieves a product config by code **Required Permissions** \"policy-management.products.view\"
1139
+ * @summary Retrieve the Product Config
1140
+ * @param {ProductConfigsApiGetProductConfigRequest} requestParameters Request parameters.
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ * @memberof ProductConfigsApi
1144
+ */
1145
+ ProductConfigsApi.prototype.getProductConfig = function (requestParameters, options) {
1146
+ var _this = this;
1147
+ return (0, exports.ProductConfigsApiFp)(this.configuration).getProductConfig(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1148
+ };
1149
+ /**
1150
+ * Retrieves a product config version by code **Required Permissions** \"policy-management.products.view\"
1151
+ * @summary Retrieve the Product Config Version
1152
+ * @param {ProductConfigsApiGetProductConfigVersionRequest} requestParameters Request parameters.
1153
+ * @param {*} [options] Override http request option.
1154
+ * @throws {RequiredError}
1155
+ * @memberof ProductConfigsApi
1156
+ */
1157
+ ProductConfigsApi.prototype.getProductConfigVersion = function (requestParameters, options) {
1158
+ var _this = this;
1159
+ return (0, exports.ProductConfigsApiFp)(this.configuration).getProductConfigVersion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1160
+ };
1161
+ /**
1162
+ * Lists product config versions **Required Permissions** \"policy-management.products.view\"
1163
+ * @summary List Product Config Versions
1164
+ * @param {ProductConfigsApiListProductConfigVersionsRequest} requestParameters Request parameters.
1165
+ * @param {*} [options] Override http request option.
1166
+ * @throws {RequiredError}
1167
+ * @memberof ProductConfigsApi
1168
+ */
1169
+ ProductConfigsApi.prototype.listProductConfigVersions = function (requestParameters, options) {
1170
+ var _this = this;
1171
+ if (requestParameters === void 0) { requestParameters = {}; }
1172
+ return (0, exports.ProductConfigsApiFp)(this.configuration).listProductConfigVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1173
+ };
1174
+ /**
1175
+ * Lists product configs **Required Permissions** \"policy-management.products.view\"
1176
+ * @summary List Product Configs
1177
+ * @param {ProductConfigsApiListProductConfigsRequest} requestParameters Request parameters.
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ * @memberof ProductConfigsApi
1181
+ */
1182
+ ProductConfigsApi.prototype.listProductConfigs = function (requestParameters, options) {
1183
+ var _this = this;
1184
+ if (requestParameters === void 0) { requestParameters = {}; }
1185
+ return (0, exports.ProductConfigsApiFp)(this.configuration).listProductConfigs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1186
+ };
1187
+ /**
1188
+ * Updates a product config **Required Permissions** \"policy-management.products.update\"
1189
+ * @summary Update the Product Config
1190
+ * @param {ProductConfigsApiUpdateProductConfigRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof ProductConfigsApi
1194
+ */
1195
+ ProductConfigsApi.prototype.updateProductConfig = function (requestParameters, options) {
1196
+ var _this = this;
1197
+ return (0, exports.ProductConfigsApiFp)(this.configuration).updateProductConfig(requestParameters.code, requestParameters.updateProductConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1198
+ };
1199
+ /**
1200
+ * Updates a draft product config version. Accepts a JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml Required fields: file **Required Permissions** \"policy-management.products.update\"
1201
+ * @summary Updates a draft product config version
1202
+ * @param {ProductConfigsApiUpdateProductConfigVersionRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ * @memberof ProductConfigsApi
1206
+ */
1207
+ ProductConfigsApi.prototype.updateProductConfigVersion = function (requestParameters, options) {
1208
+ var _this = this;
1209
+ return (0, exports.ProductConfigsApiFp)(this.configuration).updateProductConfigVersion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1210
+ };
1211
+ /**
1212
+ * Updates the status of a product config version **Required Permissions** \"policy-management.products.update\"
1213
+ * @summary Update the Product Config Version Status
1214
+ * @param {ProductConfigsApiUpdateProductConfigVersionStatusRequest} requestParameters Request parameters.
1215
+ * @param {*} [options] Override http request option.
1216
+ * @throws {RequiredError}
1217
+ * @memberof ProductConfigsApi
1218
+ */
1219
+ ProductConfigsApi.prototype.updateProductConfigVersionStatus = function (requestParameters, options) {
1220
+ var _this = this;
1221
+ return (0, exports.ProductConfigsApiFp)(this.configuration).updateProductConfigVersionStatus(requestParameters.code, requestParameters.updateProductConfigVersionStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1222
+ };
1223
+ return ProductConfigsApi;
1224
+ }(base_1.BaseAPI));
1225
+ exports.ProductConfigsApi = ProductConfigsApi;