wedance-shared 1.0.195 → 1.0.197

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.
@@ -94,7 +94,6 @@ export type UserEventRelation = {
94
94
  eventId: string;
95
95
  type: "going" | "saved";
96
96
  createdAt: string;
97
- deletedAt?: string;
98
97
  };
99
98
  export type UserOrganizerRelation = {
100
99
  id: string;
@@ -1,5 +1,6 @@
1
1
  import { EventSummary } from "./event.js";
2
2
  import { MonetaryAmount, ProductType, TicketStatus, TicketTypeSummary } from "./ticket.js";
3
+ type PaymentMethod = "stripe" | "cash" | "card_in_person" | "bank_transfer" | "comp";
3
4
  export interface Pass {
4
5
  id: string;
5
6
  userId: string;
@@ -41,6 +42,8 @@ export interface Pass {
41
42
  */
42
43
  guestEmail: string | null;
43
44
  guestFullName: string | null;
45
+ paymentMethod: PaymentMethod;
46
+ issuedBy: string | null | undefined;
44
47
  }
45
48
  export interface PassRedemption {
46
49
  id: string;
@@ -52,3 +55,4 @@ export interface PassRedemption {
52
55
  creditsSpent: number;
53
56
  status: "valid" | "reversed";
54
57
  }
58
+ export {};
@@ -48,7 +48,7 @@ export type PrivateClass = {
48
48
  * column on the private_classes table; null when that document is gone.
49
49
  */
50
50
  teacher: UserSummary | null;
51
- priority: number;
51
+ priority: number | null;
52
52
  };
53
53
  /**
54
54
  * `PUT /private-classes` — creates or replaces the caller's own listing. A full
@@ -96,13 +96,13 @@ export interface SchoolClass {
96
96
  /** Class booking format (e.g. open vs lead/follow). */
97
97
  format: string;
98
98
  /** Recurrence rule for generating sessions. */
99
- recurrence: string;
99
+ recurrenceType: string;
100
100
  /** Weekdays to repeat on (0 = Sunday … 6 = Saturday). Empty when not recurring. */
101
101
  repeatWeekdays: number[];
102
102
  /** Default session start time (`HH:MM:SS` / `HH:MM`). */
103
103
  defaultStartTime: string | null;
104
- seriesStartsOn: string | null;
105
- seriesEndsOn: string | null;
104
+ recurrenceStartsOn: string | null;
105
+ recurrenceEndsOn: string | null;
106
106
  /** Fallback session length when a session has no explicit endsAt override. */
107
107
  defaultClassDurationMinutes: number | null;
108
108
  status: SchoolClassStatus;
@@ -143,6 +143,8 @@ export interface ClassSession {
143
143
  roomId: string | null;
144
144
  /** Overrides the parent class capacity for this session only. */
145
145
  capacityOverride: number | null;
146
+ capacityLeadOverride: number | null;
147
+ capacityFollowOverride: number | null;
146
148
  status: ClassSessionStatus;
147
149
  cancellationReason: string | null;
148
150
  cancelledAt: string | null;
@@ -304,7 +304,7 @@ export type CheckoutClient = "mobile" | "web";
304
304
  export type CheckoutMode = "payment" | "setup" | "subscription";
305
305
  export type CheckoutSession = {
306
306
  id: string;
307
- user_id: string;
307
+ user_id: string | null;
308
308
  amount: number;
309
309
  client: CheckoutClient;
310
310
  created: Date;
@@ -317,7 +317,6 @@ export type CheckoutSession = {
317
317
  transfer_data_destination: string | null;
318
318
  quantity: number;
319
319
  event_id: string | null;
320
- organizer_id: string;
321
320
  event_ticket_id: string;
322
321
  discount_code: string | null;
323
322
  discount_code_id: string | null;
@@ -20,7 +20,7 @@ export interface WedanceActivity {
20
20
  id: string;
21
21
  eventId: string;
22
22
  postId: string | null;
23
- organizerId: string | null;
23
+ userId: string | null;
24
24
  type: WedanceActivityType;
25
25
  metadata: Record<string, unknown> | null;
26
26
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
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",