system-initiative-api-client 1.1.0 → 1.1.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
@@ -2210,6 +2210,12 @@ export interface SearchComponentsV1Request {
2210
2210
  * @memberof SearchComponentsV1Request
2211
2211
  */
2212
2212
  'schemaName'?: string | null;
2213
+ /**
2214
+ *
2215
+ * @type {boolean}
2216
+ * @memberof SearchComponentsV1Request
2217
+ */
2218
+ 'upgradable'?: boolean | null;
2213
2219
  }
2214
2220
  /**
2215
2221
  *
@@ -2224,6 +2230,32 @@ export interface SearchComponentsV1Response {
2224
2230
  */
2225
2231
  'components': Array<Array<string>>;
2226
2232
  }
2233
+ /**
2234
+ *
2235
+ * @export
2236
+ * @interface SearchSchemasV1Request
2237
+ */
2238
+ export interface SearchSchemasV1Request {
2239
+ /**
2240
+ *
2241
+ * @type {string}
2242
+ * @memberof SearchSchemasV1Request
2243
+ */
2244
+ 'category'?: string | null;
2245
+ }
2246
+ /**
2247
+ *
2248
+ * @export
2249
+ * @interface SearchSchemasV1Response
2250
+ */
2251
+ export interface SearchSchemasV1Response {
2252
+ /**
2253
+ *
2254
+ * @type {Array<SchemaResponse>}
2255
+ * @memberof SearchSchemasV1Response
2256
+ */
2257
+ 'schemas': Array<SchemaResponse>;
2258
+ }
2227
2259
  /**
2228
2260
  *
2229
2261
  * @export
@@ -5120,6 +5152,16 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
5120
5152
  * @throws {RequiredError}
5121
5153
  */
5122
5154
  listSchemas: (workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5155
+ /**
5156
+ *
5157
+ * @summary Complex search for shemas
5158
+ * @param {string} workspaceId Workspace identifier
5159
+ * @param {string} changeSetId Change Set identifier
5160
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
5161
+ * @param {*} [options] Override http request option.
5162
+ * @throws {RequiredError}
5163
+ */
5164
+ searchSchemas: (workspaceId: string, changeSetId: string, searchSchemasV1Request: SearchSchemasV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5123
5165
  /**
5124
5166
  *
5125
5167
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5271,6 +5313,16 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
5271
5313
  * @throws {RequiredError}
5272
5314
  */
5273
5315
  listSchemas(workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSchemaV1Response>>;
5316
+ /**
5317
+ *
5318
+ * @summary Complex search for shemas
5319
+ * @param {string} workspaceId Workspace identifier
5320
+ * @param {string} changeSetId Change Set identifier
5321
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
5322
+ * @param {*} [options] Override http request option.
5323
+ * @throws {RequiredError}
5324
+ */
5325
+ searchSchemas(workspaceId: string, changeSetId: string, searchSchemasV1Request: SearchSchemasV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchSchemasV1Response>>;
5274
5326
  /**
5275
5327
  *
5276
5328
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5387,6 +5439,14 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
5387
5439
  * @throws {RequiredError}
5388
5440
  */
5389
5441
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
5442
+ /**
5443
+ *
5444
+ * @summary Complex search for shemas
5445
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
5446
+ * @param {*} [options] Override http request option.
5447
+ * @throws {RequiredError}
5448
+ */
5449
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchSchemasV1Response>;
5390
5450
  /**
5391
5451
  *
5392
5452
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5509,6 +5569,15 @@ export interface SchemasApiInterface {
5509
5569
  * @memberof SchemasApiInterface
5510
5570
  */
5511
5571
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
5572
+ /**
5573
+ *
5574
+ * @summary Complex search for shemas
5575
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
5576
+ * @param {*} [options] Override http request option.
5577
+ * @throws {RequiredError}
5578
+ * @memberof SchemasApiInterface
5579
+ */
5580
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchSchemasV1Response>;
5512
5581
  /**
5513
5582
  *
5514
5583
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5881,6 +5950,31 @@ export interface SchemasApiListSchemasRequest {
5881
5950
  */
5882
5951
  readonly cursor?: string;
5883
5952
  }
5953
+ /**
5954
+ * Request parameters for searchSchemas operation in SchemasApi.
5955
+ * @export
5956
+ * @interface SchemasApiSearchSchemasRequest
5957
+ */
5958
+ export interface SchemasApiSearchSchemasRequest {
5959
+ /**
5960
+ * Workspace identifier
5961
+ * @type {string}
5962
+ * @memberof SchemasApiSearchSchemas
5963
+ */
5964
+ readonly workspaceId: string;
5965
+ /**
5966
+ * Change Set identifier
5967
+ * @type {string}
5968
+ * @memberof SchemasApiSearchSchemas
5969
+ */
5970
+ readonly changeSetId: string;
5971
+ /**
5972
+ *
5973
+ * @type {SearchSchemasV1Request}
5974
+ * @memberof SchemasApiSearchSchemas
5975
+ */
5976
+ readonly searchSchemasV1Request: SearchSchemasV1Request;
5977
+ }
5884
5978
  /**
5885
5979
  * Request parameters for unlockSchema operation in SchemasApi.
5886
5980
  * @export
@@ -6049,6 +6143,15 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
6049
6143
  * @memberof SchemasApi
6050
6144
  */
6051
6145
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSchemaV1Response, any>>;
6146
+ /**
6147
+ *
6148
+ * @summary Complex search for shemas
6149
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6150
+ * @param {*} [options] Override http request option.
6151
+ * @throws {RequiredError}
6152
+ * @memberof SchemasApi
6153
+ */
6154
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchSchemasV1Response, any>>;
6052
6155
  /**
6053
6156
  *
6054
6157
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
package/dist/cjs/api.js CHANGED
@@ -3051,6 +3051,44 @@ const SchemasApiAxiosParamCreator = function (configuration) {
3051
3051
  options: localVarRequestOptions,
3052
3052
  };
3053
3053
  },
3054
+ /**
3055
+ *
3056
+ * @summary Complex search for shemas
3057
+ * @param {string} workspaceId Workspace identifier
3058
+ * @param {string} changeSetId Change Set identifier
3059
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
3060
+ * @param {*} [options] Override http request option.
3061
+ * @throws {RequiredError}
3062
+ */
3063
+ searchSchemas: async (workspaceId, changeSetId, searchSchemasV1Request, options = {}) => {
3064
+ // verify required parameter 'workspaceId' is not null or undefined
3065
+ (0, common_1.assertParamExists)('searchSchemas', 'workspaceId', workspaceId);
3066
+ // verify required parameter 'changeSetId' is not null or undefined
3067
+ (0, common_1.assertParamExists)('searchSchemas', 'changeSetId', changeSetId);
3068
+ // verify required parameter 'searchSchemasV1Request' is not null or undefined
3069
+ (0, common_1.assertParamExists)('searchSchemas', 'searchSchemasV1Request', searchSchemasV1Request);
3070
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/schemas/search`
3071
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3072
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3074
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3075
+ let baseOptions;
3076
+ if (configuration) {
3077
+ baseOptions = configuration.baseOptions;
3078
+ }
3079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3080
+ const localVarHeaderParameter = {};
3081
+ const localVarQueryParameter = {};
3082
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3083
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3084
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3085
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3086
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(searchSchemasV1Request, localVarRequestOptions, configuration);
3087
+ return {
3088
+ url: (0, common_1.toPathString)(localVarUrlObj),
3089
+ options: localVarRequestOptions,
3090
+ };
3091
+ },
3054
3092
  /**
3055
3093
  *
3056
3094
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -3322,6 +3360,21 @@ const SchemasApiFp = function (configuration) {
3322
3360
  const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.listSchemas']?.[localVarOperationServerIndex]?.url;
3323
3361
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3324
3362
  },
3363
+ /**
3364
+ *
3365
+ * @summary Complex search for shemas
3366
+ * @param {string} workspaceId Workspace identifier
3367
+ * @param {string} changeSetId Change Set identifier
3368
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
3369
+ * @param {*} [options] Override http request option.
3370
+ * @throws {RequiredError}
3371
+ */
3372
+ async searchSchemas(workspaceId, changeSetId, searchSchemasV1Request, options) {
3373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchSchemas(workspaceId, changeSetId, searchSchemasV1Request, options);
3374
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3375
+ const localVarOperationServerBasePath = base_1.operationServerMap['SchemasApi.searchSchemas']?.[localVarOperationServerIndex]?.url;
3376
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3377
+ },
3325
3378
  /**
3326
3379
  *
3327
3380
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -3474,6 +3527,16 @@ const SchemasApiFactory = function (configuration, basePath, axios) {
3474
3527
  listSchemas(requestParameters, options) {
3475
3528
  return localVarFp.listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(axios, basePath));
3476
3529
  },
3530
+ /**
3531
+ *
3532
+ * @summary Complex search for shemas
3533
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
3534
+ * @param {*} [options] Override http request option.
3535
+ * @throws {RequiredError}
3536
+ */
3537
+ searchSchemas(requestParameters, options) {
3538
+ return localVarFp.searchSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchSchemasV1Request, options).then((request) => request(axios, basePath));
3539
+ },
3477
3540
  /**
3478
3541
  *
3479
3542
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -3625,6 +3688,17 @@ class SchemasApi extends base_1.BaseAPI {
3625
3688
  listSchemas(requestParameters, options) {
3626
3689
  return (0, exports.SchemasApiFp)(this.configuration).listSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.limit, requestParameters.cursor, options).then((request) => request(this.axios, this.basePath));
3627
3690
  }
3691
+ /**
3692
+ *
3693
+ * @summary Complex search for shemas
3694
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ * @memberof SchemasApi
3698
+ */
3699
+ searchSchemas(requestParameters, options) {
3700
+ return (0, exports.SchemasApiFp)(this.configuration).searchSchemas(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.searchSchemasV1Request, options).then((request) => request(this.axios, this.basePath));
3701
+ }
3628
3702
  /**
3629
3703
  *
3630
3704
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {