@gomusdev/web-components 1.29.0 → 1.30.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.
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +1 -1
- package/dist-js/gomus-webcomponents.css +6 -6
- package/dist-js/gomus-webcomponents.iife.js +155 -106
- package/dist-js/gomus-webcomponents.js +155 -106
- package/dist-js/lib/models/cart/CartItem.d.ts +2 -2
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +2 -17
- package/dist-js/mocks/ScalingPricesMocks.d.ts +11 -0
- package/dist-js/mocks/mocks.d.ts +2 -34
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Product
|
|
1
|
+
import { Product } from './types.ts';
|
|
2
2
|
interface Options {
|
|
3
3
|
quantity?: number;
|
|
4
4
|
time?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function createCartItem<T extends Product>(product: T, options?: Partial<Options>): {
|
|
7
|
-
type: ProductType;
|
|
7
|
+
type: import('./types.ts').ProductType;
|
|
8
8
|
product: T;
|
|
9
9
|
/**
|
|
10
10
|
* is passed to the Order API
|
|
@@ -4,6 +4,7 @@ interface Options {
|
|
|
4
4
|
minAvailableCapacity?: number;
|
|
5
5
|
selectedTime?: string;
|
|
6
6
|
quantity?: number;
|
|
7
|
+
event_title: string;
|
|
7
8
|
}
|
|
8
9
|
type UIEventTicketTypes = 'scale';
|
|
9
10
|
export declare function isUIEventTicket(x: Product): x is UIEventTicket;
|
|
@@ -13,6 +14,7 @@ export declare function createUIEventTicket(apiTicket: EventScalePriceTicket, da
|
|
|
13
14
|
minAvailableCapacity: number;
|
|
14
15
|
selectedTime: string;
|
|
15
16
|
quantity: number;
|
|
17
|
+
event_title: string;
|
|
16
18
|
accounting_article_id: number;
|
|
17
19
|
accounting_article_type: string;
|
|
18
20
|
description: string;
|
|
@@ -28,22 +30,5 @@ export declare function createUIEventTicket(apiTicket: EventScalePriceTicket, da
|
|
|
28
30
|
uid: number;
|
|
29
31
|
dateId: number;
|
|
30
32
|
scalePriceId: number;
|
|
31
|
-
} | {
|
|
32
|
-
type: UIEventTicketTypes;
|
|
33
|
-
product_type: ProductType;
|
|
34
|
-
accounting_article_id: number;
|
|
35
|
-
accounting_article_type: string;
|
|
36
|
-
description: string;
|
|
37
|
-
group: boolean;
|
|
38
|
-
optional: boolean;
|
|
39
|
-
price_cents: number;
|
|
40
|
-
scale_price_id: number;
|
|
41
|
-
title: string;
|
|
42
|
-
vat_pct: number;
|
|
43
|
-
id: number;
|
|
44
|
-
tax_included: boolean;
|
|
45
|
-
uid: number;
|
|
46
|
-
dateId: number;
|
|
47
|
-
scalePriceId: number;
|
|
48
33
|
};
|
|
49
34
|
export {};
|
|
@@ -37,3 +37,14 @@ export declare const ScalingPricesMocks: {
|
|
|
37
37
|
accounting_article_type: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
export declare function createScalingPrice(title: string, price_cents: number, scale_price_id: number, description?: string): {
|
|
41
|
+
scale_price_id: number;
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
group: boolean;
|
|
45
|
+
optional: boolean;
|
|
46
|
+
price_cents: number;
|
|
47
|
+
vat_pct: number;
|
|
48
|
+
accounting_article_id: number;
|
|
49
|
+
accounting_article_type: string;
|
|
50
|
+
};
|
package/dist-js/mocks/mocks.d.ts
CHANGED
|
@@ -1951,6 +1951,7 @@ export declare const CartItemMocks: {
|
|
|
1951
1951
|
minAvailableCapacity: number;
|
|
1952
1952
|
selectedTime: string;
|
|
1953
1953
|
quantity: number;
|
|
1954
|
+
event_title: string;
|
|
1954
1955
|
accounting_article_id: number;
|
|
1955
1956
|
accounting_article_type: string;
|
|
1956
1957
|
description: string;
|
|
@@ -1966,23 +1967,6 @@ export declare const CartItemMocks: {
|
|
|
1966
1967
|
uid: number;
|
|
1967
1968
|
dateId: number;
|
|
1968
1969
|
scalePriceId: number;
|
|
1969
|
-
} | {
|
|
1970
|
-
type: "scale";
|
|
1971
|
-
product_type: import('../lib/models/cart/types').ProductType;
|
|
1972
|
-
accounting_article_id: number;
|
|
1973
|
-
accounting_article_type: string;
|
|
1974
|
-
description: string;
|
|
1975
|
-
group: boolean;
|
|
1976
|
-
optional: boolean;
|
|
1977
|
-
price_cents: number;
|
|
1978
|
-
scale_price_id: number;
|
|
1979
|
-
title: string;
|
|
1980
|
-
vat_pct: number;
|
|
1981
|
-
id: number;
|
|
1982
|
-
tax_included: boolean;
|
|
1983
|
-
uid: number;
|
|
1984
|
-
dateId: number;
|
|
1985
|
-
scalePriceId: number;
|
|
1986
1970
|
};
|
|
1987
1971
|
orderAttributes(): {
|
|
1988
1972
|
shipped_with_merchandise_id: null;
|
|
@@ -2017,6 +2001,7 @@ export declare const CartItemMocks: {
|
|
|
2017
2001
|
minAvailableCapacity: number;
|
|
2018
2002
|
selectedTime: string;
|
|
2019
2003
|
quantity: number;
|
|
2004
|
+
event_title: string;
|
|
2020
2005
|
accounting_article_id: number;
|
|
2021
2006
|
accounting_article_type: string;
|
|
2022
2007
|
description: string;
|
|
@@ -2032,23 +2017,6 @@ export declare const CartItemMocks: {
|
|
|
2032
2017
|
uid: number;
|
|
2033
2018
|
dateId: number;
|
|
2034
2019
|
scalePriceId: number;
|
|
2035
|
-
} | {
|
|
2036
|
-
type: "scale";
|
|
2037
|
-
product_type: import('../lib/models/cart/types').ProductType;
|
|
2038
|
-
accounting_article_id: number;
|
|
2039
|
-
accounting_article_type: string;
|
|
2040
|
-
description: string;
|
|
2041
|
-
group: boolean;
|
|
2042
|
-
optional: boolean;
|
|
2043
|
-
price_cents: number;
|
|
2044
|
-
scale_price_id: number;
|
|
2045
|
-
title: string;
|
|
2046
|
-
vat_pct: number;
|
|
2047
|
-
id: number;
|
|
2048
|
-
tax_included: boolean;
|
|
2049
|
-
uid: number;
|
|
2050
|
-
dateId: number;
|
|
2051
|
-
scalePriceId: number;
|
|
2052
2020
|
};
|
|
2053
2021
|
orderAttributes(): {
|
|
2054
2022
|
shipped_with_merchandise_id: null;
|