@algolia/ingestion 1.14.2 → 1.16.0
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 +4 -4
- package/dist/browser.d.ts +8 -3
- package/dist/builds/browser.js +21 -9
- 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 +6 -6
- package/dist/builds/fetch.js +21 -13
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +20 -5
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +21 -13
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +8 -3
- package/dist/node.d.cts +8 -3
- package/dist/node.d.ts +8 -3
- package/dist/src/ingestionClient.cjs +17 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +17 -2
- package/dist/src/ingestionClient.js.map +1 -1
- package/package.json +10 -9
package/dist/fetch.d.ts
CHANGED
|
@@ -678,7 +678,7 @@ type SourceShopify = SourceUpdateShopify & SourceShopifyBase;
|
|
|
678
678
|
|
|
679
679
|
type SourceInput = SourceCommercetools | SourceBigCommerce | SourceJSON | SourceCSV | SourceBigQuery | SourceGA4BigQueryExport | SourceDocker | SourceShopify;
|
|
680
680
|
|
|
681
|
-
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | '
|
|
681
|
+
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | 'push';
|
|
682
682
|
|
|
683
683
|
type Source = {
|
|
684
684
|
/**
|
|
@@ -2046,6 +2046,10 @@ type ListTasksProps = {
|
|
|
2046
2046
|
* Source IDs for filtering the list of tasks.
|
|
2047
2047
|
*/
|
|
2048
2048
|
sourceID?: Array<string>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Filters the tasks with the specified source type.
|
|
2051
|
+
*/
|
|
2052
|
+
sourceType?: Array<SourceType>;
|
|
2049
2053
|
/**
|
|
2050
2054
|
* Destination IDs for filtering the list of tasks.
|
|
2051
2055
|
*/
|
|
@@ -2259,7 +2263,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2259
2263
|
sourceUpdate: SourceUpdate;
|
|
2260
2264
|
};
|
|
2261
2265
|
|
|
2262
|
-
declare const apiClientVersion = "1.
|
|
2266
|
+
declare const apiClientVersion = "1.16.0";
|
|
2263
2267
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2264
2268
|
type Region = (typeof REGIONS)[number];
|
|
2265
2269
|
type RegionOptions = {
|
|
@@ -2708,13 +2712,14 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2708
2712
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
2709
2713
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
2710
2714
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
2715
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
2711
2716
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
2712
2717
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
2713
2718
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
2714
2719
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
2715
2720
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2716
2721
|
*/
|
|
2717
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2722
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2718
2723
|
/**
|
|
2719
2724
|
* Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
|
|
2720
2725
|
*
|
package/dist/node.d.cts
CHANGED
|
@@ -678,7 +678,7 @@ type SourceShopify = SourceUpdateShopify & SourceShopifyBase;
|
|
|
678
678
|
|
|
679
679
|
type SourceInput = SourceCommercetools | SourceBigCommerce | SourceJSON | SourceCSV | SourceBigQuery | SourceGA4BigQueryExport | SourceDocker | SourceShopify;
|
|
680
680
|
|
|
681
|
-
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | '
|
|
681
|
+
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | 'push';
|
|
682
682
|
|
|
683
683
|
type Source = {
|
|
684
684
|
/**
|
|
@@ -2046,6 +2046,10 @@ type ListTasksProps = {
|
|
|
2046
2046
|
* Source IDs for filtering the list of tasks.
|
|
2047
2047
|
*/
|
|
2048
2048
|
sourceID?: Array<string>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Filters the tasks with the specified source type.
|
|
2051
|
+
*/
|
|
2052
|
+
sourceType?: Array<SourceType>;
|
|
2049
2053
|
/**
|
|
2050
2054
|
* Destination IDs for filtering the list of tasks.
|
|
2051
2055
|
*/
|
|
@@ -2259,7 +2263,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2259
2263
|
sourceUpdate: SourceUpdate;
|
|
2260
2264
|
};
|
|
2261
2265
|
|
|
2262
|
-
declare const apiClientVersion = "1.
|
|
2266
|
+
declare const apiClientVersion = "1.16.0";
|
|
2263
2267
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2264
2268
|
type Region = (typeof REGIONS)[number];
|
|
2265
2269
|
type RegionOptions = {
|
|
@@ -2708,13 +2712,14 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2708
2712
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
2709
2713
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
2710
2714
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
2715
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
2711
2716
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
2712
2717
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
2713
2718
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
2714
2719
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
2715
2720
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2716
2721
|
*/
|
|
2717
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2722
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2718
2723
|
/**
|
|
2719
2724
|
* Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
|
|
2720
2725
|
*
|
package/dist/node.d.ts
CHANGED
|
@@ -678,7 +678,7 @@ type SourceShopify = SourceUpdateShopify & SourceShopifyBase;
|
|
|
678
678
|
|
|
679
679
|
type SourceInput = SourceCommercetools | SourceBigCommerce | SourceJSON | SourceCSV | SourceBigQuery | SourceGA4BigQueryExport | SourceDocker | SourceShopify;
|
|
680
680
|
|
|
681
|
-
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | '
|
|
681
|
+
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'shopify' | 'push';
|
|
682
682
|
|
|
683
683
|
type Source = {
|
|
684
684
|
/**
|
|
@@ -2046,6 +2046,10 @@ type ListTasksProps = {
|
|
|
2046
2046
|
* Source IDs for filtering the list of tasks.
|
|
2047
2047
|
*/
|
|
2048
2048
|
sourceID?: Array<string>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Filters the tasks with the specified source type.
|
|
2051
|
+
*/
|
|
2052
|
+
sourceType?: Array<SourceType>;
|
|
2049
2053
|
/**
|
|
2050
2054
|
* Destination IDs for filtering the list of tasks.
|
|
2051
2055
|
*/
|
|
@@ -2259,7 +2263,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2259
2263
|
sourceUpdate: SourceUpdate;
|
|
2260
2264
|
};
|
|
2261
2265
|
|
|
2262
|
-
declare const apiClientVersion = "1.
|
|
2266
|
+
declare const apiClientVersion = "1.16.0";
|
|
2263
2267
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2264
2268
|
type Region = (typeof REGIONS)[number];
|
|
2265
2269
|
type RegionOptions = {
|
|
@@ -2708,13 +2712,14 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2708
2712
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
2709
2713
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
2710
2714
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
2715
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
2711
2716
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
2712
2717
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
2713
2718
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
2714
2719
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
2715
2720
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2716
2721
|
*/
|
|
2717
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2722
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2718
2723
|
/**
|
|
2719
2724
|
* Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
|
|
2720
2725
|
*
|
|
@@ -29,7 +29,7 @@ __export(ingestionClient_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(ingestionClient_exports);
|
|
31
31
|
var import_client_common = require("@algolia/client-common");
|
|
32
|
-
var apiClientVersion = "1.
|
|
32
|
+
var apiClientVersion = "1.16.0";
|
|
33
33
|
var REGIONS = ["eu", "us"];
|
|
34
34
|
function getDefaultHosts(region) {
|
|
35
35
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1141,13 +1141,25 @@ function createIngestionClient({
|
|
|
1141
1141
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
1142
1142
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
1143
1143
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
1144
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1144
1145
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1145
1146
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1146
1147
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1147
1148
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1148
1149
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1149
1150
|
*/
|
|
1150
|
-
listTasks({
|
|
1151
|
+
listTasks({
|
|
1152
|
+
itemsPerPage,
|
|
1153
|
+
page,
|
|
1154
|
+
action,
|
|
1155
|
+
enabled,
|
|
1156
|
+
sourceID,
|
|
1157
|
+
sourceType,
|
|
1158
|
+
destinationID,
|
|
1159
|
+
triggerType,
|
|
1160
|
+
sort,
|
|
1161
|
+
order
|
|
1162
|
+
} = {}, requestOptions = void 0) {
|
|
1151
1163
|
const requestPath = "/2/tasks";
|
|
1152
1164
|
const headers = {};
|
|
1153
1165
|
const queryParameters = {};
|
|
@@ -1166,6 +1178,9 @@ function createIngestionClient({
|
|
|
1166
1178
|
if (sourceID !== void 0) {
|
|
1167
1179
|
queryParameters["sourceID"] = sourceID.toString();
|
|
1168
1180
|
}
|
|
1181
|
+
if (sourceType !== void 0) {
|
|
1182
|
+
queryParameters["sourceType"] = sourceType.toString();
|
|
1183
|
+
}
|
|
1169
1184
|
if (destinationID !== void 0) {
|
|
1170
1185
|
queryParameters["destinationID"] = destinationID.toString();
|
|
1171
1186
|
}
|