From f332e2e90d9561b1b2d63b9fb494ec0a1c514bb2 Mon Sep 17 00:00:00 2001 From: Henry Barrow Date: Tue, 12 Sep 2023 11:08:43 +0100 Subject: [PATCH] Add enable_batching to destination action (#9) (#1559) Co-authored-by: Kelly Hofmann Co-authored-by: Clifford Tawiah Co-authored-by: Kelly Hofmann <55991524+k3llymariee@users.noreply.github.com> Co-authored-by: Cliff Tawiah <82856282+ctawiah@users.noreply.github.com> Co-authored-by: Molly --- .../syncAudience/generated-types.ts | 4 ++++ .../launchdarkly-audiences/syncAudience/index.ts | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/generated-types.ts b/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/generated-types.ts index de4bfead83..05e81e9c04 100644 --- a/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/generated-types.ts +++ b/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/generated-types.ts @@ -35,6 +35,10 @@ export interface Payload { traits_or_props: { [k: string]: unknown } + /** + * When enabled, the action will batch events before sending them to LaunchDarkly. In most cases, batching should be enabled. + */ + enable_batching?: boolean /** * Indicates if the user will be added or removed from the Audience */ diff --git a/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/index.ts b/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/index.ts index e254f0d3bf..edfc87cc95 100644 --- a/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/index.ts +++ b/packages/destination-actions/src/destinations/launchdarkly-audiences/syncAudience/index.ts @@ -92,6 +92,14 @@ const action: ActionDefinition = { } } }, + enable_batching: { + type: 'boolean', + label: 'Batch events', + description: + 'When enabled, the action will batch events before sending them to LaunchDarkly. In most cases, batching should be enabled.', + required: false, + default: true + }, audience_action: { label: 'Audience Action', description: 'Indicates if the user will be added or removed from the Audience',