system-initiative-api-client 1.1.0 → 1.1.1

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
@@ -2224,6 +2224,32 @@ export interface SearchComponentsV1Response {
2224
2224
  */
2225
2225
  'components': Array<Array<string>>;
2226
2226
  }
2227
+ /**
2228
+ *
2229
+ * @export
2230
+ * @interface SearchSchemasV1Request
2231
+ */
2232
+ export interface SearchSchemasV1Request {
2233
+ /**
2234
+ *
2235
+ * @type {string}
2236
+ * @memberof SearchSchemasV1Request
2237
+ */
2238
+ 'category'?: string | null;
2239
+ }
2240
+ /**
2241
+ *
2242
+ * @export
2243
+ * @interface SearchSchemasV1Response
2244
+ */
2245
+ export interface SearchSchemasV1Response {
2246
+ /**
2247
+ *
2248
+ * @type {Array<SchemaResponse>}
2249
+ * @memberof SearchSchemasV1Response
2250
+ */
2251
+ 'schemas': Array<SchemaResponse>;
2252
+ }
2227
2253
  /**
2228
2254
  *
2229
2255
  * @export
@@ -5120,6 +5146,16 @@ export declare const SchemasApiAxiosParamCreator: (configuration?: Configuration
5120
5146
  * @throws {RequiredError}
5121
5147
  */
5122
5148
  listSchemas: (workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5149
+ /**
5150
+ *
5151
+ * @summary Complex search for shemas
5152
+ * @param {string} workspaceId Workspace identifier
5153
+ * @param {string} changeSetId Change Set identifier
5154
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
5155
+ * @param {*} [options] Override http request option.
5156
+ * @throws {RequiredError}
5157
+ */
5158
+ searchSchemas: (workspaceId: string, changeSetId: string, searchSchemasV1Request: SearchSchemasV1Request, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5123
5159
  /**
5124
5160
  *
5125
5161
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5271,6 +5307,16 @@ export declare const SchemasApiFp: (configuration?: Configuration) => {
5271
5307
  * @throws {RequiredError}
5272
5308
  */
5273
5309
  listSchemas(workspaceId: string, changeSetId: string, limit?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSchemaV1Response>>;
5310
+ /**
5311
+ *
5312
+ * @summary Complex search for shemas
5313
+ * @param {string} workspaceId Workspace identifier
5314
+ * @param {string} changeSetId Change Set identifier
5315
+ * @param {SearchSchemasV1Request} searchSchemasV1Request
5316
+ * @param {*} [options] Override http request option.
5317
+ * @throws {RequiredError}
5318
+ */
5319
+ searchSchemas(workspaceId: string, changeSetId: string, searchSchemasV1Request: SearchSchemasV1Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchSchemasV1Response>>;
5274
5320
  /**
5275
5321
  *
5276
5322
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5387,6 +5433,14 @@ export declare const SchemasApiFactory: (configuration?: Configuration, basePath
5387
5433
  * @throws {RequiredError}
5388
5434
  */
5389
5435
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
5436
+ /**
5437
+ *
5438
+ * @summary Complex search for shemas
5439
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
5440
+ * @param {*} [options] Override http request option.
5441
+ * @throws {RequiredError}
5442
+ */
5443
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchSchemasV1Response>;
5390
5444
  /**
5391
5445
  *
5392
5446
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5509,6 +5563,15 @@ export interface SchemasApiInterface {
5509
5563
  * @memberof SchemasApiInterface
5510
5564
  */
5511
5565
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSchemaV1Response>;
5566
+ /**
5567
+ *
5568
+ * @summary Complex search for shemas
5569
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
5570
+ * @param {*} [options] Override http request option.
5571
+ * @throws {RequiredError}
5572
+ * @memberof SchemasApiInterface
5573
+ */
5574
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchSchemasV1Response>;
5512
5575
  /**
5513
5576
  *
5514
5577
  * @summary Unlocks a schema - if there\'s already an unlocked variant, then we return that
@@ -5881,6 +5944,31 @@ export interface SchemasApiListSchemasRequest {
5881
5944
  */
5882
5945
  readonly cursor?: string;
5883
5946
  }
5947
+ /**
5948
+ * Request parameters for searchSchemas operation in SchemasApi.
5949
+ * @export
5950
+ * @interface SchemasApiSearchSchemasRequest
5951
+ */
5952
+ export interface SchemasApiSearchSchemasRequest {
5953
+ /**
5954
+ * Workspace identifier
5955
+ * @type {string}
5956
+ * @memberof SchemasApiSearchSchemas
5957
+ */
5958
+ readonly workspaceId: string;
5959
+ /**
5960
+ * Change Set identifier
5961
+ * @type {string}
5962
+ * @memberof SchemasApiSearchSchemas
5963
+ */
5964
+ readonly changeSetId: string;
5965
+ /**
5966
+ *
5967
+ * @type {SearchSchemasV1Request}
5968
+ * @memberof SchemasApiSearchSchemas
5969
+ */
5970
+ readonly searchSchemasV1Request: SearchSchemasV1Request;
5971
+ }
5884
5972
  /**
5885
5973
  * Request parameters for unlockSchema operation in SchemasApi.
5886
5974
  * @export
@@ -6049,6 +6137,15 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
6049
6137
  * @memberof SchemasApi
6050
6138
  */
6051
6139
  listSchemas(requestParameters: SchemasApiListSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSchemaV1Response, any>>;
6140
+ /**
6141
+ *
6142
+ * @summary Complex search for shemas
6143
+ * @param {SchemasApiSearchSchemasRequest} requestParameters Request parameters.
6144
+ * @param {*} [options] Override http request option.
6145
+ * @throws {RequiredError}
6146
+ * @memberof SchemasApi
6147
+ */
6148
+ searchSchemas(requestParameters: SchemasApiSearchSchemasRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchSchemasV1Response, any>>;
6052
6149
  /**
6053
6150
  *
6054
6151
  * @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.1",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {