@gomusdev/web-components 4.5.0 → 4.6.0

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.
@@ -28,6 +28,7 @@ export declare class PersonalizationDetails {
28
28
  start_at: string;
29
29
  sent_at: string | null;
30
30
  title: string;
31
+ sub_title: string | null;
31
32
  description: string | null;
32
33
  is_personalizable: boolean;
33
34
  status: string;
@@ -64,6 +65,7 @@ export declare class PersonalizationDetails {
64
65
  start_at: string;
65
66
  sent_at: string | null;
66
67
  title: string;
68
+ sub_title: string | null;
67
69
  description: string | null;
68
70
  is_personalizable: boolean;
69
71
  status: string;
@@ -6,6 +6,7 @@ export declare function createMockUITicket(): {
6
6
  content: import('@gomus/types').TicketContent | undefined;
7
7
  id: number;
8
8
  title: string;
9
+ sub_title: string | null;
9
10
  ticket_type: "time_slot" | "annual" | "normal";
10
11
  bookable: boolean;
11
12
  museum_ids: number[];
@@ -71,6 +72,7 @@ export declare function createMockUITicket(): {
71
72
  content: import('@gomus/types').TicketContent | undefined;
72
73
  id: number;
73
74
  title: string;
75
+ sub_title: string | null;
74
76
  ticket_type: "time_slot" | "annual" | "normal";
75
77
  bookable: boolean;
76
78
  museum_ids: number[];
@@ -128,6 +130,7 @@ export declare function createMockUITicket(): {
128
130
  content: import('@gomus/types').TicketContent | undefined;
129
131
  id: number;
130
132
  title: string;
133
+ sub_title: string | null;
131
134
  ticket_type: "time_slot" | "annual" | "normal";
132
135
  bookable: boolean;
133
136
  museum_ids: number[];
@@ -41,6 +41,7 @@ export declare class Details {
41
41
  documents: import('@gomus/types').components["schemas"]["document"][];
42
42
  content: Record<string, never>;
43
43
  entry_fee: 0 | 10 | 20 | 100;
44
+ has_seating: boolean;
44
45
  } | undefined;
45
46
  }
46
47
  export declare const setDetails: (host: HTMLElement, details: Details) => void;
@@ -88,6 +88,7 @@ export declare class OrderDetails {
88
88
  accounting_article_usings: never[];
89
89
  location: string | null;
90
90
  title: string;
91
+ sub_title: string | null;
91
92
  after_sale_information: string | null;
92
93
  description: string | null;
93
94
  barcodes: {
@@ -102,10 +103,10 @@ export declare class OrderDetails {
102
103
  is_personalizable: boolean;
103
104
  sub_ticket_times: {
104
105
  [x: string]: never;
105
- };
106
+ } | null;
106
107
  sub_ticket_quantities: {
107
108
  [x: string]: never;
108
- };
109
+ } | null;
109
110
  sub_ticket_sales: never[];
110
111
  };
111
112
  } | {
@@ -51,6 +51,9 @@ export declare class SegmentDetails {
51
51
  composition: Record<number, number>;
52
52
  key?: string;
53
53
  } | undefined;
54
+ voucher?: {
55
+ code: string;
56
+ } | undefined;
54
57
  display?: {
55
58
  discounted: boolean;
56
59
  reference_uuid: string;
@@ -107,6 +110,9 @@ export declare class SegmentDetails {
107
110
  composition: Record<number, number>;
108
111
  key?: string;
109
112
  } | undefined;
113
+ voucher?: {
114
+ code: string;
115
+ } | undefined;
110
116
  display?: {
111
117
  discounted: boolean;
112
118
  reference_uuid: string;
@@ -73,6 +73,9 @@ export declare const CartItemFactories: {
73
73
  composition: Record<number, number>;
74
74
  key?: string;
75
75
  } | undefined;
76
+ voucher?: {
77
+ code: string;
78
+ } | undefined;
76
79
  display?: {
77
80
  discounted: boolean;
78
81
  reference_uuid: string;
@@ -126,6 +129,9 @@ export declare const CartItemFactories: {
126
129
  composition: Record<number, number>;
127
130
  key?: string;
128
131
  } | undefined;
132
+ voucher?: {
133
+ code: string;
134
+ } | undefined;
129
135
  display?: {
130
136
  discounted: boolean;
131
137
  reference_uuid: string;
@@ -179,6 +185,9 @@ export declare const CartItemFactories: {
179
185
  composition: Record<number, number>;
180
186
  key?: string;
181
187
  } | undefined;
188
+ voucher?: {
189
+ code: string;
190
+ } | undefined;
182
191
  display?: {
183
192
  discounted: boolean;
184
193
  reference_uuid: string;
@@ -232,6 +241,9 @@ export declare const CartItemFactories: {
232
241
  composition: Record<number, number>;
233
242
  key?: string;
234
243
  } | undefined;
244
+ voucher?: {
245
+ code: string;
246
+ } | undefined;
235
247
  display?: {
236
248
  discounted: boolean;
237
249
  reference_uuid: string;
@@ -285,6 +297,9 @@ export declare const CartItemFactories: {
285
297
  composition: Record<number, number>;
286
298
  key?: string;
287
299
  } | undefined;
300
+ voucher?: {
301
+ code: string;
302
+ } | undefined;
288
303
  display?: {
289
304
  discounted: boolean;
290
305
  reference_uuid: string;
@@ -338,6 +353,9 @@ export declare const CartItemFactories: {
338
353
  composition: Record<number, number>;
339
354
  key?: string;
340
355
  } | undefined;
356
+ voucher?: {
357
+ code: string;
358
+ } | undefined;
341
359
  display?: {
342
360
  discounted: boolean;
343
361
  reference_uuid: string;
@@ -1,7 +1,7 @@
1
- import { CustomerAddressesResult, OrdersResult, ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
1
+ import { CustomerAddressesResult, CustomerMembershipsResult, OrdersResult, ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
2
2
  import { OrdersParams } from '@gomus/types';
3
3
  import { AddTourOptions } from '../../go/cart.ts';
4
- export type { CustomerAddressesResult, OrdersResult, ValidateTokenResult } from '../../lib/stores/shop.svelte.ts';
4
+ export type { CustomerAddressesResult, CustomerMembershipsResult, OrdersResult, ValidateTokenResult, } from '../../lib/stores/shop.svelte.ts';
5
5
  export type Command = {
6
6
  method: 'load' | 'config' | 'init' | 'cart.addTour' | (string & {});
7
7
  options: Record<string, unknown>;
@@ -21,6 +21,7 @@ export declare const go: {
21
21
  getCustomer: () => Promise<ValidateTokenResult>;
22
22
  getOrders: (params?: OrdersParams) => Promise<OrdersResult>;
23
23
  getCustomerAddresses: () => Promise<CustomerAddressesResult>;
24
+ getCustomerMemberships: () => Promise<CustomerMembershipsResult>;
24
25
  };
25
26
  cart: {
26
27
  addTour: (options: AddTourOptions) => Promise<string>;
@@ -14,6 +14,17 @@ interface Options {
14
14
  composition: Record<number, number>;
15
15
  key?: string;
16
16
  };
17
+ /**
18
+ * Service-voucher grant only — the (uppercased) barcode this line was issued by.
19
+ * Gives the €0 grant a unique, frozen line identity (via subUId) so it never
20
+ * merges with another line for the same ticket (a plain purchase, or a second
21
+ * voucher), and lets the cart remove the paired line when its coupon is removed.
22
+ * The backend binds one voucher to one order item at quantity 1, so grants must
23
+ * stay distinct quantity-1 lines.
24
+ */
25
+ voucher?: {
26
+ code: string;
27
+ };
17
28
  display: {
18
29
  discounted: boolean;
19
30
  reference_uuid: string;
@@ -77,6 +88,18 @@ export declare function createCartItem(product: Product, options?: Partial<Optio
77
88
  mantle?: {
78
89
  composition: Record<number, number>;
79
90
  key?: string;
91
+ }
92
+ /**
93
+ * Service-voucher grant only — the (uppercased) barcode this line was issued by.
94
+ * Gives the €0 grant a unique, frozen line identity (via subUId) so it never
95
+ * merges with another line for the same ticket (a plain purchase, or a second
96
+ * voucher), and lets the cart remove the paired line when its coupon is removed.
97
+ * The backend binds one voucher to one order item at quantity 1, so grants must
98
+ * stay distinct quantity-1 lines.
99
+ */
100
+ | undefined;
101
+ voucher?: {
102
+ code: string;
80
103
  } | undefined;
81
104
  display?: {
82
105
  discounted: boolean;
@@ -48,6 +48,9 @@ export declare function createCart(products?: Product[], contingent?: number): {
48
48
  composition: Record<number, number>;
49
49
  key?: string;
50
50
  } | undefined;
51
+ voucher?: {
52
+ code: string;
53
+ } | undefined;
51
54
  display?: {
52
55
  discounted: boolean;
53
56
  reference_uuid: string;
@@ -104,6 +107,9 @@ export declare function createCart(products?: Product[], contingent?: number): {
104
107
  composition: Record<number, number>;
105
108
  key?: string;
106
109
  } | undefined;
110
+ voucher?: {
111
+ code: string;
112
+ } | undefined;
107
113
  display?: {
108
114
  discounted: boolean;
109
115
  reference_uuid: string;
@@ -218,6 +224,9 @@ export declare function createMainCart(): {
218
224
  composition: Record<number, number>;
219
225
  key?: string;
220
226
  } | undefined;
227
+ voucher?: {
228
+ code: string;
229
+ } | undefined;
221
230
  display?: {
222
231
  discounted: boolean;
223
232
  reference_uuid: string;
@@ -274,6 +283,9 @@ export declare function createMainCart(): {
274
283
  composition: Record<number, number>;
275
284
  key?: string;
276
285
  } | undefined;
286
+ voucher?: {
287
+ code: string;
288
+ } | undefined;
277
289
  display?: {
278
290
  discounted: boolean;
279
291
  reference_uuid: string;
@@ -55,6 +55,9 @@ export declare function loadFromLocalStorage(cart: Cart): {
55
55
  composition: Record<number, number>;
56
56
  key?: string;
57
57
  } | undefined;
58
+ voucher?: {
59
+ code: string;
60
+ } | undefined;
58
61
  display?: {
59
62
  discounted: boolean;
60
63
  reference_uuid: string;
@@ -49,6 +49,7 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
49
49
  content: TicketContent | undefined;
50
50
  id: number;
51
51
  title: string;
52
+ sub_title: string | null;
52
53
  ticket_type: "time_slot" | "annual" | "normal";
53
54
  bookable: boolean;
54
55
  museum_ids: number[];
@@ -114,6 +115,7 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
114
115
  content: TicketContent | undefined;
115
116
  id: number;
116
117
  title: string;
118
+ sub_title: string | null;
117
119
  ticket_type: "time_slot" | "annual" | "normal";
118
120
  bookable: boolean;
119
121
  museum_ids: number[];
@@ -171,6 +173,7 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
171
173
  content: TicketContent | undefined;
172
174
  id: number;
173
175
  title: string;
176
+ sub_title: string | null;
174
177
  ticket_type: "time_slot" | "annual" | "normal";
175
178
  bookable: boolean;
176
179
  museum_ids: number[];
@@ -6,11 +6,12 @@ import { Auth } from '../../../lib/stores/auth.svelte.ts';
6
6
  import { User } from '../../../lib/stores/user.svelte.ts';
7
7
  import { OpenApiClient } from '@gomus/api';
8
8
  import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
9
- import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, CustomerAddressesSuccess, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, MembershipActivationParams, MembershipActivationResponse, Merchandise, Museum, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
9
+ import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, CustomerAddressesSuccess, CustomerMembershipsSuccess, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, MembershipActivationParams, MembershipActivationResponse, Merchandise, Museum, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
10
10
  export type ShopKind = 'angular' | 'jmb';
11
11
  export type ValidateTokenResult = ValidateTokenSuccess | NotSignedIn | undefined;
12
12
  export type OrdersResult = OrdersSuccess | NotSignedIn | undefined;
13
13
  export type CustomerAddressesResult = CustomerAddressesSuccess | NotSignedIn | undefined;
14
+ export type CustomerMembershipsResult = CustomerMembershipsSuccess | NotSignedIn | undefined;
14
15
  type ParseAs = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
15
16
  export declare class Shop {
16
17
  #private;
@@ -126,6 +127,9 @@ export declare class Shop {
126
127
  composition: Record<number, number>;
127
128
  key?: string;
128
129
  } | undefined;
130
+ voucher?: {
131
+ code: string;
132
+ } | undefined;
129
133
  display?: {
130
134
  discounted: boolean;
131
135
  reference_uuid: string;
@@ -182,6 +186,9 @@ export declare class Shop {
182
186
  composition: Record<number, number>;
183
187
  key?: string;
184
188
  } | undefined;
189
+ voucher?: {
190
+ code: string;
191
+ } | undefined;
185
192
  display?: {
186
193
  discounted: boolean;
187
194
  reference_uuid: string;
@@ -359,6 +366,7 @@ export declare class Shop {
359
366
  getCustomer(): ValidateTokenResult;
360
367
  getOrders(params?: OrdersParams): OrdersResult;
361
368
  getCustomerAddresses(): CustomerAddressesResult;
369
+ getCustomerMemberships(): CustomerMembershipsResult;
362
370
  ticketsCalendar(params: TicketsCalendarParams): CalendarDatesDepthAvailabilityStatus;
363
371
  calendar(params: TicketsCalendarParams): CalendarDates;
364
372
  ticketsAndQuotas(params: TicketsAndQuotasParams): {
@@ -373,6 +381,7 @@ export declare class Shop {
373
381
  tickets(params: TicketsParams): {
374
382
  id: number;
375
383
  title: string;
384
+ sub_title: string | null;
376
385
  ticket_type: "time_slot" | "annual" | "normal";
377
386
  bookable: boolean;
378
387
  museum_ids: number[];
@@ -632,6 +641,7 @@ export declare class Shop {
632
641
  documents: import('@gomus/types').components["schemas"]["document"][];
633
642
  content: Record<string, never>;
634
643
  entry_fee: 0 | 10 | 20 | 100;
644
+ has_seating: boolean;
635
645
  };
636
646
  getTicketCapacities(date: string, ticketIds: number[]): Promise<CapacitiesResponse>;
637
647
  getCouponSaleByBarcode(token: string): {
@@ -720,6 +730,7 @@ export declare class Shop {
720
730
  category: import('@gomus/types').components["schemas"]["category"];
721
731
  upcoming_bookings_start_times: string[];
722
732
  entry_fee: 0 | 10 | 20 | 100;
733
+ has_seating: boolean;
723
734
  }[];
724
735
  get upcomingEvents(): {
725
736
  id: number;
@@ -750,6 +761,7 @@ export declare class Shop {
750
761
  category: import('@gomus/types').components["schemas"]["category"];
751
762
  upcoming_bookings_start_times: string[];
752
763
  entry_fee: 0 | 10 | 20 | 100;
764
+ has_seating: boolean;
753
765
  }[];
754
766
  get tours(): {
755
767
  id: number;
@@ -5,6 +5,7 @@ export declare const mockedTicketsAndQuotas: {
5
5
  '1': {
6
6
  id: number;
7
7
  title: string;
8
+ sub_title: string | null;
8
9
  ticket_type: "time_slot" | "annual" | "normal";
9
10
  bookable: boolean;
10
11
  museum_ids: number[];
@@ -67,6 +68,7 @@ export declare const mockedTicketsAndQuotas: {
67
68
  '2': {
68
69
  id: number;
69
70
  title: string;
71
+ sub_title: string | null;
70
72
  ticket_type: "time_slot" | "annual" | "normal";
71
73
  bookable: boolean;
72
74
  museum_ids: number[];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.5.0",
7
+ "version": "4.6.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",