system-initiative-api-client 1.3.1 → 1.3.3
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 +111 -0
- package/dist/cjs/api.js +79 -0
- package/dist/esm/api.d.ts +111 -0
- package/dist/esm/api.js +79 -0
- package/package.json +1 -1
package/dist/cjs/api.d.ts
CHANGED
|
@@ -2530,6 +2530,32 @@ export interface SystemStatusResponse {
|
|
|
2530
2530
|
*/
|
|
2531
2531
|
'API Documentation': string;
|
|
2532
2532
|
}
|
|
2533
|
+
/**
|
|
2534
|
+
*
|
|
2535
|
+
* @export
|
|
2536
|
+
* @interface UnlockFuncV1Request
|
|
2537
|
+
*/
|
|
2538
|
+
export interface UnlockFuncV1Request {
|
|
2539
|
+
/**
|
|
2540
|
+
*
|
|
2541
|
+
* @type {string}
|
|
2542
|
+
* @memberof UnlockFuncV1Request
|
|
2543
|
+
*/
|
|
2544
|
+
'schemaVariantId': string;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @export
|
|
2549
|
+
* @interface UnlockFuncV1Response
|
|
2550
|
+
*/
|
|
2551
|
+
export interface UnlockFuncV1Response {
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @type {string}
|
|
2555
|
+
* @memberof UnlockFuncV1Response
|
|
2556
|
+
*/
|
|
2557
|
+
'unlockedFuncId': string;
|
|
2558
|
+
}
|
|
2533
2559
|
/**
|
|
2534
2560
|
*
|
|
2535
2561
|
* @export
|
|
@@ -2542,6 +2568,12 @@ export interface UnlockedSchemaV1Response {
|
|
|
2542
2568
|
* @memberof UnlockedSchemaV1Response
|
|
2543
2569
|
*/
|
|
2544
2570
|
'schemaId': string;
|
|
2571
|
+
/**
|
|
2572
|
+
*
|
|
2573
|
+
* @type {GetSchemaVariantV1Response}
|
|
2574
|
+
* @memberof UnlockedSchemaV1Response
|
|
2575
|
+
*/
|
|
2576
|
+
'unlockedVariant': GetSchemaVariantV1Response;
|
|
2545
2577
|
/**
|
|
2546
2578
|
*
|
|
2547
2579
|
* @type {string}
|
|
@@ -4802,6 +4834,17 @@ export declare const FuncsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4802
4834
|
* @throws {RequiredError}
|
|
4803
4835
|
*/
|
|
4804
4836
|
getFuncRun: (workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4837
|
+
/**
|
|
4838
|
+
*
|
|
4839
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4840
|
+
* @param {string} workspaceId Workspace identifier
|
|
4841
|
+
* @param {string} changeSetId Change Set identifier
|
|
4842
|
+
* @param {string} funcId Func identifier
|
|
4843
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
4844
|
+
* @param {*} [options] Override http request option.
|
|
4845
|
+
* @throws {RequiredError}
|
|
4846
|
+
*/
|
|
4847
|
+
unlockFunc: (workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4805
4848
|
/**
|
|
4806
4849
|
*
|
|
4807
4850
|
* @summary Update a func
|
|
@@ -4839,6 +4882,17 @@ export declare const FuncsApiFp: (configuration?: Configuration) => {
|
|
|
4839
4882
|
* @throws {RequiredError}
|
|
4840
4883
|
*/
|
|
4841
4884
|
getFuncRun(workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFuncRunV1Response>>;
|
|
4885
|
+
/**
|
|
4886
|
+
*
|
|
4887
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4888
|
+
* @param {string} workspaceId Workspace identifier
|
|
4889
|
+
* @param {string} changeSetId Change Set identifier
|
|
4890
|
+
* @param {string} funcId Func identifier
|
|
4891
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
4892
|
+
* @param {*} [options] Override http request option.
|
|
4893
|
+
* @throws {RequiredError}
|
|
4894
|
+
*/
|
|
4895
|
+
unlockFunc(workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlockFuncV1Response>>;
|
|
4842
4896
|
/**
|
|
4843
4897
|
*
|
|
4844
4898
|
* @summary Update a func
|
|
@@ -4872,6 +4926,14 @@ export declare const FuncsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4872
4926
|
* @throws {RequiredError}
|
|
4873
4927
|
*/
|
|
4874
4928
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
|
|
4929
|
+
/**
|
|
4930
|
+
*
|
|
4931
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4932
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
4933
|
+
* @param {*} [options] Override http request option.
|
|
4934
|
+
* @throws {RequiredError}
|
|
4935
|
+
*/
|
|
4936
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
|
|
4875
4937
|
/**
|
|
4876
4938
|
*
|
|
4877
4939
|
* @summary Update a func
|
|
@@ -4905,6 +4967,15 @@ export interface FuncsApiInterface {
|
|
|
4905
4967
|
* @memberof FuncsApiInterface
|
|
4906
4968
|
*/
|
|
4907
4969
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4973
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
4974
|
+
* @param {*} [options] Override http request option.
|
|
4975
|
+
* @throws {RequiredError}
|
|
4976
|
+
* @memberof FuncsApiInterface
|
|
4977
|
+
*/
|
|
4978
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
|
|
4908
4979
|
/**
|
|
4909
4980
|
*
|
|
4910
4981
|
* @summary Update a func
|
|
@@ -4965,6 +5036,37 @@ export interface FuncsApiGetFuncRunRequest {
|
|
|
4965
5036
|
*/
|
|
4966
5037
|
readonly funcRunId: string;
|
|
4967
5038
|
}
|
|
5039
|
+
/**
|
|
5040
|
+
* Request parameters for unlockFunc operation in FuncsApi.
|
|
5041
|
+
* @export
|
|
5042
|
+
* @interface FuncsApiUnlockFuncRequest
|
|
5043
|
+
*/
|
|
5044
|
+
export interface FuncsApiUnlockFuncRequest {
|
|
5045
|
+
/**
|
|
5046
|
+
* Workspace identifier
|
|
5047
|
+
* @type {string}
|
|
5048
|
+
* @memberof FuncsApiUnlockFunc
|
|
5049
|
+
*/
|
|
5050
|
+
readonly workspaceId: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* Change Set identifier
|
|
5053
|
+
* @type {string}
|
|
5054
|
+
* @memberof FuncsApiUnlockFunc
|
|
5055
|
+
*/
|
|
5056
|
+
readonly changeSetId: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* Func identifier
|
|
5059
|
+
* @type {string}
|
|
5060
|
+
* @memberof FuncsApiUnlockFunc
|
|
5061
|
+
*/
|
|
5062
|
+
readonly funcId: string;
|
|
5063
|
+
/**
|
|
5064
|
+
*
|
|
5065
|
+
* @type {UnlockFuncV1Request}
|
|
5066
|
+
* @memberof FuncsApiUnlockFunc
|
|
5067
|
+
*/
|
|
5068
|
+
readonly unlockFuncV1Request: UnlockFuncV1Request;
|
|
5069
|
+
}
|
|
4968
5070
|
/**
|
|
4969
5071
|
* Request parameters for updateFunc operation in FuncsApi.
|
|
4970
5072
|
* @export
|
|
@@ -5021,6 +5123,15 @@ export declare class FuncsApi extends BaseAPI implements FuncsApiInterface {
|
|
|
5021
5123
|
* @memberof FuncsApi
|
|
5022
5124
|
*/
|
|
5023
5125
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFuncRunV1Response, any, {}>>;
|
|
5126
|
+
/**
|
|
5127
|
+
*
|
|
5128
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
5129
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
5130
|
+
* @param {*} [options] Override http request option.
|
|
5131
|
+
* @throws {RequiredError}
|
|
5132
|
+
* @memberof FuncsApi
|
|
5133
|
+
*/
|
|
5134
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlockFuncV1Response, any, {}>>;
|
|
5024
5135
|
/**
|
|
5025
5136
|
*
|
|
5026
5137
|
* @summary Update a func
|
package/dist/cjs/api.js
CHANGED
|
@@ -2201,6 +2201,48 @@ const FuncsApiAxiosParamCreator = function (configuration) {
|
|
|
2201
2201
|
options: localVarRequestOptions,
|
|
2202
2202
|
};
|
|
2203
2203
|
},
|
|
2204
|
+
/**
|
|
2205
|
+
*
|
|
2206
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2207
|
+
* @param {string} workspaceId Workspace identifier
|
|
2208
|
+
* @param {string} changeSetId Change Set identifier
|
|
2209
|
+
* @param {string} funcId Func identifier
|
|
2210
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
unlockFunc: async (workspaceId, changeSetId, funcId, unlockFuncV1Request, options = {}) => {
|
|
2215
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2216
|
+
(0, common_1.assertParamExists)('unlockFunc', 'workspaceId', workspaceId);
|
|
2217
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2218
|
+
(0, common_1.assertParamExists)('unlockFunc', 'changeSetId', changeSetId);
|
|
2219
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
2220
|
+
(0, common_1.assertParamExists)('unlockFunc', 'funcId', funcId);
|
|
2221
|
+
// verify required parameter 'unlockFuncV1Request' is not null or undefined
|
|
2222
|
+
(0, common_1.assertParamExists)('unlockFunc', 'unlockFuncV1Request', unlockFuncV1Request);
|
|
2223
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}/unlock`
|
|
2224
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2225
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2226
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
2227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2229
|
+
let baseOptions;
|
|
2230
|
+
if (configuration) {
|
|
2231
|
+
baseOptions = configuration.baseOptions;
|
|
2232
|
+
}
|
|
2233
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2234
|
+
const localVarHeaderParameter = {};
|
|
2235
|
+
const localVarQueryParameter = {};
|
|
2236
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2237
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2240
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlockFuncV1Request, localVarRequestOptions, configuration);
|
|
2241
|
+
return {
|
|
2242
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2243
|
+
options: localVarRequestOptions,
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2204
2246
|
/**
|
|
2205
2247
|
*
|
|
2206
2248
|
* @summary Update a func
|
|
@@ -2283,6 +2325,22 @@ const FuncsApiFp = function (configuration) {
|
|
|
2283
2325
|
const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.getFuncRun']?.[localVarOperationServerIndex]?.url;
|
|
2284
2326
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2285
2327
|
},
|
|
2328
|
+
/**
|
|
2329
|
+
*
|
|
2330
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2331
|
+
* @param {string} workspaceId Workspace identifier
|
|
2332
|
+
* @param {string} changeSetId Change Set identifier
|
|
2333
|
+
* @param {string} funcId Func identifier
|
|
2334
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
2335
|
+
* @param {*} [options] Override http request option.
|
|
2336
|
+
* @throws {RequiredError}
|
|
2337
|
+
*/
|
|
2338
|
+
async unlockFunc(workspaceId, changeSetId, funcId, unlockFuncV1Request, options) {
|
|
2339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlockFunc(workspaceId, changeSetId, funcId, unlockFuncV1Request, options);
|
|
2340
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2341
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FuncsApi.unlockFunc']?.[localVarOperationServerIndex]?.url;
|
|
2342
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2343
|
+
},
|
|
2286
2344
|
/**
|
|
2287
2345
|
*
|
|
2288
2346
|
* @summary Update a func
|
|
@@ -2329,6 +2387,16 @@ const FuncsApiFactory = function (configuration, basePath, axios) {
|
|
|
2329
2387
|
getFuncRun(requestParameters, options) {
|
|
2330
2388
|
return localVarFp.getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(axios, basePath));
|
|
2331
2389
|
},
|
|
2390
|
+
/**
|
|
2391
|
+
*
|
|
2392
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2393
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
2394
|
+
* @param {*} [options] Override http request option.
|
|
2395
|
+
* @throws {RequiredError}
|
|
2396
|
+
*/
|
|
2397
|
+
unlockFunc(requestParameters, options) {
|
|
2398
|
+
return localVarFp.unlockFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.unlockFuncV1Request, options).then((request) => request(axios, basePath));
|
|
2399
|
+
},
|
|
2332
2400
|
/**
|
|
2333
2401
|
*
|
|
2334
2402
|
* @summary Update a func
|
|
@@ -2371,6 +2439,17 @@ class FuncsApi extends base_1.BaseAPI {
|
|
|
2371
2439
|
getFuncRun(requestParameters, options) {
|
|
2372
2440
|
return (0, exports.FuncsApiFp)(this.configuration).getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(this.axios, this.basePath));
|
|
2373
2441
|
}
|
|
2442
|
+
/**
|
|
2443
|
+
*
|
|
2444
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2445
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
2446
|
+
* @param {*} [options] Override http request option.
|
|
2447
|
+
* @throws {RequiredError}
|
|
2448
|
+
* @memberof FuncsApi
|
|
2449
|
+
*/
|
|
2450
|
+
unlockFunc(requestParameters, options) {
|
|
2451
|
+
return (0, exports.FuncsApiFp)(this.configuration).unlockFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.unlockFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2452
|
+
}
|
|
2374
2453
|
/**
|
|
2375
2454
|
*
|
|
2376
2455
|
* @summary Update a func
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2530,6 +2530,32 @@ export interface SystemStatusResponse {
|
|
|
2530
2530
|
*/
|
|
2531
2531
|
'API Documentation': string;
|
|
2532
2532
|
}
|
|
2533
|
+
/**
|
|
2534
|
+
*
|
|
2535
|
+
* @export
|
|
2536
|
+
* @interface UnlockFuncV1Request
|
|
2537
|
+
*/
|
|
2538
|
+
export interface UnlockFuncV1Request {
|
|
2539
|
+
/**
|
|
2540
|
+
*
|
|
2541
|
+
* @type {string}
|
|
2542
|
+
* @memberof UnlockFuncV1Request
|
|
2543
|
+
*/
|
|
2544
|
+
'schemaVariantId': string;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @export
|
|
2549
|
+
* @interface UnlockFuncV1Response
|
|
2550
|
+
*/
|
|
2551
|
+
export interface UnlockFuncV1Response {
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @type {string}
|
|
2555
|
+
* @memberof UnlockFuncV1Response
|
|
2556
|
+
*/
|
|
2557
|
+
'unlockedFuncId': string;
|
|
2558
|
+
}
|
|
2533
2559
|
/**
|
|
2534
2560
|
*
|
|
2535
2561
|
* @export
|
|
@@ -2542,6 +2568,12 @@ export interface UnlockedSchemaV1Response {
|
|
|
2542
2568
|
* @memberof UnlockedSchemaV1Response
|
|
2543
2569
|
*/
|
|
2544
2570
|
'schemaId': string;
|
|
2571
|
+
/**
|
|
2572
|
+
*
|
|
2573
|
+
* @type {GetSchemaVariantV1Response}
|
|
2574
|
+
* @memberof UnlockedSchemaV1Response
|
|
2575
|
+
*/
|
|
2576
|
+
'unlockedVariant': GetSchemaVariantV1Response;
|
|
2545
2577
|
/**
|
|
2546
2578
|
*
|
|
2547
2579
|
* @type {string}
|
|
@@ -4802,6 +4834,17 @@ export declare const FuncsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4802
4834
|
* @throws {RequiredError}
|
|
4803
4835
|
*/
|
|
4804
4836
|
getFuncRun: (workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4837
|
+
/**
|
|
4838
|
+
*
|
|
4839
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4840
|
+
* @param {string} workspaceId Workspace identifier
|
|
4841
|
+
* @param {string} changeSetId Change Set identifier
|
|
4842
|
+
* @param {string} funcId Func identifier
|
|
4843
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
4844
|
+
* @param {*} [options] Override http request option.
|
|
4845
|
+
* @throws {RequiredError}
|
|
4846
|
+
*/
|
|
4847
|
+
unlockFunc: (workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4805
4848
|
/**
|
|
4806
4849
|
*
|
|
4807
4850
|
* @summary Update a func
|
|
@@ -4839,6 +4882,17 @@ export declare const FuncsApiFp: (configuration?: Configuration) => {
|
|
|
4839
4882
|
* @throws {RequiredError}
|
|
4840
4883
|
*/
|
|
4841
4884
|
getFuncRun(workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFuncRunV1Response>>;
|
|
4885
|
+
/**
|
|
4886
|
+
*
|
|
4887
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4888
|
+
* @param {string} workspaceId Workspace identifier
|
|
4889
|
+
* @param {string} changeSetId Change Set identifier
|
|
4890
|
+
* @param {string} funcId Func identifier
|
|
4891
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
4892
|
+
* @param {*} [options] Override http request option.
|
|
4893
|
+
* @throws {RequiredError}
|
|
4894
|
+
*/
|
|
4895
|
+
unlockFunc(workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlockFuncV1Response>>;
|
|
4842
4896
|
/**
|
|
4843
4897
|
*
|
|
4844
4898
|
* @summary Update a func
|
|
@@ -4872,6 +4926,14 @@ export declare const FuncsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4872
4926
|
* @throws {RequiredError}
|
|
4873
4927
|
*/
|
|
4874
4928
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
|
|
4929
|
+
/**
|
|
4930
|
+
*
|
|
4931
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4932
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
4933
|
+
* @param {*} [options] Override http request option.
|
|
4934
|
+
* @throws {RequiredError}
|
|
4935
|
+
*/
|
|
4936
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
|
|
4875
4937
|
/**
|
|
4876
4938
|
*
|
|
4877
4939
|
* @summary Update a func
|
|
@@ -4905,6 +4967,15 @@ export interface FuncsApiInterface {
|
|
|
4905
4967
|
* @memberof FuncsApiInterface
|
|
4906
4968
|
*/
|
|
4907
4969
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
4973
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
4974
|
+
* @param {*} [options] Override http request option.
|
|
4975
|
+
* @throws {RequiredError}
|
|
4976
|
+
* @memberof FuncsApiInterface
|
|
4977
|
+
*/
|
|
4978
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
|
|
4908
4979
|
/**
|
|
4909
4980
|
*
|
|
4910
4981
|
* @summary Update a func
|
|
@@ -4965,6 +5036,37 @@ export interface FuncsApiGetFuncRunRequest {
|
|
|
4965
5036
|
*/
|
|
4966
5037
|
readonly funcRunId: string;
|
|
4967
5038
|
}
|
|
5039
|
+
/**
|
|
5040
|
+
* Request parameters for unlockFunc operation in FuncsApi.
|
|
5041
|
+
* @export
|
|
5042
|
+
* @interface FuncsApiUnlockFuncRequest
|
|
5043
|
+
*/
|
|
5044
|
+
export interface FuncsApiUnlockFuncRequest {
|
|
5045
|
+
/**
|
|
5046
|
+
* Workspace identifier
|
|
5047
|
+
* @type {string}
|
|
5048
|
+
* @memberof FuncsApiUnlockFunc
|
|
5049
|
+
*/
|
|
5050
|
+
readonly workspaceId: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* Change Set identifier
|
|
5053
|
+
* @type {string}
|
|
5054
|
+
* @memberof FuncsApiUnlockFunc
|
|
5055
|
+
*/
|
|
5056
|
+
readonly changeSetId: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* Func identifier
|
|
5059
|
+
* @type {string}
|
|
5060
|
+
* @memberof FuncsApiUnlockFunc
|
|
5061
|
+
*/
|
|
5062
|
+
readonly funcId: string;
|
|
5063
|
+
/**
|
|
5064
|
+
*
|
|
5065
|
+
* @type {UnlockFuncV1Request}
|
|
5066
|
+
* @memberof FuncsApiUnlockFunc
|
|
5067
|
+
*/
|
|
5068
|
+
readonly unlockFuncV1Request: UnlockFuncV1Request;
|
|
5069
|
+
}
|
|
4968
5070
|
/**
|
|
4969
5071
|
* Request parameters for updateFunc operation in FuncsApi.
|
|
4970
5072
|
* @export
|
|
@@ -5021,6 +5123,15 @@ export declare class FuncsApi extends BaseAPI implements FuncsApiInterface {
|
|
|
5021
5123
|
* @memberof FuncsApi
|
|
5022
5124
|
*/
|
|
5023
5125
|
getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFuncRunV1Response, any, {}>>;
|
|
5126
|
+
/**
|
|
5127
|
+
*
|
|
5128
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
5129
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
5130
|
+
* @param {*} [options] Override http request option.
|
|
5131
|
+
* @throws {RequiredError}
|
|
5132
|
+
* @memberof FuncsApi
|
|
5133
|
+
*/
|
|
5134
|
+
unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlockFuncV1Response, any, {}>>;
|
|
5024
5135
|
/**
|
|
5025
5136
|
*
|
|
5026
5137
|
* @summary Update a func
|
package/dist/esm/api.js
CHANGED
|
@@ -2183,6 +2183,48 @@ export const FuncsApiAxiosParamCreator = function (configuration) {
|
|
|
2183
2183
|
options: localVarRequestOptions,
|
|
2184
2184
|
};
|
|
2185
2185
|
},
|
|
2186
|
+
/**
|
|
2187
|
+
*
|
|
2188
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2189
|
+
* @param {string} workspaceId Workspace identifier
|
|
2190
|
+
* @param {string} changeSetId Change Set identifier
|
|
2191
|
+
* @param {string} funcId Func identifier
|
|
2192
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
2193
|
+
* @param {*} [options] Override http request option.
|
|
2194
|
+
* @throws {RequiredError}
|
|
2195
|
+
*/
|
|
2196
|
+
unlockFunc: async (workspaceId, changeSetId, funcId, unlockFuncV1Request, options = {}) => {
|
|
2197
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
2198
|
+
assertParamExists('unlockFunc', 'workspaceId', workspaceId);
|
|
2199
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
2200
|
+
assertParamExists('unlockFunc', 'changeSetId', changeSetId);
|
|
2201
|
+
// verify required parameter 'funcId' is not null or undefined
|
|
2202
|
+
assertParamExists('unlockFunc', 'funcId', funcId);
|
|
2203
|
+
// verify required parameter 'unlockFuncV1Request' is not null or undefined
|
|
2204
|
+
assertParamExists('unlockFunc', 'unlockFuncV1Request', unlockFuncV1Request);
|
|
2205
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/funcs/{func_id}/unlock`
|
|
2206
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2207
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
|
|
2208
|
+
.replace(`{${"func_id"}}`, encodeURIComponent(String(funcId)));
|
|
2209
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2210
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2211
|
+
let baseOptions;
|
|
2212
|
+
if (configuration) {
|
|
2213
|
+
baseOptions = configuration.baseOptions;
|
|
2214
|
+
}
|
|
2215
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2216
|
+
const localVarHeaderParameter = {};
|
|
2217
|
+
const localVarQueryParameter = {};
|
|
2218
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2219
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2221
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2222
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unlockFuncV1Request, localVarRequestOptions, configuration);
|
|
2223
|
+
return {
|
|
2224
|
+
url: toPathString(localVarUrlObj),
|
|
2225
|
+
options: localVarRequestOptions,
|
|
2226
|
+
};
|
|
2227
|
+
},
|
|
2186
2228
|
/**
|
|
2187
2229
|
*
|
|
2188
2230
|
* @summary Update a func
|
|
@@ -2264,6 +2306,22 @@ export const FuncsApiFp = function (configuration) {
|
|
|
2264
2306
|
const localVarOperationServerBasePath = operationServerMap['FuncsApi.getFuncRun']?.[localVarOperationServerIndex]?.url;
|
|
2265
2307
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2266
2308
|
},
|
|
2309
|
+
/**
|
|
2310
|
+
*
|
|
2311
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2312
|
+
* @param {string} workspaceId Workspace identifier
|
|
2313
|
+
* @param {string} changeSetId Change Set identifier
|
|
2314
|
+
* @param {string} funcId Func identifier
|
|
2315
|
+
* @param {UnlockFuncV1Request} unlockFuncV1Request
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
*/
|
|
2319
|
+
async unlockFunc(workspaceId, changeSetId, funcId, unlockFuncV1Request, options) {
|
|
2320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlockFunc(workspaceId, changeSetId, funcId, unlockFuncV1Request, options);
|
|
2321
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2322
|
+
const localVarOperationServerBasePath = operationServerMap['FuncsApi.unlockFunc']?.[localVarOperationServerIndex]?.url;
|
|
2323
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2324
|
+
},
|
|
2267
2325
|
/**
|
|
2268
2326
|
*
|
|
2269
2327
|
* @summary Update a func
|
|
@@ -2309,6 +2367,16 @@ export const FuncsApiFactory = function (configuration, basePath, axios) {
|
|
|
2309
2367
|
getFuncRun(requestParameters, options) {
|
|
2310
2368
|
return localVarFp.getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(axios, basePath));
|
|
2311
2369
|
},
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2373
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
*/
|
|
2377
|
+
unlockFunc(requestParameters, options) {
|
|
2378
|
+
return localVarFp.unlockFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.unlockFuncV1Request, options).then((request) => request(axios, basePath));
|
|
2379
|
+
},
|
|
2312
2380
|
/**
|
|
2313
2381
|
*
|
|
2314
2382
|
* @summary Update a func
|
|
@@ -2350,6 +2418,17 @@ export class FuncsApi extends BaseAPI {
|
|
|
2350
2418
|
getFuncRun(requestParameters, options) {
|
|
2351
2419
|
return FuncsApiFp(this.configuration).getFuncRun(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcRunId, options).then((request) => request(this.axios, this.basePath));
|
|
2352
2420
|
}
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
* @summary Unlocks a func - if there\'s already an unlocked function, then we return that
|
|
2424
|
+
* @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
|
|
2425
|
+
* @param {*} [options] Override http request option.
|
|
2426
|
+
* @throws {RequiredError}
|
|
2427
|
+
* @memberof FuncsApi
|
|
2428
|
+
*/
|
|
2429
|
+
unlockFunc(requestParameters, options) {
|
|
2430
|
+
return FuncsApiFp(this.configuration).unlockFunc(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.funcId, requestParameters.unlockFuncV1Request, options).then((request) => request(this.axios, this.basePath));
|
|
2431
|
+
}
|
|
2353
2432
|
/**
|
|
2354
2433
|
*
|
|
2355
2434
|
* @summary Update a func
|
package/package.json
CHANGED