@algolia/ingestion 1.23.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 +19 -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 +19 -1
- package/dist/node.d.cts +19 -1
- package/dist/node.d.ts +19 -1
- package/dist/src/ingestionClient.cjs +19 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +23 -5
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +19 -1
- package/package.json +7 -7
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.23.
|
|
44
|
+
yarn add @algolia/ingestion@1.23.1
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/ingestion@1.23.
|
|
46
|
+
npm install @algolia/ingestion@1.23.1
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/ingestion@1.23.
|
|
48
|
+
pnpm add @algolia/ingestion@1.23.1
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Without a package manager
|
|
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.23.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.23.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.23.1/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -2309,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2309
2309
|
sourceUpdate: SourceUpdate;
|
|
2310
2310
|
};
|
|
2311
2311
|
|
|
2312
|
-
declare const apiClientVersion = "1.23.
|
|
2312
|
+
declare const apiClientVersion = "1.23.1";
|
|
2313
2313
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2314
2314
|
type Region = (typeof REGIONS)[number];
|
|
2315
2315
|
type RegionOptions = {
|
|
@@ -2411,6 +2411,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2411
2411
|
createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
|
|
2412
2412
|
/**
|
|
2413
2413
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
2414
|
+
*
|
|
2415
|
+
* @deprecated
|
|
2414
2416
|
* @param taskCreate - Request body for creating a task.
|
|
2415
2417
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2416
2418
|
*/
|
|
@@ -2500,6 +2502,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2500
2502
|
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
|
|
2501
2503
|
/**
|
|
2502
2504
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
2505
|
+
*
|
|
2506
|
+
* @deprecated
|
|
2503
2507
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
2504
2508
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
2505
2509
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2531,6 +2535,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2531
2535
|
* - addObject
|
|
2532
2536
|
* - deleteIndex
|
|
2533
2537
|
* - editSettings
|
|
2538
|
+
*
|
|
2539
|
+
* @deprecated
|
|
2534
2540
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
2535
2541
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
2536
2542
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2555,6 +2561,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2555
2561
|
* - addObject
|
|
2556
2562
|
* - deleteIndex
|
|
2557
2563
|
* - editSettings
|
|
2564
|
+
*
|
|
2565
|
+
* @deprecated
|
|
2558
2566
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
2559
2567
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
2560
2568
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2640,6 +2648,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2640
2648
|
* - addObject
|
|
2641
2649
|
* - deleteIndex
|
|
2642
2650
|
* - editSettings
|
|
2651
|
+
*
|
|
2652
|
+
* @deprecated
|
|
2643
2653
|
* @param getTaskV1 - The getTaskV1 object.
|
|
2644
2654
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
2645
2655
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2778,6 +2788,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2778
2788
|
* - addObject
|
|
2779
2789
|
* - deleteIndex
|
|
2780
2790
|
* - editSettings
|
|
2791
|
+
*
|
|
2792
|
+
* @deprecated
|
|
2781
2793
|
* @param listTasksV1 - The listTasksV1 object.
|
|
2782
2794
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
2783
2795
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -2852,6 +2864,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2852
2864
|
* - addObject
|
|
2853
2865
|
* - deleteIndex
|
|
2854
2866
|
* - editSettings
|
|
2867
|
+
*
|
|
2868
|
+
* @deprecated
|
|
2855
2869
|
* @param runTaskV1 - The runTaskV1 object.
|
|
2856
2870
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
2857
2871
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2908,6 +2922,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2908
2922
|
* - addObject
|
|
2909
2923
|
* - deleteIndex
|
|
2910
2924
|
* - editSettings
|
|
2925
|
+
*
|
|
2926
|
+
* @deprecated
|
|
2911
2927
|
* @param taskSearch - The taskSearch object.
|
|
2912
2928
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2913
2929
|
*/
|
|
@@ -3008,6 +3024,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
3008
3024
|
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
|
|
3009
3025
|
/**
|
|
3010
3026
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
3027
|
+
*
|
|
3028
|
+
* @deprecated
|
|
3011
3029
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
3012
3030
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
3013
3031
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|
package/dist/builds/browser.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// src/ingestionClient.ts
|
|
11
11
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
12
|
-
var apiClientVersion = "1.23.
|
|
12
|
+
var apiClientVersion = "1.23.1";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -229,6 +229,8 @@ function createIngestionClient({
|
|
|
229
229
|
},
|
|
230
230
|
/**
|
|
231
231
|
* Creates a new task using the v1 endpoint, please use `createTask` instead.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated
|
|
232
234
|
* @param taskCreate - Request body for creating a task.
|
|
233
235
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
234
236
|
*/
|
|
@@ -486,6 +488,8 @@ function createIngestionClient({
|
|
|
486
488
|
},
|
|
487
489
|
/**
|
|
488
490
|
* Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
|
|
491
|
+
*
|
|
492
|
+
* @deprecated
|
|
489
493
|
* @param deleteTaskV1 - The deleteTaskV1 object.
|
|
490
494
|
* @param deleteTaskV1.taskID - Unique identifier of a task.
|
|
491
495
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -562,6 +566,8 @@ function createIngestionClient({
|
|
|
562
566
|
* - addObject
|
|
563
567
|
* - deleteIndex
|
|
564
568
|
* - editSettings
|
|
569
|
+
*
|
|
570
|
+
* @deprecated
|
|
565
571
|
* @param disableTaskV1 - The disableTaskV1 object.
|
|
566
572
|
* @param disableTaskV1.taskID - Unique identifier of a task.
|
|
567
573
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -614,6 +620,8 @@ function createIngestionClient({
|
|
|
614
620
|
* - addObject
|
|
615
621
|
* - deleteIndex
|
|
616
622
|
* - editSettings
|
|
623
|
+
*
|
|
624
|
+
* @deprecated
|
|
617
625
|
* @param enableTaskV1 - The enableTaskV1 object.
|
|
618
626
|
* @param enableTaskV1.taskID - Unique identifier of a task.
|
|
619
627
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -806,6 +814,8 @@ function createIngestionClient({
|
|
|
806
814
|
* - addObject
|
|
807
815
|
* - deleteIndex
|
|
808
816
|
* - editSettings
|
|
817
|
+
*
|
|
818
|
+
* @deprecated
|
|
809
819
|
* @param getTaskV1 - The getTaskV1 object.
|
|
810
820
|
* @param getTaskV1.taskID - Unique identifier of a task.
|
|
811
821
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1197,6 +1207,8 @@ function createIngestionClient({
|
|
|
1197
1207
|
* - addObject
|
|
1198
1208
|
* - deleteIndex
|
|
1199
1209
|
* - editSettings
|
|
1210
|
+
*
|
|
1211
|
+
* @deprecated
|
|
1200
1212
|
* @param listTasksV1 - The listTasksV1 object.
|
|
1201
1213
|
* @param listTasksV1.itemsPerPage - Number of items per page.
|
|
1202
1214
|
* @param listTasksV1.page - Page number of the paginated API response.
|
|
@@ -1396,6 +1408,8 @@ function createIngestionClient({
|
|
|
1396
1408
|
* - addObject
|
|
1397
1409
|
* - deleteIndex
|
|
1398
1410
|
* - editSettings
|
|
1411
|
+
*
|
|
1412
|
+
* @deprecated
|
|
1399
1413
|
* @param runTaskV1 - The runTaskV1 object.
|
|
1400
1414
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
1401
1415
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1540,6 +1554,8 @@ function createIngestionClient({
|
|
|
1540
1554
|
* - addObject
|
|
1541
1555
|
* - deleteIndex
|
|
1542
1556
|
* - editSettings
|
|
1557
|
+
*
|
|
1558
|
+
* @deprecated
|
|
1543
1559
|
* @param taskSearch - The taskSearch object.
|
|
1544
1560
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1545
1561
|
*/
|
|
@@ -1828,6 +1844,8 @@ function createIngestionClient({
|
|
|
1828
1844
|
},
|
|
1829
1845
|
/**
|
|
1830
1846
|
* Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
|
|
1847
|
+
*
|
|
1848
|
+
* @deprecated
|
|
1831
1849
|
* @param updateTaskV1 - The updateTaskV1 object.
|
|
1832
1850
|
* @param updateTaskV1.taskID - Unique identifier of a task.
|
|
1833
1851
|
* @param updateTaskV1.taskUpdate - The taskUpdate object.
|