@gomusdev/web-components 0.0.17 → 0.0.19

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 (123) hide show
  1. package/dist-js/components/cart/components/Cart.svelte.d.ts +1 -0
  2. package/dist-js/components/cart/components/items/Ticket.svelte.d.ts +1 -0
  3. package/dist-js/components/cart/entry.d.ts +0 -0
  4. package/dist-js/components/cart/lib/cart.spec.d.ts +1 -0
  5. package/dist-js/components/cart/lib/cart.svelte.d.ts +25 -0
  6. package/dist-js/components/cart/lib/lib.d.ts +3 -0
  7. package/dist-js/components/cart/mocks/gomusTickets.d.ts +56 -0
  8. package/dist-js/components/cart/mocks/testCart.d.ts +306 -0
  9. package/dist-js/components/donations/lib/donation.spec.d.ts +1 -0
  10. package/dist-js/components/donations/lib/donation.svelte.d.ts +9 -0
  11. package/dist-js/components/entry.d.ts +0 -0
  12. package/dist-js/components/forms/entry.d.ts +0 -0
  13. package/dist-js/components/forms/lib/Field.svelte.d.ts +26 -0
  14. package/dist-js/components/forms/lib/allFields.d.ts +3 -0
  15. package/dist-js/components/forms/lib/details.svelte.d.ts +11 -0
  16. package/dist-js/components/forms/lib/forms.svelte.d.ts +19 -0
  17. package/dist-js/components/graveyard/event/entry.d.ts +0 -0
  18. package/dist-js/components/graveyard/event/lib.svelte.d.ts +43 -0
  19. package/dist-js/components/graveyard/events/entry.d.ts +0 -0
  20. package/dist-js/components/if/If.svelte.spec.d.ts +1 -0
  21. package/dist-js/components/if/expression.d.ts +1 -0
  22. package/dist-js/components/if/expression.spec.d.ts +1 -0
  23. package/dist-js/components/init/GomusInit.svelte.d.ts +1 -0
  24. package/dist-js/components/init/GomusInit.test.d.ts +1 -0
  25. package/dist-js/components/init/Init.svelte.d.ts +1 -0
  26. package/dist-js/components/init/entry.d.ts +0 -0
  27. package/dist-js/components/mainnav/components/MainNav.spec.d.ts +1 -0
  28. package/dist-js/components/mainnav/fixtures/fixtures.d.ts +2 -0
  29. package/dist-js/components/mainnav/lib/generators/generate.d.ts +4 -0
  30. package/dist-js/components/mainnav/lib/generators/generate.spec.d.ts +1 -0
  31. package/dist-js/components/mainnav/lib/generators/labelGenerators.d.ts +2 -0
  32. package/dist-js/components/mainnav/lib/generators/navGenerators.d.ts +2 -0
  33. package/dist-js/components/mainnav/lib/generators/subNavGenerators.d.ts +7 -0
  34. package/dist-js/components/mainnav/lib/generators/urlGenerators.d.ts +2 -0
  35. package/dist-js/components/mainnav/lib/navigation.d.ts +32 -0
  36. package/dist-js/components/mainnav/lib/navigation.spec.d.ts +1 -0
  37. package/dist-js/components/mainnav/lib/states/OpenedDropdown.svelte.d.ts +20 -0
  38. package/dist-js/components/mainnav/lib/states/pageState.svelte.d.ts +7 -0
  39. package/dist-js/components/paypal/lib/PaymentError.d.ts +3 -0
  40. package/dist-js/components/paypal/lib/approvePaypalOrder.d.ts +4 -0
  41. package/dist-js/components/paypal/lib/getPaypalOrder.d.ts +1 -0
  42. package/dist-js/components/paypal/payment-method-component/paymentIcons.d.ts +14 -0
  43. package/dist-js/components/paypal/payment-method-component/paymentMethodStore.svelte.d.ts +3 -0
  44. package/dist-js/components/paypal/payment-methods/apm.d.ts +3 -0
  45. package/dist-js/components/paypal/payment-methods/applepay/applePay.d.ts +2 -0
  46. package/dist-js/components/paypal/payment-methods/currentOrder.svelte.d.ts +3 -0
  47. package/dist-js/components/paypal/payment-methods/defaults.d.ts +28 -0
  48. package/dist-js/components/paypal/payment-methods/googlepay/googlePay.d.ts +2 -0
  49. package/dist-js/components/paypal/payment-methods/loadPaypalScript.d.ts +5 -0
  50. package/dist-js/components/ticketSelection/SelectionTotal.svelte.d.ts +1 -0
  51. package/dist-js/components/ticketSelection/TicketSelection.spec.d.ts +1 -0
  52. package/dist-js/components/ticketSelection/TicketSelection.svelte.d.ts +1 -0
  53. package/dist-js/components/ticketSelection/entry.d.ts +0 -0
  54. package/dist-js/components/ticketSelection/lib.spec.d.ts +1 -0
  55. package/dist-js/components/ticketSelection/lib.svelte.d.ts +23 -0
  56. package/dist-js/components/ticketSelection/subcomponents/calendar/components/Calendar.svelte.d.ts +1 -0
  57. package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts +1 -0
  58. package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.svelte.d.ts +1 -0
  59. package/dist-js/components/ticketSelection/subcomponents/calendar/entry.d.ts +0 -0
  60. package/dist-js/components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +38 -0
  61. package/dist-js/components/ticketSelection/subcomponents/calendar/mocks/datesMock.d.ts +33 -0
  62. package/dist-js/components/ticketSelection/subcomponents/checkoutButton/components/CheckoutButton.svelte.d.ts +1 -0
  63. package/dist-js/components/ticketSelection/subcomponents/checkoutButton/entry.d.ts +0 -0
  64. package/dist-js/components/ticketSelection/subcomponents/checkoutButton/lib/lib.svelte.d.ts +6 -0
  65. package/dist-js/components/ticketSelection/subcomponents/tickets/components/Tickets.spec.d.ts +1 -0
  66. package/dist-js/components/ticketSelection/subcomponents/tickets/components/Tickets.svelte.d.ts +1 -0
  67. package/dist-js/components/ticketSelection/subcomponents/tickets/components/fixtures/ticketFixtures.d.ts +191 -0
  68. package/dist-js/components/ticketSelection/subcomponents/tickets/entry.d.ts +0 -0
  69. package/dist-js/components/ticketSelection/subcomponents/tickets/lib/lib.svelte.d.ts +9 -0
  70. package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.spec.d.ts +1 -0
  71. package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.svelte.d.ts +1 -0
  72. package/dist-js/components/ticketSelection/subcomponents/timeslots/entry.d.ts +1 -0
  73. package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.d.ts +50 -0
  74. package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.specs.d.ts +121 -0
  75. package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.spec.d.ts +1 -0
  76. package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.svelte.d.ts +6 -0
  77. package/dist-js/config/config.d.ts +1 -0
  78. package/dist-js/e2e/APMs.e2e.spec.d.ts +1 -0
  79. package/dist-js/e2e/Card.e2e.spec.d.ts +1 -0
  80. package/dist-js/e2e/testApm.d.ts +7 -0
  81. package/dist-js/go.svelte.d.ts +1 -0
  82. package/dist-js/gomus-webcomponents.css +111 -0
  83. package/dist-js/gomus-webcomponents.iife.js +178 -294
  84. package/dist-js/gomus-webcomponents.js +17039 -0
  85. package/dist-js/lib/annual-ticket-personalization/index.d.ts +1 -0
  86. package/dist-js/lib/annual-ticket-personalization/stores.d.ts +3 -0
  87. package/dist-js/lib/gomusTickets.spec.d.ts +1 -0
  88. package/dist-js/lib/gomusTickets.svelte.d.ts +47 -0
  89. package/dist-js/lib/helpers/DataHolder.d.ts +3 -0
  90. package/dist-js/lib/helpers/Events.d.ts +6 -0
  91. package/dist-js/lib/helpers/ShadowStyles.svelte.d.ts +1 -0
  92. package/dist-js/lib/helpers/Wrapper.svelte.d.ts +1 -0
  93. package/dist-js/lib/helpers/context.spec.d.ts +1 -0
  94. package/dist-js/lib/helpers/context.svelte.d.ts +2 -0
  95. package/dist-js/lib/helpers/dataAttr.d.ts +9 -0
  96. package/dist-js/lib/helpers/dataAttr.spec.d.ts +1 -0
  97. package/dist-js/lib/helpers/fixtures/context/lib.d.ts +5 -0
  98. package/dist-js/lib/helpers/reactivity.svelte.test.d.ts +1 -0
  99. package/dist-js/lib/helpers/shopCart.d.ts +34 -0
  100. package/dist-js/lib/helpers/translations.d.ts +752 -0
  101. package/dist-js/lib/helpers/urls.d.ts +62 -0
  102. package/dist-js/lib/helpers/utils.d.ts +24 -0
  103. package/dist-js/lib/stores/__mocks__/shop.svelte.d.ts +2 -0
  104. package/dist-js/lib/stores/shop.svelte.d.ts +1170 -0
  105. package/dist-js/lib/stores/shop.svelte.test.d.ts +3 -0
  106. package/dist-js/lib/stores/user.svelte.d.ts +16 -0
  107. package/dist-js/lib/stores/user.svelte.test.d.ts +1 -0
  108. package/dist-js/lib/storybook/WrapperComponent.d.ts +1 -0
  109. package/dist-js/lib/storybook/sbGlobals.svelte.d.ts +9 -0
  110. package/dist-js/lib/types/types.d.ts +1 -0
  111. package/dist-js/lib/utils.d.ts +1 -0
  112. package/dist-js/lib/vitest/mockedCookies.d.ts +2 -0
  113. package/dist-js/lib/vitest/msw/basicHandlers.d.ts +3 -0
  114. package/dist-js/lib/vitest/msw/handlers.d.ts +1758 -0
  115. package/dist-js/lib/vitest/msw/vitestMSWSetup.d.ts +2 -0
  116. package/dist-js/lib/vitest/snapshotSerializer.d.ts +1 -0
  117. package/dist-js/main.d.ts +5 -0
  118. package/dist-js/sveltekit/app/environment.d.ts +1 -0
  119. package/dist-js/sveltekit/app/forms.d.ts +23 -0
  120. package/dist-js/sveltekit/app/navigation.d.ts +4 -0
  121. package/dist-js/sveltekit/app/stores.d.ts +2 -0
  122. package/dist-js/vitest-setup.d.ts +0 -0
  123. package/package.json +3 -2
@@ -0,0 +1,1170 @@
1
+ import { CalendarDates } from '../../components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.ts';
2
+ import { ShopUrls } from '../helpers/urls';
3
+ import { User } from './user.svelte.ts';
4
+ import { OpenApiClient } from '@gomus/api';
5
+ import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
6
+ import { Exhibition, Merchandise, Museum, Event, Tour, ShopType } from '@gomus/types';
7
+ export type ShopKind = 'angular' | 'jmb';
8
+ export declare class Shop {
9
+ #private;
10
+ type: ShopKind;
11
+ constructor();
12
+ load(apiUrl: string, shopDomain: string, locale: string, type?: ShopKind): Promise<void>;
13
+ get currentUser(): User | undefined;
14
+ get slug(): string | undefined;
15
+ get client(): OpenApiClient | undefined;
16
+ get name(): string;
17
+ get config(): {
18
+ url: string;
19
+ success_link: string;
20
+ pending_link: string;
21
+ fail_link: string;
22
+ back_link: string;
23
+ confirmation_link: string;
24
+ password_reset_link: string;
25
+ personalization_link: string;
26
+ registration: boolean;
27
+ guest: {
28
+ enabled: boolean;
29
+ limit: number | null;
30
+ };
31
+ min_total: number | null;
32
+ max_total: number | null;
33
+ defaults: {
34
+ price_target_audience_id: number | null;
35
+ };
36
+ currency: string;
37
+ time_zone: string;
38
+ locale: string;
39
+ custom_css: string | null;
40
+ custom_js: string | null;
41
+ donations?: {
42
+ enabled: boolean;
43
+ campaigns?: {
44
+ id: number;
45
+ name: string;
46
+ options: number[];
47
+ guest_limit: number;
48
+ free_donations: boolean;
49
+ translations: {
50
+ [key: string]: string;
51
+ };
52
+ picture: {
53
+ original?: string | null;
54
+ thumbnail?: string | null;
55
+ };
56
+ }[];
57
+ };
58
+ dynamic_pricing: boolean;
59
+ tickets: {
60
+ zip_file: boolean;
61
+ };
62
+ };
63
+ get payment_modes(): {
64
+ [key: string]: {
65
+ id: number;
66
+ name: string;
67
+ icons: string[];
68
+ };
69
+ };
70
+ get content(): {
71
+ [key: string]: string;
72
+ };
73
+ get settings(): import('@gomus/types').Settings;
74
+ get donations(): {
75
+ enabled: boolean;
76
+ campaigns?: {
77
+ id: number;
78
+ name: string;
79
+ options: number[];
80
+ guest_limit: number;
81
+ free_donations: boolean;
82
+ translations: {
83
+ [key: string]: string;
84
+ };
85
+ picture: {
86
+ original?: string | null;
87
+ thumbnail?: string | null;
88
+ };
89
+ }[];
90
+ } | undefined;
91
+ get translations(): {
92
+ [key: string]: string;
93
+ };
94
+ get currency(): string;
95
+ t(key: string, values?: {
96
+ [key: string]: string | number;
97
+ }): string;
98
+ translate(key: string, values?: {
99
+ [key: string]: string | number;
100
+ }): string;
101
+ get apiUrl(): string | undefined;
102
+ get shopDomain(): string | undefined;
103
+ get baseUrl(): string;
104
+ get locale(): string | undefined;
105
+ get shop(): ShopType;
106
+ get _data(): {
107
+ apiUrl?: string;
108
+ client?: OpenApiClient;
109
+ currentUser?: User;
110
+ exhibitions?: Exhibition[];
111
+ events?: Event[];
112
+ locale?: string;
113
+ merchandises?: Merchandise[];
114
+ museums?: Museum[];
115
+ shop?: ShopType;
116
+ shopDomain?: string;
117
+ tours?: Tour[];
118
+ urls?: ShopUrls;
119
+ };
120
+ ticketsCalendar(params: TicketsCalendarParams): CalendarDates;
121
+ ticketsAndQuotas(params: TicketsAndQuotasParams): {
122
+ tickets: {
123
+ [key: string]: import('@gomus/types').components["schemas"]["shop_v4_ticket_capacity"];
124
+ };
125
+ quotas: {
126
+ [key: string]: import('@gomus/types').components["schemas"]["quota"];
127
+ };
128
+ meta: import('@gomus/types').components["schemas"]["meta"];
129
+ };
130
+ tickets(params: TicketsParams): TicketsResponse;
131
+ /**
132
+ * Returns a reactive value that will contain the fetched data, no need to await.
133
+ *
134
+ * @param {`/api${string}`} endpoint - The API endpoint to fetch data from. Must start with `/api`.
135
+ * @param {string} dataKey - The key where the fetched data will be stored in `shop.#data`.
136
+ * @param {string} responseKey - The key in the API response that contains the desired data.
137
+ * @param [options]
138
+ * - query: A record of query parameters to include in the API request.
139
+ * - cache: The cache duration (in seconds) before data is considered expired. Defaults to 1000 seconds if not provided.
140
+ * @return {T} The data fetched from the API or the cached data if it is still valid.
141
+ */
142
+ fetchAndCache<T>(endpoint: `/api${string}`, dataKey: string, responseKey: string, options?: {
143
+ query?: Record<string, unknown>;
144
+ cache?: number | undefined;
145
+ }): T;
146
+ get museums(): {
147
+ id: number;
148
+ title: string;
149
+ sub_title: string | null;
150
+ created_at: string;
151
+ updated_at: string;
152
+ picture: import('@gomus/types').components["schemas"]["picture"];
153
+ }[];
154
+ get exhibitions(): {
155
+ id: number;
156
+ museum_id: number;
157
+ foreign_id: string | null;
158
+ title: string;
159
+ sub_title: string | null;
160
+ created_at: string;
161
+ updated_at: string;
162
+ featured: boolean;
163
+ description: string | null;
164
+ picture: import('@gomus/types').components["schemas"]["picture"];
165
+ time_frames: {
166
+ start_at?: string;
167
+ end_at?: string;
168
+ }[];
169
+ location: import('@gomus/types').components["schemas"]["location"];
170
+ }[];
171
+ getEvent(id: number): {
172
+ id: number;
173
+ description: string | null;
174
+ museum_id: number;
175
+ exhibition_id: number | null;
176
+ foreign_id: string | null;
177
+ title: string;
178
+ sub_title: string | null;
179
+ created_at: string;
180
+ updated_at: string;
181
+ featured: boolean;
182
+ bookable: boolean;
183
+ registerable: boolean;
184
+ picture: import('@gomus/types').components["schemas"]["picture"];
185
+ duration: number;
186
+ location: import('@gomus/types').components["schemas"]["location"];
187
+ age_groups: import('@gomus/types').components["schemas"]["name_id_pair"];
188
+ audiences: import('@gomus/types').components["schemas"]["name_id_pair"];
189
+ catch_words: import('@gomus/types').components["schemas"]["name_id_pair"];
190
+ disablements: import('@gomus/types').components["schemas"]["name_id_pair"];
191
+ grades: import('@gomus/types').components["schemas"]["name_id_pair"];
192
+ proposal_categories: import('@gomus/types').components["schemas"]["name_id_pair"];
193
+ languages: import('@gomus/types').components["schemas"]["language"][];
194
+ category: import('@gomus/types').components["schemas"]["category"];
195
+ upcoming_bookings_start_times: string[];
196
+ tickets: number[];
197
+ quotas: number[];
198
+ ticket_sales_in_shop: boolean;
199
+ dates: {
200
+ first: string;
201
+ last: string;
202
+ count: number;
203
+ };
204
+ sellabilities: import('@gomus/types').components["schemas"]["time_frame"][];
205
+ documents: import('@gomus/types').components["schemas"]["document"][];
206
+ content: Record<string, never>;
207
+ };
208
+ get events(): {
209
+ id: number;
210
+ description: string | null;
211
+ museum_id: number;
212
+ exhibition_id: number | null;
213
+ foreign_id: string | null;
214
+ title: string;
215
+ sub_title: string | null;
216
+ created_at: string;
217
+ updated_at: string;
218
+ featured: boolean;
219
+ bookable: boolean;
220
+ registerable: boolean;
221
+ picture: import('@gomus/types').components["schemas"]["picture"];
222
+ duration: number;
223
+ location: import('@gomus/types').components["schemas"]["location"];
224
+ age_groups: import('@gomus/types').components["schemas"]["name_id_pair"];
225
+ audiences: import('@gomus/types').components["schemas"]["name_id_pair"];
226
+ catch_words: import('@gomus/types').components["schemas"]["name_id_pair"];
227
+ disablements: import('@gomus/types').components["schemas"]["name_id_pair"];
228
+ grades: import('@gomus/types').components["schemas"]["name_id_pair"];
229
+ proposal_categories: import('@gomus/types').components["schemas"]["name_id_pair"];
230
+ languages: import('@gomus/types').components["schemas"]["language"][];
231
+ category: import('@gomus/types').components["schemas"]["category"];
232
+ upcoming_bookings_start_times: string[];
233
+ }[];
234
+ get upcomingEvents(): {
235
+ id: number;
236
+ description: string | null;
237
+ museum_id: number;
238
+ exhibition_id: number | null;
239
+ foreign_id: string | null;
240
+ title: string;
241
+ sub_title: string | null;
242
+ created_at: string;
243
+ updated_at: string;
244
+ featured: boolean;
245
+ bookable: boolean;
246
+ registerable: boolean;
247
+ picture: import('@gomus/types').components["schemas"]["picture"];
248
+ duration: number;
249
+ location: import('@gomus/types').components["schemas"]["location"];
250
+ age_groups: import('@gomus/types').components["schemas"]["name_id_pair"];
251
+ audiences: import('@gomus/types').components["schemas"]["name_id_pair"];
252
+ catch_words: import('@gomus/types').components["schemas"]["name_id_pair"];
253
+ disablements: import('@gomus/types').components["schemas"]["name_id_pair"];
254
+ grades: import('@gomus/types').components["schemas"]["name_id_pair"];
255
+ proposal_categories: import('@gomus/types').components["schemas"]["name_id_pair"];
256
+ languages: import('@gomus/types').components["schemas"]["language"][];
257
+ category: import('@gomus/types').components["schemas"]["category"];
258
+ upcoming_bookings_start_times: string[];
259
+ }[];
260
+ get tours(): {
261
+ id: number;
262
+ exhibition_id?: number | null;
263
+ museum_id: number;
264
+ foreign_id?: number | null;
265
+ min_persons?: number;
266
+ max_persons?: number;
267
+ title: string;
268
+ sub_title?: string | null;
269
+ bookable: boolean;
270
+ registerable: boolean;
271
+ featured: boolean;
272
+ category: {
273
+ id: number;
274
+ name: string;
275
+ filtername: string | null;
276
+ };
277
+ equipment: boolean;
278
+ picture: import('@gomus/types').components["schemas"]["picture"];
279
+ created_at?: string;
280
+ updated_at?: string;
281
+ duration?: number;
282
+ location: import('@gomus/types').components["schemas"]["location"];
283
+ age_groups: Record<string, never>[];
284
+ audiences: Record<string, never>[];
285
+ catch_words: Record<string, never>[];
286
+ disablements: Record<string, never>[];
287
+ grades: Record<string, never>[];
288
+ proposal_categories: import('@gomus/types').components["schemas"]["name_id_pair"];
289
+ languages: import('@gomus/types').components["schemas"]["language"][];
290
+ }[];
291
+ get merchandises(): {
292
+ merchandise?: {
293
+ id?: number;
294
+ title?: string;
295
+ sub_title?: string | null;
296
+ description?: string | null;
297
+ price_cents?: number;
298
+ vat_pct?: number;
299
+ tax_included?: boolean;
300
+ sellable?: boolean;
301
+ content?: import('@gomus/types').components["schemas"]["object_content"];
302
+ picture?: import('@gomus/types').components["schemas"]["picture"];
303
+ created_at?: string;
304
+ updated_at?: string;
305
+ shipped_with_merchandise_id?: number | null;
306
+ is_shipping_article?: boolean;
307
+ };
308
+ }[];
309
+ get urls(): {
310
+ account: () => string;
311
+ annualTickets: () => string;
312
+ checkoutFailure: (errorMessage: string) => string;
313
+ checkoutSuccess: (token: string) => string;
314
+ coupons: () => string;
315
+ combiTickets: () => string;
316
+ combiTicketGroup: (slug: string) => string;
317
+ dayTickets: () => string;
318
+ eventGroup: (id: number) => string;
319
+ event: (id: number) => string;
320
+ events: () => string;
321
+ exhibition: (id: number) => string;
322
+ exhibitions: () => string;
323
+ home: () => string;
324
+ login: () => string;
325
+ merchandise: (id: number) => string;
326
+ merchandises: () => string;
327
+ museum: (id: number) => string;
328
+ museums: () => string;
329
+ publicTours: () => string;
330
+ register: () => string;
331
+ tickets: () => string;
332
+ ticketGroup: (slug: string) => string;
333
+ tour: (id: number) => string;
334
+ tours: () => string;
335
+ toursGroup: (id: number) => string;
336
+ cart: () => string;
337
+ } | undefined;
338
+ apiPost(path: string, { body }: {
339
+ body: Record<string, any>;
340
+ }): Promise<import('openapi-fetch').FetchResponse<{
341
+ parameters: {
342
+ query?: {
343
+ locale?: string;
344
+ };
345
+ header: {
346
+ "Access-Token": string;
347
+ Client: string;
348
+ Uid: string;
349
+ "X-Shop-Url": string;
350
+ };
351
+ path?: never;
352
+ cookie?: never;
353
+ };
354
+ requestBody: {
355
+ content: {
356
+ "application/json": {
357
+ items: (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
358
+ coupons?: string[];
359
+ donations?: number[];
360
+ payment_mode_id: string;
361
+ total: number;
362
+ payment_source?: string | null;
363
+ };
364
+ };
365
+ };
366
+ responses: {
367
+ 200: {
368
+ headers: {
369
+ [name: string]: unknown;
370
+ };
371
+ content: {
372
+ "application/json": {
373
+ order: import('@gomus/types').components["schemas"]["order"];
374
+ meta: {
375
+ payment_url: string;
376
+ payment_id?: unknown;
377
+ shop_behavior: string;
378
+ status: string;
379
+ payment_result?: {
380
+ id?: string;
381
+ status?: string;
382
+ links?: {
383
+ href: string;
384
+ rel: string;
385
+ method: string;
386
+ }[];
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ 422: {
393
+ headers: {
394
+ [name: string]: unknown;
395
+ };
396
+ content: {
397
+ "application/json": {
398
+ error: string;
399
+ };
400
+ };
401
+ };
402
+ };
403
+ } | {
404
+ parameters: {
405
+ query: {
406
+ token: string;
407
+ };
408
+ header?: {
409
+ "X-Shop-Url"?: string;
410
+ };
411
+ path?: never;
412
+ cookie?: never;
413
+ };
414
+ requestBody: {
415
+ content: {
416
+ "application/json": {
417
+ personalization?: {
418
+ ticket_sale_id: number;
419
+ start_at?: string;
420
+ personalizations: {
421
+ id?: number;
422
+ customer?: {
423
+ customer_salutation_id: number;
424
+ name: string;
425
+ surname: string;
426
+ email: string;
427
+ addr_street: string;
428
+ addr_zip: string;
429
+ addr_city: string;
430
+ addr_country_id: number;
431
+ language_id: number;
432
+ };
433
+ }[];
434
+ };
435
+ };
436
+ };
437
+ };
438
+ responses: {
439
+ 200: {
440
+ headers: {
441
+ [name: string]: unknown;
442
+ };
443
+ content: {
444
+ "application/json": {
445
+ ticket_sale?: import('@gomus/types').components["schemas"]["ticket_sale_personalization"];
446
+ };
447
+ };
448
+ };
449
+ 422: {
450
+ headers: {
451
+ [name: string]: unknown;
452
+ };
453
+ content: {
454
+ "application/json": {
455
+ error?: string;
456
+ };
457
+ };
458
+ };
459
+ };
460
+ } | {
461
+ parameters: {
462
+ query?: {
463
+ locale?: string;
464
+ };
465
+ header: {
466
+ "X-Shop-Url": string;
467
+ };
468
+ path?: never;
469
+ cookie?: never;
470
+ };
471
+ requestBody: {
472
+ content: {
473
+ "application/json": {
474
+ level?: number;
475
+ language_id?: number;
476
+ customer_salutation_id?: number;
477
+ name?: string;
478
+ surname?: string;
479
+ email?: string;
480
+ email_confirmation?: string;
481
+ addr_addressat?: string;
482
+ addr_street?: string;
483
+ addr_zip?: string;
484
+ addr_city?: string;
485
+ addr_country_id?: number;
486
+ password?: string;
487
+ terms?: boolean;
488
+ password_confirmation?: string;
489
+ newsletter_groups?: string[];
490
+ };
491
+ };
492
+ };
493
+ responses: {
494
+ 200: {
495
+ headers: {
496
+ [name: string]: unknown;
497
+ };
498
+ content: {
499
+ "application/json": {
500
+ status: string;
501
+ data: {
502
+ id: number;
503
+ customer_salutation_id?: number | null;
504
+ customer_title_id?: string | null;
505
+ name: string;
506
+ surname: string;
507
+ institution?: string | null;
508
+ category_id?: string | null;
509
+ email: string;
510
+ tel?: string | null;
511
+ created_at: string;
512
+ updated_at: string;
513
+ is_institution?: boolean;
514
+ price_target_audience_id?: number | null;
515
+ payment_mode_id?: number | null;
516
+ debitor_number?: number | null;
517
+ notes?: string | null;
518
+ mobile?: string;
519
+ language_id?: number | null;
520
+ fax?: string | null;
521
+ provider?: string;
522
+ uid?: string;
523
+ has_collective_invoice_payment?: boolean;
524
+ has_voucher_payment?: boolean;
525
+ level?: number;
526
+ is_archived?: boolean;
527
+ creator_id?: string | null;
528
+ date_of_birth?: string | null;
529
+ vat_number?: string | null;
530
+ shop_id?: number;
531
+ deleted_at?: string | null;
532
+ personalization_token?: string;
533
+ foreign_id?: string | null;
534
+ coupon_codes?: string[];
535
+ allow_password_change?: boolean;
536
+ };
537
+ };
538
+ };
539
+ };
540
+ 422: {
541
+ headers: {
542
+ [name: string]: unknown;
543
+ };
544
+ content: {
545
+ "application/json": {
546
+ status: string;
547
+ data: Record<string, never>;
548
+ errors: {
549
+ full_messages?: string[];
550
+ } & {
551
+ [key: string]: string[];
552
+ };
553
+ };
554
+ };
555
+ };
556
+ };
557
+ } | {
558
+ parameters: {
559
+ query?: {
560
+ locale?: string;
561
+ };
562
+ header: {
563
+ "X-Shop-Url": string;
564
+ };
565
+ path?: never;
566
+ cookie?: never;
567
+ };
568
+ requestBody: {
569
+ content: {
570
+ "application/json": {
571
+ email: string;
572
+ password: string;
573
+ };
574
+ };
575
+ };
576
+ responses: {
577
+ 200: {
578
+ headers: {
579
+ [name: string]: unknown;
580
+ };
581
+ content: {
582
+ "application/json": {
583
+ data: import('@gomus/types').components["schemas"]["customer"];
584
+ };
585
+ };
586
+ };
587
+ 401: {
588
+ headers: {
589
+ [name: string]: unknown;
590
+ };
591
+ content: {
592
+ "application/json": {
593
+ success: boolean;
594
+ errors: string[];
595
+ };
596
+ };
597
+ };
598
+ };
599
+ } | {
600
+ parameters: {
601
+ query?: never;
602
+ header: {
603
+ "X-Shop-Url": string;
604
+ };
605
+ path?: never;
606
+ cookie?: never;
607
+ };
608
+ requestBody: {
609
+ content: {
610
+ "application/json": {
611
+ email: string;
612
+ };
613
+ };
614
+ };
615
+ responses: {
616
+ 200: {
617
+ headers: {
618
+ [name: string]: unknown;
619
+ };
620
+ content: {
621
+ "application/json": {
622
+ success: boolean;
623
+ message: string;
624
+ };
625
+ };
626
+ };
627
+ 404: {
628
+ headers: {
629
+ [name: string]: unknown;
630
+ };
631
+ content: {
632
+ "application/json": {
633
+ success: boolean;
634
+ errors: string[];
635
+ };
636
+ };
637
+ };
638
+ };
639
+ } | {
640
+ parameters: {
641
+ query?: {
642
+ locale?: string;
643
+ };
644
+ header?: never;
645
+ path?: never;
646
+ cookie?: never;
647
+ };
648
+ requestBody: {
649
+ content: {
650
+ "application/json": (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["ticket_flex_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
651
+ };
652
+ };
653
+ responses: {
654
+ 200: {
655
+ headers: {
656
+ [name: string]: unknown;
657
+ };
658
+ content: {
659
+ "application/json": {
660
+ items: (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["ticket_flex_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
661
+ };
662
+ };
663
+ };
664
+ };
665
+ } | {
666
+ parameters: {
667
+ query?: never;
668
+ header?: never;
669
+ path: {
670
+ orderToken: string;
671
+ paypalOrderId: string;
672
+ };
673
+ cookie?: never;
674
+ };
675
+ requestBody?: never;
676
+ responses: {
677
+ 200: {
678
+ headers: {
679
+ [name: string]: unknown;
680
+ };
681
+ content: {
682
+ "application/json": {
683
+ status: string;
684
+ };
685
+ };
686
+ };
687
+ };
688
+ } | {
689
+ parameters: {
690
+ query?: never;
691
+ header: {
692
+ Authorization: string;
693
+ };
694
+ path?: never;
695
+ cookie?: never;
696
+ };
697
+ requestBody?: {
698
+ content: {
699
+ "application/json": {
700
+ contact?: {
701
+ customer_salutation?: string;
702
+ institution?: string;
703
+ name: string;
704
+ surname: string;
705
+ data_provider?: string;
706
+ notes?: string;
707
+ tel_primary?: string;
708
+ tel_secondary?: string;
709
+ email_primary: string;
710
+ email_secondary?: string;
711
+ language?: string;
712
+ foreign_id?: string;
713
+ contact_addresses_attributes?: {
714
+ foreign_id?: string;
715
+ kind: string;
716
+ address_line_1?: string;
717
+ address_line_2?: string;
718
+ city?: string;
719
+ zip: string;
720
+ country?: string;
721
+ state?: string;
722
+ }[];
723
+ };
724
+ };
725
+ };
726
+ };
727
+ responses: {
728
+ 200: {
729
+ headers: {
730
+ [name: string]: unknown;
731
+ };
732
+ content: {
733
+ "application/json": unknown;
734
+ };
735
+ };
736
+ 401: {
737
+ headers: {
738
+ [name: string]: unknown;
739
+ };
740
+ content: {
741
+ "application/json": unknown;
742
+ };
743
+ };
744
+ 422: {
745
+ headers: {
746
+ [name: string]: unknown;
747
+ };
748
+ content: {
749
+ "application/json": unknown;
750
+ };
751
+ };
752
+ };
753
+ }, import('openapi-fetch').FetchOptions<{
754
+ parameters: {
755
+ query?: {
756
+ locale?: string;
757
+ };
758
+ header: {
759
+ "Access-Token": string;
760
+ Client: string;
761
+ Uid: string;
762
+ "X-Shop-Url": string;
763
+ };
764
+ path?: never;
765
+ cookie?: never;
766
+ };
767
+ requestBody: {
768
+ content: {
769
+ "application/json": {
770
+ items: (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
771
+ coupons?: string[];
772
+ donations?: number[];
773
+ payment_mode_id: string;
774
+ total: number;
775
+ payment_source?: string | null;
776
+ };
777
+ };
778
+ };
779
+ responses: {
780
+ 200: {
781
+ headers: {
782
+ [name: string]: unknown;
783
+ };
784
+ content: {
785
+ "application/json": {
786
+ order: import('@gomus/types').components["schemas"]["order"];
787
+ meta: {
788
+ payment_url: string;
789
+ payment_id?: unknown;
790
+ shop_behavior: string;
791
+ status: string;
792
+ payment_result?: {
793
+ id?: string;
794
+ status?: string;
795
+ links?: {
796
+ href: string;
797
+ rel: string;
798
+ method: string;
799
+ }[];
800
+ };
801
+ };
802
+ };
803
+ };
804
+ };
805
+ 422: {
806
+ headers: {
807
+ [name: string]: unknown;
808
+ };
809
+ content: {
810
+ "application/json": {
811
+ error: string;
812
+ };
813
+ };
814
+ };
815
+ };
816
+ } | {
817
+ parameters: {
818
+ query: {
819
+ token: string;
820
+ };
821
+ header?: {
822
+ "X-Shop-Url"?: string;
823
+ };
824
+ path?: never;
825
+ cookie?: never;
826
+ };
827
+ requestBody: {
828
+ content: {
829
+ "application/json": {
830
+ personalization?: {
831
+ ticket_sale_id: number;
832
+ start_at?: string;
833
+ personalizations: {
834
+ id?: number;
835
+ customer?: {
836
+ customer_salutation_id: number;
837
+ name: string;
838
+ surname: string;
839
+ email: string;
840
+ addr_street: string;
841
+ addr_zip: string;
842
+ addr_city: string;
843
+ addr_country_id: number;
844
+ language_id: number;
845
+ };
846
+ }[];
847
+ };
848
+ };
849
+ };
850
+ };
851
+ responses: {
852
+ 200: {
853
+ headers: {
854
+ [name: string]: unknown;
855
+ };
856
+ content: {
857
+ "application/json": {
858
+ ticket_sale?: import('@gomus/types').components["schemas"]["ticket_sale_personalization"];
859
+ };
860
+ };
861
+ };
862
+ 422: {
863
+ headers: {
864
+ [name: string]: unknown;
865
+ };
866
+ content: {
867
+ "application/json": {
868
+ error?: string;
869
+ };
870
+ };
871
+ };
872
+ };
873
+ } | {
874
+ parameters: {
875
+ query?: {
876
+ locale?: string;
877
+ };
878
+ header: {
879
+ "X-Shop-Url": string;
880
+ };
881
+ path?: never;
882
+ cookie?: never;
883
+ };
884
+ requestBody: {
885
+ content: {
886
+ "application/json": {
887
+ level?: number;
888
+ language_id?: number;
889
+ customer_salutation_id?: number;
890
+ name?: string;
891
+ surname?: string;
892
+ email?: string;
893
+ email_confirmation?: string;
894
+ addr_addressat?: string;
895
+ addr_street?: string;
896
+ addr_zip?: string;
897
+ addr_city?: string;
898
+ addr_country_id?: number;
899
+ password?: string;
900
+ terms?: boolean;
901
+ password_confirmation?: string;
902
+ newsletter_groups?: string[];
903
+ };
904
+ };
905
+ };
906
+ responses: {
907
+ 200: {
908
+ headers: {
909
+ [name: string]: unknown;
910
+ };
911
+ content: {
912
+ "application/json": {
913
+ status: string;
914
+ data: {
915
+ id: number;
916
+ customer_salutation_id?: number | null;
917
+ customer_title_id?: string | null;
918
+ name: string;
919
+ surname: string;
920
+ institution?: string | null;
921
+ category_id?: string | null;
922
+ email: string;
923
+ tel?: string | null;
924
+ created_at: string;
925
+ updated_at: string;
926
+ is_institution?: boolean;
927
+ price_target_audience_id?: number | null;
928
+ payment_mode_id?: number | null;
929
+ debitor_number?: number | null;
930
+ notes?: string | null;
931
+ mobile?: string;
932
+ language_id?: number | null;
933
+ fax?: string | null;
934
+ provider?: string;
935
+ uid?: string;
936
+ has_collective_invoice_payment?: boolean;
937
+ has_voucher_payment?: boolean;
938
+ level?: number;
939
+ is_archived?: boolean;
940
+ creator_id?: string | null;
941
+ date_of_birth?: string | null;
942
+ vat_number?: string | null;
943
+ shop_id?: number;
944
+ deleted_at?: string | null;
945
+ personalization_token?: string;
946
+ foreign_id?: string | null;
947
+ coupon_codes?: string[];
948
+ allow_password_change?: boolean;
949
+ };
950
+ };
951
+ };
952
+ };
953
+ 422: {
954
+ headers: {
955
+ [name: string]: unknown;
956
+ };
957
+ content: {
958
+ "application/json": {
959
+ status: string;
960
+ data: Record<string, never>;
961
+ errors: {
962
+ full_messages?: string[];
963
+ } & {
964
+ [key: string]: string[];
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ } | {
971
+ parameters: {
972
+ query?: {
973
+ locale?: string;
974
+ };
975
+ header: {
976
+ "X-Shop-Url": string;
977
+ };
978
+ path?: never;
979
+ cookie?: never;
980
+ };
981
+ requestBody: {
982
+ content: {
983
+ "application/json": {
984
+ email: string;
985
+ password: string;
986
+ };
987
+ };
988
+ };
989
+ responses: {
990
+ 200: {
991
+ headers: {
992
+ [name: string]: unknown;
993
+ };
994
+ content: {
995
+ "application/json": {
996
+ data: import('@gomus/types').components["schemas"]["customer"];
997
+ };
998
+ };
999
+ };
1000
+ 401: {
1001
+ headers: {
1002
+ [name: string]: unknown;
1003
+ };
1004
+ content: {
1005
+ "application/json": {
1006
+ success: boolean;
1007
+ errors: string[];
1008
+ };
1009
+ };
1010
+ };
1011
+ };
1012
+ } | {
1013
+ parameters: {
1014
+ query?: never;
1015
+ header: {
1016
+ "X-Shop-Url": string;
1017
+ };
1018
+ path?: never;
1019
+ cookie?: never;
1020
+ };
1021
+ requestBody: {
1022
+ content: {
1023
+ "application/json": {
1024
+ email: string;
1025
+ };
1026
+ };
1027
+ };
1028
+ responses: {
1029
+ 200: {
1030
+ headers: {
1031
+ [name: string]: unknown;
1032
+ };
1033
+ content: {
1034
+ "application/json": {
1035
+ success: boolean;
1036
+ message: string;
1037
+ };
1038
+ };
1039
+ };
1040
+ 404: {
1041
+ headers: {
1042
+ [name: string]: unknown;
1043
+ };
1044
+ content: {
1045
+ "application/json": {
1046
+ success: boolean;
1047
+ errors: string[];
1048
+ };
1049
+ };
1050
+ };
1051
+ };
1052
+ } | {
1053
+ parameters: {
1054
+ query?: {
1055
+ locale?: string;
1056
+ };
1057
+ header?: never;
1058
+ path?: never;
1059
+ cookie?: never;
1060
+ };
1061
+ requestBody: {
1062
+ content: {
1063
+ "application/json": (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["ticket_flex_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
1064
+ };
1065
+ };
1066
+ responses: {
1067
+ 200: {
1068
+ headers: {
1069
+ [name: string]: unknown;
1070
+ };
1071
+ content: {
1072
+ "application/json": {
1073
+ items: (import('@gomus/types').components["schemas"]["ticket_time_slot_cart_item"] | import('@gomus/types').components["schemas"]["ticket_normal_cart_item"] | import('@gomus/types').components["schemas"]["ticket_flex_cart_item"] | import('@gomus/types').components["schemas"]["event_cart_item"] | import('@gomus/types').components["schemas"]["tour_cart_item"] | import('@gomus/types').components["schemas"]["coupon_cart_item"] | import('@gomus/types').components["schemas"]["merchandise_cart_item"])[];
1074
+ };
1075
+ };
1076
+ };
1077
+ };
1078
+ } | {
1079
+ parameters: {
1080
+ query?: never;
1081
+ header?: never;
1082
+ path: {
1083
+ orderToken: string;
1084
+ paypalOrderId: string;
1085
+ };
1086
+ cookie?: never;
1087
+ };
1088
+ requestBody?: never;
1089
+ responses: {
1090
+ 200: {
1091
+ headers: {
1092
+ [name: string]: unknown;
1093
+ };
1094
+ content: {
1095
+ "application/json": {
1096
+ status: string;
1097
+ };
1098
+ };
1099
+ };
1100
+ };
1101
+ } | {
1102
+ parameters: {
1103
+ query?: never;
1104
+ header: {
1105
+ Authorization: string;
1106
+ };
1107
+ path?: never;
1108
+ cookie?: never;
1109
+ };
1110
+ requestBody?: {
1111
+ content: {
1112
+ "application/json": {
1113
+ contact?: {
1114
+ customer_salutation?: string;
1115
+ institution?: string;
1116
+ name: string;
1117
+ surname: string;
1118
+ data_provider?: string;
1119
+ notes?: string;
1120
+ tel_primary?: string;
1121
+ tel_secondary?: string;
1122
+ email_primary: string;
1123
+ email_secondary?: string;
1124
+ language?: string;
1125
+ foreign_id?: string;
1126
+ contact_addresses_attributes?: {
1127
+ foreign_id?: string;
1128
+ kind: string;
1129
+ address_line_1?: string;
1130
+ address_line_2?: string;
1131
+ city?: string;
1132
+ zip: string;
1133
+ country?: string;
1134
+ state?: string;
1135
+ }[];
1136
+ };
1137
+ };
1138
+ };
1139
+ };
1140
+ responses: {
1141
+ 200: {
1142
+ headers: {
1143
+ [name: string]: unknown;
1144
+ };
1145
+ content: {
1146
+ "application/json": unknown;
1147
+ };
1148
+ };
1149
+ 401: {
1150
+ headers: {
1151
+ [name: string]: unknown;
1152
+ };
1153
+ content: {
1154
+ "application/json": unknown;
1155
+ };
1156
+ };
1157
+ 422: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": unknown;
1163
+ };
1164
+ };
1165
+ };
1166
+ }>, `${string}/${string}`>>;
1167
+ waitForAllFetches(...variables: unknown[]): Promise<void>;
1168
+ apiGet(path: `/api${string}`, query?: Record<string, unknown>): Promise<unknown>;
1169
+ }
1170
+ export declare const shop: Shop;