Skip to content

Commit 7072e01

Browse files
fix(specs): ingestion docker task input (generated)
algolia/api-clients-automation#3488 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 50d36bc commit 7072e01

File tree

5 files changed

+32
-5
lines changed

5 files changed

+32
-5
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// 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.
2+
3+
import type { DockerStreamsSyncMode } from './dockerStreamsSyncMode';
4+
5+
export type DockerStreams = {
6+
/**
7+
* The name of the stream to fetch the data from (e.g. Table name).
8+
*/
9+
name: string;
10+
11+
/**
12+
* The properties of the stream to select (e.g. Column).
13+
*/
14+
properties?: string[];
15+
16+
syncMode: DockerStreamsSyncMode;
17+
};
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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

3+
import type { DockerStreams } from './dockerStreams';
4+
35
/**
46
* The selected streams of a singer or airbyte connector.
57
*/
68
export type DockerStreamsInput = {
7-
streams: Record<string, any>;
9+
streams: DockerStreams[];
810
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 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.
2+
3+
/**
4+
* The strategy to use to fetch the data.
5+
*/
6+
export type DockerStreamsSyncMode = 'fullTable' | 'incremental';

packages/ingestion/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export * from './destinationUpdate';
4343
export * from './destinationUpdateResponse';
4444
export * from './dockerImageType';
4545
export * from './dockerRegistry';
46+
export * from './dockerStreams';
4647
export * from './dockerStreamsInput';
48+
export * from './dockerStreamsSyncMode';
4749
export * from './entityType';
4850
export * from './errorBase';
4951
export * from './event';

packages/ingestion/src/ingestionClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,24 +2416,24 @@ export function createIngestionClient({
24162416
* @param transformationTry - The transformationTry object.
24172417
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
24182418
*/
2419-
tryTransformations(
2419+
tryTransformation(
24202420
transformationTry: TransformationTry,
24212421
requestOptions?: RequestOptions
24222422
): Promise<TransformationTryResponse> {
24232423
if (!transformationTry) {
24242424
throw new Error(
2425-
'Parameter `transformationTry` is required when calling `tryTransformations`.'
2425+
'Parameter `transformationTry` is required when calling `tryTransformation`.'
24262426
);
24272427
}
24282428

24292429
if (!transformationTry.code) {
24302430
throw new Error(
2431-
'Parameter `transformationTry.code` is required when calling `tryTransformations`.'
2431+
'Parameter `transformationTry.code` is required when calling `tryTransformation`.'
24322432
);
24332433
}
24342434
if (!transformationTry.sampleRecord) {
24352435
throw new Error(
2436-
'Parameter `transformationTry.sampleRecord` is required when calling `tryTransformations`.'
2436+
'Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.'
24372437
);
24382438
}
24392439

0 commit comments

Comments
 (0)