@gomusdev/web-components 4.9.0 → 4.9.1

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -5,32 +5,34 @@ export type TicketSegmentFilter = FilterName | 'custom';
5
5
  export declare class SegmentDetails {
6
6
  preCart: {
7
7
  items: {
8
+ quantity: number;
9
+ time: string;
8
10
  type: "Ticket" | "Event" | "Coupon" | "Tour";
9
11
  product: import('../../../../../../lib/models/cart/types').Product;
10
12
  orderAttributes(): {
11
13
  sub_ticket_quantities?: Record<number, number> | undefined;
12
- time: string | undefined;
13
- quantity: number | undefined;
14
+ time: string;
15
+ quantity: number;
14
16
  shipped_with_merchandise_id: null;
15
17
  shipping_mode: string;
16
18
  id: number;
17
19
  uuid: string;
18
20
  } | {
19
- quantity: number | undefined;
21
+ quantity: number;
20
22
  shipped_with_merchandise_id: null;
21
23
  shipping_mode: string;
22
24
  id: number;
23
25
  uuid: string;
24
26
  } | {
25
27
  quantities: {
26
- [x: number]: number | undefined;
28
+ [x: number]: number;
27
29
  };
28
30
  shipped_with_merchandise_id: null;
29
31
  shipping_mode: string;
30
32
  id: number;
31
33
  uuid: string;
32
34
  } | {
33
- start_time: string | undefined;
35
+ start_time: string;
34
36
  shipped_with_merchandise_id: null;
35
37
  shipping_mode: string;
36
38
  id: number;
@@ -45,8 +47,6 @@ export declare class SegmentDetails {
45
47
  final_price_formatted: string;
46
48
  total_price_cents: number;
47
49
  total_price_formatted: string;
48
- quantity?: number | undefined;
49
- time?: string | undefined;
50
50
  mantle?: {
51
51
  composition: Record<number, number>;
52
52
  key?: string;
@@ -61,35 +61,37 @@ export declare class SegmentDetails {
61
61
  } | undefined;
62
62
  }[];
63
63
  coupons: import('../../../../../../lib/models/cart/types').CouponItem[];
64
- paymentModeId: undefined;
64
+ paymentModeId: string | undefined;
65
65
  uid: string;
66
66
  readonly nonEmptyItems: {
67
+ quantity: number;
68
+ time: string;
67
69
  type: "Ticket" | "Event" | "Coupon" | "Tour";
68
70
  product: import('../../../../../../lib/models/cart/types').Product;
69
71
  orderAttributes(): {
70
72
  sub_ticket_quantities?: Record<number, number> | undefined;
71
- time: string | undefined;
72
- quantity: number | undefined;
73
+ time: string;
74
+ quantity: number;
73
75
  shipped_with_merchandise_id: null;
74
76
  shipping_mode: string;
75
77
  id: number;
76
78
  uuid: string;
77
79
  } | {
78
- quantity: number | undefined;
80
+ quantity: number;
79
81
  shipped_with_merchandise_id: null;
80
82
  shipping_mode: string;
81
83
  id: number;
82
84
  uuid: string;
83
85
  } | {
84
86
  quantities: {
85
- [x: number]: number | undefined;
87
+ [x: number]: number;
86
88
  };
87
89
  shipped_with_merchandise_id: null;
88
90
  shipping_mode: string;
89
91
  id: number;
90
92
  uuid: string;
91
93
  } | {
92
- start_time: string | undefined;
94
+ start_time: string;
93
95
  shipped_with_merchandise_id: null;
94
96
  shipping_mode: string;
95
97
  id: number;
@@ -104,8 +106,6 @@ export declare class SegmentDetails {
104
106
  final_price_formatted: string;
105
107
  total_price_cents: number;
106
108
  total_price_formatted: string;
107
- quantity?: number | undefined;
108
- time?: string | undefined;
109
109
  mantle?: {
110
110
  composition: Record<number, number>;
111
111
  key?: string;
@@ -129,28 +129,28 @@ export declare class SegmentDetails {
129
129
  type: "Ticket" | "Event" | "Coupon" | "Tour";
130
130
  attributes: {
131
131
  sub_ticket_quantities?: Record<number, number> | undefined;
132
- time: string | undefined;
133
- quantity: number | undefined;
132
+ time: string;
133
+ quantity: number;
134
134
  shipped_with_merchandise_id: null;
135
135
  shipping_mode: string;
136
136
  id: number;
137
137
  uuid: string;
138
138
  } | {
139
- quantity: number | undefined;
139
+ quantity: number;
140
140
  shipped_with_merchandise_id: null;
141
141
  shipping_mode: string;
142
142
  id: number;
143
143
  uuid: string;
144
144
  } | {
145
145
  quantities: {
146
- [x: number]: number | undefined;
146
+ [x: number]: number;
147
147
  };
148
148
  shipped_with_merchandise_id: null;
149
149
  shipping_mode: string;
150
150
  id: number;
151
151
  uuid: string;
152
152
  } | {
153
- start_time: string | undefined;
153
+ start_time: string;
154
154
  shipped_with_merchandise_id: null;
155
155
  shipping_mode: string;
156
156
  id: number;
@@ -27,32 +27,34 @@ interface MantleCartItemOptions {
27
27
  }
28
28
  export declare const CartItemFactories: {
29
29
  tour({ time, tour, instanceKey }?: TourCartItemOptions): {
30
+ quantity: number;
31
+ time: string;
30
32
  type: "Ticket" | "Event" | "Coupon" | "Tour";
31
33
  product: import('../lib/models/cart/types.ts').Product;
32
34
  orderAttributes(): {
33
35
  sub_ticket_quantities?: Record<number, number> | undefined;
34
- time: string | undefined;
35
- quantity: number | undefined;
36
+ time: string;
37
+ quantity: number;
36
38
  shipped_with_merchandise_id: null;
37
39
  shipping_mode: string;
38
40
  id: number;
39
41
  uuid: string;
40
42
  } | {
41
- quantity: number | undefined;
43
+ quantity: number;
42
44
  shipped_with_merchandise_id: null;
43
45
  shipping_mode: string;
44
46
  id: number;
45
47
  uuid: string;
46
48
  } | {
47
49
  quantities: {
48
- [x: number]: number | undefined;
50
+ [x: number]: number;
49
51
  };
50
52
  shipped_with_merchandise_id: null;
51
53
  shipping_mode: string;
52
54
  id: number;
53
55
  uuid: string;
54
56
  } | {
55
- start_time: string | undefined;
57
+ start_time: string;
56
58
  shipped_with_merchandise_id: null;
57
59
  shipping_mode: string;
58
60
  id: number;
@@ -67,8 +69,6 @@ export declare const CartItemFactories: {
67
69
  final_price_formatted: string;
68
70
  total_price_cents: number;
69
71
  total_price_formatted: string;
70
- quantity?: number | undefined;
71
- time?: string | undefined;
72
72
  mantle?: {
73
73
  composition: Record<number, number>;
74
74
  key?: string;
@@ -83,32 +83,34 @@ export declare const CartItemFactories: {
83
83
  } | undefined;
84
84
  };
85
85
  timeslot({ quantity, time, ticket }?: TicketCartItemOptions): {
86
+ quantity: number;
87
+ time: string;
86
88
  type: "Ticket" | "Event" | "Coupon" | "Tour";
87
89
  product: import('../lib/models/cart/types.ts').Product;
88
90
  orderAttributes(): {
89
91
  sub_ticket_quantities?: Record<number, number> | undefined;
90
- time: string | undefined;
91
- quantity: number | undefined;
92
+ time: string;
93
+ quantity: number;
92
94
  shipped_with_merchandise_id: null;
93
95
  shipping_mode: string;
94
96
  id: number;
95
97
  uuid: string;
96
98
  } | {
97
- quantity: number | undefined;
99
+ quantity: number;
98
100
  shipped_with_merchandise_id: null;
99
101
  shipping_mode: string;
100
102
  id: number;
101
103
  uuid: string;
102
104
  } | {
103
105
  quantities: {
104
- [x: number]: number | undefined;
106
+ [x: number]: number;
105
107
  };
106
108
  shipped_with_merchandise_id: null;
107
109
  shipping_mode: string;
108
110
  id: number;
109
111
  uuid: string;
110
112
  } | {
111
- start_time: string | undefined;
113
+ start_time: string;
112
114
  shipped_with_merchandise_id: null;
113
115
  shipping_mode: string;
114
116
  id: number;
@@ -123,8 +125,6 @@ export declare const CartItemFactories: {
123
125
  final_price_formatted: string;
124
126
  total_price_cents: number;
125
127
  total_price_formatted: string;
126
- quantity?: number | undefined;
127
- time?: string | undefined;
128
128
  mantle?: {
129
129
  composition: Record<number, number>;
130
130
  key?: string;
@@ -139,32 +139,34 @@ export declare const CartItemFactories: {
139
139
  } | undefined;
140
140
  };
141
141
  day({ quantity, time, ticket }?: TicketCartItemOptions): {
142
+ quantity: number;
143
+ time: string;
142
144
  type: "Ticket" | "Event" | "Coupon" | "Tour";
143
145
  product: import('../lib/models/cart/types.ts').Product;
144
146
  orderAttributes(): {
145
147
  sub_ticket_quantities?: Record<number, number> | undefined;
146
- time: string | undefined;
147
- quantity: number | undefined;
148
+ time: string;
149
+ quantity: number;
148
150
  shipped_with_merchandise_id: null;
149
151
  shipping_mode: string;
150
152
  id: number;
151
153
  uuid: string;
152
154
  } | {
153
- quantity: number | undefined;
155
+ quantity: number;
154
156
  shipped_with_merchandise_id: null;
155
157
  shipping_mode: string;
156
158
  id: number;
157
159
  uuid: string;
158
160
  } | {
159
161
  quantities: {
160
- [x: number]: number | undefined;
162
+ [x: number]: number;
161
163
  };
162
164
  shipped_with_merchandise_id: null;
163
165
  shipping_mode: string;
164
166
  id: number;
165
167
  uuid: string;
166
168
  } | {
167
- start_time: string | undefined;
169
+ start_time: string;
168
170
  shipped_with_merchandise_id: null;
169
171
  shipping_mode: string;
170
172
  id: number;
@@ -179,8 +181,6 @@ export declare const CartItemFactories: {
179
181
  final_price_formatted: string;
180
182
  total_price_cents: number;
181
183
  total_price_formatted: string;
182
- quantity?: number | undefined;
183
- time?: string | undefined;
184
184
  mantle?: {
185
185
  composition: Record<number, number>;
186
186
  key?: string;
@@ -195,32 +195,34 @@ export declare const CartItemFactories: {
195
195
  } | undefined;
196
196
  };
197
197
  mantle({ quantity, time, ticket, subTicketQuantities }?: MantleCartItemOptions): {
198
+ quantity: number;
199
+ time: string;
198
200
  type: "Ticket" | "Event" | "Coupon" | "Tour";
199
201
  product: import('../lib/models/cart/types.ts').Product;
200
202
  orderAttributes(): {
201
203
  sub_ticket_quantities?: Record<number, number> | undefined;
202
- time: string | undefined;
203
- quantity: number | undefined;
204
+ time: string;
205
+ quantity: number;
204
206
  shipped_with_merchandise_id: null;
205
207
  shipping_mode: string;
206
208
  id: number;
207
209
  uuid: string;
208
210
  } | {
209
- quantity: number | undefined;
211
+ quantity: number;
210
212
  shipped_with_merchandise_id: null;
211
213
  shipping_mode: string;
212
214
  id: number;
213
215
  uuid: string;
214
216
  } | {
215
217
  quantities: {
216
- [x: number]: number | undefined;
218
+ [x: number]: number;
217
219
  };
218
220
  shipped_with_merchandise_id: null;
219
221
  shipping_mode: string;
220
222
  id: number;
221
223
  uuid: string;
222
224
  } | {
223
- start_time: string | undefined;
225
+ start_time: string;
224
226
  shipped_with_merchandise_id: null;
225
227
  shipping_mode: string;
226
228
  id: number;
@@ -235,8 +237,6 @@ export declare const CartItemFactories: {
235
237
  final_price_formatted: string;
236
238
  total_price_cents: number;
237
239
  total_price_formatted: string;
238
- quantity?: number | undefined;
239
- time?: string | undefined;
240
240
  mantle?: {
241
241
  composition: Record<number, number>;
242
242
  key?: string;
@@ -251,32 +251,34 @@ export declare const CartItemFactories: {
251
251
  } | undefined;
252
252
  };
253
253
  scaledEvent({ quantity, time, dateId, event_title, eventTicket, }?: EventCartItemOptions): {
254
+ quantity: number;
255
+ time: string;
254
256
  type: "Ticket" | "Event" | "Coupon" | "Tour";
255
257
  product: import('../lib/models/cart/types.ts').Product;
256
258
  orderAttributes(): {
257
259
  sub_ticket_quantities?: Record<number, number> | undefined;
258
- time: string | undefined;
259
- quantity: number | undefined;
260
+ time: string;
261
+ quantity: number;
260
262
  shipped_with_merchandise_id: null;
261
263
  shipping_mode: string;
262
264
  id: number;
263
265
  uuid: string;
264
266
  } | {
265
- quantity: number | undefined;
267
+ quantity: number;
266
268
  shipped_with_merchandise_id: null;
267
269
  shipping_mode: string;
268
270
  id: number;
269
271
  uuid: string;
270
272
  } | {
271
273
  quantities: {
272
- [x: number]: number | undefined;
274
+ [x: number]: number;
273
275
  };
274
276
  shipped_with_merchandise_id: null;
275
277
  shipping_mode: string;
276
278
  id: number;
277
279
  uuid: string;
278
280
  } | {
279
- start_time: string | undefined;
281
+ start_time: string;
280
282
  shipped_with_merchandise_id: null;
281
283
  shipping_mode: string;
282
284
  id: number;
@@ -291,8 +293,6 @@ export declare const CartItemFactories: {
291
293
  final_price_formatted: string;
292
294
  total_price_cents: number;
293
295
  total_price_formatted: string;
294
- quantity?: number | undefined;
295
- time?: string | undefined;
296
296
  mantle?: {
297
297
  composition: Record<number, number>;
298
298
  key?: string;
@@ -307,32 +307,34 @@ export declare const CartItemFactories: {
307
307
  } | undefined;
308
308
  };
309
309
  flatEvent({ quantity, time, dateId, event_title, eventTicket, }?: EventCartItemOptions): {
310
+ quantity: number;
311
+ time: string;
310
312
  type: "Ticket" | "Event" | "Coupon" | "Tour";
311
313
  product: import('../lib/models/cart/types.ts').Product;
312
314
  orderAttributes(): {
313
315
  sub_ticket_quantities?: Record<number, number> | undefined;
314
- time: string | undefined;
315
- quantity: number | undefined;
316
+ time: string;
317
+ quantity: number;
316
318
  shipped_with_merchandise_id: null;
317
319
  shipping_mode: string;
318
320
  id: number;
319
321
  uuid: string;
320
322
  } | {
321
- quantity: number | undefined;
323
+ quantity: number;
322
324
  shipped_with_merchandise_id: null;
323
325
  shipping_mode: string;
324
326
  id: number;
325
327
  uuid: string;
326
328
  } | {
327
329
  quantities: {
328
- [x: number]: number | undefined;
330
+ [x: number]: number;
329
331
  };
330
332
  shipped_with_merchandise_id: null;
331
333
  shipping_mode: string;
332
334
  id: number;
333
335
  uuid: string;
334
336
  } | {
335
- start_time: string | undefined;
337
+ start_time: string;
336
338
  shipped_with_merchandise_id: null;
337
339
  shipping_mode: string;
338
340
  id: number;
@@ -347,8 +349,6 @@ export declare const CartItemFactories: {
347
349
  final_price_formatted: string;
348
350
  total_price_cents: number;
349
351
  total_price_formatted: string;
350
- quantity?: number | undefined;
351
- time?: string | undefined;
352
352
  mantle?: {
353
353
  composition: Record<number, number>;
354
354
  key?: string;
@@ -32,6 +32,8 @@ interface Options {
32
32
  };
33
33
  }
34
34
  export declare function createCartItem(product: Product, options?: Partial<Options>): {
35
+ quantity: number;
36
+ time: string;
35
37
  type: "Ticket" | "Event" | "Coupon" | "Tour";
36
38
  product: Product;
37
39
  /**
@@ -39,28 +41,28 @@ export declare function createCartItem(product: Product, options?: Partial<Optio
39
41
  */
40
42
  orderAttributes(): {
41
43
  sub_ticket_quantities?: Record<number, number> | undefined;
42
- time: string | undefined;
43
- quantity: number | undefined;
44
+ time: string;
45
+ quantity: number;
44
46
  shipped_with_merchandise_id: null;
45
47
  shipping_mode: string;
46
48
  id: number;
47
49
  uuid: string;
48
50
  } | {
49
- quantity: number | undefined;
51
+ quantity: number;
50
52
  shipped_with_merchandise_id: null;
51
53
  shipping_mode: string;
52
54
  id: number;
53
55
  uuid: string;
54
56
  } | {
55
57
  quantities: {
56
- [product.scale_price_id]: number | undefined;
58
+ [product.scale_price_id]: number;
57
59
  };
58
60
  shipped_with_merchandise_id: null;
59
61
  shipping_mode: string;
60
62
  id: number;
61
63
  uuid: string;
62
64
  } | {
63
- start_time: string | undefined;
65
+ start_time: string;
64
66
  shipped_with_merchandise_id: null;
65
67
  shipping_mode: string;
66
68
  id: number;
@@ -75,16 +77,6 @@ export declare function createCartItem(product: Product, options?: Partial<Optio
75
77
  final_price_formatted: string;
76
78
  total_price_cents: number;
77
79
  total_price_formatted: string;
78
- quantity?: number | undefined;
79
- time?: string
80
- /**
81
- * Mantelticket only — grouped like `display`. `composition` is the chosen, editable mix
82
- * (sub-ticket id → quantity), serialized to the order API as `sub_ticket_quantities`. `key`
83
- * is a unique id FROZEN at creation: the line's stable identity (subUId). Every mantle add
84
- * gets its own key, so mantles NEVER merge — each is a separate cart line — and editing the
85
- * mix later never changes the uuid.
86
- */
87
- | undefined;
88
80
  mantle?: {
89
81
  composition: Record<number, number>;
90
82
  key?: string;