@algolia/ingestion 1.5.3 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/dist/browser.d.ts +24 -19
- package/dist/builds/browser.js +12 -6
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +5 -5
- package/dist/builds/fetch.js +12 -6
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +11 -6
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +12 -6
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +24 -19
- package/dist/node.d.cts +24 -19
- package/dist/node.d.ts +24 -19
- package/dist/src/ingestionClient.cjs +10 -6
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +10 -6
- package/dist/src/ingestionClient.js.map +1 -1
- package/model/authenticationSortKeys.ts +2 -2
- package/model/clientMethodProps.ts +10 -6
- package/model/index.ts +1 -1
- package/model/{sortKeys.ts → transformationSortKeys.ts} +2 -2
- package/package.json +7 -7
package/dist/builds/node.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// builds/node.ts
|
|
2
2
|
import {
|
|
3
|
+
createNullLogger,
|
|
3
4
|
createMemoryCache,
|
|
4
5
|
createNullCache,
|
|
5
6
|
DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
@@ -10,7 +11,7 @@ import { createHttpRequester } from "@algolia/requester-node-http";
|
|
|
10
11
|
|
|
11
12
|
// src/ingestionClient.ts
|
|
12
13
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
13
|
-
var apiClientVersion = "1.
|
|
14
|
+
var apiClientVersion = "1.6.1";
|
|
14
15
|
var REGIONS = ["eu", "us"];
|
|
15
16
|
function getDefaultHosts(region) {
|
|
16
17
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -891,8 +892,8 @@ function createIngestionClient({
|
|
|
891
892
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
892
893
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
893
894
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
894
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
895
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
895
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
896
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
896
897
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
897
898
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
898
899
|
*/
|
|
@@ -939,11 +940,12 @@ function createIngestionClient({
|
|
|
939
940
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
940
941
|
* @param listDestinations.type - Destination type.
|
|
941
942
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
943
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
942
944
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
943
945
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
944
946
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
945
947
|
*/
|
|
946
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
|
|
948
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
|
|
947
949
|
const requestPath = "/1/destinations";
|
|
948
950
|
const headers = {};
|
|
949
951
|
const queryParameters = {};
|
|
@@ -959,6 +961,9 @@ function createIngestionClient({
|
|
|
959
961
|
if (authenticationID !== void 0) {
|
|
960
962
|
queryParameters.authenticationID = authenticationID.toString();
|
|
961
963
|
}
|
|
964
|
+
if (transformationID !== void 0) {
|
|
965
|
+
queryParameters.transformationID = transformationID.toString();
|
|
966
|
+
}
|
|
962
967
|
if (sort !== void 0) {
|
|
963
968
|
queryParameters.sort = sort.toString();
|
|
964
969
|
}
|
|
@@ -1103,7 +1108,7 @@ function createIngestionClient({
|
|
|
1103
1108
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
1104
1109
|
* @param listSources.page - Page number of the paginated API response.
|
|
1105
1110
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
1106
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1111
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1107
1112
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
1108
1113
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1109
1114
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1267,7 +1272,7 @@ function createIngestionClient({
|
|
|
1267
1272
|
* @param listTransformations - The listTransformations object.
|
|
1268
1273
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1269
1274
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1270
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
1275
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1271
1276
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1272
1277
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1273
1278
|
*/
|
|
@@ -1975,6 +1980,7 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
1975
1980
|
read: DEFAULT_READ_TIMEOUT_NODE,
|
|
1976
1981
|
write: DEFAULT_WRITE_TIMEOUT_NODE
|
|
1977
1982
|
},
|
|
1983
|
+
logger: createNullLogger(),
|
|
1978
1984
|
requester: createHttpRequester(),
|
|
1979
1985
|
algoliaAgents: [{ segment: "Node.js", version: process.versions.node }],
|
|
1980
1986
|
responsesCache: createNullCache(),
|