@gomusdev/web-components 0.0.18 → 0.0.20

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