@snaptrude/plugin-core 0.11.0-rc.1 → 1.0.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 (226) hide show
  1. package/AGENTS.md +4 -0
  2. package/CHANGELOG.md +176 -14
  3. package/api-manifest.json +872 -49
  4. package/dist/api/analysis/daylight.d.ts +5 -5
  5. package/dist/api/analysis/solar.d.ts +2 -2
  6. package/dist/api/core/camera/index.d.ts +447 -0
  7. package/dist/api/core/camera/index.d.ts.map +1 -1
  8. package/dist/api/core/geom/create/index.d.ts +942 -101
  9. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  10. package/dist/api/core/geom/query/brep.d.ts +59 -2
  11. package/dist/api/core/geom/query/brep.d.ts.map +1 -1
  12. package/dist/api/core/geom/query/curve.d.ts +59 -35
  13. package/dist/api/core/geom/query/curve.d.ts.map +1 -1
  14. package/dist/api/core/geom/query/edge.d.ts +2 -2
  15. package/dist/api/core/geom/query/face.d.ts +105 -0
  16. package/dist/api/core/geom/query/face.d.ts.map +1 -1
  17. package/dist/api/core/geom/update/contour.d.ts +10 -2
  18. package/dist/api/core/geom/update/contour.d.ts.map +1 -1
  19. package/dist/api/core/geom/update/curve.d.ts +5 -5
  20. package/dist/api/core/geom/update/profile.d.ts +3 -1
  21. package/dist/api/core/geom/update/profile.d.ts.map +1 -1
  22. package/dist/api/core/handles/index.d.ts +4 -2
  23. package/dist/api/core/handles/index.d.ts.map +1 -1
  24. package/dist/api/core/index.d.ts +4 -4
  25. package/dist/api/core/index.d.ts.map +1 -1
  26. package/dist/api/core/io/import/index.d.ts +3 -1
  27. package/dist/api/core/io/import/index.d.ts.map +1 -1
  28. package/dist/api/core/layers.d.ts +377 -255
  29. package/dist/api/core/layers.d.ts.map +1 -1
  30. package/dist/api/core/mode/index.d.ts +19 -7
  31. package/dist/api/core/mode/index.d.ts.map +1 -1
  32. package/dist/api/core/proposals/index.d.ts +4 -3
  33. package/dist/api/core/proposals/index.d.ts.map +1 -1
  34. package/dist/api/core/storeys/index.d.ts +17 -2
  35. package/dist/api/core/storeys/index.d.ts.map +1 -1
  36. package/dist/api/core/storeys/layers.d.ts +408 -0
  37. package/dist/api/core/storeys/layers.d.ts.map +1 -0
  38. package/dist/api/core/tags.d.ts +84 -3
  39. package/dist/api/core/tags.d.ts.map +1 -1
  40. package/dist/api/core/zoom/index.d.ts +13 -0
  41. package/dist/api/core/zoom/index.d.ts.map +1 -1
  42. package/dist/api/design/bim.d.ts +299 -0
  43. package/dist/api/design/bim.d.ts.map +1 -0
  44. package/dist/api/design/boolean/index.d.ts +2 -0
  45. package/dist/api/design/boolean/index.d.ts.map +1 -1
  46. package/dist/api/design/catalog.d.ts +320 -0
  47. package/dist/api/design/catalog.d.ts.map +1 -0
  48. package/dist/api/design/create/bulk-items.d.ts +269 -0
  49. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  50. package/dist/api/design/create/grids.d.ts +132 -0
  51. package/dist/api/design/create/grids.d.ts.map +1 -0
  52. package/dist/api/design/create/index.d.ts +753 -102
  53. package/dist/api/design/create/index.d.ts.map +1 -1
  54. package/dist/api/design/create/opening-fields.d.ts +38 -0
  55. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  56. package/dist/api/design/delete/index.d.ts +7 -20
  57. package/dist/api/design/delete/index.d.ts.map +1 -1
  58. package/dist/api/design/dimensions.d.ts +427 -0
  59. package/dist/api/design/dimensions.d.ts.map +1 -0
  60. package/dist/api/design/doors/index.d.ts +24 -23
  61. package/dist/api/design/doors/index.d.ts.map +1 -1
  62. package/dist/api/design/family.d.ts +1446 -0
  63. package/dist/api/design/family.d.ts.map +1 -0
  64. package/dist/api/design/grids.d.ts +237 -0
  65. package/dist/api/design/grids.d.ts.map +1 -0
  66. package/dist/api/design/index.d.ts +30 -0
  67. package/dist/api/design/index.d.ts.map +1 -1
  68. package/dist/api/design/networks.d.ts +1703 -0
  69. package/dist/api/design/networks.d.ts.map +1 -0
  70. package/dist/api/design/query/geometry/index.d.ts +33 -5
  71. package/dist/api/design/query/geometry/index.d.ts.map +1 -1
  72. package/dist/api/design/query/grids.d.ts +287 -0
  73. package/dist/api/design/query/grids.d.ts.map +1 -0
  74. package/dist/api/design/query/index.d.ts +143 -36
  75. package/dist/api/design/query/index.d.ts.map +1 -1
  76. package/dist/api/design/query/spaces.d.ts +5 -66
  77. package/dist/api/design/query/spaces.d.ts.map +1 -1
  78. package/dist/api/design/selection/index.d.ts +12 -12
  79. package/dist/api/design/types/index.d.ts +40 -24
  80. package/dist/api/design/types/index.d.ts.map +1 -1
  81. package/dist/api/design/update/index.d.ts +412 -8
  82. package/dist/api/design/update/index.d.ts.map +1 -1
  83. package/dist/api/design/windows/index.d.ts +8 -8
  84. package/dist/api/design/windows/index.d.ts.map +1 -1
  85. package/dist/api/entity/buildableEnvelope.d.ts +84 -2
  86. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
  87. package/dist/api/entity/referenceLine.d.ts +13 -1
  88. package/dist/api/entity/referenceLine.d.ts.map +1 -1
  89. package/dist/api/entity/space.d.ts +12 -15
  90. package/dist/api/entity/space.d.ts.map +1 -1
  91. package/dist/api/entity/story.d.ts +4 -4
  92. package/dist/api/presentation/aiInspiration.d.ts +24 -24
  93. package/dist/api/presentation/annotate.d.ts +38 -22
  94. package/dist/api/presentation/annotate.d.ts.map +1 -1
  95. package/dist/api/presentation/camera.d.ts +265 -0
  96. package/dist/api/presentation/camera.d.ts.map +1 -0
  97. package/dist/api/presentation/drawingContract.d.ts +32 -0
  98. package/dist/api/presentation/drawingContract.d.ts.map +1 -0
  99. package/dist/api/presentation/drawings.d.ts +3523 -0
  100. package/dist/api/presentation/drawings.d.ts.map +1 -0
  101. package/dist/api/presentation/export.d.ts +23 -5
  102. package/dist/api/presentation/export.d.ts.map +1 -1
  103. package/dist/api/presentation/graphics.d.ts +419 -0
  104. package/dist/api/presentation/graphics.d.ts.map +1 -0
  105. package/dist/api/presentation/index.d.ts +66 -12
  106. package/dist/api/presentation/index.d.ts.map +1 -1
  107. package/dist/api/presentation/placedViews.d.ts +117 -51
  108. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  109. package/dist/api/presentation/sections.d.ts +461 -0
  110. package/dist/api/presentation/sections.d.ts.map +1 -0
  111. package/dist/api/presentation/shapes.d.ts +2 -2
  112. package/dist/api/presentation/sheets.d.ts +175 -37
  113. package/dist/api/presentation/sheets.d.ts.map +1 -1
  114. package/dist/api/presentation/standards.d.ts +590 -0
  115. package/dist/api/presentation/standards.d.ts.map +1 -0
  116. package/dist/api/presentation/viewPresets.d.ts +222 -0
  117. package/dist/api/presentation/viewPresets.d.ts.map +1 -0
  118. package/dist/api/presentation/views.d.ts +144 -9
  119. package/dist/api/presentation/views.d.ts.map +1 -1
  120. package/dist/api/presentation/walkthroughs.d.ts +1350 -0
  121. package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
  122. package/dist/api/program/departments.d.ts +58 -2
  123. package/dist/api/program/departments.d.ts.map +1 -1
  124. package/dist/api/program/index.d.ts +16 -6
  125. package/dist/api/program/index.d.ts.map +1 -1
  126. package/dist/api/program/labels.d.ts +355 -0
  127. package/dist/api/program/labels.d.ts.map +1 -0
  128. package/dist/api/program/metadata.d.ts +328 -0
  129. package/dist/api/program/metadata.d.ts.map +1 -0
  130. package/dist/api/program/site.d.ts +4 -4
  131. package/dist/api/program/spreadsheet.d.ts +267 -4
  132. package/dist/api/program/spreadsheet.d.ts.map +1 -1
  133. package/dist/api/workspace/index.d.ts +49 -2
  134. package/dist/api/workspace/index.d.ts.map +1 -1
  135. package/dist/errors/codes.d.ts +5 -8
  136. package/dist/errors/codes.d.ts.map +1 -1
  137. package/dist/handles.d.ts +32 -3
  138. package/dist/handles.d.ts.map +1 -1
  139. package/dist/index.cjs +6534 -2865
  140. package/dist/index.cjs.map +1 -1
  141. package/dist/index.d.ts +2 -0
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.js +6118 -2857
  144. package/dist/index.js.map +1 -1
  145. package/dist/massParameters.d.ts +287 -0
  146. package/dist/massParameters.d.ts.map +1 -0
  147. package/dist/massParameters.ops.d.ts +138 -0
  148. package/dist/massParameters.ops.d.ts.map +1 -0
  149. package/package.json +2 -1
  150. package/scripts/check-dist-fresh.mjs +22 -0
  151. package/scripts/generate-manifest.mjs +5 -0
  152. package/scripts/generate-manifest.test.mjs +14 -3
  153. package/src/api/core/camera/index.ts +429 -1
  154. package/src/api/core/geom/create/index.ts +1037 -102
  155. package/src/api/core/geom/query/brep.ts +60 -2
  156. package/src/api/core/geom/query/curve.ts +26 -2
  157. package/src/api/core/geom/query/edge.ts +2 -2
  158. package/src/api/core/geom/query/face.ts +109 -4
  159. package/src/api/core/geom/update/contour.ts +10 -2
  160. package/src/api/core/geom/update/profile.ts +2 -0
  161. package/src/api/core/handles/index.ts +3 -2
  162. package/src/api/core/index.ts +4 -4
  163. package/src/api/core/io/import/index.ts +11 -3
  164. package/src/api/core/layers.ts +380 -173
  165. package/src/api/core/mode/index.ts +19 -7
  166. package/src/api/core/proposals/index.ts +4 -3
  167. package/src/api/core/storeys/index.ts +19 -2
  168. package/src/api/core/storeys/layers.ts +339 -0
  169. package/src/api/core/tags.ts +76 -0
  170. package/src/api/core/zoom/index.ts +13 -0
  171. package/src/api/design/bim.ts +210 -0
  172. package/src/api/design/boolean/index.ts +2 -0
  173. package/src/api/design/catalog.ts +203 -0
  174. package/src/api/design/create/bulk-items.ts +294 -0
  175. package/src/api/design/create/grids.ts +137 -0
  176. package/src/api/design/create/index.ts +824 -141
  177. package/src/api/design/create/opening-fields.ts +40 -0
  178. package/src/api/design/delete/index.ts +6 -20
  179. package/src/api/design/dimensions.ts +453 -0
  180. package/src/api/design/doors/index.ts +64 -41
  181. package/src/api/design/family.ts +1342 -0
  182. package/src/api/design/grids.ts +237 -0
  183. package/src/api/design/index.ts +49 -4
  184. package/src/api/design/networks.ts +607 -0
  185. package/src/api/design/query/geometry/index.ts +35 -4
  186. package/src/api/design/query/grids.ts +197 -0
  187. package/src/api/design/query/index.ts +105 -5
  188. package/src/api/design/query/spaces.ts +0 -68
  189. package/src/api/design/types/index.ts +31 -24
  190. package/src/api/design/update/index.ts +398 -4
  191. package/src/api/design/windows/index.ts +40 -22
  192. package/src/api/entity/buildableEnvelope.ts +77 -2
  193. package/src/api/entity/referenceLine.ts +25 -12
  194. package/src/api/entity/space.ts +0 -2
  195. package/src/api/presentation/annotate.ts +90 -58
  196. package/src/api/presentation/camera.ts +289 -0
  197. package/src/api/presentation/drawingContract.ts +70 -0
  198. package/src/api/presentation/drawings.ts +1179 -0
  199. package/src/api/presentation/export.ts +32 -6
  200. package/src/api/presentation/graphics.ts +324 -0
  201. package/src/api/presentation/index.ts +73 -14
  202. package/src/api/presentation/placedViews.ts +120 -57
  203. package/src/api/presentation/sections.ts +420 -0
  204. package/src/api/presentation/sheets.ts +182 -37
  205. package/src/api/presentation/standards.ts +445 -0
  206. package/src/api/presentation/viewPresets.ts +241 -0
  207. package/src/api/presentation/views.ts +81 -10
  208. package/src/api/presentation/walkthroughs.ts +1201 -0
  209. package/src/api/program/departments.ts +54 -2
  210. package/src/api/program/index.ts +16 -6
  211. package/src/api/program/labels.ts +332 -0
  212. package/src/api/program/metadata.ts +364 -0
  213. package/src/api/program/spreadsheet.ts +282 -0
  214. package/src/api/workspace/index.ts +51 -2
  215. package/src/errors/codes.ts +9 -30
  216. package/src/handles.ts +42 -3
  217. package/src/index.ts +2 -0
  218. package/src/massParameters.ops.ts +246 -0
  219. package/src/massParameters.ts +427 -0
  220. package/test/drawingContract.test.mjs +288 -0
  221. package/test/errors.test.mjs +1 -4
  222. package/test/massParameters.test.mjs +952 -0
  223. package/test/paperPensContract.test.mjs +75 -0
  224. package/test/presentationViewSettings.test.mjs +85 -0
  225. package/api-manifest.full.json +0 -6928
  226. package/snaptrude-plugin-core-0.11.0.tgz +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../src/api/core/layers.ts"],"names":[],"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AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAQvC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAA"}
@@ -34,10 +34,14 @@ export interface PluginCoreModeSetResult {
34
34
  * Not to be confused with the viewport's 2D/3D camera mode
35
35
  * (`core.camera.setMode`) or saved presentation views (`presentation.views`).
36
36
  *
37
- * `set` covers `design`, `bim`, and `present` — in-page switches.
38
- * `program` opens in its own browser tab in the product, which a plugin worker
39
- * cannot do, so `set("program")` fails with `PRECONDITION_FAILED`; `get()`
40
- * still reports `"program"` for code running in the Program tab.
37
+ * `set` covers `design`, `bim`, and `present` — in-page switches — and
38
+ * `program`, which opens the Program tab (a paired browser window) through the
39
+ * same path as the top bar's Program button. Because the open happens outside a
40
+ * user gesture the browser may block the pop-up; the editor then shows its
41
+ * "Allow pop-up to continue" modal and the tab opens when the user confirms.
42
+ * `get()` reports `"program"` only for code running in the Program tab itself.
43
+ * Prefer {@linkcode PluginWorkspaceApi.openProgramMode} when you need to know
44
+ * the tab is ready before calling `program.spreadsheet.*`.
41
45
  */
42
46
  export declare abstract class PluginCoreModeApi {
43
47
  constructor();
@@ -76,16 +80,24 @@ export declare abstract class PluginCoreModeApi {
76
80
  * Switch the editor to another application mode — the same action as
77
81
  * clicking that tab in the top menu bar.
78
82
  *
79
- * Supported: `"design"`, `"bim"`, `"present"`. Switching to
80
- * `"program"` is rejected with `PRECONDITION_FAILED` (the Program surface
81
- * opens in its own browser tab in the product; a plugin cannot open one).
83
+ * `"design"`, `"bim"` and `"present"` switch in place. `"program"` opens
84
+ * the Program tab (a paired browser window) exactly as the top bar's Program
85
+ * button does, and resolves once that tab has connected to the editor (up to
86
+ * ~90s — the browser may block the pop-up, in which case the editor shows an
87
+ * "Allow pop-up to continue" modal and waits for the user to confirm).
88
+ * Idempotent when the Program tab is already open. Note `get()` in the model
89
+ * tab keeps reporting the model tab's own mode afterwards; the Program tab is
90
+ * a separate window.
82
91
  *
83
92
  * @param mode - Target mode token from {@linkcode PluginAppMode}
84
93
  * @returns The committed `{ mode }` after the switch.
94
+ * @throws `PRECONDITION_FAILED` for `"program"` when the user dismisses the
95
+ * pop-up modal or the tab does not connect within the timeout.
85
96
  *
86
97
  * @examplePrompt Switch to present mode
87
98
  * @examplePrompt Open BIM mode
88
99
  * @examplePrompt Go back to design mode
100
+ * @examplePrompt Open program mode
89
101
  *
90
102
  * # Example
91
103
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/mode/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;EAAkD,CAAA;AAC5E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,eAAO,MAAM,qBAAqB;;;;;;;iBAEhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,uBAAuB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+5,8 @@ import { ComponentHandle } from "../../../handles";
5
5
  * Proposals — read and edit the project's design options ("proposals").
6
6
  *
7
7
  * A **proposal** is a design option: one of several variants of the same
8
- * project. Each proposal owns a set of buckets (a bucket == a drawing layer),
8
+ * project. Each proposal owns a set of buckets (a bucket is a layer in the
9
+ * Layers panel; read them with `core.layers.get` / {@linkcode PluginCoreLayersApi}),
9
10
  * and switching the active proposal shows/hides the buckets it owns. Proposals
10
11
  * are **infrastructure**, not design — they own the buckets/layers geometry
11
12
  * lives in — so they sit under `core`, not `design` (constitution §2A).
@@ -305,8 +306,8 @@ export declare abstract class PluginCoreProposalsApi {
305
306
  * | `id` | `string` | Stable public proposal id (e.g. `"prop_1"`) |
306
307
  * | `name` | `string` | Display name (≤ 24 chars) |
307
308
  * | `isActive` | `boolean` | Whether this is the active proposal |
308
- * | `defaultBucketId` | `string` | Id of the proposal's default bucket (cannot be unshared) |
309
- * | `bucketIds` | `string[]` | Ids of every bucket (layer) the proposal owns |
309
+ * | `defaultBucketId` | `string` | Id of the proposal's default layer (cannot be unshared); read it with `core.layers.get` ({@linkcode PluginCoreLayersApi}) |
310
+ * | `bucketIds` | `string[]` | Ids of every layer in the Layers panel the proposal owns; read them with `core.layers.get` ({@linkcode PluginCoreLayersApi}) |
310
311
  * | `createdAt` | `string` | ISO creation timestamp |
311
312
  * | `createdBy` | `string` | User id of the creator |
312
313
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/proposals/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,8BAAsB,sBAAsB;;IAG1C;;;;;;;;;;;;;;;OAeG;aACa,IAAI,IAAI,eAAe,CAAC,6BAA6B,CAAC;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,MAAM,6BAA6B;;;;;;;;;;iBAgBtC,CAAA;AACJ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED,gFAAgF;AAChF,eAAO,MAAM,+BAA+B;;;;;;;;iBAAwB,CAAA;AACpE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;iBAE3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B;;;;iBAevC,CAAA;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/proposals/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,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ED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAA"}
@@ -2,6 +2,7 @@ import * as z from "zod";
2
2
  import { PluginApiReturn } from "../../../types";
3
3
  import { ComponentHandle } from "../../../handles";
4
4
  import { PluginStoryGetProperty, PluginStoryGetResult, PluginStoryCreateResult, PluginStoryUpdateResult, PluginStorySetActiveResult, PluginStoryDeleteResult, PluginStoryDuplicateResult } from "../../entity/story";
5
+ import { PluginCoreStoreysLayersApi } from "./layers";
5
6
  /**
6
7
  * Storey (floor) management.
7
8
  *
@@ -14,10 +15,20 @@ import { PluginStoryGetProperty, PluginStoryGetResult, PluginStoryCreateResult,
14
15
  * API calls** that return Promises and support undo/redo via Snaptrude's command
15
16
  * system (except {@linkcode PluginCoreStoreysApi.setActive}, a view change).
16
17
  *
18
+ * - {@linkcode PluginCoreStoreysApi.layers} — each storey's sketch surfaces
19
+ * (Wall, Rough) and imported underlays (CAD, PDF, image, terrain): list, get,
20
+ * active layer get/set, show/hide. Not the Layers panel; that is `core.layers`.
21
+ *
17
22
  * Accessed via `snaptrude.core.storeys`.
18
23
  */
19
24
  export declare abstract class PluginCoreStoreysApi {
20
25
  constructor();
26
+ /**
27
+ * Storey layers — each storey's sketch surfaces and imported underlays (ids
28
+ * like `ly_5`), formerly `core.layers`. Not the layers in the Layers panel;
29
+ * use `core.layers` for those. See {@linkcode PluginCoreStoreysLayersApi}.
30
+ */
31
+ abstract layers: PluginCoreStoreysLayersApi;
21
32
  /**
22
33
  * Get properties of a storey by its storey number.
23
34
  *
@@ -154,12 +165,15 @@ export declare abstract class PluginCoreStoreysApi {
154
165
  /**
155
166
  * Make a storey the active storey — the same as clicking it in the storey/layer
156
167
  * panel. Subsequent draws and creates target this storey, and in 2D the
157
- * viewport switches to it. This is a view/navigation change: it is **not**
168
+ * viewport switches to that storey's plan (and its cut range), unless the
169
+ * active view is already a plan on it.
170
+ * This is a view/navigation change: it is **not**
158
171
  * undoable and commits nothing to the model.
159
172
  *
160
173
  * @param storyValue - Integer storey number to activate
161
174
  * @returns A {@linkcode PluginStorySetActiveResult} echoing the now-active `storyValue`
162
- * @throws `PRECONDITION_FAILED` if no storey has the given value
175
+ * @throws `PRECONDITION_FAILED` if no storey has the given value, or in 2D if
176
+ * the storey has no plan
163
177
  *
164
178
  * @examplePrompt Switch to the second floor
165
179
  * @examplePrompt Make the ground storey active
@@ -262,4 +276,5 @@ export declare const PluginCoreStoreysListResult: z.ZodObject<{
262
276
  }, z.core.$strip>>;
263
277
  }, z.core.$strip>;
264
278
  export type PluginCoreStoreysListResult = z.infer<typeof PluginCoreStoreysListResult>;
279
+ export * from "./layers";
265
280
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EAEpB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAE3B;;;;;;;;;;;;;GAaG;AACH,8BAAsB,oBAAoB;;IAGxC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;aACa,GAAG,CACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,sBAAsB,EAAE,GACnC,eAAe,CAAC,oBAAoB,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;OAqBG;aACa,IAAI,IAAI,eAAe,CAAC,2BAA2B,CAAC;IAEpE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;aACa,MAAM,CACpB,UAAU,EAAE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,EAAE,IAAI,GAAG,MAAM,EACxB,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAC7D,eAAe,CAAC,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA;AAED,cAAc,UAAU,CAAA"}
@@ -0,0 +1,408 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../../types";
3
+ /**
4
+ * Storey layers — read and toggle a storey's sketch surfaces and imported
5
+ * underlays.
6
+ *
7
+ * These are each storey's built-in sketch surfaces (Wall, Rough) and its
8
+ * imported underlays (CAD, PDF, images, terrain, neighbourhood buildings), with
9
+ * ids like `ly_5`. They are **NOT** the layers in the product's Layers panel in
10
+ * the left sidebar; use {@linkcode PluginCoreLayersApi} (`core.layers`) for
11
+ * those. They are also not wall/floor construction-assembly material layers.
12
+ *
13
+ * Reads return plain records and never throw for a missing layer (`get` and
14
+ * `getActive` return `null`, `list` returns `[]`).
15
+ *
16
+ * Storey layers are created only by storey creation and `core.io.import.*`;
17
+ * delete underlays with `core.io.underlay.delete` / `core.io.terrain.delete`.
18
+ *
19
+ * Sub-namespace members typed as optional (`?`) are **authored ahead of the
20
+ * host** — declared so plugins and codegen can see the shape, but kept out of the
21
+ * discovery manifest until the host lands them (at which point they are promoted
22
+ * to required `abstract` members).
23
+ *
24
+ * Accessed via `snaptrude.core.storeys.layers` (formerly `core.layers`).
25
+ *
26
+ * Formerly `core.layers`. Calls in that shape on `core.layers` (`list(storeyId)`,
27
+ * `getActive(storeyId)`, `get` / `setActive` / `update(layerId, hidden)` with a
28
+ * `ly_*` id) are still routed here, so plugins built before 0.9.15 keep working.
29
+ */
30
+ export declare abstract class PluginCoreStoreysLayersApi {
31
+ constructor();
32
+ /**
33
+ * List the storey layers of a storey.
34
+ *
35
+ * Optionally filter to a single {@linkcode PluginCoreStoreyLayerType}.
36
+ *
37
+ * @param storeyId - The storey whose layers to read.
38
+ * @param layerType - Optional {@linkcode PluginCoreStoreyLayerType} filter.
39
+ * @returns A {@linkcode PluginCoreStoreysLayersListResult} with a `layers` array
40
+ * (empty when the storey is missing or has no matching layers).
41
+ *
42
+ * @examplePrompt List the sketch surfaces and underlays on this storey
43
+ * @examplePrompt Show all the PDF underlays on storey st_2
44
+ * @examplePrompt What CAD layers are on the ground floor?
45
+ *
46
+ * # Example
47
+ * ```ts
48
+ * const { layers } = await snaptrude.core.storeys.layers.list("st_2")
49
+ * for (const l of layers) console.log(l.name, l.layerType, l.hidden)
50
+ * ```
51
+ */
52
+ abstract list(storeyId: string, layerType?: PluginCoreStoreyLayerType): PluginApiReturn<PluginCoreStoreysLayersListResult>;
53
+ /**
54
+ * Get a single storey layer by id.
55
+ *
56
+ * @param layerId - The id of the layer to read.
57
+ * @returns The matching {@linkcode PluginCoreStoreyLayer}, or `null` if no layer has
58
+ * that id.
59
+ *
60
+ * @examplePrompt Get the storey drawing layer with id ly_5
61
+ * @examplePrompt Is storey layer ly_5 hidden?
62
+ * @examplePrompt Look up a storey underlay layer by id
63
+ *
64
+ * # Example
65
+ * ```ts
66
+ * const layer = await snaptrude.core.storeys.layers.get("ly_5")
67
+ * if (layer) console.log(layer.name, layer.hidden, layer.locked)
68
+ * ```
69
+ */
70
+ abstract get(layerId: string): PluginApiReturn<PluginCoreStoreysLayersGetResult>;
71
+ /**
72
+ * Get the active storey layer of a storey.
73
+ *
74
+ * The active layer is the one new sketch geometry is drawn onto. Paired with
75
+ * {@linkcode PluginCoreStoreysLayersApi.setActive}.
76
+ *
77
+ * @param storeyId - The storey whose active layer to read.
78
+ * @returns The active {@linkcode PluginCoreStoreyLayer}, or `null` if the storey is
79
+ * missing or has no active layer.
80
+ *
81
+ * @examplePrompt Which sketch surface (Wall/Rough) is active on this storey?
82
+ * @examplePrompt Get the active storey drawing layer on st_2
83
+ * @examplePrompt Which storey layer is new sketch geometry drawn onto?
84
+ *
85
+ * # Example
86
+ * ```ts
87
+ * const active = await snaptrude.core.storeys.layers.getActive("st_2")
88
+ * if (active) console.log(active.name)
89
+ * ```
90
+ */
91
+ abstract getActive(storeyId: string): PluginApiReturn<PluginCoreStoreysLayersGetActiveResult>;
92
+ /**
93
+ * Make a storey layer the active layer of its storey.
94
+ *
95
+ * Paired with {@linkcode PluginCoreStoreysLayersApi.getActive}.
96
+ *
97
+ * @param layerId - The id of the layer to activate.
98
+ * @returns The id of the now-active layer.
99
+ * @throws If no layer has the given id.
100
+ *
101
+ * @examplePrompt Switch this storey's sketch surface to the Rough layer
102
+ * @examplePrompt Make storey layer ly_5 the active sketch surface
103
+ * @examplePrompt Switch the active storey layer to the CAD underlay
104
+ *
105
+ * # Example
106
+ * ```ts
107
+ * await snaptrude.core.storeys.layers.setActive("ly_5")
108
+ * ```
109
+ */
110
+ abstract setActive(layerId: string): PluginApiReturn<PluginCoreStoreysLayersSetActiveResult>;
111
+ /**
112
+ * Update a storey layer's visibility.
113
+ *
114
+ * A **sparse** update: omit `hidden` to leave it unchanged. This edit is **not
115
+ * undoable**. Locking and renaming are not exposed — layer `locked` is a
116
+ * read-only status here (setting it at runtime does not lock the live meshes or
117
+ * show a padlock in the app until a reload), and a rename cascades to every member
118
+ * mesh's `layerName`, a corruption hazard.
119
+ *
120
+ * @param layerId - The id of the layer to update.
121
+ * @param hidden - New hidden state (unchanged if omitted).
122
+ * @returns The updated {@linkcode PluginCoreStoreyLayer}.
123
+ * @throws If no layer has the given id.
124
+ *
125
+ * @examplePrompt Hide the PDF underlay layer
126
+ * @examplePrompt Show the CAD underlay again
127
+ * @examplePrompt Hide storey layer ly_5
128
+ *
129
+ * # Example
130
+ * ```ts
131
+ * const layer = await snaptrude.core.storeys.layers.update("ly_5", true)
132
+ * ```
133
+ */
134
+ abstract update(layerId: string, hidden?: boolean): PluginApiReturn<PluginCoreStoreysLayersUpdateResult>;
135
+ }
136
+ /**
137
+ * The kind of a storey layer.
138
+ *
139
+ * Author-drawable kinds (`floor`, `wall`, `ceiling`, `rough`, `default`) plus
140
+ * read-only imported underlays (`image`, `cad`, `pdf`, `terrain`, `buildings`).
141
+ */
142
+ export declare const PluginCoreStoreyLayerType: z.ZodEnum<{
143
+ default: "default";
144
+ terrain: "terrain";
145
+ buildings: "buildings";
146
+ cad: "cad";
147
+ floor: "floor";
148
+ wall: "wall";
149
+ ceiling: "ceiling";
150
+ rough: "rough";
151
+ image: "image";
152
+ pdf: "pdf";
153
+ }>;
154
+ export type PluginCoreStoreyLayerType = z.infer<typeof PluginCoreStoreyLayerType>;
155
+ /**
156
+ * A storey layer on a storey.
157
+ *
158
+ * | Property | Type | Description |
159
+ * |---|---|---|
160
+ * | `id` | `string` | Stable public layer id (e.g. `"ly_5"`) |
161
+ * | `name` | `string` | Display name |
162
+ * | `layerType` | {@linkcode PluginCoreStoreyLayerType} | The layer's kind |
163
+ * | `storeyId` | `string` | The stable id of the storey this layer belongs to |
164
+ * | `buildingId` | `string` | The stable id of the building this layer belongs to |
165
+ * | `hidden` | `boolean` | Whether the layer is hidden |
166
+ * | `locked` | `boolean` | Whether the layer is locked against edits |
167
+ * | `contentSummary` | `object` | A summary of what the layer holds (see below) |
168
+ *
169
+ * `contentSummary`:
170
+ *
171
+ * | Property | Type | Description |
172
+ * |---|---|---|
173
+ * | `hasFloorplan` | `boolean` | Whether the layer holds drawn floorplan geometry |
174
+ * | `pdfCount` | `number` | Number of PDF underlays on the layer |
175
+ * | `hasTerrain` | `boolean` | Whether the layer holds terrain |
176
+ */
177
+ export declare const PluginCoreStoreyLayer: z.ZodObject<{
178
+ id: z.ZodString;
179
+ name: z.ZodString;
180
+ layerType: z.ZodEnum<{
181
+ default: "default";
182
+ terrain: "terrain";
183
+ buildings: "buildings";
184
+ cad: "cad";
185
+ floor: "floor";
186
+ wall: "wall";
187
+ ceiling: "ceiling";
188
+ rough: "rough";
189
+ image: "image";
190
+ pdf: "pdf";
191
+ }>;
192
+ storeyId: z.ZodString;
193
+ buildingId: z.ZodString;
194
+ hidden: z.ZodBoolean;
195
+ locked: z.ZodBoolean;
196
+ contentSummary: z.ZodObject<{
197
+ hasFloorplan: z.ZodBoolean;
198
+ pdfCount: z.ZodNumber;
199
+ hasTerrain: z.ZodBoolean;
200
+ }, z.core.$strip>;
201
+ }, z.core.$strip>;
202
+ export type PluginCoreStoreyLayer = z.infer<typeof PluginCoreStoreyLayer>;
203
+ /**
204
+ * Arguments for {@linkcode PluginCoreStoreysLayersApi.list}.
205
+ *
206
+ * | Property | Type | Description |
207
+ * |---|---|---|
208
+ * | `storeyId` | `string` | The storey whose layers to read |
209
+ * | `layerType` | {@linkcode PluginCoreStoreyLayerType}` \| undefined` | Optional layer-type filter |
210
+ */
211
+ export declare const PluginCoreStoreysLayersListArgs: z.ZodObject<{
212
+ storeyId: z.ZodString;
213
+ layerType: z.ZodOptional<z.ZodEnum<{
214
+ default: "default";
215
+ terrain: "terrain";
216
+ buildings: "buildings";
217
+ cad: "cad";
218
+ floor: "floor";
219
+ wall: "wall";
220
+ ceiling: "ceiling";
221
+ rough: "rough";
222
+ image: "image";
223
+ pdf: "pdf";
224
+ }>>;
225
+ }, z.core.$strip>;
226
+ export type PluginCoreStoreysLayersListArgs = z.infer<typeof PluginCoreStoreysLayersListArgs>;
227
+ /**
228
+ * Result of {@linkcode PluginCoreStoreysLayersApi.list}.
229
+ *
230
+ * | Property | Type | Description |
231
+ * |---|---|---|
232
+ * | `layers` | {@linkcode PluginCoreStoreyLayer}`[]` | The storey's storey layers (empty when missing or none match) |
233
+ */
234
+ export declare const PluginCoreStoreysLayersListResult: z.ZodObject<{
235
+ layers: z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ name: z.ZodString;
238
+ layerType: z.ZodEnum<{
239
+ default: "default";
240
+ terrain: "terrain";
241
+ buildings: "buildings";
242
+ cad: "cad";
243
+ floor: "floor";
244
+ wall: "wall";
245
+ ceiling: "ceiling";
246
+ rough: "rough";
247
+ image: "image";
248
+ pdf: "pdf";
249
+ }>;
250
+ storeyId: z.ZodString;
251
+ buildingId: z.ZodString;
252
+ hidden: z.ZodBoolean;
253
+ locked: z.ZodBoolean;
254
+ contentSummary: z.ZodObject<{
255
+ hasFloorplan: z.ZodBoolean;
256
+ pdfCount: z.ZodNumber;
257
+ hasTerrain: z.ZodBoolean;
258
+ }, z.core.$strip>;
259
+ }, z.core.$strip>>;
260
+ }, z.core.$strip>;
261
+ export type PluginCoreStoreysLayersListResult = z.infer<typeof PluginCoreStoreysLayersListResult>;
262
+ /**
263
+ * Arguments for {@linkcode PluginCoreStoreysLayersApi.get}.
264
+ *
265
+ * | Property | Type | Description |
266
+ * |---|---|---|
267
+ * | `layerId` | `string` | The id of the layer to read |
268
+ */
269
+ export declare const PluginCoreStoreysLayersGetArgs: z.ZodObject<{
270
+ layerId: z.ZodString;
271
+ }, z.core.$strip>;
272
+ export type PluginCoreStoreysLayersGetArgs = z.infer<typeof PluginCoreStoreysLayersGetArgs>;
273
+ /**
274
+ * Result of {@linkcode PluginCoreStoreysLayersApi.get} — the layer, or `null`
275
+ * when no layer has the given id.
276
+ */
277
+ export declare const PluginCoreStoreysLayersGetResult: z.ZodNullable<z.ZodObject<{
278
+ id: z.ZodString;
279
+ name: z.ZodString;
280
+ layerType: z.ZodEnum<{
281
+ default: "default";
282
+ terrain: "terrain";
283
+ buildings: "buildings";
284
+ cad: "cad";
285
+ floor: "floor";
286
+ wall: "wall";
287
+ ceiling: "ceiling";
288
+ rough: "rough";
289
+ image: "image";
290
+ pdf: "pdf";
291
+ }>;
292
+ storeyId: z.ZodString;
293
+ buildingId: z.ZodString;
294
+ hidden: z.ZodBoolean;
295
+ locked: z.ZodBoolean;
296
+ contentSummary: z.ZodObject<{
297
+ hasFloorplan: z.ZodBoolean;
298
+ pdfCount: z.ZodNumber;
299
+ hasTerrain: z.ZodBoolean;
300
+ }, z.core.$strip>;
301
+ }, z.core.$strip>>;
302
+ export type PluginCoreStoreysLayersGetResult = z.infer<typeof PluginCoreStoreysLayersGetResult>;
303
+ /**
304
+ * Arguments for {@linkcode PluginCoreStoreysLayersApi.getActive}.
305
+ *
306
+ * | Property | Type | Description |
307
+ * |---|---|---|
308
+ * | `storeyId` | `string` | The storey whose active layer to read |
309
+ */
310
+ export declare const PluginCoreStoreysLayersGetActiveArgs: z.ZodObject<{
311
+ storeyId: z.ZodString;
312
+ }, z.core.$strip>;
313
+ export type PluginCoreStoreysLayersGetActiveArgs = z.infer<typeof PluginCoreStoreysLayersGetActiveArgs>;
314
+ /**
315
+ * Result of {@linkcode PluginCoreStoreysLayersApi.getActive} — the active layer,
316
+ * or `null` when the storey is missing or has no active layer.
317
+ */
318
+ export declare const PluginCoreStoreysLayersGetActiveResult: z.ZodNullable<z.ZodObject<{
319
+ id: z.ZodString;
320
+ name: z.ZodString;
321
+ layerType: z.ZodEnum<{
322
+ default: "default";
323
+ terrain: "terrain";
324
+ buildings: "buildings";
325
+ cad: "cad";
326
+ floor: "floor";
327
+ wall: "wall";
328
+ ceiling: "ceiling";
329
+ rough: "rough";
330
+ image: "image";
331
+ pdf: "pdf";
332
+ }>;
333
+ storeyId: z.ZodString;
334
+ buildingId: z.ZodString;
335
+ hidden: z.ZodBoolean;
336
+ locked: z.ZodBoolean;
337
+ contentSummary: z.ZodObject<{
338
+ hasFloorplan: z.ZodBoolean;
339
+ pdfCount: z.ZodNumber;
340
+ hasTerrain: z.ZodBoolean;
341
+ }, z.core.$strip>;
342
+ }, z.core.$strip>>;
343
+ export type PluginCoreStoreysLayersGetActiveResult = z.infer<typeof PluginCoreStoreysLayersGetActiveResult>;
344
+ /**
345
+ * Arguments for {@linkcode PluginCoreStoreysLayersApi.setActive}.
346
+ *
347
+ * | Property | Type | Description |
348
+ * |---|---|---|
349
+ * | `layerId` | `string` | The id of the layer to activate |
350
+ */
351
+ export declare const PluginCoreStoreysLayersSetActiveArgs: z.ZodObject<{
352
+ layerId: z.ZodString;
353
+ }, z.core.$strip>;
354
+ export type PluginCoreStoreysLayersSetActiveArgs = z.infer<typeof PluginCoreStoreysLayersSetActiveArgs>;
355
+ /**
356
+ * Result of {@linkcode PluginCoreStoreysLayersApi.setActive} — the now-active
357
+ * layer's id.
358
+ *
359
+ * | Property | Type | Description |
360
+ * |---|---|---|
361
+ * | `layerId` | `string` | The id of the now-active layer |
362
+ */
363
+ export declare const PluginCoreStoreysLayersSetActiveResult: z.ZodObject<{
364
+ layerId: z.ZodString;
365
+ }, z.core.$strip>;
366
+ export type PluginCoreStoreysLayersSetActiveResult = z.infer<typeof PluginCoreStoreysLayersSetActiveResult>;
367
+ /**
368
+ * Arguments for {@linkcode PluginCoreStoreysLayersApi.update}. Sparse — only the
369
+ * provided fields are changed.
370
+ *
371
+ * | Property | Type | Description |
372
+ * |---|---|---|
373
+ * | `layerId` | `string` | The id of the layer to update |
374
+ * | `hidden` | `boolean \| undefined` | New hidden state (unchanged if omitted) |
375
+ */
376
+ export declare const PluginCoreStoreysLayersUpdateArgs: z.ZodObject<{
377
+ layerId: z.ZodString;
378
+ hidden: z.ZodOptional<z.ZodBoolean>;
379
+ }, z.core.$strip>;
380
+ export type PluginCoreStoreysLayersUpdateArgs = z.infer<typeof PluginCoreStoreysLayersUpdateArgs>;
381
+ /** Result of {@linkcode PluginCoreStoreysLayersApi.update} — the updated layer. */
382
+ export declare const PluginCoreStoreysLayersUpdateResult: z.ZodObject<{
383
+ id: z.ZodString;
384
+ name: z.ZodString;
385
+ layerType: z.ZodEnum<{
386
+ default: "default";
387
+ terrain: "terrain";
388
+ buildings: "buildings";
389
+ cad: "cad";
390
+ floor: "floor";
391
+ wall: "wall";
392
+ ceiling: "ceiling";
393
+ rough: "rough";
394
+ image: "image";
395
+ pdf: "pdf";
396
+ }>;
397
+ storeyId: z.ZodString;
398
+ buildingId: z.ZodString;
399
+ hidden: z.ZodBoolean;
400
+ locked: z.ZodBoolean;
401
+ contentSummary: z.ZodObject<{
402
+ hasFloorplan: z.ZodBoolean;
403
+ pdfCount: z.ZodNumber;
404
+ hasTerrain: z.ZodBoolean;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strip>;
407
+ export type PluginCoreStoreysLayersUpdateResult = z.infer<typeof PluginCoreStoreysLayersUpdateResult>;
408
+ //# sourceMappingURL=layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../../src/api/core/storeys/layers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;;OAmBG;aACa,IAAI,CAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,yBAAyB,GACpC,eAAe,CAAC,iCAAiC,CAAC;IAErD;;;;;;;;;;;;;;;;OAgBG;aACa,GAAG,CACjB,OAAO,EAAE,MAAM,GACd,eAAe,CAAC,gCAAgC,CAAC;IAEpD;;;;;;;;;;;;;;;;;;;OAmBG;aACa,SAAS,CACvB,QAAQ,EAAE,MAAM,GACf,eAAe,CAAC,sCAAsC,CAAC;IAE1D;;;;;;;;;;;;;;;;;OAiBG;aACa,SAAS,CACvB,OAAO,EAAE,MAAM,GACd,eAAe,CAAC,sCAAsC,CAAC;IAE1D;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,MAAM,CACpB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO,GACf,eAAe,CAAC,mCAAmC,CAAC;CACxD;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;EAWpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF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