@algolia/ingestion 1.17.1 → 1.19.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 +47 -6
- package/dist/builds/browser.js +43 -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 +44 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +43 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +43 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1996 -0
- package/dist/builds/worker.js.map +1 -0
- package/dist/fetch.d.ts +47 -6
- package/dist/node.d.cts +47 -6
- package/dist/node.d.ts +47 -6
- package/dist/src/ingestionClient.cjs +43 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +43 -2
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +3056 -0
- package/package.json +10 -10
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.
|
|
44
|
+
yarn add @algolia/ingestion@1.19.0
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/ingestion@1.
|
|
46
|
+
npm install @algolia/ingestion@1.19.0
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/ingestion@1.
|
|
48
|
+
pnpm add @algolia/ingestion@1.19.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Without a package manager
|
|
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.17.1
|
|
|
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.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.19.0/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -607,7 +607,7 @@ type SourceCommercetools = {
|
|
|
607
607
|
/**
|
|
608
608
|
* Image type.
|
|
609
609
|
*/
|
|
610
|
-
type DockerImageType = '
|
|
610
|
+
type DockerImageType = 'custom' | 'airbyte';
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
613
|
* Container registry name from where to pull the image.
|
|
@@ -712,6 +712,30 @@ type ListSourcesResponse = {
|
|
|
712
712
|
*/
|
|
713
713
|
type ActionType = 'replace' | 'save' | 'partial' | 'append';
|
|
714
714
|
|
|
715
|
+
type EmailNotifications = {
|
|
716
|
+
/**
|
|
717
|
+
* Whether to send email notifications, note that this doesn\'t prevent the task from being blocked.
|
|
718
|
+
*/
|
|
719
|
+
enabled?: boolean;
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Notifications settings for a task.
|
|
724
|
+
*/
|
|
725
|
+
type Notifications = {
|
|
726
|
+
email: EmailNotifications;
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Set of rules for a task.
|
|
731
|
+
*/
|
|
732
|
+
type Policies = {
|
|
733
|
+
/**
|
|
734
|
+
* The number of critical failures in a row before blocking the task and sending a notification.
|
|
735
|
+
*/
|
|
736
|
+
criticalThreshold?: number;
|
|
737
|
+
};
|
|
738
|
+
|
|
715
739
|
/**
|
|
716
740
|
* The strategy to use to fetch the data.
|
|
717
741
|
*/
|
|
@@ -730,7 +754,7 @@ type DockerStreams = {
|
|
|
730
754
|
};
|
|
731
755
|
|
|
732
756
|
/**
|
|
733
|
-
* The selected streams of
|
|
757
|
+
* The selected streams of an airbyte connector.
|
|
734
758
|
*/
|
|
735
759
|
type DockerStreamsInput = {
|
|
736
760
|
streams: Array<DockerStreams>;
|
|
@@ -861,6 +885,8 @@ type Task = {
|
|
|
861
885
|
* Date of the last cursor in RFC 3339 format.
|
|
862
886
|
*/
|
|
863
887
|
cursor?: string;
|
|
888
|
+
notifications?: Notifications;
|
|
889
|
+
policies?: Policies;
|
|
864
890
|
/**
|
|
865
891
|
* Date of creation in RFC 3339 format.
|
|
866
892
|
*/
|
|
@@ -979,6 +1005,8 @@ type TaskV1 = {
|
|
|
979
1005
|
* Date of the last cursor in RFC 3339 format.
|
|
980
1006
|
*/
|
|
981
1007
|
cursor?: string;
|
|
1008
|
+
notifications?: Notifications;
|
|
1009
|
+
policies?: Policies;
|
|
982
1010
|
/**
|
|
983
1011
|
* Date of creation in RFC 3339 format.
|
|
984
1012
|
*/
|
|
@@ -1208,6 +1236,8 @@ type TaskCreate = {
|
|
|
1208
1236
|
* Date of the last cursor in RFC 3339 format.
|
|
1209
1237
|
*/
|
|
1210
1238
|
cursor?: string;
|
|
1239
|
+
notifications?: Notifications;
|
|
1240
|
+
policies?: Policies;
|
|
1211
1241
|
};
|
|
1212
1242
|
|
|
1213
1243
|
/**
|
|
@@ -1573,6 +1603,8 @@ type TaskUpdate = {
|
|
|
1573
1603
|
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1574
1604
|
*/
|
|
1575
1605
|
failureThreshold?: number;
|
|
1606
|
+
notifications?: Notifications;
|
|
1607
|
+
policies?: Policies;
|
|
1576
1608
|
};
|
|
1577
1609
|
|
|
1578
1610
|
/**
|
|
@@ -2058,6 +2090,10 @@ type ListTasksProps = {
|
|
|
2058
2090
|
* Type of task trigger for filtering the list of tasks.
|
|
2059
2091
|
*/
|
|
2060
2092
|
triggerType?: Array<TriggerType>;
|
|
2093
|
+
/**
|
|
2094
|
+
* If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
2095
|
+
*/
|
|
2096
|
+
withEmailNotifications?: boolean;
|
|
2061
2097
|
/**
|
|
2062
2098
|
* Property by which to sort the list of tasks.
|
|
2063
2099
|
*/
|
|
@@ -2267,7 +2303,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2267
2303
|
sourceUpdate: SourceUpdate;
|
|
2268
2304
|
};
|
|
2269
2305
|
|
|
2270
|
-
declare const apiClientVersion = "1.
|
|
2306
|
+
declare const apiClientVersion = "1.19.0";
|
|
2271
2307
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2272
2308
|
type Region = (typeof REGIONS)[number];
|
|
2273
2309
|
type RegionOptions = {
|
|
@@ -2300,6 +2336,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2300
2336
|
* The `appId` currently in use.
|
|
2301
2337
|
*/
|
|
2302
2338
|
appId: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* The `apiKey` currently in use.
|
|
2341
|
+
*/
|
|
2342
|
+
apiKey: string;
|
|
2303
2343
|
/**
|
|
2304
2344
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
2305
2345
|
*/
|
|
@@ -2719,11 +2759,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2719
2759
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
2720
2760
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
2721
2761
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
2762
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
2722
2763
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
2723
2764
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
2724
2765
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2725
2766
|
*/
|
|
2726
|
-
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2767
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, sourceType, destinationID, triggerType, withEmailNotifications, sort, order, }?: ListTasksProps, requestOptions?: RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2727
2768
|
/**
|
|
2728
2769
|
* Retrieves a list of tasks using the v1 endpoint, please use `getTasks` instead.
|
|
2729
2770
|
*
|
|
@@ -2877,7 +2918,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2877
2918
|
*/
|
|
2878
2919
|
searchTransformations(transformationSearch: TransformationSearch, requestOptions?: RequestOptions): Promise<Array<Transformation>>;
|
|
2879
2920
|
/**
|
|
2880
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
2921
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
2881
2922
|
*
|
|
2882
2923
|
* Required API Key ACLs:
|
|
2883
2924
|
* - addObject
|
|
@@ -3011,4 +3052,4 @@ type ErrorBase = Record<string, any> & {
|
|
|
3011
3052
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3012
3053
|
type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
3013
3054
|
|
|
3014
|
-
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 DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, 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 OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, 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 };
|
|
3055
|
+
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 DockerImageType, type DockerRegistry, 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/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.
|
|
12
|
+
var apiClientVersion = "1.19.0";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -57,6 +57,10 @@ function createIngestionClient({
|
|
|
57
57
|
* The `appId` currently in use.
|
|
58
58
|
*/
|
|
59
59
|
appId: appIdOption,
|
|
60
|
+
/**
|
|
61
|
+
* The `apiKey` currently in use.
|
|
62
|
+
*/
|
|
63
|
+
apiKey: apiKeyOption,
|
|
60
64
|
/**
|
|
61
65
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
62
66
|
*/
|
|
@@ -1124,6 +1128,7 @@ function createIngestionClient({
|
|
|
1124
1128
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1125
1129
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1126
1130
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1131
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
1127
1132
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1128
1133
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1129
1134
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1137,6 +1142,7 @@ function createIngestionClient({
|
|
|
1137
1142
|
sourceType,
|
|
1138
1143
|
destinationID,
|
|
1139
1144
|
triggerType,
|
|
1145
|
+
withEmailNotifications,
|
|
1140
1146
|
sort,
|
|
1141
1147
|
order
|
|
1142
1148
|
} = {}, requestOptions = void 0) {
|
|
@@ -1167,6 +1173,9 @@ function createIngestionClient({
|
|
|
1167
1173
|
if (triggerType !== void 0) {
|
|
1168
1174
|
queryParameters["triggerType"] = triggerType.toString();
|
|
1169
1175
|
}
|
|
1176
|
+
if (withEmailNotifications !== void 0) {
|
|
1177
|
+
queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
|
|
1178
|
+
}
|
|
1170
1179
|
if (sort !== void 0) {
|
|
1171
1180
|
queryParameters["sort"] = sort.toString();
|
|
1172
1181
|
}
|
|
@@ -1316,6 +1325,14 @@ function createIngestionClient({
|
|
|
1316
1325
|
headers,
|
|
1317
1326
|
data: pushTaskPayload
|
|
1318
1327
|
};
|
|
1328
|
+
requestOptions = {
|
|
1329
|
+
timeouts: {
|
|
1330
|
+
connect: 18e4,
|
|
1331
|
+
read: 18e4,
|
|
1332
|
+
write: 18e4,
|
|
1333
|
+
...requestOptions?.timeouts
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1319
1336
|
return transporter.request(request, requestOptions);
|
|
1320
1337
|
},
|
|
1321
1338
|
/**
|
|
@@ -1577,7 +1594,7 @@ function createIngestionClient({
|
|
|
1577
1594
|
return transporter.request(request, requestOptions);
|
|
1578
1595
|
},
|
|
1579
1596
|
/**
|
|
1580
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
1597
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
1581
1598
|
*
|
|
1582
1599
|
* Required API Key ACLs:
|
|
1583
1600
|
* - addObject
|
|
@@ -1600,6 +1617,14 @@ function createIngestionClient({
|
|
|
1600
1617
|
queryParameters,
|
|
1601
1618
|
headers
|
|
1602
1619
|
};
|
|
1620
|
+
requestOptions = {
|
|
1621
|
+
timeouts: {
|
|
1622
|
+
connect: 18e4,
|
|
1623
|
+
read: 18e4,
|
|
1624
|
+
write: 18e4,
|
|
1625
|
+
...requestOptions?.timeouts
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1603
1628
|
return transporter.request(request, requestOptions);
|
|
1604
1629
|
},
|
|
1605
1630
|
/**
|
|
@@ -1883,6 +1908,14 @@ function createIngestionClient({
|
|
|
1883
1908
|
headers,
|
|
1884
1909
|
data: sourceCreate ? sourceCreate : {}
|
|
1885
1910
|
};
|
|
1911
|
+
requestOptions = {
|
|
1912
|
+
timeouts: {
|
|
1913
|
+
connect: 18e4,
|
|
1914
|
+
read: 18e4,
|
|
1915
|
+
write: 18e4,
|
|
1916
|
+
...requestOptions?.timeouts
|
|
1917
|
+
}
|
|
1918
|
+
};
|
|
1886
1919
|
return transporter.request(request, requestOptions);
|
|
1887
1920
|
},
|
|
1888
1921
|
/**
|
|
@@ -1914,6 +1947,14 @@ function createIngestionClient({
|
|
|
1914
1947
|
headers,
|
|
1915
1948
|
data: sourceUpdate
|
|
1916
1949
|
};
|
|
1950
|
+
requestOptions = {
|
|
1951
|
+
timeouts: {
|
|
1952
|
+
connect: 18e4,
|
|
1953
|
+
read: 18e4,
|
|
1954
|
+
write: 18e4,
|
|
1955
|
+
...requestOptions?.timeouts
|
|
1956
|
+
}
|
|
1957
|
+
};
|
|
1917
1958
|
return transporter.request(request, requestOptions);
|
|
1918
1959
|
}
|
|
1919
1960
|
};
|