@wovvmap/contracts 0.0.0-stage → 1.2.0

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 (113) hide show
  1. package/dist/catalog.d.ts +427 -0
  2. package/dist/catalog.d.ts.map +1 -0
  3. package/dist/catalog.js +21 -0
  4. package/dist/depthConfig.d.ts +112 -0
  5. package/dist/depthConfig.d.ts.map +1 -0
  6. package/dist/depthConfig.js +109 -0
  7. package/dist/discovery.d.ts +122 -0
  8. package/dist/discovery.d.ts.map +1 -0
  9. package/dist/discovery.js +91 -0
  10. package/dist/endpoints.d.ts +63 -0
  11. package/dist/endpoints.d.ts.map +1 -0
  12. package/dist/endpoints.js +61 -0
  13. package/dist/events.d.ts +198 -0
  14. package/dist/events.d.ts.map +1 -0
  15. package/dist/events.js +204 -0
  16. package/dist/geometry.d.ts +190 -0
  17. package/dist/geometry.d.ts.map +1 -0
  18. package/dist/geometry.js +6 -0
  19. package/dist/index.d.ts +26 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +24 -0
  22. package/dist/interaction.d.ts +37 -0
  23. package/dist/interaction.d.ts.map +1 -0
  24. package/dist/interaction.js +32 -0
  25. package/dist/interactionScope.d.ts +15 -0
  26. package/dist/interactionScope.d.ts.map +1 -0
  27. package/dist/interactionScope.js +30 -0
  28. package/dist/metadata.d.ts +217 -0
  29. package/dist/metadata.d.ts.map +1 -0
  30. package/dist/metadata.js +102 -0
  31. package/dist/multiFloor.d.ts +102 -0
  32. package/dist/multiFloor.d.ts.map +1 -0
  33. package/dist/multiFloor.js +30 -0
  34. package/dist/navigation/index.d.ts +17 -0
  35. package/dist/navigation/index.d.ts.map +1 -0
  36. package/dist/navigation/index.js +14 -0
  37. package/dist/navigation/navigationConfig.d.ts +21 -0
  38. package/dist/navigation/navigationConfig.d.ts.map +1 -0
  39. package/dist/navigation/navigationConfig.js +18 -0
  40. package/dist/navigation/offlineRecovery.d.ts +29 -0
  41. package/dist/navigation/offlineRecovery.d.ts.map +1 -0
  42. package/dist/navigation/offlineRecovery.js +47 -0
  43. package/dist/navigation/offlineRouteConfig.d.ts +17 -0
  44. package/dist/navigation/offlineRouteConfig.d.ts.map +1 -0
  45. package/dist/navigation/offlineRouteConfig.js +53 -0
  46. package/dist/navigation/resolveNavigationConfig.d.ts +6 -0
  47. package/dist/navigation/resolveNavigationConfig.d.ts.map +1 -0
  48. package/dist/navigation/resolveNavigationConfig.js +50 -0
  49. package/dist/navigation/routeArtifacts.d.ts +130 -0
  50. package/dist/navigation/routeArtifacts.d.ts.map +1 -0
  51. package/dist/navigation/routeArtifacts.js +1 -0
  52. package/dist/navigation/routeDelivery.d.ts +83 -0
  53. package/dist/navigation/routeDelivery.d.ts.map +1 -0
  54. package/dist/navigation/routeDelivery.js +22 -0
  55. package/dist/navigation/routeJourneyValidation.d.ts +5 -0
  56. package/dist/navigation/routeJourneyValidation.d.ts.map +1 -0
  57. package/dist/navigation/routeJourneyValidation.js +65 -0
  58. package/dist/navigation/routeOperations.d.ts +70 -0
  59. package/dist/navigation/routeOperations.d.ts.map +1 -0
  60. package/dist/navigation/routeOperations.js +22 -0
  61. package/dist/navigation/routePlayback.d.ts +98 -0
  62. package/dist/navigation/routePlayback.d.ts.map +1 -0
  63. package/dist/navigation/routePlayback.js +44 -0
  64. package/dist/navigation/routeResponseValidation.d.ts +10 -0
  65. package/dist/navigation/routeResponseValidation.d.ts.map +1 -0
  66. package/dist/navigation/routeResponseValidation.js +280 -0
  67. package/dist/navigation/routeSnapshot.d.ts +5 -0
  68. package/dist/navigation/routeSnapshot.d.ts.map +1 -0
  69. package/dist/navigation/routeSnapshot.js +145 -0
  70. package/dist/navigation/routeState.d.ts +105 -0
  71. package/dist/navigation/routeState.d.ts.map +1 -0
  72. package/dist/navigation/routeState.js +1 -0
  73. package/dist/navigation/routeSteps.d.ts +27 -0
  74. package/dist/navigation/routeSteps.d.ts.map +1 -0
  75. package/dist/navigation/routeSteps.js +1 -0
  76. package/dist/navigation/savedRoute.d.ts +156 -0
  77. package/dist/navigation/savedRoute.d.ts.map +1 -0
  78. package/dist/navigation/savedRoute.js +68 -0
  79. package/dist/navigation/savedRouteValidation.d.ts +5 -0
  80. package/dist/navigation/savedRouteValidation.d.ts.map +1 -0
  81. package/dist/navigation/savedRouteValidation.js +298 -0
  82. package/dist/nodeLine.d.ts +45 -0
  83. package/dist/nodeLine.d.ts.map +1 -0
  84. package/dist/nodeLine.js +44 -0
  85. package/dist/nodePoint.d.ts +111 -0
  86. package/dist/nodePoint.d.ts.map +1 -0
  87. package/dist/nodePoint.js +152 -0
  88. package/dist/offerValidity.d.ts +11 -0
  89. package/dist/offerValidity.d.ts.map +1 -0
  90. package/dist/offerValidity.js +27 -0
  91. package/dist/offline.d.ts +60 -0
  92. package/dist/offline.d.ts.map +1 -0
  93. package/dist/offline.js +47 -0
  94. package/dist/preparedMap.d.ts +186 -0
  95. package/dist/preparedMap.d.ts.map +1 -0
  96. package/dist/preparedMap.js +6 -0
  97. package/dist/preparedMapIdentity.d.ts +3 -0
  98. package/dist/preparedMapIdentity.d.ts.map +1 -0
  99. package/dist/preparedMapIdentity.js +30 -0
  100. package/dist/publicAssets.d.ts +11 -0
  101. package/dist/publicAssets.d.ts.map +1 -0
  102. package/dist/publicAssets.js +5 -0
  103. package/dist/taxonomy.d.ts +50 -0
  104. package/dist/taxonomy.d.ts.map +1 -0
  105. package/dist/taxonomy.js +10 -0
  106. package/dist/theme.d.ts +143 -0
  107. package/dist/theme.d.ts.map +1 -0
  108. package/dist/theme.js +141 -0
  109. package/dist/viewer.d.ts +333 -0
  110. package/dist/viewer.d.ts.map +1 -0
  111. package/dist/viewer.js +109 -0
  112. package/package.json +28 -3
  113. package/README.md +0 -3
@@ -0,0 +1,427 @@
1
+ /**
2
+ * @file catalog.ts
3
+ * @description Public taxonomy, store-group, and bounded catalog read contracts and ports.
4
+ * Category, subcategory, amenity, store-group aur bounded catalog pages ke public contracts aur read ports.
5
+ *
6
+ * Responsibility Boundary:
7
+ * - Domain / Catalog (`@wovvmap/map-data`): Normalizes raw payloads once, maintains key-based membership
8
+ * indexes, and projects plain JSON-safe DTOs through `CatalogReadPort`.
9
+ * - Runtime / Coordination (`@wovvmap/runtime-core`): Coordinates explicit discovery/selection transitions
10
+ * without duplicating `NodePoint` arrays.
11
+ * - Renderer (`@wovvmap/renderer-three`): Applies role-based visual highlights (`origin`, `destination`,
12
+ * `normal`, `group`) and restores base materials; never decides category/offer membership or floor policy.
13
+ */
14
+ import type { CatalogFilterInput, CatalogSortMode, CatalogTarget, SearchQueryChannel } from './discovery.js';
15
+ import type { StructuredCommandErrorData } from './events.js';
16
+ import type { PublicOfferData } from './metadata.js';
17
+ import { type PublicNodeData } from './nodePoint.js';
18
+ /**
19
+ * Secondary sort order for floor-proximity and floor-aware promotion sorting.
20
+ *
21
+ * Hinglish: Floor-proximity aur floor-aware promotion sorting ke liye secondary sort order.
22
+ */
23
+ export type CatalogFloorSecondarySortMode = 'relevance' | 'asc' | 'desc';
24
+ /**
25
+ * Public category summary exposed in catalog lists and discovery filters.
26
+ * Uses public `PublicNodeData` projections (never raw `NodePoint` instances with internal geometry/graph state).
27
+ *
28
+ * Hinglish: Category list aur filters ke liye public summary;
29
+ * isme `nodePoints` hamesha `PublicNodeData[]` (public projection) hota hai, raw `NodePoint` nahi.
30
+ */
31
+ export interface PublicCategoryData {
32
+ code: string | number;
33
+ name: string;
34
+ image: string | null;
35
+ subCategoryCodes: Array<string | number>;
36
+ storeCount: number;
37
+ hasOffers?: boolean;
38
+ nodePointsKey?: string[];
39
+ nodePoints?: readonly PublicNodeData[];
40
+ }
41
+ /**
42
+ * Public sub-category summary scoped under a parent category.
43
+ * Uses public `PublicNodeData` projections (never raw `NodePoint` instances with internal geometry/graph state).
44
+ *
45
+ * Hinglish: Parent category ke andar aane wali sub-category ka public summary;
46
+ * isme `nodePoints` hamesha `PublicNodeData[]` (public projection) hota hai, raw `NodePoint` nahi.
47
+ */
48
+ export interface PublicSubCategoryData {
49
+ code: string | number;
50
+ name: string;
51
+ categoryCode: string | number;
52
+ image: string | null;
53
+ description: string;
54
+ storeCount: number;
55
+ hasOffers?: boolean;
56
+ nodePointsKey?: string[];
57
+ nodePoints?: readonly PublicNodeData[];
58
+ }
59
+ /**
60
+ * Public amenity summary with canonical available floor numbers, authoritative `memberCount`,
61
+ * and optional member key/node projections (omitted in compact list/search pages; available via `getAmenityFloorAvailability`).
62
+ * Supports the current-floor-first amenity selection policy without scanning all nodes.
63
+ *
64
+ * Hinglish: Amenity ka public summary jisme `memberCount` aur `availableFloors` hamesha milte hain;
65
+ * compact list/search pages me `memberKeys` omit rehta hai taaki bridge payload hamesha bounded rahe.
66
+ */
67
+ export interface PublicAmenityData {
68
+ id: string | number;
69
+ fieldCode: string | number;
70
+ name: string;
71
+ image: string | null;
72
+ status: number;
73
+ wayfindingId?: string | number | null;
74
+ memberCount: number;
75
+ availableFloors: number[];
76
+ memberKeys?: string[];
77
+ nodePointsKey?: string[];
78
+ nodePoints?: readonly PublicNodeData[];
79
+ }
80
+ /**
81
+ * Lightweight member summary inside a multi-location store group.
82
+ * Full details for any individual member can be read on demand by key or bounded `getGroupMembers`.
83
+ *
84
+ * Hinglish: Multi-location group ke har member unit ka chhota summary (key, floorIndex, floorName, type).
85
+ */
86
+ export interface PublicNodeGroupMemberSummary {
87
+ key: string;
88
+ floorIndex: number;
89
+ floorName: string;
90
+ type: string;
91
+ }
92
+ /**
93
+ * Public wrapper for a multi-location store or brand group.
94
+ *
95
+ * Explicit Payload Policy:
96
+ * - In paginated list/search pages (`getCatalog`, `search`, `readCatalog`), each group row is a compact summary
97
+ * carrying `groupId`, `name`, authoritative `memberCount`, authoritative `availableFloors`, and `representative`
98
+ * (omitting unbounded `memberKeys` and `members` arrays so row pagination bounds total payload size).
99
+ * - Full or paginated member details are retrieved via `getGroupMembers` (bounded page) or `getStoreGroupById`.
100
+ *
101
+ * Hinglish: Multiple locations wale store/brand group ka public record:
102
+ * - List/search page rows me compact summary (`groupId`, `name`, authoritative `memberCount`, `availableFloors`, `representative`) aata hai.
103
+ * - Detailed member records bounded `getGroupMembers` ya `getStoreGroupById` se milte hain (bina silent truncation ke).
104
+ */
105
+ export interface PublicNodeGroupData {
106
+ groupId: string;
107
+ name: string;
108
+ memberCount: number;
109
+ availableFloors: number[];
110
+ representative: PublicNodeData;
111
+ memberKeys?: string[];
112
+ members?: PublicNodeGroupMemberSummary[];
113
+ }
114
+ /**
115
+ * Public catalog row when browsing active store offers across the mall or within a category/subcategory.
116
+ * Combines the allowlisted `PublicOfferData` with minimal store reference metadata.
117
+ *
118
+ * Hinglish: Offers catalog list ki public row jisme allowlisted `PublicOfferData` aur store ka minimal reference hota hai.
119
+ */
120
+ export interface PublicCatalogOfferItem {
121
+ offer: PublicOfferData;
122
+ nodeKey: string;
123
+ storeName: string;
124
+ floorIndex: number;
125
+ floorName: string;
126
+ categoryCode?: string | number;
127
+ subCategoryCode?: string | number;
128
+ }
129
+ /**
130
+ * Single-location store row in a catalog or search result page.
131
+ * Single location wale store ki catalog row.
132
+ */
133
+ export interface CatalogSingleStoreRow {
134
+ kind: 'store';
135
+ node: PublicNodeData;
136
+ }
137
+ /**
138
+ * Multi-location grouped store row in a catalog or search result page.
139
+ * Multiple locations wale grouped store ki catalog row.
140
+ */
141
+ export interface CatalogGroupStoreRow {
142
+ kind: 'group';
143
+ group: PublicNodeGroupData;
144
+ }
145
+ /**
146
+ * Discriminated store catalog row supporting both single-unit stores and multi-location groups.
147
+ * Single store aur grouped store dono ko darshane wali discriminated catalog row.
148
+ */
149
+ export type CatalogStoreRow = CatalogSingleStoreRow | CatalogGroupStoreRow;
150
+ /**
151
+ * Indexed floor availability summary for an amenity.
152
+ * Used by explicit amenity actions to keep the current floor when a member is present on it,
153
+ * or switch to the recommended available floor otherwise.
154
+ *
155
+ * Hinglish: Amenity ki floor availability jisse check hota hai ki active floor par member hai ya
156
+ * kisi available floor par switch karna chahiye.
157
+ */
158
+ export interface AmenityFloorAvailability {
159
+ amenityId: string | number;
160
+ memberKeys: string[];
161
+ availableFloors: number[];
162
+ isAvailableOnActiveFloor: boolean;
163
+ recommendedFloorIndex: number | null;
164
+ }
165
+ /**
166
+ * Bounded offset pagination parameters for catalog, group-member, and search reads.
167
+ * Catalog, group-member aur search pages ke liye offset aur limit pagination options.
168
+ */
169
+ export interface CatalogPaginationInput {
170
+ offset?: number;
171
+ limit?: number;
172
+ }
173
+ /**
174
+ * Request contract for reading bounded public catalog pages from the committed map revision.
175
+ * Read-only query contract; never mutates selection, highlights, floor, camera, or route state.
176
+ *
177
+ * Hinglish: Committed map revision se bounded public catalog page padhne ka read-only request contract;
178
+ * isse selection, highlight, floor ya camera apne aap change nahi hota.
179
+ */
180
+ export interface CatalogReadRequest<TTarget extends CatalogTarget = CatalogTarget> {
181
+ target: TTarget;
182
+ mallId?: string;
183
+ expectedRevision?: string | number;
184
+ filter?: CatalogFilterInput;
185
+ groupMultiLocation?: boolean;
186
+ activeFloorIndex?: number;
187
+ sortBy?: CatalogSortMode;
188
+ floorSecondarySortBy?: 'relevance' | 'asc' | 'desc';
189
+ pagination?: CatalogPaginationInput;
190
+ referenceTimeMs?: number;
191
+ }
192
+ /**
193
+ * Minimum shared search query contract extending `CatalogReadRequest` with query text and channel identity.
194
+ * Actual text matching and ranking algorithms belong to `@wovvmap/search-core` (Phase 2).
195
+ *
196
+ * Hinglish: CatalogReadRequest ke upar query text aur channel jodkar banne wala shared search request contract.
197
+ */
198
+ export interface CatalogSearchQueryInput<TTarget extends CatalogTarget = CatalogTarget> extends CatalogReadRequest<TTarget> {
199
+ query: string;
200
+ channel?: SearchQueryChannel;
201
+ }
202
+ /**
203
+ * Map-to-item type resolver for each `CatalogTarget`.
204
+ * Har `CatalogTarget` ke corresponding public item type ka mapping.
205
+ */
206
+ export interface CatalogTargetItemMap {
207
+ stores: CatalogStoreRow;
208
+ categories: PublicCategoryData;
209
+ subcategories: PublicSubCategoryData;
210
+ amenities: PublicAmenityData;
211
+ offers: PublicCatalogOfferItem;
212
+ }
213
+ /**
214
+ * Target-bound catalog page ensuring `target` and `items` always correspond to the same `TTarget`.
215
+ * Clearly separates `totalRows` (rows after grouping) from `totalMemberCount` (underlying matched node keys).
216
+ *
217
+ * Hinglish: Target aur uske corresponding `items` type ko compile-time par bind karne wala bounded public page;
218
+ * isme `totalRows` (grouped rows) aur `totalMemberCount` (total matched store keys) alag rehte hain.
219
+ */
220
+ export interface CatalogPageForTarget<TTarget extends CatalogTarget> {
221
+ target: TTarget;
222
+ mallId: string;
223
+ revision: string | number;
224
+ items: Array<CatalogTargetItemMap[TTarget]>;
225
+ totalRows: number;
226
+ totalMemberCount: number;
227
+ offset: number;
228
+ limit: number;
229
+ hasMore: boolean;
230
+ nextOffset: number | null;
231
+ availableFloors: number[];
232
+ }
233
+ /**
234
+ * Discriminated union of target-bound catalog pages.
235
+ * Rejects mismatched `target` and `items` combinations at compile time.
236
+ *
237
+ * Hinglish: Target-bound catalog pages ka discriminated union jo galat `target`/`items` combination ko compile time par reject karta hai.
238
+ */
239
+ export type CatalogPage<TTarget extends CatalogTarget = CatalogTarget> = {
240
+ [K in TTarget]: CatalogPageForTarget<K>;
241
+ }[TTarget];
242
+ /**
243
+ * Target-bound search result page returned by `search(request)`.
244
+ * Reuses the canonical `CatalogPage<TTarget>` structure so browse (`getCatalog`) and search (`search`)
245
+ * return identical target-bound item shapes, revision metadata, counts, and pagination fields across Web and Native.
246
+ *
247
+ * Hinglish: `search(request)` ka target-bound public result page jo `CatalogPage<TTarget>` structure reuse karta hai
248
+ * taaki browse aur search dono me same item types, revision, counts aur pagination milein.
249
+ */
250
+ export type CatalogSearchPage<TTarget extends CatalogTarget = CatalogTarget> = CatalogPage<TTarget>;
251
+ /**
252
+ * Revision-safe options for reading a multi-location store group summary.
253
+ * Multi-location group summary padhne ke liye map/revision aur filter options.
254
+ */
255
+ export interface CatalogGroupReadOptions {
256
+ mallId?: string;
257
+ expectedRevision?: string | number;
258
+ filter?: CatalogFilterInput;
259
+ activeFloorIndex?: number;
260
+ }
261
+ /**
262
+ * Bounded, revision-safe request for reading full `PublicNodeData` details of a store group's members.
263
+ * Supports optional `query`, `mode`, `sortBy`, and `floorSecondarySortBy` so search-matched and
264
+ * promotion-matched group members are resolved through the exact same prepared store-search pipeline.
265
+ *
266
+ * Hinglish: Store group ke members ki bounded/paged `PublicNodeData` details padhne ka request contract;
267
+ * isme `query`, `mode`, `sortBy` aur `floorSecondarySortBy` bhi pass ho sakte hain taaki search aur
268
+ * promotion matching ke saath group expansion same prepared pipeline use kare.
269
+ */
270
+ export interface CatalogGroupMembersRequest extends CatalogGroupReadOptions {
271
+ groupId: string;
272
+ mode?: 'catalog' | 'search';
273
+ query?: string;
274
+ sortBy?: CatalogSortMode;
275
+ floorSecondarySortBy?: CatalogFloorSecondarySortMode;
276
+ pagination?: CatalogPaginationInput;
277
+ }
278
+ /** Select the complete eligible group under the same search/filter scope as its visible result.
279
+ * Hinglish: List ke same query/filter se poora eligible group select ho; loaded page tak limited nahi. */
280
+ export type NodeGroupSelectionRequest = Omit<CatalogGroupMembersRequest, 'pagination'>;
281
+ /** Compact public selection projection; full member keys stay in the authoritative Web runtime.
282
+ * Hinglish: Host ko chhota public group summary mile; saare keys/NodePoints bridge par nahi jayenge. */
283
+ export type NodeGroupSelectionData = Omit<PublicNodeGroupData, 'memberKeys' | 'members'>;
284
+ /** Freeze an owned compact selection before exposing it; only one representative is visited.
285
+ * Hinglish: Public selection ko immutable rakhein; sirf ek representative freeze ho, poora group nahi. */
286
+ export declare function freezeNodeGroupSelectionData(selection: NodeGroupSelectionData): NodeGroupSelectionData;
287
+ /**
288
+ * Bounded page of `PublicNodeData` details for a multi-location store group.
289
+ * `items`, `members`, and `memberKeys` are all bounded by the page `offset` and `limit`,
290
+ * while `totalMemberCount` and `availableFloors` reflect the complete eligible group membership.
291
+ *
292
+ * Hinglish: Multi-location group ke members ka bounded page jisme `items`, `members` aur `memberKeys`
293
+ * current page (`offset`, `limit`) tak bounded hote hain aur `totalMemberCount` poori eligible count batata hai.
294
+ */
295
+ export interface CatalogGroupMembersPage {
296
+ groupId: string;
297
+ mallId: string;
298
+ revision: string | number;
299
+ items: PublicNodeData[];
300
+ members?: PublicNodeGroupMemberSummary[];
301
+ memberKeys: string[];
302
+ totalMemberCount: number;
303
+ offset: number;
304
+ limit: number;
305
+ hasMore: boolean;
306
+ nextOffset: number | null;
307
+ availableFloors: number[];
308
+ }
309
+ /**
310
+ * Revision-safe options for evaluating an amenity's floor availability.
311
+ * Amenity ki floor availability check karne ke liye map/revision aur active floor options.
312
+ */
313
+ export interface AmenityAvailabilityReadOptions {
314
+ mallId?: string;
315
+ expectedRevision?: string | number;
316
+ activeFloorIndex?: number;
317
+ }
318
+ /**
319
+ * Focused read port implemented by `@wovvmap/map-data` to serve public catalog pages,
320
+ * multi-location group details, and amenity floor availability from the committed map revision.
321
+ *
322
+ * Hinglish: `@wovvmap/map-data` dwara implement kiya jane wala read port jo bina full NodePoint scan ke
323
+ * public catalog pages, bounded group details aur amenity floor availability return karta hai.
324
+ */
325
+ export interface CatalogReadPort {
326
+ /**
327
+ * Returns the currently committed mall identifier and map revision, or null when no map is loaded.
328
+ * Currently committed mallId aur map revision return karta hai (map load na hone par null).
329
+ */
330
+ getRevision(): {
331
+ mallId: string;
332
+ revision: string | number;
333
+ } | null;
334
+ /**
335
+ * Reads a bounded page of public items for the requested catalog target.
336
+ * Requested catalog target ke liye bounded public items page return karta hai.
337
+ */
338
+ readCatalog<TTarget extends CatalogTarget>(request: CatalogReadRequest<TTarget>): CatalogPage<TTarget>;
339
+ /**
340
+ * Resolves a multi-location group summary by its stable `groupId`, scoped by optional revision, filter, and active floor.
341
+ * Stable `groupId` se multi-location group ka public summary return karta hai.
342
+ */
343
+ getStoreGroupById(groupId: string, options?: CatalogGroupReadOptions): PublicNodeGroupData | null;
344
+ /**
345
+ * Reads a bounded page of `PublicNodeData` member projections for a multi-location store group.
346
+ * Kisi multi-location group ke eligible members ka bounded `CatalogGroupMembersPage` return karta hai.
347
+ */
348
+ getGroupMembers(request: CatalogGroupMembersRequest): CatalogGroupMembersPage | null;
349
+ /**
350
+ * Evaluates indexed floor availability for an amenity relative to `activeFloorIndex`.
351
+ * Active floor ke hisab se amenity ki floor availability aur recommended floor return karta hai.
352
+ */
353
+ getAmenityFloorAvailability(amenityId: string | number, options?: AmenityAvailabilityReadOptions): AmenityFloorAvailability | null;
354
+ }
355
+ /**
356
+ * Item type for a specific `CatalogTarget`.
357
+ *
358
+ * Hinglish: Specific `CatalogTarget` ke corresponding public item ka type.
359
+ */
360
+ export type CatalogItemForTarget<TTarget extends CatalogTarget> = CatalogTargetItemMap[TTarget];
361
+ /**
362
+ * Standard discovery channels owned per viewer instance.
363
+ * `general` is used by browse/search panels; `origin` and `destination` are isolated channels
364
+ * for wayfinding endpoint search inputs so typing in one never cancels or overwrites the other.
365
+ *
366
+ * Hinglish: Per-viewer standard discovery channels (`general`, `origin`, `destination`) taaki
367
+ * ek input me type karne se doosre channel ka state ya in-flight request cancel/overwrite na ho.
368
+ */
369
+ export type CatalogDiscoveryChannel = 'general' | 'origin' | 'destination' | (string & {});
370
+ /**
371
+ * Lifecycle status of a discovery channel query.
372
+ *
373
+ * Hinglish: Discovery channel query ka current status.
374
+ */
375
+ export type DiscoveryQueryStatus = 'idle' | 'loading' | 'loadingMore' | 'success' | 'empty' | 'error';
376
+ /**
377
+ * Input parameters for executing or updating a channel-scoped catalog/search query.
378
+ *
379
+ * Hinglish: Channel-scoped catalog ya search query run/update karne ke input parameters.
380
+ */
381
+ export interface DiscoveryQueryParams<TTarget extends CatalogTarget = CatalogTarget> {
382
+ readonly mode?: 'catalog' | 'search';
383
+ readonly target: TTarget;
384
+ readonly query?: string;
385
+ readonly filter?: CatalogFilterInput;
386
+ readonly sortBy?: CatalogSortMode;
387
+ readonly floorSecondarySortBy?: CatalogFloorSecondarySortMode;
388
+ readonly activeFloorIndex?: number;
389
+ readonly groupMultiLocation?: boolean;
390
+ readonly pageSize?: number;
391
+ readonly debounceMs?: number;
392
+ readonly mallId?: string;
393
+ readonly expectedRevision?: string | number;
394
+ }
395
+ /**
396
+ * Immutable state snapshot for a single discovery channel.
397
+ *
398
+ * Hinglish: Ek single discovery channel ka immutable state snapshot.
399
+ */
400
+ export interface DiscoveryChannelSnapshot<TTarget extends CatalogTarget = CatalogTarget> {
401
+ readonly channel: CatalogDiscoveryChannel;
402
+ readonly status: DiscoveryQueryStatus;
403
+ readonly isLoading: boolean;
404
+ readonly isLoadingMore: boolean;
405
+ readonly isEmpty: boolean;
406
+ readonly mode: 'catalog' | 'search';
407
+ readonly target: TTarget;
408
+ readonly query: string;
409
+ readonly filter: CatalogFilterInput | undefined;
410
+ readonly sortBy: CatalogSortMode | undefined;
411
+ readonly floorSecondarySortBy: CatalogFloorSecondarySortMode | undefined;
412
+ readonly activeFloorIndex: number | undefined;
413
+ readonly groupMultiLocation: boolean;
414
+ readonly pageSize: number;
415
+ readonly offset: number;
416
+ readonly items: CatalogItemForTarget<TTarget>[];
417
+ readonly page: CatalogPage<TTarget> | null;
418
+ readonly totalRows: number;
419
+ readonly totalMemberCount: number;
420
+ readonly availableFloors: number[];
421
+ readonly hasMore: boolean;
422
+ readonly nextOffset: number | null;
423
+ readonly mallId: string;
424
+ readonly revision: string | number | null;
425
+ readonly error: StructuredCommandErrorData | null;
426
+ }
427
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAwB,KAAK,cAAc,EAA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e,EAAE,MAAM,EAAE,CAAA;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACzC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAClD"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @file catalog.ts
3
+ * @description Public taxonomy, store-group, and bounded catalog read contracts and ports.
4
+ * Category, subcategory, amenity, store-group aur bounded catalog pages ke public contracts aur read ports.
5
+ *
6
+ * Responsibility Boundary:
7
+ * - Domain / Catalog (`@wovvmap/map-data`): Normalizes raw payloads once, maintains key-based membership
8
+ * indexes, and projects plain JSON-safe DTOs through `CatalogReadPort`.
9
+ * - Runtime / Coordination (`@wovvmap/runtime-core`): Coordinates explicit discovery/selection transitions
10
+ * without duplicating `NodePoint` arrays.
11
+ * - Renderer (`@wovvmap/renderer-three`): Applies role-based visual highlights (`origin`, `destination`,
12
+ * `normal`, `group`) and restores base materials; never decides category/offer membership or floor policy.
13
+ */
14
+ import { freezePublicNodeData } from './nodePoint.js';
15
+ /** Freeze an owned compact selection before exposing it; only one representative is visited.
16
+ * Hinglish: Public selection ko immutable rakhein; sirf ek representative freeze ho, poora group nahi. */
17
+ export function freezeNodeGroupSelectionData(selection) {
18
+ freezePublicNodeData(selection.representative);
19
+ Object.freeze(selection.availableFloors);
20
+ return Object.freeze(selection);
21
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * @file depthConfig.ts
3
+ * @description Dynamic 3D extrusion depth configuration and height resolution helpers.
4
+ * Is file me 3D map ki deewaron ki unchai aur floor base thickness ko dynamically control karne ke contracts hain.
5
+ */
6
+ /**
7
+ * View mode identifiers: '2D', '3D', or any future custom view mode (e.g. 'Isometric', 'Cutaway').
8
+ * 2D, 3D ya future me aane wale custom view modes.
9
+ */
10
+ export type MapViewMode = '2D' | '3D' | string;
11
+ /**
12
+ * Depth and elevation profile for a specific map view mode.
13
+ * Specific view mode ke liye unchai aur extra elevation ka configuration.
14
+ */
15
+ export interface ModeDepthConfig {
16
+ /**
17
+ * Base unit shape extrusion height in this view mode (e.g. 0.1 for 2D, 6.0 for 3D).
18
+ * Is view mode me unit ki standard deewar ki height.
19
+ */
20
+ unitDepth: number;
21
+ /**
22
+ * Extra vertical elevation offset for planar rooftop logos to prevent z-fighting with the roof.
23
+ * Planar logo ke liye roof ke upar extra elevation taaki z-fighting na ho.
24
+ */
25
+ extraDepthPlane: number;
26
+ /**
27
+ * Extra vertical elevation offset for billboard transit/amenity icon sprites.
28
+ * Camera-facing icon sprites ke liye floating elevation.
29
+ */
30
+ extraDepthSprite: number;
31
+ }
32
+ /**
33
+ * Standard default depth profiles for 2D and 3D modes.
34
+ * Default 2D aur 3D depth profiles.
35
+ */
36
+ export declare const DEFAULT_MODE_DEPTHS: Record<string, ModeDepthConfig>;
37
+ /**
38
+ * Portable configuration contract for dynamic 3D extrusion heights and floor footprint depth.
39
+ * 3D extrusion unchai aur base footprint depth ko customize karne ka contract.
40
+ */
41
+ export interface DynamicDepthConfig {
42
+ /**
43
+ * Footprint base thickness (default: 0).
44
+ * Floor base platform / footprint ki thickness.
45
+ */
46
+ floorBaseDepth: number;
47
+ /**
48
+ * Standard unit extrusion wall depth/height (default: 6).
49
+ * Dukan ya room ki standard deewar ki unchai / 3D height.
50
+ */
51
+ defaultUnitDepth: number;
52
+ /**
53
+ * Optional global depth scaling multiplier (e.g. 1.0, 1.5).
54
+ * Overall height scale karne ke liye multiplier.
55
+ */
56
+ depthMultiplier?: number;
57
+ /**
58
+ * Optional per-node-type or per-key custom depth overrides.
59
+ * Kisi specific type ya node key ke liye custom unchai overrides.
60
+ */
61
+ customDepths?: Record<string, number>;
62
+ /**
63
+ * Mode-specific depth profiles for 2D, 3D, and future custom view modes.
64
+ * 2D, 3D aur future custom modes ke liye depth profiles.
65
+ */
66
+ modeDepths?: Record<string, ModeDepthConfig>;
67
+ }
68
+ /**
69
+ * Standard default extrusion depth configuration.
70
+ * Default standard extrusion depth values.
71
+ */
72
+ export declare const DEFAULT_DYNAMIC_DEPTH_CONFIG: Readonly<DynamicDepthConfig>;
73
+ /**
74
+ * Resolves mode-specific depth and offset configuration.
75
+ * Extensible for any custom view modes without hardcoded if-else logic.
76
+ *
77
+ * View mode ke aadhar par depth configuration resolve karein.
78
+ */
79
+ export declare function resolveModeDepth(mode?: MapViewMode, config?: Partial<DynamicDepthConfig>): ModeDepthConfig;
80
+ /**
81
+ * Resolves the surface elevation where logos or icons should be positioned.
82
+ * Distinguishes between solid extruded units (sits on roof), flat platforms (sits on floor),
83
+ * and hollow/walled rooms (sits on floor inside the walls so it does not float in mid-air).
84
+ *
85
+ * Shape ke nature (solid ya hollow) ke aadhar par surface elevation resolve karein.
86
+ *
87
+ * @param node Node geometric attributes (shapeDetail).
88
+ * @param mode Active map view mode (2D, 3D, etc.).
89
+ * @param config Optional dynamic depth configuration.
90
+ * @returns Vertical surface Y coordinate for image/label placement.
91
+ */
92
+ export declare function resolveSurfaceElevation(node: {
93
+ shapeDetail?: {
94
+ depth?: number;
95
+ floorBash?: boolean;
96
+ shapeType?: string;
97
+ } | null;
98
+ }, mode?: MapViewMode, config?: Partial<DynamicDepthConfig>): number;
99
+ /**
100
+ * Resolves the final 3D extrusion depth for a given node geometry.
101
+ * Node geometry aur configuration ke aadhar par final 3D extrusion unchai calculate karein.
102
+ *
103
+ * @param node Node geometric attributes (floorBash, depth, type).
104
+ * @param config Optional dynamic depth configuration.
105
+ * @returns Calculated 3D extrusion height.
106
+ */
107
+ export declare function resolveExtrusionDepth(node: {
108
+ floorBash?: boolean;
109
+ depth?: number;
110
+ type?: string;
111
+ }, config?: DynamicDepthConfig): number;
112
+ //# sourceMappingURL=depthConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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