@inwink-mcp/backoffice-extension-helpers 1.0.15 → 1.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inwink-mcp/backoffice-extension-helpers",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "author": "inwink",
5
5
  "license": "ISC",
6
6
  "description": "CLI pour bootstrapper, packager et vérifier les extensions backoffice inwink.",
@@ -21,7 +21,7 @@ An unknown key answers `404`. Keys are unique per event / community / customer,
21
21
 
22
22
  ## Definitions
23
23
 
24
- `{shard}/customentitydefinition` — generic routes: `query`, `count`, create (`POST` with `{ "entity": {…} }`),
24
+ `{shard}/customentitydefinition` (on an audience: `{customerId}/audience/{tenantId}/authtenantcustomentitydefinition`) — generic routes: `query`, `count`, create (`POST` with `{ "entity": {…} }`),
25
25
  update (`POST {id}`), `delete`.
26
26
 
27
27
  | Field | Role |
@@ -90,7 +90,7 @@ Relations are returned as `{ "id": "…" }` and loaded only when selected:
90
90
  { "selects": { "$all": true, "company": { "$all": true } } }
91
91
  ```
92
92
 
93
- Filter through a relation with `$any` / `$all` (see [query-language.md](./query-language.md)). Write a relation with `{ "id": "…" }`
93
+ Filter on a to-one relation directly (`{ "owner": { "id": "…" } }`), on a to-many relation with `$any` / `$all` (see [query-language.md](./query-language.md)). Write a relation with `{ "id": "…" }`
94
94
  (single) or `[{ "id": "…" }]` (many).
95
95
 
96
96
  **Upsert by external id** — create or update in one call:
@@ -109,7 +109,7 @@ POST {shard}/customentity/{key}/upsert
109
109
  | `GET {eventId}/customentity/{key}/worktemplate` | Public template |
110
110
  | `{eventId}/customentity/{key}/me/…` | The connected person's own records (`query`, create, update, delete, `worktemplate`) |
111
111
  | `{eventId}/customentity/{key}/related/{relationKey}/…` | Records received through a relation (read only) |
112
- | `GET …/{id}/file/{field}` | Temporary link to a private file |
112
+ | `GET …/me/{id}/file/{field}`, `GET …/related/{relationKey}/{id}/file/{field}` | Temporary link to a private file (own or received records only) |
113
113
 
114
114
  `read: None` answers `404`; `Authenticated` answers `401` to visitors.
115
115