@thatopen/services 0.23.0 → 0.24.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.
@@ -415,6 +415,14 @@ await client.recipes.run('my-recipe', { // only QUEUES a suggestion:
415
415
  `docs()` also answers `folderId` — the id the CDE knows that document by, the
416
416
  bridge between this section and 5c.
417
417
 
418
+ To AUTHOR a suggestion's payload, `OperationBuilder` (same import) writes the
419
+ operation .frag: `new OperationBuilder(target).add(attrs, placement)` /
420
+ `.set(id, attrs)` / `.remove(id)`, then `await builder.build(opId)` gives the
421
+ bytes for `suggest({ payload })`. Attributes go in the TARGET app's own terms
422
+ and units, untranslated. It needs the optional peers `flatbuffers` and
423
+ `@thatopen/fragments` installed (loaded only when `build()` runs — nothing
424
+ else in the package needs them).
425
+
418
426
  This surface is the only supported way in: the storage underneath is private
419
427
  and will move. Never list or write the `bimterop` files directly. The full
420
428
  walkthrough (manifest fields, StaleHistoryError on concurrent syncs, payloads)
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "private": false,
18
- "version": "0.23.0",
18
+ "version": "0.24.0",
19
19
  "main": "dist/index.cjs.js",
20
20
  "module": "dist/index.es.js",
21
21
  "types": "dist/index.d.ts",
@@ -82,16 +82,24 @@
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@thatopen/components": "~3.4.0",
85
+ "@thatopen/fragments": "~3.4.0",
85
86
  "@thatopen/ui": "~3.4.0",
87
+ "flatbuffers": ">=23.0.0",
86
88
  "three": ">=0.182.0"
87
89
  },
88
90
  "peerDependenciesMeta": {
89
91
  "@thatopen/components": {
90
92
  "optional": true
91
93
  },
94
+ "@thatopen/fragments": {
95
+ "optional": true
96
+ },
92
97
  "@thatopen/ui": {
93
98
  "optional": true
94
99
  },
100
+ "flatbuffers": {
101
+ "optional": true
102
+ },
95
103
  "three": {
96
104
  "optional": true
97
105
  }