@activepieces/shared 0.3.47 → 0.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +3 -1
- package/src/index.js.map +1 -1
- package/src/lib/common/telemetry.d.ts +8 -1
- package/src/lib/common/telemetry.js +2 -0
- package/src/lib/common/telemetry.js.map +1 -1
- package/src/lib/engine/engine-operation.d.ts +2 -2
- package/src/lib/flows/flow-instances/flow-instance.d.ts +14 -0
- package/src/lib/flows/flow-instances/flow-instance.js +11 -2
- package/src/lib/flows/flow-instances/flow-instance.js.map +1 -1
- package/src/lib/flows/flow.d.ts +62 -10
- package/src/lib/flows/flow.js +8 -0
- package/src/lib/flows/flow.js.map +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApId = exports.apId = exports.ExecutionState = exports.RunEnvironment = exports.FlowVersionState = exports.FlowVersion = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.CreateFlowRunRequest = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.StepOutputStatus = void 0;
|
|
3
|
+
exports.ApId = exports.apId = exports.ExecutionState = exports.RunEnvironment = exports.Flow = exports.FlowVersionState = exports.FlowVersion = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.CreateFlowRunRequest = exports.CodeActionSettings = exports.ActionType = exports.Action = exports.LoopOnItemsActionSettings = exports.PieceActionSettings = exports.PrincipalType = exports.SignInRequest = exports.SignUpRequest = exports.ExecuteCodeRequest = exports.StepOutputStatus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./lib/flows/actions/action"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./lib/app-connection/app-connection"), exports);
|
|
@@ -55,6 +55,8 @@ Object.defineProperty(exports, "TriggerType", { enumerable: true, get: function
|
|
|
55
55
|
var flow_version_1 = require("./lib/flows/flow-version");
|
|
56
56
|
Object.defineProperty(exports, "FlowVersion", { enumerable: true, get: function () { return flow_version_1.FlowVersion; } });
|
|
57
57
|
Object.defineProperty(exports, "FlowVersionState", { enumerable: true, get: function () { return flow_version_1.FlowVersionState; } });
|
|
58
|
+
var flow_1 = require("./lib/flows/flow");
|
|
59
|
+
Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return flow_1.Flow; } });
|
|
58
60
|
tslib_1.__exportStar(require("./lib/flows/flow-helper"), exports);
|
|
59
61
|
var flow_run_1 = require("./lib/flow-run/flow-run");
|
|
60
62
|
Object.defineProperty(exports, "RunEnvironment", { enumerable: true, get: function () { return flow_run_1.RunEnvironment; } });
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA2C;AAC3C,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,uDAA6B;AAC7B,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C;AAC9C,0DAAgC;AAChC,oFAA0D;AAC1D,oFAA0D;AAC1D,kFAAwD;AACxD,+EAAqD;AACrD,sEAA4C;AAC5C,+DAAqC;AACrC,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,oEAAwE;AAA/D,+GAAA,gBAAgB,OAAA;AACzB,yDAA+B;AAC/B,uDAA6B;AAC7B,oFAA0D;AAC1D,wDAA8B;AAC9B,8EAAmD;AACnD,4DAAiE;AAAxD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAA0E;AAAjE,+GAAA,aAAa,OAAA;AAEtB,qDAGmC;AAD/B,6GAAA,mBAAmB,OAAA;AAAE,mHAAA,yBAAyB,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAG1F,0DAAgC;AAChC,kFAA8E;AAArE,+HAAA,oBAAoB,OAAA;AAC7B,wDAAsI;AAA7H,kGAAA,OAAO,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,yGAAA,cAAc,OAAA;AAAE,sGAAA,WAAW,OAAA;AAC/F,yDAAwF;AAA/E,2GAAA,WAAW,OAAA;AAAE,gHAAA,gBAAgB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA2C;AAC3C,8EAAoD;AACpD,+FAAqE;AACrE,iGAAuE;AACvE,uDAA6B;AAC7B,0EAAgD;AAChD,iEAAuC;AACvC,wEAA8C;AAC9C,0DAAgC;AAChC,oFAA0D;AAC1D,oFAA0D;AAC1D,kFAAwD;AACxD,+EAAqD;AACrD,sEAA4C;AAC5C,+DAAqC;AACrC,yDAA+B;AAC/B,8EAAoD;AACpD,iGAAuE;AACvE,oFAA0D;AAC1D,oEAAwE;AAA/D,+GAAA,gBAAgB,OAAA;AACzB,yDAA+B;AAC/B,uDAA6B;AAC7B,oFAA0D;AAC1D,wDAA8B;AAC9B,8EAAmD;AACnD,4DAAiE;AAAxD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAAyE;AAAhE,gHAAA,aAAa,OAAA;AACtB,4EAA0E;AAAjE,+GAAA,aAAa,OAAA;AAEtB,qDAGmC;AAD/B,6GAAA,mBAAmB,OAAA;AAAE,mHAAA,yBAAyB,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,4GAAA,kBAAkB,OAAA;AAG1F,0DAAgC;AAChC,kFAA8E;AAArE,+HAAA,oBAAoB,OAAA;AAC7B,wDAAsI;AAA7H,kGAAA,OAAO,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,yGAAA,cAAc,OAAA;AAAE,sGAAA,WAAW,OAAA;AAC/F,yDAAwF;AAA/E,2GAAA,WAAW,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AACtC,yCAAgD;AAAvC,4FAAA,IAAI,OAAA;AAEb,kEAAwC;AACxC,oDAA4E;AAA/C,0GAAA,cAAc,OAAA;AAC3C,4EAA0E;AAAjE,iHAAA,cAAc,OAAA;AAEvB,8EAAoD;AAEpD,0DAAsD;AAA7C,oGAAA,IAAI,OAAA;AAAE,oGAAA,IAAI,OAAA;AACnB,wFAA8D;AAC9D,mFAAyD;AACzD,kEAAuC;AACvC,+EAAqD;AACrD,kEAAwC;AACxC,qEAA2C;AAC3C,qEAA2C;AAC3C,8EAAoD;AACpD,gFAAsD;AACtD,qDAAqD;AACrD,6EAAmD;AACnD,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAC"}
|
|
@@ -20,9 +20,16 @@ interface SignedUp {
|
|
|
20
20
|
lastName: string;
|
|
21
21
|
projectId: ProjectId;
|
|
22
22
|
}
|
|
23
|
+
interface FlowImported {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
location: string;
|
|
27
|
+
}
|
|
23
28
|
export declare enum TelemetryEventName {
|
|
24
29
|
SIGNED_UP = "signed.up",
|
|
25
30
|
FLOW_CREATED = "flow.created",
|
|
31
|
+
DEMO_IMPORTED = "demo.imported",
|
|
32
|
+
FLOW_IMPORTED = "flow.imported",
|
|
26
33
|
FLOW_RUN_CREATED = "run.created",
|
|
27
34
|
FLOW_PUBLISHED = "flow.published"
|
|
28
35
|
}
|
|
@@ -30,5 +37,5 @@ interface BaseTelemetryEvent<T, P> {
|
|
|
30
37
|
name: T;
|
|
31
38
|
payload: P;
|
|
32
39
|
}
|
|
33
|
-
export declare type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated>;
|
|
40
|
+
export declare type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated>;
|
|
34
41
|
export {};
|
|
@@ -5,6 +5,8 @@ var TelemetryEventName;
|
|
|
5
5
|
(function (TelemetryEventName) {
|
|
6
6
|
TelemetryEventName["SIGNED_UP"] = "signed.up";
|
|
7
7
|
TelemetryEventName["FLOW_CREATED"] = "flow.created";
|
|
8
|
+
TelemetryEventName["DEMO_IMPORTED"] = "demo.imported";
|
|
9
|
+
TelemetryEventName["FLOW_IMPORTED"] = "flow.imported";
|
|
8
10
|
TelemetryEventName["FLOW_RUN_CREATED"] = "run.created";
|
|
9
11
|
TelemetryEventName["FLOW_PUBLISHED"] = "flow.published";
|
|
10
12
|
})(TelemetryEventName = exports.TelemetryEventName || (exports.TelemetryEventName = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/telemetry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/telemetry.ts"],"names":[],"mappings":";;;AAkCA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,6CAAuB,CAAA;IACvB,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,qDAA+B,CAAA;IAC/B,sDAAgC,CAAA;IAChC,uDAAiC,CAAA;AACrC,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
|
|
@@ -105,7 +105,7 @@ interface ExecuteTestOrRunTriggerResponse {
|
|
|
105
105
|
}
|
|
106
106
|
interface ExecuteOnEnableTriggerResponse {
|
|
107
107
|
listeners: AppEventListener[];
|
|
108
|
-
scheduleOptions
|
|
108
|
+
scheduleOptions?: ScheduleOptions;
|
|
109
109
|
}
|
|
110
110
|
export declare type ExecuteTriggerResponse<H extends TriggerHookType> = H extends TriggerHookType.RUN ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.TEST ? ExecuteTestOrRunTriggerResponse : H extends TriggerHookType.ON_DISABLE ? Record<string, never> : ExecuteOnEnableTriggerResponse;
|
|
111
111
|
export declare type ExecuteActionResponse = {
|
|
@@ -115,7 +115,7 @@ export declare type ExecuteActionResponse = {
|
|
|
115
115
|
};
|
|
116
116
|
export interface ScheduleOptions {
|
|
117
117
|
cronExpression: string;
|
|
118
|
-
timezone
|
|
118
|
+
timezone: string;
|
|
119
119
|
}
|
|
120
120
|
export declare type EngineResponse<T> = {
|
|
121
121
|
status: EngineResponseStatus;
|
|
@@ -4,15 +4,29 @@ import { ProjectId } from "../../project/project";
|
|
|
4
4
|
import { FlowId } from "../flow";
|
|
5
5
|
import { FlowVersionId } from "../flow-version";
|
|
6
6
|
export declare type FlowInstanceId = ApId;
|
|
7
|
+
export declare enum ScheduleType {
|
|
8
|
+
CRON_EXPRESSION = "CRON_EXPRESSION"
|
|
9
|
+
}
|
|
7
10
|
export declare enum FlowInstanceStatus {
|
|
8
11
|
ENABLED = "ENABLED",
|
|
9
12
|
DISABLED = "DISABLED",
|
|
10
13
|
UNPUBLISHED = "UNPUBLISHED"
|
|
11
14
|
}
|
|
15
|
+
export declare const FlowScheduleOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
16
|
+
type: import("@sinclair/typebox").TLiteral<ScheduleType>;
|
|
17
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
18
|
+
timezone: import("@sinclair/typebox").TString<string>;
|
|
19
|
+
}>>;
|
|
20
|
+
export declare type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
|
|
12
21
|
export declare const FlowInstance: import("@sinclair/typebox").TObject<{
|
|
13
22
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
14
23
|
flowId: import("@sinclair/typebox").TString<string>;
|
|
15
24
|
flowVersionId: import("@sinclair/typebox").TString<string>;
|
|
25
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
26
|
+
type: import("@sinclair/typebox").TLiteral<ScheduleType>;
|
|
27
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
28
|
+
timezone: import("@sinclair/typebox").TString<string>;
|
|
29
|
+
}>>;
|
|
16
30
|
status: import("@sinclair/typebox").TEnum<typeof FlowInstanceStatus>;
|
|
17
31
|
id: import("@sinclair/typebox").TString<string>;
|
|
18
32
|
created: import("@sinclair/typebox").TString<string>;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlowInstance = exports.FlowInstanceStatus = void 0;
|
|
3
|
+
exports.FlowInstance = exports.FlowScheduleOptions = exports.FlowInstanceStatus = exports.ScheduleType = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
|
+
var ScheduleType;
|
|
7
|
+
(function (ScheduleType) {
|
|
8
|
+
ScheduleType["CRON_EXPRESSION"] = "CRON_EXPRESSION";
|
|
9
|
+
})(ScheduleType = exports.ScheduleType || (exports.ScheduleType = {}));
|
|
6
10
|
var FlowInstanceStatus;
|
|
7
11
|
(function (FlowInstanceStatus) {
|
|
8
12
|
FlowInstanceStatus["ENABLED"] = "ENABLED";
|
|
9
13
|
FlowInstanceStatus["DISABLED"] = "DISABLED";
|
|
10
14
|
FlowInstanceStatus["UNPUBLISHED"] = "UNPUBLISHED";
|
|
11
15
|
})(FlowInstanceStatus = exports.FlowInstanceStatus || (exports.FlowInstanceStatus = {}));
|
|
12
|
-
exports.
|
|
16
|
+
exports.FlowScheduleOptions = typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
17
|
+
type: typebox_1.Type.Literal(ScheduleType.CRON_EXPRESSION),
|
|
18
|
+
cronExpression: typebox_1.Type.String(),
|
|
19
|
+
timezone: typebox_1.Type.String(),
|
|
20
|
+
}));
|
|
21
|
+
exports.FlowInstance = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { projectId: typebox_1.Type.String(), flowId: typebox_1.Type.String(), flowVersionId: typebox_1.Type.String(), schedule: exports.FlowScheduleOptions, status: typebox_1.Type.Enum(FlowInstanceStatus) }));
|
|
13
22
|
//# sourceMappingURL=flow-instance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-instance.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/flow-instances/flow-instance.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yCAA+C;
|
|
1
|
+
{"version":3,"file":"flow-instance.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/flow-instances/flow-instance.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yCAA+C;AAS/C,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,mDAAmC,CAAA;AACvC,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,iDAA2B,CAAA;AAC/B,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAEY,QAAA,mBAAmB,GAAG,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC;IACzD,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC;IAChD,cAAc,EAAE,cAAI,CAAC,MAAM,EAAE;IAC7B,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC,CAAC;AAIS,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,iCAChC,wBAAe,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE,EACrB,aAAa,EAAE,cAAI,CAAC,MAAM,EAAE,EAC5B,QAAQ,EAAE,2BAAmB,EAC7B,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,IACvC,CAAA"}
|
package/src/lib/flows/flow.d.ts
CHANGED
|
@@ -1,13 +1,65 @@
|
|
|
1
|
-
import { BaseModel } from "../common/base-model";
|
|
2
1
|
import { ApId } from "../common/id-generator";
|
|
3
|
-
import { FlowVersion } from "./flow-version";
|
|
4
|
-
import { ProjectId } from "../project/project";
|
|
5
|
-
import { FolderId } from "./folders/folder";
|
|
6
2
|
import { FlowInstanceStatus } from "./flow-instances";
|
|
3
|
+
import { Static } from "@sinclair/typebox";
|
|
7
4
|
export declare type FlowId = ApId;
|
|
8
|
-
export
|
|
9
|
-
projectId:
|
|
10
|
-
folderId
|
|
11
|
-
version:
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export declare const Flow: import("@sinclair/typebox").TObject<{
|
|
6
|
+
projectId: import("@sinclair/typebox").TString<string>;
|
|
7
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
8
|
+
version: import("@sinclair/typebox").TObject<{
|
|
9
|
+
flowId: import("@sinclair/typebox").TString<string>;
|
|
10
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
11
|
+
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
12
|
+
type: import("@sinclair/typebox").TLiteral<import("./triggers/trigger").TriggerType.WEBHOOK>;
|
|
13
|
+
settings: import("@sinclair/typebox").TObject<{
|
|
14
|
+
inputUiInfo: import("@sinclair/typebox").TObject<{
|
|
15
|
+
currentSelectedData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
16
|
+
customizedInputs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>>;
|
|
17
|
+
lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
21
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
22
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
23
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
24
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
25
|
+
type: import("@sinclair/typebox").TLiteral<import("./triggers/trigger").TriggerType.PIECE>;
|
|
26
|
+
settings: import("@sinclair/typebox").TObject<{
|
|
27
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
28
|
+
pieceVersion: import("@sinclair/typebox").TString<string>;
|
|
29
|
+
triggerName: import("@sinclair/typebox").TString<string>;
|
|
30
|
+
input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
|
|
31
|
+
inputUiInfo: import("@sinclair/typebox").TObject<{
|
|
32
|
+
currentSelectedData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
33
|
+
customizedInputs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>>;
|
|
34
|
+
lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
38
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
39
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
40
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
41
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
42
|
+
type: import("@sinclair/typebox").TLiteral<import("./triggers/trigger").TriggerType.EMPTY>;
|
|
43
|
+
settings: import("@sinclair/typebox").TAny;
|
|
44
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
45
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
46
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
47
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
48
|
+
}>]>;
|
|
49
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
50
|
+
state: import("@sinclair/typebox").TEnum<typeof import("./flow-version").FlowVersionState>;
|
|
51
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
52
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
53
|
+
updated: import("@sinclair/typebox").TString<string>;
|
|
54
|
+
}>;
|
|
55
|
+
status: import("@sinclair/typebox").TEnum<typeof FlowInstanceStatus>;
|
|
56
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
57
|
+
type: import("@sinclair/typebox").TLiteral<import("./flow-instances").ScheduleType>;
|
|
58
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
59
|
+
timezone: import("@sinclair/typebox").TString<string>;
|
|
60
|
+
}>>;
|
|
61
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
62
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
63
|
+
updated: import("@sinclair/typebox").TString<string>;
|
|
64
|
+
}>;
|
|
65
|
+
export declare type Flow = Static<typeof Flow>;
|
package/src/lib/flows/flow.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Flow = void 0;
|
|
4
|
+
const base_model_1 = require("../common/base-model");
|
|
5
|
+
const flow_version_1 = require("./flow-version");
|
|
6
|
+
const flow_instances_1 = require("./flow-instances");
|
|
7
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
8
|
+
exports.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), folderId: typebox_1.Type.Optional(typebox_1.Type.String()), version: flow_version_1.FlowVersion,
|
|
9
|
+
// TODO revisit this area as these filled from Instance during listing.
|
|
10
|
+
status: typebox_1.Type.Enum(flow_instances_1.FlowInstanceStatus), schedule: flow_instances_1.FlowScheduleOptions }));
|
|
3
11
|
//# sourceMappingURL=flow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/flow.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/flow.ts"],"names":[],"mappings":";;;AAAA,qDAAuD;AAEvD,iDAA6C;AAC7C,qDAA2E;AAC3E,+CAAiD;AAKpC,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,iCACxB,4BAAe,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACtC,OAAO,EAAE,0BAAW;IACpB,uEAAuE;IACvE,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,mCAAkB,CAAC,EACrC,QAAQ,EAAE,oCAAmB,IAC/B,CAAA"}
|