Skip to content

Commit e7ee37d

Browse files
chore: generated code for commit 859c0a97. [skip ci]
algolia/api-clients-automation@859c0a9 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Mehmet Ali Gok <[email protected]>
1 parent 8ce7d0a commit e7ee37d

File tree

17 files changed

+54
-213
lines changed

17 files changed

+54
-213
lines changed

packages/algoliasearch/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-abtesting/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-analytics/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-insights/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-personalization/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-query-suggestions/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/client-search/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/ingestion/model/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export * from './sourceJson';
5858
export * from './sourceSearch';
5959
export * from './sourceType';
6060
export * from './sourceUpdate';
61+
export * from './sourceUpdateCommercetools';
62+
export * from './sourceUpdateInput';
63+
export * from './sourceUpdateJson';
6164
export * from './sourceUpdateResponse';
6265
export * from './task';
6366
export * from './taskCreate';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
export type SourceBigCommerce = {
4+
/**
5+
* The store hash identifying the store the shopper is signing in to.
6+
*/
47
storeHash?: string;
58
};

packages/ingestion/model/sourceJson.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import type { MethodType } from './methodType';
44

55
export type SourceJson = {
6+
/**
7+
* The URL of the file.
8+
*/
69
url: string;
710

811
method?: MethodType;
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { SourceInput } from './sourceInput';
4-
import type { SourceType } from './sourceType';
3+
import type { SourceUpdateInput } from './sourceUpdateInput';
54

65
export type SourceUpdate = {
7-
type?: SourceType;
8-
96
name?: string;
107

11-
input?: SourceInput;
8+
input?: SourceUpdateInput;
129

1310
authenticationID?: string;
1411
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type SourceUpdateCommercetools = {
4+
/**
5+
* Unique and immutable key of the referenced Store.
6+
*/
7+
storeKeys?: string[];
8+
9+
/**
10+
* Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example [\"fr-FR\", \"en\"].
11+
*/
12+
locales?: string[];
13+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { SourceUpdateCommercetools } from './sourceUpdateCommercetools';
4+
import type { SourceUpdateJson } from './sourceUpdateJson';
5+
6+
export type SourceUpdateInput = SourceUpdateCommercetools | SourceUpdateJson;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { MethodType } from './methodType';
4+
5+
export type SourceUpdateJson = {
6+
/**
7+
* The URL of the file.
8+
*/
9+
url: string;
10+
11+
method?: MethodType;
12+
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,17 @@ export function createIngestionClient({
231231
);
232232
}
233233

234+
if (!sourceCreate.type) {
235+
throw new Error(
236+
'Parameter `sourceCreate.type` is required when calling `createSource`.'
237+
);
238+
}
239+
if (!sourceCreate.input) {
240+
throw new Error(
241+
'Parameter `sourceCreate.input` is required when calling `createSource`.'
242+
);
243+
}
244+
234245
const requestPath = '/1/sources';
235246
const headers: Headers = {};
236247
const queryParameters: QueryParameters = {};
@@ -1347,7 +1358,7 @@ export function createIngestionClient({
13471358
const queryParameters: QueryParameters = {};
13481359

13491360
const request: Request = {
1350-
method: 'POST',
1361+
method: 'PUT',
13511362
path: requestPath,
13521363
queryParameters,
13531364
headers,

packages/predict/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/recommend/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)