Skip to content

Commit d28c4c2

Browse files
feat(specs): push source type (generated)
algolia/api-clients-automation#3600 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 892594b commit d28c4c2

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

packages/ingestion/model/source.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Source = {
1313

1414
name: string;
1515

16-
input: SourceInput;
16+
input?: SourceInput;
1717

1818
/**
1919
* Universally unique identifier (UUID) of an authentication resource.

packages/ingestion/model/sourceCreate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type SourceCreate = {
1111
*/
1212
name: string;
1313

14-
input: SourceInput;
14+
input?: SourceInput;
1515

1616
/**
1717
* Universally unique identifier (UUID) of an authentication resource.

packages/ingestion/model/sourceType.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export type SourceType =
88
| 'docker'
99
| 'ga4BigqueryExport'
1010
| 'json'
11+
| 'push'
1112
| 'sfcc'
1213
| 'shopify';

packages/ingestion/src/ingestionClient.ts

-3
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,6 @@ export function createIngestionClient({
319319
if (!sourceCreate.name) {
320320
throw new Error('Parameter `sourceCreate.name` is required when calling `createSource`.');
321321
}
322-
if (!sourceCreate.input) {
323-
throw new Error('Parameter `sourceCreate.input` is required when calling `createSource`.');
324-
}
325322

326323
const requestPath = '/1/sources';
327324
const headers: Headers = {};

0 commit comments

Comments
 (0)