system-initiative-api-client 0.0.1

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.
@@ -0,0 +1,2579 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * System Initiative API
6
+ * The API Server for interacting with a System Initiative workspace
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SocketDirection = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("./common");
24
+ // @ts-ignore
25
+ const base_1 = require("./base");
26
+ /**
27
+ *
28
+ * @export
29
+ * @enum {string}
30
+ */
31
+ var SocketDirection;
32
+ (function (SocketDirection) {
33
+ SocketDirection["INPUT"] = "input";
34
+ SocketDirection["OUTPUT"] = "output";
35
+ })(SocketDirection || (exports.SocketDirection = SocketDirection = {}));
36
+ /**
37
+ * ActionsApi - axios parameter creator
38
+ * @export
39
+ */
40
+ const ActionsApiAxiosParamCreator = function (configuration) {
41
+ return {
42
+ /**
43
+ *
44
+ * @param {string} workspaceId Workspace identifier
45
+ * @param {string} changeSetId Change set identifier
46
+ * @param {string} actionId Action identifier
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ cancelAction: async (workspaceId, changeSetId, actionId, options = {}) => {
51
+ // verify required parameter 'workspaceId' is not null or undefined
52
+ (0, common_1.assertParamExists)('cancelAction', 'workspaceId', workspaceId);
53
+ // verify required parameter 'changeSetId' is not null or undefined
54
+ (0, common_1.assertParamExists)('cancelAction', 'changeSetId', changeSetId);
55
+ // verify required parameter 'actionId' is not null or undefined
56
+ (0, common_1.assertParamExists)('cancelAction', 'actionId', actionId);
57
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/cancel`
58
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
59
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
60
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
61
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
63
+ let baseOptions;
64
+ if (configuration) {
65
+ baseOptions = configuration.baseOptions;
66
+ }
67
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
68
+ const localVarHeaderParameter = {};
69
+ const localVarQueryParameter = {};
70
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
73
+ return {
74
+ url: (0, common_1.toPathString)(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ },
78
+ /**
79
+ *
80
+ * @param {string} workspaceId Workspace identifier
81
+ * @param {string} changeSetId Change set identifier
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ getActions: async (workspaceId, changeSetId, options = {}) => {
86
+ // verify required parameter 'workspaceId' is not null or undefined
87
+ (0, common_1.assertParamExists)('getActions', 'workspaceId', workspaceId);
88
+ // verify required parameter 'changeSetId' is not null or undefined
89
+ (0, common_1.assertParamExists)('getActions', 'changeSetId', changeSetId);
90
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/`
91
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
92
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
93
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
95
+ let baseOptions;
96
+ if (configuration) {
97
+ baseOptions = configuration.baseOptions;
98
+ }
99
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
100
+ const localVarHeaderParameter = {};
101
+ const localVarQueryParameter = {};
102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
105
+ return {
106
+ url: (0, common_1.toPathString)(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ },
110
+ /**
111
+ *
112
+ * @param {string} workspaceId Workspace identifier
113
+ * @param {string} changeSetId Change set identifier
114
+ * @param {string} actionId Action identifier
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ putOnHold: async (workspaceId, changeSetId, actionId, options = {}) => {
119
+ // verify required parameter 'workspaceId' is not null or undefined
120
+ (0, common_1.assertParamExists)('putOnHold', 'workspaceId', workspaceId);
121
+ // verify required parameter 'changeSetId' is not null or undefined
122
+ (0, common_1.assertParamExists)('putOnHold', 'changeSetId', changeSetId);
123
+ // verify required parameter 'actionId' is not null or undefined
124
+ (0, common_1.assertParamExists)('putOnHold', 'actionId', actionId);
125
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/put_on_hold`
126
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
127
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
128
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
136
+ const localVarHeaderParameter = {};
137
+ const localVarQueryParameter = {};
138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
141
+ return {
142
+ url: (0, common_1.toPathString)(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ };
145
+ },
146
+ /**
147
+ *
148
+ * @param {string} workspaceId Workspace identifier
149
+ * @param {string} changeSetId Change set identifier
150
+ * @param {string} actionId Action identifier
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ retryAction: async (workspaceId, changeSetId, actionId, options = {}) => {
155
+ // verify required parameter 'workspaceId' is not null or undefined
156
+ (0, common_1.assertParamExists)('retryAction', 'workspaceId', workspaceId);
157
+ // verify required parameter 'changeSetId' is not null or undefined
158
+ (0, common_1.assertParamExists)('retryAction', 'changeSetId', changeSetId);
159
+ // verify required parameter 'actionId' is not null or undefined
160
+ (0, common_1.assertParamExists)('retryAction', 'actionId', actionId);
161
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/retry`
162
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
163
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
164
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ let baseOptions;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ }
171
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
172
+ const localVarHeaderParameter = {};
173
+ const localVarQueryParameter = {};
174
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
177
+ return {
178
+ url: (0, common_1.toPathString)(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ };
183
+ };
184
+ exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
185
+ /**
186
+ * ActionsApi - functional programming interface
187
+ * @export
188
+ */
189
+ const ActionsApiFp = function (configuration) {
190
+ const localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
191
+ return {
192
+ /**
193
+ *
194
+ * @param {string} workspaceId Workspace identifier
195
+ * @param {string} changeSetId Change set identifier
196
+ * @param {string} actionId Action identifier
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ async cancelAction(workspaceId, changeSetId, actionId, options) {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelAction(workspaceId, changeSetId, actionId, options);
202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
203
+ const localVarOperationServerBasePath = base_1.operationServerMap['ActionsApi.cancelAction']?.[localVarOperationServerIndex]?.url;
204
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
205
+ },
206
+ /**
207
+ *
208
+ * @param {string} workspaceId Workspace identifier
209
+ * @param {string} changeSetId Change set identifier
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ async getActions(workspaceId, changeSetId, options) {
214
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActions(workspaceId, changeSetId, options);
215
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
216
+ const localVarOperationServerBasePath = base_1.operationServerMap['ActionsApi.getActions']?.[localVarOperationServerIndex]?.url;
217
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
218
+ },
219
+ /**
220
+ *
221
+ * @param {string} workspaceId Workspace identifier
222
+ * @param {string} changeSetId Change set identifier
223
+ * @param {string} actionId Action identifier
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ async putOnHold(workspaceId, changeSetId, actionId, options) {
228
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putOnHold(workspaceId, changeSetId, actionId, options);
229
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
230
+ const localVarOperationServerBasePath = base_1.operationServerMap['ActionsApi.putOnHold']?.[localVarOperationServerIndex]?.url;
231
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
232
+ },
233
+ /**
234
+ *
235
+ * @param {string} workspaceId Workspace identifier
236
+ * @param {string} changeSetId Change set identifier
237
+ * @param {string} actionId Action identifier
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ async retryAction(workspaceId, changeSetId, actionId, options) {
242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryAction(workspaceId, changeSetId, actionId, options);
243
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
244
+ const localVarOperationServerBasePath = base_1.operationServerMap['ActionsApi.retryAction']?.[localVarOperationServerIndex]?.url;
245
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
246
+ },
247
+ };
248
+ };
249
+ exports.ActionsApiFp = ActionsApiFp;
250
+ /**
251
+ * ActionsApi - factory interface
252
+ * @export
253
+ */
254
+ const ActionsApiFactory = function (configuration, basePath, axios) {
255
+ const localVarFp = (0, exports.ActionsApiFp)(configuration);
256
+ return {
257
+ /**
258
+ *
259
+ * @param {ActionsApiCancelActionRequest} requestParameters Request parameters.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ cancelAction(requestParameters, options) {
264
+ return localVarFp.cancelAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
265
+ },
266
+ /**
267
+ *
268
+ * @param {ActionsApiGetActionsRequest} requestParameters Request parameters.
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ getActions(requestParameters, options) {
273
+ return localVarFp.getActions(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
274
+ },
275
+ /**
276
+ *
277
+ * @param {ActionsApiPutOnHoldRequest} requestParameters Request parameters.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ putOnHold(requestParameters, options) {
282
+ return localVarFp.putOnHold(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
283
+ },
284
+ /**
285
+ *
286
+ * @param {ActionsApiRetryActionRequest} requestParameters Request parameters.
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ retryAction(requestParameters, options) {
291
+ return localVarFp.retryAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
292
+ },
293
+ };
294
+ };
295
+ exports.ActionsApiFactory = ActionsApiFactory;
296
+ /**
297
+ * ActionsApi - object-oriented interface
298
+ * @export
299
+ * @class ActionsApi
300
+ * @extends {BaseAPI}
301
+ */
302
+ class ActionsApi extends base_1.BaseAPI {
303
+ /**
304
+ *
305
+ * @param {ActionsApiCancelActionRequest} requestParameters Request parameters.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ * @memberof ActionsApi
309
+ */
310
+ cancelAction(requestParameters, options) {
311
+ return (0, exports.ActionsApiFp)(this.configuration).cancelAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
312
+ }
313
+ /**
314
+ *
315
+ * @param {ActionsApiGetActionsRequest} requestParameters Request parameters.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ * @memberof ActionsApi
319
+ */
320
+ getActions(requestParameters, options) {
321
+ return (0, exports.ActionsApiFp)(this.configuration).getActions(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
322
+ }
323
+ /**
324
+ *
325
+ * @param {ActionsApiPutOnHoldRequest} requestParameters Request parameters.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ * @memberof ActionsApi
329
+ */
330
+ putOnHold(requestParameters, options) {
331
+ return (0, exports.ActionsApiFp)(this.configuration).putOnHold(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
332
+ }
333
+ /**
334
+ *
335
+ * @param {ActionsApiRetryActionRequest} requestParameters Request parameters.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ * @memberof ActionsApi
339
+ */
340
+ retryAction(requestParameters, options) {
341
+ return (0, exports.ActionsApiFp)(this.configuration).retryAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
342
+ }
343
+ }
344
+ exports.ActionsApi = ActionsApi;
345
+ /**
346
+ * ChangeSetsApi - axios parameter creator
347
+ * @export
348
+ */
349
+ const ChangeSetsApiAxiosParamCreator = function (configuration) {
350
+ return {
351
+ /**
352
+ *
353
+ * @param {string} workspaceId Workspace identifier
354
+ * @param {string} changeSetId Change set identifier
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ abandonChangeSet: async (workspaceId, changeSetId, options = {}) => {
359
+ // verify required parameter 'workspaceId' is not null or undefined
360
+ (0, common_1.assertParamExists)('abandonChangeSet', 'workspaceId', workspaceId);
361
+ // verify required parameter 'changeSetId' is not null or undefined
362
+ (0, common_1.assertParamExists)('abandonChangeSet', 'changeSetId', changeSetId);
363
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}`
364
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
365
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
367
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
368
+ let baseOptions;
369
+ if (configuration) {
370
+ baseOptions = configuration.baseOptions;
371
+ }
372
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
373
+ const localVarHeaderParameter = {};
374
+ const localVarQueryParameter = {};
375
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
376
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
377
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
378
+ return {
379
+ url: (0, common_1.toPathString)(localVarUrlObj),
380
+ options: localVarRequestOptions,
381
+ };
382
+ },
383
+ /**
384
+ *
385
+ * @param {string} workspaceId Workspace identifier
386
+ * @param {CreateChangeSetV1Request} createChangeSetV1Request
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ createChangeSet: async (workspaceId, createChangeSetV1Request, options = {}) => {
391
+ // verify required parameter 'workspaceId' is not null or undefined
392
+ (0, common_1.assertParamExists)('createChangeSet', 'workspaceId', workspaceId);
393
+ // verify required parameter 'createChangeSetV1Request' is not null or undefined
394
+ (0, common_1.assertParamExists)('createChangeSet', 'createChangeSetV1Request', createChangeSetV1Request);
395
+ const localVarPath = `/v1/w/{workspace_id}/change-sets`
396
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
398
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
399
+ let baseOptions;
400
+ if (configuration) {
401
+ baseOptions = configuration.baseOptions;
402
+ }
403
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
404
+ const localVarHeaderParameter = {};
405
+ const localVarQueryParameter = {};
406
+ localVarHeaderParameter['Content-Type'] = 'application/json';
407
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
409
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
410
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChangeSetV1Request, localVarRequestOptions, configuration);
411
+ return {
412
+ url: (0, common_1.toPathString)(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ };
415
+ },
416
+ /**
417
+ *
418
+ * @param {string} workspaceId Workspace identifier
419
+ * @param {string} changeSetId Change set identifier
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ forceApply: async (workspaceId, changeSetId, options = {}) => {
424
+ // verify required parameter 'workspaceId' is not null or undefined
425
+ (0, common_1.assertParamExists)('forceApply', 'workspaceId', workspaceId);
426
+ // verify required parameter 'changeSetId' is not null or undefined
427
+ (0, common_1.assertParamExists)('forceApply', 'changeSetId', changeSetId);
428
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/force_apply`
429
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
430
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
431
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
432
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
433
+ let baseOptions;
434
+ if (configuration) {
435
+ baseOptions = configuration.baseOptions;
436
+ }
437
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
438
+ const localVarHeaderParameter = {};
439
+ const localVarQueryParameter = {};
440
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
442
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
443
+ return {
444
+ url: (0, common_1.toPathString)(localVarUrlObj),
445
+ options: localVarRequestOptions,
446
+ };
447
+ },
448
+ /**
449
+ *
450
+ * @param {string} workspaceId Workspace identifier
451
+ * @param {string} changeSetId Change set identifier
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ getChangeSet: async (workspaceId, changeSetId, options = {}) => {
456
+ // verify required parameter 'workspaceId' is not null or undefined
457
+ (0, common_1.assertParamExists)('getChangeSet', 'workspaceId', workspaceId);
458
+ // verify required parameter 'changeSetId' is not null or undefined
459
+ (0, common_1.assertParamExists)('getChangeSet', 'changeSetId', changeSetId);
460
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}`
461
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
462
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
464
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
465
+ let baseOptions;
466
+ if (configuration) {
467
+ baseOptions = configuration.baseOptions;
468
+ }
469
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
470
+ const localVarHeaderParameter = {};
471
+ const localVarQueryParameter = {};
472
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
474
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
475
+ return {
476
+ url: (0, common_1.toPathString)(localVarUrlObj),
477
+ options: localVarRequestOptions,
478
+ };
479
+ },
480
+ /**
481
+ *
482
+ * @param {string} workspaceId Workspace identifier
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ listChangeSets: async (workspaceId, options = {}) => {
487
+ // verify required parameter 'workspaceId' is not null or undefined
488
+ (0, common_1.assertParamExists)('listChangeSets', 'workspaceId', workspaceId);
489
+ const localVarPath = `/v1/w/{workspace_id}/change-sets`
490
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
492
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
493
+ let baseOptions;
494
+ if (configuration) {
495
+ baseOptions = configuration.baseOptions;
496
+ }
497
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
498
+ const localVarHeaderParameter = {};
499
+ const localVarQueryParameter = {};
500
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
502
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
503
+ return {
504
+ url: (0, common_1.toPathString)(localVarUrlObj),
505
+ options: localVarRequestOptions,
506
+ };
507
+ },
508
+ /**
509
+ *
510
+ * @param {string} workspaceId Workspace identifier
511
+ * @param {string} changeSetId Change set identifier
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ mergeStatus: async (workspaceId, changeSetId, options = {}) => {
516
+ // verify required parameter 'workspaceId' is not null or undefined
517
+ (0, common_1.assertParamExists)('mergeStatus', 'workspaceId', workspaceId);
518
+ // verify required parameter 'changeSetId' is not null or undefined
519
+ (0, common_1.assertParamExists)('mergeStatus', 'changeSetId', changeSetId);
520
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/merge_status`
521
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
522
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
523
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
524
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
525
+ let baseOptions;
526
+ if (configuration) {
527
+ baseOptions = configuration.baseOptions;
528
+ }
529
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
530
+ const localVarHeaderParameter = {};
531
+ const localVarQueryParameter = {};
532
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
533
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
534
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
535
+ return {
536
+ url: (0, common_1.toPathString)(localVarUrlObj),
537
+ options: localVarRequestOptions,
538
+ };
539
+ },
540
+ /**
541
+ *
542
+ * @param {string} workspaceId Workspace identifier
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ purgeOpen: async (workspaceId, options = {}) => {
547
+ // verify required parameter 'workspaceId' is not null or undefined
548
+ (0, common_1.assertParamExists)('purgeOpen', 'workspaceId', workspaceId);
549
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/purge_open`
550
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
551
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
552
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
553
+ let baseOptions;
554
+ if (configuration) {
555
+ baseOptions = configuration.baseOptions;
556
+ }
557
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
558
+ const localVarHeaderParameter = {};
559
+ const localVarQueryParameter = {};
560
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
562
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
563
+ return {
564
+ url: (0, common_1.toPathString)(localVarUrlObj),
565
+ options: localVarRequestOptions,
566
+ };
567
+ },
568
+ /**
569
+ *
570
+ * @param {string} workspaceId Workspace identifier
571
+ * @param {string} changeSetId Change set identifier
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ requestApproval: async (workspaceId, changeSetId, options = {}) => {
576
+ // verify required parameter 'workspaceId' is not null or undefined
577
+ (0, common_1.assertParamExists)('requestApproval', 'workspaceId', workspaceId);
578
+ // verify required parameter 'changeSetId' is not null or undefined
579
+ (0, common_1.assertParamExists)('requestApproval', 'changeSetId', changeSetId);
580
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/request_approval`
581
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
582
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
585
+ let baseOptions;
586
+ if (configuration) {
587
+ baseOptions = configuration.baseOptions;
588
+ }
589
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
590
+ const localVarHeaderParameter = {};
591
+ const localVarQueryParameter = {};
592
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
594
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
595
+ return {
596
+ url: (0, common_1.toPathString)(localVarUrlObj),
597
+ options: localVarRequestOptions,
598
+ };
599
+ },
600
+ };
601
+ };
602
+ exports.ChangeSetsApiAxiosParamCreator = ChangeSetsApiAxiosParamCreator;
603
+ /**
604
+ * ChangeSetsApi - functional programming interface
605
+ * @export
606
+ */
607
+ const ChangeSetsApiFp = function (configuration) {
608
+ const localVarAxiosParamCreator = (0, exports.ChangeSetsApiAxiosParamCreator)(configuration);
609
+ return {
610
+ /**
611
+ *
612
+ * @param {string} workspaceId Workspace identifier
613
+ * @param {string} changeSetId Change set identifier
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ async abandonChangeSet(workspaceId, changeSetId, options) {
618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.abandonChangeSet(workspaceId, changeSetId, options);
619
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
620
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.abandonChangeSet']?.[localVarOperationServerIndex]?.url;
621
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
622
+ },
623
+ /**
624
+ *
625
+ * @param {string} workspaceId Workspace identifier
626
+ * @param {CreateChangeSetV1Request} createChangeSetV1Request
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ async createChangeSet(workspaceId, createChangeSetV1Request, options) {
631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createChangeSet(workspaceId, createChangeSetV1Request, options);
632
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
633
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.createChangeSet']?.[localVarOperationServerIndex]?.url;
634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
635
+ },
636
+ /**
637
+ *
638
+ * @param {string} workspaceId Workspace identifier
639
+ * @param {string} changeSetId Change set identifier
640
+ * @param {*} [options] Override http request option.
641
+ * @throws {RequiredError}
642
+ */
643
+ async forceApply(workspaceId, changeSetId, options) {
644
+ const localVarAxiosArgs = await localVarAxiosParamCreator.forceApply(workspaceId, changeSetId, options);
645
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
646
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.forceApply']?.[localVarOperationServerIndex]?.url;
647
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
+ },
649
+ /**
650
+ *
651
+ * @param {string} workspaceId Workspace identifier
652
+ * @param {string} changeSetId Change set identifier
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ async getChangeSet(workspaceId, changeSetId, options) {
657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChangeSet(workspaceId, changeSetId, options);
658
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
659
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.getChangeSet']?.[localVarOperationServerIndex]?.url;
660
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
661
+ },
662
+ /**
663
+ *
664
+ * @param {string} workspaceId Workspace identifier
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ async listChangeSets(workspaceId, options) {
669
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listChangeSets(workspaceId, options);
670
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
671
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.listChangeSets']?.[localVarOperationServerIndex]?.url;
672
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
673
+ },
674
+ /**
675
+ *
676
+ * @param {string} workspaceId Workspace identifier
677
+ * @param {string} changeSetId Change set identifier
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ async mergeStatus(workspaceId, changeSetId, options) {
682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mergeStatus(workspaceId, changeSetId, options);
683
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
684
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.mergeStatus']?.[localVarOperationServerIndex]?.url;
685
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
686
+ },
687
+ /**
688
+ *
689
+ * @param {string} workspaceId Workspace identifier
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ async purgeOpen(workspaceId, options) {
694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purgeOpen(workspaceId, options);
695
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
696
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.purgeOpen']?.[localVarOperationServerIndex]?.url;
697
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
698
+ },
699
+ /**
700
+ *
701
+ * @param {string} workspaceId Workspace identifier
702
+ * @param {string} changeSetId Change set identifier
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ async requestApproval(workspaceId, changeSetId, options) {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestApproval(workspaceId, changeSetId, options);
708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
709
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChangeSetsApi.requestApproval']?.[localVarOperationServerIndex]?.url;
710
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
711
+ },
712
+ };
713
+ };
714
+ exports.ChangeSetsApiFp = ChangeSetsApiFp;
715
+ /**
716
+ * ChangeSetsApi - factory interface
717
+ * @export
718
+ */
719
+ const ChangeSetsApiFactory = function (configuration, basePath, axios) {
720
+ const localVarFp = (0, exports.ChangeSetsApiFp)(configuration);
721
+ return {
722
+ /**
723
+ *
724
+ * @param {ChangeSetsApiAbandonChangeSetRequest} requestParameters Request parameters.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ abandonChangeSet(requestParameters, options) {
729
+ return localVarFp.abandonChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
730
+ },
731
+ /**
732
+ *
733
+ * @param {ChangeSetsApiCreateChangeSetRequest} requestParameters Request parameters.
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ createChangeSet(requestParameters, options) {
738
+ return localVarFp.createChangeSet(requestParameters.workspaceId, requestParameters.createChangeSetV1Request, options).then((request) => request(axios, basePath));
739
+ },
740
+ /**
741
+ *
742
+ * @param {ChangeSetsApiForceApplyRequest} requestParameters Request parameters.
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ forceApply(requestParameters, options) {
747
+ return localVarFp.forceApply(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
748
+ },
749
+ /**
750
+ *
751
+ * @param {ChangeSetsApiGetChangeSetRequest} requestParameters Request parameters.
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ getChangeSet(requestParameters, options) {
756
+ return localVarFp.getChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
757
+ },
758
+ /**
759
+ *
760
+ * @param {ChangeSetsApiListChangeSetsRequest} requestParameters Request parameters.
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ */
764
+ listChangeSets(requestParameters, options) {
765
+ return localVarFp.listChangeSets(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
766
+ },
767
+ /**
768
+ *
769
+ * @param {ChangeSetsApiMergeStatusRequest} requestParameters Request parameters.
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ mergeStatus(requestParameters, options) {
774
+ return localVarFp.mergeStatus(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
775
+ },
776
+ /**
777
+ *
778
+ * @param {ChangeSetsApiPurgeOpenRequest} requestParameters Request parameters.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ purgeOpen(requestParameters, options) {
783
+ return localVarFp.purgeOpen(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
784
+ },
785
+ /**
786
+ *
787
+ * @param {ChangeSetsApiRequestApprovalRequest} requestParameters Request parameters.
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ requestApproval(requestParameters, options) {
792
+ return localVarFp.requestApproval(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
793
+ },
794
+ };
795
+ };
796
+ exports.ChangeSetsApiFactory = ChangeSetsApiFactory;
797
+ /**
798
+ * ChangeSetsApi - object-oriented interface
799
+ * @export
800
+ * @class ChangeSetsApi
801
+ * @extends {BaseAPI}
802
+ */
803
+ class ChangeSetsApi extends base_1.BaseAPI {
804
+ /**
805
+ *
806
+ * @param {ChangeSetsApiAbandonChangeSetRequest} requestParameters Request parameters.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ * @memberof ChangeSetsApi
810
+ */
811
+ abandonChangeSet(requestParameters, options) {
812
+ return (0, exports.ChangeSetsApiFp)(this.configuration).abandonChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
813
+ }
814
+ /**
815
+ *
816
+ * @param {ChangeSetsApiCreateChangeSetRequest} requestParameters Request parameters.
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ * @memberof ChangeSetsApi
820
+ */
821
+ createChangeSet(requestParameters, options) {
822
+ return (0, exports.ChangeSetsApiFp)(this.configuration).createChangeSet(requestParameters.workspaceId, requestParameters.createChangeSetV1Request, options).then((request) => request(this.axios, this.basePath));
823
+ }
824
+ /**
825
+ *
826
+ * @param {ChangeSetsApiForceApplyRequest} requestParameters Request parameters.
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ * @memberof ChangeSetsApi
830
+ */
831
+ forceApply(requestParameters, options) {
832
+ return (0, exports.ChangeSetsApiFp)(this.configuration).forceApply(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
833
+ }
834
+ /**
835
+ *
836
+ * @param {ChangeSetsApiGetChangeSetRequest} requestParameters Request parameters.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ * @memberof ChangeSetsApi
840
+ */
841
+ getChangeSet(requestParameters, options) {
842
+ return (0, exports.ChangeSetsApiFp)(this.configuration).getChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
843
+ }
844
+ /**
845
+ *
846
+ * @param {ChangeSetsApiListChangeSetsRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ * @memberof ChangeSetsApi
850
+ */
851
+ listChangeSets(requestParameters, options) {
852
+ return (0, exports.ChangeSetsApiFp)(this.configuration).listChangeSets(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
853
+ }
854
+ /**
855
+ *
856
+ * @param {ChangeSetsApiMergeStatusRequest} requestParameters Request parameters.
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ * @memberof ChangeSetsApi
860
+ */
861
+ mergeStatus(requestParameters, options) {
862
+ return (0, exports.ChangeSetsApiFp)(this.configuration).mergeStatus(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
863
+ }
864
+ /**
865
+ *
866
+ * @param {ChangeSetsApiPurgeOpenRequest} requestParameters Request parameters.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ * @memberof ChangeSetsApi
870
+ */
871
+ purgeOpen(requestParameters, options) {
872
+ return (0, exports.ChangeSetsApiFp)(this.configuration).purgeOpen(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
873
+ }
874
+ /**
875
+ *
876
+ * @param {ChangeSetsApiRequestApprovalRequest} requestParameters Request parameters.
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ * @memberof ChangeSetsApi
880
+ */
881
+ requestApproval(requestParameters, options) {
882
+ return (0, exports.ChangeSetsApiFp)(this.configuration).requestApproval(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
883
+ }
884
+ }
885
+ exports.ChangeSetsApi = ChangeSetsApi;
886
+ /**
887
+ * ComponentsApi - axios parameter creator
888
+ * @export
889
+ */
890
+ const ComponentsApiAxiosParamCreator = function (configuration) {
891
+ return {
892
+ /**
893
+ *
894
+ * @param {string} workspaceId Workspace identifier
895
+ * @param {string} changeSetId Change set identifier
896
+ * @param {string} componentId Component identifier
897
+ * @param {AddActionV1Request} addActionV1Request
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ addAction: async (workspaceId, changeSetId, componentId, addActionV1Request, options = {}) => {
902
+ // verify required parameter 'workspaceId' is not null or undefined
903
+ (0, common_1.assertParamExists)('addAction', 'workspaceId', workspaceId);
904
+ // verify required parameter 'changeSetId' is not null or undefined
905
+ (0, common_1.assertParamExists)('addAction', 'changeSetId', changeSetId);
906
+ // verify required parameter 'componentId' is not null or undefined
907
+ (0, common_1.assertParamExists)('addAction', 'componentId', componentId);
908
+ // verify required parameter 'addActionV1Request' is not null or undefined
909
+ (0, common_1.assertParamExists)('addAction', 'addActionV1Request', addActionV1Request);
910
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/action`
911
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
912
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
913
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
914
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
915
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
916
+ let baseOptions;
917
+ if (configuration) {
918
+ baseOptions = configuration.baseOptions;
919
+ }
920
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
921
+ const localVarHeaderParameter = {};
922
+ const localVarQueryParameter = {};
923
+ localVarHeaderParameter['Content-Type'] = 'application/json';
924
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
926
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
927
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addActionV1Request, localVarRequestOptions, configuration);
928
+ return {
929
+ url: (0, common_1.toPathString)(localVarUrlObj),
930
+ options: localVarRequestOptions,
931
+ };
932
+ },
933
+ /**
934
+ *
935
+ * @param {string} workspaceId Workspace identifier
936
+ * @param {string} changeSetId Change set identifier
937
+ * @param {CreateComponentV1Request} createComponentV1Request
938
+ * @param {*} [options] Override http request option.
939
+ * @throws {RequiredError}
940
+ */
941
+ createComponent: async (workspaceId, changeSetId, createComponentV1Request, options = {}) => {
942
+ // verify required parameter 'workspaceId' is not null or undefined
943
+ (0, common_1.assertParamExists)('createComponent', 'workspaceId', workspaceId);
944
+ // verify required parameter 'changeSetId' is not null or undefined
945
+ (0, common_1.assertParamExists)('createComponent', 'changeSetId', changeSetId);
946
+ // verify required parameter 'createComponentV1Request' is not null or undefined
947
+ (0, common_1.assertParamExists)('createComponent', 'createComponentV1Request', createComponentV1Request);
948
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components`
949
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
950
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
952
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
953
+ let baseOptions;
954
+ if (configuration) {
955
+ baseOptions = configuration.baseOptions;
956
+ }
957
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
958
+ const localVarHeaderParameter = {};
959
+ const localVarQueryParameter = {};
960
+ localVarHeaderParameter['Content-Type'] = 'application/json';
961
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
962
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
963
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
964
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createComponentV1Request, localVarRequestOptions, configuration);
965
+ return {
966
+ url: (0, common_1.toPathString)(localVarUrlObj),
967
+ options: localVarRequestOptions,
968
+ };
969
+ },
970
+ /**
971
+ *
972
+ * @param {string} workspaceId Workspace identifier
973
+ * @param {string} changeSetId Change set identifier
974
+ * @param {string} componentId Component identifier
975
+ * @param {*} [options] Override http request option.
976
+ * @throws {RequiredError}
977
+ */
978
+ deleteComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
979
+ // verify required parameter 'workspaceId' is not null or undefined
980
+ (0, common_1.assertParamExists)('deleteComponent', 'workspaceId', workspaceId);
981
+ // verify required parameter 'changeSetId' is not null or undefined
982
+ (0, common_1.assertParamExists)('deleteComponent', 'changeSetId', changeSetId);
983
+ // verify required parameter 'componentId' is not null or undefined
984
+ (0, common_1.assertParamExists)('deleteComponent', 'componentId', componentId);
985
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
986
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
987
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
988
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
990
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
991
+ let baseOptions;
992
+ if (configuration) {
993
+ baseOptions = configuration.baseOptions;
994
+ }
995
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
996
+ const localVarHeaderParameter = {};
997
+ const localVarQueryParameter = {};
998
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1000
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1001
+ return {
1002
+ url: (0, common_1.toPathString)(localVarUrlObj),
1003
+ options: localVarRequestOptions,
1004
+ };
1005
+ },
1006
+ /**
1007
+ *
1008
+ * @param {string} workspaceId Workspace identifier
1009
+ * @param {string} changeSetId Change set identifier
1010
+ * @param {string} componentId Component identifier
1011
+ * @param {ExecuteManagementFunctionV1Request} executeManagementFunctionV1Request
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ */
1015
+ executeManagementFunction: async (workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options = {}) => {
1016
+ // verify required parameter 'workspaceId' is not null or undefined
1017
+ (0, common_1.assertParamExists)('executeManagementFunction', 'workspaceId', workspaceId);
1018
+ // verify required parameter 'changeSetId' is not null or undefined
1019
+ (0, common_1.assertParamExists)('executeManagementFunction', 'changeSetId', changeSetId);
1020
+ // verify required parameter 'componentId' is not null or undefined
1021
+ (0, common_1.assertParamExists)('executeManagementFunction', 'componentId', componentId);
1022
+ // verify required parameter 'executeManagementFunctionV1Request' is not null or undefined
1023
+ (0, common_1.assertParamExists)('executeManagementFunction', 'executeManagementFunctionV1Request', executeManagementFunctionV1Request);
1024
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/execute-management-function`
1025
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1026
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1027
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1029
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1030
+ let baseOptions;
1031
+ if (configuration) {
1032
+ baseOptions = configuration.baseOptions;
1033
+ }
1034
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1035
+ const localVarHeaderParameter = {};
1036
+ const localVarQueryParameter = {};
1037
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1038
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1039
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1040
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1041
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeManagementFunctionV1Request, localVarRequestOptions, configuration);
1042
+ return {
1043
+ url: (0, common_1.toPathString)(localVarUrlObj),
1044
+ options: localVarRequestOptions,
1045
+ };
1046
+ },
1047
+ /**
1048
+ *
1049
+ * @param {string} workspaceId Workspace identifier
1050
+ * @param {string} changeSetId Change set identifier
1051
+ * @param {string | null} [component]
1052
+ * @param {string | null} [componentId]
1053
+ * @param {*} [options] Override http request option.
1054
+ * @throws {RequiredError}
1055
+ */
1056
+ findComponent: async (workspaceId, changeSetId, component, componentId, options = {}) => {
1057
+ // verify required parameter 'workspaceId' is not null or undefined
1058
+ (0, common_1.assertParamExists)('findComponent', 'workspaceId', workspaceId);
1059
+ // verify required parameter 'changeSetId' is not null or undefined
1060
+ (0, common_1.assertParamExists)('findComponent', 'changeSetId', changeSetId);
1061
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/find`
1062
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1063
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1065
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1066
+ let baseOptions;
1067
+ if (configuration) {
1068
+ baseOptions = configuration.baseOptions;
1069
+ }
1070
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1071
+ const localVarHeaderParameter = {};
1072
+ const localVarQueryParameter = {};
1073
+ if (component !== undefined) {
1074
+ localVarQueryParameter['component'] = component;
1075
+ }
1076
+ if (componentId !== undefined) {
1077
+ localVarQueryParameter['componentId'] = componentId;
1078
+ }
1079
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1081
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1082
+ return {
1083
+ url: (0, common_1.toPathString)(localVarUrlObj),
1084
+ options: localVarRequestOptions,
1085
+ };
1086
+ },
1087
+ /**
1088
+ *
1089
+ * @param {string} workspaceId Workspace identifier
1090
+ * @param {string} changeSetId Change set identifier
1091
+ * @param {string} componentId Component identifier
1092
+ * @param {*} [options] Override http request option.
1093
+ * @throws {RequiredError}
1094
+ */
1095
+ getComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1096
+ // verify required parameter 'workspaceId' is not null or undefined
1097
+ (0, common_1.assertParamExists)('getComponent', 'workspaceId', workspaceId);
1098
+ // verify required parameter 'changeSetId' is not null or undefined
1099
+ (0, common_1.assertParamExists)('getComponent', 'changeSetId', changeSetId);
1100
+ // verify required parameter 'componentId' is not null or undefined
1101
+ (0, common_1.assertParamExists)('getComponent', 'componentId', componentId);
1102
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
1103
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1104
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1105
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1107
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1108
+ let baseOptions;
1109
+ if (configuration) {
1110
+ baseOptions = configuration.baseOptions;
1111
+ }
1112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1113
+ const localVarHeaderParameter = {};
1114
+ const localVarQueryParameter = {};
1115
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1117
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1118
+ return {
1119
+ url: (0, common_1.toPathString)(localVarUrlObj),
1120
+ options: localVarRequestOptions,
1121
+ };
1122
+ },
1123
+ /**
1124
+ *
1125
+ * @param {string} workspaceId Workspace identifier
1126
+ * @param {string} changeSetId Change set identifier
1127
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
1128
+ * @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ */
1132
+ listComponents: async (workspaceId, changeSetId, limit, cursor, options = {}) => {
1133
+ // verify required parameter 'workspaceId' is not null or undefined
1134
+ (0, common_1.assertParamExists)('listComponents', 'workspaceId', workspaceId);
1135
+ // verify required parameter 'changeSetId' is not null or undefined
1136
+ (0, common_1.assertParamExists)('listComponents', 'changeSetId', changeSetId);
1137
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components`
1138
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1139
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1141
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1142
+ let baseOptions;
1143
+ if (configuration) {
1144
+ baseOptions = configuration.baseOptions;
1145
+ }
1146
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1147
+ const localVarHeaderParameter = {};
1148
+ const localVarQueryParameter = {};
1149
+ if (limit !== undefined) {
1150
+ localVarQueryParameter['limit'] = limit;
1151
+ }
1152
+ if (cursor !== undefined) {
1153
+ localVarQueryParameter['cursor'] = cursor;
1154
+ }
1155
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1157
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1158
+ return {
1159
+ url: (0, common_1.toPathString)(localVarUrlObj),
1160
+ options: localVarRequestOptions,
1161
+ };
1162
+ },
1163
+ /**
1164
+ *
1165
+ * @param {string} workspaceId Workspace identifier
1166
+ * @param {string} changeSetId Change set identifier
1167
+ * @param {string} componentId Component identifier
1168
+ * @param {UpdateComponentV1Request} updateComponentV1Request
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ updateComponent: async (workspaceId, changeSetId, componentId, updateComponentV1Request, options = {}) => {
1173
+ // verify required parameter 'workspaceId' is not null or undefined
1174
+ (0, common_1.assertParamExists)('updateComponent', 'workspaceId', workspaceId);
1175
+ // verify required parameter 'changeSetId' is not null or undefined
1176
+ (0, common_1.assertParamExists)('updateComponent', 'changeSetId', changeSetId);
1177
+ // verify required parameter 'componentId' is not null or undefined
1178
+ (0, common_1.assertParamExists)('updateComponent', 'componentId', componentId);
1179
+ // verify required parameter 'updateComponentV1Request' is not null or undefined
1180
+ (0, common_1.assertParamExists)('updateComponent', 'updateComponentV1Request', updateComponentV1Request);
1181
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
1182
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1183
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1184
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1187
+ let baseOptions;
1188
+ if (configuration) {
1189
+ baseOptions = configuration.baseOptions;
1190
+ }
1191
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1192
+ const localVarHeaderParameter = {};
1193
+ const localVarQueryParameter = {};
1194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1195
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1197
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1198
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateComponentV1Request, localVarRequestOptions, configuration);
1199
+ return {
1200
+ url: (0, common_1.toPathString)(localVarUrlObj),
1201
+ options: localVarRequestOptions,
1202
+ };
1203
+ },
1204
+ };
1205
+ };
1206
+ exports.ComponentsApiAxiosParamCreator = ComponentsApiAxiosParamCreator;
1207
+ /**
1208
+ * ComponentsApi - functional programming interface
1209
+ * @export
1210
+ */
1211
+ const ComponentsApiFp = function (configuration) {
1212
+ const localVarAxiosParamCreator = (0, exports.ComponentsApiAxiosParamCreator)(configuration);
1213
+ return {
1214
+ /**
1215
+ *
1216
+ * @param {string} workspaceId Workspace identifier
1217
+ * @param {string} changeSetId Change set identifier
1218
+ * @param {string} componentId Component identifier
1219
+ * @param {AddActionV1Request} addActionV1Request
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ async addAction(workspaceId, changeSetId, componentId, addActionV1Request, options) {
1224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addAction(workspaceId, changeSetId, componentId, addActionV1Request, options);
1225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1226
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.addAction']?.[localVarOperationServerIndex]?.url;
1227
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1228
+ },
1229
+ /**
1230
+ *
1231
+ * @param {string} workspaceId Workspace identifier
1232
+ * @param {string} changeSetId Change set identifier
1233
+ * @param {CreateComponentV1Request} createComponentV1Request
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ async createComponent(workspaceId, changeSetId, createComponentV1Request, options) {
1238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createComponent(workspaceId, changeSetId, createComponentV1Request, options);
1239
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1240
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.createComponent']?.[localVarOperationServerIndex]?.url;
1241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1242
+ },
1243
+ /**
1244
+ *
1245
+ * @param {string} workspaceId Workspace identifier
1246
+ * @param {string} changeSetId Change set identifier
1247
+ * @param {string} componentId Component identifier
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ async deleteComponent(workspaceId, changeSetId, componentId, options) {
1252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteComponent(workspaceId, changeSetId, componentId, options);
1253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1254
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.deleteComponent']?.[localVarOperationServerIndex]?.url;
1255
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1256
+ },
1257
+ /**
1258
+ *
1259
+ * @param {string} workspaceId Workspace identifier
1260
+ * @param {string} changeSetId Change set identifier
1261
+ * @param {string} componentId Component identifier
1262
+ * @param {ExecuteManagementFunctionV1Request} executeManagementFunctionV1Request
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ async executeManagementFunction(workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options) {
1267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeManagementFunction(workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options);
1268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1269
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.executeManagementFunction']?.[localVarOperationServerIndex]?.url;
1270
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1271
+ },
1272
+ /**
1273
+ *
1274
+ * @param {string} workspaceId Workspace identifier
1275
+ * @param {string} changeSetId Change set identifier
1276
+ * @param {string | null} [component]
1277
+ * @param {string | null} [componentId]
1278
+ * @param {*} [options] Override http request option.
1279
+ * @throws {RequiredError}
1280
+ */
1281
+ async findComponent(workspaceId, changeSetId, component, componentId, options) {
1282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findComponent(workspaceId, changeSetId, component, componentId, options);
1283
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1284
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.findComponent']?.[localVarOperationServerIndex]?.url;
1285
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1286
+ },
1287
+ /**
1288
+ *
1289
+ * @param {string} workspaceId Workspace identifier
1290
+ * @param {string} changeSetId Change set identifier
1291
+ * @param {string} componentId Component identifier
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ async getComponent(workspaceId, changeSetId, componentId, options) {
1296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComponent(workspaceId, changeSetId, componentId, options);
1297
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1298
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.getComponent']?.[localVarOperationServerIndex]?.url;
1299
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1300
+ },
1301
+ /**
1302
+ *
1303
+ * @param {string} workspaceId Workspace identifier
1304
+ * @param {string} changeSetId Change set identifier
1305
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
1306
+ * @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
1307
+ * @param {*} [options] Override http request option.
1308
+ * @throws {RequiredError}
1309
+ */
1310
+ async listComponents(workspaceId, changeSetId, limit, cursor, options) {
1311
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComponents(workspaceId, changeSetId, limit, cursor, options);
1312
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1313
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.listComponents']?.[localVarOperationServerIndex]?.url;
1314
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1315
+ },
1316
+ /**
1317
+ *
1318
+ * @param {string} workspaceId Workspace identifier
1319
+ * @param {string} changeSetId Change set identifier
1320
+ * @param {string} componentId Component identifier
1321
+ * @param {UpdateComponentV1Request} updateComponentV1Request
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ async updateComponent(workspaceId, changeSetId, componentId, updateComponentV1Request, options) {
1326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateComponent(workspaceId, changeSetId, componentId, updateComponentV1Request, options);
1327
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1328
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.updateComponent']?.[localVarOperationServerIndex]?.url;
1329
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1330
+ },
1331
+ };
1332
+ };
1333
+ exports.ComponentsApiFp = ComponentsApiFp;
1334
+ /**
1335
+ * ComponentsApi - factory interface
1336
+ * @export
1337
+ */
1338
+ const ComponentsApiFactory = function (configuration, basePath, axios) {
1339
+ const localVarFp = (0, exports.ComponentsApiFp)(configuration);
1340
+ return {
1341
+ /**
1342
+ *
1343
+ * @param {ComponentsApiAddActionRequest} requestParameters Request parameters.
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ */
1347
+ addAction(requestParameters, options) {
1348
+ return localVarFp.addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(axios, basePath));
1349
+ },
1350
+ /**
1351
+ *
1352
+ * @param {ComponentsApiCreateComponentRequest} requestParameters Request parameters.
1353
+ * @param {*} [options] Override http request option.
1354
+ * @throws {RequiredError}
1355
+ */
1356
+ createComponent(requestParameters, options) {
1357
+ return localVarFp.createComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createComponentV1Request, options).then((request) => request(axios, basePath));
1358
+ },
1359
+ /**
1360
+ *
1361
+ * @param {ComponentsApiDeleteComponentRequest} requestParameters Request parameters.
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ */
1365
+ deleteComponent(requestParameters, options) {
1366
+ return localVarFp.deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1367
+ },
1368
+ /**
1369
+ *
1370
+ * @param {ComponentsApiExecuteManagementFunctionRequest} requestParameters Request parameters.
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ */
1374
+ executeManagementFunction(requestParameters, options) {
1375
+ return localVarFp.executeManagementFunction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.executeManagementFunctionV1Request, options).then((request) => request(axios, basePath));
1376
+ },
1377
+ /**
1378
+ *
1379
+ * @param {ComponentsApiFindComponentRequest} requestParameters Request parameters.
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ */
1383
+ findComponent(requestParameters, options) {
1384
+ return localVarFp.findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(axios, basePath));
1385
+ },
1386
+ /**
1387
+ *
1388
+ * @param {ComponentsApiGetComponentRequest} requestParameters Request parameters.
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ */
1392
+ getComponent(requestParameters, options) {
1393
+ return localVarFp.getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1394
+ },
1395
+ /**
1396
+ *
1397
+ * @param {ComponentsApiListComponentsRequest} requestParameters Request parameters.
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ listComponents(requestParameters, options) {
1402
+ return localVarFp.listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
1403
+ },
1404
+ /**
1405
+ *
1406
+ * @param {ComponentsApiUpdateComponentRequest} requestParameters Request parameters.
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ */
1410
+ updateComponent(requestParameters, options) {
1411
+ return localVarFp.updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(axios, basePath));
1412
+ },
1413
+ };
1414
+ };
1415
+ exports.ComponentsApiFactory = ComponentsApiFactory;
1416
+ /**
1417
+ * ComponentsApi - object-oriented interface
1418
+ * @export
1419
+ * @class ComponentsApi
1420
+ * @extends {BaseAPI}
1421
+ */
1422
+ class ComponentsApi extends base_1.BaseAPI {
1423
+ /**
1424
+ *
1425
+ * @param {ComponentsApiAddActionRequest} requestParameters Request parameters.
1426
+ * @param {*} [options] Override http request option.
1427
+ * @throws {RequiredError}
1428
+ * @memberof ComponentsApi
1429
+ */
1430
+ addAction(requestParameters, options) {
1431
+ return (0, exports.ComponentsApiFp)(this.configuration).addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(this.axios, this.basePath));
1432
+ }
1433
+ /**
1434
+ *
1435
+ * @param {ComponentsApiCreateComponentRequest} requestParameters Request parameters.
1436
+ * @param {*} [options] Override http request option.
1437
+ * @throws {RequiredError}
1438
+ * @memberof ComponentsApi
1439
+ */
1440
+ createComponent(requestParameters, options) {
1441
+ return (0, exports.ComponentsApiFp)(this.configuration).createComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createComponentV1Request, options).then((request) => request(this.axios, this.basePath));
1442
+ }
1443
+ /**
1444
+ *
1445
+ * @param {ComponentsApiDeleteComponentRequest} requestParameters Request parameters.
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ * @memberof ComponentsApi
1449
+ */
1450
+ deleteComponent(requestParameters, options) {
1451
+ return (0, exports.ComponentsApiFp)(this.configuration).deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1452
+ }
1453
+ /**
1454
+ *
1455
+ * @param {ComponentsApiExecuteManagementFunctionRequest} requestParameters Request parameters.
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ * @memberof ComponentsApi
1459
+ */
1460
+ executeManagementFunction(requestParameters, options) {
1461
+ return (0, exports.ComponentsApiFp)(this.configuration).executeManagementFunction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.executeManagementFunctionV1Request, options).then((request) => request(this.axios, this.basePath));
1462
+ }
1463
+ /**
1464
+ *
1465
+ * @param {ComponentsApiFindComponentRequest} requestParameters Request parameters.
1466
+ * @param {*} [options] Override http request option.
1467
+ * @throws {RequiredError}
1468
+ * @memberof ComponentsApi
1469
+ */
1470
+ findComponent(requestParameters, options) {
1471
+ return (0, exports.ComponentsApiFp)(this.configuration).findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1472
+ }
1473
+ /**
1474
+ *
1475
+ * @param {ComponentsApiGetComponentRequest} requestParameters Request parameters.
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ * @memberof ComponentsApi
1479
+ */
1480
+ getComponent(requestParameters, options) {
1481
+ return (0, exports.ComponentsApiFp)(this.configuration).getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1482
+ }
1483
+ /**
1484
+ *
1485
+ * @param {ComponentsApiListComponentsRequest} requestParameters Request parameters.
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ * @memberof ComponentsApi
1489
+ */
1490
+ listComponents(requestParameters, options) {
1491
+ return (0, exports.ComponentsApiFp)(this.configuration).listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
1492
+ }
1493
+ /**
1494
+ *
1495
+ * @param {ComponentsApiUpdateComponentRequest} requestParameters Request parameters.
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ * @memberof ComponentsApi
1499
+ */
1500
+ updateComponent(requestParameters, options) {
1501
+ return (0, exports.ComponentsApiFp)(this.configuration).updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(this.axios, this.basePath));
1502
+ }
1503
+ }
1504
+ exports.ComponentsApi = ComponentsApi;
1505
+ /**
1506
+ * FuncsApi - axios parameter creator
1507
+ * @export
1508
+ */
1509
+ const FuncsApiAxiosParamCreator = function (configuration) {
1510
+ return {
1511
+ /**
1512
+ *
1513
+ * @param {string} workspaceId Workspace identifier
1514
+ * @param {string} changeSetId Change set identifier
1515
+ * @param {string} funcId Func identifier
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ */
1519
+ getFunc: async (workspaceId, changeSetId, funcId, options = {}) => {
1520
+ // verify required parameter 'workspaceId' is not null or undefined
1521
+ (0, common_1.assertParamExists)('getFunc', 'workspaceId', workspaceId);
1522
+ // verify required parameter 'changeSetId' is not null or undefined
1523
+ (0, common_1.assertParamExists)('getFunc', 'changeSetId', changeSetId);
1524
+ // verify required parameter 'funcId' is not null or undefined
1525
+ (0, common_1.assertParamExists)('getFunc', 'funcId', funcId);
1526
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}`
1527
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1528
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1529
+ .replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
1530
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1531
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1532
+ let baseOptions;
1533
+ if (configuration) {
1534
+ baseOptions = configuration.baseOptions;
1535
+ }
1536
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1537
+ const localVarHeaderParameter = {};
1538
+ const localVarQueryParameter = {};
1539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1541
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1542
+ return {
1543
+ url: (0, common_1.toPathString)(localVarUrlObj),
1544
+ options: localVarRequestOptions,
1545
+ };
1546
+ },
1547
+ /**
1548
+ *
1549
+ * @param {string} workspaceId Workspace identifier
1550
+ * @param {string} changeSetId Change set identifier
1551
+ * @param {string} funcRunId Func run identifier
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ */
1555
+ getFuncRun: async (workspaceId, changeSetId, funcRunId, options = {}) => {
1556
+ // verify required parameter 'workspaceId' is not null or undefined
1557
+ (0, common_1.assertParamExists)('getFuncRun', 'workspaceId', workspaceId);
1558
+ // verify required parameter 'changeSetId' is not null or undefined
1559
+ (0, common_1.assertParamExists)('getFuncRun', 'changeSetId', changeSetId);
1560
+ // verify required parameter 'funcRunId' is not null or undefined
1561
+ (0, common_1.assertParamExists)('getFuncRun', 'funcRunId', funcRunId);
1562
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/runs/{func_run_id}`
1563
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1564
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1565
+ .replace(`{${"func_run_id"}}`, encodeURIComponent(String(funcRunId)));
1566
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1567
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1568
+ let baseOptions;
1569
+ if (configuration) {
1570
+ baseOptions = configuration.baseOptions;
1571
+ }
1572
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1573
+ const localVarHeaderParameter = {};
1574
+ const localVarQueryParameter = {};
1575
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1577
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1578
+ return {
1579
+ url: (0, common_1.toPathString)(localVarUrlObj),
1580
+ options: localVarRequestOptions,
1581
+ };
1582
+ },
1583
+ };
1584
+ };
1585
+ exports.FuncsApiAxiosParamCreator = FuncsApiAxiosParamCreator;
1586
+ /**
1587
+ * FuncsApi - functional programming interface
1588
+ * @export
1589
+ */
1590
+ const FuncsApiFp = function (configuration) {
1591
+ const localVarAxiosParamCreator = (0, exports.FuncsApiAxiosParamCreator)(configuration);
1592
+ return {
1593
+ /**
1594
+ *
1595
+ * @param {string} workspaceId Workspace identifier
1596
+ * @param {string} changeSetId Change set identifier
1597
+ * @param {string} funcId Func identifier
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ */
1601
+ async getFunc(workspaceId, changeSetId, funcId, options) {
1602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFunc(workspaceId, changeSetId, funcId, options);
1603
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1604
+ const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.getFunc']?.[localVarOperationServerIndex]?.url;
1605
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1606
+ },
1607
+ /**
1608
+ *
1609
+ * @param {string} workspaceId Workspace identifier
1610
+ * @param {string} changeSetId Change set identifier
1611
+ * @param {string} funcRunId Func run identifier
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ */
1615
+ async getFuncRun(workspaceId, changeSetId, funcRunId, options) {
1616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFuncRun(workspaceId, changeSetId, funcRunId, options);
1617
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1618
+ const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.getFuncRun']?.[localVarOperationServerIndex]?.url;
1619
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1620
+ },
1621
+ };
1622
+ };
1623
+ exports.FuncsApiFp = FuncsApiFp;
1624
+ /**
1625
+ * FuncsApi - factory interface
1626
+ * @export
1627
+ */
1628
+ const FuncsApiFactory = function (configuration, basePath, axios) {
1629
+ const localVarFp = (0, exports.FuncsApiFp)(configuration);
1630
+ return {
1631
+ /**
1632
+ *
1633
+ * @param {FuncsApiGetFuncRequest} requestParameters Request parameters.
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ getFunc(requestParameters, options) {
1638
+ return localVarFp.getFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, options).then((request) => request(axios, basePath));
1639
+ },
1640
+ /**
1641
+ *
1642
+ * @param {FuncsApiGetFuncRunRequest} requestParameters Request parameters.
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ getFuncRun(requestParameters, options) {
1647
+ return localVarFp.getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(axios, basePath));
1648
+ },
1649
+ };
1650
+ };
1651
+ exports.FuncsApiFactory = FuncsApiFactory;
1652
+ /**
1653
+ * FuncsApi - object-oriented interface
1654
+ * @export
1655
+ * @class FuncsApi
1656
+ * @extends {BaseAPI}
1657
+ */
1658
+ class FuncsApi extends base_1.BaseAPI {
1659
+ /**
1660
+ *
1661
+ * @param {FuncsApiGetFuncRequest} requestParameters Request parameters.
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ * @memberof FuncsApi
1665
+ */
1666
+ getFunc(requestParameters, options) {
1667
+ return (0, exports.FuncsApiFp)(this.configuration).getFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
1668
+ }
1669
+ /**
1670
+ *
1671
+ * @param {FuncsApiGetFuncRunRequest} requestParameters Request parameters.
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ * @memberof FuncsApi
1675
+ */
1676
+ getFuncRun(requestParameters, options) {
1677
+ return (0, exports.FuncsApiFp)(this.configuration).getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(this.axios, this.basePath));
1678
+ }
1679
+ }
1680
+ exports.FuncsApi = FuncsApi;
1681
+ /**
1682
+ * RootApi - axios parameter creator
1683
+ * @export
1684
+ */
1685
+ const RootApiAxiosParamCreator = function (configuration) {
1686
+ return {
1687
+ /**
1688
+ *
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ */
1692
+ systemStatusRoute: async (options = {}) => {
1693
+ const localVarPath = `/`;
1694
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1695
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1696
+ let baseOptions;
1697
+ if (configuration) {
1698
+ baseOptions = configuration.baseOptions;
1699
+ }
1700
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1701
+ const localVarHeaderParameter = {};
1702
+ const localVarQueryParameter = {};
1703
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1704
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1705
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1706
+ return {
1707
+ url: (0, common_1.toPathString)(localVarUrlObj),
1708
+ options: localVarRequestOptions,
1709
+ };
1710
+ },
1711
+ };
1712
+ };
1713
+ exports.RootApiAxiosParamCreator = RootApiAxiosParamCreator;
1714
+ /**
1715
+ * RootApi - functional programming interface
1716
+ * @export
1717
+ */
1718
+ const RootApiFp = function (configuration) {
1719
+ const localVarAxiosParamCreator = (0, exports.RootApiAxiosParamCreator)(configuration);
1720
+ return {
1721
+ /**
1722
+ *
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ */
1726
+ async systemStatusRoute(options) {
1727
+ const localVarAxiosArgs = await localVarAxiosParamCreator.systemStatusRoute(options);
1728
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1729
+ const localVarOperationServerBasePath = base_1.operationServerMap['RootApi.systemStatusRoute']?.[localVarOperationServerIndex]?.url;
1730
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1731
+ },
1732
+ };
1733
+ };
1734
+ exports.RootApiFp = RootApiFp;
1735
+ /**
1736
+ * RootApi - factory interface
1737
+ * @export
1738
+ */
1739
+ const RootApiFactory = function (configuration, basePath, axios) {
1740
+ const localVarFp = (0, exports.RootApiFp)(configuration);
1741
+ return {
1742
+ /**
1743
+ *
1744
+ * @param {*} [options] Override http request option.
1745
+ * @throws {RequiredError}
1746
+ */
1747
+ systemStatusRoute(options) {
1748
+ return localVarFp.systemStatusRoute(options).then((request) => request(axios, basePath));
1749
+ },
1750
+ };
1751
+ };
1752
+ exports.RootApiFactory = RootApiFactory;
1753
+ /**
1754
+ * RootApi - object-oriented interface
1755
+ * @export
1756
+ * @class RootApi
1757
+ * @extends {BaseAPI}
1758
+ */
1759
+ class RootApi extends base_1.BaseAPI {
1760
+ /**
1761
+ *
1762
+ * @param {*} [options] Override http request option.
1763
+ * @throws {RequiredError}
1764
+ * @memberof RootApi
1765
+ */
1766
+ systemStatusRoute(options) {
1767
+ return (0, exports.RootApiFp)(this.configuration).systemStatusRoute(options).then((request) => request(this.axios, this.basePath));
1768
+ }
1769
+ }
1770
+ exports.RootApi = RootApi;
1771
+ /**
1772
+ * SchemasApi - axios parameter creator
1773
+ * @export
1774
+ */
1775
+ const SchemasApiAxiosParamCreator = function (configuration) {
1776
+ return {
1777
+ /**
1778
+ *
1779
+ * @param {string} workspaceId Workspace identifier
1780
+ * @param {string} changeSetId Change set identifier
1781
+ * @param {string | null} [schema]
1782
+ * @param {string | null} [schemaId]
1783
+ * @param {*} [options] Override http request option.
1784
+ * @throws {RequiredError}
1785
+ */
1786
+ findSchema: async (workspaceId, changeSetId, schema, schemaId, options = {}) => {
1787
+ // verify required parameter 'workspaceId' is not null or undefined
1788
+ (0, common_1.assertParamExists)('findSchema', 'workspaceId', workspaceId);
1789
+ // verify required parameter 'changeSetId' is not null or undefined
1790
+ (0, common_1.assertParamExists)('findSchema', 'changeSetId', changeSetId);
1791
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/find`
1792
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1793
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1795
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1796
+ let baseOptions;
1797
+ if (configuration) {
1798
+ baseOptions = configuration.baseOptions;
1799
+ }
1800
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1801
+ const localVarHeaderParameter = {};
1802
+ const localVarQueryParameter = {};
1803
+ if (schema !== undefined) {
1804
+ localVarQueryParameter['schema'] = schema;
1805
+ }
1806
+ if (schemaId !== undefined) {
1807
+ localVarQueryParameter['schemaId'] = schemaId;
1808
+ }
1809
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1811
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1812
+ return {
1813
+ url: (0, common_1.toPathString)(localVarUrlObj),
1814
+ options: localVarRequestOptions,
1815
+ };
1816
+ },
1817
+ /**
1818
+ *
1819
+ * @param {string} workspaceId Workspace identifier
1820
+ * @param {string} changeSetId Change set identifier
1821
+ * @param {string} schemaId Schema identifier
1822
+ * @param {string} schemaVariantId Schema variant identifier
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ getDefaultVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, options = {}) => {
1827
+ // verify required parameter 'workspaceId' is not null or undefined
1828
+ (0, common_1.assertParamExists)('getDefaultVariant', 'workspaceId', workspaceId);
1829
+ // verify required parameter 'changeSetId' is not null or undefined
1830
+ (0, common_1.assertParamExists)('getDefaultVariant', 'changeSetId', changeSetId);
1831
+ // verify required parameter 'schemaId' is not null or undefined
1832
+ (0, common_1.assertParamExists)('getDefaultVariant', 'schemaId', schemaId);
1833
+ // verify required parameter 'schemaVariantId' is not null or undefined
1834
+ (0, common_1.assertParamExists)('getDefaultVariant', 'schemaVariantId', schemaVariantId);
1835
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/default`
1836
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1837
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1838
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
1839
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
1840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1841
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1842
+ let baseOptions;
1843
+ if (configuration) {
1844
+ baseOptions = configuration.baseOptions;
1845
+ }
1846
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1847
+ const localVarHeaderParameter = {};
1848
+ const localVarQueryParameter = {};
1849
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1851
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1852
+ return {
1853
+ url: (0, common_1.toPathString)(localVarUrlObj),
1854
+ options: localVarRequestOptions,
1855
+ };
1856
+ },
1857
+ /**
1858
+ *
1859
+ * @param {string} workspaceId Workspace identifier
1860
+ * @param {string} changeSetId Change set identifier
1861
+ * @param {string} schemaId Schema identifier
1862
+ * @param {*} [options] Override http request option.
1863
+ * @throws {RequiredError}
1864
+ */
1865
+ getSchema: async (workspaceId, changeSetId, schemaId, options = {}) => {
1866
+ // verify required parameter 'workspaceId' is not null or undefined
1867
+ (0, common_1.assertParamExists)('getSchema', 'workspaceId', workspaceId);
1868
+ // verify required parameter 'changeSetId' is not null or undefined
1869
+ (0, common_1.assertParamExists)('getSchema', 'changeSetId', changeSetId);
1870
+ // verify required parameter 'schemaId' is not null or undefined
1871
+ (0, common_1.assertParamExists)('getSchema', 'schemaId', schemaId);
1872
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}`
1873
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1874
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1875
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
1876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1877
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1878
+ let baseOptions;
1879
+ if (configuration) {
1880
+ baseOptions = configuration.baseOptions;
1881
+ }
1882
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1883
+ const localVarHeaderParameter = {};
1884
+ const localVarQueryParameter = {};
1885
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1886
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1887
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1888
+ return {
1889
+ url: (0, common_1.toPathString)(localVarUrlObj),
1890
+ options: localVarRequestOptions,
1891
+ };
1892
+ },
1893
+ /**
1894
+ *
1895
+ * @param {string} workspaceId Workspace identifier
1896
+ * @param {string} changeSetId Change set identifier
1897
+ * @param {string} schemaId Schema identifier
1898
+ * @param {string} schemaVariantId Schema variant identifier
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ */
1902
+ getVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, options = {}) => {
1903
+ // verify required parameter 'workspaceId' is not null or undefined
1904
+ (0, common_1.assertParamExists)('getVariant', 'workspaceId', workspaceId);
1905
+ // verify required parameter 'changeSetId' is not null or undefined
1906
+ (0, common_1.assertParamExists)('getVariant', 'changeSetId', changeSetId);
1907
+ // verify required parameter 'schemaId' is not null or undefined
1908
+ (0, common_1.assertParamExists)('getVariant', 'schemaId', schemaId);
1909
+ // verify required parameter 'schemaVariantId' is not null or undefined
1910
+ (0, common_1.assertParamExists)('getVariant', 'schemaVariantId', schemaVariantId);
1911
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}`
1912
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1913
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1914
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
1915
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
1916
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1917
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1918
+ let baseOptions;
1919
+ if (configuration) {
1920
+ baseOptions = configuration.baseOptions;
1921
+ }
1922
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1923
+ const localVarHeaderParameter = {};
1924
+ const localVarQueryParameter = {};
1925
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1926
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1927
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1928
+ return {
1929
+ url: (0, common_1.toPathString)(localVarUrlObj),
1930
+ options: localVarRequestOptions,
1931
+ };
1932
+ },
1933
+ /**
1934
+ *
1935
+ * @param {string} workspaceId Workspace identifier
1936
+ * @param {string} changeSetId Change set identifier
1937
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
1938
+ * @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
1939
+ * @param {*} [options] Override http request option.
1940
+ * @throws {RequiredError}
1941
+ */
1942
+ listSchemas: async (workspaceId, changeSetId, limit, cursor, options = {}) => {
1943
+ // verify required parameter 'workspaceId' is not null or undefined
1944
+ (0, common_1.assertParamExists)('listSchemas', 'workspaceId', workspaceId);
1945
+ // verify required parameter 'changeSetId' is not null or undefined
1946
+ (0, common_1.assertParamExists)('listSchemas', 'changeSetId', changeSetId);
1947
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas`
1948
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1949
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1950
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1951
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1952
+ let baseOptions;
1953
+ if (configuration) {
1954
+ baseOptions = configuration.baseOptions;
1955
+ }
1956
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1957
+ const localVarHeaderParameter = {};
1958
+ const localVarQueryParameter = {};
1959
+ if (limit !== undefined) {
1960
+ localVarQueryParameter['limit'] = limit;
1961
+ }
1962
+ if (cursor !== undefined) {
1963
+ localVarQueryParameter['cursor'] = cursor;
1964
+ }
1965
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1967
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1968
+ return {
1969
+ url: (0, common_1.toPathString)(localVarUrlObj),
1970
+ options: localVarRequestOptions,
1971
+ };
1972
+ },
1973
+ };
1974
+ };
1975
+ exports.SchemasApiAxiosParamCreator = SchemasApiAxiosParamCreator;
1976
+ /**
1977
+ * SchemasApi - functional programming interface
1978
+ * @export
1979
+ */
1980
+ const SchemasApiFp = function (configuration) {
1981
+ const localVarAxiosParamCreator = (0, exports.SchemasApiAxiosParamCreator)(configuration);
1982
+ return {
1983
+ /**
1984
+ *
1985
+ * @param {string} workspaceId Workspace identifier
1986
+ * @param {string} changeSetId Change set identifier
1987
+ * @param {string | null} [schema]
1988
+ * @param {string | null} [schemaId]
1989
+ * @param {*} [options] Override http request option.
1990
+ * @throws {RequiredError}
1991
+ */
1992
+ async findSchema(workspaceId, changeSetId, schema, schemaId, options) {
1993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findSchema(workspaceId, changeSetId, schema, schemaId, options);
1994
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1995
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.findSchema']?.[localVarOperationServerIndex]?.url;
1996
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1997
+ },
1998
+ /**
1999
+ *
2000
+ * @param {string} workspaceId Workspace identifier
2001
+ * @param {string} changeSetId Change set identifier
2002
+ * @param {string} schemaId Schema identifier
2003
+ * @param {string} schemaVariantId Schema variant identifier
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ async getDefaultVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options) {
2008
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options);
2009
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2010
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getDefaultVariant']?.[localVarOperationServerIndex]?.url;
2011
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2012
+ },
2013
+ /**
2014
+ *
2015
+ * @param {string} workspaceId Workspace identifier
2016
+ * @param {string} changeSetId Change set identifier
2017
+ * @param {string} schemaId Schema identifier
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ async getSchema(workspaceId, changeSetId, schemaId, options) {
2022
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(workspaceId, changeSetId, schemaId, options);
2023
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2024
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
2025
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2026
+ },
2027
+ /**
2028
+ *
2029
+ * @param {string} workspaceId Workspace identifier
2030
+ * @param {string} changeSetId Change set identifier
2031
+ * @param {string} schemaId Schema identifier
2032
+ * @param {string} schemaVariantId Schema variant identifier
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ async getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options) {
2037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options);
2038
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2039
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
2040
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2041
+ },
2042
+ /**
2043
+ *
2044
+ * @param {string} workspaceId Workspace identifier
2045
+ * @param {string} changeSetId Change set identifier
2046
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
2047
+ * @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ async listSchemas(workspaceId, changeSetId, limit, cursor, options) {
2052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSchemas(workspaceId, changeSetId, limit, cursor, options);
2053
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2054
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.listSchemas']?.[localVarOperationServerIndex]?.url;
2055
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2056
+ },
2057
+ };
2058
+ };
2059
+ exports.SchemasApiFp = SchemasApiFp;
2060
+ /**
2061
+ * SchemasApi - factory interface
2062
+ * @export
2063
+ */
2064
+ const SchemasApiFactory = function (configuration, basePath, axios) {
2065
+ const localVarFp = (0, exports.SchemasApiFp)(configuration);
2066
+ return {
2067
+ /**
2068
+ *
2069
+ * @param {SchemasApiFindSchemaRequest} requestParameters Request parameters.
2070
+ * @param {*} [options] Override http request option.
2071
+ * @throws {RequiredError}
2072
+ */
2073
+ findSchema(requestParameters, options) {
2074
+ return localVarFp.findSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schema, requestParameters.schemaId, options).then((request) => request(axios, basePath));
2075
+ },
2076
+ /**
2077
+ *
2078
+ * @param {SchemasApiGetDefaultVariantRequest} requestParameters Request parameters.
2079
+ * @param {*} [options] Override http request option.
2080
+ * @throws {RequiredError}
2081
+ */
2082
+ getDefaultVariant(requestParameters, options) {
2083
+ return localVarFp.getDefaultVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(axios, basePath));
2084
+ },
2085
+ /**
2086
+ *
2087
+ * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
2088
+ * @param {*} [options] Override http request option.
2089
+ * @throws {RequiredError}
2090
+ */
2091
+ getSchema(requestParameters, options) {
2092
+ return localVarFp.getSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
2093
+ },
2094
+ /**
2095
+ *
2096
+ * @param {SchemasApiGetVariantRequest} requestParameters Request parameters.
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ */
2100
+ getVariant(requestParameters, options) {
2101
+ return localVarFp.getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(axios, basePath));
2102
+ },
2103
+ /**
2104
+ *
2105
+ * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ listSchemas(requestParameters, options) {
2110
+ return localVarFp.listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
2111
+ },
2112
+ };
2113
+ };
2114
+ exports.SchemasApiFactory = SchemasApiFactory;
2115
+ /**
2116
+ * SchemasApi - object-oriented interface
2117
+ * @export
2118
+ * @class SchemasApi
2119
+ * @extends {BaseAPI}
2120
+ */
2121
+ class SchemasApi extends base_1.BaseAPI {
2122
+ /**
2123
+ *
2124
+ * @param {SchemasApiFindSchemaRequest} requestParameters Request parameters.
2125
+ * @param {*} [options] Override http request option.
2126
+ * @throws {RequiredError}
2127
+ * @memberof SchemasApi
2128
+ */
2129
+ findSchema(requestParameters, options) {
2130
+ return (0, exports.SchemasApiFp)(this.configuration).findSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schema, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
2131
+ }
2132
+ /**
2133
+ *
2134
+ * @param {SchemasApiGetDefaultVariantRequest} requestParameters Request parameters.
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ * @memberof SchemasApi
2138
+ */
2139
+ getDefaultVariant(requestParameters, options) {
2140
+ return (0, exports.SchemasApiFp)(this.configuration).getDefaultVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(this.axios, this.basePath));
2141
+ }
2142
+ /**
2143
+ *
2144
+ * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ * @memberof SchemasApi
2148
+ */
2149
+ getSchema(requestParameters, options) {
2150
+ return (0, exports.SchemasApiFp)(this.configuration).getSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
2151
+ }
2152
+ /**
2153
+ *
2154
+ * @param {SchemasApiGetVariantRequest} requestParameters Request parameters.
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ * @memberof SchemasApi
2158
+ */
2159
+ getVariant(requestParameters, options) {
2160
+ return (0, exports.SchemasApiFp)(this.configuration).getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(this.axios, this.basePath));
2161
+ }
2162
+ /**
2163
+ *
2164
+ * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
2165
+ * @param {*} [options] Override http request option.
2166
+ * @throws {RequiredError}
2167
+ * @memberof SchemasApi
2168
+ */
2169
+ listSchemas(requestParameters, options) {
2170
+ return (0, exports.SchemasApiFp)(this.configuration).listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
2171
+ }
2172
+ }
2173
+ exports.SchemasApi = SchemasApi;
2174
+ /**
2175
+ * SecretsApi - axios parameter creator
2176
+ * @export
2177
+ */
2178
+ const SecretsApiAxiosParamCreator = function (configuration) {
2179
+ return {
2180
+ /**
2181
+ *
2182
+ * @param {string} workspaceId Workspace identifier
2183
+ * @param {string} changeSetId Change set identifier
2184
+ * @param {CreateSecretV1Request} createSecretV1Request
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ createSecret: async (workspaceId, changeSetId, createSecretV1Request, options = {}) => {
2189
+ // verify required parameter 'workspaceId' is not null or undefined
2190
+ (0, common_1.assertParamExists)('createSecret', 'workspaceId', workspaceId);
2191
+ // verify required parameter 'changeSetId' is not null or undefined
2192
+ (0, common_1.assertParamExists)('createSecret', 'changeSetId', changeSetId);
2193
+ // verify required parameter 'createSecretV1Request' is not null or undefined
2194
+ (0, common_1.assertParamExists)('createSecret', 'createSecretV1Request', createSecretV1Request);
2195
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets`
2196
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2197
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
2198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2199
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2200
+ let baseOptions;
2201
+ if (configuration) {
2202
+ baseOptions = configuration.baseOptions;
2203
+ }
2204
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2205
+ const localVarHeaderParameter = {};
2206
+ const localVarQueryParameter = {};
2207
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2208
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2210
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2211
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSecretV1Request, localVarRequestOptions, configuration);
2212
+ return {
2213
+ url: (0, common_1.toPathString)(localVarUrlObj),
2214
+ options: localVarRequestOptions,
2215
+ };
2216
+ },
2217
+ /**
2218
+ *
2219
+ * @param {string} workspaceId Workspace identifier
2220
+ * @param {string} changeSetId Change set identifier
2221
+ * @param {string} secretId Secret identifier
2222
+ * @param {*} [options] Override http request option.
2223
+ * @throws {RequiredError}
2224
+ */
2225
+ deleteSecret: async (workspaceId, changeSetId, secretId, options = {}) => {
2226
+ // verify required parameter 'workspaceId' is not null or undefined
2227
+ (0, common_1.assertParamExists)('deleteSecret', 'workspaceId', workspaceId);
2228
+ // verify required parameter 'changeSetId' is not null or undefined
2229
+ (0, common_1.assertParamExists)('deleteSecret', 'changeSetId', changeSetId);
2230
+ // verify required parameter 'secretId' is not null or undefined
2231
+ (0, common_1.assertParamExists)('deleteSecret', 'secretId', secretId);
2232
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets/{secret_id}`
2233
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2234
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2235
+ .replace(`{${"secret_id"}}`, encodeURIComponent(String(secretId)));
2236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2237
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2238
+ let baseOptions;
2239
+ if (configuration) {
2240
+ baseOptions = configuration.baseOptions;
2241
+ }
2242
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2243
+ const localVarHeaderParameter = {};
2244
+ const localVarQueryParameter = {};
2245
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2247
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2248
+ return {
2249
+ url: (0, common_1.toPathString)(localVarUrlObj),
2250
+ options: localVarRequestOptions,
2251
+ };
2252
+ },
2253
+ /**
2254
+ *
2255
+ * @param {string} workspaceId Workspace identifier
2256
+ * @param {string} changeSetId Change set identifier
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ */
2260
+ getSecrets: async (workspaceId, changeSetId, options = {}) => {
2261
+ // verify required parameter 'workspaceId' is not null or undefined
2262
+ (0, common_1.assertParamExists)('getSecrets', 'workspaceId', workspaceId);
2263
+ // verify required parameter 'changeSetId' is not null or undefined
2264
+ (0, common_1.assertParamExists)('getSecrets', 'changeSetId', changeSetId);
2265
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets`
2266
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2267
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
2268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2269
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2270
+ let baseOptions;
2271
+ if (configuration) {
2272
+ baseOptions = configuration.baseOptions;
2273
+ }
2274
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2275
+ const localVarHeaderParameter = {};
2276
+ const localVarQueryParameter = {};
2277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2279
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2280
+ return {
2281
+ url: (0, common_1.toPathString)(localVarUrlObj),
2282
+ options: localVarRequestOptions,
2283
+ };
2284
+ },
2285
+ /**
2286
+ *
2287
+ * @param {string} workspaceId Workspace identifier
2288
+ * @param {string} changeSetId Change set identifier
2289
+ * @param {string} secretId Secret identifier
2290
+ * @param {UpdateSecretV1Request} updateSecretV1Request
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ updateSecret: async (workspaceId, changeSetId, secretId, updateSecretV1Request, options = {}) => {
2295
+ // verify required parameter 'workspaceId' is not null or undefined
2296
+ (0, common_1.assertParamExists)('updateSecret', 'workspaceId', workspaceId);
2297
+ // verify required parameter 'changeSetId' is not null or undefined
2298
+ (0, common_1.assertParamExists)('updateSecret', 'changeSetId', changeSetId);
2299
+ // verify required parameter 'secretId' is not null or undefined
2300
+ (0, common_1.assertParamExists)('updateSecret', 'secretId', secretId);
2301
+ // verify required parameter 'updateSecretV1Request' is not null or undefined
2302
+ (0, common_1.assertParamExists)('updateSecret', 'updateSecretV1Request', updateSecretV1Request);
2303
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets/{secret_id}`
2304
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2305
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2306
+ .replace(`{${"secret_id"}}`, encodeURIComponent(String(secretId)));
2307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2308
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2309
+ let baseOptions;
2310
+ if (configuration) {
2311
+ baseOptions = configuration.baseOptions;
2312
+ }
2313
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2314
+ const localVarHeaderParameter = {};
2315
+ const localVarQueryParameter = {};
2316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2317
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2318
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2319
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2320
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSecretV1Request, localVarRequestOptions, configuration);
2321
+ return {
2322
+ url: (0, common_1.toPathString)(localVarUrlObj),
2323
+ options: localVarRequestOptions,
2324
+ };
2325
+ },
2326
+ };
2327
+ };
2328
+ exports.SecretsApiAxiosParamCreator = SecretsApiAxiosParamCreator;
2329
+ /**
2330
+ * SecretsApi - functional programming interface
2331
+ * @export
2332
+ */
2333
+ const SecretsApiFp = function (configuration) {
2334
+ const localVarAxiosParamCreator = (0, exports.SecretsApiAxiosParamCreator)(configuration);
2335
+ return {
2336
+ /**
2337
+ *
2338
+ * @param {string} workspaceId Workspace identifier
2339
+ * @param {string} changeSetId Change set identifier
2340
+ * @param {CreateSecretV1Request} createSecretV1Request
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ */
2344
+ async createSecret(workspaceId, changeSetId, createSecretV1Request, options) {
2345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(workspaceId, changeSetId, createSecretV1Request, options);
2346
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2347
+ const localVarOperationServerBasePath = base_1.operationServerMap['SecretsApi.createSecret']?.[localVarOperationServerIndex]?.url;
2348
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2349
+ },
2350
+ /**
2351
+ *
2352
+ * @param {string} workspaceId Workspace identifier
2353
+ * @param {string} changeSetId Change set identifier
2354
+ * @param {string} secretId Secret identifier
2355
+ * @param {*} [options] Override http request option.
2356
+ * @throws {RequiredError}
2357
+ */
2358
+ async deleteSecret(workspaceId, changeSetId, secretId, options) {
2359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSecret(workspaceId, changeSetId, secretId, options);
2360
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2361
+ const localVarOperationServerBasePath = base_1.operationServerMap['SecretsApi.deleteSecret']?.[localVarOperationServerIndex]?.url;
2362
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2363
+ },
2364
+ /**
2365
+ *
2366
+ * @param {string} workspaceId Workspace identifier
2367
+ * @param {string} changeSetId Change set identifier
2368
+ * @param {*} [options] Override http request option.
2369
+ * @throws {RequiredError}
2370
+ */
2371
+ async getSecrets(workspaceId, changeSetId, options) {
2372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSecrets(workspaceId, changeSetId, options);
2373
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2374
+ const localVarOperationServerBasePath = base_1.operationServerMap['SecretsApi.getSecrets']?.[localVarOperationServerIndex]?.url;
2375
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2376
+ },
2377
+ /**
2378
+ *
2379
+ * @param {string} workspaceId Workspace identifier
2380
+ * @param {string} changeSetId Change set identifier
2381
+ * @param {string} secretId Secret identifier
2382
+ * @param {UpdateSecretV1Request} updateSecretV1Request
2383
+ * @param {*} [options] Override http request option.
2384
+ * @throws {RequiredError}
2385
+ */
2386
+ async updateSecret(workspaceId, changeSetId, secretId, updateSecretV1Request, options) {
2387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSecret(workspaceId, changeSetId, secretId, updateSecretV1Request, options);
2388
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2389
+ const localVarOperationServerBasePath = base_1.operationServerMap['SecretsApi.updateSecret']?.[localVarOperationServerIndex]?.url;
2390
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2391
+ },
2392
+ };
2393
+ };
2394
+ exports.SecretsApiFp = SecretsApiFp;
2395
+ /**
2396
+ * SecretsApi - factory interface
2397
+ * @export
2398
+ */
2399
+ const SecretsApiFactory = function (configuration, basePath, axios) {
2400
+ const localVarFp = (0, exports.SecretsApiFp)(configuration);
2401
+ return {
2402
+ /**
2403
+ *
2404
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
2405
+ * @param {*} [options] Override http request option.
2406
+ * @throws {RequiredError}
2407
+ */
2408
+ createSecret(requestParameters, options) {
2409
+ return localVarFp.createSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSecretV1Request, options).then((request) => request(axios, basePath));
2410
+ },
2411
+ /**
2412
+ *
2413
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
2414
+ * @param {*} [options] Override http request option.
2415
+ * @throws {RequiredError}
2416
+ */
2417
+ deleteSecret(requestParameters, options) {
2418
+ return localVarFp.deleteSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, options).then((request) => request(axios, basePath));
2419
+ },
2420
+ /**
2421
+ *
2422
+ * @param {SecretsApiGetSecretsRequest} requestParameters Request parameters.
2423
+ * @param {*} [options] Override http request option.
2424
+ * @throws {RequiredError}
2425
+ */
2426
+ getSecrets(requestParameters, options) {
2427
+ return localVarFp.getSecrets(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
2428
+ },
2429
+ /**
2430
+ *
2431
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
2432
+ * @param {*} [options] Override http request option.
2433
+ * @throws {RequiredError}
2434
+ */
2435
+ updateSecret(requestParameters, options) {
2436
+ return localVarFp.updateSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, requestParameters.updateSecretV1Request, options).then((request) => request(axios, basePath));
2437
+ },
2438
+ };
2439
+ };
2440
+ exports.SecretsApiFactory = SecretsApiFactory;
2441
+ /**
2442
+ * SecretsApi - object-oriented interface
2443
+ * @export
2444
+ * @class SecretsApi
2445
+ * @extends {BaseAPI}
2446
+ */
2447
+ class SecretsApi extends base_1.BaseAPI {
2448
+ /**
2449
+ *
2450
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ * @memberof SecretsApi
2454
+ */
2455
+ createSecret(requestParameters, options) {
2456
+ return (0, exports.SecretsApiFp)(this.configuration).createSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSecretV1Request, options).then((request) => request(this.axios, this.basePath));
2457
+ }
2458
+ /**
2459
+ *
2460
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
2461
+ * @param {*} [options] Override http request option.
2462
+ * @throws {RequiredError}
2463
+ * @memberof SecretsApi
2464
+ */
2465
+ deleteSecret(requestParameters, options) {
2466
+ return (0, exports.SecretsApiFp)(this.configuration).deleteSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, options).then((request) => request(this.axios, this.basePath));
2467
+ }
2468
+ /**
2469
+ *
2470
+ * @param {SecretsApiGetSecretsRequest} requestParameters Request parameters.
2471
+ * @param {*} [options] Override http request option.
2472
+ * @throws {RequiredError}
2473
+ * @memberof SecretsApi
2474
+ */
2475
+ getSecrets(requestParameters, options) {
2476
+ return (0, exports.SecretsApiFp)(this.configuration).getSecrets(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
2477
+ }
2478
+ /**
2479
+ *
2480
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
2481
+ * @param {*} [options] Override http request option.
2482
+ * @throws {RequiredError}
2483
+ * @memberof SecretsApi
2484
+ */
2485
+ updateSecret(requestParameters, options) {
2486
+ return (0, exports.SecretsApiFp)(this.configuration).updateSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, requestParameters.updateSecretV1Request, options).then((request) => request(this.axios, this.basePath));
2487
+ }
2488
+ }
2489
+ exports.SecretsApi = SecretsApi;
2490
+ /**
2491
+ * WhoamiApi - axios parameter creator
2492
+ * @export
2493
+ */
2494
+ const WhoamiApiAxiosParamCreator = function (configuration) {
2495
+ return {
2496
+ /**
2497
+ *
2498
+ * @param {*} [options] Override http request option.
2499
+ * @throws {RequiredError}
2500
+ */
2501
+ whoami: async (options = {}) => {
2502
+ const localVarPath = `/whoami`;
2503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2505
+ let baseOptions;
2506
+ if (configuration) {
2507
+ baseOptions = configuration.baseOptions;
2508
+ }
2509
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2510
+ const localVarHeaderParameter = {};
2511
+ const localVarQueryParameter = {};
2512
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2514
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2515
+ return {
2516
+ url: (0, common_1.toPathString)(localVarUrlObj),
2517
+ options: localVarRequestOptions,
2518
+ };
2519
+ },
2520
+ };
2521
+ };
2522
+ exports.WhoamiApiAxiosParamCreator = WhoamiApiAxiosParamCreator;
2523
+ /**
2524
+ * WhoamiApi - functional programming interface
2525
+ * @export
2526
+ */
2527
+ const WhoamiApiFp = function (configuration) {
2528
+ const localVarAxiosParamCreator = (0, exports.WhoamiApiAxiosParamCreator)(configuration);
2529
+ return {
2530
+ /**
2531
+ *
2532
+ * @param {*} [options] Override http request option.
2533
+ * @throws {RequiredError}
2534
+ */
2535
+ async whoami(options) {
2536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whoami(options);
2537
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2538
+ const localVarOperationServerBasePath = base_1.operationServerMap['WhoamiApi.whoami']?.[localVarOperationServerIndex]?.url;
2539
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2540
+ },
2541
+ };
2542
+ };
2543
+ exports.WhoamiApiFp = WhoamiApiFp;
2544
+ /**
2545
+ * WhoamiApi - factory interface
2546
+ * @export
2547
+ */
2548
+ const WhoamiApiFactory = function (configuration, basePath, axios) {
2549
+ const localVarFp = (0, exports.WhoamiApiFp)(configuration);
2550
+ return {
2551
+ /**
2552
+ *
2553
+ * @param {*} [options] Override http request option.
2554
+ * @throws {RequiredError}
2555
+ */
2556
+ whoami(options) {
2557
+ return localVarFp.whoami(options).then((request) => request(axios, basePath));
2558
+ },
2559
+ };
2560
+ };
2561
+ exports.WhoamiApiFactory = WhoamiApiFactory;
2562
+ /**
2563
+ * WhoamiApi - object-oriented interface
2564
+ * @export
2565
+ * @class WhoamiApi
2566
+ * @extends {BaseAPI}
2567
+ */
2568
+ class WhoamiApi extends base_1.BaseAPI {
2569
+ /**
2570
+ *
2571
+ * @param {*} [options] Override http request option.
2572
+ * @throws {RequiredError}
2573
+ * @memberof WhoamiApi
2574
+ */
2575
+ whoami(options) {
2576
+ return (0, exports.WhoamiApiFp)(this.configuration).whoami(options).then((request) => request(this.axios, this.basePath));
2577
+ }
2578
+ }
2579
+ exports.WhoamiApi = WhoamiApi;