@go-labs-sg/rsvp 0.11.0 → 0.12.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.
Files changed (3) hide show
  1. package/README.md +33 -0
  2. package/dist/index.js +13 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -109,6 +109,39 @@ rsvp event flow versions list --organization-id org_123 --event-id evt_123
109
109
  rsvp event flow resources get --organization-id org_123 --event-id evt_123
110
110
  ```
111
111
 
112
+ ## Administrator registration for an invitee
113
+
114
+ Inspect the invitee's active registration form and current registration version
115
+ before submitting. The context includes the published flow definition, invitee,
116
+ and existing registration (if any):
117
+
118
+ ```sh
119
+ rsvp event flow admin registration context get \
120
+ --ack-sensitive-data \
121
+ --payload '{"organizationId":"org_123","eventId":"evt_123","inviteeId":"invitee_123"}'
122
+ ```
123
+
124
+ Use the returned `flowVersionId` and `expectedRegistrationVersion` in the
125
+ submission. Set `expectedOutcomeId` to the outcome selected by the answers in
126
+ the published definition, and provide answers keyed by each field's `outputKey`.
127
+ A new UUID `idempotencyKey` identifies this submission. The audit reason records
128
+ why an administrator submitted on the invitee's behalf.
129
+
130
+ ```sh
131
+ rsvp event flow admin registration submit \
132
+ --ack-sensitive-data \
133
+ --allow-state-change \
134
+ --target invitee_123 \
135
+ --payload '{"organizationId":"org_123","eventId":"evt_123","inviteeId":"invitee_123","flowVersionId":"flow_version_123","answers":{"attendance":"ATTENDING"},"expectedOutcomeId":"attending","expectedRegistrationVersion":0,"idempotencyKey":"9dd0ba39-b55e-4e65-aa3e-d08242c45b8f","auditReason":"Recorded response by phone"}'
136
+ ```
137
+
138
+ Replace the example answer key and value with those required by the returned
139
+ definition. If the flow requires a consent override, include a nonempty
140
+ `consentOverrideReason` in the submission payload. The override records the
141
+ administrator's reason in the audit trail; it does not record attendee consent
142
+ or a signature. A stale registration version or flow version is rejected; fetch
143
+ the context again before retrying with a new idempotency key.
144
+
112
145
  Create an immutable menu version with an explicit mutation acknowledgement. The
113
146
  target is the event ID in the payload:
114
147
 
package/dist/index.js CHANGED
@@ -6046,6 +6046,19 @@ var commands = {
6046
6046
  scope: "event",
6047
6047
  summary: "List the menus, consent documents, images, and seat maps available to the registration flow."
6048
6048
  },
6049
+ "event flow admin registration context get": {
6050
+ effects: ["sensitive-data"],
6051
+ operation: (api, input) => api.eventFlow.getAdminRegistrationContext.query(input),
6052
+ payloadOnly: true,
6053
+ summary: "Get an invitee's published flow and registration version (--payload JSON)."
6054
+ },
6055
+ "event flow admin registration submit": {
6056
+ effects: ["sensitive-data", "state-change"],
6057
+ operation: (api, input) => api.eventFlow.adminSubmit.mutate(input),
6058
+ payloadOnly: true,
6059
+ targetKey: "inviteeId",
6060
+ summary: "Register an invitee with flow answers and an audit reason (--payload JSON)."
6061
+ },
6049
6062
  "event flow consent version create": {
6050
6063
  effects: ["state-change"],
6051
6064
  operation: (api, input) => api.eventFlow.createConsentVersion.mutate(input),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-labs-sg/rsvp",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "RSVP CLI for authorized event operations.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",