@getmicdrop/venue-calendar 4.3.1 → 4.3.2

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 (62) hide show
  1. package/dist/api/api.cjs +1 -0
  2. package/dist/api/api.mjs +1442 -0
  3. package/dist/api/client.d.ts +157 -0
  4. package/dist/api/cta.d.ts +50 -0
  5. package/dist/api/events.d.ts +202 -0
  6. package/dist/api/gift-cards.d.ts +119 -0
  7. package/dist/api/index.d.ts +46 -0
  8. package/dist/api/orders.d.ts +193 -0
  9. package/dist/api/promo.d.ts +45 -0
  10. package/dist/api/result.d.ts +78 -0
  11. package/dist/api/route-manifest.d.ts +206 -0
  12. package/dist/api/transformers/address.d.ts +18 -0
  13. package/dist/api/transformers/cart.d.ts +34 -0
  14. package/dist/api/transformers/collection.d.ts +12 -0
  15. package/dist/api/transformers/event.d.ts +177 -0
  16. package/dist/api/transformers/faq.d.ts +40 -0
  17. package/dist/api/transformers/giftCard.d.ts +11 -0
  18. package/dist/api/transformers/index.d.ts +27 -0
  19. package/dist/api/transformers/order.d.ts +44 -0
  20. package/dist/api/transformers/performer.d.ts +8 -0
  21. package/dist/api/transformers/series.d.ts +12 -0
  22. package/dist/api/transformers/venue.d.ts +65 -0
  23. package/dist/api/types.d.ts +554 -0
  24. package/dist/api/venues.d.ts +33 -0
  25. package/dist/api/waitlist.d.ts +77 -0
  26. package/dist/seo/HostSeoController.d.ts +68 -0
  27. package/dist/seo/buildCollectionJsonLd.d.ts +8 -0
  28. package/dist/seo/buildEventJsonLd.d.ts +9 -0
  29. package/dist/seo/buildSeriesJsonLd.d.ts +6 -0
  30. package/dist/seo/helpers.d.ts +88 -0
  31. package/dist/seo/index.d.ts +10 -0
  32. package/dist/seo/seo.cjs +1 -0
  33. package/dist/seo/seo.mjs +592 -0
  34. package/dist/seo/types.d.ts +156 -0
  35. package/dist/venue-calendar.es.js +1 -1
  36. package/dist/venue-calendar.iife.js +2 -2
  37. package/dist/venue-calendar.umd.js +1 -1
  38. package/package.json +1 -1
  39. /package/dist/locales/{4.3.1 → 4.3.2}/flow/de.js +0 -0
  40. /package/dist/locales/{4.3.1 → 4.3.2}/flow/es.js +0 -0
  41. /package/dist/locales/{4.3.1 → 4.3.2}/flow/fr.js +0 -0
  42. /package/dist/locales/{4.3.1 → 4.3.2}/flow/id.js +0 -0
  43. /package/dist/locales/{4.3.1 → 4.3.2}/flow/it.js +0 -0
  44. /package/dist/locales/{4.3.1 → 4.3.2}/flow/ja.js +0 -0
  45. /package/dist/locales/{4.3.1 → 4.3.2}/flow/ko.js +0 -0
  46. /package/dist/locales/{4.3.1 → 4.3.2}/flow/nl.js +0 -0
  47. /package/dist/locales/{4.3.1 → 4.3.2}/flow/pl.js +0 -0
  48. /package/dist/locales/{4.3.1 → 4.3.2}/flow/pt-br.js +0 -0
  49. /package/dist/locales/{4.3.1 → 4.3.2}/flow/tr.js +0 -0
  50. /package/dist/locales/{4.3.1 → 4.3.2}/flow/zh.js +0 -0
  51. /package/dist/locales/{4.3.1 → 4.3.2}/main/de.js +0 -0
  52. /package/dist/locales/{4.3.1 → 4.3.2}/main/es.js +0 -0
  53. /package/dist/locales/{4.3.1 → 4.3.2}/main/fr.js +0 -0
  54. /package/dist/locales/{4.3.1 → 4.3.2}/main/id.js +0 -0
  55. /package/dist/locales/{4.3.1 → 4.3.2}/main/it.js +0 -0
  56. /package/dist/locales/{4.3.1 → 4.3.2}/main/ja.js +0 -0
  57. /package/dist/locales/{4.3.1 → 4.3.2}/main/ko.js +0 -0
  58. /package/dist/locales/{4.3.1 → 4.3.2}/main/nl.js +0 -0
  59. /package/dist/locales/{4.3.1 → 4.3.2}/main/pl.js +0 -0
  60. /package/dist/locales/{4.3.1 → 4.3.2}/main/pt-br.js +0 -0
  61. /package/dist/locales/{4.3.1 → 4.3.2}/main/tr.js +0 -0
  62. /package/dist/locales/{4.3.1 → 4.3.2}/main/zh.js +0 -0
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Input/output TypeScript interfaces for all JSON-LD builders.
3
+ *
4
+ * These describe the data shape each builder expects, NOT the raw API response
5
+ * shape (those exist in `api/types.ts`). The mapping from API types to these
6
+ * builder input types happens at the call site.
7
+ */
8
+
9
+ // ---------------------------------------------------------------------------
10
+ // Event builder inputs
11
+ // ---------------------------------------------------------------------------
12
+
13
+ /** What buildEventJsonLd expects for an event. */
14
+ export interface EventJsonLdInput {
15
+ name: string;
16
+ startDateTime: string;
17
+ endDateTime?: string;
18
+ status?: string;
19
+ description?: string;
20
+ eventSummary?: string;
21
+ image?: string;
22
+ coverImage?: string;
23
+ ShowImage?: string;
24
+ availableTickets?: EventTicketInput[];
25
+ performers?: EventPerformerInput[];
26
+ }
27
+
28
+ export interface EventTicketInput {
29
+ visibility?: number;
30
+ salesChannel?: number;
31
+ price?: number | string;
32
+ /**
33
+ * Per-ticket service fee (dollars). The JSON-LD offer must advertise the same
34
+ * all-in total the ticket row renders (ticketAllInPrice, MIC-1772), so the
35
+ * offer builder adds this to `price` rather than publishing the bare wire
36
+ * price. Absent means a legitimate 0 fee, not a missing value.
37
+ */
38
+ fee?: number | string;
39
+ remainingCapacity?: number;
40
+ quantityRemaining?: number;
41
+ quantity?: number;
42
+ soldOut?: boolean;
43
+ salesBegin?: string;
44
+ salesStart?: string;
45
+ saleBegin?: string;
46
+ onSaleStart?: string;
47
+ salesEnd?: string;
48
+ saleEnd?: string;
49
+ onSaleEnd?: string;
50
+ }
51
+
52
+ export interface EventPerformerInput {
53
+ acceptedState?: number;
54
+ shouldBeHidden?: boolean;
55
+ RosterPerformer?: {
56
+ User?: {
57
+ performerProfile?: {
58
+ firstName?: string;
59
+ lastName?: string;
60
+ displayName?: string;
61
+ };
62
+ };
63
+ };
64
+ }
65
+
66
+ export interface VenueInput {
67
+ name: string;
68
+ // Discrete postal-address fields from the public resolve payload
69
+ // (PublicVenueInfo). `address` is the street line. Preferred over
70
+ // googleLocationNameCache when a locality signal is present.
71
+ address?: string;
72
+ city?: string;
73
+ state?: string;
74
+ postalCode?: string;
75
+ country?: string;
76
+ googleLocationNameCache?: string;
77
+ }
78
+
79
+ export interface OrganizerInput {
80
+ name: string;
81
+ url?: string;
82
+ }
83
+
84
+ // ---------------------------------------------------------------------------
85
+ // Series builder inputs (Plan 02)
86
+ // ---------------------------------------------------------------------------
87
+
88
+ /** What buildSeriesJsonLd expects. */
89
+ export interface SeriesJsonLdInput {
90
+ title: string;
91
+ description?: string;
92
+ eventSummary?: string;
93
+ image?: string;
94
+ timeZone: string;
95
+ venue: {
96
+ name: string;
97
+ // Discrete postal-address fields from SeriesVenueDTO (see VenueInput).
98
+ address?: string;
99
+ city?: string;
100
+ state?: string;
101
+ postalCode?: string;
102
+ country?: string;
103
+ googleLocationNameCache?: string;
104
+ };
105
+ performers?: Array<{ displayName: string }>;
106
+ occurrences: Array<{
107
+ id: number;
108
+ title: string;
109
+ slug: string;
110
+ startDateTime: string;
111
+ endDateTime?: string;
112
+ status?: string;
113
+ tickets?: Array<{ name: string; price: number; status: string }>;
114
+ }>;
115
+ }
116
+
117
+ // ---------------------------------------------------------------------------
118
+ // Collection builder inputs (Plan 02)
119
+ // ---------------------------------------------------------------------------
120
+
121
+ // ---------------------------------------------------------------------------
122
+ // HostSeoController options (Phase 6)
123
+ // ---------------------------------------------------------------------------
124
+
125
+ /** Options for HostSeoController constructor */
126
+ export interface HostSeoControllerOptions {
127
+ /** Venue name for JSON-LD location and page title */
128
+ venueName: string;
129
+ /** Venue address string (from googleLocationNameCache or address field) */
130
+ venueAddress?: string;
131
+ /** Venue timezone (IANA), defaults to getDefaultTimezone() */
132
+ venueTimeZone?: string;
133
+ /** Base URL for canonical links, e.g., "https://comedy-club.com/shows" (defaults to current page URL without query params) */
134
+ baseUrl?: string;
135
+ }
136
+
137
+ /** What buildCollectionJsonLd expects. */
138
+ export interface CollectionJsonLdInput {
139
+ collectionTitle: string;
140
+ description?: string;
141
+ summary?: string;
142
+ coverImage?: string;
143
+ dateRange?: { startDate: string; endDate: string } | null;
144
+ events: Array<{
145
+ id: number;
146
+ title: string;
147
+ slug?: string;
148
+ startDateTime?: string;
149
+ endDateTime?: string;
150
+ image?: string;
151
+ status?: string;
152
+ venueName?: string;
153
+ venueAddress?: string;
154
+ venueId?: number;
155
+ }>;
156
+ }
@@ -3166,7 +3166,7 @@ if (typeof window < "u" && typeof HTMLElement < "u") {
3166
3166
  }
3167
3167
  //#endregion
3168
3168
  //#region src/lib/VenueCalendar.js
3169
- var Kr = "4.3.1", qr = n("VenueCalendar"), Jr = null;
3169
+ var Kr = "4.3.2", qr = n("VenueCalendar"), Jr = null;
3170
3170
  function Yr(e = {}) {
3171
3171
  typeof e.onError == "function" && (Jr = e.onError, ce({ onError: (t) => {
3172
3172
  try {