@listen-fire/movement-lang 0.12.8 → 0.12.10

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.
@@ -26,6 +26,8 @@ export interface ConstructionArg {
26
26
  /** Author-facing label (defaults to `name`). */
27
27
  label?: string;
28
28
  }
29
+ /** The listen config formats this release's checker validates. */
30
+ export type KnownTriggerConfigFormat = 'cron' | 'timezone' | 'fields' | 'strings' | 'type' | 'field' | 'field-value';
29
31
  export interface AdapterSpec {
30
32
  /**
31
33
  * The adapter's full construction signature — the credential (if any) folded
@@ -107,8 +109,23 @@ export interface AdapterSpec {
107
109
  *
108
110
  * `'strings'` is a non-empty list of non-empty quoted strings — the shape
109
111
  * only; the values are the source system's own (Gmail's `labels`).
112
+ *
113
+ * `'type'` is a node the program declares (`payload: <Payment>`): the
114
+ * listen's events are of that type, and the movement it fires is checked
115
+ * against it.
116
+ *
117
+ * `'field'` is one quoted field name of the record the listen's address
118
+ * lands on (TypeScript's `keyof T`); `'field-value'` is a literal value of
119
+ * the field the listen's `'field'`-format key names (`T[K]`): an enum
120
+ * field's choice, a number field's number. Paired by format, so an adapter
121
+ * declares at most one `'field'` key.
122
+ *
123
+ * Any other string is a format a newer module declares and this release
124
+ * does not know: the key's value is a plain value, unchecked, and the
125
+ * checker says so once (an Info), so a module release never breaks a host
126
+ * on an older core.
110
127
  */
111
- triggerConfigFormats?: Record<string, 'cron' | 'timezone' | 'fields' | 'strings'>;
128
+ triggerConfigFormats?: Record<string, KnownTriggerConfigFormat | (string & {})>;
112
129
  /**
113
130
  * Interactive "connect" actions the adapter offers when authoring against
114
131
  * one of its instances. The checker never reads these — they're carried
@@ -650,6 +667,13 @@ export interface PositionSchema {
650
667
  * has two fields wearing one name.
651
668
  */
652
669
  ambiguousProperties?: string[];
670
+ /**
671
+ * Fields a read of this type must pin in its WHERE with `==` (the adapter
672
+ * descriptor's `pinned: true`): the source takes them as the read's
673
+ * arguments, so a read that leaves one out has nothing to ask
674
+ * (MOV_HOP_PIN_REQUIRED).
675
+ */
676
+ pinnedProperties?: string[];
653
677
  /**
654
678
  * A record of this type can be DELETED — the system's own promise, declared
655
679
  * per type in its describe (`deletable: true`) where its `deleteRecord`
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.12.8";
1
+ export declare const PACKAGE_VERSION = "0.12.10";
@@ -5,4 +5,4 @@ exports.PACKAGE_VERSION = void 0;
5
5
  // scripts/build-packages.cjs (a source and its build sit at different depths
6
6
  // beside package.json, so neither can require it by one relative path).
7
7
  // __test__/language_version.unit.test.ts holds it equal to package.json.
8
- exports.PACKAGE_VERSION = '0.12.8';
8
+ exports.PACKAGE_VERSION = '0.12.10';
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@listen-fire/movement-lang",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.8",
4
+ "version": "0.12.10",
5
5
  "description": "The data-movement language: the wasm parser, checker and engine with their loader and bindings, the version rule, the expression AST and the types the contracts name",
6
6
  "engines": {
7
7
  "node": ">=22.23.4 <23"