wedance-shared 1.0.10 → 1.0.12

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/event.d.ts CHANGED
@@ -81,3 +81,44 @@ export type LineUpArtist = {
81
81
  image: string;
82
82
  imageUrl: string;
83
83
  };
84
+ export type Featured = {
85
+ /**
86
+ * ID of the promotion
87
+ */
88
+ id: string;
89
+ /**
90
+ * ID of the event being promoted
91
+ */
92
+ eventId: string;
93
+ /**
94
+ * Cities where this promotion should be shown
95
+ */
96
+ cities: City["city"][];
97
+ /**
98
+ * Priority level for displaying multiple featured events (higher = more prominent)
99
+ */
100
+ priority: number;
101
+ /**
102
+ * Optional custom promotion message
103
+ */
104
+ promotionalText?: string;
105
+ /**
106
+ * Who created this promotion
107
+ */
108
+ createdBy: string;
109
+ /**
110
+ * When this promotion was created (ISO date string)
111
+ */
112
+ createdAt: string;
113
+ /**
114
+ * Whether the promotion is currently active
115
+ */
116
+ isActive: boolean;
117
+ /**
118
+ * Date range of the promotion
119
+ */
120
+ dateRange: {
121
+ startDate: string;
122
+ endDate: string;
123
+ };
124
+ };
package/dist/ticket.d.ts CHANGED
@@ -54,3 +54,57 @@ export type EventTicket = {
54
54
  isRefundable: boolean;
55
55
  status: "published" | "draft";
56
56
  };
57
+ export type Payment = {
58
+ amount: number;
59
+ amount_capturable: number;
60
+ amount_details: {
61
+ tip: any;
62
+ };
63
+ amount_received: number;
64
+ application: string | null;
65
+ application_fee_amount: number | null;
66
+ automatic_payment_methods: {
67
+ allow_redirects: "always" | "never";
68
+ enabled: boolean;
69
+ };
70
+ canceled_at: string | null;
71
+ cancellation_reason: string | null;
72
+ capture_method: "automatic" | "manual";
73
+ client_secret: string;
74
+ confirmation_method: string;
75
+ created: number;
76
+ currency: string;
77
+ customer: string;
78
+ description: string | null;
79
+ id: string;
80
+ invoice: string | null;
81
+ last_payment_error: string | null;
82
+ latest_charge: string;
83
+ livemode: boolean;
84
+ metadata: Record<string, any>;
85
+ next_action: string | null;
86
+ object: string;
87
+ on_behalf_of: string | null;
88
+ payment_method_types: ("card" | "mobilepay")[];
89
+ payment_method_configuration_details: {
90
+ id: string;
91
+ };
92
+ payment_method_options: {
93
+ card: {
94
+ network?: string;
95
+ request_three_d_secure: string;
96
+ };
97
+ mobilepay: any;
98
+ };
99
+ processing: string | null;
100
+ receipt_email: string;
101
+ review: string | null;
102
+ setup_future_usage: string | null;
103
+ shipping: string | null;
104
+ source: string | null;
105
+ statement_descriptor: string | null;
106
+ statement_descriptor_suffix: string | null;
107
+ status: "succeeded" | string;
108
+ transfer_data: string | null;
109
+ transfer_group: string | null;
110
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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",
package/src/event.ts CHANGED
@@ -96,3 +96,45 @@ export type LineUpArtist = {
96
96
  image: string;
97
97
  imageUrl: string;
98
98
  };
99
+
100
+ export type Featured = {
101
+ /**
102
+ * ID of the promotion
103
+ */
104
+ id: string;
105
+ /**
106
+ * ID of the event being promoted
107
+ */
108
+ eventId: string;
109
+ /**
110
+ * Cities where this promotion should be shown
111
+ */
112
+ cities: City["city"][];
113
+ /**
114
+ * Priority level for displaying multiple featured events (higher = more prominent)
115
+ */
116
+ priority: number;
117
+ /**
118
+ * Optional custom promotion message
119
+ */
120
+ promotionalText?: string;
121
+ /**
122
+ * Who created this promotion
123
+ */
124
+ createdBy: string;
125
+ /**
126
+ * When this promotion was created (ISO date string)
127
+ */
128
+ createdAt: string;
129
+ /**
130
+ * Whether the promotion is currently active
131
+ */
132
+ isActive: boolean;
133
+ /**
134
+ * Date range of the promotion
135
+ */
136
+ dateRange: {
137
+ startDate: string;
138
+ endDate: string;
139
+ };
140
+ };
package/src/ticket.ts CHANGED
@@ -47,6 +47,7 @@ export type CouponCode = {
47
47
  export type EventTicket = {
48
48
  id: string;
49
49
  price: number;
50
+ // ticketType is deprecated, use name instead
50
51
  ticketType: string;
51
52
  eventId: string;
52
53
  quantity: number; // Total tickets allocated
@@ -63,3 +64,58 @@ export type EventTicket = {
63
64
  isRefundable: boolean;
64
65
  status: "published" | "draft";
65
66
  };
67
+
68
+ export type Payment = {
69
+ amount: number;
70
+ amount_capturable: number;
71
+ amount_details: {
72
+ tip: any;
73
+ };
74
+ amount_received: number;
75
+ application: string | null;
76
+ application_fee_amount: number | null;
77
+ automatic_payment_methods: {
78
+ allow_redirects: "always" | "never";
79
+ enabled: boolean;
80
+ };
81
+ canceled_at: string | null;
82
+ cancellation_reason: string | null;
83
+ capture_method: "automatic" | "manual";
84
+ client_secret: string;
85
+ confirmation_method: string;
86
+ created: number;
87
+ currency: string;
88
+ customer: string;
89
+ description: string | null;
90
+ id: string;
91
+ invoice: string | null;
92
+ last_payment_error: string | null;
93
+ latest_charge: string;
94
+ livemode: boolean;
95
+ metadata: Record<string, any>;
96
+ next_action: string | null;
97
+ object: string;
98
+ on_behalf_of: string | null;
99
+ payment_method_types: ("card" | "mobilepay")[];
100
+ payment_method_configuration_details: {
101
+ id: string;
102
+ };
103
+ payment_method_options: {
104
+ card: {
105
+ network?: string;
106
+ request_three_d_secure: string;
107
+ };
108
+ mobilepay: any;
109
+ };
110
+ processing: string | null;
111
+ receipt_email: string;
112
+ review: string | null;
113
+ setup_future_usage: string | null;
114
+ shipping: string | null;
115
+ source: string | null;
116
+ statement_descriptor: string | null;
117
+ statement_descriptor_suffix: string | null;
118
+ status: "succeeded" | string;
119
+ transfer_data: string | null;
120
+ transfer_group: string | null;
121
+ };