@go-labs-sg/rsvp 0.12.0 → 0.13.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/dist/index.js CHANGED
@@ -5595,7 +5595,7 @@ var ensurePrivateCredentialLockDirectory = async () => {
5595
5595
  return directoryStat;
5596
5596
  };
5597
5597
  const directoryStat = await inspectDirectory();
5598
- if ((directoryStat.mode & 63) !== 0) {
5598
+ if (process.platform !== "win32" && (directoryStat.mode & 63) !== 0) {
5599
5599
  await chmod(directory, 448);
5600
5600
  const securedDirectoryStat = await inspectDirectory();
5601
5601
  if ((securedDirectoryStat.mode & 63) !== 0) {
@@ -0,0 +1,78 @@
1
+ # Amgen public registration page copy
2
+
3
+ `public-page-patch.json` contains only the intended public-page settings. It is
4
+ not a standalone `event setup update` payload. That command requires a complete
5
+ revision-checked setup payload, including the current event identity and
6
+ configuration version. The API merges supplied `publicPage` keys into the
7
+ saved object, so keeping this patch to the three requested keys preserves the
8
+ event's existing registration description and other public-page settings.
9
+
10
+ ## Refresh each event before preparing an update
11
+
12
+ Use the authenticated Registration CLI and the Amgen organization ID to find
13
+ the official and test event IDs by their current slugs. Do this independently
14
+ for each event; do not copy an ID or version from an older example or from the
15
+ other event. The slugs are `amgen-dinner-and-dance-2026` (official) and
16
+ `amgen-dinner-and-dance-2026-test` (test).
17
+
18
+ ```sh
19
+ rsvp event list --organization-id <amgen-organization-id>
20
+ rsvp event get --organization-id <amgen-organization-id> --event-id <event-id>
21
+ ```
22
+
23
+ From each fresh `event get` response, record `configurationVersion` and build a
24
+ complete setup input using the current values. The `version` field must equal
25
+ that `configurationVersion`. Supply required fields: `accessMode`,
26
+ `allowedEmailDomains`, `employeeIdMatchingEnabled`, `guestPolicy`, `name`,
27
+ `organizationId`, `eventId`, `personalEmailPolicy`, `retentionMonths`,
28
+ `seatHoldMinutes`, `seatingAssignmentMode`, `seatingMode`, `slug`, `status`,
29
+ `timeZone`, `waitlistEnabled`, `waitlistOfferTtlMinutes`, and `walkInsEnabled`.
30
+ Also include optional values that must be retained. In particular, map
31
+ `capacityLimit` from the event's `capacityState.capacityLimit` (or
32
+ `metadataJson.capacityLimit`) because omitting it clears the configured limit;
33
+ map `guestPolicyJson` to `guestPolicy`; retain nullable date fields and
34
+ `description` because omitted dates become null and omitted `description` is
35
+ cleared. Retain `dietaryClosesAt`, `endsAt`, `rsvpClosesAt`, `rsvpOpensAt`,
36
+ `startsAt`, and `venueName`, including their current null values. Omit
37
+ `checkInQrRelease` from this copy-only setup payload. The API preserves its
38
+ stored policy, including the absence of an explicit policy, when this field is
39
+ omitted. The top-level value returned by `event get` can be an inferred fallback;
40
+ submitting it would persist that fallback as a new explicit policy. For
41
+ `publicTheme`, use the stored `metadataJson.publicTheme` values rather than the
42
+ display-resolved `publicTheme` object, which can contain a non-input image URL.
43
+ Keep existing `publicPage` values from `metadataJson.publicPage`.
44
+
45
+ Keep each event's current dates, registration windows, status, capacity limit,
46
+ and QR release configuration unchanged. Do not change schedule or
47
+ status fields as part of this copy update. Merge only the three values from
48
+ `public-page-patch.json` into the current `publicPage` object. Omitted
49
+ `publicPage` keys are preserved by the setup API merge. Explicitly retain the
50
+ setup fields that omission clears, as listed above; omit `checkInQrRelease` to
51
+ keep the stored policy unchanged.
52
+
53
+ The currently published schedule governs whether registration is open. If an
54
+ event is closed under its existing schedule, do not alter the schedule to make
55
+ the page appear open; defer validation of the open-page copy until the existing
56
+ schedule permits it. `showDeadlineNotice: true` retains the deadline notice,
57
+ while the separately implemented `showResponseUpdateNotice: false` hides only
58
+ the update-response sentence.
59
+
60
+ The official page currently shows “Registration not open”; this patch does not
61
+ override that state. If the setup API refuses an update because the event is
62
+ completed, cancelled, or archived, stop rather than changing its status.
63
+
64
+ ## Apply after the compatible deployment
65
+
66
+ The `showResponseUpdateNotice` setting must be supported by the deployed API
67
+ and web app before applying this payload. Once the compatible version is
68
+ deployed, inspect the prepared full payload, then apply it separately to each
69
+ event using its freshly read ID and version:
70
+
71
+ ```sh
72
+ rsvp event setup update \
73
+ --allow-state-change \
74
+ --target <event-id> \
75
+ --payload "$(cat event-setup-current.json)"
76
+ ```
77
+
78
+ This command is documented for later use and was not executed for this task.
@@ -0,0 +1,7 @@
1
+ {
2
+ "publicPage": {
3
+ "registrationActionLabel": "Click here to register",
4
+ "showDeadlineNotice": true,
5
+ "showResponseUpdateNotice": false
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-labs-sg/rsvp",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "RSVP CLI for authorized event operations.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",