Contains constants and functions for a Push Request Feedback.
The structure for a Push Request Feedback is as follows:
{
payload: {
event: 'feedback sent to pipeline'
responseCode: <integer>,
responseMessage: <string>,
feedback: {
groupID: <string>,
platform: <string>,
status: <string>,
},
},
type: 'Push Service'
vendor: 'com.adobe.cepheus'
annotations: <array>,
clientId: <string>,
timestamp: <number>,
uuid: <string>,
}
- Source:
Members
(static, constant) EVENT_NAME
The value for eventName
for a Push Request Feedback.
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 Feedback 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 Push Request Feedback
Properties:
Name | Type | Description |
---|---|---|
payload |
string |
An object with custom data describing the event. |
eventName |
string |
The name of the event. |
responseCode |
string |
Response code. |
responseMessage |
string |
Response message. |
feedback |
string |
The response. |
groupId |
string |
id to stitch the requests together. |
platform |
string |
The platform to send the push to. |
status |
string |
The status of the request. |
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. |
- Source:
(static, constant) ROOT_TYPE
The value for rootType
for a Push Request Feedback.
Path is type
.
(static, constant) VENDOR
The value for vendor
for a Push Request Feedback.
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) getEventName(source) → {string}
Returns the eventName
from the Push Request Feedback.
This is the the name of the event.
Path is payload,event
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getFeedback(source) → {object}
Returns the feedback
from the Push Request Feedback.
This is the the response.
Path is payload,feedback
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getFeedbackKey(…path, source) → {*}
Returns the data using the specified path from the feedback of the Push Request Feedback.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
string |
<repeatable> |
key in object |
source |
object |
The Push Request Feedback instance |
(static) getGroupId(source) → {string}
Returns the groupId
from the Push Request Feedback.
This is the id to stitch the requests together.
Path is payload,feedback,groupID
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getPlatform(source) → {string}
Returns the platform
from the Push Request Feedback.
This is the the platform to send the push to.
Path is payload,feedback,platform
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getResponseCode(source) → {number}
Returns the responseCode
from the Push Request Feedback.
This is the response code.
Path is payload,responseCode
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getResponseMessage(source) → {string}
Returns the responseMessage
from the Push Request Feedback.
This is the response message.
Path is payload,responseMessage
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) getStatus(source) → {string}
Returns the status
from the Push Request Feedback.
This is the the status of the request.
Path is payload,feedback,status
.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
(static) isMatch(source) → {boolean}
Tests the provided source against the matcher to see if it's Push Request Feedback event.
Parameters:
Name | Type | Description |
---|---|---|
source |
object |
The Push Request Feedback instance |
- Source:
- See:
-
- kit.isMatch
(static) make(…input) → {object}
Generates a Push Request Feedback 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 Feedback 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 |