@posiwise/flows 0.0.5 → 0.0.7
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/fesm2022/posiwise-flows.mjs +269 -159
- package/fesm2022/posiwise-flows.mjs.map +1 -1
- package/package.json +1 -1
- package/types/posiwise-flows.d.ts +72 -19
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, PipeTransform, SimpleChanges } from "@angular/core";
|
|
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
|
|
6
|
+
import * as i34 from "@posiwise/shared-components";
|
|
7
7
|
import { ConfirmDialogService } from "@posiwise/shared-components";
|
|
8
|
-
import * as
|
|
8
|
+
import * as i30 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
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
17
|
+
import * as i29 from "@angular/common";
|
|
18
|
+
import * as i31 from "@posiwise/core-guards";
|
|
19
|
+
import * as i32 from "@posiwise/core-transloco";
|
|
20
|
+
import * as i33 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";
|
|
29
29
|
declare namespace flows_private_routing_module_d_exports {
|
|
30
30
|
export { FlowsPrivateRoutingModule };
|
|
31
31
|
}
|
|
@@ -169,6 +169,8 @@ declare class FlowsWorkflowsComponent extends AppBaseComponent implements OnInit
|
|
|
169
169
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
170
170
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
171
171
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
172
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
173
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
172
174
|
};
|
|
173
175
|
readonly badgeClass: typeof flowWorkflowBadgeClass;
|
|
174
176
|
constructor(injector: Injector, workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
@@ -220,6 +222,8 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
220
222
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
221
223
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
222
224
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
225
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
226
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
223
227
|
};
|
|
224
228
|
constructor(injector: Injector, workflowService: FlowsWorkflowService, cdr: ChangeDetectorRef);
|
|
225
229
|
get isEdit(): boolean;
|
|
@@ -286,6 +290,8 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
|
|
|
286
290
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
287
291
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
288
292
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
293
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
294
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
289
295
|
};
|
|
290
296
|
readonly isPublished: typeof isFlowVersionPublished;
|
|
291
297
|
readonly badgeClass: typeof flowVersionBadgeClass;
|
|
@@ -513,7 +519,9 @@ declare class FlowsRunService {
|
|
|
513
519
|
getRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse>;
|
|
514
520
|
getRun(id: number, subscriptionId: number): Observable<FlowRun>;
|
|
515
521
|
getRunSteps(runId: number, subscriptionId: number, paging?: Paging): Observable<FlowRunStepListResponse>;
|
|
516
|
-
|
|
522
|
+
/** Never completes on its own. Emits null for a failed poll, so what is shown stays. */
|
|
523
|
+
watchRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse | null>;
|
|
524
|
+
/** An error before the run first loads ends the watch; after that, the next poll retries. */
|
|
517
525
|
watchRun(id: number, subscriptionId: number, paging?: Paging): Observable<FlowRunDetail>;
|
|
518
526
|
private hasUnsettledRun;
|
|
519
527
|
/** A help for the builder, so a failed load leaves it as it was before the flow ran. */
|
|
@@ -560,6 +568,8 @@ declare class FlowsVersionEditorComponent implements OnInit, OnChanges, OnDestro
|
|
|
560
568
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
561
569
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
562
570
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
571
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
572
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
563
573
|
};
|
|
564
574
|
definitions: FlowNodeDefinition[];
|
|
565
575
|
/** The fields each node handed on the last time the workflow ran. */
|
|
@@ -706,6 +716,8 @@ declare class FlowsGraphCheckComponent implements OnChanges {
|
|
|
706
716
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
707
717
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
708
718
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
719
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
720
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
709
721
|
};
|
|
710
722
|
rows: FlowGraphCheckRow[];
|
|
711
723
|
constructor(translation: TranslocoService);
|
|
@@ -774,6 +786,8 @@ declare class FlowsRunsComponent extends AppBaseComponent implements OnInit {
|
|
|
774
786
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
775
787
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
776
788
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
789
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
790
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
777
791
|
};
|
|
778
792
|
constructor(injector: Injector, flowsRunService: FlowsRunService, cdr: ChangeDetectorRef);
|
|
779
793
|
ngOnInit(): void;
|
|
@@ -950,6 +964,8 @@ declare class FlowsRunInspectorComponent extends AppBaseComponent implements OnI
|
|
|
950
964
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
951
965
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
952
966
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
967
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
968
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
953
969
|
};
|
|
954
970
|
readonly openSteps: Set<number>;
|
|
955
971
|
readonly trackByStep: (_: number, step: FlowRunStep) => number;
|
|
@@ -1058,6 +1074,8 @@ declare class FlowsStepErrorComponent implements OnChanges {
|
|
|
1058
1074
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1059
1075
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1060
1076
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1077
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1078
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1061
1079
|
};
|
|
1062
1080
|
text: FlowStepErrorText | null;
|
|
1063
1081
|
ngOnChanges(): void;
|
|
@@ -1265,6 +1283,8 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1265
1283
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1266
1284
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1267
1285
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1286
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1287
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1268
1288
|
};
|
|
1269
1289
|
mergeModes: {
|
|
1270
1290
|
value: string;
|
|
@@ -1414,6 +1434,8 @@ declare class FlowsConditionFieldComponent implements OnChanges {
|
|
|
1414
1434
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1415
1435
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1416
1436
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1437
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1438
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1417
1439
|
};
|
|
1418
1440
|
options: Record<string, ConditionOption[]>;
|
|
1419
1441
|
readonly takesValue: typeof takesValue;
|
|
@@ -1487,6 +1509,8 @@ declare class FlowsPairsFieldComponent implements OnChanges {
|
|
|
1487
1509
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1488
1510
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1489
1511
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1512
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1513
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1490
1514
|
};
|
|
1491
1515
|
pairs: Pair[];
|
|
1492
1516
|
private emitted;
|
|
@@ -1695,6 +1719,8 @@ declare class FlowsUnknownFieldsComponent implements OnChanges {
|
|
|
1695
1719
|
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1696
1720
|
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1697
1721
|
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1722
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1723
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1698
1724
|
};
|
|
1699
1725
|
unknown: string;
|
|
1700
1726
|
ngOnChanges(): void;
|
|
@@ -1713,7 +1739,7 @@ declare class FlowsUnknownFieldsComponent implements OnChanges {
|
|
|
1713
1739
|
declare namespace flows_workflow_status_component_d_exports {
|
|
1714
1740
|
export { FlowsWorkflowStatusComponent };
|
|
1715
1741
|
}
|
|
1716
|
-
/**
|
|
1742
|
+
/** Turns the workflow on or off. Only an active workflow starts runs from its trigger. */
|
|
1717
1743
|
declare class FlowsWorkflowStatusComponent {
|
|
1718
1744
|
private readonly workflowService;
|
|
1719
1745
|
private readonly confirmDialog;
|
|
@@ -1723,7 +1749,26 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1723
1749
|
/** With nothing published, an active workflow would have nothing to run. */
|
|
1724
1750
|
hasPublished: boolean;
|
|
1725
1751
|
readonly workflowChange: EventEmitter<FlowWorkflow>;
|
|
1726
|
-
readonly
|
|
1752
|
+
readonly icons: {
|
|
1753
|
+
readonly inspect: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1754
|
+
readonly back: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1755
|
+
readonly error: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1756
|
+
readonly create: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1757
|
+
readonly edit: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1758
|
+
readonly delete: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1759
|
+
readonly versions: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1760
|
+
readonly search: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1761
|
+
readonly publish: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1762
|
+
readonly duplicate: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1763
|
+
readonly fit: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1764
|
+
readonly diagram: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1765
|
+
readonly json: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1766
|
+
readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1767
|
+
readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1768
|
+
readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1769
|
+
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1770
|
+
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1771
|
+
};
|
|
1727
1772
|
saving: boolean;
|
|
1728
1773
|
constructor(workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
1729
1774
|
get isOn(): boolean;
|
|
@@ -1750,8 +1795,16 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1750
1795
|
"workflowChange": "workflowChange";
|
|
1751
1796
|
}, never, never, false, never>;
|
|
1752
1797
|
}
|
|
1798
|
+
declare namespace flow_workflow_badge_pipe_d_exports {
|
|
1799
|
+
export { FlowWorkflowBadgePipe };
|
|
1800
|
+
}
|
|
1801
|
+
declare class FlowWorkflowBadgePipe implements PipeTransform {
|
|
1802
|
+
transform(status: FlowWorkflowStatus): string;
|
|
1803
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowWorkflowBadgePipe, never>;
|
|
1804
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FlowWorkflowBadgePipe, "flowWorkflowBadge", false>;
|
|
1805
|
+
}
|
|
1753
1806
|
export declare class FlowsPrivateModule {
|
|
1754
1807
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateModule, never>;
|
|
1755
|
-
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
|
|
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.CommonModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.TrackDirtyFormDirective, typeof i32.CoreTranslocoModule, typeof i33.AppLoaderModule, typeof i34.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>;
|
|
1756
1809
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateModule>;
|
|
1757
1810
|
}
|