wedance-shared 1.0.156 → 1.0.157

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.
@@ -1,4 +1,4 @@
1
- import { MonetaryAmount } from "./ticket.js";
1
+ import { MonetaryAmount, ProductType } from "./ticket.js";
2
2
  export interface Pass {
3
3
  id: string;
4
4
  userId: string;
@@ -8,7 +8,7 @@ export interface Pass {
8
8
  seriesId: string | null;
9
9
  checkoutSessionId: string | null;
10
10
  paymentId: string | null;
11
- productType: string;
11
+ productType: ProductType;
12
12
  creditsTotal: number | null;
13
13
  creditsRemaining: number | null;
14
14
  validFrom: string;
@@ -139,7 +139,7 @@ export type EventTicket = {
139
139
  * @deprecated Replaced by price_details
140
140
  */
141
141
  price?: number;
142
- productType: string;
142
+ productType: ProductType;
143
143
  credits: number | null;
144
144
  validityDays: number | null;
145
145
  validFrom: string | null;
@@ -147,6 +147,7 @@ export type EventTicket = {
147
147
  organizerId: string;
148
148
  seriesId: string | null;
149
149
  };
150
+ export type ProductType = "event" | "drop_in" | "pass" | "membership" | "course";
150
151
  export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
151
152
  export type PromotionalPeriod = {
152
153
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.156",
3
+ "version": "1.0.157",
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",