Skip to content

Commit 130483b

Browse files
chore: generated code for commit 9d04dc2. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 9d04dc2 commit 130483b

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

clients/algoliasearch-client-javascript/packages/ingestion/builds/browser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export {
2222
apiClientVersion,
2323
IngestionClient,
2424
Region,
25+
isOnDemandTrigger,
26+
isScheduleTrigger,
27+
isSubscriptionTrigger,
2528
} from '../src/ingestionClient';
2629
export * from '../model';
2730

clients/algoliasearch-client-javascript/packages/ingestion/builds/node.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export {
1717
apiClientVersion,
1818
IngestionClient,
1919
Region,
20+
isOnDemandTrigger,
21+
isScheduleTrigger,
22+
isSubscriptionTrigger,
2023
} from '../src/ingestionClient';
2124
export * from '../model';
2225

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* A task which is manually executed via the run task endpoint.
55
*/
6-
export type OnDemandTriggerType = 'on_demand';
6+
export type OnDemandTriggerType = 'onDemand';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
/**
4-
* The type of the task reflect how it can be used: - on_demand: a task that runs manually - schedule: a task that runs regularly, following a given cron expression - subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
4+
* The type of the task reflect how it can be used: - onDemand: a task that runs manually - schedule: a task that runs regularly, following a given cron expression - subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
55
*/
6-
export type TriggerType = 'on_demand' | 'schedule' | 'subscription';
6+
export type TriggerType = 'onDemand' | 'schedule' | 'subscription';

clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function getDefaultHosts(region: Region): Host[] {
9595
export function isOnDemandTrigger(
9696
trigger: Trigger
9797
): trigger is OnDemandTrigger {
98-
return trigger.type === 'on_demand';
98+
return trigger.type === 'onDemand';
9999
}
100100

101101
/**

specs/bundled/ingestion.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ components:
175175
type: array
176176
items:
177177
$ref: '#/components/schemas/TriggerType'
178-
example: on_demand,schedule
178+
example: onDemand,schedule
179179
pathTaskID:
180180
name: taskID
181181
in: path
@@ -815,11 +815,11 @@ components:
815815
type: string
816816
description: |
817817
The type of the task reflect how it can be used:
818-
- on_demand: a task that runs manually
818+
- onDemand: a task that runs manually
819819
- schedule: a task that runs regularly, following a given cron expression
820820
- subscription: a task that runs after a subscription event is received from an integration (e.g. Webhook).
821821
enum:
822-
- on_demand
822+
- onDemand
823823
- schedule
824824
- subscription
825825
taskID:
@@ -830,7 +830,7 @@ components:
830830
type: string
831831
description: A task which is manually executed via the run task endpoint.
832832
enum:
833-
- on_demand
833+
- onDemand
834834
LastRun:
835835
description: The last time the scheduled task ran.
836836
type: string

0 commit comments

Comments
 (0)