system-initiative-api-client 1.1.7 → 1.1.8

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