@frontera-sdk/functions 1.52.13 → 1.52.15
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 +2 -2
- package/src/types.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontera-sdk/functions",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.15",
|
|
4
4
|
"description": "Author Frontera functions: manifest, triggers and the typed handler contract.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontera",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "^5.9.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@frontera-sdk/blueprint": "1.52.
|
|
45
|
+
"@frontera-sdk/blueprint": "1.52.15",
|
|
46
46
|
"cron-parser": "^5.0.6"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/types.ts
CHANGED
|
@@ -409,6 +409,10 @@ export type ActionRequestLifecycle =
|
|
|
409
409
|
export type ActionSubmission = {
|
|
410
410
|
/** Published Action apiName. Requires a `governed:<apiName>` grant. */
|
|
411
411
|
action: string
|
|
412
|
+
/**
|
|
413
|
+
* The Action's inputs by name. An input that attaches a file accepts one of
|
|
414
|
+
* this run's file inputs as passed in — `{ fileId }`, e.g. `ctx.input.photo`.
|
|
415
|
+
*/
|
|
412
416
|
input: Record<string, unknown>
|
|
413
417
|
/** Required when the Action's definition says so. */
|
|
414
418
|
reason?: string
|
|
@@ -592,6 +596,9 @@ export interface AutomationContext {
|
|
|
592
596
|
*
|
|
593
597
|
* The returned `lifecycle` is where the request stopped, not proof of
|
|
594
598
|
* effect. Poll the ledger, or let the Action's Business Event tell you.
|
|
599
|
+
*
|
|
600
|
+
* An Action input that attaches a file accepts `{ fileId }` for one of this
|
|
601
|
+
* run's own file inputs; the platform stores it in the Action's media set.
|
|
595
602
|
*/
|
|
596
603
|
submit(request: ActionSubmission): Promise<ActionSubmitResult>
|
|
597
604
|
}
|