@go-labs-sg/event-tech 1.6.0 → 1.8.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 +31 -3
- package/command-reference.md +9 -6
- package/dist/index.js +2460 -1003
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -331,9 +331,37 @@ et lucky-draw config get --event-id <event-id>
|
|
|
331
331
|
et lucky-draw prizes list --event-id <event-id>
|
|
332
332
|
```
|
|
333
333
|
|
|
334
|
-
`organization create` also emails an owner invitation to `--owner-email
|
|
335
|
-
`
|
|
336
|
-
|
|
334
|
+
`organization create` also emails an owner invitation to `--owner-email` after
|
|
335
|
+
the organization is saved. `deliveryStatus` reports `sent` or `failed`, and the
|
|
336
|
+
outcome is stored on the invitation (`ownerInvitation.emailDeliveryStatus`,
|
|
337
|
+
`emailLastError`, `emailSentAt`). A failed send never fails the command: the
|
|
338
|
+
organization exists, so resend the invitation with `organization invitation
|
|
339
|
+
resend`. The name must be unique among active organizations
|
|
340
|
+
(case-insensitive), otherwise the API returns `CONFLICT`.
|
|
341
|
+
|
|
342
|
+
### Invitation email status
|
|
343
|
+
|
|
344
|
+
Invitation emails are sent once the invitation is saved, with a Resend
|
|
345
|
+
idempotency key derived from the invitation, so a retried send never emails
|
|
346
|
+
twice. `organization member invite`, `organization invitation resend`, `event
|
|
347
|
+
access invite` and `event access invitation-resend` return `deliveryStatus`
|
|
348
|
+
(`sent` or `failed`) and the saved invitation with `emailDeliveryStatus`
|
|
349
|
+
(`SENT`, `FAILED`, or `SENDING` when no outcome was recorded),
|
|
350
|
+
`emailLastError` and `emailSentAt`. A rejected or uncertain send is saved as
|
|
351
|
+
`FAILED`; resending replaces the invitation and sends a new email.
|
|
352
|
+
`organization member list`, `event access list` and `admin organization list`
|
|
353
|
+
show the same fields on pending invitations (`null` for invitations created
|
|
354
|
+
before tracking). Legacy (policy v1) member invitations store the same fields on
|
|
355
|
+
the member row; `organization member invitation-resend` re-sends a pending
|
|
356
|
+
legacy member's email with a new idempotency key and updates those fields.
|
|
357
|
+
Owners and admins can resend to members; owner and admin invitations need an
|
|
358
|
+
owner or global admin, as for other member changes. Active members are refused.
|
|
359
|
+
|
|
360
|
+
```bash
|
|
361
|
+
et organization member invitation-resend --allow-state-change --allow-email \
|
|
362
|
+
--target member_123 \
|
|
363
|
+
--input '{"organizationId":"org_123","memberId":"member_123"}'
|
|
364
|
+
```
|
|
337
365
|
|
|
338
366
|
`event create` requires `--location` and `--start` because the API does. Dates
|
|
339
367
|
are ISO 8601 date-times; include an offset so the time is unambiguous.
|
package/command-reference.md
CHANGED
|
@@ -6,12 +6,15 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
6
6
|
## Registry commands
|
|
7
7
|
|
|
8
8
|
- `et organization member list` → `organization.getOrganizationMembersById` (query)
|
|
9
|
-
- List an organization's members and pending invitations (paged).
|
|
9
|
+
- List an organization's members and pending invitations (paged), with each invitation's stored emailDeliveryStatus.
|
|
10
10
|
- `et organization member list-all` → `organization.getMembersByOrganization` (query)
|
|
11
11
|
- List every member of an organization without paging.
|
|
12
12
|
- `et organization member invite` → `organization.createOrganizationMember` (mutation)
|
|
13
|
-
- Invite a member to an organization and email the invitation.
|
|
13
|
+
- Invite a member to an organization and email the invitation; reports deliveryStatus and the stored emailDeliveryStatus.
|
|
14
14
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
|
|
15
|
+
- `et organization member invitation-resend` → `organization.resendOrganizationMemberInvitation` (mutation)
|
|
16
|
+
- Resend the invitation email to a pending legacy (policy v1) member; reports deliveryStatus and the stored emailDeliveryStatus.
|
|
17
|
+
- Confirm: `--allow-state-change` `--allow-email` `--target <input.memberId>`
|
|
15
18
|
- `et organization member remove` → `organization.deleteOrganizationMember` (mutation)
|
|
16
19
|
- Remove a member (or leave with isLeaving) and revoke their event access.
|
|
17
20
|
- Confirm: `--allow-state-change` `--target <input.memberId>`
|
|
@@ -43,7 +46,7 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
43
46
|
- Cancel a pending organization invitation.
|
|
44
47
|
- Confirm: `--allow-state-change` `--target <input.invitationId>`
|
|
45
48
|
- `et organization invitation resend` → `organization.resendInvitation` (mutation)
|
|
46
|
-
-
|
|
49
|
+
- Replace a pending organization invitation and email it; reports deliveryStatus and the stored emailDeliveryStatus.
|
|
47
50
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.invitationId>`
|
|
48
51
|
- `et organization update` → `organization.updateOrganizationById` (mutation)
|
|
49
52
|
- Update organization details. name is required; omitted optional fields are unchanged.
|
|
@@ -118,13 +121,13 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
118
121
|
- `et event access mine` → `access.getMyEventAccess` (query)
|
|
119
122
|
- Show the current user's role and permissions for an event.
|
|
120
123
|
- `et event access list` → `access.listEventAssignments` (query)
|
|
121
|
-
- List event staff assignments and pending staff invitations.
|
|
124
|
+
- List event staff assignments and pending staff invitations, with each invitation's stored emailDeliveryStatus.
|
|
122
125
|
- `et event access invite` → `access.inviteEventStaff` (mutation)
|
|
123
|
-
- Invite event staff by email. startsAt/expiresAt are ISO date-times or null.
|
|
126
|
+
- Invite event staff by email; reports deliveryStatus and the stored emailDeliveryStatus. startsAt/expiresAt are ISO date-times or null.
|
|
124
127
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
|
|
125
128
|
- Date fields: `expiresAt`, `startsAt`
|
|
126
129
|
- `et event access invitation-resend` → `access.resendEventStaffInvitation` (mutation)
|
|
127
|
-
-
|
|
130
|
+
- Replace a pending event staff invitation and email it; reports deliveryStatus and the stored emailDeliveryStatus.
|
|
128
131
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.invitationId>`
|
|
129
132
|
- `et event access invitation-revoke` → `access.revokeEventStaffInvitation` (mutation)
|
|
130
133
|
- Revoke a pending event staff invitation.
|