system-initiative-api-client 1.1.7 → 1.2.0

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,4110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * System Initiative API
5
+ * The API Server for interacting with a System Initiative workspace
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
20
+ /**
21
+ * @export
22
+ * @enum {string}
23
+ */
24
+ export var SchemaVariantFuncKindOneOfKindEnum;
25
+ (function (SchemaVariantFuncKindOneOfKindEnum) {
26
+ SchemaVariantFuncKindOneOfKindEnum["ACTION"] = "action";
27
+ })(SchemaVariantFuncKindOneOfKindEnum || (SchemaVariantFuncKindOneOfKindEnum = {}));
28
+ /**
29
+ * @export
30
+ * @enum {string}
31
+ */
32
+ export var SchemaVariantFuncKindOneOf1KindEnum;
33
+ (function (SchemaVariantFuncKindOneOf1KindEnum) {
34
+ SchemaVariantFuncKindOneOf1KindEnum["MANAGEMENT"] = "management";
35
+ })(SchemaVariantFuncKindOneOf1KindEnum || (SchemaVariantFuncKindOneOf1KindEnum = {}));
36
+ /**
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export var SchemaVariantFuncKindOneOf2KindEnum;
41
+ (function (SchemaVariantFuncKindOneOf2KindEnum) {
42
+ SchemaVariantFuncKindOneOf2KindEnum["OTHER"] = "other";
43
+ })(SchemaVariantFuncKindOneOf2KindEnum || (SchemaVariantFuncKindOneOf2KindEnum = {}));
44
+ /**
45
+ * ActionsApi - axios parameter creator
46
+ * @export
47
+ */
48
+ export const ActionsApiAxiosParamCreator = function (configuration) {
49
+ return {
50
+ /**
51
+ *
52
+ * @summary Remove queued action
53
+ * @param {string} workspaceId Workspace identifier
54
+ * @param {string} changeSetId Change Set identifier
55
+ * @param {string} actionId Action identifier
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ cancelAction: async (workspaceId, changeSetId, actionId, options = {}) => {
60
+ // verify required parameter 'workspaceId' is not null or undefined
61
+ assertParamExists('cancelAction', 'workspaceId', workspaceId);
62
+ // verify required parameter 'changeSetId' is not null or undefined
63
+ assertParamExists('cancelAction', 'changeSetId', changeSetId);
64
+ // verify required parameter 'actionId' is not null or undefined
65
+ assertParamExists('cancelAction', 'actionId', actionId);
66
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/cancel`
67
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
68
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
69
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
70
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
71
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72
+ let baseOptions;
73
+ if (configuration) {
74
+ baseOptions = configuration.baseOptions;
75
+ }
76
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
77
+ const localVarHeaderParameter = {};
78
+ const localVarQueryParameter = {};
79
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
80
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
82
+ return {
83
+ url: toPathString(localVarUrlObj),
84
+ options: localVarRequestOptions,
85
+ };
86
+ },
87
+ /**
88
+ *
89
+ * @summary List queued actions
90
+ * @param {string} workspaceId Workspace identifier
91
+ * @param {string} changeSetId Change Set identifier
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ getActions: async (workspaceId, changeSetId, options = {}) => {
96
+ // verify required parameter 'workspaceId' is not null or undefined
97
+ assertParamExists('getActions', 'workspaceId', workspaceId);
98
+ // verify required parameter 'changeSetId' is not null or undefined
99
+ assertParamExists('getActions', 'changeSetId', changeSetId);
100
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions`
101
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
102
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
110
+ const localVarHeaderParameter = {};
111
+ const localVarQueryParameter = {};
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
115
+ return {
116
+ url: toPathString(localVarUrlObj),
117
+ options: localVarRequestOptions,
118
+ };
119
+ },
120
+ /**
121
+ *
122
+ * @summary Put action on-hold
123
+ * @param {string} workspaceId Workspace identifier
124
+ * @param {string} changeSetId Change Set identifier
125
+ * @param {string} actionId Action identifier
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ putOnHold: async (workspaceId, changeSetId, actionId, options = {}) => {
130
+ // verify required parameter 'workspaceId' is not null or undefined
131
+ assertParamExists('putOnHold', 'workspaceId', workspaceId);
132
+ // verify required parameter 'changeSetId' is not null or undefined
133
+ assertParamExists('putOnHold', 'changeSetId', changeSetId);
134
+ // verify required parameter 'actionId' is not null or undefined
135
+ assertParamExists('putOnHold', 'actionId', actionId);
136
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/put_on_hold`
137
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
138
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
139
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ *
159
+ * @summary Retry action
160
+ * @param {string} workspaceId Workspace identifier
161
+ * @param {string} changeSetId Change Set identifier
162
+ * @param {string} actionId Action identifier
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ retryAction: async (workspaceId, changeSetId, actionId, options = {}) => {
167
+ // verify required parameter 'workspaceId' is not null or undefined
168
+ assertParamExists('retryAction', 'workspaceId', workspaceId);
169
+ // verify required parameter 'changeSetId' is not null or undefined
170
+ assertParamExists('retryAction', 'changeSetId', changeSetId);
171
+ // verify required parameter 'actionId' is not null or undefined
172
+ assertParamExists('retryAction', 'actionId', actionId);
173
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/actions/{action_id}/retry`
174
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
175
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
176
+ .replace(`{${"action_id"}}`, encodeURIComponent(String(actionId)));
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
189
+ return {
190
+ url: toPathString(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ };
193
+ },
194
+ };
195
+ };
196
+ /**
197
+ * ActionsApi - functional programming interface
198
+ * @export
199
+ */
200
+ export const ActionsApiFp = function (configuration) {
201
+ const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration);
202
+ return {
203
+ /**
204
+ *
205
+ * @summary Remove queued action
206
+ * @param {string} workspaceId Workspace identifier
207
+ * @param {string} changeSetId Change Set identifier
208
+ * @param {string} actionId Action identifier
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ async cancelAction(workspaceId, changeSetId, actionId, options) {
213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelAction(workspaceId, changeSetId, actionId, options);
214
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
215
+ const localVarOperationServerBasePath = operationServerMap['ActionsApi.cancelAction']?.[localVarOperationServerIndex]?.url;
216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
+ },
218
+ /**
219
+ *
220
+ * @summary List queued actions
221
+ * @param {string} workspaceId Workspace identifier
222
+ * @param {string} changeSetId Change Set identifier
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ async getActions(workspaceId, changeSetId, options) {
227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActions(workspaceId, changeSetId, options);
228
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
229
+ const localVarOperationServerBasePath = operationServerMap['ActionsApi.getActions']?.[localVarOperationServerIndex]?.url;
230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
231
+ },
232
+ /**
233
+ *
234
+ * @summary Put action on-hold
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 putOnHold(workspaceId, changeSetId, actionId, options) {
242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putOnHold(workspaceId, changeSetId, actionId, options);
243
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
244
+ const localVarOperationServerBasePath = operationServerMap['ActionsApi.putOnHold']?.[localVarOperationServerIndex]?.url;
245
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
246
+ },
247
+ /**
248
+ *
249
+ * @summary Retry action
250
+ * @param {string} workspaceId Workspace identifier
251
+ * @param {string} changeSetId Change Set identifier
252
+ * @param {string} actionId Action identifier
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ async retryAction(workspaceId, changeSetId, actionId, options) {
257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retryAction(workspaceId, changeSetId, actionId, options);
258
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
259
+ const localVarOperationServerBasePath = operationServerMap['ActionsApi.retryAction']?.[localVarOperationServerIndex]?.url;
260
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
261
+ },
262
+ };
263
+ };
264
+ /**
265
+ * ActionsApi - factory interface
266
+ * @export
267
+ */
268
+ export const ActionsApiFactory = function (configuration, basePath, axios) {
269
+ const localVarFp = ActionsApiFp(configuration);
270
+ return {
271
+ /**
272
+ *
273
+ * @summary Remove queued action
274
+ * @param {ActionsApiCancelActionRequest} requestParameters Request parameters.
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ cancelAction(requestParameters, options) {
279
+ return localVarFp.cancelAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
280
+ },
281
+ /**
282
+ *
283
+ * @summary List queued actions
284
+ * @param {ActionsApiGetActionsRequest} requestParameters Request parameters.
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ getActions(requestParameters, options) {
289
+ return localVarFp.getActions(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
290
+ },
291
+ /**
292
+ *
293
+ * @summary Put action on-hold
294
+ * @param {ActionsApiPutOnHoldRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ putOnHold(requestParameters, options) {
299
+ return localVarFp.putOnHold(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
300
+ },
301
+ /**
302
+ *
303
+ * @summary Retry action
304
+ * @param {ActionsApiRetryActionRequest} requestParameters Request parameters.
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ retryAction(requestParameters, options) {
309
+ return localVarFp.retryAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(axios, basePath));
310
+ },
311
+ };
312
+ };
313
+ /**
314
+ * ActionsApi - object-oriented interface
315
+ * @export
316
+ * @class ActionsApi
317
+ * @extends {BaseAPI}
318
+ */
319
+ export class ActionsApi extends BaseAPI {
320
+ /**
321
+ *
322
+ * @summary Remove queued action
323
+ * @param {ActionsApiCancelActionRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof ActionsApi
327
+ */
328
+ cancelAction(requestParameters, options) {
329
+ return ActionsApiFp(this.configuration).cancelAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
330
+ }
331
+ /**
332
+ *
333
+ * @summary List queued actions
334
+ * @param {ActionsApiGetActionsRequest} requestParameters Request parameters.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof ActionsApi
338
+ */
339
+ getActions(requestParameters, options) {
340
+ return ActionsApiFp(this.configuration).getActions(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
341
+ }
342
+ /**
343
+ *
344
+ * @summary Put action on-hold
345
+ * @param {ActionsApiPutOnHoldRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof ActionsApi
349
+ */
350
+ putOnHold(requestParameters, options) {
351
+ return ActionsApiFp(this.configuration).putOnHold(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
352
+ }
353
+ /**
354
+ *
355
+ * @summary Retry action
356
+ * @param {ActionsApiRetryActionRequest} requestParameters Request parameters.
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ * @memberof ActionsApi
360
+ */
361
+ retryAction(requestParameters, options) {
362
+ return ActionsApiFp(this.configuration).retryAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
363
+ }
364
+ }
365
+ /**
366
+ * ChangeSetsApi - axios parameter creator
367
+ * @export
368
+ */
369
+ export const ChangeSetsApiAxiosParamCreator = function (configuration) {
370
+ return {
371
+ /**
372
+ *
373
+ * @summary Delete a Change Set
374
+ * @param {string} workspaceId Workspace identifier
375
+ * @param {string} changeSetId Change Set identifier
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ abandonChangeSet: async (workspaceId, changeSetId, options = {}) => {
380
+ // verify required parameter 'workspaceId' is not null or undefined
381
+ assertParamExists('abandonChangeSet', 'workspaceId', workspaceId);
382
+ // verify required parameter 'changeSetId' is not null or undefined
383
+ assertParamExists('abandonChangeSet', 'changeSetId', changeSetId);
384
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}`
385
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
386
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
389
+ let baseOptions;
390
+ if (configuration) {
391
+ baseOptions = configuration.baseOptions;
392
+ }
393
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
394
+ const localVarHeaderParameter = {};
395
+ const localVarQueryParameter = {};
396
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
399
+ return {
400
+ url: toPathString(localVarUrlObj),
401
+ options: localVarRequestOptions,
402
+ };
403
+ },
404
+ /**
405
+ *
406
+ * @summary Create a Change Set
407
+ * @param {string} workspaceId Workspace identifier
408
+ * @param {CreateChangeSetV1Request} createChangeSetV1Request
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ createChangeSet: async (workspaceId, createChangeSetV1Request, options = {}) => {
413
+ // verify required parameter 'workspaceId' is not null or undefined
414
+ assertParamExists('createChangeSet', 'workspaceId', workspaceId);
415
+ // verify required parameter 'createChangeSetV1Request' is not null or undefined
416
+ assertParamExists('createChangeSet', 'createChangeSetV1Request', createChangeSetV1Request);
417
+ const localVarPath = `/v1/w/{workspace_id}/change-sets`
418
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
419
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
420
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
421
+ let baseOptions;
422
+ if (configuration) {
423
+ baseOptions = configuration.baseOptions;
424
+ }
425
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
426
+ const localVarHeaderParameter = {};
427
+ const localVarQueryParameter = {};
428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
432
+ localVarRequestOptions.data = serializeDataIfNeeded(createChangeSetV1Request, localVarRequestOptions, configuration);
433
+ return {
434
+ url: toPathString(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ };
437
+ },
438
+ /**
439
+ *
440
+ * @summary Merge Change Set without approval
441
+ * @param {string} workspaceId Workspace identifier
442
+ * @param {string} changeSetId Change Set identifier
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ forceApply: async (workspaceId, changeSetId, options = {}) => {
447
+ // verify required parameter 'workspaceId' is not null or undefined
448
+ assertParamExists('forceApply', 'workspaceId', workspaceId);
449
+ // verify required parameter 'changeSetId' is not null or undefined
450
+ assertParamExists('forceApply', 'changeSetId', changeSetId);
451
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/force_apply`
452
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
453
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
455
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
456
+ let baseOptions;
457
+ if (configuration) {
458
+ baseOptions = configuration.baseOptions;
459
+ }
460
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
461
+ const localVarHeaderParameter = {};
462
+ const localVarQueryParameter = {};
463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
466
+ return {
467
+ url: toPathString(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ },
471
+ /**
472
+ *
473
+ * @summary Get a Change Set by Change Set Id
474
+ * @param {string} workspaceId Workspace identifier
475
+ * @param {string} changeSetId Change Set identifier
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ getChangeSet: async (workspaceId, changeSetId, options = {}) => {
480
+ // verify required parameter 'workspaceId' is not null or undefined
481
+ assertParamExists('getChangeSet', 'workspaceId', workspaceId);
482
+ // verify required parameter 'changeSetId' is not null or undefined
483
+ assertParamExists('getChangeSet', 'changeSetId', changeSetId);
484
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}`
485
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
486
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
487
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
488
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
489
+ let baseOptions;
490
+ if (configuration) {
491
+ baseOptions = configuration.baseOptions;
492
+ }
493
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
494
+ const localVarHeaderParameter = {};
495
+ const localVarQueryParameter = {};
496
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
497
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
498
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
499
+ return {
500
+ url: toPathString(localVarUrlObj),
501
+ options: localVarRequestOptions,
502
+ };
503
+ },
504
+ /**
505
+ *
506
+ * @summary List all active Change Sets
507
+ * @param {string} workspaceId Workspace identifier
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ listChangeSets: async (workspaceId, options = {}) => {
512
+ // verify required parameter 'workspaceId' is not null or undefined
513
+ assertParamExists('listChangeSets', 'workspaceId', workspaceId);
514
+ const localVarPath = `/v1/w/{workspace_id}/change-sets`
515
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
518
+ let baseOptions;
519
+ if (configuration) {
520
+ baseOptions = configuration.baseOptions;
521
+ }
522
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
523
+ const localVarHeaderParameter = {};
524
+ const localVarQueryParameter = {};
525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
527
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
528
+ return {
529
+ url: toPathString(localVarUrlObj),
530
+ options: localVarRequestOptions,
531
+ };
532
+ },
533
+ /**
534
+ *
535
+ * @summary Get Change Set post merge status
536
+ * @param {string} workspaceId Workspace identifier
537
+ * @param {string} changeSetId Change Set identifier
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ mergeStatus: async (workspaceId, changeSetId, options = {}) => {
542
+ // verify required parameter 'workspaceId' is not null or undefined
543
+ assertParamExists('mergeStatus', 'workspaceId', workspaceId);
544
+ // verify required parameter 'changeSetId' is not null or undefined
545
+ assertParamExists('mergeStatus', 'changeSetId', changeSetId);
546
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/merge_status`
547
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
548
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
549
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
550
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
551
+ let baseOptions;
552
+ if (configuration) {
553
+ baseOptions = configuration.baseOptions;
554
+ }
555
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
556
+ const localVarHeaderParameter = {};
557
+ const localVarQueryParameter = {};
558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
560
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
561
+ return {
562
+ url: toPathString(localVarUrlObj),
563
+ options: localVarRequestOptions,
564
+ };
565
+ },
566
+ /**
567
+ *
568
+ * @summary Abandon all active Change Sets
569
+ * @param {string} workspaceId Workspace identifier
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ purgeOpen: async (workspaceId, options = {}) => {
574
+ // verify required parameter 'workspaceId' is not null or undefined
575
+ assertParamExists('purgeOpen', 'workspaceId', workspaceId);
576
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/purge_open`
577
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
579
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
580
+ let baseOptions;
581
+ if (configuration) {
582
+ baseOptions = configuration.baseOptions;
583
+ }
584
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
585
+ const localVarHeaderParameter = {};
586
+ const localVarQueryParameter = {};
587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
589
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
590
+ return {
591
+ url: toPathString(localVarUrlObj),
592
+ options: localVarRequestOptions,
593
+ };
594
+ },
595
+ /**
596
+ *
597
+ * @summary Request Change Set merge approval
598
+ * @param {string} workspaceId Workspace identifier
599
+ * @param {string} changeSetId Change Set identifier
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ requestApproval: async (workspaceId, changeSetId, options = {}) => {
604
+ // verify required parameter 'workspaceId' is not null or undefined
605
+ assertParamExists('requestApproval', 'workspaceId', workspaceId);
606
+ // verify required parameter 'changeSetId' is not null or undefined
607
+ assertParamExists('requestApproval', 'changeSetId', changeSetId);
608
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/request_approval`
609
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
610
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
618
+ const localVarHeaderParameter = {};
619
+ const localVarQueryParameter = {};
620
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
622
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
623
+ return {
624
+ url: toPathString(localVarUrlObj),
625
+ options: localVarRequestOptions,
626
+ };
627
+ },
628
+ };
629
+ };
630
+ /**
631
+ * ChangeSetsApi - functional programming interface
632
+ * @export
633
+ */
634
+ export const ChangeSetsApiFp = function (configuration) {
635
+ const localVarAxiosParamCreator = ChangeSetsApiAxiosParamCreator(configuration);
636
+ return {
637
+ /**
638
+ *
639
+ * @summary Delete a Change Set
640
+ * @param {string} workspaceId Workspace identifier
641
+ * @param {string} changeSetId Change Set identifier
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ async abandonChangeSet(workspaceId, changeSetId, options) {
646
+ const localVarAxiosArgs = await localVarAxiosParamCreator.abandonChangeSet(workspaceId, changeSetId, options);
647
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
648
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.abandonChangeSet']?.[localVarOperationServerIndex]?.url;
649
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
650
+ },
651
+ /**
652
+ *
653
+ * @summary Create a Change Set
654
+ * @param {string} workspaceId Workspace identifier
655
+ * @param {CreateChangeSetV1Request} createChangeSetV1Request
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ async createChangeSet(workspaceId, createChangeSetV1Request, options) {
660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createChangeSet(workspaceId, createChangeSetV1Request, options);
661
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
662
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.createChangeSet']?.[localVarOperationServerIndex]?.url;
663
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
664
+ },
665
+ /**
666
+ *
667
+ * @summary Merge Change Set without approval
668
+ * @param {string} workspaceId Workspace identifier
669
+ * @param {string} changeSetId Change Set identifier
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ async forceApply(workspaceId, changeSetId, options) {
674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.forceApply(workspaceId, changeSetId, options);
675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
676
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.forceApply']?.[localVarOperationServerIndex]?.url;
677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
678
+ },
679
+ /**
680
+ *
681
+ * @summary Get a Change Set by Change Set Id
682
+ * @param {string} workspaceId Workspace identifier
683
+ * @param {string} changeSetId Change Set identifier
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ async getChangeSet(workspaceId, changeSetId, options) {
688
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChangeSet(workspaceId, changeSetId, options);
689
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
690
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.getChangeSet']?.[localVarOperationServerIndex]?.url;
691
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
692
+ },
693
+ /**
694
+ *
695
+ * @summary List all active Change Sets
696
+ * @param {string} workspaceId Workspace identifier
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ async listChangeSets(workspaceId, options) {
701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listChangeSets(workspaceId, options);
702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
703
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.listChangeSets']?.[localVarOperationServerIndex]?.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ },
706
+ /**
707
+ *
708
+ * @summary Get Change Set post merge status
709
+ * @param {string} workspaceId Workspace identifier
710
+ * @param {string} changeSetId Change Set identifier
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ async mergeStatus(workspaceId, changeSetId, options) {
715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mergeStatus(workspaceId, changeSetId, options);
716
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
717
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.mergeStatus']?.[localVarOperationServerIndex]?.url;
718
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
719
+ },
720
+ /**
721
+ *
722
+ * @summary Abandon all active Change Sets
723
+ * @param {string} workspaceId Workspace identifier
724
+ * @param {*} [options] Override http request option.
725
+ * @throws {RequiredError}
726
+ */
727
+ async purgeOpen(workspaceId, options) {
728
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purgeOpen(workspaceId, options);
729
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
730
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.purgeOpen']?.[localVarOperationServerIndex]?.url;
731
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
+ },
733
+ /**
734
+ *
735
+ * @summary Request Change Set merge approval
736
+ * @param {string} workspaceId Workspace identifier
737
+ * @param {string} changeSetId Change Set identifier
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ async requestApproval(workspaceId, changeSetId, options) {
742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestApproval(workspaceId, changeSetId, options);
743
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
744
+ const localVarOperationServerBasePath = operationServerMap['ChangeSetsApi.requestApproval']?.[localVarOperationServerIndex]?.url;
745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
746
+ },
747
+ };
748
+ };
749
+ /**
750
+ * ChangeSetsApi - factory interface
751
+ * @export
752
+ */
753
+ export const ChangeSetsApiFactory = function (configuration, basePath, axios) {
754
+ const localVarFp = ChangeSetsApiFp(configuration);
755
+ return {
756
+ /**
757
+ *
758
+ * @summary Delete a Change Set
759
+ * @param {ChangeSetsApiAbandonChangeSetRequest} requestParameters Request parameters.
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ abandonChangeSet(requestParameters, options) {
764
+ return localVarFp.abandonChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
765
+ },
766
+ /**
767
+ *
768
+ * @summary Create a Change Set
769
+ * @param {ChangeSetsApiCreateChangeSetRequest} requestParameters Request parameters.
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ createChangeSet(requestParameters, options) {
774
+ return localVarFp.createChangeSet(requestParameters.workspaceId, requestParameters.createChangeSetV1Request, options).then((request) => request(axios, basePath));
775
+ },
776
+ /**
777
+ *
778
+ * @summary Merge Change Set without approval
779
+ * @param {ChangeSetsApiForceApplyRequest} requestParameters Request parameters.
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ forceApply(requestParameters, options) {
784
+ return localVarFp.forceApply(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
785
+ },
786
+ /**
787
+ *
788
+ * @summary Get a Change Set by Change Set Id
789
+ * @param {ChangeSetsApiGetChangeSetRequest} requestParameters Request parameters.
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ */
793
+ getChangeSet(requestParameters, options) {
794
+ return localVarFp.getChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
795
+ },
796
+ /**
797
+ *
798
+ * @summary List all active Change Sets
799
+ * @param {ChangeSetsApiListChangeSetsRequest} requestParameters Request parameters.
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ listChangeSets(requestParameters, options) {
804
+ return localVarFp.listChangeSets(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
805
+ },
806
+ /**
807
+ *
808
+ * @summary Get Change Set post merge status
809
+ * @param {ChangeSetsApiMergeStatusRequest} requestParameters Request parameters.
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ mergeStatus(requestParameters, options) {
814
+ return localVarFp.mergeStatus(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
815
+ },
816
+ /**
817
+ *
818
+ * @summary Abandon all active Change Sets
819
+ * @param {ChangeSetsApiPurgeOpenRequest} requestParameters Request parameters.
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ purgeOpen(requestParameters, options) {
824
+ return localVarFp.purgeOpen(requestParameters.workspaceId, options).then((request) => request(axios, basePath));
825
+ },
826
+ /**
827
+ *
828
+ * @summary Request Change Set merge approval
829
+ * @param {ChangeSetsApiRequestApprovalRequest} requestParameters Request parameters.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ requestApproval(requestParameters, options) {
834
+ return localVarFp.requestApproval(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
835
+ },
836
+ };
837
+ };
838
+ /**
839
+ * ChangeSetsApi - object-oriented interface
840
+ * @export
841
+ * @class ChangeSetsApi
842
+ * @extends {BaseAPI}
843
+ */
844
+ export class ChangeSetsApi extends BaseAPI {
845
+ /**
846
+ *
847
+ * @summary Delete a Change Set
848
+ * @param {ChangeSetsApiAbandonChangeSetRequest} requestParameters Request parameters.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ * @memberof ChangeSetsApi
852
+ */
853
+ abandonChangeSet(requestParameters, options) {
854
+ return ChangeSetsApiFp(this.configuration).abandonChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
855
+ }
856
+ /**
857
+ *
858
+ * @summary Create a Change Set
859
+ * @param {ChangeSetsApiCreateChangeSetRequest} requestParameters Request parameters.
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ * @memberof ChangeSetsApi
863
+ */
864
+ createChangeSet(requestParameters, options) {
865
+ return ChangeSetsApiFp(this.configuration).createChangeSet(requestParameters.workspaceId, requestParameters.createChangeSetV1Request, options).then((request) => request(this.axios, this.basePath));
866
+ }
867
+ /**
868
+ *
869
+ * @summary Merge Change Set without approval
870
+ * @param {ChangeSetsApiForceApplyRequest} requestParameters Request parameters.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ * @memberof ChangeSetsApi
874
+ */
875
+ forceApply(requestParameters, options) {
876
+ return ChangeSetsApiFp(this.configuration).forceApply(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
877
+ }
878
+ /**
879
+ *
880
+ * @summary Get a Change Set by Change Set Id
881
+ * @param {ChangeSetsApiGetChangeSetRequest} requestParameters Request parameters.
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ * @memberof ChangeSetsApi
885
+ */
886
+ getChangeSet(requestParameters, options) {
887
+ return ChangeSetsApiFp(this.configuration).getChangeSet(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
888
+ }
889
+ /**
890
+ *
891
+ * @summary List all active Change Sets
892
+ * @param {ChangeSetsApiListChangeSetsRequest} requestParameters Request parameters.
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ * @memberof ChangeSetsApi
896
+ */
897
+ listChangeSets(requestParameters, options) {
898
+ return ChangeSetsApiFp(this.configuration).listChangeSets(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
899
+ }
900
+ /**
901
+ *
902
+ * @summary Get Change Set post merge status
903
+ * @param {ChangeSetsApiMergeStatusRequest} requestParameters Request parameters.
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ * @memberof ChangeSetsApi
907
+ */
908
+ mergeStatus(requestParameters, options) {
909
+ return ChangeSetsApiFp(this.configuration).mergeStatus(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
910
+ }
911
+ /**
912
+ *
913
+ * @summary Abandon all active Change Sets
914
+ * @param {ChangeSetsApiPurgeOpenRequest} requestParameters Request parameters.
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ * @memberof ChangeSetsApi
918
+ */
919
+ purgeOpen(requestParameters, options) {
920
+ return ChangeSetsApiFp(this.configuration).purgeOpen(requestParameters.workspaceId, options).then((request) => request(this.axios, this.basePath));
921
+ }
922
+ /**
923
+ *
924
+ * @summary Request Change Set merge approval
925
+ * @param {ChangeSetsApiRequestApprovalRequest} requestParameters Request parameters.
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ * @memberof ChangeSetsApi
929
+ */
930
+ requestApproval(requestParameters, options) {
931
+ return ChangeSetsApiFp(this.configuration).requestApproval(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
932
+ }
933
+ }
934
+ /**
935
+ * ComponentsApi - axios parameter creator
936
+ * @export
937
+ */
938
+ export const ComponentsApiAxiosParamCreator = function (configuration) {
939
+ return {
940
+ /**
941
+ *
942
+ * @summary Queue action for a component
943
+ * @param {string} workspaceId Workspace identifier
944
+ * @param {string} changeSetId Change Set identifier
945
+ * @param {string} componentId Component identifier
946
+ * @param {AddActionV1Request} addActionV1Request
947
+ * @param {*} [options] Override http request option.
948
+ * @throws {RequiredError}
949
+ */
950
+ addAction: async (workspaceId, changeSetId, componentId, addActionV1Request, options = {}) => {
951
+ // verify required parameter 'workspaceId' is not null or undefined
952
+ assertParamExists('addAction', 'workspaceId', workspaceId);
953
+ // verify required parameter 'changeSetId' is not null or undefined
954
+ assertParamExists('addAction', 'changeSetId', changeSetId);
955
+ // verify required parameter 'componentId' is not null or undefined
956
+ assertParamExists('addAction', 'componentId', componentId);
957
+ // verify required parameter 'addActionV1Request' is not null or undefined
958
+ assertParamExists('addAction', 'addActionV1Request', addActionV1Request);
959
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/action`
960
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
961
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
962
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
963
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
964
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
965
+ let baseOptions;
966
+ if (configuration) {
967
+ baseOptions = configuration.baseOptions;
968
+ }
969
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
970
+ const localVarHeaderParameter = {};
971
+ const localVarQueryParameter = {};
972
+ localVarHeaderParameter['Content-Type'] = 'application/json';
973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
975
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
976
+ localVarRequestOptions.data = serializeDataIfNeeded(addActionV1Request, localVarRequestOptions, configuration);
977
+ return {
978
+ url: toPathString(localVarUrlObj),
979
+ options: localVarRequestOptions,
980
+ };
981
+ },
982
+ /**
983
+ *
984
+ * @summary Create a component
985
+ * @param {string} workspaceId Workspace identifier
986
+ * @param {string} changeSetId Change Set identifier
987
+ * @param {CreateComponentV1Request} createComponentV1Request
988
+ * @param {*} [options] Override http request option.
989
+ * @throws {RequiredError}
990
+ */
991
+ createComponent: async (workspaceId, changeSetId, createComponentV1Request, options = {}) => {
992
+ // verify required parameter 'workspaceId' is not null or undefined
993
+ assertParamExists('createComponent', 'workspaceId', workspaceId);
994
+ // verify required parameter 'changeSetId' is not null or undefined
995
+ assertParamExists('createComponent', 'changeSetId', changeSetId);
996
+ // verify required parameter 'createComponentV1Request' is not null or undefined
997
+ assertParamExists('createComponent', 'createComponentV1Request', createComponentV1Request);
998
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components`
999
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1000
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1003
+ let baseOptions;
1004
+ if (configuration) {
1005
+ baseOptions = configuration.baseOptions;
1006
+ }
1007
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1008
+ const localVarHeaderParameter = {};
1009
+ const localVarQueryParameter = {};
1010
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1011
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1013
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1014
+ localVarRequestOptions.data = serializeDataIfNeeded(createComponentV1Request, localVarRequestOptions, configuration);
1015
+ return {
1016
+ url: toPathString(localVarUrlObj),
1017
+ options: localVarRequestOptions,
1018
+ };
1019
+ },
1020
+ /**
1021
+ *
1022
+ * @summary Delete a component
1023
+ * @param {string} workspaceId Workspace identifier
1024
+ * @param {string} changeSetId Change Set identifier
1025
+ * @param {string} componentId Component identifier
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ deleteComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1030
+ // verify required parameter 'workspaceId' is not null or undefined
1031
+ assertParamExists('deleteComponent', 'workspaceId', workspaceId);
1032
+ // verify required parameter 'changeSetId' is not null or undefined
1033
+ assertParamExists('deleteComponent', 'changeSetId', changeSetId);
1034
+ // verify required parameter 'componentId' is not null or undefined
1035
+ assertParamExists('deleteComponent', 'componentId', componentId);
1036
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
1037
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1038
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1039
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1042
+ let baseOptions;
1043
+ if (configuration) {
1044
+ baseOptions = configuration.baseOptions;
1045
+ }
1046
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1047
+ const localVarHeaderParameter = {};
1048
+ const localVarQueryParameter = {};
1049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1051
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1052
+ return {
1053
+ url: toPathString(localVarUrlObj),
1054
+ options: localVarRequestOptions,
1055
+ };
1056
+ },
1057
+ /**
1058
+ *
1059
+ * @summary Duplicate a list of components
1060
+ * @param {string} workspaceId Workspace identifier
1061
+ * @param {string} changeSetId Change Set identifier
1062
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ duplicateComponents: async (workspaceId, changeSetId, duplicateComponentsV1Request, options = {}) => {
1067
+ // verify required parameter 'workspaceId' is not null or undefined
1068
+ assertParamExists('duplicateComponents', 'workspaceId', workspaceId);
1069
+ // verify required parameter 'changeSetId' is not null or undefined
1070
+ assertParamExists('duplicateComponents', 'changeSetId', changeSetId);
1071
+ // verify required parameter 'duplicateComponentsV1Request' is not null or undefined
1072
+ assertParamExists('duplicateComponents', 'duplicateComponentsV1Request', duplicateComponentsV1Request);
1073
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/duplicate`
1074
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1075
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1076
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1077
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1078
+ let baseOptions;
1079
+ if (configuration) {
1080
+ baseOptions = configuration.baseOptions;
1081
+ }
1082
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1083
+ const localVarHeaderParameter = {};
1084
+ const localVarQueryParameter = {};
1085
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1086
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1088
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1089
+ localVarRequestOptions.data = serializeDataIfNeeded(duplicateComponentsV1Request, localVarRequestOptions, configuration);
1090
+ return {
1091
+ url: toPathString(localVarUrlObj),
1092
+ options: localVarRequestOptions,
1093
+ };
1094
+ },
1095
+ /**
1096
+ *
1097
+ * @summary Erase a component without queuing a delete action
1098
+ * @param {string} workspaceId Workspace identifier
1099
+ * @param {string} changeSetId Change Set identifier
1100
+ * @param {string} componentId Component identifier
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ eraseComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1105
+ // verify required parameter 'workspaceId' is not null or undefined
1106
+ assertParamExists('eraseComponent', 'workspaceId', workspaceId);
1107
+ // verify required parameter 'changeSetId' is not null or undefined
1108
+ assertParamExists('eraseComponent', 'changeSetId', changeSetId);
1109
+ // verify required parameter 'componentId' is not null or undefined
1110
+ assertParamExists('eraseComponent', 'componentId', componentId);
1111
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/erase`
1112
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1113
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1114
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1117
+ let baseOptions;
1118
+ if (configuration) {
1119
+ baseOptions = configuration.baseOptions;
1120
+ }
1121
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1122
+ const localVarHeaderParameter = {};
1123
+ const localVarQueryParameter = {};
1124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1126
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1127
+ return {
1128
+ url: toPathString(localVarUrlObj),
1129
+ options: localVarRequestOptions,
1130
+ };
1131
+ },
1132
+ /**
1133
+ *
1134
+ * @summary Execute a component\'s management function
1135
+ * @param {string} workspaceId Workspace identifier
1136
+ * @param {string} changeSetId Change Set identifier
1137
+ * @param {string} componentId Component identifier
1138
+ * @param {ExecuteManagementFunctionV1Request} executeManagementFunctionV1Request
1139
+ * @param {*} [options] Override http request option.
1140
+ * @throws {RequiredError}
1141
+ */
1142
+ executeManagementFunction: async (workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options = {}) => {
1143
+ // verify required parameter 'workspaceId' is not null or undefined
1144
+ assertParamExists('executeManagementFunction', 'workspaceId', workspaceId);
1145
+ // verify required parameter 'changeSetId' is not null or undefined
1146
+ assertParamExists('executeManagementFunction', 'changeSetId', changeSetId);
1147
+ // verify required parameter 'componentId' is not null or undefined
1148
+ assertParamExists('executeManagementFunction', 'componentId', componentId);
1149
+ // verify required parameter 'executeManagementFunctionV1Request' is not null or undefined
1150
+ assertParamExists('executeManagementFunction', 'executeManagementFunctionV1Request', executeManagementFunctionV1Request);
1151
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/execute-management-function`
1152
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1153
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1154
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1157
+ let baseOptions;
1158
+ if (configuration) {
1159
+ baseOptions = configuration.baseOptions;
1160
+ }
1161
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1162
+ const localVarHeaderParameter = {};
1163
+ const localVarQueryParameter = {};
1164
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1167
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1168
+ localVarRequestOptions.data = serializeDataIfNeeded(executeManagementFunctionV1Request, localVarRequestOptions, configuration);
1169
+ return {
1170
+ url: toPathString(localVarUrlObj),
1171
+ options: localVarRequestOptions,
1172
+ };
1173
+ },
1174
+ /**
1175
+ *
1176
+ * @summary Find a component by name or component Id
1177
+ * @param {string} workspaceId Workspace identifier
1178
+ * @param {string} changeSetId Change Set identifier
1179
+ * @param {string | null} [component]
1180
+ * @param {string | null} [componentId]
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ findComponent: async (workspaceId, changeSetId, component, componentId, options = {}) => {
1185
+ // verify required parameter 'workspaceId' is not null or undefined
1186
+ assertParamExists('findComponent', 'workspaceId', workspaceId);
1187
+ // verify required parameter 'changeSetId' is not null or undefined
1188
+ assertParamExists('findComponent', 'changeSetId', changeSetId);
1189
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/find`
1190
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1191
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1194
+ let baseOptions;
1195
+ if (configuration) {
1196
+ baseOptions = configuration.baseOptions;
1197
+ }
1198
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1199
+ const localVarHeaderParameter = {};
1200
+ const localVarQueryParameter = {};
1201
+ if (component !== undefined) {
1202
+ localVarQueryParameter['component'] = component;
1203
+ }
1204
+ if (componentId !== undefined) {
1205
+ localVarQueryParameter['componentId'] = componentId;
1206
+ }
1207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1209
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1210
+ return {
1211
+ url: toPathString(localVarUrlObj),
1212
+ options: localVarRequestOptions,
1213
+ };
1214
+ },
1215
+ /**
1216
+ *
1217
+ * @summary Generate a template
1218
+ * @param {string} workspaceId Workspace identifier
1219
+ * @param {string} changeSetId Change Set identifier
1220
+ * @param {GenerateTemplateV1Request} generateTemplateV1Request
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ generateTemplate: async (workspaceId, changeSetId, generateTemplateV1Request, options = {}) => {
1225
+ // verify required parameter 'workspaceId' is not null or undefined
1226
+ assertParamExists('generateTemplate', 'workspaceId', workspaceId);
1227
+ // verify required parameter 'changeSetId' is not null or undefined
1228
+ assertParamExists('generateTemplate', 'changeSetId', changeSetId);
1229
+ // verify required parameter 'generateTemplateV1Request' is not null or undefined
1230
+ assertParamExists('generateTemplate', 'generateTemplateV1Request', generateTemplateV1Request);
1231
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/generate_template`
1232
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1233
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1236
+ let baseOptions;
1237
+ if (configuration) {
1238
+ baseOptions = configuration.baseOptions;
1239
+ }
1240
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1241
+ const localVarHeaderParameter = {};
1242
+ const localVarQueryParameter = {};
1243
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1246
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1247
+ localVarRequestOptions.data = serializeDataIfNeeded(generateTemplateV1Request, localVarRequestOptions, configuration);
1248
+ return {
1249
+ url: toPathString(localVarUrlObj),
1250
+ options: localVarRequestOptions,
1251
+ };
1252
+ },
1253
+ /**
1254
+ *
1255
+ * @summary Get a component by component Id
1256
+ * @param {string} workspaceId Workspace identifier
1257
+ * @param {string} changeSetId Change Set identifier
1258
+ * @param {string} componentId Component identifier
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ getComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1263
+ // verify required parameter 'workspaceId' is not null or undefined
1264
+ assertParamExists('getComponent', 'workspaceId', workspaceId);
1265
+ // verify required parameter 'changeSetId' is not null or undefined
1266
+ assertParamExists('getComponent', 'changeSetId', changeSetId);
1267
+ // verify required parameter 'componentId' is not null or undefined
1268
+ assertParamExists('getComponent', 'componentId', componentId);
1269
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
1270
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1271
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1272
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1275
+ let baseOptions;
1276
+ if (configuration) {
1277
+ baseOptions = configuration.baseOptions;
1278
+ }
1279
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1280
+ const localVarHeaderParameter = {};
1281
+ const localVarQueryParameter = {};
1282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1284
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1285
+ return {
1286
+ url: toPathString(localVarUrlObj),
1287
+ options: localVarRequestOptions,
1288
+ };
1289
+ },
1290
+ /**
1291
+ *
1292
+ * @summary List all components
1293
+ * @param {string} workspaceId Workspace identifier
1294
+ * @param {string} changeSetId Change Set identifier
1295
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
1296
+ * @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
1297
+ * @param {boolean} [includeCodegen] Allow returning the codegen for the cloudformation template for the component (if it exists)
1298
+ * @param {*} [options] Override http request option.
1299
+ * @throws {RequiredError}
1300
+ */
1301
+ listComponents: async (workspaceId, changeSetId, limit, cursor, includeCodegen, options = {}) => {
1302
+ // verify required parameter 'workspaceId' is not null or undefined
1303
+ assertParamExists('listComponents', 'workspaceId', workspaceId);
1304
+ // verify required parameter 'changeSetId' is not null or undefined
1305
+ assertParamExists('listComponents', 'changeSetId', changeSetId);
1306
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components`
1307
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1308
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1311
+ let baseOptions;
1312
+ if (configuration) {
1313
+ baseOptions = configuration.baseOptions;
1314
+ }
1315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1316
+ const localVarHeaderParameter = {};
1317
+ const localVarQueryParameter = {};
1318
+ if (limit !== undefined) {
1319
+ localVarQueryParameter['limit'] = limit;
1320
+ }
1321
+ if (cursor !== undefined) {
1322
+ localVarQueryParameter['cursor'] = cursor;
1323
+ }
1324
+ if (includeCodegen !== undefined) {
1325
+ localVarQueryParameter['includeCodegen'] = includeCodegen;
1326
+ }
1327
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1329
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1330
+ return {
1331
+ url: toPathString(localVarUrlObj),
1332
+ options: localVarRequestOptions,
1333
+ };
1334
+ },
1335
+ /**
1336
+ *
1337
+ * @summary Putting a component under the management of another component
1338
+ * @param {string} workspaceId Workspace identifier
1339
+ * @param {string} changeSetId Change Set identifier
1340
+ * @param {string} componentId Component identifier
1341
+ * @param {ManageComponentV1Request} manageComponentV1Request
1342
+ * @param {*} [options] Override http request option.
1343
+ * @throws {RequiredError}
1344
+ */
1345
+ manageComponent: async (workspaceId, changeSetId, componentId, manageComponentV1Request, options = {}) => {
1346
+ // verify required parameter 'workspaceId' is not null or undefined
1347
+ assertParamExists('manageComponent', 'workspaceId', workspaceId);
1348
+ // verify required parameter 'changeSetId' is not null or undefined
1349
+ assertParamExists('manageComponent', 'changeSetId', changeSetId);
1350
+ // verify required parameter 'componentId' is not null or undefined
1351
+ assertParamExists('manageComponent', 'componentId', componentId);
1352
+ // verify required parameter 'manageComponentV1Request' is not null or undefined
1353
+ assertParamExists('manageComponent', 'manageComponentV1Request', manageComponentV1Request);
1354
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/manage`
1355
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1356
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1357
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1360
+ let baseOptions;
1361
+ if (configuration) {
1362
+ baseOptions = configuration.baseOptions;
1363
+ }
1364
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1365
+ const localVarHeaderParameter = {};
1366
+ const localVarQueryParameter = {};
1367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1370
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1371
+ localVarRequestOptions.data = serializeDataIfNeeded(manageComponentV1Request, localVarRequestOptions, configuration);
1372
+ return {
1373
+ url: toPathString(localVarUrlObj),
1374
+ options: localVarRequestOptions,
1375
+ };
1376
+ },
1377
+ /**
1378
+ *
1379
+ * @summary Restore a component that is marked for deletion
1380
+ * @param {string} workspaceId Workspace identifier
1381
+ * @param {string} changeSetId Change Set identifier
1382
+ * @param {string} componentId Component identifier
1383
+ * @param {*} [options] Override http request option.
1384
+ * @throws {RequiredError}
1385
+ */
1386
+ restoreComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1387
+ // verify required parameter 'workspaceId' is not null or undefined
1388
+ assertParamExists('restoreComponent', 'workspaceId', workspaceId);
1389
+ // verify required parameter 'changeSetId' is not null or undefined
1390
+ assertParamExists('restoreComponent', 'changeSetId', changeSetId);
1391
+ // verify required parameter 'componentId' is not null or undefined
1392
+ assertParamExists('restoreComponent', 'componentId', componentId);
1393
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/restore`
1394
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1395
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1396
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1398
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1399
+ let baseOptions;
1400
+ if (configuration) {
1401
+ baseOptions = configuration.baseOptions;
1402
+ }
1403
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1404
+ const localVarHeaderParameter = {};
1405
+ const localVarQueryParameter = {};
1406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1408
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1409
+ return {
1410
+ url: toPathString(localVarUrlObj),
1411
+ options: localVarRequestOptions,
1412
+ };
1413
+ },
1414
+ /**
1415
+ *
1416
+ * @summary Complex search for components
1417
+ * @param {string} workspaceId Workspace identifier
1418
+ * @param {string} changeSetId Change Set identifier
1419
+ * @param {SearchComponentsV1Request} searchComponentsV1Request
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ */
1423
+ searchComponents: async (workspaceId, changeSetId, searchComponentsV1Request, options = {}) => {
1424
+ // verify required parameter 'workspaceId' is not null or undefined
1425
+ assertParamExists('searchComponents', 'workspaceId', workspaceId);
1426
+ // verify required parameter 'changeSetId' is not null or undefined
1427
+ assertParamExists('searchComponents', 'changeSetId', changeSetId);
1428
+ // verify required parameter 'searchComponentsV1Request' is not null or undefined
1429
+ assertParamExists('searchComponents', 'searchComponentsV1Request', searchComponentsV1Request);
1430
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/search`
1431
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1432
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
1433
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1434
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1435
+ let baseOptions;
1436
+ if (configuration) {
1437
+ baseOptions = configuration.baseOptions;
1438
+ }
1439
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1440
+ const localVarHeaderParameter = {};
1441
+ const localVarQueryParameter = {};
1442
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1445
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1446
+ localVarRequestOptions.data = serializeDataIfNeeded(searchComponentsV1Request, localVarRequestOptions, configuration);
1447
+ return {
1448
+ url: toPathString(localVarUrlObj),
1449
+ options: localVarRequestOptions,
1450
+ };
1451
+ },
1452
+ /**
1453
+ *
1454
+ * @summary Update a component
1455
+ * @param {string} workspaceId Workspace identifier
1456
+ * @param {string} changeSetId Change Set identifier
1457
+ * @param {string} componentId Component identifier
1458
+ * @param {UpdateComponentV1Request} updateComponentV1Request
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ updateComponent: async (workspaceId, changeSetId, componentId, updateComponentV1Request, options = {}) => {
1463
+ // verify required parameter 'workspaceId' is not null or undefined
1464
+ assertParamExists('updateComponent', 'workspaceId', workspaceId);
1465
+ // verify required parameter 'changeSetId' is not null or undefined
1466
+ assertParamExists('updateComponent', 'changeSetId', changeSetId);
1467
+ // verify required parameter 'componentId' is not null or undefined
1468
+ assertParamExists('updateComponent', 'componentId', componentId);
1469
+ // verify required parameter 'updateComponentV1Request' is not null or undefined
1470
+ assertParamExists('updateComponent', 'updateComponentV1Request', updateComponentV1Request);
1471
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}`
1472
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1473
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1474
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1476
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1477
+ let baseOptions;
1478
+ if (configuration) {
1479
+ baseOptions = configuration.baseOptions;
1480
+ }
1481
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1482
+ const localVarHeaderParameter = {};
1483
+ const localVarQueryParameter = {};
1484
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1487
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1488
+ localVarRequestOptions.data = serializeDataIfNeeded(updateComponentV1Request, localVarRequestOptions, configuration);
1489
+ return {
1490
+ url: toPathString(localVarUrlObj),
1491
+ options: localVarRequestOptions,
1492
+ };
1493
+ },
1494
+ /**
1495
+ *
1496
+ * @summary Upgrade a component to the latest schema variant
1497
+ * @param {string} workspaceId Workspace identifier
1498
+ * @param {string} changeSetId Change Set identifier
1499
+ * @param {string} componentId Component identifier
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ upgradeComponent: async (workspaceId, changeSetId, componentId, options = {}) => {
1504
+ // verify required parameter 'workspaceId' is not null or undefined
1505
+ assertParamExists('upgradeComponent', 'workspaceId', workspaceId);
1506
+ // verify required parameter 'changeSetId' is not null or undefined
1507
+ assertParamExists('upgradeComponent', 'changeSetId', changeSetId);
1508
+ // verify required parameter 'componentId' is not null or undefined
1509
+ assertParamExists('upgradeComponent', 'componentId', componentId);
1510
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/upgrade`
1511
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1512
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1513
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1516
+ let baseOptions;
1517
+ if (configuration) {
1518
+ baseOptions = configuration.baseOptions;
1519
+ }
1520
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1521
+ const localVarHeaderParameter = {};
1522
+ const localVarQueryParameter = {};
1523
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1524
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1525
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1526
+ return {
1527
+ url: toPathString(localVarUrlObj),
1528
+ options: localVarRequestOptions,
1529
+ };
1530
+ },
1531
+ };
1532
+ };
1533
+ /**
1534
+ * ComponentsApi - functional programming interface
1535
+ * @export
1536
+ */
1537
+ export const ComponentsApiFp = function (configuration) {
1538
+ const localVarAxiosParamCreator = ComponentsApiAxiosParamCreator(configuration);
1539
+ return {
1540
+ /**
1541
+ *
1542
+ * @summary Queue action for a component
1543
+ * @param {string} workspaceId Workspace identifier
1544
+ * @param {string} changeSetId Change Set identifier
1545
+ * @param {string} componentId Component identifier
1546
+ * @param {AddActionV1Request} addActionV1Request
1547
+ * @param {*} [options] Override http request option.
1548
+ * @throws {RequiredError}
1549
+ */
1550
+ async addAction(workspaceId, changeSetId, componentId, addActionV1Request, options) {
1551
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addAction(workspaceId, changeSetId, componentId, addActionV1Request, options);
1552
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1553
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.addAction']?.[localVarOperationServerIndex]?.url;
1554
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1555
+ },
1556
+ /**
1557
+ *
1558
+ * @summary Create a component
1559
+ * @param {string} workspaceId Workspace identifier
1560
+ * @param {string} changeSetId Change Set identifier
1561
+ * @param {CreateComponentV1Request} createComponentV1Request
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ */
1565
+ async createComponent(workspaceId, changeSetId, createComponentV1Request, options) {
1566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createComponent(workspaceId, changeSetId, createComponentV1Request, options);
1567
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1568
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.createComponent']?.[localVarOperationServerIndex]?.url;
1569
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1570
+ },
1571
+ /**
1572
+ *
1573
+ * @summary Delete a component
1574
+ * @param {string} workspaceId Workspace identifier
1575
+ * @param {string} changeSetId Change Set identifier
1576
+ * @param {string} componentId Component identifier
1577
+ * @param {*} [options] Override http request option.
1578
+ * @throws {RequiredError}
1579
+ */
1580
+ async deleteComponent(workspaceId, changeSetId, componentId, options) {
1581
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteComponent(workspaceId, changeSetId, componentId, options);
1582
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1583
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.deleteComponent']?.[localVarOperationServerIndex]?.url;
1584
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1585
+ },
1586
+ /**
1587
+ *
1588
+ * @summary Duplicate a list of components
1589
+ * @param {string} workspaceId Workspace identifier
1590
+ * @param {string} changeSetId Change Set identifier
1591
+ * @param {DuplicateComponentsV1Request} duplicateComponentsV1Request
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ */
1595
+ async duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options) {
1596
+ const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateComponents(workspaceId, changeSetId, duplicateComponentsV1Request, options);
1597
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1598
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.duplicateComponents']?.[localVarOperationServerIndex]?.url;
1599
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1600
+ },
1601
+ /**
1602
+ *
1603
+ * @summary Erase a component without queuing a delete action
1604
+ * @param {string} workspaceId Workspace identifier
1605
+ * @param {string} changeSetId Change Set identifier
1606
+ * @param {string} componentId Component identifier
1607
+ * @param {*} [options] Override http request option.
1608
+ * @throws {RequiredError}
1609
+ */
1610
+ async eraseComponent(workspaceId, changeSetId, componentId, options) {
1611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.eraseComponent(workspaceId, changeSetId, componentId, options);
1612
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1613
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.eraseComponent']?.[localVarOperationServerIndex]?.url;
1614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1615
+ },
1616
+ /**
1617
+ *
1618
+ * @summary Execute a component\'s management function
1619
+ * @param {string} workspaceId Workspace identifier
1620
+ * @param {string} changeSetId Change Set identifier
1621
+ * @param {string} componentId Component identifier
1622
+ * @param {ExecuteManagementFunctionV1Request} executeManagementFunctionV1Request
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ async executeManagementFunction(workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options) {
1627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeManagementFunction(workspaceId, changeSetId, componentId, executeManagementFunctionV1Request, options);
1628
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1629
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.executeManagementFunction']?.[localVarOperationServerIndex]?.url;
1630
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1631
+ },
1632
+ /**
1633
+ *
1634
+ * @summary Find a component by name or component Id
1635
+ * @param {string} workspaceId Workspace identifier
1636
+ * @param {string} changeSetId Change Set identifier
1637
+ * @param {string | null} [component]
1638
+ * @param {string | null} [componentId]
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ */
1642
+ async findComponent(workspaceId, changeSetId, component, componentId, options) {
1643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findComponent(workspaceId, changeSetId, component, componentId, options);
1644
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1645
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.findComponent']?.[localVarOperationServerIndex]?.url;
1646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1647
+ },
1648
+ /**
1649
+ *
1650
+ * @summary Generate a template
1651
+ * @param {string} workspaceId Workspace identifier
1652
+ * @param {string} changeSetId Change Set identifier
1653
+ * @param {GenerateTemplateV1Request} generateTemplateV1Request
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ */
1657
+ async generateTemplate(workspaceId, changeSetId, generateTemplateV1Request, options) {
1658
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateTemplate(workspaceId, changeSetId, generateTemplateV1Request, options);
1659
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1660
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.generateTemplate']?.[localVarOperationServerIndex]?.url;
1661
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1662
+ },
1663
+ /**
1664
+ *
1665
+ * @summary Get a component by component Id
1666
+ * @param {string} workspaceId Workspace identifier
1667
+ * @param {string} changeSetId Change Set identifier
1668
+ * @param {string} componentId Component identifier
1669
+ * @param {*} [options] Override http request option.
1670
+ * @throws {RequiredError}
1671
+ */
1672
+ async getComponent(workspaceId, changeSetId, componentId, options) {
1673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComponent(workspaceId, changeSetId, componentId, options);
1674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1675
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.getComponent']?.[localVarOperationServerIndex]?.url;
1676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1677
+ },
1678
+ /**
1679
+ *
1680
+ * @summary List all components
1681
+ * @param {string} workspaceId Workspace identifier
1682
+ * @param {string} changeSetId Change Set identifier
1683
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
1684
+ * @param {string} [cursor] Cursor for pagination (ComponentId of the last item from previous page)
1685
+ * @param {boolean} [includeCodegen] Allow returning the codegen for the cloudformation template for the component (if it exists)
1686
+ * @param {*} [options] Override http request option.
1687
+ * @throws {RequiredError}
1688
+ */
1689
+ async listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, options) {
1690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComponents(workspaceId, changeSetId, limit, cursor, includeCodegen, options);
1691
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1692
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.listComponents']?.[localVarOperationServerIndex]?.url;
1693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1694
+ },
1695
+ /**
1696
+ *
1697
+ * @summary Putting a component under the management of another component
1698
+ * @param {string} workspaceId Workspace identifier
1699
+ * @param {string} changeSetId Change Set identifier
1700
+ * @param {string} componentId Component identifier
1701
+ * @param {ManageComponentV1Request} manageComponentV1Request
1702
+ * @param {*} [options] Override http request option.
1703
+ * @throws {RequiredError}
1704
+ */
1705
+ async manageComponent(workspaceId, changeSetId, componentId, manageComponentV1Request, options) {
1706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.manageComponent(workspaceId, changeSetId, componentId, manageComponentV1Request, options);
1707
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1708
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.manageComponent']?.[localVarOperationServerIndex]?.url;
1709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1710
+ },
1711
+ /**
1712
+ *
1713
+ * @summary Restore a component that is marked for deletion
1714
+ * @param {string} workspaceId Workspace identifier
1715
+ * @param {string} changeSetId Change Set identifier
1716
+ * @param {string} componentId Component identifier
1717
+ * @param {*} [options] Override http request option.
1718
+ * @throws {RequiredError}
1719
+ */
1720
+ async restoreComponent(workspaceId, changeSetId, componentId, options) {
1721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreComponent(workspaceId, changeSetId, componentId, options);
1722
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1723
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.restoreComponent']?.[localVarOperationServerIndex]?.url;
1724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1725
+ },
1726
+ /**
1727
+ *
1728
+ * @summary Complex search for components
1729
+ * @param {string} workspaceId Workspace identifier
1730
+ * @param {string} changeSetId Change Set identifier
1731
+ * @param {SearchComponentsV1Request} searchComponentsV1Request
1732
+ * @param {*} [options] Override http request option.
1733
+ * @throws {RequiredError}
1734
+ */
1735
+ async searchComponents(workspaceId, changeSetId, searchComponentsV1Request, options) {
1736
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchComponents(workspaceId, changeSetId, searchComponentsV1Request, options);
1737
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1738
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.searchComponents']?.[localVarOperationServerIndex]?.url;
1739
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1740
+ },
1741
+ /**
1742
+ *
1743
+ * @summary Update a component
1744
+ * @param {string} workspaceId Workspace identifier
1745
+ * @param {string} changeSetId Change Set identifier
1746
+ * @param {string} componentId Component identifier
1747
+ * @param {UpdateComponentV1Request} updateComponentV1Request
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ */
1751
+ async updateComponent(workspaceId, changeSetId, componentId, updateComponentV1Request, options) {
1752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateComponent(workspaceId, changeSetId, componentId, updateComponentV1Request, options);
1753
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1754
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.updateComponent']?.[localVarOperationServerIndex]?.url;
1755
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1756
+ },
1757
+ /**
1758
+ *
1759
+ * @summary Upgrade a component to the latest schema variant
1760
+ * @param {string} workspaceId Workspace identifier
1761
+ * @param {string} changeSetId Change Set identifier
1762
+ * @param {string} componentId Component identifier
1763
+ * @param {*} [options] Override http request option.
1764
+ * @throws {RequiredError}
1765
+ */
1766
+ async upgradeComponent(workspaceId, changeSetId, componentId, options) {
1767
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeComponent(workspaceId, changeSetId, componentId, options);
1768
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1769
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.upgradeComponent']?.[localVarOperationServerIndex]?.url;
1770
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1771
+ },
1772
+ };
1773
+ };
1774
+ /**
1775
+ * ComponentsApi - factory interface
1776
+ * @export
1777
+ */
1778
+ export const ComponentsApiFactory = function (configuration, basePath, axios) {
1779
+ const localVarFp = ComponentsApiFp(configuration);
1780
+ return {
1781
+ /**
1782
+ *
1783
+ * @summary Queue action for a component
1784
+ * @param {ComponentsApiAddActionRequest} requestParameters Request parameters.
1785
+ * @param {*} [options] Override http request option.
1786
+ * @throws {RequiredError}
1787
+ */
1788
+ addAction(requestParameters, options) {
1789
+ return localVarFp.addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(axios, basePath));
1790
+ },
1791
+ /**
1792
+ *
1793
+ * @summary Create a component
1794
+ * @param {ComponentsApiCreateComponentRequest} requestParameters Request parameters.
1795
+ * @param {*} [options] Override http request option.
1796
+ * @throws {RequiredError}
1797
+ */
1798
+ createComponent(requestParameters, options) {
1799
+ return localVarFp.createComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createComponentV1Request, options).then((request) => request(axios, basePath));
1800
+ },
1801
+ /**
1802
+ *
1803
+ * @summary Delete a component
1804
+ * @param {ComponentsApiDeleteComponentRequest} requestParameters Request parameters.
1805
+ * @param {*} [options] Override http request option.
1806
+ * @throws {RequiredError}
1807
+ */
1808
+ deleteComponent(requestParameters, options) {
1809
+ return localVarFp.deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1810
+ },
1811
+ /**
1812
+ *
1813
+ * @summary Duplicate a list of components
1814
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1815
+ * @param {*} [options] Override http request option.
1816
+ * @throws {RequiredError}
1817
+ */
1818
+ duplicateComponents(requestParameters, options) {
1819
+ return localVarFp.duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(axios, basePath));
1820
+ },
1821
+ /**
1822
+ *
1823
+ * @summary Erase a component without queuing a delete action
1824
+ * @param {ComponentsApiEraseComponentRequest} requestParameters Request parameters.
1825
+ * @param {*} [options] Override http request option.
1826
+ * @throws {RequiredError}
1827
+ */
1828
+ eraseComponent(requestParameters, options) {
1829
+ return localVarFp.eraseComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1830
+ },
1831
+ /**
1832
+ *
1833
+ * @summary Execute a component\'s management function
1834
+ * @param {ComponentsApiExecuteManagementFunctionRequest} requestParameters Request parameters.
1835
+ * @param {*} [options] Override http request option.
1836
+ * @throws {RequiredError}
1837
+ */
1838
+ executeManagementFunction(requestParameters, options) {
1839
+ return localVarFp.executeManagementFunction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.executeManagementFunctionV1Request, options).then((request) => request(axios, basePath));
1840
+ },
1841
+ /**
1842
+ *
1843
+ * @summary Find a component by name or component Id
1844
+ * @param {ComponentsApiFindComponentRequest} requestParameters Request parameters.
1845
+ * @param {*} [options] Override http request option.
1846
+ * @throws {RequiredError}
1847
+ */
1848
+ findComponent(requestParameters, options) {
1849
+ return localVarFp.findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(axios, basePath));
1850
+ },
1851
+ /**
1852
+ *
1853
+ * @summary Generate a template
1854
+ * @param {ComponentsApiGenerateTemplateRequest} requestParameters Request parameters.
1855
+ * @param {*} [options] Override http request option.
1856
+ * @throws {RequiredError}
1857
+ */
1858
+ generateTemplate(requestParameters, options) {
1859
+ return localVarFp.generateTemplate(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.generateTemplateV1Request, options).then((request) => request(axios, basePath));
1860
+ },
1861
+ /**
1862
+ *
1863
+ * @summary Get a component by component Id
1864
+ * @param {ComponentsApiGetComponentRequest} requestParameters Request parameters.
1865
+ * @param {*} [options] Override http request option.
1866
+ * @throws {RequiredError}
1867
+ */
1868
+ getComponent(requestParameters, options) {
1869
+ return localVarFp.getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1870
+ },
1871
+ /**
1872
+ *
1873
+ * @summary List all components
1874
+ * @param {ComponentsApiListComponentsRequest} requestParameters Request parameters.
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ */
1878
+ listComponents(requestParameters, options) {
1879
+ return localVarFp.listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, options).then((request) => request(axios, basePath));
1880
+ },
1881
+ /**
1882
+ *
1883
+ * @summary Putting a component under the management of another component
1884
+ * @param {ComponentsApiManageComponentRequest} requestParameters Request parameters.
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ manageComponent(requestParameters, options) {
1889
+ return localVarFp.manageComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.manageComponentV1Request, options).then((request) => request(axios, basePath));
1890
+ },
1891
+ /**
1892
+ *
1893
+ * @summary Restore a component that is marked for deletion
1894
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
1895
+ * @param {*} [options] Override http request option.
1896
+ * @throws {RequiredError}
1897
+ */
1898
+ restoreComponent(requestParameters, options) {
1899
+ return localVarFp.restoreComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1900
+ },
1901
+ /**
1902
+ *
1903
+ * @summary Complex search for components
1904
+ * @param {ComponentsApiSearchComponentsRequest} requestParameters Request parameters.
1905
+ * @param {*} [options] Override http request option.
1906
+ * @throws {RequiredError}
1907
+ */
1908
+ searchComponents(requestParameters, options) {
1909
+ return localVarFp.searchComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchComponentsV1Request, options).then((request) => request(axios, basePath));
1910
+ },
1911
+ /**
1912
+ *
1913
+ * @summary Update a component
1914
+ * @param {ComponentsApiUpdateComponentRequest} requestParameters Request parameters.
1915
+ * @param {*} [options] Override http request option.
1916
+ * @throws {RequiredError}
1917
+ */
1918
+ updateComponent(requestParameters, options) {
1919
+ return localVarFp.updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(axios, basePath));
1920
+ },
1921
+ /**
1922
+ *
1923
+ * @summary Upgrade a component to the latest schema variant
1924
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
1925
+ * @param {*} [options] Override http request option.
1926
+ * @throws {RequiredError}
1927
+ */
1928
+ upgradeComponent(requestParameters, options) {
1929
+ return localVarFp.upgradeComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1930
+ },
1931
+ };
1932
+ };
1933
+ /**
1934
+ * ComponentsApi - object-oriented interface
1935
+ * @export
1936
+ * @class ComponentsApi
1937
+ * @extends {BaseAPI}
1938
+ */
1939
+ export class ComponentsApi extends BaseAPI {
1940
+ /**
1941
+ *
1942
+ * @summary Queue action for a component
1943
+ * @param {ComponentsApiAddActionRequest} requestParameters Request parameters.
1944
+ * @param {*} [options] Override http request option.
1945
+ * @throws {RequiredError}
1946
+ * @memberof ComponentsApi
1947
+ */
1948
+ addAction(requestParameters, options) {
1949
+ return ComponentsApiFp(this.configuration).addAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.addActionV1Request, options).then((request) => request(this.axios, this.basePath));
1950
+ }
1951
+ /**
1952
+ *
1953
+ * @summary Create a component
1954
+ * @param {ComponentsApiCreateComponentRequest} requestParameters Request parameters.
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ * @memberof ComponentsApi
1958
+ */
1959
+ createComponent(requestParameters, options) {
1960
+ return ComponentsApiFp(this.configuration).createComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createComponentV1Request, options).then((request) => request(this.axios, this.basePath));
1961
+ }
1962
+ /**
1963
+ *
1964
+ * @summary Delete a component
1965
+ * @param {ComponentsApiDeleteComponentRequest} requestParameters Request parameters.
1966
+ * @param {*} [options] Override http request option.
1967
+ * @throws {RequiredError}
1968
+ * @memberof ComponentsApi
1969
+ */
1970
+ deleteComponent(requestParameters, options) {
1971
+ return ComponentsApiFp(this.configuration).deleteComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1972
+ }
1973
+ /**
1974
+ *
1975
+ * @summary Duplicate a list of components
1976
+ * @param {ComponentsApiDuplicateComponentsRequest} requestParameters Request parameters.
1977
+ * @param {*} [options] Override http request option.
1978
+ * @throws {RequiredError}
1979
+ * @memberof ComponentsApi
1980
+ */
1981
+ duplicateComponents(requestParameters, options) {
1982
+ return ComponentsApiFp(this.configuration).duplicateComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.duplicateComponentsV1Request, options).then((request) => request(this.axios, this.basePath));
1983
+ }
1984
+ /**
1985
+ *
1986
+ * @summary Erase a component without queuing a delete action
1987
+ * @param {ComponentsApiEraseComponentRequest} requestParameters Request parameters.
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ * @memberof ComponentsApi
1991
+ */
1992
+ eraseComponent(requestParameters, options) {
1993
+ return ComponentsApiFp(this.configuration).eraseComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
1994
+ }
1995
+ /**
1996
+ *
1997
+ * @summary Execute a component\'s management function
1998
+ * @param {ComponentsApiExecuteManagementFunctionRequest} requestParameters Request parameters.
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ * @memberof ComponentsApi
2002
+ */
2003
+ executeManagementFunction(requestParameters, options) {
2004
+ return ComponentsApiFp(this.configuration).executeManagementFunction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.executeManagementFunctionV1Request, options).then((request) => request(this.axios, this.basePath));
2005
+ }
2006
+ /**
2007
+ *
2008
+ * @summary Find a component by name or component Id
2009
+ * @param {ComponentsApiFindComponentRequest} requestParameters Request parameters.
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ * @memberof ComponentsApi
2013
+ */
2014
+ findComponent(requestParameters, options) {
2015
+ return ComponentsApiFp(this.configuration).findComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.component, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2016
+ }
2017
+ /**
2018
+ *
2019
+ * @summary Generate a template
2020
+ * @param {ComponentsApiGenerateTemplateRequest} requestParameters Request parameters.
2021
+ * @param {*} [options] Override http request option.
2022
+ * @throws {RequiredError}
2023
+ * @memberof ComponentsApi
2024
+ */
2025
+ generateTemplate(requestParameters, options) {
2026
+ return ComponentsApiFp(this.configuration).generateTemplate(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.generateTemplateV1Request, options).then((request) => request(this.axios, this.basePath));
2027
+ }
2028
+ /**
2029
+ *
2030
+ * @summary Get a component by component Id
2031
+ * @param {ComponentsApiGetComponentRequest} requestParameters Request parameters.
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ * @memberof ComponentsApi
2035
+ */
2036
+ getComponent(requestParameters, options) {
2037
+ return ComponentsApiFp(this.configuration).getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2038
+ }
2039
+ /**
2040
+ *
2041
+ * @summary List all components
2042
+ * @param {ComponentsApiListComponentsRequest} requestParameters Request parameters.
2043
+ * @param {*} [options] Override http request option.
2044
+ * @throws {RequiredError}
2045
+ * @memberof ComponentsApi
2046
+ */
2047
+ listComponents(requestParameters, options) {
2048
+ return ComponentsApiFp(this.configuration).listComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, requestParameters.includeCodegen, options).then((request) => request(this.axios, this.basePath));
2049
+ }
2050
+ /**
2051
+ *
2052
+ * @summary Putting a component under the management of another component
2053
+ * @param {ComponentsApiManageComponentRequest} requestParameters Request parameters.
2054
+ * @param {*} [options] Override http request option.
2055
+ * @throws {RequiredError}
2056
+ * @memberof ComponentsApi
2057
+ */
2058
+ manageComponent(requestParameters, options) {
2059
+ return ComponentsApiFp(this.configuration).manageComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.manageComponentV1Request, options).then((request) => request(this.axios, this.basePath));
2060
+ }
2061
+ /**
2062
+ *
2063
+ * @summary Restore a component that is marked for deletion
2064
+ * @param {ComponentsApiRestoreComponentRequest} requestParameters Request parameters.
2065
+ * @param {*} [options] Override http request option.
2066
+ * @throws {RequiredError}
2067
+ * @memberof ComponentsApi
2068
+ */
2069
+ restoreComponent(requestParameters, options) {
2070
+ return ComponentsApiFp(this.configuration).restoreComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2071
+ }
2072
+ /**
2073
+ *
2074
+ * @summary Complex search for components
2075
+ * @param {ComponentsApiSearchComponentsRequest} requestParameters Request parameters.
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ * @memberof ComponentsApi
2079
+ */
2080
+ searchComponents(requestParameters, options) {
2081
+ return ComponentsApiFp(this.configuration).searchComponents(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchComponentsV1Request, options).then((request) => request(this.axios, this.basePath));
2082
+ }
2083
+ /**
2084
+ *
2085
+ * @summary Update a component
2086
+ * @param {ComponentsApiUpdateComponentRequest} requestParameters Request parameters.
2087
+ * @param {*} [options] Override http request option.
2088
+ * @throws {RequiredError}
2089
+ * @memberof ComponentsApi
2090
+ */
2091
+ updateComponent(requestParameters, options) {
2092
+ return ComponentsApiFp(this.configuration).updateComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, requestParameters.updateComponentV1Request, options).then((request) => request(this.axios, this.basePath));
2093
+ }
2094
+ /**
2095
+ *
2096
+ * @summary Upgrade a component to the latest schema variant
2097
+ * @param {ComponentsApiUpgradeComponentRequest} requestParameters Request parameters.
2098
+ * @param {*} [options] Override http request option.
2099
+ * @throws {RequiredError}
2100
+ * @memberof ComponentsApi
2101
+ */
2102
+ upgradeComponent(requestParameters, options) {
2103
+ return ComponentsApiFp(this.configuration).upgradeComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2104
+ }
2105
+ }
2106
+ /**
2107
+ * FuncsApi - axios parameter creator
2108
+ * @export
2109
+ */
2110
+ export const FuncsApiAxiosParamCreator = function (configuration) {
2111
+ return {
2112
+ /**
2113
+ *
2114
+ * @summary Get function details
2115
+ * @param {string} workspaceId Workspace identifier
2116
+ * @param {string} changeSetId Change Set identifier
2117
+ * @param {string} funcId Func identifier
2118
+ * @param {*} [options] Override http request option.
2119
+ * @throws {RequiredError}
2120
+ */
2121
+ getFunc: async (workspaceId, changeSetId, funcId, options = {}) => {
2122
+ // verify required parameter 'workspaceId' is not null or undefined
2123
+ assertParamExists('getFunc', 'workspaceId', workspaceId);
2124
+ // verify required parameter 'changeSetId' is not null or undefined
2125
+ assertParamExists('getFunc', 'changeSetId', changeSetId);
2126
+ // verify required parameter 'funcId' is not null or undefined
2127
+ assertParamExists('getFunc', 'funcId', funcId);
2128
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}`
2129
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2130
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2131
+ .replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
2132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2134
+ let baseOptions;
2135
+ if (configuration) {
2136
+ baseOptions = configuration.baseOptions;
2137
+ }
2138
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2139
+ const localVarHeaderParameter = {};
2140
+ const localVarQueryParameter = {};
2141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2143
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2144
+ return {
2145
+ url: toPathString(localVarUrlObj),
2146
+ options: localVarRequestOptions,
2147
+ };
2148
+ },
2149
+ /**
2150
+ *
2151
+ * @summary Get func execution run logs
2152
+ * @param {string} workspaceId Workspace identifier
2153
+ * @param {string} changeSetId Change Set identifier
2154
+ * @param {string} funcRunId Func run identifier
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ */
2158
+ getFuncRun: async (workspaceId, changeSetId, funcRunId, options = {}) => {
2159
+ // verify required parameter 'workspaceId' is not null or undefined
2160
+ assertParamExists('getFuncRun', 'workspaceId', workspaceId);
2161
+ // verify required parameter 'changeSetId' is not null or undefined
2162
+ assertParamExists('getFuncRun', 'changeSetId', changeSetId);
2163
+ // verify required parameter 'funcRunId' is not null or undefined
2164
+ assertParamExists('getFuncRun', 'funcRunId', funcRunId);
2165
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/runs/{func_run_id}`
2166
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2167
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2168
+ .replace(`{${"func_run_id"}}`, encodeURIComponent(String(funcRunId)));
2169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2171
+ let baseOptions;
2172
+ if (configuration) {
2173
+ baseOptions = configuration.baseOptions;
2174
+ }
2175
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2176
+ const localVarHeaderParameter = {};
2177
+ const localVarQueryParameter = {};
2178
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2180
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2181
+ return {
2182
+ url: toPathString(localVarUrlObj),
2183
+ options: localVarRequestOptions,
2184
+ };
2185
+ },
2186
+ /**
2187
+ *
2188
+ * @summary Update a func
2189
+ * @param {string} workspaceId Workspace identifier
2190
+ * @param {string} changeSetId Change Set identifier
2191
+ * @param {string} funcId Func identifier
2192
+ * @param {UpdateFuncV1Request} updateFuncV1Request
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ updateFunc: async (workspaceId, changeSetId, funcId, updateFuncV1Request, options = {}) => {
2197
+ // verify required parameter 'workspaceId' is not null or undefined
2198
+ assertParamExists('updateFunc', 'workspaceId', workspaceId);
2199
+ // verify required parameter 'changeSetId' is not null or undefined
2200
+ assertParamExists('updateFunc', 'changeSetId', changeSetId);
2201
+ // verify required parameter 'funcId' is not null or undefined
2202
+ assertParamExists('updateFunc', 'funcId', funcId);
2203
+ // verify required parameter 'updateFuncV1Request' is not null or undefined
2204
+ assertParamExists('updateFunc', 'updateFuncV1Request', updateFuncV1Request);
2205
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}`
2206
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2207
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2208
+ .replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
2209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2211
+ let baseOptions;
2212
+ if (configuration) {
2213
+ baseOptions = configuration.baseOptions;
2214
+ }
2215
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2216
+ const localVarHeaderParameter = {};
2217
+ const localVarQueryParameter = {};
2218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2221
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2222
+ localVarRequestOptions.data = serializeDataIfNeeded(updateFuncV1Request, localVarRequestOptions, configuration);
2223
+ return {
2224
+ url: toPathString(localVarUrlObj),
2225
+ options: localVarRequestOptions,
2226
+ };
2227
+ },
2228
+ };
2229
+ };
2230
+ /**
2231
+ * FuncsApi - functional programming interface
2232
+ * @export
2233
+ */
2234
+ export const FuncsApiFp = function (configuration) {
2235
+ const localVarAxiosParamCreator = FuncsApiAxiosParamCreator(configuration);
2236
+ return {
2237
+ /**
2238
+ *
2239
+ * @summary Get function details
2240
+ * @param {string} workspaceId Workspace identifier
2241
+ * @param {string} changeSetId Change Set identifier
2242
+ * @param {string} funcId Func identifier
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ */
2246
+ async getFunc(workspaceId, changeSetId, funcId, options) {
2247
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFunc(workspaceId, changeSetId, funcId, options);
2248
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2249
+ const localVarOperationServerBasePath = operationServerMap['FuncsApi.getFunc']?.[localVarOperationServerIndex]?.url;
2250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2251
+ },
2252
+ /**
2253
+ *
2254
+ * @summary Get func execution run logs
2255
+ * @param {string} workspaceId Workspace identifier
2256
+ * @param {string} changeSetId Change Set identifier
2257
+ * @param {string} funcRunId Func run identifier
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ */
2261
+ async getFuncRun(workspaceId, changeSetId, funcRunId, options) {
2262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFuncRun(workspaceId, changeSetId, funcRunId, options);
2263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2264
+ const localVarOperationServerBasePath = operationServerMap['FuncsApi.getFuncRun']?.[localVarOperationServerIndex]?.url;
2265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2266
+ },
2267
+ /**
2268
+ *
2269
+ * @summary Update a func
2270
+ * @param {string} workspaceId Workspace identifier
2271
+ * @param {string} changeSetId Change Set identifier
2272
+ * @param {string} funcId Func identifier
2273
+ * @param {UpdateFuncV1Request} updateFuncV1Request
2274
+ * @param {*} [options] Override http request option.
2275
+ * @throws {RequiredError}
2276
+ */
2277
+ async updateFunc(workspaceId, changeSetId, funcId, updateFuncV1Request, options) {
2278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateFunc(workspaceId, changeSetId, funcId, updateFuncV1Request, options);
2279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2280
+ const localVarOperationServerBasePath = operationServerMap['FuncsApi.updateFunc']?.[localVarOperationServerIndex]?.url;
2281
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2282
+ },
2283
+ };
2284
+ };
2285
+ /**
2286
+ * FuncsApi - factory interface
2287
+ * @export
2288
+ */
2289
+ export const FuncsApiFactory = function (configuration, basePath, axios) {
2290
+ const localVarFp = FuncsApiFp(configuration);
2291
+ return {
2292
+ /**
2293
+ *
2294
+ * @summary Get function details
2295
+ * @param {FuncsApiGetFuncRequest} requestParameters Request parameters.
2296
+ * @param {*} [options] Override http request option.
2297
+ * @throws {RequiredError}
2298
+ */
2299
+ getFunc(requestParameters, options) {
2300
+ return localVarFp.getFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, options).then((request) => request(axios, basePath));
2301
+ },
2302
+ /**
2303
+ *
2304
+ * @summary Get func execution run logs
2305
+ * @param {FuncsApiGetFuncRunRequest} requestParameters Request parameters.
2306
+ * @param {*} [options] Override http request option.
2307
+ * @throws {RequiredError}
2308
+ */
2309
+ getFuncRun(requestParameters, options) {
2310
+ return localVarFp.getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(axios, basePath));
2311
+ },
2312
+ /**
2313
+ *
2314
+ * @summary Update a func
2315
+ * @param {FuncsApiUpdateFuncRequest} requestParameters Request parameters.
2316
+ * @param {*} [options] Override http request option.
2317
+ * @throws {RequiredError}
2318
+ */
2319
+ updateFunc(requestParameters, options) {
2320
+ return localVarFp.updateFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.updateFuncV1Request, options).then((request) => request(axios, basePath));
2321
+ },
2322
+ };
2323
+ };
2324
+ /**
2325
+ * FuncsApi - object-oriented interface
2326
+ * @export
2327
+ * @class FuncsApi
2328
+ * @extends {BaseAPI}
2329
+ */
2330
+ export class FuncsApi extends BaseAPI {
2331
+ /**
2332
+ *
2333
+ * @summary Get function details
2334
+ * @param {FuncsApiGetFuncRequest} requestParameters Request parameters.
2335
+ * @param {*} [options] Override http request option.
2336
+ * @throws {RequiredError}
2337
+ * @memberof FuncsApi
2338
+ */
2339
+ getFunc(requestParameters, options) {
2340
+ return FuncsApiFp(this.configuration).getFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
2341
+ }
2342
+ /**
2343
+ *
2344
+ * @summary Get func execution run logs
2345
+ * @param {FuncsApiGetFuncRunRequest} requestParameters Request parameters.
2346
+ * @param {*} [options] Override http request option.
2347
+ * @throws {RequiredError}
2348
+ * @memberof FuncsApi
2349
+ */
2350
+ getFuncRun(requestParameters, options) {
2351
+ return FuncsApiFp(this.configuration).getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(this.axios, this.basePath));
2352
+ }
2353
+ /**
2354
+ *
2355
+ * @summary Update a func
2356
+ * @param {FuncsApiUpdateFuncRequest} requestParameters Request parameters.
2357
+ * @param {*} [options] Override http request option.
2358
+ * @throws {RequiredError}
2359
+ * @memberof FuncsApi
2360
+ */
2361
+ updateFunc(requestParameters, options) {
2362
+ return FuncsApiFp(this.configuration).updateFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.updateFuncV1Request, options).then((request) => request(this.axios, this.basePath));
2363
+ }
2364
+ }
2365
+ /**
2366
+ * ManagementFuncsApi - axios parameter creator
2367
+ * @export
2368
+ */
2369
+ export const ManagementFuncsApiAxiosParamCreator = function (configuration) {
2370
+ return {
2371
+ /**
2372
+ *
2373
+ * @summary Get management funcs job state details
2374
+ * @param {string} workspaceId Workspace identifier
2375
+ * @param {string} changeSetId Change Set identifier
2376
+ * @param {string} managementFuncJobStateId Management Func Job identifier
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ getManagementFuncRunState: async (workspaceId, changeSetId, managementFuncJobStateId, options = {}) => {
2381
+ // verify required parameter 'workspaceId' is not null or undefined
2382
+ assertParamExists('getManagementFuncRunState', 'workspaceId', workspaceId);
2383
+ // verify required parameter 'changeSetId' is not null or undefined
2384
+ assertParamExists('getManagementFuncRunState', 'changeSetId', changeSetId);
2385
+ // verify required parameter 'managementFuncJobStateId' is not null or undefined
2386
+ assertParamExists('getManagementFuncRunState', 'managementFuncJobStateId', managementFuncJobStateId);
2387
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/management-funcs/{management_func_job_state_id}`
2388
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2389
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2390
+ .replace(`{${"management_func_job_state_id"}}`, encodeURIComponent(String(managementFuncJobStateId)));
2391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2393
+ let baseOptions;
2394
+ if (configuration) {
2395
+ baseOptions = configuration.baseOptions;
2396
+ }
2397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2398
+ const localVarHeaderParameter = {};
2399
+ const localVarQueryParameter = {};
2400
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2401
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2402
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2403
+ return {
2404
+ url: toPathString(localVarUrlObj),
2405
+ options: localVarRequestOptions,
2406
+ };
2407
+ },
2408
+ };
2409
+ };
2410
+ /**
2411
+ * ManagementFuncsApi - functional programming interface
2412
+ * @export
2413
+ */
2414
+ export const ManagementFuncsApiFp = function (configuration) {
2415
+ const localVarAxiosParamCreator = ManagementFuncsApiAxiosParamCreator(configuration);
2416
+ return {
2417
+ /**
2418
+ *
2419
+ * @summary Get management funcs job state details
2420
+ * @param {string} workspaceId Workspace identifier
2421
+ * @param {string} changeSetId Change Set identifier
2422
+ * @param {string} managementFuncJobStateId Management Func Job identifier
2423
+ * @param {*} [options] Override http request option.
2424
+ * @throws {RequiredError}
2425
+ */
2426
+ async getManagementFuncRunState(workspaceId, changeSetId, managementFuncJobStateId, options) {
2427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getManagementFuncRunState(workspaceId, changeSetId, managementFuncJobStateId, options);
2428
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2429
+ const localVarOperationServerBasePath = operationServerMap['ManagementFuncsApi.getManagementFuncRunState']?.[localVarOperationServerIndex]?.url;
2430
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2431
+ },
2432
+ };
2433
+ };
2434
+ /**
2435
+ * ManagementFuncsApi - factory interface
2436
+ * @export
2437
+ */
2438
+ export const ManagementFuncsApiFactory = function (configuration, basePath, axios) {
2439
+ const localVarFp = ManagementFuncsApiFp(configuration);
2440
+ return {
2441
+ /**
2442
+ *
2443
+ * @summary Get management funcs job state details
2444
+ * @param {ManagementFuncsApiGetManagementFuncRunStateRequest} requestParameters Request parameters.
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ getManagementFuncRunState(requestParameters, options) {
2449
+ return localVarFp.getManagementFuncRunState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.managementFuncJobStateId, options).then((request) => request(axios, basePath));
2450
+ },
2451
+ };
2452
+ };
2453
+ /**
2454
+ * ManagementFuncsApi - object-oriented interface
2455
+ * @export
2456
+ * @class ManagementFuncsApi
2457
+ * @extends {BaseAPI}
2458
+ */
2459
+ export class ManagementFuncsApi extends BaseAPI {
2460
+ /**
2461
+ *
2462
+ * @summary Get management funcs job state details
2463
+ * @param {ManagementFuncsApiGetManagementFuncRunStateRequest} requestParameters Request parameters.
2464
+ * @param {*} [options] Override http request option.
2465
+ * @throws {RequiredError}
2466
+ * @memberof ManagementFuncsApi
2467
+ */
2468
+ getManagementFuncRunState(requestParameters, options) {
2469
+ return ManagementFuncsApiFp(this.configuration).getManagementFuncRunState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.managementFuncJobStateId, options).then((request) => request(this.axios, this.basePath));
2470
+ }
2471
+ }
2472
+ /**
2473
+ * RootApi - axios parameter creator
2474
+ * @export
2475
+ */
2476
+ export const RootApiAxiosParamCreator = function (configuration) {
2477
+ return {
2478
+ /**
2479
+ *
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ systemStatusRoute: async (options = {}) => {
2484
+ const localVarPath = `/`;
2485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2487
+ let baseOptions;
2488
+ if (configuration) {
2489
+ baseOptions = configuration.baseOptions;
2490
+ }
2491
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2492
+ const localVarHeaderParameter = {};
2493
+ const localVarQueryParameter = {};
2494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2496
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2497
+ return {
2498
+ url: toPathString(localVarUrlObj),
2499
+ options: localVarRequestOptions,
2500
+ };
2501
+ },
2502
+ };
2503
+ };
2504
+ /**
2505
+ * RootApi - functional programming interface
2506
+ * @export
2507
+ */
2508
+ export const RootApiFp = function (configuration) {
2509
+ const localVarAxiosParamCreator = RootApiAxiosParamCreator(configuration);
2510
+ return {
2511
+ /**
2512
+ *
2513
+ * @param {*} [options] Override http request option.
2514
+ * @throws {RequiredError}
2515
+ */
2516
+ async systemStatusRoute(options) {
2517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.systemStatusRoute(options);
2518
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2519
+ const localVarOperationServerBasePath = operationServerMap['RootApi.systemStatusRoute']?.[localVarOperationServerIndex]?.url;
2520
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2521
+ },
2522
+ };
2523
+ };
2524
+ /**
2525
+ * RootApi - factory interface
2526
+ * @export
2527
+ */
2528
+ export const RootApiFactory = function (configuration, basePath, axios) {
2529
+ const localVarFp = RootApiFp(configuration);
2530
+ return {
2531
+ /**
2532
+ *
2533
+ * @param {*} [options] Override http request option.
2534
+ * @throws {RequiredError}
2535
+ */
2536
+ systemStatusRoute(options) {
2537
+ return localVarFp.systemStatusRoute(options).then((request) => request(axios, basePath));
2538
+ },
2539
+ };
2540
+ };
2541
+ /**
2542
+ * RootApi - object-oriented interface
2543
+ * @export
2544
+ * @class RootApi
2545
+ * @extends {BaseAPI}
2546
+ */
2547
+ export class RootApi extends BaseAPI {
2548
+ /**
2549
+ *
2550
+ * @param {*} [options] Override http request option.
2551
+ * @throws {RequiredError}
2552
+ * @memberof RootApi
2553
+ */
2554
+ systemStatusRoute(options) {
2555
+ return RootApiFp(this.configuration).systemStatusRoute(options).then((request) => request(this.axios, this.basePath));
2556
+ }
2557
+ }
2558
+ /**
2559
+ * SchemasApi - axios parameter creator
2560
+ * @export
2561
+ */
2562
+ export const SchemasApiAxiosParamCreator = function (configuration) {
2563
+ return {
2564
+ /**
2565
+ *
2566
+ * @summary Create a schema and it\'s default variant
2567
+ * @param {string} workspaceId Workspace identifier
2568
+ * @param {string} changeSetId Change Set identifier
2569
+ * @param {CreateSchemaV1Request} createSchemaV1Request
2570
+ * @param {*} [options] Override http request option.
2571
+ * @throws {RequiredError}
2572
+ */
2573
+ createSchema: async (workspaceId, changeSetId, createSchemaV1Request, options = {}) => {
2574
+ // verify required parameter 'workspaceId' is not null or undefined
2575
+ assertParamExists('createSchema', 'workspaceId', workspaceId);
2576
+ // verify required parameter 'changeSetId' is not null or undefined
2577
+ assertParamExists('createSchema', 'changeSetId', changeSetId);
2578
+ // verify required parameter 'createSchemaV1Request' is not null or undefined
2579
+ assertParamExists('createSchema', 'createSchemaV1Request', createSchemaV1Request);
2580
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas`
2581
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2582
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
2583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2585
+ let baseOptions;
2586
+ if (configuration) {
2587
+ baseOptions = configuration.baseOptions;
2588
+ }
2589
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2590
+ const localVarHeaderParameter = {};
2591
+ const localVarQueryParameter = {};
2592
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2595
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2596
+ localVarRequestOptions.data = serializeDataIfNeeded(createSchemaV1Request, localVarRequestOptions, configuration);
2597
+ return {
2598
+ url: toPathString(localVarUrlObj),
2599
+ options: localVarRequestOptions,
2600
+ };
2601
+ },
2602
+ /**
2603
+ *
2604
+ * @summary Create an action function and attach to a schema variant
2605
+ * @param {string} workspaceId Workspace identifier
2606
+ * @param {string} changeSetId Change Set identifier
2607
+ * @param {string} schemaId Schema identifier
2608
+ * @param {string} schemaVariantId Schema variant identifier
2609
+ * @param {CreateVariantActionFuncV1Request} createVariantActionFuncV1Request
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ */
2613
+ createVariantAction: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options = {}) => {
2614
+ // verify required parameter 'workspaceId' is not null or undefined
2615
+ assertParamExists('createVariantAction', 'workspaceId', workspaceId);
2616
+ // verify required parameter 'changeSetId' is not null or undefined
2617
+ assertParamExists('createVariantAction', 'changeSetId', changeSetId);
2618
+ // verify required parameter 'schemaId' is not null or undefined
2619
+ assertParamExists('createVariantAction', 'schemaId', schemaId);
2620
+ // verify required parameter 'schemaVariantId' is not null or undefined
2621
+ assertParamExists('createVariantAction', 'schemaVariantId', schemaVariantId);
2622
+ // verify required parameter 'createVariantActionFuncV1Request' is not null or undefined
2623
+ assertParamExists('createVariantAction', 'createVariantActionFuncV1Request', createVariantActionFuncV1Request);
2624
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/action`
2625
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2626
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2627
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2628
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2630
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2631
+ let baseOptions;
2632
+ if (configuration) {
2633
+ baseOptions = configuration.baseOptions;
2634
+ }
2635
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2636
+ const localVarHeaderParameter = {};
2637
+ const localVarQueryParameter = {};
2638
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2641
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2642
+ localVarRequestOptions.data = serializeDataIfNeeded(createVariantActionFuncV1Request, localVarRequestOptions, configuration);
2643
+ return {
2644
+ url: toPathString(localVarUrlObj),
2645
+ options: localVarRequestOptions,
2646
+ };
2647
+ },
2648
+ /**
2649
+ *
2650
+ * @summary Create an authentication function and attach to a schema variant
2651
+ * @param {string} workspaceId Workspace identifier
2652
+ * @param {string} changeSetId Change Set identifier
2653
+ * @param {string} schemaId Schema identifier
2654
+ * @param {string} schemaVariantId Schema variant identifier
2655
+ * @param {CreateVariantAuthenticationFuncV1Request} createVariantAuthenticationFuncV1Request
2656
+ * @param {*} [options] Override http request option.
2657
+ * @throws {RequiredError}
2658
+ */
2659
+ createVariantAuthentication: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options = {}) => {
2660
+ // verify required parameter 'workspaceId' is not null or undefined
2661
+ assertParamExists('createVariantAuthentication', 'workspaceId', workspaceId);
2662
+ // verify required parameter 'changeSetId' is not null or undefined
2663
+ assertParamExists('createVariantAuthentication', 'changeSetId', changeSetId);
2664
+ // verify required parameter 'schemaId' is not null or undefined
2665
+ assertParamExists('createVariantAuthentication', 'schemaId', schemaId);
2666
+ // verify required parameter 'schemaVariantId' is not null or undefined
2667
+ assertParamExists('createVariantAuthentication', 'schemaVariantId', schemaVariantId);
2668
+ // verify required parameter 'createVariantAuthenticationFuncV1Request' is not null or undefined
2669
+ assertParamExists('createVariantAuthentication', 'createVariantAuthenticationFuncV1Request', createVariantAuthenticationFuncV1Request);
2670
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/authentication`
2671
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2672
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2673
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2674
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2676
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2677
+ let baseOptions;
2678
+ if (configuration) {
2679
+ baseOptions = configuration.baseOptions;
2680
+ }
2681
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2682
+ const localVarHeaderParameter = {};
2683
+ const localVarQueryParameter = {};
2684
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2687
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2688
+ localVarRequestOptions.data = serializeDataIfNeeded(createVariantAuthenticationFuncV1Request, localVarRequestOptions, configuration);
2689
+ return {
2690
+ url: toPathString(localVarUrlObj),
2691
+ options: localVarRequestOptions,
2692
+ };
2693
+ },
2694
+ /**
2695
+ *
2696
+ * @summary Create a codegen function and attach to a schema variant
2697
+ * @param {string} workspaceId Workspace identifier
2698
+ * @param {string} changeSetId Change Set identifier
2699
+ * @param {string} schemaId Schema identifier
2700
+ * @param {string} schemaVariantId Schema variant identifier
2701
+ * @param {CreateVariantCodegenFuncV1Request} createVariantCodegenFuncV1Request
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ createVariantCodegen: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options = {}) => {
2706
+ // verify required parameter 'workspaceId' is not null or undefined
2707
+ assertParamExists('createVariantCodegen', 'workspaceId', workspaceId);
2708
+ // verify required parameter 'changeSetId' is not null or undefined
2709
+ assertParamExists('createVariantCodegen', 'changeSetId', changeSetId);
2710
+ // verify required parameter 'schemaId' is not null or undefined
2711
+ assertParamExists('createVariantCodegen', 'schemaId', schemaId);
2712
+ // verify required parameter 'schemaVariantId' is not null or undefined
2713
+ assertParamExists('createVariantCodegen', 'schemaVariantId', schemaVariantId);
2714
+ // verify required parameter 'createVariantCodegenFuncV1Request' is not null or undefined
2715
+ assertParamExists('createVariantCodegen', 'createVariantCodegenFuncV1Request', createVariantCodegenFuncV1Request);
2716
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/codegen`
2717
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2718
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2719
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2720
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2723
+ let baseOptions;
2724
+ if (configuration) {
2725
+ baseOptions = configuration.baseOptions;
2726
+ }
2727
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2728
+ const localVarHeaderParameter = {};
2729
+ const localVarQueryParameter = {};
2730
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2731
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2733
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2734
+ localVarRequestOptions.data = serializeDataIfNeeded(createVariantCodegenFuncV1Request, localVarRequestOptions, configuration);
2735
+ return {
2736
+ url: toPathString(localVarUrlObj),
2737
+ options: localVarRequestOptions,
2738
+ };
2739
+ },
2740
+ /**
2741
+ *
2742
+ * @summary Create a management function and attach to a schema variant
2743
+ * @param {string} workspaceId Workspace identifier
2744
+ * @param {string} changeSetId Change Set identifier
2745
+ * @param {string} schemaId Schema identifier
2746
+ * @param {string} schemaVariantId Schema variant identifier
2747
+ * @param {CreateVariantManagementFuncV1Request} createVariantManagementFuncV1Request
2748
+ * @param {*} [options] Override http request option.
2749
+ * @throws {RequiredError}
2750
+ */
2751
+ createVariantManagement: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options = {}) => {
2752
+ // verify required parameter 'workspaceId' is not null or undefined
2753
+ assertParamExists('createVariantManagement', 'workspaceId', workspaceId);
2754
+ // verify required parameter 'changeSetId' is not null or undefined
2755
+ assertParamExists('createVariantManagement', 'changeSetId', changeSetId);
2756
+ // verify required parameter 'schemaId' is not null or undefined
2757
+ assertParamExists('createVariantManagement', 'schemaId', schemaId);
2758
+ // verify required parameter 'schemaVariantId' is not null or undefined
2759
+ assertParamExists('createVariantManagement', 'schemaVariantId', schemaVariantId);
2760
+ // verify required parameter 'createVariantManagementFuncV1Request' is not null or undefined
2761
+ assertParamExists('createVariantManagement', 'createVariantManagementFuncV1Request', createVariantManagementFuncV1Request);
2762
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/management`
2763
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2764
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2765
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2766
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2769
+ let baseOptions;
2770
+ if (configuration) {
2771
+ baseOptions = configuration.baseOptions;
2772
+ }
2773
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2774
+ const localVarHeaderParameter = {};
2775
+ const localVarQueryParameter = {};
2776
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2779
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2780
+ localVarRequestOptions.data = serializeDataIfNeeded(createVariantManagementFuncV1Request, localVarRequestOptions, configuration);
2781
+ return {
2782
+ url: toPathString(localVarUrlObj),
2783
+ options: localVarRequestOptions,
2784
+ };
2785
+ },
2786
+ /**
2787
+ *
2788
+ * @summary Create a qualification and attach to a schema variant
2789
+ * @param {string} workspaceId Workspace identifier
2790
+ * @param {string} changeSetId Change Set identifier
2791
+ * @param {string} schemaId Schema identifier
2792
+ * @param {string} schemaVariantId Schema variant identifier
2793
+ * @param {CreateVariantQualificationFuncV1Request} createVariantQualificationFuncV1Request
2794
+ * @param {*} [options] Override http request option.
2795
+ * @throws {RequiredError}
2796
+ */
2797
+ createVariantQualification: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options = {}) => {
2798
+ // verify required parameter 'workspaceId' is not null or undefined
2799
+ assertParamExists('createVariantQualification', 'workspaceId', workspaceId);
2800
+ // verify required parameter 'changeSetId' is not null or undefined
2801
+ assertParamExists('createVariantQualification', 'changeSetId', changeSetId);
2802
+ // verify required parameter 'schemaId' is not null or undefined
2803
+ assertParamExists('createVariantQualification', 'schemaId', schemaId);
2804
+ // verify required parameter 'schemaVariantId' is not null or undefined
2805
+ assertParamExists('createVariantQualification', 'schemaVariantId', schemaVariantId);
2806
+ // verify required parameter 'createVariantQualificationFuncV1Request' is not null or undefined
2807
+ assertParamExists('createVariantQualification', 'createVariantQualificationFuncV1Request', createVariantQualificationFuncV1Request);
2808
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/qualification`
2809
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2810
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2811
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2812
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2813
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2815
+ let baseOptions;
2816
+ if (configuration) {
2817
+ baseOptions = configuration.baseOptions;
2818
+ }
2819
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2820
+ const localVarHeaderParameter = {};
2821
+ const localVarQueryParameter = {};
2822
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2823
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2824
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2825
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2826
+ localVarRequestOptions.data = serializeDataIfNeeded(createVariantQualificationFuncV1Request, localVarRequestOptions, configuration);
2827
+ return {
2828
+ url: toPathString(localVarUrlObj),
2829
+ options: localVarRequestOptions,
2830
+ };
2831
+ },
2832
+ /**
2833
+ *
2834
+ * @summary Find schema by name or schema id
2835
+ * @param {string} workspaceId Workspace identifier
2836
+ * @param {string} changeSetId Change Set identifier
2837
+ * @param {string | null} [schema]
2838
+ * @param {string | null} [schemaId]
2839
+ * @param {*} [options] Override http request option.
2840
+ * @throws {RequiredError}
2841
+ */
2842
+ findSchema: async (workspaceId, changeSetId, schema, schemaId, options = {}) => {
2843
+ // verify required parameter 'workspaceId' is not null or undefined
2844
+ assertParamExists('findSchema', 'workspaceId', workspaceId);
2845
+ // verify required parameter 'changeSetId' is not null or undefined
2846
+ assertParamExists('findSchema', 'changeSetId', changeSetId);
2847
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/find`
2848
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2849
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
2850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2852
+ let baseOptions;
2853
+ if (configuration) {
2854
+ baseOptions = configuration.baseOptions;
2855
+ }
2856
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2857
+ const localVarHeaderParameter = {};
2858
+ const localVarQueryParameter = {};
2859
+ if (schema !== undefined) {
2860
+ localVarQueryParameter['schema'] = schema;
2861
+ }
2862
+ if (schemaId !== undefined) {
2863
+ localVarQueryParameter['schemaId'] = schemaId;
2864
+ }
2865
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2866
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2867
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2868
+ return {
2869
+ url: toPathString(localVarUrlObj),
2870
+ options: localVarRequestOptions,
2871
+ };
2872
+ },
2873
+ /**
2874
+ *
2875
+ * @summary Get the default variant for a schema id
2876
+ * @param {string} workspaceId Workspace identifier
2877
+ * @param {string} changeSetId Change Set identifier
2878
+ * @param {string} schemaId Schema identifier
2879
+ * @param {*} [options] Override http request option.
2880
+ * @throws {RequiredError}
2881
+ */
2882
+ getDefaultVariant: async (workspaceId, changeSetId, schemaId, options = {}) => {
2883
+ // verify required parameter 'workspaceId' is not null or undefined
2884
+ assertParamExists('getDefaultVariant', 'workspaceId', workspaceId);
2885
+ // verify required parameter 'changeSetId' is not null or undefined
2886
+ assertParamExists('getDefaultVariant', 'changeSetId', changeSetId);
2887
+ // verify required parameter 'schemaId' is not null or undefined
2888
+ assertParamExists('getDefaultVariant', 'schemaId', schemaId);
2889
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/default`
2890
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2891
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2892
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
2893
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2894
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2895
+ let baseOptions;
2896
+ if (configuration) {
2897
+ baseOptions = configuration.baseOptions;
2898
+ }
2899
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2900
+ const localVarHeaderParameter = {};
2901
+ const localVarQueryParameter = {};
2902
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2903
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2904
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2905
+ return {
2906
+ url: toPathString(localVarUrlObj),
2907
+ options: localVarRequestOptions,
2908
+ };
2909
+ },
2910
+ /**
2911
+ *
2912
+ * @summary Get a schema by schema id
2913
+ * @param {string} workspaceId Workspace identifier
2914
+ * @param {string} changeSetId Change Set identifier
2915
+ * @param {string} schemaId Schema identifier
2916
+ * @param {*} [options] Override http request option.
2917
+ * @throws {RequiredError}
2918
+ */
2919
+ getSchema: async (workspaceId, changeSetId, schemaId, options = {}) => {
2920
+ // verify required parameter 'workspaceId' is not null or undefined
2921
+ assertParamExists('getSchema', 'workspaceId', workspaceId);
2922
+ // verify required parameter 'changeSetId' is not null or undefined
2923
+ assertParamExists('getSchema', 'changeSetId', changeSetId);
2924
+ // verify required parameter 'schemaId' is not null or undefined
2925
+ assertParamExists('getSchema', 'schemaId', schemaId);
2926
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}`
2927
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2928
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2929
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
2930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2931
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2932
+ let baseOptions;
2933
+ if (configuration) {
2934
+ baseOptions = configuration.baseOptions;
2935
+ }
2936
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2937
+ const localVarHeaderParameter = {};
2938
+ const localVarQueryParameter = {};
2939
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2940
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2941
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2942
+ return {
2943
+ url: toPathString(localVarUrlObj),
2944
+ options: localVarRequestOptions,
2945
+ };
2946
+ },
2947
+ /**
2948
+ *
2949
+ * @summary Get a schema variant by schema id and schema variant id
2950
+ * @param {string} workspaceId Workspace identifier
2951
+ * @param {string} changeSetId Change Set identifier
2952
+ * @param {string} schemaId Schema identifier
2953
+ * @param {string} schemaVariantId Schema variant identifier
2954
+ * @param {*} [options] Override http request option.
2955
+ * @throws {RequiredError}
2956
+ */
2957
+ getVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, options = {}) => {
2958
+ // verify required parameter 'workspaceId' is not null or undefined
2959
+ assertParamExists('getVariant', 'workspaceId', workspaceId);
2960
+ // verify required parameter 'changeSetId' is not null or undefined
2961
+ assertParamExists('getVariant', 'changeSetId', changeSetId);
2962
+ // verify required parameter 'schemaId' is not null or undefined
2963
+ assertParamExists('getVariant', 'schemaId', schemaId);
2964
+ // verify required parameter 'schemaVariantId' is not null or undefined
2965
+ assertParamExists('getVariant', 'schemaVariantId', schemaVariantId);
2966
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}`
2967
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
2968
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
2969
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
2970
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
2971
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2972
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2973
+ let baseOptions;
2974
+ if (configuration) {
2975
+ baseOptions = configuration.baseOptions;
2976
+ }
2977
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2978
+ const localVarHeaderParameter = {};
2979
+ const localVarQueryParameter = {};
2980
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2981
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2982
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2983
+ return {
2984
+ url: toPathString(localVarUrlObj),
2985
+ options: localVarRequestOptions,
2986
+ };
2987
+ },
2988
+ /**
2989
+ *
2990
+ * @summary List all schemas (paginated endpoint)
2991
+ * @param {string} workspaceId Workspace identifier
2992
+ * @param {string} changeSetId Change Set identifier
2993
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
2994
+ * @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
2995
+ * @param {*} [options] Override http request option.
2996
+ * @throws {RequiredError}
2997
+ */
2998
+ listSchemas: async (workspaceId, changeSetId, limit, cursor, options = {}) => {
2999
+ // verify required parameter 'workspaceId' is not null or undefined
3000
+ assertParamExists('listSchemas', 'workspaceId', workspaceId);
3001
+ // verify required parameter 'changeSetId' is not null or undefined
3002
+ assertParamExists('listSchemas', 'changeSetId', changeSetId);
3003
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas`
3004
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3005
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3006
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3007
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3008
+ let baseOptions;
3009
+ if (configuration) {
3010
+ baseOptions = configuration.baseOptions;
3011
+ }
3012
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3013
+ const localVarHeaderParameter = {};
3014
+ const localVarQueryParameter = {};
3015
+ if (limit !== undefined) {
3016
+ localVarQueryParameter['limit'] = limit;
3017
+ }
3018
+ if (cursor !== undefined) {
3019
+ localVarQueryParameter['cursor'] = cursor;
3020
+ }
3021
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3022
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3023
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3024
+ return {
3025
+ url: toPathString(localVarUrlObj),
3026
+ options: localVarRequestOptions,
3027
+ };
3028
+ },
3029
+ /**
3030
+ *
3031
+ * @summary Complex search for shemas
3032
+ * @param {string} workspaceId Workspace identifier
3033
+ * @param {string} changeSetId Change Set identifier
3034
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
3035
+ * @param {*} [options] Override http request option.
3036
+ * @throws {RequiredError}
3037
+ */
3038
+ searchSchemas: async (workspaceId, changeSetId, searchSchemasV1Request, options = {}) => {
3039
+ // verify required parameter 'workspaceId' is not null or undefined
3040
+ assertParamExists('searchSchemas', 'workspaceId', workspaceId);
3041
+ // verify required parameter 'changeSetId' is not null or undefined
3042
+ assertParamExists('searchSchemas', 'changeSetId', changeSetId);
3043
+ // verify required parameter 'searchSchemasV1Request' is not null or undefined
3044
+ assertParamExists('searchSchemas', 'searchSchemasV1Request', searchSchemasV1Request);
3045
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/search`
3046
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3047
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3049
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3050
+ let baseOptions;
3051
+ if (configuration) {
3052
+ baseOptions = configuration.baseOptions;
3053
+ }
3054
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3055
+ const localVarHeaderParameter = {};
3056
+ const localVarQueryParameter = {};
3057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3060
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3061
+ localVarRequestOptions.data = serializeDataIfNeeded(searchSchemasV1Request, localVarRequestOptions, configuration);
3062
+ return {
3063
+ url: toPathString(localVarUrlObj),
3064
+ options: localVarRequestOptions,
3065
+ };
3066
+ },
3067
+ /**
3068
+ *
3069
+ * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
3070
+ * @param {string} workspaceId Workspace identifier
3071
+ * @param {string} changeSetId Change Set identifier
3072
+ * @param {string} schemaId Schema identifier
3073
+ * @param {*} [options] Override http request option.
3074
+ * @throws {RequiredError}
3075
+ */
3076
+ unlockSchema: async (workspaceId, changeSetId, schemaId, options = {}) => {
3077
+ // verify required parameter 'workspaceId' is not null or undefined
3078
+ assertParamExists('unlockSchema', 'workspaceId', workspaceId);
3079
+ // verify required parameter 'changeSetId' is not null or undefined
3080
+ assertParamExists('unlockSchema', 'changeSetId', changeSetId);
3081
+ // verify required parameter 'schemaId' is not null or undefined
3082
+ assertParamExists('unlockSchema', 'schemaId', schemaId);
3083
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/unlock`
3084
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3085
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
3086
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
3087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3089
+ let baseOptions;
3090
+ if (configuration) {
3091
+ baseOptions = configuration.baseOptions;
3092
+ }
3093
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3094
+ const localVarHeaderParameter = {};
3095
+ const localVarQueryParameter = {};
3096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3098
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3099
+ return {
3100
+ url: toPathString(localVarUrlObj),
3101
+ options: localVarRequestOptions,
3102
+ };
3103
+ },
3104
+ /**
3105
+ *
3106
+ * @summary Update the schema variant and regenerate
3107
+ * @param {string} workspaceId Workspace identifier
3108
+ * @param {string} changeSetId Change Set identifier
3109
+ * @param {string} schemaId Schema identifier
3110
+ * @param {string} schemaVariantId Schema variant identifier
3111
+ * @param {UpdateSchemaVariantV1Request} updateSchemaVariantV1Request
3112
+ * @param {*} [options] Override http request option.
3113
+ * @throws {RequiredError}
3114
+ */
3115
+ updateSchemaVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options = {}) => {
3116
+ // verify required parameter 'workspaceId' is not null or undefined
3117
+ assertParamExists('updateSchemaVariant', 'workspaceId', workspaceId);
3118
+ // verify required parameter 'changeSetId' is not null or undefined
3119
+ assertParamExists('updateSchemaVariant', 'changeSetId', changeSetId);
3120
+ // verify required parameter 'schemaId' is not null or undefined
3121
+ assertParamExists('updateSchemaVariant', 'schemaId', schemaId);
3122
+ // verify required parameter 'schemaVariantId' is not null or undefined
3123
+ assertParamExists('updateSchemaVariant', 'schemaVariantId', schemaVariantId);
3124
+ // verify required parameter 'updateSchemaVariantV1Request' is not null or undefined
3125
+ assertParamExists('updateSchemaVariant', 'updateSchemaVariantV1Request', updateSchemaVariantV1Request);
3126
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}`
3127
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3128
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
3129
+ .replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
3130
+ .replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
3131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3133
+ let baseOptions;
3134
+ if (configuration) {
3135
+ baseOptions = configuration.baseOptions;
3136
+ }
3137
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3138
+ const localVarHeaderParameter = {};
3139
+ const localVarQueryParameter = {};
3140
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3143
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3144
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSchemaVariantV1Request, localVarRequestOptions, configuration);
3145
+ return {
3146
+ url: toPathString(localVarUrlObj),
3147
+ options: localVarRequestOptions,
3148
+ };
3149
+ },
3150
+ };
3151
+ };
3152
+ /**
3153
+ * SchemasApi - functional programming interface
3154
+ * @export
3155
+ */
3156
+ export const SchemasApiFp = function (configuration) {
3157
+ const localVarAxiosParamCreator = SchemasApiAxiosParamCreator(configuration);
3158
+ return {
3159
+ /**
3160
+ *
3161
+ * @summary Create a schema and it\'s default variant
3162
+ * @param {string} workspaceId Workspace identifier
3163
+ * @param {string} changeSetId Change Set identifier
3164
+ * @param {CreateSchemaV1Request} createSchemaV1Request
3165
+ * @param {*} [options] Override http request option.
3166
+ * @throws {RequiredError}
3167
+ */
3168
+ async createSchema(workspaceId, changeSetId, createSchemaV1Request, options) {
3169
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSchema(workspaceId, changeSetId, createSchemaV1Request, options);
3170
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3171
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createSchema']?.[localVarOperationServerIndex]?.url;
3172
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3173
+ },
3174
+ /**
3175
+ *
3176
+ * @summary Create an action function and attach to a schema variant
3177
+ * @param {string} workspaceId Workspace identifier
3178
+ * @param {string} changeSetId Change Set identifier
3179
+ * @param {string} schemaId Schema identifier
3180
+ * @param {string} schemaVariantId Schema variant identifier
3181
+ * @param {CreateVariantActionFuncV1Request} createVariantActionFuncV1Request
3182
+ * @param {*} [options] Override http request option.
3183
+ * @throws {RequiredError}
3184
+ */
3185
+ async createVariantAction(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options) {
3186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantAction(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options);
3187
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3188
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createVariantAction']?.[localVarOperationServerIndex]?.url;
3189
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3190
+ },
3191
+ /**
3192
+ *
3193
+ * @summary Create an authentication function and attach to a schema variant
3194
+ * @param {string} workspaceId Workspace identifier
3195
+ * @param {string} changeSetId Change Set identifier
3196
+ * @param {string} schemaId Schema identifier
3197
+ * @param {string} schemaVariantId Schema variant identifier
3198
+ * @param {CreateVariantAuthenticationFuncV1Request} createVariantAuthenticationFuncV1Request
3199
+ * @param {*} [options] Override http request option.
3200
+ * @throws {RequiredError}
3201
+ */
3202
+ async createVariantAuthentication(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options) {
3203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantAuthentication(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options);
3204
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3205
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createVariantAuthentication']?.[localVarOperationServerIndex]?.url;
3206
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3207
+ },
3208
+ /**
3209
+ *
3210
+ * @summary Create a codegen function and attach to a schema variant
3211
+ * @param {string} workspaceId Workspace identifier
3212
+ * @param {string} changeSetId Change Set identifier
3213
+ * @param {string} schemaId Schema identifier
3214
+ * @param {string} schemaVariantId Schema variant identifier
3215
+ * @param {CreateVariantCodegenFuncV1Request} createVariantCodegenFuncV1Request
3216
+ * @param {*} [options] Override http request option.
3217
+ * @throws {RequiredError}
3218
+ */
3219
+ async createVariantCodegen(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options) {
3220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantCodegen(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options);
3221
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3222
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createVariantCodegen']?.[localVarOperationServerIndex]?.url;
3223
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3224
+ },
3225
+ /**
3226
+ *
3227
+ * @summary Create a management function and attach to a schema variant
3228
+ * @param {string} workspaceId Workspace identifier
3229
+ * @param {string} changeSetId Change Set identifier
3230
+ * @param {string} schemaId Schema identifier
3231
+ * @param {string} schemaVariantId Schema variant identifier
3232
+ * @param {CreateVariantManagementFuncV1Request} createVariantManagementFuncV1Request
3233
+ * @param {*} [options] Override http request option.
3234
+ * @throws {RequiredError}
3235
+ */
3236
+ async createVariantManagement(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options) {
3237
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantManagement(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options);
3238
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3239
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createVariantManagement']?.[localVarOperationServerIndex]?.url;
3240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3241
+ },
3242
+ /**
3243
+ *
3244
+ * @summary Create a qualification and attach to a schema variant
3245
+ * @param {string} workspaceId Workspace identifier
3246
+ * @param {string} changeSetId Change Set identifier
3247
+ * @param {string} schemaId Schema identifier
3248
+ * @param {string} schemaVariantId Schema variant identifier
3249
+ * @param {CreateVariantQualificationFuncV1Request} createVariantQualificationFuncV1Request
3250
+ * @param {*} [options] Override http request option.
3251
+ * @throws {RequiredError}
3252
+ */
3253
+ async createVariantQualification(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options) {
3254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantQualification(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options);
3255
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3256
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.createVariantQualification']?.[localVarOperationServerIndex]?.url;
3257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3258
+ },
3259
+ /**
3260
+ *
3261
+ * @summary Find schema by name or schema id
3262
+ * @param {string} workspaceId Workspace identifier
3263
+ * @param {string} changeSetId Change Set identifier
3264
+ * @param {string | null} [schema]
3265
+ * @param {string | null} [schemaId]
3266
+ * @param {*} [options] Override http request option.
3267
+ * @throws {RequiredError}
3268
+ */
3269
+ async findSchema(workspaceId, changeSetId, schema, schemaId, options) {
3270
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findSchema(workspaceId, changeSetId, schema, schemaId, options);
3271
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3272
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.findSchema']?.[localVarOperationServerIndex]?.url;
3273
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3274
+ },
3275
+ /**
3276
+ *
3277
+ * @summary Get the default variant for a schema id
3278
+ * @param {string} workspaceId Workspace identifier
3279
+ * @param {string} changeSetId Change Set identifier
3280
+ * @param {string} schemaId Schema identifier
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ async getDefaultVariant(workspaceId, changeSetId, schemaId, options) {
3285
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultVariant(workspaceId, changeSetId, schemaId, options);
3286
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3287
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.getDefaultVariant']?.[localVarOperationServerIndex]?.url;
3288
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3289
+ },
3290
+ /**
3291
+ *
3292
+ * @summary Get a schema by schema id
3293
+ * @param {string} workspaceId Workspace identifier
3294
+ * @param {string} changeSetId Change Set identifier
3295
+ * @param {string} schemaId Schema identifier
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ */
3299
+ async getSchema(workspaceId, changeSetId, schemaId, options) {
3300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(workspaceId, changeSetId, schemaId, options);
3301
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3302
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
3303
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3304
+ },
3305
+ /**
3306
+ *
3307
+ * @summary Get a schema variant by schema id and schema variant id
3308
+ * @param {string} workspaceId Workspace identifier
3309
+ * @param {string} changeSetId Change Set identifier
3310
+ * @param {string} schemaId Schema identifier
3311
+ * @param {string} schemaVariantId Schema variant identifier
3312
+ * @param {*} [options] Override http request option.
3313
+ * @throws {RequiredError}
3314
+ */
3315
+ async getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options) {
3316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVariant(workspaceId, changeSetId, schemaId, schemaVariantId, options);
3317
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3318
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
3319
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3320
+ },
3321
+ /**
3322
+ *
3323
+ * @summary List all schemas (paginated endpoint)
3324
+ * @param {string} workspaceId Workspace identifier
3325
+ * @param {string} changeSetId Change Set identifier
3326
+ * @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
3327
+ * @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
3328
+ * @param {*} [options] Override http request option.
3329
+ * @throws {RequiredError}
3330
+ */
3331
+ async listSchemas(workspaceId, changeSetId, limit, cursor, options) {
3332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSchemas(workspaceId, changeSetId, limit, cursor, options);
3333
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3334
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.listSchemas']?.[localVarOperationServerIndex]?.url;
3335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3336
+ },
3337
+ /**
3338
+ *
3339
+ * @summary Complex search for shemas
3340
+ * @param {string} workspaceId Workspace identifier
3341
+ * @param {string} changeSetId Change Set identifier
3342
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
3343
+ * @param {*} [options] Override http request option.
3344
+ * @throws {RequiredError}
3345
+ */
3346
+ async searchSchemas(workspaceId, changeSetId, searchSchemasV1Request, options) {
3347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchSchemas(workspaceId, changeSetId, searchSchemasV1Request, options);
3348
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3349
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.searchSchemas']?.[localVarOperationServerIndex]?.url;
3350
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3351
+ },
3352
+ /**
3353
+ *
3354
+ * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
3355
+ * @param {string} workspaceId Workspace identifier
3356
+ * @param {string} changeSetId Change Set identifier
3357
+ * @param {string} schemaId Schema identifier
3358
+ * @param {*} [options] Override http request option.
3359
+ * @throws {RequiredError}
3360
+ */
3361
+ async unlockSchema(workspaceId, changeSetId, schemaId, options) {
3362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlockSchema(workspaceId, changeSetId, schemaId, options);
3363
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3364
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.unlockSchema']?.[localVarOperationServerIndex]?.url;
3365
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3366
+ },
3367
+ /**
3368
+ *
3369
+ * @summary Update the schema variant and regenerate
3370
+ * @param {string} workspaceId Workspace identifier
3371
+ * @param {string} changeSetId Change Set identifier
3372
+ * @param {string} schemaId Schema identifier
3373
+ * @param {string} schemaVariantId Schema variant identifier
3374
+ * @param {UpdateSchemaVariantV1Request} updateSchemaVariantV1Request
3375
+ * @param {*} [options] Override http request option.
3376
+ * @throws {RequiredError}
3377
+ */
3378
+ async updateSchemaVariant(workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options) {
3379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchemaVariant(workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options);
3380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3381
+ const localVarOperationServerBasePath = operationServerMap['SchemasApi.updateSchemaVariant']?.[localVarOperationServerIndex]?.url;
3382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3383
+ },
3384
+ };
3385
+ };
3386
+ /**
3387
+ * SchemasApi - factory interface
3388
+ * @export
3389
+ */
3390
+ export const SchemasApiFactory = function (configuration, basePath, axios) {
3391
+ const localVarFp = SchemasApiFp(configuration);
3392
+ return {
3393
+ /**
3394
+ *
3395
+ * @summary Create a schema and it\'s default variant
3396
+ * @param {SchemasApiCreateSchemaRequest} requestParameters Request parameters.
3397
+ * @param {*} [options] Override http request option.
3398
+ * @throws {RequiredError}
3399
+ */
3400
+ createSchema(requestParameters, options) {
3401
+ return localVarFp.createSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSchemaV1Request, options).then((request) => request(axios, basePath));
3402
+ },
3403
+ /**
3404
+ *
3405
+ * @summary Create an action function and attach to a schema variant
3406
+ * @param {SchemasApiCreateVariantActionRequest} requestParameters Request parameters.
3407
+ * @param {*} [options] Override http request option.
3408
+ * @throws {RequiredError}
3409
+ */
3410
+ createVariantAction(requestParameters, options) {
3411
+ return localVarFp.createVariantAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantActionFuncV1Request, options).then((request) => request(axios, basePath));
3412
+ },
3413
+ /**
3414
+ *
3415
+ * @summary Create an authentication function and attach to a schema variant
3416
+ * @param {SchemasApiCreateVariantAuthenticationRequest} requestParameters Request parameters.
3417
+ * @param {*} [options] Override http request option.
3418
+ * @throws {RequiredError}
3419
+ */
3420
+ createVariantAuthentication(requestParameters, options) {
3421
+ return localVarFp.createVariantAuthentication(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAuthenticationFuncV1Request, options).then((request) => request(axios, basePath));
3422
+ },
3423
+ /**
3424
+ *
3425
+ * @summary Create a codegen function and attach to a schema variant
3426
+ * @param {SchemasApiCreateVariantCodegenRequest} requestParameters Request parameters.
3427
+ * @param {*} [options] Override http request option.
3428
+ * @throws {RequiredError}
3429
+ */
3430
+ createVariantCodegen(requestParameters, options) {
3431
+ return localVarFp.createVariantCodegen(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantCodegenFuncV1Request, options).then((request) => request(axios, basePath));
3432
+ },
3433
+ /**
3434
+ *
3435
+ * @summary Create a management function and attach to a schema variant
3436
+ * @param {SchemasApiCreateVariantManagementRequest} requestParameters Request parameters.
3437
+ * @param {*} [options] Override http request option.
3438
+ * @throws {RequiredError}
3439
+ */
3440
+ createVariantManagement(requestParameters, options) {
3441
+ return localVarFp.createVariantManagement(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantManagementFuncV1Request, options).then((request) => request(axios, basePath));
3442
+ },
3443
+ /**
3444
+ *
3445
+ * @summary Create a qualification and attach to a schema variant
3446
+ * @param {SchemasApiCreateVariantQualificationRequest} requestParameters Request parameters.
3447
+ * @param {*} [options] Override http request option.
3448
+ * @throws {RequiredError}
3449
+ */
3450
+ createVariantQualification(requestParameters, options) {
3451
+ return localVarFp.createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(axios, basePath));
3452
+ },
3453
+ /**
3454
+ *
3455
+ * @summary Find schema by name or schema id
3456
+ * @param {SchemasApiFindSchemaRequest} requestParameters Request parameters.
3457
+ * @param {*} [options] Override http request option.
3458
+ * @throws {RequiredError}
3459
+ */
3460
+ findSchema(requestParameters, options) {
3461
+ return localVarFp.findSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schema, requestParameters.schemaId, options).then((request) => request(axios, basePath));
3462
+ },
3463
+ /**
3464
+ *
3465
+ * @summary Get the default variant for a schema id
3466
+ * @param {SchemasApiGetDefaultVariantRequest} requestParameters Request parameters.
3467
+ * @param {*} [options] Override http request option.
3468
+ * @throws {RequiredError}
3469
+ */
3470
+ getDefaultVariant(requestParameters, options) {
3471
+ return localVarFp.getDefaultVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
3472
+ },
3473
+ /**
3474
+ *
3475
+ * @summary Get a schema by schema id
3476
+ * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
3477
+ * @param {*} [options] Override http request option.
3478
+ * @throws {RequiredError}
3479
+ */
3480
+ getSchema(requestParameters, options) {
3481
+ return localVarFp.getSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
3482
+ },
3483
+ /**
3484
+ *
3485
+ * @summary Get a schema variant by schema id and schema variant id
3486
+ * @param {SchemasApiGetVariantRequest} requestParameters Request parameters.
3487
+ * @param {*} [options] Override http request option.
3488
+ * @throws {RequiredError}
3489
+ */
3490
+ getVariant(requestParameters, options) {
3491
+ return localVarFp.getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(axios, basePath));
3492
+ },
3493
+ /**
3494
+ *
3495
+ * @summary List all schemas (paginated endpoint)
3496
+ * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
3497
+ * @param {*} [options] Override http request option.
3498
+ * @throws {RequiredError}
3499
+ */
3500
+ listSchemas(requestParameters, options) {
3501
+ return localVarFp.listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
3502
+ },
3503
+ /**
3504
+ *
3505
+ * @summary Complex search for shemas
3506
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
3507
+ * @param {*} [options] Override http request option.
3508
+ * @throws {RequiredError}
3509
+ */
3510
+ searchSchemas(requestParameters, options) {
3511
+ return localVarFp.searchSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchSchemasV1Request, options).then((request) => request(axios, basePath));
3512
+ },
3513
+ /**
3514
+ *
3515
+ * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
3516
+ * @param {SchemasApiUnlockSchemaRequest} requestParameters Request parameters.
3517
+ * @param {*} [options] Override http request option.
3518
+ * @throws {RequiredError}
3519
+ */
3520
+ unlockSchema(requestParameters, options) {
3521
+ return localVarFp.unlockSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
3522
+ },
3523
+ /**
3524
+ *
3525
+ * @summary Update the schema variant and regenerate
3526
+ * @param {SchemasApiUpdateSchemaVariantRequest} requestParameters Request parameters.
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ updateSchemaVariant(requestParameters, options) {
3531
+ return localVarFp.updateSchemaVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.updateSchemaVariantV1Request, options).then((request) => request(axios, basePath));
3532
+ },
3533
+ };
3534
+ };
3535
+ /**
3536
+ * SchemasApi - object-oriented interface
3537
+ * @export
3538
+ * @class SchemasApi
3539
+ * @extends {BaseAPI}
3540
+ */
3541
+ export class SchemasApi extends BaseAPI {
3542
+ /**
3543
+ *
3544
+ * @summary Create a schema and it\'s default variant
3545
+ * @param {SchemasApiCreateSchemaRequest} requestParameters Request parameters.
3546
+ * @param {*} [options] Override http request option.
3547
+ * @throws {RequiredError}
3548
+ * @memberof SchemasApi
3549
+ */
3550
+ createSchema(requestParameters, options) {
3551
+ return SchemasApiFp(this.configuration).createSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSchemaV1Request, options).then((request) => request(this.axios, this.basePath));
3552
+ }
3553
+ /**
3554
+ *
3555
+ * @summary Create an action function and attach to a schema variant
3556
+ * @param {SchemasApiCreateVariantActionRequest} requestParameters Request parameters.
3557
+ * @param {*} [options] Override http request option.
3558
+ * @throws {RequiredError}
3559
+ * @memberof SchemasApi
3560
+ */
3561
+ createVariantAction(requestParameters, options) {
3562
+ return SchemasApiFp(this.configuration).createVariantAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantActionFuncV1Request, options).then((request) => request(this.axios, this.basePath));
3563
+ }
3564
+ /**
3565
+ *
3566
+ * @summary Create an authentication function and attach to a schema variant
3567
+ * @param {SchemasApiCreateVariantAuthenticationRequest} requestParameters Request parameters.
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ * @memberof SchemasApi
3571
+ */
3572
+ createVariantAuthentication(requestParameters, options) {
3573
+ return SchemasApiFp(this.configuration).createVariantAuthentication(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAuthenticationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
3574
+ }
3575
+ /**
3576
+ *
3577
+ * @summary Create a codegen function and attach to a schema variant
3578
+ * @param {SchemasApiCreateVariantCodegenRequest} requestParameters Request parameters.
3579
+ * @param {*} [options] Override http request option.
3580
+ * @throws {RequiredError}
3581
+ * @memberof SchemasApi
3582
+ */
3583
+ createVariantCodegen(requestParameters, options) {
3584
+ return SchemasApiFp(this.configuration).createVariantCodegen(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantCodegenFuncV1Request, options).then((request) => request(this.axios, this.basePath));
3585
+ }
3586
+ /**
3587
+ *
3588
+ * @summary Create a management function and attach to a schema variant
3589
+ * @param {SchemasApiCreateVariantManagementRequest} requestParameters Request parameters.
3590
+ * @param {*} [options] Override http request option.
3591
+ * @throws {RequiredError}
3592
+ * @memberof SchemasApi
3593
+ */
3594
+ createVariantManagement(requestParameters, options) {
3595
+ return SchemasApiFp(this.configuration).createVariantManagement(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantManagementFuncV1Request, options).then((request) => request(this.axios, this.basePath));
3596
+ }
3597
+ /**
3598
+ *
3599
+ * @summary Create a qualification and attach to a schema variant
3600
+ * @param {SchemasApiCreateVariantQualificationRequest} requestParameters Request parameters.
3601
+ * @param {*} [options] Override http request option.
3602
+ * @throws {RequiredError}
3603
+ * @memberof SchemasApi
3604
+ */
3605
+ createVariantQualification(requestParameters, options) {
3606
+ return SchemasApiFp(this.configuration).createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
3607
+ }
3608
+ /**
3609
+ *
3610
+ * @summary Find schema by name or schema id
3611
+ * @param {SchemasApiFindSchemaRequest} requestParameters Request parameters.
3612
+ * @param {*} [options] Override http request option.
3613
+ * @throws {RequiredError}
3614
+ * @memberof SchemasApi
3615
+ */
3616
+ findSchema(requestParameters, options) {
3617
+ return SchemasApiFp(this.configuration).findSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schema, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
3618
+ }
3619
+ /**
3620
+ *
3621
+ * @summary Get the default variant for a schema id
3622
+ * @param {SchemasApiGetDefaultVariantRequest} requestParameters Request parameters.
3623
+ * @param {*} [options] Override http request option.
3624
+ * @throws {RequiredError}
3625
+ * @memberof SchemasApi
3626
+ */
3627
+ getDefaultVariant(requestParameters, options) {
3628
+ return SchemasApiFp(this.configuration).getDefaultVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
3629
+ }
3630
+ /**
3631
+ *
3632
+ * @summary Get a schema by schema id
3633
+ * @param {SchemasApiGetSchemaRequest} requestParameters Request parameters.
3634
+ * @param {*} [options] Override http request option.
3635
+ * @throws {RequiredError}
3636
+ * @memberof SchemasApi
3637
+ */
3638
+ getSchema(requestParameters, options) {
3639
+ return SchemasApiFp(this.configuration).getSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
3640
+ }
3641
+ /**
3642
+ *
3643
+ * @summary Get a schema variant by schema id and schema variant id
3644
+ * @param {SchemasApiGetVariantRequest} requestParameters Request parameters.
3645
+ * @param {*} [options] Override http request option.
3646
+ * @throws {RequiredError}
3647
+ * @memberof SchemasApi
3648
+ */
3649
+ getVariant(requestParameters, options) {
3650
+ return SchemasApiFp(this.configuration).getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(this.axios, this.basePath));
3651
+ }
3652
+ /**
3653
+ *
3654
+ * @summary List all schemas (paginated endpoint)
3655
+ * @param {SchemasApiListSchemasRequest} requestParameters Request parameters.
3656
+ * @param {*} [options] Override http request option.
3657
+ * @throws {RequiredError}
3658
+ * @memberof SchemasApi
3659
+ */
3660
+ listSchemas(requestParameters, options) {
3661
+ return SchemasApiFp(this.configuration).listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
3662
+ }
3663
+ /**
3664
+ *
3665
+ * @summary Complex search for shemas
3666
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
3667
+ * @param {*} [options] Override http request option.
3668
+ * @throws {RequiredError}
3669
+ * @memberof SchemasApi
3670
+ */
3671
+ searchSchemas(requestParameters, options) {
3672
+ return SchemasApiFp(this.configuration).searchSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchSchemasV1Request, options).then((request) => request(this.axios, this.basePath));
3673
+ }
3674
+ /**
3675
+ *
3676
+ * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
3677
+ * @param {SchemasApiUnlockSchemaRequest} requestParameters Request parameters.
3678
+ * @param {*} [options] Override http request option.
3679
+ * @throws {RequiredError}
3680
+ * @memberof SchemasApi
3681
+ */
3682
+ unlockSchema(requestParameters, options) {
3683
+ return SchemasApiFp(this.configuration).unlockSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
3684
+ }
3685
+ /**
3686
+ *
3687
+ * @summary Update the schema variant and regenerate
3688
+ * @param {SchemasApiUpdateSchemaVariantRequest} requestParameters Request parameters.
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ * @memberof SchemasApi
3692
+ */
3693
+ updateSchemaVariant(requestParameters, options) {
3694
+ return SchemasApiFp(this.configuration).updateSchemaVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.updateSchemaVariantV1Request, options).then((request) => request(this.axios, this.basePath));
3695
+ }
3696
+ }
3697
+ /**
3698
+ * SecretsApi - axios parameter creator
3699
+ * @export
3700
+ */
3701
+ export const SecretsApiAxiosParamCreator = function (configuration) {
3702
+ return {
3703
+ /**
3704
+ *
3705
+ * @summary Create a secret
3706
+ * @param {string} workspaceId Workspace identifier
3707
+ * @param {string} changeSetId Change Set identifier
3708
+ * @param {CreateSecretV1Request} createSecretV1Request
3709
+ * @param {*} [options] Override http request option.
3710
+ * @throws {RequiredError}
3711
+ */
3712
+ createSecret: async (workspaceId, changeSetId, createSecretV1Request, options = {}) => {
3713
+ // verify required parameter 'workspaceId' is not null or undefined
3714
+ assertParamExists('createSecret', 'workspaceId', workspaceId);
3715
+ // verify required parameter 'changeSetId' is not null or undefined
3716
+ assertParamExists('createSecret', 'changeSetId', changeSetId);
3717
+ // verify required parameter 'createSecretV1Request' is not null or undefined
3718
+ assertParamExists('createSecret', 'createSecretV1Request', createSecretV1Request);
3719
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets`
3720
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3721
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3724
+ let baseOptions;
3725
+ if (configuration) {
3726
+ baseOptions = configuration.baseOptions;
3727
+ }
3728
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3729
+ const localVarHeaderParameter = {};
3730
+ const localVarQueryParameter = {};
3731
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3734
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3735
+ localVarRequestOptions.data = serializeDataIfNeeded(createSecretV1Request, localVarRequestOptions, configuration);
3736
+ return {
3737
+ url: toPathString(localVarUrlObj),
3738
+ options: localVarRequestOptions,
3739
+ };
3740
+ },
3741
+ /**
3742
+ *
3743
+ * @summary Delete a secret
3744
+ * @param {string} workspaceId Workspace identifier
3745
+ * @param {string} changeSetId Change Set identifier
3746
+ * @param {string} secretId Secret identifier
3747
+ * @param {*} [options] Override http request option.
3748
+ * @throws {RequiredError}
3749
+ */
3750
+ deleteSecret: async (workspaceId, changeSetId, secretId, options = {}) => {
3751
+ // verify required parameter 'workspaceId' is not null or undefined
3752
+ assertParamExists('deleteSecret', 'workspaceId', workspaceId);
3753
+ // verify required parameter 'changeSetId' is not null or undefined
3754
+ assertParamExists('deleteSecret', 'changeSetId', changeSetId);
3755
+ // verify required parameter 'secretId' is not null or undefined
3756
+ assertParamExists('deleteSecret', 'secretId', secretId);
3757
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets/{secret_id}`
3758
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3759
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
3760
+ .replace(`{${"secret_id"}}`, encodeURIComponent(String(secretId)));
3761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3763
+ let baseOptions;
3764
+ if (configuration) {
3765
+ baseOptions = configuration.baseOptions;
3766
+ }
3767
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
3768
+ const localVarHeaderParameter = {};
3769
+ const localVarQueryParameter = {};
3770
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3771
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3772
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3773
+ return {
3774
+ url: toPathString(localVarUrlObj),
3775
+ options: localVarRequestOptions,
3776
+ };
3777
+ },
3778
+ /**
3779
+ *
3780
+ * @summary List all secrets
3781
+ * @param {string} workspaceId Workspace identifier
3782
+ * @param {string} changeSetId Change Set identifier
3783
+ * @param {*} [options] Override http request option.
3784
+ * @throws {RequiredError}
3785
+ */
3786
+ getSecrets: async (workspaceId, changeSetId, options = {}) => {
3787
+ // verify required parameter 'workspaceId' is not null or undefined
3788
+ assertParamExists('getSecrets', 'workspaceId', workspaceId);
3789
+ // verify required parameter 'changeSetId' is not null or undefined
3790
+ assertParamExists('getSecrets', 'changeSetId', changeSetId);
3791
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets`
3792
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3793
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3796
+ let baseOptions;
3797
+ if (configuration) {
3798
+ baseOptions = configuration.baseOptions;
3799
+ }
3800
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3801
+ const localVarHeaderParameter = {};
3802
+ const localVarQueryParameter = {};
3803
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3804
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3805
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3806
+ return {
3807
+ url: toPathString(localVarUrlObj),
3808
+ options: localVarRequestOptions,
3809
+ };
3810
+ },
3811
+ /**
3812
+ *
3813
+ * @summary Update a secret
3814
+ * @param {string} workspaceId Workspace identifier
3815
+ * @param {string} changeSetId Change Set identifier
3816
+ * @param {string} secretId Secret identifier
3817
+ * @param {UpdateSecretV1Request} updateSecretV1Request
3818
+ * @param {*} [options] Override http request option.
3819
+ * @throws {RequiredError}
3820
+ */
3821
+ updateSecret: async (workspaceId, changeSetId, secretId, updateSecretV1Request, options = {}) => {
3822
+ // verify required parameter 'workspaceId' is not null or undefined
3823
+ assertParamExists('updateSecret', 'workspaceId', workspaceId);
3824
+ // verify required parameter 'changeSetId' is not null or undefined
3825
+ assertParamExists('updateSecret', 'changeSetId', changeSetId);
3826
+ // verify required parameter 'secretId' is not null or undefined
3827
+ assertParamExists('updateSecret', 'secretId', secretId);
3828
+ // verify required parameter 'updateSecretV1Request' is not null or undefined
3829
+ assertParamExists('updateSecret', 'updateSecretV1Request', updateSecretV1Request);
3830
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/secrets/{secret_id}`
3831
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3832
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
3833
+ .replace(`{${"secret_id"}}`, encodeURIComponent(String(secretId)));
3834
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3835
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3836
+ let baseOptions;
3837
+ if (configuration) {
3838
+ baseOptions = configuration.baseOptions;
3839
+ }
3840
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3841
+ const localVarHeaderParameter = {};
3842
+ const localVarQueryParameter = {};
3843
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3844
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3846
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3847
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSecretV1Request, localVarRequestOptions, configuration);
3848
+ return {
3849
+ url: toPathString(localVarUrlObj),
3850
+ options: localVarRequestOptions,
3851
+ };
3852
+ },
3853
+ };
3854
+ };
3855
+ /**
3856
+ * SecretsApi - functional programming interface
3857
+ * @export
3858
+ */
3859
+ export const SecretsApiFp = function (configuration) {
3860
+ const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration);
3861
+ return {
3862
+ /**
3863
+ *
3864
+ * @summary Create a secret
3865
+ * @param {string} workspaceId Workspace identifier
3866
+ * @param {string} changeSetId Change Set identifier
3867
+ * @param {CreateSecretV1Request} createSecretV1Request
3868
+ * @param {*} [options] Override http request option.
3869
+ * @throws {RequiredError}
3870
+ */
3871
+ async createSecret(workspaceId, changeSetId, createSecretV1Request, options) {
3872
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(workspaceId, changeSetId, createSecretV1Request, options);
3873
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3874
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.createSecret']?.[localVarOperationServerIndex]?.url;
3875
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3876
+ },
3877
+ /**
3878
+ *
3879
+ * @summary Delete a secret
3880
+ * @param {string} workspaceId Workspace identifier
3881
+ * @param {string} changeSetId Change Set identifier
3882
+ * @param {string} secretId Secret identifier
3883
+ * @param {*} [options] Override http request option.
3884
+ * @throws {RequiredError}
3885
+ */
3886
+ async deleteSecret(workspaceId, changeSetId, secretId, options) {
3887
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSecret(workspaceId, changeSetId, secretId, options);
3888
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3889
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.deleteSecret']?.[localVarOperationServerIndex]?.url;
3890
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3891
+ },
3892
+ /**
3893
+ *
3894
+ * @summary List all secrets
3895
+ * @param {string} workspaceId Workspace identifier
3896
+ * @param {string} changeSetId Change Set identifier
3897
+ * @param {*} [options] Override http request option.
3898
+ * @throws {RequiredError}
3899
+ */
3900
+ async getSecrets(workspaceId, changeSetId, options) {
3901
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSecrets(workspaceId, changeSetId, options);
3902
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3903
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.getSecrets']?.[localVarOperationServerIndex]?.url;
3904
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3905
+ },
3906
+ /**
3907
+ *
3908
+ * @summary Update a secret
3909
+ * @param {string} workspaceId Workspace identifier
3910
+ * @param {string} changeSetId Change Set identifier
3911
+ * @param {string} secretId Secret identifier
3912
+ * @param {UpdateSecretV1Request} updateSecretV1Request
3913
+ * @param {*} [options] Override http request option.
3914
+ * @throws {RequiredError}
3915
+ */
3916
+ async updateSecret(workspaceId, changeSetId, secretId, updateSecretV1Request, options) {
3917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSecret(workspaceId, changeSetId, secretId, updateSecretV1Request, options);
3918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3919
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.updateSecret']?.[localVarOperationServerIndex]?.url;
3920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3921
+ },
3922
+ };
3923
+ };
3924
+ /**
3925
+ * SecretsApi - factory interface
3926
+ * @export
3927
+ */
3928
+ export const SecretsApiFactory = function (configuration, basePath, axios) {
3929
+ const localVarFp = SecretsApiFp(configuration);
3930
+ return {
3931
+ /**
3932
+ *
3933
+ * @summary Create a secret
3934
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
3935
+ * @param {*} [options] Override http request option.
3936
+ * @throws {RequiredError}
3937
+ */
3938
+ createSecret(requestParameters, options) {
3939
+ return localVarFp.createSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSecretV1Request, options).then((request) => request(axios, basePath));
3940
+ },
3941
+ /**
3942
+ *
3943
+ * @summary Delete a secret
3944
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
3945
+ * @param {*} [options] Override http request option.
3946
+ * @throws {RequiredError}
3947
+ */
3948
+ deleteSecret(requestParameters, options) {
3949
+ return localVarFp.deleteSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, options).then((request) => request(axios, basePath));
3950
+ },
3951
+ /**
3952
+ *
3953
+ * @summary List all secrets
3954
+ * @param {SecretsApiGetSecretsRequest} requestParameters Request parameters.
3955
+ * @param {*} [options] Override http request option.
3956
+ * @throws {RequiredError}
3957
+ */
3958
+ getSecrets(requestParameters, options) {
3959
+ return localVarFp.getSecrets(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
3960
+ },
3961
+ /**
3962
+ *
3963
+ * @summary Update a secret
3964
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
3965
+ * @param {*} [options] Override http request option.
3966
+ * @throws {RequiredError}
3967
+ */
3968
+ updateSecret(requestParameters, options) {
3969
+ return localVarFp.updateSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, requestParameters.updateSecretV1Request, options).then((request) => request(axios, basePath));
3970
+ },
3971
+ };
3972
+ };
3973
+ /**
3974
+ * SecretsApi - object-oriented interface
3975
+ * @export
3976
+ * @class SecretsApi
3977
+ * @extends {BaseAPI}
3978
+ */
3979
+ export class SecretsApi extends BaseAPI {
3980
+ /**
3981
+ *
3982
+ * @summary Create a secret
3983
+ * @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
3984
+ * @param {*} [options] Override http request option.
3985
+ * @throws {RequiredError}
3986
+ * @memberof SecretsApi
3987
+ */
3988
+ createSecret(requestParameters, options) {
3989
+ return SecretsApiFp(this.configuration).createSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSecretV1Request, options).then((request) => request(this.axios, this.basePath));
3990
+ }
3991
+ /**
3992
+ *
3993
+ * @summary Delete a secret
3994
+ * @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
3995
+ * @param {*} [options] Override http request option.
3996
+ * @throws {RequiredError}
3997
+ * @memberof SecretsApi
3998
+ */
3999
+ deleteSecret(requestParameters, options) {
4000
+ return SecretsApiFp(this.configuration).deleteSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, options).then((request) => request(this.axios, this.basePath));
4001
+ }
4002
+ /**
4003
+ *
4004
+ * @summary List all secrets
4005
+ * @param {SecretsApiGetSecretsRequest} requestParameters Request parameters.
4006
+ * @param {*} [options] Override http request option.
4007
+ * @throws {RequiredError}
4008
+ * @memberof SecretsApi
4009
+ */
4010
+ getSecrets(requestParameters, options) {
4011
+ return SecretsApiFp(this.configuration).getSecrets(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
4012
+ }
4013
+ /**
4014
+ *
4015
+ * @summary Update a secret
4016
+ * @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
4017
+ * @param {*} [options] Override http request option.
4018
+ * @throws {RequiredError}
4019
+ * @memberof SecretsApi
4020
+ */
4021
+ updateSecret(requestParameters, options) {
4022
+ return SecretsApiFp(this.configuration).updateSecret(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.secretId, requestParameters.updateSecretV1Request, options).then((request) => request(this.axios, this.basePath));
4023
+ }
4024
+ }
4025
+ /**
4026
+ * WhoamiApi - axios parameter creator
4027
+ * @export
4028
+ */
4029
+ export const WhoamiApiAxiosParamCreator = function (configuration) {
4030
+ return {
4031
+ /**
4032
+ *
4033
+ * @param {*} [options] Override http request option.
4034
+ * @throws {RequiredError}
4035
+ */
4036
+ whoami: async (options = {}) => {
4037
+ const localVarPath = `/whoami`;
4038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4040
+ let baseOptions;
4041
+ if (configuration) {
4042
+ baseOptions = configuration.baseOptions;
4043
+ }
4044
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4045
+ const localVarHeaderParameter = {};
4046
+ const localVarQueryParameter = {};
4047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4049
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4050
+ return {
4051
+ url: toPathString(localVarUrlObj),
4052
+ options: localVarRequestOptions,
4053
+ };
4054
+ },
4055
+ };
4056
+ };
4057
+ /**
4058
+ * WhoamiApi - functional programming interface
4059
+ * @export
4060
+ */
4061
+ export const WhoamiApiFp = function (configuration) {
4062
+ const localVarAxiosParamCreator = WhoamiApiAxiosParamCreator(configuration);
4063
+ return {
4064
+ /**
4065
+ *
4066
+ * @param {*} [options] Override http request option.
4067
+ * @throws {RequiredError}
4068
+ */
4069
+ async whoami(options) {
4070
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whoami(options);
4071
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4072
+ const localVarOperationServerBasePath = operationServerMap['WhoamiApi.whoami']?.[localVarOperationServerIndex]?.url;
4073
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4074
+ },
4075
+ };
4076
+ };
4077
+ /**
4078
+ * WhoamiApi - factory interface
4079
+ * @export
4080
+ */
4081
+ export const WhoamiApiFactory = function (configuration, basePath, axios) {
4082
+ const localVarFp = WhoamiApiFp(configuration);
4083
+ return {
4084
+ /**
4085
+ *
4086
+ * @param {*} [options] Override http request option.
4087
+ * @throws {RequiredError}
4088
+ */
4089
+ whoami(options) {
4090
+ return localVarFp.whoami(options).then((request) => request(axios, basePath));
4091
+ },
4092
+ };
4093
+ };
4094
+ /**
4095
+ * WhoamiApi - object-oriented interface
4096
+ * @export
4097
+ * @class WhoamiApi
4098
+ * @extends {BaseAPI}
4099
+ */
4100
+ export class WhoamiApi extends BaseAPI {
4101
+ /**
4102
+ *
4103
+ * @param {*} [options] Override http request option.
4104
+ * @throws {RequiredError}
4105
+ * @memberof WhoamiApi
4106
+ */
4107
+ whoami(options) {
4108
+ return WhoamiApiFp(this.configuration).whoami(options).then((request) => request(this.axios, this.basePath));
4109
+ }
4110
+ }