@posiwise/flows 0.0.11 → 0.0.13
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 +3789 -3666
- package/fesm2022/posiwise-flows.mjs.map +1 -1
- package/package.json +1 -1
- package/types/posiwise-flows.d.ts +145 -252
|
@@ -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[];
|
|
@@ -68,16 +63,6 @@ interface FlowVersion {
|
|
|
68
63
|
created_at: string;
|
|
69
64
|
updated_at: string;
|
|
70
65
|
}
|
|
71
|
-
interface FlowWorkflowListResponse {
|
|
72
|
-
flow_workflows: FlowWorkflow[];
|
|
73
|
-
object_count: number;
|
|
74
|
-
unfiltered_count: number;
|
|
75
|
-
}
|
|
76
|
-
interface FlowVersionListResponse {
|
|
77
|
-
flow_versions: FlowVersion[];
|
|
78
|
-
object_count: number;
|
|
79
|
-
unfiltered_count: number;
|
|
80
|
-
}
|
|
81
66
|
interface FlowWorkflowAttrs {
|
|
82
67
|
name?: string;
|
|
83
68
|
description?: string;
|
|
@@ -88,49 +73,10 @@ declare function flowWorkflowStatusOptions(labels: readonly string[]): {
|
|
|
88
73
|
value: FlowWorkflowStatus;
|
|
89
74
|
label: string;
|
|
90
75
|
}[];
|
|
91
|
-
declare function flowWorkflowForm():
|
|
76
|
+
declare function flowWorkflowForm(): FormGroup;
|
|
92
77
|
declare function flowVersionBadgeClass(version: Pick<FlowVersion, 'published_at'>): string;
|
|
93
78
|
declare function flowWorkflowBadgeClass(status: FlowWorkflowStatus): string;
|
|
94
79
|
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
80
|
declare namespace flows_workflows_component_d_exports {
|
|
135
81
|
export { FlowsWorkflowsComponent };
|
|
136
82
|
}
|
|
@@ -173,7 +119,6 @@ declare class FlowsWorkflowsComponent extends AppBaseComponent implements OnInit
|
|
|
173
119
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
174
120
|
};
|
|
175
121
|
readonly badgeClass: typeof flowWorkflowBadgeClass;
|
|
176
|
-
constructor(injector: Injector, workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
177
122
|
ngOnInit(): void;
|
|
178
123
|
ngOnDestroy(): void;
|
|
179
124
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
@@ -186,7 +131,7 @@ declare class FlowsWorkflowsComponent extends AppBaseComponent implements OnInit
|
|
|
186
131
|
private load;
|
|
187
132
|
private settle;
|
|
188
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowsComponent, never>;
|
|
189
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowsComponent, "pw-flows-workflows", never, {}, {}, never, never,
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowsComponent, "pw-flows-workflows", never, {}, {}, never, never, true, never>;
|
|
190
135
|
}
|
|
191
136
|
declare namespace flows_workflow_form_component_d_exports {
|
|
192
137
|
export { FlowsWorkflowFormComponent };
|
|
@@ -200,7 +145,7 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
200
145
|
saving: boolean;
|
|
201
146
|
workflowId: number | null;
|
|
202
147
|
notFound: boolean;
|
|
203
|
-
form:
|
|
148
|
+
form: FormGroup;
|
|
204
149
|
statusOptions: {
|
|
205
150
|
value: FlowWorkflowStatus;
|
|
206
151
|
label: string;
|
|
@@ -225,7 +170,6 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
225
170
|
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
226
171
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
227
172
|
};
|
|
228
|
-
constructor(injector: Injector, workflowService: FlowsWorkflowService, cdr: ChangeDetectorRef);
|
|
229
173
|
get isEdit(): boolean;
|
|
230
174
|
ngOnInit(): void;
|
|
231
175
|
ngOnDestroy(): void;
|
|
@@ -237,7 +181,23 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
|
|
|
237
181
|
private loadWorkflow;
|
|
238
182
|
private settle;
|
|
239
183
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowFormComponent, never>;
|
|
240
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowFormComponent, "pw-flows-workflow-form", never, {}, {}, never, never,
|
|
184
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowFormComponent, "pw-flows-workflow-form", never, {}, {}, never, never, true, never>;
|
|
185
|
+
}
|
|
186
|
+
/** One finding of FlowGraphCheck on the server; `code` is stable, `message` is the English fallback. */
|
|
187
|
+
interface FlowGraphIssue {
|
|
188
|
+
code: string;
|
|
189
|
+
message: string;
|
|
190
|
+
/** Null for a problem with the graph as a whole. */
|
|
191
|
+
node_id: string | null;
|
|
192
|
+
/** The param it is about, when there is one. */
|
|
193
|
+
field?: string | null;
|
|
194
|
+
}
|
|
195
|
+
interface FlowGraphCheck {
|
|
196
|
+
/** False when publishing would be refused. */
|
|
197
|
+
valid: boolean;
|
|
198
|
+
errors: FlowGraphIssue[];
|
|
199
|
+
/** Allowed by publishing, but most likely not meant. */
|
|
200
|
+
warnings: FlowGraphIssue[];
|
|
241
201
|
}
|
|
242
202
|
/** What the version editor shows. Opening or closing it resets all of this together. */
|
|
243
203
|
declare class FlowVersionEditorState {
|
|
@@ -296,7 +256,7 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
|
|
|
296
256
|
readonly isPublished: typeof isFlowVersionPublished;
|
|
297
257
|
readonly badgeClass: typeof flowVersionBadgeClass;
|
|
298
258
|
readonly canPublish: boolean;
|
|
299
|
-
constructor(
|
|
259
|
+
constructor();
|
|
300
260
|
ngOnInit(): void;
|
|
301
261
|
ngOnDestroy(): void;
|
|
302
262
|
openEditor(version?: FlowVersion | null, duplicateOf?: FlowVersion | null): void;
|
|
@@ -312,7 +272,7 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
|
|
|
312
272
|
private openRequestedVersion;
|
|
313
273
|
private settle;
|
|
314
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowVersionsComponent, never>;
|
|
315
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowVersionsComponent, "pw-flows-workflow-versions", never, {}, {}, never, never,
|
|
275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowVersionsComponent, "pw-flows-workflow-versions", never, {}, {}, never, never, true, never>;
|
|
316
276
|
}
|
|
317
277
|
/** The fields that reach a node from one connected node before it. */
|
|
318
278
|
interface FlowFieldSource {
|
|
@@ -371,11 +331,6 @@ interface FlowNodeDefinition {
|
|
|
371
331
|
/** The product that declared the node; absent on the engine's own. */
|
|
372
332
|
product_key?: string | null;
|
|
373
333
|
}
|
|
374
|
-
interface FlowNodeListResponse {
|
|
375
|
-
flow_nodes: FlowNodeDefinition[];
|
|
376
|
-
object_count: number;
|
|
377
|
-
unfiltered_count: number;
|
|
378
|
-
}
|
|
379
334
|
interface FlowGraphPosition {
|
|
380
335
|
x: number;
|
|
381
336
|
y: number;
|
|
@@ -431,9 +386,6 @@ interface FlowWorkflowFieldsRow {
|
|
|
431
386
|
node_type: string | null;
|
|
432
387
|
item_fields: FlowItemFields;
|
|
433
388
|
}
|
|
434
|
-
interface FlowWorkflowFieldsResponse {
|
|
435
|
-
flow_workflow_fields: FlowWorkflowFieldsRow[];
|
|
436
|
-
}
|
|
437
389
|
interface FlowWorkflowFields {
|
|
438
390
|
/** Keyed by flowNodeFieldsKey(id, type). */
|
|
439
391
|
byNode: Record<string, FlowItemFields>;
|
|
@@ -443,124 +395,6 @@ interface FlowWorkflowFields {
|
|
|
443
395
|
declare const NO_FLOW_WORKFLOW_FIELDS: FlowWorkflowFields;
|
|
444
396
|
declare function flowNodeFieldsKey(nodeId: string, type: string | null | undefined): string;
|
|
445
397
|
declare function toFlowWorkflowFields(rows: FlowWorkflowFieldsRow[] | undefined): FlowWorkflowFields;
|
|
446
|
-
declare class FlowsNodeService {
|
|
447
|
-
private readonly api;
|
|
448
|
-
private readonly cache;
|
|
449
|
-
private readonly refetched;
|
|
450
|
-
constructor(api: ProductsHttpService);
|
|
451
|
-
/** A list cached before `needed` types were declared is fetched again. */
|
|
452
|
-
getNodes(subscriptionId: number, needed?: readonly string[]): Observable<FlowNodeDefinition[]>;
|
|
453
|
-
private cached;
|
|
454
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsNodeService, never>;
|
|
455
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
456
|
-
}
|
|
457
|
-
/** A step error in words the person running the flow can act on: a translation key and its values. */
|
|
458
|
-
interface FlowStepErrorText {
|
|
459
|
-
key: string;
|
|
460
|
-
params: Record<string, string>;
|
|
461
|
-
/** Translation keys, not text. */
|
|
462
|
-
list?: string[];
|
|
463
|
-
}
|
|
464
|
-
interface FlowStepErrorContext {
|
|
465
|
-
system?: string | null;
|
|
466
|
-
product?: string | null;
|
|
467
|
-
}
|
|
468
|
-
/** Null for an empty error. */
|
|
469
|
-
declare function flowStepErrorText(error: string | null | undefined, context?: FlowStepErrorContext): FlowStepErrorText | null;
|
|
470
|
-
interface FlowErrorSource {
|
|
471
|
-
service: string;
|
|
472
|
-
system?: string;
|
|
473
|
-
}
|
|
474
|
-
/** products-api's Settings.endpoints.this_app.path. */
|
|
475
|
-
declare const FLOWS_SERVICE = "products-api";
|
|
476
|
-
/** Service names stay internal: customers see Flows, the product, or the system. */
|
|
477
|
-
declare function flowErrorSourceText(source: FlowErrorSource | null | undefined, product?: string | null): FlowStepErrorText | null;
|
|
478
|
-
type FlowRunStatus = 'running' | 'awaiting' | 'succeeded' | 'failed';
|
|
479
|
-
type FlowRunStepStatus = 'pending' | 'running' | 'awaiting' | 'succeeded' | 'failed' | 'skipped';
|
|
480
|
-
declare const FLOW_RUN_TERMINAL_STATUSES: readonly FlowRunStatus[];
|
|
481
|
-
declare const FLOW_RUN_STEP_SETTLED_STATUSES: readonly FlowRunStepStatus[];
|
|
482
|
-
interface FlowRun {
|
|
483
|
-
id: number;
|
|
484
|
-
flow_workflow_id: number;
|
|
485
|
-
flow_version_id: number;
|
|
486
|
-
flow_workflow_name?: string;
|
|
487
|
-
flow_version_number?: number;
|
|
488
|
-
status: FlowRunStatus;
|
|
489
|
-
trigger_payload: unknown;
|
|
490
|
-
error: string | null;
|
|
491
|
-
started_at: string | null;
|
|
492
|
-
finished_at: string | null;
|
|
493
|
-
created_at: string;
|
|
494
|
-
updated_at: string;
|
|
495
|
-
}
|
|
496
|
-
interface FlowRunStep {
|
|
497
|
-
id: number;
|
|
498
|
-
flow_run_id: number;
|
|
499
|
-
node_id: string;
|
|
500
|
-
status: FlowRunStepStatus;
|
|
501
|
-
input_items: unknown[] | null;
|
|
502
|
-
output_items: unknown[] | null;
|
|
503
|
-
error: string | null;
|
|
504
|
-
error_source?: FlowErrorSource | null;
|
|
505
|
-
attempts: number;
|
|
506
|
-
awaiting_since: string | null;
|
|
507
|
-
/** Set while a failed step waits to run again. */
|
|
508
|
-
retry_at?: string | null;
|
|
509
|
-
started_at: string | null;
|
|
510
|
-
finished_at: string | null;
|
|
511
|
-
created_at: string;
|
|
512
|
-
updated_at: string;
|
|
513
|
-
}
|
|
514
|
-
interface FlowRunListResponse {
|
|
515
|
-
flow_runs: FlowRun[];
|
|
516
|
-
object_count: number;
|
|
517
|
-
unfiltered_count: number;
|
|
518
|
-
}
|
|
519
|
-
interface FlowRunStepListResponse {
|
|
520
|
-
flow_run_steps: FlowRunStep[];
|
|
521
|
-
object_count: number;
|
|
522
|
-
unfiltered_count: number;
|
|
523
|
-
}
|
|
524
|
-
interface FlowRunQuery {
|
|
525
|
-
status?: FlowRunStatus;
|
|
526
|
-
flow_workflow_id?: number;
|
|
527
|
-
flow_version_id?: number;
|
|
528
|
-
}
|
|
529
|
-
declare function isFlowRunTerminal(run: Pick<FlowRun, 'status'>): boolean;
|
|
530
|
-
declare function isFlowRunStepSettled(step: Pick<FlowRunStep, 'status'>): boolean;
|
|
531
|
-
declare const FLOW_RUN_STATUS_ORDER: readonly FlowRunStatus[];
|
|
532
|
-
declare const FLOW_RUN_STATUS_KEYS: readonly string[];
|
|
533
|
-
declare function elapsedMs(from: string | null, to: string | null): number | null;
|
|
534
|
-
declare function flowRunBadgeClass(status: FlowRunStatus): string;
|
|
535
|
-
declare function flowRunStepBadgeClass(status: FlowRunStepStatus): string;
|
|
536
|
-
/** The time slot a scheduled run was for, from its trigger payload; null for any other run. */
|
|
537
|
-
declare function flowRunScheduledFor(run: FlowRun | undefined): string | null;
|
|
538
|
-
interface FlowRunDetail {
|
|
539
|
-
run: FlowRun;
|
|
540
|
-
steps: FlowRunStepListResponse;
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
* Polls because the engine emits no run-lifecycle events yet; Part H swaps in
|
|
544
|
-
* a push here without any component changing.
|
|
545
|
-
*/
|
|
546
|
-
declare class FlowsRunService {
|
|
547
|
-
private readonly api;
|
|
548
|
-
RUNS_PATH: string;
|
|
549
|
-
constructor(api: ProductsHttpService);
|
|
550
|
-
getRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse>;
|
|
551
|
-
getRun(id: number, subscriptionId: number): Observable<FlowRun>;
|
|
552
|
-
getRunSteps(runId: number, subscriptionId: number, paging?: Paging): Observable<FlowRunStepListResponse>;
|
|
553
|
-
/** Never completes on its own. Emits null for a failed poll, so what is shown stays. */
|
|
554
|
-
watchRuns(subscriptionId: number, query?: FlowRunQuery, paging?: Paging): Observable<FlowRunListResponse | null>;
|
|
555
|
-
/** An error before the run first loads ends the watch; after that, the next poll retries. */
|
|
556
|
-
watchRun(id: number, subscriptionId: number, paging?: Paging): Observable<FlowRunDetail>;
|
|
557
|
-
private hasUnsettledRun;
|
|
558
|
-
/** A help for the builder, so a failed load leaves it as it was before the flow ran. */
|
|
559
|
-
getWorkflowFields(workflowId: number, subscriptionId: number): Observable<FlowWorkflowFields>;
|
|
560
|
-
private definedQuery;
|
|
561
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunService, never>;
|
|
562
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
563
|
-
}
|
|
564
398
|
declare namespace flows_version_editor_component_d_exports {
|
|
565
399
|
export { FlowsVersionEditorComponent };
|
|
566
400
|
}
|
|
@@ -613,7 +447,6 @@ declare class FlowsVersionEditorComponent implements OnInit, OnChanges, OnDestro
|
|
|
613
447
|
selection: FlowNodeSelection | null;
|
|
614
448
|
dropped: FlowGraphEdge[];
|
|
615
449
|
saving: boolean;
|
|
616
|
-
constructor(workflowService: FlowsWorkflowService, nodeService: FlowsNodeService, runService: FlowsRunService, cdr: ChangeDetectorRef);
|
|
617
450
|
get readOnly(): boolean;
|
|
618
451
|
get headingKey(): string;
|
|
619
452
|
ngOnInit(): void;
|
|
@@ -650,7 +483,7 @@ declare class FlowsVersionEditorComponent implements OnInit, OnChanges, OnDestro
|
|
|
650
483
|
}, {
|
|
651
484
|
"saved": "saved";
|
|
652
485
|
"cancelled": "cancelled";
|
|
653
|
-
}, never, never,
|
|
486
|
+
}, never, never, true, never>;
|
|
654
487
|
}
|
|
655
488
|
declare namespace flows_graph_canvas_component_d_exports {
|
|
656
489
|
export { FlowsGraphCanvasComponent };
|
|
@@ -673,7 +506,6 @@ declare class FlowsGraphCanvasComponent implements AfterViewInit, OnChanges, OnD
|
|
|
673
506
|
private selected;
|
|
674
507
|
private reselect?;
|
|
675
508
|
private pending;
|
|
676
|
-
constructor(injector: Injector, cdr: ChangeDetectorRef);
|
|
677
509
|
ngAfterViewInit(): void;
|
|
678
510
|
ngOnChanges(changes: SimpleChanges): void;
|
|
679
511
|
addNode(type: string): Promise<void>;
|
|
@@ -708,7 +540,7 @@ declare class FlowsGraphCanvasComponent implements AfterViewInit, OnChanges, OnD
|
|
|
708
540
|
"selectionChange": "selectionChange";
|
|
709
541
|
"graphChange": "graphChange";
|
|
710
542
|
"dropped": "dropped";
|
|
711
|
-
}, never, never,
|
|
543
|
+
}, never, never, true, never>;
|
|
712
544
|
}
|
|
713
545
|
declare namespace flows_graph_check_component_d_exports {
|
|
714
546
|
export { FlowGraphCheckRow, FlowsGraphCheckComponent };
|
|
@@ -751,7 +583,6 @@ declare class FlowsGraphCheckComponent implements OnChanges {
|
|
|
751
583
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
752
584
|
};
|
|
753
585
|
rows: FlowGraphCheckRow[];
|
|
754
|
-
constructor(translation: TranslocoService);
|
|
755
586
|
ngOnChanges(): void;
|
|
756
587
|
goTo(issue: FlowGraphIssue): void;
|
|
757
588
|
/** Where it is, for the list: the node's name, or nothing for the graph as a whole. */
|
|
@@ -775,8 +606,79 @@ declare class FlowsGraphCheckComponent implements OnChanges {
|
|
|
775
606
|
"alias": "result";
|
|
776
607
|
"required": false;
|
|
777
608
|
};
|
|
778
|
-
}, {}, never, never,
|
|
609
|
+
}, {}, never, never, true, never>;
|
|
779
610
|
}
|
|
611
|
+
/** A step error in words the person running the flow can act on: a translation key and its values. */
|
|
612
|
+
interface FlowStepErrorText {
|
|
613
|
+
key: string;
|
|
614
|
+
params: Record<string, string>;
|
|
615
|
+
/** Translation keys, not text. */
|
|
616
|
+
list?: string[];
|
|
617
|
+
}
|
|
618
|
+
interface FlowStepErrorContext {
|
|
619
|
+
system?: string | null;
|
|
620
|
+
product?: string | null;
|
|
621
|
+
}
|
|
622
|
+
/** Null for an empty error. */
|
|
623
|
+
declare function flowStepErrorText(error: string | null | undefined, context?: FlowStepErrorContext): FlowStepErrorText | null;
|
|
624
|
+
interface FlowErrorSource {
|
|
625
|
+
service: string;
|
|
626
|
+
system?: string;
|
|
627
|
+
}
|
|
628
|
+
/** products-api's Settings.endpoints.this_app.path. */
|
|
629
|
+
declare const FLOWS_SERVICE = "products-api";
|
|
630
|
+
/** Service names stay internal: customers see Flows, the product, or the system. */
|
|
631
|
+
declare function flowErrorSourceText(source: FlowErrorSource | null | undefined, product?: string | null): FlowStepErrorText | null;
|
|
632
|
+
type FlowRunStatus = 'running' | 'awaiting' | 'succeeded' | 'failed';
|
|
633
|
+
type FlowRunStepStatus = 'pending' | 'running' | 'awaiting' | 'succeeded' | 'failed' | 'skipped';
|
|
634
|
+
declare const FLOW_RUN_TERMINAL_STATUSES: readonly FlowRunStatus[];
|
|
635
|
+
declare const FLOW_RUN_STEP_SETTLED_STATUSES: readonly FlowRunStepStatus[];
|
|
636
|
+
interface FlowRun {
|
|
637
|
+
id: number;
|
|
638
|
+
flow_workflow_id: number;
|
|
639
|
+
flow_version_id: number;
|
|
640
|
+
flow_workflow_name?: string;
|
|
641
|
+
flow_version_number?: number;
|
|
642
|
+
status: FlowRunStatus;
|
|
643
|
+
trigger_payload: unknown;
|
|
644
|
+
error: string | null;
|
|
645
|
+
started_at: string | null;
|
|
646
|
+
finished_at: string | null;
|
|
647
|
+
created_at: string;
|
|
648
|
+
updated_at: string;
|
|
649
|
+
}
|
|
650
|
+
interface FlowRunStep {
|
|
651
|
+
id: number;
|
|
652
|
+
flow_run_id: number;
|
|
653
|
+
node_id: string;
|
|
654
|
+
status: FlowRunStepStatus;
|
|
655
|
+
input_items: unknown[] | null;
|
|
656
|
+
output_items: unknown[] | null;
|
|
657
|
+
error: string | null;
|
|
658
|
+
error_source?: FlowErrorSource | null;
|
|
659
|
+
attempts: number;
|
|
660
|
+
awaiting_since: string | null;
|
|
661
|
+
/** Set while a failed step waits to run again. */
|
|
662
|
+
retry_at?: string | null;
|
|
663
|
+
started_at: string | null;
|
|
664
|
+
finished_at: string | null;
|
|
665
|
+
created_at: string;
|
|
666
|
+
updated_at: string;
|
|
667
|
+
}
|
|
668
|
+
interface FlowRunQuery {
|
|
669
|
+
status?: FlowRunStatus;
|
|
670
|
+
flow_workflow_id?: number;
|
|
671
|
+
flow_version_id?: number;
|
|
672
|
+
}
|
|
673
|
+
declare function isFlowRunTerminal(run: Pick<FlowRun, 'status'>): boolean;
|
|
674
|
+
declare function isFlowRunStepSettled(step: Pick<FlowRunStep, 'status'>): boolean;
|
|
675
|
+
declare const FLOW_RUN_STATUS_ORDER: readonly FlowRunStatus[];
|
|
676
|
+
declare const FLOW_RUN_STATUS_KEYS: readonly string[];
|
|
677
|
+
declare function elapsedMs(from: string | null, to: string | null): number | null;
|
|
678
|
+
declare function flowRunBadgeClass(status: FlowRunStatus): string;
|
|
679
|
+
declare function flowRunStepBadgeClass(status: FlowRunStepStatus): string;
|
|
680
|
+
/** The time slot a scheduled run was for, from its trigger payload; null for any other run. */
|
|
681
|
+
declare function flowRunScheduledFor(run: FlowRun | undefined): string | null;
|
|
780
682
|
declare namespace flows_runs_component_d_exports {
|
|
781
683
|
export { FlowsRunsComponent };
|
|
782
684
|
}
|
|
@@ -820,7 +722,6 @@ declare class FlowsRunsComponent extends AppBaseComponent implements OnInit {
|
|
|
820
722
|
readonly turnOn: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
821
723
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
822
724
|
};
|
|
823
|
-
constructor(injector: Injector, flowsRunService: FlowsRunService, cdr: ChangeDetectorRef);
|
|
824
725
|
ngOnInit(): void;
|
|
825
726
|
ngOnDestroy(): void;
|
|
826
727
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
@@ -833,7 +734,7 @@ declare class FlowsRunsComponent extends AppBaseComponent implements OnInit {
|
|
|
833
734
|
private loadRuns;
|
|
834
735
|
private settle;
|
|
835
736
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunsComponent, never>;
|
|
836
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunsComponent, "pw-flows-runs", never, {}, {}, never, never,
|
|
737
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunsComponent, "pw-flows-runs", never, {}, {}, never, never, true, never>;
|
|
837
738
|
}
|
|
838
739
|
declare namespace flows_runs_filters_component_d_exports {
|
|
839
740
|
export { FlowsRunsFiltersComponent };
|
|
@@ -856,7 +757,6 @@ declare class FlowsRunsFiltersComponent implements OnInit, OnDestroy {
|
|
|
856
757
|
statusOptions: Option<FlowRunStatus>[];
|
|
857
758
|
workflowOptions: Option<number>[];
|
|
858
759
|
versionOptions: Option<number>[];
|
|
859
|
-
constructor(translation: TranslocoService, workflowService: FlowsWorkflowService, cdr: ChangeDetectorRef);
|
|
860
760
|
ngOnInit(): void;
|
|
861
761
|
ngOnDestroy(): void;
|
|
862
762
|
onStatus(status: FlowRunStatus | null): void;
|
|
@@ -872,7 +772,7 @@ declare class FlowsRunsFiltersComponent implements OnInit, OnDestroy {
|
|
|
872
772
|
};
|
|
873
773
|
}, {
|
|
874
774
|
"queryChange": "queryChange";
|
|
875
|
-
}, never, never,
|
|
775
|
+
}, never, never, true, never>;
|
|
876
776
|
}
|
|
877
777
|
type FlowCronMode = 'minutes' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
878
778
|
interface FlowCronSchedule {
|
|
@@ -910,7 +810,7 @@ declare class FlowsCronFieldComponent implements OnChanges {
|
|
|
910
810
|
label: string;
|
|
911
811
|
}[];
|
|
912
812
|
private emitted;
|
|
913
|
-
constructor(
|
|
813
|
+
constructor();
|
|
914
814
|
ngOnChanges(): void;
|
|
915
815
|
get time(): string;
|
|
916
816
|
get weekdayLabel(): string;
|
|
@@ -933,7 +833,7 @@ declare class FlowsCronFieldComponent implements OnChanges {
|
|
|
933
833
|
};
|
|
934
834
|
}, {
|
|
935
835
|
"valueChange": "valueChange";
|
|
936
|
-
}, never, never,
|
|
836
|
+
}, never, never, true, never>;
|
|
937
837
|
}
|
|
938
838
|
declare namespace flows_timezone_field_component_d_exports {
|
|
939
839
|
export { FlowsTimezoneFieldComponent };
|
|
@@ -961,7 +861,7 @@ declare class FlowsTimezoneFieldComponent {
|
|
|
961
861
|
};
|
|
962
862
|
}, {
|
|
963
863
|
"valueChange": "valueChange";
|
|
964
|
-
}, never, never,
|
|
864
|
+
}, never, never, true, never>;
|
|
965
865
|
}
|
|
966
866
|
declare namespace flows_run_inspector_component_d_exports {
|
|
967
867
|
export { FlowsRunInspectorComponent };
|
|
@@ -1007,7 +907,6 @@ declare class FlowsRunInspectorComponent extends AppBaseComponent implements OnI
|
|
|
1007
907
|
nodeIds: string[];
|
|
1008
908
|
definitions: Record<string, FlowNodeDefinition>;
|
|
1009
909
|
private namedVersionId?;
|
|
1010
|
-
constructor(injector: Injector, flowsRunService: FlowsRunService, workflowService: FlowsWorkflowService, nodeService: FlowsNodeService, cdr: ChangeDetectorRef);
|
|
1011
910
|
ngOnInit(): void;
|
|
1012
911
|
ngOnDestroy(): void;
|
|
1013
912
|
back(): void;
|
|
@@ -1020,7 +919,7 @@ declare class FlowsRunInspectorComponent extends AppBaseComponent implements OnI
|
|
|
1020
919
|
private fail;
|
|
1021
920
|
private settle;
|
|
1022
921
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsRunInspectorComponent, never>;
|
|
1023
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunInspectorComponent, "pw-flows-run-inspector", never, {}, {}, never, never,
|
|
922
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlowsRunInspectorComponent, "pw-flows-run-inspector", never, {}, {}, never, never, true, never>;
|
|
1024
923
|
}
|
|
1025
924
|
declare namespace flows_run_progress_component_d_exports {
|
|
1026
925
|
export { FlowRunProgress, FlowsRunProgressComponent, flowRunProgress };
|
|
@@ -1048,7 +947,6 @@ declare class FlowsRunProgressComponent implements OnChanges, OnDestroy {
|
|
|
1048
947
|
progress: FlowRunProgress;
|
|
1049
948
|
elapsed: number | null;
|
|
1050
949
|
private tick$?;
|
|
1051
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1052
950
|
get ended(): boolean;
|
|
1053
951
|
ngOnChanges(): void;
|
|
1054
952
|
ngOnDestroy(): void;
|
|
@@ -1067,7 +965,7 @@ declare class FlowsRunProgressComponent implements OnChanges, OnDestroy {
|
|
|
1067
965
|
"alias": "nodeIds";
|
|
1068
966
|
"required": false;
|
|
1069
967
|
};
|
|
1070
|
-
}, {}, never, never,
|
|
968
|
+
}, {}, never, never, true, never>;
|
|
1071
969
|
}
|
|
1072
970
|
declare namespace flows_step_error_component_d_exports {
|
|
1073
971
|
export { FlowsStepErrorComponent };
|
|
@@ -1123,7 +1021,7 @@ declare class FlowsStepErrorComponent implements OnChanges {
|
|
|
1123
1021
|
"alias": "product";
|
|
1124
1022
|
"required": false;
|
|
1125
1023
|
};
|
|
1126
|
-
}, {}, never, never,
|
|
1024
|
+
}, {}, never, never, true, never>;
|
|
1127
1025
|
}
|
|
1128
1026
|
declare namespace flows_run_error_component_d_exports {
|
|
1129
1027
|
export { FlowsRunErrorComponent };
|
|
@@ -1159,7 +1057,7 @@ declare class FlowsRunErrorComponent implements OnChanges {
|
|
|
1159
1057
|
"alias": "definitions";
|
|
1160
1058
|
"required": false;
|
|
1161
1059
|
};
|
|
1162
|
-
}, {}, never, never,
|
|
1060
|
+
}, {}, never, never, true, never>;
|
|
1163
1061
|
}
|
|
1164
1062
|
declare const FLOW_INPUT = "in";
|
|
1165
1063
|
declare class FlowCanvasNode extends ClassicPreset.Node {
|
|
@@ -1204,7 +1102,6 @@ declare class FlowsCanvasNodeComponent implements OnChanges {
|
|
|
1204
1102
|
seed: number;
|
|
1205
1103
|
inputs: SocketEntry[];
|
|
1206
1104
|
outputs: SocketEntry[];
|
|
1207
|
-
constructor(cdr: ChangeDetectorRef);
|
|
1208
1105
|
get width(): number;
|
|
1209
1106
|
get height(): number;
|
|
1210
1107
|
get selected(): boolean;
|
|
@@ -1228,7 +1125,7 @@ declare class FlowsCanvasNodeComponent implements OnChanges {
|
|
|
1228
1125
|
"alias": "rendered";
|
|
1229
1126
|
"required": false;
|
|
1230
1127
|
};
|
|
1231
|
-
}, {}, never, never,
|
|
1128
|
+
}, {}, never, never, true, never>;
|
|
1232
1129
|
}
|
|
1233
1130
|
declare namespace flows_canvas_socket_component_d_exports {
|
|
1234
1131
|
export { FlowsCanvasSocketComponent };
|
|
@@ -1247,7 +1144,7 @@ declare class FlowsCanvasSocketComponent implements OnChanges {
|
|
|
1247
1144
|
"alias": "rendered";
|
|
1248
1145
|
"required": false;
|
|
1249
1146
|
};
|
|
1250
|
-
}, {}, never, never,
|
|
1147
|
+
}, {}, never, never, true, never>;
|
|
1251
1148
|
}
|
|
1252
1149
|
declare namespace flows_canvas_connection_component_d_exports {
|
|
1253
1150
|
export { FlowsCanvasConnectionComponent };
|
|
@@ -1275,7 +1172,7 @@ declare class FlowsCanvasConnectionComponent {
|
|
|
1275
1172
|
"alias": "path";
|
|
1276
1173
|
"required": false;
|
|
1277
1174
|
};
|
|
1278
|
-
}, {}, never, never,
|
|
1175
|
+
}, {}, never, never, true, never>;
|
|
1279
1176
|
}
|
|
1280
1177
|
declare namespace flows_node_palette_component_d_exports {
|
|
1281
1178
|
export { FlowsNodePaletteComponent };
|
|
@@ -1304,7 +1201,7 @@ declare class FlowsNodePaletteComponent implements OnChanges {
|
|
|
1304
1201
|
};
|
|
1305
1202
|
}, {
|
|
1306
1203
|
"add": "add";
|
|
1307
|
-
}, never, never,
|
|
1204
|
+
}, never, never, true, never>;
|
|
1308
1205
|
}
|
|
1309
1206
|
type FlowFieldKind$1 = 'text' | 'textarea' | 'email' | 'member' | 'members' | 'json' | 'pairs' | 'mode' | 'cron' | 'timezone' | 'number' | 'select' | 'list' | 'choices';
|
|
1310
1207
|
interface FlowNodeField extends Omit<FlowParamDetail, 'kind'> {
|
|
@@ -1369,7 +1266,6 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1369
1266
|
id: string;
|
|
1370
1267
|
})[];
|
|
1371
1268
|
conditionNotAnObject: boolean;
|
|
1372
|
-
constructor(host: ElementRef<HTMLElement>);
|
|
1373
1269
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1374
1270
|
private saveFieldBeingTyped;
|
|
1375
1271
|
ngAfterViewChecked(): void;
|
|
@@ -1420,7 +1316,7 @@ declare class FlowsNodeInspectorComponent implements OnChanges, AfterViewChecked
|
|
|
1420
1316
|
}, {
|
|
1421
1317
|
"nodeChange": "nodeChange";
|
|
1422
1318
|
"remove": "remove";
|
|
1423
|
-
}, never, never,
|
|
1319
|
+
}, never, never, true, never>;
|
|
1424
1320
|
}
|
|
1425
1321
|
declare namespace flows_json_field_component_d_exports {
|
|
1426
1322
|
export { FlowsJsonFieldComponent };
|
|
@@ -1450,7 +1346,7 @@ declare class FlowsJsonFieldComponent implements OnChanges {
|
|
|
1450
1346
|
};
|
|
1451
1347
|
}, {
|
|
1452
1348
|
"valueChange": "valueChange";
|
|
1453
|
-
}, never, never,
|
|
1349
|
+
}, never, never, true, never>;
|
|
1454
1350
|
}
|
|
1455
1351
|
type FlowConditionOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'empty' | 'not_empty';
|
|
1456
1352
|
type FlowConditionValueType = 'text' | 'number' | 'boolean';
|
|
@@ -1516,7 +1412,7 @@ declare class FlowsConditionFieldComponent implements OnChanges {
|
|
|
1516
1412
|
mode: 'rules' | 'json';
|
|
1517
1413
|
incomplete: boolean;
|
|
1518
1414
|
private emitted;
|
|
1519
|
-
constructor(
|
|
1415
|
+
constructor();
|
|
1520
1416
|
ngOnChanges(): void;
|
|
1521
1417
|
get combinesRules(): boolean;
|
|
1522
1418
|
get canUseRules(): boolean;
|
|
@@ -1547,7 +1443,7 @@ declare class FlowsConditionFieldComponent implements OnChanges {
|
|
|
1547
1443
|
};
|
|
1548
1444
|
}, {
|
|
1549
1445
|
"valueChange": "valueChange";
|
|
1550
|
-
}, never, never,
|
|
1446
|
+
}, never, never, true, never>;
|
|
1551
1447
|
}
|
|
1552
1448
|
declare namespace flows_pairs_field_component_d_exports {
|
|
1553
1449
|
export { FlowsPairsFieldComponent };
|
|
@@ -1606,7 +1502,7 @@ declare class FlowsPairsFieldComponent implements OnChanges {
|
|
|
1606
1502
|
};
|
|
1607
1503
|
}, {
|
|
1608
1504
|
"valueChange": "valueChange";
|
|
1609
|
-
}, never, never,
|
|
1505
|
+
}, never, never, true, never>;
|
|
1610
1506
|
}
|
|
1611
1507
|
declare const FLOW_AI_DECIDE_TYPE = "logic.ai_decide";
|
|
1612
1508
|
interface FlowAiChoice {
|
|
@@ -1674,7 +1570,7 @@ declare class FlowsChoicesFieldComponent implements OnChanges {
|
|
|
1674
1570
|
};
|
|
1675
1571
|
}, {
|
|
1676
1572
|
"valueChange": "valueChange";
|
|
1677
|
-
}, never, never,
|
|
1573
|
+
}, never, never, true, never>;
|
|
1678
1574
|
}
|
|
1679
1575
|
declare namespace flows_param_field_component_d_exports {
|
|
1680
1576
|
export { FlowsParamFieldComponent };
|
|
@@ -1698,7 +1594,7 @@ declare class FlowsParamFieldComponent {
|
|
|
1698
1594
|
}[];
|
|
1699
1595
|
readonly defaultMergeMode: string;
|
|
1700
1596
|
readonly numberValue: typeof flowNumberValue;
|
|
1701
|
-
constructor(
|
|
1597
|
+
constructor();
|
|
1702
1598
|
/**
|
|
1703
1599
|
* What an editable select shows: `Duo` for a saved `{{vendor_name}}` when an earlier node
|
|
1704
1600
|
* is set to Duo. Only the shown text changes; the saved placeholder is untouched.
|
|
@@ -1734,7 +1630,7 @@ declare class FlowsParamFieldComponent {
|
|
|
1734
1630
|
};
|
|
1735
1631
|
}, {
|
|
1736
1632
|
"valueChange": "valueChange";
|
|
1737
|
-
}, never, never,
|
|
1633
|
+
}, never, never, true, never>;
|
|
1738
1634
|
}
|
|
1739
1635
|
interface FlowMember {
|
|
1740
1636
|
id: number;
|
|
@@ -1744,7 +1640,6 @@ interface FlowMember {
|
|
|
1744
1640
|
declare class FlowsMemberService {
|
|
1745
1641
|
private readonly subscriptions;
|
|
1746
1642
|
private readonly known;
|
|
1747
|
-
constructor(subscriptions: SubscriptionService);
|
|
1748
1643
|
search(subscriptionId: number, query: string): Observable<FlowMember[]>;
|
|
1749
1644
|
/** Name of a member already seen in a search, for ids stored in a saved graph. */
|
|
1750
1645
|
knownMember(id: number): FlowMember | undefined;
|
|
@@ -1767,7 +1662,6 @@ declare class FlowsMemberFieldComponent implements OnChanges, OnDestroy {
|
|
|
1767
1662
|
suggestions: FlowMember[];
|
|
1768
1663
|
failed: boolean;
|
|
1769
1664
|
private search?;
|
|
1770
|
-
constructor(members: FlowsMemberService, cdr: ChangeDetectorRef);
|
|
1771
1665
|
ngOnChanges(): void;
|
|
1772
1666
|
complete(query: string): void;
|
|
1773
1667
|
changed(selection: FlowMember | FlowMember[] | null): void;
|
|
@@ -1796,7 +1690,7 @@ declare class FlowsMemberFieldComponent implements OnChanges, OnDestroy {
|
|
|
1796
1690
|
};
|
|
1797
1691
|
}, {
|
|
1798
1692
|
"valueChange": "valueChange";
|
|
1799
|
-
}, never, never,
|
|
1693
|
+
}, never, never, true, never>;
|
|
1800
1694
|
}
|
|
1801
1695
|
declare namespace flows_retry_field_component_d_exports {
|
|
1802
1696
|
export { FlowsRetryFieldComponent };
|
|
@@ -1826,7 +1720,7 @@ declare class FlowsRetryFieldComponent {
|
|
|
1826
1720
|
};
|
|
1827
1721
|
}, {
|
|
1828
1722
|
"valueChange": "valueChange";
|
|
1829
|
-
}, never, never,
|
|
1723
|
+
}, never, never, true, never>;
|
|
1830
1724
|
}
|
|
1831
1725
|
declare namespace flows_available_fields_component_d_exports {
|
|
1832
1726
|
export { FlowFieldKind, FlowsAvailableFieldsComponent };
|
|
@@ -1852,7 +1746,7 @@ declare class FlowsAvailableFieldsComponent {
|
|
|
1852
1746
|
/** The box a pick goes into takes a field's name rather than a placeholder. */
|
|
1853
1747
|
names: boolean;
|
|
1854
1748
|
private box?;
|
|
1855
|
-
constructor(
|
|
1749
|
+
constructor();
|
|
1856
1750
|
/** Counts only what the box can take, which is all that is shown. */
|
|
1857
1751
|
get searchable(): boolean;
|
|
1858
1752
|
remember(target: EventTarget | null): void;
|
|
@@ -1891,7 +1785,7 @@ declare class FlowsAvailableFieldsComponent {
|
|
|
1891
1785
|
"alias": "nodeType";
|
|
1892
1786
|
"required": false;
|
|
1893
1787
|
};
|
|
1894
|
-
}, {}, never, never,
|
|
1788
|
+
}, {}, never, never, true, never>;
|
|
1895
1789
|
}
|
|
1896
1790
|
declare namespace flows_unknown_fields_component_d_exports {
|
|
1897
1791
|
export { FlowsUnknownFieldsComponent };
|
|
@@ -1933,7 +1827,7 @@ declare class FlowsUnknownFieldsComponent implements OnChanges {
|
|
|
1933
1827
|
"alias": "known";
|
|
1934
1828
|
"required": false;
|
|
1935
1829
|
};
|
|
1936
|
-
}, {}, never, never,
|
|
1830
|
+
}, {}, never, never, true, never>;
|
|
1937
1831
|
}
|
|
1938
1832
|
declare namespace flows_workflow_status_component_d_exports {
|
|
1939
1833
|
export { FlowsWorkflowStatusComponent };
|
|
@@ -1969,7 +1863,6 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1969
1863
|
readonly turnOff: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
1970
1864
|
};
|
|
1971
1865
|
saving: boolean;
|
|
1972
|
-
constructor(workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
1973
1866
|
get isOn(): boolean;
|
|
1974
1867
|
toggle(): void;
|
|
1975
1868
|
/** Asked right after a publish, so a new workflow goes live in one more click. */
|
|
@@ -1992,7 +1885,7 @@ declare class FlowsWorkflowStatusComponent {
|
|
|
1992
1885
|
};
|
|
1993
1886
|
}, {
|
|
1994
1887
|
"workflowChange": "workflowChange";
|
|
1995
|
-
}, never, never,
|
|
1888
|
+
}, never, never, true, never>;
|
|
1996
1889
|
}
|
|
1997
1890
|
declare namespace flow_workflow_badge_pipe_d_exports {
|
|
1998
1891
|
export { FlowWorkflowBadgePipe };
|
|
@@ -2000,7 +1893,7 @@ declare namespace flow_workflow_badge_pipe_d_exports {
|
|
|
2000
1893
|
declare class FlowWorkflowBadgePipe implements PipeTransform {
|
|
2001
1894
|
transform(status: FlowWorkflowStatus): string;
|
|
2002
1895
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowWorkflowBadgePipe, never>;
|
|
2003
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FlowWorkflowBadgePipe, "flowWorkflowBadge",
|
|
1896
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FlowWorkflowBadgePipe, "flowWorkflowBadge", true>;
|
|
2004
1897
|
}
|
|
2005
1898
|
declare namespace flow_json_lines_pipe_d_exports {
|
|
2006
1899
|
export { FlowJsonLine, FlowJsonLinesPipe };
|
|
@@ -2013,10 +1906,10 @@ interface FlowJsonLine {
|
|
|
2013
1906
|
declare class FlowJsonLinesPipe implements PipeTransform {
|
|
2014
1907
|
transform(value: unknown): FlowJsonLine[];
|
|
2015
1908
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowJsonLinesPipe, never>;
|
|
2016
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FlowJsonLinesPipe, "flowJsonLines",
|
|
1909
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FlowJsonLinesPipe, "flowJsonLines", true>;
|
|
2017
1910
|
}
|
|
2018
1911
|
export declare class FlowsPrivateModule {
|
|
2019
1912
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateModule, never>;
|
|
2020
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof
|
|
1913
|
+
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>;
|
|
2021
1914
|
static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateModule>;
|
|
2022
1915
|
}
|