@gomusdev/web-components 4.9.0 → 4.9.2

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.
@@ -2,32 +2,34 @@ import { CartItem, CouponItem, Product } from '../../../../lib/models/cart/types
2
2
  export type Cart = ReturnType<typeof createCart>;
3
3
  export declare function createCart(products?: Product[], contingent?: number): {
4
4
  items: {
5
+ quantity: number;
6
+ time: string;
5
7
  type: "Ticket" | "Event" | "Coupon" | "Tour";
6
8
  product: Product;
7
9
  orderAttributes(): {
8
10
  sub_ticket_quantities?: Record<number, number> | undefined;
9
- time: string | undefined;
10
- quantity: number | undefined;
11
+ time: string;
12
+ quantity: number;
11
13
  shipped_with_merchandise_id: null;
12
14
  shipping_mode: string;
13
15
  id: number;
14
16
  uuid: string;
15
17
  } | {
16
- quantity: number | undefined;
18
+ quantity: number;
17
19
  shipped_with_merchandise_id: null;
18
20
  shipping_mode: string;
19
21
  id: number;
20
22
  uuid: string;
21
23
  } | {
22
24
  quantities: {
23
- [x: number]: number | undefined;
25
+ [x: number]: number;
24
26
  };
25
27
  shipped_with_merchandise_id: null;
26
28
  shipping_mode: string;
27
29
  id: number;
28
30
  uuid: string;
29
31
  } | {
30
- start_time: string | undefined;
32
+ start_time: string;
31
33
  shipped_with_merchandise_id: null;
32
34
  shipping_mode: string;
33
35
  id: number;
@@ -42,8 +44,6 @@ export declare function createCart(products?: Product[], contingent?: number): {
42
44
  final_price_formatted: string;
43
45
  total_price_cents: number;
44
46
  total_price_formatted: string;
45
- quantity?: number | undefined;
46
- time?: string | undefined;
47
47
  mantle?: {
48
48
  composition: Record<number, number>;
49
49
  key?: string;
@@ -58,35 +58,37 @@ export declare function createCart(products?: Product[], contingent?: number): {
58
58
  } | undefined;
59
59
  }[];
60
60
  coupons: CouponItem[];
61
- paymentModeId: undefined;
61
+ paymentModeId: string | undefined;
62
62
  uid: string;
63
63
  readonly nonEmptyItems: {
64
+ quantity: number;
65
+ time: string;
64
66
  type: "Ticket" | "Event" | "Coupon" | "Tour";
65
67
  product: Product;
66
68
  orderAttributes(): {
67
69
  sub_ticket_quantities?: Record<number, number> | undefined;
68
- time: string | undefined;
69
- quantity: number | undefined;
70
+ time: string;
71
+ quantity: number;
70
72
  shipped_with_merchandise_id: null;
71
73
  shipping_mode: string;
72
74
  id: number;
73
75
  uuid: string;
74
76
  } | {
75
- quantity: number | undefined;
77
+ quantity: number;
76
78
  shipped_with_merchandise_id: null;
77
79
  shipping_mode: string;
78
80
  id: number;
79
81
  uuid: string;
80
82
  } | {
81
83
  quantities: {
82
- [x: number]: number | undefined;
84
+ [x: number]: number;
83
85
  };
84
86
  shipped_with_merchandise_id: null;
85
87
  shipping_mode: string;
86
88
  id: number;
87
89
  uuid: string;
88
90
  } | {
89
- start_time: string | undefined;
91
+ start_time: string;
90
92
  shipped_with_merchandise_id: null;
91
93
  shipping_mode: string;
92
94
  id: number;
@@ -101,8 +103,6 @@ export declare function createCart(products?: Product[], contingent?: number): {
101
103
  final_price_formatted: string;
102
104
  total_price_cents: number;
103
105
  total_price_formatted: string;
104
- quantity?: number | undefined;
105
- time?: string | undefined;
106
106
  mantle?: {
107
107
  composition: Record<number, number>;
108
108
  key?: string;
@@ -129,28 +129,28 @@ export declare function createCart(products?: Product[], contingent?: number): {
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;
@@ -178,32 +178,34 @@ export declare function createCart(products?: Product[], contingent?: number): {
178
178
  export declare function formatCurrency(priceCents: number): string;
179
179
  export declare function createMainCart(): {
180
180
  items: {
181
+ quantity: number;
182
+ time: string;
181
183
  type: "Ticket" | "Event" | "Coupon" | "Tour";
182
184
  product: Product;
183
185
  orderAttributes(): {
184
186
  sub_ticket_quantities?: Record<number, number> | undefined;
185
- time: string | undefined;
186
- quantity: number | undefined;
187
+ time: string;
188
+ quantity: number;
187
189
  shipped_with_merchandise_id: null;
188
190
  shipping_mode: string;
189
191
  id: number;
190
192
  uuid: string;
191
193
  } | {
192
- quantity: number | undefined;
194
+ quantity: number;
193
195
  shipped_with_merchandise_id: null;
194
196
  shipping_mode: string;
195
197
  id: number;
196
198
  uuid: string;
197
199
  } | {
198
200
  quantities: {
199
- [x: number]: number | undefined;
201
+ [x: number]: number;
200
202
  };
201
203
  shipped_with_merchandise_id: null;
202
204
  shipping_mode: string;
203
205
  id: number;
204
206
  uuid: string;
205
207
  } | {
206
- start_time: string | undefined;
208
+ start_time: string;
207
209
  shipped_with_merchandise_id: null;
208
210
  shipping_mode: string;
209
211
  id: number;
@@ -218,8 +220,6 @@ export declare function createMainCart(): {
218
220
  final_price_formatted: string;
219
221
  total_price_cents: number;
220
222
  total_price_formatted: string;
221
- quantity?: number | undefined;
222
- time?: string | undefined;
223
223
  mantle?: {
224
224
  composition: Record<number, number>;
225
225
  key?: string;
@@ -234,35 +234,37 @@ export declare function createMainCart(): {
234
234
  } | undefined;
235
235
  }[];
236
236
  coupons: CouponItem[];
237
- paymentModeId: undefined;
237
+ paymentModeId: string | undefined;
238
238
  uid: string;
239
239
  readonly nonEmptyItems: {
240
+ quantity: number;
241
+ time: string;
240
242
  type: "Ticket" | "Event" | "Coupon" | "Tour";
241
243
  product: Product;
242
244
  orderAttributes(): {
243
245
  sub_ticket_quantities?: Record<number, number> | undefined;
244
- time: string | undefined;
245
- quantity: number | undefined;
246
+ time: string;
247
+ quantity: number;
246
248
  shipped_with_merchandise_id: null;
247
249
  shipping_mode: string;
248
250
  id: number;
249
251
  uuid: string;
250
252
  } | {
251
- quantity: number | undefined;
253
+ quantity: number;
252
254
  shipped_with_merchandise_id: null;
253
255
  shipping_mode: string;
254
256
  id: number;
255
257
  uuid: string;
256
258
  } | {
257
259
  quantities: {
258
- [x: number]: number | undefined;
260
+ [x: number]: number;
259
261
  };
260
262
  shipped_with_merchandise_id: null;
261
263
  shipping_mode: string;
262
264
  id: number;
263
265
  uuid: string;
264
266
  } | {
265
- start_time: string | undefined;
267
+ start_time: string;
266
268
  shipped_with_merchandise_id: null;
267
269
  shipping_mode: string;
268
270
  id: number;
@@ -277,8 +279,6 @@ export declare function createMainCart(): {
277
279
  final_price_formatted: string;
278
280
  total_price_cents: number;
279
281
  total_price_formatted: string;
280
- quantity?: number | undefined;
281
- time?: string | undefined;
282
282
  mantle?: {
283
283
  composition: Record<number, number>;
284
284
  key?: string;
@@ -305,28 +305,28 @@ export declare function createMainCart(): {
305
305
  type: "Ticket" | "Event" | "Coupon" | "Tour";
306
306
  attributes: {
307
307
  sub_ticket_quantities?: Record<number, number> | undefined;
308
- time: string | undefined;
309
- quantity: number | undefined;
308
+ time: string;
309
+ quantity: number;
310
310
  shipped_with_merchandise_id: null;
311
311
  shipping_mode: string;
312
312
  id: number;
313
313
  uuid: string;
314
314
  } | {
315
- quantity: number | undefined;
315
+ quantity: number;
316
316
  shipped_with_merchandise_id: null;
317
317
  shipping_mode: string;
318
318
  id: number;
319
319
  uuid: string;
320
320
  } | {
321
321
  quantities: {
322
- [x: number]: number | undefined;
322
+ [x: number]: number;
323
323
  };
324
324
  shipped_with_merchandise_id: null;
325
325
  shipping_mode: string;
326
326
  id: number;
327
327
  uuid: string;
328
328
  } | {
329
- start_time: string | undefined;
329
+ start_time: string;
330
330
  shipped_with_merchandise_id: null;
331
331
  shipping_mode: string;
332
332
  id: number;
@@ -9,32 +9,34 @@ import { CartItem } from '../../../../lib/models/cart/types.ts';
9
9
  export declare function generateCartItem(cartItem: any): CartItem | undefined;
10
10
  export declare function clearLocalStorage(): void;
11
11
  export declare function loadFromLocalStorage(cart: Cart): {
12
+ quantity: number;
13
+ time: string;
12
14
  type: "Ticket" | "Event" | "Coupon" | "Tour";
13
15
  product: import('../../../../lib/models/cart/types.ts').Product;
14
16
  orderAttributes(): {
15
17
  sub_ticket_quantities?: Record<number, number> | undefined;
16
- time: string | undefined;
17
- quantity: number | undefined;
18
+ time: string;
19
+ quantity: number;
18
20
  shipped_with_merchandise_id: null;
19
21
  shipping_mode: string;
20
22
  id: number;
21
23
  uuid: string;
22
24
  } | {
23
- quantity: number | undefined;
25
+ quantity: number;
24
26
  shipped_with_merchandise_id: null;
25
27
  shipping_mode: string;
26
28
  id: number;
27
29
  uuid: string;
28
30
  } | {
29
31
  quantities: {
30
- [x: number]: number | undefined;
32
+ [x: number]: number;
31
33
  };
32
34
  shipped_with_merchandise_id: null;
33
35
  shipping_mode: string;
34
36
  id: number;
35
37
  uuid: string;
36
38
  } | {
37
- start_time: string | undefined;
39
+ start_time: string;
38
40
  shipped_with_merchandise_id: null;
39
41
  shipping_mode: string;
40
42
  id: number;
@@ -49,8 +51,6 @@ export declare function loadFromLocalStorage(cart: Cart): {
49
51
  final_price_formatted: string;
50
52
  total_price_cents: number;
51
53
  total_price_formatted: string;
52
- quantity?: number | undefined;
53
- time?: string | undefined;
54
54
  mantle?: {
55
55
  composition: Record<number, number>;
56
56
  key?: string;
@@ -81,32 +81,34 @@ export declare class Shop {
81
81
  };
82
82
  get cart(): {
83
83
  items: {
84
+ quantity: number;
85
+ time: string;
84
86
  type: "Ticket" | "Event" | "Coupon" | "Tour";
85
87
  product: import('../models/cart/types').Product;
86
88
  orderAttributes(): {
87
89
  sub_ticket_quantities?: Record<number, number> | undefined;
88
- time: string | undefined;
89
- quantity: number | undefined;
90
+ time: string;
91
+ quantity: number;
90
92
  shipped_with_merchandise_id: null;
91
93
  shipping_mode: string;
92
94
  id: number;
93
95
  uuid: string;
94
96
  } | {
95
- quantity: number | undefined;
97
+ quantity: number;
96
98
  shipped_with_merchandise_id: null;
97
99
  shipping_mode: string;
98
100
  id: number;
99
101
  uuid: string;
100
102
  } | {
101
103
  quantities: {
102
- [x: number]: number | undefined;
104
+ [x: number]: number;
103
105
  };
104
106
  shipped_with_merchandise_id: null;
105
107
  shipping_mode: string;
106
108
  id: number;
107
109
  uuid: string;
108
110
  } | {
109
- start_time: string | undefined;
111
+ start_time: string;
110
112
  shipped_with_merchandise_id: null;
111
113
  shipping_mode: string;
112
114
  id: number;
@@ -121,8 +123,6 @@ export declare class Shop {
121
123
  final_price_formatted: string;
122
124
  total_price_cents: number;
123
125
  total_price_formatted: string;
124
- quantity?: number | undefined;
125
- time?: string | undefined;
126
126
  mantle?: {
127
127
  composition: Record<number, number>;
128
128
  key?: string;
@@ -137,35 +137,37 @@ export declare class Shop {
137
137
  } | undefined;
138
138
  }[];
139
139
  coupons: import('../models/cart/types').CouponItem[];
140
- paymentModeId: undefined;
140
+ paymentModeId: string | undefined;
141
141
  uid: string;
142
142
  readonly nonEmptyItems: {
143
+ quantity: number;
144
+ time: string;
143
145
  type: "Ticket" | "Event" | "Coupon" | "Tour";
144
146
  product: import('../models/cart/types').Product;
145
147
  orderAttributes(): {
146
148
  sub_ticket_quantities?: Record<number, number> | undefined;
147
- time: string | undefined;
148
- quantity: number | undefined;
149
+ time: string;
150
+ quantity: number;
149
151
  shipped_with_merchandise_id: null;
150
152
  shipping_mode: string;
151
153
  id: number;
152
154
  uuid: string;
153
155
  } | {
154
- quantity: number | undefined;
156
+ quantity: number;
155
157
  shipped_with_merchandise_id: null;
156
158
  shipping_mode: string;
157
159
  id: number;
158
160
  uuid: string;
159
161
  } | {
160
162
  quantities: {
161
- [x: number]: number | undefined;
163
+ [x: number]: number;
162
164
  };
163
165
  shipped_with_merchandise_id: null;
164
166
  shipping_mode: string;
165
167
  id: number;
166
168
  uuid: string;
167
169
  } | {
168
- start_time: string | undefined;
170
+ start_time: string;
169
171
  shipped_with_merchandise_id: null;
170
172
  shipping_mode: string;
171
173
  id: number;
@@ -180,8 +182,6 @@ export declare class Shop {
180
182
  final_price_formatted: string;
181
183
  total_price_cents: number;
182
184
  total_price_formatted: string;
183
- quantity?: number | undefined;
184
- time?: string | undefined;
185
185
  mantle?: {
186
186
  composition: Record<number, number>;
187
187
  key?: string;
@@ -205,28 +205,28 @@ export declare class Shop {
205
205
  type: "Ticket" | "Event" | "Coupon" | "Tour";
206
206
  attributes: {
207
207
  sub_ticket_quantities?: Record<number, number> | undefined;
208
- time: string | undefined;
209
- quantity: number | undefined;
208
+ time: string;
209
+ quantity: number;
210
210
  shipped_with_merchandise_id: null;
211
211
  shipping_mode: string;
212
212
  id: number;
213
213
  uuid: string;
214
214
  } | {
215
- quantity: number | undefined;
215
+ quantity: number;
216
216
  shipped_with_merchandise_id: null;
217
217
  shipping_mode: string;
218
218
  id: number;
219
219
  uuid: string;
220
220
  } | {
221
221
  quantities: {
222
- [x: number]: number | undefined;
222
+ [x: number]: number;
223
223
  };
224
224
  shipped_with_merchandise_id: null;
225
225
  shipping_mode: string;
226
226
  id: number;
227
227
  uuid: string;
228
228
  } | {
229
- start_time: string | undefined;
229
+ start_time: string;
230
230
  shipped_with_merchandise_id: null;
231
231
  shipping_mode: string;
232
232
  id: number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.9.0",
7
+ "version": "4.9.2",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",