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