@algolia/ingestion 1.15.0 → 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/README.md
CHANGED
|
@@ -41,11 +41,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
41
41
|
### With a package manager
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
yarn add @algolia/ingestion@1.
|
|
44
|
+
yarn add @algolia/ingestion@1.16.0
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/ingestion@1.
|
|
46
|
+
npm install @algolia/ingestion@1.16.0
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/ingestion@1.
|
|
48
|
+
pnpm add @algolia/ingestion@1.16.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Without a package manager
|
|
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.15.0
|
|
|
53
53
|
Add the following JavaScript snippet to the <head> of your website:
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.16.0/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.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/builds/browser.js
CHANGED
|
@@ -4,15 +4,12 @@ import {
|
|
|
4
4
|
createBrowserLocalStorageCache,
|
|
5
5
|
createFallbackableCache,
|
|
6
6
|
createMemoryCache,
|
|
7
|
-
createNullLogger
|
|
8
|
-
DEFAULT_CONNECT_TIMEOUT_BROWSER,
|
|
9
|
-
DEFAULT_READ_TIMEOUT_BROWSER,
|
|
10
|
-
DEFAULT_WRITE_TIMEOUT_BROWSER
|
|
7
|
+
createNullLogger
|
|
11
8
|
} from "@algolia/client-common";
|
|
12
9
|
|
|
13
10
|
// src/ingestionClient.ts
|
|
14
11
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
15
|
-
var apiClientVersion = "1.
|
|
12
|
+
var apiClientVersion = "1.16.0";
|
|
16
13
|
var REGIONS = ["eu", "us"];
|
|
17
14
|
function getDefaultHosts(region) {
|
|
18
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1124,13 +1121,25 @@ function createIngestionClient({
|
|
|
1124
1121
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
1125
1122
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
1126
1123
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
1124
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1127
1125
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1128
1126
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1129
1127
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1130
1128
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1131
1129
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1132
1130
|
*/
|
|
1133
|
-
listTasks({
|
|
1131
|
+
listTasks({
|
|
1132
|
+
itemsPerPage,
|
|
1133
|
+
page,
|
|
1134
|
+
action,
|
|
1135
|
+
enabled,
|
|
1136
|
+
sourceID,
|
|
1137
|
+
sourceType,
|
|
1138
|
+
destinationID,
|
|
1139
|
+
triggerType,
|
|
1140
|
+
sort,
|
|
1141
|
+
order
|
|
1142
|
+
} = {}, requestOptions = void 0) {
|
|
1134
1143
|
const requestPath = "/2/tasks";
|
|
1135
1144
|
const headers = {};
|
|
1136
1145
|
const queryParameters = {};
|
|
@@ -1149,6 +1158,9 @@ function createIngestionClient({
|
|
|
1149
1158
|
if (sourceID !== void 0) {
|
|
1150
1159
|
queryParameters["sourceID"] = sourceID.toString();
|
|
1151
1160
|
}
|
|
1161
|
+
if (sourceType !== void 0) {
|
|
1162
|
+
queryParameters["sourceType"] = sourceType.toString();
|
|
1163
|
+
}
|
|
1152
1164
|
if (destinationID !== void 0) {
|
|
1153
1165
|
queryParameters["destinationID"] = destinationID.toString();
|
|
1154
1166
|
}
|
|
@@ -1919,9 +1931,9 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
1919
1931
|
apiKey,
|
|
1920
1932
|
region,
|
|
1921
1933
|
timeouts: {
|
|
1922
|
-
connect:
|
|
1923
|
-
read:
|
|
1924
|
-
write:
|
|
1934
|
+
connect: 25e3,
|
|
1935
|
+
read: 25e3,
|
|
1936
|
+
write: 25e3
|
|
1925
1937
|
},
|
|
1926
1938
|
logger: createNullLogger(),
|
|
1927
1939
|
requester: createXhrRequester(),
|