@octaviaflow/flow-rules 0.11.1 → 0.13.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/dist/catalog/actions/console-log/config.d.ts +1 -0
- package/dist/catalog/actions/delay/config.d.ts +1 -0
- package/dist/catalog/actions/http-request/config.d.ts +4 -0
- package/dist/catalog/communication/email-send/config.d.ts +2 -0
- package/dist/catalog/communication/webhook-call/config.d.ts +1 -0
- package/dist/catalog/communication/whatsapp-send/config.d.ts +1 -0
- package/dist/catalog/general/aggregate/config.d.ts +126 -0
- package/dist/catalog/general/aggregate/index.d.ts +11 -0
- package/dist/catalog/general/query/config.d.ts +4 -0
- package/dist/catalog/general/transform/config.d.ts +15 -0
- package/dist/catalog/index.d.ts +2 -1
- package/dist/catalog/isOneOf.d.ts +7 -0
- package/dist/catalog/logic/condition/config.d.ts +1 -0
- package/dist/catalog/logic/for-each/config.d.ts +4 -0
- package/dist/catalog/logic/for-each/recordSchema.d.ts +26 -0
- package/dist/catalog/storage/file-operation/config.d.ts +1 -0
- package/dist/catalog/transforms/format/config.d.ts +1 -0
- package/dist/catalog/triggers/schedule-trigger/config.d.ts +2 -0
- package/dist/catalog/triggers/webhook-trigger/config.d.ts +1 -0
- package/dist/catalog/types.d.ts +1 -0
- package/dist/catalog/utility/debug/config.d.ts +1 -0
- package/dist/index.cjs +445 -22
- package/dist/index.d.ts +4 -2
- package/dist/index.js +445 -22
- package/dist/rules/configContracts.d.ts +25 -2
- package/package.json +1 -1
|
@@ -42,7 +42,23 @@ export type ContractFieldType = "string" | "text" | "select" | "json" | "connect
|
|
|
42
42
|
export interface ContractField {
|
|
43
43
|
type: string;
|
|
44
44
|
required?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The values a `select` accepts, when the set is fixed. `describe_action_type`
|
|
47
|
+
* lists them and the fence warns on a value outside them (`FIELD_BAD_OPTION`).
|
|
48
|
+
* A select with no `options` must say `dynamic: true` instead — the catalog
|
|
49
|
+
* test fails on one that says neither, because a select an agent cannot see
|
|
50
|
+
* the values of is a guess waiting to fail at run time (`mode: "append"` on a
|
|
51
|
+
* Transform, DEV-421).
|
|
52
|
+
*/
|
|
45
53
|
options?: ReadonlyArray<string | number>;
|
|
54
|
+
/**
|
|
55
|
+
* The values come from the customer's own system or from the upstream data
|
|
56
|
+
* (an object name, a sheet tab, an array path) — not from the catalog. Say
|
|
57
|
+
* where in `description`; `describe_connector_object` is the usual answer.
|
|
58
|
+
*/
|
|
59
|
+
dynamic?: boolean;
|
|
60
|
+
/** Shown by the panel and by `describe_action_type`. */
|
|
61
|
+
description?: string;
|
|
46
62
|
[extra: string]: unknown;
|
|
47
63
|
}
|
|
48
64
|
export interface ConfigContract {
|
|
@@ -54,10 +70,10 @@ export interface ConfigContract {
|
|
|
54
70
|
};
|
|
55
71
|
}
|
|
56
72
|
/**
|
|
57
|
-
* Every action in the catalog, keyed by action id — since 0.11.0 all
|
|
73
|
+
* Every action in the catalog, keyed by action id — since 0.11.0 all
|
|
58
74
|
* definitions carry one (the last fifteen: group, ai_agent, idp_extract,
|
|
59
75
|
* connector_trigger, the five file-format actions and the six storage
|
|
60
|
-
* actions). `contractFor` is undefined only for an id the catalog does not
|
|
76
|
+
* actions; 0.13.0 added `aggregate`, the 38th). `contractFor` is undefined only for an id the catalog does not
|
|
61
77
|
* know, and then consumers fall back to `inputSchema` alone. A new action is
|
|
62
78
|
* a `config.ts` plus one line here; the drift test covers it from then on.
|
|
63
79
|
*/
|
|
@@ -80,6 +96,13 @@ export declare function isEditorPrivateKey(key: string): boolean;
|
|
|
80
96
|
* editor should read.
|
|
81
97
|
*/
|
|
82
98
|
export declare function contractFieldsFor(definition: ActionDefinition): FieldConfig[];
|
|
99
|
+
/**
|
|
100
|
+
* Every `select` in a contract that names neither its `options` nor
|
|
101
|
+
* `dynamic: true`. A non-empty result is a bug: `describe_action_type` would
|
|
102
|
+
* show the field as a choice with nothing to choose from, and an agent would
|
|
103
|
+
* guess. The catalog test fails on any.
|
|
104
|
+
*/
|
|
105
|
+
export declare function selectsWithoutValues(actionId: string): string[];
|
|
83
106
|
/**
|
|
84
107
|
* `inputSchema` keys the contract does NOT know. A non-empty result is a bug:
|
|
85
108
|
* `describe_action_type` is advertising a key the platform does not store under
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octaviaflow/flow-rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "The flow action catalog and the rules engine behind Flow Doctor — one definition of what a step accepts and what makes a flow valid, shared by the editor and the server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|