wedance-shared 1.0.251 → 1.0.252

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.251",
3
+ "version": "1.0.252",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",