@gomusdev/web-components 0.0.20 → 0.0.22

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.
Files changed (25) hide show
  1. package/dist-js/components/forms/ui/Signup.svelte.d.ts +1 -0
  2. package/dist-js/components/forms/ui/generic/AllFields.svelte.d.ts +1 -0
  3. package/dist-js/components/forms/ui/generic/ErrorsFeedback.svelte.d.ts +1 -0
  4. package/dist-js/components/forms/ui/generic/FieldGroup.svelte.d.ts +1 -0
  5. package/dist-js/components/forms/ui/generic/Form.svelte.d.ts +1 -0
  6. package/dist-js/components/forms/ui/generic/FormFeedback.svelte.d.ts +1 -0
  7. package/dist-js/components/forms/ui/generic/InputAndLabel.svelte.d.ts +1 -0
  8. package/dist-js/components/forms/ui/generic/Submit.spec.d.ts +1 -0
  9. package/dist-js/components/forms/ui/generic/Submit.svelte.d.ts +1 -0
  10. package/dist-js/components/forms/ui/generic/SuccessFeedback.svelte.d.ts +1 -0
  11. package/dist-js/components/forms/ui/specs/TestForm.spec.d.ts +1 -0
  12. package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +2 -1
  13. package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/TicketGroup.svelte.d.ts +1 -1
  14. package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.specs.d.ts +1 -121
  15. package/dist-js/gomus-webcomponents.css +12 -3
  16. package/dist-js/gomus-webcomponents.iife.js +2132 -138
  17. package/dist-js/gomus-webcomponents.js +2132 -138
  18. package/dist-js/lib/gomusTicket.svelte.d.ts +1 -1
  19. package/dist-js/lib/helpers/utils.d.ts +1 -0
  20. package/dist-js/lib/helpers/wrapInElement.d.ts +1 -0
  21. package/dist-js/lib/helpers/wrapInElement.spec.d.ts +1 -0
  22. package/dist-js/lib/stores/shop.svelte.d.ts +62 -0
  23. package/dist-js/lib/stores/shop.svelte.test.d.ts +1 -3
  24. package/dist-js/mocks/ShopMocks.d.ts +179 -0
  25. package/package.json +1 -1
@@ -5,6 +5,7 @@ interface Options {
5
5
  quantity?: number;
6
6
  }
7
7
  type UITicketTypes = 'timeslot' | 'annual' | 'day';
8
+ export type UITicket = ReturnType<typeof createUITicket>;
8
9
  export declare function createUITicket(apiTicket: Ticket | AnnualTicket, options?: Options): {
9
10
  type: UITicketTypes;
10
11
  shop_order: number;
@@ -118,5 +119,4 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket, options
118
119
  uid: number;
119
120
  };
120
121
  export declare function initUITimeslotTickets(tickets: Tickets): UITicket[];
121
- export type UITicket = ReturnType<typeof createUITicket>;
122
122
  export {};
@@ -22,3 +22,4 @@ export declare function currency(value: number, currency: string): string;
22
22
  * ```
23
23
  */
24
24
  export declare function parseIds(ids: string | undefined): number[] | undefined;
25
+ export declare function parseTokens<ValidToken>(tokens: string | undefined, possibleTokens: readonly ValidToken[]): ValidToken[] | undefined;
@@ -0,0 +1 @@
1
+ export declare function wrapInElement(host: HTMLElement, tag: string, props?: Record<string, string | boolean>): HTMLElement;
@@ -0,0 +1 @@
1
+ export {};
@@ -483,6 +483,7 @@ export declare class Shop {
483
483
  addr_city: string;
484
484
  addr_country_id: number;
485
485
  language_id: number;
486
+ date_of_birth: string | null;
486
487
  };
487
488
  }[];
488
489
  };
@@ -716,6 +717,36 @@ export declare class Shop {
716
717
  };
717
718
  };
718
719
  };
720
+ } | {
721
+ parameters: {
722
+ query?: never;
723
+ header: {
724
+ "X-Shop-Url": string;
725
+ };
726
+ path?: never;
727
+ cookie?: never;
728
+ };
729
+ requestBody: {
730
+ content: {
731
+ "application/json": {
732
+ email: string;
733
+ };
734
+ };
735
+ };
736
+ responses: {
737
+ 204: {
738
+ headers: {
739
+ [name: string]: unknown;
740
+ };
741
+ content?: never;
742
+ };
743
+ 404: {
744
+ headers: {
745
+ [name: string]: unknown;
746
+ };
747
+ content?: never;
748
+ };
749
+ };
719
750
  } | {
720
751
  parameters: {
721
752
  query?: never;
@@ -896,6 +927,7 @@ export declare class Shop {
896
927
  addr_city: string;
897
928
  addr_country_id: number;
898
929
  language_id: number;
930
+ date_of_birth: string | null;
899
931
  };
900
932
  }[];
901
933
  };
@@ -1129,6 +1161,36 @@ export declare class Shop {
1129
1161
  };
1130
1162
  };
1131
1163
  };
1164
+ } | {
1165
+ parameters: {
1166
+ query?: never;
1167
+ header: {
1168
+ "X-Shop-Url": string;
1169
+ };
1170
+ path?: never;
1171
+ cookie?: never;
1172
+ };
1173
+ requestBody: {
1174
+ content: {
1175
+ "application/json": {
1176
+ email: string;
1177
+ };
1178
+ };
1179
+ };
1180
+ responses: {
1181
+ 204: {
1182
+ headers: {
1183
+ [name: string]: unknown;
1184
+ };
1185
+ content?: never;
1186
+ };
1187
+ 404: {
1188
+ headers: {
1189
+ [name: string]: unknown;
1190
+ };
1191
+ content?: never;
1192
+ };
1193
+ };
1132
1194
  } | {
1133
1195
  parameters: {
1134
1196
  query?: never;
@@ -1,3 +1 @@
1
- export declare const getShop_success: import('msw').HttpHandler;
2
- export declare const getShop_fail: import('msw').HttpHandler;
3
- export declare const dummyShop: readonly ["https://example.com", "dummy_shop_domain", "en"];
1
+ export {};
@@ -0,0 +1,179 @@
1
+ import { Quota, Ticket, TimeSlot } from '@gomus/types';
2
+ export declare const dummyShop: readonly ["https://example.com", "dummy_shop_domain", "en"];
3
+ export declare const mockedTicketsAndQuotas: {
4
+ tickets: {
5
+ '1': {
6
+ id: number;
7
+ title: string;
8
+ ticket_type: "time_slot" | "annual" | "normal";
9
+ bookable: boolean;
10
+ museum_ids: number[];
11
+ exhibition_ids: number[];
12
+ price_cents: number;
13
+ discount: number;
14
+ vat_pct: number;
15
+ tax_included: boolean;
16
+ entry_duration: number | null;
17
+ min_persons: number;
18
+ max_persons: number;
19
+ quota_ids: number[];
20
+ first_entry: number;
21
+ last_entry: number;
22
+ personalizeable: boolean;
23
+ attendees: boolean | string;
24
+ identification: boolean | string;
25
+ free_timing: boolean;
26
+ is_collective: boolean;
27
+ is_upgrade: boolean;
28
+ is_mantle: boolean;
29
+ description: string | null;
30
+ sub_ticket_ids: number[];
31
+ sub_tickets: {
32
+ [key: string]: {
33
+ title?: string;
34
+ min_persons?: number;
35
+ max_persons?: number;
36
+ description?: string | null;
37
+ };
38
+ } | null;
39
+ is_sub_ticket: boolean;
40
+ created_at: string;
41
+ updated_at: string;
42
+ shop_order: number;
43
+ shipped_with_merchandise_id: number | null;
44
+ restricted_shop_account: boolean;
45
+ cash_point_order: number;
46
+ capacities: {
47
+ [key: string]: number;
48
+ };
49
+ total_capacities: {
50
+ [key: string]: number;
51
+ };
52
+ max_capacity: number;
53
+ max_total_capacity: number;
54
+ dynamic_prices: {
55
+ [key: string]: number;
56
+ } | null;
57
+ };
58
+ '2': {
59
+ id: number;
60
+ title: string;
61
+ ticket_type: "time_slot" | "annual" | "normal";
62
+ bookable: boolean;
63
+ museum_ids: number[];
64
+ exhibition_ids: number[];
65
+ price_cents: number;
66
+ discount: number;
67
+ vat_pct: number;
68
+ tax_included: boolean;
69
+ entry_duration: number | null;
70
+ min_persons: number;
71
+ max_persons: number;
72
+ quota_ids: number[];
73
+ first_entry: number;
74
+ last_entry: number;
75
+ personalizeable: boolean;
76
+ attendees: boolean | string;
77
+ identification: boolean | string;
78
+ free_timing: boolean;
79
+ is_collective: boolean;
80
+ is_upgrade: boolean;
81
+ is_mantle: boolean;
82
+ description: string | null;
83
+ sub_ticket_ids: number[];
84
+ sub_tickets: {
85
+ [key: string]: {
86
+ title?: string;
87
+ min_persons?: number;
88
+ max_persons?: number;
89
+ description?: string | null;
90
+ };
91
+ } | null;
92
+ is_sub_ticket: boolean;
93
+ created_at: string;
94
+ updated_at: string;
95
+ shop_order: number;
96
+ shipped_with_merchandise_id: number | null;
97
+ restricted_shop_account: boolean;
98
+ cash_point_order: number;
99
+ capacities: {
100
+ [key: string]: number;
101
+ };
102
+ total_capacities: {
103
+ [key: string]: number;
104
+ };
105
+ max_capacity: number;
106
+ max_total_capacity: number;
107
+ dynamic_prices: {
108
+ [key: string]: number;
109
+ } | null;
110
+ };
111
+ };
112
+ quotas: {
113
+ '1': {
114
+ ticket_ids: number[];
115
+ capacities: {
116
+ [key: string]: number;
117
+ };
118
+ total_capacities: {
119
+ [key: string]: number;
120
+ };
121
+ };
122
+ };
123
+ };
124
+ export declare function createMockTicket(ticket?: Partial<Ticket>): Ticket;
125
+ export declare function createMockTimeSlot(timeSlot?: Partial<TimeSlot>): TimeSlot;
126
+ export declare function createMockQuota(quota?: Partial<Quota>): Quota;
127
+ export declare const response_success: {
128
+ shop: {
129
+ name: string;
130
+ config: {
131
+ url: string;
132
+ success_link: string;
133
+ pending_link: string;
134
+ fail_link: string;
135
+ back_link: string;
136
+ confirmation_link: string;
137
+ password_reset_link: string;
138
+ personalization_link: string;
139
+ registration: boolean;
140
+ guest: {
141
+ enabled: boolean;
142
+ limit: number;
143
+ };
144
+ min_total: number;
145
+ max_total: number;
146
+ defaults: {
147
+ price_target_audience_id: number;
148
+ };
149
+ currency: string;
150
+ time_zone: string;
151
+ locale: string;
152
+ custom_css: string;
153
+ custom_js: string;
154
+ donations: {
155
+ enabled: boolean;
156
+ options: number[];
157
+ guest_limit: number;
158
+ free_donations: boolean;
159
+ };
160
+ dynamic_pricing: boolean;
161
+ };
162
+ translations: {
163
+ [x: string]: string;
164
+ };
165
+ payment_modes: {
166
+ [x: string]: {
167
+ id: number;
168
+ name: string;
169
+ icons: string[];
170
+ };
171
+ };
172
+ content: {
173
+ [x: string]: string;
174
+ };
175
+ settings: {};
176
+ };
177
+ };
178
+ export declare const getShop_success: import('msw').HttpHandler;
179
+ export declare const getShop_fail: import('msw').HttpHandler;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "0.0.20",
7
+ "version": "0.0.22",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",