@go-labs-sg/event-tech 1.5.0 → 1.7.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 +26 -9
- package/dist/index.js +1601 -21
- package/package.json +1 -2
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.
|
|
@@ -83,7 +86,14 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
83
86
|
- `et admin event get` → `admin.event.getEvent` (query)
|
|
84
87
|
- Get any event by ID as a global admin.
|
|
85
88
|
- `et admin member list` → `admin.member.getAllMembers` (query)
|
|
86
|
-
- List organization members across every organization
|
|
89
|
+
- List organization members across every organization (paged; filter by search, organizationId, role, status, joinedFrom/joinedTo).
|
|
90
|
+
- Date fields: `joinedFrom`, `joinedTo`
|
|
91
|
+
- `et admin member count` → `admin.member.getMemberCounts` (query)
|
|
92
|
+
- Count members matching the list filters, with role and status splits.
|
|
93
|
+
- Date fields: `joinedFrom`, `joinedTo`
|
|
94
|
+
- `et admin member export` → `admin.member.exportMembers` (query)
|
|
95
|
+
- Export every member matching the list filters (fails above 5,000 rows).
|
|
96
|
+
- Date fields: `joinedFrom`, `joinedTo`
|
|
87
97
|
- `et admin member role-update` → `admin.member.updateMemberRole` (mutation)
|
|
88
98
|
- Change any organization member's role as a global admin.
|
|
89
99
|
- Confirm: `--allow-state-change` `--target <input.memberId>`
|
|
@@ -91,11 +101,18 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
91
101
|
- Remove a member from an organization and delete their allowed-email entries.
|
|
92
102
|
- Confirm: `--allow-state-change` `--allow-delete` `--target <input.memberId>`
|
|
93
103
|
- `et admin activity list` → `admin.activity.getAll` (query)
|
|
94
|
-
- List
|
|
104
|
+
- List organization and member activity-log events (paged; filter by search, organizationId, eventType, from/to).
|
|
105
|
+
- Date fields: `from`, `to`
|
|
106
|
+
- `et admin activity count` → `admin.activity.getCounts` (query)
|
|
107
|
+
- Count activity matching the filters, with 30-day daily and type splits.
|
|
108
|
+
- Date fields: `from`, `to`
|
|
109
|
+
- `et admin activity export` → `admin.activity.export` (query)
|
|
110
|
+
- Export every activity event matching the filters (fails above 5,000 rows).
|
|
111
|
+
- Date fields: `from`, `to`
|
|
95
112
|
- `et admin dashboard event-analytics` → `admin.dashboard.getEventAnalytics` (query)
|
|
96
113
|
- Get platform event analytics as a global admin.
|
|
97
114
|
- `et admin user list` → `admin.user.getUsers` (query)
|
|
98
|
-
- List users
|
|
115
|
+
- List users A to Z by name (paged; filter by search).
|
|
99
116
|
- `et admin user get` → `admin.user.getUserById` (query)
|
|
100
117
|
- Get one user as a global admin.
|
|
101
118
|
- `et admin user role-update` → `admin.user.updateSystemRole` (mutation)
|
|
@@ -104,13 +121,13 @@ Run `et <command> --help` for the full input JSON Schema.
|
|
|
104
121
|
- `et event access mine` → `access.getMyEventAccess` (query)
|
|
105
122
|
- Show the current user's role and permissions for an event.
|
|
106
123
|
- `et event access list` → `access.listEventAssignments` (query)
|
|
107
|
-
- List event staff assignments and pending staff invitations.
|
|
124
|
+
- List event staff assignments and pending staff invitations, with each invitation's stored emailDeliveryStatus.
|
|
108
125
|
- `et event access invite` → `access.inviteEventStaff` (mutation)
|
|
109
|
-
- 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.
|
|
110
127
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.email>`
|
|
111
128
|
- Date fields: `expiresAt`, `startsAt`
|
|
112
129
|
- `et event access invitation-resend` → `access.resendEventStaffInvitation` (mutation)
|
|
113
|
-
-
|
|
130
|
+
- Replace a pending event staff invitation and email it; reports deliveryStatus and the stored emailDeliveryStatus.
|
|
114
131
|
- Confirm: `--allow-state-change` `--allow-email` `--target <input.invitationId>`
|
|
115
132
|
- `et event access invitation-revoke` → `access.revokeEventStaffInvitation` (mutation)
|
|
116
133
|
- Revoke a pending event staff invitation.
|