@expofp/data 3.0.0-alpha.10 → 3.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * from './lib/Data.js';
2
- export * from './lib/Manifest.js';
3
- export * from './lib/validate-data-setting.js';
1
+ export * from './lib/data-js-types.js';
2
+ export * from './lib/manifest.js';
3
+ export * from './lib/ref.js';
4
+ export * from './tools/validate-data-setting.js';
4
5
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
- export * from './lib/Data.js';
2
- export * from './lib/Manifest.js';
3
- export * from './lib/validate-data-setting.js';
1
+ export * from './lib/data-js-types.js';
2
+ export * from './lib/manifest.js';
3
+ export * from './lib/ref.js';
4
+ export * from './tools/validate-data-setting.js';
@@ -0,0 +1,215 @@
1
+ export interface DataMarketMaterial {
2
+ fileName: string;
3
+ path: string;
4
+ }
5
+ export interface DataFontUrl {
6
+ weight: string;
7
+ style: string;
8
+ url: string;
9
+ }
10
+ export interface DataScheduleItem {
11
+ id: number;
12
+ name: string;
13
+ externalId?: string;
14
+ description?: string;
15
+ exhibitorId?: number;
16
+ boothId?: number;
17
+ startDate?: string;
18
+ endDate?: string;
19
+ link?: string;
20
+ }
21
+ export interface DataCategory {
22
+ id: number;
23
+ name: string;
24
+ sponsorship?: boolean;
25
+ }
26
+ /** Localization entry for a POI type — present in real data but not in upstream Data.d.ts. */
27
+ export interface DataPoiTypeLocalization {
28
+ language: string;
29
+ name: string;
30
+ }
31
+ export interface DataPoiType {
32
+ id: number;
33
+ name: string;
34
+ parentId?: number;
35
+ /** Present in real data but not in upstream Data.d.ts. */
36
+ iconUrl?: string;
37
+ /** Present in real data but not in upstream Data.d.ts. */
38
+ localizations?: DataPoiTypeLocalization[];
39
+ }
40
+ export interface DataBoothBase {
41
+ id: number;
42
+ name: string;
43
+ title?: string;
44
+ externalId?: string;
45
+ exhibitors?: number[];
46
+ meta?: Record<string, string>;
47
+ poiTypeId?: number;
48
+ }
49
+ export interface DataRegularBooth extends DataBoothBase {
50
+ special?: undefined;
51
+ size?: string;
52
+ price?: string;
53
+ availColor?: string;
54
+ soldColor?: string;
55
+ buyUrl?: string;
56
+ reserveUrl?: string;
57
+ type?: string;
58
+ labelColor?: string;
59
+ /** Present in schema but not in upstream Data.d.ts. */
60
+ onHold?: boolean | string;
61
+ /** Present in schema but not in upstream Data.d.ts. */
62
+ reserved?: boolean;
63
+ /** Present in schema but not in upstream Data.d.ts. */
64
+ status?: 'onhold' | 'reserved';
65
+ /** HTML — overrides reserveInstructions. Present in schema but not in upstream Data.d.ts. */
66
+ description?: string;
67
+ }
68
+ export interface DataSpecialBooth extends DataBoothBase {
69
+ special: true;
70
+ description?: string;
71
+ color?: string;
72
+ }
73
+ export type DataBooth = DataRegularBooth | DataSpecialBooth;
74
+ export interface DataExhibitor {
75
+ id: number;
76
+ name: string;
77
+ externalId?: string;
78
+ featured?: boolean;
79
+ advertise?: boolean;
80
+ description?: string;
81
+ address?: string;
82
+ address2?: string;
83
+ city?: string;
84
+ state?: string;
85
+ zip?: string;
86
+ country?: string;
87
+ phone1?: string;
88
+ website?: string;
89
+ facebook?: string;
90
+ instagram?: string;
91
+ linkedin?: string;
92
+ twitter?: string;
93
+ googlePlus?: string;
94
+ xing?: string;
95
+ youtube?: string;
96
+ email?: string;
97
+ privateEmail?: string;
98
+ order?: number;
99
+ logo?: string;
100
+ gallery?: string[];
101
+ marketMaterials?: DataMarketMaterial[];
102
+ categories?: number[];
103
+ leadingImageUrl?: string;
104
+ videoUrl?: string;
105
+ rebookingState?: number;
106
+ rebookingNote?: string;
107
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
108
+ customButtonTitle?: string;
109
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
110
+ customButtonUrl?: string;
111
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
112
+ customButton2Title?: string;
113
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
114
+ customButton2Url?: string;
115
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
116
+ customButton3Title?: string;
117
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
118
+ customButton3Url?: string;
119
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
120
+ leadingImageLinkUrl?: string;
121
+ /** Present in schema and ExhibitorStore but not in upstream Data.d.ts. */
122
+ logoInBooth?: boolean;
123
+ }
124
+ export interface DataFilterButtonChild {
125
+ id?: number | string;
126
+ type: 'poi_types' | 'categories' | 'link';
127
+ name?: string;
128
+ visible: boolean;
129
+ count?: number;
130
+ linkUrl?: string;
131
+ }
132
+ export interface DataFilterButton {
133
+ id?: string;
134
+ type: 'bookmarks' | 'sessions' | 'categories' | 'poi_type' | 'poi_types' | 'link';
135
+ name: string;
136
+ visible: boolean;
137
+ builtIn?: boolean;
138
+ order?: number;
139
+ children?: DataFilterButtonChild[];
140
+ }
141
+ export interface DataFilterButtonsConfig {
142
+ isExplicit?: boolean;
143
+ sortType?: 'custom' | 'alphabetical';
144
+ searchButtons?: DataFilterButton[];
145
+ }
146
+ export interface Data {
147
+ title?: string;
148
+ subtitle?: string;
149
+ homeUrl?: string;
150
+ registerUrl?: string;
151
+ logo?: string;
152
+ gallery?: string[];
153
+ isTrial?: boolean;
154
+ expoFpAd?: boolean;
155
+ noFeatured?: boolean;
156
+ gtag?: string;
157
+ boothTerm?: string;
158
+ levelTerm?: string;
159
+ reserveButtonTerm?: string;
160
+ exhibitorTerm?: string;
161
+ exhibitorTermPlural?: string;
162
+ locale?: string;
163
+ /** Present in real data but not in upstream Data.d.ts. */
164
+ boothTermPlural?: string;
165
+ booths?: DataBooth[];
166
+ exhibitors?: DataExhibitor[];
167
+ categories?: DataCategory[];
168
+ poiTypes?: DataPoiType[];
169
+ events?: DataScheduleItem[];
170
+ reserveInstructions?: string;
171
+ sendLoginLinkUrl?: string;
172
+ trackerUrl?: string;
173
+ hideWayInformation?: boolean;
174
+ hideDirections?: boolean;
175
+ hideExhibitors?: boolean;
176
+ onlyFeaturedExhibitors?: boolean;
177
+ hideExhibitorBoothNumber?: boolean;
178
+ dimensionless?: boolean;
179
+ hideCategoriesLink?: boolean;
180
+ hideEventHomeLink?: boolean;
181
+ hideRegisterToAttendLink?: boolean;
182
+ hideDownloadPdfLink?: boolean;
183
+ hideBookmarksLink?: boolean;
184
+ hideBookmarks?: boolean;
185
+ hideLanguage?: boolean;
186
+ hideLanguageLink?: boolean;
187
+ hideShareButton?: boolean;
188
+ autoTrackingGps?: boolean;
189
+ enableIPS?: boolean;
190
+ allow3dView?: boolean;
191
+ hide3dMapDefault?: boolean;
192
+ hideModeSwitchButton?: boolean;
193
+ isRebooking?: boolean;
194
+ customCss?: string;
195
+ /**
196
+ * @deprecated Mutated onto Data objects by the offline package.
197
+ * Not present in upstream data.js payloads.
198
+ */
199
+ customCssAssetText?: string;
200
+ customCssFonts?: DataFontUrl[];
201
+ showLevelLabel?: boolean;
202
+ showCategories?: boolean;
203
+ showCompaniesAndBooths?: boolean;
204
+ showOtherSpaces?: boolean;
205
+ viewOptimizationLevel?: number;
206
+ shortLevelName?: boolean;
207
+ searchText?: string;
208
+ filterButtonsConfig?: DataFilterButtonsConfig;
209
+ enableRotation?: boolean;
210
+ alwaysShowSidebar?: boolean;
211
+ customKioskQrCodeUrl?: string;
212
+ /** Present in real data but not in upstream Data.d.ts. */
213
+ levelSelectorType?: string;
214
+ }
215
+ //# sourceMappingURL=data-js-types.d.ts.map
@@ -0,0 +1,8 @@
1
+ // ---------------------------------------------------------------------------
2
+ // data.js payload types
3
+ //
4
+ // Describes the shape of the data.js payload served by the ExpoFP backend.
5
+ // Primary reference: packages/floorplan/src/data/Data.d.ts (upstream, read-only)
6
+ // Cross-checked against: data.schema.json, ExhibitorStore.ts, real demo data
7
+ // ---------------------------------------------------------------------------
8
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * ExpoFP Manifest format
3
+ */
4
+ export interface Manifest {
5
+ expo: string;
6
+ /** @deprecated */
7
+ legacyDataVersion?: {
8
+ version: string;
9
+ };
10
+ /** @deprecated */
11
+ legacyDataUrlBase?: string;
12
+ }
13
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1,6 @@
1
+ export type Ref<T> = {
2
+ $ref: string;
3
+ __type?: T;
4
+ };
5
+ export type RefTarget<R> = R extends Ref<infer T> ? T : never;
6
+ //# sourceMappingURL=ref.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/data",
3
- "version": "3.0.0-alpha.10",
3
+ "version": "3.0.0-alpha.12",
4
4
  "type": "module",
5
5
  "description": "ExpoFP SDK internal: data layer and schemas",
6
6
  "license": "MIT",
@@ -26,6 +26,6 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "tslib": "^2.3.0",
29
- "@expofp/debug": "3.0.0-alpha.10"
29
+ "@expofp/debug": "3.0.0-alpha.12"
30
30
  }
31
31
  }
@@ -1,16 +0,0 @@
1
- export interface Data {
2
- logo?: string;
3
- /** @deprecated Use customCssAssetText instead */
4
- customCss?: string;
5
- customCssAssetText?: string;
6
- exhibitors: Exhibitor[];
7
- }
8
- export interface Exhibitor {
9
- id: number;
10
- name: string;
11
- }
12
- export interface Dummy {
13
- id: number;
14
- name: string;
15
- }
16
- //# sourceMappingURL=Data.d.ts.map
@@ -1,21 +0,0 @@
1
- import type { Dummy } from './Data.js';
2
- export type Ref<T> = {
3
- $ref: string;
4
- __type?: T;
5
- };
6
- export type RefTarget<R> = R extends Ref<infer T> ? T : never;
7
- /**
8
- * ExpoFP Manifest format
9
- */
10
- export interface Manifest {
11
- runtimeUrl?: Ref<string> | string;
12
- expo: string;
13
- /** @deprecated */
14
- legacyDataVersion?: {
15
- version: string;
16
- };
17
- /** @deprecated */
18
- legacyDataUrlBase?: string;
19
- dummies: Ref<Dummy>[];
20
- }
21
- //# sourceMappingURL=Manifest.d.ts.map
File without changes
File without changes
File without changes
File without changes