@posiwise/flows 0.0.8 → 0.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/flows",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -3,9 +3,9 @@ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, DestroyRef, Element
3
3
  import * as i1 from "@angular/router";
4
4
  import { LazyLoadEvent, MenuItem } from "primeng/api";
5
5
  import { AppBaseComponent } from "@posiwise/app-base-component";
6
- import * as i29 from "@posiwise/shared-components";
6
+ import * as i30 from "@posiwise/shared-components";
7
7
  import { ConfirmDialogService } from "@posiwise/shared-components";
8
- import * as i31 from "@angular/forms";
8
+ import * as i32 from "@angular/forms";
9
9
  import { UntypedFormGroup } from "@angular/forms";
10
10
  import { Paging } from "@posiwise/common-utilities";
11
11
  import { ProductsHttpService } from "@posiwise/shared-product-services";
@@ -14,18 +14,18 @@ import { PermissionService, SubscriptionService } from "@posiwise/common-service
14
14
  import { TranslocoService } from "@jsverse/transloco";
15
15
  import { ClassicPreset, GetSchemes } from "rete";
16
16
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
17
- import * as i30 from "@angular/common";
18
- import * as i32 from "@posiwise/core-guards";
19
- import * as i33 from "@posiwise/core-transloco";
20
- import * as i34 from "@posiwise/app-loader";
21
- import * as i35 from "@posiwise/directives";
22
- import * as i36 from "@posiwise/pipes";
23
- import * as i37 from "@fortawesome/angular-fontawesome";
24
- import * as i38 from "primeng/iconfield";
25
- import * as i39 from "primeng/inputicon";
26
- import * as i40 from "primeng/autocomplete";
27
- import * as i41 from "primeng/inputtext";
28
- import * as i42 from "rete-angular-plugin/22";
17
+ import * as i31 from "@angular/common";
18
+ import * as i33 from "@posiwise/core-guards";
19
+ import * as i34 from "@posiwise/core-transloco";
20
+ import * as i35 from "@posiwise/app-loader";
21
+ import * as i36 from "@posiwise/directives";
22
+ import * as i37 from "@posiwise/pipes";
23
+ import * as i38 from "@fortawesome/angular-fontawesome";
24
+ import * as i39 from "primeng/iconfield";
25
+ import * as i40 from "primeng/inputicon";
26
+ import * as i41 from "primeng/autocomplete";
27
+ import * as i42 from "primeng/inputtext";
28
+ import * as i43 from "rete-angular-plugin/22";
29
29
  declare namespace flows_private_routing_module_d_exports {
30
30
  export { FlowsPrivateRoutingModule };
31
31
  }
@@ -366,6 +366,8 @@ interface FlowNodeDefinition {
366
366
  outputs: string[];
367
367
  /** Dropped by the product that declared it: kept for flows that use it, not offered for new ones. */
368
368
  retired?: boolean;
369
+ /** The product that declared the node; absent on the engine's own. */
370
+ product_key?: string | null;
369
371
  }
370
372
  interface FlowNodeListResponse {
371
373
  flow_nodes: FlowNodeDefinition[];
@@ -445,6 +447,27 @@ declare class FlowsNodeService {
445
447
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowsNodeService, never>;
446
448
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
447
449
  }
450
+ /** A step error in words the person running the flow can act on: a translation key and its values. */
451
+ interface FlowStepErrorText {
452
+ key: string;
453
+ params: Record<string, string>;
454
+ /** Translation keys, not text. */
455
+ list?: string[];
456
+ }
457
+ interface FlowStepErrorContext {
458
+ system?: string | null;
459
+ product?: string | null;
460
+ }
461
+ /** Null for an empty error. */
462
+ declare function flowStepErrorText(error: string | null | undefined, context?: FlowStepErrorContext): FlowStepErrorText | null;
463
+ interface FlowErrorSource {
464
+ service: string;
465
+ system?: string;
466
+ }
467
+ /** products-api's Settings.endpoints.this_app.path. */
468
+ declare const FLOWS_SERVICE = "products-api";
469
+ /** Service names stay internal: customers see Flows, the product, or the system. */
470
+ declare function flowErrorSourceText(source: FlowErrorSource | null | undefined, product?: string | null): FlowStepErrorText | null;
448
471
  type FlowRunStatus = 'running' | 'awaiting' | 'succeeded' | 'failed';
449
472
  type FlowRunStepStatus = 'pending' | 'running' | 'awaiting' | 'succeeded' | 'failed' | 'skipped';
450
473
  declare const FLOW_RUN_TERMINAL_STATUSES: readonly FlowRunStatus[];
@@ -471,6 +494,7 @@ interface FlowRunStep {
471
494
  input_items: unknown[] | null;
472
495
  output_items: unknown[] | null;
473
496
  error: string | null;
497
+ error_source?: FlowErrorSource | null;
474
498
  attempts: number;
475
499
  awaiting_since: string | null;
476
500
  /** Set while a failed step waits to run again. */
@@ -1039,13 +1063,6 @@ declare class FlowsRunProgressComponent implements OnChanges, OnDestroy {
1039
1063
  };
1040
1064
  }, {}, never, never, false, never>;
1041
1065
  }
1042
- /** A step error in words the person running the flow can act on: a translation key and its values. */
1043
- interface FlowStepErrorText {
1044
- key: string;
1045
- params: Record<string, string>;
1046
- }
1047
- /** Null for an empty error. An unknown error keeps its own words, so nothing is hidden. */
1048
- declare function flowStepErrorText(error: string | null | undefined): FlowStepErrorText | null;
1049
1066
  declare namespace flows_step_error_component_d_exports {
1050
1067
  export { FlowsStepErrorComponent };
1051
1068
  }
@@ -1057,6 +1074,8 @@ declare class FlowsStepErrorComponent implements OnChanges {
1057
1074
  error: string | null;
1058
1075
  /** The step will run again, so the error is the last try's, not the outcome. */
1059
1076
  retrying: boolean;
1077
+ source: FlowErrorSource | null | undefined;
1078
+ product: string | null | undefined;
1060
1079
  readonly icons: {
1061
1080
  readonly inspect: import("@fortawesome/fontawesome-common-types").IconDefinition;
1062
1081
  readonly back: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -1078,6 +1097,7 @@ declare class FlowsStepErrorComponent implements OnChanges {
1078
1097
  readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
1079
1098
  };
1080
1099
  text: FlowStepErrorText | null;
1100
+ sourceText: FlowStepErrorText | null;
1081
1101
  ngOnChanges(): void;
1082
1102
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowsStepErrorComponent, never>;
1083
1103
  static ɵcmp: i0.ɵɵComponentDeclaration<FlowsStepErrorComponent, "pw-flows-step-error", never, {
@@ -1089,6 +1109,50 @@ declare class FlowsStepErrorComponent implements OnChanges {
1089
1109
  "alias": "retrying";
1090
1110
  "required": false;
1091
1111
  };
1112
+ "source": {
1113
+ "alias": "source";
1114
+ "required": false;
1115
+ };
1116
+ "product": {
1117
+ "alias": "product";
1118
+ "required": false;
1119
+ };
1120
+ }, {}, never, never, false, never>;
1121
+ }
1122
+ declare namespace flows_run_error_component_d_exports {
1123
+ export { FlowsRunErrorComponent };
1124
+ }
1125
+ declare class FlowsRunErrorComponent implements OnChanges {
1126
+ error: string | null;
1127
+ steps: FlowRunStep[];
1128
+ nodeTypes: Record<string, string>;
1129
+ definitions: Record<string, FlowNodeDefinition>;
1130
+ readonly labelKey: typeof flowNodeLabelKey;
1131
+ text: FlowStepErrorText | null;
1132
+ step?: FlowRunStep;
1133
+ type?: string;
1134
+ sourceText: FlowStepErrorText | null;
1135
+ ngOnChanges(): void;
1136
+ private source;
1137
+ private product;
1138
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunErrorComponent, never>;
1139
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunErrorComponent, "pw-flows-run-error", never, {
1140
+ "error": {
1141
+ "alias": "error";
1142
+ "required": false;
1143
+ };
1144
+ "steps": {
1145
+ "alias": "steps";
1146
+ "required": false;
1147
+ };
1148
+ "nodeTypes": {
1149
+ "alias": "nodeTypes";
1150
+ "required": false;
1151
+ };
1152
+ "definitions": {
1153
+ "alias": "definitions";
1154
+ "required": false;
1155
+ };
1092
1156
  }, {}, never, never, false, never>;
1093
1157
  }
1094
1158
  declare const FLOW_INPUT = "in";
@@ -1805,6 +1869,6 @@ declare class FlowWorkflowBadgePipe implements PipeTransform {
1805
1869
  }
1806
1870
  export declare class FlowsPrivateModule {
1807
1871
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateModule, never>;
1808
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof FlowsTabsComponent, typeof FlowsWorkflowsComponent, typeof FlowsWorkflowFormComponent, typeof FlowsWorkflowVersionsComponent, typeof FlowsVersionEditorComponent, typeof FlowsGraphCheckComponent, typeof FlowsRunsComponent, typeof FlowsRunsFiltersComponent, typeof FlowsCronFieldComponent, typeof FlowsTimezoneFieldComponent, typeof FlowsRunInspectorComponent, typeof FlowsRunProgressComponent, typeof FlowsStepErrorComponent, typeof FlowsGraphCanvasComponent, typeof FlowsCanvasNodeComponent, typeof FlowsCanvasSocketComponent, typeof FlowsCanvasConnectionComponent, typeof FlowsNodePaletteComponent, typeof FlowsNodeInspectorComponent, typeof FlowsJsonFieldComponent, typeof FlowsConditionFieldComponent, typeof FlowsPairsFieldComponent, typeof FlowsMemberFieldComponent, typeof FlowsRetryFieldComponent, typeof FlowsAvailableFieldsComponent, typeof FlowsUnknownFieldsComponent, typeof FlowsWorkflowStatusComponent, typeof FlowWorkflowBadgePipe], [typeof i29.PwStickyActionsComponent, typeof i30.CommonModule, typeof i31.FormsModule, typeof i31.ReactiveFormsModule, typeof i32.TrackDirtyFormDirective, typeof i33.CoreTranslocoModule, typeof i34.AppLoaderModule, typeof i29.SharedComponentsModule, typeof i35.DirectivesModule, typeof i36.PipesModule, typeof i37.FontAwesomeModule, typeof i38.IconFieldModule, typeof i39.InputIconModule, typeof i40.AutoCompleteModule, typeof i41.InputTextModule, typeof i42.ReteModule, typeof FlowsPrivateRoutingModule], never>;
1872
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof FlowsTabsComponent, typeof FlowsWorkflowsComponent, typeof FlowsWorkflowFormComponent, typeof FlowsWorkflowVersionsComponent, typeof FlowsVersionEditorComponent, typeof FlowsGraphCheckComponent, typeof FlowsRunsComponent, typeof FlowsRunsFiltersComponent, typeof FlowsCronFieldComponent, typeof FlowsTimezoneFieldComponent, typeof FlowsRunInspectorComponent, typeof FlowsRunProgressComponent, typeof FlowsStepErrorComponent, typeof FlowsRunErrorComponent, typeof FlowsGraphCanvasComponent, typeof FlowsCanvasNodeComponent, typeof FlowsCanvasSocketComponent, typeof FlowsCanvasConnectionComponent, typeof FlowsNodePaletteComponent, typeof FlowsNodeInspectorComponent, typeof FlowsJsonFieldComponent, typeof FlowsConditionFieldComponent, typeof FlowsPairsFieldComponent, typeof FlowsMemberFieldComponent, typeof FlowsRetryFieldComponent, typeof FlowsAvailableFieldsComponent, typeof FlowsUnknownFieldsComponent, typeof FlowsWorkflowStatusComponent, typeof FlowWorkflowBadgePipe], [typeof i30.PwStickyActionsComponent, typeof i31.CommonModule, typeof i32.FormsModule, typeof i32.ReactiveFormsModule, typeof i33.TrackDirtyFormDirective, typeof i34.CoreTranslocoModule, typeof i35.AppLoaderModule, typeof i30.SharedComponentsModule, typeof i36.DirectivesModule, typeof i37.PipesModule, typeof i38.FontAwesomeModule, typeof i39.IconFieldModule, typeof i40.InputIconModule, typeof i41.AutoCompleteModule, typeof i42.InputTextModule, typeof i43.ReteModule, typeof FlowsPrivateRoutingModule], never>;
1809
1873
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateModule>;
1810
1874
  }