system-initiative-api-client 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.d.ts +686 -0
- package/dist/cjs/api.js +428 -1
- package/dist/esm/api.d.ts +686 -0
- package/dist/esm/api.js +422 -0
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -16,7 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.WorkspaceManagementApiFactory = exports.WorkspaceManagementApiFp = exports.WorkspaceManagementApiAxiosParamCreator = exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.DebugFuncsApi = exports.DebugFuncsApiFactory = exports.DebugFuncsApiFp = exports.DebugFuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
|
|
20
|
+
exports.WorkspaceManagementApi = void 0;
|
|
20
21
|
const axios_1 = __importDefault(require("axios"));
|
|
21
22
|
// Some imports not used depending on template conditions
|
|
22
23
|
// @ts-ignore
|
|
@@ -2268,12 +2269,235 @@ class ComponentsApi extends base_1.BaseAPI {
|
|
|
2268
2269
|
}
|
|
2269
2270
|
}
|
|
2270
2271
|
exports.ComponentsApi = ComponentsApi;
|
|
2272
|
+
/**
|
|
2273
|
+
* DebugFuncsApi - axios parameter creator
|
|
2274
|
+
* @export
|
|
2275
|
+
*/
|
|
2276
|
+
const DebugFuncsApiAxiosParamCreator = function (configuration) {
|
|
2277
|
+
return {
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @summary Execute a debug function in the context of a component
|
|
2281
|
+
* @param {string} workspaceId Workspace identifier
|
|
2282
|
+
* @param {string} changeSetId Change Set identifier
|
|
2283
|
+
* @param {ExecDebugFuncV1Request} execDebugFuncV1Request
|
|
2284
|
+
* @param {*} [options] Override http request option.
|
|
2285
|
+
* @throws {RequiredError}
|
|
2286
|
+
*/
|
|
2287
|
+
execDebugFunc: async (workspaceId, changeSetId, execDebugFuncV1Request, options = {}) => {
|
|
2288
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2289
|
+
(0, common_1.assertParamExists)('execDebugFunc', 'workspaceId', workspaceId);
|
|
2290
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2291
|
+
(0, common_1.assertParamExists)('execDebugFunc', 'changeSetId', changeSetId);
|
|
2292
|
+
// verify required parameter 'execDebugFuncV1Request' is not null or undefined
|
|
2293
|
+
(0, common_1.assertParamExists)('execDebugFunc', 'execDebugFuncV1Request', execDebugFuncV1Request);
|
|
2294
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/debug-funcs`
|
|
2295
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2296
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
2297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2298
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2299
|
+
let baseOptions;
|
|
2300
|
+
if (configuration) {
|
|
2301
|
+
baseOptions = configuration.baseOptions;
|
|
2302
|
+
}
|
|
2303
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2304
|
+
const localVarHeaderParameter = {};
|
|
2305
|
+
const localVarQueryParameter = {};
|
|
2306
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2307
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2309
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2310
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(execDebugFuncV1Request, localVarRequestOptions, configuration);
|
|
2311
|
+
return {
|
|
2312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2313
|
+
options: localVarRequestOptions,
|
|
2314
|
+
};
|
|
2315
|
+
},
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @summary Get debug funcs job state details
|
|
2319
|
+
* @param {string} workspaceId Workspace identifier
|
|
2320
|
+
* @param {string} changeSetId Change Set identifier
|
|
2321
|
+
* @param {string} debugFuncJobStateId Debug Func Job identifier
|
|
2322
|
+
* @param {*} [options] Override http request option.
|
|
2323
|
+
* @throws {RequiredError}
|
|
2324
|
+
*/
|
|
2325
|
+
getDebugFuncState: async (workspaceId, changeSetId, debugFuncJobStateId, options = {}) => {
|
|
2326
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2327
|
+
(0, common_1.assertParamExists)('getDebugFuncState', 'workspaceId', workspaceId);
|
|
2328
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2329
|
+
(0, common_1.assertParamExists)('getDebugFuncState', 'changeSetId', changeSetId);
|
|
2330
|
+
// verify required parameter 'debugFuncJobStateId' is not null or undefined
|
|
2331
|
+
(0, common_1.assertParamExists)('getDebugFuncState', 'debugFuncJobStateId', debugFuncJobStateId);
|
|
2332
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/debug-funcs/{debug_func_job_state_id}`
|
|
2333
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2334
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2335
|
+
.replace(`{${"debug_func_job_state_id"}}`, encodeURIComponent(String(debugFuncJobStateId)));
|
|
2336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2338
|
+
let baseOptions;
|
|
2339
|
+
if (configuration) {
|
|
2340
|
+
baseOptions = configuration.baseOptions;
|
|
2341
|
+
}
|
|
2342
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2343
|
+
const localVarHeaderParameter = {};
|
|
2344
|
+
const localVarQueryParameter = {};
|
|
2345
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2347
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2348
|
+
return {
|
|
2349
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2350
|
+
options: localVarRequestOptions,
|
|
2351
|
+
};
|
|
2352
|
+
},
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
exports.DebugFuncsApiAxiosParamCreator = DebugFuncsApiAxiosParamCreator;
|
|
2356
|
+
/**
|
|
2357
|
+
* DebugFuncsApi - functional programming interface
|
|
2358
|
+
* @export
|
|
2359
|
+
*/
|
|
2360
|
+
const DebugFuncsApiFp = function (configuration) {
|
|
2361
|
+
const localVarAxiosParamCreator = (0, exports.DebugFuncsApiAxiosParamCreator)(configuration);
|
|
2362
|
+
return {
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Execute a debug function in the context of a component
|
|
2366
|
+
* @param {string} workspaceId Workspace identifier
|
|
2367
|
+
* @param {string} changeSetId Change Set identifier
|
|
2368
|
+
* @param {ExecDebugFuncV1Request} execDebugFuncV1Request
|
|
2369
|
+
* @param {*} [options] Override http request option.
|
|
2370
|
+
* @throws {RequiredError}
|
|
2371
|
+
*/
|
|
2372
|
+
async execDebugFunc(workspaceId, changeSetId, execDebugFuncV1Request, options) {
|
|
2373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.execDebugFunc(workspaceId, changeSetId, execDebugFuncV1Request, options);
|
|
2374
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2375
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DebugFuncsApi.execDebugFunc']?.[localVarOperationServerIndex]?.url;
|
|
2376
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2377
|
+
},
|
|
2378
|
+
/**
|
|
2379
|
+
*
|
|
2380
|
+
* @summary Get debug funcs job state details
|
|
2381
|
+
* @param {string} workspaceId Workspace identifier
|
|
2382
|
+
* @param {string} changeSetId Change Set identifier
|
|
2383
|
+
* @param {string} debugFuncJobStateId Debug Func Job identifier
|
|
2384
|
+
* @param {*} [options] Override http request option.
|
|
2385
|
+
* @throws {RequiredError}
|
|
2386
|
+
*/
|
|
2387
|
+
async getDebugFuncState(workspaceId, changeSetId, debugFuncJobStateId, options) {
|
|
2388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDebugFuncState(workspaceId, changeSetId, debugFuncJobStateId, options);
|
|
2389
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2390
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DebugFuncsApi.getDebugFuncState']?.[localVarOperationServerIndex]?.url;
|
|
2391
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2392
|
+
},
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
exports.DebugFuncsApiFp = DebugFuncsApiFp;
|
|
2396
|
+
/**
|
|
2397
|
+
* DebugFuncsApi - factory interface
|
|
2398
|
+
* @export
|
|
2399
|
+
*/
|
|
2400
|
+
const DebugFuncsApiFactory = function (configuration, basePath, axios) {
|
|
2401
|
+
const localVarFp = (0, exports.DebugFuncsApiFp)(configuration);
|
|
2402
|
+
return {
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @summary Execute a debug function in the context of a component
|
|
2406
|
+
* @param {DebugFuncsApiExecDebugFuncRequest} requestParameters Request parameters.
|
|
2407
|
+
* @param {*} [options] Override http request option.
|
|
2408
|
+
* @throws {RequiredError}
|
|
2409
|
+
*/
|
|
2410
|
+
execDebugFunc(requestParameters, options) {
|
|
2411
|
+
return localVarFp.execDebugFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.execDebugFuncV1Request, options).then((request) => request(axios, basePath));
|
|
2412
|
+
},
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @summary Get debug funcs job state details
|
|
2416
|
+
* @param {DebugFuncsApiGetDebugFuncStateRequest} requestParameters Request parameters.
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
*/
|
|
2420
|
+
getDebugFuncState(requestParameters, options) {
|
|
2421
|
+
return localVarFp.getDebugFuncState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.debugFuncJobStateId, options).then((request) => request(axios, basePath));
|
|
2422
|
+
},
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
exports.DebugFuncsApiFactory = DebugFuncsApiFactory;
|
|
2426
|
+
/**
|
|
2427
|
+
* DebugFuncsApi - object-oriented interface
|
|
2428
|
+
* @export
|
|
2429
|
+
* @class DebugFuncsApi
|
|
2430
|
+
* @extends {BaseAPI}
|
|
2431
|
+
*/
|
|
2432
|
+
class DebugFuncsApi extends base_1.BaseAPI {
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @summary Execute a debug function in the context of a component
|
|
2436
|
+
* @param {DebugFuncsApiExecDebugFuncRequest} requestParameters Request parameters.
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
* @memberof DebugFuncsApi
|
|
2440
|
+
*/
|
|
2441
|
+
execDebugFunc(requestParameters, options) {
|
|
2442
|
+
return (0, exports.DebugFuncsApiFp)(this.configuration).execDebugFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.execDebugFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @summary Get debug funcs job state details
|
|
2447
|
+
* @param {DebugFuncsApiGetDebugFuncStateRequest} requestParameters Request parameters.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
* @memberof DebugFuncsApi
|
|
2451
|
+
*/
|
|
2452
|
+
getDebugFuncState(requestParameters, options) {
|
|
2453
|
+
return (0, exports.DebugFuncsApiFp)(this.configuration).getDebugFuncState(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.debugFuncJobStateId, options).then((request) => request(this.axios, this.basePath));
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
exports.DebugFuncsApi = DebugFuncsApi;
|
|
2271
2457
|
/**
|
|
2272
2458
|
* FuncsApi - axios parameter creator
|
|
2273
2459
|
* @export
|
|
2274
2460
|
*/
|
|
2275
2461
|
const FuncsApiAxiosParamCreator = function (configuration) {
|
|
2276
2462
|
return {
|
|
2463
|
+
/**
|
|
2464
|
+
*
|
|
2465
|
+
* @summary Create a transformation function
|
|
2466
|
+
* @param {string} workspaceId Workspace identifier
|
|
2467
|
+
* @param {string} changeSetId Change Set identifier
|
|
2468
|
+
* @param {CreateTransformationFuncV1Request} createTransformationFuncV1Request
|
|
2469
|
+
* @param {*} [options] Override http request option.
|
|
2470
|
+
* @throws {RequiredError}
|
|
2471
|
+
*/
|
|
2472
|
+
createTransformation: async (workspaceId, changeSetId, createTransformationFuncV1Request, options = {}) => {
|
|
2473
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2474
|
+
(0, common_1.assertParamExists)('createTransformation', 'workspaceId', workspaceId);
|
|
2475
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2476
|
+
(0, common_1.assertParamExists)('createTransformation', 'changeSetId', changeSetId);
|
|
2477
|
+
// verify required parameter 'createTransformationFuncV1Request' is not null or undefined
|
|
2478
|
+
(0, common_1.assertParamExists)('createTransformation', 'createTransformationFuncV1Request', createTransformationFuncV1Request);
|
|
2479
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/transformation`
|
|
2480
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2481
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
2482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2483
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2484
|
+
let baseOptions;
|
|
2485
|
+
if (configuration) {
|
|
2486
|
+
baseOptions = configuration.baseOptions;
|
|
2487
|
+
}
|
|
2488
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2489
|
+
const localVarHeaderParameter = {};
|
|
2490
|
+
const localVarQueryParameter = {};
|
|
2491
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2494
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2495
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTransformationFuncV1Request, localVarRequestOptions, configuration);
|
|
2496
|
+
return {
|
|
2497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2498
|
+
options: localVarRequestOptions,
|
|
2499
|
+
};
|
|
2500
|
+
},
|
|
2277
2501
|
/**
|
|
2278
2502
|
*
|
|
2279
2503
|
* @summary Get function details
|
|
@@ -2442,6 +2666,21 @@ exports.FuncsApiAxiosParamCreator = FuncsApiAxiosParamCreator;
|
|
|
2442
2666
|
const FuncsApiFp = function (configuration) {
|
|
2443
2667
|
const localVarAxiosParamCreator = (0, exports.FuncsApiAxiosParamCreator)(configuration);
|
|
2444
2668
|
return {
|
|
2669
|
+
/**
|
|
2670
|
+
*
|
|
2671
|
+
* @summary Create a transformation function
|
|
2672
|
+
* @param {string} workspaceId Workspace identifier
|
|
2673
|
+
* @param {string} changeSetId Change Set identifier
|
|
2674
|
+
* @param {CreateTransformationFuncV1Request} createTransformationFuncV1Request
|
|
2675
|
+
* @param {*} [options] Override http request option.
|
|
2676
|
+
* @throws {RequiredError}
|
|
2677
|
+
*/
|
|
2678
|
+
async createTransformation(workspaceId, changeSetId, createTransformationFuncV1Request, options) {
|
|
2679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTransformation(workspaceId, changeSetId, createTransformationFuncV1Request, options);
|
|
2680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2681
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.createTransformation']?.[localVarOperationServerIndex]?.url;
|
|
2682
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2683
|
+
},
|
|
2445
2684
|
/**
|
|
2446
2685
|
*
|
|
2447
2686
|
* @summary Get function details
|
|
@@ -2514,6 +2753,16 @@ exports.FuncsApiFp = FuncsApiFp;
|
|
|
2514
2753
|
const FuncsApiFactory = function (configuration, basePath, axios) {
|
|
2515
2754
|
const localVarFp = (0, exports.FuncsApiFp)(configuration);
|
|
2516
2755
|
return {
|
|
2756
|
+
/**
|
|
2757
|
+
*
|
|
2758
|
+
* @summary Create a transformation function
|
|
2759
|
+
* @param {FuncsApiCreateTransformationRequest} requestParameters Request parameters.
|
|
2760
|
+
* @param {*} [options] Override http request option.
|
|
2761
|
+
* @throws {RequiredError}
|
|
2762
|
+
*/
|
|
2763
|
+
createTransformation(requestParameters, options) {
|
|
2764
|
+
return localVarFp.createTransformation(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createTransformationFuncV1Request, options).then((request) => request(axios, basePath));
|
|
2765
|
+
},
|
|
2517
2766
|
/**
|
|
2518
2767
|
*
|
|
2519
2768
|
* @summary Get function details
|
|
@@ -2564,6 +2813,17 @@ exports.FuncsApiFactory = FuncsApiFactory;
|
|
|
2564
2813
|
* @extends {BaseAPI}
|
|
2565
2814
|
*/
|
|
2566
2815
|
class FuncsApi extends base_1.BaseAPI {
|
|
2816
|
+
/**
|
|
2817
|
+
*
|
|
2818
|
+
* @summary Create a transformation function
|
|
2819
|
+
* @param {FuncsApiCreateTransformationRequest} requestParameters Request parameters.
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
* @memberof FuncsApi
|
|
2823
|
+
*/
|
|
2824
|
+
createTransformation(requestParameters, options) {
|
|
2825
|
+
return (0, exports.FuncsApiFp)(this.configuration).createTransformation(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createTransformationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2826
|
+
}
|
|
2567
2827
|
/**
|
|
2568
2828
|
*
|
|
2569
2829
|
* @summary Get function details
|
|
@@ -2901,6 +3161,52 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2901
3161
|
options: localVarRequestOptions,
|
|
2902
3162
|
};
|
|
2903
3163
|
},
|
|
3164
|
+
/**
|
|
3165
|
+
*
|
|
3166
|
+
* @summary Create an attribute function and attach to a schema variant
|
|
3167
|
+
* @param {string} workspaceId Workspace identifier
|
|
3168
|
+
* @param {string} changeSetId Change Set identifier
|
|
3169
|
+
* @param {string} schemaId Schema identifier
|
|
3170
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3171
|
+
* @param {CreateVariantAttributeFuncV1Request} createVariantAttributeFuncV1Request
|
|
3172
|
+
* @param {*} [options] Override http request option.
|
|
3173
|
+
* @throws {RequiredError}
|
|
3174
|
+
*/
|
|
3175
|
+
createVariantAttribute: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAttributeFuncV1Request, options = {}) => {
|
|
3176
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3177
|
+
(0, common_1.assertParamExists)('createVariantAttribute', 'workspaceId', workspaceId);
|
|
3178
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3179
|
+
(0, common_1.assertParamExists)('createVariantAttribute', 'changeSetId', changeSetId);
|
|
3180
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3181
|
+
(0, common_1.assertParamExists)('createVariantAttribute', 'schemaId', schemaId);
|
|
3182
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3183
|
+
(0, common_1.assertParamExists)('createVariantAttribute', 'schemaVariantId', schemaVariantId);
|
|
3184
|
+
// verify required parameter 'createVariantAttributeFuncV1Request' is not null or undefined
|
|
3185
|
+
(0, common_1.assertParamExists)('createVariantAttribute', 'createVariantAttributeFuncV1Request', createVariantAttributeFuncV1Request);
|
|
3186
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/attribute`
|
|
3187
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3188
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3189
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3190
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
3191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3193
|
+
let baseOptions;
|
|
3194
|
+
if (configuration) {
|
|
3195
|
+
baseOptions = configuration.baseOptions;
|
|
3196
|
+
}
|
|
3197
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3198
|
+
const localVarHeaderParameter = {};
|
|
3199
|
+
const localVarQueryParameter = {};
|
|
3200
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3201
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3203
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3204
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantAttributeFuncV1Request, localVarRequestOptions, configuration);
|
|
3205
|
+
return {
|
|
3206
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3207
|
+
options: localVarRequestOptions,
|
|
3208
|
+
};
|
|
3209
|
+
},
|
|
2904
3210
|
/**
|
|
2905
3211
|
*
|
|
2906
3212
|
* @summary Create an authentication function and attach to a schema variant
|
|
@@ -3130,6 +3436,51 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
3130
3436
|
options: localVarRequestOptions,
|
|
3131
3437
|
};
|
|
3132
3438
|
},
|
|
3439
|
+
/**
|
|
3440
|
+
*
|
|
3441
|
+
* @summary Delete the binding between an attribute func and the schema variant
|
|
3442
|
+
* @param {string} workspaceId Workspace identifier
|
|
3443
|
+
* @param {string} changeSetId Change Set identifier
|
|
3444
|
+
* @param {string} schemaId Schema identifier
|
|
3445
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3446
|
+
* @param {string} funcId Func identifier
|
|
3447
|
+
* @param {*} [options] Override http request option.
|
|
3448
|
+
* @throws {RequiredError}
|
|
3449
|
+
*/
|
|
3450
|
+
detachAttributeFuncBinding: async (workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options = {}) => {
|
|
3451
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3452
|
+
(0, common_1.assertParamExists)('detachAttributeFuncBinding', 'workspaceId', workspaceId);
|
|
3453
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3454
|
+
(0, common_1.assertParamExists)('detachAttributeFuncBinding', 'changeSetId', changeSetId);
|
|
3455
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3456
|
+
(0, common_1.assertParamExists)('detachAttributeFuncBinding', 'schemaId', schemaId);
|
|
3457
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3458
|
+
(0, common_1.assertParamExists)('detachAttributeFuncBinding', 'schemaVariantId', schemaVariantId);
|
|
3459
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
3460
|
+
(0, common_1.assertParamExists)('detachAttributeFuncBinding', 'funcId', funcId);
|
|
3461
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/attribute/{func_id}`
|
|
3462
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3463
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3464
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3465
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)))
|
|
3466
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
3467
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3468
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3469
|
+
let baseOptions;
|
|
3470
|
+
if (configuration) {
|
|
3471
|
+
baseOptions = configuration.baseOptions;
|
|
3472
|
+
}
|
|
3473
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3474
|
+
const localVarHeaderParameter = {};
|
|
3475
|
+
const localVarQueryParameter = {};
|
|
3476
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3478
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3479
|
+
return {
|
|
3480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3481
|
+
options: localVarRequestOptions,
|
|
3482
|
+
};
|
|
3483
|
+
},
|
|
3133
3484
|
/**
|
|
3134
3485
|
*
|
|
3135
3486
|
* @summary Delete the binding between an authentication func and the schema variant
|
|
@@ -3707,6 +4058,23 @@ const SchemasApiFp = function (configuration) {
|
|
|
3707
4058
|
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantAction']?.[localVarOperationServerIndex]?.url;
|
|
3708
4059
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3709
4060
|
},
|
|
4061
|
+
/**
|
|
4062
|
+
*
|
|
4063
|
+
* @summary Create an attribute function and attach to a schema variant
|
|
4064
|
+
* @param {string} workspaceId Workspace identifier
|
|
4065
|
+
* @param {string} changeSetId Change Set identifier
|
|
4066
|
+
* @param {string} schemaId Schema identifier
|
|
4067
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
4068
|
+
* @param {CreateVariantAttributeFuncV1Request} createVariantAttributeFuncV1Request
|
|
4069
|
+
* @param {*} [options] Override http request option.
|
|
4070
|
+
* @throws {RequiredError}
|
|
4071
|
+
*/
|
|
4072
|
+
async createVariantAttribute(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAttributeFuncV1Request, options) {
|
|
4073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantAttribute(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAttributeFuncV1Request, options);
|
|
4074
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4075
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantAttribute']?.[localVarOperationServerIndex]?.url;
|
|
4076
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4077
|
+
},
|
|
3710
4078
|
/**
|
|
3711
4079
|
*
|
|
3712
4080
|
* @summary Create an authentication function and attach to a schema variant
|
|
@@ -3792,6 +4160,23 @@ const SchemasApiFp = function (configuration) {
|
|
|
3792
4160
|
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachActionFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
3793
4161
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3794
4162
|
},
|
|
4163
|
+
/**
|
|
4164
|
+
*
|
|
4165
|
+
* @summary Delete the binding between an attribute func and the schema variant
|
|
4166
|
+
* @param {string} workspaceId Workspace identifier
|
|
4167
|
+
* @param {string} changeSetId Change Set identifier
|
|
4168
|
+
* @param {string} schemaId Schema identifier
|
|
4169
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
4170
|
+
* @param {string} funcId Func identifier
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
async detachAttributeFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options) {
|
|
4175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachAttributeFuncBinding(workspaceId, changeSetId, schemaId, schemaVariantId, funcId, options);
|
|
4176
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4177
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.detachAttributeFuncBinding']?.[localVarOperationServerIndex]?.url;
|
|
4178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4179
|
+
},
|
|
3795
4180
|
/**
|
|
3796
4181
|
*
|
|
3797
4182
|
* @summary Delete the binding between an authentication func and the schema variant
|
|
@@ -4030,6 +4415,16 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
4030
4415
|
createVariantAction(requestParameters, options) {
|
|
4031
4416
|
return localVarFp.createVariantAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantActionFuncV1Request, options).then((request) => request(axios, basePath));
|
|
4032
4417
|
},
|
|
4418
|
+
/**
|
|
4419
|
+
*
|
|
4420
|
+
* @summary Create an attribute function and attach to a schema variant
|
|
4421
|
+
* @param {SchemasApiCreateVariantAttributeRequest} requestParameters Request parameters.
|
|
4422
|
+
* @param {*} [options] Override http request option.
|
|
4423
|
+
* @throws {RequiredError}
|
|
4424
|
+
*/
|
|
4425
|
+
createVariantAttribute(requestParameters, options) {
|
|
4426
|
+
return localVarFp.createVariantAttribute(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAttributeFuncV1Request, options).then((request) => request(axios, basePath));
|
|
4427
|
+
},
|
|
4033
4428
|
/**
|
|
4034
4429
|
*
|
|
4035
4430
|
* @summary Create an authentication function and attach to a schema variant
|
|
@@ -4080,6 +4475,16 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
4080
4475
|
detachActionFuncBinding(requestParameters, options) {
|
|
4081
4476
|
return localVarFp.detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
4082
4477
|
},
|
|
4478
|
+
/**
|
|
4479
|
+
*
|
|
4480
|
+
* @summary Delete the binding between an attribute func and the schema variant
|
|
4481
|
+
* @param {SchemasApiDetachAttributeFuncBindingRequest} requestParameters Request parameters.
|
|
4482
|
+
* @param {*} [options] Override http request option.
|
|
4483
|
+
* @throws {RequiredError}
|
|
4484
|
+
*/
|
|
4485
|
+
detachAttributeFuncBinding(requestParameters, options) {
|
|
4486
|
+
return localVarFp.detachAttributeFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(axios, basePath));
|
|
4487
|
+
},
|
|
4083
4488
|
/**
|
|
4084
4489
|
*
|
|
4085
4490
|
* @summary Delete the binding between an authentication func and the schema variant
|
|
@@ -4242,6 +4647,17 @@ class SchemasApi extends base_1.BaseAPI {
|
|
|
4242
4647
|
createVariantAction(requestParameters, options) {
|
|
4243
4648
|
return (0, exports.SchemasApiFp)(this.configuration).createVariantAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantActionFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
4244
4649
|
}
|
|
4650
|
+
/**
|
|
4651
|
+
*
|
|
4652
|
+
* @summary Create an attribute function and attach to a schema variant
|
|
4653
|
+
* @param {SchemasApiCreateVariantAttributeRequest} requestParameters Request parameters.
|
|
4654
|
+
* @param {*} [options] Override http request option.
|
|
4655
|
+
* @throws {RequiredError}
|
|
4656
|
+
* @memberof SchemasApi
|
|
4657
|
+
*/
|
|
4658
|
+
createVariantAttribute(requestParameters, options) {
|
|
4659
|
+
return (0, exports.SchemasApiFp)(this.configuration).createVariantAttribute(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAttributeFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
4660
|
+
}
|
|
4245
4661
|
/**
|
|
4246
4662
|
*
|
|
4247
4663
|
* @summary Create an authentication function and attach to a schema variant
|
|
@@ -4297,6 +4713,17 @@ class SchemasApi extends base_1.BaseAPI {
|
|
|
4297
4713
|
detachActionFuncBinding(requestParameters, options) {
|
|
4298
4714
|
return (0, exports.SchemasApiFp)(this.configuration).detachActionFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4299
4715
|
}
|
|
4716
|
+
/**
|
|
4717
|
+
*
|
|
4718
|
+
* @summary Delete the binding between an attribute func and the schema variant
|
|
4719
|
+
* @param {SchemasApiDetachAttributeFuncBindingRequest} requestParameters Request parameters.
|
|
4720
|
+
* @param {*} [options] Override http request option.
|
|
4721
|
+
* @throws {RequiredError}
|
|
4722
|
+
* @memberof SchemasApi
|
|
4723
|
+
*/
|
|
4724
|
+
detachAttributeFuncBinding(requestParameters, options) {
|
|
4725
|
+
return (0, exports.SchemasApiFp)(this.configuration).detachAttributeFuncBinding(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.funcId, options).then((request) => request(this.axios, this.basePath));
|
|
4726
|
+
}
|
|
4300
4727
|
/**
|
|
4301
4728
|
*
|
|
4302
4729
|
* @summary Delete the binding between an authentication func and the schema variant
|