optio-contracts 0.7.1 → 0.8.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.
- package/README.md +2 -1
- package/dist/api-to-frontend.d.ts +350 -21
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +35 -3
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/engine-failure-reasons.d.ts +4 -2
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +20 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +215 -14
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +26 -4
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +2 -2
- package/dist/schemas/process.d.ts +37 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +22 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,12 +34,13 @@ The package hosts two contract files. Contract files follow `<server>-to-<client
|
|
|
34
34
|
|
|
35
35
|
### `processesContract` (HTTP, ts-rest)
|
|
36
36
|
|
|
37
|
-
ts-rest router with
|
|
37
|
+
ts-rest router with 12 endpoints, used by `optio-ui` to call `optio-api`. Every endpoint takes the optional query parameters `?database=&prefix=` that select the optio instance; `:id` is either the process `_id` or its `processId`:
|
|
38
38
|
|
|
39
39
|
| Name | Method | Path |
|
|
40
40
|
|------|--------|------|
|
|
41
41
|
| `list` | GET | `/processes` |
|
|
42
42
|
| `get` | GET | `/processes/:id` |
|
|
43
|
+
| `getResult` | GET | `/processes/:id/result` |
|
|
43
44
|
| `getTree` | GET | `/processes/:id/tree` |
|
|
44
45
|
| `getLog` | GET | `/processes/:id/log` |
|
|
45
46
|
| `getTreeLog` | GET | `/processes/:id/tree/log` |
|