wedance-shared 1.0.236 → 1.0.239
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/organizer.d.ts +1 -0
- package/dist/types/school.d.ts +21 -0
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ export type OrganizerData = {
|
|
|
44
44
|
eventsCount?: number;
|
|
45
45
|
stripeAccountId?: string | null;
|
|
46
46
|
stripeTerminalLocationId?: string | null;
|
|
47
|
+
isStripeEnabled?: boolean;
|
|
47
48
|
/**
|
|
48
49
|
* Merchant-of-Record / legal entity details. When `isMerchantOfRecord` is true
|
|
49
50
|
* AND the legal fields below are complete, the organizer is shown as the seller
|
package/dist/types/school.d.ts
CHANGED
|
@@ -264,6 +264,27 @@ export interface PublicClassSession {
|
|
|
264
264
|
instructor: PublicStaffSummary | null;
|
|
265
265
|
secondaryInstructor: PublicStaffSummary | null;
|
|
266
266
|
}
|
|
267
|
+
/** An instructor on a school's public profile. */
|
|
268
|
+
export type PublicInstructor = PublicStaffSummary & {
|
|
269
|
+
/** The linked dancer account's profile picture, when there is one. */
|
|
270
|
+
photoUrl: string | null;
|
|
271
|
+
/** Dance tags of the active classes they teach, deduplicated. */
|
|
272
|
+
danceStyles: string[];
|
|
273
|
+
};
|
|
274
|
+
/** One address of a school, with the active rooms at it. */
|
|
275
|
+
export interface PublicSchoolLocation {
|
|
276
|
+
address: string;
|
|
277
|
+
rooms: string[];
|
|
278
|
+
}
|
|
279
|
+
/** What `/school/public/organizers/:organizerId/profile` serves for a school's About page. */
|
|
280
|
+
export interface PublicSchoolProfile {
|
|
281
|
+
/** Active dance style names, by name. */
|
|
282
|
+
danceStyles: string[];
|
|
283
|
+
/** Active staff with the instructor role, by first name. */
|
|
284
|
+
instructors: PublicInstructor[];
|
|
285
|
+
/** Active rooms grouped by their location; rooms with none are left out. */
|
|
286
|
+
locations: PublicSchoolLocation[];
|
|
287
|
+
}
|
|
267
288
|
/** Row shape for `public.class_enrollments`. */
|
|
268
289
|
export interface ClassEnrollment {
|
|
269
290
|
id: string;
|
package/package.json
CHANGED