@posiwise/flows 0.0.10 → 0.0.12
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 +3685 -3518
- package/fesm2022/posiwise-flows.mjs.map +1 -1
- package/package.json +1 -1
- package/types/posiwise-flows.d.ts +176 -234
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { AfterViewChecked, AfterViewInit,
|
|
3
|
-
import * as i1 from "@angular/router";
|
|
2
|
+
import { AfterViewChecked, AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, PipeTransform, SimpleChanges } from "@angular/core";
|
|
3
|
+
import * as i1$1 from "@angular/router";
|
|
4
|
+
import * as i1 from "@posiwise/shared-components";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/forms";
|
|
7
|
+
import { FormGroup } from "@angular/forms";
|
|
8
|
+
import * as i4 from "@posiwise/core-guards";
|
|
9
|
+
import * as i5 from "@posiwise/core-transloco";
|
|
10
|
+
import * as i6 from "@posiwise/app-loader";
|
|
11
|
+
import * as i7 from "@posiwise/directives";
|
|
12
|
+
import * as i8 from "@posiwise/pipes";
|
|
13
|
+
import * as i9 from "@fortawesome/angular-fontawesome";
|
|
14
|
+
import * as i10 from "primeng/iconfield";
|
|
15
|
+
import * as i11 from "primeng/inputicon";
|
|
16
|
+
import * as i12 from "primeng/autocomplete";
|
|
17
|
+
import * as i13 from "primeng/inputtext";
|
|
18
|
+
import * as i14 from "rete-angular-plugin/22";
|
|
4
19
|
import { LazyLoadEvent, MenuItem } from "primeng/api";
|
|
5
20
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
6
|
-
import * as i33 from "@posiwise/shared-components";
|
|
7
|
-
import { ConfirmDialogService } from "@posiwise/shared-components";
|
|
8
|
-
import * as i35 from "@angular/forms";
|
|
9
|
-
import { UntypedFormGroup } from "@angular/forms";
|
|
10
|
-
import { Paging } from "@posiwise/common-utilities";
|
|
11
|
-
import { ProductsHttpService } from "@posiwise/shared-product-services";
|
|
12
21
|
import { Observable } from "rxjs";
|
|
13
|
-
import { PermissionService, SubscriptionService } from "@posiwise/common-services";
|
|
14
|
-
import { TranslocoService } from "@jsverse/transloco";
|
|
15
22
|
import { ClassicPreset, GetSchemes } from "rete";
|
|
16
23
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
17
|
-
import * as i34 from "@angular/common";
|
|
18
|
-
import * as i36 from "@posiwise/core-guards";
|
|
19
|
-
import * as i37 from "@posiwise/core-transloco";
|
|
20
|
-
import * as i38 from "@posiwise/app-loader";
|
|
21
|
-
import * as i39 from "@posiwise/directives";
|
|
22
|
-
import * as i40 from "@posiwise/pipes";
|
|
23
|
-
import * as i41 from "@fortawesome/angular-fontawesome";
|
|
24
|
-
import * as i42 from "primeng/iconfield";
|
|
25
|
-
import * as i43 from "primeng/inputicon";
|
|
26
|
-
import * as i44 from "primeng/autocomplete";
|
|
27
|
-
import * as i45 from "primeng/inputtext";
|
|
28
|
-
import * as i46 from "rete-angular-plugin/22";
|
|
29
24
|
declare namespace flows_private_routing_module_d_exports {
|
|
30
25
|
export { FlowsPrivateRoutingModule };
|
|
31
26
|
}
|
|
32
27
|
export declare class FlowsPrivateRoutingModule {
|
|
33
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateRoutingModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateRoutingModule, never, [typeof i1$1.RouterModule], [typeof i1$1.RouterModule]>;
|
|
35
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateRoutingModule>;
|
|
36
31
|
}
|
|
37
32
|
declare namespace flows_tabs_component_d_exports {
|
|
@@ -41,7 +36,7 @@ declare class FlowsTabsComponent {
|
|
|
41
36
|
items: MenuItem[];
|
|
42
37
|
constructor();
|
|
43
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsTabsComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsTabsComponent, "pw-flows-tabs", never, {}, {}, never, never,
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsTabsComponent, "pw-flows-tabs", never, {}, {}, never, never, true, never>;
|
|
45
40
|
}
|
|
46
41
|
type FlowWorkflowStatus = 'draft' | 'active' | 'paused';
|
|
47
42
|
declare const FLOW_WORKFLOW_STATUS_ORDER: readonly FlowWorkflowStatus[];
|
|
@@ -88,49 +83,10 @@ declare function flowWorkflowStatusOptions(labels: readonly string[]): {
|
|
|
88
83
|
value: FlowWorkflowStatus;
|
|
89
84
|
label: string;
|
|
90
85
|
}[];
|
|
91
|
-
declare function flowWorkflowForm():
|
|
86
|
+
declare function flowWorkflowForm(): FormGroup;
|
|
92
87
|
declare function flowVersionBadgeClass(version: Pick<FlowVersion, 'published_at'>): string;
|
|
93
88
|
declare function flowWorkflowBadgeClass(status: FlowWorkflowStatus): string;
|
|
94
89
|
declare function flowVersionEditorTitleKey(version: FlowVersion | null, duplicateOf?: FlowVersion | null): string;
|
|
95
|
-
/** One finding of FlowGraphCheck on the server; `code` is stable, `message` is the English fallback. */
|
|
96
|
-
interface FlowGraphIssue {
|
|
97
|
-
code: string;
|
|
98
|
-
message: string;
|
|
99
|
-
/** Null for a problem with the graph as a whole. */
|
|
100
|
-
node_id: string | null;
|
|
101
|
-
/** The param it is about, when there is one. */
|
|
102
|
-
field?: string | null;
|
|
103
|
-
}
|
|
104
|
-
interface FlowGraphCheck {
|
|
105
|
-
/** False when publishing would be refused. */
|
|
106
|
-
valid: boolean;
|
|
107
|
-
errors: FlowGraphIssue[];
|
|
108
|
-
/** Allowed by publishing, but most likely not meant. */
|
|
109
|
-
warnings: FlowGraphIssue[];
|
|
110
|
-
}
|
|
111
|
-
declare class FlowsWorkflowService {
|
|
112
|
-
private readonly api;
|
|
113
|
-
constructor(api: ProductsHttpService);
|
|
114
|
-
getWorkflows(subscriptionId: number, status: FlowWorkflowStatus | null, paging?: Paging): Observable<FlowWorkflowListResponse>;
|
|
115
|
-
getWorkflow(id: number, subscriptionId: number): Observable<FlowWorkflow>;
|
|
116
|
-
getVersion(id: number, subscriptionId: number): Observable<FlowVersion>;
|
|
117
|
-
createWorkflow(subscriptionId: number, attrs: FlowWorkflowAttrs): Observable<FlowWorkflow>;
|
|
118
|
-
updateWorkflow(id: number, subscriptionId: number, attrs: FlowWorkflowAttrs): Observable<FlowWorkflow>;
|
|
119
|
-
/** 433 when the workflow has runs. subscription_id is a query param, not a body. */
|
|
120
|
-
deleteWorkflow(id: number, subscriptionId: number): Observable<unknown>;
|
|
121
|
-
getVersions(workflowId: number, subscriptionId: number, paging?: Paging): Observable<FlowVersionListResponse>;
|
|
122
|
-
createVersion(workflowId: number, subscriptionId: number, graph: unknown): Observable<FlowVersion>;
|
|
123
|
-
/** Refused with 433 once the version is published. */
|
|
124
|
-
updateVersion(id: number, subscriptionId: number, graph: unknown): Observable<FlowVersion>;
|
|
125
|
-
/** What publishing would refuse, for a graph saved or not. Writes nothing. */
|
|
126
|
-
checkGraph(workflowId: number, subscriptionId: number, graph: unknown): Observable<FlowGraphCheck>;
|
|
127
|
-
/** Subscription admin only. Re-publishing is a server-side no-op. */
|
|
128
|
-
publishVersion(id: number, subscriptionId: number): Observable<FlowVersion>;
|
|
129
|
-
/** Publishes the version only if it passes the check; otherwise returns the check and writes nothing. */
|
|
130
|
-
publishChecked(workflowId: number, version: FlowVersion, subscriptionId: number): Observable<FlowVersion | FlowGraphCheck>;
|
|
131
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowService, never>;
|
|
132
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
133
|
-
}
|
|
134
90
|
declare namespace flows_workflows_component_d_exports {
|
|
135
91
|
export { FlowsWorkflowsComponent };
|
|
136
92
|
}
|
|
@@ -173,7 +129,6 @@ declare class FlowsWorkflowsComponent extends AppBaseComponent implements OnInit
|
|
|
173
129
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
174
130
|
};
|
|
175
131
|
readonly badgeClass: typeof flowWorkflowBadgeClass;
|
|
176
|
-
constructor(injector: Injector, workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
177
132
|
ngOnInit(): void;
|
|
178
133
|
ngOnDestroy(): void;
|
|
179
134
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
@@ -186,7 +141,7 @@ declare class FlowsWorkflowsComponent extends AppBaseComponent implements OnInit
|
|
|
186
141
|
private load;
|
|
187
142
|
private settle;
|
|
188
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowsComponent, never>;
|
|
189
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowsComponent, "pw-flows-workflows", never, {}, {}, never, never,
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowsComponent, "pw-flows-workflows", never, {}, {}, never, never, true, never>;
|
|
190
145
|
}
|
|
191
146
|
declare namespace flows_workflow_form_component_d_exports {
|
|
192
147
|
export { FlowsWorkflowFormComponent };
|
|
@@ -200,7 +155,7 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
200
155
|
saving: boolean;
|
|
201
156
|
workflowId: number | null;
|
|
202
157
|
notFound: boolean;
|
|
203
|
-
form:
|
|
158
|
+
form: FormGroup;
|
|
204
159
|
statusOptions: {
|
|
205
160
|
value: FlowWorkflowStatus;
|
|
206
161
|
label: string;
|
|
@@ -225,7 +180,6 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
225
180
|
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
226
181
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
227
182
|
};
|
|
228
|
-
constructor(injector: Injector, workflowService: FlowsWorkflowService, cdr: ChangeDetectorRef);
|
|
229
183
|
get isEdit(): boolean;
|
|
230
184
|
ngOnInit(): void;
|
|
231
185
|
ngOnDestroy(): void;
|
|
@@ -237,7 +191,23 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
237
191
|
private loadWorkflow;
|
|
238
192
|
private settle;
|
|
239
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowFormComponent, never>;
|
|
240
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowFormComponent, "pw-flows-workflow-form", never, {}, {}, never, never,
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowFormComponent, "pw-flows-workflow-form", never, {}, {}, never, never, true, never>;
|
|
195
|
+
}
|
|
196
|
+
/** One finding of FlowGraphCheck on the server; `code` is stable, `message` is the English fallback. */
|
|
197
|
+
interface FlowGraphIssue {
|
|
198
|
+
code: string;
|
|
199
|
+
message: string;
|
|
200
|
+
/** Null for a problem with the graph as a whole. */
|
|
201
|
+
node_id: string | null;
|
|
202
|
+
/** The param it is about, when there is one. */
|
|
203
|
+
field?: string | null;
|
|
204
|
+
}
|
|
205
|
+
interface FlowGraphCheck {
|
|
206
|
+
/** False when publishing would be refused. */
|
|
207
|
+
valid: boolean;
|
|
208
|
+
errors: FlowGraphIssue[];
|
|
209
|
+
/** Allowed by publishing, but most likely not meant. */
|
|
210
|
+
warnings: FlowGraphIssue[];
|
|
241
211
|
}
|
|
242
212
|
/** What the version editor shows. Opening or closing it resets all of this together. */
|
|
243
213
|
declare class FlowVersionEditorState {
|
|
@@ -296,7 +266,7 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
|
|
|
296
266
|
readonly isPublished: typeof isFlowVersionPublished;
|
|
297
267
|
readonly badgeClass: typeof flowVersionBadgeClass;
|
|
298
268
|
readonly canPublish: boolean;
|
|
299
|
-
constructor(
|
|
269
|
+
constructor();
|
|
300
270
|
ngOnInit(): void;
|
|
301
271
|
ngOnDestroy(): void;
|
|
302
272
|
openEditor(version?: FlowVersion | null, duplicateOf?: FlowVersion | null): void;
|
|
@@ -312,7 +282,7 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
|
|
|
312
282
|
private openRequestedVersion;
|
|
313
283
|
private settle;
|
|
314
284
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowVersionsComponent, never>;
|
|
315
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowVersionsComponent, "pw-flows-workflow-versions", never, {}, {}, never, never,
|
|
285
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowVersionsComponent, "pw-flows-workflow-versions", never, {}, {}, never, never, true, never>;
|
|
316
286
|
}
|
|
317
287
|
/** The fields that reach a node from one connected node before it. */
|
|
318
288
|
interface FlowFieldSource {
|
|
@@ -342,6 +312,8 @@ interface FlowParamDetail {
|
|
|
342
312
|
placeholder?: string;
|
|
343
313
|
kind?: 'text' | 'textarea' | 'number' | 'select' | 'choices';
|
|
344
314
|
options?: string[];
|
|
315
|
+
/** select only: the options are suggestions, and typed text (e.g. a {{placeholder}}) is kept too. */
|
|
316
|
+
editable?: boolean;
|
|
345
317
|
required?: boolean;
|
|
346
318
|
}
|
|
347
319
|
/** Field names of an item, and of the entries of each list in it. */
|
|
@@ -408,6 +380,8 @@ interface FlowNodeSelection {
|
|
|
408
380
|
listSuggestions: string[];
|
|
409
381
|
/** The same fields, by the connected node they come from; null when none can ever reach it. */
|
|
410
382
|
fieldSources: FlowFieldSource[] | null;
|
|
383
|
+
/** The fixed settings of the nodes before it, so a `{{name}}` box can show what it stands for. */
|
|
384
|
+
settingValues: Record<string, string>;
|
|
411
385
|
}
|
|
412
386
|
interface FlowGraph {
|
|
413
387
|
nodes: FlowGraphNode[];
|
|
@@ -439,124 +413,6 @@ interface FlowWorkflowFields {
|
|
|
439
413
|
declare const NO_FLOW_WORKFLOW_FIELDS: FlowWorkflowFields;
|
|
440
414
|
declare function flowNodeFieldsKey(nodeId: string, type: string | null | undefined): string;
|
|
441
415
|
declare function toFlowWorkflowFields(rows: FlowWorkflowFieldsRow[] | undefined): FlowWorkflowFields;
|
|
442
|
-
declare class FlowsNodeService {
|
|
443
|
-
private readonly api;
|
|
444
|
-
private readonly cache;
|
|
445
|
-
private readonly refetched;
|
|
446
|
-
constructor(api: ProductsHttpService);
|
|
447
|
-
/** A list cached before `needed` types were declared is fetched again. */
|
|
448
|
-
getNodes(subscriptionId: number, needed?: readonly string[]): Observable<FlowNodeDefinition[]>;
|
|
449
|
-
private cached;
|
|
450
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsNodeService, never>;
|
|
451
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
452
|
-
}
|
|
453
|
-
/** A step error in words the person running the flow can act on: a translation key and its values. */
|
|
454
|
-
interface FlowStepErrorText {
|
|
455
|
-
key: string;
|
|
456
|
-
params: Record<string, string>;
|
|
457
|
-
/** Translation keys, not text. */
|
|
458
|
-
list?: string[];
|
|
459
|
-
}
|
|
460
|
-
interface FlowStepErrorContext {
|
|
461
|
-
system?: string | null;
|
|
462
|
-
product?: string | null;
|
|
463
|
-
}
|
|
464
|
-
/** Null for an empty error. */
|
|
465
|
-
declare function flowStepErrorText(error: string | null | undefined, context?: FlowStepErrorContext): FlowStepErrorText | null;
|
|
466
|
-
interface FlowErrorSource {
|
|
467
|
-
service: string;
|
|
468
|
-
system?: string;
|
|
469
|
-
}
|
|
470
|
-
/** products-api's Settings.endpoints.this_app.path. */
|
|
471
|
-
declare const FLOWS_SERVICE = "products-api";
|
|
472
|
-
/** Service names stay internal: customers see Flows, the product, or the system. */
|
|
473
|
-
declare function flowErrorSourceText(source: FlowErrorSource | null | undefined, product?: string | null): FlowStepErrorText | null;
|
|
474
|
-
type FlowRunStatus = 'running' | 'awaiting' | 'succeeded' | 'failed';
|
|
475
|
-
type FlowRunStepStatus = 'pending' | 'running' | 'awaiting' | 'succeeded' | 'failed' | 'skipped';
|
|
476
|
-
declare const FLOW_RUN_TERMINAL_STATUSES: readonly FlowRunStatus[];
|
|
477
|
-
declare const FLOW_RUN_STEP_SETTLED_STATUSES: readonly FlowRunStepStatus[];
|
|
478
|
-
interface FlowRun {
|
|
479
|
-
id: number;
|
|
480
|
-
flow_workflow_id: number;
|
|
481
|
-
flow_version_id: number;
|
|
482
|
-
flow_workflow_name?: string;
|
|
483
|
-
flow_version_number?: number;
|
|
484
|
-
status: FlowRunStatus;
|
|
485
|
-
trigger_payload: unknown;
|
|
486
|
-
error: string | null;
|
|
487
|
-
started_at: string | null;
|
|
488
|
-
finished_at: string | null;
|
|
489
|
-
created_at: string;
|
|
490
|
-
updated_at: string;
|
|
491
|
-
}
|
|
492
|
-
interface FlowRunStep {
|
|
493
|
-
id: number;
|
|
494
|
-
flow_run_id: number;
|
|
495
|
-
node_id: string;
|
|
496
|
-
status: FlowRunStepStatus;
|
|
497
|
-
input_items: unknown[] | null;
|
|
498
|
-
output_items: unknown[] | null;
|
|
499
|
-
error: string | null;
|
|
500
|
-
error_source?: FlowErrorSource | null;
|
|
501
|
-
attempts: number;
|
|
502
|
-
awaiting_since: string | null;
|
|
503
|
-
/** Set while a failed step waits to run again. */
|
|
504
|
-
retry_at?: string | null;
|
|
505
|
-
started_at: string | null;
|
|
506
|
-
finished_at: string | null;
|
|
507
|
-
created_at: string;
|
|
508
|
-
updated_at: string;
|
|
509
|
-
}
|
|
510
|
-
interface FlowRunListResponse {
|
|
511
|
-
flow_runs: FlowRun[];
|
|
512
|
-
object_count: number;
|
|
513
|
-
unfiltered_count: number;
|
|
514
|
-
}
|
|
515
|
-
interface FlowRunStepListResponse {
|
|
516
|
-
flow_run_steps: FlowRunStep[];
|
|
517
|
-
object_count: number;
|
|
518
|
-
unfiltered_count: number;
|
|
519
|
-
}
|
|
520
|
-
interface FlowRunQuery {
|
|
521
|
-
status?: FlowRunStatus;
|
|
522
|
-
flow_workflow_id?: number;
|
|
523
|
-
flow_version_id?: number;
|
|
524
|
-
}
|
|
525
|
-
declare function isFlowRunTerminal(run: Pick<FlowRun, 'status'>): boolean;
|
|
526
|
-
declare function isFlowRunStepSettled(step: Pick<FlowRunStep, 'status'>): boolean;
|
|
527
|
-
declare const FLOW_RUN_STATUS_ORDER: readonly FlowRunStatus[];
|
|
528
|
-
declare const FLOW_RUN_STATUS_KEYS: readonly string[];
|
|
529
|
-
declare function elapsedMs(from: string | null, to: string | null): number | null;
|
|
530
|
-
declare function flowRunBadgeClass(status: FlowRunStatus): string;
|
|
531
|
-
declare function flowRunStepBadgeClass(status: FlowRunStepStatus): string;
|
|
532
|
-
/** The time slot a scheduled run was for, from its trigger payload; null for any other run. */
|
|
533
|
-
declare function flowRunScheduledFor(run: FlowRun | undefined): string | null;
|
|
534
|
-
interface FlowRunDetail {
|
|
535
|
-
run: FlowRun;
|
|
536
|
-
steps: FlowRunStepListResponse;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Polls because the engine emits no run-lifecycle events yet; Part H swaps in
|
|
540
|
-
* a push here without any component changing.
|
|
541
|
-
*/
|
|
542
|
-
declare class FlowsRunService {
|
|
543
|
-
private readonly api;
|
|
544
|
-
RUNS_PATH: string;
|
|
545
|
-
constructor(api: ProductsHttpService);
|
|
546
|
-
getRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse>;
|
|
547
|
-
getRun(id: number, subscriptionId: number): Observable<FlowRun>;
|
|
548
|
-
getRunSteps(runId: number, subscriptionId: number, paging?: Paging): Observable<FlowRunStepListResponse>;
|
|
549
|
-
/** Never completes on its own. Emits null for a failed poll, so what is shown stays. */
|
|
550
|
-
watchRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse | null>;
|
|
551
|
-
/** An error before the run first loads ends the watch; after that, the next poll retries. */
|
|
552
|
-
watchRun(id: number, subscriptionId: number, paging?: Paging): Observable<FlowRunDetail>;
|
|
553
|
-
private hasUnsettledRun;
|
|
554
|
-
/** A help for the builder, so a failed load leaves it as it was before the flow ran. */
|
|
555
|
-
getWorkflowFields(workflowId: number, subscriptionId: number): Observable<FlowWorkflowFields>;
|
|
556
|
-
private definedQuery;
|
|
557
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunService, never>;
|
|
558
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
559
|
-
}
|
|
560
416
|
declare namespace flows_version_editor_component_d_exports {
|
|
561
417
|
export { FlowsVersionEditorComponent };
|
|
562
418
|
}
|
|
@@ -609,7 +465,6 @@ declare class FlowsVersionEditorComponent implements OnInit, OnChanges, OnDestro
|
|
|
609
465
|
selection: FlowNodeSelection | null;
|
|
610
466
|
dropped: FlowGraphEdge[];
|
|
611
467
|
saving: boolean;
|
|
612
|
-
constructor(workflowService: FlowsWorkflowService, nodeService: FlowsNodeService, runService: FlowsRunService, cdr: ChangeDetectorRef);
|
|
613
468
|
get readOnly(): boolean;
|
|
614
469
|
get headingKey(): string;
|
|
615
470
|
ngOnInit(): void;
|
|
@@ -646,7 +501,7 @@ declare class FlowsVersionEditorComponent implements OnInit, OnChanges, OnDestro
|
|
|
646
501
|
}, {
|
|
647
502
|
"saved": "saved";
|
|
648
503
|
"cancelled": "cancelled";
|
|
649
|
-
}, never, never,
|
|
504
|
+
}, never, never, true, never>;
|
|
650
505
|
}
|
|
651
506
|
declare namespace flows_graph_canvas_component_d_exports {
|
|
652
507
|
export { FlowsGraphCanvasComponent };
|
|
@@ -669,7 +524,6 @@ declare class FlowsGraphCanvasComponent implements AfterViewInit, OnChanges, OnD
|
|
|
669
524
|
private selected;
|
|
670
525
|
private reselect?;
|
|
671
526
|
private pending;
|
|
672
|
-
constructor(injector: Injector, cdr: ChangeDetectorRef);
|
|
673
527
|
ngAfterViewInit(): void;
|
|
674
528
|
ngOnChanges(changes: SimpleChanges): void;
|
|
675
529
|
addNode(type: string): Promise<void>;
|
|
@@ -704,7 +558,7 @@ declare class FlowsGraphCanvasComponent implements AfterViewInit, OnChanges, OnD
|
|
|
704
558
|
"selectionChange": "selectionChange";
|
|
705
559
|
"graphChange": "graphChange";
|
|
706
560
|
"dropped": "dropped";
|
|
707
|
-
}, never, never,
|
|
561
|
+
}, never, never, true, never>;
|
|
708
562
|
}
|
|
709
563
|
declare namespace flows_graph_check_component_d_exports {
|
|
710
564
|
export { FlowGraphCheckRow, FlowsGraphCheckComponent };
|
|
@@ -747,7 +601,6 @@ declare class FlowsGraphCheckComponent implements OnChanges {
|
|
|
747
601
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
748
602
|
};
|
|
749
603
|
rows: FlowGraphCheckRow[];
|
|
750
|
-
constructor(translation: TranslocoService);
|
|
751
604
|
ngOnChanges(): void;
|
|
752
605
|
goTo(issue: FlowGraphIssue): void;
|
|
753
606
|
/** Where it is, for the list: the node's name, or nothing for the graph as a whole. */
|
|
@@ -771,8 +624,89 @@ declare class FlowsGraphCheckComponent implements OnChanges {
|
|
|
771
624
|
"alias": "result";
|
|
772
625
|
"required": false;
|
|
773
626
|
};
|
|
774
|
-
}, {}, never, never,
|
|
627
|
+
}, {}, never, never, true, never>;
|
|
628
|
+
}
|
|
629
|
+
/** A step error in words the person running the flow can act on: a translation key and its values. */
|
|
630
|
+
interface FlowStepErrorText {
|
|
631
|
+
key: string;
|
|
632
|
+
params: Record<string, string>;
|
|
633
|
+
/** Translation keys, not text. */
|
|
634
|
+
list?: string[];
|
|
635
|
+
}
|
|
636
|
+
interface FlowStepErrorContext {
|
|
637
|
+
system?: string | null;
|
|
638
|
+
product?: string | null;
|
|
639
|
+
}
|
|
640
|
+
/** Null for an empty error. */
|
|
641
|
+
declare function flowStepErrorText(error: string | null | undefined, context?: FlowStepErrorContext): FlowStepErrorText | null;
|
|
642
|
+
interface FlowErrorSource {
|
|
643
|
+
service: string;
|
|
644
|
+
system?: string;
|
|
645
|
+
}
|
|
646
|
+
/** products-api's Settings.endpoints.this_app.path. */
|
|
647
|
+
declare const FLOWS_SERVICE = "products-api";
|
|
648
|
+
/** Service names stay internal: customers see Flows, the product, or the system. */
|
|
649
|
+
declare function flowErrorSourceText(source: FlowErrorSource | null | undefined, product?: string | null): FlowStepErrorText | null;
|
|
650
|
+
type FlowRunStatus = 'running' | 'awaiting' | 'succeeded' | 'failed';
|
|
651
|
+
type FlowRunStepStatus = 'pending' | 'running' | 'awaiting' | 'succeeded' | 'failed' | 'skipped';
|
|
652
|
+
declare const FLOW_RUN_TERMINAL_STATUSES: readonly FlowRunStatus[];
|
|
653
|
+
declare const FLOW_RUN_STEP_SETTLED_STATUSES: readonly FlowRunStepStatus[];
|
|
654
|
+
interface FlowRun {
|
|
655
|
+
id: number;
|
|
656
|
+
flow_workflow_id: number;
|
|
657
|
+
flow_version_id: number;
|
|
658
|
+
flow_workflow_name?: string;
|
|
659
|
+
flow_version_number?: number;
|
|
660
|
+
status: FlowRunStatus;
|
|
661
|
+
trigger_payload: unknown;
|
|
662
|
+
error: string | null;
|
|
663
|
+
started_at: string | null;
|
|
664
|
+
finished_at: string | null;
|
|
665
|
+
created_at: string;
|
|
666
|
+
updated_at: string;
|
|
775
667
|
}
|
|
668
|
+
interface FlowRunStep {
|
|
669
|
+
id: number;
|
|
670
|
+
flow_run_id: number;
|
|
671
|
+
node_id: string;
|
|
672
|
+
status: FlowRunStepStatus;
|
|
673
|
+
input_items: unknown[] | null;
|
|
674
|
+
output_items: unknown[] | null;
|
|
675
|
+
error: string | null;
|
|
676
|
+
error_source?: FlowErrorSource | null;
|
|
677
|
+
attempts: number;
|
|
678
|
+
awaiting_since: string | null;
|
|
679
|
+
/** Set while a failed step waits to run again. */
|
|
680
|
+
retry_at?: string | null;
|
|
681
|
+
started_at: string | null;
|
|
682
|
+
finished_at: string | null;
|
|
683
|
+
created_at: string;
|
|
684
|
+
updated_at: string;
|
|
685
|
+
}
|
|
686
|
+
interface FlowRunListResponse {
|
|
687
|
+
flow_runs: FlowRun[];
|
|
688
|
+
object_count: number;
|
|
689
|
+
unfiltered_count: number;
|
|
690
|
+
}
|
|
691
|
+
interface FlowRunStepListResponse {
|
|
692
|
+
flow_run_steps: FlowRunStep[];
|
|
693
|
+
object_count: number;
|
|
694
|
+
unfiltered_count: number;
|
|
695
|
+
}
|
|
696
|
+
interface FlowRunQuery {
|
|
697
|
+
status?: FlowRunStatus;
|
|
698
|
+
flow_workflow_id?: number;
|
|
699
|
+
flow_version_id?: number;
|
|
700
|
+
}
|
|
701
|
+
declare function isFlowRunTerminal(run: Pick<FlowRun, 'status'>): boolean;
|
|
702
|
+
declare function isFlowRunStepSettled(step: Pick<FlowRunStep, 'status'>): boolean;
|
|
703
|
+
declare const FLOW_RUN_STATUS_ORDER: readonly FlowRunStatus[];
|
|
704
|
+
declare const FLOW_RUN_STATUS_KEYS: readonly string[];
|
|
705
|
+
declare function elapsedMs(from: string | null, to: string | null): number | null;
|
|
706
|
+
declare function flowRunBadgeClass(status: FlowRunStatus): string;
|
|
707
|
+
declare function flowRunStepBadgeClass(status: FlowRunStepStatus): string;
|
|
708
|
+
/** The time slot a scheduled run was for, from its trigger payload; null for any other run. */
|
|
709
|
+
declare function flowRunScheduledFor(run: FlowRun | undefined): string | null;
|
|
776
710
|
declare namespace flows_runs_component_d_exports {
|
|
777
711
|
export { FlowsRunsComponent };
|
|
778
712
|
}
|
|
@@ -816,7 +750,6 @@ declare class FlowsRunsComponent extends AppBaseComponent implements OnInit {
|
|
|
816
750
|
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
817
751
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
818
752
|
};
|
|
819
|
-
constructor(injector: Injector, flowsRunService: FlowsRunService, cdr: ChangeDetectorRef);
|
|
820
753
|
ngOnInit(): void;
|
|
821
754
|
ngOnDestroy(): void;
|
|
822
755
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
@@ -829,7 +762,7 @@ declare class FlowsRunsComponent extends AppBaseComponent implements OnInit {
|
|
|
829
762
|
private loadRuns;
|
|
830
763
|
private settle;
|
|
831
764
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunsComponent, never>;
|
|
832
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunsComponent, "pw-flows-runs", never, {}, {}, never, never,
|
|
765
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunsComponent, "pw-flows-runs", never, {}, {}, never, never, true, never>;
|
|
833
766
|
}
|
|
834
767
|
declare namespace flows_runs_filters_component_d_exports {
|
|
835
768
|
export { FlowsRunsFiltersComponent };
|
|
@@ -852,7 +785,6 @@ declare class FlowsRunsFiltersComponent implements OnInit, OnDestroy {
|
|
|
852
785
|
statusOptions: Option<FlowRunStatus>[];
|
|
853
786
|
workflowOptions: Option<number>[];
|
|
854
787
|
versionOptions: Option<number>[];
|
|
855
|
-
constructor(translation: TranslocoService, workflowService: FlowsWorkflowService, cdr: ChangeDetectorRef);
|
|
856
788
|
ngOnInit(): void;
|
|
857
789
|
ngOnDestroy(): void;
|
|
858
790
|
onStatus(status: FlowRunStatus | null): void;
|
|
@@ -868,7 +800,7 @@ declare class FlowsRunsFiltersComponent implements OnInit, OnDestroy {
|
|
|
868
800
|
};
|
|
869
801
|
}, {
|
|
870
802
|
"queryChange": "queryChange";
|
|
871
|
-
}, never, never,
|
|
803
|
+
}, never, never, true, never>;
|
|
872
804
|
}
|
|
873
805
|
type FlowCronMode = 'minutes' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
874
806
|
interface FlowCronSchedule {
|
|
@@ -906,7 +838,7 @@ declare class FlowsCronFieldComponent implements OnChanges {
|
|
|
906
838
|
label: string;
|
|
907
839
|
}[];
|
|
908
840
|
private emitted;
|
|
909
|
-
constructor(
|
|
841
|
+
constructor();
|
|
910
842
|
ngOnChanges(): void;
|
|
911
843
|
get time(): string;
|
|
912
844
|
get weekdayLabel(): string;
|
|
@@ -929,7 +861,7 @@ declare class FlowsCronFieldComponent implements OnChanges {
|
|
|
929
861
|
};
|
|
930
862
|
}, {
|
|
931
863
|
"valueChange": "valueChange";
|
|
932
|
-
}, never, never,
|
|
864
|
+
}, never, never, true, never>;
|
|
933
865
|
}
|
|
934
866
|
declare namespace flows_timezone_field_component_d_exports {
|
|
935
867
|
export { FlowsTimezoneFieldComponent };
|
|
@@ -957,7 +889,7 @@ declare class FlowsTimezoneFieldComponent {
|
|
|
957
889
|
};
|
|
958
890
|
}, {
|
|
959
891
|
"valueChange": "valueChange";
|
|
960
|
-
}, never, never,
|
|
892
|
+
}, never, never, true, never>;
|
|
961
893
|
}
|
|
962
894
|
declare namespace flows_run_inspector_component_d_exports {
|
|
963
895
|
export { FlowsRunInspectorComponent };
|
|
@@ -1003,7 +935,6 @@ declare class FlowsRunInspectorComponent extends AppBaseComponent implements OnI
|
|
|
1003
935
|
nodeIds: string[];
|
|
1004
936
|
definitions: Record<string, FlowNodeDefinition>;
|
|
1005
937
|
private namedVersionId?;
|
|
1006
|
-
constructor(injector: Injector, flowsRunService: FlowsRunService, workflowService: FlowsWorkflowService, nodeService: FlowsNodeService, cdr: ChangeDetectorRef);
|
|
1007
938
|
ngOnInit(): void;
|
|
1008
939
|
ngOnDestroy(): void;
|
|
1009
940
|
back(): void;
|
|
@@ -1016,7 +947,7 @@ declare class FlowsRunInspectorComponent extends AppBaseComponent implements OnI
|
|
|
1016
947
|
private fail;
|
|
1017
948
|
private settle;
|
|
1018
949
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunInspectorComponent, never>;
|
|
1019
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunInspectorComponent, "pw-flows-run-inspector", never, {}, {}, never, never,
|
|
950
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunInspectorComponent, "pw-flows-run-inspector", never, {}, {}, never, never, true, never>;
|
|
1020
951
|
}
|
|
1021
952
|
declare namespace flows_run_progress_component_d_exports {
|
|
1022
953
|
export { FlowRunProgress, FlowsRunProgressComponent, flowRunProgress };
|
|
@@ -1044,7 +975,6 @@ declare class FlowsRunProgressComponent implements OnChanges, OnDestroy {
|
|
|
1044
975
|
progress: FlowRunProgress;
|
|
1045
976
|
elapsed: number | null;
|
|
1046
977
|
private tick$?;
|
|
1047
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1048
978
|
get ended(): boolean;
|
|
1049
979
|
ngOnChanges(): void;
|
|
1050
980
|
ngOnDestroy(): void;
|
|
@@ -1063,7 +993,7 @@ declare class FlowsRunProgressComponent implements OnChanges, OnDestroy {
|
|
|
1063
993
|
"alias": "nodeIds";
|
|
1064
994
|
"required": false;
|
|
1065
995
|
};
|
|
1066
|
-
}, {}, never, never,
|
|
996
|
+
}, {}, never, never, true, never>;
|
|
1067
997
|
}
|
|
1068
998
|
declare namespace flows_step_error_component_d_exports {
|
|
1069
999
|
export { FlowsStepErrorComponent };
|
|
@@ -1119,7 +1049,7 @@ declare class FlowsStepErrorComponent implements OnChanges {
|
|
|
1119
1049
|
"alias": "product";
|
|
1120
1050
|
"required": false;
|
|
1121
1051
|
};
|
|
1122
|
-
}, {}, never, never,
|
|
1052
|
+
}, {}, never, never, true, never>;
|
|
1123
1053
|
}
|
|
1124
1054
|
declare namespace flows_run_error_component_d_exports {
|
|
1125
1055
|
export { FlowsRunErrorComponent };
|
|
@@ -1155,7 +1085,7 @@ declare class FlowsRunErrorComponent implements OnChanges {
|
|
|
1155
1085
|
"alias": "definitions";
|
|
1156
1086
|
"required": false;
|
|
1157
1087
|
};
|
|
1158
|
-
}, {}, never, never,
|
|
1088
|
+
}, {}, never, never, true, never>;
|
|
1159
1089
|
}
|
|
1160
1090
|
declare const FLOW_INPUT = "in";
|
|
1161
1091
|
declare class FlowCanvasNode extends ClassicPreset.Node {
|
|
@@ -1200,7 +1130,6 @@ declare class FlowsCanvasNodeComponent implements OnChanges {
|
|
|
1200
1130
|
seed: number;
|
|
1201
1131
|
inputs: SocketEntry[];
|
|
1202
1132
|
outputs: SocketEntry[];
|
|
1203
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1204
1133
|
get width(): number;
|
|
1205
1134
|
get height(): number;
|
|
1206
1135
|
get selected(): boolean;
|
|
@@ -1224,7 +1153,7 @@ declare class FlowsCanvasNodeComponent implements OnChanges {
|
|
|
1224
1153
|
"alias": "rendered";
|
|
1225
1154
|
"required": false;
|
|
1226
1155
|
};
|
|
1227
|
-
}, {}, never, never,
|
|
1156
|
+
}, {}, never, never, true, never>;
|
|
1228
1157
|
}
|
|
1229
1158
|
declare namespace flows_canvas_socket_component_d_exports {
|
|
1230
1159
|
export { FlowsCanvasSocketComponent };
|
|
@@ -1243,7 +1172,7 @@ declare class FlowsCanvasSocketComponent implements OnChanges {
|
|
|
1243
1172
|
"alias": "rendered";
|
|
1244
1173
|
"required": false;
|
|
1245
1174
|
};
|
|
1246
|
-
}, {}, never, never,
|
|
1175
|
+
}, {}, never, never, true, never>;
|
|
1247
1176
|
}
|
|
1248
1177
|
declare namespace flows_canvas_connection_component_d_exports {
|
|
1249
1178
|
export { FlowsCanvasConnectionComponent };
|
|
@@ -1271,7 +1200,7 @@ declare class FlowsCanvasConnectionComponent {
|
|
|
1271
1200
|
"alias": "path";
|
|
1272
1201
|
"required": false;
|
|
1273
1202
|
};
|
|
1274
|
-
}, {}, never, never,
|
|
1203
|
+
}, {}, never, never, true, never>;
|
|
1275
1204
|
}
|
|
1276
1205
|
declare namespace flows_node_palette_component_d_exports {
|
|
1277
1206
|
export { FlowsNodePaletteComponent };
|
|
@@ -1300,7 +1229,7 @@ declare class FlowsNodePaletteComponent implements OnChanges {
|
|
|
1300
1229
|
};
|
|
1301
1230
|
}, {
|
|
1302
1231
|
"add": "add";
|
|
1303
|
-
}, never, never,
|
|
1232
|
+
}, never, never, true, never>;
|
|
1304
1233
|
}
|
|
1305
1234
|
type FlowFieldKind$1 = 'text' | 'textarea' | 'email' | 'member' | 'members' | 'json' | 'pairs' | 'mode' | 'cron' | 'timezone' | 'number' | 'select' | 'list' | 'choices';
|
|
1306
1235
|
interface FlowNodeField extends Omit<FlowParamDetail, 'kind'> {
|
|
@@ -1328,6 +1257,8 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1328
1257
|
fieldSuggestions: string[];
|
|
1329
1258
|
/** The lists Split out can pick from; empty until the node before it has run. */
|
|
1330
1259
|
listSuggestions: string[];
|
|
1260
|
+
/** The fixed settings of the nodes before this one, by param name. */
|
|
1261
|
+
settingValues: Record<string, string>;
|
|
1331
1262
|
/** The same fields, by the connected node they come from; null hides the section. */
|
|
1332
1263
|
fieldSources: FlowFieldSource[] | null;
|
|
1333
1264
|
/** The workflow has not run yet, so no fields have been seen. */
|
|
@@ -1363,7 +1294,6 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1363
1294
|
id: string;
|
|
1364
1295
|
})[];
|
|
1365
1296
|
conditionNotAnObject: boolean;
|
|
1366
|
-
constructor(host: ElementRef<HTMLElement>);
|
|
1367
1297
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1368
1298
|
private saveFieldBeingTyped;
|
|
1369
1299
|
ngAfterViewChecked(): void;
|
|
@@ -1399,6 +1329,10 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1399
1329
|
"alias": "listSuggestions";
|
|
1400
1330
|
"required": false;
|
|
1401
1331
|
};
|
|
1332
|
+
"settingValues": {
|
|
1333
|
+
"alias": "settingValues";
|
|
1334
|
+
"required": false;
|
|
1335
|
+
};
|
|
1402
1336
|
"fieldSources": {
|
|
1403
1337
|
"alias": "fieldSources";
|
|
1404
1338
|
"required": false;
|
|
@@ -1410,7 +1344,7 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1410
1344
|
}, {
|
|
1411
1345
|
"nodeChange": "nodeChange";
|
|
1412
1346
|
"remove": "remove";
|
|
1413
|
-
}, never, never,
|
|
1347
|
+
}, never, never, true, never>;
|
|
1414
1348
|
}
|
|
1415
1349
|
declare namespace flows_json_field_component_d_exports {
|
|
1416
1350
|
export { FlowsJsonFieldComponent };
|
|
@@ -1440,7 +1374,7 @@ declare class FlowsJsonFieldComponent implements OnChanges {
|
|
|
1440
1374
|
};
|
|
1441
1375
|
}, {
|
|
1442
1376
|
"valueChange": "valueChange";
|
|
1443
|
-
}, never, never,
|
|
1377
|
+
}, never, never, true, never>;
|
|
1444
1378
|
}
|
|
1445
1379
|
type FlowConditionOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'empty' | 'not_empty';
|
|
1446
1380
|
type FlowConditionValueType = 'text' | 'number' | 'boolean';
|
|
@@ -1506,7 +1440,7 @@ declare class FlowsConditionFieldComponent implements OnChanges {
|
|
|
1506
1440
|
mode: 'rules' | 'json';
|
|
1507
1441
|
incomplete: boolean;
|
|
1508
1442
|
private emitted;
|
|
1509
|
-
constructor(
|
|
1443
|
+
constructor();
|
|
1510
1444
|
ngOnChanges(): void;
|
|
1511
1445
|
get combinesRules(): boolean;
|
|
1512
1446
|
get canUseRules(): boolean;
|
|
@@ -1537,7 +1471,7 @@ declare class FlowsConditionFieldComponent implements OnChanges {
|
|
|
1537
1471
|
};
|
|
1538
1472
|
}, {
|
|
1539
1473
|
"valueChange": "valueChange";
|
|
1540
|
-
}, never, never,
|
|
1474
|
+
}, never, never, true, never>;
|
|
1541
1475
|
}
|
|
1542
1476
|
declare namespace flows_pairs_field_component_d_exports {
|
|
1543
1477
|
export { FlowsPairsFieldComponent };
|
|
@@ -1596,7 +1530,7 @@ declare class FlowsPairsFieldComponent implements OnChanges {
|
|
|
1596
1530
|
};
|
|
1597
1531
|
}, {
|
|
1598
1532
|
"valueChange": "valueChange";
|
|
1599
|
-
}, never, never,
|
|
1533
|
+
}, never, never, true, never>;
|
|
1600
1534
|
}
|
|
1601
1535
|
declare const FLOW_AI_DECIDE_TYPE = "logic.ai_decide";
|
|
1602
1536
|
interface FlowAiChoice {
|
|
@@ -1664,7 +1598,7 @@ declare class FlowsChoicesFieldComponent implements OnChanges {
|
|
|
1664
1598
|
};
|
|
1665
1599
|
}, {
|
|
1666
1600
|
"valueChange": "valueChange";
|
|
1667
|
-
}, never, never,
|
|
1601
|
+
}, never, never, true, never>;
|
|
1668
1602
|
}
|
|
1669
1603
|
declare namespace flows_param_field_component_d_exports {
|
|
1670
1604
|
export { FlowsParamFieldComponent };
|
|
@@ -1679,6 +1613,8 @@ declare class FlowsParamFieldComponent {
|
|
|
1679
1613
|
subscriptionId: number;
|
|
1680
1614
|
/** The lists Split out can pick from; empty until the node before it has run. */
|
|
1681
1615
|
listSuggestions: string[];
|
|
1616
|
+
/** The fixed settings of the nodes before this one, by param name. */
|
|
1617
|
+
settingValues: Record<string, string>;
|
|
1682
1618
|
readonly valueChange: EventEmitter<unknown>;
|
|
1683
1619
|
mergeModes: {
|
|
1684
1620
|
value: string;
|
|
@@ -1686,7 +1622,12 @@ declare class FlowsParamFieldComponent {
|
|
|
1686
1622
|
}[];
|
|
1687
1623
|
readonly defaultMergeMode: string;
|
|
1688
1624
|
readonly numberValue: typeof flowNumberValue;
|
|
1689
|
-
constructor(
|
|
1625
|
+
constructor();
|
|
1626
|
+
/**
|
|
1627
|
+
* What an editable select shows: `Duo` for a saved `{{vendor_name}}` when an earlier node
|
|
1628
|
+
* is set to Duo. Only the shown text changes; the saved placeholder is untouched.
|
|
1629
|
+
*/
|
|
1630
|
+
get shownValue(): unknown;
|
|
1690
1631
|
/** A list is picked from what is known, and typed when nothing is known yet. */
|
|
1691
1632
|
get kind(): FlowNodeField['kind'];
|
|
1692
1633
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsParamFieldComponent, never>;
|
|
@@ -1711,9 +1652,13 @@ declare class FlowsParamFieldComponent {
|
|
|
1711
1652
|
"alias": "listSuggestions";
|
|
1712
1653
|
"required": false;
|
|
1713
1654
|
};
|
|
1655
|
+
"settingValues": {
|
|
1656
|
+
"alias": "settingValues";
|
|
1657
|
+
"required": false;
|
|
1658
|
+
};
|
|
1714
1659
|
}, {
|
|
1715
1660
|
"valueChange": "valueChange";
|
|
1716
|
-
}, never, never,
|
|
1661
|
+
}, never, never, true, never>;
|
|
1717
1662
|
}
|
|
1718
1663
|
interface FlowMember {
|
|
1719
1664
|
id: number;
|
|
@@ -1723,7 +1668,6 @@ interface FlowMember {
|
|
|
1723
1668
|
declare class FlowsMemberService {
|
|
1724
1669
|
private readonly subscriptions;
|
|
1725
1670
|
private readonly known;
|
|
1726
|
-
constructor(subscriptions: SubscriptionService);
|
|
1727
1671
|
search(subscriptionId: number, query: string): Observable<FlowMember[]>;
|
|
1728
1672
|
/** Name of a member already seen in a search, for ids stored in a saved graph. */
|
|
1729
1673
|
knownMember(id: number): FlowMember | undefined;
|
|
@@ -1746,7 +1690,6 @@ declare class FlowsMemberFieldComponent implements OnChanges, OnDestroy {
|
|
|
1746
1690
|
suggestions: FlowMember[];
|
|
1747
1691
|
failed: boolean;
|
|
1748
1692
|
private search?;
|
|
1749
|
-
constructor(members: FlowsMemberService, cdr: ChangeDetectorRef);
|
|
1750
1693
|
ngOnChanges(): void;
|
|
1751
1694
|
complete(query: string): void;
|
|
1752
1695
|
changed(selection: FlowMember | FlowMember[] | null): void;
|
|
@@ -1775,7 +1718,7 @@ declare class FlowsMemberFieldComponent implements OnChanges, OnDestroy {
|
|
|
1775
1718
|
};
|
|
1776
1719
|
}, {
|
|
1777
1720
|
"valueChange": "valueChange";
|
|
1778
|
-
}, never, never,
|
|
1721
|
+
}, never, never, true, never>;
|
|
1779
1722
|
}
|
|
1780
1723
|
declare namespace flows_retry_field_component_d_exports {
|
|
1781
1724
|
export { FlowsRetryFieldComponent };
|
|
@@ -1805,7 +1748,7 @@ declare class FlowsRetryFieldComponent {
|
|
|
1805
1748
|
};
|
|
1806
1749
|
}, {
|
|
1807
1750
|
"valueChange": "valueChange";
|
|
1808
|
-
}, never, never,
|
|
1751
|
+
}, never, never, true, never>;
|
|
1809
1752
|
}
|
|
1810
1753
|
declare namespace flows_available_fields_component_d_exports {
|
|
1811
1754
|
export { FlowFieldKind, FlowsAvailableFieldsComponent };
|
|
@@ -1831,7 +1774,7 @@ declare class FlowsAvailableFieldsComponent {
|
|
|
1831
1774
|
/** The box a pick goes into takes a field's name rather than a placeholder. */
|
|
1832
1775
|
names: boolean;
|
|
1833
1776
|
private box?;
|
|
1834
|
-
constructor(
|
|
1777
|
+
constructor();
|
|
1835
1778
|
/** Counts only what the box can take, which is all that is shown. */
|
|
1836
1779
|
get searchable(): boolean;
|
|
1837
1780
|
remember(target: EventTarget | null): void;
|
|
@@ -1870,7 +1813,7 @@ declare class FlowsAvailableFieldsComponent {
|
|
|
1870
1813
|
"alias": "nodeType";
|
|
1871
1814
|
"required": false;
|
|
1872
1815
|
};
|
|
1873
|
-
}, {}, never, never,
|
|
1816
|
+
}, {}, never, never, true, never>;
|
|
1874
1817
|
}
|
|
1875
1818
|
declare namespace flows_unknown_fields_component_d_exports {
|
|
1876
1819
|
export { FlowsUnknownFieldsComponent };
|
|
@@ -1912,7 +1855,7 @@ declare class FlowsUnknownFieldsComponent implements OnChanges {
|
|
|
1912
1855
|
"alias": "known";
|
|
1913
1856
|
"required": false;
|
|
1914
1857
|
};
|
|
1915
|
-
}, {}, never, never,
|
|
1858
|
+
}, {}, never, never, true, never>;
|
|
1916
1859
|
}
|
|
1917
1860
|
declare namespace flows_workflow_status_component_d_exports {
|
|
1918
1861
|
export { FlowsWorkflowStatusComponent };
|
|
@@ -1948,7 +1891,6 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1948
1891
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1949
1892
|
};
|
|
1950
1893
|
saving: boolean;
|
|
1951
|
-
constructor(workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
1952
1894
|
get isOn(): boolean;
|
|
1953
1895
|
toggle(): void;
|
|
1954
1896
|
/** Asked right after a publish, so a new workflow goes live in one more click. */
|
|
@@ -1971,7 +1913,7 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1971
1913
|
};
|
|
1972
1914
|
}, {
|
|
1973
1915
|
"workflowChange": "workflowChange";
|
|
1974
|
-
}, never, never,
|
|
1916
|
+
}, never, never, true, never>;
|
|
1975
1917
|
}
|
|
1976
1918
|
declare namespace flow_workflow_badge_pipe_d_exports {
|
|
1977
1919
|
export { FlowWorkflowBadgePipe };
|
|
@@ -1979,7 +1921,7 @@ declare namespace flow_workflow_badge_pipe_d_exports {
|
|
|
1979
1921
|
declare class FlowWorkflowBadgePipe implements PipeTransform {
|
|
1980
1922
|
transform(status: FlowWorkflowStatus): string;
|
|
1981
1923
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowWorkflowBadgePipe, never>;
|
|
1982
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FlowWorkflowBadgePipe, "flowWorkflowBadge",
|
|
1924
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FlowWorkflowBadgePipe, "flowWorkflowBadge", true>;
|
|
1983
1925
|
}
|
|
1984
1926
|
declare namespace flow_json_lines_pipe_d_exports {
|
|
1985
1927
|
export { FlowJsonLine, FlowJsonLinesPipe };
|
|
@@ -1992,10 +1934,10 @@ interface FlowJsonLine {
|
|
|
1992
1934
|
declare class FlowJsonLinesPipe implements PipeTransform {
|
|
1993
1935
|
transform(value: unknown): FlowJsonLine[];
|
|
1994
1936
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowJsonLinesPipe, never>;
|
|
1995
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FlowJsonLinesPipe, "flowJsonLines",
|
|
1937
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FlowJsonLinesPipe, "flowJsonLines", true>;
|
|
1996
1938
|
}
|
|
1997
1939
|
export declare class FlowsPrivateModule {
|
|
1998
1940
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateModule, never>;
|
|
1999
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof
|
|
1941
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, never, [typeof i1.PwStickyActionsComponent, typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.TrackDirtyFormDirective, typeof i5.CoreTranslocoModule, typeof i6.AppLoaderModule, typeof i1.SharedComponentsModule, typeof i7.DirectivesModule, typeof i8.PipesModule, typeof i9.FontAwesomeModule, typeof i10.IconFieldModule, typeof i11.InputIconModule, typeof i12.AutoCompleteModule, typeof i13.InputTextModule, typeof i14.ReteModule, typeof FlowsPrivateRoutingModule, 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 FlowsChoicesFieldComponent, typeof FlowsParamFieldComponent, typeof FlowsMemberFieldComponent, typeof FlowsRetryFieldComponent, typeof FlowsAvailableFieldsComponent, typeof FlowsUnknownFieldsComponent, typeof FlowsWorkflowStatusComponent, typeof FlowWorkflowBadgePipe, typeof FlowJsonLinesPipe], never>;
|
|
2000
1942
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateModule>;
|
|
2001
1943
|
}
|