@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/ingestionClient.ts
|
|
2
2
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
3
|
-
var apiClientVersion = "1.6.
|
|
3
|
+
var apiClientVersion = "1.6.1";
|
|
4
4
|
var REGIONS = ["eu", "us"];
|
|
5
5
|
function getDefaultHosts(region) {
|
|
6
6
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -881,8 +881,8 @@ function createIngestionClient({
|
|
|
881
881
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
882
882
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
883
883
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
884
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
885
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
884
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
885
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
886
886
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
887
887
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
888
888
|
*/
|
|
@@ -929,11 +929,12 @@ function createIngestionClient({
|
|
|
929
929
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
930
930
|
* @param listDestinations.type - Destination type.
|
|
931
931
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
932
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
932
933
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
933
934
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
934
935
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
935
936
|
*/
|
|
936
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
|
|
937
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
|
|
937
938
|
const requestPath = "/1/destinations";
|
|
938
939
|
const headers = {};
|
|
939
940
|
const queryParameters = {};
|
|
@@ -949,6 +950,9 @@ function createIngestionClient({
|
|
|
949
950
|
if (authenticationID !== void 0) {
|
|
950
951
|
queryParameters.authenticationID = authenticationID.toString();
|
|
951
952
|
}
|
|
953
|
+
if (transformationID !== void 0) {
|
|
954
|
+
queryParameters.transformationID = transformationID.toString();
|
|
955
|
+
}
|
|
952
956
|
if (sort !== void 0) {
|
|
953
957
|
queryParameters.sort = sort.toString();
|
|
954
958
|
}
|
|
@@ -1093,7 +1097,7 @@ function createIngestionClient({
|
|
|
1093
1097
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
1094
1098
|
* @param listSources.page - Page number of the paginated API response.
|
|
1095
1099
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
1096
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1100
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1097
1101
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
1098
1102
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1099
1103
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1257,7 +1261,7 @@ function createIngestionClient({
|
|
|
1257
1261
|
* @param listTransformations - The listTransformations object.
|
|
1258
1262
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1259
1263
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1260
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
1264
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1261
1265
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1262
1266
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1263
1267
|
*/
|