diff --git a/package.json b/package.json index bb6ae85a8..0de31c4da 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,14 @@ "packages/*" ], "scripts": { - "build:all": "lerna run build --skip-nx-cache --include-dependencies", - "build:many": "lerna run build --skip-nx-cache --include-dependencies --scope ${0:-'{@algolia/*,algoliasearch}'}", - "clean": "lerna run clean --include-dependencies", + "build:all": "lerna run build --include-dependencies", + "build:many": "lerna run build --scope '@algolia/requester-testing' --scope ${0:-'{@algolia/*,algoliasearch}'} --include-dependencies", + "clean": "lerna run clean", "release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes", "release:publish": "tsc --project scripts/tsconfig.json && node scripts/dist/scripts/publish.js", "test": "lerna run test $*", "test:size": "bundlesize", - "test:bundle": "lerna run test:bundle --verbose --skip-nx-cache --include-dependencies" + "test:bundle": "lerna run test:bundle --verbose --include-dependencies" }, "devDependencies": { "@types/node": "22.5.5", diff --git a/packages/ingestion/model/authenticationSortKeys.ts b/packages/ingestion/model/authenticationSortKeys.ts index 385808032..c85d530d6 100644 --- a/packages/ingestion/model/authenticationSortKeys.ts +++ b/packages/ingestion/model/authenticationSortKeys.ts @@ -1,6 +1,6 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. /** - * Property by which to sort the list of authentication resources. + * Property by which to sort the list of authentications. */ -export type AuthenticationSortKeys = 'auth_type' | 'createdAt' | 'name' | 'platform' | 'updatedAt'; +export type AuthenticationSortKeys = 'createdAt' | 'name' | 'platform' | 'type' | 'updatedAt'; diff --git a/packages/ingestion/model/clientMethodProps.ts b/packages/ingestion/model/clientMethodProps.ts index 870c66c71..612c1dd70 100644 --- a/packages/ingestion/model/clientMethodProps.ts +++ b/packages/ingestion/model/clientMethodProps.ts @@ -17,7 +17,6 @@ import type { RunSortKeys } from './runSortKeys'; import type { RunSourcePayload } from './runSourcePayload'; import type { RunStatus } from './runStatus'; import type { RunType } from './runType'; -import type { SortKeys } from './sortKeys'; import type { SourceSortKeys } from './sourceSortKeys'; import type { SourceType } from './sourceType'; import type { SourceUpdate } from './sourceUpdate'; @@ -25,6 +24,7 @@ import type { TaskSortKeys } from './taskSortKeys'; import type { TaskUpdate } from './taskUpdate'; import type { TaskUpdateV1 } from './taskUpdateV1'; import type { TransformationCreate } from './transformationCreate'; +import type { TransformationSortKeys } from './transformationSortKeys'; import type { TransformationTry } from './transformationTry'; import type { TriggerType } from './triggerType'; @@ -293,11 +293,11 @@ export type ListAuthenticationsProps = { */ type?: AuthenticationType[]; /** - * Ecommerce platform for which to retrieve authentication resources. + * Ecommerce platform for which to retrieve authentications. */ platform?: PlatformWithNone[]; /** - * Property by which to sort the list of authentication resources. + * Property by which to sort the list of authentications. */ sort?: AuthenticationSortKeys; /** @@ -326,6 +326,10 @@ export type ListDestinationsProps = { * Authentication ID used by destinations. */ authenticationID?: string[]; + /** + * Get the list of destinations used by a transformation. + */ + transformationID?: string; /** * Property by which to sort the destinations. */ @@ -437,7 +441,7 @@ export type ListSourcesProps = { */ type?: SourceType[]; /** - * Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource. + * Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication. */ authenticationID?: string[]; /** @@ -547,9 +551,9 @@ export type ListTransformationsProps = { */ page?: number; /** - * Property by which to sort the list. + * Property by which to sort the list of transformations. */ - sort?: SortKeys; + sort?: TransformationSortKeys; /** * Sort order of the response, ascending or descending. */ diff --git a/packages/ingestion/model/index.ts b/packages/ingestion/model/index.ts index fb5ace55b..ca766816c 100644 --- a/packages/ingestion/model/index.ts +++ b/packages/ingestion/model/index.ts @@ -91,7 +91,6 @@ export * from './scheduleTriggerType'; export * from './shopifyInput'; export * from './shopifyMarket'; export * from './shopifyMetafield'; -export * from './sortKeys'; export * from './source'; export * from './sourceBigCommerce'; export * from './sourceBigQuery'; @@ -137,6 +136,7 @@ export * from './transformationCreate'; export * from './transformationCreateResponse'; export * from './transformationError'; export * from './transformationSearch'; +export * from './transformationSortKeys'; export * from './transformationTry'; export * from './transformationTryResponse'; export * from './transformationUpdateResponse'; diff --git a/packages/ingestion/model/sortKeys.ts b/packages/ingestion/model/transformationSortKeys.ts similarity index 59% rename from packages/ingestion/model/sortKeys.ts rename to packages/ingestion/model/transformationSortKeys.ts index 82fd657a0..8b2dd3674 100644 --- a/packages/ingestion/model/sortKeys.ts +++ b/packages/ingestion/model/transformationSortKeys.ts @@ -1,6 +1,6 @@ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. /** - * Property by which to sort the list. + * Property by which to sort the list of transformations. */ -export type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt'; +export type TransformationSortKeys = 'createdAt' | 'name' | 'updatedAt'; diff --git a/packages/ingestion/src/ingestionClient.ts b/packages/ingestion/src/ingestionClient.ts index 8ee72ca0d..1de1a80d4 100644 --- a/packages/ingestion/src/ingestionClient.ts +++ b/packages/ingestion/src/ingestionClient.ts @@ -1173,8 +1173,8 @@ export function createIngestionClient({ * @param listAuthentications.itemsPerPage - Number of items per page. * @param listAuthentications.page - Page number of the paginated API response. * @param listAuthentications.type - Type of authentication resource to retrieve. - * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentication resources. - * @param listAuthentications.sort - Property by which to sort the list of authentication resources. + * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications. + * @param listAuthentications.sort - Property by which to sort the list of authentications. * @param listAuthentications.order - Sort order of the response, ascending or descending. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ @@ -1185,7 +1185,6 @@ export function createIngestionClient({ const requestPath = '/1/authentications'; const headers: Headers = {}; const queryParameters: QueryParameters = {}; - if (itemsPerPage !== undefined) { queryParameters.itemsPerPage = itemsPerPage.toString(); } @@ -1199,6 +1198,7 @@ export function createIngestionClient({ if (platform !== undefined) { queryParameters.platform = platform.toString(); } + if (sort !== undefined) { queryParameters.sort = sort.toString(); } @@ -1229,12 +1229,13 @@ export function createIngestionClient({ * @param listDestinations.page - Page number of the paginated API response. * @param listDestinations.type - Destination type. * @param listDestinations.authenticationID - Authentication ID used by destinations. + * @param listDestinations.transformationID - Get the list of destinations used by a transformation. * @param listDestinations.sort - Property by which to sort the destinations. * @param listDestinations.order - Sort order of the response, ascending or descending. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ listDestinations( - { itemsPerPage, page, type, authenticationID, sort, order }: ListDestinationsProps = {}, + { itemsPerPage, page, type, authenticationID, transformationID, sort, order }: ListDestinationsProps = {}, requestOptions: RequestOptions | undefined = undefined, ): Promise { const requestPath = '/1/destinations'; @@ -1249,9 +1250,13 @@ export function createIngestionClient({ if (type !== undefined) { queryParameters.type = type.toString(); } + if (authenticationID !== undefined) { queryParameters.authenticationID = authenticationID.toString(); } + if (transformationID !== undefined) { + queryParameters.transformationID = transformationID.toString(); + } if (sort !== undefined) { queryParameters.sort = sort.toString(); } @@ -1303,7 +1308,6 @@ export function createIngestionClient({ if (itemsPerPage !== undefined) { queryParameters.itemsPerPage = itemsPerPage.toString(); } - if (page !== undefined) { queryParameters.page = page.toString(); } @@ -1313,6 +1317,7 @@ export function createIngestionClient({ if (type !== undefined) { queryParameters.type = type.toString(); } + if (sort !== undefined) { queryParameters.sort = sort.toString(); } @@ -1369,7 +1374,6 @@ export function createIngestionClient({ if (page !== undefined) { queryParameters.page = page.toString(); } - if (status !== undefined) { queryParameters.status = status.toString(); } @@ -1382,7 +1386,6 @@ export function createIngestionClient({ if (sort !== undefined) { queryParameters.sort = sort.toString(); } - if (order !== undefined) { queryParameters.order = order.toString(); } @@ -1415,7 +1418,7 @@ export function createIngestionClient({ * @param listSources.itemsPerPage - Number of items per page. * @param listSources.page - Page number of the paginated API response. * @param listSources.type - Source type. Some sources require authentication. - * @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource. + * @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication. * @param listSources.sort - Property by which to sort the list of sources. * @param listSources.order - Sort order of the response, ascending or descending. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. @@ -1433,7 +1436,6 @@ export function createIngestionClient({ if (page !== undefined) { queryParameters.page = page.toString(); } - if (type !== undefined) { queryParameters.type = type.toString(); } @@ -1443,6 +1445,7 @@ export function createIngestionClient({ if (sort !== undefined) { queryParameters.sort = sort.toString(); } + if (order !== undefined) { queryParameters.order = order.toString(); } @@ -1493,22 +1496,24 @@ export function createIngestionClient({ if (action !== undefined) { queryParameters.action = action.toString(); } - if (enabled !== undefined) { queryParameters.enabled = enabled.toString(); } if (sourceID !== undefined) { queryParameters.sourceID = sourceID.toString(); } + if (destinationID !== undefined) { queryParameters.destinationID = destinationID.toString(); } + if (triggerType !== undefined) { queryParameters.triggerType = triggerType.toString(); } if (sort !== undefined) { queryParameters.sort = sort.toString(); } + if (order !== undefined) { queryParameters.order = order.toString(); } @@ -1550,17 +1555,16 @@ export function createIngestionClient({ const requestPath = '/1/tasks'; const headers: Headers = {}; const queryParameters: QueryParameters = {}; - if (itemsPerPage !== undefined) { queryParameters.itemsPerPage = itemsPerPage.toString(); } if (page !== undefined) { queryParameters.page = page.toString(); } - if (action !== undefined) { queryParameters.action = action.toString(); } + if (enabled !== undefined) { queryParameters.enabled = enabled.toString(); } @@ -1576,7 +1580,6 @@ export function createIngestionClient({ if (sort !== undefined) { queryParameters.sort = sort.toString(); } - if (order !== undefined) { queryParameters.order = order.toString(); } @@ -1602,7 +1605,7 @@ export function createIngestionClient({ * @param listTransformations - The listTransformations object. * @param listTransformations.itemsPerPage - Number of items per page. * @param listTransformations.page - Page number of the paginated API response. - * @param listTransformations.sort - Property by which to sort the list. + * @param listTransformations.sort - Property by which to sort the list of transformations. * @param listTransformations.order - Sort order of the response, ascending or descending. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ @@ -1613,7 +1616,6 @@ export function createIngestionClient({ const requestPath = '/1/transformations'; const headers: Headers = {}; const queryParameters: QueryParameters = {}; - if (itemsPerPage !== undefined) { queryParameters.itemsPerPage = itemsPerPage.toString(); }