@seekora-ai/admin-api 1.1.75 → 1.1.76
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/README.md +14 -2
- package/api.ts +899 -61
- package/dist/api.d.ts +518 -0
- package/dist/api.js +612 -1
- package/dist/esm/api.d.ts +518 -0
- package/dist/esm/api.js +603 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.76.tgz +0 -0
- package/seekora-ai-admin-api-1.1.75.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -1508,6 +1508,315 @@ export const V1SuggestionsQueriesGetTimeRangeEnum = {
|
|
|
1508
1508
|
_30d: '30d',
|
|
1509
1509
|
_90d: '90d'
|
|
1510
1510
|
};
|
|
1511
|
+
/**
|
|
1512
|
+
* SDKDocumentsApi - axios parameter creator
|
|
1513
|
+
* @export
|
|
1514
|
+
*/
|
|
1515
|
+
export const SDKDocumentsApiAxiosParamCreator = function (configuration) {
|
|
1516
|
+
return {
|
|
1517
|
+
/**
|
|
1518
|
+
* Performs bulk insert, update, upsert, or delete operations on documents using the public SDK API. Requires x-store-write-secret for authentication. Each document may specify its own action (insert, update, upsert, delete).
|
|
1519
|
+
* @summary Bulk index documents (Public SDK API)
|
|
1520
|
+
* @param {string} xStoreid Store ID
|
|
1521
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1522
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1523
|
+
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
|
|
1524
|
+
* @param {*} [options] Override http request option.
|
|
1525
|
+
* @throws {RequiredError}
|
|
1526
|
+
*/
|
|
1527
|
+
apiV1StoresXStoreIDDocumentsBulkPost: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesBulkDocumentRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesBulkDocumentRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options = {}) {
|
|
1528
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
1529
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsBulkPost', 'xStoreid', xStoreid);
|
|
1530
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
1531
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsBulkPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
1532
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
1533
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsBulkPost', 'xStoreID', xStoreID);
|
|
1534
|
+
// verify required parameter 'dataTypesBulkDocumentRequest' is not null or undefined
|
|
1535
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsBulkPost', 'dataTypesBulkDocumentRequest', dataTypesBulkDocumentRequest);
|
|
1536
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/documents/bulk`
|
|
1537
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1540
|
+
let baseOptions;
|
|
1541
|
+
if (configuration) {
|
|
1542
|
+
baseOptions = configuration.baseOptions;
|
|
1543
|
+
}
|
|
1544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1545
|
+
const localVarHeaderParameter = {};
|
|
1546
|
+
const localVarQueryParameter = {};
|
|
1547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1548
|
+
if (xStoreid != null) {
|
|
1549
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
1550
|
+
}
|
|
1551
|
+
if (xStoreWriteSecret != null) {
|
|
1552
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
1553
|
+
}
|
|
1554
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1556
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1557
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBulkDocumentRequest, localVarRequestOptions, configuration);
|
|
1558
|
+
return {
|
|
1559
|
+
url: toPathString(localVarUrlObj),
|
|
1560
|
+
options: localVarRequestOptions,
|
|
1561
|
+
};
|
|
1562
|
+
}),
|
|
1563
|
+
/**
|
|
1564
|
+
* Deletes a document by ID from a store using the public SDK API. Requires x-store-write-secret for authentication.
|
|
1565
|
+
* @summary Delete a document (Public SDK API)
|
|
1566
|
+
* @param {string} xStoreid Store ID
|
|
1567
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1568
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1569
|
+
* @param {string} documentID Document ID to delete
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
apiV1StoresXStoreIDDocumentsDocumentIDDelete: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, documentID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, documentID_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, documentID, options = {}) {
|
|
1574
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
1575
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDocumentIDDelete', 'xStoreid', xStoreid);
|
|
1576
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
1577
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDocumentIDDelete', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
1578
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
1579
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDocumentIDDelete', 'xStoreID', xStoreID);
|
|
1580
|
+
// verify required parameter 'documentID' is not null or undefined
|
|
1581
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDocumentIDDelete', 'documentID', documentID);
|
|
1582
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/documents/{documentID}`
|
|
1583
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
1584
|
+
.replace(`{${"documentID"}}`, encodeURIComponent(String(documentID)));
|
|
1585
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1587
|
+
let baseOptions;
|
|
1588
|
+
if (configuration) {
|
|
1589
|
+
baseOptions = configuration.baseOptions;
|
|
1590
|
+
}
|
|
1591
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1592
|
+
const localVarHeaderParameter = {};
|
|
1593
|
+
const localVarQueryParameter = {};
|
|
1594
|
+
if (xStoreid != null) {
|
|
1595
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
1596
|
+
}
|
|
1597
|
+
if (xStoreWriteSecret != null) {
|
|
1598
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
1599
|
+
}
|
|
1600
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1601
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1602
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1603
|
+
return {
|
|
1604
|
+
url: toPathString(localVarUrlObj),
|
|
1605
|
+
options: localVarRequestOptions,
|
|
1606
|
+
};
|
|
1607
|
+
}),
|
|
1608
|
+
/**
|
|
1609
|
+
* Indexes a new document into a store using the public SDK API. Requires x-store-write-secret for authentication. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
|
|
1610
|
+
* @summary Index a single document (Public SDK API)
|
|
1611
|
+
* @param {string} xStoreid Store ID
|
|
1612
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1613
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1614
|
+
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document data
|
|
1615
|
+
* @param {*} [options] Override http request option.
|
|
1616
|
+
* @throws {RequiredError}
|
|
1617
|
+
*/
|
|
1618
|
+
apiV1StoresXStoreIDDocumentsPost: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesDocumentRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesDocumentRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options = {}) {
|
|
1619
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
1620
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsPost', 'xStoreid', xStoreid);
|
|
1621
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
1622
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
1623
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
1624
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsPost', 'xStoreID', xStoreID);
|
|
1625
|
+
// verify required parameter 'dataTypesDocumentRequest' is not null or undefined
|
|
1626
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsPost', 'dataTypesDocumentRequest', dataTypesDocumentRequest);
|
|
1627
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/documents`
|
|
1628
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
1629
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1630
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1631
|
+
let baseOptions;
|
|
1632
|
+
if (configuration) {
|
|
1633
|
+
baseOptions = configuration.baseOptions;
|
|
1634
|
+
}
|
|
1635
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1636
|
+
const localVarHeaderParameter = {};
|
|
1637
|
+
const localVarQueryParameter = {};
|
|
1638
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1639
|
+
if (xStoreid != null) {
|
|
1640
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
1641
|
+
}
|
|
1642
|
+
if (xStoreWriteSecret != null) {
|
|
1643
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
1644
|
+
}
|
|
1645
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1648
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesDocumentRequest, localVarRequestOptions, configuration);
|
|
1649
|
+
return {
|
|
1650
|
+
url: toPathString(localVarUrlObj),
|
|
1651
|
+
options: localVarRequestOptions,
|
|
1652
|
+
};
|
|
1653
|
+
}),
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
/**
|
|
1657
|
+
* SDKDocumentsApi - functional programming interface
|
|
1658
|
+
* @export
|
|
1659
|
+
*/
|
|
1660
|
+
export const SDKDocumentsApiFp = function (configuration) {
|
|
1661
|
+
const localVarAxiosParamCreator = SDKDocumentsApiAxiosParamCreator(configuration);
|
|
1662
|
+
return {
|
|
1663
|
+
/**
|
|
1664
|
+
* Performs bulk insert, update, upsert, or delete operations on documents using the public SDK API. Requires x-store-write-secret for authentication. Each document may specify its own action (insert, update, upsert, delete).
|
|
1665
|
+
* @summary Bulk index documents (Public SDK API)
|
|
1666
|
+
* @param {string} xStoreid Store ID
|
|
1667
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1668
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1669
|
+
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
*/
|
|
1673
|
+
apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
var _a, _b, _c;
|
|
1676
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options);
|
|
1677
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1678
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKDocumentsApi.apiV1StoresXStoreIDDocumentsBulkPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1680
|
+
});
|
|
1681
|
+
},
|
|
1682
|
+
/**
|
|
1683
|
+
* Deletes a document by ID from a store using the public SDK API. Requires x-store-write-secret for authentication.
|
|
1684
|
+
* @summary Delete a document (Public SDK API)
|
|
1685
|
+
* @param {string} xStoreid Store ID
|
|
1686
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1687
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1688
|
+
* @param {string} documentID Document ID to delete
|
|
1689
|
+
* @param {*} [options] Override http request option.
|
|
1690
|
+
* @throws {RequiredError}
|
|
1691
|
+
*/
|
|
1692
|
+
apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options) {
|
|
1693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1694
|
+
var _a, _b, _c;
|
|
1695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options);
|
|
1696
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1697
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKDocumentsApi.apiV1StoresXStoreIDDocumentsDocumentIDDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1698
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1699
|
+
});
|
|
1700
|
+
},
|
|
1701
|
+
/**
|
|
1702
|
+
* Indexes a new document into a store using the public SDK API. Requires x-store-write-secret for authentication. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
|
|
1703
|
+
* @summary Index a single document (Public SDK API)
|
|
1704
|
+
* @param {string} xStoreid Store ID
|
|
1705
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1706
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1707
|
+
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document data
|
|
1708
|
+
* @param {*} [options] Override http request option.
|
|
1709
|
+
* @throws {RequiredError}
|
|
1710
|
+
*/
|
|
1711
|
+
apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options) {
|
|
1712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1713
|
+
var _a, _b, _c;
|
|
1714
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options);
|
|
1715
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1716
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKDocumentsApi.apiV1StoresXStoreIDDocumentsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1717
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1718
|
+
});
|
|
1719
|
+
},
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
/**
|
|
1723
|
+
* SDKDocumentsApi - factory interface
|
|
1724
|
+
* @export
|
|
1725
|
+
*/
|
|
1726
|
+
export const SDKDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
1727
|
+
const localVarFp = SDKDocumentsApiFp(configuration);
|
|
1728
|
+
return {
|
|
1729
|
+
/**
|
|
1730
|
+
* Performs bulk insert, update, upsert, or delete operations on documents using the public SDK API. Requires x-store-write-secret for authentication. Each document may specify its own action (insert, update, upsert, delete).
|
|
1731
|
+
* @summary Bulk index documents (Public SDK API)
|
|
1732
|
+
* @param {string} xStoreid Store ID
|
|
1733
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1734
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1735
|
+
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
|
|
1736
|
+
* @param {*} [options] Override http request option.
|
|
1737
|
+
* @throws {RequiredError}
|
|
1738
|
+
*/
|
|
1739
|
+
apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options) {
|
|
1740
|
+
return localVarFp.apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options).then((request) => request(axios, basePath));
|
|
1741
|
+
},
|
|
1742
|
+
/**
|
|
1743
|
+
* Deletes a document by ID from a store using the public SDK API. Requires x-store-write-secret for authentication.
|
|
1744
|
+
* @summary Delete a document (Public SDK API)
|
|
1745
|
+
* @param {string} xStoreid Store ID
|
|
1746
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1747
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1748
|
+
* @param {string} documentID Document ID to delete
|
|
1749
|
+
* @param {*} [options] Override http request option.
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
*/
|
|
1752
|
+
apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options) {
|
|
1753
|
+
return localVarFp.apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options).then((request) => request(axios, basePath));
|
|
1754
|
+
},
|
|
1755
|
+
/**
|
|
1756
|
+
* Indexes a new document into a store using the public SDK API. Requires x-store-write-secret for authentication. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
|
|
1757
|
+
* @summary Index a single document (Public SDK API)
|
|
1758
|
+
* @param {string} xStoreid Store ID
|
|
1759
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1760
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1761
|
+
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document data
|
|
1762
|
+
* @param {*} [options] Override http request option.
|
|
1763
|
+
* @throws {RequiredError}
|
|
1764
|
+
*/
|
|
1765
|
+
apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options) {
|
|
1766
|
+
return localVarFp.apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options).then((request) => request(axios, basePath));
|
|
1767
|
+
},
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
* SDKDocumentsApi - object-oriented interface
|
|
1772
|
+
* @export
|
|
1773
|
+
* @class SDKDocumentsApi
|
|
1774
|
+
* @extends {BaseAPI}
|
|
1775
|
+
*/
|
|
1776
|
+
export class SDKDocumentsApi extends BaseAPI {
|
|
1777
|
+
/**
|
|
1778
|
+
* Performs bulk insert, update, upsert, or delete operations on documents using the public SDK API. Requires x-store-write-secret for authentication. Each document may specify its own action (insert, update, upsert, delete).
|
|
1779
|
+
* @summary Bulk index documents (Public SDK API)
|
|
1780
|
+
* @param {string} xStoreid Store ID
|
|
1781
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1782
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1783
|
+
* @param {DataTypesBulkDocumentRequest} dataTypesBulkDocumentRequest Bulk operation data
|
|
1784
|
+
* @param {*} [options] Override http request option.
|
|
1785
|
+
* @throws {RequiredError}
|
|
1786
|
+
* @memberof SDKDocumentsApi
|
|
1787
|
+
*/
|
|
1788
|
+
apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options) {
|
|
1789
|
+
return SDKDocumentsApiFp(this.configuration).apiV1StoresXStoreIDDocumentsBulkPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesBulkDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1790
|
+
}
|
|
1791
|
+
/**
|
|
1792
|
+
* Deletes a document by ID from a store using the public SDK API. Requires x-store-write-secret for authentication.
|
|
1793
|
+
* @summary Delete a document (Public SDK API)
|
|
1794
|
+
* @param {string} xStoreid Store ID
|
|
1795
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1796
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1797
|
+
* @param {string} documentID Document ID to delete
|
|
1798
|
+
* @param {*} [options] Override http request option.
|
|
1799
|
+
* @throws {RequiredError}
|
|
1800
|
+
* @memberof SDKDocumentsApi
|
|
1801
|
+
*/
|
|
1802
|
+
apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options) {
|
|
1803
|
+
return SDKDocumentsApiFp(this.configuration).apiV1StoresXStoreIDDocumentsDocumentIDDelete(xStoreid, xStoreWriteSecret, xStoreID, documentID, options).then((request) => request(this.axios, this.basePath));
|
|
1804
|
+
}
|
|
1805
|
+
/**
|
|
1806
|
+
* Indexes a new document into a store using the public SDK API. Requires x-store-write-secret for authentication. If ID is provided, it will be used; otherwise, a hash-based ID will be generated. If a document with the same hash already exists, it will be updated.
|
|
1807
|
+
* @summary Index a single document (Public SDK API)
|
|
1808
|
+
* @param {string} xStoreid Store ID
|
|
1809
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
1810
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
1811
|
+
* @param {DataTypesDocumentRequest} dataTypesDocumentRequest Document data
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
* @memberof SDKDocumentsApi
|
|
1815
|
+
*/
|
|
1816
|
+
apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options) {
|
|
1817
|
+
return SDKDocumentsApiFp(this.configuration).apiV1StoresXStoreIDDocumentsPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesDocumentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1511
1820
|
/**
|
|
1512
1821
|
* SDKQuerySuggestionsConfigApi - axios parameter creator
|
|
1513
1822
|
* @export
|
|
@@ -1718,6 +2027,300 @@ export class SDKQuerySuggestionsConfigApi extends BaseAPI {
|
|
|
1718
2027
|
return SDKQuerySuggestionsConfigApiFp(this.configuration).apiV1StoresXStoreIDQuerySuggestionsConfigPut(xStoreid, xStoreWriteSecret, xStoreID, querySuggestionsServiceUpdateSuggestionConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1719
2028
|
}
|
|
1720
2029
|
}
|
|
2030
|
+
/**
|
|
2031
|
+
* SDKSchemaApi - axios parameter creator
|
|
2032
|
+
* @export
|
|
2033
|
+
*/
|
|
2034
|
+
export const SDKSchemaApiAxiosParamCreator = function (configuration) {
|
|
2035
|
+
return {
|
|
2036
|
+
/**
|
|
2037
|
+
* Deletes all documents from a store\'s collection without deleting the collection itself. Requires x-store-write-secret for authentication.
|
|
2038
|
+
* @summary Clear All Documents (Public SDK API)
|
|
2039
|
+
* @param {string} xStoreid Store ID
|
|
2040
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2041
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2042
|
+
* @param {*} [options] Override http request option.
|
|
2043
|
+
* @throws {RequiredError}
|
|
2044
|
+
*/
|
|
2045
|
+
apiV1StoresXStoreIDDocumentsDelete: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, options = {}) {
|
|
2046
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
2047
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDelete', 'xStoreid', xStoreid);
|
|
2048
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2049
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDelete', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2050
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
2051
|
+
assertParamExists('apiV1StoresXStoreIDDocumentsDelete', 'xStoreID', xStoreID);
|
|
2052
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/documents`
|
|
2053
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2054
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2055
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2056
|
+
let baseOptions;
|
|
2057
|
+
if (configuration) {
|
|
2058
|
+
baseOptions = configuration.baseOptions;
|
|
2059
|
+
}
|
|
2060
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2061
|
+
const localVarHeaderParameter = {};
|
|
2062
|
+
const localVarQueryParameter = {};
|
|
2063
|
+
if (xStoreid != null) {
|
|
2064
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
2065
|
+
}
|
|
2066
|
+
if (xStoreWriteSecret != null) {
|
|
2067
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
2068
|
+
}
|
|
2069
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2070
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2071
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2072
|
+
return {
|
|
2073
|
+
url: toPathString(localVarUrlObj),
|
|
2074
|
+
options: localVarRequestOptions,
|
|
2075
|
+
};
|
|
2076
|
+
}),
|
|
2077
|
+
/**
|
|
2078
|
+
* Retrieves the current collection schema for a store. Requires x-storesecret (read secret) for authentication.
|
|
2079
|
+
* @summary Get Collection Schema (Public SDK API)
|
|
2080
|
+
* @param {string} xStoreid Store ID
|
|
2081
|
+
* @param {string} xStoresecret Store Read Secret
|
|
2082
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
apiV1StoresXStoreIDSchemaGet: (xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xStoreID_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xStoreID, options = {}) {
|
|
2087
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
2088
|
+
assertParamExists('apiV1StoresXStoreIDSchemaGet', 'xStoreid', xStoreid);
|
|
2089
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
2090
|
+
assertParamExists('apiV1StoresXStoreIDSchemaGet', 'xStoresecret', xStoresecret);
|
|
2091
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
2092
|
+
assertParamExists('apiV1StoresXStoreIDSchemaGet', 'xStoreID', xStoreID);
|
|
2093
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/schema`
|
|
2094
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2095
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2096
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2097
|
+
let baseOptions;
|
|
2098
|
+
if (configuration) {
|
|
2099
|
+
baseOptions = configuration.baseOptions;
|
|
2100
|
+
}
|
|
2101
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2102
|
+
const localVarHeaderParameter = {};
|
|
2103
|
+
const localVarQueryParameter = {};
|
|
2104
|
+
if (xStoreid != null) {
|
|
2105
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
2106
|
+
}
|
|
2107
|
+
if (xStoresecret != null) {
|
|
2108
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
2109
|
+
}
|
|
2110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2112
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2113
|
+
return {
|
|
2114
|
+
url: toPathString(localVarUrlObj),
|
|
2115
|
+
options: localVarRequestOptions,
|
|
2116
|
+
};
|
|
2117
|
+
}),
|
|
2118
|
+
/**
|
|
2119
|
+
* Creates a new collection schema or updates an existing one. Mode can be \'additive\' (add new fields, preserve data) or \'replace\' (delete and recreate collection). Requires x-store-write-secret for authentication.
|
|
2120
|
+
* @summary Create or Update Collection Schema (Public SDK API)
|
|
2121
|
+
* @param {string} xStoreid Store ID
|
|
2122
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2123
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2124
|
+
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema request
|
|
2125
|
+
* @param {*} [options] Override http request option.
|
|
2126
|
+
* @throws {RequiredError}
|
|
2127
|
+
*/
|
|
2128
|
+
apiV1StoresXStoreIDSchemaPost: (xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesCollectionSchemaRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoreWriteSecret_1, xStoreID_1, dataTypesCollectionSchemaRequest_1, ...args_1], void 0, function* (xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options = {}) {
|
|
2129
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
2130
|
+
assertParamExists('apiV1StoresXStoreIDSchemaPost', 'xStoreid', xStoreid);
|
|
2131
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
2132
|
+
assertParamExists('apiV1StoresXStoreIDSchemaPost', 'xStoreWriteSecret', xStoreWriteSecret);
|
|
2133
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
2134
|
+
assertParamExists('apiV1StoresXStoreIDSchemaPost', 'xStoreID', xStoreID);
|
|
2135
|
+
// verify required parameter 'dataTypesCollectionSchemaRequest' is not null or undefined
|
|
2136
|
+
assertParamExists('apiV1StoresXStoreIDSchemaPost', 'dataTypesCollectionSchemaRequest', dataTypesCollectionSchemaRequest);
|
|
2137
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/schema`
|
|
2138
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2141
|
+
let baseOptions;
|
|
2142
|
+
if (configuration) {
|
|
2143
|
+
baseOptions = configuration.baseOptions;
|
|
2144
|
+
}
|
|
2145
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2146
|
+
const localVarHeaderParameter = {};
|
|
2147
|
+
const localVarQueryParameter = {};
|
|
2148
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2149
|
+
if (xStoreid != null) {
|
|
2150
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
2151
|
+
}
|
|
2152
|
+
if (xStoreWriteSecret != null) {
|
|
2153
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
2154
|
+
}
|
|
2155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2158
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCollectionSchemaRequest, localVarRequestOptions, configuration);
|
|
2159
|
+
return {
|
|
2160
|
+
url: toPathString(localVarUrlObj),
|
|
2161
|
+
options: localVarRequestOptions,
|
|
2162
|
+
};
|
|
2163
|
+
}),
|
|
2164
|
+
};
|
|
2165
|
+
};
|
|
2166
|
+
/**
|
|
2167
|
+
* SDKSchemaApi - functional programming interface
|
|
2168
|
+
* @export
|
|
2169
|
+
*/
|
|
2170
|
+
export const SDKSchemaApiFp = function (configuration) {
|
|
2171
|
+
const localVarAxiosParamCreator = SDKSchemaApiAxiosParamCreator(configuration);
|
|
2172
|
+
return {
|
|
2173
|
+
/**
|
|
2174
|
+
* Deletes all documents from a store\'s collection without deleting the collection itself. Requires x-store-write-secret for authentication.
|
|
2175
|
+
* @summary Clear All Documents (Public SDK API)
|
|
2176
|
+
* @param {string} xStoreid Store ID
|
|
2177
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2178
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2179
|
+
* @param {*} [options] Override http request option.
|
|
2180
|
+
* @throws {RequiredError}
|
|
2181
|
+
*/
|
|
2182
|
+
apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options) {
|
|
2183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2184
|
+
var _a, _b, _c;
|
|
2185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options);
|
|
2186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2187
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKSchemaApi.apiV1StoresXStoreIDDocumentsDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2189
|
+
});
|
|
2190
|
+
},
|
|
2191
|
+
/**
|
|
2192
|
+
* Retrieves the current collection schema for a store. Requires x-storesecret (read secret) for authentication.
|
|
2193
|
+
* @summary Get Collection Schema (Public SDK API)
|
|
2194
|
+
* @param {string} xStoreid Store ID
|
|
2195
|
+
* @param {string} xStoresecret Store Read Secret
|
|
2196
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2197
|
+
* @param {*} [options] Override http request option.
|
|
2198
|
+
* @throws {RequiredError}
|
|
2199
|
+
*/
|
|
2200
|
+
apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
2201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2202
|
+
var _a, _b, _c;
|
|
2203
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options);
|
|
2204
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2205
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKSchemaApi.apiV1StoresXStoreIDSchemaGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2206
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2207
|
+
});
|
|
2208
|
+
},
|
|
2209
|
+
/**
|
|
2210
|
+
* Creates a new collection schema or updates an existing one. Mode can be \'additive\' (add new fields, preserve data) or \'replace\' (delete and recreate collection). Requires x-store-write-secret for authentication.
|
|
2211
|
+
* @summary Create or Update Collection Schema (Public SDK API)
|
|
2212
|
+
* @param {string} xStoreid Store ID
|
|
2213
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2214
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2215
|
+
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema request
|
|
2216
|
+
* @param {*} [options] Override http request option.
|
|
2217
|
+
* @throws {RequiredError}
|
|
2218
|
+
*/
|
|
2219
|
+
apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options) {
|
|
2220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2221
|
+
var _a, _b, _c;
|
|
2222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options);
|
|
2223
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2224
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SDKSchemaApi.apiV1StoresXStoreIDSchemaPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2225
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2226
|
+
});
|
|
2227
|
+
},
|
|
2228
|
+
};
|
|
2229
|
+
};
|
|
2230
|
+
/**
|
|
2231
|
+
* SDKSchemaApi - factory interface
|
|
2232
|
+
* @export
|
|
2233
|
+
*/
|
|
2234
|
+
export const SDKSchemaApiFactory = function (configuration, basePath, axios) {
|
|
2235
|
+
const localVarFp = SDKSchemaApiFp(configuration);
|
|
2236
|
+
return {
|
|
2237
|
+
/**
|
|
2238
|
+
* Deletes all documents from a store\'s collection without deleting the collection itself. Requires x-store-write-secret for authentication.
|
|
2239
|
+
* @summary Clear All Documents (Public SDK API)
|
|
2240
|
+
* @param {string} xStoreid Store ID
|
|
2241
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2242
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2243
|
+
* @param {*} [options] Override http request option.
|
|
2244
|
+
* @throws {RequiredError}
|
|
2245
|
+
*/
|
|
2246
|
+
apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options) {
|
|
2247
|
+
return localVarFp.apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
2248
|
+
},
|
|
2249
|
+
/**
|
|
2250
|
+
* Retrieves the current collection schema for a store. Requires x-storesecret (read secret) for authentication.
|
|
2251
|
+
* @summary Get Collection Schema (Public SDK API)
|
|
2252
|
+
* @param {string} xStoreid Store ID
|
|
2253
|
+
* @param {string} xStoresecret Store Read Secret
|
|
2254
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2255
|
+
* @param {*} [options] Override http request option.
|
|
2256
|
+
* @throws {RequiredError}
|
|
2257
|
+
*/
|
|
2258
|
+
apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
2259
|
+
return localVarFp.apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
2260
|
+
},
|
|
2261
|
+
/**
|
|
2262
|
+
* Creates a new collection schema or updates an existing one. Mode can be \'additive\' (add new fields, preserve data) or \'replace\' (delete and recreate collection). Requires x-store-write-secret for authentication.
|
|
2263
|
+
* @summary Create or Update Collection Schema (Public SDK API)
|
|
2264
|
+
* @param {string} xStoreid Store ID
|
|
2265
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2266
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2267
|
+
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema request
|
|
2268
|
+
* @param {*} [options] Override http request option.
|
|
2269
|
+
* @throws {RequiredError}
|
|
2270
|
+
*/
|
|
2271
|
+
apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options) {
|
|
2272
|
+
return localVarFp.apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options).then((request) => request(axios, basePath));
|
|
2273
|
+
},
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
/**
|
|
2277
|
+
* SDKSchemaApi - object-oriented interface
|
|
2278
|
+
* @export
|
|
2279
|
+
* @class SDKSchemaApi
|
|
2280
|
+
* @extends {BaseAPI}
|
|
2281
|
+
*/
|
|
2282
|
+
export class SDKSchemaApi extends BaseAPI {
|
|
2283
|
+
/**
|
|
2284
|
+
* Deletes all documents from a store\'s collection without deleting the collection itself. Requires x-store-write-secret for authentication.
|
|
2285
|
+
* @summary Clear All Documents (Public SDK API)
|
|
2286
|
+
* @param {string} xStoreid Store ID
|
|
2287
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2288
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
* @memberof SDKSchemaApi
|
|
2292
|
+
*/
|
|
2293
|
+
apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options) {
|
|
2294
|
+
return SDKSchemaApiFp(this.configuration).apiV1StoresXStoreIDDocumentsDelete(xStoreid, xStoreWriteSecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Retrieves the current collection schema for a store. Requires x-storesecret (read secret) for authentication.
|
|
2298
|
+
* @summary Get Collection Schema (Public SDK API)
|
|
2299
|
+
* @param {string} xStoreid Store ID
|
|
2300
|
+
* @param {string} xStoresecret Store Read Secret
|
|
2301
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
* @memberof SDKSchemaApi
|
|
2305
|
+
*/
|
|
2306
|
+
apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options) {
|
|
2307
|
+
return SDKSchemaApiFp(this.configuration).apiV1StoresXStoreIDSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* Creates a new collection schema or updates an existing one. Mode can be \'additive\' (add new fields, preserve data) or \'replace\' (delete and recreate collection). Requires x-store-write-secret for authentication.
|
|
2311
|
+
* @summary Create or Update Collection Schema (Public SDK API)
|
|
2312
|
+
* @param {string} xStoreid Store ID
|
|
2313
|
+
* @param {string} xStoreWriteSecret Store Write Secret
|
|
2314
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
2315
|
+
* @param {DataTypesCollectionSchemaRequest} dataTypesCollectionSchemaRequest Schema request
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
* @memberof SDKSchemaApi
|
|
2319
|
+
*/
|
|
2320
|
+
apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options) {
|
|
2321
|
+
return SDKSchemaApiFp(this.configuration).apiV1StoresXStoreIDSchemaPost(xStoreid, xStoreWriteSecret, xStoreID, dataTypesCollectionSchemaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
1721
2324
|
/**
|
|
1722
2325
|
* SDKStoreConfigApi - axios parameter creator
|
|
1723
2326
|
* @export
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|