Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/datalogic/emm-intent

Configurable intents to be copied from Scan2Deploy
https://github.com/datalogic/emm-intent

Last synced: 20 days ago
JSON representation

Configurable intents to be copied from Scan2Deploy

Awesome Lists containing this project

README

        

# emm-intent
Configurable intents to be copied from Scan2Deploy Studio

## Format
The required properties for EMM entries are:
* `displayName`: Label displayed to the user for copy selection
* `intent`: Structured intent for EMM (see [Configuring intents](#configuring-intents))

Example:
```diff
{
"version": X.X,
"emms": {
...
- "existingEmm": {}
+ "existingEmm": {},
+ "newEmm": {
+ "displayName": "New EMM",
+ "intent": " ... "
+ }
}
}
```

### Configuring intents
There are two placeholders that can be used to define where the corresponding data should be injected into the intent.
* `%encoding%`: Will be replaced with the current encoding version selected in Studio
* `%data%`: Will be replaced with the encrypted barcode data generated by Studio

**Note: if a double quote is required within the final output of the intent, a single backslash will need to be used to escape the quote (e.g. `"example intent \"surrounded by escaped quotes\""`)**

#### Example
Given the following:
* intent definition: "intent --encoding %encoding% --data %data%"
* Studio barcode version: "v3"
* Studio barcode data: "T3yYK0x8dt"

Resulting intent:
`intent --encoding v3 --data T3yYK0x8dt`

## Submitting changes
To modify the emm-intents.json file, follow these steps:
1. Create new branch
2. Make modifications
3. Submit pull request

Pull requests will be reviewed by a code owner, and if approved, will be allowed to merge.