system-initiative-api-client 1.13.0 → 1.14.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 +100 -0
- package/dist/cjs/api.js +68 -0
- package/dist/esm/api.d.ts +100 -0
- package/dist/esm/api.js +68 -0
- package/package.json +1 -1
package/dist/cjs/api.d.ts
CHANGED
|
@@ -2260,6 +2260,43 @@ export interface InitialApiToken {
|
|
|
2260
2260
|
*/
|
|
2261
2261
|
'token': string;
|
|
2262
2262
|
}
|
|
2263
|
+
/**
|
|
2264
|
+
*
|
|
2265
|
+
* @export
|
|
2266
|
+
* @interface InstallFromFileV1Response
|
|
2267
|
+
*/
|
|
2268
|
+
export interface InstallFromFileV1Response {
|
|
2269
|
+
/**
|
|
2270
|
+
*
|
|
2271
|
+
* @type {string}
|
|
2272
|
+
* @memberof InstallFromFileV1Response
|
|
2273
|
+
*/
|
|
2274
|
+
'category': string;
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @type {string}
|
|
2278
|
+
* @memberof InstallFromFileV1Response
|
|
2279
|
+
*/
|
|
2280
|
+
'displayName': string;
|
|
2281
|
+
/**
|
|
2282
|
+
*
|
|
2283
|
+
* @type {string}
|
|
2284
|
+
* @memberof InstallFromFileV1Response
|
|
2285
|
+
*/
|
|
2286
|
+
'schemaId': string;
|
|
2287
|
+
/**
|
|
2288
|
+
*
|
|
2289
|
+
* @type {string}
|
|
2290
|
+
* @memberof InstallFromFileV1Response
|
|
2291
|
+
*/
|
|
2292
|
+
'schemaName': string;
|
|
2293
|
+
/**
|
|
2294
|
+
*
|
|
2295
|
+
* @type {string}
|
|
2296
|
+
* @memberof InstallFromFileV1Response
|
|
2297
|
+
*/
|
|
2298
|
+
'schemaVariantId': string;
|
|
2299
|
+
}
|
|
2263
2300
|
/**
|
|
2264
2301
|
*
|
|
2265
2302
|
* @export
|
|
@@ -6835,6 +6872,15 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
|
|
|
6835
6872
|
* @throws {RequiredError}
|
|
6836
6873
|
*/
|
|
6837
6874
|
getVariant: (workspaceId: string, changeSetId: string, schemaId: string, schemaVariantId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6875
|
+
/**
|
|
6876
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
6877
|
+
* @summary Install a schema from a PkgSpec file
|
|
6878
|
+
* @param {string} workspaceId Workspace identifier
|
|
6879
|
+
* @param {string} changeSetId Change Set identifier
|
|
6880
|
+
* @param {*} [options] Override http request option.
|
|
6881
|
+
* @throws {RequiredError}
|
|
6882
|
+
*/
|
|
6883
|
+
installFromFile: (workspaceId: string, changeSetId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6838
6884
|
/**
|
|
6839
6885
|
*
|
|
6840
6886
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7100,6 +7146,15 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
|
|
|
7100
7146
|
* @throws {RequiredError}
|
|
7101
7147
|
*/
|
|
7102
7148
|
getVariant(workspaceId: string, changeSetId: string, schemaId: string, schemaVariantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSchemaVariantV1Response>>;
|
|
7149
|
+
/**
|
|
7150
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7151
|
+
* @summary Install a schema from a PkgSpec file
|
|
7152
|
+
* @param {string} workspaceId Workspace identifier
|
|
7153
|
+
* @param {string} changeSetId Change Set identifier
|
|
7154
|
+
* @param {*} [options] Override http request option.
|
|
7155
|
+
* @throws {RequiredError}
|
|
7156
|
+
*/
|
|
7157
|
+
installFromFile(workspaceId: string, changeSetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallFromFileV1Response>>;
|
|
7103
7158
|
/**
|
|
7104
7159
|
*
|
|
7105
7160
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7303,6 +7358,14 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
|
|
|
7303
7358
|
* @throws {RequiredError}
|
|
7304
7359
|
*/
|
|
7305
7360
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSchemaVariantV1Response>;
|
|
7361
|
+
/**
|
|
7362
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7363
|
+
* @summary Install a schema from a PkgSpec file
|
|
7364
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
7365
|
+
* @param {*} [options] Override http request option.
|
|
7366
|
+
* @throws {RequiredError}
|
|
7367
|
+
*/
|
|
7368
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallFromFileV1Response>;
|
|
7306
7369
|
/**
|
|
7307
7370
|
*
|
|
7308
7371
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7512,6 +7575,15 @@ export interface SchemasApiInterface {
|
|
|
7512
7575
|
* @memberof SchemasApiInterface
|
|
7513
7576
|
*/
|
|
7514
7577
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSchemaVariantV1Response>;
|
|
7578
|
+
/**
|
|
7579
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7580
|
+
* @summary Install a schema from a PkgSpec file
|
|
7581
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
7582
|
+
* @param {*} [options] Override http request option.
|
|
7583
|
+
* @throws {RequiredError}
|
|
7584
|
+
* @memberof SchemasApiInterface
|
|
7585
|
+
*/
|
|
7586
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallFromFileV1Response>;
|
|
7515
7587
|
/**
|
|
7516
7588
|
*
|
|
7517
7589
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -8164,6 +8236,25 @@ export interface SchemasApiGetVariantRequest {
|
|
|
8164
8236
|
*/
|
|
8165
8237
|
readonly schemaVariantId: string;
|
|
8166
8238
|
}
|
|
8239
|
+
/**
|
|
8240
|
+
* Request parameters for installFromFile operation in SchemasApi.
|
|
8241
|
+
* @export
|
|
8242
|
+
* @interface SchemasApiInstallFromFileRequest
|
|
8243
|
+
*/
|
|
8244
|
+
export interface SchemasApiInstallFromFileRequest {
|
|
8245
|
+
/**
|
|
8246
|
+
* Workspace identifier
|
|
8247
|
+
* @type {string}
|
|
8248
|
+
* @memberof SchemasApiInstallFromFile
|
|
8249
|
+
*/
|
|
8250
|
+
readonly workspaceId: string;
|
|
8251
|
+
/**
|
|
8252
|
+
* Change Set identifier
|
|
8253
|
+
* @type {string}
|
|
8254
|
+
* @memberof SchemasApiInstallFromFile
|
|
8255
|
+
*/
|
|
8256
|
+
readonly changeSetId: string;
|
|
8257
|
+
}
|
|
8167
8258
|
/**
|
|
8168
8259
|
* Request parameters for installSchema operation in SchemasApi.
|
|
8169
8260
|
* @export
|
|
@@ -8476,6 +8567,15 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
|
|
|
8476
8567
|
* @memberof SchemasApi
|
|
8477
8568
|
*/
|
|
8478
8569
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSchemaVariantV1Response, any, {}>>;
|
|
8570
|
+
/**
|
|
8571
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
8572
|
+
* @summary Install a schema from a PkgSpec file
|
|
8573
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
8574
|
+
* @param {*} [options] Override http request option.
|
|
8575
|
+
* @throws {RequiredError}
|
|
8576
|
+
* @memberof SchemasApi
|
|
8577
|
+
*/
|
|
8578
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallFromFileV1Response, any, {}>>;
|
|
8479
8579
|
/**
|
|
8480
8580
|
*
|
|
8481
8581
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
package/dist/cjs/api.js
CHANGED
|
@@ -3942,6 +3942,39 @@ const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
3942
3942
|
options: localVarRequestOptions,
|
|
3943
3943
|
};
|
|
3944
3944
|
},
|
|
3945
|
+
/**
|
|
3946
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
3947
|
+
* @summary Install a schema from a PkgSpec file
|
|
3948
|
+
* @param {string} workspaceId Workspace identifier
|
|
3949
|
+
* @param {string} changeSetId Change Set identifier
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
*/
|
|
3953
|
+
installFromFile: async (workspaceId, changeSetId, options = {}) => {
|
|
3954
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3955
|
+
(0, common_1.assertParamExists)('installFromFile', 'workspaceId', workspaceId);
|
|
3956
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3957
|
+
(0, common_1.assertParamExists)('installFromFile', 'changeSetId', changeSetId);
|
|
3958
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/install_from_file`
|
|
3959
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3960
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
3961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3962
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3963
|
+
let baseOptions;
|
|
3964
|
+
if (configuration) {
|
|
3965
|
+
baseOptions = configuration.baseOptions;
|
|
3966
|
+
}
|
|
3967
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3968
|
+
const localVarHeaderParameter = {};
|
|
3969
|
+
const localVarQueryParameter = {};
|
|
3970
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3972
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3973
|
+
return {
|
|
3974
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3975
|
+
options: localVarRequestOptions,
|
|
3976
|
+
};
|
|
3977
|
+
},
|
|
3945
3978
|
/**
|
|
3946
3979
|
*
|
|
3947
3980
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4447,6 +4480,20 @@ const SchemasApiFp = function (configuration) {
|
|
|
4447
4480
|
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
|
|
4448
4481
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4449
4482
|
},
|
|
4483
|
+
/**
|
|
4484
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
4485
|
+
* @summary Install a schema from a PkgSpec file
|
|
4486
|
+
* @param {string} workspaceId Workspace identifier
|
|
4487
|
+
* @param {string} changeSetId Change Set identifier
|
|
4488
|
+
* @param {*} [options] Override http request option.
|
|
4489
|
+
* @throws {RequiredError}
|
|
4490
|
+
*/
|
|
4491
|
+
async installFromFile(workspaceId, changeSetId, options) {
|
|
4492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installFromFile(workspaceId, changeSetId, options);
|
|
4493
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4494
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.installFromFile']?.[localVarOperationServerIndex]?.url;
|
|
4495
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4496
|
+
},
|
|
4450
4497
|
/**
|
|
4451
4498
|
*
|
|
4452
4499
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4715,6 +4762,16 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
4715
4762
|
getVariant(requestParameters, options) {
|
|
4716
4763
|
return localVarFp.getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(axios, basePath));
|
|
4717
4764
|
},
|
|
4765
|
+
/**
|
|
4766
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
4767
|
+
* @summary Install a schema from a PkgSpec file
|
|
4768
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
4769
|
+
* @param {*} [options] Override http request option.
|
|
4770
|
+
* @throws {RequiredError}
|
|
4771
|
+
*/
|
|
4772
|
+
installFromFile(requestParameters, options) {
|
|
4773
|
+
return localVarFp.installFromFile(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
|
|
4774
|
+
},
|
|
4718
4775
|
/**
|
|
4719
4776
|
*
|
|
4720
4777
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4973,6 +5030,17 @@ class SchemasApi extends base_1.BaseAPI {
|
|
|
4973
5030
|
getVariant(requestParameters, options) {
|
|
4974
5031
|
return (0, exports.SchemasApiFp)(this.configuration).getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(this.axios, this.basePath));
|
|
4975
5032
|
}
|
|
5033
|
+
/**
|
|
5034
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
5035
|
+
* @summary Install a schema from a PkgSpec file
|
|
5036
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
5037
|
+
* @param {*} [options] Override http request option.
|
|
5038
|
+
* @throws {RequiredError}
|
|
5039
|
+
* @memberof SchemasApi
|
|
5040
|
+
*/
|
|
5041
|
+
installFromFile(requestParameters, options) {
|
|
5042
|
+
return (0, exports.SchemasApiFp)(this.configuration).installFromFile(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
|
|
5043
|
+
}
|
|
4976
5044
|
/**
|
|
4977
5045
|
*
|
|
4978
5046
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2260,6 +2260,43 @@ export interface InitialApiToken {
|
|
|
2260
2260
|
*/
|
|
2261
2261
|
'token': string;
|
|
2262
2262
|
}
|
|
2263
|
+
/**
|
|
2264
|
+
*
|
|
2265
|
+
* @export
|
|
2266
|
+
* @interface InstallFromFileV1Response
|
|
2267
|
+
*/
|
|
2268
|
+
export interface InstallFromFileV1Response {
|
|
2269
|
+
/**
|
|
2270
|
+
*
|
|
2271
|
+
* @type {string}
|
|
2272
|
+
* @memberof InstallFromFileV1Response
|
|
2273
|
+
*/
|
|
2274
|
+
'category': string;
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @type {string}
|
|
2278
|
+
* @memberof InstallFromFileV1Response
|
|
2279
|
+
*/
|
|
2280
|
+
'displayName': string;
|
|
2281
|
+
/**
|
|
2282
|
+
*
|
|
2283
|
+
* @type {string}
|
|
2284
|
+
* @memberof InstallFromFileV1Response
|
|
2285
|
+
*/
|
|
2286
|
+
'schemaId': string;
|
|
2287
|
+
/**
|
|
2288
|
+
*
|
|
2289
|
+
* @type {string}
|
|
2290
|
+
* @memberof InstallFromFileV1Response
|
|
2291
|
+
*/
|
|
2292
|
+
'schemaName': string;
|
|
2293
|
+
/**
|
|
2294
|
+
*
|
|
2295
|
+
* @type {string}
|
|
2296
|
+
* @memberof InstallFromFileV1Response
|
|
2297
|
+
*/
|
|
2298
|
+
'schemaVariantId': string;
|
|
2299
|
+
}
|
|
2263
2300
|
/**
|
|
2264
2301
|
*
|
|
2265
2302
|
* @export
|
|
@@ -6835,6 +6872,15 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
|
|
|
6835
6872
|
* @throws {RequiredError}
|
|
6836
6873
|
*/
|
|
6837
6874
|
getVariant: (workspaceId: string, changeSetId: string, schemaId: string, schemaVariantId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6875
|
+
/**
|
|
6876
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
6877
|
+
* @summary Install a schema from a PkgSpec file
|
|
6878
|
+
* @param {string} workspaceId Workspace identifier
|
|
6879
|
+
* @param {string} changeSetId Change Set identifier
|
|
6880
|
+
* @param {*} [options] Override http request option.
|
|
6881
|
+
* @throws {RequiredError}
|
|
6882
|
+
*/
|
|
6883
|
+
installFromFile: (workspaceId: string, changeSetId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6838
6884
|
/**
|
|
6839
6885
|
*
|
|
6840
6886
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7100,6 +7146,15 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
|
|
|
7100
7146
|
* @throws {RequiredError}
|
|
7101
7147
|
*/
|
|
7102
7148
|
getVariant(workspaceId: string, changeSetId: string, schemaId: string, schemaVariantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSchemaVariantV1Response>>;
|
|
7149
|
+
/**
|
|
7150
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7151
|
+
* @summary Install a schema from a PkgSpec file
|
|
7152
|
+
* @param {string} workspaceId Workspace identifier
|
|
7153
|
+
* @param {string} changeSetId Change Set identifier
|
|
7154
|
+
* @param {*} [options] Override http request option.
|
|
7155
|
+
* @throws {RequiredError}
|
|
7156
|
+
*/
|
|
7157
|
+
installFromFile(workspaceId: string, changeSetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstallFromFileV1Response>>;
|
|
7103
7158
|
/**
|
|
7104
7159
|
*
|
|
7105
7160
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7303,6 +7358,14 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
|
|
|
7303
7358
|
* @throws {RequiredError}
|
|
7304
7359
|
*/
|
|
7305
7360
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSchemaVariantV1Response>;
|
|
7361
|
+
/**
|
|
7362
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7363
|
+
* @summary Install a schema from a PkgSpec file
|
|
7364
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
7365
|
+
* @param {*} [options] Override http request option.
|
|
7366
|
+
* @throws {RequiredError}
|
|
7367
|
+
*/
|
|
7368
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallFromFileV1Response>;
|
|
7306
7369
|
/**
|
|
7307
7370
|
*
|
|
7308
7371
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -7512,6 +7575,15 @@ export interface SchemasApiInterface {
|
|
|
7512
7575
|
* @memberof SchemasApiInterface
|
|
7513
7576
|
*/
|
|
7514
7577
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSchemaVariantV1Response>;
|
|
7578
|
+
/**
|
|
7579
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
7580
|
+
* @summary Install a schema from a PkgSpec file
|
|
7581
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
7582
|
+
* @param {*} [options] Override http request option.
|
|
7583
|
+
* @throws {RequiredError}
|
|
7584
|
+
* @memberof SchemasApiInterface
|
|
7585
|
+
*/
|
|
7586
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<InstallFromFileV1Response>;
|
|
7515
7587
|
/**
|
|
7516
7588
|
*
|
|
7517
7589
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -8164,6 +8236,25 @@ export interface SchemasApiGetVariantRequest {
|
|
|
8164
8236
|
*/
|
|
8165
8237
|
readonly schemaVariantId: string;
|
|
8166
8238
|
}
|
|
8239
|
+
/**
|
|
8240
|
+
* Request parameters for installFromFile operation in SchemasApi.
|
|
8241
|
+
* @export
|
|
8242
|
+
* @interface SchemasApiInstallFromFileRequest
|
|
8243
|
+
*/
|
|
8244
|
+
export interface SchemasApiInstallFromFileRequest {
|
|
8245
|
+
/**
|
|
8246
|
+
* Workspace identifier
|
|
8247
|
+
* @type {string}
|
|
8248
|
+
* @memberof SchemasApiInstallFromFile
|
|
8249
|
+
*/
|
|
8250
|
+
readonly workspaceId: string;
|
|
8251
|
+
/**
|
|
8252
|
+
* Change Set identifier
|
|
8253
|
+
* @type {string}
|
|
8254
|
+
* @memberof SchemasApiInstallFromFile
|
|
8255
|
+
*/
|
|
8256
|
+
readonly changeSetId: string;
|
|
8257
|
+
}
|
|
8167
8258
|
/**
|
|
8168
8259
|
* Request parameters for installSchema operation in SchemasApi.
|
|
8169
8260
|
* @export
|
|
@@ -8476,6 +8567,15 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
|
|
|
8476
8567
|
* @memberof SchemasApi
|
|
8477
8568
|
*/
|
|
8478
8569
|
getVariant(requestParameters: SchemasApiGetVariantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSchemaVariantV1Response, any, {}>>;
|
|
8570
|
+
/**
|
|
8571
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
8572
|
+
* @summary Install a schema from a PkgSpec file
|
|
8573
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
8574
|
+
* @param {*} [options] Override http request option.
|
|
8575
|
+
* @throws {RequiredError}
|
|
8576
|
+
* @memberof SchemasApi
|
|
8577
|
+
*/
|
|
8578
|
+
installFromFile(requestParameters: SchemasApiInstallFromFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InstallFromFileV1Response, any, {}>>;
|
|
8479
8579
|
/**
|
|
8480
8580
|
*
|
|
8481
8581
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
package/dist/esm/api.js
CHANGED
|
@@ -3903,6 +3903,39 @@ export const SchemasApiAxiosParamCreator = function (configuration) {
|
|
|
3903
3903
|
options: localVarRequestOptions,
|
|
3904
3904
|
};
|
|
3905
3905
|
},
|
|
3906
|
+
/**
|
|
3907
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
3908
|
+
* @summary Install a schema from a PkgSpec file
|
|
3909
|
+
* @param {string} workspaceId Workspace identifier
|
|
3910
|
+
* @param {string} changeSetId Change Set identifier
|
|
3911
|
+
* @param {*} [options] Override http request option.
|
|
3912
|
+
* @throws {RequiredError}
|
|
3913
|
+
*/
|
|
3914
|
+
installFromFile: async (workspaceId, changeSetId, options = {}) => {
|
|
3915
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3916
|
+
assertParamExists('installFromFile', 'workspaceId', workspaceId);
|
|
3917
|
+
// verify required parameter 'changeSetId' is not null or undefined
|
|
3918
|
+
assertParamExists('installFromFile', 'changeSetId', changeSetId);
|
|
3919
|
+
const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/install_from_file`
|
|
3920
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
3921
|
+
.replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
|
|
3922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3923
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3924
|
+
let baseOptions;
|
|
3925
|
+
if (configuration) {
|
|
3926
|
+
baseOptions = configuration.baseOptions;
|
|
3927
|
+
}
|
|
3928
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3929
|
+
const localVarHeaderParameter = {};
|
|
3930
|
+
const localVarQueryParameter = {};
|
|
3931
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3932
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3933
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3934
|
+
return {
|
|
3935
|
+
url: toPathString(localVarUrlObj),
|
|
3936
|
+
options: localVarRequestOptions,
|
|
3937
|
+
};
|
|
3938
|
+
},
|
|
3906
3939
|
/**
|
|
3907
3940
|
*
|
|
3908
3941
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4407,6 +4440,20 @@ export const SchemasApiFp = function (configuration) {
|
|
|
4407
4440
|
const localVarOperationServerBasePath = operationServerMap['SchemasApi.getVariant']?.[localVarOperationServerIndex]?.url;
|
|
4408
4441
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4409
4442
|
},
|
|
4443
|
+
/**
|
|
4444
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
4445
|
+
* @summary Install a schema from a PkgSpec file
|
|
4446
|
+
* @param {string} workspaceId Workspace identifier
|
|
4447
|
+
* @param {string} changeSetId Change Set identifier
|
|
4448
|
+
* @param {*} [options] Override http request option.
|
|
4449
|
+
* @throws {RequiredError}
|
|
4450
|
+
*/
|
|
4451
|
+
async installFromFile(workspaceId, changeSetId, options) {
|
|
4452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installFromFile(workspaceId, changeSetId, options);
|
|
4453
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4454
|
+
const localVarOperationServerBasePath = operationServerMap['SchemasApi.installFromFile']?.[localVarOperationServerIndex]?.url;
|
|
4455
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4456
|
+
},
|
|
4410
4457
|
/**
|
|
4411
4458
|
*
|
|
4412
4459
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4674,6 +4721,16 @@ export const SchemasApiFactory = function (configuration, basePath, axios) {
|
|
|
4674
4721
|
getVariant(requestParameters, options) {
|
|
4675
4722
|
return localVarFp.getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(axios, basePath));
|
|
4676
4723
|
},
|
|
4724
|
+
/**
|
|
4725
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
4726
|
+
* @summary Install a schema from a PkgSpec file
|
|
4727
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
4728
|
+
* @param {*} [options] Override http request option.
|
|
4729
|
+
* @throws {RequiredError}
|
|
4730
|
+
*/
|
|
4731
|
+
installFromFile(requestParameters, options) {
|
|
4732
|
+
return localVarFp.installFromFile(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(axios, basePath));
|
|
4733
|
+
},
|
|
4677
4734
|
/**
|
|
4678
4735
|
*
|
|
4679
4736
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
|
@@ -4931,6 +4988,17 @@ export class SchemasApi extends BaseAPI {
|
|
|
4931
4988
|
getVariant(requestParameters, options) {
|
|
4932
4989
|
return SchemasApiFp(this.configuration).getVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, options).then((request) => request(this.axios, this.basePath));
|
|
4933
4990
|
}
|
|
4991
|
+
/**
|
|
4992
|
+
* Accepts a multipart form with a `pkg_spec` field containing the JSON PkgSpec. If the schema already exists, it will be upgraded with the new variant.
|
|
4993
|
+
* @summary Install a schema from a PkgSpec file
|
|
4994
|
+
* @param {SchemasApiInstallFromFileRequest} requestParameters Request parameters.
|
|
4995
|
+
* @param {*} [options] Override http request option.
|
|
4996
|
+
* @throws {RequiredError}
|
|
4997
|
+
* @memberof SchemasApi
|
|
4998
|
+
*/
|
|
4999
|
+
installFromFile(requestParameters, options) {
|
|
5000
|
+
return SchemasApiFp(this.configuration).installFromFile(requestParameters.workspaceId, requestParameters.changeSetId, options).then((request) => request(this.axios, this.basePath));
|
|
5001
|
+
}
|
|
4934
5002
|
/**
|
|
4935
5003
|
*
|
|
4936
5004
|
* @summary Installs a schema - if there\'s an installed schema, it will return that schema detail
|
package/package.json
CHANGED