From 3791b244ebb3092f31b5e82e4940d184c3b42a52 Mon Sep 17 00:00:00 2001 From: Maryam Sharif Date: Thu, 8 May 2025 11:29:50 -0700 Subject: [PATCH 1/2] Add batch bytes to Marketo --- .../destinations/marketo-static-lists/addToList/index.ts | 3 ++- .../src/destinations/marketo-static-lists/properties.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts b/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts index 17ececfc8f..168e062ff8 100644 --- a/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts +++ b/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts @@ -1,7 +1,7 @@ import type { IntegrationError, ActionDefinition } from '@segment/actions-core' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' -import { external_id, lookup_field, data, enable_batching, batch_size, event_name } from '../properties' +import { external_id, lookup_field, data, enable_batching, batch_size, event_name, batch_bytes } from '../properties' import { addToList, addToListBatch, createList, getList } from '../functions' const action: ActionDefinition = { @@ -14,6 +14,7 @@ const action: ActionDefinition = { data: { ...data }, enable_batching: { ...enable_batching }, batch_size: { ...batch_size }, + batch_bytes: { ...batch_bytes }, event_name: { ...event_name } }, hooks: { diff --git a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts index e9fd46db96..e544a5e172 100644 --- a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts +++ b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts @@ -89,6 +89,15 @@ export const batch_size: InputField = { required: true } +export const batch_bytes: InputField = { + type: 'number', + label: 'Batch Bytes', + description: 'The number of bytes to write to the Marketo in a single batch. Limit is 2MB.', + default: 10000000, // 10MB, + required: false, + unsafe_hidden: true +} + export const event_name: InputField = { label: 'Event Name', description: 'The name of the current Segment event.', From 3e3d692415736ba9d857944e44ad519f811226d3 Mon Sep 17 00:00:00 2001 From: Maryam Sharif Date: Thu, 8 May 2025 11:31:28 -0700 Subject: [PATCH 2/2] Fix description --- .../src/destinations/marketo-static-lists/properties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts index e544a5e172..d16a43ff4e 100644 --- a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts +++ b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts @@ -92,7 +92,7 @@ export const batch_size: InputField = { export const batch_bytes: InputField = { type: 'number', label: 'Batch Bytes', - description: 'The number of bytes to write to the Marketo in a single batch. Limit is 2MB.', + description: 'The number of bytes to write to the Marketo in a single batch. Limit is 10MB.', default: 10000000, // 10MB, required: false, unsafe_hidden: true