@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 +4 -4
- package/dist/browser.d.ts +27 -9
- 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 -9
- package/dist/node.d.cts +27 -9
- package/dist/node.d.ts +27 -9
- 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 -9
- package/package.json +7 -7
package/dist/fetch.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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<
|
|
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.
|
|
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.
|
package/dist/node.d.cts
CHANGED
|
@@ -129,7 +129,7 @@ type Authentication = {
|
|
|
129
129
|
/**
|
|
130
130
|
* Date of last update in RFC 3339 format.
|
|
131
131
|
*/
|
|
132
|
-
updatedAt
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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<
|
|
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.
|
|
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.
|
package/dist/node.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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<
|
|
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.
|
|
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.
|
|
@@ -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.23.
|
|
32
|
+
var apiClientVersion = "1.23.2";
|
|
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.
|