wedance-shared 1.0.251 → 1.0.253
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/event.d.ts +6 -0
- package/dist/types/school.d.ts +27 -0
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -12,9 +12,15 @@ export type Links = {
|
|
|
12
12
|
website?: string;
|
|
13
13
|
other?: string;
|
|
14
14
|
};
|
|
15
|
+
export type Coordinates = {
|
|
16
|
+
latitude: number;
|
|
17
|
+
longitude: number;
|
|
18
|
+
};
|
|
15
19
|
export type Location = {
|
|
16
20
|
name: string;
|
|
17
21
|
address?: string;
|
|
22
|
+
/** Venue position, set when the address was picked from Google. Null for older events. */
|
|
23
|
+
coordinates?: Coordinates | null;
|
|
18
24
|
};
|
|
19
25
|
export type EventStatus = "published" | "cancelled" | "unpublished" | "draft";
|
|
20
26
|
export type ImageData = {
|
package/dist/types/school.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export interface SchoolDanceStyles {
|
|
|
97
97
|
export interface SchoolRoom {
|
|
98
98
|
id: string;
|
|
99
99
|
organizerId: string;
|
|
100
|
+
locationId: string;
|
|
100
101
|
name: string;
|
|
101
102
|
location: string | null;
|
|
102
103
|
capacity: number | null;
|
|
@@ -111,6 +112,32 @@ export interface SchoolRoom {
|
|
|
111
112
|
* Populated server-side via a join.
|
|
112
113
|
*/
|
|
113
114
|
export type SchoolRoomSummary = Pick<SchoolRoom, "id" | "name" | "location" | "color" | "capacity">;
|
|
115
|
+
export type SchoolLocationStatus = "active" | "inactive";
|
|
116
|
+
/** Row shape for `public.school_locations`. */
|
|
117
|
+
export interface SchoolLocation {
|
|
118
|
+
id: string;
|
|
119
|
+
organizerId: string;
|
|
120
|
+
name: string;
|
|
121
|
+
addressLine1: string | null;
|
|
122
|
+
addressLine2: string | null;
|
|
123
|
+
postalCode: string | null;
|
|
124
|
+
city: string | null;
|
|
125
|
+
/** ISO 3166-1 alpha-2. */
|
|
126
|
+
countryCode: string | null;
|
|
127
|
+
timezone: string;
|
|
128
|
+
status: SchoolLocationStatus;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
}
|
|
132
|
+
export type SchoolLocationAccessLevel = "viewer" | "booker";
|
|
133
|
+
/** Row shape for `public.school_location_access`: grants another organizer access to a location. */
|
|
134
|
+
export interface SchoolLocationAccess {
|
|
135
|
+
id: string;
|
|
136
|
+
locationId: string;
|
|
137
|
+
organizerId: string;
|
|
138
|
+
accessLevel: SchoolLocationAccessLevel;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
}
|
|
114
141
|
/** Row shape for `public.school_classes`. */
|
|
115
142
|
export interface SchoolClass {
|
|
116
143
|
id: string;
|
package/package.json
CHANGED