Skip to content

Commit 9d04dc2

Browse files
authored
fix(specs): rename task type to onDemand (#1299)
1 parent d39716c commit 9d04dc2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

specs/ingestion/common/schemas/task.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ TriggerType:
137137
type: string
138138
description: >
139139
The type of the task reflect how it can be used:
140-
- on_demand: a task that runs manually
140+
- onDemand: a task that runs manually
141141
- schedule: a task that runs regularly, following a given cron expression
142142
- subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
143-
enum: ['on_demand', 'schedule', 'subscription']
143+
enum: ['onDemand', 'schedule', 'subscription']
144144

145145
# schedule trigger
146146

@@ -195,7 +195,7 @@ ScheduleTrigger:
195195
OnDemandTriggerType:
196196
type: string
197197
description: A task which is manually executed via the run task endpoint.
198-
enum: ['on_demand']
198+
enum: ['onDemand']
199199

200200
OnDemandTriggerInput:
201201
type: object

specs/ingestion/common/taskParameters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ triggerType:
5555
type: array
5656
items:
5757
$ref: './schemas/task.yml#/TriggerType'
58-
example: on_demand,schedule
58+
example: onDemand,schedule

templates/javascript/clients/client/api/guards.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export function isOnDemandTrigger(
99
trigger: Trigger
1010
): trigger is OnDemandTrigger {
11-
return trigger.type === 'on_demand';
11+
return trigger.type === 'onDemand';
1212
}
1313

1414
/**
@@ -34,4 +34,4 @@ export function isSubscriptionTrigger(
3434
): trigger is SubscriptionTrigger {
3535
return trigger.type === 'subscription';
3636
}
37-
{{/isIngestionClient}}
37+
{{/isIngestionClient}}

0 commit comments

Comments
 (0)