@algolia/ingestion 1.6.0 → 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 +10 -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 +1 -1
- package/dist/builds/fetch.js +10 -6
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +10 -6
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +10 -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 +5 -5
package/dist/builds/node.js
CHANGED
|
@@ -11,7 +11,7 @@ import { createHttpRequester } from "@algolia/requester-node-http";
|
|
|
11
11
|
|
|
12
12
|
// src/ingestionClient.ts
|
|
13
13
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
14
|
-
var apiClientVersion = "1.6.
|
|
14
|
+
var apiClientVersion = "1.6.1";
|
|
15
15
|
var REGIONS = ["eu", "us"];
|
|
16
16
|
function getDefaultHosts(region) {
|
|
17
17
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -892,8 +892,8 @@ function createIngestionClient({
|
|
|
892
892
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
893
893
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
894
894
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
895
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
896
|
-
* @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.
|
|
897
897
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
898
898
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
899
899
|
*/
|
|
@@ -940,11 +940,12 @@ function createIngestionClient({
|
|
|
940
940
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
941
941
|
* @param listDestinations.type - Destination type.
|
|
942
942
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
943
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
943
944
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
944
945
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
945
946
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
946
947
|
*/
|
|
947
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
|
|
948
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
|
|
948
949
|
const requestPath = "/1/destinations";
|
|
949
950
|
const headers = {};
|
|
950
951
|
const queryParameters = {};
|
|
@@ -960,6 +961,9 @@ function createIngestionClient({
|
|
|
960
961
|
if (authenticationID !== void 0) {
|
|
961
962
|
queryParameters.authenticationID = authenticationID.toString();
|
|
962
963
|
}
|
|
964
|
+
if (transformationID !== void 0) {
|
|
965
|
+
queryParameters.transformationID = transformationID.toString();
|
|
966
|
+
}
|
|
963
967
|
if (sort !== void 0) {
|
|
964
968
|
queryParameters.sort = sort.toString();
|
|
965
969
|
}
|
|
@@ -1104,7 +1108,7 @@ function createIngestionClient({
|
|
|
1104
1108
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
1105
1109
|
* @param listSources.page - Page number of the paginated API response.
|
|
1106
1110
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
1107
|
-
* @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.
|
|
1108
1112
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
1109
1113
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1110
1114
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1268,7 +1272,7 @@ function createIngestionClient({
|
|
|
1268
1272
|
* @param listTransformations - The listTransformations object.
|
|
1269
1273
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1270
1274
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1271
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
1275
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1272
1276
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1273
1277
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1274
1278
|
*/
|