wedance-shared 1.0.208 → 1.0.211
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/types/pass.d.ts +2 -1
- package/dist/types/school.d.ts +2 -3
- package/dist/types/ticket.d.ts +3 -0
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventSummary } from "./event.js";
|
|
2
|
-
import { MonetaryAmount, ProductType, TicketStatus, TicketTypeSummary } from "./ticket.js";
|
|
2
|
+
import { MonetaryAmount, PassAccessScope, ProductType, TicketStatus, TicketTypeSummary } from "./ticket.js";
|
|
3
3
|
type PaymentMethod = "stripe" | "cash" | "card_in_person" | "bank_transfer" | "comp";
|
|
4
4
|
export interface Pass {
|
|
5
5
|
id: string;
|
|
@@ -37,6 +37,7 @@ export interface Pass {
|
|
|
37
37
|
partnerFullName: string | null;
|
|
38
38
|
createdAt: string;
|
|
39
39
|
updatedAt: string;
|
|
40
|
+
accessScope: PassAccessScope;
|
|
40
41
|
/**
|
|
41
42
|
* For users without an account, the guest email and full name are stored here.
|
|
42
43
|
*/
|
package/dist/types/school.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { PassSummary } from "./pass.js";
|
|
|
2
2
|
import type { ProductType } from "./ticket.js";
|
|
3
3
|
export type SchoolStudentStatus = "active" | "inactive";
|
|
4
4
|
export type SchoolStaffRole = "owner" | "admin" | "instructor";
|
|
5
|
-
export type SchoolStaffAccessLevel = "full" | "limited" | "
|
|
5
|
+
export type SchoolStaffAccessLevel = "full" | "limited" | "none";
|
|
6
6
|
export type SchoolStaffStatus = "active" | "disabled";
|
|
7
7
|
export type SchoolClassStatus = "draft" | "active" | "archived";
|
|
8
8
|
export type SchoolEmailRecipientStatus = "pending" | "sent" | "delivered" | "bounced" | "complained" | "failed";
|
|
@@ -45,7 +45,7 @@ export type SchoolStudentSummary = Pick<SchoolStudent, "id" | "firstName" | "las
|
|
|
45
45
|
export interface SchoolStaff {
|
|
46
46
|
id: string;
|
|
47
47
|
organizerId: string;
|
|
48
|
-
/** Null
|
|
48
|
+
/** Null for a roster-only staff member with no WeDance account. */
|
|
49
49
|
userId: string | null;
|
|
50
50
|
firstName: string;
|
|
51
51
|
lastName: string;
|
|
@@ -53,7 +53,6 @@ export interface SchoolStaff {
|
|
|
53
53
|
phone: string | null;
|
|
54
54
|
roles: SchoolStaffRole[];
|
|
55
55
|
accessLevel: SchoolStaffAccessLevel;
|
|
56
|
-
invitedAt: string | null;
|
|
57
56
|
accessRevokedAt: string | null;
|
|
58
57
|
joinedAt: string | null;
|
|
59
58
|
status: SchoolStaffStatus;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export type TicketTypeBase = {
|
|
|
127
127
|
* For the school classes, the id of the class
|
|
128
128
|
*/
|
|
129
129
|
classId?: string | null;
|
|
130
|
+
accessScope: PassAccessScope;
|
|
130
131
|
};
|
|
131
132
|
/**
|
|
132
133
|
* A ticket sold for one specific event. The only variant currently written in
|
|
@@ -139,6 +140,7 @@ export type EventTicketType = TicketTypeBase & {
|
|
|
139
140
|
validityDays?: never;
|
|
140
141
|
validFrom?: never;
|
|
141
142
|
validUntil?: never;
|
|
143
|
+
accessScope: "event";
|
|
142
144
|
/**
|
|
143
145
|
* @deprecated Replaced by name
|
|
144
146
|
*/
|
|
@@ -215,6 +217,7 @@ export type TicketType = EventTicketType | DropInTicketType | PassTicketType | M
|
|
|
215
217
|
*/
|
|
216
218
|
export type EventTicket = EventTicketType;
|
|
217
219
|
export type ProductType = "event" | "drop_in" | "pass" | "membership" | "course";
|
|
220
|
+
export type PassAccessScope = "event" | "event_series" | "specific_class" | "school_classes";
|
|
218
221
|
/**
|
|
219
222
|
* Lightweight ticket-type projection for joins (e.g. on a Pass) where the full
|
|
220
223
|
* {@link TicketType} is not needed.
|
package/package.json
CHANGED