Skip to content

Commit 59dffe9

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 9acdc96. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 9acdc96 commit 59dffe9

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ export type Task = {
1616

1717
action: ActionType;
1818

19-
lastRun?: string;
20-
21-
nextRun?: string;
22-
2319
/**
2420
* Date of creation (RFC3339 format).
2521
*/

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@ import type { TriggerType } from './triggerType';
55
export type Trigger = {
66
type: TriggerType;
77

8-
frequency?: string;
8+
cron?: string;
9+
10+
/**
11+
* The last time the task ran (`scheduled` or `on-demand`).
12+
*/
13+
lastRun?: string;
14+
15+
/**
16+
* The next scheduled run for the task (`scheduled`).
17+
*/
18+
nextRun?: string;
919
};

specs/bundled/ingestion.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,13 @@ components:
533533
properties:
534534
type:
535535
$ref: '#/components/schemas/TriggerType'
536-
frequency:
536+
cron:
537+
type: string
538+
lastRun:
539+
description: The last time the task ran (`scheduled` or `on-demand`).
540+
type: string
541+
nextRun:
542+
description: The next scheduled run for the task (`scheduled`).
537543
type: string
538544
required:
539545
- type
@@ -560,10 +566,6 @@ components:
560566
default: true
561567
action:
562568
$ref: '#/components/schemas/ActionType'
563-
lastRun:
564-
type: string
565-
nextRun:
566-
type: string
567569
createdAt:
568570
$ref: '#/components/schemas/createdAt'
569571
updatedAt:

0 commit comments

Comments
 (0)