Skip to content

Commit

Permalink
fix(specs): correct query params for ingestion [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3830

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: shortcuts <vannicattec@gmail.com>
  • Loading branch information
3 people committed Sep 25, 2024
1 parent aa756bc commit 74d2722
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 30 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/ingestion/model/authenticationSortKeys.ts
Original file line number Diff line number Diff line change
@@ -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';
16 changes: 10 additions & 6 deletions packages/ingestion/model/clientMethodProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ 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';
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';

Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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[];
/**
Expand Down Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/ingestion/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
32 changes: 17 additions & 15 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -1185,7 +1185,6 @@ export function createIngestionClient({
const requestPath = '/1/authentications';
const headers: Headers = {};
const queryParameters: QueryParameters = {};

if (itemsPerPage !== undefined) {
queryParameters.itemsPerPage = itemsPerPage.toString();
}
Expand All @@ -1199,6 +1198,7 @@ export function createIngestionClient({
if (platform !== undefined) {
queryParameters.platform = platform.toString();
}

if (sort !== undefined) {
queryParameters.sort = sort.toString();
}
Expand Down Expand Up @@ -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<ListDestinationsResponse> {
const requestPath = '/1/destinations';
Expand All @@ -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();
}
Expand Down Expand Up @@ -1303,7 +1308,6 @@ export function createIngestionClient({
if (itemsPerPage !== undefined) {
queryParameters.itemsPerPage = itemsPerPage.toString();
}

if (page !== undefined) {
queryParameters.page = page.toString();
}
Expand All @@ -1313,6 +1317,7 @@ export function createIngestionClient({
if (type !== undefined) {
queryParameters.type = type.toString();
}

if (sort !== undefined) {
queryParameters.sort = sort.toString();
}
Expand Down Expand Up @@ -1369,7 +1374,6 @@ export function createIngestionClient({
if (page !== undefined) {
queryParameters.page = page.toString();
}

if (status !== undefined) {
queryParameters.status = status.toString();
}
Expand All @@ -1382,7 +1386,6 @@ export function createIngestionClient({
if (sort !== undefined) {
queryParameters.sort = sort.toString();
}

if (order !== undefined) {
queryParameters.order = order.toString();
}
Expand Down Expand Up @@ -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.
Expand All @@ -1433,7 +1436,6 @@ export function createIngestionClient({
if (page !== undefined) {
queryParameters.page = page.toString();
}

if (type !== undefined) {
queryParameters.type = type.toString();
}
Expand All @@ -1443,6 +1445,7 @@ export function createIngestionClient({
if (sort !== undefined) {
queryParameters.sort = sort.toString();
}

if (order !== undefined) {
queryParameters.order = order.toString();
}
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand All @@ -1576,7 +1580,6 @@ export function createIngestionClient({
if (sort !== undefined) {
queryParameters.sort = sort.toString();
}

if (order !== undefined) {
queryParameters.order = order.toString();
}
Expand All @@ -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.
*/
Expand All @@ -1613,7 +1616,6 @@ export function createIngestionClient({
const requestPath = '/1/transformations';
const headers: Headers = {};
const queryParameters: QueryParameters = {};

if (itemsPerPage !== undefined) {
queryParameters.itemsPerPage = itemsPerPage.toString();
}
Expand Down

0 comments on commit 74d2722

Please sign in to comment.