@algolia/ingestion 1.23.0 → 1.23.2

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 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.0
44
+ yarn add @algolia/ingestion@1.23.2
45
45
  # or
46
- npm install @algolia/ingestion@1.23.0
46
+ npm install @algolia/ingestion@1.23.2
47
47
  # or
48
- pnpm add @algolia/ingestion@1.23.0
48
+ pnpm add @algolia/ingestion@1.23.2
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.0/dist/builds/browser.umd.js"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.23.2/dist/builds/browser.umd.js"></script>
57
57
  ```
58
58
 
59
59
  ### Usage
package/dist/browser.d.ts CHANGED
@@ -129,7 +129,7 @@ type Authentication = {
129
129
  /**
130
130
  * Date of last update in RFC 3339 format.
131
131
  */
132
- updatedAt?: string;
132
+ updatedAt: string;
133
133
  };
134
134
 
135
135
  /**
@@ -336,7 +336,7 @@ type Destination = {
336
336
  /**
337
337
  * Date of last update in RFC 3339 format.
338
338
  */
339
- updatedAt?: string;
339
+ updatedAt: string;
340
340
  /**
341
341
  * Universally unique identifier (UUID) of an authentication resource.
342
342
  */
@@ -699,7 +699,7 @@ type Source = {
699
699
  /**
700
700
  * Date of last update in RFC 3339 format.
701
701
  */
702
- updatedAt?: string;
702
+ updatedAt: string;
703
703
  };
704
704
 
705
705
  type ListSourcesResponse = {
@@ -899,7 +899,7 @@ type Task = {
899
899
  /**
900
900
  * Date of last update in RFC 3339 format.
901
901
  */
902
- updatedAt?: string;
902
+ updatedAt: string;
903
903
  };
904
904
 
905
905
  /**
@@ -1019,7 +1019,7 @@ type TaskV1 = {
1019
1019
  /**
1020
1020
  * Date of last update in RFC 3339 format.
1021
1021
  */
1022
- updatedAt?: string;
1022
+ updatedAt: string;
1023
1023
  };
1024
1024
 
1025
1025
  /**
@@ -1062,7 +1062,7 @@ type Transformation = {
1062
1062
  /**
1063
1063
  * Date of last update in RFC 3339 format.
1064
1064
  */
1065
- updatedAt?: string;
1065
+ updatedAt: string;
1066
1066
  };
1067
1067
 
1068
1068
  /**
@@ -1399,9 +1399,9 @@ type TransformationError = {
1399
1399
 
1400
1400
  type TransformationTryResponse = {
1401
1401
  /**
1402
- * The array of records returned by the transformation service.
1402
+ * The array of stringified records returned by the transformation service.
1403
1403
  */
1404
- payloads: Array<Record<string, unknown>>;
1404
+ payloads: Array<string>;
1405
1405
  error?: TransformationError;
1406
1406
  };
1407
1407
 
@@ -2309,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
2309
2309
  sourceUpdate: SourceUpdate;
2310
2310
  };
2311
2311
 
2312
- declare const apiClientVersion = "1.23.0";
2312
+ declare const apiClientVersion = "1.23.2";
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.
@@ -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.0";
12
+ var apiClientVersion = "1.23.2";
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.