Skip to content

Commit f5973c3

Browse files
algolia-botmillotp
andcommitted
fix(specs): browse response required properties
algolia/api-clients-automation#3348 Co-authored-by: Pierre Millot <[email protected]>
1 parent 30a0ad6 commit f5973c3

9 files changed

+13
-59
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
export type DockerStreamsInput = {
4+
streams: Record<string, any>;
5+
};

packages/ingestion/model/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export * from './destinationUpdate';
4141
export * from './destinationUpdateResponse';
4242
export * from './dockerImageType';
4343
export * from './dockerRegistry';
44+
export * from './dockerStreamsInput';
4445
export * from './errorBase';
4546
export * from './event';
4647
export * from './eventSortKeys';
@@ -58,7 +59,6 @@ export * from './mappingInput';
5859
export * from './mappingKitAction';
5960
export * from './mappingTypeCSV';
6061
export * from './methodType';
61-
export * from './onDemandDateUtilsInput';
6262
export * from './onDemandTrigger';
6363
export * from './onDemandTriggerInput';
6464
export * from './onDemandTriggerType';
@@ -77,7 +77,6 @@ export * from './runResponse';
7777
export * from './runSortKeys';
7878
export * from './runStatus';
7979
export * from './runType';
80-
export * from './scheduleDateUtilsInput';
8180
export * from './scheduleTrigger';
8281
export * from './scheduleTriggerInput';
8382
export * from './scheduleTriggerType';
@@ -108,9 +107,9 @@ export * from './sourceUpdateInput';
108107
export * from './sourceUpdateResponse';
109108
export * from './sourceUpdateShopify';
110109
export * from './sourceWatchResponse';
110+
export * from './streamingInput';
111111
export * from './streamingTrigger';
112112
export * from './streamingTriggerType';
113-
export * from './streamingUtilsInput';
114113
export * from './subscriptionTrigger';
115114
export * from './subscriptionTriggerType';
116115
export * from './task';

packages/ingestion/model/onDemandDateUtilsInput.ts

-20
This file was deleted.

packages/ingestion/model/scheduleDateUtilsInput.ts

-15
This file was deleted.

packages/ingestion/model/streamingUtilsInput.ts packages/ingestion/model/streamingInput.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import type { MappingInput } from './mappingInput';
55
/**
66
* Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
77
*/
8-
export type StreamingUtilsInput = {
8+
export type StreamingInput = {
99
mapping: MappingInput;
1010
};

packages/ingestion/model/taskInput.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +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 { OnDemandDateUtilsInput } from './onDemandDateUtilsInput';
4-
import type { ScheduleDateUtilsInput } from './scheduleDateUtilsInput';
3+
import type { DockerStreamsInput } from './dockerStreamsInput';
54
import type { ShopifyInput } from './shopifyInput';
6-
import type { StreamingUtilsInput } from './streamingUtilsInput';
5+
import type { StreamingInput } from './streamingInput';
76

87
/**
98
* Configuration of the task, depending on its type.
109
*/
11-
export type TaskInput =
12-
| OnDemandDateUtilsInput
13-
| ScheduleDateUtilsInput
14-
| ShopifyInput
15-
| StreamingUtilsInput;
10+
export type TaskInput = DockerStreamsInput | ShopifyInput | StreamingInput;

packages/ingestion/model/transformation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type Transformation = {
1919
/**
2020
* A descriptive name for your transformation of what it does.
2121
*/
22-
description: string;
22+
description?: string;
2323

2424
/**
2525
* Date of creation in RFC 3339 format.

packages/ingestion/model/transformationCreate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ export type TransformationCreate = {
1717
/**
1818
* A descriptive name for your transformation of what it does.
1919
*/
20-
description: string;
20+
description?: string;
2121
};

packages/ingestion/src/ingestionClient.ts

-10
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,6 @@ export function createIngestionClient({
439439
'Parameter `transformationCreate.name` is required when calling `createTransformation`.'
440440
);
441441
}
442-
if (!transformationCreate.description) {
443-
throw new Error(
444-
'Parameter `transformationCreate.description` is required when calling `createTransformation`.'
445-
);
446-
}
447442

448443
const requestPath = '/1/transformations';
449444
const headers: Headers = {};
@@ -2172,11 +2167,6 @@ export function createIngestionClient({
21722167
'Parameter `transformationCreate.name` is required when calling `updateTransformation`.'
21732168
);
21742169
}
2175-
if (!transformationCreate.description) {
2176-
throw new Error(
2177-
'Parameter `transformationCreate.description` is required when calling `updateTransformation`.'
2178-
);
2179-
}
21802170

21812171
const requestPath = '/1/transformations/{transformationID}'.replace(
21822172
'{transformationID}',

0 commit comments

Comments
 (0)