File tree Expand file tree Collapse file tree 10 files changed +35
-10
lines changed Expand file tree Collapse file tree 10 files changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ export type AuthOAuth = {
7
7
8
8
client_secret : string ;
9
9
10
- scope : string ;
10
+ scope ? : string ;
11
11
} ;
Original file line number Diff line number Diff line change 1
1
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
3
- import type { AuthInput } from './authInput' ;
4
3
import type { AuthenticationType } from './authenticationType' ;
5
4
import type { PlatformType } from './platformType' ;
6
5
@@ -13,8 +12,6 @@ export type Authentication = {
13
12
14
13
platform ?: PlatformType ;
15
14
16
- input : AuthInput ;
17
-
18
15
/**
19
16
* Date of creation (RFC3339 format).
20
17
*/
Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ export * from './authOAuth';
10
10
export * from './authentication' ;
11
11
export * from './authenticationCreate' ;
12
12
export * from './authenticationCreateResponse' ;
13
+ export * from './authenticationInput' ;
13
14
export * from './authenticationType' ;
14
15
export * from './authenticationUpdate' ;
15
16
export * from './authenticationUpdateResponse' ;
17
+ export * from './authenticationWithInput' ;
16
18
export * from './deleteResponse' ;
17
19
export * from './destination' ;
18
20
export * from './destinationCreate' ;
@@ -58,5 +60,6 @@ export * from './taskCreateResponse';
58
60
export * from './taskUpdate' ;
59
61
export * from './taskUpdateResponse' ;
60
62
export * from './trigger' ;
63
+ export * from './triggerInput' ;
61
64
export * from './triggerType' ;
62
65
export * from './clientMethodProps' ;
Original file line number Diff line number Diff line change 3
3
export type SourceCommercetools = {
4
4
storeKeys ?: string [ ] ;
5
5
6
+ /**
7
+ * Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example [\"fr-FR\", \"en\"].
8
+ */
6
9
locales ?: string [ ] ;
7
10
8
11
url : string ;
Original file line number Diff line number Diff line change 1
1
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
3
3
import type { ActionType } from './actionType' ;
4
- import type { Trigger } from './trigger ' ;
4
+ import type { TriggerInput } from './triggerInput ' ;
5
5
6
6
export type TaskCreate = {
7
7
sourceID : string ;
8
8
9
9
destinationID : string ;
10
10
11
- trigger : Trigger ;
11
+ trigger : TriggerInput ;
12
12
13
13
action : ActionType ;
14
14
Original file line number Diff line number Diff line change 1
1
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
3
- import type { Trigger } from './trigger ' ;
3
+ import type { TriggerInput } from './triggerInput ' ;
4
4
5
5
export type TaskUpdate = {
6
6
destinationID ?: string ;
7
7
8
- trigger ?: Trigger ;
8
+ trigger ?: TriggerInput ;
9
9
10
10
enabled ?: boolean ;
11
11
} ;
Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import type {
14
14
QueryParameters ,
15
15
} from '@algolia/client-common' ;
16
16
17
- import type { Authentication } from '../model/authentication' ;
18
17
import type { AuthenticationCreate } from '../model/authenticationCreate' ;
19
18
import type { AuthenticationCreateResponse } from '../model/authenticationCreateResponse' ;
20
19
import type { AuthenticationUpdateResponse } from '../model/authenticationUpdateResponse' ;
20
+ import type { AuthenticationWithInput } from '../model/authenticationWithInput' ;
21
21
import type {
22
22
DeleteAuthenticationProps ,
23
23
DeleteDestinationProps ,
@@ -505,7 +505,7 @@ export function createIngestionClient({
505
505
getAuthentication (
506
506
{ authenticationID } : GetAuthenticationProps ,
507
507
requestOptions ?: RequestOptions
508
- ) : Promise < Authentication > {
508
+ ) : Promise < AuthenticationWithInput > {
509
509
if ( ! authenticationID ) {
510
510
throw new Error (
511
511
'Parameter `authenticationID` is required when calling `getAuthentication`.'
You can’t perform that action at this time.
0 commit comments