wedance-shared 1.0.127 → 1.0.130

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.
@@ -7,4 +7,5 @@ export * from "./other.js";
7
7
  export * from "./analytics.js";
8
8
  export * from "./infoBanner.js";
9
9
  export * from "./wedancePosts.js";
10
+ export * from "./support.js";
10
11
  export * from "./festivals/index.js";
@@ -8,6 +8,7 @@ export * from "./other.js";
8
8
  export * from "./analytics.js";
9
9
  export * from "./infoBanner.js";
10
10
  export * from "./wedancePosts.js";
11
+ export * from "./support.js";
11
12
  // Re-export from subdirectories
12
13
  export * from "./festivals/index.js";
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAElC,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface WeDanceSupportTicket {
2
+ id: string;
3
+ userId: string;
4
+ email: string;
5
+ subject: string | null | undefined;
6
+ message: string;
7
+ appVersion: string;
8
+ deviceModel: string;
9
+ platform: string;
10
+ createdAt: string;
11
+ status: "open" | "in_progress" | "closed";
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../../src/types/support.ts"],"names":[],"mappings":""}
@@ -76,6 +76,9 @@ export type TicketTransfer = {
76
76
  toUserId: string;
77
77
  timestamp: Timestamp;
78
78
  };
79
+ /**
80
+ * @deprecated Replaced by TicketCoupon
81
+ */
79
82
  export type CouponCode = {
80
83
  code: string;
81
84
  discountType: "fixed" | "percentage";
@@ -83,6 +86,22 @@ export type CouponCode = {
83
86
  startDate: string | null;
84
87
  expiryDate: string | null;
85
88
  };
89
+ export type TicketCouponDiscountType = "fixed" | "percentage";
90
+ /**
91
+ * Row shape for `public.ticket_coupons`.
92
+ */
93
+ export type TicketCoupon = {
94
+ id: string;
95
+ ticketTypeId: string | null;
96
+ code: string;
97
+ discountType: TicketCouponDiscountType;
98
+ discountAmount: number;
99
+ startDate: string | null;
100
+ expiryDate: string | null;
101
+ organizerId: string | null;
102
+ maxRedemptions: number | null;
103
+ redemptionCount: number;
104
+ };
86
105
  export type EventTicket = {
87
106
  id: string;
88
107
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.127",
3
+ "version": "1.0.130",
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",