Contains constants and functions for a Push Request Forwarded.
The structure for a Push Request Forwarded is as follows:
{
  payload: {
    event: 'push sent to platform service'
    groupID: <string>,
    platform: <string>,
    pushTokens: <string>,
    body: <string>,
    status: <integer>,
  },
  type: 'Push Service'
  vendor: 'com.adobe.cepheus'
  annotations: <array>,
  clientId: <string>,
  timestamp: <number>,
  uuid: <string>,
}
            Members
(static, constant) EVENT_NAME
The value for eventName for a Push Request Forwarded.
Path is payload,event.
(static, constant) group
A grouping for this object
(static, constant) label
A label that can be used when describing this object
(static, constant) matcher
Matcher can be used to find matching Push Request Forwarded 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
(static, constant) path :string
Paths for the keys on a Push Request Forwarded
Properties:
| Name | Type | Description | 
|---|---|---|
payload | 
      
      string | 
           An object with custom data describing the event.  | 
    
eventName | 
      
      string | 
           The name of the event.  | 
    
groupId | 
      
      string | 
           id to stitch the requests together.  | 
    
platform | 
      
      string | 
           The platform to send the push to.  | 
    
pushToken | 
      
      string | 
           The push token to send to.  | 
    
body | 
      
      string | 
           The body sent to the push service.  | 
    
status | 
      
      string | 
           The status returend from the service.  | 
    
rootType | 
      
      string | 
           The type of event.  | 
    
vendor | 
      
      string | 
           The vendor of the service that sent the event.  | 
    
annotations | 
      
      string | 
           Array of Annotation objects.  | 
    
clientId | 
      
      string | 
           A unique id that differentiates clients from one another.  | 
    
timestamp | 
      
      string | 
           When the event occurred.  | 
    
rootId | 
      
      string | 
           Uniquely identifies each event.  | 
    
(static, constant) ROOT_TYPE
The value for rootType for a Push Request Forwarded.
Path is type.
(static, constant) VENDOR
The value for vendor for a Push Request Forwarded.
Path is vendor.
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  | 
      
(static) getBody(source) → {string}
Returns the body from the Push Request Forwarded.
This is the the body sent to the push service.
Path is payload,body.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) getEventName(source) → {string}
Returns the eventName from the Push Request Forwarded.
This is the the name of the event.
Path is payload,event.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) getGroupId(source) → {string}
Returns the groupId from the Push Request Forwarded.
This is the id to stitch the requests together.
Path is payload,groupID.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) getPlatform(source) → {string}
Returns the platform from the Push Request Forwarded.
This is the the platform to send the push to.
Path is payload,platform.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) getPushToken(source) → {string}
Returns the pushToken from the Push Request Forwarded.
This is the the push token to send to.
Path is payload,pushTokens.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) getStatus(source) → {number}
Returns the status from the Push Request Forwarded.
This is the the status returend from the service.
Path is payload,status.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
(static) isMatch(source) → {boolean}
Tests the provided source against the matcher to see if it's Push Request Forwarded event.
Parameters:
| Name | Type | Description | 
|---|---|---|
source | 
        
        object | 
           The Push Request Forwarded instance  | 
      
- Source:
 - See:
 - 
      
- kit.isMatch
 
 
(static) make(…input) → {object}
Generates a Push Request Forwarded 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  | 
      
(static) mock(…input) → {object}
Generates a Push Request Forwarded 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  |