@north-light/crouter-api 0.3.289 → 0.3.291
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.
|
@@ -31,7 +31,11 @@ interface NodeOutcomeBaseDTO {
|
|
|
31
31
|
}
|
|
32
32
|
/** A settled outcome. Narrowing on `kind` then `reason` makes a declined
|
|
33
33
|
* structured result (`failure`/`declined`) a case a consumer must handle:
|
|
34
|
-
* only that case
|
|
34
|
+
* only that case can carry `declined`; every other outcome has it null. A
|
|
35
|
+
* declined outcome latched before the decline block was recorded on the row
|
|
36
|
+
* (or reconstructed by the outcome-column backfill from `terminal_reason`
|
|
37
|
+
* alone) carries null there — the decline happened, its reason/code/retryable
|
|
38
|
+
* triple was never stored. */
|
|
35
39
|
export type NodeOutcomeDTO = (NodeOutcomeBaseDTO & {
|
|
36
40
|
kind: 'result';
|
|
37
41
|
reason: TerminalReasonDTO;
|
|
@@ -39,7 +43,7 @@ export type NodeOutcomeDTO = (NodeOutcomeBaseDTO & {
|
|
|
39
43
|
}) | (NodeOutcomeBaseDTO & {
|
|
40
44
|
kind: 'failure';
|
|
41
45
|
reason: 'declined';
|
|
42
|
-
declined: DeclinedResultDTO;
|
|
46
|
+
declined: DeclinedResultDTO | null;
|
|
43
47
|
}) | (NodeOutcomeBaseDTO & {
|
|
44
48
|
kind: 'failure';
|
|
45
49
|
reason: Exclude<TerminalReasonDTO, 'declined'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/crouter-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.291",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|