@gomusdev/web-components 1.5.0 → 1.6.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.
- package/dist-js/components/auth/entry.d.ts +0 -0
- package/dist-js/components/auth/signIn/SignIn.spec.d.ts +1 -0
- package/dist-js/components/auth/signIn/SignIn.svelte.d.ts +1 -0
- package/dist-js/components/auth/signIn/lib.d.ts +7 -0
- package/dist-js/components/auth/signUp/SignUp.svelte.d.ts +1 -0
- package/dist-js/components/auth/signUp/specs/SignUp.spec.d.ts +1 -0
- package/dist-js/components/cart/components/Cart.spec.d.ts +1 -0
- package/dist-js/components/cart/components/Cart.svelte.d.ts +1 -0
- package/dist-js/components/cart/entry.d.ts +0 -0
- package/dist-js/components/cart/lib/CartItem.d.ts +135 -0
- package/dist-js/components/cart/lib/cart.svelte.d.ts +616 -0
- package/dist-js/components/cart/lib/cart.svelte.spec.d.ts +1 -0
- package/dist-js/components/cart/lib/localStorage.spec.d.ts +1 -0
- package/dist-js/components/cart/lib/localStorage.svelte.d.ts +146 -0
- package/dist-js/components/cart/mocks/gomusTicketMocks.d.ts +112 -0
- package/dist-js/components/cart/mocks/testCart.d.ts +306 -0
- package/dist-js/components/checkoutForm/CheckoutForm.spec.d.ts +1 -0
- package/dist-js/components/checkoutForm/CheckoutForm.svelte.d.ts +1 -0
- package/dist-js/components/checkoutForm/entry.d.ts +0 -0
- package/dist-js/components/checkoutForm/lib.d.ts +1 -0
- package/dist-js/components/donations/lib/donation.spec.d.ts +1 -0
- package/dist-js/components/donations/lib/donation.svelte.d.ts +9 -0
- package/dist-js/components/entry.d.ts +0 -0
- package/dist-js/components/forms/entry.d.ts +0 -0
- package/dist-js/components/forms/lib/Field.spec.d.ts +1 -0
- package/dist-js/components/forms/lib/Field.svelte.d.ts +28 -0
- package/dist-js/components/forms/lib/Forms.svelte.d.ts +31 -0
- package/dist-js/components/forms/lib/allFields.d.ts +3 -0
- package/dist-js/components/forms/lib/forms.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/AllFields.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/ErrorsFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Field.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Field.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Form.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/FormDetails.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/FormDetails.svelte.d.ts +25 -0
- package/dist-js/components/forms/ui/generic/FormFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/InputAndLabel.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Submit.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Submit.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/SuccessFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/specs/IfInForm.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/specs/TestForm.spec.d.ts +1 -0
- package/dist-js/components/graveyard/event/entry.d.ts +0 -0
- package/dist-js/components/graveyard/event/lib.svelte.d.ts +43 -0
- package/dist-js/components/graveyard/events/entry.d.ts +0 -0
- package/dist-js/components/if/If.svelte.d.ts +1 -0
- package/dist-js/components/if/If.svelte.spec.d.ts +1 -0
- package/dist-js/components/if/entry.d.ts +0 -0
- package/dist-js/components/if/expression.d.ts +1 -0
- package/dist-js/components/if/expression.spec.d.ts +1 -0
- package/dist-js/components/init/GomusInit.svelte.d.ts +1 -0
- package/dist-js/components/init/GomusInit.test.d.ts +1 -0
- package/dist-js/components/init/Init.svelte.d.ts +1 -0
- package/dist-js/components/init/entry.d.ts +0 -0
- package/dist-js/components/mainnav/components/MainNav.spec.d.ts +1 -0
- package/dist-js/components/mainnav/fixtures/fixtures.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/generate.d.ts +4 -0
- package/dist-js/components/mainnav/lib/generators/generate.spec.d.ts +1 -0
- package/dist-js/components/mainnav/lib/generators/labelGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/navGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/subNavGenerators.d.ts +7 -0
- package/dist-js/components/mainnav/lib/generators/urlGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/navigation.d.ts +32 -0
- package/dist-js/components/mainnav/lib/navigation.spec.d.ts +1 -0
- package/dist-js/components/mainnav/lib/states/OpenedDropdown.svelte.d.ts +20 -0
- package/dist-js/components/mainnav/lib/states/pageState.svelte.d.ts +7 -0
- package/dist-js/components/paypal/lib/PaymentError.d.ts +3 -0
- package/dist-js/components/paypal/lib/approvePaypalOrder.d.ts +4 -0
- package/dist-js/components/paypal/lib/getPaypalOrder.d.ts +1 -0
- package/dist-js/components/paypal/payment-method-component/paymentIcons.d.ts +14 -0
- package/dist-js/components/paypal/payment-method-component/paymentMethodStore.svelte.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/apm.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/applepay/applePay.d.ts +2 -0
- package/dist-js/components/paypal/payment-methods/currentOrder.svelte.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/defaults.d.ts +28 -0
- package/dist-js/components/paypal/payment-methods/googlepay/googlePay.d.ts +2 -0
- package/dist-js/components/paypal/payment-methods/loadPaypalScript.d.ts +5 -0
- package/dist-js/components/ticketSelection/SpecUtils.d.ts +3 -0
- package/dist-js/components/ticketSelection/TicketSelection.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelection.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +27 -0
- package/dist-js/components/ticketSelection/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.d.ts +6 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/Calendar.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +35 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/mocks/datesMock.d.ts +33 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/Tickets.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/Tickets.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/fixtures/ticketFixtures.d.ts +191 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/GroupBody.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/GroupSum.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/TicketGroup.svelte.d.ts +764 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/TicketsSum.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/addToCartButton/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +9 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/entry.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/__mocks__/generateAvailableTimeSlots.d.ts +8 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.d.ts +50 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.specs.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.svelte.d.ts +6 -0
- package/dist-js/config/config.d.ts +8 -0
- package/dist-js/config/config.spec.d.ts +1 -0
- package/dist-js/config/defaultConfig.d.ts +16 -0
- package/dist-js/e2e/APMs.e2e.spec.d.ts +1 -0
- package/dist-js/e2e/Card.e2e.spec.d.ts +1 -0
- package/dist-js/e2e/testApm.d.ts +7 -0
- package/dist-js/go.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.css +1255 -0
- package/dist-js/gomus-webcomponents.iife.js +18833 -0
- package/dist-js/gomus-webcomponents.js +18832 -0
- package/dist-js/lib/annual-ticket-personalization/index.d.ts +1 -0
- package/dist-js/lib/annual-ticket-personalization/stores.d.ts +3 -0
- package/dist-js/lib/gomusTicket.spec.d.ts +1 -0
- package/dist-js/lib/gomusTicket.svelte.d.ts +122 -0
- package/dist-js/lib/helpers/DataHolder.d.ts +3 -0
- package/dist-js/lib/helpers/Events.d.ts +6 -0
- package/dist-js/lib/helpers/PropertyTracker.d.ts +9 -0
- package/dist-js/lib/helpers/PropertyTracker.spec.d.ts +1 -0
- package/dist-js/lib/helpers/ShadowStyles.svelte.d.ts +7 -0
- package/dist-js/lib/helpers/Wrapper.svelte.d.ts +1 -0
- package/dist-js/lib/helpers/context.spec.d.ts +1 -0
- package/dist-js/lib/helpers/context.svelte.d.ts +2 -0
- package/dist-js/lib/helpers/cookies.d.ts +7 -0
- package/dist-js/lib/helpers/cookies.spec.d.ts +1 -0
- package/dist-js/lib/helpers/dataAttr.d.ts +9 -0
- package/dist-js/lib/helpers/dataAttr.spec.d.ts +1 -0
- package/dist-js/lib/helpers/fixtures/context/lib.d.ts +5 -0
- package/dist-js/lib/helpers/shopCart.d.ts +34 -0
- package/dist-js/lib/helpers/translations.d.ts +752 -0
- package/dist-js/lib/helpers/urls.d.ts +64 -0
- package/dist-js/lib/helpers/utils.d.ts +24 -0
- package/dist-js/lib/helpers/wrapInElement.d.ts +1 -0
- package/dist-js/lib/helpers/wrapInElement.spec.d.ts +1 -0
- package/dist-js/lib/middlewares/AuthMiddleware.d.ts +23 -0
- package/dist-js/lib/middlewares/AuthMiddleware.spec.d.ts +1 -0
- package/dist-js/lib/stores/__mocks__/shop.svelte.d.ts +2 -0
- package/dist-js/lib/stores/auth.svelte.d.ts +25 -0
- package/dist-js/lib/stores/auth.svelte.spec.d.ts +1 -0
- package/dist-js/lib/stores/shop.svelte.d.ts +412 -0
- package/dist-js/lib/stores/shop.svelte.test.d.ts +1 -0
- package/dist-js/lib/stores/user.svelte.d.ts +16 -0
- package/dist-js/lib/stores/user.svelte.test.d.ts +1 -0
- package/dist-js/lib/storybook/WrapperComponent.d.ts +1 -0
- package/dist-js/lib/storybook/sbGlobals.svelte.d.ts +9 -0
- package/dist-js/lib/types/types.d.ts +1 -0
- package/dist-js/lib/utils.d.ts +16 -0
- package/dist-js/lib/vitest/mockedCookies.d.ts +2 -0
- package/dist-js/lib/vitest/msw/RequestLogger.d.ts +1 -0
- package/dist-js/lib/vitest/msw/basicHandlers.d.ts +3 -0
- package/dist-js/lib/vitest/msw/handlers.d.ts +1758 -0
- package/dist-js/lib/vitest/msw/vitestMSWSetup.d.ts +3 -0
- package/dist-js/lib/vitest/snapshotSerializer.d.ts +1 -0
- package/dist-js/main.d.ts +5 -0
- package/dist-js/mocks/MSWMocks.d.ts +11 -0
- package/dist-js/mocks/ShopMocks.d.ts +179 -0
- package/dist-js/mocks/mocks.d.ts +2049 -0
- package/dist-js/sveltekit/app/environment.d.ts +1 -0
- package/dist-js/sveltekit/app/forms.d.ts +23 -0
- package/dist-js/sveltekit/app/navigation.d.ts +4 -0
- package/dist-js/sveltekit/app/stores.d.ts +2 -0
- package/dist-js/vitest-setup.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { AnnualTicket, Ticket, Tickets } from '@gomus/types';
|
|
2
|
+
interface Options {
|
|
3
|
+
minAvailableCapacity?: number;
|
|
4
|
+
selectedTime?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
}
|
|
7
|
+
type UITicketTypes = 'timeslot' | 'annual' | 'day';
|
|
8
|
+
export type UITicket = ReturnType<typeof createUITicket>;
|
|
9
|
+
export declare function createUITicket(apiTicket: Ticket | AnnualTicket, options?: Options): {
|
|
10
|
+
type: UITicketTypes;
|
|
11
|
+
shop_order: number;
|
|
12
|
+
max_capacity: number;
|
|
13
|
+
min_quantity: number;
|
|
14
|
+
max_quantity: number;
|
|
15
|
+
minAvailableCapacity: number;
|
|
16
|
+
selectedTime: string;
|
|
17
|
+
quantity: number;
|
|
18
|
+
id: number;
|
|
19
|
+
title: string;
|
|
20
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
21
|
+
bookable: boolean;
|
|
22
|
+
museum_ids: number[];
|
|
23
|
+
exhibition_ids: number[];
|
|
24
|
+
price_cents: number;
|
|
25
|
+
discount: number;
|
|
26
|
+
vat_pct: number;
|
|
27
|
+
tax_included: boolean;
|
|
28
|
+
entry_duration: number | null;
|
|
29
|
+
min_persons: number;
|
|
30
|
+
max_persons: number;
|
|
31
|
+
quota_ids: number[];
|
|
32
|
+
first_entry: number;
|
|
33
|
+
last_entry: number;
|
|
34
|
+
personalizeable: boolean;
|
|
35
|
+
attendees: boolean | string;
|
|
36
|
+
identification: boolean | string;
|
|
37
|
+
free_timing: boolean;
|
|
38
|
+
is_collective: boolean;
|
|
39
|
+
is_upgrade: boolean;
|
|
40
|
+
is_mantle: boolean;
|
|
41
|
+
description: string | null;
|
|
42
|
+
sub_ticket_ids: number[];
|
|
43
|
+
sub_tickets: {
|
|
44
|
+
[key: string]: {
|
|
45
|
+
title?: string;
|
|
46
|
+
min_persons?: number;
|
|
47
|
+
max_persons?: number;
|
|
48
|
+
description?: string | null;
|
|
49
|
+
};
|
|
50
|
+
} | null;
|
|
51
|
+
is_sub_ticket: boolean;
|
|
52
|
+
created_at: string;
|
|
53
|
+
updated_at: string;
|
|
54
|
+
shipped_with_merchandise_id: number | null;
|
|
55
|
+
restricted_shop_account: boolean;
|
|
56
|
+
cash_point_order: number;
|
|
57
|
+
capacities: {
|
|
58
|
+
[key: string]: number;
|
|
59
|
+
};
|
|
60
|
+
total_capacities: {
|
|
61
|
+
[key: string]: number;
|
|
62
|
+
};
|
|
63
|
+
max_total_capacity: number;
|
|
64
|
+
dynamic_prices: {
|
|
65
|
+
[key: string]: number;
|
|
66
|
+
} | null;
|
|
67
|
+
uid: number;
|
|
68
|
+
} | {
|
|
69
|
+
type: UITicketTypes;
|
|
70
|
+
shop_order: number;
|
|
71
|
+
max_capacity: number;
|
|
72
|
+
min_quantity: number;
|
|
73
|
+
max_quantity: number;
|
|
74
|
+
minAvailableCapacity: number;
|
|
75
|
+
selectedTime: string;
|
|
76
|
+
quantity: number;
|
|
77
|
+
id: number;
|
|
78
|
+
title: string;
|
|
79
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
80
|
+
bookable: boolean;
|
|
81
|
+
museum_ids: number[];
|
|
82
|
+
exhibition_ids: number[];
|
|
83
|
+
price_cents: number;
|
|
84
|
+
discount: number;
|
|
85
|
+
vat_pct: number;
|
|
86
|
+
tax_included: boolean;
|
|
87
|
+
entry_duration: number | null;
|
|
88
|
+
min_persons: number;
|
|
89
|
+
max_persons: number;
|
|
90
|
+
quota_ids: number[];
|
|
91
|
+
first_entry: number;
|
|
92
|
+
last_entry: number;
|
|
93
|
+
personalizeable: boolean;
|
|
94
|
+
attendees: boolean | string;
|
|
95
|
+
identification: boolean | string;
|
|
96
|
+
free_timing: boolean;
|
|
97
|
+
is_collective: boolean;
|
|
98
|
+
is_upgrade: boolean;
|
|
99
|
+
is_mantle: boolean;
|
|
100
|
+
description: string | null;
|
|
101
|
+
sub_ticket_ids: number[];
|
|
102
|
+
sub_tickets: {
|
|
103
|
+
[key: string]: {
|
|
104
|
+
title?: string;
|
|
105
|
+
min_persons?: number;
|
|
106
|
+
max_persons?: number;
|
|
107
|
+
description?: string | null;
|
|
108
|
+
};
|
|
109
|
+
} | null;
|
|
110
|
+
is_sub_ticket: boolean;
|
|
111
|
+
created_at: string;
|
|
112
|
+
updated_at: string;
|
|
113
|
+
shipped_with_merchandise_id: number | null;
|
|
114
|
+
restricted_shop_account: boolean;
|
|
115
|
+
cash_point_order: number;
|
|
116
|
+
dynamic_prices: {
|
|
117
|
+
[key: string]: number;
|
|
118
|
+
} | null;
|
|
119
|
+
uid: number;
|
|
120
|
+
};
|
|
121
|
+
export declare function initUITimeslotTickets(tickets: Tickets): UITicket[];
|
|
122
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observes the provided object and triggers a callback function whenever a property is updated.
|
|
3
|
+
*
|
|
4
|
+
* @param {T} obj - The object to be observed.
|
|
5
|
+
* @param {function(string, any): void} onChange - The callback function that gets invoked when a property is updated.
|
|
6
|
+
* The first argument is the property name, and the second is the new value of the property.
|
|
7
|
+
* @return {T} The proxied object that listens to property updates.
|
|
8
|
+
*/
|
|
9
|
+
export declare function PropertyTracker<T extends object>(obj: T, onChange: (obj: T, prop: string, value: any) => void): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function loadShadowStyles(host: HTMLElement): Promise<void>;
|
|
2
|
+
/**
|
|
3
|
+
* Load/apply CSS to a ShadowRoot in a way that works everywhere.
|
|
4
|
+
* - Modern: CSSStyleSheet + adoptedStyleSheets (+ replace/replaceSync)
|
|
5
|
+
* - Fallback: <style> element inside the shadow root
|
|
6
|
+
*/
|
|
7
|
+
export declare function loadStylesheet(styles: string, shadow: ShadowRoot): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Customer } from '@gomus/types';
|
|
2
|
+
export declare function getCookie(name: string): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Sets a single browser cookie containing all authentication headers as JSON.
|
|
5
|
+
* Stores the header object created by createCookieHeaders under the name 'go_auth_headers'.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setAuthCookie(response: Response, customer: Customer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets a data attribute on an HTML element if the specified condition is true.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} name - The name of the data attribute to set.
|
|
5
|
+
* @param {boolean} condition - A boolean value determining whether the attribute should be set.
|
|
6
|
+
* @param {string} [value] - The value to assign to the data attribute. If omitted, the attribute will be set with no value.
|
|
7
|
+
* @return {Function} A function that takes an HTMLElement and applies the data attribute if the condition is true.
|
|
8
|
+
*/
|
|
9
|
+
export declare function dataAttr(name: string, condition: boolean, value?: string): (element: HTMLElement) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LocalStorateCartItem } from '@gomus/types';
|
|
2
|
+
export type CartItem = {
|
|
3
|
+
name: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
unit_amount: {
|
|
6
|
+
currency_code: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function getCartItems(currency?: string): CartItem[];
|
|
11
|
+
export declare function total(): number;
|
|
12
|
+
export declare function parsedItems(): LocalStorateCartItem[];
|
|
13
|
+
export declare function sampleCard(): {
|
|
14
|
+
type: string;
|
|
15
|
+
attributes: {
|
|
16
|
+
id: number;
|
|
17
|
+
time: string;
|
|
18
|
+
quantity: number;
|
|
19
|
+
shipped_with_merchandise_id: null;
|
|
20
|
+
};
|
|
21
|
+
cart: {
|
|
22
|
+
name: string;
|
|
23
|
+
price_cents: number;
|
|
24
|
+
vats: {
|
|
25
|
+
vat_pct: number;
|
|
26
|
+
price_cents: number;
|
|
27
|
+
}[];
|
|
28
|
+
tax_included: boolean;
|
|
29
|
+
available: number[];
|
|
30
|
+
type: string;
|
|
31
|
+
totalCents: number;
|
|
32
|
+
};
|
|
33
|
+
updated_at: string;
|
|
34
|
+
}[];
|