@algolia/ingestion 1.5.3 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/dist/browser.d.ts +24 -19
- package/dist/builds/browser.js +12 -6
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +5 -5
- package/dist/builds/fetch.js +12 -6
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +11 -6
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +12 -6
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +24 -19
- package/dist/node.d.cts +24 -19
- package/dist/node.d.ts +24 -19
- package/dist/src/ingestionClient.cjs +10 -6
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +10 -6
- package/dist/src/ingestionClient.js.map +1 -1
- package/model/authenticationSortKeys.ts +2 -2
- package/model/clientMethodProps.ts +10 -6
- package/model/index.ts +1 -1
- package/model/{sortKeys.ts → transformationSortKeys.ts} +2 -2
- package/package.json +7 -7
package/dist/fetch.d.ts
CHANGED
|
@@ -278,9 +278,9 @@ type AuthenticationUpdateResponse = {
|
|
|
278
278
|
type ActionType = 'append' | 'partial' | 'replace' | 'save';
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* Property by which to sort the list of
|
|
281
|
+
* Property by which to sort the list of authentications.
|
|
282
282
|
*/
|
|
283
|
-
type AuthenticationSortKeys = '
|
|
283
|
+
type AuthenticationSortKeys = 'createdAt' | 'name' | 'platform' | 'type' | 'updatedAt';
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Request body for updating an authentication resource.
|
|
@@ -415,11 +415,6 @@ type RunStatus = 'created' | 'finished' | 'idled' | 'skipped' | 'started';
|
|
|
415
415
|
*/
|
|
416
416
|
type RunType = 'discover' | 'push' | 'reindex' | 'update' | 'validate';
|
|
417
417
|
|
|
418
|
-
/**
|
|
419
|
-
* Property by which to sort the list.
|
|
420
|
-
*/
|
|
421
|
-
type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
422
|
-
|
|
423
418
|
/**
|
|
424
419
|
* Property by which to sort the list of sources.
|
|
425
420
|
*/
|
|
@@ -773,6 +768,11 @@ type TransformationCreate = {
|
|
|
773
768
|
authenticationIDs?: string[];
|
|
774
769
|
};
|
|
775
770
|
|
|
771
|
+
/**
|
|
772
|
+
* Property by which to sort the list of transformations.
|
|
773
|
+
*/
|
|
774
|
+
type TransformationSortKeys = 'createdAt' | 'name' | 'updatedAt';
|
|
775
|
+
|
|
776
776
|
type TransformationTry = {
|
|
777
777
|
/**
|
|
778
778
|
* The source code of the transformation.
|
|
@@ -1033,11 +1033,11 @@ type ListAuthenticationsProps = {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
type?: AuthenticationType[];
|
|
1035
1035
|
/**
|
|
1036
|
-
* Ecommerce platform for which to retrieve
|
|
1036
|
+
* Ecommerce platform for which to retrieve authentications.
|
|
1037
1037
|
*/
|
|
1038
1038
|
platform?: PlatformWithNone[];
|
|
1039
1039
|
/**
|
|
1040
|
-
* Property by which to sort the list of
|
|
1040
|
+
* Property by which to sort the list of authentications.
|
|
1041
1041
|
*/
|
|
1042
1042
|
sort?: AuthenticationSortKeys;
|
|
1043
1043
|
/**
|
|
@@ -1065,6 +1065,10 @@ type ListDestinationsProps = {
|
|
|
1065
1065
|
* Authentication ID used by destinations.
|
|
1066
1066
|
*/
|
|
1067
1067
|
authenticationID?: string[];
|
|
1068
|
+
/**
|
|
1069
|
+
* Get the list of destinations used by a transformation.
|
|
1070
|
+
*/
|
|
1071
|
+
transformationID?: string;
|
|
1068
1072
|
/**
|
|
1069
1073
|
* Property by which to sort the destinations.
|
|
1070
1074
|
*/
|
|
@@ -1173,7 +1177,7 @@ type ListSourcesProps = {
|
|
|
1173
1177
|
*/
|
|
1174
1178
|
type?: SourceType[];
|
|
1175
1179
|
/**
|
|
1176
|
-
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1180
|
+
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1177
1181
|
*/
|
|
1178
1182
|
authenticationID?: string[];
|
|
1179
1183
|
/**
|
|
@@ -1280,9 +1284,9 @@ type ListTransformationsProps = {
|
|
|
1280
1284
|
*/
|
|
1281
1285
|
page?: number;
|
|
1282
1286
|
/**
|
|
1283
|
-
* Property by which to sort the list.
|
|
1287
|
+
* Property by which to sort the list of transformations.
|
|
1284
1288
|
*/
|
|
1285
|
-
sort?:
|
|
1289
|
+
sort?: TransformationSortKeys;
|
|
1286
1290
|
/**
|
|
1287
1291
|
* Sort order of the response, ascending or descending.
|
|
1288
1292
|
*/
|
|
@@ -2237,7 +2241,7 @@ type TransformationUpdateResponse = {
|
|
|
2237
2241
|
updatedAt: string;
|
|
2238
2242
|
};
|
|
2239
2243
|
|
|
2240
|
-
declare const apiClientVersion = "1.
|
|
2244
|
+
declare const apiClientVersion = "1.6.1";
|
|
2241
2245
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2242
2246
|
type Region = (typeof REGIONS)[number];
|
|
2243
2247
|
/**
|
|
@@ -2620,8 +2624,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2620
2624
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
2621
2625
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
2622
2626
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
2623
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
2624
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
2627
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
2628
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
2625
2629
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
2626
2630
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2627
2631
|
*/
|
|
@@ -2639,11 +2643,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2639
2643
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
2640
2644
|
* @param listDestinations.type - Destination type.
|
|
2641
2645
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
2646
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
2642
2647
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
2643
2648
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
2644
2649
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2645
2650
|
*/
|
|
2646
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2651
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2647
2652
|
/**
|
|
2648
2653
|
* Retrieves a list of events for a task run, identified by it\'s ID.
|
|
2649
2654
|
*
|
|
@@ -2698,7 +2703,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2698
2703
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
2699
2704
|
* @param listSources.page - Page number of the paginated API response.
|
|
2700
2705
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
2701
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
2706
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
2702
2707
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
2703
2708
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
2704
2709
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2757,7 +2762,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2757
2762
|
* @param listTransformations - The listTransformations object.
|
|
2758
2763
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
2759
2764
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
2760
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
2765
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
2761
2766
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
2762
2767
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2763
2768
|
*/
|
|
@@ -3035,4 +3040,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
|
3035
3040
|
|
|
3036
3041
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3037
3042
|
|
|
3038
|
-
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type 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
|
|
3043
|
+
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type Run, type RunListResponse, type RunOutcome, type RunProgress, type RunReasonCode, type RunResponse, type RunSortKeys, type RunSourcePayload, type RunSourceProps, type RunSourceResponse, type RunStatus, type RunTaskProps, type RunTaskV1Props, type RunType, type ScheduleTrigger, type ScheduleTriggerInput, type ScheduleTriggerType, type ShopifyInput, type ShopifyMarket, type ShopifyMetafield, type Source, type SourceBigCommerce, type SourceBigQuery, type SourceCSV, type SourceCommercetools, type SourceCreate, type SourceCreateResponse, type SourceDocker, type SourceGA4BigQueryExport, type SourceInput, type SourceJSON, type SourceSearch, type SourceShopify, type SourceShopifyBase, type SourceSortKeys, type SourceType, type SourceUpdate, type SourceUpdateCommercetools, type SourceUpdateDocker, type SourceUpdateInput, type SourceUpdateResponse, type SourceUpdateShopify, type 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 TransformationSearch, type TransformationSortKeys, type TransformationTry, type TransformationTryResponse, type TransformationUpdateResponse, type Trigger, type TriggerDockerSourceDiscoverProps, type TriggerType, type TriggerUpdateInput, type TryTransformationBeforeUpdateProps, type UpdateAuthenticationProps, type UpdateDestinationProps, type UpdateSourceProps, type UpdateTaskProps, type UpdateTaskV1Props, type UpdateTransformationProps, type ValidateSourceBeforeUpdateProps, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|
package/dist/node.d.cts
CHANGED
|
@@ -278,9 +278,9 @@ type AuthenticationUpdateResponse = {
|
|
|
278
278
|
type ActionType = 'append' | 'partial' | 'replace' | 'save';
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* Property by which to sort the list of
|
|
281
|
+
* Property by which to sort the list of authentications.
|
|
282
282
|
*/
|
|
283
|
-
type AuthenticationSortKeys = '
|
|
283
|
+
type AuthenticationSortKeys = 'createdAt' | 'name' | 'platform' | 'type' | 'updatedAt';
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Request body for updating an authentication resource.
|
|
@@ -415,11 +415,6 @@ type RunStatus = 'created' | 'finished' | 'idled' | 'skipped' | 'started';
|
|
|
415
415
|
*/
|
|
416
416
|
type RunType = 'discover' | 'push' | 'reindex' | 'update' | 'validate';
|
|
417
417
|
|
|
418
|
-
/**
|
|
419
|
-
* Property by which to sort the list.
|
|
420
|
-
*/
|
|
421
|
-
type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
422
|
-
|
|
423
418
|
/**
|
|
424
419
|
* Property by which to sort the list of sources.
|
|
425
420
|
*/
|
|
@@ -773,6 +768,11 @@ type TransformationCreate = {
|
|
|
773
768
|
authenticationIDs?: string[];
|
|
774
769
|
};
|
|
775
770
|
|
|
771
|
+
/**
|
|
772
|
+
* Property by which to sort the list of transformations.
|
|
773
|
+
*/
|
|
774
|
+
type TransformationSortKeys = 'createdAt' | 'name' | 'updatedAt';
|
|
775
|
+
|
|
776
776
|
type TransformationTry = {
|
|
777
777
|
/**
|
|
778
778
|
* The source code of the transformation.
|
|
@@ -1033,11 +1033,11 @@ type ListAuthenticationsProps = {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
type?: AuthenticationType[];
|
|
1035
1035
|
/**
|
|
1036
|
-
* Ecommerce platform for which to retrieve
|
|
1036
|
+
* Ecommerce platform for which to retrieve authentications.
|
|
1037
1037
|
*/
|
|
1038
1038
|
platform?: PlatformWithNone[];
|
|
1039
1039
|
/**
|
|
1040
|
-
* Property by which to sort the list of
|
|
1040
|
+
* Property by which to sort the list of authentications.
|
|
1041
1041
|
*/
|
|
1042
1042
|
sort?: AuthenticationSortKeys;
|
|
1043
1043
|
/**
|
|
@@ -1065,6 +1065,10 @@ type ListDestinationsProps = {
|
|
|
1065
1065
|
* Authentication ID used by destinations.
|
|
1066
1066
|
*/
|
|
1067
1067
|
authenticationID?: string[];
|
|
1068
|
+
/**
|
|
1069
|
+
* Get the list of destinations used by a transformation.
|
|
1070
|
+
*/
|
|
1071
|
+
transformationID?: string;
|
|
1068
1072
|
/**
|
|
1069
1073
|
* Property by which to sort the destinations.
|
|
1070
1074
|
*/
|
|
@@ -1173,7 +1177,7 @@ type ListSourcesProps = {
|
|
|
1173
1177
|
*/
|
|
1174
1178
|
type?: SourceType[];
|
|
1175
1179
|
/**
|
|
1176
|
-
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1180
|
+
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1177
1181
|
*/
|
|
1178
1182
|
authenticationID?: string[];
|
|
1179
1183
|
/**
|
|
@@ -1280,9 +1284,9 @@ type ListTransformationsProps = {
|
|
|
1280
1284
|
*/
|
|
1281
1285
|
page?: number;
|
|
1282
1286
|
/**
|
|
1283
|
-
* Property by which to sort the list.
|
|
1287
|
+
* Property by which to sort the list of transformations.
|
|
1284
1288
|
*/
|
|
1285
|
-
sort?:
|
|
1289
|
+
sort?: TransformationSortKeys;
|
|
1286
1290
|
/**
|
|
1287
1291
|
* Sort order of the response, ascending or descending.
|
|
1288
1292
|
*/
|
|
@@ -2237,7 +2241,7 @@ type TransformationUpdateResponse = {
|
|
|
2237
2241
|
updatedAt: string;
|
|
2238
2242
|
};
|
|
2239
2243
|
|
|
2240
|
-
declare const apiClientVersion = "1.
|
|
2244
|
+
declare const apiClientVersion = "1.6.1";
|
|
2241
2245
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2242
2246
|
type Region = (typeof REGIONS)[number];
|
|
2243
2247
|
/**
|
|
@@ -2620,8 +2624,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2620
2624
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
2621
2625
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
2622
2626
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
2623
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
2624
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
2627
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
2628
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
2625
2629
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
2626
2630
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2627
2631
|
*/
|
|
@@ -2639,11 +2643,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2639
2643
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
2640
2644
|
* @param listDestinations.type - Destination type.
|
|
2641
2645
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
2646
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
2642
2647
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
2643
2648
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
2644
2649
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2645
2650
|
*/
|
|
2646
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2651
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2647
2652
|
/**
|
|
2648
2653
|
* Retrieves a list of events for a task run, identified by it\'s ID.
|
|
2649
2654
|
*
|
|
@@ -2698,7 +2703,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2698
2703
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
2699
2704
|
* @param listSources.page - Page number of the paginated API response.
|
|
2700
2705
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
2701
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
2706
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
2702
2707
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
2703
2708
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
2704
2709
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2757,7 +2762,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2757
2762
|
* @param listTransformations - The listTransformations object.
|
|
2758
2763
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
2759
2764
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
2760
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
2765
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
2761
2766
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
2762
2767
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2763
2768
|
*/
|
|
@@ -3035,4 +3040,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
|
3035
3040
|
|
|
3036
3041
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3037
3042
|
|
|
3038
|
-
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type 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
|
|
3043
|
+
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type Run, type RunListResponse, type RunOutcome, type RunProgress, type RunReasonCode, type RunResponse, type RunSortKeys, type RunSourcePayload, type RunSourceProps, type RunSourceResponse, type RunStatus, type RunTaskProps, type RunTaskV1Props, type RunType, type ScheduleTrigger, type ScheduleTriggerInput, type ScheduleTriggerType, type ShopifyInput, type ShopifyMarket, type ShopifyMetafield, type Source, type SourceBigCommerce, type SourceBigQuery, type SourceCSV, type SourceCommercetools, type SourceCreate, type SourceCreateResponse, type SourceDocker, type SourceGA4BigQueryExport, type SourceInput, type SourceJSON, type SourceSearch, type SourceShopify, type SourceShopifyBase, type SourceSortKeys, type SourceType, type SourceUpdate, type SourceUpdateCommercetools, type SourceUpdateDocker, type SourceUpdateInput, type SourceUpdateResponse, type SourceUpdateShopify, type 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 TransformationSearch, type TransformationSortKeys, type TransformationTry, type TransformationTryResponse, type TransformationUpdateResponse, type Trigger, type TriggerDockerSourceDiscoverProps, type TriggerType, type TriggerUpdateInput, type TryTransformationBeforeUpdateProps, type UpdateAuthenticationProps, type UpdateDestinationProps, type UpdateSourceProps, type UpdateTaskProps, type UpdateTaskV1Props, type UpdateTransformationProps, type ValidateSourceBeforeUpdateProps, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|
package/dist/node.d.ts
CHANGED
|
@@ -278,9 +278,9 @@ type AuthenticationUpdateResponse = {
|
|
|
278
278
|
type ActionType = 'append' | 'partial' | 'replace' | 'save';
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* Property by which to sort the list of
|
|
281
|
+
* Property by which to sort the list of authentications.
|
|
282
282
|
*/
|
|
283
|
-
type AuthenticationSortKeys = '
|
|
283
|
+
type AuthenticationSortKeys = 'createdAt' | 'name' | 'platform' | 'type' | 'updatedAt';
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Request body for updating an authentication resource.
|
|
@@ -415,11 +415,6 @@ type RunStatus = 'created' | 'finished' | 'idled' | 'skipped' | 'started';
|
|
|
415
415
|
*/
|
|
416
416
|
type RunType = 'discover' | 'push' | 'reindex' | 'update' | 'validate';
|
|
417
417
|
|
|
418
|
-
/**
|
|
419
|
-
* Property by which to sort the list.
|
|
420
|
-
*/
|
|
421
|
-
type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
|
|
422
|
-
|
|
423
418
|
/**
|
|
424
419
|
* Property by which to sort the list of sources.
|
|
425
420
|
*/
|
|
@@ -773,6 +768,11 @@ type TransformationCreate = {
|
|
|
773
768
|
authenticationIDs?: string[];
|
|
774
769
|
};
|
|
775
770
|
|
|
771
|
+
/**
|
|
772
|
+
* Property by which to sort the list of transformations.
|
|
773
|
+
*/
|
|
774
|
+
type TransformationSortKeys = 'createdAt' | 'name' | 'updatedAt';
|
|
775
|
+
|
|
776
776
|
type TransformationTry = {
|
|
777
777
|
/**
|
|
778
778
|
* The source code of the transformation.
|
|
@@ -1033,11 +1033,11 @@ type ListAuthenticationsProps = {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
type?: AuthenticationType[];
|
|
1035
1035
|
/**
|
|
1036
|
-
* Ecommerce platform for which to retrieve
|
|
1036
|
+
* Ecommerce platform for which to retrieve authentications.
|
|
1037
1037
|
*/
|
|
1038
1038
|
platform?: PlatformWithNone[];
|
|
1039
1039
|
/**
|
|
1040
|
-
* Property by which to sort the list of
|
|
1040
|
+
* Property by which to sort the list of authentications.
|
|
1041
1041
|
*/
|
|
1042
1042
|
sort?: AuthenticationSortKeys;
|
|
1043
1043
|
/**
|
|
@@ -1065,6 +1065,10 @@ type ListDestinationsProps = {
|
|
|
1065
1065
|
* Authentication ID used by destinations.
|
|
1066
1066
|
*/
|
|
1067
1067
|
authenticationID?: string[];
|
|
1068
|
+
/**
|
|
1069
|
+
* Get the list of destinations used by a transformation.
|
|
1070
|
+
*/
|
|
1071
|
+
transformationID?: string;
|
|
1068
1072
|
/**
|
|
1069
1073
|
* Property by which to sort the destinations.
|
|
1070
1074
|
*/
|
|
@@ -1173,7 +1177,7 @@ type ListSourcesProps = {
|
|
|
1173
1177
|
*/
|
|
1174
1178
|
type?: SourceType[];
|
|
1175
1179
|
/**
|
|
1176
|
-
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1180
|
+
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1177
1181
|
*/
|
|
1178
1182
|
authenticationID?: string[];
|
|
1179
1183
|
/**
|
|
@@ -1280,9 +1284,9 @@ type ListTransformationsProps = {
|
|
|
1280
1284
|
*/
|
|
1281
1285
|
page?: number;
|
|
1282
1286
|
/**
|
|
1283
|
-
* Property by which to sort the list.
|
|
1287
|
+
* Property by which to sort the list of transformations.
|
|
1284
1288
|
*/
|
|
1285
|
-
sort?:
|
|
1289
|
+
sort?: TransformationSortKeys;
|
|
1286
1290
|
/**
|
|
1287
1291
|
* Sort order of the response, ascending or descending.
|
|
1288
1292
|
*/
|
|
@@ -2237,7 +2241,7 @@ type TransformationUpdateResponse = {
|
|
|
2237
2241
|
updatedAt: string;
|
|
2238
2242
|
};
|
|
2239
2243
|
|
|
2240
|
-
declare const apiClientVersion = "1.
|
|
2244
|
+
declare const apiClientVersion = "1.6.1";
|
|
2241
2245
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2242
2246
|
type Region = (typeof REGIONS)[number];
|
|
2243
2247
|
/**
|
|
@@ -2620,8 +2624,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2620
2624
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
2621
2625
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
2622
2626
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
2623
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
2624
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
2627
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
2628
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
2625
2629
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
2626
2630
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2627
2631
|
*/
|
|
@@ -2639,11 +2643,12 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2639
2643
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
2640
2644
|
* @param listDestinations.type - Destination type.
|
|
2641
2645
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
2646
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
2642
2647
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
2643
2648
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
2644
2649
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2645
2650
|
*/
|
|
2646
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2651
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order }?: ListDestinationsProps, requestOptions?: RequestOptions | undefined): Promise<ListDestinationsResponse>;
|
|
2647
2652
|
/**
|
|
2648
2653
|
* Retrieves a list of events for a task run, identified by it\'s ID.
|
|
2649
2654
|
*
|
|
@@ -2698,7 +2703,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2698
2703
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
2699
2704
|
* @param listSources.page - Page number of the paginated API response.
|
|
2700
2705
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
2701
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
2706
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
2702
2707
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
2703
2708
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
2704
2709
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -2757,7 +2762,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2757
2762
|
* @param listTransformations - The listTransformations object.
|
|
2758
2763
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
2759
2764
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
2760
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
2765
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
2761
2766
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
2762
2767
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2763
2768
|
*/
|
|
@@ -3035,4 +3040,4 @@ type IngestionClient = ReturnType<typeof createIngestionClient>;
|
|
|
3035
3040
|
|
|
3036
3041
|
declare function ingestionClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): IngestionClient;
|
|
3037
3042
|
|
|
3038
|
-
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type 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
|
|
3043
|
+
export { type Action, type ActionType, type AuthAPIKey, type AuthAPIKeyPartial, type AuthAlgolia, type AuthAlgoliaInsights, type AuthAlgoliaInsightsPartial, type AuthAlgoliaPartial, type AuthBasic, type AuthBasicPartial, type AuthGoogleServiceAccount, type AuthGoogleServiceAccountPartial, type AuthInput, type AuthInputPartial, type AuthOAuth, type AuthOAuthPartial, type Authentication, type AuthenticationCreate, type AuthenticationCreateResponse, type AuthenticationSearch, type AuthenticationSortKeys, type AuthenticationType, type AuthenticationUpdate, type AuthenticationUpdateResponse, type BigCommerceChannel, type BigCommerceMetafield, type BigQueryDataType, type CommercetoolsCustomFields, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteAuthenticationProps, type DeleteDestinationProps, type DeleteResponse, type DeleteSourceProps, type DeleteTaskProps, type DeleteTaskV1Props, type DeleteTransformationProps, type Destination, type DestinationCreate, type DestinationCreateResponse, type DestinationIndexName, type DestinationInput, type DestinationSearch, type DestinationSortKeys, type DestinationType, type DestinationUpdate, type DestinationUpdateResponse, type DisableTaskProps, type DisableTaskV1Props, type DockerImageType, type DockerRegistry, type DockerStreams, type DockerStreamsInput, type DockerStreamsSyncMode, type EnableTaskProps, type EnableTaskV1Props, type EntityType, type ErrorBase, type Event, type EventSortKeys, type EventStatus, type EventType, type GetAuthenticationProps, type GetDestinationProps, type GetEventProps, type GetRunProps, type GetSourceProps, type GetTaskProps, type GetTaskV1Props, type GetTransformationProps, type IngestionClient, type ListAuthenticationsProps, type ListAuthenticationsResponse, type ListDestinationsProps, type ListDestinationsResponse, type ListEventsProps, type ListEventsResponse, type ListRunsProps, type ListSourcesProps, type ListSourcesResponse, type ListTasksProps, type ListTasksResponse, type ListTasksResponseV1, type ListTasksV1Props, type ListTransformationsProps, type ListTransformationsResponse, type MappingFieldDirective, type MappingFormatSchema, type MappingInput, type MappingKitAction, type MappingTypeCSV, type MethodType, type OnDemandTrigger, type OnDemandTriggerInput, type OnDemandTriggerType, type OrderKeys, type Pagination, type Platform, type PlatformNone, type PlatformWithNone, type PushTaskPayload, type PushTaskProps, type PushTaskRecords, type RecordType, type Region, type Run, type RunListResponse, type RunOutcome, type RunProgress, type RunReasonCode, type RunResponse, type RunSortKeys, type RunSourcePayload, type RunSourceProps, type RunSourceResponse, type RunStatus, type RunTaskProps, type RunTaskV1Props, type RunType, type ScheduleTrigger, type ScheduleTriggerInput, type ScheduleTriggerType, type ShopifyInput, type ShopifyMarket, type ShopifyMetafield, type Source, type SourceBigCommerce, type SourceBigQuery, type SourceCSV, type SourceCommercetools, type SourceCreate, type SourceCreateResponse, type SourceDocker, type SourceGA4BigQueryExport, type SourceInput, type SourceJSON, type SourceSearch, type SourceShopify, type SourceShopifyBase, type SourceSortKeys, type SourceType, type SourceUpdate, type SourceUpdateCommercetools, type SourceUpdateDocker, type SourceUpdateInput, type SourceUpdateResponse, type SourceUpdateShopify, type 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 TransformationSearch, type TransformationSortKeys, type TransformationTry, type TransformationTryResponse, type TransformationUpdateResponse, type Trigger, type TriggerDockerSourceDiscoverProps, type TriggerType, type TriggerUpdateInput, type TryTransformationBeforeUpdateProps, type UpdateAuthenticationProps, type UpdateDestinationProps, type UpdateSourceProps, type UpdateTaskProps, type UpdateTaskV1Props, type UpdateTransformationProps, type ValidateSourceBeforeUpdateProps, type Window, apiClientVersion, ingestionClient, isOnDemandTrigger, isScheduleTrigger, isSubscriptionTrigger };
|
|
@@ -29,7 +29,7 @@ __export(ingestionClient_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(ingestionClient_exports);
|
|
31
31
|
var import_client_common = require("@algolia/client-common");
|
|
32
|
-
var apiClientVersion = "1.
|
|
32
|
+
var apiClientVersion = "1.6.1";
|
|
33
33
|
var REGIONS = ["eu", "us"];
|
|
34
34
|
function getDefaultHosts(region) {
|
|
35
35
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -910,8 +910,8 @@ function createIngestionClient({
|
|
|
910
910
|
* @param listAuthentications.itemsPerPage - Number of items per page.
|
|
911
911
|
* @param listAuthentications.page - Page number of the paginated API response.
|
|
912
912
|
* @param listAuthentications.type - Type of authentication resource to retrieve.
|
|
913
|
-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve
|
|
914
|
-
* @param listAuthentications.sort - Property by which to sort the list of
|
|
913
|
+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
|
|
914
|
+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
|
|
915
915
|
* @param listAuthentications.order - Sort order of the response, ascending or descending.
|
|
916
916
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
917
917
|
*/
|
|
@@ -958,11 +958,12 @@ function createIngestionClient({
|
|
|
958
958
|
* @param listDestinations.page - Page number of the paginated API response.
|
|
959
959
|
* @param listDestinations.type - Destination type.
|
|
960
960
|
* @param listDestinations.authenticationID - Authentication ID used by destinations.
|
|
961
|
+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
|
|
961
962
|
* @param listDestinations.sort - Property by which to sort the destinations.
|
|
962
963
|
* @param listDestinations.order - Sort order of the response, ascending or descending.
|
|
963
964
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
964
965
|
*/
|
|
965
|
-
listDestinations({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
|
|
966
|
+
listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
|
|
966
967
|
const requestPath = "/1/destinations";
|
|
967
968
|
const headers = {};
|
|
968
969
|
const queryParameters = {};
|
|
@@ -978,6 +979,9 @@ function createIngestionClient({
|
|
|
978
979
|
if (authenticationID !== void 0) {
|
|
979
980
|
queryParameters.authenticationID = authenticationID.toString();
|
|
980
981
|
}
|
|
982
|
+
if (transformationID !== void 0) {
|
|
983
|
+
queryParameters.transformationID = transformationID.toString();
|
|
984
|
+
}
|
|
981
985
|
if (sort !== void 0) {
|
|
982
986
|
queryParameters.sort = sort.toString();
|
|
983
987
|
}
|
|
@@ -1122,7 +1126,7 @@ function createIngestionClient({
|
|
|
1122
1126
|
* @param listSources.itemsPerPage - Number of items per page.
|
|
1123
1127
|
* @param listSources.page - Page number of the paginated API response.
|
|
1124
1128
|
* @param listSources.type - Source type. Some sources require authentication.
|
|
1125
|
-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication
|
|
1129
|
+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
|
|
1126
1130
|
* @param listSources.sort - Property by which to sort the list of sources.
|
|
1127
1131
|
* @param listSources.order - Sort order of the response, ascending or descending.
|
|
1128
1132
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1286,7 +1290,7 @@ function createIngestionClient({
|
|
|
1286
1290
|
* @param listTransformations - The listTransformations object.
|
|
1287
1291
|
* @param listTransformations.itemsPerPage - Number of items per page.
|
|
1288
1292
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1289
|
-
* @param listTransformations.sort - Property by which to sort the list.
|
|
1293
|
+
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1290
1294
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1291
1295
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1292
1296
|
*/
|