@algolia/ingestion 1.18.0 → 1.20.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 +50 -34
- package/dist/builds/browser.js +11 -2
- 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 +2 -2
- package/dist/builds/fetch.js +11 -2
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +11 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +11 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +11 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +50 -34
- package/dist/node.d.cts +50 -34
- package/dist/node.d.ts +50 -34
- package/dist/src/ingestionClient.cjs +11 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +15 -6
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +50 -34
- package/package.json +10 -10
package/dist/worker.d.ts
CHANGED
|
@@ -604,27 +604,11 @@ type SourceCommercetools = {
|
|
|
604
604
|
customFields?: CommercetoolsCustomFields;
|
|
605
605
|
};
|
|
606
606
|
|
|
607
|
-
/**
|
|
608
|
-
* Image type.
|
|
609
|
-
*/
|
|
610
|
-
type DockerImageType = 'singer' | 'custom' | 'airbyte';
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Container registry name from where to pull the image.
|
|
614
|
-
*/
|
|
615
|
-
type DockerRegistry = 'dockerhub' | 'ghcr';
|
|
616
|
-
|
|
617
607
|
type SourceDocker = {
|
|
618
|
-
imageType: DockerImageType;
|
|
619
|
-
registry: DockerRegistry;
|
|
620
608
|
/**
|
|
621
|
-
*
|
|
609
|
+
* Shortname of the image, as returned by the referential.
|
|
622
610
|
*/
|
|
623
611
|
image: string;
|
|
624
|
-
/**
|
|
625
|
-
* Docker image version.
|
|
626
|
-
*/
|
|
627
|
-
version?: string;
|
|
628
612
|
/**
|
|
629
613
|
* Configuration of the spec.
|
|
630
614
|
*/
|
|
@@ -712,6 +696,30 @@ type ListSourcesResponse = {
|
|
|
712
696
|
*/
|
|
713
697
|
type ActionType = 'replace' | 'save' | 'partial' | 'append';
|
|
714
698
|
|
|
699
|
+
type EmailNotifications = {
|
|
700
|
+
/**
|
|
701
|
+
* Whether to send email notifications, note that this doesn\'t prevent the task from being blocked.
|
|
702
|
+
*/
|
|
703
|
+
enabled?: boolean;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Notifications settings for a task.
|
|
708
|
+
*/
|
|
709
|
+
type Notifications = {
|
|
710
|
+
email: EmailNotifications;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Set of rules for a task.
|
|
715
|
+
*/
|
|
716
|
+
type Policies = {
|
|
717
|
+
/**
|
|
718
|
+
* The number of critical failures in a row before blocking the task and sending a notification.
|
|
719
|
+
*/
|
|
720
|
+
criticalThreshold?: number;
|
|
721
|
+
};
|
|
722
|
+
|
|
715
723
|
/**
|
|
716
724
|
* The strategy to use to fetch the data.
|
|
717
725
|
*/
|
|
@@ -730,7 +738,7 @@ type DockerStreams = {
|
|
|
730
738
|
};
|
|
731
739
|
|
|
732
740
|
/**
|
|
733
|
-
* The selected streams of
|
|
741
|
+
* The selected streams of an airbyte connector.
|
|
734
742
|
*/
|
|
735
743
|
type DockerStreamsInput = {
|
|
736
744
|
streams: Array<DockerStreams>;
|
|
@@ -861,6 +869,8 @@ type Task = {
|
|
|
861
869
|
* Date of the last cursor in RFC 3339 format.
|
|
862
870
|
*/
|
|
863
871
|
cursor?: string;
|
|
872
|
+
notifications?: Notifications;
|
|
873
|
+
policies?: Policies;
|
|
864
874
|
/**
|
|
865
875
|
* Date of creation in RFC 3339 format.
|
|
866
876
|
*/
|
|
@@ -979,6 +989,8 @@ type TaskV1 = {
|
|
|
979
989
|
* Date of the last cursor in RFC 3339 format.
|
|
980
990
|
*/
|
|
981
991
|
cursor?: string;
|
|
992
|
+
notifications?: Notifications;
|
|
993
|
+
policies?: Policies;
|
|
982
994
|
/**
|
|
983
995
|
* Date of creation in RFC 3339 format.
|
|
984
996
|
*/
|
|
@@ -1039,11 +1051,11 @@ type ListTransformationsResponse = {
|
|
|
1039
1051
|
/**
|
|
1040
1052
|
* Task run outcome.
|
|
1041
1053
|
*/
|
|
1042
|
-
type RunOutcome = 'success' | 'failure'
|
|
1054
|
+
type RunOutcome = 'success' | 'failure';
|
|
1043
1055
|
|
|
1044
1056
|
type RunProgress = {
|
|
1045
|
-
expectedNbOfEvents
|
|
1046
|
-
receivedNbOfEvents
|
|
1057
|
+
expectedNbOfEvents: number;
|
|
1058
|
+
receivedNbOfEvents: number;
|
|
1047
1059
|
};
|
|
1048
1060
|
|
|
1049
1061
|
/**
|
|
@@ -1208,6 +1220,8 @@ type TaskCreate = {
|
|
|
1208
1220
|
* Date of the last cursor in RFC 3339 format.
|
|
1209
1221
|
*/
|
|
1210
1222
|
cursor?: string;
|
|
1223
|
+
notifications?: Notifications;
|
|
1224
|
+
policies?: Policies;
|
|
1211
1225
|
};
|
|
1212
1226
|
|
|
1213
1227
|
/**
|
|
@@ -1518,15 +1532,6 @@ type SourceUpdateCommercetools = {
|
|
|
1518
1532
|
};
|
|
1519
1533
|
|
|
1520
1534
|
type SourceUpdateDocker = {
|
|
1521
|
-
registry?: DockerRegistry;
|
|
1522
|
-
/**
|
|
1523
|
-
* Docker image name.
|
|
1524
|
-
*/
|
|
1525
|
-
image?: string;
|
|
1526
|
-
/**
|
|
1527
|
-
* Docker image version.
|
|
1528
|
-
*/
|
|
1529
|
-
version?: string;
|
|
1530
1535
|
/**
|
|
1531
1536
|
* Configuration of the spec.
|
|
1532
1537
|
*/
|
|
@@ -1573,6 +1578,8 @@ type TaskUpdate = {
|
|
|
1573
1578
|
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1574
1579
|
*/
|
|
1575
1580
|
failureThreshold?: number;
|
|
1581
|
+
notifications?: Notifications;
|
|
1582
|
+
policies?: Policies;
|
|
1576
1583
|
};
|
|
1577
1584
|
|
|
1578
1585
|
/**
|
|
@@ -2058,6 +2065,10 @@ type ListTasksProps = {
|
|
|
2058
2065
|
* Type of task trigger for filtering the list of tasks.
|
|
2059
2066
|
*/
|
|
2060
2067
|
triggerType?: Array<TriggerType>;
|
|
2068
|
+
/**
|
|
2069
|
+
* If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
2070
|
+
*/
|
|
2071
|
+
withEmailNotifications?: boolean;
|
|
2061
2072
|
/**
|
|
2062
2073
|
* Property by which to sort the list of tasks.
|
|
2063
2074
|
*/
|
|
@@ -2267,7 +2278,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2267
2278
|
sourceUpdate: SourceUpdate;
|
|
2268
2279
|
};
|
|
2269
2280
|
|
|
2270
|
-
declare const apiClientVersion = "1.
|
|
2281
|
+
declare const apiClientVersion = "1.20.0";
|
|
2271
2282
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2272
2283
|
type Region = (typeof REGIONS)[number];
|
|
2273
2284
|
type RegionOptions = {
|
|
@@ -2300,6 +2311,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2300
2311
|
* The `appId` currently in use.
|
|
2301
2312
|
*/
|
|
2302
2313
|
appId: string;
|
|
2314
|
+
/**
|
|
2315
|
+
* The `apiKey` currently in use.
|
|
2316
|
+
*/
|
|
2317
|
+
apiKey: string;
|
|
2303
2318
|
/**
|
|
2304
2319
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
2305
2320
|
*/
|
|
@@ -2719,11 +2734,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2719
2734
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
2720
2735
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
2721
2736
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
2737
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
2722
2738
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
2723
2739
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
2724
2740
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2725
2741
|
*/
|
|
2726
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2742
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2727
2743
|
/**
|
|
2728
2744
|
* Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
|
|
2729
2745
|
*
|
|
@@ -2877,7 +2893,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2877
2893
|
*/
|
|
2878
2894
|
searchTransformations(transformationSearch: TransformationSearch, requestOptions?: RequestOptions): Promise<Array<Transformation>>;
|
|
2879
2895
|
/**
|
|
2880
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
2896
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
2881
2897
|
*
|
|
2882
2898
|
* Required API Key ACLs:
|
|
2883
2899
|
* - addObject
|
|
@@ -3012,4 +3028,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
|
3012
3028
|
|
|
3013
3029
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3014
3030
|
|
|
3015
|
-
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type
|
|
3031
|
+
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EmailNotifications, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type Notifications, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type Policies, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type RegionOptions, type Run, type RunListResponse, type RunOutcome, type RunProgress, type RunReasonCode, type RunResponse, type RunSortKeys, type RunSourcePayload, type RunSourceProps, type RunSourceResponse, type RunStatus, type RunTaskProps, type RunTaskV1Props, type RunType, type ScheduleTrigger, type ScheduleTriggerInput, type ScheduleTriggerType, type ShopifyInput, type ShopifyMarket, type ShopifyMetafield, type Source, type SourceBigCommerce, type SourceBigQuery, type SourceCSV, type SourceCommercetools, type SourceCreate, type SourceCreateResponse, type SourceDocker, type SourceGA4BigQueryExport, type SourceInput, type SourceJSON, type SourceSearch, type SourceShopify, type SourceShopifyBase, type SourceSortKeys, type SourceType, type SourceUpdate, type SourceUpdateCommercetools, type SourceUpdateDocker, type SourceUpdateInput, type SourceUpdateResponse, type SourceUpdateShopify, type StreamingInput, type StreamingTrigger, type StreamingTriggerType, type SubscriptionTrigger, type SubscriptionTriggerType, type Task, type TaskCreate, type TaskCreateResponse, type TaskCreateTrigger, type TaskCreateV1, type TaskInput, type TaskSearch, type TaskSortKeys, type TaskUpdate, type TaskUpdateResponse, type TaskUpdateV1, type TaskV1, type Transformation, type TransformationCreate, type TransformationCreateResponse, type TransformationError, type TransformationSearch, type TransformationSortKeys, type TransformationTry, type TransformationTryResponse, type TransformationUpdateResponse, type Trigger, type TriggerDockerSourceDiscoverProps, type TriggerType, type TriggerUpdateInput, type TryTransformationBeforeUpdateProps, type UpdateAuthenticationProps, type UpdateDestinationProps, type UpdateSourceProps, type UpdateTaskProps, type UpdateTaskV1Props, type UpdateTransformationProps, type ValidateSourceBeforeUpdateProps, type WatchResponse, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.20.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.20.0",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.20.0",
|
|
54
|
+
"@algolia/requester-fetch": "5.20.0",
|
|
55
|
+
"@algolia/requester-node-http": "5.20.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@arethetypeswrong/cli": "0.17.
|
|
59
|
-
"@types/node": "22.10.
|
|
60
|
-
"publint": "0.2
|
|
61
|
-
"rollup": "4.
|
|
58
|
+
"@arethetypeswrong/cli": "0.17.3",
|
|
59
|
+
"@types/node": "22.10.7",
|
|
60
|
+
"publint": "0.3.2",
|
|
61
|
+
"rollup": "4.30.1",
|
|
62
62
|
"tsup": "8.3.5",
|
|
63
|
-
"typescript": "5.7.
|
|
63
|
+
"typescript": "5.7.3"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">= 14.0.0"
|