AWS service utilities.
[//]: # ' DO NOT EDIT THIS NOTICE '
[//]: # ' This code and all related intellectual property is owned by '
[//]: # ' Veteran Crowd Rewards, LLC. It is not to be disclosed, copied '
[//]: # ' or used without written permission. '
[//]: # ' * '

Array.<TemplateContext> | undefinedResolves ContextMaps for a given data object.
booleanA function that when applied to a data object returns true if the data object is valid for a template context.
objectAn object relating a TemplateContextToken to a path in a data object expressing the associated contextId.
objectAn object relating a TemplateContextToken to a contextId.
enumKind: global enum
Properties
| Name | Type | Default |
| --- | --- | --- |
| APPLICATION | string | "application" |
| BENEFICIARY | string | "beneficiary" |
| GROUP | string | "group" |
| MERCHANT | string | "merchant" |
| METHOD | string | "method" |
| OFFER | string | "offer" |
| TEMPLATE | string | "template" |
| USER | string | "user" |
| VALIDATOR | string | "validator" |
Array.<TemplateContext> \| undefinedKind: global constant
Returns: Array.<TemplateContext> \| undefined - - An array of resolved contexts.
| Param | Type | Description |
| --- | --- | --- |
| [contextMaps] | Array.<TemplateContextMap> \| TemplateContextMap \| TemplateContextToken.APPLICATION | An array of TemplateContextMaps, a single TemplateContextMap, or TemplateContextToken.APPLICATION. |
| data | object | The source data object. |
booleanKind: global typedef
Returns: boolean - - True if the data object is valid for the template context.
| Param | Type | Description |
| --- | --- | --- |
| data | object | The data object to be validated. |
objectKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| contextToken | TemplateContextToken | The context to be resolved. |
| [path] | string | The path to the contextId in the data object. Ignored for context 'application'. |
| [isValid] | TemplateContextValidationFunction | Determines whether the data object is valid for the context. If not provided, all data objects are valid. |
objectKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| contextToken | TemplateContextToken | The context to be resolved. |
| [contextId] | number \| string | The value of the contextId in the data object. Not valid for context 'application'. |
[//]: # ' DO NOT EDIT THIS NOTICE '
[//]: # ' This code and all related intellectual property is owned by '
[//]: # ' Veteran Crowd Rewards, LLC. It is not to be disclosed, copied '
[//]: # ' or used without written permission. '
[//]: # ' * '
---
Built with ❤️ on Bali! Find more great tools & templates on my GitHub Profile.