personalizationEdgeRequest

personalizationEdgeRequest

Contains constants and functions for a Edge Personalization Request.

The structure for a Edge Personalization Request is as follows:

{
  payload: {
    ACPExtensionEventData: {
      xdm: {
        eventType: 'personalization.request'
      },
      query: {
        personalization: {
          decisionScopes: <array>,
        },
      },
      datasetId: <string>,
    },
    ACPExtensionEventSource: 'com.adobe.eventsource.requestcontent'
    ACPExtensionEventType: 'com.adobe.eventtype.edge'
    ACPExtensionEventName: <string>,
    ACPExtensionEventNumber: <integer>,
    ACPExtensionEventUniqueIdentifier: <string>,
  },
  type: 'generic'
  vendor: <string>,
  annotations: <array>,
  clientId: <string>,
  timestamp: <number>,
  uuid: <string>,
}
Source:

Members

(static, constant) EDGE_EVENT_TYPE

The value for edgeEventType for a Edge Personalization Request.

Path is payload,ACPExtensionEventData,xdm,eventType.

Source:

(static, constant) EVENT_SOURCE

The value for eventSource for a Edge Personalization Request.

Path is payload,ACPExtensionEventSource.

Source:

(static, constant) EVENT_TYPE

The value for eventType for a Edge Personalization Request.

Path is payload,ACPExtensionEventType.

Source:

(static, constant) group

A grouping for this object

Source:

(static, constant) label

A label that can be used when describing this object

Source:

(static, constant) matcher

Matcher can be used to find matching Edge Personalization Request objects.

Source:
See:
  • kit.match

(static, constant) parentDepth

Describes the number of parents this object has based off schema references. When checking for matches for example, we want to use a schema that is more specific over a more generic schema

Source:

(static, constant) path :string

Paths for the keys on a Edge Personalization Request

Properties:
Name Type Description
payload string

An object with custom data describing the event.
Path is payload.

eventData string

An object with the custom data describing the event.
Path is payload.ACPExtensionEventData.

xdm string

The XDM data send to the server.
Path is payload.ACPExtensionEventData.xdm.

edgeEventType string

The type of event on the edge to execute.
Path is payload.ACPExtensionEventData.xdm.eventType.

query string

Data to request from the edge.
Path is payload.ACPExtensionEventData.query.

personalization string

The personalization details.
Path is payload.ACPExtensionEventData.query.personalization.

decisionScopes string

List of decision scopes to load.
Path is payload.ACPExtensionEventData.query.personalization.decisionScopes.

datasetId string

The dataset to apply the XDM data to.
Path is payload.ACPExtensionEventData.datasetId.

eventSource string

The event source.
Path is payload.ACPExtensionEventSource.

eventType string

The event type.
Path is payload.ACPExtensionEventType.

eventName string

The name of the event.
Path is payload.ACPExtensionEventName.

sdkEventNumber string

The event number generated by the SDK.
Path is payload.ACPExtensionEventNumber.

eventId string

The unique event id.
Path is payload.ACPExtensionEventUniqueIdentifier.

rootType string

The type of event.
Path is type.

vendor string

The vendor of the plugin that sent the event.
Path is vendor.

annotations string

Array of Annotation objects.
Path is annotations.

clientId string

A unique id that differentiates clients from one another.
Path is clientId.

timestamp string

When the event occurred.
Path is timestamp.

rootId string

Uniquely identifies each event.
Path is uuid.

Source:

(static, constant) ROOT_TYPE

The value for rootType for a Edge Personalization Request.

Path is type.

Source:

Methods

(static) get(alias, data) → {*}

Retrieves a value from the object. You can provide either a path or an alias.

Parameters:
Name Type Description
alias string

Path or alias

data *

Data to search

Source:

(static) getDecisionScopes(source) → {Array}

Returns the decisionScopes from the Edge Personalization Request. This is the list of decision scopes to load.

Path is payload,ACPExtensionEventData,query,personalization,decisionScopes.

Parameters:
Name Type Description
source object

The Edge Personalization Request instance

Source:

(static) getEdgeEventType(source) → {string}

Returns the edgeEventType from the Edge Personalization Request. This is the the type of event on the edge to execute.

Path is payload,ACPExtensionEventData,xdm,eventType.

Parameters:
Name Type Description
source object

The Edge Personalization Request instance

Source:

(static) getPersonalization(source) → {object}

Returns the personalization from the Edge Personalization Request. This is the the personalization details.

Path is payload,ACPExtensionEventData,query,personalization.

Parameters:
Name Type Description
source object

The Edge Personalization Request instance

Source:

(static) getPersonalizationKey(…path, source) → {*}

Returns the data using the specified path from the personalization of the Edge Personalization Request.

Parameters:
Name Type Attributes Description
path string <repeatable>

key in object

source object

The Edge Personalization Request instance

Source:

(static) isMatch(source) → {boolean}

Tests the provided source against the matcher to see if it's Edge Personalization Request event.

Parameters:
Name Type Description
source object

The Edge Personalization Request instance

Source:
See:
  • kit.isMatch

(static) make(…input) → {object}

Generates a Edge Personalization Request with the const values set. Can be useful in testing. Can provide additional data by providing a flat object of paths and values.

Parameters:
Name Type Attributes Description
input function <repeatable>

Overrides

Source:

(static) mock(…input) → {object}

Generates a Edge Personalization Request with some default values set. Can be useful in testing. Can override defaults and provide additional data by providing a flat object of paths and values.

Parameters:
Name Type Attributes Description
input function <repeatable>

Overrides

Source: