Skip to content

Commit acd6736

Browse files
chore: generated code for commit a1c7c245. [skip ci]
algolia/api-clients-automation@a1c7c24 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 851d6b7 commit acd6736

19 files changed

+52
-228
lines changed

packages/algoliasearch/.openapi-generator-ignore

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

packages/client-abtesting/.openapi-generator-ignore

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

packages/client-analytics/.openapi-generator-ignore

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

packages/client-insights/.openapi-generator-ignore

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

packages/client-personalization/.openapi-generator-ignore

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

packages/client-query-suggestions/.openapi-generator-ignore

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

packages/client-search/.openapi-generator-ignore

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

packages/ingestion/model/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export * from './listEventsResponse';
3737
export * from './listSourcesResponse';
3838
export * from './listTasksResponse';
3939
export * from './methodType';
40+
export * from './onDemandTrigger';
41+
export * from './onDemandTriggerType';
4042
export * from './pagination';
4143
export * from './platform';
4244
export * from './platformNone';
@@ -50,6 +52,7 @@ export * from './runStatus';
5052
export * from './runType';
5153
export * from './scheduleTrigger';
5254
export * from './scheduleTriggerInput';
55+
export * from './scheduleTriggerType';
5356
export * from './source';
5457
export * from './sourceBigCommerce';
5558
export * from './sourceCommercetools';
@@ -64,12 +67,12 @@ export * from './sourceUpdateCommercetools';
6467
export * from './sourceUpdateInput';
6568
export * from './sourceUpdateJson';
6669
export * from './sourceUpdateResponse';
70+
export * from './subscriptionTrigger';
6771
export * from './task';
6872
export * from './taskCreate';
6973
export * from './taskCreateResponse';
7074
export * from './taskCreateTrigger';
7175
export * from './taskSearch';
72-
export * from './taskTrigger';
7376
export * from './taskUpdate';
7477
export * from './taskUpdateResponse';
7578
export * from './trigger';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
import type { OnDemandTriggerType } from './onDemandTriggerType';
4+
5+
/**
6+
* The trigger information of a task of type `on-demand`.
7+
*/
8+
export type OnDemandTrigger = {
9+
type: OnDemandTriggerType;
10+
11+
/**
12+
* The last time the scheduled task ran.
13+
*/
14+
lastRun?: string;
15+
};
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+
/**
4+
* A task which is manually executed via the run task endpoint.
5+
*/
6+
export type OnDemandTriggerType = 'on_demand';

packages/ingestion/model/scheduleTrigger.ts

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

3-
import type { TriggerType } from './triggerType';
3+
import type { ScheduleTriggerType } from './scheduleTriggerType';
44

55
/**
66
* The trigger information for a task of type \'schedule\'.
77
*/
88
export type ScheduleTrigger = {
9-
type: TriggerType;
9+
type: ScheduleTriggerType;
1010

1111
/**
1212
* A cron expression that represent at which regularity the task should run.
@@ -16,7 +16,7 @@ export type ScheduleTrigger = {
1616
/**
1717
* The last time the scheduled task ran.
1818
*/
19-
lastRun: string;
19+
lastRun?: string;
2020

2121
/**
2222
* The next scheduled run of the task.

packages/ingestion/model/scheduleTriggerInput.ts

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

3-
import type { TriggerType } from './triggerType';
3+
import type { ScheduleTriggerType } from './scheduleTriggerType';
44

55
/**
66
* The trigger input for a task of type \'schedule\'.
77
*/
88
export type ScheduleTriggerInput = {
9-
type: TriggerType;
9+
type: ScheduleTriggerType;
1010

1111
/**
1212
* A cron expression that represent at which regularity the task should run.
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+
/**
4+
* A task which is triggered by a schedule (cron expression).
5+
*/
6+
export type ScheduleTriggerType = 'schedule';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
/**
6+
* The trigger input for a task of type \'subscription\'.
7+
*/
8+
export type SubscriptionTrigger = {
9+
type: TriggerType;
10+
};

packages/ingestion/model/task.ts

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

66
export type Task = {
77
/**
@@ -19,7 +19,7 @@ export type Task = {
1919
*/
2020
destinationID: string;
2121

22-
trigger?: TaskTrigger;
22+
trigger?: Trigger;
2323

2424
/**
2525
* Whether the task is enabled or not.

packages/ingestion/model/taskTrigger.ts

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

packages/ingestion/model/trigger.ts

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

3-
import type { TriggerType } from './triggerType';
3+
import type { OnDemandTrigger } from './onDemandTrigger';
4+
import type { ScheduleTrigger } from './scheduleTrigger';
5+
import type { SubscriptionTrigger } from './subscriptionTrigger';
46

5-
/**
6-
* The trigger information of a task.
7-
*/
8-
export type Trigger = {
9-
type: TriggerType;
10-
};
7+
export type Trigger = OnDemandTrigger | ScheduleTrigger | SubscriptionTrigger;

packages/predict/.openapi-generator-ignore

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

packages/recommend/.openapi-generator-ignore

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

0 commit comments

Comments
 (0)