Skip to content

Commit

Permalink
[12 Destinations] Audience Destination support for computation_class …
Browse files Browse the repository at this point in the history
…= journey_step (#2691)

* adding additional computation_class choice to support Journeys

* spelling correction

* submitting types
  • Loading branch information
joe-ayoub-segment authored Jan 20, 2025
1 parent fbed0c7 commit 3c9fe0d
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 36 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ const action: ActionDefinition<Settings, Payload, AudienceSettings> = {
computation_class: {
label: 'Segment Audience Computation Class',
description:
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' will be dropped before the perform() fuction call.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
required: true,
unsafe_hidden: true,
default: { '@path': '$.context.personas.computation_class' },
choices: [{ label: 'Audience', value: 'audience' }]
choices: [{ label: 'Audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
}
},

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
segment_user_id: {
label: 'Segment User ID',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ const action: ActionDefinition<Settings, Payload, AudienceSettings> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
email: {
label: 'Email',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
segment_user_id: {
label: 'User ID',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
context_kind: {
label: 'Context kind',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ const action: ActionDefinition<Settings, Payload> = {
},
segment_computation_action: {
label: 'Segment Computation Action',
description: 'Segment computation class used to determine payload is for an Audience',
description: "Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'Audience', value: 'audience' }]
choices: [{ label: 'Audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
segment_computation_id: {
label: 'Segment Computation ID',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
default: {
'@path': '$.context.personas.computation_class'
},
required: true,
choices: [{ value: 'audience', label: 'audience' }]
choices: [{ value: 'audience', label: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
email: {
label: 'Email address',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
computation_key: {
label: 'Audience Computation Key',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ const action: ActionDefinition<Settings, Payload> = {
computation_class: {
label: 'Segment Audience Computation Class',
description:
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' will be dropped before the perform() fuction call.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
required: true,
unsafe_hidden: true,
default: { '@path': '$.context.personas.computation_class' },
choices: [{ label: 'Audience', value: 'audience' }]
choices: [{ label: 'Audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
enable_batching: use_responsys_async_api,
batch_size: batch_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ export const fields: Record<string, InputField> = {
segment_computation_action: {
label: 'Segment Computation Class',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
external_audience_id: {
type: 'string',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const action: ActionDefinition<Settings, Payload, AudienceSettings> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
user_email: {
label: 'Email address',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ const action: ActionDefinition<Settings, Payload> = {
segment_computation_action: {
label: 'Segment Computation Action',
description:
"Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
"Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' or 'journey_step' will be dropped before the perform() fuction call.",
type: 'string',
unsafe_hidden: true,
required: true,
default: {
'@path': '$.context.personas.computation_class'
},
choices: [{ label: 'audience', value: 'audience' }]
choices: [{ label: 'audience', value: 'audience' },{ label: 'journey_step', value: 'journey_step' }]
},
phone: {
label: 'User Phone',
Expand Down

0 comments on commit 3c9fe0d

Please sign in to comment.