Skip to content

Commit a912aaf

Browse files
chore: generated code for commit dd4fdef. [skip ci]
Co-authored-by: Morgan Leroi <[email protected]>
1 parent dd4fdef commit a912aaf

File tree

6 files changed

+34
-2
lines changed

6 files changed

+34
-2
lines changed

clients/algoliasearch-client-javascript/packages/ingestion/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export * from './listDestinationsResponse';
3232
export * from './listEventsResponse';
3333
export * from './listSourcesResponse';
3434
export * from './listTasksResponse';
35+
export * from './methodType';
3536
export * from './pagination';
3637
export * from './platformType';
3738
export * from './run';
@@ -47,6 +48,7 @@ export * from './sourceCommercetools';
4748
export * from './sourceCreate';
4849
export * from './sourceCreateResponse';
4950
export * from './sourceInput';
51+
export * from './sourceJson';
5052
export * from './sourceType';
5153
export * from './sourceUpdate';
5254
export * from './sourceUpdateResponse';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type MethodType = 'GET' | 'POST';

clients/algoliasearch-client-javascript/packages/ingestion/model/sourceInput.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
import type { SourceBigCommerce } from './sourceBigCommerce';
44
import type { SourceCommercetools } from './sourceCommercetools';
5+
import type { SourceJson } from './sourceJson';
56

6-
export type SourceInput = SourceBigCommerce | SourceCommercetools;
7+
export type SourceInput = SourceBigCommerce | SourceCommercetools | SourceJson;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 SourceJson = {
6+
url: string;
7+
8+
method?: MethodType;
9+
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
export type SourceType = 'bigcommerce' | 'commercetools';
3+
export type SourceType = 'bigcommerce' | 'commercetools' | 'json';

specs/bundled/ingestion.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ components:
388388
enum:
389389
- bigcommerce
390390
- commercetools
391+
- json
391392
SourceCommercetools:
392393
type: object
393394
additionalProperties: false
@@ -418,10 +419,26 @@ components:
418419
type: string
419420
required:
420421
- store_hash
422+
MethodType:
423+
type: string
424+
enum:
425+
- GET
426+
- POST
427+
SourceJson:
428+
type: object
429+
additionalProperties: false
430+
properties:
431+
url:
432+
type: string
433+
method:
434+
$ref: '#/components/schemas/MethodType'
435+
required:
436+
- url
421437
SourceInput:
422438
oneOf:
423439
- $ref: '#/components/schemas/SourceCommercetools'
424440
- $ref: '#/components/schemas/SourceBigCommerce'
441+
- $ref: '#/components/schemas/SourceJson'
425442
Source:
426443
type: object
427444
additionalProperties: false

0 commit comments

Comments
 (0)