Skip to content

Commit 1212ef1

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 466cc0b3. [skip ci]
algolia/api-clients-automation@466cc0b Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent e71bb91 commit 1212ef1

File tree

10 files changed

+35
-10
lines changed

10 files changed

+35
-10
lines changed

packages/ingestion/model/authOAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export type AuthOAuth = {
77

88
client_secret: string;
99

10-
scope: string;
10+
scope?: string;
1111
};

packages/ingestion/model/authentication.ts

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

3-
import type { AuthInput } from './authInput';
43
import type { AuthenticationType } from './authenticationType';
54
import type { PlatformType } from './platformType';
65

@@ -13,8 +12,6 @@ export type Authentication = {
1312

1413
platform?: PlatformType;
1514

16-
input: AuthInput;
17-
1815
/**
1916
* Date of creation (RFC3339 format).
2017
*/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { AuthInput } from './authInput';
4+
5+
export type AuthenticationInput = {
6+
input: AuthInput;
7+
};
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 { Authentication } from './authentication';
4+
import type { AuthenticationInput } from './authenticationInput';
5+
6+
export type AuthenticationWithInput = Authentication & AuthenticationInput;

packages/ingestion/model/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ export * from './authOAuth';
1010
export * from './authentication';
1111
export * from './authenticationCreate';
1212
export * from './authenticationCreateResponse';
13+
export * from './authenticationInput';
1314
export * from './authenticationType';
1415
export * from './authenticationUpdate';
1516
export * from './authenticationUpdateResponse';
17+
export * from './authenticationWithInput';
1618
export * from './deleteResponse';
1719
export * from './destination';
1820
export * from './destinationCreate';
@@ -58,5 +60,6 @@ export * from './taskCreateResponse';
5860
export * from './taskUpdate';
5961
export * from './taskUpdateResponse';
6062
export * from './trigger';
63+
export * from './triggerInput';
6164
export * from './triggerType';
6265
export * from './clientMethodProps';

packages/ingestion/model/sourceCommercetools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
export type SourceCommercetools = {
44
storeKeys?: string[];
55

6+
/**
7+
* Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example [\"fr-FR\", \"en\"].
8+
*/
69
locales?: string[];
710

811
url: string;

packages/ingestion/model/taskCreate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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 { Trigger } from './trigger';
4+
import type { TriggerInput } from './triggerInput';
55

66
export type TaskCreate = {
77
sourceID: string;
88

99
destinationID: string;
1010

11-
trigger: Trigger;
11+
trigger: TriggerInput;
1212

1313
action: ActionType;
1414

Lines changed: 2 additions & 2 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

3-
import type { Trigger } from './trigger';
3+
import type { TriggerInput } from './triggerInput';
44

55
export type TaskUpdate = {
66
destinationID?: string;
77

8-
trigger?: Trigger;
8+
trigger?: TriggerInput;
99

1010
enabled?: boolean;
1111
};
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 { TriggerType } from './triggerType';
4+
5+
export type TriggerInput = {
6+
type: TriggerType;
7+
8+
cron?: string;
9+
};

packages/ingestion/src/ingestionClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import type {
1414
QueryParameters,
1515
} from '@algolia/client-common';
1616

17-
import type { Authentication } from '../model/authentication';
1817
import type { AuthenticationCreate } from '../model/authenticationCreate';
1918
import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse';
2019
import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse';
20+
import type { AuthenticationWithInput } from '../model/authenticationWithInput';
2121
import type {
2222
DeleteAuthenticationProps,
2323
DeleteDestinationProps,
@@ -505,7 +505,7 @@ export function createIngestionClient({
505505
getAuthentication(
506506
{ authenticationID }: GetAuthenticationProps,
507507
requestOptions?: RequestOptions
508-
): Promise<Authentication> {
508+
): Promise<AuthenticationWithInput> {
509509
if (!authenticationID) {
510510
throw new Error(
511511
'Parameter `authenticationID` is required when calling `getAuthentication`.'

0 commit comments

Comments
 (0)