@inizioevoke/veeva-astroclm-core 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,19 +6,36 @@ Interactively collect presentation metadata from the user and write a
6
6
 
7
7
  ## What you need from the user
8
8
 
9
- Gather **all** of the following before writing any files. Ask for them
10
- conversationally, batching related questions into a single message to minimize
11
- round-trips:
9
+ Tell the user that some information is required to generate the config file. Gather **all** of the following before writing any files. Ask each one at a time, do not batch together.
12
10
 
13
- | Field | Options / constraints |
14
- |---|---|
15
- | **Product name** | Free text, required |
16
- | **Presentation name** | Free text, required |
17
- | **Presentation ID** | Free text; default = presentation name lowercased, non-alphanumeric → `_` |
18
- | **IVA dimensions** | `1024 × 768`, `1366 × 1024` *(default)*, `1376 × 1032` |
19
- | **iOS resolution** | `Default For Device` *(default)*, `Scale To Fit`, `Scale To 1024x768` |
20
- | **Disabled actions** | Multi-select, none required: History Buttons, Navigation Bar, Pinch to Exit, Reactions, Rotation Lock, Swipe, Zoom |
21
- | **CRM target** | `Salesforce` *(default)*, `Vault` |
11
+ 1. Ask for the `Product name` and `Presentation name`
12
+ 2. Ask for the `Presention ID`. Suggest a value of `Presentation name` lowercased, non-alphanumeric → `_`. Ask user to confirm or enter a new value.
13
+ 3. Call `AskUserQuestion` with a multi-tab payload with the following tabs in order:
14
+ - **Dimensions**
15
+ - Question: Select the IVA dimensions
16
+ - Options: `1024 × 768`, `1366 × 1024` *(default)*, `1376 × 1032`
17
+ - **Resolution**
18
+ - Question: Select the iOS resolution
19
+ - Options: `Default For Device` *(default)*, `Scale To Fit`, `Scale To 1024x768`
20
+ - **Disable**
21
+ - Question: Select any Veeva features to disable
22
+ - Options: multi-select: `History Buttons`, `Navigation Bar`, `Reactions`, `Swipe`
23
+ - **Platform**
24
+ - Question: Select the target Veeva platform
25
+ - Options: `Salesforce` *(default)*, `Vault`
26
+
27
+ ### Preferred collection strategy
28
+
29
+ 1. **Try `AskUserQuestion` first** for all fields with predefined options.
30
+
31
+ 2. **Fall back to conversational** for any field if `AskUserQuestion` is
32
+ unavailable or the call fails. List the options in an numbered list to allow the user to enter a number rather than the full option text.
33
+
34
+ ### Exceptions
35
+
36
+ If `Other` is selected for `IVA dimensions`, `iOS resolution`, or `CRM target`, reject the response and re-prompt the user asking them to choose only from the defined vaules.
37
+
38
+ If `Other` is selected for `Disabled actions`, reject the response and re-prompt, informing the user that the only other allowed values are following: `Pinch to Exit`, `Rotation Lock`, `Zoom`.
22
39
 
23
40
  ## Generating IDs
24
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm-core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",