@activepieces/shared 0.10.44 → 0.10.45
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 +2 -2
- package/src/index.d.ts +2 -4
- package/src/index.js +3 -12
- package/src/index.js.map +1 -1
- package/src/lib/common/activepieces-error.d.ts +1 -5
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/common/utils/object-utils.d.ts +3 -0
- package/src/lib/flows/dto/count-flows-request.d.ts +5 -3
- package/src/lib/flows/dto/count-flows-request.js +5 -0
- package/src/lib/flows/dto/count-flows-request.js.map +1 -1
- package/src/lib/flows/dto/update-flow-status-request.d.ts +6 -0
- package/src/lib/flows/dto/update-flow-status-request.js +9 -0
- package/src/lib/flows/dto/update-flow-status-request.js.map +1 -0
- package/src/lib/flows/flow.d.ts +41 -12
- package/src/lib/flows/flow.js +22 -5
- package/src/lib/flows/flow.js.map +1 -1
- package/src/lib/flows/index.d.ts +1 -0
- package/src/lib/flows/index.js +1 -0
- package/src/lib/flows/index.js.map +1 -1
- package/src/lib/flows/flow-instances/flow-instance.d.ts +0 -39
- package/src/lib/flows/flow-instances/flow-instance.js +0 -22
- package/src/lib/flows/flow-instances/flow-instance.js.map +0 -1
- package/src/lib/flows/flow-instances/flow-instances-requests.d.ts +0 -17
- package/src/lib/flows/flow-instances/flow-instances-requests.js +0 -15
- package/src/lib/flows/flow-instances/flow-instances-requests.js.map +0 -1
- package/src/lib/flows/flow-instances/index.d.ts +0 -2
- package/src/lib/flows/flow-instances/index.js +0 -6
- package/src/lib/flows/flow-instances/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/shared",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.45",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
7
|
"nanoid": "3.3.6",
|
|
8
8
|
"semver": "7.5.4",
|
|
9
|
-
"tslib": "
|
|
9
|
+
"tslib": "1.14.1"
|
|
10
10
|
},
|
|
11
11
|
"main": "./src/index.js"
|
|
12
12
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -26,13 +26,12 @@ export { SignUpRequest } from './lib/authentication/dto/sign-up-request';
|
|
|
26
26
|
export { SignInRequest } from './lib/authentication/dto/sign-in-request';
|
|
27
27
|
export * from './lib/authentication/model/principal-type';
|
|
28
28
|
export { Principal } from './lib/authentication/model/principal';
|
|
29
|
-
export
|
|
29
|
+
export * from './lib/flows/actions/action';
|
|
30
30
|
export { StoreEntry, StoreEntryId } from './lib/store-entry/store-entry';
|
|
31
31
|
export * from './lib/user';
|
|
32
32
|
export { TestFlowRunRequestBody } from './lib/flow-run/test-flow-run-request';
|
|
33
33
|
export { Trigger, EmptyTrigger, PieceTriggerSettings, PieceTrigger, WebhookTrigger, TriggerType, AUTHENTICATION_PROPERTY_NAME } from './lib/flows/triggers/trigger';
|
|
34
34
|
export { FlowVersion, FlowVersionState, FlowVersionId } from './lib/flows/flow-version';
|
|
35
|
-
export { Flow, FlowId } from './lib/flows/flow';
|
|
36
35
|
export * from './lib/file';
|
|
37
36
|
export * from './lib/flows/flow-helper';
|
|
38
37
|
export { FlowRun, FlowRunId, RunEnvironment, RunTerminationReason } from './lib/flow-run/flow-run';
|
|
@@ -44,7 +43,6 @@ export * from './lib/flows/trigger-events/trigger-events-dto';
|
|
|
44
43
|
export * from './lib/flows/trigger-events/trigger-event';
|
|
45
44
|
export * from './lib/flows/sample-data';
|
|
46
45
|
export * from './lib/common/base-model';
|
|
47
|
-
export * from './lib/flows/flow-instances';
|
|
48
46
|
export * from './lib/flows/folders/folder';
|
|
49
47
|
export * from './lib/flows/folders/folder-requests';
|
|
50
48
|
export * from './lib/flows/dto/flow-template-request';
|
|
@@ -52,5 +50,5 @@ export * from './lib/flows';
|
|
|
52
50
|
export * from './lib/flows/dto/list-flows-request';
|
|
53
51
|
export * from './lib/chatbot';
|
|
54
52
|
export * from './lib/project/project';
|
|
55
|
-
export
|
|
53
|
+
export * from './lib/flows/dto/update-flow-status-request';
|
|
56
54
|
export * from './lib/support-url';
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.secureApId = exports.ApId = exports.apId = exports.SeekPage = exports.ProjectType = exports.Project = exports.RunTerminationReason = exports.RunEnvironment = exports.FlowVersionState = exports.FlowVersion = exports.AUTHENTICATION_PROPERTY_NAME = exports.TriggerType = exports.WebhookTrigger = exports.PieceTrigger = exports.PieceTriggerSettings = exports.EmptyTrigger = exports.Trigger = exports.TestFlowRunRequestBody = 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);
|
|
@@ -32,12 +32,7 @@ Object.defineProperty(exports, "SignUpRequest", { enumerable: true, get: functio
|
|
|
32
32
|
var sign_in_request_1 = require("./lib/authentication/dto/sign-in-request");
|
|
33
33
|
Object.defineProperty(exports, "SignInRequest", { enumerable: true, get: function () { return sign_in_request_1.SignInRequest; } });
|
|
34
34
|
tslib_1.__exportStar(require("./lib/authentication/model/principal-type"), exports);
|
|
35
|
-
|
|
36
|
-
Object.defineProperty(exports, "PieceActionSettings", { enumerable: true, get: function () { return action_1.PieceActionSettings; } });
|
|
37
|
-
Object.defineProperty(exports, "LoopOnItemsActionSettings", { enumerable: true, get: function () { return action_1.LoopOnItemsActionSettings; } });
|
|
38
|
-
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return action_1.Action; } });
|
|
39
|
-
Object.defineProperty(exports, "ActionType", { enumerable: true, get: function () { return action_1.ActionType; } });
|
|
40
|
-
Object.defineProperty(exports, "CodeActionSettings", { enumerable: true, get: function () { return action_1.CodeActionSettings; } });
|
|
35
|
+
tslib_1.__exportStar(require("./lib/flows/actions/action"), exports);
|
|
41
36
|
tslib_1.__exportStar(require("./lib/user"), exports);
|
|
42
37
|
var test_flow_run_request_1 = require("./lib/flow-run/test-flow-run-request");
|
|
43
38
|
Object.defineProperty(exports, "TestFlowRunRequestBody", { enumerable: true, get: function () { return test_flow_run_request_1.TestFlowRunRequestBody; } });
|
|
@@ -52,8 +47,6 @@ Object.defineProperty(exports, "AUTHENTICATION_PROPERTY_NAME", { enumerable: tru
|
|
|
52
47
|
var flow_version_1 = require("./lib/flows/flow-version");
|
|
53
48
|
Object.defineProperty(exports, "FlowVersion", { enumerable: true, get: function () { return flow_version_1.FlowVersion; } });
|
|
54
49
|
Object.defineProperty(exports, "FlowVersionState", { enumerable: true, get: function () { return flow_version_1.FlowVersionState; } });
|
|
55
|
-
var flow_1 = require("./lib/flows/flow");
|
|
56
|
-
Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return flow_1.Flow; } });
|
|
57
50
|
tslib_1.__exportStar(require("./lib/file"), exports);
|
|
58
51
|
tslib_1.__exportStar(require("./lib/flows/flow-helper"), exports);
|
|
59
52
|
var flow_run_1 = require("./lib/flow-run/flow-run");
|
|
@@ -73,7 +66,6 @@ tslib_1.__exportStar(require("./lib/flows/trigger-events/trigger-events-dto"), e
|
|
|
73
66
|
tslib_1.__exportStar(require("./lib/flows/trigger-events/trigger-event"), exports);
|
|
74
67
|
tslib_1.__exportStar(require("./lib/flows/sample-data"), exports);
|
|
75
68
|
tslib_1.__exportStar(require("./lib/common/base-model"), exports);
|
|
76
|
-
tslib_1.__exportStar(require("./lib/flows/flow-instances"), exports);
|
|
77
69
|
tslib_1.__exportStar(require("./lib/flows/folders/folder"), exports);
|
|
78
70
|
tslib_1.__exportStar(require("./lib/flows/folders/folder-requests"), exports);
|
|
79
71
|
tslib_1.__exportStar(require("./lib/flows/dto/flow-template-request"), exports);
|
|
@@ -82,8 +74,7 @@ tslib_1.__exportStar(require("./lib/flows/dto/list-flows-request"), exports);
|
|
|
82
74
|
tslib_1.__exportStar(require("./lib/chatbot"), exports);
|
|
83
75
|
tslib_1.__exportStar(require("./lib/project/project"), exports);
|
|
84
76
|
const system_1 = require("@sinclair/typebox/system");
|
|
85
|
-
|
|
86
|
-
Object.defineProperty(exports, "StepFileWithUrl", { enumerable: true, get: function () { return flows_1.StepFileWithUrl; } });
|
|
77
|
+
tslib_1.__exportStar(require("./lib/flows/dto/update-flow-status-request"), exports);
|
|
87
78
|
// Look at https://github.com/sinclairzx81/typebox/issues/350
|
|
88
79
|
system_1.TypeSystem.ExactOptionalPropertyTypes = false;
|
|
89
80
|
tslib_1.__exportStar(require("./lib/support-url"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA0C;AAC1C,8EAAmD;AACnD,+FAAoE;AACpE,iGAAsE;AACtE,uDAA4B;AAC5B,0EAA+C;AAC/C,iEAAsC;AACtC,wEAA6C;AAC7C,0DAA+B;AAC/B,oFAAyD;AACzD,oFAAyD;AACzD,+EAAoD;AACpD,sEAA2C;AAC3C,+DAAoC;AACpC,8EAAmD;AACnD,iGAAsE;AACtE,oFAAyD;AACzD,oEAAuE;AAA9D,+GAAA,gBAAgB,OAAA;AACzB,uDAA4B;AAC5B,oFAAyD;AACzD,wDAA6B;AAC7B,8EAAmD;AACnD,4DAAgE;AAAvD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,oFAAyD;AAEzD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/shared/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA0C;AAC1C,8EAAmD;AACnD,+FAAoE;AACpE,iGAAsE;AACtE,uDAA4B;AAC5B,0EAA+C;AAC/C,iEAAsC;AACtC,wEAA6C;AAC7C,0DAA+B;AAC/B,oFAAyD;AACzD,oFAAyD;AACzD,+EAAoD;AACpD,sEAA2C;AAC3C,+DAAoC;AACpC,8EAAmD;AACnD,iGAAsE;AACtE,oFAAyD;AACzD,oEAAuE;AAA9D,+GAAA,gBAAgB,OAAA;AACzB,uDAA4B;AAC5B,oFAAyD;AACzD,wDAA6B;AAC7B,8EAAmD;AACnD,4DAAgE;AAAvD,kHAAA,kBAAkB,OAAA;AAE3B,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,4EAAwE;AAA/D,gHAAA,aAAa,OAAA;AACtB,oFAAyD;AAEzD,qEAA0C;AAE1C,qDAA0B;AAC1B,8EAA6E;AAApE,+HAAA,sBAAsB,OAAA;AAC/B,wDAAmK;AAA1J,kGAAA,OAAO,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,yGAAA,cAAc,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,uHAAA,4BAA4B,OAAA;AAC7H,yDAAuF;AAA9E,2GAAA,WAAW,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AACtC,qDAA0B;AAC1B,kEAAuC;AACvC,oDAAkG;AAArE,0GAAA,cAAc,OAAA;AAAE,gHAAA,oBAAoB,OAAA;AACjE,iDAAuE;AAA9D,kGAAA,OAAO,OAAA;AAAa,sGAAA,WAAW,OAAA;AACxC,8EAAmD;AACnD,oDAAyD;AAAhD,qGAAA,QAAQ,OAAA;AACjB,0DAAkE;AAAzD,oGAAA,IAAI,OAAA;AAAE,oGAAA,IAAI,OAAA;AAAE,0GAAA,UAAU,OAAA;AAC/B,wFAA6D;AAC7D,mFAAwD;AACxD,kEAAuC;AACvC,kEAAuC;AACvC,qEAA0C;AAC1C,8EAAmD;AACnD,gFAAqD;AACrD,sDAA2B;AAC3B,6EAAkD;AAClD,wDAA6B;AAC7B,gEAAqC;AACrC,qDAAqD;AACrD,qFAA0D;AAC1D,6DAA6D;AAC7D,mBAAU,CAAC,0BAA0B,GAAG,KAAK,CAAA;AAC7C,4DAAiC"}
|
|
@@ -2,14 +2,13 @@ import { AppConnectionId } from '../app-connection/app-connection';
|
|
|
2
2
|
import { FileId } from '../file/file';
|
|
3
3
|
import { FlowRunId } from '../flow-run/flow-run';
|
|
4
4
|
import { FlowId } from '../flows/flow';
|
|
5
|
-
import { FlowInstanceId } from '../flows/flow-instances';
|
|
6
5
|
import { FlowVersionId } from '../flows/flow-version';
|
|
7
6
|
import { ApId } from './id-generator';
|
|
8
7
|
export declare class ActivepiecesError extends Error {
|
|
9
8
|
error: ErrorParams;
|
|
10
9
|
constructor(error: ErrorParams, message?: string);
|
|
11
10
|
}
|
|
12
|
-
type ErrorParams = AppConnectionNotFoundErrorParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams |
|
|
11
|
+
type ErrorParams = AppConnectionNotFoundErrorParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams;
|
|
13
12
|
export type BaseErrorParams<T, V> = {
|
|
14
13
|
code: T;
|
|
15
14
|
params: V;
|
|
@@ -46,9 +45,6 @@ export type SystemInvalidErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_INV
|
|
|
46
45
|
export type FlowNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_NOT_FOUND, {
|
|
47
46
|
id: FlowId;
|
|
48
47
|
}>;
|
|
49
|
-
export type FlowInstanceNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_INSTANCE_NOT_FOUND, {
|
|
50
|
-
id?: FlowInstanceId;
|
|
51
|
-
}>;
|
|
52
48
|
export type FlowRunNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_RUN_NOT_FOUND, {
|
|
53
49
|
id: FlowRunId;
|
|
54
50
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAOA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAkB,EAAE,OAAgB;QACnD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACJ;AAJD,8CAIC;AAmSD,IAAY,SAwCX;AAxCD,WAAY,SAAS;IACjB,kEAAqD,CAAA;IACrD,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;IACrC,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,8CAAiC,CAAA;IACjC,2DAA8C,CAAA;IAC9C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,sDAAyC,CAAA;IACzC,8DAAiD,CAAA;IACjD,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wCAA2B,CAAA;IAC3B,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,gEAAmD,CAAA;IACnD,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,8CAAiC,CAAA;IACjC,wDAA2C,CAAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,sCAAyB,CAAA;AAC7B,CAAC,EAxCW,SAAS,yBAAT,SAAS,QAwCpB"}
|
|
@@ -5,3 +5,6 @@ export declare const spreadIfDefined: <T>(key: string, value: T | null | undefin
|
|
|
5
5
|
export declare function deleteProps<T extends Record<string, unknown>, K extends keyof T>(obj: T, prop: K[]): Omit<T, K>;
|
|
6
6
|
export declare function applyFunctionToValuesSync<T>(obj: unknown, apply: (str: unknown) => unknown): T;
|
|
7
7
|
export declare function applyFunctionToValues<T>(obj: unknown, apply: (str: unknown) => Promise<unknown>): Promise<T>;
|
|
8
|
+
export type MakeKeyNonNullableAndRequired<T extends object, K extends keyof T> = T & {
|
|
9
|
+
[P in K]-?: NonNullable<T[P]>;
|
|
10
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const CountFlowsRequest: import("@sinclair/typebox").TObject<{
|
|
3
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
4
|
+
}>;
|
|
5
|
+
export type CountFlowsRequest = Static<typeof CountFlowsRequest>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountFlowsRequest = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
exports.CountFlowsRequest = typebox_1.Type.Object({
|
|
6
|
+
folderId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
7
|
+
});
|
|
3
8
|
//# sourceMappingURL=count-flows-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-flows-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/count-flows-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"count-flows-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/count-flows-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAEnC,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Static } from '@sinclair/typebox';
|
|
2
|
+
import { FlowStatus } from '../flow';
|
|
3
|
+
export declare const UpdateFlowStatusRequest: import("@sinclair/typebox").TObject<{
|
|
4
|
+
status: import("@sinclair/typebox").TEnum<typeof FlowStatus>;
|
|
5
|
+
}>;
|
|
6
|
+
export type UpdateFlowStatusRequest = Static<typeof UpdateFlowStatusRequest>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFlowStatusRequest = void 0;
|
|
4
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const flow_1 = require("../flow");
|
|
6
|
+
exports.UpdateFlowStatusRequest = typebox_1.Type.Object({
|
|
7
|
+
status: typebox_1.Type.Enum(flow_1.FlowStatus),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=update-flow-status-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-flow-status-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/update-flow-status-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,kCAAoC;AACvB,QAAA,uBAAuB,GAAI,cAAI,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,iBAAU,CAAC;CAChC,CAAC,CAAA"}
|
package/src/lib/flows/flow.d.ts
CHANGED
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
import { ApId } from '../common/id-generator';
|
|
2
|
-
import { FlowInstanceStatus } from './flow-instances';
|
|
3
2
|
import { Static } from '@sinclair/typebox';
|
|
4
3
|
export type FlowId = ApId;
|
|
4
|
+
export declare enum ScheduleType {
|
|
5
|
+
CRON_EXPRESSION = "CRON_EXPRESSION"
|
|
6
|
+
}
|
|
7
|
+
export declare enum FlowStatus {
|
|
8
|
+
ENABLED = "ENABLED",
|
|
9
|
+
DISABLED = "DISABLED"
|
|
10
|
+
}
|
|
11
|
+
export declare const FlowScheduleOptions: import("@sinclair/typebox").TObject<{
|
|
12
|
+
type: import("@sinclair/typebox").TLiteral<ScheduleType>;
|
|
13
|
+
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
14
|
+
timezone: import("@sinclair/typebox").TString<string>;
|
|
15
|
+
}>;
|
|
16
|
+
export type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
|
|
5
17
|
export declare const Flow: import("@sinclair/typebox").TObject<{
|
|
6
18
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
7
19
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
20
|
+
status: import("@sinclair/typebox").TEnum<typeof FlowStatus>;
|
|
21
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
22
|
+
type: ScheduleType;
|
|
23
|
+
cronExpression: string;
|
|
24
|
+
timezone: string;
|
|
25
|
+
} | null>>;
|
|
26
|
+
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
27
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
28
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
29
|
+
updated: import("@sinclair/typebox").TString<string>;
|
|
30
|
+
}>;
|
|
31
|
+
export type Flow = Static<typeof Flow>;
|
|
32
|
+
export declare const PopulatedFlow: import("@sinclair/typebox").TComposite<[import("@sinclair/typebox").TObject<{
|
|
33
|
+
projectId: import("@sinclair/typebox").TString<string>;
|
|
34
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
35
|
+
status: import("@sinclair/typebox").TEnum<typeof FlowStatus>;
|
|
36
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
37
|
+
type: ScheduleType;
|
|
38
|
+
cronExpression: string;
|
|
39
|
+
timezone: string;
|
|
40
|
+
} | null>>;
|
|
41
|
+
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
42
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
43
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
44
|
+
updated: import("@sinclair/typebox").TString<string>;
|
|
45
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
8
46
|
version: import("@sinclair/typebox").TObject<{
|
|
9
47
|
flowId: import("@sinclair/typebox").TString<string>;
|
|
10
48
|
displayName: import("@sinclair/typebox").TString<string>;
|
|
@@ -55,14 +93,5 @@ export declare const Flow: import("@sinclair/typebox").TObject<{
|
|
|
55
93
|
created: import("@sinclair/typebox").TString<string>;
|
|
56
94
|
updated: import("@sinclair/typebox").TString<string>;
|
|
57
95
|
}>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
type: import("@sinclair/typebox").TLiteral<import("./flow-instances").ScheduleType>;
|
|
61
|
-
cronExpression: import("@sinclair/typebox").TString<string>;
|
|
62
|
-
timezone: import("@sinclair/typebox").TString<string>;
|
|
63
|
-
}>>;
|
|
64
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
65
|
-
created: import("@sinclair/typebox").TString<string>;
|
|
66
|
-
updated: import("@sinclair/typebox").TString<string>;
|
|
67
|
-
}>;
|
|
68
|
-
export type Flow = Static<typeof Flow>;
|
|
96
|
+
}>]>;
|
|
97
|
+
export type PopulatedFlow = Static<typeof PopulatedFlow>;
|
package/src/lib/flows/flow.js
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Flow = void 0;
|
|
3
|
+
exports.PopulatedFlow = exports.Flow = exports.FlowScheduleOptions = exports.FlowStatus = exports.ScheduleType = void 0;
|
|
4
4
|
const base_model_1 = require("../common/base-model");
|
|
5
5
|
const flow_version_1 = require("./flow-version");
|
|
6
|
-
const flow_instances_1 = require("./flow-instances");
|
|
7
6
|
const typebox_1 = require("@sinclair/typebox");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
var ScheduleType;
|
|
8
|
+
(function (ScheduleType) {
|
|
9
|
+
ScheduleType["CRON_EXPRESSION"] = "CRON_EXPRESSION";
|
|
10
|
+
})(ScheduleType || (exports.ScheduleType = ScheduleType = {}));
|
|
11
|
+
var FlowStatus;
|
|
12
|
+
(function (FlowStatus) {
|
|
13
|
+
FlowStatus["ENABLED"] = "ENABLED";
|
|
14
|
+
FlowStatus["DISABLED"] = "DISABLED";
|
|
15
|
+
})(FlowStatus || (exports.FlowStatus = FlowStatus = {}));
|
|
16
|
+
exports.FlowScheduleOptions = 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.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), folderId: (0, base_model_1.Nullable)(typebox_1.Type.String()), status: typebox_1.Type.Enum(FlowStatus), schedule: (0, base_model_1.Nullable)(exports.FlowScheduleOptions), publishedVersionId: (0, base_model_1.Nullable)(typebox_1.Type.String()) }));
|
|
22
|
+
exports.PopulatedFlow = typebox_1.Type.Composite([
|
|
23
|
+
exports.Flow,
|
|
24
|
+
typebox_1.Type.Object({
|
|
25
|
+
version: flow_version_1.FlowVersion,
|
|
26
|
+
}),
|
|
27
|
+
]);
|
|
11
28
|
//# sourceMappingURL=flow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/flow.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAEhE,iDAA4C;AAC5C
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/flow.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAEhE,iDAA4C;AAC5C,+CAAgD;AAIhD,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,mDAAmC,CAAA;AACvC,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;AACzB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAEY,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC3C,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,CAAA;AAIW,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,iCACxB,4BAAe,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,QAAQ,EAAE,IAAA,qBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACjC,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAC7B,QAAQ,EAAE,IAAA,qBAAQ,EAAC,2BAAmB,CAAC,EACvC,kBAAkB,EAAE,IAAA,qBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC,IAC7C,CAAA;AAIW,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,YAAI;IACJ,cAAI,CAAC,MAAM,CAAC;QACR,OAAO,EAAE,0BAAW;KACvB,CAAC;CACL,CAAC,CAAA"}
|
package/src/lib/flows/index.d.ts
CHANGED
package/src/lib/flows/index.js
CHANGED
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./step-file/step-file"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./step-run"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./flow"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/index.ts"],"names":[],"mappings":";;;AAAA,gEAAqC;AACrC,qDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/index.ts"],"names":[],"mappings":";;;AAAA,gEAAqC;AACrC,qDAA0B;AAC1B,iDAAsB"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Static } from '@sinclair/typebox';
|
|
2
|
-
import { ApId } from '../../common/id-generator';
|
|
3
|
-
import { ProjectId } from '../../project/project';
|
|
4
|
-
import { FlowId } from '../flow';
|
|
5
|
-
import { FlowVersionId } from '../flow-version';
|
|
6
|
-
export type FlowInstanceId = ApId;
|
|
7
|
-
export declare enum ScheduleType {
|
|
8
|
-
CRON_EXPRESSION = "CRON_EXPRESSION"
|
|
9
|
-
}
|
|
10
|
-
export declare enum FlowInstanceStatus {
|
|
11
|
-
ENABLED = "ENABLED",
|
|
12
|
-
DISABLED = "DISABLED",
|
|
13
|
-
UNPUBLISHED = "UNPUBLISHED"
|
|
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 type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
|
|
21
|
-
export declare const FlowInstance: import("@sinclair/typebox").TObject<{
|
|
22
|
-
projectId: import("@sinclair/typebox").TString<string>;
|
|
23
|
-
flowId: import("@sinclair/typebox").TString<string>;
|
|
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
|
-
}>>;
|
|
30
|
-
status: import("@sinclair/typebox").TEnum<typeof FlowInstanceStatus>;
|
|
31
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
32
|
-
created: import("@sinclair/typebox").TString<string>;
|
|
33
|
-
updated: import("@sinclair/typebox").TString<string>;
|
|
34
|
-
}>;
|
|
35
|
-
export type FlowInstance = Static<typeof FlowInstance> & {
|
|
36
|
-
projectId: ProjectId;
|
|
37
|
-
flowId: FlowId;
|
|
38
|
-
flowVersionId: FlowVersionId;
|
|
39
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlowInstance = exports.FlowScheduleOptions = exports.FlowInstanceStatus = exports.ScheduleType = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
var ScheduleType;
|
|
7
|
-
(function (ScheduleType) {
|
|
8
|
-
ScheduleType["CRON_EXPRESSION"] = "CRON_EXPRESSION";
|
|
9
|
-
})(ScheduleType || (exports.ScheduleType = ScheduleType = {}));
|
|
10
|
-
var FlowInstanceStatus;
|
|
11
|
-
(function (FlowInstanceStatus) {
|
|
12
|
-
FlowInstanceStatus["ENABLED"] = "ENABLED";
|
|
13
|
-
FlowInstanceStatus["DISABLED"] = "DISABLED";
|
|
14
|
-
FlowInstanceStatus["UNPUBLISHED"] = "UNPUBLISHED";
|
|
15
|
-
})(FlowInstanceStatus || (exports.FlowInstanceStatus = FlowInstanceStatus = {}));
|
|
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) }));
|
|
22
|
-
//# sourceMappingURL=flow-instance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-instance.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/flow-instances/flow-instance.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,yCAA8C;AAS9C,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,mDAAmC,CAAA;AACvC,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,iDAA2B,CAAA;AAC/B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,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,CAAA;AAIU,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"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Static } from '@sinclair/typebox';
|
|
2
|
-
import { FlowId } from '../flow';
|
|
3
|
-
import { FlowInstanceStatus } from './flow-instance';
|
|
4
|
-
export declare const GetFlowInstanceRequest: import("@sinclair/typebox").TObject<{
|
|
5
|
-
flowId: import("@sinclair/typebox").TString<string>;
|
|
6
|
-
}>;
|
|
7
|
-
export type GetFlowInstanceRequest = Static<typeof GetFlowInstanceRequest>;
|
|
8
|
-
export declare const UpsertFlowInstanceRequest: import("@sinclair/typebox").TObject<{
|
|
9
|
-
flowId: import("@sinclair/typebox").TString<string>;
|
|
10
|
-
}>;
|
|
11
|
-
export type UpsertFlowInstanceRequest = Omit<Static<typeof UpsertFlowInstanceRequest>, 'flowId'> & {
|
|
12
|
-
flowId: FlowId;
|
|
13
|
-
};
|
|
14
|
-
export declare const UpdateFlowInstanceRequest: import("@sinclair/typebox").TObject<{
|
|
15
|
-
status: import("@sinclair/typebox").TEnum<typeof FlowInstanceStatus>;
|
|
16
|
-
}>;
|
|
17
|
-
export type UpdateFlowInstanceRequest = Static<typeof UpdateFlowInstanceRequest>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateFlowInstanceRequest = exports.UpsertFlowInstanceRequest = exports.GetFlowInstanceRequest = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const flow_instance_1 = require("./flow-instance");
|
|
6
|
-
exports.GetFlowInstanceRequest = typebox_1.Type.Object({
|
|
7
|
-
flowId: typebox_1.Type.String(),
|
|
8
|
-
});
|
|
9
|
-
exports.UpsertFlowInstanceRequest = typebox_1.Type.Object({
|
|
10
|
-
flowId: typebox_1.Type.String(),
|
|
11
|
-
});
|
|
12
|
-
exports.UpdateFlowInstanceRequest = typebox_1.Type.Object({
|
|
13
|
-
status: typebox_1.Type.Enum(flow_instance_1.FlowInstanceStatus),
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=flow-instances-requests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-instances-requests.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/flow-instances/flow-instances-requests.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAEhD,mDAAoD;AAEvC,QAAA,sBAAsB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAKW,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAQW,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,kCAAkB,CAAC;CACxC,CAAC,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./flow-instances-requests"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./flow-instance"), exports);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/flow-instances/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyC;AACzC,0DAA+B"}
|