venue-js 1.4.0-next.4 → 1.4.0-next.5

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.mts CHANGED
@@ -215,14 +215,16 @@ type OpeningProperties = EntityTimestamps & {
215
215
  type OpeningFeature = ImdfFeature<OpeningGeometry, OpeningProperties> & {
216
216
  feature_type: "opening";
217
217
  };
218
+ type RelationshipCategories = "elevator" | "escalator" | "movingwalkway" | "ramp" | "stairs" | "stairs.emergencyexit" | "traversal" | "traversal.path" | string;
219
+ type RelationshipDirectionTypes = "directed" | "undirected";
218
220
  type RelationshipGeometry = Geometry | null;
219
- type RelationshipProperties = EntityTimestamps & {
220
- category: string;
221
+ type RelationshipProperties<T extends RelationshipCategories = RelationshipCategories> = EntityTimestamps & {
222
+ category: RelationshipCategories;
221
223
  destination: {
222
224
  id: Id;
223
225
  feature_type: FeatureType;
224
226
  };
225
- direction: string;
227
+ direction: RelationshipDirectionTypes;
226
228
  hours: string | null;
227
229
  intermediary: {
228
230
  id: Id;
@@ -244,9 +246,17 @@ type SectionProperties = EntityTimestamps & {
244
246
  category: string;
245
247
  ordinal: number;
246
248
  imdf_category: string;
249
+ local_category_ids: string[];
250
+ feature_image: Media | null;
251
+ cover_image: Media | null;
252
+ gallery: Media[] | null;
253
+ is_featured: boolean;
254
+ hours: string | null;
247
255
  [k: string]: any;
248
256
  };
249
- type SectionFeature = ImdfFeature<SectionGeometry, SectionProperties>;
257
+ type SectionFeature = ImdfFeature<SectionGeometry, SectionProperties> & {
258
+ feature_type: "section";
259
+ };
250
260
  type UnitGeometry = Polygon | MultiPolygon;
251
261
  type UnitProperties = EntityTimestamps & {
252
262
  alt_name: string | null;
@@ -259,7 +269,9 @@ type UnitProperties = EntityTimestamps & {
259
269
  style: SymbolProperties;
260
270
  venue_id: Id;
261
271
  };
262
- type UnitFeature = ImdfFeature<UnitGeometry, UnitProperties>;
272
+ type UnitFeature = ImdfFeature<UnitGeometry, UnitProperties> & {
273
+ feature_type: "unit";
274
+ };
263
275
  type VenueGeometry = Polygon | MultiPolygon;
264
276
  type VenueProperties = EntityTimestamps & {
265
277
  address: string;
@@ -283,7 +295,9 @@ type VenueProperties = EntityTimestamps & {
283
295
  theme_color: string;
284
296
  zoom: string | null;
285
297
  };
286
- type VenueFeature = ImdfFeature<VenueGeometry, VenueProperties>;
298
+ type VenueFeature = ImdfFeature<VenueGeometry, VenueProperties> & {
299
+ feature_type: "venue";
300
+ };
287
301
  /**
288
302
  * Non-IMDF
289
303
  *********************** */
package/dist/index.d.ts CHANGED
@@ -215,14 +215,16 @@ type OpeningProperties = EntityTimestamps & {
215
215
  type OpeningFeature = ImdfFeature<OpeningGeometry, OpeningProperties> & {
216
216
  feature_type: "opening";
217
217
  };
218
+ type RelationshipCategories = "elevator" | "escalator" | "movingwalkway" | "ramp" | "stairs" | "stairs.emergencyexit" | "traversal" | "traversal.path" | string;
219
+ type RelationshipDirectionTypes = "directed" | "undirected";
218
220
  type RelationshipGeometry = Geometry | null;
219
- type RelationshipProperties = EntityTimestamps & {
220
- category: string;
221
+ type RelationshipProperties<T extends RelationshipCategories = RelationshipCategories> = EntityTimestamps & {
222
+ category: RelationshipCategories;
221
223
  destination: {
222
224
  id: Id;
223
225
  feature_type: FeatureType;
224
226
  };
225
- direction: string;
227
+ direction: RelationshipDirectionTypes;
226
228
  hours: string | null;
227
229
  intermediary: {
228
230
  id: Id;
@@ -244,9 +246,17 @@ type SectionProperties = EntityTimestamps & {
244
246
  category: string;
245
247
  ordinal: number;
246
248
  imdf_category: string;
249
+ local_category_ids: string[];
250
+ feature_image: Media | null;
251
+ cover_image: Media | null;
252
+ gallery: Media[] | null;
253
+ is_featured: boolean;
254
+ hours: string | null;
247
255
  [k: string]: any;
248
256
  };
249
- type SectionFeature = ImdfFeature<SectionGeometry, SectionProperties>;
257
+ type SectionFeature = ImdfFeature<SectionGeometry, SectionProperties> & {
258
+ feature_type: "section";
259
+ };
250
260
  type UnitGeometry = Polygon | MultiPolygon;
251
261
  type UnitProperties = EntityTimestamps & {
252
262
  alt_name: string | null;
@@ -259,7 +269,9 @@ type UnitProperties = EntityTimestamps & {
259
269
  style: SymbolProperties;
260
270
  venue_id: Id;
261
271
  };
262
- type UnitFeature = ImdfFeature<UnitGeometry, UnitProperties>;
272
+ type UnitFeature = ImdfFeature<UnitGeometry, UnitProperties> & {
273
+ feature_type: "unit";
274
+ };
263
275
  type VenueGeometry = Polygon | MultiPolygon;
264
276
  type VenueProperties = EntityTimestamps & {
265
277
  address: string;
@@ -283,7 +295,9 @@ type VenueProperties = EntityTimestamps & {
283
295
  theme_color: string;
284
296
  zoom: string | null;
285
297
  };
286
- type VenueFeature = ImdfFeature<VenueGeometry, VenueProperties>;
298
+ type VenueFeature = ImdfFeature<VenueGeometry, VenueProperties> & {
299
+ feature_type: "venue";
300
+ };
287
301
  /**
288
302
  * Non-IMDF
289
303
  *********************** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venue-js",
3
- "version": "1.4.0-next.4",
3
+ "version": "1.4.0-next.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",