@algolia/ingestion 1.2.3 → 5.2.4-beta.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/dist/browser.d.ts +2368 -0
- package/dist/builds/browser.js +2044 -0
- package/dist/builds/browser.js.map +1 -0
- package/dist/builds/browser.min.js +2 -0
- package/dist/builds/browser.min.js.map +1 -0
- package/dist/builds/browser.umd.js +15 -0
- package/dist/builds/node.cjs +2065 -0
- package/dist/builds/node.cjs.map +1 -0
- package/dist/builds/node.js +2042 -0
- package/dist/builds/node.js.map +1 -0
- package/dist/node.d.cts +2368 -0
- package/dist/node.d.ts +2368 -0
- package/dist/src/ingestionClient.cjs +2032 -0
- package/dist/src/ingestionClient.cjs.map +1 -0
- package/dist/src/ingestionClient.js +2002 -0
- package/dist/src/ingestionClient.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +27 -27
- package/dist/builds/browser.d.ts +0 -75
- package/dist/builds/browser.d.ts.map +0 -1
- package/dist/builds/node.d.ts +0 -75
- package/dist/builds/node.d.ts.map +0 -1
- package/dist/ingestion.cjs +0 -2007
- package/dist/ingestion.esm.browser.js +0 -2678
- package/dist/ingestion.esm.node.js +0 -2001
- package/dist/ingestion.umd.js +0 -2
- package/dist/model/action.d.ts +0 -5
- package/dist/model/action.d.ts.map +0 -1
- package/dist/model/actionType.d.ts +0 -5
- package/dist/model/actionType.d.ts.map +0 -1
- package/dist/model/authAPIKey.d.ts +0 -10
- package/dist/model/authAPIKey.d.ts.map +0 -1
- package/dist/model/authAPIKeyPartial.d.ts +0 -10
- package/dist/model/authAPIKeyPartial.d.ts.map +0 -1
- package/dist/model/authAlgolia.d.ts +0 -14
- package/dist/model/authAlgolia.d.ts.map +0 -1
- package/dist/model/authAlgoliaInsights.d.ts +0 -14
- package/dist/model/authAlgoliaInsights.d.ts.map +0 -1
- package/dist/model/authAlgoliaInsightsPartial.d.ts +0 -14
- package/dist/model/authAlgoliaInsightsPartial.d.ts.map +0 -1
- package/dist/model/authAlgoliaPartial.d.ts +0 -14
- package/dist/model/authAlgoliaPartial.d.ts.map +0 -1
- package/dist/model/authBasic.d.ts +0 -14
- package/dist/model/authBasic.d.ts.map +0 -1
- package/dist/model/authBasicPartial.d.ts +0 -14
- package/dist/model/authBasicPartial.d.ts.map +0 -1
- package/dist/model/authGoogleServiceAccount.d.ts +0 -14
- package/dist/model/authGoogleServiceAccount.d.ts.map +0 -1
- package/dist/model/authGoogleServiceAccountPartial.d.ts +0 -14
- package/dist/model/authGoogleServiceAccountPartial.d.ts.map +0 -1
- package/dist/model/authInput.d.ts +0 -8
- package/dist/model/authInput.d.ts.map +0 -1
- package/dist/model/authInputPartial.d.ts +0 -8
- package/dist/model/authInputPartial.d.ts.map +0 -1
- package/dist/model/authOAuth.d.ts +0 -22
- package/dist/model/authOAuth.d.ts.map +0 -1
- package/dist/model/authOAuthPartial.d.ts +0 -22
- package/dist/model/authOAuthPartial.d.ts.map +0 -1
- package/dist/model/authentication.d.ts +0 -28
- package/dist/model/authentication.d.ts.map +0 -1
- package/dist/model/authenticationCreate.d.ts +0 -16
- package/dist/model/authenticationCreate.d.ts.map +0 -1
- package/dist/model/authenticationCreateResponse.d.ts +0 -18
- package/dist/model/authenticationCreateResponse.d.ts.map +0 -1
- package/dist/model/authenticationSearch.d.ts +0 -7
- package/dist/model/authenticationSearch.d.ts.map +0 -1
- package/dist/model/authenticationSortKeys.d.ts +0 -5
- package/dist/model/authenticationSortKeys.d.ts.map +0 -1
- package/dist/model/authenticationType.d.ts +0 -5
- package/dist/model/authenticationType.d.ts.map +0 -1
- package/dist/model/authenticationUpdate.d.ts +0 -16
- package/dist/model/authenticationUpdate.d.ts.map +0 -1
- package/dist/model/authenticationUpdateResponse.d.ts +0 -18
- package/dist/model/authenticationUpdateResponse.d.ts.map +0 -1
- package/dist/model/bigCommerceChannel.d.ts +0 -11
- package/dist/model/bigCommerceChannel.d.ts.map +0 -1
- package/dist/model/bigCommerceMetafield.d.ts +0 -11
- package/dist/model/bigCommerceMetafield.d.ts.map +0 -1
- package/dist/model/bigQueryDataType.d.ts +0 -2
- package/dist/model/bigQueryDataType.d.ts.map +0 -1
- package/dist/model/clientMethodProps.d.ts +0 -659
- package/dist/model/clientMethodProps.d.ts.map +0 -1
- package/dist/model/commercetoolsCustomFields.d.ts +0 -18
- package/dist/model/commercetoolsCustomFields.d.ts.map +0 -1
- package/dist/model/deleteResponse.d.ts +0 -7
- package/dist/model/deleteResponse.d.ts.map +0 -1
- package/dist/model/destination.d.ts +0 -31
- package/dist/model/destination.d.ts.map +0 -1
- package/dist/model/destinationCreate.d.ts +0 -19
- package/dist/model/destinationCreate.d.ts.map +0 -1
- package/dist/model/destinationCreateResponse.d.ts +0 -18
- package/dist/model/destinationCreateResponse.d.ts.map +0 -1
- package/dist/model/destinationIndexName.d.ts +0 -13
- package/dist/model/destinationIndexName.d.ts.map +0 -1
- package/dist/model/destinationInput.d.ts +0 -3
- package/dist/model/destinationInput.d.ts.map +0 -1
- package/dist/model/destinationSearch.d.ts +0 -7
- package/dist/model/destinationSearch.d.ts.map +0 -1
- package/dist/model/destinationSortKeys.d.ts +0 -5
- package/dist/model/destinationSortKeys.d.ts.map +0 -1
- package/dist/model/destinationType.d.ts +0 -5
- package/dist/model/destinationType.d.ts.map +0 -1
- package/dist/model/destinationUpdate.d.ts +0 -19
- package/dist/model/destinationUpdate.d.ts.map +0 -1
- package/dist/model/destinationUpdateResponse.d.ts +0 -18
- package/dist/model/destinationUpdateResponse.d.ts.map +0 -1
- package/dist/model/dockerImageType.d.ts +0 -5
- package/dist/model/dockerImageType.d.ts.map +0 -1
- package/dist/model/dockerRegistry.d.ts +0 -5
- package/dist/model/dockerRegistry.d.ts.map +0 -1
- package/dist/model/dockerStreams.d.ts +0 -13
- package/dist/model/dockerStreams.d.ts.map +0 -1
- package/dist/model/dockerStreamsInput.d.ts +0 -8
- package/dist/model/dockerStreamsInput.d.ts.map +0 -1
- package/dist/model/dockerStreamsSyncMode.d.ts +0 -5
- package/dist/model/dockerStreamsSyncMode.d.ts.map +0 -1
- package/dist/model/entityType.d.ts +0 -5
- package/dist/model/entityType.d.ts.map +0 -1
- package/dist/model/errorBase.d.ts +0 -7
- package/dist/model/errorBase.d.ts.map +0 -1
- package/dist/model/event.d.ts +0 -31
- package/dist/model/event.d.ts.map +0 -1
- package/dist/model/eventSortKeys.d.ts +0 -5
- package/dist/model/eventSortKeys.d.ts.map +0 -1
- package/dist/model/eventStatus.d.ts +0 -2
- package/dist/model/eventStatus.d.ts.map +0 -1
- package/dist/model/eventType.d.ts +0 -2
- package/dist/model/eventType.d.ts.map +0 -1
- package/dist/model/generateTransformationCodePayload.d.ts +0 -6
- package/dist/model/generateTransformationCodePayload.d.ts.map +0 -1
- package/dist/model/generateTransformationCodeResponse.d.ts +0 -4
- package/dist/model/generateTransformationCodeResponse.d.ts.map +0 -1
- package/dist/model/index.d.ts +0 -150
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/listAuthenticationsResponse.d.ts +0 -7
- package/dist/model/listAuthenticationsResponse.d.ts.map +0 -1
- package/dist/model/listDestinationsResponse.d.ts +0 -7
- package/dist/model/listDestinationsResponse.d.ts.map +0 -1
- package/dist/model/listEventsResponse.d.ts +0 -9
- package/dist/model/listEventsResponse.d.ts.map +0 -1
- package/dist/model/listSourcesResponse.d.ts +0 -7
- package/dist/model/listSourcesResponse.d.ts.map +0 -1
- package/dist/model/listTasksResponse.d.ts +0 -10
- package/dist/model/listTasksResponse.d.ts.map +0 -1
- package/dist/model/listTasksResponseV1.d.ts +0 -10
- package/dist/model/listTasksResponseV1.d.ts.map +0 -1
- package/dist/model/listTransformationsResponse.d.ts +0 -10
- package/dist/model/listTransformationsResponse.d.ts.map +0 -1
- package/dist/model/mappingFieldDirective.d.ts +0 -14
- package/dist/model/mappingFieldDirective.d.ts.map +0 -1
- package/dist/model/mappingFormatSchema.d.ts +0 -5
- package/dist/model/mappingFormatSchema.d.ts.map +0 -1
- package/dist/model/mappingInput.d.ts +0 -10
- package/dist/model/mappingInput.d.ts.map +0 -1
- package/dist/model/mappingKitAction.d.ts +0 -20
- package/dist/model/mappingKitAction.d.ts.map +0 -1
- package/dist/model/mappingTypeCSV.d.ts +0 -2
- package/dist/model/mappingTypeCSV.d.ts.map +0 -1
- package/dist/model/methodType.d.ts +0 -5
- package/dist/model/methodType.d.ts.map +0 -1
- package/dist/model/model.d.ts +0 -8
- package/dist/model/model.d.ts.map +0 -1
- package/dist/model/onDemandTrigger.d.ts +0 -12
- package/dist/model/onDemandTrigger.d.ts.map +0 -1
- package/dist/model/onDemandTriggerInput.d.ts +0 -8
- package/dist/model/onDemandTriggerInput.d.ts.map +0 -1
- package/dist/model/onDemandTriggerType.d.ts +0 -5
- package/dist/model/onDemandTriggerType.d.ts.map +0 -1
- package/dist/model/orderKeys.d.ts +0 -5
- package/dist/model/orderKeys.d.ts.map +0 -1
- package/dist/model/pagination.d.ts +0 -22
- package/dist/model/pagination.d.ts.map +0 -1
- package/dist/model/platform.d.ts +0 -5
- package/dist/model/platform.d.ts.map +0 -1
- package/dist/model/platformNone.d.ts +0 -5
- package/dist/model/platformNone.d.ts.map +0 -1
- package/dist/model/platformWithNone.d.ts +0 -4
- package/dist/model/platformWithNone.d.ts.map +0 -1
- package/dist/model/pushTaskPayload.d.ts +0 -7
- package/dist/model/pushTaskPayload.d.ts.map +0 -1
- package/dist/model/pushTaskRecords.d.ts +0 -7
- package/dist/model/pushTaskRecords.d.ts.map +0 -1
- package/dist/model/recordType.d.ts +0 -5
- package/dist/model/recordType.d.ts.map +0 -1
- package/dist/model/run.d.ts +0 -42
- package/dist/model/run.d.ts.map +0 -1
- package/dist/model/runListResponse.d.ts +0 -9
- package/dist/model/runListResponse.d.ts.map +0 -1
- package/dist/model/runOutcome.d.ts +0 -5
- package/dist/model/runOutcome.d.ts.map +0 -1
- package/dist/model/runProgress.d.ts +0 -5
- package/dist/model/runProgress.d.ts.map +0 -1
- package/dist/model/runReasonCode.d.ts +0 -5
- package/dist/model/runReasonCode.d.ts.map +0 -1
- package/dist/model/runResponse.d.ts +0 -14
- package/dist/model/runResponse.d.ts.map +0 -1
- package/dist/model/runSortKeys.d.ts +0 -5
- package/dist/model/runSortKeys.d.ts.map +0 -1
- package/dist/model/runSourcePayload.d.ts +0 -17
- package/dist/model/runSourcePayload.d.ts.map +0 -1
- package/dist/model/runSourceResponse.d.ts +0 -11
- package/dist/model/runSourceResponse.d.ts.map +0 -1
- package/dist/model/runStatus.d.ts +0 -5
- package/dist/model/runStatus.d.ts.map +0 -1
- package/dist/model/runType.d.ts +0 -5
- package/dist/model/runType.d.ts.map +0 -1
- package/dist/model/scheduleTrigger.d.ts +0 -20
- package/dist/model/scheduleTrigger.d.ts.map +0 -1
- package/dist/model/scheduleTriggerInput.d.ts +0 -12
- package/dist/model/scheduleTriggerInput.d.ts.map +0 -1
- package/dist/model/scheduleTriggerType.d.ts +0 -5
- package/dist/model/scheduleTriggerType.d.ts.map +0 -1
- package/dist/model/shopifyInput.d.ts +0 -10
- package/dist/model/shopifyInput.d.ts.map +0 -1
- package/dist/model/shopifyMarket.d.ts +0 -9
- package/dist/model/shopifyMarket.d.ts.map +0 -1
- package/dist/model/shopifyMetafield.d.ts +0 -9
- package/dist/model/shopifyMetafield.d.ts.map +0 -1
- package/dist/model/sortKeys.d.ts +0 -5
- package/dist/model/sortKeys.d.ts.map +0 -1
- package/dist/model/source.d.ts +0 -24
- package/dist/model/source.d.ts.map +0 -1
- package/dist/model/sourceBigCommerce.d.ts +0 -13
- package/dist/model/sourceBigCommerce.d.ts.map +0 -1
- package/dist/model/sourceBigQuery.d.ts +0 -29
- package/dist/model/sourceBigQuery.d.ts.map +0 -1
- package/dist/model/sourceCSV.d.ts +0 -22
- package/dist/model/sourceCSV.d.ts.map +0 -1
- package/dist/model/sourceCommercetools.d.ts +0 -16
- package/dist/model/sourceCommercetools.d.ts.map +0 -1
- package/dist/model/sourceCreate.d.ts +0 -15
- package/dist/model/sourceCreate.d.ts.map +0 -1
- package/dist/model/sourceCreateResponse.d.ts +0 -15
- package/dist/model/sourceCreateResponse.d.ts.map +0 -1
- package/dist/model/sourceDocker.d.ts +0 -19
- package/dist/model/sourceDocker.d.ts.map +0 -1
- package/dist/model/sourceGA4BigQueryExport.d.ts +0 -15
- package/dist/model/sourceGA4BigQueryExport.d.ts.map +0 -1
- package/dist/model/sourceInput.d.ts +0 -10
- package/dist/model/sourceInput.d.ts.map +0 -1
- package/dist/model/sourceJSON.d.ts +0 -13
- package/dist/model/sourceJSON.d.ts.map +0 -1
- package/dist/model/sourceSearch.d.ts +0 -4
- package/dist/model/sourceSearch.d.ts.map +0 -1
- package/dist/model/sourceShopify.d.ts +0 -4
- package/dist/model/sourceShopify.d.ts.map +0 -1
- package/dist/model/sourceShopifyBase.d.ts +0 -7
- package/dist/model/sourceShopifyBase.d.ts.map +0 -1
- package/dist/model/sourceSortKeys.d.ts +0 -5
- package/dist/model/sourceSortKeys.d.ts.map +0 -1
- package/dist/model/sourceType.d.ts +0 -2
- package/dist/model/sourceType.d.ts.map +0 -1
- package/dist/model/sourceUpdate.d.ts +0 -13
- package/dist/model/sourceUpdate.d.ts.map +0 -1
- package/dist/model/sourceUpdateCommercetools.d.ts +0 -15
- package/dist/model/sourceUpdateCommercetools.d.ts.map +0 -1
- package/dist/model/sourceUpdateDocker.d.ts +0 -17
- package/dist/model/sourceUpdateDocker.d.ts.map +0 -1
- package/dist/model/sourceUpdateInput.d.ts +0 -9
- package/dist/model/sourceUpdateInput.d.ts.map +0 -1
- package/dist/model/sourceUpdateResponse.d.ts +0 -15
- package/dist/model/sourceUpdateResponse.d.ts.map +0 -1
- package/dist/model/sourceUpdateShopify.d.ts +0 -7
- package/dist/model/sourceUpdateShopify.d.ts.map +0 -1
- package/dist/model/sourceWatchResponse.d.ts +0 -20
- package/dist/model/sourceWatchResponse.d.ts.map +0 -1
- package/dist/model/streamingInput.d.ts +0 -8
- package/dist/model/streamingInput.d.ts.map +0 -1
- package/dist/model/streamingTrigger.d.ts +0 -8
- package/dist/model/streamingTrigger.d.ts.map +0 -1
- package/dist/model/streamingTriggerType.d.ts +0 -5
- package/dist/model/streamingTriggerType.d.ts.map +0 -1
- package/dist/model/subscriptionTrigger.d.ts +0 -8
- package/dist/model/subscriptionTrigger.d.ts.map +0 -1
- package/dist/model/subscriptionTriggerType.d.ts +0 -5
- package/dist/model/subscriptionTriggerType.d.ts.map +0 -1
- package/dist/model/task.d.ts +0 -51
- package/dist/model/task.d.ts.map +0 -1
- package/dist/model/taskCreate.d.ts +0 -34
- package/dist/model/taskCreate.d.ts.map +0 -1
- package/dist/model/taskCreateResponse.d.ts +0 -14
- package/dist/model/taskCreateResponse.d.ts.map +0 -1
- package/dist/model/taskCreateTrigger.d.ts +0 -6
- package/dist/model/taskCreateTrigger.d.ts.map +0 -1
- package/dist/model/taskCreateV1.d.ts +0 -32
- package/dist/model/taskCreateV1.d.ts.map +0 -1
- package/dist/model/taskInput.d.ts +0 -8
- package/dist/model/taskInput.d.ts.map +0 -1
- package/dist/model/taskSearch.d.ts +0 -4
- package/dist/model/taskSearch.d.ts.map +0 -1
- package/dist/model/taskSortKeys.d.ts +0 -5
- package/dist/model/taskSortKeys.d.ts.map +0 -1
- package/dist/model/taskUpdate.d.ts +0 -24
- package/dist/model/taskUpdate.d.ts.map +0 -1
- package/dist/model/taskUpdateResponse.d.ts +0 -14
- package/dist/model/taskUpdateResponse.d.ts.map +0 -1
- package/dist/model/taskUpdateV1.d.ts +0 -22
- package/dist/model/taskUpdateV1.d.ts.map +0 -1
- package/dist/model/taskV1.d.ts +0 -44
- package/dist/model/taskV1.d.ts.map +0 -1
- package/dist/model/transformation.d.ts +0 -31
- package/dist/model/transformation.d.ts.map +0 -1
- package/dist/model/transformationCreate.d.ts +0 -22
- package/dist/model/transformationCreate.d.ts.map +0 -1
- package/dist/model/transformationCreateResponse.d.ts +0 -14
- package/dist/model/transformationCreateResponse.d.ts.map +0 -1
- package/dist/model/transformationError.d.ts +0 -14
- package/dist/model/transformationError.d.ts.map +0 -1
- package/dist/model/transformationModels.d.ts +0 -8
- package/dist/model/transformationModels.d.ts.map +0 -1
- package/dist/model/transformationSearch.d.ts +0 -4
- package/dist/model/transformationSearch.d.ts.map +0 -1
- package/dist/model/transformationTry.d.ts +0 -13
- package/dist/model/transformationTry.d.ts.map +0 -1
- package/dist/model/transformationTryResponse.d.ts +0 -9
- package/dist/model/transformationTryResponse.d.ts.map +0 -1
- package/dist/model/transformationUpdateResponse.d.ts +0 -14
- package/dist/model/transformationUpdateResponse.d.ts.map +0 -1
- package/dist/model/trigger.d.ts +0 -9
- package/dist/model/trigger.d.ts.map +0 -1
- package/dist/model/triggerType.d.ts +0 -5
- package/dist/model/triggerType.d.ts.map +0 -1
- package/dist/model/triggerUpdateInput.d.ts +0 -10
- package/dist/model/triggerUpdateInput.d.ts.map +0 -1
- package/dist/model/window.d.ts +0 -14
- package/dist/model/window.d.ts.map +0 -1
- package/dist/src/ingestionClient.d.ts +0 -854
- package/dist/src/ingestionClient.d.ts.map +0 -1
package/dist/node.d.cts
ADDED
|
@@ -0,0 +1,2368 @@
|
|
|
1
|
+
import * as _algolia_client_common from '@algolia/client-common';
|
|
2
|
+
import { ClientOptions } from '@algolia/client-common';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Type of indexing operation.
|
|
6
|
+
*/
|
|
7
|
+
type Action = 'addObject' | 'clear' | 'delete' | 'deleteObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'updateObject';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Action to perform on the Algolia index.
|
|
11
|
+
*/
|
|
12
|
+
type ActionType = 'append' | 'partial' | 'replace' | 'save';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Credentials for authenticating with an API key.
|
|
16
|
+
*/
|
|
17
|
+
type AuthAPIKey = {
|
|
18
|
+
/**
|
|
19
|
+
* API key. This field is `null` in the API response.
|
|
20
|
+
*/
|
|
21
|
+
key: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Credentials for authenticating with an API key.
|
|
26
|
+
*/
|
|
27
|
+
type AuthAPIKeyPartial = {
|
|
28
|
+
/**
|
|
29
|
+
* API key. This field is `null` in the API response.
|
|
30
|
+
*/
|
|
31
|
+
key?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Credentials for authenticating with Algolia.
|
|
36
|
+
*/
|
|
37
|
+
type AuthAlgolia = {
|
|
38
|
+
/**
|
|
39
|
+
* Algolia application ID.
|
|
40
|
+
*/
|
|
41
|
+
appID: string;
|
|
42
|
+
/**
|
|
43
|
+
* Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
|
|
44
|
+
*/
|
|
45
|
+
apiKey: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Credentials for authenticating with the Algolia Insights API.
|
|
50
|
+
*/
|
|
51
|
+
type AuthAlgoliaInsights = {
|
|
52
|
+
/**
|
|
53
|
+
* Algolia application ID.
|
|
54
|
+
*/
|
|
55
|
+
appID: string;
|
|
56
|
+
/**
|
|
57
|
+
* Algolia API key with the ACL: `search`. This field is `null` in the API response.
|
|
58
|
+
*/
|
|
59
|
+
apiKey: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Credentials for authenticating with the Algolia Insights API.
|
|
64
|
+
*/
|
|
65
|
+
type AuthAlgoliaInsightsPartial = {
|
|
66
|
+
/**
|
|
67
|
+
* Algolia application ID.
|
|
68
|
+
*/
|
|
69
|
+
appID?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Algolia API key with the ACL: `search`. This field is `null` in the API response.
|
|
72
|
+
*/
|
|
73
|
+
apiKey?: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Credentials for authenticating with Algolia.
|
|
78
|
+
*/
|
|
79
|
+
type AuthAlgoliaPartial = {
|
|
80
|
+
/**
|
|
81
|
+
* Algolia application ID.
|
|
82
|
+
*/
|
|
83
|
+
appID?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
|
|
86
|
+
*/
|
|
87
|
+
apiKey?: string;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Credentials for authenticating with user name and password.
|
|
92
|
+
*/
|
|
93
|
+
type AuthBasic = {
|
|
94
|
+
/**
|
|
95
|
+
* Username.
|
|
96
|
+
*/
|
|
97
|
+
username: string;
|
|
98
|
+
/**
|
|
99
|
+
* Password. This field is `null` in the API response.
|
|
100
|
+
*/
|
|
101
|
+
password: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Credentials for authenticating with user name and password.
|
|
106
|
+
*/
|
|
107
|
+
type AuthBasicPartial = {
|
|
108
|
+
/**
|
|
109
|
+
* Username.
|
|
110
|
+
*/
|
|
111
|
+
username?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Password. This field is `null` in the API response.
|
|
114
|
+
*/
|
|
115
|
+
password?: string;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Credentials for authenticating with a Google service account, such as BigQuery.
|
|
120
|
+
*/
|
|
121
|
+
type AuthGoogleServiceAccount = {
|
|
122
|
+
/**
|
|
123
|
+
* Email address of the Google service account.
|
|
124
|
+
*/
|
|
125
|
+
clientEmail: string;
|
|
126
|
+
/**
|
|
127
|
+
* Private key of the Google service account. This field is `null` in the API response.
|
|
128
|
+
*/
|
|
129
|
+
privateKey: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Credentials for authenticating with a Google service account, such as BigQuery.
|
|
134
|
+
*/
|
|
135
|
+
type AuthGoogleServiceAccountPartial = {
|
|
136
|
+
/**
|
|
137
|
+
* Email address of the Google service account.
|
|
138
|
+
*/
|
|
139
|
+
clientEmail?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Private key of the Google service account. This field is `null` in the API response.
|
|
142
|
+
*/
|
|
143
|
+
privateKey?: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Credentials for authenticating with OAuth 2.0.
|
|
148
|
+
*/
|
|
149
|
+
type AuthOAuth = {
|
|
150
|
+
/**
|
|
151
|
+
* URL for the OAuth endpoint.
|
|
152
|
+
*/
|
|
153
|
+
url: string;
|
|
154
|
+
/**
|
|
155
|
+
* Client ID.
|
|
156
|
+
*/
|
|
157
|
+
client_id: string;
|
|
158
|
+
/**
|
|
159
|
+
* Client secret. This field is `null` in the API response.
|
|
160
|
+
*/
|
|
161
|
+
client_secret: string;
|
|
162
|
+
/**
|
|
163
|
+
* OAuth scope.
|
|
164
|
+
*/
|
|
165
|
+
scope?: string;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type AuthInput = AuthAlgolia | AuthAlgoliaInsights | AuthAPIKey | AuthBasic | AuthGoogleServiceAccount | AuthOAuth;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Credentials for authenticating with OAuth 2.0.
|
|
172
|
+
*/
|
|
173
|
+
type AuthOAuthPartial = {
|
|
174
|
+
/**
|
|
175
|
+
* URL for the OAuth endpoint.
|
|
176
|
+
*/
|
|
177
|
+
url?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Client ID.
|
|
180
|
+
*/
|
|
181
|
+
client_id?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Client secret. This field is `null` in the API response.
|
|
184
|
+
*/
|
|
185
|
+
client_secret?: string;
|
|
186
|
+
/**
|
|
187
|
+
* OAuth scope.
|
|
188
|
+
*/
|
|
189
|
+
scope?: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
type AuthInputPartial = AuthAlgoliaInsightsPartial | AuthAlgoliaPartial | AuthAPIKeyPartial | AuthBasicPartial | AuthGoogleServiceAccountPartial | AuthOAuthPartial;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Type of authentication. This determines the type of credentials required in the `input` object.
|
|
196
|
+
*/
|
|
197
|
+
type AuthenticationType = 'algolia' | 'algoliaInsights' | 'apiKey' | 'basic' | 'googleServiceAccount' | 'oauth';
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Name of an ecommerce platform with which to authenticate. This determines which authentication type you can select.
|
|
201
|
+
*/
|
|
202
|
+
type Platform = 'bigcommerce' | 'commercetools' | 'shopify';
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Resource representing the information required to authenticate with a source or a destination.
|
|
206
|
+
*/
|
|
207
|
+
type Authentication = {
|
|
208
|
+
/**
|
|
209
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
210
|
+
*/
|
|
211
|
+
authenticationID: string;
|
|
212
|
+
type: AuthenticationType;
|
|
213
|
+
/**
|
|
214
|
+
* Descriptive name for the resource.
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
platform?: Platform | null;
|
|
218
|
+
input: AuthInputPartial;
|
|
219
|
+
/**
|
|
220
|
+
* Date of creation in RFC 3339 format.
|
|
221
|
+
*/
|
|
222
|
+
createdAt: string;
|
|
223
|
+
/**
|
|
224
|
+
* Date of last update in RFC 3339 format.
|
|
225
|
+
*/
|
|
226
|
+
updatedAt?: string;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Request body for creating a new authentication resource.
|
|
231
|
+
*/
|
|
232
|
+
type AuthenticationCreate = {
|
|
233
|
+
type: AuthenticationType;
|
|
234
|
+
/**
|
|
235
|
+
* Descriptive name for the resource.
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
platform?: Platform | null;
|
|
239
|
+
input: AuthInput;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* API response for the successful creation of an authentication resource.
|
|
244
|
+
*/
|
|
245
|
+
type AuthenticationCreateResponse = {
|
|
246
|
+
/**
|
|
247
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
248
|
+
*/
|
|
249
|
+
authenticationID: string;
|
|
250
|
+
/**
|
|
251
|
+
* Descriptive name for the resource.
|
|
252
|
+
*/
|
|
253
|
+
name: string;
|
|
254
|
+
/**
|
|
255
|
+
* Date of creation in RFC 3339 format.
|
|
256
|
+
*/
|
|
257
|
+
createdAt: string;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Request body for searching for authentication resources.
|
|
262
|
+
*/
|
|
263
|
+
type AuthenticationSearch = {
|
|
264
|
+
authenticationIDs: string[];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Property by which to sort the list of authentication resources.
|
|
269
|
+
*/
|
|
270
|
+
type AuthenticationSortKeys = 'auth_type' | 'createdAt' | 'name' | 'platform' | 'updatedAt';
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Request body for updating an authentication resource.
|
|
274
|
+
*/
|
|
275
|
+
type AuthenticationUpdate = {
|
|
276
|
+
type?: AuthenticationType;
|
|
277
|
+
/**
|
|
278
|
+
* Descriptive name for the resource.
|
|
279
|
+
*/
|
|
280
|
+
name?: string;
|
|
281
|
+
platform?: Platform | null;
|
|
282
|
+
input?: AuthInputPartial;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* API response for a successful update of an authentication resource.
|
|
287
|
+
*/
|
|
288
|
+
type AuthenticationUpdateResponse = {
|
|
289
|
+
/**
|
|
290
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
291
|
+
*/
|
|
292
|
+
authenticationID: string;
|
|
293
|
+
/**
|
|
294
|
+
* Descriptive name for the resource.
|
|
295
|
+
*/
|
|
296
|
+
name: string;
|
|
297
|
+
/**
|
|
298
|
+
* Date of last update in RFC 3339 format.
|
|
299
|
+
*/
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
type BigCommerceChannel = {
|
|
304
|
+
/**
|
|
305
|
+
* ID of the BigCommerce channel.
|
|
306
|
+
*/
|
|
307
|
+
id: number;
|
|
308
|
+
/**
|
|
309
|
+
* Currencies for the given channel.
|
|
310
|
+
*/
|
|
311
|
+
currencies?: string[];
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
type BigCommerceMetafield = {
|
|
315
|
+
/**
|
|
316
|
+
* Namespace of the metafield.
|
|
317
|
+
*/
|
|
318
|
+
namespace: string;
|
|
319
|
+
/**
|
|
320
|
+
* Key identifier of the metafield.
|
|
321
|
+
*/
|
|
322
|
+
key: string;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
type BigQueryDataType = 'ga4' | 'ga360';
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Custom fields from commercetools to add to the records. For more information, see [Using Custom Types and Custom Fields](https://docs.commercetools.com/tutorials/custom-types).
|
|
329
|
+
*/
|
|
330
|
+
type CommercetoolsCustomFields = {
|
|
331
|
+
/**
|
|
332
|
+
* Inventory custom fields.
|
|
333
|
+
*/
|
|
334
|
+
inventory?: string[] | null;
|
|
335
|
+
/**
|
|
336
|
+
* Price custom fields.
|
|
337
|
+
*/
|
|
338
|
+
price?: string[] | null;
|
|
339
|
+
/**
|
|
340
|
+
* Category custom fields.
|
|
341
|
+
*/
|
|
342
|
+
category?: string[] | null;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
type DeleteResponse = {
|
|
346
|
+
/**
|
|
347
|
+
* Date of deletion in RFC 3339 format.
|
|
348
|
+
*/
|
|
349
|
+
deletedAt: string;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Record type for ecommerce sources.
|
|
354
|
+
*/
|
|
355
|
+
type RecordType = 'product' | 'variant';
|
|
356
|
+
|
|
357
|
+
type DestinationIndexName = {
|
|
358
|
+
/**
|
|
359
|
+
* Algolia index name (case-sensitive).
|
|
360
|
+
*/
|
|
361
|
+
indexName: string;
|
|
362
|
+
recordType?: RecordType;
|
|
363
|
+
/**
|
|
364
|
+
* Attributes from your source to exclude from Algolia records. Not all your data attributes will be useful for searching. Keeping your Algolia records small increases indexing and search performance. - Exclude nested attributes with `.` notation. For example, `foo.bar` indexes the `foo` attribute and all its children **except** the `bar` attribute. - Exclude attributes from arrays with `[i]`, where `i` is the index of the array element. For example, `foo.[0].bar` only excludes the `bar` attribute from the first element of the `foo` array, but indexes the complete `foo` attribute for all other elements. Use `*` as wildcard: `foo.[*].bar` excludes `bar` from all elements of the `foo` array.
|
|
365
|
+
*/
|
|
366
|
+
attributesToExclude?: string[];
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
type DestinationInput = DestinationIndexName;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Destination type. - `search`. Data is stored in an Algolia index. - `insights`. Data is recorded as user events in the Insights API.
|
|
373
|
+
*/
|
|
374
|
+
type DestinationType = 'insights' | 'search';
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Destinations are Algolia resources like indices or event streams.
|
|
378
|
+
*/
|
|
379
|
+
type Destination = {
|
|
380
|
+
/**
|
|
381
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
382
|
+
*/
|
|
383
|
+
destinationID: string;
|
|
384
|
+
type: DestinationType;
|
|
385
|
+
/**
|
|
386
|
+
* Descriptive name for the resource.
|
|
387
|
+
*/
|
|
388
|
+
name: string;
|
|
389
|
+
input: DestinationInput;
|
|
390
|
+
/**
|
|
391
|
+
* Date of creation in RFC 3339 format.
|
|
392
|
+
*/
|
|
393
|
+
createdAt: string;
|
|
394
|
+
/**
|
|
395
|
+
* Date of last update in RFC 3339 format.
|
|
396
|
+
*/
|
|
397
|
+
updatedAt?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
400
|
+
*/
|
|
401
|
+
authenticationID?: string;
|
|
402
|
+
transformationIDs?: string[];
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* API request body for creating a new destination.
|
|
407
|
+
*/
|
|
408
|
+
type DestinationCreate = {
|
|
409
|
+
type: DestinationType;
|
|
410
|
+
/**
|
|
411
|
+
* Descriptive name for the resource.
|
|
412
|
+
*/
|
|
413
|
+
name: string;
|
|
414
|
+
input: DestinationInput;
|
|
415
|
+
/**
|
|
416
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
417
|
+
*/
|
|
418
|
+
authenticationID?: string;
|
|
419
|
+
transformationIDs?: string[];
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* API response for creating a new destination.
|
|
424
|
+
*/
|
|
425
|
+
type DestinationCreateResponse = {
|
|
426
|
+
/**
|
|
427
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
428
|
+
*/
|
|
429
|
+
destinationID: string;
|
|
430
|
+
/**
|
|
431
|
+
* Descriptive name for the resource.
|
|
432
|
+
*/
|
|
433
|
+
name: string;
|
|
434
|
+
/**
|
|
435
|
+
* Date of creation in RFC 3339 format.
|
|
436
|
+
*/
|
|
437
|
+
createdAt: string;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* API request body for searching destinations.
|
|
442
|
+
*/
|
|
443
|
+
type DestinationSearch = {
|
|
444
|
+
destinationIDs: string[];
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Property by which to sort the destinations.
|
|
449
|
+
*/
|
|
450
|
+
type DestinationSortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* API request body for updating a destination.
|
|
454
|
+
*/
|
|
455
|
+
type DestinationUpdate = {
|
|
456
|
+
type?: DestinationType;
|
|
457
|
+
/**
|
|
458
|
+
* Descriptive name for the resource.
|
|
459
|
+
*/
|
|
460
|
+
name?: string;
|
|
461
|
+
input?: DestinationInput;
|
|
462
|
+
/**
|
|
463
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
464
|
+
*/
|
|
465
|
+
authenticationID?: string;
|
|
466
|
+
transformationIDs?: string[];
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* API response for updating a destination.
|
|
471
|
+
*/
|
|
472
|
+
type DestinationUpdateResponse = {
|
|
473
|
+
/**
|
|
474
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
475
|
+
*/
|
|
476
|
+
destinationID: string;
|
|
477
|
+
/**
|
|
478
|
+
* Descriptive name for the resource.
|
|
479
|
+
*/
|
|
480
|
+
name: string;
|
|
481
|
+
/**
|
|
482
|
+
* Date of last update in RFC 3339 format.
|
|
483
|
+
*/
|
|
484
|
+
updatedAt: string;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Image type.
|
|
489
|
+
*/
|
|
490
|
+
type DockerImageType = 'airbyte' | 'custom' | 'singer';
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Container registry name from where to pull the image.
|
|
494
|
+
*/
|
|
495
|
+
type DockerRegistry = 'dockerhub' | 'ghcr';
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* The strategy to use to fetch the data.
|
|
499
|
+
*/
|
|
500
|
+
type DockerStreamsSyncMode = 'fullTable' | 'incremental';
|
|
501
|
+
|
|
502
|
+
type DockerStreams = {
|
|
503
|
+
/**
|
|
504
|
+
* The name of the stream to fetch the data from (e.g. Table name).
|
|
505
|
+
*/
|
|
506
|
+
name: string;
|
|
507
|
+
/**
|
|
508
|
+
* The properties of the stream to select (e.g. Column).
|
|
509
|
+
*/
|
|
510
|
+
properties?: string[];
|
|
511
|
+
syncMode: DockerStreamsSyncMode;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The selected streams of a singer or airbyte connector.
|
|
516
|
+
*/
|
|
517
|
+
type DockerStreamsInput = {
|
|
518
|
+
streams: DockerStreams[];
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Type of entity to update.
|
|
523
|
+
*/
|
|
524
|
+
type EntityType = 'collection' | 'product';
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Error.
|
|
528
|
+
*/
|
|
529
|
+
type ErrorBase = Record<string, any> & {
|
|
530
|
+
message?: string;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
type EventStatus = 'created' | 'critical' | 'failed' | 'retried' | 'started' | 'succeeded';
|
|
534
|
+
|
|
535
|
+
type EventType = 'fetch' | 'log' | 'record' | 'transform';
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* An event describe a step of the task execution flow..
|
|
539
|
+
*/
|
|
540
|
+
type Event = {
|
|
541
|
+
/**
|
|
542
|
+
* Universally unique identifier (UUID) of an event.
|
|
543
|
+
*/
|
|
544
|
+
eventID: string;
|
|
545
|
+
/**
|
|
546
|
+
* Universally unique identifier (UUID) of a task run.
|
|
547
|
+
*/
|
|
548
|
+
runID: string;
|
|
549
|
+
/**
|
|
550
|
+
* The parent event, the cause of this event.
|
|
551
|
+
*/
|
|
552
|
+
parentID?: string;
|
|
553
|
+
status: EventStatus;
|
|
554
|
+
type: EventType;
|
|
555
|
+
/**
|
|
556
|
+
* The extracted record batch size.
|
|
557
|
+
*/
|
|
558
|
+
batchSize: number;
|
|
559
|
+
data?: Record<string, any>;
|
|
560
|
+
/**
|
|
561
|
+
* Date of publish RFC 3339 format.
|
|
562
|
+
*/
|
|
563
|
+
publishedAt: string;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Property by which to sort the list of task run events.
|
|
568
|
+
*/
|
|
569
|
+
type EventSortKeys = 'publishedAt' | 'status' | 'type';
|
|
570
|
+
|
|
571
|
+
type GenerateTransformationCodePayload = {
|
|
572
|
+
id: string;
|
|
573
|
+
systemPrompt?: string;
|
|
574
|
+
userPrompt: string;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
type GenerateTransformationCodeResponse = {
|
|
578
|
+
generatedCode?: string;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Paginated API response.
|
|
583
|
+
*/
|
|
584
|
+
type Pagination = {
|
|
585
|
+
/**
|
|
586
|
+
* Number of pages in the API response.
|
|
587
|
+
*/
|
|
588
|
+
nbPages: number;
|
|
589
|
+
/**
|
|
590
|
+
* Page of the API response to retrieve.
|
|
591
|
+
*/
|
|
592
|
+
page: number;
|
|
593
|
+
/**
|
|
594
|
+
* Number of items in the API response.
|
|
595
|
+
*/
|
|
596
|
+
nbItems: number;
|
|
597
|
+
/**
|
|
598
|
+
* Number of items per page.
|
|
599
|
+
*/
|
|
600
|
+
itemsPerPage: number;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
type ListAuthenticationsResponse = {
|
|
604
|
+
authentications: Authentication[];
|
|
605
|
+
pagination: Pagination;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
type ListDestinationsResponse = {
|
|
609
|
+
destinations: Destination[];
|
|
610
|
+
pagination: Pagination;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Time window by which to filter the observability data.
|
|
615
|
+
*/
|
|
616
|
+
type Window = {
|
|
617
|
+
/**
|
|
618
|
+
* Date in RFC 3339 format representing the oldest data in the time window.
|
|
619
|
+
*/
|
|
620
|
+
startDate: string;
|
|
621
|
+
/**
|
|
622
|
+
* Date in RFC 3339 format representing the newest data in the time window.
|
|
623
|
+
*/
|
|
624
|
+
endDate: string;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
type ListEventsResponse = {
|
|
628
|
+
events: Event[];
|
|
629
|
+
pagination: Pagination;
|
|
630
|
+
window: Window;
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
type SourceBigCommerce = {
|
|
634
|
+
/**
|
|
635
|
+
* Store hash identifying your BigCommerce store.
|
|
636
|
+
*/
|
|
637
|
+
storeHash: string;
|
|
638
|
+
channel?: BigCommerceChannel;
|
|
639
|
+
customFields?: string[];
|
|
640
|
+
productMetafields?: BigCommerceMetafield[];
|
|
641
|
+
variantMetafields?: BigCommerceMetafield[];
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
type SourceBigQuery = {
|
|
645
|
+
/**
|
|
646
|
+
* Project ID of the BigQuery source.
|
|
647
|
+
*/
|
|
648
|
+
projectID: string;
|
|
649
|
+
/**
|
|
650
|
+
* Dataset ID of the BigQuery source.
|
|
651
|
+
*/
|
|
652
|
+
datasetID: string;
|
|
653
|
+
dataType?: BigQueryDataType;
|
|
654
|
+
/**
|
|
655
|
+
* Table name for the BigQuery export.
|
|
656
|
+
*/
|
|
657
|
+
table?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Table prefix for a Google Analytics 4 data export to BigQuery.
|
|
660
|
+
*/
|
|
661
|
+
tablePrefix?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Custom SQL request to extract data from the BigQuery table.
|
|
664
|
+
*/
|
|
665
|
+
customSQLRequest?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Name of a column that contains a unique ID which will be used as `objectID` in Algolia.
|
|
668
|
+
*/
|
|
669
|
+
uniqueIDColumn?: string;
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
type MappingTypeCSV = 'boolean' | 'float' | 'integer' | 'json' | 'string';
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* HTTP method to be used for retrieving your data.
|
|
676
|
+
*/
|
|
677
|
+
type MethodType = 'GET' | 'POST';
|
|
678
|
+
|
|
679
|
+
type SourceCSV = {
|
|
680
|
+
/**
|
|
681
|
+
* URL of the file.
|
|
682
|
+
*/
|
|
683
|
+
url: string;
|
|
684
|
+
/**
|
|
685
|
+
* Name of a column that contains a unique ID which will be used as `objectID` in Algolia.
|
|
686
|
+
*/
|
|
687
|
+
uniqueIDColumn?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Key-value pairs of column names and their expected types.
|
|
690
|
+
*/
|
|
691
|
+
mapping?: Record<string, MappingTypeCSV>;
|
|
692
|
+
method?: MethodType;
|
|
693
|
+
/**
|
|
694
|
+
* The character used to split the value on each line, default to a comma (\\r, \\n, 0xFFFD, and space are forbidden).
|
|
695
|
+
*/
|
|
696
|
+
delimiter?: string;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
type SourceCommercetools = {
|
|
700
|
+
storeKeys?: string[];
|
|
701
|
+
/**
|
|
702
|
+
* Locales for your commercetools stores.
|
|
703
|
+
*/
|
|
704
|
+
locales?: string[];
|
|
705
|
+
url: string;
|
|
706
|
+
projectKey: string;
|
|
707
|
+
/**
|
|
708
|
+
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
709
|
+
*/
|
|
710
|
+
fallbackIsInStockValue?: boolean;
|
|
711
|
+
customFields?: CommercetoolsCustomFields;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
type SourceDocker = {
|
|
715
|
+
imageType: DockerImageType;
|
|
716
|
+
registry: DockerRegistry;
|
|
717
|
+
/**
|
|
718
|
+
* Docker image name.
|
|
719
|
+
*/
|
|
720
|
+
image: string;
|
|
721
|
+
/**
|
|
722
|
+
* Docker image version.
|
|
723
|
+
*/
|
|
724
|
+
version?: string;
|
|
725
|
+
/**
|
|
726
|
+
* Configuration of the spec.
|
|
727
|
+
*/
|
|
728
|
+
configuration: Record<string, unknown>;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
type SourceGA4BigQueryExport = {
|
|
732
|
+
/**
|
|
733
|
+
* GCP project ID that the BigQuery export writes to.
|
|
734
|
+
*/
|
|
735
|
+
projectID: string;
|
|
736
|
+
/**
|
|
737
|
+
* BigQuery dataset ID that the BigQuery export writes to.
|
|
738
|
+
*/
|
|
739
|
+
datasetID: string;
|
|
740
|
+
/**
|
|
741
|
+
* Prefix of the tables that the BigQuery Export writes to.
|
|
742
|
+
*/
|
|
743
|
+
tablePrefix: string;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
type SourceJSON = {
|
|
747
|
+
/**
|
|
748
|
+
* URL of the file.
|
|
749
|
+
*/
|
|
750
|
+
url: string;
|
|
751
|
+
/**
|
|
752
|
+
* Name of a column that contains a unique ID which will be used as `objectID` in Algolia.
|
|
753
|
+
*/
|
|
754
|
+
uniqueIDColumn?: string;
|
|
755
|
+
method?: MethodType;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
type SourceShopifyBase = {
|
|
759
|
+
/**
|
|
760
|
+
* URL of the Shopify store.
|
|
761
|
+
*/
|
|
762
|
+
shopURL: string;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
type SourceUpdateShopify = {
|
|
766
|
+
/**
|
|
767
|
+
* Feature flags for the Shopify source.
|
|
768
|
+
*/
|
|
769
|
+
featureFlags?: Record<string, any>;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
type SourceShopify = SourceShopifyBase & SourceUpdateShopify;
|
|
773
|
+
|
|
774
|
+
type SourceInput = SourceBigCommerce | SourceBigQuery | SourceCommercetools | SourceCSV | SourceDocker | SourceGA4BigQueryExport | SourceJSON | SourceShopify;
|
|
775
|
+
|
|
776
|
+
type SourceType = 'bigcommerce' | 'bigquery' | 'commercetools' | 'csv' | 'docker' | 'ga4BigqueryExport' | 'json' | 'push' | 'sfcc' | 'shopify';
|
|
777
|
+
|
|
778
|
+
type Source = {
|
|
779
|
+
/**
|
|
780
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
781
|
+
*/
|
|
782
|
+
sourceID: string;
|
|
783
|
+
type: SourceType;
|
|
784
|
+
name: string;
|
|
785
|
+
input?: SourceInput;
|
|
786
|
+
/**
|
|
787
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
788
|
+
*/
|
|
789
|
+
authenticationID?: string;
|
|
790
|
+
/**
|
|
791
|
+
* Date of creation in RFC 3339 format.
|
|
792
|
+
*/
|
|
793
|
+
createdAt: string;
|
|
794
|
+
/**
|
|
795
|
+
* Date of last update in RFC 3339 format.
|
|
796
|
+
*/
|
|
797
|
+
updatedAt?: string;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
type ListSourcesResponse = {
|
|
801
|
+
sources: Source[];
|
|
802
|
+
pagination: Pagination;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Represents a market in Shopify.
|
|
807
|
+
*/
|
|
808
|
+
type ShopifyMarket = {
|
|
809
|
+
countries: string[];
|
|
810
|
+
currencies: string[];
|
|
811
|
+
locales: string[];
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Represents a metafield in Shopify.
|
|
816
|
+
*/
|
|
817
|
+
type ShopifyMetafield = {
|
|
818
|
+
namespace: string;
|
|
819
|
+
key: string;
|
|
820
|
+
value: string;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Represents the required elements of the task input when using a `shopify` source.
|
|
825
|
+
*/
|
|
826
|
+
type ShopifyInput = {
|
|
827
|
+
metafields: ShopifyMetafield[];
|
|
828
|
+
market: ShopifyMarket;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Mapping format schema.
|
|
833
|
+
*/
|
|
834
|
+
type MappingFormatSchema = 'mappingkit/v1';
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Describes how a field should be resolved by applying a set of directives.
|
|
838
|
+
*/
|
|
839
|
+
type MappingFieldDirective = {
|
|
840
|
+
/**
|
|
841
|
+
* Destination field key.
|
|
842
|
+
*/
|
|
843
|
+
fieldKey: string;
|
|
844
|
+
/**
|
|
845
|
+
* How the destination field should be resolved from the source.
|
|
846
|
+
*/
|
|
847
|
+
value: Record<string, any>;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Describes how a destination object should be resolved by means of applying a set of directives.
|
|
852
|
+
*/
|
|
853
|
+
type MappingKitAction = {
|
|
854
|
+
/**
|
|
855
|
+
* ID to uniquely identify this action.
|
|
856
|
+
*/
|
|
857
|
+
id?: string;
|
|
858
|
+
/**
|
|
859
|
+
* Whether this action has any effect.
|
|
860
|
+
*/
|
|
861
|
+
enabled: boolean;
|
|
862
|
+
/**
|
|
863
|
+
* Condition which must be satisfied to apply the action. If this evaluates to false, the action is not applied, and the process attempts to apply the next action, if any.
|
|
864
|
+
*/
|
|
865
|
+
trigger: string;
|
|
866
|
+
fieldDirectives: MappingFieldDirective[];
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Transformations to apply to the source, serialized as a JSON string.
|
|
871
|
+
*/
|
|
872
|
+
type MappingInput = {
|
|
873
|
+
format: MappingFormatSchema;
|
|
874
|
+
actions: MappingKitAction[];
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
|
|
879
|
+
*/
|
|
880
|
+
type StreamingInput = {
|
|
881
|
+
mapping: MappingInput;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Configuration of the task, depending on its type.
|
|
886
|
+
*/
|
|
887
|
+
type TaskInput = DockerStreamsInput | ShopifyInput | StreamingInput;
|
|
888
|
+
|
|
889
|
+
type Task = {
|
|
890
|
+
/**
|
|
891
|
+
* Universally unique identifier (UUID) of a task.
|
|
892
|
+
*/
|
|
893
|
+
taskID: string;
|
|
894
|
+
/**
|
|
895
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
896
|
+
*/
|
|
897
|
+
sourceID: string;
|
|
898
|
+
/**
|
|
899
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
900
|
+
*/
|
|
901
|
+
destinationID: string;
|
|
902
|
+
/**
|
|
903
|
+
* Cron expression for the task\'s schedule.
|
|
904
|
+
*/
|
|
905
|
+
cron?: string;
|
|
906
|
+
/**
|
|
907
|
+
* The last time the scheduled task ran in RFC 3339 format.
|
|
908
|
+
*/
|
|
909
|
+
lastRun?: string;
|
|
910
|
+
/**
|
|
911
|
+
* The next scheduled run of the task in RFC 3339 format.
|
|
912
|
+
*/
|
|
913
|
+
nextRun?: string;
|
|
914
|
+
input?: TaskInput;
|
|
915
|
+
/**
|
|
916
|
+
* Whether the task is enabled.
|
|
917
|
+
*/
|
|
918
|
+
enabled: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
921
|
+
*/
|
|
922
|
+
failureThreshold?: number;
|
|
923
|
+
action: ActionType;
|
|
924
|
+
/**
|
|
925
|
+
* Date of the last cursor in RFC 3339 format.
|
|
926
|
+
*/
|
|
927
|
+
cursor?: string;
|
|
928
|
+
/**
|
|
929
|
+
* Date of creation in RFC 3339 format.
|
|
930
|
+
*/
|
|
931
|
+
createdAt: string;
|
|
932
|
+
/**
|
|
933
|
+
* Date of last update in RFC 3339 format.
|
|
934
|
+
*/
|
|
935
|
+
updatedAt?: string;
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Configured tasks and pagination information.
|
|
940
|
+
*/
|
|
941
|
+
type ListTasksResponse = {
|
|
942
|
+
tasks: Task[];
|
|
943
|
+
pagination: Pagination;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Task is run manually, with the `/run` endpoint.
|
|
948
|
+
*/
|
|
949
|
+
type OnDemandTriggerType = 'onDemand';
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Trigger information for manually-triggered tasks.
|
|
953
|
+
*/
|
|
954
|
+
type OnDemandTrigger = {
|
|
955
|
+
type: OnDemandTriggerType;
|
|
956
|
+
/**
|
|
957
|
+
* The last time the scheduled task ran in RFC 3339 format.
|
|
958
|
+
*/
|
|
959
|
+
lastRun?: string;
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Task runs on a schedule.
|
|
964
|
+
*/
|
|
965
|
+
type ScheduleTriggerType = 'schedule';
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Trigger information for scheduled tasks.
|
|
969
|
+
*/
|
|
970
|
+
type ScheduleTrigger = {
|
|
971
|
+
type: ScheduleTriggerType;
|
|
972
|
+
/**
|
|
973
|
+
* Cron expression for the task\'s schedule.
|
|
974
|
+
*/
|
|
975
|
+
cron: string;
|
|
976
|
+
/**
|
|
977
|
+
* The last time the scheduled task ran in RFC 3339 format.
|
|
978
|
+
*/
|
|
979
|
+
lastRun?: string;
|
|
980
|
+
/**
|
|
981
|
+
* The next scheduled run of the task in RFC 3339 format.
|
|
982
|
+
*/
|
|
983
|
+
nextRun: string;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Task runs continuously.
|
|
988
|
+
*/
|
|
989
|
+
type StreamingTriggerType = 'streaming';
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Trigger input for continuously running tasks.
|
|
993
|
+
*/
|
|
994
|
+
type StreamingTrigger = {
|
|
995
|
+
type: StreamingTriggerType;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Task runs after receiving subscribed event.
|
|
1000
|
+
*/
|
|
1001
|
+
type SubscriptionTriggerType = 'subscription';
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Trigger input for subscription tasks.
|
|
1005
|
+
*/
|
|
1006
|
+
type SubscriptionTrigger = {
|
|
1007
|
+
type: SubscriptionTriggerType;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Trigger that runs the task.
|
|
1012
|
+
*/
|
|
1013
|
+
type Trigger = OnDemandTrigger | ScheduleTrigger | StreamingTrigger | SubscriptionTrigger;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The V1 task object, please use methods and types that don\'t contain the V1 suffix.
|
|
1017
|
+
*/
|
|
1018
|
+
type TaskV1 = {
|
|
1019
|
+
/**
|
|
1020
|
+
* Universally unique identifier (UUID) of a task.
|
|
1021
|
+
*/
|
|
1022
|
+
taskID: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
1025
|
+
*/
|
|
1026
|
+
sourceID: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
1029
|
+
*/
|
|
1030
|
+
destinationID: string;
|
|
1031
|
+
trigger: Trigger;
|
|
1032
|
+
input?: TaskInput;
|
|
1033
|
+
/**
|
|
1034
|
+
* Whether the task is enabled.
|
|
1035
|
+
*/
|
|
1036
|
+
enabled: boolean;
|
|
1037
|
+
/**
|
|
1038
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1039
|
+
*/
|
|
1040
|
+
failureThreshold?: number;
|
|
1041
|
+
action: ActionType;
|
|
1042
|
+
/**
|
|
1043
|
+
* Date of the last cursor in RFC 3339 format.
|
|
1044
|
+
*/
|
|
1045
|
+
cursor?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Date of creation in RFC 3339 format.
|
|
1048
|
+
*/
|
|
1049
|
+
createdAt: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Date of last update in RFC 3339 format.
|
|
1052
|
+
*/
|
|
1053
|
+
updatedAt?: string;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Configured tasks and pagination information.
|
|
1058
|
+
*/
|
|
1059
|
+
type ListTasksResponseV1 = {
|
|
1060
|
+
tasks: TaskV1[];
|
|
1061
|
+
pagination: Pagination;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
type Transformation = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Universally unique identifier (UUID) of a transformation.
|
|
1067
|
+
*/
|
|
1068
|
+
transformationID: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* The authentications associated for the current transformation.
|
|
1071
|
+
*/
|
|
1072
|
+
authenticationIDs?: string[];
|
|
1073
|
+
/**
|
|
1074
|
+
* The source code of the transformation.
|
|
1075
|
+
*/
|
|
1076
|
+
code: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* The uniquely identified name of your transformation.
|
|
1079
|
+
*/
|
|
1080
|
+
name: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* A descriptive name for your transformation of what it does.
|
|
1083
|
+
*/
|
|
1084
|
+
description?: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* Date of creation in RFC 3339 format.
|
|
1087
|
+
*/
|
|
1088
|
+
createdAt: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Date of last update in RFC 3339 format.
|
|
1091
|
+
*/
|
|
1092
|
+
updatedAt?: string;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Configured transformations and pagination information.
|
|
1097
|
+
*/
|
|
1098
|
+
type ListTransformationsResponse = {
|
|
1099
|
+
transformations: Transformation[];
|
|
1100
|
+
pagination: Pagination;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
type Model = {
|
|
1104
|
+
fullname: string;
|
|
1105
|
+
modelName: string;
|
|
1106
|
+
systemPrompt: string;
|
|
1107
|
+
id: string;
|
|
1108
|
+
provider: string;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Trigger information for manually-triggered tasks.
|
|
1113
|
+
*/
|
|
1114
|
+
type OnDemandTriggerInput = {
|
|
1115
|
+
type: OnDemandTriggerType;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Ascending or descending sort order.
|
|
1120
|
+
*/
|
|
1121
|
+
type OrderKeys = 'asc' | 'desc';
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Authentication resource not tied to any ecommerce platform, used for filtering.
|
|
1125
|
+
*/
|
|
1126
|
+
type PlatformNone = 'none';
|
|
1127
|
+
|
|
1128
|
+
type PlatformWithNone = Platform | PlatformNone;
|
|
1129
|
+
|
|
1130
|
+
type PushTaskRecords = Record<string, any> & {
|
|
1131
|
+
/**
|
|
1132
|
+
* Unique record identifier.
|
|
1133
|
+
*/
|
|
1134
|
+
objectID: string;
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
type PushTaskPayload = {
|
|
1138
|
+
action: Action;
|
|
1139
|
+
records: PushTaskRecords[];
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Task run outcome.
|
|
1144
|
+
*/
|
|
1145
|
+
type RunOutcome = 'failure' | 'processing' | 'success';
|
|
1146
|
+
|
|
1147
|
+
type RunProgress = {
|
|
1148
|
+
expectedNbOfEvents?: number;
|
|
1149
|
+
receivedNbOfEvents?: number;
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* A code for the task run\'s outcome. A readable description of the code is included in the `reason` response property.
|
|
1154
|
+
*/
|
|
1155
|
+
type RunReasonCode = 'blocking' | 'critical' | 'discarded' | 'internal' | 'no_events' | 'ok' | 'too_many_errors';
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Task run status.
|
|
1159
|
+
*/
|
|
1160
|
+
type RunStatus = 'created' | 'finished' | 'idled' | 'skipped' | 'started';
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Task run type.
|
|
1164
|
+
*/
|
|
1165
|
+
type RunType = 'discover' | 'push' | 'reindex' | 'update' | 'validate';
|
|
1166
|
+
|
|
1167
|
+
type Run = {
|
|
1168
|
+
/**
|
|
1169
|
+
* Universally unique identifier (UUID) of a task run.
|
|
1170
|
+
*/
|
|
1171
|
+
runID: string;
|
|
1172
|
+
appID: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Universally unique identifier (UUID) of a task.
|
|
1175
|
+
*/
|
|
1176
|
+
taskID: string;
|
|
1177
|
+
status: RunStatus;
|
|
1178
|
+
progress?: RunProgress;
|
|
1179
|
+
outcome?: RunOutcome;
|
|
1180
|
+
/**
|
|
1181
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1182
|
+
*/
|
|
1183
|
+
failureThreshold?: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* More information about the task run\'s outcome.
|
|
1186
|
+
*/
|
|
1187
|
+
reason?: string;
|
|
1188
|
+
reasonCode?: RunReasonCode;
|
|
1189
|
+
type: RunType;
|
|
1190
|
+
/**
|
|
1191
|
+
* Date of creation in RFC 3339 format.
|
|
1192
|
+
*/
|
|
1193
|
+
createdAt: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* Date of start in RFC 3339 format.
|
|
1196
|
+
*/
|
|
1197
|
+
startedAt?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Date of finish in RFC 3339 format.
|
|
1200
|
+
*/
|
|
1201
|
+
finishedAt?: string;
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
type RunListResponse = {
|
|
1205
|
+
runs: Run[];
|
|
1206
|
+
pagination: Pagination;
|
|
1207
|
+
window: Window;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* API response for running a task.
|
|
1212
|
+
*/
|
|
1213
|
+
type RunResponse = {
|
|
1214
|
+
/**
|
|
1215
|
+
* Universally unique identifier (UUID) of a task run.
|
|
1216
|
+
*/
|
|
1217
|
+
runID: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Date of creation in RFC 3339 format.
|
|
1220
|
+
*/
|
|
1221
|
+
createdAt: string;
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Property by which to sort the list of task runs.
|
|
1226
|
+
*/
|
|
1227
|
+
type RunSortKeys = 'createdAt' | 'status' | 'updatedAt';
|
|
1228
|
+
|
|
1229
|
+
type RunSourcePayload = {
|
|
1230
|
+
/**
|
|
1231
|
+
* List of index names to include in reidexing/update.
|
|
1232
|
+
*/
|
|
1233
|
+
indexToInclude?: string[];
|
|
1234
|
+
/**
|
|
1235
|
+
* List of index names to exclude in reidexing/update.
|
|
1236
|
+
*/
|
|
1237
|
+
indexToExclude?: string[];
|
|
1238
|
+
/**
|
|
1239
|
+
* List of entityID to update.
|
|
1240
|
+
*/
|
|
1241
|
+
entityIDs?: string[];
|
|
1242
|
+
entityType?: EntityType;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
type RunSourceResponse = {
|
|
1246
|
+
/**
|
|
1247
|
+
* Map of taskID sent for reindex with the corresponding runID.
|
|
1248
|
+
*/
|
|
1249
|
+
taskWithRunID: Record<string, string>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Date of creation in RFC 3339 format.
|
|
1252
|
+
*/
|
|
1253
|
+
createdAt: string;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Trigger input for scheduled tasks.
|
|
1258
|
+
*/
|
|
1259
|
+
type ScheduleTriggerInput = {
|
|
1260
|
+
type: ScheduleTriggerType;
|
|
1261
|
+
/**
|
|
1262
|
+
* Cron expression for the task\'s schedule.
|
|
1263
|
+
*/
|
|
1264
|
+
cron: string;
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Property by which to sort the list.
|
|
1269
|
+
*/
|
|
1270
|
+
type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
1271
|
+
|
|
1272
|
+
type SourceCreate = {
|
|
1273
|
+
type: SourceType;
|
|
1274
|
+
/**
|
|
1275
|
+
* Descriptive name of the source.
|
|
1276
|
+
*/
|
|
1277
|
+
name: string;
|
|
1278
|
+
input?: SourceInput;
|
|
1279
|
+
/**
|
|
1280
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
1281
|
+
*/
|
|
1282
|
+
authenticationID?: string;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
type SourceCreateResponse = {
|
|
1286
|
+
/**
|
|
1287
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
1288
|
+
*/
|
|
1289
|
+
sourceID: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* Descriptive name of the source.
|
|
1292
|
+
*/
|
|
1293
|
+
name: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* Date of creation in RFC 3339 format.
|
|
1296
|
+
*/
|
|
1297
|
+
createdAt: string;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
type SourceSearch = {
|
|
1301
|
+
sourceIDs: string[];
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Property by which to sort the list of sources.
|
|
1306
|
+
*/
|
|
1307
|
+
type SourceSortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
1308
|
+
|
|
1309
|
+
type SourceUpdateCommercetools = {
|
|
1310
|
+
storeKeys?: string[];
|
|
1311
|
+
/**
|
|
1312
|
+
* Locales for your commercetools stores.
|
|
1313
|
+
*/
|
|
1314
|
+
locales?: string[];
|
|
1315
|
+
url?: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
|
|
1318
|
+
*/
|
|
1319
|
+
fallbackIsInStockValue?: boolean;
|
|
1320
|
+
customFields?: CommercetoolsCustomFields;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
type SourceUpdateDocker = {
|
|
1324
|
+
registry?: DockerRegistry;
|
|
1325
|
+
/**
|
|
1326
|
+
* Docker image name.
|
|
1327
|
+
*/
|
|
1328
|
+
image?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Docker image version.
|
|
1331
|
+
*/
|
|
1332
|
+
version?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Configuration of the spec.
|
|
1335
|
+
*/
|
|
1336
|
+
configuration: Record<string, unknown>;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
type SourceUpdateInput = SourceBigQuery | SourceCSV | SourceGA4BigQueryExport | SourceJSON | SourceUpdateCommercetools | SourceUpdateDocker | SourceUpdateShopify;
|
|
1340
|
+
|
|
1341
|
+
type SourceUpdate = {
|
|
1342
|
+
/**
|
|
1343
|
+
* Descriptive name of the source.
|
|
1344
|
+
*/
|
|
1345
|
+
name?: string;
|
|
1346
|
+
input?: SourceUpdateInput;
|
|
1347
|
+
/**
|
|
1348
|
+
* Universally unique identifier (UUID) of an authentication resource.
|
|
1349
|
+
*/
|
|
1350
|
+
authenticationID?: string;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
type SourceUpdateResponse = {
|
|
1354
|
+
/**
|
|
1355
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
1356
|
+
*/
|
|
1357
|
+
sourceID: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* Descriptive name of the source.
|
|
1360
|
+
*/
|
|
1361
|
+
name: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* Date of last update in RFC 3339 format.
|
|
1364
|
+
*/
|
|
1365
|
+
updatedAt: string;
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
type SourceWatchResponse = {
|
|
1369
|
+
/**
|
|
1370
|
+
* Universally unique identifier (UUID) of a task run.
|
|
1371
|
+
*/
|
|
1372
|
+
runID?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* Depending on the source type, the validation returns sampling data of your source (JSON, CSV, BigQuery).
|
|
1375
|
+
*/
|
|
1376
|
+
data?: Array<Record<string, unknown>>;
|
|
1377
|
+
/**
|
|
1378
|
+
* In case of error, observability events will be added to the response, if any.
|
|
1379
|
+
*/
|
|
1380
|
+
events?: Event[];
|
|
1381
|
+
/**
|
|
1382
|
+
* A message describing the outcome of a validate run.
|
|
1383
|
+
*/
|
|
1384
|
+
message: string;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* API request body for creating a task.
|
|
1389
|
+
*/
|
|
1390
|
+
type TaskCreate = {
|
|
1391
|
+
/**
|
|
1392
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
1393
|
+
*/
|
|
1394
|
+
sourceID: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
1397
|
+
*/
|
|
1398
|
+
destinationID: string;
|
|
1399
|
+
action: ActionType;
|
|
1400
|
+
/**
|
|
1401
|
+
* Cron expression for the task\'s schedule.
|
|
1402
|
+
*/
|
|
1403
|
+
cron?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Whether the task is enabled.
|
|
1406
|
+
*/
|
|
1407
|
+
enabled?: boolean;
|
|
1408
|
+
/**
|
|
1409
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1410
|
+
*/
|
|
1411
|
+
failureThreshold?: number;
|
|
1412
|
+
input?: TaskInput;
|
|
1413
|
+
/**
|
|
1414
|
+
* Date of the last cursor in RFC 3339 format.
|
|
1415
|
+
*/
|
|
1416
|
+
cursor?: string;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* API response for creating a task.
|
|
1421
|
+
*/
|
|
1422
|
+
type TaskCreateResponse = {
|
|
1423
|
+
/**
|
|
1424
|
+
* Universally unique identifier (UUID) of a task.
|
|
1425
|
+
*/
|
|
1426
|
+
taskID: string;
|
|
1427
|
+
/**
|
|
1428
|
+
* Date of creation in RFC 3339 format.
|
|
1429
|
+
*/
|
|
1430
|
+
createdAt: string;
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
type TaskCreateTrigger = OnDemandTriggerInput | ScheduleTriggerInput | StreamingTrigger | SubscriptionTrigger;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* API request body for creating a task using the V1 shape, please use methods and types that don\'t contain the V1 suffix.
|
|
1437
|
+
*/
|
|
1438
|
+
type TaskCreateV1 = {
|
|
1439
|
+
/**
|
|
1440
|
+
* Universally uniqud identifier (UUID) of a source.
|
|
1441
|
+
*/
|
|
1442
|
+
sourceID: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
1445
|
+
*/
|
|
1446
|
+
destinationID: string;
|
|
1447
|
+
trigger: TaskCreateTrigger;
|
|
1448
|
+
action: ActionType;
|
|
1449
|
+
/**
|
|
1450
|
+
* Whether the task is enabled.
|
|
1451
|
+
*/
|
|
1452
|
+
enabled?: boolean;
|
|
1453
|
+
/**
|
|
1454
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1455
|
+
*/
|
|
1456
|
+
failureThreshold?: number;
|
|
1457
|
+
input?: TaskInput;
|
|
1458
|
+
/**
|
|
1459
|
+
* Date of the last cursor in RFC 3339 format.
|
|
1460
|
+
*/
|
|
1461
|
+
cursor?: string;
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
type TaskSearch = {
|
|
1465
|
+
taskIDs: string[];
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Property by which to sort the list of tasks.
|
|
1470
|
+
*/
|
|
1471
|
+
type TaskSortKeys = 'action' | 'createdAt' | 'enabled' | 'triggerType' | 'updatedAt';
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* API request body for updating a task.
|
|
1475
|
+
*/
|
|
1476
|
+
type TaskUpdate = {
|
|
1477
|
+
/**
|
|
1478
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
1479
|
+
*/
|
|
1480
|
+
destinationID?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* Cron expression for the task\'s schedule.
|
|
1483
|
+
*/
|
|
1484
|
+
cron?: string;
|
|
1485
|
+
input?: TaskInput;
|
|
1486
|
+
/**
|
|
1487
|
+
* Whether the task is enabled.
|
|
1488
|
+
*/
|
|
1489
|
+
enabled?: boolean;
|
|
1490
|
+
/**
|
|
1491
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1492
|
+
*/
|
|
1493
|
+
failureThreshold?: number;
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* API response for updating a task.
|
|
1498
|
+
*/
|
|
1499
|
+
type TaskUpdateResponse = {
|
|
1500
|
+
/**
|
|
1501
|
+
* Universally unique identifier (UUID) of a task.
|
|
1502
|
+
*/
|
|
1503
|
+
taskID: string;
|
|
1504
|
+
/**
|
|
1505
|
+
* Date of last update in RFC 3339 format.
|
|
1506
|
+
*/
|
|
1507
|
+
updatedAt: string;
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Trigger for a task update.
|
|
1512
|
+
*/
|
|
1513
|
+
type TriggerUpdateInput = {
|
|
1514
|
+
/**
|
|
1515
|
+
* Cron expression for the task\'s schedule.
|
|
1516
|
+
*/
|
|
1517
|
+
cron: string;
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* API request body for updating a task using the V1 shape, please use methods and types that don\'t contain the V1 suffix.
|
|
1522
|
+
*/
|
|
1523
|
+
type TaskUpdateV1 = {
|
|
1524
|
+
/**
|
|
1525
|
+
* Universally unique identifier (UUID) of a destination resource.
|
|
1526
|
+
*/
|
|
1527
|
+
destinationID?: string;
|
|
1528
|
+
trigger?: TriggerUpdateInput;
|
|
1529
|
+
input?: TaskInput;
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether the task is enabled.
|
|
1532
|
+
*/
|
|
1533
|
+
enabled?: boolean;
|
|
1534
|
+
/**
|
|
1535
|
+
* Maximum accepted percentage of failures for a task run to finish successfully.
|
|
1536
|
+
*/
|
|
1537
|
+
failureThreshold?: number;
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* API request body for creating a transformation.
|
|
1542
|
+
*/
|
|
1543
|
+
type TransformationCreate = {
|
|
1544
|
+
/**
|
|
1545
|
+
* The source code of the transformation.
|
|
1546
|
+
*/
|
|
1547
|
+
code: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* The uniquely identified name of your transformation.
|
|
1550
|
+
*/
|
|
1551
|
+
name: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* A descriptive name for your transformation of what it does.
|
|
1554
|
+
*/
|
|
1555
|
+
description?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* The authentications associated for the current transformation.
|
|
1558
|
+
*/
|
|
1559
|
+
authenticationIDs?: string[];
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* API response for creating a transformation.
|
|
1564
|
+
*/
|
|
1565
|
+
type TransformationCreateResponse = {
|
|
1566
|
+
/**
|
|
1567
|
+
* Universally unique identifier (UUID) of a transformation.
|
|
1568
|
+
*/
|
|
1569
|
+
transformationID: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Date of creation in RFC 3339 format.
|
|
1572
|
+
*/
|
|
1573
|
+
createdAt: string;
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* The error if the transformation failed.
|
|
1578
|
+
*/
|
|
1579
|
+
type TransformationError = {
|
|
1580
|
+
/**
|
|
1581
|
+
* The error status code.
|
|
1582
|
+
*/
|
|
1583
|
+
code?: number;
|
|
1584
|
+
/**
|
|
1585
|
+
* A descriptive message explaining the failure.
|
|
1586
|
+
*/
|
|
1587
|
+
message?: string;
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* List of available AI models for transformation purposes.
|
|
1592
|
+
*/
|
|
1593
|
+
type TransformationModels = {
|
|
1594
|
+
llms: Model[];
|
|
1595
|
+
};
|
|
1596
|
+
|
|
1597
|
+
type TransformationSearch = {
|
|
1598
|
+
transformationIDs: string[];
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
type TransformationTry = {
|
|
1602
|
+
/**
|
|
1603
|
+
* The source code of the transformation.
|
|
1604
|
+
*/
|
|
1605
|
+
code: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* The record to apply the given code to.
|
|
1608
|
+
*/
|
|
1609
|
+
sampleRecord: Record<string, unknown>;
|
|
1610
|
+
authentications?: AuthenticationCreate[];
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
type TransformationTryResponse = {
|
|
1614
|
+
/**
|
|
1615
|
+
* The array of records returned by the transformation service.
|
|
1616
|
+
*/
|
|
1617
|
+
payloads: Array<Record<string, unknown>>;
|
|
1618
|
+
error?: TransformationError;
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* API response for updating a transformation.
|
|
1623
|
+
*/
|
|
1624
|
+
type TransformationUpdateResponse = {
|
|
1625
|
+
/**
|
|
1626
|
+
* Universally unique identifier (UUID) of a transformation.
|
|
1627
|
+
*/
|
|
1628
|
+
transformationID: string;
|
|
1629
|
+
/**
|
|
1630
|
+
* Date of last update in RFC 3339 format.
|
|
1631
|
+
*/
|
|
1632
|
+
updatedAt: string;
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Task trigger, describing when a task should run. - `onDemand`. Manually trigger the task with the `/run` endpoint. - `schedule`. Regularly trigger the task on a `cron` schedule. - `subscription`. Trigger the task after an event is received, such as, a webhook. - `streaming`. Run the task continuously.
|
|
1637
|
+
*/
|
|
1638
|
+
type TriggerType = 'onDemand' | 'schedule' | 'streaming' | 'subscription';
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Properties for the `customDelete` method.
|
|
1642
|
+
*/
|
|
1643
|
+
type CustomDeleteProps = {
|
|
1644
|
+
/**
|
|
1645
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
1646
|
+
*/
|
|
1647
|
+
path: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* Query parameters to apply to the current query.
|
|
1650
|
+
*/
|
|
1651
|
+
parameters?: Record<string, any>;
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* Properties for the `customGet` method.
|
|
1655
|
+
*/
|
|
1656
|
+
type CustomGetProps = {
|
|
1657
|
+
/**
|
|
1658
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
1659
|
+
*/
|
|
1660
|
+
path: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Query parameters to apply to the current query.
|
|
1663
|
+
*/
|
|
1664
|
+
parameters?: Record<string, any>;
|
|
1665
|
+
};
|
|
1666
|
+
/**
|
|
1667
|
+
* Properties for the `customPost` method.
|
|
1668
|
+
*/
|
|
1669
|
+
type CustomPostProps = {
|
|
1670
|
+
/**
|
|
1671
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
1672
|
+
*/
|
|
1673
|
+
path: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* Query parameters to apply to the current query.
|
|
1676
|
+
*/
|
|
1677
|
+
parameters?: Record<string, any>;
|
|
1678
|
+
/**
|
|
1679
|
+
* Parameters to send with the custom request.
|
|
1680
|
+
*/
|
|
1681
|
+
body?: Record<string, unknown>;
|
|
1682
|
+
};
|
|
1683
|
+
/**
|
|
1684
|
+
* Properties for the `customPut` method.
|
|
1685
|
+
*/
|
|
1686
|
+
type CustomPutProps = {
|
|
1687
|
+
/**
|
|
1688
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
1689
|
+
*/
|
|
1690
|
+
path: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* Query parameters to apply to the current query.
|
|
1693
|
+
*/
|
|
1694
|
+
parameters?: Record<string, any>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Parameters to send with the custom request.
|
|
1697
|
+
*/
|
|
1698
|
+
body?: Record<string, unknown>;
|
|
1699
|
+
};
|
|
1700
|
+
/**
|
|
1701
|
+
* Properties for the `deleteAuthentication` method.
|
|
1702
|
+
*/
|
|
1703
|
+
type DeleteAuthenticationProps = {
|
|
1704
|
+
/**
|
|
1705
|
+
* Unique identifier of an authentication resource.
|
|
1706
|
+
*/
|
|
1707
|
+
authenticationID: string;
|
|
1708
|
+
};
|
|
1709
|
+
/**
|
|
1710
|
+
* Properties for the `deleteDestination` method.
|
|
1711
|
+
*/
|
|
1712
|
+
type DeleteDestinationProps = {
|
|
1713
|
+
/**
|
|
1714
|
+
* Unique identifier of a destination.
|
|
1715
|
+
*/
|
|
1716
|
+
destinationID: string;
|
|
1717
|
+
};
|
|
1718
|
+
/**
|
|
1719
|
+
* Properties for the `deleteSource` method.
|
|
1720
|
+
*/
|
|
1721
|
+
type DeleteSourceProps = {
|
|
1722
|
+
/**
|
|
1723
|
+
* Unique identifier of a source.
|
|
1724
|
+
*/
|
|
1725
|
+
sourceID: string;
|
|
1726
|
+
};
|
|
1727
|
+
/**
|
|
1728
|
+
* Properties for the `deleteTask` method.
|
|
1729
|
+
*/
|
|
1730
|
+
type DeleteTaskProps = {
|
|
1731
|
+
/**
|
|
1732
|
+
* Unique identifier of a task.
|
|
1733
|
+
*/
|
|
1734
|
+
taskID: string;
|
|
1735
|
+
};
|
|
1736
|
+
/**
|
|
1737
|
+
* Properties for the `deleteTaskV1` method.
|
|
1738
|
+
*/
|
|
1739
|
+
type DeleteTaskV1Props = {
|
|
1740
|
+
/**
|
|
1741
|
+
* Unique identifier of a task.
|
|
1742
|
+
*/
|
|
1743
|
+
taskID: string;
|
|
1744
|
+
};
|
|
1745
|
+
/**
|
|
1746
|
+
* Properties for the `deleteTransformation` method.
|
|
1747
|
+
*/
|
|
1748
|
+
type DeleteTransformationProps = {
|
|
1749
|
+
/**
|
|
1750
|
+
* Unique identifier of a transformation.
|
|
1751
|
+
*/
|
|
1752
|
+
transformationID: string;
|
|
1753
|
+
};
|
|
1754
|
+
/**
|
|
1755
|
+
* Properties for the `disableTask` method.
|
|
1756
|
+
*/
|
|
1757
|
+
type DisableTaskProps = {
|
|
1758
|
+
/**
|
|
1759
|
+
* Unique identifier of a task.
|
|
1760
|
+
*/
|
|
1761
|
+
taskID: string;
|
|
1762
|
+
};
|
|
1763
|
+
/**
|
|
1764
|
+
* Properties for the `disableTaskV1` method.
|
|
1765
|
+
*/
|
|
1766
|
+
type DisableTaskV1Props = {
|
|
1767
|
+
/**
|
|
1768
|
+
* Unique identifier of a task.
|
|
1769
|
+
*/
|
|
1770
|
+
taskID: string;
|
|
1771
|
+
};
|
|
1772
|
+
/**
|
|
1773
|
+
* Properties for the `enableTask` method.
|
|
1774
|
+
*/
|
|
1775
|
+
type EnableTaskProps = {
|
|
1776
|
+
/**
|
|
1777
|
+
* Unique identifier of a task.
|
|
1778
|
+
*/
|
|
1779
|
+
taskID: string;
|
|
1780
|
+
};
|
|
1781
|
+
/**
|
|
1782
|
+
* Properties for the `enableTaskV1` method.
|
|
1783
|
+
*/
|
|
1784
|
+
type EnableTaskV1Props = {
|
|
1785
|
+
/**
|
|
1786
|
+
* Unique identifier of a task.
|
|
1787
|
+
*/
|
|
1788
|
+
taskID: string;
|
|
1789
|
+
};
|
|
1790
|
+
/**
|
|
1791
|
+
* Properties for the `getAuthentication` method.
|
|
1792
|
+
*/
|
|
1793
|
+
type GetAuthenticationProps = {
|
|
1794
|
+
/**
|
|
1795
|
+
* Unique identifier of an authentication resource.
|
|
1796
|
+
*/
|
|
1797
|
+
authenticationID: string;
|
|
1798
|
+
};
|
|
1799
|
+
/**
|
|
1800
|
+
* Properties for the `getDestination` method.
|
|
1801
|
+
*/
|
|
1802
|
+
type GetDestinationProps = {
|
|
1803
|
+
/**
|
|
1804
|
+
* Unique identifier of a destination.
|
|
1805
|
+
*/
|
|
1806
|
+
destinationID: string;
|
|
1807
|
+
};
|
|
1808
|
+
/**
|
|
1809
|
+
* Properties for the `getEvent` method.
|
|
1810
|
+
*/
|
|
1811
|
+
type GetEventProps = {
|
|
1812
|
+
/**
|
|
1813
|
+
* Unique identifier of a task run.
|
|
1814
|
+
*/
|
|
1815
|
+
runID: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* Unique identifier of an event.
|
|
1818
|
+
*/
|
|
1819
|
+
eventID: string;
|
|
1820
|
+
};
|
|
1821
|
+
/**
|
|
1822
|
+
* Properties for the `getRun` method.
|
|
1823
|
+
*/
|
|
1824
|
+
type GetRunProps = {
|
|
1825
|
+
/**
|
|
1826
|
+
* Unique identifier of a task run.
|
|
1827
|
+
*/
|
|
1828
|
+
runID: string;
|
|
1829
|
+
};
|
|
1830
|
+
/**
|
|
1831
|
+
* Properties for the `getSource` method.
|
|
1832
|
+
*/
|
|
1833
|
+
type GetSourceProps = {
|
|
1834
|
+
/**
|
|
1835
|
+
* Unique identifier of a source.
|
|
1836
|
+
*/
|
|
1837
|
+
sourceID: string;
|
|
1838
|
+
};
|
|
1839
|
+
/**
|
|
1840
|
+
* Properties for the `getTask` method.
|
|
1841
|
+
*/
|
|
1842
|
+
type GetTaskProps = {
|
|
1843
|
+
/**
|
|
1844
|
+
* Unique identifier of a task.
|
|
1845
|
+
*/
|
|
1846
|
+
taskID: string;
|
|
1847
|
+
};
|
|
1848
|
+
/**
|
|
1849
|
+
* Properties for the `getTaskV1` method.
|
|
1850
|
+
*/
|
|
1851
|
+
type GetTaskV1Props = {
|
|
1852
|
+
/**
|
|
1853
|
+
* Unique identifier of a task.
|
|
1854
|
+
*/
|
|
1855
|
+
taskID: string;
|
|
1856
|
+
};
|
|
1857
|
+
/**
|
|
1858
|
+
* Properties for the `getTransformation` method.
|
|
1859
|
+
*/
|
|
1860
|
+
type GetTransformationProps = {
|
|
1861
|
+
/**
|
|
1862
|
+
* Unique identifier of a transformation.
|
|
1863
|
+
*/
|
|
1864
|
+
transformationID: string;
|
|
1865
|
+
};
|
|
1866
|
+
/**
|
|
1867
|
+
* Properties for the `listAuthentications` method.
|
|
1868
|
+
*/
|
|
1869
|
+
type ListAuthenticationsProps = {
|
|
1870
|
+
/**
|
|
1871
|
+
* Number of items per page.
|
|
1872
|
+
*/
|
|
1873
|
+
itemsPerPage?: number;
|
|
1874
|
+
/**
|
|
1875
|
+
* Page number of the paginated API response.
|
|
1876
|
+
*/
|
|
1877
|
+
page?: number;
|
|
1878
|
+
/**
|
|
1879
|
+
* Type of authentication resource to retrieve.
|
|
1880
|
+
*/
|
|
1881
|
+
type?: AuthenticationType[];
|
|
1882
|
+
/**
|
|
1883
|
+
* Ecommerce platform for which to retrieve authentication resources.
|
|
1884
|
+
*/
|
|
1885
|
+
platform?: PlatformWithNone[];
|
|
1886
|
+
/**
|
|
1887
|
+
* Property by which to sort the list of authentication resources.
|
|
1888
|
+
*/
|
|
1889
|
+
sort?: AuthenticationSortKeys;
|
|
1890
|
+
/**
|
|
1891
|
+
* Sort order of the response, ascending or descending.
|
|
1892
|
+
*/
|
|
1893
|
+
order?: OrderKeys;
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
* Properties for the `listDestinations` method.
|
|
1897
|
+
*/
|
|
1898
|
+
type ListDestinationsProps = {
|
|
1899
|
+
/**
|
|
1900
|
+
* Number of items per page.
|
|
1901
|
+
*/
|
|
1902
|
+
itemsPerPage?: number;
|
|
1903
|
+
/**
|
|
1904
|
+
* Page number of the paginated API response.
|
|
1905
|
+
*/
|
|
1906
|
+
page?: number;
|
|
1907
|
+
/**
|
|
1908
|
+
* Destination type.
|
|
1909
|
+
*/
|
|
1910
|
+
type?: DestinationType[];
|
|
1911
|
+
/**
|
|
1912
|
+
* Authentication ID used by destinations.
|
|
1913
|
+
*/
|
|
1914
|
+
authenticationID?: string[];
|
|
1915
|
+
/**
|
|
1916
|
+
* Property by which to sort the destinations.
|
|
1917
|
+
*/
|
|
1918
|
+
sort?: DestinationSortKeys;
|
|
1919
|
+
/**
|
|
1920
|
+
* Sort order of the response, ascending or descending.
|
|
1921
|
+
*/
|
|
1922
|
+
order?: OrderKeys;
|
|
1923
|
+
};
|
|
1924
|
+
/**
|
|
1925
|
+
* Properties for the `listEvents` method.
|
|
1926
|
+
*/
|
|
1927
|
+
type ListEventsProps = {
|
|
1928
|
+
/**
|
|
1929
|
+
* Unique identifier of a task run.
|
|
1930
|
+
*/
|
|
1931
|
+
runID: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* Number of items per page.
|
|
1934
|
+
*/
|
|
1935
|
+
itemsPerPage?: number;
|
|
1936
|
+
/**
|
|
1937
|
+
* Page number of the paginated API response.
|
|
1938
|
+
*/
|
|
1939
|
+
page?: number;
|
|
1940
|
+
/**
|
|
1941
|
+
* Event status for filtering the list of task runs.
|
|
1942
|
+
*/
|
|
1943
|
+
status?: EventStatus[];
|
|
1944
|
+
/**
|
|
1945
|
+
* Event type for filtering the list of task runs.
|
|
1946
|
+
*/
|
|
1947
|
+
type?: EventType[];
|
|
1948
|
+
/**
|
|
1949
|
+
* Property by which to sort the list of task run events.
|
|
1950
|
+
*/
|
|
1951
|
+
sort?: EventSortKeys;
|
|
1952
|
+
/**
|
|
1953
|
+
* Sort order of the response, ascending or descending.
|
|
1954
|
+
*/
|
|
1955
|
+
order?: OrderKeys;
|
|
1956
|
+
/**
|
|
1957
|
+
* Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used.
|
|
1958
|
+
*/
|
|
1959
|
+
startDate?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
|
|
1962
|
+
*/
|
|
1963
|
+
endDate?: string;
|
|
1964
|
+
};
|
|
1965
|
+
/**
|
|
1966
|
+
* Properties for the `listRuns` method.
|
|
1967
|
+
*/
|
|
1968
|
+
type ListRunsProps = {
|
|
1969
|
+
/**
|
|
1970
|
+
* Number of items per page.
|
|
1971
|
+
*/
|
|
1972
|
+
itemsPerPage?: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* Page number of the paginated API response.
|
|
1975
|
+
*/
|
|
1976
|
+
page?: number;
|
|
1977
|
+
/**
|
|
1978
|
+
* Run status for filtering the list of task runs.
|
|
1979
|
+
*/
|
|
1980
|
+
status?: RunStatus[];
|
|
1981
|
+
/**
|
|
1982
|
+
* Run type for filtering the list of task runs.
|
|
1983
|
+
*/
|
|
1984
|
+
type?: RunType[];
|
|
1985
|
+
/**
|
|
1986
|
+
* Task ID for filtering the list of task runs.
|
|
1987
|
+
*/
|
|
1988
|
+
taskID?: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Property by which to sort the list of task runs.
|
|
1991
|
+
*/
|
|
1992
|
+
sort?: RunSortKeys;
|
|
1993
|
+
/**
|
|
1994
|
+
* Sort order of the response, ascending or descending.
|
|
1995
|
+
*/
|
|
1996
|
+
order?: OrderKeys;
|
|
1997
|
+
/**
|
|
1998
|
+
* Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used.
|
|
1999
|
+
*/
|
|
2000
|
+
startDate?: string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
|
|
2003
|
+
*/
|
|
2004
|
+
endDate?: string;
|
|
2005
|
+
};
|
|
2006
|
+
/**
|
|
2007
|
+
* Properties for the `listSources` method.
|
|
2008
|
+
*/
|
|
2009
|
+
type ListSourcesProps = {
|
|
2010
|
+
/**
|
|
2011
|
+
* Number of items per page.
|
|
2012
|
+
*/
|
|
2013
|
+
itemsPerPage?: number;
|
|
2014
|
+
/**
|
|
2015
|
+
* Page number of the paginated API response.
|
|
2016
|
+
*/
|
|
2017
|
+
page?: number;
|
|
2018
|
+
/**
|
|
2019
|
+
* Source type. Some sources require authentication.
|
|
2020
|
+
*/
|
|
2021
|
+
type?: SourceType[];
|
|
2022
|
+
/**
|
|
2023
|
+
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource.
|
|
2024
|
+
*/
|
|
2025
|
+
authenticationID?: string[];
|
|
2026
|
+
/**
|
|
2027
|
+
* Property by which to sort the list of sources.
|
|
2028
|
+
*/
|
|
2029
|
+
sort?: SourceSortKeys;
|
|
2030
|
+
/**
|
|
2031
|
+
* Sort order of the response, ascending or descending.
|
|
2032
|
+
*/
|
|
2033
|
+
order?: OrderKeys;
|
|
2034
|
+
};
|
|
2035
|
+
/**
|
|
2036
|
+
* Properties for the `listTasks` method.
|
|
2037
|
+
*/
|
|
2038
|
+
type ListTasksProps = {
|
|
2039
|
+
/**
|
|
2040
|
+
* Number of items per page.
|
|
2041
|
+
*/
|
|
2042
|
+
itemsPerPage?: number;
|
|
2043
|
+
/**
|
|
2044
|
+
* Page number of the paginated API response.
|
|
2045
|
+
*/
|
|
2046
|
+
page?: number;
|
|
2047
|
+
/**
|
|
2048
|
+
* Actions for filtering the list of tasks.
|
|
2049
|
+
*/
|
|
2050
|
+
action?: ActionType[];
|
|
2051
|
+
/**
|
|
2052
|
+
* Whether to filter the list of tasks by the `enabled` status.
|
|
2053
|
+
*/
|
|
2054
|
+
enabled?: boolean;
|
|
2055
|
+
/**
|
|
2056
|
+
* Source IDs for filtering the list of tasks.
|
|
2057
|
+
*/
|
|
2058
|
+
sourceID?: string[];
|
|
2059
|
+
/**
|
|
2060
|
+
* Destination IDs for filtering the list of tasks.
|
|
2061
|
+
*/
|
|
2062
|
+
destinationID?: string[];
|
|
2063
|
+
/**
|
|
2064
|
+
* Type of task trigger for filtering the list of tasks.
|
|
2065
|
+
*/
|
|
2066
|
+
triggerType?: TriggerType[];
|
|
2067
|
+
/**
|
|
2068
|
+
* Property by which to sort the list of tasks.
|
|
2069
|
+
*/
|
|
2070
|
+
sort?: TaskSortKeys;
|
|
2071
|
+
/**
|
|
2072
|
+
* Sort order of the response, ascending or descending.
|
|
2073
|
+
*/
|
|
2074
|
+
order?: OrderKeys;
|
|
2075
|
+
};
|
|
2076
|
+
/**
|
|
2077
|
+
* Properties for the `listTasksV1` method.
|
|
2078
|
+
*/
|
|
2079
|
+
type ListTasksV1Props = {
|
|
2080
|
+
/**
|
|
2081
|
+
* Number of items per page.
|
|
2082
|
+
*/
|
|
2083
|
+
itemsPerPage?: number;
|
|
2084
|
+
/**
|
|
2085
|
+
* Page number of the paginated API response.
|
|
2086
|
+
*/
|
|
2087
|
+
page?: number;
|
|
2088
|
+
/**
|
|
2089
|
+
* Actions for filtering the list of tasks.
|
|
2090
|
+
*/
|
|
2091
|
+
action?: ActionType[];
|
|
2092
|
+
/**
|
|
2093
|
+
* Whether to filter the list of tasks by the `enabled` status.
|
|
2094
|
+
*/
|
|
2095
|
+
enabled?: boolean;
|
|
2096
|
+
/**
|
|
2097
|
+
* Source IDs for filtering the list of tasks.
|
|
2098
|
+
*/
|
|
2099
|
+
sourceID?: string[];
|
|
2100
|
+
/**
|
|
2101
|
+
* Destination IDs for filtering the list of tasks.
|
|
2102
|
+
*/
|
|
2103
|
+
destinationID?: string[];
|
|
2104
|
+
/**
|
|
2105
|
+
* Type of task trigger for filtering the list of tasks.
|
|
2106
|
+
*/
|
|
2107
|
+
triggerType?: TriggerType[];
|
|
2108
|
+
/**
|
|
2109
|
+
* Property by which to sort the list of tasks.
|
|
2110
|
+
*/
|
|
2111
|
+
sort?: TaskSortKeys;
|
|
2112
|
+
/**
|
|
2113
|
+
* Sort order of the response, ascending or descending.
|
|
2114
|
+
*/
|
|
2115
|
+
order?: OrderKeys;
|
|
2116
|
+
};
|
|
2117
|
+
/**
|
|
2118
|
+
* Properties for the `listTransformations` method.
|
|
2119
|
+
*/
|
|
2120
|
+
type ListTransformationsProps = {
|
|
2121
|
+
/**
|
|
2122
|
+
* Number of items per page.
|
|
2123
|
+
*/
|
|
2124
|
+
itemsPerPage?: number;
|
|
2125
|
+
/**
|
|
2126
|
+
* Page number of the paginated API response.
|
|
2127
|
+
*/
|
|
2128
|
+
page?: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* Property by which to sort the list.
|
|
2131
|
+
*/
|
|
2132
|
+
sort?: SortKeys;
|
|
2133
|
+
/**
|
|
2134
|
+
* Sort order of the response, ascending or descending.
|
|
2135
|
+
*/
|
|
2136
|
+
order?: OrderKeys;
|
|
2137
|
+
};
|
|
2138
|
+
/**
|
|
2139
|
+
* Properties for the `pushTask` method.
|
|
2140
|
+
*/
|
|
2141
|
+
type PushTaskProps = {
|
|
2142
|
+
/**
|
|
2143
|
+
* Unique identifier of a task.
|
|
2144
|
+
*/
|
|
2145
|
+
taskID: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.
|
|
2148
|
+
*/
|
|
2149
|
+
pushTaskPayload: PushTaskPayload;
|
|
2150
|
+
};
|
|
2151
|
+
/**
|
|
2152
|
+
* Properties for the `runSource` method.
|
|
2153
|
+
*/
|
|
2154
|
+
type RunSourceProps = {
|
|
2155
|
+
/**
|
|
2156
|
+
* Unique identifier of a source.
|
|
2157
|
+
*/
|
|
2158
|
+
sourceID: string;
|
|
2159
|
+
/**
|
|
2160
|
+
*
|
|
2161
|
+
*/
|
|
2162
|
+
runSourcePayload?: RunSourcePayload;
|
|
2163
|
+
};
|
|
2164
|
+
/**
|
|
2165
|
+
* Properties for the `runTask` method.
|
|
2166
|
+
*/
|
|
2167
|
+
type RunTaskProps = {
|
|
2168
|
+
/**
|
|
2169
|
+
* Unique identifier of a task.
|
|
2170
|
+
*/
|
|
2171
|
+
taskID: string;
|
|
2172
|
+
};
|
|
2173
|
+
/**
|
|
2174
|
+
* Properties for the `runTaskV1` method.
|
|
2175
|
+
*/
|
|
2176
|
+
type RunTaskV1Props = {
|
|
2177
|
+
/**
|
|
2178
|
+
* Unique identifier of a task.
|
|
2179
|
+
*/
|
|
2180
|
+
taskID: string;
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* Properties for the `triggerDockerSourceDiscover` method.
|
|
2184
|
+
*/
|
|
2185
|
+
type TriggerDockerSourceDiscoverProps = {
|
|
2186
|
+
/**
|
|
2187
|
+
* Unique identifier of a source.
|
|
2188
|
+
*/
|
|
2189
|
+
sourceID: string;
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* Properties for the `tryTransformationBeforeUpdate` method.
|
|
2193
|
+
*/
|
|
2194
|
+
type TryTransformationBeforeUpdateProps = {
|
|
2195
|
+
/**
|
|
2196
|
+
* Unique identifier of a transformation.
|
|
2197
|
+
*/
|
|
2198
|
+
transformationID: string;
|
|
2199
|
+
transformationTry: TransformationTry;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* Properties for the `updateAuthentication` method.
|
|
2203
|
+
*/
|
|
2204
|
+
type UpdateAuthenticationProps = {
|
|
2205
|
+
/**
|
|
2206
|
+
* Unique identifier of an authentication resource.
|
|
2207
|
+
*/
|
|
2208
|
+
authenticationID: string;
|
|
2209
|
+
authenticationUpdate: AuthenticationUpdate;
|
|
2210
|
+
};
|
|
2211
|
+
/**
|
|
2212
|
+
* Properties for the `updateDestination` method.
|
|
2213
|
+
*/
|
|
2214
|
+
type UpdateDestinationProps = {
|
|
2215
|
+
/**
|
|
2216
|
+
* Unique identifier of a destination.
|
|
2217
|
+
*/
|
|
2218
|
+
destinationID: string;
|
|
2219
|
+
destinationUpdate: DestinationUpdate;
|
|
2220
|
+
};
|
|
2221
|
+
/**
|
|
2222
|
+
* Properties for the `updateSource` method.
|
|
2223
|
+
*/
|
|
2224
|
+
type UpdateSourceProps = {
|
|
2225
|
+
/**
|
|
2226
|
+
* Unique identifier of a source.
|
|
2227
|
+
*/
|
|
2228
|
+
sourceID: string;
|
|
2229
|
+
sourceUpdate: SourceUpdate;
|
|
2230
|
+
};
|
|
2231
|
+
/**
|
|
2232
|
+
* Properties for the `updateTask` method.
|
|
2233
|
+
*/
|
|
2234
|
+
type UpdateTaskProps = {
|
|
2235
|
+
/**
|
|
2236
|
+
* Unique identifier of a task.
|
|
2237
|
+
*/
|
|
2238
|
+
taskID: string;
|
|
2239
|
+
taskUpdate: TaskUpdate;
|
|
2240
|
+
};
|
|
2241
|
+
/**
|
|
2242
|
+
* Properties for the `updateTaskV1` method.
|
|
2243
|
+
*/
|
|
2244
|
+
type UpdateTaskV1Props = {
|
|
2245
|
+
/**
|
|
2246
|
+
* Unique identifier of a task.
|
|
2247
|
+
*/
|
|
2248
|
+
taskID: string;
|
|
2249
|
+
taskUpdate: TaskUpdateV1;
|
|
2250
|
+
};
|
|
2251
|
+
/**
|
|
2252
|
+
* Properties for the `updateTransformation` method.
|
|
2253
|
+
*/
|
|
2254
|
+
type UpdateTransformationProps = {
|
|
2255
|
+
/**
|
|
2256
|
+
* Unique identifier of a transformation.
|
|
2257
|
+
*/
|
|
2258
|
+
transformationID: string;
|
|
2259
|
+
transformationCreate: TransformationCreate;
|
|
2260
|
+
};
|
|
2261
|
+
/**
|
|
2262
|
+
* Properties for the `validateSourceBeforeUpdate` method.
|
|
2263
|
+
*/
|
|
2264
|
+
type ValidateSourceBeforeUpdateProps = {
|
|
2265
|
+
/**
|
|
2266
|
+
* Unique identifier of a source.
|
|
2267
|
+
*/
|
|
2268
|
+
sourceID: string;
|
|
2269
|
+
sourceUpdate: SourceUpdate;
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
declare const apiClientVersion = "1.2.4";
|
|
2273
|
+
declare const REGIONS: readonly ["eu", "us"];
|
|
2274
|
+
type Region = (typeof REGIONS)[number];
|
|
2275
|
+
/**
|
|
2276
|
+
* Guard: Return strongly typed specific OnDemandTrigger for a given Trigger.
|
|
2277
|
+
*
|
|
2278
|
+
* @summary Guard method that returns a strongly typed specific OnDemandTrigger for a given Trigger.
|
|
2279
|
+
* @param trigger - The given Task Trigger.
|
|
2280
|
+
*/
|
|
2281
|
+
declare function isOnDemandTrigger(trigger: TaskCreateTrigger | Trigger): trigger is OnDemandTrigger;
|
|
2282
|
+
/**
|
|
2283
|
+
* Guard: Return strongly typed specific ScheduleTrigger for a given Trigger.
|
|
2284
|
+
*
|
|
2285
|
+
* @summary Guard method that returns a strongly typed specific ScheduleTrigger for a given Trigger.
|
|
2286
|
+
* @param trigger - The given Task Trigger.
|
|
2287
|
+
*/
|
|
2288
|
+
declare function isScheduleTrigger(trigger: TaskCreateTrigger | Trigger): trigger is ScheduleTrigger;
|
|
2289
|
+
/**
|
|
2290
|
+
* Guard: Return strongly typed specific SubscriptionTrigger for a given Trigger.
|
|
2291
|
+
*
|
|
2292
|
+
* @summary Guard method that returns a strongly typed specific SubscriptionTrigger for a given Trigger.
|
|
2293
|
+
* @param trigger - The given Task Trigger.
|
|
2294
|
+
*/
|
|
2295
|
+
declare function isSubscriptionTrigger(trigger: TaskCreateTrigger | Trigger): trigger is SubscriptionTrigger;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* The client type.
|
|
2299
|
+
*/
|
|
2300
|
+
type IngestionClient = ReturnType<typeof ingestionClient>;
|
|
2301
|
+
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): {
|
|
2302
|
+
transporter: _algolia_client_common.Transporter;
|
|
2303
|
+
appId: string;
|
|
2304
|
+
clearCache(): Promise<void>;
|
|
2305
|
+
_ua: string;
|
|
2306
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
2307
|
+
createAuthentication(authenticationCreate: AuthenticationCreate, requestOptions?: _algolia_client_common.RequestOptions): Promise<AuthenticationCreateResponse>;
|
|
2308
|
+
createDestination(destinationCreate: DestinationCreate, requestOptions?: _algolia_client_common.RequestOptions): Promise<DestinationCreateResponse>;
|
|
2309
|
+
createSource(sourceCreate: SourceCreate, requestOptions?: _algolia_client_common.RequestOptions): Promise<SourceCreateResponse>;
|
|
2310
|
+
createTask(taskCreate: TaskCreate, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskCreateResponse>;
|
|
2311
|
+
createTaskV1(taskCreate: TaskCreateV1, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskCreateResponse>;
|
|
2312
|
+
createTransformation(transformationCreate: TransformationCreate, requestOptions?: _algolia_client_common.RequestOptions): Promise<TransformationCreateResponse>;
|
|
2313
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
2314
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
2315
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
2316
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
|
|
2317
|
+
deleteAuthentication({ authenticationID }: DeleteAuthenticationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2318
|
+
deleteDestination({ destinationID }: DeleteDestinationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2319
|
+
deleteSource({ sourceID }: DeleteSourceProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2320
|
+
deleteTask({ taskID }: DeleteTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2321
|
+
deleteTaskV1({ taskID }: DeleteTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2322
|
+
deleteTransformation({ transformationID }: DeleteTransformationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DeleteResponse>;
|
|
2323
|
+
disableTask({ taskID }: DisableTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2324
|
+
disableTaskV1({ taskID }: DisableTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2325
|
+
enableTask({ taskID }: EnableTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2326
|
+
enableTaskV1({ taskID }: EnableTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2327
|
+
generateTransformationCode(generateTransformationCodePayload: GenerateTransformationCodePayload, requestOptions?: _algolia_client_common.RequestOptions): Promise<GenerateTransformationCodeResponse>;
|
|
2328
|
+
getAuthentication({ authenticationID }: GetAuthenticationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Authentication>;
|
|
2329
|
+
getDestination({ destinationID }: GetDestinationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Destination>;
|
|
2330
|
+
getEvent({ runID, eventID }: GetEventProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Event>;
|
|
2331
|
+
getRun({ runID }: GetRunProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Run>;
|
|
2332
|
+
getSource({ sourceID }: GetSourceProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Source>;
|
|
2333
|
+
getTask({ taskID }: GetTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Task>;
|
|
2334
|
+
getTaskV1({ taskID }: GetTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskV1>;
|
|
2335
|
+
getTransformation({ transformationID }: GetTransformationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Transformation>;
|
|
2336
|
+
listAuthentications({ itemsPerPage, page, type, platform, sort, order }?: ListAuthenticationsProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListAuthenticationsResponse>;
|
|
2337
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: ListDestinationsProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2338
|
+
listEvents({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }: ListEventsProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<ListEventsResponse>;
|
|
2339
|
+
listRuns({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate }?: ListRunsProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<RunListResponse>;
|
|
2340
|
+
listSources({ itemsPerPage, page, type, authenticationID, sort, order }?: ListSourcesProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListSourcesResponse>;
|
|
2341
|
+
listTasks({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListTasksResponse>;
|
|
2342
|
+
listTasksV1({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order }?: ListTasksV1Props, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListTasksResponseV1>;
|
|
2343
|
+
listTransformationModels(requestOptions?: _algolia_client_common.RequestOptions): Promise<TransformationModels>;
|
|
2344
|
+
listTransformations({ itemsPerPage, page, sort, order }?: ListTransformationsProps, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<ListTransformationsResponse>;
|
|
2345
|
+
pushTask({ taskID, pushTaskPayload }: PushTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<RunResponse>;
|
|
2346
|
+
runSource({ sourceID, runSourcePayload }: RunSourceProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<RunSourceResponse>;
|
|
2347
|
+
runTask({ taskID }: RunTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<RunResponse>;
|
|
2348
|
+
runTaskV1({ taskID }: RunTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<RunResponse>;
|
|
2349
|
+
searchAuthentications(authenticationSearch: AuthenticationSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<Authentication[]>;
|
|
2350
|
+
searchDestinations(destinationSearch: DestinationSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<Destination[]>;
|
|
2351
|
+
searchSources(sourceSearch: SourceSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<Source[]>;
|
|
2352
|
+
searchTasks(taskSearch: TaskSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<Task[]>;
|
|
2353
|
+
searchTasksV1(taskSearch: TaskSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskV1[]>;
|
|
2354
|
+
searchTransformations(transformationSearch: TransformationSearch, requestOptions?: _algolia_client_common.RequestOptions): Promise<Transformation[]>;
|
|
2355
|
+
triggerDockerSourceDiscover({ sourceID }: TriggerDockerSourceDiscoverProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<SourceWatchResponse>;
|
|
2356
|
+
tryTransformation(transformationTry: TransformationTry, requestOptions?: _algolia_client_common.RequestOptions): Promise<TransformationTryResponse>;
|
|
2357
|
+
tryTransformationBeforeUpdate({ transformationID, transformationTry }: TryTransformationBeforeUpdateProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<TransformationTryResponse>;
|
|
2358
|
+
updateAuthentication({ authenticationID, authenticationUpdate }: UpdateAuthenticationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<AuthenticationUpdateResponse>;
|
|
2359
|
+
updateDestination({ destinationID, destinationUpdate }: UpdateDestinationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<DestinationUpdateResponse>;
|
|
2360
|
+
updateSource({ sourceID, sourceUpdate }: UpdateSourceProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<SourceUpdateResponse>;
|
|
2361
|
+
updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2362
|
+
updateTaskV1({ taskID, taskUpdate }: UpdateTaskV1Props, requestOptions?: _algolia_client_common.RequestOptions): Promise<TaskUpdateResponse>;
|
|
2363
|
+
updateTransformation({ transformationID, transformationCreate }: UpdateTransformationProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<TransformationUpdateResponse>;
|
|
2364
|
+
validateSource(sourceCreate: SourceCreate, requestOptions?: _algolia_client_common.RequestOptions | undefined): Promise<SourceWatchResponse>;
|
|
2365
|
+
validateSourceBeforeUpdate({ sourceID, sourceUpdate }: ValidateSourceBeforeUpdateProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<SourceWatchResponse>;
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
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 GenerateTransformationCodePayload, type GenerateTransformationCodeResponse, 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 Model, 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 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 SortKeys, 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 SourceWatchResponse, 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 TransformationModels, type TransformationSearch, 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 Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|