Skip to content

Commit 764bdd5

Browse files
algolia-botFluf22millotp
committed
chore: generated code for commit a60e679. [skip ci]
Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent a60e679 commit 764bdd5

File tree

7 files changed

+54
-30
lines changed

7 files changed

+54
-30
lines changed

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

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

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

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

33
import type { ActionType } from './actionType';
4-
import type { AuthenticationTypeWithNone } from './authenticationTypeWithNone';
4+
import type { AuthenticationType } from './authenticationType';
55
import type { AuthenticationUpdate } from './authenticationUpdate';
66
import type { DestinationType } from './destinationType';
77
import type { DestinationUpdate } from './destinationUpdate';
8-
import type { Platform } from './platform';
8+
import type { PlatformWithNone } from './platformWithNone';
99
import type { SourceType } from './sourceType';
1010
import type { SourceUpdate } from './sourceUpdate';
1111
import type { TaskUpdate } from './taskUpdate';
@@ -96,11 +96,11 @@ export type GetAuthenticationsProps = {
9696
/**
9797
* Which type the returned authentication should have. Can be a list of string separated with commas.
9898
*/
99-
type?: AuthenticationTypeWithNone[];
99+
type?: AuthenticationType[];
100100
/**
101101
* Which platform the returned authentication should have. Can be a list of string separated with commas.
102102
*/
103-
platform?: Platform[];
103+
platform?: PlatformWithNone[];
104104
};
105105

106106
/**
@@ -236,7 +236,7 @@ export type GetSourcesProps = {
236236
*/
237237
type?: SourceType[];
238238
/**
239-
* Which authenticationID the returned source should have. Can be a list of string separated with commas.
239+
* Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
240240
*/
241241
authenticationID?: string[];
242242
};
@@ -271,6 +271,10 @@ export type GetTasksProps = {
271271
* If the returned task should have its \'enabled\' property set to true.
272272
*/
273273
enabled?: boolean;
274+
/**
275+
* Which sourceID the returned task should have. Can be a list of string separated with commas.
276+
*/
277+
sourceID?: string[];
274278
/**
275279
* Which destinationID the returned task should have. Can be a list of string separated with commas.
276280
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ export * from './authentication';
1111
export * from './authenticationCreate';
1212
export * from './authenticationCreateResponse';
1313
export * from './authenticationInput';
14-
export * from './authenticationNone';
1514
export * from './authenticationType';
16-
export * from './authenticationTypeWithNone';
1715
export * from './authenticationUpdate';
1816
export * from './authenticationUpdateResponse';
1917
export * from './authenticationWithInput';
@@ -39,6 +37,8 @@ export * from './listTasksResponse';
3937
export * from './methodType';
4038
export * from './pagination';
4139
export * from './platform';
40+
export * from './platformNone';
41+
export * from './platformWithNone';
4242
export * from './run';
4343
export * from './runListResponse';
4444
export * from './runOutcome';
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 AuthenticationNone = 'none';
3+
export type PlatformNone = 'none';
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 { Platform } from './platform';
4+
import type { PlatformNone } from './platformNone';
5+
6+
export type PlatformWithNone = Platform | PlatformNone;

clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ export function createIngestionClient({
896896
* @param getSources.itemsPerPage - The number of items per page to return.
897897
* @param getSources.page - The page number to fetch, starting at 1.
898898
* @param getSources.type - Which type the returned source should have. Can be a list of string separated with commas.
899-
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas.
899+
* @param getSources.authenticationID - Which authenticationID the returned source should have. Can be a list of string separated with commas. Also supports \'none\' as a value to return sources that don\'t have any authentication.
900900
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
901901
*/
902902
getSources(
@@ -977,6 +977,7 @@ export function createIngestionClient({
977977
* @param getTasks.page - The page number to fetch, starting at 1.
978978
* @param getTasks.action - Which action the returned task should have. Can be a list of string separated with commas.
979979
* @param getTasks.enabled - If the returned task should have its \'enabled\' property set to true.
980+
* @param getTasks.sourceID - Which sourceID the returned task should have. Can be a list of string separated with commas.
980981
* @param getTasks.destinationID - Which destinationID the returned task should have. Can be a list of string separated with commas.
981982
* @param getTasks.triggerType - Which trigger type the returned task should have. Can be a list of string separated with commas.
982983
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -987,6 +988,7 @@ export function createIngestionClient({
987988
page,
988989
action,
989990
enabled,
991+
sourceID,
990992
destinationID,
991993
triggerType,
992994
}: GetTasksProps = {},
@@ -1012,6 +1014,10 @@ export function createIngestionClient({
10121014
queryParameters.enabled = enabled.toString();
10131015
}
10141016

1017+
if (sourceID !== undefined) {
1018+
queryParameters.sourceID = sourceID.toString();
1019+
}
1020+
10151021
if (destinationID !== undefined) {
10161022
queryParameters.destinationID = destinationID.toString();
10171023
}

specs/bundled/ingestion.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ components:
4040
schema:
4141
type: array
4242
items:
43-
$ref: '#/components/schemas/authenticationTypeWithNone'
44-
example: basic,oauth,none
43+
$ref: '#/components/schemas/AuthenticationType'
44+
example: basic,oauth
4545
platform:
4646
name: platform
4747
in: query
@@ -54,8 +54,8 @@ components:
5454
schema:
5555
type: array
5656
items:
57-
$ref: '#/components/schemas/Platform'
58-
example: commercetools,bigcommerce
57+
$ref: '#/components/schemas/platformWithNone'
58+
example: commercetools,none
5959
authenticationID:
6060
name: authenticationID
6161
in: path
@@ -118,14 +118,16 @@ components:
118118
in: query
119119
description: >-
120120
Which authenticationID the returned source should have. Can be a list of
121-
string separated with commas.
121+
string separated with commas. Also supports 'none' as a value to return
122+
sources that don't have any authentication.
122123
required: false
123124
style: form
124125
explode: false
125126
schema:
126127
type: array
127128
items:
128129
type: string
130+
example: 10000000-0a75-4000-a000-000000000001,none
129131
sourceID:
130132
name: sourceID
131133
in: path
@@ -155,6 +157,19 @@ components:
155157
required: false
156158
schema:
157159
type: boolean
160+
taskParameters_sourceID:
161+
name: sourceID
162+
in: query
163+
description: >-
164+
Which sourceID the returned task should have. Can be a list of string
165+
separated with commas.
166+
required: false
167+
style: form
168+
explode: false
169+
schema:
170+
type: array
171+
items:
172+
type: string
158173
taskParameters_destinationID:
159174
name: destinationID
160175
in: query
@@ -215,19 +230,19 @@ components:
215230
- apiKey
216231
- oauth
217232
- algolia
218-
AuthenticationNone:
219-
type: string
220-
enum:
221-
- none
222-
authenticationTypeWithNone:
223-
oneOf:
224-
- $ref: '#/components/schemas/AuthenticationType'
225-
- $ref: '#/components/schemas/AuthenticationNone'
226233
Platform:
227234
type: string
228235
enum:
229236
- bigcommerce
230237
- commercetools
238+
PlatformNone:
239+
type: string
240+
enum:
241+
- none
242+
platformWithNone:
243+
oneOf:
244+
- $ref: '#/components/schemas/Platform'
245+
- $ref: '#/components/schemas/PlatformNone'
231246
createdAt:
232247
type: string
233248
description: Date of creation (RFC3339 format).
@@ -1299,6 +1314,7 @@ paths:
12991314
- $ref: '#/components/parameters/page'
13001315
- $ref: '#/components/parameters/action'
13011316
- $ref: '#/components/parameters/enabled'
1317+
- $ref: '#/components/parameters/taskParameters_sourceID'
13021318
- $ref: '#/components/parameters/taskParameters_destinationID'
13031319
- $ref: '#/components/parameters/triggerType'
13041320
responses:

0 commit comments

Comments
 (0)