Skip to content

Commit

Permalink
fix(specs): browse response required properties
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3348

Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed Jul 11, 2024
1 parent 30a0ad6 commit f5973c3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 59 deletions.
5 changes: 5 additions & 0 deletions packages/ingestion/model/dockerStreamsInput.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// 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.

export type DockerStreamsInput = {
streams: Record<string, any>;
};
5 changes: 2 additions & 3 deletions packages/ingestion/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export * from './destinationUpdate';
export * from './destinationUpdateResponse';
export * from './dockerImageType';
export * from './dockerRegistry';
export * from './dockerStreamsInput';
export * from './errorBase';
export * from './event';
export * from './eventSortKeys';
Expand All @@ -58,7 +59,6 @@ export * from './mappingInput';
export * from './mappingKitAction';
export * from './mappingTypeCSV';
export * from './methodType';
export * from './onDemandDateUtilsInput';
export * from './onDemandTrigger';
export * from './onDemandTriggerInput';
export * from './onDemandTriggerType';
Expand All @@ -77,7 +77,6 @@ export * from './runResponse';
export * from './runSortKeys';
export * from './runStatus';
export * from './runType';
export * from './scheduleDateUtilsInput';
export * from './scheduleTrigger';
export * from './scheduleTriggerInput';
export * from './scheduleTriggerType';
Expand Down Expand Up @@ -108,9 +107,9 @@ export * from './sourceUpdateInput';
export * from './sourceUpdateResponse';
export * from './sourceUpdateShopify';
export * from './sourceWatchResponse';
export * from './streamingInput';
export * from './streamingTrigger';
export * from './streamingTriggerType';
export * from './streamingUtilsInput';
export * from './subscriptionTrigger';
export * from './subscriptionTriggerType';
export * from './task';
Expand Down
20 changes: 0 additions & 20 deletions packages/ingestion/model/onDemandDateUtilsInput.ts

This file was deleted.

15 changes: 0 additions & 15 deletions packages/ingestion/model/scheduleDateUtilsInput.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import type { MappingInput } from './mappingInput';
/**
* Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
*/
export type StreamingUtilsInput = {
export type StreamingInput = {
mapping: MappingInput;
};
11 changes: 3 additions & 8 deletions packages/ingestion/model/taskInput.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
// 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.

import type { OnDemandDateUtilsInput } from './onDemandDateUtilsInput';
import type { ScheduleDateUtilsInput } from './scheduleDateUtilsInput';
import type { DockerStreamsInput } from './dockerStreamsInput';
import type { ShopifyInput } from './shopifyInput';
import type { StreamingUtilsInput } from './streamingUtilsInput';
import type { StreamingInput } from './streamingInput';

/**
* Configuration of the task, depending on its type.
*/
export type TaskInput =
| OnDemandDateUtilsInput
| ScheduleDateUtilsInput
| ShopifyInput
| StreamingUtilsInput;
export type TaskInput = DockerStreamsInput | ShopifyInput | StreamingInput;
2 changes: 1 addition & 1 deletion packages/ingestion/model/transformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type Transformation = {
/**
* A descriptive name for your transformation of what it does.
*/
description: string;
description?: string;

/**
* Date of creation in RFC 3339 format.
Expand Down
2 changes: 1 addition & 1 deletion packages/ingestion/model/transformationCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export type TransformationCreate = {
/**
* A descriptive name for your transformation of what it does.
*/
description: string;
description?: string;
};
10 changes: 0 additions & 10 deletions packages/ingestion/src/ingestionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,6 @@ export function createIngestionClient({
'Parameter `transformationCreate.name` is required when calling `createTransformation`.'
);
}
if (!transformationCreate.description) {
throw new Error(
'Parameter `transformationCreate.description` is required when calling `createTransformation`.'
);
}

const requestPath = '/1/transformations';
const headers: Headers = {};
Expand Down Expand Up @@ -2172,11 +2167,6 @@ export function createIngestionClient({
'Parameter `transformationCreate.name` is required when calling `updateTransformation`.'
);
}
if (!transformationCreate.description) {
throw new Error(
'Parameter `transformationCreate.description` is required when calling `updateTransformation`.'
);
}

const requestPath = '/1/transformations/{transformationID}'.replace(
'{transformationID}',
Expand Down

0 comments on commit f5973c3

Please sign in to comment.