@algolia/ingestion 1.22.0 → 1.23.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 +4 -4
- package/dist/browser.d.ts +27 -1
- package/dist/builds/browser.js +19 -1
- 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 +19 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +19 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +19 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +19 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +27 -1
- package/dist/node.d.cts +27 -1
- package/dist/node.d.ts +27 -1
- package/dist/src/ingestionClient.cjs +19 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +19 -1
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +27 -1
- package/package.json +7 -7
package/dist/fetch.d.ts
CHANGED
|
@@ -609,6 +609,10 @@ type SourceCommercetools = {
|
|
|
609
609
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
610
610
|
*/
|
|
611
611
|
fallbackIsInStockValue?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
614
|
+
*/
|
|
615
|
+
productQueryPredicate?: string;
|
|
612
616
|
customFields?: CommercetoolsCustomFields;
|
|
613
617
|
};
|
|
614
618
|
|
|
@@ -1550,6 +1554,10 @@ type SourceUpdateCommercetools = {
|
|
|
1550
1554
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
1551
1555
|
*/
|
|
1552
1556
|
fallbackIsInStockValue?: boolean;
|
|
1557
|
+
/**
|
|
1558
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
1559
|
+
*/
|
|
1560
|
+
productQueryPredicate?: string;
|
|
1553
1561
|
customFields?: CommercetoolsCustomFields;
|
|
1554
1562
|
};
|
|
1555
1563
|
|
|
@@ -2301,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2301
2309
|
sourceUpdate: SourceUpdate;
|
|
2302
2310
|
};
|
|
2303
2311
|
|
|
2304
|
-
declare const apiClientVersion = "1.
|
|
2312
|
+
declare const apiClientVersion = "1.23.1";
|
|
2305
2313
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2306
2314
|
type Region = (typeof REGIONS)[number];
|
|
2307
2315
|
type RegionOptions = {
|
|
@@ -2403,6 +2411,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2403
2411
|
createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
|
|
2404
2412
|
/**
|
|
2405
2413
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
2414
|
+
*
|
|
2415
|
+
* @deprecated
|
|
2406
2416
|
* @param taskCreate - Request body for creating a task.
|
|
2407
2417
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2408
2418
|
*/
|
|
@@ -2492,6 +2502,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2492
2502
|
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
|
|
2493
2503
|
/**
|
|
2494
2504
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
2505
|
+
*
|
|
2506
|
+
* @deprecated
|
|
2495
2507
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
2496
2508
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
2497
2509
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2523,6 +2535,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2523
2535
|
* - addObject
|
|
2524
2536
|
* - deleteIndex
|
|
2525
2537
|
* - editSettings
|
|
2538
|
+
*
|
|
2539
|
+
* @deprecated
|
|
2526
2540
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
2527
2541
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
2528
2542
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2547,6 +2561,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2547
2561
|
* - addObject
|
|
2548
2562
|
* - deleteIndex
|
|
2549
2563
|
* - editSettings
|
|
2564
|
+
*
|
|
2565
|
+
* @deprecated
|
|
2550
2566
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
2551
2567
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
2552
2568
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2632,6 +2648,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2632
2648
|
* - addObject
|
|
2633
2649
|
* - deleteIndex
|
|
2634
2650
|
* - editSettings
|
|
2651
|
+
*
|
|
2652
|
+
* @deprecated
|
|
2635
2653
|
* @param getTaskV1 - The getTaskV1 object.
|
|
2636
2654
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
2637
2655
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2770,6 +2788,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2770
2788
|
* - addObject
|
|
2771
2789
|
* - deleteIndex
|
|
2772
2790
|
* - editSettings
|
|
2791
|
+
*
|
|
2792
|
+
* @deprecated
|
|
2773
2793
|
* @param listTasksV1 - The listTasksV1 object.
|
|
2774
2794
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
2775
2795
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -2844,6 +2864,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2844
2864
|
* - addObject
|
|
2845
2865
|
* - deleteIndex
|
|
2846
2866
|
* - editSettings
|
|
2867
|
+
*
|
|
2868
|
+
* @deprecated
|
|
2847
2869
|
* @param runTaskV1 - The runTaskV1 object.
|
|
2848
2870
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
2849
2871
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2900,6 +2922,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2900
2922
|
* - addObject
|
|
2901
2923
|
* - deleteIndex
|
|
2902
2924
|
* - editSettings
|
|
2925
|
+
*
|
|
2926
|
+
* @deprecated
|
|
2903
2927
|
* @param taskSearch - The taskSearch object.
|
|
2904
2928
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2905
2929
|
*/
|
|
@@ -3000,6 +3024,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3000
3024
|
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
3001
3025
|
/**
|
|
3002
3026
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
3027
|
+
*
|
|
3028
|
+
* @deprecated
|
|
3003
3029
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
3004
3030
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
3005
3031
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|
package/dist/node.d.cts
CHANGED
|
@@ -609,6 +609,10 @@ type SourceCommercetools = {
|
|
|
609
609
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
610
610
|
*/
|
|
611
611
|
fallbackIsInStockValue?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
614
|
+
*/
|
|
615
|
+
productQueryPredicate?: string;
|
|
612
616
|
customFields?: CommercetoolsCustomFields;
|
|
613
617
|
};
|
|
614
618
|
|
|
@@ -1550,6 +1554,10 @@ type SourceUpdateCommercetools = {
|
|
|
1550
1554
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
1551
1555
|
*/
|
|
1552
1556
|
fallbackIsInStockValue?: boolean;
|
|
1557
|
+
/**
|
|
1558
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
1559
|
+
*/
|
|
1560
|
+
productQueryPredicate?: string;
|
|
1553
1561
|
customFields?: CommercetoolsCustomFields;
|
|
1554
1562
|
};
|
|
1555
1563
|
|
|
@@ -2301,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2301
2309
|
sourceUpdate: SourceUpdate;
|
|
2302
2310
|
};
|
|
2303
2311
|
|
|
2304
|
-
declare const apiClientVersion = "1.
|
|
2312
|
+
declare const apiClientVersion = "1.23.1";
|
|
2305
2313
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2306
2314
|
type Region = (typeof REGIONS)[number];
|
|
2307
2315
|
type RegionOptions = {
|
|
@@ -2403,6 +2411,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2403
2411
|
createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
|
|
2404
2412
|
/**
|
|
2405
2413
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
2414
|
+
*
|
|
2415
|
+
* @deprecated
|
|
2406
2416
|
* @param taskCreate - Request body for creating a task.
|
|
2407
2417
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2408
2418
|
*/
|
|
@@ -2492,6 +2502,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2492
2502
|
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
|
|
2493
2503
|
/**
|
|
2494
2504
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
2505
|
+
*
|
|
2506
|
+
* @deprecated
|
|
2495
2507
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
2496
2508
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
2497
2509
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2523,6 +2535,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2523
2535
|
* - addObject
|
|
2524
2536
|
* - deleteIndex
|
|
2525
2537
|
* - editSettings
|
|
2538
|
+
*
|
|
2539
|
+
* @deprecated
|
|
2526
2540
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
2527
2541
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
2528
2542
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2547,6 +2561,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2547
2561
|
* - addObject
|
|
2548
2562
|
* - deleteIndex
|
|
2549
2563
|
* - editSettings
|
|
2564
|
+
*
|
|
2565
|
+
* @deprecated
|
|
2550
2566
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
2551
2567
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
2552
2568
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2632,6 +2648,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2632
2648
|
* - addObject
|
|
2633
2649
|
* - deleteIndex
|
|
2634
2650
|
* - editSettings
|
|
2651
|
+
*
|
|
2652
|
+
* @deprecated
|
|
2635
2653
|
* @param getTaskV1 - The getTaskV1 object.
|
|
2636
2654
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
2637
2655
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2770,6 +2788,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2770
2788
|
* - addObject
|
|
2771
2789
|
* - deleteIndex
|
|
2772
2790
|
* - editSettings
|
|
2791
|
+
*
|
|
2792
|
+
* @deprecated
|
|
2773
2793
|
* @param listTasksV1 - The listTasksV1 object.
|
|
2774
2794
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
2775
2795
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -2844,6 +2864,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2844
2864
|
* - addObject
|
|
2845
2865
|
* - deleteIndex
|
|
2846
2866
|
* - editSettings
|
|
2867
|
+
*
|
|
2868
|
+
* @deprecated
|
|
2847
2869
|
* @param runTaskV1 - The runTaskV1 object.
|
|
2848
2870
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
2849
2871
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2900,6 +2922,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2900
2922
|
* - addObject
|
|
2901
2923
|
* - deleteIndex
|
|
2902
2924
|
* - editSettings
|
|
2925
|
+
*
|
|
2926
|
+
* @deprecated
|
|
2903
2927
|
* @param taskSearch - The taskSearch object.
|
|
2904
2928
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2905
2929
|
*/
|
|
@@ -3000,6 +3024,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3000
3024
|
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
3001
3025
|
/**
|
|
3002
3026
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
3027
|
+
*
|
|
3028
|
+
* @deprecated
|
|
3003
3029
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
3004
3030
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
3005
3031
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|
package/dist/node.d.ts
CHANGED
|
@@ -609,6 +609,10 @@ type SourceCommercetools = {
|
|
|
609
609
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
610
610
|
*/
|
|
611
611
|
fallbackIsInStockValue?: boolean;
|
|
612
|
+
/**
|
|
613
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
614
|
+
*/
|
|
615
|
+
productQueryPredicate?: string;
|
|
612
616
|
customFields?: CommercetoolsCustomFields;
|
|
613
617
|
};
|
|
614
618
|
|
|
@@ -1550,6 +1554,10 @@ type SourceUpdateCommercetools = {
|
|
|
1550
1554
|
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
1551
1555
|
*/
|
|
1552
1556
|
fallbackIsInStockValue?: boolean;
|
|
1557
|
+
/**
|
|
1558
|
+
* Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
1559
|
+
*/
|
|
1560
|
+
productQueryPredicate?: string;
|
|
1553
1561
|
customFields?: CommercetoolsCustomFields;
|
|
1554
1562
|
};
|
|
1555
1563
|
|
|
@@ -2301,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2301
2309
|
sourceUpdate: SourceUpdate;
|
|
2302
2310
|
};
|
|
2303
2311
|
|
|
2304
|
-
declare const apiClientVersion = "1.
|
|
2312
|
+
declare const apiClientVersion = "1.23.1";
|
|
2305
2313
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2306
2314
|
type Region = (typeof REGIONS)[number];
|
|
2307
2315
|
type RegionOptions = {
|
|
@@ -2403,6 +2411,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2403
2411
|
createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
|
|
2404
2412
|
/**
|
|
2405
2413
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
2414
|
+
*
|
|
2415
|
+
* @deprecated
|
|
2406
2416
|
* @param taskCreate - Request body for creating a task.
|
|
2407
2417
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2408
2418
|
*/
|
|
@@ -2492,6 +2502,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2492
2502
|
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
|
|
2493
2503
|
/**
|
|
2494
2504
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
2505
|
+
*
|
|
2506
|
+
* @deprecated
|
|
2495
2507
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
2496
2508
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
2497
2509
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2523,6 +2535,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2523
2535
|
* - addObject
|
|
2524
2536
|
* - deleteIndex
|
|
2525
2537
|
* - editSettings
|
|
2538
|
+
*
|
|
2539
|
+
* @deprecated
|
|
2526
2540
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
2527
2541
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
2528
2542
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2547,6 +2561,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2547
2561
|
* - addObject
|
|
2548
2562
|
* - deleteIndex
|
|
2549
2563
|
* - editSettings
|
|
2564
|
+
*
|
|
2565
|
+
* @deprecated
|
|
2550
2566
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
2551
2567
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
2552
2568
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2632,6 +2648,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2632
2648
|
* - addObject
|
|
2633
2649
|
* - deleteIndex
|
|
2634
2650
|
* - editSettings
|
|
2651
|
+
*
|
|
2652
|
+
* @deprecated
|
|
2635
2653
|
* @param getTaskV1 - The getTaskV1 object.
|
|
2636
2654
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
2637
2655
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2770,6 +2788,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2770
2788
|
* - addObject
|
|
2771
2789
|
* - deleteIndex
|
|
2772
2790
|
* - editSettings
|
|
2791
|
+
*
|
|
2792
|
+
* @deprecated
|
|
2773
2793
|
* @param listTasksV1 - The listTasksV1 object.
|
|
2774
2794
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
2775
2795
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -2844,6 +2864,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2844
2864
|
* - addObject
|
|
2845
2865
|
* - deleteIndex
|
|
2846
2866
|
* - editSettings
|
|
2867
|
+
*
|
|
2868
|
+
* @deprecated
|
|
2847
2869
|
* @param runTaskV1 - The runTaskV1 object.
|
|
2848
2870
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
2849
2871
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2900,6 +2922,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2900
2922
|
* - addObject
|
|
2901
2923
|
* - deleteIndex
|
|
2902
2924
|
* - editSettings
|
|
2925
|
+
*
|
|
2926
|
+
* @deprecated
|
|
2903
2927
|
* @param taskSearch - The taskSearch object.
|
|
2904
2928
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2905
2929
|
*/
|
|
@@ -3000,6 +3024,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3000
3024
|
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
3001
3025
|
/**
|
|
3002
3026
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
3027
|
+
*
|
|
3028
|
+
* @deprecated
|
|
3003
3029
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
3004
3030
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
3005
3031
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|
|
@@ -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.23.1";
|
|
33
33
|
var REGIONS = ["eu", "us"];
|
|
34
34
|
function getDefaultHosts(region) {
|
|
35
35
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -249,6 +249,8 @@ function createIngestionClient({
|
|
|
249
249
|
},
|
|
250
250
|
/**
|
|
251
251
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
252
|
+
*
|
|
253
|
+
* @deprecated
|
|
252
254
|
* @param taskCreate - Request body for creating a task.
|
|
253
255
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
254
256
|
*/
|
|
@@ -506,6 +508,8 @@ function createIngestionClient({
|
|
|
506
508
|
},
|
|
507
509
|
/**
|
|
508
510
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
511
|
+
*
|
|
512
|
+
* @deprecated
|
|
509
513
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
510
514
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
511
515
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -582,6 +586,8 @@ function createIngestionClient({
|
|
|
582
586
|
* - addObject
|
|
583
587
|
* - deleteIndex
|
|
584
588
|
* - editSettings
|
|
589
|
+
*
|
|
590
|
+
* @deprecated
|
|
585
591
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
586
592
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
587
593
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -634,6 +640,8 @@ function createIngestionClient({
|
|
|
634
640
|
* - addObject
|
|
635
641
|
* - deleteIndex
|
|
636
642
|
* - editSettings
|
|
643
|
+
*
|
|
644
|
+
* @deprecated
|
|
637
645
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
638
646
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
639
647
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -826,6 +834,8 @@ function createIngestionClient({
|
|
|
826
834
|
* - addObject
|
|
827
835
|
* - deleteIndex
|
|
828
836
|
* - editSettings
|
|
837
|
+
*
|
|
838
|
+
* @deprecated
|
|
829
839
|
* @param getTaskV1 - The getTaskV1 object.
|
|
830
840
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
831
841
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1217,6 +1227,8 @@ function createIngestionClient({
|
|
|
1217
1227
|
* - addObject
|
|
1218
1228
|
* - deleteIndex
|
|
1219
1229
|
* - editSettings
|
|
1230
|
+
*
|
|
1231
|
+
* @deprecated
|
|
1220
1232
|
* @param listTasksV1 - The listTasksV1 object.
|
|
1221
1233
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
1222
1234
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -1416,6 +1428,8 @@ function createIngestionClient({
|
|
|
1416
1428
|
* - addObject
|
|
1417
1429
|
* - deleteIndex
|
|
1418
1430
|
* - editSettings
|
|
1431
|
+
*
|
|
1432
|
+
* @deprecated
|
|
1419
1433
|
* @param runTaskV1 - The runTaskV1 object.
|
|
1420
1434
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
1421
1435
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1560,6 +1574,8 @@ function createIngestionClient({
|
|
|
1560
1574
|
* - addObject
|
|
1561
1575
|
* - deleteIndex
|
|
1562
1576
|
* - editSettings
|
|
1577
|
+
*
|
|
1578
|
+
* @deprecated
|
|
1563
1579
|
* @param taskSearch - The taskSearch object.
|
|
1564
1580
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1565
1581
|
*/
|
|
@@ -1848,6 +1864,8 @@ function createIngestionClient({
|
|
|
1848
1864
|
},
|
|
1849
1865
|
/**
|
|
1850
1866
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
1867
|
+
*
|
|
1868
|
+
* @deprecated
|
|
1851
1869
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
1852
1870
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
1853
1871
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|