@seekora-ai/search-sdk 0.2.16 → 0.2.18
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/client.d.ts +48 -13
- package/dist/client.js +144 -131
- package/dist/config.d.ts +3 -3
- package/dist/config.js +9 -4
- package/dist/generated/api.d.ts +420 -367
- package/dist/generated/api.js +353 -508
- package/dist/generated/base.d.ts +1 -1
- package/dist/generated/base.js +1 -1
- package/dist/generated/common.d.ts +1 -1
- package/dist/generated/common.js +1 -1
- package/dist/generated/configuration.d.ts +1 -1
- package/dist/generated/configuration.js +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/generated/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Seekora APIs
|
|
6
|
-
* Seekora provides search, suggestions, and store management APIs.
|
|
6
|
+
* Seekora provides search, suggestions, and store management APIs.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
*
|
|
@@ -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.StoreManagementApi = exports.StoreManagementApiFactory = exports.StoreManagementApiFp = exports.StoreManagementApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.
|
|
19
|
+
exports.StoreManagementApi = exports.StoreManagementApiFactory = exports.StoreManagementApiFp = exports.StoreManagementApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.QuerySuggestionsServiceRuleType = exports.QuerySuggestionsServiceBannedMatchType = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -483,19 +483,22 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
483
483
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
484
484
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
485
485
|
* @param {string} facetName Facet field name (e.g., brand, category)
|
|
486
|
-
* @param {
|
|
486
|
+
* @param {string} facetQuery Prefix to search within the facet values
|
|
487
|
+
* @param {string} [q] Search query to scope results
|
|
488
|
+
* @param {string} [filter] Filter expression to scope results
|
|
489
|
+
* @param {number} [maxValues] Maximum number of facet values to return
|
|
487
490
|
* @param {*} [options] Override http request option.
|
|
488
491
|
* @throws {RequiredError}
|
|
489
492
|
*/
|
|
490
|
-
|
|
493
|
+
v1FiltersFacetNameValuesGet: async (xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options = {}) => {
|
|
491
494
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
492
|
-
(0, common_1.assertParamExists)('
|
|
495
|
+
(0, common_1.assertParamExists)('v1FiltersFacetNameValuesGet', 'xStoreid', xStoreid);
|
|
493
496
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
494
|
-
(0, common_1.assertParamExists)('
|
|
497
|
+
(0, common_1.assertParamExists)('v1FiltersFacetNameValuesGet', 'xStoresecret', xStoresecret);
|
|
495
498
|
// verify required parameter 'facetName' is not null or undefined
|
|
496
|
-
(0, common_1.assertParamExists)('
|
|
497
|
-
// verify required parameter '
|
|
498
|
-
(0, common_1.assertParamExists)('
|
|
499
|
+
(0, common_1.assertParamExists)('v1FiltersFacetNameValuesGet', 'facetName', facetName);
|
|
500
|
+
// verify required parameter 'facetQuery' is not null or undefined
|
|
501
|
+
(0, common_1.assertParamExists)('v1FiltersFacetNameValuesGet', 'facetQuery', facetQuery);
|
|
499
502
|
const localVarPath = `/v1/filters/{facetName}/values`
|
|
500
503
|
.replace(`{${"facetName"}}`, encodeURIComponent(String(facetName)));
|
|
501
504
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -504,10 +507,21 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
504
507
|
if (configuration) {
|
|
505
508
|
baseOptions = configuration.baseOptions;
|
|
506
509
|
}
|
|
507
|
-
const localVarRequestOptions = { method: '
|
|
510
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
508
511
|
const localVarHeaderParameter = {};
|
|
509
512
|
const localVarQueryParameter = {};
|
|
510
|
-
|
|
513
|
+
if (facetQuery !== undefined) {
|
|
514
|
+
localVarQueryParameter['facet_query'] = facetQuery;
|
|
515
|
+
}
|
|
516
|
+
if (q !== undefined) {
|
|
517
|
+
localVarQueryParameter['q'] = q;
|
|
518
|
+
}
|
|
519
|
+
if (filter !== undefined) {
|
|
520
|
+
localVarQueryParameter['filter'] = filter;
|
|
521
|
+
}
|
|
522
|
+
if (maxValues !== undefined) {
|
|
523
|
+
localVarQueryParameter['max_values'] = maxValues;
|
|
524
|
+
}
|
|
511
525
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
512
526
|
if (xStoreid != null) {
|
|
513
527
|
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
@@ -518,7 +532,6 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
518
532
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
519
533
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
520
534
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
521
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesFacetValuesSearchRequest, localVarRequestOptions, configuration);
|
|
522
535
|
return {
|
|
523
536
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
524
537
|
options: localVarRequestOptions,
|
|
@@ -529,15 +542,19 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
529
542
|
* @summary Get Filters
|
|
530
543
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
531
544
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
532
|
-
* @param {
|
|
545
|
+
* @param {string} [q] Search query to scope filter counts
|
|
546
|
+
* @param {string} [filter] Filter expression (e.g. brand:=Nike)
|
|
547
|
+
* @param {string} [facetBy] Comma-separated list of facet fields to return
|
|
548
|
+
* @param {number} [maxFacetValues] Maximum number of values per facet
|
|
549
|
+
* @param {string} [disjunctiveFacets] Comma-separated facet fields to treat as disjunctive (OR)
|
|
533
550
|
* @param {*} [options] Override http request option.
|
|
534
551
|
* @throws {RequiredError}
|
|
535
552
|
*/
|
|
536
|
-
|
|
553
|
+
v1FiltersGet: async (xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options = {}) => {
|
|
537
554
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
538
|
-
(0, common_1.assertParamExists)('
|
|
555
|
+
(0, common_1.assertParamExists)('v1FiltersGet', 'xStoreid', xStoreid);
|
|
539
556
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
540
|
-
(0, common_1.assertParamExists)('
|
|
557
|
+
(0, common_1.assertParamExists)('v1FiltersGet', 'xStoresecret', xStoresecret);
|
|
541
558
|
const localVarPath = `/v1/filters`;
|
|
542
559
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
560
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -545,10 +562,24 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
545
562
|
if (configuration) {
|
|
546
563
|
baseOptions = configuration.baseOptions;
|
|
547
564
|
}
|
|
548
|
-
const localVarRequestOptions = { method: '
|
|
565
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
549
566
|
const localVarHeaderParameter = {};
|
|
550
567
|
const localVarQueryParameter = {};
|
|
551
|
-
|
|
568
|
+
if (q !== undefined) {
|
|
569
|
+
localVarQueryParameter['q'] = q;
|
|
570
|
+
}
|
|
571
|
+
if (filter !== undefined) {
|
|
572
|
+
localVarQueryParameter['filter'] = filter;
|
|
573
|
+
}
|
|
574
|
+
if (facetBy !== undefined) {
|
|
575
|
+
localVarQueryParameter['facet_by'] = facetBy;
|
|
576
|
+
}
|
|
577
|
+
if (maxFacetValues !== undefined) {
|
|
578
|
+
localVarQueryParameter['max_facet_values'] = maxFacetValues;
|
|
579
|
+
}
|
|
580
|
+
if (disjunctiveFacets !== undefined) {
|
|
581
|
+
localVarQueryParameter['disjunctive_facets'] = disjunctiveFacets;
|
|
582
|
+
}
|
|
552
583
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
553
584
|
if (xStoreid != null) {
|
|
554
585
|
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
@@ -559,7 +590,6 @@ const FiltersApiAxiosParamCreator = function (configuration) {
|
|
|
559
590
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
560
591
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
592
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
562
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesFiltersRequest, localVarRequestOptions, configuration);
|
|
563
593
|
return {
|
|
564
594
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
565
595
|
options: localVarRequestOptions,
|
|
@@ -618,14 +648,17 @@ const FiltersApiFp = function (configuration) {
|
|
|
618
648
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
619
649
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
620
650
|
* @param {string} facetName Facet field name (e.g., brand, category)
|
|
621
|
-
* @param {
|
|
651
|
+
* @param {string} facetQuery Prefix to search within the facet values
|
|
652
|
+
* @param {string} [q] Search query to scope results
|
|
653
|
+
* @param {string} [filter] Filter expression to scope results
|
|
654
|
+
* @param {number} [maxValues] Maximum number of facet values to return
|
|
622
655
|
* @param {*} [options] Override http request option.
|
|
623
656
|
* @throws {RequiredError}
|
|
624
657
|
*/
|
|
625
|
-
async
|
|
626
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
658
|
+
async v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options) {
|
|
659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options);
|
|
627
660
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
628
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['FiltersApi.
|
|
661
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FiltersApi.v1FiltersFacetNameValuesGet']?.[localVarOperationServerIndex]?.url;
|
|
629
662
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
630
663
|
},
|
|
631
664
|
/**
|
|
@@ -633,14 +666,18 @@ const FiltersApiFp = function (configuration) {
|
|
|
633
666
|
* @summary Get Filters
|
|
634
667
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
635
668
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
636
|
-
* @param {
|
|
669
|
+
* @param {string} [q] Search query to scope filter counts
|
|
670
|
+
* @param {string} [filter] Filter expression (e.g. brand:=Nike)
|
|
671
|
+
* @param {string} [facetBy] Comma-separated list of facet fields to return
|
|
672
|
+
* @param {number} [maxFacetValues] Maximum number of values per facet
|
|
673
|
+
* @param {string} [disjunctiveFacets] Comma-separated facet fields to treat as disjunctive (OR)
|
|
637
674
|
* @param {*} [options] Override http request option.
|
|
638
675
|
* @throws {RequiredError}
|
|
639
676
|
*/
|
|
640
|
-
async
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
677
|
+
async v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options) {
|
|
678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options);
|
|
642
679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
643
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['FiltersApi.
|
|
680
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FiltersApi.v1FiltersGet']?.[localVarOperationServerIndex]?.url;
|
|
644
681
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
645
682
|
},
|
|
646
683
|
/**
|
|
@@ -672,24 +709,31 @@ const FiltersApiFactory = function (configuration, basePath, axios) {
|
|
|
672
709
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
673
710
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
674
711
|
* @param {string} facetName Facet field name (e.g., brand, category)
|
|
675
|
-
* @param {
|
|
712
|
+
* @param {string} facetQuery Prefix to search within the facet values
|
|
713
|
+
* @param {string} [q] Search query to scope results
|
|
714
|
+
* @param {string} [filter] Filter expression to scope results
|
|
715
|
+
* @param {number} [maxValues] Maximum number of facet values to return
|
|
676
716
|
* @param {*} [options] Override http request option.
|
|
677
717
|
* @throws {RequiredError}
|
|
678
718
|
*/
|
|
679
|
-
|
|
680
|
-
return localVarFp.
|
|
719
|
+
v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options) {
|
|
720
|
+
return localVarFp.v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options).then((request) => request(axios, basePath));
|
|
681
721
|
},
|
|
682
722
|
/**
|
|
683
723
|
* Get filter values and counts for configured facets. Use this to build faceted navigation UIs. Supports disjunctive faceting for OR-based filter combinations.
|
|
684
724
|
* @summary Get Filters
|
|
685
725
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
686
726
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
687
|
-
* @param {
|
|
727
|
+
* @param {string} [q] Search query to scope filter counts
|
|
728
|
+
* @param {string} [filter] Filter expression (e.g. brand:=Nike)
|
|
729
|
+
* @param {string} [facetBy] Comma-separated list of facet fields to return
|
|
730
|
+
* @param {number} [maxFacetValues] Maximum number of values per facet
|
|
731
|
+
* @param {string} [disjunctiveFacets] Comma-separated facet fields to treat as disjunctive (OR)
|
|
688
732
|
* @param {*} [options] Override http request option.
|
|
689
733
|
* @throws {RequiredError}
|
|
690
734
|
*/
|
|
691
|
-
|
|
692
|
-
return localVarFp.
|
|
735
|
+
v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options) {
|
|
736
|
+
return localVarFp.v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options).then((request) => request(axios, basePath));
|
|
693
737
|
},
|
|
694
738
|
/**
|
|
695
739
|
* Get available filter field metadata including types, sortability, and configured ranges. Useful for dynamically building filter UIs.
|
|
@@ -715,24 +759,31 @@ class FiltersApi extends base_1.BaseAPI {
|
|
|
715
759
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
716
760
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
717
761
|
* @param {string} facetName Facet field name (e.g., brand, category)
|
|
718
|
-
* @param {
|
|
762
|
+
* @param {string} facetQuery Prefix to search within the facet values
|
|
763
|
+
* @param {string} [q] Search query to scope results
|
|
764
|
+
* @param {string} [filter] Filter expression to scope results
|
|
765
|
+
* @param {number} [maxValues] Maximum number of facet values to return
|
|
719
766
|
* @param {*} [options] Override http request option.
|
|
720
767
|
* @throws {RequiredError}
|
|
721
768
|
*/
|
|
722
|
-
|
|
723
|
-
return (0, exports.FiltersApiFp)(this.configuration).
|
|
769
|
+
v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options) {
|
|
770
|
+
return (0, exports.FiltersApiFp)(this.configuration).v1FiltersFacetNameValuesGet(xStoreid, xStoresecret, facetName, facetQuery, q, filter, maxValues, options).then((request) => request(this.axios, this.basePath));
|
|
724
771
|
}
|
|
725
772
|
/**
|
|
726
773
|
* Get filter values and counts for configured facets. Use this to build faceted navigation UIs. Supports disjunctive faceting for OR-based filter combinations.
|
|
727
774
|
* @summary Get Filters
|
|
728
775
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
729
776
|
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
730
|
-
* @param {
|
|
777
|
+
* @param {string} [q] Search query to scope filter counts
|
|
778
|
+
* @param {string} [filter] Filter expression (e.g. brand:=Nike)
|
|
779
|
+
* @param {string} [facetBy] Comma-separated list of facet fields to return
|
|
780
|
+
* @param {number} [maxFacetValues] Maximum number of values per facet
|
|
781
|
+
* @param {string} [disjunctiveFacets] Comma-separated facet fields to treat as disjunctive (OR)
|
|
731
782
|
* @param {*} [options] Override http request option.
|
|
732
783
|
* @throws {RequiredError}
|
|
733
784
|
*/
|
|
734
|
-
|
|
735
|
-
return (0, exports.FiltersApiFp)(this.configuration).
|
|
785
|
+
v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options) {
|
|
786
|
+
return (0, exports.FiltersApiFp)(this.configuration).v1FiltersGet(xStoreid, xStoresecret, q, filter, facetBy, maxFacetValues, disjunctiveFacets, options).then((request) => request(this.axios, this.basePath));
|
|
736
787
|
}
|
|
737
788
|
/**
|
|
738
789
|
* Get available filter field metadata including types, sortability, and configured ranges. Useful for dynamically building filter UIs.
|
|
@@ -1206,37 +1257,37 @@ exports.V1SuggestionsQueriesGetTimeRangeEnum = {
|
|
|
1206
1257
|
_90d: '90d'
|
|
1207
1258
|
};
|
|
1208
1259
|
/**
|
|
1209
|
-
*
|
|
1260
|
+
* SearchApi - axios parameter creator
|
|
1210
1261
|
*/
|
|
1211
|
-
const
|
|
1262
|
+
const SearchApiAxiosParamCreator = function (configuration) {
|
|
1212
1263
|
return {
|
|
1213
1264
|
/**
|
|
1214
|
-
*
|
|
1215
|
-
* @summary
|
|
1216
|
-
* @param {string} xStoreid Store ID
|
|
1217
|
-
* @param {string} xStoresecret Store read secret
|
|
1218
|
-
* @param {
|
|
1219
|
-
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
1265
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
1266
|
+
* @summary Multi-Search (POST)
|
|
1267
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
1268
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
1269
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
1220
1270
|
* @param {*} [options] Override http request option.
|
|
1221
1271
|
* @throws {RequiredError}
|
|
1222
1272
|
*/
|
|
1223
|
-
|
|
1273
|
+
v1MultiSearchPost: async (xStoreid, xStoresecret, dataTypesMultiSearchRequest, options = {}) => {
|
|
1224
1274
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
1225
|
-
(0, common_1.assertParamExists)('
|
|
1275
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'xStoreid', xStoreid);
|
|
1226
1276
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
1227
|
-
(0, common_1.assertParamExists)('
|
|
1228
|
-
|
|
1277
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'xStoresecret', xStoresecret);
|
|
1278
|
+
// verify required parameter 'dataTypesMultiSearchRequest' is not null or undefined
|
|
1279
|
+
(0, common_1.assertParamExists)('v1MultiSearchPost', 'dataTypesMultiSearchRequest', dataTypesMultiSearchRequest);
|
|
1280
|
+
const localVarPath = `/v1/multi-search`;
|
|
1229
1281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1230
1282
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1231
1283
|
let baseOptions;
|
|
1232
1284
|
if (configuration) {
|
|
1233
1285
|
baseOptions = configuration.baseOptions;
|
|
1234
1286
|
}
|
|
1235
|
-
const localVarRequestOptions = { method: '
|
|
1287
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1236
1288
|
const localVarHeaderParameter = {};
|
|
1237
1289
|
const localVarQueryParameter = {};
|
|
1238
|
-
|
|
1239
|
-
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-storesecret", configuration);
|
|
1290
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1240
1291
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1241
1292
|
if (xStoreid != null) {
|
|
1242
1293
|
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
@@ -1244,94 +1295,15 @@ const SDKExperimentsApiAxiosParamCreator = function (configuration) {
|
|
|
1244
1295
|
if (xStoresecret != null) {
|
|
1245
1296
|
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
1246
1297
|
}
|
|
1247
|
-
if (xUserId != null) {
|
|
1248
|
-
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
1249
|
-
}
|
|
1250
|
-
if (xAnonId != null) {
|
|
1251
|
-
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
1252
|
-
}
|
|
1253
1298
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1254
1299
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1255
1300
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1301
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesMultiSearchRequest, localVarRequestOptions, configuration);
|
|
1256
1302
|
return {
|
|
1257
1303
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1258
1304
|
options: localVarRequestOptions,
|
|
1259
1305
|
};
|
|
1260
1306
|
},
|
|
1261
|
-
};
|
|
1262
|
-
};
|
|
1263
|
-
exports.SDKExperimentsApiAxiosParamCreator = SDKExperimentsApiAxiosParamCreator;
|
|
1264
|
-
/**
|
|
1265
|
-
* SDKExperimentsApi - functional programming interface
|
|
1266
|
-
*/
|
|
1267
|
-
const SDKExperimentsApiFp = function (configuration) {
|
|
1268
|
-
const localVarAxiosParamCreator = (0, exports.SDKExperimentsApiAxiosParamCreator)(configuration);
|
|
1269
|
-
return {
|
|
1270
|
-
/**
|
|
1271
|
-
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
1272
|
-
* @summary Get experiment assignments for a user
|
|
1273
|
-
* @param {string} xStoreid Store ID
|
|
1274
|
-
* @param {string} xStoresecret Store read secret
|
|
1275
|
-
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
1276
|
-
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
1277
|
-
* @param {*} [options] Override http request option.
|
|
1278
|
-
* @throws {RequiredError}
|
|
1279
|
-
*/
|
|
1280
|
-
async v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
|
|
1281
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options);
|
|
1282
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1283
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SDKExperimentsApi.v1ExperimentsAssignmentGet']?.[localVarOperationServerIndex]?.url;
|
|
1284
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1285
|
-
},
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
exports.SDKExperimentsApiFp = SDKExperimentsApiFp;
|
|
1289
|
-
/**
|
|
1290
|
-
* SDKExperimentsApi - factory interface
|
|
1291
|
-
*/
|
|
1292
|
-
const SDKExperimentsApiFactory = function (configuration, basePath, axios) {
|
|
1293
|
-
const localVarFp = (0, exports.SDKExperimentsApiFp)(configuration);
|
|
1294
|
-
return {
|
|
1295
|
-
/**
|
|
1296
|
-
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
1297
|
-
* @summary Get experiment assignments for a user
|
|
1298
|
-
* @param {string} xStoreid Store ID
|
|
1299
|
-
* @param {string} xStoresecret Store read secret
|
|
1300
|
-
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
1301
|
-
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
1302
|
-
* @param {*} [options] Override http request option.
|
|
1303
|
-
* @throws {RequiredError}
|
|
1304
|
-
*/
|
|
1305
|
-
v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
|
|
1306
|
-
return localVarFp.v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(axios, basePath));
|
|
1307
|
-
},
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
exports.SDKExperimentsApiFactory = SDKExperimentsApiFactory;
|
|
1311
|
-
/**
|
|
1312
|
-
* SDKExperimentsApi - object-oriented interface
|
|
1313
|
-
*/
|
|
1314
|
-
class SDKExperimentsApi extends base_1.BaseAPI {
|
|
1315
|
-
/**
|
|
1316
|
-
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
1317
|
-
* @summary Get experiment assignments for a user
|
|
1318
|
-
* @param {string} xStoreid Store ID
|
|
1319
|
-
* @param {string} xStoresecret Store read secret
|
|
1320
|
-
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
1321
|
-
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
1322
|
-
* @param {*} [options] Override http request option.
|
|
1323
|
-
* @throws {RequiredError}
|
|
1324
|
-
*/
|
|
1325
|
-
v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options) {
|
|
1326
|
-
return (0, exports.SDKExperimentsApiFp)(this.configuration).v1ExperimentsAssignmentGet(xStoreid, xStoresecret, xUserId, xAnonId, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
exports.SDKExperimentsApi = SDKExperimentsApi;
|
|
1330
|
-
/**
|
|
1331
|
-
* SearchApi - axios parameter creator
|
|
1332
|
-
*/
|
|
1333
|
-
const SearchApiAxiosParamCreator = function (configuration) {
|
|
1334
|
-
return {
|
|
1335
1307
|
/**
|
|
1336
1308
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
1337
1309
|
* @summary Search (GET)
|
|
@@ -1600,6 +1572,21 @@ exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
|
|
|
1600
1572
|
const SearchApiFp = function (configuration) {
|
|
1601
1573
|
const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
|
|
1602
1574
|
return {
|
|
1575
|
+
/**
|
|
1576
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
1577
|
+
* @summary Multi-Search (POST)
|
|
1578
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
1579
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
1580
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
async v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
1585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options);
|
|
1586
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1587
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SearchApi.v1MultiSearchPost']?.[localVarOperationServerIndex]?.url;
|
|
1588
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1589
|
+
},
|
|
1603
1590
|
/**
|
|
1604
1591
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
1605
1592
|
* @summary Search (GET)
|
|
@@ -1682,6 +1669,18 @@ exports.SearchApiFp = SearchApiFp;
|
|
|
1682
1669
|
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
1683
1670
|
const localVarFp = (0, exports.SearchApiFp)(configuration);
|
|
1684
1671
|
return {
|
|
1672
|
+
/**
|
|
1673
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
1674
|
+
* @summary Multi-Search (POST)
|
|
1675
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
1676
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
1677
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
*/
|
|
1681
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
1682
|
+
return localVarFp.v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(axios, basePath));
|
|
1683
|
+
},
|
|
1685
1684
|
/**
|
|
1686
1685
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
1687
1686
|
* @summary Search (GET)
|
|
@@ -1756,6 +1755,18 @@ exports.SearchApiFactory = SearchApiFactory;
|
|
|
1756
1755
|
* SearchApi - object-oriented interface
|
|
1757
1756
|
*/
|
|
1758
1757
|
class SearchApi extends base_1.BaseAPI {
|
|
1758
|
+
/**
|
|
1759
|
+
* Execute multiple search queries in a single request. Each query is independent and can have its own filters, pagination, and sorting. Maximum 10 queries per request. **Authentication:** Send `x-storeid` and `x-storesecret` headers.
|
|
1760
|
+
* @summary Multi-Search (POST)
|
|
1761
|
+
* @param {string} xStoreid Store ID (from dashboard)
|
|
1762
|
+
* @param {string} xStoresecret Store read secret (from dashboard)
|
|
1763
|
+
* @param {DataTypesMultiSearchRequest} dataTypesMultiSearchRequest Array of search queries
|
|
1764
|
+
* @param {*} [options] Override http request option.
|
|
1765
|
+
* @throws {RequiredError}
|
|
1766
|
+
*/
|
|
1767
|
+
v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options) {
|
|
1768
|
+
return (0, exports.SearchApiFp)(this.configuration).v1MultiSearchPost(xStoreid, xStoresecret, dataTypesMultiSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1769
|
+
}
|
|
1759
1770
|
/**
|
|
1760
1771
|
* Same as POST search; all parameters are passed as query params. **Authentication:** `x-storeid` and `x-storesecret` headers. Use `q` for the search query; optional params: `page`, `per_page`, `filter_by`, `sort_by`, `facet_by`, `widget_mode`, `include_suggestions`, etc.
|
|
1761
1772
|
* @summary Search (GET)
|
|
@@ -1831,62 +1842,19 @@ exports.SearchApi = SearchApi;
|
|
|
1831
1842
|
const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
1832
1843
|
return {
|
|
1833
1844
|
/**
|
|
1834
|
-
*
|
|
1835
|
-
* @summary Create Store (Public SDK API)
|
|
1836
|
-
* @param {string} authorization Bearer JWT Token
|
|
1837
|
-
* @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
|
|
1838
|
-
* @param {*} [options] Override http request option.
|
|
1839
|
-
* @throws {RequiredError}
|
|
1840
|
-
*/
|
|
1841
|
-
apiV1StoresPost: async (authorization, dataTypesCreateStoreRequest, options = {}) => {
|
|
1842
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
1843
|
-
(0, common_1.assertParamExists)('apiV1StoresPost', 'authorization', authorization);
|
|
1844
|
-
// verify required parameter 'dataTypesCreateStoreRequest' is not null or undefined
|
|
1845
|
-
(0, common_1.assertParamExists)('apiV1StoresPost', 'dataTypesCreateStoreRequest', dataTypesCreateStoreRequest);
|
|
1846
|
-
const localVarPath = `/api/v1/stores`;
|
|
1847
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1848
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1849
|
-
let baseOptions;
|
|
1850
|
-
if (configuration) {
|
|
1851
|
-
baseOptions = configuration.baseOptions;
|
|
1852
|
-
}
|
|
1853
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1854
|
-
const localVarHeaderParameter = {};
|
|
1855
|
-
const localVarQueryParameter = {};
|
|
1856
|
-
// authentication BearerAuth required
|
|
1857
|
-
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1858
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1859
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1860
|
-
if (authorization != null) {
|
|
1861
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1862
|
-
}
|
|
1863
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1864
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1865
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1866
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateStoreRequest, localVarRequestOptions, configuration);
|
|
1867
|
-
return {
|
|
1868
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1869
|
-
options: localVarRequestOptions,
|
|
1870
|
-
};
|
|
1871
|
-
},
|
|
1872
|
-
/**
|
|
1873
|
-
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
|
|
1845
|
+
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
1874
1846
|
* @summary Get store configuration
|
|
1875
1847
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
1876
1848
|
* @param {string} xStoresecret Store read secret
|
|
1877
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
1878
1849
|
* @param {*} [options] Override http request option.
|
|
1879
1850
|
* @throws {RequiredError}
|
|
1880
1851
|
*/
|
|
1881
|
-
|
|
1852
|
+
apiV1StoresConfigGet: async (xStoreid, xStoresecret, options = {}) => {
|
|
1882
1853
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
1883
|
-
(0, common_1.assertParamExists)('
|
|
1854
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigGet', 'xStoreid', xStoreid);
|
|
1884
1855
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
1885
|
-
(0, common_1.assertParamExists)('
|
|
1886
|
-
|
|
1887
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigGet', 'xStoreID', xStoreID);
|
|
1888
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
1889
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1856
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigGet', 'xStoresecret', xStoresecret);
|
|
1857
|
+
const localVarPath = `/api/v1/stores/config`;
|
|
1890
1858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1891
1859
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1892
1860
|
let baseOptions;
|
|
@@ -1914,26 +1882,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1914
1882
|
};
|
|
1915
1883
|
},
|
|
1916
1884
|
/**
|
|
1917
|
-
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
1885
|
+
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
1918
1886
|
* @summary Update store configuration
|
|
1919
1887
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
1920
1888
|
* @param {string} xStoreWriteSecret Store write secret
|
|
1921
|
-
* @param {
|
|
1922
|
-
* @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
|
|
1889
|
+
* @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
|
|
1923
1890
|
* @param {*} [options] Override http request option.
|
|
1924
1891
|
* @throws {RequiredError}
|
|
1925
1892
|
*/
|
|
1926
|
-
|
|
1893
|
+
apiV1StoresConfigPut: async (xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options = {}) => {
|
|
1927
1894
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
1928
|
-
(0, common_1.assertParamExists)('
|
|
1895
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigPut', 'xStoreid', xStoreid);
|
|
1929
1896
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
1930
|
-
(0, common_1.assertParamExists)('
|
|
1931
|
-
// verify required parameter '
|
|
1932
|
-
(0, common_1.assertParamExists)('
|
|
1933
|
-
|
|
1934
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig);
|
|
1935
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
1936
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1897
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
1898
|
+
// verify required parameter 'dataTypesStoreConfigUpdateRequest' is not null or undefined
|
|
1899
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigPut', 'dataTypesStoreConfigUpdateRequest', dataTypesStoreConfigUpdateRequest);
|
|
1900
|
+
const localVarPath = `/api/v1/stores/config`;
|
|
1937
1901
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1938
1902
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1939
1903
|
let baseOptions;
|
|
@@ -1956,30 +1920,26 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1956
1920
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1957
1921
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1958
1922
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1959
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1923
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreConfigUpdateRequest, localVarRequestOptions, configuration);
|
|
1960
1924
|
return {
|
|
1961
1925
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1962
1926
|
options: localVarRequestOptions,
|
|
1963
1927
|
};
|
|
1964
1928
|
},
|
|
1965
1929
|
/**
|
|
1966
|
-
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
1930
|
+
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
1967
1931
|
* @summary Get store config schema
|
|
1968
1932
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
1969
1933
|
* @param {string} xStoresecret Store read secret
|
|
1970
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
1971
1934
|
* @param {*} [options] Override http request option.
|
|
1972
1935
|
* @throws {RequiredError}
|
|
1973
1936
|
*/
|
|
1974
|
-
|
|
1937
|
+
apiV1StoresConfigSchemaGet: async (xStoreid, xStoresecret, options = {}) => {
|
|
1975
1938
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
1976
|
-
(0, common_1.assertParamExists)('
|
|
1939
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigSchemaGet', 'xStoreid', xStoreid);
|
|
1977
1940
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
1978
|
-
(0, common_1.assertParamExists)('
|
|
1979
|
-
|
|
1980
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID);
|
|
1981
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/config-schema`
|
|
1982
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1941
|
+
(0, common_1.assertParamExists)('apiV1StoresConfigSchemaGet', 'xStoresecret', xStoresecret);
|
|
1942
|
+
const localVarPath = `/api/v1/stores/config-schema`;
|
|
1983
1943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1984
1944
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1985
1945
|
let baseOptions;
|
|
@@ -2007,26 +1967,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2007
1967
|
};
|
|
2008
1968
|
},
|
|
2009
1969
|
/**
|
|
2010
|
-
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
1970
|
+
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`. Each item can specify its own action.
|
|
2011
1971
|
* @summary Bulk index documents
|
|
2012
1972
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2013
1973
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2014
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2015
1974
|
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest List of operations
|
|
2016
1975
|
* @param {*} [options] Override http request option.
|
|
2017
1976
|
* @throws {RequiredError}
|
|
2018
1977
|
*/
|
|
2019
|
-
|
|
1978
|
+
apiV1StoresDocumentsBulkPost: async (xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options = {}) => {
|
|
2020
1979
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2021
|
-
(0, common_1.assertParamExists)('
|
|
1980
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsBulkPost', 'xStoreid', xStoreid);
|
|
2022
1981
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2023
|
-
(0, common_1.assertParamExists)('
|
|
2024
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2025
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDDocumentsBulkPost', 'xStoreID', xStoreID);
|
|
1982
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsBulkPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2026
1983
|
// verify required parameter 'dataTypesBulkDocumentRequest' is not null or undefined
|
|
2027
|
-
(0, common_1.assertParamExists)('
|
|
2028
|
-
const localVarPath = `/api/v1/stores/
|
|
2029
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1984
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsBulkPost', 'dataTypesBulkDocumentRequest', dataTypesBulkDocumentRequest);
|
|
1985
|
+
const localVarPath = `/api/v1/stores/documents/bulk`;
|
|
2030
1986
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2031
1987
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2032
1988
|
let baseOptions;
|
|
@@ -2056,23 +2012,19 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2056
2012
|
};
|
|
2057
2013
|
},
|
|
2058
2014
|
/**
|
|
2059
|
-
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2015
|
+
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2060
2016
|
* @summary Clear all documents
|
|
2061
2017
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2062
2018
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2063
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2064
2019
|
* @param {*} [options] Override http request option.
|
|
2065
2020
|
* @throws {RequiredError}
|
|
2066
2021
|
*/
|
|
2067
|
-
|
|
2022
|
+
apiV1StoresDocumentsDelete: async (xStoreid, xStoreWriteSecret, options = {}) => {
|
|
2068
2023
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2069
|
-
(0, common_1.assertParamExists)('
|
|
2024
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDelete', 'xStoreid', xStoreid);
|
|
2070
2025
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2071
|
-
(0, common_1.assertParamExists)('
|
|
2072
|
-
|
|
2073
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDDocumentsDelete', 'xStoreID', xStoreID);
|
|
2074
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/documents`
|
|
2075
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2026
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDelete', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2027
|
+
const localVarPath = `/api/v1/stores/documents`;
|
|
2076
2028
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2077
2029
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2078
2030
|
let baseOptions;
|
|
@@ -2100,26 +2052,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2100
2052
|
};
|
|
2101
2053
|
},
|
|
2102
2054
|
/**
|
|
2103
|
-
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2055
|
+
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2104
2056
|
* @summary Delete a document
|
|
2105
2057
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2106
2058
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2107
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2108
2059
|
* @param {string} documentID Document ID to delete
|
|
2109
2060
|
* @param {*} [options] Override http request option.
|
|
2110
2061
|
* @throws {RequiredError}
|
|
2111
2062
|
*/
|
|
2112
|
-
|
|
2063
|
+
apiV1StoresDocumentsDocumentIDDelete: async (xStoreid, xStoreWriteSecret, documentID, options = {}) => {
|
|
2113
2064
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2114
|
-
(0, common_1.assertParamExists)('
|
|
2065
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDDelete', 'xStoreid', xStoreid);
|
|
2115
2066
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2116
|
-
(0, common_1.assertParamExists)('
|
|
2117
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2118
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDDocumentsDocumentIDDelete', 'xStoreID', xStoreID);
|
|
2067
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDDelete', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2119
2068
|
// verify required parameter 'documentID' is not null or undefined
|
|
2120
|
-
(0, common_1.assertParamExists)('
|
|
2121
|
-
const localVarPath = `/api/v1/stores/
|
|
2122
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
2069
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDDelete', 'documentID', documentID);
|
|
2070
|
+
const localVarPath = `/api/v1/stores/documents/{documentID}`
|
|
2123
2071
|
.replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
|
|
2124
2072
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2125
2073
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2148,26 +2096,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2148
2096
|
};
|
|
2149
2097
|
},
|
|
2150
2098
|
/**
|
|
2151
|
-
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret
|
|
2099
|
+
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret`. Used by product pages and PDP.
|
|
2152
2100
|
* @summary Get a document by ID
|
|
2153
2101
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2154
2102
|
* @param {string} xStoresecret Store read secret
|
|
2155
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2156
2103
|
* @param {string} documentID Document ID to retrieve
|
|
2157
2104
|
* @param {*} [options] Override http request option.
|
|
2158
2105
|
* @throws {RequiredError}
|
|
2159
2106
|
*/
|
|
2160
|
-
|
|
2107
|
+
apiV1StoresDocumentsDocumentIDGet: async (xStoreid, xStoresecret, documentID, options = {}) => {
|
|
2161
2108
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2162
|
-
(0, common_1.assertParamExists)('
|
|
2109
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDGet', 'xStoreid', xStoreid);
|
|
2163
2110
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
2164
|
-
(0, common_1.assertParamExists)('
|
|
2165
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2166
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDDocumentsDocumentIDGet', 'xStoreID', xStoreID);
|
|
2111
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDGet', 'xStoresecret', xStoresecret);
|
|
2167
2112
|
// verify required parameter 'documentID' is not null or undefined
|
|
2168
|
-
(0, common_1.assertParamExists)('
|
|
2169
|
-
const localVarPath = `/api/v1/stores/
|
|
2170
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
2113
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsDocumentIDGet', 'documentID', documentID);
|
|
2114
|
+
const localVarPath = `/api/v1/stores/documents/{documentID}`
|
|
2171
2115
|
.replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
|
|
2172
2116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2173
2117
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2196,26 +2140,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2196
2140
|
};
|
|
2197
2141
|
},
|
|
2198
2142
|
/**
|
|
2199
|
-
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2143
|
+
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`. If you omit document ID, one is generated; existing documents with the same ID are updated.
|
|
2200
2144
|
* @summary Index a single document
|
|
2201
2145
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2202
2146
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2203
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2204
2147
|
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document fields to index
|
|
2205
2148
|
* @param {*} [options] Override http request option.
|
|
2206
2149
|
* @throws {RequiredError}
|
|
2207
2150
|
*/
|
|
2208
|
-
|
|
2151
|
+
apiV1StoresDocumentsPost: async (xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options = {}) => {
|
|
2209
2152
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2210
|
-
(0, common_1.assertParamExists)('
|
|
2153
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsPost', 'xStoreid', xStoreid);
|
|
2211
2154
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2212
|
-
(0, common_1.assertParamExists)('
|
|
2213
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2214
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDDocumentsPost', 'xStoreID', xStoreID);
|
|
2155
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2215
2156
|
// verify required parameter 'dataTypesDocumentRequest' is not null or undefined
|
|
2216
|
-
(0, common_1.assertParamExists)('
|
|
2217
|
-
const localVarPath = `/api/v1/stores/
|
|
2218
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2157
|
+
(0, common_1.assertParamExists)('apiV1StoresDocumentsPost', 'dataTypesDocumentRequest', dataTypesDocumentRequest);
|
|
2158
|
+
const localVarPath = `/api/v1/stores/documents`;
|
|
2219
2159
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2220
2160
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2221
2161
|
let baseOptions;
|
|
@@ -2245,23 +2185,19 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2245
2185
|
};
|
|
2246
2186
|
},
|
|
2247
2187
|
/**
|
|
2248
|
-
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2188
|
+
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2249
2189
|
* @summary Get store info
|
|
2250
2190
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2251
2191
|
* @param {string} xStoresecret Store read secret
|
|
2252
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2253
2192
|
* @param {*} [options] Override http request option.
|
|
2254
2193
|
* @throws {RequiredError}
|
|
2255
2194
|
*/
|
|
2256
|
-
|
|
2195
|
+
apiV1StoresGet: async (xStoreid, xStoresecret, options = {}) => {
|
|
2257
2196
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2258
|
-
(0, common_1.assertParamExists)('
|
|
2197
|
+
(0, common_1.assertParamExists)('apiV1StoresGet', 'xStoreid', xStoreid);
|
|
2259
2198
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
2260
|
-
(0, common_1.assertParamExists)('
|
|
2261
|
-
|
|
2262
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDGet', 'xStoreID', xStoreID);
|
|
2263
|
-
const localVarPath = `/api/v1/stores/{xStoreID}`
|
|
2264
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2199
|
+
(0, common_1.assertParamExists)('apiV1StoresGet', 'xStoresecret', xStoresecret);
|
|
2200
|
+
const localVarPath = `/api/v1/stores`;
|
|
2265
2201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2266
2202
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2267
2203
|
let baseOptions;
|
|
@@ -2289,23 +2225,19 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2289
2225
|
};
|
|
2290
2226
|
},
|
|
2291
2227
|
/**
|
|
2292
|
-
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2228
|
+
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2293
2229
|
* @summary Get query suggestions configuration
|
|
2294
2230
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2295
2231
|
* @param {string} xStoresecret Store read secret
|
|
2296
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2297
2232
|
* @param {*} [options] Override http request option.
|
|
2298
2233
|
* @throws {RequiredError}
|
|
2299
2234
|
*/
|
|
2300
|
-
|
|
2235
|
+
apiV1StoresQuerySuggestionsConfigGet: async (xStoreid, xStoresecret, options = {}) => {
|
|
2301
2236
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2302
|
-
(0, common_1.assertParamExists)('
|
|
2237
|
+
(0, common_1.assertParamExists)('apiV1StoresQuerySuggestionsConfigGet', 'xStoreid', xStoreid);
|
|
2303
2238
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
2304
|
-
(0, common_1.assertParamExists)('
|
|
2305
|
-
|
|
2306
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDQuerySuggestionsConfigGet', 'xStoreID', xStoreID);
|
|
2307
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/query-suggestions/config`
|
|
2308
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2239
|
+
(0, common_1.assertParamExists)('apiV1StoresQuerySuggestionsConfigGet', 'xStoresecret', xStoresecret);
|
|
2240
|
+
const localVarPath = `/api/v1/stores/query-suggestions/config`;
|
|
2309
2241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2310
2242
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2311
2243
|
let baseOptions;
|
|
@@ -2333,26 +2265,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2333
2265
|
};
|
|
2334
2266
|
},
|
|
2335
2267
|
/**
|
|
2336
|
-
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2268
|
+
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2337
2269
|
* @summary Update query suggestions configuration
|
|
2338
2270
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2339
2271
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2340
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2341
2272
|
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Fields to update (partial)
|
|
2342
2273
|
* @param {*} [options] Override http request option.
|
|
2343
2274
|
* @throws {RequiredError}
|
|
2344
2275
|
*/
|
|
2345
|
-
|
|
2276
|
+
apiV1StoresQuerySuggestionsConfigPut: async (xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options = {}) => {
|
|
2346
2277
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2347
|
-
(0, common_1.assertParamExists)('
|
|
2278
|
+
(0, common_1.assertParamExists)('apiV1StoresQuerySuggestionsConfigPut', 'xStoreid', xStoreid);
|
|
2348
2279
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2349
|
-
(0, common_1.assertParamExists)('
|
|
2350
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2351
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDQuerySuggestionsConfigPut', 'xStoreID', xStoreID);
|
|
2280
|
+
(0, common_1.assertParamExists)('apiV1StoresQuerySuggestionsConfigPut', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2352
2281
|
// verify required parameter 'querySuggestionsServiceUpdateSuggestionConfigRequest' is not null or undefined
|
|
2353
|
-
(0, common_1.assertParamExists)('
|
|
2354
|
-
const localVarPath = `/api/v1/stores/
|
|
2355
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2282
|
+
(0, common_1.assertParamExists)('apiV1StoresQuerySuggestionsConfigPut', 'querySuggestionsServiceUpdateSuggestionConfigRequest', querySuggestionsServiceUpdateSuggestionConfigRequest);
|
|
2283
|
+
const localVarPath = `/api/v1/stores/query-suggestions/config`;
|
|
2356
2284
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2357
2285
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2358
2286
|
let baseOptions;
|
|
@@ -2382,23 +2310,19 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2382
2310
|
};
|
|
2383
2311
|
},
|
|
2384
2312
|
/**
|
|
2385
|
-
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2313
|
+
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2386
2314
|
* @summary Get index schema
|
|
2387
2315
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2388
2316
|
* @param {string} xStoresecret Store read secret
|
|
2389
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2390
2317
|
* @param {*} [options] Override http request option.
|
|
2391
2318
|
* @throws {RequiredError}
|
|
2392
2319
|
*/
|
|
2393
|
-
|
|
2320
|
+
apiV1StoresSchemaGet: async (xStoreid, xStoresecret, options = {}) => {
|
|
2394
2321
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2395
|
-
(0, common_1.assertParamExists)('
|
|
2322
|
+
(0, common_1.assertParamExists)('apiV1StoresSchemaGet', 'xStoreid', xStoreid);
|
|
2396
2323
|
// verify required parameter 'xStoresecret' is not null or undefined
|
|
2397
|
-
(0, common_1.assertParamExists)('
|
|
2398
|
-
|
|
2399
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDSchemaGet', 'xStoreID', xStoreID);
|
|
2400
|
-
const localVarPath = `/api/v1/stores/{xStoreID}/schema`
|
|
2401
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2324
|
+
(0, common_1.assertParamExists)('apiV1StoresSchemaGet', 'xStoresecret', xStoresecret);
|
|
2325
|
+
const localVarPath = `/api/v1/stores/schema`;
|
|
2402
2326
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2403
2327
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2404
2328
|
let baseOptions;
|
|
@@ -2426,26 +2350,22 @@ const StoreManagementApiAxiosParamCreator = function (configuration) {
|
|
|
2426
2350
|
};
|
|
2427
2351
|
},
|
|
2428
2352
|
/**
|
|
2429
|
-
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2353
|
+
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2430
2354
|
* @summary Create or update index schema
|
|
2431
2355
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2432
2356
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2433
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2434
2357
|
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema definition and mode
|
|
2435
2358
|
* @param {*} [options] Override http request option.
|
|
2436
2359
|
* @throws {RequiredError}
|
|
2437
2360
|
*/
|
|
2438
|
-
|
|
2361
|
+
apiV1StoresSchemaPost: async (xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options = {}) => {
|
|
2439
2362
|
// verify required parameter 'xStoreid' is not null or undefined
|
|
2440
|
-
(0, common_1.assertParamExists)('
|
|
2363
|
+
(0, common_1.assertParamExists)('apiV1StoresSchemaPost', 'xStoreid', xStoreid);
|
|
2441
2364
|
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2442
|
-
(0, common_1.assertParamExists)('
|
|
2443
|
-
// verify required parameter 'xStoreID' is not null or undefined
|
|
2444
|
-
(0, common_1.assertParamExists)('apiV1StoresXStoreIDSchemaPost', 'xStoreID', xStoreID);
|
|
2365
|
+
(0, common_1.assertParamExists)('apiV1StoresSchemaPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2445
2366
|
// verify required parameter 'dataTypesCollectionSchemaRequest' is not null or undefined
|
|
2446
|
-
(0, common_1.assertParamExists)('
|
|
2447
|
-
const localVarPath = `/api/v1/stores/
|
|
2448
|
-
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2367
|
+
(0, common_1.assertParamExists)('apiV1StoresSchemaPost', 'dataTypesCollectionSchemaRequest', dataTypesCollectionSchemaRequest);
|
|
2368
|
+
const localVarPath = `/api/v1/stores/schema`;
|
|
2449
2369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2450
2370
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2451
2371
|
let baseOptions;
|
|
@@ -2484,219 +2404,192 @@ const StoreManagementApiFp = function (configuration) {
|
|
|
2484
2404
|
const localVarAxiosParamCreator = (0, exports.StoreManagementApiAxiosParamCreator)(configuration);
|
|
2485
2405
|
return {
|
|
2486
2406
|
/**
|
|
2487
|
-
*
|
|
2488
|
-
* @summary Create Store (Public SDK API)
|
|
2489
|
-
* @param {string} authorization Bearer JWT Token
|
|
2490
|
-
* @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
|
|
2491
|
-
* @param {*} [options] Override http request option.
|
|
2492
|
-
* @throws {RequiredError}
|
|
2493
|
-
*/
|
|
2494
|
-
async apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
|
|
2495
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options);
|
|
2496
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2497
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresPost']?.[localVarOperationServerIndex]?.url;
|
|
2498
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2499
|
-
},
|
|
2500
|
-
/**
|
|
2501
|
-
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
|
|
2407
|
+
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2502
2408
|
* @summary Get store configuration
|
|
2503
2409
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2504
2410
|
* @param {string} xStoresecret Store read secret
|
|
2505
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2506
2411
|
* @param {*} [options] Override http request option.
|
|
2507
2412
|
* @throws {RequiredError}
|
|
2508
2413
|
*/
|
|
2509
|
-
async
|
|
2510
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2414
|
+
async apiV1StoresConfigGet(xStoreid, xStoresecret, options) {
|
|
2415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresConfigGet(xStoreid, xStoresecret, options);
|
|
2511
2416
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2512
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2417
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresConfigGet']?.[localVarOperationServerIndex]?.url;
|
|
2513
2418
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2514
2419
|
},
|
|
2515
2420
|
/**
|
|
2516
|
-
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2421
|
+
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2517
2422
|
* @summary Update store configuration
|
|
2518
2423
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2519
2424
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2520
|
-
* @param {
|
|
2521
|
-
* @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
|
|
2425
|
+
* @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
|
|
2522
2426
|
* @param {*} [options] Override http request option.
|
|
2523
2427
|
* @throws {RequiredError}
|
|
2524
2428
|
*/
|
|
2525
|
-
async
|
|
2526
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2429
|
+
async apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options) {
|
|
2430
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options);
|
|
2527
2431
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2528
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2432
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresConfigPut']?.[localVarOperationServerIndex]?.url;
|
|
2529
2433
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2530
2434
|
},
|
|
2531
2435
|
/**
|
|
2532
|
-
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2436
|
+
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2533
2437
|
* @summary Get store config schema
|
|
2534
2438
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2535
2439
|
* @param {string} xStoresecret Store read secret
|
|
2536
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2537
2440
|
* @param {*} [options] Override http request option.
|
|
2538
2441
|
* @throws {RequiredError}
|
|
2539
2442
|
*/
|
|
2540
|
-
async
|
|
2541
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2443
|
+
async apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options) {
|
|
2444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options);
|
|
2542
2445
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2543
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2446
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresConfigSchemaGet']?.[localVarOperationServerIndex]?.url;
|
|
2544
2447
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2545
2448
|
},
|
|
2546
2449
|
/**
|
|
2547
|
-
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2450
|
+
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`. Each item can specify its own action.
|
|
2548
2451
|
* @summary Bulk index documents
|
|
2549
2452
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2550
2453
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2551
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2552
2454
|
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest List of operations
|
|
2553
2455
|
* @param {*} [options] Override http request option.
|
|
2554
2456
|
* @throws {RequiredError}
|
|
2555
2457
|
*/
|
|
2556
|
-
async
|
|
2557
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2458
|
+
async apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options) {
|
|
2459
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options);
|
|
2558
2460
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2559
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2461
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresDocumentsBulkPost']?.[localVarOperationServerIndex]?.url;
|
|
2560
2462
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2561
2463
|
},
|
|
2562
2464
|
/**
|
|
2563
|
-
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2465
|
+
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2564
2466
|
* @summary Clear all documents
|
|
2565
2467
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2566
2468
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2567
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2568
2469
|
* @param {*} [options] Override http request option.
|
|
2569
2470
|
* @throws {RequiredError}
|
|
2570
2471
|
*/
|
|
2571
|
-
async
|
|
2572
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2472
|
+
async apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options) {
|
|
2473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options);
|
|
2573
2474
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2574
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2475
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresDocumentsDelete']?.[localVarOperationServerIndex]?.url;
|
|
2575
2476
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2576
2477
|
},
|
|
2577
2478
|
/**
|
|
2578
|
-
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2479
|
+
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2579
2480
|
* @summary Delete a document
|
|
2580
2481
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2581
2482
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2582
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2583
2483
|
* @param {string} documentID Document ID to delete
|
|
2584
2484
|
* @param {*} [options] Override http request option.
|
|
2585
2485
|
* @throws {RequiredError}
|
|
2586
2486
|
*/
|
|
2587
|
-
async
|
|
2588
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2487
|
+
async apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options) {
|
|
2488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options);
|
|
2589
2489
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2590
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2490
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresDocumentsDocumentIDDelete']?.[localVarOperationServerIndex]?.url;
|
|
2591
2491
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2592
2492
|
},
|
|
2593
2493
|
/**
|
|
2594
|
-
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret
|
|
2494
|
+
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret`. Used by product pages and PDP.
|
|
2595
2495
|
* @summary Get a document by ID
|
|
2596
2496
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2597
2497
|
* @param {string} xStoresecret Store read secret
|
|
2598
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2599
2498
|
* @param {string} documentID Document ID to retrieve
|
|
2600
2499
|
* @param {*} [options] Override http request option.
|
|
2601
2500
|
* @throws {RequiredError}
|
|
2602
2501
|
*/
|
|
2603
|
-
async
|
|
2604
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2502
|
+
async apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options) {
|
|
2503
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options);
|
|
2605
2504
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2606
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2505
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresDocumentsDocumentIDGet']?.[localVarOperationServerIndex]?.url;
|
|
2607
2506
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2608
2507
|
},
|
|
2609
2508
|
/**
|
|
2610
|
-
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2509
|
+
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`. If you omit document ID, one is generated; existing documents with the same ID are updated.
|
|
2611
2510
|
* @summary Index a single document
|
|
2612
2511
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2613
2512
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2614
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2615
2513
|
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document fields to index
|
|
2616
2514
|
* @param {*} [options] Override http request option.
|
|
2617
2515
|
* @throws {RequiredError}
|
|
2618
2516
|
*/
|
|
2619
|
-
async
|
|
2620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2517
|
+
async apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options) {
|
|
2518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options);
|
|
2621
2519
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2622
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2520
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresDocumentsPost']?.[localVarOperationServerIndex]?.url;
|
|
2623
2521
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2624
2522
|
},
|
|
2625
2523
|
/**
|
|
2626
|
-
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2524
|
+
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2627
2525
|
* @summary Get store info
|
|
2628
2526
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2629
2527
|
* @param {string} xStoresecret Store read secret
|
|
2630
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2631
2528
|
* @param {*} [options] Override http request option.
|
|
2632
2529
|
* @throws {RequiredError}
|
|
2633
2530
|
*/
|
|
2634
|
-
async
|
|
2635
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2531
|
+
async apiV1StoresGet(xStoreid, xStoresecret, options) {
|
|
2532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresGet(xStoreid, xStoresecret, options);
|
|
2636
2533
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2637
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2534
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresGet']?.[localVarOperationServerIndex]?.url;
|
|
2638
2535
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2639
2536
|
},
|
|
2640
2537
|
/**
|
|
2641
|
-
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2538
|
+
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2642
2539
|
* @summary Get query suggestions configuration
|
|
2643
2540
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2644
2541
|
* @param {string} xStoresecret Store read secret
|
|
2645
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2646
2542
|
* @param {*} [options] Override http request option.
|
|
2647
2543
|
* @throws {RequiredError}
|
|
2648
2544
|
*/
|
|
2649
|
-
async
|
|
2650
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2545
|
+
async apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options) {
|
|
2546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options);
|
|
2651
2547
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2652
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2548
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresQuerySuggestionsConfigGet']?.[localVarOperationServerIndex]?.url;
|
|
2653
2549
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2654
2550
|
},
|
|
2655
2551
|
/**
|
|
2656
|
-
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2552
|
+
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2657
2553
|
* @summary Update query suggestions configuration
|
|
2658
2554
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2659
2555
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2660
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2661
2556
|
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Fields to update (partial)
|
|
2662
2557
|
* @param {*} [options] Override http request option.
|
|
2663
2558
|
* @throws {RequiredError}
|
|
2664
2559
|
*/
|
|
2665
|
-
async
|
|
2666
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2560
|
+
async apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
2561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options);
|
|
2667
2562
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2668
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2563
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresQuerySuggestionsConfigPut']?.[localVarOperationServerIndex]?.url;
|
|
2669
2564
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2670
2565
|
},
|
|
2671
2566
|
/**
|
|
2672
|
-
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2567
|
+
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2673
2568
|
* @summary Get index schema
|
|
2674
2569
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2675
2570
|
* @param {string} xStoresecret Store read secret
|
|
2676
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2677
2571
|
* @param {*} [options] Override http request option.
|
|
2678
2572
|
* @throws {RequiredError}
|
|
2679
2573
|
*/
|
|
2680
|
-
async
|
|
2681
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2574
|
+
async apiV1StoresSchemaGet(xStoreid, xStoresecret, options) {
|
|
2575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresSchemaGet(xStoreid, xStoresecret, options);
|
|
2682
2576
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2683
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresSchemaGet']?.[localVarOperationServerIndex]?.url;
|
|
2684
2578
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2685
2579
|
},
|
|
2686
2580
|
/**
|
|
2687
|
-
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2581
|
+
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2688
2582
|
* @summary Create or update index schema
|
|
2689
2583
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2690
2584
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2691
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2692
2585
|
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema definition and mode
|
|
2693
2586
|
* @param {*} [options] Override http request option.
|
|
2694
2587
|
* @throws {RequiredError}
|
|
2695
2588
|
*/
|
|
2696
|
-
async
|
|
2697
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2589
|
+
async apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options) {
|
|
2590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options);
|
|
2698
2591
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2699
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.
|
|
2592
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['StoreManagementApi.apiV1StoresSchemaPost']?.[localVarOperationServerIndex]?.url;
|
|
2700
2593
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2701
2594
|
},
|
|
2702
2595
|
};
|
|
@@ -2709,178 +2602,154 @@ const StoreManagementApiFactory = function (configuration, basePath, axios) {
|
|
|
2709
2602
|
const localVarFp = (0, exports.StoreManagementApiFp)(configuration);
|
|
2710
2603
|
return {
|
|
2711
2604
|
/**
|
|
2712
|
-
*
|
|
2713
|
-
* @summary Create Store (Public SDK API)
|
|
2714
|
-
* @param {string} authorization Bearer JWT Token
|
|
2715
|
-
* @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
|
|
2716
|
-
* @param {*} [options] Override http request option.
|
|
2717
|
-
* @throws {RequiredError}
|
|
2718
|
-
*/
|
|
2719
|
-
apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
|
|
2720
|
-
return localVarFp.apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(axios, basePath));
|
|
2721
|
-
},
|
|
2722
|
-
/**
|
|
2723
|
-
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
|
|
2605
|
+
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2724
2606
|
* @summary Get store configuration
|
|
2725
2607
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2726
2608
|
* @param {string} xStoresecret Store read secret
|
|
2727
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2728
2609
|
* @param {*} [options] Override http request option.
|
|
2729
2610
|
* @throws {RequiredError}
|
|
2730
2611
|
*/
|
|
2731
|
-
|
|
2732
|
-
return localVarFp.
|
|
2612
|
+
apiV1StoresConfigGet(xStoreid, xStoresecret, options) {
|
|
2613
|
+
return localVarFp.apiV1StoresConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
2733
2614
|
},
|
|
2734
2615
|
/**
|
|
2735
|
-
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2616
|
+
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2736
2617
|
* @summary Update store configuration
|
|
2737
2618
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2738
2619
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2739
|
-
* @param {
|
|
2740
|
-
* @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
|
|
2620
|
+
* @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
|
|
2741
2621
|
* @param {*} [options] Override http request option.
|
|
2742
2622
|
* @throws {RequiredError}
|
|
2743
2623
|
*/
|
|
2744
|
-
|
|
2745
|
-
return localVarFp.
|
|
2624
|
+
apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options) {
|
|
2625
|
+
return localVarFp.apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2746
2626
|
},
|
|
2747
2627
|
/**
|
|
2748
|
-
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2628
|
+
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2749
2629
|
* @summary Get store config schema
|
|
2750
2630
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2751
2631
|
* @param {string} xStoresecret Store read secret
|
|
2752
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2753
2632
|
* @param {*} [options] Override http request option.
|
|
2754
2633
|
* @throws {RequiredError}
|
|
2755
2634
|
*/
|
|
2756
|
-
|
|
2757
|
-
return localVarFp.
|
|
2635
|
+
apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options) {
|
|
2636
|
+
return localVarFp.apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
2758
2637
|
},
|
|
2759
2638
|
/**
|
|
2760
|
-
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2639
|
+
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`. Each item can specify its own action.
|
|
2761
2640
|
* @summary Bulk index documents
|
|
2762
2641
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2763
2642
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2764
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2765
2643
|
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest List of operations
|
|
2766
2644
|
* @param {*} [options] Override http request option.
|
|
2767
2645
|
* @throws {RequiredError}
|
|
2768
2646
|
*/
|
|
2769
|
-
|
|
2770
|
-
return localVarFp.
|
|
2647
|
+
apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options) {
|
|
2648
|
+
return localVarFp.apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options).then((request) => request(axios, basePath));
|
|
2771
2649
|
},
|
|
2772
2650
|
/**
|
|
2773
|
-
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2651
|
+
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2774
2652
|
* @summary Clear all documents
|
|
2775
2653
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2776
2654
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2777
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2778
2655
|
* @param {*} [options] Override http request option.
|
|
2779
2656
|
* @throws {RequiredError}
|
|
2780
2657
|
*/
|
|
2781
|
-
|
|
2782
|
-
return localVarFp.
|
|
2658
|
+
apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options) {
|
|
2659
|
+
return localVarFp.apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options).then((request) => request(axios, basePath));
|
|
2783
2660
|
},
|
|
2784
2661
|
/**
|
|
2785
|
-
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2662
|
+
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2786
2663
|
* @summary Delete a document
|
|
2787
2664
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2788
2665
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2789
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2790
2666
|
* @param {string} documentID Document ID to delete
|
|
2791
2667
|
* @param {*} [options] Override http request option.
|
|
2792
2668
|
* @throws {RequiredError}
|
|
2793
2669
|
*/
|
|
2794
|
-
|
|
2795
|
-
return localVarFp.
|
|
2670
|
+
apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options) {
|
|
2671
|
+
return localVarFp.apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options).then((request) => request(axios, basePath));
|
|
2796
2672
|
},
|
|
2797
2673
|
/**
|
|
2798
|
-
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret
|
|
2674
|
+
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret`. Used by product pages and PDP.
|
|
2799
2675
|
* @summary Get a document by ID
|
|
2800
2676
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2801
2677
|
* @param {string} xStoresecret Store read secret
|
|
2802
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2803
2678
|
* @param {string} documentID Document ID to retrieve
|
|
2804
2679
|
* @param {*} [options] Override http request option.
|
|
2805
2680
|
* @throws {RequiredError}
|
|
2806
2681
|
*/
|
|
2807
|
-
|
|
2808
|
-
return localVarFp.
|
|
2682
|
+
apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options) {
|
|
2683
|
+
return localVarFp.apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options).then((request) => request(axios, basePath));
|
|
2809
2684
|
},
|
|
2810
2685
|
/**
|
|
2811
|
-
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2686
|
+
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`. If you omit document ID, one is generated; existing documents with the same ID are updated.
|
|
2812
2687
|
* @summary Index a single document
|
|
2813
2688
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2814
2689
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2815
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2816
2690
|
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document fields to index
|
|
2817
2691
|
* @param {*} [options] Override http request option.
|
|
2818
2692
|
* @throws {RequiredError}
|
|
2819
2693
|
*/
|
|
2820
|
-
|
|
2821
|
-
return localVarFp.
|
|
2694
|
+
apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options) {
|
|
2695
|
+
return localVarFp.apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options).then((request) => request(axios, basePath));
|
|
2822
2696
|
},
|
|
2823
2697
|
/**
|
|
2824
|
-
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2698
|
+
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2825
2699
|
* @summary Get store info
|
|
2826
2700
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2827
2701
|
* @param {string} xStoresecret Store read secret
|
|
2828
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2829
2702
|
* @param {*} [options] Override http request option.
|
|
2830
2703
|
* @throws {RequiredError}
|
|
2831
2704
|
*/
|
|
2832
|
-
|
|
2833
|
-
return localVarFp.
|
|
2705
|
+
apiV1StoresGet(xStoreid, xStoresecret, options) {
|
|
2706
|
+
return localVarFp.apiV1StoresGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
2834
2707
|
},
|
|
2835
2708
|
/**
|
|
2836
|
-
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2709
|
+
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2837
2710
|
* @summary Get query suggestions configuration
|
|
2838
2711
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2839
2712
|
* @param {string} xStoresecret Store read secret
|
|
2840
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2841
2713
|
* @param {*} [options] Override http request option.
|
|
2842
2714
|
* @throws {RequiredError}
|
|
2843
2715
|
*/
|
|
2844
|
-
|
|
2845
|
-
return localVarFp.
|
|
2716
|
+
apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options) {
|
|
2717
|
+
return localVarFp.apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
2846
2718
|
},
|
|
2847
2719
|
/**
|
|
2848
|
-
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2720
|
+
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2849
2721
|
* @summary Update query suggestions configuration
|
|
2850
2722
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2851
2723
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2852
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2853
2724
|
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Fields to update (partial)
|
|
2854
2725
|
* @param {*} [options] Override http request option.
|
|
2855
2726
|
* @throws {RequiredError}
|
|
2856
2727
|
*/
|
|
2857
|
-
|
|
2858
|
-
return localVarFp.
|
|
2728
|
+
apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
2729
|
+
return localVarFp.apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(axios, basePath));
|
|
2859
2730
|
},
|
|
2860
2731
|
/**
|
|
2861
|
-
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2732
|
+
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2862
2733
|
* @summary Get index schema
|
|
2863
2734
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2864
2735
|
* @param {string} xStoresecret Store read secret
|
|
2865
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2866
2736
|
* @param {*} [options] Override http request option.
|
|
2867
2737
|
* @throws {RequiredError}
|
|
2868
2738
|
*/
|
|
2869
|
-
|
|
2870
|
-
return localVarFp.
|
|
2739
|
+
apiV1StoresSchemaGet(xStoreid, xStoresecret, options) {
|
|
2740
|
+
return localVarFp.apiV1StoresSchemaGet(xStoreid, xStoresecret, options).then((request) => request(axios, basePath));
|
|
2871
2741
|
},
|
|
2872
2742
|
/**
|
|
2873
|
-
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2743
|
+
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2874
2744
|
* @summary Create or update index schema
|
|
2875
2745
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2876
2746
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2877
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2878
2747
|
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema definition and mode
|
|
2879
2748
|
* @param {*} [options] Override http request option.
|
|
2880
2749
|
* @throws {RequiredError}
|
|
2881
2750
|
*/
|
|
2882
|
-
|
|
2883
|
-
return localVarFp.
|
|
2751
|
+
apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options) {
|
|
2752
|
+
return localVarFp.apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options).then((request) => request(axios, basePath));
|
|
2884
2753
|
},
|
|
2885
2754
|
};
|
|
2886
2755
|
};
|
|
@@ -2890,178 +2759,154 @@ exports.StoreManagementApiFactory = StoreManagementApiFactory;
|
|
|
2890
2759
|
*/
|
|
2891
2760
|
class StoreManagementApi extends base_1.BaseAPI {
|
|
2892
2761
|
/**
|
|
2893
|
-
*
|
|
2894
|
-
* @summary Create Store (Public SDK API)
|
|
2895
|
-
* @param {string} authorization Bearer JWT Token
|
|
2896
|
-
* @param {DataTypesCreateStoreRequest} dataTypesCreateStoreRequest Store creation request
|
|
2897
|
-
* @param {*} [options] Override http request option.
|
|
2898
|
-
* @throws {RequiredError}
|
|
2899
|
-
*/
|
|
2900
|
-
apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options) {
|
|
2901
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresPost(authorization, dataTypesCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2902
|
-
}
|
|
2903
|
-
/**
|
|
2904
|
-
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`. Path `xStoreID` must match the `x-storeid` header.
|
|
2762
|
+
* Returns search and query-suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2905
2763
|
* @summary Get store configuration
|
|
2906
2764
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2907
2765
|
* @param {string} xStoresecret Store read secret
|
|
2908
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2909
2766
|
* @param {*} [options] Override http request option.
|
|
2910
2767
|
* @throws {RequiredError}
|
|
2911
2768
|
*/
|
|
2912
|
-
|
|
2913
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2769
|
+
apiV1StoresConfigGet(xStoreid, xStoresecret, options) {
|
|
2770
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
2914
2771
|
}
|
|
2915
2772
|
/**
|
|
2916
|
-
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2773
|
+
* Update search and store settings. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2917
2774
|
* @summary Update store configuration
|
|
2918
2775
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2919
2776
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2920
|
-
* @param {
|
|
2921
|
-
* @param {DataTypesIndexConfig} dataTypesIndexConfig Fields to update (partial)
|
|
2777
|
+
* @param {DataTypesStoreConfigUpdateRequest} dataTypesStoreConfigUpdateRequest Fields to update (partial, includes allow_public_search)
|
|
2922
2778
|
* @param {*} [options] Override http request option.
|
|
2923
2779
|
* @throws {RequiredError}
|
|
2924
2780
|
*/
|
|
2925
|
-
|
|
2926
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2781
|
+
apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options) {
|
|
2782
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresConfigPut(xStoreid, xStoreWriteSecret, dataTypesStoreConfigUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2927
2783
|
}
|
|
2928
2784
|
/**
|
|
2929
|
-
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2785
|
+
* Returns metadata for all configurable store fields (types, defaults, validation). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2930
2786
|
* @summary Get store config schema
|
|
2931
2787
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2932
2788
|
* @param {string} xStoresecret Store read secret
|
|
2933
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2934
2789
|
* @param {*} [options] Override http request option.
|
|
2935
2790
|
* @throws {RequiredError}
|
|
2936
2791
|
*/
|
|
2937
|
-
|
|
2938
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2792
|
+
apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options) {
|
|
2793
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresConfigSchemaGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
2939
2794
|
}
|
|
2940
2795
|
/**
|
|
2941
|
-
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2796
|
+
* Run multiple document operations in one request (insert, update, upsert, delete). **Auth:** `x-storeid` and `x-store-write-secret`. Each item can specify its own action.
|
|
2942
2797
|
* @summary Bulk index documents
|
|
2943
2798
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2944
2799
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2945
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2946
2800
|
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest List of operations
|
|
2947
2801
|
* @param {*} [options] Override http request option.
|
|
2948
2802
|
* @throws {RequiredError}
|
|
2949
2803
|
*/
|
|
2950
|
-
|
|
2951
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2804
|
+
apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options) {
|
|
2805
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresDocumentsBulkPost(xStoreid, xStoreWriteSecret, dataTypesBulkDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2952
2806
|
}
|
|
2953
2807
|
/**
|
|
2954
|
-
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2808
|
+
* Removes all documents from the store\'s search index; schema is preserved. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2955
2809
|
* @summary Clear all documents
|
|
2956
2810
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2957
2811
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2958
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2959
2812
|
* @param {*} [options] Override http request option.
|
|
2960
2813
|
* @throws {RequiredError}
|
|
2961
2814
|
*/
|
|
2962
|
-
|
|
2963
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2815
|
+
apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options) {
|
|
2816
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresDocumentsDelete(xStoreid, xStoreWriteSecret, options).then((request) => request(this.axios, this.basePath));
|
|
2964
2817
|
}
|
|
2965
2818
|
/**
|
|
2966
|
-
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2819
|
+
* Remove a document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2967
2820
|
* @summary Delete a document
|
|
2968
2821
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2969
2822
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2970
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2971
2823
|
* @param {string} documentID Document ID to delete
|
|
2972
2824
|
* @param {*} [options] Override http request option.
|
|
2973
2825
|
* @throws {RequiredError}
|
|
2974
2826
|
*/
|
|
2975
|
-
|
|
2976
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2827
|
+
apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options) {
|
|
2828
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, documentID, options).then((request) => request(this.axios, this.basePath));
|
|
2977
2829
|
}
|
|
2978
2830
|
/**
|
|
2979
|
-
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret
|
|
2831
|
+
* Retrieve a single document from the store\'s search index by ID. **Auth:** `x-storeid` and `x-storesecret`. Used by product pages and PDP.
|
|
2980
2832
|
* @summary Get a document by ID
|
|
2981
2833
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2982
2834
|
* @param {string} xStoresecret Store read secret
|
|
2983
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2984
2835
|
* @param {string} documentID Document ID to retrieve
|
|
2985
2836
|
* @param {*} [options] Override http request option.
|
|
2986
2837
|
* @throws {RequiredError}
|
|
2987
2838
|
*/
|
|
2988
|
-
|
|
2989
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2839
|
+
apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options) {
|
|
2840
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresDocumentsDocumentIDGet(xStoreid, xStoresecret, documentID, options).then((request) => request(this.axios, this.basePath));
|
|
2990
2841
|
}
|
|
2991
2842
|
/**
|
|
2992
|
-
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2843
|
+
* Add or update one document in the store\'s search index. **Auth:** `x-storeid` and `x-store-write-secret`. If you omit document ID, one is generated; existing documents with the same ID are updated.
|
|
2993
2844
|
* @summary Index a single document
|
|
2994
2845
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
2995
2846
|
* @param {string} xStoreWriteSecret Store write secret
|
|
2996
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
2997
2847
|
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document fields to index
|
|
2998
2848
|
* @param {*} [options] Override http request option.
|
|
2999
2849
|
* @throws {RequiredError}
|
|
3000
2850
|
*/
|
|
3001
|
-
|
|
3002
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2851
|
+
apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options) {
|
|
2852
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresDocumentsPost(xStoreid, xStoreWriteSecret, dataTypesDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3003
2853
|
}
|
|
3004
2854
|
/**
|
|
3005
|
-
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
2855
|
+
* Returns basic store details (name, location, status). **Auth:** `x-storeid` and `x-storesecret`.
|
|
3006
2856
|
* @summary Get store info
|
|
3007
2857
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
3008
2858
|
* @param {string} xStoresecret Store read secret
|
|
3009
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
3010
2859
|
* @param {*} [options] Override http request option.
|
|
3011
2860
|
* @throws {RequiredError}
|
|
3012
2861
|
*/
|
|
3013
|
-
|
|
3014
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2862
|
+
apiV1StoresGet(xStoreid, xStoresecret, options) {
|
|
2863
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
3015
2864
|
}
|
|
3016
2865
|
/**
|
|
3017
|
-
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2866
|
+
* Returns autocomplete/suggestions configuration for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
3018
2867
|
* @summary Get query suggestions configuration
|
|
3019
2868
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
3020
2869
|
* @param {string} xStoresecret Store read secret
|
|
3021
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
3022
2870
|
* @param {*} [options] Override http request option.
|
|
3023
2871
|
* @throws {RequiredError}
|
|
3024
2872
|
*/
|
|
3025
|
-
|
|
3026
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2873
|
+
apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options) {
|
|
2874
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresQuerySuggestionsConfigGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
3027
2875
|
}
|
|
3028
2876
|
/**
|
|
3029
|
-
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2877
|
+
* Update autocomplete/suggestions settings for the store. Partial updates supported. **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
3030
2878
|
* @summary Update query suggestions configuration
|
|
3031
2879
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
3032
2880
|
* @param {string} xStoreWriteSecret Store write secret
|
|
3033
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
3034
2881
|
* @param {QuerySuggestionsServiceUpdateSuggestionConfigRequest} querySuggestionsServiceUpdateSuggestionConfigRequest Fields to update (partial)
|
|
3035
2882
|
* @param {*} [options] Override http request option.
|
|
3036
2883
|
* @throws {RequiredError}
|
|
3037
2884
|
*/
|
|
3038
|
-
|
|
3039
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2885
|
+
apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options) {
|
|
2886
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3040
2887
|
}
|
|
3041
2888
|
/**
|
|
3042
|
-
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
2889
|
+
* Returns the current search index schema (fields and options) for the store. **Auth:** `x-storeid` and `x-storesecret`.
|
|
3043
2890
|
* @summary Get index schema
|
|
3044
2891
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
3045
2892
|
* @param {string} xStoresecret Store read secret
|
|
3046
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
3047
2893
|
* @param {*} [options] Override http request option.
|
|
3048
2894
|
* @throws {RequiredError}
|
|
3049
2895
|
*/
|
|
3050
|
-
|
|
3051
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2896
|
+
apiV1StoresSchemaGet(xStoreid, xStoresecret, options) {
|
|
2897
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresSchemaGet(xStoreid, xStoresecret, options).then((request) => request(this.axios, this.basePath));
|
|
3052
2898
|
}
|
|
3053
2899
|
/**
|
|
3054
|
-
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
2900
|
+
* Define or update the search index schema (field names, types, searchable/facet options). Mode: `additive` (add fields, keep data) or `replace` (recreate index). **Auth:** `x-storeid` and `x-store-write-secret`.
|
|
3055
2901
|
* @summary Create or update index schema
|
|
3056
2902
|
* @param {string} xStoreid Store ID (from dashboard)
|
|
3057
2903
|
* @param {string} xStoreWriteSecret Store write secret
|
|
3058
|
-
* @param {string} xStoreID Store ID (must match x-storeid header)
|
|
3059
2904
|
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema definition and mode
|
|
3060
2905
|
* @param {*} [options] Override http request option.
|
|
3061
2906
|
* @throws {RequiredError}
|
|
3062
2907
|
*/
|
|
3063
|
-
|
|
3064
|
-
return (0, exports.StoreManagementApiFp)(this.configuration).
|
|
2908
|
+
apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options) {
|
|
2909
|
+
return (0, exports.StoreManagementApiFp)(this.configuration).apiV1StoresSchemaPost(xStoreid, xStoreWriteSecret, dataTypesCollectionSchemaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3065
2910
|
}
|
|
3066
2911
|
}
|
|
3067
2912
|
exports.StoreManagementApi = StoreManagementApi;
|