Skip to content

Commit 74d2722

Browse files
algolia-botmillotpshortcuts
committed
fix(specs): correct query params for ingestion [skip-bc] (generated)
algolia/api-clients-automation#3830 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent aa756bc commit 74d2722

File tree

6 files changed

+36
-30
lines changed

6 files changed

+36
-30
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"packages/*"
77
],
88
"scripts": {
9-
"build:all": "lerna run build --skip-nx-cache --include-dependencies",
10-
"build:many": "lerna run build --skip-nx-cache --include-dependencies --scope ${0:-'{@algolia/*,algoliasearch}'}",
11-
"clean": "lerna run clean --include-dependencies",
9+
"build:all": "lerna run build --include-dependencies",
10+
"build:many": "lerna run build --scope '@algolia/requester-testing' --scope ${0:-'{@algolia/*,algoliasearch}'} --include-dependencies",
11+
"clean": "lerna run clean",
1212
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes",
1313
"release:publish": "tsc --project scripts/tsconfig.json && node scripts/dist/scripts/publish.js",
1414
"test": "lerna run test $*",
1515
"test:size": "bundlesize",
16-
"test:bundle": "lerna run test:bundle --verbose --skip-nx-cache --include-dependencies"
16+
"test:bundle": "lerna run test:bundle --verbose --include-dependencies"
1717
},
1818
"devDependencies": {
1919
"@types/node": "22.5.5",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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.
22

33
/**
4-
* Property by which to sort the list of authentication resources.
4+
* Property by which to sort the list of authentications.
55
*/
6-
export type AuthenticationSortKeys = 'auth_type' | 'createdAt' | 'name' | 'platform' | 'updatedAt';
6+
export type AuthenticationSortKeys = 'createdAt' | 'name' | 'platform' | 'type' | 'updatedAt';

packages/ingestion/model/clientMethodProps.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import type { RunSortKeys } from './runSortKeys';
1717
import type { RunSourcePayload } from './runSourcePayload';
1818
import type { RunStatus } from './runStatus';
1919
import type { RunType } from './runType';
20-
import type { SortKeys } from './sortKeys';
2120
import type { SourceSortKeys } from './sourceSortKeys';
2221
import type { SourceType } from './sourceType';
2322
import type { SourceUpdate } from './sourceUpdate';
2423
import type { TaskSortKeys } from './taskSortKeys';
2524
import type { TaskUpdate } from './taskUpdate';
2625
import type { TaskUpdateV1 } from './taskUpdateV1';
2726
import type { TransformationCreate } from './transformationCreate';
27+
import type { TransformationSortKeys } from './transformationSortKeys';
2828
import type { TransformationTry } from './transformationTry';
2929
import type { TriggerType } from './triggerType';
3030

@@ -293,11 +293,11 @@ export type ListAuthenticationsProps = {
293293
*/
294294
type?: AuthenticationType[];
295295
/**
296-
* Ecommerce platform for which to retrieve authentication resources.
296+
* Ecommerce platform for which to retrieve authentications.
297297
*/
298298
platform?: PlatformWithNone[];
299299
/**
300-
* Property by which to sort the list of authentication resources.
300+
* Property by which to sort the list of authentications.
301301
*/
302302
sort?: AuthenticationSortKeys;
303303
/**
@@ -326,6 +326,10 @@ export type ListDestinationsProps = {
326326
* Authentication ID used by destinations.
327327
*/
328328
authenticationID?: string[];
329+
/**
330+
* Get the list of destinations used by a transformation.
331+
*/
332+
transformationID?: string;
329333
/**
330334
* Property by which to sort the destinations.
331335
*/
@@ -437,7 +441,7 @@ export type ListSourcesProps = {
437441
*/
438442
type?: SourceType[];
439443
/**
440-
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource.
444+
* Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
441445
*/
442446
authenticationID?: string[];
443447
/**
@@ -547,9 +551,9 @@ export type ListTransformationsProps = {
547551
*/
548552
page?: number;
549553
/**
550-
* Property by which to sort the list.
554+
* Property by which to sort the list of transformations.
551555
*/
552-
sort?: SortKeys;
556+
sort?: TransformationSortKeys;
553557
/**
554558
* Sort order of the response, ascending or descending.
555559
*/

packages/ingestion/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export * from './scheduleTriggerType';
9191
export * from './shopifyInput';
9292
export * from './shopifyMarket';
9393
export * from './shopifyMetafield';
94-
export * from './sortKeys';
9594
export * from './source';
9695
export * from './sourceBigCommerce';
9796
export * from './sourceBigQuery';
@@ -137,6 +136,7 @@ export * from './transformationCreate';
137136
export * from './transformationCreateResponse';
138137
export * from './transformationError';
139138
export * from './transformationSearch';
139+
export * from './transformationSortKeys';
140140
export * from './transformationTry';
141141
export * from './transformationTryResponse';
142142
export * from './transformationUpdateResponse';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 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.
22

33
/**
4-
* Property by which to sort the list.
4+
* Property by which to sort the list of transformations.
55
*/
6-
export type SortKeys = 'createdAt' | 'name' | 'type' | 'updatedAt';
6+
export type TransformationSortKeys = 'createdAt' | 'name' | 'updatedAt';

packages/ingestion/src/ingestionClient.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,8 @@ export function createIngestionClient({
11731173
* @param listAuthentications.itemsPerPage - Number of items per page.
11741174
* @param listAuthentications.page - Page number of the paginated API response.
11751175
* @param listAuthentications.type - Type of authentication resource to retrieve.
1176-
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentication resources.
1177-
* @param listAuthentications.sort - Property by which to sort the list of authentication resources.
1176+
* @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
1177+
* @param listAuthentications.sort - Property by which to sort the list of authentications.
11781178
* @param listAuthentications.order - Sort order of the response, ascending or descending.
11791179
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
11801180
*/
@@ -1185,7 +1185,6 @@ export function createIngestionClient({
11851185
const requestPath = '/1/authentications';
11861186
const headers: Headers = {};
11871187
const queryParameters: QueryParameters = {};
1188-
11891188
if (itemsPerPage !== undefined) {
11901189
queryParameters.itemsPerPage = itemsPerPage.toString();
11911190
}
@@ -1199,6 +1198,7 @@ export function createIngestionClient({
11991198
if (platform !== undefined) {
12001199
queryParameters.platform = platform.toString();
12011200
}
1201+
12021202
if (sort !== undefined) {
12031203
queryParameters.sort = sort.toString();
12041204
}
@@ -1229,12 +1229,13 @@ export function createIngestionClient({
12291229
* @param listDestinations.page - Page number of the paginated API response.
12301230
* @param listDestinations.type - Destination type.
12311231
* @param listDestinations.authenticationID - Authentication ID used by destinations.
1232+
* @param listDestinations.transformationID - Get the list of destinations used by a transformation.
12321233
* @param listDestinations.sort - Property by which to sort the destinations.
12331234
* @param listDestinations.order - Sort order of the response, ascending or descending.
12341235
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
12351236
*/
12361237
listDestinations(
1237-
{ itemsPerPage, page, type, authenticationID, sort, order }: ListDestinationsProps = {},
1238+
{ itemsPerPage, page, type, authenticationID, transformationID, sort, order }: ListDestinationsProps = {},
12381239
requestOptions: RequestOptions | undefined = undefined,
12391240
): Promise<ListDestinationsResponse> {
12401241
const requestPath = '/1/destinations';
@@ -1249,9 +1250,13 @@ export function createIngestionClient({
12491250
if (type !== undefined) {
12501251
queryParameters.type = type.toString();
12511252
}
1253+
12521254
if (authenticationID !== undefined) {
12531255
queryParameters.authenticationID = authenticationID.toString();
12541256
}
1257+
if (transformationID !== undefined) {
1258+
queryParameters.transformationID = transformationID.toString();
1259+
}
12551260
if (sort !== undefined) {
12561261
queryParameters.sort = sort.toString();
12571262
}
@@ -1303,7 +1308,6 @@ export function createIngestionClient({
13031308
if (itemsPerPage !== undefined) {
13041309
queryParameters.itemsPerPage = itemsPerPage.toString();
13051310
}
1306-
13071311
if (page !== undefined) {
13081312
queryParameters.page = page.toString();
13091313
}
@@ -1313,6 +1317,7 @@ export function createIngestionClient({
13131317
if (type !== undefined) {
13141318
queryParameters.type = type.toString();
13151319
}
1320+
13161321
if (sort !== undefined) {
13171322
queryParameters.sort = sort.toString();
13181323
}
@@ -1369,7 +1374,6 @@ export function createIngestionClient({
13691374
if (page !== undefined) {
13701375
queryParameters.page = page.toString();
13711376
}
1372-
13731377
if (status !== undefined) {
13741378
queryParameters.status = status.toString();
13751379
}
@@ -1382,7 +1386,6 @@ export function createIngestionClient({
13821386
if (sort !== undefined) {
13831387
queryParameters.sort = sort.toString();
13841388
}
1385-
13861389
if (order !== undefined) {
13871390
queryParameters.order = order.toString();
13881391
}
@@ -1415,7 +1418,7 @@ export function createIngestionClient({
14151418
* @param listSources.itemsPerPage - Number of items per page.
14161419
* @param listSources.page - Page number of the paginated API response.
14171420
* @param listSources.type - Source type. Some sources require authentication.
1418-
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication resource.
1421+
* @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
14191422
* @param listSources.sort - Property by which to sort the list of sources.
14201423
* @param listSources.order - Sort order of the response, ascending or descending.
14211424
* @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({
14331436
if (page !== undefined) {
14341437
queryParameters.page = page.toString();
14351438
}
1436-
14371439
if (type !== undefined) {
14381440
queryParameters.type = type.toString();
14391441
}
@@ -1443,6 +1445,7 @@ export function createIngestionClient({
14431445
if (sort !== undefined) {
14441446
queryParameters.sort = sort.toString();
14451447
}
1448+
14461449
if (order !== undefined) {
14471450
queryParameters.order = order.toString();
14481451
}
@@ -1493,22 +1496,24 @@ export function createIngestionClient({
14931496
if (action !== undefined) {
14941497
queryParameters.action = action.toString();
14951498
}
1496-
14971499
if (enabled !== undefined) {
14981500
queryParameters.enabled = enabled.toString();
14991501
}
15001502
if (sourceID !== undefined) {
15011503
queryParameters.sourceID = sourceID.toString();
15021504
}
1505+
15031506
if (destinationID !== undefined) {
15041507
queryParameters.destinationID = destinationID.toString();
15051508
}
1509+
15061510
if (triggerType !== undefined) {
15071511
queryParameters.triggerType = triggerType.toString();
15081512
}
15091513
if (sort !== undefined) {
15101514
queryParameters.sort = sort.toString();
15111515
}
1516+
15121517
if (order !== undefined) {
15131518
queryParameters.order = order.toString();
15141519
}
@@ -1550,17 +1555,16 @@ export function createIngestionClient({
15501555
const requestPath = '/1/tasks';
15511556
const headers: Headers = {};
15521557
const queryParameters: QueryParameters = {};
1553-
15541558
if (itemsPerPage !== undefined) {
15551559
queryParameters.itemsPerPage = itemsPerPage.toString();
15561560
}
15571561
if (page !== undefined) {
15581562
queryParameters.page = page.toString();
15591563
}
1560-
15611564
if (action !== undefined) {
15621565
queryParameters.action = action.toString();
15631566
}
1567+
15641568
if (enabled !== undefined) {
15651569
queryParameters.enabled = enabled.toString();
15661570
}
@@ -1576,7 +1580,6 @@ export function createIngestionClient({
15761580
if (sort !== undefined) {
15771581
queryParameters.sort = sort.toString();
15781582
}
1579-
15801583
if (order !== undefined) {
15811584
queryParameters.order = order.toString();
15821585
}
@@ -1602,7 +1605,7 @@ export function createIngestionClient({
16021605
* @param listTransformations - The listTransformations object.
16031606
* @param listTransformations.itemsPerPage - Number of items per page.
16041607
* @param listTransformations.page - Page number of the paginated API response.
1605-
* @param listTransformations.sort - Property by which to sort the list.
1608+
* @param listTransformations.sort - Property by which to sort the list of transformations.
16061609
* @param listTransformations.order - Sort order of the response, ascending or descending.
16071610
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
16081611
*/
@@ -1613,7 +1616,6 @@ export function createIngestionClient({
16131616
const requestPath = '/1/transformations';
16141617
const headers: Headers = {};
16151618
const queryParameters: QueryParameters = {};
1616-
16171619
if (itemsPerPage !== undefined) {
16181620
queryParameters.itemsPerPage = itemsPerPage.toString();
16191621
}

0 commit comments

Comments
 (0)