system-initiative-api-client 1.7.0 → 1.8.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 CHANGED
@@ -1568,6 +1568,31 @@ export interface GetChangeSetV1Response {
1568
1568
  */
1569
1569
  'changeSet': ChangeSetViewV1;
1570
1570
  }
1571
+ /**
1572
+ *
1573
+ * @export
1574
+ * @interface GetComponentResourceDataV1Response
1575
+ */
1576
+ export interface GetComponentResourceDataV1Response {
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof GetComponentResourceDataV1Response
1581
+ */
1582
+ 'last_synced': string;
1583
+ /**
1584
+ *
1585
+ * @type {any}
1586
+ * @memberof GetComponentResourceDataV1Response
1587
+ */
1588
+ 'payload'?: any;
1589
+ /**
1590
+ *
1591
+ * @type {string}
1592
+ * @memberof GetComponentResourceDataV1Response
1593
+ */
1594
+ 'status': string;
1595
+ }
1571
1596
  /**
1572
1597
  *
1573
1598
  * @export
@@ -4081,6 +4106,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
4081
4106
  * @throws {RequiredError}
4082
4107
  */
4083
4108
  getComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4109
+ /**
4110
+ *
4111
+ * @summary Get a component resource by component Id
4112
+ * @param {string} workspaceId Workspace identifier
4113
+ * @param {string} changeSetId Change Set identifier
4114
+ * @param {string} componentId Component identifier
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ getComponentResource: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4084
4119
  /**
4085
4120
  *
4086
4121
  * @summary List all components
@@ -4254,6 +4289,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
4254
4289
  * @throws {RequiredError}
4255
4290
  */
4256
4291
  getComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetComponentV1Response>>;
4292
+ /**
4293
+ *
4294
+ * @summary Get a component resource by component Id
4295
+ * @param {string} workspaceId Workspace identifier
4296
+ * @param {string} changeSetId Change Set identifier
4297
+ * @param {string} componentId Component identifier
4298
+ * @param {*} [options] Override http request option.
4299
+ * @throws {RequiredError}
4300
+ */
4301
+ getComponentResource(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetComponentResourceDataV1Response>>;
4257
4302
  /**
4258
4303
  *
4259
4304
  * @summary List all components
@@ -4404,6 +4449,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
4404
4449
  * @throws {RequiredError}
4405
4450
  */
4406
4451
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentV1Response>;
4452
+ /**
4453
+ *
4454
+ * @summary Get a component resource by component Id
4455
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
4456
+ * @param {*} [options] Override http request option.
4457
+ * @throws {RequiredError}
4458
+ */
4459
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentResourceDataV1Response>;
4407
4460
  /**
4408
4461
  *
4409
4462
  * @summary List all components
@@ -4549,6 +4602,15 @@ export interface ComponentsApiInterface {
4549
4602
  * @memberof ComponentsApiInterface
4550
4603
  */
4551
4604
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentV1Response>;
4605
+ /**
4606
+ *
4607
+ * @summary Get a component resource by component Id
4608
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
4609
+ * @param {*} [options] Override http request option.
4610
+ * @throws {RequiredError}
4611
+ * @memberof ComponentsApiInterface
4612
+ */
4613
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentResourceDataV1Response>;
4552
4614
  /**
4553
4615
  *
4554
4616
  * @summary List all components
@@ -4872,6 +4934,31 @@ export interface ComponentsApiGetComponentRequest {
4872
4934
  */
4873
4935
  readonly componentId: string;
4874
4936
  }
4937
+ /**
4938
+ * Request parameters for getComponentResource operation in ComponentsApi.
4939
+ * @export
4940
+ * @interface ComponentsApiGetComponentResourceRequest
4941
+ */
4942
+ export interface ComponentsApiGetComponentResourceRequest {
4943
+ /**
4944
+ * Workspace identifier
4945
+ * @type {string}
4946
+ * @memberof ComponentsApiGetComponentResource
4947
+ */
4948
+ readonly workspaceId: string;
4949
+ /**
4950
+ * Change Set identifier
4951
+ * @type {string}
4952
+ * @memberof ComponentsApiGetComponentResource
4953
+ */
4954
+ readonly changeSetId: string;
4955
+ /**
4956
+ * Component identifier
4957
+ * @type {string}
4958
+ * @memberof ComponentsApiGetComponentResource
4959
+ */
4960
+ readonly componentId: string;
4961
+ }
4875
4962
  /**
4876
4963
  * Request parameters for listComponents operation in ComponentsApi.
4877
4964
  * @export
@@ -5143,6 +5230,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
5143
5230
  * @memberof ComponentsApi
5144
5231
  */
5145
5232
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetComponentV1Response, any, {}>>;
5233
+ /**
5234
+ *
5235
+ * @summary Get a component resource by component Id
5236
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
5237
+ * @param {*} [options] Override http request option.
5238
+ * @throws {RequiredError}
5239
+ * @memberof ComponentsApi
5240
+ */
5241
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetComponentResourceDataV1Response, any, {}>>;
5146
5242
  /**
5147
5243
  *
5148
5244
  * @summary List all components
@@ -5900,7 +5996,7 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
5900
5996
  listSchemas: (workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5901
5997
  /**
5902
5998
  *
5903
- * @summary Complex search for shemas
5999
+ * @summary Complex search for schemas
5904
6000
  * @param {string} workspaceId Workspace identifier
5905
6001
  * @param {string} changeSetId Change Set identifier
5906
6002
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -6131,7 +6227,7 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
6131
6227
  listSchemas(workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSchemaV1Response>>;
6132
6228
  /**
6133
6229
  *
6134
- * @summary Complex search for shemas
6230
+ * @summary Complex search for schemas
6135
6231
  * @param {string} workspaceId Workspace identifier
6136
6232
  * @param {string} changeSetId Change Set identifier
6137
6233
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -6305,7 +6401,7 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
6305
6401
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
6306
6402
  /**
6307
6403
  *
6308
- * @summary Complex search for shemas
6404
+ * @summary Complex search for schemas
6309
6405
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6310
6406
  * @param {*} [options] Override http request option.
6311
6407
  * @throws {RequiredError}
@@ -6489,7 +6585,7 @@ export interface SchemasApiInterface {
6489
6585
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
6490
6586
  /**
6491
6587
  *
6492
- * @summary Complex search for shemas
6588
+ * @summary Complex search for schemas
6493
6589
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6494
6590
  * @param {*} [options] Override http request option.
6495
6591
  * @throws {RequiredError}
@@ -7327,7 +7423,7 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
7327
7423
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSchemaV1Response, any, {}>>;
7328
7424
  /**
7329
7425
  *
7330
- * @summary Complex search for shemas
7426
+ * @summary Complex search for schemas
7331
7427
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
7332
7428
  * @param {*} [options] Override http request option.
7333
7429
  * @throws {RequiredError}
package/dist/cjs/api.js CHANGED
@@ -1339,6 +1339,43 @@ const ComponentsApiAxiosParamCreator = function (configuration) {
1339
1339
  options: localVarRequestOptions,
1340
1340
  };
1341
1341
  },
1342
+ /**
1343
+ *
1344
+ * @summary Get a component resource by component Id
1345
+ * @param {string} workspaceId Workspace identifier
1346
+ * @param {string} changeSetId Change Set identifier
1347
+ * @param {string} componentId Component identifier
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ getComponentResource: async (workspaceId, changeSetId, componentId, options = {}) => {
1352
+ // verify required parameter 'workspaceId' is not null or undefined
1353
+ (0, common_1.assertParamExists)('getComponentResource', 'workspaceId', workspaceId);
1354
+ // verify required parameter 'changeSetId' is not null or undefined
1355
+ (0, common_1.assertParamExists)('getComponentResource', 'changeSetId', changeSetId);
1356
+ // verify required parameter 'componentId' is not null or undefined
1357
+ (0, common_1.assertParamExists)('getComponentResource', 'componentId', componentId);
1358
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/resource`
1359
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1360
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1361
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1363
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1364
+ let baseOptions;
1365
+ if (configuration) {
1366
+ baseOptions = configuration.baseOptions;
1367
+ }
1368
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1369
+ const localVarHeaderParameter = {};
1370
+ const localVarQueryParameter = {};
1371
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1373
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1374
+ return {
1375
+ url: (0, common_1.toPathString)(localVarUrlObj),
1376
+ options: localVarRequestOptions,
1377
+ };
1378
+ },
1342
1379
  /**
1343
1380
  *
1344
1381
  * @summary List all components
@@ -1743,6 +1780,21 @@ const ComponentsApiFp = function (configuration) {
1743
1780
  const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.getComponent']?.[localVarOperationServerIndex]?.url;
1744
1781
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1745
1782
  },
1783
+ /**
1784
+ *
1785
+ * @summary Get a component resource by component Id
1786
+ * @param {string} workspaceId Workspace identifier
1787
+ * @param {string} changeSetId Change Set identifier
1788
+ * @param {string} componentId Component identifier
1789
+ * @param {*} [options] Override http request option.
1790
+ * @throws {RequiredError}
1791
+ */
1792
+ async getComponentResource(workspaceId, changeSetId, componentId, options) {
1793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComponentResource(workspaceId, changeSetId, componentId, options);
1794
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1795
+ const localVarOperationServerBasePath = base_1.operationServerMap['ComponentsApi.getComponentResource']?.[localVarOperationServerIndex]?.url;
1796
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1797
+ },
1746
1798
  /**
1747
1799
  *
1748
1800
  * @summary List all components
@@ -1947,6 +1999,16 @@ const ComponentsApiFactory = function (configuration, basePath, axios) {
1947
1999
  getComponent(requestParameters, options) {
1948
2000
  return localVarFp.getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1949
2001
  },
2002
+ /**
2003
+ *
2004
+ * @summary Get a component resource by component Id
2005
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
2006
+ * @param {*} [options] Override http request option.
2007
+ * @throws {RequiredError}
2008
+ */
2009
+ getComponentResource(requestParameters, options) {
2010
+ return localVarFp.getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
2011
+ },
1950
2012
  /**
1951
2013
  *
1952
2014
  * @summary List all components
@@ -2127,6 +2189,17 @@ class ComponentsApi extends base_1.BaseAPI {
2127
2189
  getComponent(requestParameters, options) {
2128
2190
  return (0, exports.ComponentsApiFp)(this.configuration).getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2129
2191
  }
2192
+ /**
2193
+ *
2194
+ * @summary Get a component resource by component Id
2195
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
2196
+ * @param {*} [options] Override http request option.
2197
+ * @throws {RequiredError}
2198
+ * @memberof ComponentsApi
2199
+ */
2200
+ getComponentResource(requestParameters, options) {
2201
+ return (0, exports.ComponentsApiFp)(this.configuration).getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2202
+ }
2130
2203
  /**
2131
2204
  *
2132
2205
  * @summary List all components
@@ -3473,7 +3546,7 @@ const SchemasApiAxiosParamCreator = function (configuration) {
3473
3546
  },
3474
3547
  /**
3475
3548
  *
3476
- * @summary Complex search for shemas
3549
+ * @summary Complex search for schemas
3477
3550
  * @param {string} workspaceId Workspace identifier
3478
3551
  * @param {string} changeSetId Change Set identifier
3479
3552
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -3882,7 +3955,7 @@ const SchemasApiFp = function (configuration) {
3882
3955
  },
3883
3956
  /**
3884
3957
  *
3885
- * @summary Complex search for shemas
3958
+ * @summary Complex search for schemas
3886
3959
  * @param {string} workspaceId Workspace identifier
3887
3960
  * @param {string} changeSetId Change Set identifier
3888
3961
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -4109,7 +4182,7 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
4109
4182
  },
4110
4183
  /**
4111
4184
  *
4112
- * @summary Complex search for shemas
4185
+ * @summary Complex search for schemas
4113
4186
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4114
4187
  * @param {*} [options] Override http request option.
4115
4188
  * @throws {RequiredError}
@@ -4336,7 +4409,7 @@ class SchemasApi extends base_1.BaseAPI {
4336
4409
  }
4337
4410
  /**
4338
4411
  *
4339
- * @summary Complex search for shemas
4412
+ * @summary Complex search for schemas
4340
4413
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4341
4414
  * @param {*} [options] Override http request option.
4342
4415
  * @throws {RequiredError}
package/dist/esm/api.d.ts CHANGED
@@ -1568,6 +1568,31 @@ export interface GetChangeSetV1Response {
1568
1568
  */
1569
1569
  'changeSet': ChangeSetViewV1;
1570
1570
  }
1571
+ /**
1572
+ *
1573
+ * @export
1574
+ * @interface GetComponentResourceDataV1Response
1575
+ */
1576
+ export interface GetComponentResourceDataV1Response {
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof GetComponentResourceDataV1Response
1581
+ */
1582
+ 'last_synced': string;
1583
+ /**
1584
+ *
1585
+ * @type {any}
1586
+ * @memberof GetComponentResourceDataV1Response
1587
+ */
1588
+ 'payload'?: any;
1589
+ /**
1590
+ *
1591
+ * @type {string}
1592
+ * @memberof GetComponentResourceDataV1Response
1593
+ */
1594
+ 'status': string;
1595
+ }
1571
1596
  /**
1572
1597
  *
1573
1598
  * @export
@@ -4081,6 +4106,16 @@ export declare const ComponentsApiAxiosParamCreator: (configuration?: Configurat
4081
4106
  * @throws {RequiredError}
4082
4107
  */
4083
4108
  getComponent: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4109
+ /**
4110
+ *
4111
+ * @summary Get a component resource by component Id
4112
+ * @param {string} workspaceId Workspace identifier
4113
+ * @param {string} changeSetId Change Set identifier
4114
+ * @param {string} componentId Component identifier
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ getComponentResource: (workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4084
4119
  /**
4085
4120
  *
4086
4121
  * @summary List all components
@@ -4254,6 +4289,16 @@ export declare const ComponentsApiFp: (configuration?: Configuration) => {
4254
4289
  * @throws {RequiredError}
4255
4290
  */
4256
4291
  getComponent(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetComponentV1Response>>;
4292
+ /**
4293
+ *
4294
+ * @summary Get a component resource by component Id
4295
+ * @param {string} workspaceId Workspace identifier
4296
+ * @param {string} changeSetId Change Set identifier
4297
+ * @param {string} componentId Component identifier
4298
+ * @param {*} [options] Override http request option.
4299
+ * @throws {RequiredError}
4300
+ */
4301
+ getComponentResource(workspaceId: string, changeSetId: string, componentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetComponentResourceDataV1Response>>;
4257
4302
  /**
4258
4303
  *
4259
4304
  * @summary List all components
@@ -4404,6 +4449,14 @@ export declare const ComponentsApiFactory: (configuration?: Configuration, baseP
4404
4449
  * @throws {RequiredError}
4405
4450
  */
4406
4451
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentV1Response>;
4452
+ /**
4453
+ *
4454
+ * @summary Get a component resource by component Id
4455
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
4456
+ * @param {*} [options] Override http request option.
4457
+ * @throws {RequiredError}
4458
+ */
4459
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentResourceDataV1Response>;
4407
4460
  /**
4408
4461
  *
4409
4462
  * @summary List all components
@@ -4549,6 +4602,15 @@ export interface ComponentsApiInterface {
4549
4602
  * @memberof ComponentsApiInterface
4550
4603
  */
4551
4604
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentV1Response>;
4605
+ /**
4606
+ *
4607
+ * @summary Get a component resource by component Id
4608
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
4609
+ * @param {*} [options] Override http request option.
4610
+ * @throws {RequiredError}
4611
+ * @memberof ComponentsApiInterface
4612
+ */
4613
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetComponentResourceDataV1Response>;
4552
4614
  /**
4553
4615
  *
4554
4616
  * @summary List all components
@@ -4872,6 +4934,31 @@ export interface ComponentsApiGetComponentRequest {
4872
4934
  */
4873
4935
  readonly componentId: string;
4874
4936
  }
4937
+ /**
4938
+ * Request parameters for getComponentResource operation in ComponentsApi.
4939
+ * @export
4940
+ * @interface ComponentsApiGetComponentResourceRequest
4941
+ */
4942
+ export interface ComponentsApiGetComponentResourceRequest {
4943
+ /**
4944
+ * Workspace identifier
4945
+ * @type {string}
4946
+ * @memberof ComponentsApiGetComponentResource
4947
+ */
4948
+ readonly workspaceId: string;
4949
+ /**
4950
+ * Change Set identifier
4951
+ * @type {string}
4952
+ * @memberof ComponentsApiGetComponentResource
4953
+ */
4954
+ readonly changeSetId: string;
4955
+ /**
4956
+ * Component identifier
4957
+ * @type {string}
4958
+ * @memberof ComponentsApiGetComponentResource
4959
+ */
4960
+ readonly componentId: string;
4961
+ }
4875
4962
  /**
4876
4963
  * Request parameters for listComponents operation in ComponentsApi.
4877
4964
  * @export
@@ -5143,6 +5230,15 @@ export declare class ComponentsApi extends BaseAPI implements ComponentsApiInter
5143
5230
  * @memberof ComponentsApi
5144
5231
  */
5145
5232
  getComponent(requestParameters: ComponentsApiGetComponentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetComponentV1Response, any, {}>>;
5233
+ /**
5234
+ *
5235
+ * @summary Get a component resource by component Id
5236
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
5237
+ * @param {*} [options] Override http request option.
5238
+ * @throws {RequiredError}
5239
+ * @memberof ComponentsApi
5240
+ */
5241
+ getComponentResource(requestParameters: ComponentsApiGetComponentResourceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetComponentResourceDataV1Response, any, {}>>;
5146
5242
  /**
5147
5243
  *
5148
5244
  * @summary List all components
@@ -5900,7 +5996,7 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
5900
5996
  listSchemas: (workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5901
5997
  /**
5902
5998
  *
5903
- * @summary Complex search for shemas
5999
+ * @summary Complex search for schemas
5904
6000
  * @param {string} workspaceId Workspace identifier
5905
6001
  * @param {string} changeSetId Change Set identifier
5906
6002
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -6131,7 +6227,7 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
6131
6227
  listSchemas(workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSchemaV1Response>>;
6132
6228
  /**
6133
6229
  *
6134
- * @summary Complex search for shemas
6230
+ * @summary Complex search for schemas
6135
6231
  * @param {string} workspaceId Workspace identifier
6136
6232
  * @param {string} changeSetId Change Set identifier
6137
6233
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -6305,7 +6401,7 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
6305
6401
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
6306
6402
  /**
6307
6403
  *
6308
- * @summary Complex search for shemas
6404
+ * @summary Complex search for schemas
6309
6405
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6310
6406
  * @param {*} [options] Override http request option.
6311
6407
  * @throws {RequiredError}
@@ -6489,7 +6585,7 @@ export interface SchemasApiInterface {
6489
6585
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
6490
6586
  /**
6491
6587
  *
6492
- * @summary Complex search for shemas
6588
+ * @summary Complex search for schemas
6493
6589
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6494
6590
  * @param {*} [options] Override http request option.
6495
6591
  * @throws {RequiredError}
@@ -7327,7 +7423,7 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
7327
7423
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSchemaV1Response, any, {}>>;
7328
7424
  /**
7329
7425
  *
7330
- * @summary Complex search for shemas
7426
+ * @summary Complex search for schemas
7331
7427
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
7332
7428
  * @param {*} [options] Override http request option.
7333
7429
  * @throws {RequiredError}
package/dist/esm/api.js CHANGED
@@ -1325,6 +1325,43 @@ export const ComponentsApiAxiosParamCreator = function (configuration) {
1325
1325
  options: localVarRequestOptions,
1326
1326
  };
1327
1327
  },
1328
+ /**
1329
+ *
1330
+ * @summary Get a component resource by component Id
1331
+ * @param {string} workspaceId Workspace identifier
1332
+ * @param {string} changeSetId Change Set identifier
1333
+ * @param {string} componentId Component identifier
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ */
1337
+ getComponentResource: async (workspaceId, changeSetId, componentId, options = {}) => {
1338
+ // verify required parameter 'workspaceId' is not null or undefined
1339
+ assertParamExists('getComponentResource', 'workspaceId', workspaceId);
1340
+ // verify required parameter 'changeSetId' is not null or undefined
1341
+ assertParamExists('getComponentResource', 'changeSetId', changeSetId);
1342
+ // verify required parameter 'componentId' is not null or undefined
1343
+ assertParamExists('getComponentResource', 'componentId', componentId);
1344
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/components/{component_id}/resource`
1345
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1346
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)))
1347
+ .replace(`{${"component_id"}}`, encodeURIComponent(String(componentId)));
1348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1350
+ let baseOptions;
1351
+ if (configuration) {
1352
+ baseOptions = configuration.baseOptions;
1353
+ }
1354
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1355
+ const localVarHeaderParameter = {};
1356
+ const localVarQueryParameter = {};
1357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1359
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1360
+ return {
1361
+ url: toPathString(localVarUrlObj),
1362
+ options: localVarRequestOptions,
1363
+ };
1364
+ },
1328
1365
  /**
1329
1366
  *
1330
1367
  * @summary List all components
@@ -1728,6 +1765,21 @@ export const ComponentsApiFp = function (configuration) {
1728
1765
  const localVarOperationServerBasePath = operationServerMap['ComponentsApi.getComponent']?.[localVarOperationServerIndex]?.url;
1729
1766
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1730
1767
  },
1768
+ /**
1769
+ *
1770
+ * @summary Get a component resource by component Id
1771
+ * @param {string} workspaceId Workspace identifier
1772
+ * @param {string} changeSetId Change Set identifier
1773
+ * @param {string} componentId Component identifier
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ */
1777
+ async getComponentResource(workspaceId, changeSetId, componentId, options) {
1778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComponentResource(workspaceId, changeSetId, componentId, options);
1779
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1780
+ const localVarOperationServerBasePath = operationServerMap['ComponentsApi.getComponentResource']?.[localVarOperationServerIndex]?.url;
1781
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1782
+ },
1731
1783
  /**
1732
1784
  *
1733
1785
  * @summary List all components
@@ -1931,6 +1983,16 @@ export const ComponentsApiFactory = function (configuration, basePath, axios) {
1931
1983
  getComponent(requestParameters, options) {
1932
1984
  return localVarFp.getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1933
1985
  },
1986
+ /**
1987
+ *
1988
+ * @summary Get a component resource by component Id
1989
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
1990
+ * @param {*} [options] Override http request option.
1991
+ * @throws {RequiredError}
1992
+ */
1993
+ getComponentResource(requestParameters, options) {
1994
+ return localVarFp.getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(axios, basePath));
1995
+ },
1934
1996
  /**
1935
1997
  *
1936
1998
  * @summary List all components
@@ -2110,6 +2172,17 @@ export class ComponentsApi extends BaseAPI {
2110
2172
  getComponent(requestParameters, options) {
2111
2173
  return ComponentsApiFp(this.configuration).getComponent(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2112
2174
  }
2175
+ /**
2176
+ *
2177
+ * @summary Get a component resource by component Id
2178
+ * @param {ComponentsApiGetComponentResourceRequest} requestParameters Request parameters.
2179
+ * @param {*} [options] Override http request option.
2180
+ * @throws {RequiredError}
2181
+ * @memberof ComponentsApi
2182
+ */
2183
+ getComponentResource(requestParameters, options) {
2184
+ return ComponentsApiFp(this.configuration).getComponentResource(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.componentId, options).then((request) => request(this.axios, this.basePath));
2185
+ }
2113
2186
  /**
2114
2187
  *
2115
2188
  * @summary List all components
@@ -3443,7 +3516,7 @@ export const SchemasApiAxiosParamCreator = function (configuration) {
3443
3516
  },
3444
3517
  /**
3445
3518
  *
3446
- * @summary Complex search for shemas
3519
+ * @summary Complex search for schemas
3447
3520
  * @param {string} workspaceId Workspace identifier
3448
3521
  * @param {string} changeSetId Change Set identifier
3449
3522
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -3851,7 +3924,7 @@ export const SchemasApiFp = function (configuration) {
3851
3924
  },
3852
3925
  /**
3853
3926
  *
3854
- * @summary Complex search for shemas
3927
+ * @summary Complex search for schemas
3855
3928
  * @param {string} workspaceId Workspace identifier
3856
3929
  * @param {string} changeSetId Change Set identifier
3857
3930
  * @param {SearchSchemasV1Request} searchSchemasV1Request
@@ -4077,7 +4150,7 @@ export const SchemasApiFactory = function (configuration, basePath, axios) {
4077
4150
  },
4078
4151
  /**
4079
4152
  *
4080
- * @summary Complex search for shemas
4153
+ * @summary Complex search for schemas
4081
4154
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4082
4155
  * @param {*} [options] Override http request option.
4083
4156
  * @throws {RequiredError}
@@ -4303,7 +4376,7 @@ export class SchemasApi extends BaseAPI {
4303
4376
  }
4304
4377
  /**
4305
4378
  *
4306
- * @summary Complex search for shemas
4379
+ * @summary Complex search for schemas
4307
4380
  * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
4308
4381
  * @param {*} [options] Override http request option.
4309
4382
  * @throws {RequiredError}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {