system-initiative-api-client 1.0.8 → 1.1.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 +1276 -391
- package/dist/cjs/api.js +832 -88
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -16,7 +16,7 @@ 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.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.
|
|
19
|
+
exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.CreateVariantQualificationFuncV1RequestLocationsEnum = exports.CreateVariantCodegenFuncV1RequestLocationsEnum = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,15 +24,29 @@ const common_1 = require("./common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("./base");
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
* @export
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
var CreateVariantCodegenFuncV1RequestLocationsEnum;
|
|
31
|
+
(function (CreateVariantCodegenFuncV1RequestLocationsEnum) {
|
|
32
|
+
CreateVariantCodegenFuncV1RequestLocationsEnum["CODE"] = "code";
|
|
33
|
+
CreateVariantCodegenFuncV1RequestLocationsEnum["DELETED_AT"] = "deletedAt";
|
|
34
|
+
CreateVariantCodegenFuncV1RequestLocationsEnum["DOMAIN"] = "domain";
|
|
35
|
+
CreateVariantCodegenFuncV1RequestLocationsEnum["RESOURCE"] = "resource";
|
|
36
|
+
CreateVariantCodegenFuncV1RequestLocationsEnum["SECRETS"] = "secrets";
|
|
37
|
+
})(CreateVariantCodegenFuncV1RequestLocationsEnum || (exports.CreateVariantCodegenFuncV1RequestLocationsEnum = CreateVariantCodegenFuncV1RequestLocationsEnum = {}));
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
var CreateVariantQualificationFuncV1RequestLocationsEnum;
|
|
43
|
+
(function (CreateVariantQualificationFuncV1RequestLocationsEnum) {
|
|
44
|
+
CreateVariantQualificationFuncV1RequestLocationsEnum["CODE"] = "code";
|
|
45
|
+
CreateVariantQualificationFuncV1RequestLocationsEnum["DELETED_AT"] = "deletedAt";
|
|
46
|
+
CreateVariantQualificationFuncV1RequestLocationsEnum["DOMAIN"] = "domain";
|
|
47
|
+
CreateVariantQualificationFuncV1RequestLocationsEnum["RESOURCE"] = "resource";
|
|
48
|
+
CreateVariantQualificationFuncV1RequestLocationsEnum["SECRETS"] = "secrets";
|
|
49
|
+
})(CreateVariantQualificationFuncV1RequestLocationsEnum || (exports.CreateVariantQualificationFuncV1RequestLocationsEnum = CreateVariantQualificationFuncV1RequestLocationsEnum = {}));
|
|
36
50
|
/**
|
|
37
51
|
* ActionsApi - axios parameter creator
|
|
38
52
|
* @export
|
|
@@ -2182,6 +2196,48 @@ const FuncsApiAxiosParamCreator = function (configuration) {
|
|
|
2182
2196
|
options: localVarRequestOptions,
|
|
2183
2197
|
};
|
|
2184
2198
|
},
|
|
2199
|
+
/**
|
|
2200
|
+
*
|
|
2201
|
+
* @summary Update a func
|
|
2202
|
+
* @param {string} workspaceId Workspace identifier
|
|
2203
|
+
* @param {string} changeSetId Change Set identifier
|
|
2204
|
+
* @param {string} funcId Func identifier
|
|
2205
|
+
* @param {UpdateFuncV1Request} updateFuncV1Request
|
|
2206
|
+
* @param {*} [options] Override http request option.
|
|
2207
|
+
* @throws {RequiredError}
|
|
2208
|
+
*/
|
|
2209
|
+
updateFunc: async (workspaceId, changeSetId, funcId, updateFuncV1Request, options = {}) => {
|
|
2210
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2211
|
+
(0, common_1.assertParamExists)('updateFunc', 'workspaceId', workspaceId);
|
|
2212
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2213
|
+
(0, common_1.assertParamExists)('updateFunc', 'changeSetId', changeSetId);
|
|
2214
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
2215
|
+
(0, common_1.assertParamExists)('updateFunc', 'funcId', funcId);
|
|
2216
|
+
// verify required parameter 'updateFuncV1Request' is not null or undefined
|
|
2217
|
+
(0, common_1.assertParamExists)('updateFunc', 'updateFuncV1Request', updateFuncV1Request);
|
|
2218
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}`
|
|
2219
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2220
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2221
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
2222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2224
|
+
let baseOptions;
|
|
2225
|
+
if (configuration) {
|
|
2226
|
+
baseOptions = configuration.baseOptions;
|
|
2227
|
+
}
|
|
2228
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2229
|
+
const localVarHeaderParameter = {};
|
|
2230
|
+
const localVarQueryParameter = {};
|
|
2231
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2235
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFuncV1Request, localVarRequestOptions, configuration);
|
|
2236
|
+
return {
|
|
2237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2238
|
+
options: localVarRequestOptions,
|
|
2239
|
+
};
|
|
2240
|
+
},
|
|
2185
2241
|
};
|
|
2186
2242
|
};
|
|
2187
2243
|
exports.FuncsApiAxiosParamCreator = FuncsApiAxiosParamCreator;
|
|
@@ -2222,6 +2278,22 @@ const FuncsApiFp = function (configuration) {
|
|
|
2222
2278
|
const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.getFuncRun']?.[localVarOperationServerIndex]?.url;
|
|
2223
2279
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2224
2280
|
},
|
|
2281
|
+
/**
|
|
2282
|
+
*
|
|
2283
|
+
* @summary Update a func
|
|
2284
|
+
* @param {string} workspaceId Workspace identifier
|
|
2285
|
+
* @param {string} changeSetId Change Set identifier
|
|
2286
|
+
* @param {string} funcId Func identifier
|
|
2287
|
+
* @param {UpdateFuncV1Request} updateFuncV1Request
|
|
2288
|
+
* @param {*} [options] Override http request option.
|
|
2289
|
+
* @throws {RequiredError}
|
|
2290
|
+
*/
|
|
2291
|
+
async updateFunc(workspaceId, changeSetId, funcId, updateFuncV1Request, options) {
|
|
2292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFunc(workspaceId, changeSetId, funcId, updateFuncV1Request, options);
|
|
2293
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2294
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.updateFunc']?.[localVarOperationServerIndex]?.url;
|
|
2295
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2296
|
+
},
|
|
2225
2297
|
};
|
|
2226
2298
|
};
|
|
2227
2299
|
exports.FuncsApiFp = FuncsApiFp;
|
|
@@ -2252,6 +2324,16 @@ const FuncsApiFactory = function (configuration, basePath, axios) {
|
|
|
2252
2324
|
getFuncRun(requestParameters, options) {
|
|
2253
2325
|
return localVarFp.getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(axios, basePath));
|
|
2254
2326
|
},
|
|
2327
|
+
/**
|
|
2328
|
+
*
|
|
2329
|
+
* @summary Update a func
|
|
2330
|
+
* @param {FuncsApiUpdateFuncRequest} requestParameters Request parameters.
|
|
2331
|
+
* @param {*} [options] Override http request option.
|
|
2332
|
+
* @throws {RequiredError}
|
|
2333
|
+
*/
|
|
2334
|
+
updateFunc(requestParameters, options) {
|
|
2335
|
+
return localVarFp.updateFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.updateFuncV1Request, options).then((request) => request(axios, basePath));
|
|
2336
|
+
},
|
|
2255
2337
|
};
|
|
2256
2338
|
};
|
|
2257
2339
|
exports.FuncsApiFactory = FuncsApiFactory;
|
|
@@ -2284,6 +2366,17 @@ class FuncsApi extends base_1.BaseAPI {
|
|
|
2284
2366
|
getFuncRun(requestParameters, options) {
|
|
2285
2367
|
return (0, exports.FuncsApiFp)(this.configuration).getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(this.axios, this.basePath));
|
|
2286
2368
|
}
|
|
2369
|
+
/**
|
|
2370
|
+
*
|
|
2371
|
+
* @summary Update a func
|
|
2372
|
+
* @param {FuncsApiUpdateFuncRequest} requestParameters Request parameters.
|
|
2373
|
+
* @param {*} [options] Override http request option.
|
|
2374
|
+
* @throws {RequiredError}
|
|
2375
|
+
* @memberof FuncsApi
|
|
2376
|
+
*/
|
|
2377
|
+
updateFunc(requestParameters, options) {
|
|
2378
|
+
return (0, exports.FuncsApiFp)(this.configuration).updateFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.updateFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2379
|
+
}
|
|
2287
2380
|
}
|
|
2288
2381
|
exports.FuncsApi = FuncsApi;
|
|
2289
2382
|
/**
|
|
@@ -2495,20 +2588,21 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2495
2588
|
return {
|
|
2496
2589
|
/**
|
|
2497
2590
|
*
|
|
2498
|
-
* @summary
|
|
2591
|
+
* @summary Create a schema and it\'s default variant
|
|
2499
2592
|
* @param {string} workspaceId Workspace identifier
|
|
2500
2593
|
* @param {string} changeSetId Change Set identifier
|
|
2501
|
-
* @param {
|
|
2502
|
-
* @param {string | null} [schemaId]
|
|
2594
|
+
* @param {CreateSchemaV1Request} createSchemaV1Request
|
|
2503
2595
|
* @param {*} [options] Override http request option.
|
|
2504
2596
|
* @throws {RequiredError}
|
|
2505
2597
|
*/
|
|
2506
|
-
|
|
2598
|
+
createSchema: async (workspaceId, changeSetId, createSchemaV1Request, options = {}) => {
|
|
2507
2599
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
2508
|
-
(0, common_1.assertParamExists)('
|
|
2600
|
+
(0, common_1.assertParamExists)('createSchema', 'workspaceId', workspaceId);
|
|
2509
2601
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
2510
|
-
(0, common_1.assertParamExists)('
|
|
2511
|
-
|
|
2602
|
+
(0, common_1.assertParamExists)('createSchema', 'changeSetId', changeSetId);
|
|
2603
|
+
// verify required parameter 'createSchemaV1Request' is not null or undefined
|
|
2604
|
+
(0, common_1.assertParamExists)('createSchema', 'createSchemaV1Request', createSchemaV1Request);
|
|
2605
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas`
|
|
2512
2606
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2513
2607
|
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
2514
2608
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2517,18 +2611,14 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2517
2611
|
if (configuration) {
|
|
2518
2612
|
baseOptions = configuration.baseOptions;
|
|
2519
2613
|
}
|
|
2520
|
-
const localVarRequestOptions = { method: '
|
|
2614
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2521
2615
|
const localVarHeaderParameter = {};
|
|
2522
2616
|
const localVarQueryParameter = {};
|
|
2523
|
-
|
|
2524
|
-
localVarQueryParameter['schema'] = schema;
|
|
2525
|
-
}
|
|
2526
|
-
if (schemaId !== undefined) {
|
|
2527
|
-
localVarQueryParameter['schemaId'] = schemaId;
|
|
2528
|
-
}
|
|
2617
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2529
2618
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2530
2619
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2531
2620
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2621
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSchemaV1Request, localVarRequestOptions, configuration);
|
|
2532
2622
|
return {
|
|
2533
2623
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2534
2624
|
options: localVarRequestOptions,
|
|
@@ -2536,36 +2626,45 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2536
2626
|
},
|
|
2537
2627
|
/**
|
|
2538
2628
|
*
|
|
2539
|
-
* @summary
|
|
2629
|
+
* @summary Create an action function and attach to a schema variant
|
|
2540
2630
|
* @param {string} workspaceId Workspace identifier
|
|
2541
2631
|
* @param {string} changeSetId Change Set identifier
|
|
2542
2632
|
* @param {string} schemaId Schema identifier
|
|
2633
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2634
|
+
* @param {CreateVariantActionFuncV1Request} createVariantActionFuncV1Request
|
|
2543
2635
|
* @param {*} [options] Override http request option.
|
|
2544
2636
|
* @throws {RequiredError}
|
|
2545
2637
|
*/
|
|
2546
|
-
|
|
2638
|
+
createVariantAction: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options = {}) => {
|
|
2547
2639
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
2548
|
-
(0, common_1.assertParamExists)('
|
|
2640
|
+
(0, common_1.assertParamExists)('createVariantAction', 'workspaceId', workspaceId);
|
|
2549
2641
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
2550
|
-
(0, common_1.assertParamExists)('
|
|
2642
|
+
(0, common_1.assertParamExists)('createVariantAction', 'changeSetId', changeSetId);
|
|
2551
2643
|
// verify required parameter 'schemaId' is not null or undefined
|
|
2552
|
-
(0, common_1.assertParamExists)('
|
|
2553
|
-
|
|
2644
|
+
(0, common_1.assertParamExists)('createVariantAction', 'schemaId', schemaId);
|
|
2645
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2646
|
+
(0, common_1.assertParamExists)('createVariantAction', 'schemaVariantId', schemaVariantId);
|
|
2647
|
+
// verify required parameter 'createVariantActionFuncV1Request' is not null or undefined
|
|
2648
|
+
(0, common_1.assertParamExists)('createVariantAction', 'createVariantActionFuncV1Request', createVariantActionFuncV1Request);
|
|
2649
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/action`
|
|
2554
2650
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2555
2651
|
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2556
|
-
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2652
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2653
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
2557
2654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2558
2655
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2559
2656
|
let baseOptions;
|
|
2560
2657
|
if (configuration) {
|
|
2561
2658
|
baseOptions = configuration.baseOptions;
|
|
2562
2659
|
}
|
|
2563
|
-
const localVarRequestOptions = { method: '
|
|
2660
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2564
2661
|
const localVarHeaderParameter = {};
|
|
2565
2662
|
const localVarQueryParameter = {};
|
|
2663
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2566
2664
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2567
2665
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2568
2666
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2667
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantActionFuncV1Request, localVarRequestOptions, configuration);
|
|
2569
2668
|
return {
|
|
2570
2669
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2571
2670
|
options: localVarRequestOptions,
|
|
@@ -2573,36 +2672,45 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2573
2672
|
},
|
|
2574
2673
|
/**
|
|
2575
2674
|
*
|
|
2576
|
-
* @summary
|
|
2675
|
+
* @summary Create an authentication function and attach to a schema variant
|
|
2577
2676
|
* @param {string} workspaceId Workspace identifier
|
|
2578
2677
|
* @param {string} changeSetId Change Set identifier
|
|
2579
2678
|
* @param {string} schemaId Schema identifier
|
|
2679
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2680
|
+
* @param {CreateVariantAuthenticationFuncV1Request} createVariantAuthenticationFuncV1Request
|
|
2580
2681
|
* @param {*} [options] Override http request option.
|
|
2581
2682
|
* @throws {RequiredError}
|
|
2582
2683
|
*/
|
|
2583
|
-
|
|
2684
|
+
createVariantAuthentication: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options = {}) => {
|
|
2584
2685
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
2585
|
-
(0, common_1.assertParamExists)('
|
|
2686
|
+
(0, common_1.assertParamExists)('createVariantAuthentication', 'workspaceId', workspaceId);
|
|
2586
2687
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
2587
|
-
(0, common_1.assertParamExists)('
|
|
2688
|
+
(0, common_1.assertParamExists)('createVariantAuthentication', 'changeSetId', changeSetId);
|
|
2588
2689
|
// verify required parameter 'schemaId' is not null or undefined
|
|
2589
|
-
(0, common_1.assertParamExists)('
|
|
2590
|
-
|
|
2690
|
+
(0, common_1.assertParamExists)('createVariantAuthentication', 'schemaId', schemaId);
|
|
2691
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2692
|
+
(0, common_1.assertParamExists)('createVariantAuthentication', 'schemaVariantId', schemaVariantId);
|
|
2693
|
+
// verify required parameter 'createVariantAuthenticationFuncV1Request' is not null or undefined
|
|
2694
|
+
(0, common_1.assertParamExists)('createVariantAuthentication', 'createVariantAuthenticationFuncV1Request', createVariantAuthenticationFuncV1Request);
|
|
2695
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/authentication`
|
|
2591
2696
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2592
2697
|
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2593
|
-
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2698
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2699
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
2594
2700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2595
2701
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2596
2702
|
let baseOptions;
|
|
2597
2703
|
if (configuration) {
|
|
2598
2704
|
baseOptions = configuration.baseOptions;
|
|
2599
2705
|
}
|
|
2600
|
-
const localVarRequestOptions = { method: '
|
|
2706
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2601
2707
|
const localVarHeaderParameter = {};
|
|
2602
2708
|
const localVarQueryParameter = {};
|
|
2709
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2603
2710
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2604
2711
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2605
2712
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantAuthenticationFuncV1Request, localVarRequestOptions, configuration);
|
|
2606
2714
|
return {
|
|
2607
2715
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2608
2716
|
options: localVarRequestOptions,
|
|
@@ -2610,24 +2718,27 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2610
2718
|
},
|
|
2611
2719
|
/**
|
|
2612
2720
|
*
|
|
2613
|
-
* @summary
|
|
2721
|
+
* @summary Create a codegen function and attach to a schema variant
|
|
2614
2722
|
* @param {string} workspaceId Workspace identifier
|
|
2615
2723
|
* @param {string} changeSetId Change Set identifier
|
|
2616
2724
|
* @param {string} schemaId Schema identifier
|
|
2617
2725
|
* @param {string} schemaVariantId Schema variant identifier
|
|
2726
|
+
* @param {CreateVariantCodegenFuncV1Request} createVariantCodegenFuncV1Request
|
|
2618
2727
|
* @param {*} [options] Override http request option.
|
|
2619
2728
|
* @throws {RequiredError}
|
|
2620
2729
|
*/
|
|
2621
|
-
|
|
2730
|
+
createVariantCodegen: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options = {}) => {
|
|
2622
2731
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
2623
|
-
(0, common_1.assertParamExists)('
|
|
2732
|
+
(0, common_1.assertParamExists)('createVariantCodegen', 'workspaceId', workspaceId);
|
|
2624
2733
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
2625
|
-
(0, common_1.assertParamExists)('
|
|
2734
|
+
(0, common_1.assertParamExists)('createVariantCodegen', 'changeSetId', changeSetId);
|
|
2626
2735
|
// verify required parameter 'schemaId' is not null or undefined
|
|
2627
|
-
(0, common_1.assertParamExists)('
|
|
2736
|
+
(0, common_1.assertParamExists)('createVariantCodegen', 'schemaId', schemaId);
|
|
2628
2737
|
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2629
|
-
(0, common_1.assertParamExists)('
|
|
2630
|
-
|
|
2738
|
+
(0, common_1.assertParamExists)('createVariantCodegen', 'schemaVariantId', schemaVariantId);
|
|
2739
|
+
// verify required parameter 'createVariantCodegenFuncV1Request' is not null or undefined
|
|
2740
|
+
(0, common_1.assertParamExists)('createVariantCodegen', 'createVariantCodegenFuncV1Request', createVariantCodegenFuncV1Request);
|
|
2741
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/codegen`
|
|
2631
2742
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2632
2743
|
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2633
2744
|
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
@@ -2638,12 +2749,14 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2638
2749
|
if (configuration) {
|
|
2639
2750
|
baseOptions = configuration.baseOptions;
|
|
2640
2751
|
}
|
|
2641
|
-
const localVarRequestOptions = { method: '
|
|
2752
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2642
2753
|
const localVarHeaderParameter = {};
|
|
2643
2754
|
const localVarQueryParameter = {};
|
|
2755
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2644
2756
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2645
2757
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2646
2758
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2759
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantCodegenFuncV1Request, localVarRequestOptions, configuration);
|
|
2647
2760
|
return {
|
|
2648
2761
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2649
2762
|
options: localVarRequestOptions,
|
|
@@ -2651,55 +2764,96 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
2651
2764
|
},
|
|
2652
2765
|
/**
|
|
2653
2766
|
*
|
|
2654
|
-
* @summary
|
|
2767
|
+
* @summary Create a management function and attach to a schema variant
|
|
2655
2768
|
* @param {string} workspaceId Workspace identifier
|
|
2656
2769
|
* @param {string} changeSetId Change Set identifier
|
|
2657
|
-
* @param {string}
|
|
2658
|
-
* @param {string}
|
|
2770
|
+
* @param {string} schemaId Schema identifier
|
|
2771
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2772
|
+
* @param {CreateVariantManagementFuncV1Request} createVariantManagementFuncV1Request
|
|
2659
2773
|
* @param {*} [options] Override http request option.
|
|
2660
2774
|
* @throws {RequiredError}
|
|
2661
2775
|
*/
|
|
2662
|
-
|
|
2776
|
+
createVariantManagement: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options = {}) => {
|
|
2663
2777
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
2664
|
-
(0, common_1.assertParamExists)('
|
|
2778
|
+
(0, common_1.assertParamExists)('createVariantManagement', 'workspaceId', workspaceId);
|
|
2665
2779
|
// verify required parameter 'changeSetId' is not null or undefined
|
|
2666
|
-
(0, common_1.assertParamExists)('
|
|
2667
|
-
|
|
2780
|
+
(0, common_1.assertParamExists)('createVariantManagement', 'changeSetId', changeSetId);
|
|
2781
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2782
|
+
(0, common_1.assertParamExists)('createVariantManagement', 'schemaId', schemaId);
|
|
2783
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2784
|
+
(0, common_1.assertParamExists)('createVariantManagement', 'schemaVariantId', schemaVariantId);
|
|
2785
|
+
// verify required parameter 'createVariantManagementFuncV1Request' is not null or undefined
|
|
2786
|
+
(0, common_1.assertParamExists)('createVariantManagement', 'createVariantManagementFuncV1Request', createVariantManagementFuncV1Request);
|
|
2787
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/management`
|
|
2668
2788
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2669
|
-
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2789
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2790
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2791
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
2670
2792
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2671
2793
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2672
2794
|
let baseOptions;
|
|
2673
2795
|
if (configuration) {
|
|
2674
2796
|
baseOptions = configuration.baseOptions;
|
|
2675
2797
|
}
|
|
2676
|
-
const localVarRequestOptions = { method: '
|
|
2798
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2677
2799
|
const localVarHeaderParameter = {};
|
|
2678
2800
|
const localVarQueryParameter = {};
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
|
|
2801
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2802
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2804
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2805
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantManagementFuncV1Request, localVarRequestOptions, configuration);
|
|
2806
|
+
return {
|
|
2807
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2808
|
+
options: localVarRequestOptions,
|
|
2809
|
+
};
|
|
2810
|
+
},
|
|
2811
|
+
/**
|
|
2812
|
+
*
|
|
2813
|
+
* @summary Create a qualification and attach to a schema variant
|
|
2814
|
+
* @param {string} workspaceId Workspace identifier
|
|
2815
|
+
* @param {string} changeSetId Change Set identifier
|
|
2816
|
+
* @param {string} schemaId Schema identifier
|
|
2817
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2818
|
+
* @param {CreateVariantQualificationFuncV1Request} createVariantQualificationFuncV1Request
|
|
2819
|
+
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @throws {RequiredError}
|
|
2821
|
+
*/
|
|
2822
|
+
createVariantQualification: async (workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options = {}) => {
|
|
2823
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2824
|
+
(0, common_1.assertParamExists)('createVariantQualification', 'workspaceId', workspaceId);
|
|
2825
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2826
|
+
(0, common_1.assertParamExists)('createVariantQualification', 'changeSetId', changeSetId);
|
|
2827
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2828
|
+
(0, common_1.assertParamExists)('createVariantQualification', 'schemaId', schemaId);
|
|
2829
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2830
|
+
(0, common_1.assertParamExists)('createVariantQualification', 'schemaVariantId', schemaVariantId);
|
|
2831
|
+
// verify required parameter 'createVariantQualificationFuncV1Request' is not null or undefined
|
|
2832
|
+
(0, common_1.assertParamExists)('createVariantQualification', 'createVariantQualificationFuncV1Request', createVariantQualificationFuncV1Request);
|
|
2833
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}/funcs/qualification`
|
|
2834
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2835
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2836
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2837
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
2838
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2839
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2840
|
+
let baseOptions;
|
|
2841
|
+
if (configuration) {
|
|
2842
|
+
baseOptions = configuration.baseOptions;
|
|
2684
2843
|
}
|
|
2844
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2845
|
+
const localVarHeaderParameter = {};
|
|
2846
|
+
const localVarQueryParameter = {};
|
|
2847
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2685
2848
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2686
2849
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2687
2850
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2851
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVariantQualificationFuncV1Request, localVarRequestOptions, configuration);
|
|
2688
2852
|
return {
|
|
2689
2853
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2690
2854
|
options: localVarRequestOptions,
|
|
2691
2855
|
};
|
|
2692
2856
|
},
|
|
2693
|
-
};
|
|
2694
|
-
};
|
|
2695
|
-
exports.SchemasApiAxiosParamCreator = SchemasApiAxiosParamCreator;
|
|
2696
|
-
/**
|
|
2697
|
-
* SchemasApi - functional programming interface
|
|
2698
|
-
* @export
|
|
2699
|
-
*/
|
|
2700
|
-
const SchemasApiFp = function (configuration) {
|
|
2701
|
-
const localVarAxiosParamCreator = (0, exports.SchemasApiAxiosParamCreator)(configuration);
|
|
2702
|
-
return {
|
|
2703
2857
|
/**
|
|
2704
2858
|
*
|
|
2705
2859
|
* @summary Find schema by name or schema id
|
|
@@ -2710,11 +2864,36 @@ const SchemasApiFp = function (configuration) {
|
|
|
2710
2864
|
* @param {*} [options] Override http request option.
|
|
2711
2865
|
* @throws {RequiredError}
|
|
2712
2866
|
*/
|
|
2713
|
-
async
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2867
|
+
findSchema: async (workspaceId, changeSetId, schema, schemaId, options = {}) => {
|
|
2868
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2869
|
+
(0, common_1.assertParamExists)('findSchema', 'workspaceId', workspaceId);
|
|
2870
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2871
|
+
(0, common_1.assertParamExists)('findSchema', 'changeSetId', changeSetId);
|
|
2872
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/find`
|
|
2873
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2874
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
2875
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2876
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2877
|
+
let baseOptions;
|
|
2878
|
+
if (configuration) {
|
|
2879
|
+
baseOptions = configuration.baseOptions;
|
|
2880
|
+
}
|
|
2881
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2882
|
+
const localVarHeaderParameter = {};
|
|
2883
|
+
const localVarQueryParameter = {};
|
|
2884
|
+
if (schema !== undefined) {
|
|
2885
|
+
localVarQueryParameter['schema'] = schema;
|
|
2886
|
+
}
|
|
2887
|
+
if (schemaId !== undefined) {
|
|
2888
|
+
localVarQueryParameter['schemaId'] = schemaId;
|
|
2889
|
+
}
|
|
2890
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2892
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2893
|
+
return {
|
|
2894
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2895
|
+
options: localVarRequestOptions,
|
|
2896
|
+
};
|
|
2718
2897
|
},
|
|
2719
2898
|
/**
|
|
2720
2899
|
*
|
|
@@ -2725,11 +2904,33 @@ const SchemasApiFp = function (configuration) {
|
|
|
2725
2904
|
* @param {*} [options] Override http request option.
|
|
2726
2905
|
* @throws {RequiredError}
|
|
2727
2906
|
*/
|
|
2728
|
-
async
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2907
|
+
getDefaultVariant: async (workspaceId, changeSetId, schemaId, options = {}) => {
|
|
2908
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2909
|
+
(0, common_1.assertParamExists)('getDefaultVariant', 'workspaceId', workspaceId);
|
|
2910
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2911
|
+
(0, common_1.assertParamExists)('getDefaultVariant', 'changeSetId', changeSetId);
|
|
2912
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2913
|
+
(0, common_1.assertParamExists)('getDefaultVariant', 'schemaId', schemaId);
|
|
2914
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/default`
|
|
2915
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2916
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2917
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
|
|
2918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2919
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2920
|
+
let baseOptions;
|
|
2921
|
+
if (configuration) {
|
|
2922
|
+
baseOptions = configuration.baseOptions;
|
|
2923
|
+
}
|
|
2924
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2925
|
+
const localVarHeaderParameter = {};
|
|
2926
|
+
const localVarQueryParameter = {};
|
|
2927
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2929
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2930
|
+
return {
|
|
2931
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2932
|
+
options: localVarRequestOptions,
|
|
2933
|
+
};
|
|
2733
2934
|
},
|
|
2734
2935
|
/**
|
|
2735
2936
|
*
|
|
@@ -2740,12 +2941,355 @@ const SchemasApiFp = function (configuration) {
|
|
|
2740
2941
|
* @param {*} [options] Override http request option.
|
|
2741
2942
|
* @throws {RequiredError}
|
|
2742
2943
|
*/
|
|
2743
|
-
async
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2944
|
+
getSchema: async (workspaceId, changeSetId, schemaId, options = {}) => {
|
|
2945
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2946
|
+
(0, common_1.assertParamExists)('getSchema', 'workspaceId', workspaceId);
|
|
2947
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2948
|
+
(0, common_1.assertParamExists)('getSchema', 'changeSetId', changeSetId);
|
|
2949
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2950
|
+
(0, common_1.assertParamExists)('getSchema', 'schemaId', schemaId);
|
|
2951
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}`
|
|
2952
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2953
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2954
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
|
|
2955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2956
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2957
|
+
let baseOptions;
|
|
2958
|
+
if (configuration) {
|
|
2959
|
+
baseOptions = configuration.baseOptions;
|
|
2960
|
+
}
|
|
2961
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2962
|
+
const localVarHeaderParameter = {};
|
|
2963
|
+
const localVarQueryParameter = {};
|
|
2964
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2965
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2966
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2967
|
+
return {
|
|
2968
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2969
|
+
options: localVarRequestOptions,
|
|
2970
|
+
};
|
|
2971
|
+
},
|
|
2972
|
+
/**
|
|
2973
|
+
*
|
|
2974
|
+
* @summary Get a schema variant by schema id and schema variant id
|
|
2975
|
+
* @param {string} workspaceId Workspace identifier
|
|
2976
|
+
* @param {string} changeSetId Change Set identifier
|
|
2977
|
+
* @param {string} schemaId Schema identifier
|
|
2978
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
2979
|
+
* @param {*} [options] Override http request option.
|
|
2980
|
+
* @throws {RequiredError}
|
|
2981
|
+
*/
|
|
2982
|
+
getVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, options = {}) => {
|
|
2983
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2984
|
+
(0, common_1.assertParamExists)('getVariant', 'workspaceId', workspaceId);
|
|
2985
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2986
|
+
(0, common_1.assertParamExists)('getVariant', 'changeSetId', changeSetId);
|
|
2987
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
2988
|
+
(0, common_1.assertParamExists)('getVariant', 'schemaId', schemaId);
|
|
2989
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
2990
|
+
(0, common_1.assertParamExists)('getVariant', 'schemaVariantId', schemaVariantId);
|
|
2991
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}`
|
|
2992
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2993
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2994
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
2995
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
2996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2998
|
+
let baseOptions;
|
|
2999
|
+
if (configuration) {
|
|
3000
|
+
baseOptions = configuration.baseOptions;
|
|
3001
|
+
}
|
|
3002
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3003
|
+
const localVarHeaderParameter = {};
|
|
3004
|
+
const localVarQueryParameter = {};
|
|
3005
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3006
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3007
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3008
|
+
return {
|
|
3009
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3010
|
+
options: localVarRequestOptions,
|
|
3011
|
+
};
|
|
3012
|
+
},
|
|
3013
|
+
/**
|
|
3014
|
+
*
|
|
3015
|
+
* @summary List all schemas (paginated endpoint)
|
|
3016
|
+
* @param {string} workspaceId Workspace identifier
|
|
3017
|
+
* @param {string} changeSetId Change Set identifier
|
|
3018
|
+
* @param {string} [limit] Maximum number of results to return (default: 50, max: 300)
|
|
3019
|
+
* @param {string} [cursor] Cursor for pagination (SchemaId of the last item from previous page)
|
|
3020
|
+
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @throws {RequiredError}
|
|
3022
|
+
*/
|
|
3023
|
+
listSchemas: async (workspaceId, changeSetId, limit, cursor, options = {}) => {
|
|
3024
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3025
|
+
(0, common_1.assertParamExists)('listSchemas', 'workspaceId', workspaceId);
|
|
3026
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3027
|
+
(0, common_1.assertParamExists)('listSchemas', 'changeSetId', changeSetId);
|
|
3028
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas`
|
|
3029
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3030
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
3031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3032
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3033
|
+
let baseOptions;
|
|
3034
|
+
if (configuration) {
|
|
3035
|
+
baseOptions = configuration.baseOptions;
|
|
3036
|
+
}
|
|
3037
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3038
|
+
const localVarHeaderParameter = {};
|
|
3039
|
+
const localVarQueryParameter = {};
|
|
3040
|
+
if (limit !== undefined) {
|
|
3041
|
+
localVarQueryParameter['limit'] = limit;
|
|
3042
|
+
}
|
|
3043
|
+
if (cursor !== undefined) {
|
|
3044
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
3045
|
+
}
|
|
3046
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3048
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3049
|
+
return {
|
|
3050
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3051
|
+
options: localVarRequestOptions,
|
|
3052
|
+
};
|
|
3053
|
+
},
|
|
3054
|
+
/**
|
|
3055
|
+
*
|
|
3056
|
+
* @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
|
|
3057
|
+
* @param {string} workspaceId Workspace identifier
|
|
3058
|
+
* @param {string} changeSetId Change Set identifier
|
|
3059
|
+
* @param {string} schemaId Schema identifier
|
|
3060
|
+
* @param {*} [options] Override http request option.
|
|
3061
|
+
* @throws {RequiredError}
|
|
3062
|
+
*/
|
|
3063
|
+
unlockSchema: async (workspaceId, changeSetId, schemaId, options = {}) => {
|
|
3064
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3065
|
+
(0, common_1.assertParamExists)('unlockSchema', 'workspaceId', workspaceId);
|
|
3066
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3067
|
+
(0, common_1.assertParamExists)('unlockSchema', 'changeSetId', changeSetId);
|
|
3068
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3069
|
+
(0, common_1.assertParamExists)('unlockSchema', 'schemaId', schemaId);
|
|
3070
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/unlock`
|
|
3071
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3072
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3073
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)));
|
|
3074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3075
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3076
|
+
let baseOptions;
|
|
3077
|
+
if (configuration) {
|
|
3078
|
+
baseOptions = configuration.baseOptions;
|
|
3079
|
+
}
|
|
3080
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3081
|
+
const localVarHeaderParameter = {};
|
|
3082
|
+
const localVarQueryParameter = {};
|
|
3083
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3085
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3086
|
+
return {
|
|
3087
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3088
|
+
options: localVarRequestOptions,
|
|
3089
|
+
};
|
|
3090
|
+
},
|
|
3091
|
+
/**
|
|
3092
|
+
*
|
|
3093
|
+
* @summary Update the schema variant and regenerate
|
|
3094
|
+
* @param {string} workspaceId Workspace identifier
|
|
3095
|
+
* @param {string} changeSetId Change Set identifier
|
|
3096
|
+
* @param {string} schemaId Schema identifier
|
|
3097
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3098
|
+
* @param {UpdateSchemaVariantV1Request} updateSchemaVariantV1Request
|
|
3099
|
+
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @throws {RequiredError}
|
|
3101
|
+
*/
|
|
3102
|
+
updateSchemaVariant: async (workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options = {}) => {
|
|
3103
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3104
|
+
(0, common_1.assertParamExists)('updateSchemaVariant', 'workspaceId', workspaceId);
|
|
3105
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3106
|
+
(0, common_1.assertParamExists)('updateSchemaVariant', 'changeSetId', changeSetId);
|
|
3107
|
+
// verify required parameter 'schemaId' is not null or undefined
|
|
3108
|
+
(0, common_1.assertParamExists)('updateSchemaVariant', 'schemaId', schemaId);
|
|
3109
|
+
// verify required parameter 'schemaVariantId' is not null or undefined
|
|
3110
|
+
(0, common_1.assertParamExists)('updateSchemaVariant', 'schemaVariantId', schemaVariantId);
|
|
3111
|
+
// verify required parameter 'updateSchemaVariantV1Request' is not null or undefined
|
|
3112
|
+
(0, common_1.assertParamExists)('updateSchemaVariant', 'updateSchemaVariantV1Request', updateSchemaVariantV1Request);
|
|
3113
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/{schema_id}/variant/{schema_variant_id}`
|
|
3114
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3115
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
3116
|
+
.replace(`{${"schema_id"}}`, encodeURIComponent(String(schemaId)))
|
|
3117
|
+
.replace(`{${"schema_variant_id"}}`, encodeURIComponent(String(schemaVariantId)));
|
|
3118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3119
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3120
|
+
let baseOptions;
|
|
3121
|
+
if (configuration) {
|
|
3122
|
+
baseOptions = configuration.baseOptions;
|
|
3123
|
+
}
|
|
3124
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
3125
|
+
const localVarHeaderParameter = {};
|
|
3126
|
+
const localVarQueryParameter = {};
|
|
3127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3130
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3131
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSchemaVariantV1Request, localVarRequestOptions, configuration);
|
|
3132
|
+
return {
|
|
3133
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3134
|
+
options: localVarRequestOptions,
|
|
3135
|
+
};
|
|
3136
|
+
},
|
|
3137
|
+
};
|
|
3138
|
+
};
|
|
3139
|
+
exports.SchemasApiAxiosParamCreator = SchemasApiAxiosParamCreator;
|
|
3140
|
+
/**
|
|
3141
|
+
* SchemasApi - functional programming interface
|
|
3142
|
+
* @export
|
|
3143
|
+
*/
|
|
3144
|
+
const SchemasApiFp = function (configuration) {
|
|
3145
|
+
const localVarAxiosParamCreator = (0, exports.SchemasApiAxiosParamCreator)(configuration);
|
|
3146
|
+
return {
|
|
3147
|
+
/**
|
|
3148
|
+
*
|
|
3149
|
+
* @summary Create a schema and it\'s default variant
|
|
3150
|
+
* @param {string} workspaceId Workspace identifier
|
|
3151
|
+
* @param {string} changeSetId Change Set identifier
|
|
3152
|
+
* @param {CreateSchemaV1Request} createSchemaV1Request
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
*/
|
|
3156
|
+
async createSchema(workspaceId, changeSetId, createSchemaV1Request, options) {
|
|
3157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSchema(workspaceId, changeSetId, createSchemaV1Request, options);
|
|
3158
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3159
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createSchema']?.[localVarOperationServerIndex]?.url;
|
|
3160
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3161
|
+
},
|
|
3162
|
+
/**
|
|
3163
|
+
*
|
|
3164
|
+
* @summary Create an action function and attach to a schema variant
|
|
3165
|
+
* @param {string} workspaceId Workspace identifier
|
|
3166
|
+
* @param {string} changeSetId Change Set identifier
|
|
3167
|
+
* @param {string} schemaId Schema identifier
|
|
3168
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3169
|
+
* @param {CreateVariantActionFuncV1Request} createVariantActionFuncV1Request
|
|
3170
|
+
* @param {*} [options] Override http request option.
|
|
3171
|
+
* @throws {RequiredError}
|
|
3172
|
+
*/
|
|
3173
|
+
async createVariantAction(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options) {
|
|
3174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantAction(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantActionFuncV1Request, options);
|
|
3175
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3176
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantAction']?.[localVarOperationServerIndex]?.url;
|
|
3177
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3178
|
+
},
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
* @summary Create an authentication function and attach to a schema variant
|
|
3182
|
+
* @param {string} workspaceId Workspace identifier
|
|
3183
|
+
* @param {string} changeSetId Change Set identifier
|
|
3184
|
+
* @param {string} schemaId Schema identifier
|
|
3185
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3186
|
+
* @param {CreateVariantAuthenticationFuncV1Request} createVariantAuthenticationFuncV1Request
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
async createVariantAuthentication(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options) {
|
|
3191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantAuthentication(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantAuthenticationFuncV1Request, options);
|
|
3192
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3193
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantAuthentication']?.[localVarOperationServerIndex]?.url;
|
|
3194
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3195
|
+
},
|
|
3196
|
+
/**
|
|
3197
|
+
*
|
|
3198
|
+
* @summary Create a codegen function and attach to a schema variant
|
|
3199
|
+
* @param {string} workspaceId Workspace identifier
|
|
3200
|
+
* @param {string} changeSetId Change Set identifier
|
|
3201
|
+
* @param {string} schemaId Schema identifier
|
|
3202
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3203
|
+
* @param {CreateVariantCodegenFuncV1Request} createVariantCodegenFuncV1Request
|
|
3204
|
+
* @param {*} [options] Override http request option.
|
|
3205
|
+
* @throws {RequiredError}
|
|
3206
|
+
*/
|
|
3207
|
+
async createVariantCodegen(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options) {
|
|
3208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantCodegen(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantCodegenFuncV1Request, options);
|
|
3209
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3210
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantCodegen']?.[localVarOperationServerIndex]?.url;
|
|
3211
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3212
|
+
},
|
|
3213
|
+
/**
|
|
3214
|
+
*
|
|
3215
|
+
* @summary Create a management function and attach to a schema variant
|
|
3216
|
+
* @param {string} workspaceId Workspace identifier
|
|
3217
|
+
* @param {string} changeSetId Change Set identifier
|
|
3218
|
+
* @param {string} schemaId Schema identifier
|
|
3219
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3220
|
+
* @param {CreateVariantManagementFuncV1Request} createVariantManagementFuncV1Request
|
|
3221
|
+
* @param {*} [options] Override http request option.
|
|
3222
|
+
* @throws {RequiredError}
|
|
3223
|
+
*/
|
|
3224
|
+
async createVariantManagement(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options) {
|
|
3225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantManagement(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantManagementFuncV1Request, options);
|
|
3226
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3227
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantManagement']?.[localVarOperationServerIndex]?.url;
|
|
3228
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3229
|
+
},
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @summary Create a qualification and attach to a schema variant
|
|
3233
|
+
* @param {string} workspaceId Workspace identifier
|
|
3234
|
+
* @param {string} changeSetId Change Set identifier
|
|
3235
|
+
* @param {string} schemaId Schema identifier
|
|
3236
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3237
|
+
* @param {CreateVariantQualificationFuncV1Request} createVariantQualificationFuncV1Request
|
|
3238
|
+
* @param {*} [options] Override http request option.
|
|
3239
|
+
* @throws {RequiredError}
|
|
3240
|
+
*/
|
|
3241
|
+
async createVariantQualification(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options) {
|
|
3242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVariantQualification(workspaceId, changeSetId, schemaId, schemaVariantId, createVariantQualificationFuncV1Request, options);
|
|
3243
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3244
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.createVariantQualification']?.[localVarOperationServerIndex]?.url;
|
|
3245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3246
|
+
},
|
|
3247
|
+
/**
|
|
3248
|
+
*
|
|
3249
|
+
* @summary Find schema by name or schema id
|
|
3250
|
+
* @param {string} workspaceId Workspace identifier
|
|
3251
|
+
* @param {string} changeSetId Change Set identifier
|
|
3252
|
+
* @param {string | null} [schema]
|
|
3253
|
+
* @param {string | null} [schemaId]
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
async findSchema(workspaceId, changeSetId, schema, schemaId, options) {
|
|
3258
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findSchema(workspaceId, changeSetId, schema, schemaId, options);
|
|
3259
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3260
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.findSchema']?.[localVarOperationServerIndex]?.url;
|
|
3261
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3262
|
+
},
|
|
3263
|
+
/**
|
|
3264
|
+
*
|
|
3265
|
+
* @summary Get the default variant for a schema id
|
|
3266
|
+
* @param {string} workspaceId Workspace identifier
|
|
3267
|
+
* @param {string} changeSetId Change Set identifier
|
|
3268
|
+
* @param {string} schemaId Schema identifier
|
|
3269
|
+
* @param {*} [options] Override http request option.
|
|
3270
|
+
* @throws {RequiredError}
|
|
3271
|
+
*/
|
|
3272
|
+
async getDefaultVariant(workspaceId, changeSetId, schemaId, options) {
|
|
3273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultVariant(workspaceId, changeSetId, schemaId, options);
|
|
3274
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3275
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getDefaultVariant']?.[localVarOperationServerIndex]?.url;
|
|
3276
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3277
|
+
},
|
|
3278
|
+
/**
|
|
3279
|
+
*
|
|
3280
|
+
* @summary Get a schema by schema id
|
|
3281
|
+
* @param {string} workspaceId Workspace identifier
|
|
3282
|
+
* @param {string} changeSetId Change Set identifier
|
|
3283
|
+
* @param {string} schemaId Schema identifier
|
|
3284
|
+
* @param {*} [options] Override http request option.
|
|
3285
|
+
* @throws {RequiredError}
|
|
3286
|
+
*/
|
|
3287
|
+
async getSchema(workspaceId, changeSetId, schemaId, options) {
|
|
3288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSchema(workspaceId, changeSetId, schemaId, options);
|
|
3289
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3290
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getSchema']?.[localVarOperationServerIndex]?.url;
|
|
3291
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3292
|
+
},
|
|
2749
3293
|
/**
|
|
2750
3294
|
*
|
|
2751
3295
|
* @summary Get a schema variant by schema id and schema variant id
|
|
@@ -2778,6 +3322,38 @@ const SchemasApiFp = function (configuration) {
|
|
|
2778
3322
|
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.listSchemas']?.[localVarOperationServerIndex]?.url;
|
|
2779
3323
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2780
3324
|
},
|
|
3325
|
+
/**
|
|
3326
|
+
*
|
|
3327
|
+
* @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
|
|
3328
|
+
* @param {string} workspaceId Workspace identifier
|
|
3329
|
+
* @param {string} changeSetId Change Set identifier
|
|
3330
|
+
* @param {string} schemaId Schema identifier
|
|
3331
|
+
* @param {*} [options] Override http request option.
|
|
3332
|
+
* @throws {RequiredError}
|
|
3333
|
+
*/
|
|
3334
|
+
async unlockSchema(workspaceId, changeSetId, schemaId, options) {
|
|
3335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlockSchema(workspaceId, changeSetId, schemaId, options);
|
|
3336
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3337
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.unlockSchema']?.[localVarOperationServerIndex]?.url;
|
|
3338
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3339
|
+
},
|
|
3340
|
+
/**
|
|
3341
|
+
*
|
|
3342
|
+
* @summary Update the schema variant and regenerate
|
|
3343
|
+
* @param {string} workspaceId Workspace identifier
|
|
3344
|
+
* @param {string} changeSetId Change Set identifier
|
|
3345
|
+
* @param {string} schemaId Schema identifier
|
|
3346
|
+
* @param {string} schemaVariantId Schema variant identifier
|
|
3347
|
+
* @param {UpdateSchemaVariantV1Request} updateSchemaVariantV1Request
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
async updateSchemaVariant(workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options) {
|
|
3352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSchemaVariant(workspaceId, changeSetId, schemaId, schemaVariantId, updateSchemaVariantV1Request, options);
|
|
3353
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3354
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.updateSchemaVariant']?.[localVarOperationServerIndex]?.url;
|
|
3355
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3356
|
+
},
|
|
2781
3357
|
};
|
|
2782
3358
|
};
|
|
2783
3359
|
exports.SchemasApiFp = SchemasApiFp;
|
|
@@ -2788,6 +3364,66 @@ exports.SchemasApiFp = SchemasApiFp;
|
|
|
2788
3364
|
const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
2789
3365
|
const localVarFp = (0, exports.SchemasApiFp)(configuration);
|
|
2790
3366
|
return {
|
|
3367
|
+
/**
|
|
3368
|
+
*
|
|
3369
|
+
* @summary Create a schema and it\'s default variant
|
|
3370
|
+
* @param {SchemasApiCreateSchemaRequest} requestParameters Request parameters.
|
|
3371
|
+
* @param {*} [options] Override http request option.
|
|
3372
|
+
* @throws {RequiredError}
|
|
3373
|
+
*/
|
|
3374
|
+
createSchema(requestParameters, options) {
|
|
3375
|
+
return localVarFp.createSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSchemaV1Request, options).then((request) => request(axios, basePath));
|
|
3376
|
+
},
|
|
3377
|
+
/**
|
|
3378
|
+
*
|
|
3379
|
+
* @summary Create an action function and attach to a schema variant
|
|
3380
|
+
* @param {SchemasApiCreateVariantActionRequest} requestParameters Request parameters.
|
|
3381
|
+
* @param {*} [options] Override http request option.
|
|
3382
|
+
* @throws {RequiredError}
|
|
3383
|
+
*/
|
|
3384
|
+
createVariantAction(requestParameters, options) {
|
|
3385
|
+
return localVarFp.createVariantAction(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantActionFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3386
|
+
},
|
|
3387
|
+
/**
|
|
3388
|
+
*
|
|
3389
|
+
* @summary Create an authentication function and attach to a schema variant
|
|
3390
|
+
* @param {SchemasApiCreateVariantAuthenticationRequest} requestParameters Request parameters.
|
|
3391
|
+
* @param {*} [options] Override http request option.
|
|
3392
|
+
* @throws {RequiredError}
|
|
3393
|
+
*/
|
|
3394
|
+
createVariantAuthentication(requestParameters, options) {
|
|
3395
|
+
return localVarFp.createVariantAuthentication(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAuthenticationFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3396
|
+
},
|
|
3397
|
+
/**
|
|
3398
|
+
*
|
|
3399
|
+
* @summary Create a codegen function and attach to a schema variant
|
|
3400
|
+
* @param {SchemasApiCreateVariantCodegenRequest} requestParameters Request parameters.
|
|
3401
|
+
* @param {*} [options] Override http request option.
|
|
3402
|
+
* @throws {RequiredError}
|
|
3403
|
+
*/
|
|
3404
|
+
createVariantCodegen(requestParameters, options) {
|
|
3405
|
+
return localVarFp.createVariantCodegen(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantCodegenFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3406
|
+
},
|
|
3407
|
+
/**
|
|
3408
|
+
*
|
|
3409
|
+
* @summary Create a management function and attach to a schema variant
|
|
3410
|
+
* @param {SchemasApiCreateVariantManagementRequest} requestParameters Request parameters.
|
|
3411
|
+
* @param {*} [options] Override http request option.
|
|
3412
|
+
* @throws {RequiredError}
|
|
3413
|
+
*/
|
|
3414
|
+
createVariantManagement(requestParameters, options) {
|
|
3415
|
+
return localVarFp.createVariantManagement(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantManagementFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3416
|
+
},
|
|
3417
|
+
/**
|
|
3418
|
+
*
|
|
3419
|
+
* @summary Create a qualification and attach to a schema variant
|
|
3420
|
+
* @param {SchemasApiCreateVariantQualificationRequest} requestParameters Request parameters.
|
|
3421
|
+
* @param {*} [options] Override http request option.
|
|
3422
|
+
* @throws {RequiredError}
|
|
3423
|
+
*/
|
|
3424
|
+
createVariantQualification(requestParameters, options) {
|
|
3425
|
+
return localVarFp.createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(axios, basePath));
|
|
3426
|
+
},
|
|
2791
3427
|
/**
|
|
2792
3428
|
*
|
|
2793
3429
|
* @summary Find schema by name or schema id
|
|
@@ -2838,6 +3474,26 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
2838
3474
|
listSchemas(requestParameters, options) {
|
|
2839
3475
|
return localVarFp.listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
|
|
2840
3476
|
},
|
|
3477
|
+
/**
|
|
3478
|
+
*
|
|
3479
|
+
* @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
|
|
3480
|
+
* @param {SchemasApiUnlockSchemaRequest} requestParameters Request parameters.
|
|
3481
|
+
* @param {*} [options] Override http request option.
|
|
3482
|
+
* @throws {RequiredError}
|
|
3483
|
+
*/
|
|
3484
|
+
unlockSchema(requestParameters, options) {
|
|
3485
|
+
return localVarFp.unlockSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(axios, basePath));
|
|
3486
|
+
},
|
|
3487
|
+
/**
|
|
3488
|
+
*
|
|
3489
|
+
* @summary Update the schema variant and regenerate
|
|
3490
|
+
* @param {SchemasApiUpdateSchemaVariantRequest} requestParameters Request parameters.
|
|
3491
|
+
* @param {*} [options] Override http request option.
|
|
3492
|
+
* @throws {RequiredError}
|
|
3493
|
+
*/
|
|
3494
|
+
updateSchemaVariant(requestParameters, options) {
|
|
3495
|
+
return localVarFp.updateSchemaVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.updateSchemaVariantV1Request, options).then((request) => request(axios, basePath));
|
|
3496
|
+
},
|
|
2841
3497
|
};
|
|
2842
3498
|
};
|
|
2843
3499
|
exports.SchemasApiFactory = SchemasApiFactory;
|
|
@@ -2848,6 +3504,72 @@ exports.SchemasApiFactory = SchemasApiFactory;
|
|
|
2848
3504
|
* @extends {BaseAPI}
|
|
2849
3505
|
*/
|
|
2850
3506
|
class SchemasApi extends base_1.BaseAPI {
|
|
3507
|
+
/**
|
|
3508
|
+
*
|
|
3509
|
+
* @summary Create a schema and it\'s default variant
|
|
3510
|
+
* @param {SchemasApiCreateSchemaRequest} requestParameters Request parameters.
|
|
3511
|
+
* @param {*} [options] Override http request option.
|
|
3512
|
+
* @throws {RequiredError}
|
|
3513
|
+
* @memberof SchemasApi
|
|
3514
|
+
*/
|
|
3515
|
+
createSchema(requestParameters, options) {
|
|
3516
|
+
return (0, exports.SchemasApiFp)(this.configuration).createSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.createSchemaV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
*
|
|
3520
|
+
* @summary Create an action function and attach to a schema variant
|
|
3521
|
+
* @param {SchemasApiCreateVariantActionRequest} requestParameters Request parameters.
|
|
3522
|
+
* @param {*} [options] Override http request option.
|
|
3523
|
+
* @throws {RequiredError}
|
|
3524
|
+
* @memberof SchemasApi
|
|
3525
|
+
*/
|
|
3526
|
+
createVariantAction(requestParameters, options) {
|
|
3527
|
+
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));
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
3530
|
+
*
|
|
3531
|
+
* @summary Create an authentication function and attach to a schema variant
|
|
3532
|
+
* @param {SchemasApiCreateVariantAuthenticationRequest} requestParameters Request parameters.
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
* @memberof SchemasApi
|
|
3536
|
+
*/
|
|
3537
|
+
createVariantAuthentication(requestParameters, options) {
|
|
3538
|
+
return (0, exports.SchemasApiFp)(this.configuration).createVariantAuthentication(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantAuthenticationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
*
|
|
3542
|
+
* @summary Create a codegen function and attach to a schema variant
|
|
3543
|
+
* @param {SchemasApiCreateVariantCodegenRequest} requestParameters Request parameters.
|
|
3544
|
+
* @param {*} [options] Override http request option.
|
|
3545
|
+
* @throws {RequiredError}
|
|
3546
|
+
* @memberof SchemasApi
|
|
3547
|
+
*/
|
|
3548
|
+
createVariantCodegen(requestParameters, options) {
|
|
3549
|
+
return (0, exports.SchemasApiFp)(this.configuration).createVariantCodegen(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantCodegenFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3550
|
+
}
|
|
3551
|
+
/**
|
|
3552
|
+
*
|
|
3553
|
+
* @summary Create a management function and attach to a schema variant
|
|
3554
|
+
* @param {SchemasApiCreateVariantManagementRequest} requestParameters Request parameters.
|
|
3555
|
+
* @param {*} [options] Override http request option.
|
|
3556
|
+
* @throws {RequiredError}
|
|
3557
|
+
* @memberof SchemasApi
|
|
3558
|
+
*/
|
|
3559
|
+
createVariantManagement(requestParameters, options) {
|
|
3560
|
+
return (0, exports.SchemasApiFp)(this.configuration).createVariantManagement(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantManagementFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3561
|
+
}
|
|
3562
|
+
/**
|
|
3563
|
+
*
|
|
3564
|
+
* @summary Create a qualification and attach to a schema variant
|
|
3565
|
+
* @param {SchemasApiCreateVariantQualificationRequest} requestParameters Request parameters.
|
|
3566
|
+
* @param {*} [options] Override http request option.
|
|
3567
|
+
* @throws {RequiredError}
|
|
3568
|
+
* @memberof SchemasApi
|
|
3569
|
+
*/
|
|
3570
|
+
createVariantQualification(requestParameters, options) {
|
|
3571
|
+
return (0, exports.SchemasApiFp)(this.configuration).createVariantQualification(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.createVariantQualificationFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3572
|
+
}
|
|
2851
3573
|
/**
|
|
2852
3574
|
*
|
|
2853
3575
|
* @summary Find schema by name or schema id
|
|
@@ -2903,6 +3625,28 @@ class SchemasApi extends base_1.BaseAPI {
|
|
|
2903
3625
|
listSchemas(requestParameters, options) {
|
|
2904
3626
|
return (0, exports.SchemasApiFp)(this.configuration).listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2905
3627
|
}
|
|
3628
|
+
/**
|
|
3629
|
+
*
|
|
3630
|
+
* @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
|
|
3631
|
+
* @param {SchemasApiUnlockSchemaRequest} requestParameters Request parameters.
|
|
3632
|
+
* @param {*} [options] Override http request option.
|
|
3633
|
+
* @throws {RequiredError}
|
|
3634
|
+
* @memberof SchemasApi
|
|
3635
|
+
*/
|
|
3636
|
+
unlockSchema(requestParameters, options) {
|
|
3637
|
+
return (0, exports.SchemasApiFp)(this.configuration).unlockSchema(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, options).then((request) => request(this.axios, this.basePath));
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
*
|
|
3641
|
+
* @summary Update the schema variant and regenerate
|
|
3642
|
+
* @param {SchemasApiUpdateSchemaVariantRequest} requestParameters Request parameters.
|
|
3643
|
+
* @param {*} [options] Override http request option.
|
|
3644
|
+
* @throws {RequiredError}
|
|
3645
|
+
* @memberof SchemasApi
|
|
3646
|
+
*/
|
|
3647
|
+
updateSchemaVariant(requestParameters, options) {
|
|
3648
|
+
return (0, exports.SchemasApiFp)(this.configuration).updateSchemaVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.updateSchemaVariantV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
3649
|
+
}
|
|
2906
3650
|
}
|
|
2907
3651
|
exports.SchemasApi = SchemasApi;
|
|
2908
3652
|
/**
|