Skip to content

Commit 74dd9b6

Browse files
algolia-botFluf22
andcommitted
chore: generated code for commit 700dad6. [skip ci]
Co-authored-by: Thomas Raffray <[email protected]>
1 parent 700dad6 commit 74dd9b6

File tree

6 files changed

+170
-3
lines changed

6 files changed

+170
-3
lines changed
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 AuthenticationNone = 'none';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { AuthenticationNone } from './authenticationNone';
4+
import type { AuthenticationType } from './authenticationType';
5+
6+
export type AuthenticationTypeWithNone =
7+
| AuthenticationNone
8+
| AuthenticationType;

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
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';
45
import type { AuthenticationUpdate } from './authenticationUpdate';
6+
import type { DestinationType } from './destinationType';
57
import type { DestinationUpdate } from './destinationUpdate';
8+
import type { PlatformType } from './platformType';
9+
import type { SourceType } from './sourceType';
610
import type { SourceUpdate } from './sourceUpdate';
711
import type { TaskUpdate } from './taskUpdate';
812
import type { TriggerType } from './triggerType';
@@ -89,6 +93,14 @@ export type GetAuthenticationsProps = {
8993
* The page number to fetch, starting at 1.
9094
*/
9195
page?: number;
96+
/**
97+
* Which type the returned authentication should have. Can be a list of string separated with commas.
98+
*/
99+
type?: AuthenticationTypeWithNone[];
100+
/**
101+
* Which platform the returned authentication should have. Can be a list of string separated with commas.
102+
*/
103+
platform?: PlatformType[];
92104
};
93105

94106
/**
@@ -113,6 +125,14 @@ export type GetDestinationsProps = {
113125
* The page number to fetch, starting at 1.
114126
*/
115127
page?: number;
128+
/**
129+
* Which type the returned destination should have. Can be a list of string separated with commas.
130+
*/
131+
type?: DestinationType[];
132+
/**
133+
* Which authenticationID the returned destination should have. Can be a list of string separated with commas.
134+
*/
135+
authenticationID?: string[];
116136
};
117137

118138
/**
@@ -211,6 +231,14 @@ export type GetSourcesProps = {
211231
* The page number to fetch, starting at 1.
212232
*/
213233
page?: number;
234+
/**
235+
* Which type the returned source should have. Can be a list of string separated with commas.
236+
*/
237+
type?: SourceType[];
238+
/**
239+
* Which authenticationID the returned source should have. Can be a list of string separated with commas.
240+
*/
241+
authenticationID?: string[];
214242
};
215243

216244
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export * from './authentication';
1111
export * from './authenticationCreate';
1212
export * from './authenticationCreateResponse';
1313
export * from './authenticationInput';
14+
export * from './authenticationNone';
1415
export * from './authenticationType';
16+
export * from './authenticationTypeWithNone';
1517
export * from './authenticationUpdate';
1618
export * from './authenticationUpdateResponse';
1719
export * from './authenticationWithInput';

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

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,12 @@ export function createIngestionClient({
536536
* @param getAuthentications - The getAuthentications object.
537537
* @param getAuthentications.itemsPerPage - The number of items per page to return.
538538
* @param getAuthentications.page - The page number to fetch, starting at 1.
539+
* @param getAuthentications.type - Which type the returned authentication should have. Can be a list of string separated with commas.
540+
* @param getAuthentications.platform - Which platform the returned authentication should have. Can be a list of string separated with commas.
539541
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
540542
*/
541543
getAuthentications(
542-
{ itemsPerPage, page }: GetAuthenticationsProps = {},
544+
{ itemsPerPage, page, type, platform }: GetAuthenticationsProps = {},
543545
requestOptions: RequestOptions | undefined = undefined
544546
): Promise<ListAuthenticationsResponse> {
545547
const requestPath = '/1/authentications';
@@ -554,6 +556,14 @@ export function createIngestionClient({
554556
queryParameters.page = page.toString();
555557
}
556558

559+
if (type !== undefined) {
560+
queryParameters.type = type.toString();
561+
}
562+
563+
if (platform !== undefined) {
564+
queryParameters.platform = platform.toString();
565+
}
566+
557567
const request: Request = {
558568
method: 'GET',
559569
path: requestPath,
@@ -606,10 +616,12 @@ export function createIngestionClient({
606616
* @param getDestinations - The getDestinations object.
607617
* @param getDestinations.itemsPerPage - The number of items per page to return.
608618
* @param getDestinations.page - The page number to fetch, starting at 1.
619+
* @param getDestinations.type - Which type the returned destination should have. Can be a list of string separated with commas.
620+
* @param getDestinations.authenticationID - Which authenticationID the returned destination should have. Can be a list of string separated with commas.
609621
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
610622
*/
611623
getDestinations(
612-
{ itemsPerPage, page }: GetDestinationsProps = {},
624+
{ itemsPerPage, page, type, authenticationID }: GetDestinationsProps = {},
613625
requestOptions: RequestOptions | undefined = undefined
614626
): Promise<ListDestinationsResponse> {
615627
const requestPath = '/1/destinations';
@@ -624,6 +636,14 @@ export function createIngestionClient({
624636
queryParameters.page = page.toString();
625637
}
626638

639+
if (type !== undefined) {
640+
queryParameters.type = type.toString();
641+
}
642+
643+
if (authenticationID !== undefined) {
644+
queryParameters.authenticationID = authenticationID.toString();
645+
}
646+
627647
const request: Request = {
628648
method: 'GET',
629649
path: requestPath,
@@ -875,10 +895,12 @@ export function createIngestionClient({
875895
* @param getSources - The getSources object.
876896
* @param getSources.itemsPerPage - The number of items per page to return.
877897
* @param getSources.page - The page number to fetch, starting at 1.
898+
* @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.
878900
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
879901
*/
880902
getSources(
881-
{ itemsPerPage, page }: GetSourcesProps = {},
903+
{ itemsPerPage, page, type, authenticationID }: GetSourcesProps = {},
882904
requestOptions: RequestOptions | undefined = undefined
883905
): Promise<ListSourcesResponse> {
884906
const requestPath = '/1/sources';
@@ -893,6 +915,14 @@ export function createIngestionClient({
893915
queryParameters.page = page.toString();
894916
}
895917

918+
if (type !== undefined) {
919+
queryParameters.type = type.toString();
920+
}
921+
922+
if (authenticationID !== undefined) {
923+
queryParameters.authenticationID = authenticationID.toString();
924+
}
925+
896926
const request: Request = {
897927
method: 'GET',
898928
path: requestPath,

specs/bundled/ingestion.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,34 @@ components:
2828
required: false
2929
schema:
3030
type: integer
31+
type:
32+
name: type
33+
in: query
34+
description: >-
35+
Which type the returned authentication should have. Can be a list of
36+
string separated with commas.
37+
required: false
38+
style: form
39+
explode: false
40+
schema:
41+
type: array
42+
items:
43+
$ref: '#/components/schemas/authenticationTypeWithNone'
44+
example: basic,oauth,none
45+
platform:
46+
name: platform
47+
in: query
48+
description: >-
49+
Which platform the returned authentication should have. Can be a list of
50+
string separated with commas.
51+
required: false
52+
style: form
53+
explode: false
54+
schema:
55+
type: array
56+
items:
57+
$ref: '#/components/schemas/PlatformType'
58+
example: commercetools,bigcommerce
3159
authenticationID:
3260
name: authenticationID
3361
in: path
@@ -36,6 +64,33 @@ components:
3664
schema:
3765
type: string
3866
example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f
67+
destinationParameters_type:
68+
name: type
69+
in: query
70+
description: >-
71+
Which type the returned destination should have. Can be a list of string
72+
separated with commas.
73+
required: false
74+
style: form
75+
explode: false
76+
schema:
77+
type: array
78+
items:
79+
$ref: '#/components/schemas/DestinationType'
80+
example: search,predict
81+
destinationParameters_authenticationID:
82+
name: authenticationID
83+
in: query
84+
description: >-
85+
Which authenticationID the returned destination should have. Can be a
86+
list of string separated with commas.
87+
required: false
88+
style: form
89+
explode: false
90+
schema:
91+
type: array
92+
items:
93+
type: string
3994
destinationID:
4095
name: destinationID
4196
in: path
@@ -44,6 +99,33 @@ components:
4499
schema:
45100
type: string
46101
example: 6c02aeb1-775e-418e-870b-1faccd4b2c0f
102+
sourceParameters_type:
103+
name: type
104+
in: query
105+
description: >-
106+
Which type the returned source should have. Can be a list of string
107+
separated with commas.
108+
required: false
109+
style: form
110+
explode: false
111+
schema:
112+
type: array
113+
items:
114+
$ref: '#/components/schemas/SourceType'
115+
example: commercetools,bigcommerce
116+
sourceParameters_authenticationID:
117+
name: authenticationID
118+
in: query
119+
description: >-
120+
Which authenticationID the returned source should have. Can be a list of
121+
string separated with commas.
122+
required: false
123+
style: form
124+
explode: false
125+
schema:
126+
type: array
127+
items:
128+
type: string
47129
sourceID:
48130
name: sourceID
49131
in: path
@@ -133,6 +215,14 @@ components:
133215
- apiKey
134216
- oauth
135217
- algolia
218+
AuthenticationNone:
219+
type: string
220+
enum:
221+
- none
222+
authenticationTypeWithNone:
223+
oneOf:
224+
- $ref: '#/components/schemas/AuthenticationType'
225+
- $ref: '#/components/schemas/AuthenticationNone'
136226
PlatformType:
137227
type: string
138228
enum:
@@ -868,6 +958,8 @@ paths:
868958
parameters:
869959
- $ref: '#/components/parameters/itemsPerPage'
870960
- $ref: '#/components/parameters/page'
961+
- $ref: '#/components/parameters/type'
962+
- $ref: '#/components/parameters/platform'
871963
responses:
872964
'200':
873965
description: OK
@@ -979,6 +1071,8 @@ paths:
9791071
parameters:
9801072
- $ref: '#/components/parameters/itemsPerPage'
9811073
- $ref: '#/components/parameters/page'
1074+
- $ref: '#/components/parameters/destinationParameters_type'
1075+
- $ref: '#/components/parameters/destinationParameters_authenticationID'
9821076
responses:
9831077
'200':
9841078
description: OK
@@ -1090,6 +1184,8 @@ paths:
10901184
parameters:
10911185
- $ref: '#/components/parameters/itemsPerPage'
10921186
- $ref: '#/components/parameters/page'
1187+
- $ref: '#/components/parameters/sourceParameters_type'
1188+
- $ref: '#/components/parameters/sourceParameters_authenticationID'
10931189
responses:
10941190
'200':
10951191
description: OK

0 commit comments

Comments
 (0)