diff --git a/packages/destination-actions/src/destinations/ortto/common-fields.ts b/packages/destination-actions/src/destinations/ortto/common-fields.ts index ecb945a5d1..efd709b471 100644 --- a/packages/destination-actions/src/destinations/ortto/common-fields.ts +++ b/packages/destination-actions/src/destinations/ortto/common-fields.ts @@ -134,6 +134,7 @@ export const commonFields: Record = { description: 'An object containing key-value pairs representing custom properties assigned to Contact profile', type: 'object', defaultObjectUI: 'keyvalue', + additionalProperties: true, properties: { email: { label: 'Email', diff --git a/packages/destination-actions/src/destinations/ortto/trackActivity/generated-types.ts b/packages/destination-actions/src/destinations/ortto/trackActivity/generated-types.ts index f33e4ec3eb..96c536077a 100644 --- a/packages/destination-actions/src/destinations/ortto/trackActivity/generated-types.ts +++ b/packages/destination-actions/src/destinations/ortto/trackActivity/generated-types.ts @@ -54,6 +54,7 @@ export interface Payload { * The Contact's last name */ last_name?: string + [k: string]: unknown } /** * Indicates whether the Contact should be added to or removed from the Audience. @@ -80,7 +81,7 @@ export interface Payload { } // Generated file. DO NOT MODIFY IT BY HAND. -export interface RetlOnMappingSaveInputs { +export interface OnMappingSaveInputs { /** * The name of the Ortto Audience to link the Contact to. */ @@ -88,7 +89,7 @@ export interface RetlOnMappingSaveInputs { } // Generated file. DO NOT MODIFY IT BY HAND. -export interface RetlOnMappingSaveOutputs { +export interface OnMappingSaveOutputs { /** * The ID of the Ortto Audience Contacts will be linked to. */ diff --git a/packages/destination-actions/src/destinations/ortto/trackActivity/index.ts b/packages/destination-actions/src/destinations/ortto/trackActivity/index.ts index ef59645188..56638d8d9d 100644 --- a/packages/destination-actions/src/destinations/ortto/trackActivity/index.ts +++ b/packages/destination-actions/src/destinations/ortto/trackActivity/index.ts @@ -51,11 +51,12 @@ const action: ActionDefinition = { label: 'Activity properties', description: 'An object containing key-value pairs representing activity attributes', type: 'object', - defaultObjectUI: 'keyvalue' + defaultObjectUI: 'keyvalue', + additionalProperties: true } }, hooks: { - retlOnMappingSave: { + onMappingSave: { label: 'Associate Audience', description: 'Link the Contact to an Audience in Ortto. If the Audience does not already exist, it will be created in Ortto.', @@ -110,7 +111,7 @@ const action: ActionDefinition = { return await client.sendActivities( settings, [payload], - (hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? '' + (hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? '' ) }, performBatch: async (request, { settings, payload, hookOutputs }) => { @@ -118,7 +119,7 @@ const action: ActionDefinition = { return await client.sendActivities( settings, payload, - (hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? '' + (hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? '' ) } } diff --git a/packages/destination-actions/src/destinations/ortto/upsertContactProfile/generated-types.ts b/packages/destination-actions/src/destinations/ortto/upsertContactProfile/generated-types.ts index ec20f57b54..1fd1585a77 100644 --- a/packages/destination-actions/src/destinations/ortto/upsertContactProfile/generated-types.ts +++ b/packages/destination-actions/src/destinations/ortto/upsertContactProfile/generated-types.ts @@ -54,6 +54,7 @@ export interface Payload { * The Contact's last name */ last_name?: string + [k: string]: unknown } /** * Indicates whether the Contact should be added to or removed from the Audience. @@ -66,7 +67,7 @@ export interface Payload { } // Generated file. DO NOT MODIFY IT BY HAND. -export interface RetlOnMappingSaveInputs { +export interface OnMappingSaveInputs { /** * The name of the Ortto Audience to link the Contact to. */ @@ -74,7 +75,7 @@ export interface RetlOnMappingSaveInputs { } // Generated file. DO NOT MODIFY IT BY HAND. -export interface RetlOnMappingSaveOutputs { +export interface OnMappingSaveOutputs { /** * The ID of the Ortto Audience Contacts will be linked to. */ diff --git a/packages/destination-actions/src/destinations/ortto/upsertContactProfile/index.ts b/packages/destination-actions/src/destinations/ortto/upsertContactProfile/index.ts index 3c484db781..b7c21d79fe 100644 --- a/packages/destination-actions/src/destinations/ortto/upsertContactProfile/index.ts +++ b/packages/destination-actions/src/destinations/ortto/upsertContactProfile/index.ts @@ -21,7 +21,7 @@ const action: ActionDefinition = { batch_size: commonFields.batch_size }, hooks: { - retlOnMappingSave: { + onMappingSave: { label: 'Associate Audience', description: 'Link the Contact to an Audience in Ortto. If the Audience does not already exist, it will be created in Ortto.', @@ -76,7 +76,7 @@ const action: ActionDefinition = { return await client.upsertContacts( settings, [payload], - (hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? '' + (hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? '' ) }, performBatch: async (request, { settings, payload, hookOutputs }) => { @@ -84,7 +84,7 @@ const action: ActionDefinition = { return await client.upsertContacts( settings, payload, - (hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? '' + (hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? '' ) } }