@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.cjs
CHANGED
|
@@ -32,7 +32,7 @@ var import_requester_node_http = require("@algolia/requester-node-http");
|
|
|
32
32
|
|
|
33
33
|
// src/ingestionClient.ts
|
|
34
34
|
var import_client_common = require("@algolia/client-common");
|
|
35
|
-
var apiClientVersion = "1.6.
|
|
35
|
+
var apiClientVersion = "1.6.1";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -913,8 +913,8 @@ function createIngestionClient({
|
|
|
913
913
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
914
914
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
915
915
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
916
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
917
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
916
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
917
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
918
918
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
919
919
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
920
920
|
*/
|
|
@@ -961,11 +961,12 @@ function createIngestionClient({
|
|
|
961
961
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
962
962
|
* @param listDestinations.type - Destination type.
|
|
963
963
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
964
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
964
965
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
965
966
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
966
967
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
967
968
|
*/
|
|
968
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
|
|
969
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
|
|
969
970
|
const requestPath = "/1/destinations";
|
|
970
971
|
const headers = {};
|
|
971
972
|
const queryParameters = {};
|
|
@@ -981,6 +982,9 @@ function createIngestionClient({
|
|
|
981
982
|
if (authenticationID !== void 0) {
|
|
982
983
|
queryParameters.authenticationID = authenticationID.toString();
|
|
983
984
|
}
|
|
985
|
+
if (transformationID !== void 0) {
|
|
986
|
+
queryParameters.transformationID = transformationID.toString();
|
|
987
|
+
}
|
|
984
988
|
if (sort !== void 0) {
|
|
985
989
|
queryParameters.sort = sort.toString();
|
|
986
990
|
}
|
|
@@ -1125,7 +1129,7 @@ function createIngestionClient({
|
|
|
1125
1129
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
1126
1130
|
* @param listSources.page - Page number of the paginated API response.
|
|
1127
1131
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
1128
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1132
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1129
1133
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
1130
1134
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1131
1135
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1289,7 +1293,7 @@ function createIngestionClient({
|
|
|
1289
1293
|
* @param listTransformations - The listTransformations object.
|
|
1290
1294
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1291
1295
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1292
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
1296
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1293
1297
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1294
1298
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1295
1299
|
*/
|