@go-labs-sg/rsvp 0.8.1 → 0.9.0
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.
package/README.md
CHANGED
|
@@ -90,6 +90,21 @@ rsvp event flow menu version create \
|
|
|
90
90
|
To version an existing menu, use `"menu":{"mode":"EXISTING","menuId":"..."}`
|
|
91
91
|
in the payload and keep the event ID as `--target`.
|
|
92
92
|
|
|
93
|
+
Create a new immutable version of an existing consent document with the same
|
|
94
|
+
event target. Rich text is optional; when supplied, `content` is derived from
|
|
95
|
+
its visible text and stored as the legacy plain-text fallback.
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
rsvp event flow consent version create \
|
|
99
|
+
--allow-state-change \
|
|
100
|
+
--target evt_123 \
|
|
101
|
+
--payload '{"organizationId":"org_123","eventId":"evt_123","document":{"mode":"EXISTING","documentId":"consent_123"},"contentRichText":{"json":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"I agree to the terms."}]}]},"html":"<p>I agree to the terms.</p>"}}'
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Creating a consent version does not change a registration draft or publish a
|
|
105
|
+
flow. Reference the returned `version.id` from the draft's `CONSENT` block in
|
|
106
|
+
a separate revision-checked draft save.
|
|
107
|
+
|
|
93
108
|
Reference the returned `version.id` from the draft's `MENU_SELECTION` blocks,
|
|
94
109
|
then save with `event flow draft save`, `--allow-state-change`, and the event ID
|
|
95
110
|
as `--target`. Include the latest draft revision as `expectedRevision`; nested
|
package/dist/index.js
CHANGED
|
@@ -19216,6 +19216,13 @@ var commands = {
|
|
|
19216
19216
|
scope: "event",
|
|
19217
19217
|
summary: "List the menus, consent documents, images, and seat maps available to the registration flow."
|
|
19218
19218
|
},
|
|
19219
|
+
"event flow consent version create": {
|
|
19220
|
+
effects: ["state-change"],
|
|
19221
|
+
operation: (api2, input2) => api2.eventFlow.createConsentVersion.mutate(input2),
|
|
19222
|
+
payloadOnly: true,
|
|
19223
|
+
targetKey: "eventId",
|
|
19224
|
+
summary: "Create an immutable event consent version (--payload JSON)."
|
|
19225
|
+
},
|
|
19219
19226
|
"event flow menu version create": {
|
|
19220
19227
|
effects: ["state-change"],
|
|
19221
19228
|
operation: (api2, input2) => api2.eventFlow.createMenuVersion.mutate(input2),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Amgen disclaimer update — prepared, not applied
|
|
2
|
+
|
|
3
|
+
Source: Claudia Khng’s 11 September 2026 email, “RE: ASM DnD 2026 - Registration”,
|
|
4
|
+
attachment **Disclaimer B - ASM Indemnity Disclaimer (general activities).pdf**.
|
|
5
|
+
|
|
6
|
+
[consent-version.json](consent-version.json) contains the full four numbered clauses,
|
|
7
|
+
the bold/underlined title, defined-term emphasis, and confidentiality footer.
|
|
8
|
+
Only PDF line wrapping was normalized; the wording is unchanged. Rich HTML is the
|
|
9
|
+
authoritative display content; the API derives its plaintext fallback.
|
|
10
|
+
|
|
11
|
+
Target: Amgen’s **test** event `amgen-dinner-and-dance-2026-test`
|
|
12
|
+
(`cmthccwii000501lgluebz2v2`), existing consent document
|
|
13
|
+
`cmtqnemuh000o01lk4t8lxq1l`. This payload does not target the separate production event.
|
|
14
|
+
|
|
15
|
+
## Prerequisites and application
|
|
16
|
+
|
|
17
|
+
The `EventConsentDocumentVersion.contentRichText` schema field and corresponding
|
|
18
|
+
API/web changes must be available in the target environment first. Follow the
|
|
19
|
+
normal database/deployment workflow; this change includes no migration files.
|
|
20
|
+
|
|
21
|
+
After those prerequisites, from the repository root, create the immutable version:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
bun packages/rsvp/cli/src/index.ts event flow consent version create \
|
|
25
|
+
--allow-state-change \
|
|
26
|
+
--target cmthccwii000501lgluebz2v2 \
|
|
27
|
+
--payload "$(cat packages/rsvp/cli/examples/amgen-feedback-20260911/consent-version.json)"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Read the resource catalog back and verify the returned document/version and rich
|
|
31
|
+
content. Fetch the **latest** flow draft before changing its `indemnity` block’s
|
|
32
|
+
`consentVersionId` to the newly returned ID; preserve all other draft fields and
|
|
33
|
+
use the freshly read revision when saving. No full draft snapshot is provided here
|
|
34
|
+
because replaying one could overwrite unrelated edits.
|
|
35
|
+
|
|
36
|
+
At inspection on 11 September, the active flow was version **11** and the draft
|
|
37
|
+
revision was **23**. The draft contains other unpublished receipt/completion copy.
|
|
38
|
+
The current publication/session compatibility limitation is documented in
|
|
39
|
+
[the earlier application record](../amgen-feedback-20260909/applied-configuration.md).
|
|
40
|
+
Creating a document version, saving a draft reference, and publishing are separate
|
|
41
|
+
operations. None of those live writes was performed for this prepared update.
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"organizationId": "kh27TwiqDX8OJ1a28GJVW4oG9bhP7Ld5",
|
|
3
|
+
"eventId": "cmthccwii000501lgluebz2v2",
|
|
4
|
+
"document": {
|
|
5
|
+
"mode": "EXISTING",
|
|
6
|
+
"documentId": "cmtqnemuh000o01lk4t8lxq1l"
|
|
7
|
+
},
|
|
8
|
+
"content": "DISCLAIMER\n\n1. The participation in the activity is open to all regular full-time employees, and the immediate family members (hereinafter defined as spouse, child, parent or sibling) or guests of regular full-time employees at Amgen Singapore Manufacturing Pte Ltd. (“ASM”) or any of ASM’s parent, subsidiary or affiliated entities (collectively, “Amgen”), as determined and invited at Amgen’s sole discretion.\n\n2. You acknowledge that participation is strictly at your own volition and is undertaken at your own risk, under no coercion or pressure from Amgen or any third party, whether within Amgen or otherwise. It is not a term or condition of your employment with Amgen.\n\n3. Should you participate in this activity, Amgen assumes no responsibility for any liability, damage or injury that may be caused by your own negligent and willful acts and omissions related to or arising from your participation in the activity. You agree to indemnify, defend and hold harmless Amgen, from any loss or liability whatsoever, including reasonable attorneys' fees, associated with or arising from your negligent acts or willful acts and omissions related to or arising from your participation in the activity. You also acknowledge that in the event of liability, damage or injury that Amgen assesses (in its sole discretion) as not caused by your own negligent and willful acts and omissions, you will only be covered to the maximum extent in accordance with Amgen’s policies. Amgen’s decision shall be final and binding on you and you hereby release, waive, relinquish, discharge from liability and covenant not to sue Amgen from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from your participation in the activity.\n\n4. Immediate family members or guests of a regular full-time employee’s participation in the activity, whether or not supervised, is solely at their own risk and hereby release, waive, relinquish, discharge from liability and covenant not to sue ASM or any of ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees, representatives, independent contractors, insurers, attorneys and/or agents in their capacity as such or otherwise (the \"Releasees\") from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from their participation in the activity including but not limited to any negligent act or omission by any of the Releasees and/or any accident, illness or injury incurred as a result of their participation in the activity, save where such accident, illness or injury is directly caused by the gross negligence or willful misconduct of ASM, ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees or representatives.\n\nConfidential Human Resources",
|
|
9
|
+
"contentRichText": {
|
|
10
|
+
"json": {
|
|
11
|
+
"type": "doc",
|
|
12
|
+
"content": [
|
|
13
|
+
{
|
|
14
|
+
"type": "paragraph",
|
|
15
|
+
"content": [
|
|
16
|
+
{
|
|
17
|
+
"type": "text",
|
|
18
|
+
"text": "DISCLAIMER",
|
|
19
|
+
"marks": [
|
|
20
|
+
{
|
|
21
|
+
"type": "bold"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "underline"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "orderedList",
|
|
32
|
+
"attrs": {
|
|
33
|
+
"start": 1
|
|
34
|
+
},
|
|
35
|
+
"content": [
|
|
36
|
+
{
|
|
37
|
+
"type": "listItem",
|
|
38
|
+
"content": [
|
|
39
|
+
{
|
|
40
|
+
"type": "paragraph",
|
|
41
|
+
"content": [
|
|
42
|
+
{
|
|
43
|
+
"type": "text",
|
|
44
|
+
"text": "The participation in the activity is open to all regular full-time employees, and the immediate family members (hereinafter defined as spouse, child, parent or sibling) or guests of regular full-time employees at Amgen Singapore Manufacturing Pte Ltd. ("
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "text",
|
|
48
|
+
"text": "“ASM”",
|
|
49
|
+
"marks": [
|
|
50
|
+
{
|
|
51
|
+
"type": "bold"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "text",
|
|
57
|
+
"text": ") or any of ASM’s parent, subsidiary or affiliated entities (collectively, "
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "text",
|
|
61
|
+
"text": "“Amgen”",
|
|
62
|
+
"marks": [
|
|
63
|
+
{
|
|
64
|
+
"type": "bold"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "text",
|
|
70
|
+
"text": "), as determined and invited at Amgen’s sole discretion."
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "listItem",
|
|
78
|
+
"content": [
|
|
79
|
+
{
|
|
80
|
+
"type": "paragraph",
|
|
81
|
+
"content": [
|
|
82
|
+
{
|
|
83
|
+
"type": "text",
|
|
84
|
+
"text": "You acknowledge that participation is strictly at your own volition and is undertaken at your own risk, under no coercion or pressure from Amgen or any third party, whether within Amgen or otherwise. It is not a term or condition of your employment with Amgen."
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "listItem",
|
|
92
|
+
"content": [
|
|
93
|
+
{
|
|
94
|
+
"type": "paragraph",
|
|
95
|
+
"content": [
|
|
96
|
+
{
|
|
97
|
+
"type": "text",
|
|
98
|
+
"text": "Should you participate in this activity, Amgen assumes no responsibility for any liability, damage or injury that may be caused by your own negligent and willful acts and omissions related to or arising from your participation in the activity. You agree to indemnify, defend and hold harmless Amgen, from any loss or liability whatsoever, including reasonable attorneys' fees, associated with or arising from your negligent acts or willful acts and omissions related to or arising from your participation in the activity. You also acknowledge that in the event of liability, damage or injury that Amgen assesses (in its sole discretion) as not caused by your own negligent and willful acts and omissions, you will only be covered to the maximum extent in accordance with Amgen’s policies. Amgen’s decision shall be final and binding on you and you hereby release, waive, relinquish, discharge from liability and covenant not to sue Amgen from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from your participation in the activity."
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "listItem",
|
|
106
|
+
"content": [
|
|
107
|
+
{
|
|
108
|
+
"type": "paragraph",
|
|
109
|
+
"content": [
|
|
110
|
+
{
|
|
111
|
+
"type": "text",
|
|
112
|
+
"text": "Immediate family members or guests of a regular full-time employee’s participation in the activity, whether or not supervised, is solely at their own risk and hereby release, waive, relinquish, discharge from liability and covenant not to sue ASM or any of ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees, representatives, independent contractors, insurers, attorneys and/or agents in their capacity as such or otherwise (the "
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "text",
|
|
116
|
+
"text": "\"Releasees\"",
|
|
117
|
+
"marks": [
|
|
118
|
+
{
|
|
119
|
+
"type": "bold"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "text",
|
|
125
|
+
"text": ") from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from their participation in the activity including but not limited to any negligent act or omission by any of the Releasees and/or any accident, illness or injury incurred as a result of their participation in the activity, save where such accident, illness or injury is directly caused by the gross negligence or willful misconduct of ASM, ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees or representatives."
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "paragraph",
|
|
135
|
+
"content": [
|
|
136
|
+
{
|
|
137
|
+
"type": "text",
|
|
138
|
+
"text": "Confidential Human Resources"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"html": "<p><strong><u>DISCLAIMER</u></strong></p><ol><li><p>The participation in the activity is open to all regular full-time employees, and the immediate family members (hereinafter defined as spouse, child, parent or sibling) or guests of regular full-time employees at Amgen Singapore Manufacturing Pte Ltd. (<strong>“ASM”</strong>) or any of ASM’s parent, subsidiary or affiliated entities (collectively, <strong>“Amgen”</strong>), as determined and invited at Amgen’s sole discretion.</p></li><li><p>You acknowledge that participation is strictly at your own volition and is undertaken at your own risk, under no coercion or pressure from Amgen or any third party, whether within Amgen or otherwise. It is not a term or condition of your employment with Amgen.</p></li><li><p>Should you participate in this activity, Amgen assumes no responsibility for any liability, damage or injury that may be caused by your own negligent and willful acts and omissions related to or arising from your participation in the activity. You agree to indemnify, defend and hold harmless Amgen, from any loss or liability whatsoever, including reasonable attorneys' fees, associated with or arising from your negligent acts or willful acts and omissions related to or arising from your participation in the activity. You also acknowledge that in the event of liability, damage or injury that Amgen assesses (in its sole discretion) as not caused by your own negligent and willful acts and omissions, you will only be covered to the maximum extent in accordance with Amgen’s policies. Amgen’s decision shall be final and binding on you and you hereby release, waive, relinquish, discharge from liability and covenant not to sue Amgen from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from your participation in the activity.</p></li><li><p>Immediate family members or guests of a regular full-time employee’s participation in the activity, whether or not supervised, is solely at their own risk and hereby release, waive, relinquish, discharge from liability and covenant not to sue ASM or any of ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees, representatives, independent contractors, insurers, attorneys and/or agents in their capacity as such or otherwise (the <strong>"Releasees"</strong>) from any and all claims, demands, actions, suits, causes of action and/or liabilities, of whatever kind or nature, in law, equity or otherwise, related to or arising from their participation in the activity including but not limited to any negligent act or omission by any of the Releasees and/or any accident, illness or injury incurred as a result of their participation in the activity, save where such accident, illness or injury is directly caused by the gross negligence or willful misconduct of ASM, ASM’s parent, subsidiary or affiliated entities, including but not limited to Amgen Inc., as well as their respective directors, officers, employees or representatives.</p></li></ol><p>Confidential Human Resources</p>"
|
|
145
|
+
}
|
|
146
|
+
}
|