Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
exports[`Testing snapshot for actions-voiceops destination: sendCallCompleted action - all fields 1`] = `
Object {
"agent_email": "bah@curoj.cw",
"agent_first_name": "PdayLkf!",
"agent_last_name": "PdayLkf!",
"assign_first_last_name_by_splitting_email": true,
"call_id": "PdayLkf!",
"call_started_at": Any<String>,
"channels": Array [
Expand All @@ -14,6 +17,8 @@ Object {
"type": "CONTACT",
},
],
"customer_first_name": "PdayLkf!",
"customer_last_name": "PdayLkf!",
"extraMetadata": Object {
"testType": "PdayLkf!",
},
Expand Down
163 changes: 154 additions & 9 deletions packages/destination-actions/src/destinations/voiceops/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,61 @@
"format": "uri",
"additionalProperties": false
},
"customer_first_name": {
"label": "Customer First Name",
"description": "The first name for the customer. Use this field for new mappings.",
"type": "string",
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
"default": {
"@path": "$.properties.customer_first_name"
},
"choices": null,
"placeholder": null,
"properties": null,
"category": null,
"depends_on": null,
"readOnly": null,
"hidden": null,
"minimum": null,
"maximum": null,
"defaultObjectUI": null,
"disabledInputMethods": null,
"displayMode": null,
"format": null,
"additionalProperties": false
},
"customer_last_name": {
"label": "Customer Last Name",
"description": "The last name for the customer. Use this field for new mappings.",
"type": "string",
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
"default": {
"@path": "$.properties.customer_last_name"
},
"choices": null,
"placeholder": null,
"properties": null,
"category": null,
"depends_on": null,
"readOnly": null,
"hidden": null,
"minimum": null,
"maximum": null,
"defaultObjectUI": null,
"disabledInputMethods": null,
"displayMode": null,
"format": null,
"additionalProperties": false
},
"first_name": {
"label": "First Name",
"description": "The first name for the primary handling agent.",
"label": "Customer First Name (Legacy)",
"description": "Deprecated legacy first name field currently used for customer names. For new mappings, use Customer First Name.",
"type": "string",
"required": false,
"multiple": false,
Expand All @@ -172,8 +224,8 @@
"additionalProperties": false
},
"last_name": {
"label": "Last Name",
"description": "The last name for the primary handling agent.",
"label": "Customer Last Name (Legacy)",
"description": "Deprecated legacy last name field currently used for customer names. For new mappings, use Customer Last Name.",
"type": "string",
"required": false,
"multiple": false,
Expand All @@ -197,6 +249,84 @@
"format": null,
"additionalProperties": false
},
"agent_first_name": {
"label": "Agent First Name",
"description": "The first name for the primary handling agent.",
"type": "string",
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
"default": {
"@path": "$.properties.agent_first_name"
},
"choices": null,
"placeholder": null,
"properties": null,
"category": null,
"depends_on": null,
"readOnly": null,
"hidden": null,
"minimum": null,
"maximum": null,
"defaultObjectUI": null,
"disabledInputMethods": null,
"displayMode": null,
"format": null,
"additionalProperties": false
},
"agent_last_name": {
"label": "Agent Last Name",
"description": "The last name for the primary handling agent.",
"type": "string",
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
"default": {
"@path": "$.properties.agent_last_name"
},
"choices": null,
"placeholder": null,
"properties": null,
"category": null,
"depends_on": null,
"readOnly": null,
"hidden": null,
"minimum": null,
"maximum": null,
"defaultObjectUI": null,
"disabledInputMethods": null,
"displayMode": null,
"format": null,
"additionalProperties": false
},
"assign_first_last_name_by_splitting_email": {
"label": "Assign First / Last Name By Splitting Email",
"description": "When enabled, missing agent first and last names are derived from agent email addresses by splitting the email local-part. Single-token local-parts derive the first name and set last name to an empty string.",
"type": "boolean",
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
"default": {
"@path": "$.properties.assign_first_last_name_by_splitting_email"
},
"choices": null,
"placeholder": null,
"properties": null,
"category": null,
"depends_on": null,
"readOnly": null,
"hidden": null,
"minimum": null,
"maximum": null,
"defaultObjectUI": null,
"disabledInputMethods": null,
"displayMode": null,
"format": null,
"additionalProperties": false
},
"channels": {
"label": "Channels",
"description": "Optional channel metadata for multi-channel audio-aware integrations. Use this when you can provide precise channel-based conference bridge data.",
Expand Down Expand Up @@ -405,7 +535,7 @@
},
"agentLegs": {
"label": "Agent Legs",
"description": "Optional warm-transfer metadata for agent handoff windows. Use this when you cannot provide channel-based multi-channel recording data.",
"description": "Optional warm-transfer metadata for agent handoff windows. Use this when you cannot provide channel-based multi-channel recording data. Each leg must include first and last name, or enable Assign First / Last Name By Splitting Email and provide a splittable agent email.",
"type": "object",
"required": false,
"multiple": true,
Expand Down Expand Up @@ -510,9 +640,9 @@
},
"first_name": {
"label": "First Name",
"description": "The first name of the agent for this call leg.",
"description": "The first name of the agent for this call leg. Required unless Assign First / Last Name By Splitting Email derives it from agent email.",
"type": "string",
"required": true,
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
Expand All @@ -534,9 +664,9 @@
},
"last_name": {
"label": "Last Name",
"description": "The last name of the agent for this call leg.",
"description": "The last name of the agent for this call leg. Required unless Assign First / Last Name By Splitting Email derives it from agent email; single-token email local-parts derive an empty last name.",
"type": "string",
"required": true,
"required": false,
"multiple": false,
"allowNull": false,
"dynamic": false,
Expand Down Expand Up @@ -617,12 +747,27 @@
"recording_url": {
"@path": "$.properties.recording_url"
},
"customer_first_name": {
"@path": "$.properties.customer_first_name"
},
"customer_last_name": {
"@path": "$.properties.customer_last_name"
},
"first_name": {
"@path": "$.properties.first_name"
},
"last_name": {
"@path": "$.properties.last_name"
},
"agent_first_name": {
"@path": "$.properties.agent_first_name"
},
"agent_last_name": {
"@path": "$.properties.agent_last_name"
},
"assign_first_last_name_by_splitting_email": {
"@path": "$.properties.assign_first_last_name_by_splitting_email"
},
"channels": {
"@arrayPath": [
"$.properties.channels",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
exports[`Testing snapshot for actions-voiceops's sendCallCompleted destination action: all fields 1`] = `
Object {
"agent_email": "bah@curoj.cw",
"agent_first_name": "PdayLkf!",
"agent_last_name": "PdayLkf!",
"assign_first_last_name_by_splitting_email": true,
"call_id": "PdayLkf!",
"call_started_at": Any<String>,
"channels": Array [
Expand All @@ -14,6 +17,8 @@ Object {
"type": "CONTACT",
},
],
"customer_first_name": "PdayLkf!",
"customer_last_name": "PdayLkf!",
"extraMetadata": Object {
"testType": "PdayLkf!",
},
Expand Down
Loading
Loading