@supersoniks/concorde 4.9.91 → 4.9.92
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +156 -156
- package/concorde-core.es.js +2348 -2331
- package/dist/concorde-core.bundle.js +156 -156
- package/dist/concorde-core.es.js +2348 -2331
- package/dist/js/core/decorators/api.js +64 -51
- package/dist/js/core/decorators/api.js.map +1 -1
- package/dist/types/core/decorators/api.d.ts +10 -5
- package/dist/types/core/decorators/api.d.ts.map +1 -1
- package/docs/assets/{index-BL6WVF7g.css → index-D2Q3JyQ6.css} +1 -1
- package/docs/assets/{index-DVn8AeyA.js → index-DURr6O71.js} +466 -568
- package/docs/crawl/docs/_decorators/get.html +35 -10
- package/docs/crawl/docs/_decorators/patch.html +13 -5
- package/docs/crawl/docs/_decorators/post.html +39 -10
- package/docs/crawl/docs/_decorators/put.html +13 -5
- package/docs/crawl/hubs/decorators.html +43 -40
- package/docs/crawl/hubs/remote-data.html +43 -40
- package/docs/index.html +2 -2
- package/docs/llms-full.txt +98 -23
- package/docs/llms.txt +1 -1
- package/docs/src/docs/_decorators/get.md +39 -5
- package/docs/src/docs/_decorators/patch.md +8 -3
- package/docs/src/docs/_decorators/post.md +39 -6
- package/docs/src/docs/_decorators/put.md +8 -3
- package/docs/src/docs/search/docs-search.json +103 -183
- package/docs/src/tsconfig.json +268 -268
- package/package.json +1 -1
- package/src/core/decorators/api.post.spec.ts +2 -2
- package/src/core/decorators/api.spec.ts +47 -6
- package/src/core/decorators/api.ts +100 -64
- package/src/docs/_decorators/get.md +12 -5
- package/src/docs/_decorators/patch.md +7 -2
- package/src/docs/_decorators/post.md +12 -7
- package/src/docs/_decorators/put.md +7 -2
- package/src/docs/components/docs-demo-sources.ts +8 -8
- package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +2 -2
- package/src/docs/search/docs-search.json +2 -2
|
@@ -13,17 +13,21 @@ const updateUser = put(new Endpoint<User>("users/42"), bodyKey);
|
|
|
13
13
|
|
|
14
14
|
@updateUser
|
|
15
15
|
@state()
|
|
16
|
-
payload
|
|
16
|
+
payload?: ApiResult<User>;
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
To run the operation again from the component:
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
|
-
update() {
|
|
23
|
-
updateUser.send(this);
|
|
22
|
+
async update() {
|
|
23
|
+
await updateUser.send(this);
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
`send(component)` returns a Promise resolved after the PUT completes. See
|
|
28
|
+
[@post](#docs/_decorators/post.md/post) for the method-decorator form and the
|
|
29
|
+
`when: "before"` option.
|
|
30
|
+
|
|
27
31
|
The PUT is also sent automatically when the body mutates, unless
|
|
28
32
|
`autoPostOnBodyMutation: false` is set. See
|
|
29
33
|
[@post](#docs/_decorators/post.md/post) for the option details:
|
|
@@ -32,6 +36,7 @@ The PUT is also sent automatically when the body mutates, unless
|
|
|
32
36
|
- `skipIfBodyMissing`
|
|
33
37
|
- `refetchEveryMs`
|
|
34
38
|
- `skipEmptyPlaceholder`
|
|
39
|
+
- `triggerKey`
|
|
35
40
|
|
|
36
41
|
Pass explicit API configuration as the third argument:
|
|
37
42
|
|