system-initiative-api-client 1.3.1 → 1.3.2

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 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
@@ -4802,6 +4828,17 @@ export declare const FuncsApiAxiosParamCreator: (configuration?: Configuration)
4802
4828
  * @throws {RequiredError}
4803
4829
  */
4804
4830
  getFuncRun: (workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4831
+ /**
4832
+ *
4833
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4834
+ * @param {string} workspaceId Workspace identifier
4835
+ * @param {string} changeSetId Change Set identifier
4836
+ * @param {string} funcId Func identifier
4837
+ * @param {UnlockFuncV1Request} unlockFuncV1Request
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ */
4841
+ unlockFunc: (workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4805
4842
  /**
4806
4843
  *
4807
4844
  * @summary Update a func
@@ -4839,6 +4876,17 @@ export declare const FuncsApiFp: (configuration?: Configuration) => {
4839
4876
  * @throws {RequiredError}
4840
4877
  */
4841
4878
  getFuncRun(workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFuncRunV1Response>>;
4879
+ /**
4880
+ *
4881
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4882
+ * @param {string} workspaceId Workspace identifier
4883
+ * @param {string} changeSetId Change Set identifier
4884
+ * @param {string} funcId Func identifier
4885
+ * @param {UnlockFuncV1Request} unlockFuncV1Request
4886
+ * @param {*} [options] Override http request option.
4887
+ * @throws {RequiredError}
4888
+ */
4889
+ unlockFunc(workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlockFuncV1Response>>;
4842
4890
  /**
4843
4891
  *
4844
4892
  * @summary Update a func
@@ -4872,6 +4920,14 @@ export declare const FuncsApiFactory: (configuration?: Configuration, basePath?:
4872
4920
  * @throws {RequiredError}
4873
4921
  */
4874
4922
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
4923
+ /**
4924
+ *
4925
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4926
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
4927
+ * @param {*} [options] Override http request option.
4928
+ * @throws {RequiredError}
4929
+ */
4930
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
4875
4931
  /**
4876
4932
  *
4877
4933
  * @summary Update a func
@@ -4905,6 +4961,15 @@ export interface FuncsApiInterface {
4905
4961
  * @memberof FuncsApiInterface
4906
4962
  */
4907
4963
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
4964
+ /**
4965
+ *
4966
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4967
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ * @memberof FuncsApiInterface
4971
+ */
4972
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
4908
4973
  /**
4909
4974
  *
4910
4975
  * @summary Update a func
@@ -4965,6 +5030,37 @@ export interface FuncsApiGetFuncRunRequest {
4965
5030
  */
4966
5031
  readonly funcRunId: string;
4967
5032
  }
5033
+ /**
5034
+ * Request parameters for unlockFunc operation in FuncsApi.
5035
+ * @export
5036
+ * @interface FuncsApiUnlockFuncRequest
5037
+ */
5038
+ export interface FuncsApiUnlockFuncRequest {
5039
+ /**
5040
+ * Workspace identifier
5041
+ * @type {string}
5042
+ * @memberof FuncsApiUnlockFunc
5043
+ */
5044
+ readonly workspaceId: string;
5045
+ /**
5046
+ * Change Set identifier
5047
+ * @type {string}
5048
+ * @memberof FuncsApiUnlockFunc
5049
+ */
5050
+ readonly changeSetId: string;
5051
+ /**
5052
+ * Func identifier
5053
+ * @type {string}
5054
+ * @memberof FuncsApiUnlockFunc
5055
+ */
5056
+ readonly funcId: string;
5057
+ /**
5058
+ *
5059
+ * @type {UnlockFuncV1Request}
5060
+ * @memberof FuncsApiUnlockFunc
5061
+ */
5062
+ readonly unlockFuncV1Request: UnlockFuncV1Request;
5063
+ }
4968
5064
  /**
4969
5065
  * Request parameters for updateFunc operation in FuncsApi.
4970
5066
  * @export
@@ -5021,6 +5117,15 @@ export declare class FuncsApi extends BaseAPI implements FuncsApiInterface {
5021
5117
  * @memberof FuncsApi
5022
5118
  */
5023
5119
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFuncRunV1Response, any, {}>>;
5120
+ /**
5121
+ *
5122
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
5123
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
5124
+ * @param {*} [options] Override http request option.
5125
+ * @throws {RequiredError}
5126
+ * @memberof FuncsApi
5127
+ */
5128
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlockFuncV1Response, any, {}>>;
5024
5129
  /**
5025
5130
  *
5026
5131
  * @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
@@ -4802,6 +4828,17 @@ export declare const FuncsApiAxiosParamCreator: (configuration?: Configuration)
4802
4828
  * @throws {RequiredError}
4803
4829
  */
4804
4830
  getFuncRun: (workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4831
+ /**
4832
+ *
4833
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4834
+ * @param {string} workspaceId Workspace identifier
4835
+ * @param {string} changeSetId Change Set identifier
4836
+ * @param {string} funcId Func identifier
4837
+ * @param {UnlockFuncV1Request} unlockFuncV1Request
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ */
4841
+ unlockFunc: (workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4805
4842
  /**
4806
4843
  *
4807
4844
  * @summary Update a func
@@ -4839,6 +4876,17 @@ export declare const FuncsApiFp: (configuration?: Configuration) => {
4839
4876
  * @throws {RequiredError}
4840
4877
  */
4841
4878
  getFuncRun(workspaceId: string, changeSetId: string, funcRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFuncRunV1Response>>;
4879
+ /**
4880
+ *
4881
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4882
+ * @param {string} workspaceId Workspace identifier
4883
+ * @param {string} changeSetId Change Set identifier
4884
+ * @param {string} funcId Func identifier
4885
+ * @param {UnlockFuncV1Request} unlockFuncV1Request
4886
+ * @param {*} [options] Override http request option.
4887
+ * @throws {RequiredError}
4888
+ */
4889
+ unlockFunc(workspaceId: string, changeSetId: string, funcId: string, unlockFuncV1Request: UnlockFuncV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlockFuncV1Response>>;
4842
4890
  /**
4843
4891
  *
4844
4892
  * @summary Update a func
@@ -4872,6 +4920,14 @@ export declare const FuncsApiFactory: (configuration?: Configuration, basePath?:
4872
4920
  * @throws {RequiredError}
4873
4921
  */
4874
4922
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
4923
+ /**
4924
+ *
4925
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4926
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
4927
+ * @param {*} [options] Override http request option.
4928
+ * @throws {RequiredError}
4929
+ */
4930
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
4875
4931
  /**
4876
4932
  *
4877
4933
  * @summary Update a func
@@ -4905,6 +4961,15 @@ export interface FuncsApiInterface {
4905
4961
  * @memberof FuncsApiInterface
4906
4962
  */
4907
4963
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetFuncRunV1Response>;
4964
+ /**
4965
+ *
4966
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
4967
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ * @memberof FuncsApiInterface
4971
+ */
4972
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnlockFuncV1Response>;
4908
4973
  /**
4909
4974
  *
4910
4975
  * @summary Update a func
@@ -4965,6 +5030,37 @@ export interface FuncsApiGetFuncRunRequest {
4965
5030
  */
4966
5031
  readonly funcRunId: string;
4967
5032
  }
5033
+ /**
5034
+ * Request parameters for unlockFunc operation in FuncsApi.
5035
+ * @export
5036
+ * @interface FuncsApiUnlockFuncRequest
5037
+ */
5038
+ export interface FuncsApiUnlockFuncRequest {
5039
+ /**
5040
+ * Workspace identifier
5041
+ * @type {string}
5042
+ * @memberof FuncsApiUnlockFunc
5043
+ */
5044
+ readonly workspaceId: string;
5045
+ /**
5046
+ * Change Set identifier
5047
+ * @type {string}
5048
+ * @memberof FuncsApiUnlockFunc
5049
+ */
5050
+ readonly changeSetId: string;
5051
+ /**
5052
+ * Func identifier
5053
+ * @type {string}
5054
+ * @memberof FuncsApiUnlockFunc
5055
+ */
5056
+ readonly funcId: string;
5057
+ /**
5058
+ *
5059
+ * @type {UnlockFuncV1Request}
5060
+ * @memberof FuncsApiUnlockFunc
5061
+ */
5062
+ readonly unlockFuncV1Request: UnlockFuncV1Request;
5063
+ }
4968
5064
  /**
4969
5065
  * Request parameters for updateFunc operation in FuncsApi.
4970
5066
  * @export
@@ -5021,6 +5117,15 @@ export declare class FuncsApi extends BaseAPI implements FuncsApiInterface {
5021
5117
  * @memberof FuncsApi
5022
5118
  */
5023
5119
  getFuncRun(requestParameters: FuncsApiGetFuncRunRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFuncRunV1Response, any, {}>>;
5120
+ /**
5121
+ *
5122
+ * @summary Unlocks a func - if there\'s already an unlocked function, then we return that
5123
+ * @param {FuncsApiUnlockFuncRequest} requestParameters Request parameters.
5124
+ * @param {*} [options] Override http request option.
5125
+ * @throws {RequiredError}
5126
+ * @memberof FuncsApi
5127
+ */
5128
+ unlockFunc(requestParameters: FuncsApiUnlockFuncRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlockFuncV1Response, any, {}>>;
5024
5129
  /**
5025
5130
  *
5026
5131
  * @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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {