Skip to content

Commit 994892f

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 9f967a45. [skip ci]
algolia/api-clients-automation@9f967a4 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent ed333ec commit 994892f

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

packages/ingestion/model/destinationCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export type DestinationCreate = {
1919
/**
2020
* The authentication UUID.
2121
*/
22-
authenticationID: string;
22+
authenticationID?: string;
2323
};

packages/ingestion/model/sourceCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export type SourceCreate = {
1313
/**
1414
* The authentication UUID.
1515
*/
16-
authenticationID: string;
16+
authenticationID?: string;
1717
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ export function createIngestionClient({
269269
'Parameter `destinationCreate.input` is required when calling `createDestination`.'
270270
);
271271
}
272-
if (!destinationCreate.authenticationID) {
273-
throw new Error(
274-
'Parameter `destinationCreate.authenticationID` is required when calling `createDestination`.'
275-
);
276-
}
277272

278273
const requestPath = '/1/destinations';
279274
const headers: Headers = {};
@@ -322,11 +317,6 @@ export function createIngestionClient({
322317
'Parameter `sourceCreate.input` is required when calling `createSource`.'
323318
);
324319
}
325-
if (!sourceCreate.authenticationID) {
326-
throw new Error(
327-
'Parameter `sourceCreate.authenticationID` is required when calling `createSource`.'
328-
);
329-
}
330320

331321
const requestPath = '/1/sources';
332322
const headers: Headers = {};

0 commit comments

Comments
 (0)