system-initiative-api-client 1.2.0 → 1.3.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
@@ -356,6 +356,44 @@ export interface ComponentReferenceOneOf1 {
356
356
  */
357
357
  'componentId': string;
358
358
  }
359
+ /**
360
+ * Component data in search results.
361
+ * @export
362
+ * @interface ComponentSearchResult
363
+ */
364
+ export interface ComponentSearchResult {
365
+ /**
366
+ *
367
+ * @type {string}
368
+ * @memberof ComponentSearchResult
369
+ */
370
+ 'id': string;
371
+ /**
372
+ *
373
+ * @type {string}
374
+ * @memberof ComponentSearchResult
375
+ */
376
+ 'name': string;
377
+ /**
378
+ *
379
+ * @type {ComponentSearchResultSchema}
380
+ * @memberof ComponentSearchResult
381
+ */
382
+ 'schema': ComponentSearchResultSchema;
383
+ }
384
+ /**
385
+ * The schema for a component in search results.
386
+ * @export
387
+ * @interface ComponentSearchResultSchema
388
+ */
389
+ export interface ComponentSearchResultSchema {
390
+ /**
391
+ *
392
+ * @type {string}
393
+ * @memberof ComponentSearchResultSchema
394
+ */
395
+ 'name': string;
396
+ }
359
397
  /**
360
398
  *
361
399
  * @export
@@ -2290,6 +2328,12 @@ export interface SchemaVariantV1RequestPath {
2290
2328
  * @interface SearchComponentsV1Request
2291
2329
  */
2292
2330
  export interface SearchComponentsV1Request {
2331
+ /**
2332
+ *
2333
+ * @type {string}
2334
+ * @memberof SearchComponentsV1Request
2335
+ */
2336
+ 'queryString'?: string | null;
2293
2337
  /**
2294
2338
  *
2295
2339
  * @type {string}
@@ -2348,6 +2392,32 @@ export interface SearchSchemasV1Response {
2348
2392
  */
2349
2393
  'schemas': Array<SchemaResponse>;
2350
2394
  }
2395
+ /**
2396
+ *
2397
+ * @export
2398
+ * @interface SearchV1Request
2399
+ */
2400
+ export interface SearchV1Request {
2401
+ /**
2402
+ *
2403
+ * @type {string}
2404
+ * @memberof SearchV1Request
2405
+ */
2406
+ 'q': string;
2407
+ }
2408
+ /**
2409
+ *
2410
+ * @export
2411
+ * @interface SearchV1Response
2412
+ */
2413
+ export interface SearchV1Response {
2414
+ /**
2415
+ *
2416
+ * @type {Array<ComponentSearchResult>}
2417
+ * @memberof SearchV1Response
2418
+ */
2419
+ 'components': Array<ComponentSearchResult>;
2420
+ }
2351
2421
  /**
2352
2422
  *
2353
2423
  * @export
@@ -6271,6 +6341,110 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
6271
6341
  */
6272
6342
  updateSchemaVariant(requestParameters: SchemasApiUpdateSchemaVariantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSchemaVariantV1Response, any, {}>>;
6273
6343
  }
6344
+ /**
6345
+ * SearchApi - axios parameter creator
6346
+ * @export
6347
+ */
6348
+ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => {
6349
+ /**
6350
+ *
6351
+ * @summary Complex search for components
6352
+ * @param {string} workspaceId Workspace identifier
6353
+ * @param {string} changeSetId Change Set identifier
6354
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6355
+ * @param {*} [options] Override http request option.
6356
+ * @throws {RequiredError}
6357
+ */
6358
+ search: (workspaceId: string, changeSetId: string, q: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6359
+ };
6360
+ /**
6361
+ * SearchApi - functional programming interface
6362
+ * @export
6363
+ */
6364
+ export declare const SearchApiFp: (configuration?: Configuration) => {
6365
+ /**
6366
+ *
6367
+ * @summary Complex search for components
6368
+ * @param {string} workspaceId Workspace identifier
6369
+ * @param {string} changeSetId Change Set identifier
6370
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6371
+ * @param {*} [options] Override http request option.
6372
+ * @throws {RequiredError}
6373
+ */
6374
+ search(workspaceId: string, changeSetId: string, q: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchV1Response>>;
6375
+ };
6376
+ /**
6377
+ * SearchApi - factory interface
6378
+ * @export
6379
+ */
6380
+ export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6381
+ /**
6382
+ *
6383
+ * @summary Complex search for components
6384
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchV1Response>;
6389
+ };
6390
+ /**
6391
+ * SearchApi - interface
6392
+ * @export
6393
+ * @interface SearchApi
6394
+ */
6395
+ export interface SearchApiInterface {
6396
+ /**
6397
+ *
6398
+ * @summary Complex search for components
6399
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6400
+ * @param {*} [options] Override http request option.
6401
+ * @throws {RequiredError}
6402
+ * @memberof SearchApiInterface
6403
+ */
6404
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchV1Response>;
6405
+ }
6406
+ /**
6407
+ * Request parameters for search operation in SearchApi.
6408
+ * @export
6409
+ * @interface SearchApiSearchRequest
6410
+ */
6411
+ export interface SearchApiSearchRequest {
6412
+ /**
6413
+ * Workspace identifier
6414
+ * @type {string}
6415
+ * @memberof SearchApiSearch
6416
+ */
6417
+ readonly workspaceId: string;
6418
+ /**
6419
+ * Change Set identifier
6420
+ * @type {string}
6421
+ * @memberof SearchApiSearch
6422
+ */
6423
+ readonly changeSetId: string;
6424
+ /**
6425
+ * Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6426
+ * @type {string}
6427
+ * @memberof SearchApiSearch
6428
+ */
6429
+ readonly q: string;
6430
+ }
6431
+ /**
6432
+ * SearchApi - object-oriented interface
6433
+ * @export
6434
+ * @class SearchApi
6435
+ * @extends {BaseAPI}
6436
+ */
6437
+ export declare class SearchApi extends BaseAPI implements SearchApiInterface {
6438
+ /**
6439
+ *
6440
+ * @summary Complex search for components
6441
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6442
+ * @param {*} [options] Override http request option.
6443
+ * @throws {RequiredError}
6444
+ * @memberof SearchApi
6445
+ */
6446
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchV1Response, any, {}>>;
6447
+ }
6274
6448
  /**
6275
6449
  * SecretsApi - axios parameter creator
6276
6450
  * @export
package/dist/cjs/api.js CHANGED
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
19
+ exports.WhoamiApi = exports.WhoamiApiFactory = exports.WhoamiApiFp = exports.WhoamiApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SchemasApi = exports.SchemasApiFactory = exports.SchemasApiFp = exports.SchemasApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.ManagementFuncsApi = exports.ManagementFuncsApiFactory = exports.ManagementFuncsApiFp = exports.ManagementFuncsApiAxiosParamCreator = exports.FuncsApi = exports.FuncsApiFactory = exports.FuncsApiFp = exports.FuncsApiAxiosParamCreator = exports.ComponentsApi = exports.ComponentsApiFactory = exports.ComponentsApiFp = exports.ComponentsApiAxiosParamCreator = exports.ChangeSetsApi = exports.ChangeSetsApiFactory = exports.ChangeSetsApiFp = exports.ChangeSetsApiAxiosParamCreator = exports.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = exports.SchemaVariantFuncKindOneOf2KindEnum = exports.SchemaVariantFuncKindOneOf1KindEnum = exports.SchemaVariantFuncKindOneOfKindEnum = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  // Some imports not used depending on template conditions
22
22
  // @ts-ignore
@@ -3728,6 +3728,119 @@ class SchemasApi extends base_1.BaseAPI {
3728
3728
  }
3729
3729
  }
3730
3730
  exports.SchemasApi = SchemasApi;
3731
+ /**
3732
+ * SearchApi - axios parameter creator
3733
+ * @export
3734
+ */
3735
+ const SearchApiAxiosParamCreator = function (configuration) {
3736
+ return {
3737
+ /**
3738
+ *
3739
+ * @summary Complex search for components
3740
+ * @param {string} workspaceId Workspace identifier
3741
+ * @param {string} changeSetId Change Set identifier
3742
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
3743
+ * @param {*} [options] Override http request option.
3744
+ * @throws {RequiredError}
3745
+ */
3746
+ search: async (workspaceId, changeSetId, q, options = {}) => {
3747
+ // verify required parameter 'workspaceId' is not null or undefined
3748
+ (0, common_1.assertParamExists)('search', 'workspaceId', workspaceId);
3749
+ // verify required parameter 'changeSetId' is not null or undefined
3750
+ (0, common_1.assertParamExists)('search', 'changeSetId', changeSetId);
3751
+ // verify required parameter 'q' is not null or undefined
3752
+ (0, common_1.assertParamExists)('search', 'q', q);
3753
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/search`
3754
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3755
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3757
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3758
+ let baseOptions;
3759
+ if (configuration) {
3760
+ baseOptions = configuration.baseOptions;
3761
+ }
3762
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3763
+ const localVarHeaderParameter = {};
3764
+ const localVarQueryParameter = {};
3765
+ if (q !== undefined) {
3766
+ localVarQueryParameter['q'] = q;
3767
+ }
3768
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3770
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3771
+ return {
3772
+ url: (0, common_1.toPathString)(localVarUrlObj),
3773
+ options: localVarRequestOptions,
3774
+ };
3775
+ },
3776
+ };
3777
+ };
3778
+ exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
3779
+ /**
3780
+ * SearchApi - functional programming interface
3781
+ * @export
3782
+ */
3783
+ const SearchApiFp = function (configuration) {
3784
+ const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
3785
+ return {
3786
+ /**
3787
+ *
3788
+ * @summary Complex search for components
3789
+ * @param {string} workspaceId Workspace identifier
3790
+ * @param {string} changeSetId Change Set identifier
3791
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
3792
+ * @param {*} [options] Override http request option.
3793
+ * @throws {RequiredError}
3794
+ */
3795
+ async search(workspaceId, changeSetId, q, options) {
3796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.search(workspaceId, changeSetId, q, options);
3797
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3798
+ const localVarOperationServerBasePath = base_1.operationServerMap['SearchApi.search']?.[localVarOperationServerIndex]?.url;
3799
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3800
+ },
3801
+ };
3802
+ };
3803
+ exports.SearchApiFp = SearchApiFp;
3804
+ /**
3805
+ * SearchApi - factory interface
3806
+ * @export
3807
+ */
3808
+ const SearchApiFactory = function (configuration, basePath, axios) {
3809
+ const localVarFp = (0, exports.SearchApiFp)(configuration);
3810
+ return {
3811
+ /**
3812
+ *
3813
+ * @summary Complex search for components
3814
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
3815
+ * @param {*} [options] Override http request option.
3816
+ * @throws {RequiredError}
3817
+ */
3818
+ search(requestParameters, options) {
3819
+ return localVarFp.search(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.q, options).then((request) => request(axios, basePath));
3820
+ },
3821
+ };
3822
+ };
3823
+ exports.SearchApiFactory = SearchApiFactory;
3824
+ /**
3825
+ * SearchApi - object-oriented interface
3826
+ * @export
3827
+ * @class SearchApi
3828
+ * @extends {BaseAPI}
3829
+ */
3830
+ class SearchApi extends base_1.BaseAPI {
3831
+ /**
3832
+ *
3833
+ * @summary Complex search for components
3834
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
3835
+ * @param {*} [options] Override http request option.
3836
+ * @throws {RequiredError}
3837
+ * @memberof SearchApi
3838
+ */
3839
+ search(requestParameters, options) {
3840
+ return (0, exports.SearchApiFp)(this.configuration).search(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.q, options).then((request) => request(this.axios, this.basePath));
3841
+ }
3842
+ }
3843
+ exports.SearchApi = SearchApi;
3731
3844
  /**
3732
3845
  * SecretsApi - axios parameter creator
3733
3846
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -356,6 +356,44 @@ export interface ComponentReferenceOneOf1 {
356
356
  */
357
357
  'componentId': string;
358
358
  }
359
+ /**
360
+ * Component data in search results.
361
+ * @export
362
+ * @interface ComponentSearchResult
363
+ */
364
+ export interface ComponentSearchResult {
365
+ /**
366
+ *
367
+ * @type {string}
368
+ * @memberof ComponentSearchResult
369
+ */
370
+ 'id': string;
371
+ /**
372
+ *
373
+ * @type {string}
374
+ * @memberof ComponentSearchResult
375
+ */
376
+ 'name': string;
377
+ /**
378
+ *
379
+ * @type {ComponentSearchResultSchema}
380
+ * @memberof ComponentSearchResult
381
+ */
382
+ 'schema': ComponentSearchResultSchema;
383
+ }
384
+ /**
385
+ * The schema for a component in search results.
386
+ * @export
387
+ * @interface ComponentSearchResultSchema
388
+ */
389
+ export interface ComponentSearchResultSchema {
390
+ /**
391
+ *
392
+ * @type {string}
393
+ * @memberof ComponentSearchResultSchema
394
+ */
395
+ 'name': string;
396
+ }
359
397
  /**
360
398
  *
361
399
  * @export
@@ -2290,6 +2328,12 @@ export interface SchemaVariantV1RequestPath {
2290
2328
  * @interface SearchComponentsV1Request
2291
2329
  */
2292
2330
  export interface SearchComponentsV1Request {
2331
+ /**
2332
+ *
2333
+ * @type {string}
2334
+ * @memberof SearchComponentsV1Request
2335
+ */
2336
+ 'queryString'?: string | null;
2293
2337
  /**
2294
2338
  *
2295
2339
  * @type {string}
@@ -2348,6 +2392,32 @@ export interface SearchSchemasV1Response {
2348
2392
  */
2349
2393
  'schemas': Array<SchemaResponse>;
2350
2394
  }
2395
+ /**
2396
+ *
2397
+ * @export
2398
+ * @interface SearchV1Request
2399
+ */
2400
+ export interface SearchV1Request {
2401
+ /**
2402
+ *
2403
+ * @type {string}
2404
+ * @memberof SearchV1Request
2405
+ */
2406
+ 'q': string;
2407
+ }
2408
+ /**
2409
+ *
2410
+ * @export
2411
+ * @interface SearchV1Response
2412
+ */
2413
+ export interface SearchV1Response {
2414
+ /**
2415
+ *
2416
+ * @type {Array<ComponentSearchResult>}
2417
+ * @memberof SearchV1Response
2418
+ */
2419
+ 'components': Array<ComponentSearchResult>;
2420
+ }
2351
2421
  /**
2352
2422
  *
2353
2423
  * @export
@@ -6271,6 +6341,110 @@ export declare class SchemasApi extends BaseAPI implements SchemasApiInterface {
6271
6341
  */
6272
6342
  updateSchemaVariant(requestParameters: SchemasApiUpdateSchemaVariantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSchemaVariantV1Response, any, {}>>;
6273
6343
  }
6344
+ /**
6345
+ * SearchApi - axios parameter creator
6346
+ * @export
6347
+ */
6348
+ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => {
6349
+ /**
6350
+ *
6351
+ * @summary Complex search for components
6352
+ * @param {string} workspaceId Workspace identifier
6353
+ * @param {string} changeSetId Change Set identifier
6354
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6355
+ * @param {*} [options] Override http request option.
6356
+ * @throws {RequiredError}
6357
+ */
6358
+ search: (workspaceId: string, changeSetId: string, q: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6359
+ };
6360
+ /**
6361
+ * SearchApi - functional programming interface
6362
+ * @export
6363
+ */
6364
+ export declare const SearchApiFp: (configuration?: Configuration) => {
6365
+ /**
6366
+ *
6367
+ * @summary Complex search for components
6368
+ * @param {string} workspaceId Workspace identifier
6369
+ * @param {string} changeSetId Change Set identifier
6370
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6371
+ * @param {*} [options] Override http request option.
6372
+ * @throws {RequiredError}
6373
+ */
6374
+ search(workspaceId: string, changeSetId: string, q: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchV1Response>>;
6375
+ };
6376
+ /**
6377
+ * SearchApi - factory interface
6378
+ * @export
6379
+ */
6380
+ export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6381
+ /**
6382
+ *
6383
+ * @summary Complex search for components
6384
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchV1Response>;
6389
+ };
6390
+ /**
6391
+ * SearchApi - interface
6392
+ * @export
6393
+ * @interface SearchApi
6394
+ */
6395
+ export interface SearchApiInterface {
6396
+ /**
6397
+ *
6398
+ * @summary Complex search for components
6399
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6400
+ * @param {*} [options] Override http request option.
6401
+ * @throws {RequiredError}
6402
+ * @memberof SearchApiInterface
6403
+ */
6404
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchV1Response>;
6405
+ }
6406
+ /**
6407
+ * Request parameters for search operation in SearchApi.
6408
+ * @export
6409
+ * @interface SearchApiSearchRequest
6410
+ */
6411
+ export interface SearchApiSearchRequest {
6412
+ /**
6413
+ * Workspace identifier
6414
+ * @type {string}
6415
+ * @memberof SearchApiSearch
6416
+ */
6417
+ readonly workspaceId: string;
6418
+ /**
6419
+ * Change Set identifier
6420
+ * @type {string}
6421
+ * @memberof SearchApiSearch
6422
+ */
6423
+ readonly changeSetId: string;
6424
+ /**
6425
+ * Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
6426
+ * @type {string}
6427
+ * @memberof SearchApiSearch
6428
+ */
6429
+ readonly q: string;
6430
+ }
6431
+ /**
6432
+ * SearchApi - object-oriented interface
6433
+ * @export
6434
+ * @class SearchApi
6435
+ * @extends {BaseAPI}
6436
+ */
6437
+ export declare class SearchApi extends BaseAPI implements SearchApiInterface {
6438
+ /**
6439
+ *
6440
+ * @summary Complex search for components
6441
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
6442
+ * @param {*} [options] Override http request option.
6443
+ * @throws {RequiredError}
6444
+ * @memberof SearchApi
6445
+ */
6446
+ search(requestParameters: SearchApiSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchV1Response, any, {}>>;
6447
+ }
6274
6448
  /**
6275
6449
  * SecretsApi - axios parameter creator
6276
6450
  * @export
package/dist/esm/api.js CHANGED
@@ -3694,6 +3694,115 @@ export class SchemasApi extends BaseAPI {
3694
3694
  return SchemasApiFp(this.configuration).updateSchemaVariant(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.schemaId, requestParameters.schemaVariantId, requestParameters.updateSchemaVariantV1Request, options).then((request) => request(this.axios, this.basePath));
3695
3695
  }
3696
3696
  }
3697
+ /**
3698
+ * SearchApi - axios parameter creator
3699
+ * @export
3700
+ */
3701
+ export const SearchApiAxiosParamCreator = function (configuration) {
3702
+ return {
3703
+ /**
3704
+ *
3705
+ * @summary Complex search for components
3706
+ * @param {string} workspaceId Workspace identifier
3707
+ * @param {string} changeSetId Change Set identifier
3708
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
3709
+ * @param {*} [options] Override http request option.
3710
+ * @throws {RequiredError}
3711
+ */
3712
+ search: async (workspaceId, changeSetId, q, options = {}) => {
3713
+ // verify required parameter 'workspaceId' is not null or undefined
3714
+ assertParamExists('search', 'workspaceId', workspaceId);
3715
+ // verify required parameter 'changeSetId' is not null or undefined
3716
+ assertParamExists('search', 'changeSetId', changeSetId);
3717
+ // verify required parameter 'q' is not null or undefined
3718
+ assertParamExists('search', 'q', q);
3719
+ const localVarPath = `/v1/w/{workspace_id}/change-sets/{change_set_id}/search`
3720
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
3721
+ .replace(`{${"change_set_id"}}`, encodeURIComponent(String(changeSetId)));
3722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3724
+ let baseOptions;
3725
+ if (configuration) {
3726
+ baseOptions = configuration.baseOptions;
3727
+ }
3728
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3729
+ const localVarHeaderParameter = {};
3730
+ const localVarQueryParameter = {};
3731
+ if (q !== undefined) {
3732
+ localVarQueryParameter['q'] = q;
3733
+ }
3734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3736
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3737
+ return {
3738
+ url: toPathString(localVarUrlObj),
3739
+ options: localVarRequestOptions,
3740
+ };
3741
+ },
3742
+ };
3743
+ };
3744
+ /**
3745
+ * SearchApi - functional programming interface
3746
+ * @export
3747
+ */
3748
+ export const SearchApiFp = function (configuration) {
3749
+ const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
3750
+ return {
3751
+ /**
3752
+ *
3753
+ * @summary Complex search for components
3754
+ * @param {string} workspaceId Workspace identifier
3755
+ * @param {string} changeSetId Change Set identifier
3756
+ * @param {string} q Query string. See https://docs.systeminit.com/explanation/search-syntax for details.
3757
+ * @param {*} [options] Override http request option.
3758
+ * @throws {RequiredError}
3759
+ */
3760
+ async search(workspaceId, changeSetId, q, options) {
3761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.search(workspaceId, changeSetId, q, options);
3762
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3763
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.search']?.[localVarOperationServerIndex]?.url;
3764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3765
+ },
3766
+ };
3767
+ };
3768
+ /**
3769
+ * SearchApi - factory interface
3770
+ * @export
3771
+ */
3772
+ export const SearchApiFactory = function (configuration, basePath, axios) {
3773
+ const localVarFp = SearchApiFp(configuration);
3774
+ return {
3775
+ /**
3776
+ *
3777
+ * @summary Complex search for components
3778
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
3779
+ * @param {*} [options] Override http request option.
3780
+ * @throws {RequiredError}
3781
+ */
3782
+ search(requestParameters, options) {
3783
+ return localVarFp.search(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.q, options).then((request) => request(axios, basePath));
3784
+ },
3785
+ };
3786
+ };
3787
+ /**
3788
+ * SearchApi - object-oriented interface
3789
+ * @export
3790
+ * @class SearchApi
3791
+ * @extends {BaseAPI}
3792
+ */
3793
+ export class SearchApi extends BaseAPI {
3794
+ /**
3795
+ *
3796
+ * @summary Complex search for components
3797
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
3798
+ * @param {*} [options] Override http request option.
3799
+ * @throws {RequiredError}
3800
+ * @memberof SearchApi
3801
+ */
3802
+ search(requestParameters, options) {
3803
+ return SearchApiFp(this.configuration).search(requestParameters.workspaceId, requestParameters.changeSetId, requestParameters.q, options).then((request) => request(this.axios, this.basePath));
3804
+ }
3805
+ }
3697
3806
  /**
3698
3807
  * SecretsApi - axios parameter creator
3699
3808
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-initiative-api-client",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "TypeScript/JavaScript SDK for the System Initiative Public API",
5
5
  "author": "System Initiative <support@systeminit.com>",
6
6
  "repository": {