@activepieces/shared 0.10.44 → 0.10.47
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 +3 -5
- package/src/index.js +4 -13
- 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/telemetry.d.ts +1 -9
- package/src/lib/common/telemetry.js +0 -2
- package/src/lib/common/telemetry.js.map +1 -1
- package/src/lib/common/utils/object-utils.d.ts +3 -0
- package/src/lib/flag/flag.d.ts +0 -2
- package/src/lib/flag/flag.js +0 -2
- package/src/lib/flag/flag.js.map +1 -1
- 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/flow-template-request.d.ts +61 -14
- package/src/lib/flows/dto/flow-template-request.js +8 -4
- package/src/lib/flows/dto/flow-template-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/chatbot/chatbot.d.ts +0 -58
- package/src/lib/chatbot/chatbot.js +0 -38
- package/src/lib/chatbot/chatbot.js.map +0 -1
- package/src/lib/chatbot/datasource.d.ts +0 -23
- package/src/lib/chatbot/datasource.js +0 -25
- package/src/lib/chatbot/datasource.js.map +0 -1
- package/src/lib/chatbot/index.d.ts +0 -2
- package/src/lib/chatbot/index.js +0 -6
- package/src/lib/chatbot/index.js.map +0 -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.47",
|
|
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": "2.6.
|
|
9
|
+
"tslib": "2.6.2"
|
|
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,13 +43,12 @@ 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';
|
|
51
49
|
export * from './lib/flows';
|
|
52
50
|
export * from './lib/flows/dto/list-flows-request';
|
|
53
|
-
export * from './lib/chatbot';
|
|
54
51
|
export * from './lib/project/project';
|
|
55
|
-
export
|
|
52
|
+
export * from './lib/flows/dto/flow-template-request';
|
|
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,17 +66,15 @@ 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);
|
|
80
72
|
tslib_1.__exportStar(require("./lib/flows"), exports);
|
|
81
73
|
tslib_1.__exportStar(require("./lib/flows/dto/list-flows-request"), exports);
|
|
82
|
-
tslib_1.__exportStar(require("./lib/chatbot"), exports);
|
|
83
74
|
tslib_1.__exportStar(require("./lib/project/project"), exports);
|
|
84
75
|
const system_1 = require("@sinclair/typebox/system");
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
tslib_1.__exportStar(require("./lib/flows/dto/flow-template-request"), exports);
|
|
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,gEAAqC;AACrC,qDAAqD;AACrD,gFAAqD;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"}
|
|
@@ -2,9 +2,6 @@ import { RunEnvironment } from '../flow-run/flow-run';
|
|
|
2
2
|
import { FlowId } from '../flows/flow';
|
|
3
3
|
import { ProjectId } from '../project/project';
|
|
4
4
|
import { UserId } from '../user/user';
|
|
5
|
-
type ChatbotCreated = {
|
|
6
|
-
chatbotId: string;
|
|
7
|
-
};
|
|
8
5
|
type FlowCreated = {
|
|
9
6
|
flowId: FlowId;
|
|
10
7
|
};
|
|
@@ -68,7 +65,6 @@ export declare enum TelemetryEventName {
|
|
|
68
65
|
UPGRADE_CLICKED = "upgrade.clicked",
|
|
69
66
|
OPENED_PRICING_FROM_DASHBOARD = "pricing.viewed",
|
|
70
67
|
UPGRADE_POPUP = "upgrade.popup",
|
|
71
|
-
CHATBOT_CREATED = "chatbot.created",
|
|
72
68
|
FLOW_CREATED = "flow.created",
|
|
73
69
|
DEMO_IMPORTED = "demo.imported",
|
|
74
70
|
FLOW_RUN_CREATED = "run.created",
|
|
@@ -78,15 +74,11 @@ export declare enum TelemetryEventName {
|
|
|
78
74
|
REFERRAL = "referral",
|
|
79
75
|
REFERRAL_LINK_COPIED = "referral.link.copied",
|
|
80
76
|
FLOW_SHARED = "flow.shared",
|
|
81
|
-
FEATURED_TAB_VIEWED = "template.featured-tab-viewed",
|
|
82
77
|
TEMPLATE_SEARCH = "template.search"
|
|
83
78
|
}
|
|
84
|
-
type FeaturedTabViewed = {
|
|
85
|
-
buttonPressed: 'banner button' | 'tab button';
|
|
86
|
-
};
|
|
87
79
|
type BaseTelemetryEvent<T, P> = {
|
|
88
80
|
name: T;
|
|
89
81
|
payload: P;
|
|
90
82
|
};
|
|
91
|
-
export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.
|
|
83
|
+
export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.FLOW_CREATED, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.OPENED_PRICING_FROM_DASHBOARD, OpenedFromDasahboard>;
|
|
92
84
|
export {};
|
|
@@ -8,7 +8,6 @@ var TelemetryEventName;
|
|
|
8
8
|
TelemetryEventName["UPGRADE_CLICKED"] = "upgrade.clicked";
|
|
9
9
|
TelemetryEventName["OPENED_PRICING_FROM_DASHBOARD"] = "pricing.viewed";
|
|
10
10
|
TelemetryEventName["UPGRADE_POPUP"] = "upgrade.popup";
|
|
11
|
-
TelemetryEventName["CHATBOT_CREATED"] = "chatbot.created";
|
|
12
11
|
TelemetryEventName["FLOW_CREATED"] = "flow.created";
|
|
13
12
|
TelemetryEventName["DEMO_IMPORTED"] = "demo.imported";
|
|
14
13
|
TelemetryEventName["FLOW_RUN_CREATED"] = "run.created";
|
|
@@ -18,7 +17,6 @@ var TelemetryEventName;
|
|
|
18
17
|
TelemetryEventName["REFERRAL"] = "referral";
|
|
19
18
|
TelemetryEventName["REFERRAL_LINK_COPIED"] = "referral.link.copied";
|
|
20
19
|
TelemetryEventName["FLOW_SHARED"] = "flow.shared";
|
|
21
|
-
TelemetryEventName["FEATURED_TAB_VIEWED"] = "template.featured-tab-viewed";
|
|
22
20
|
TelemetryEventName["TEMPLATE_SEARCH"] = "template.search";
|
|
23
21
|
})(TelemetryEventName || (exports.TelemetryEventName = TelemetryEventName = {}));
|
|
24
22
|
//# sourceMappingURL=telemetry.js.map
|
|
@@ -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":";;;AA2EA,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC1B,6CAAuB,CAAA;IACvB,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,sEAAgD,CAAA;IAChD,qDAA+B,CAAA;IAC/B,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,sDAAgC,CAAA;IAChC,uDAAiC,CAAA;IACjC,qDAA+B,CAAA;IAC/B,qDAA+B,CAAA;IAC/B,2CAAqB,CAAA;IACrB,mEAA6C,CAAA;IAC7C,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;AACvC,CAAC,EAhBW,kBAAkB,kCAAlB,kBAAkB,QAgB7B"}
|
|
@@ -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
|
+
};
|
package/src/lib/flag/flag.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare enum ApEdition {
|
|
|
16
16
|
}
|
|
17
17
|
export declare enum ApFlagId {
|
|
18
18
|
BILLING_ENABLED = "BILLING_ENABLED",
|
|
19
|
-
CHATBOT_ENABLED = "CHATBOT_ENABLED",
|
|
20
19
|
CLOUD_AUTH_ENABLED = "CLOUD_AUTH_ENABLED",
|
|
21
20
|
OWN_AUTH2_ENABLED = "OWN_AUTH2_ENABLED",
|
|
22
21
|
CURRENT_VERSION = "CURRENT_VERSION",
|
|
@@ -39,7 +38,6 @@ export declare enum ApFlagId {
|
|
|
39
38
|
SIGN_UP_ENABLED = "SIGN_UP_ENABLED",
|
|
40
39
|
TELEMETRY_ENABLED = "TELEMETRY_ENABLED",
|
|
41
40
|
TEMPLATES_PROJECT_ID = "TEMPLATES_PROJECT_ID",
|
|
42
|
-
TEMPLATES_SOURCE_URL = "TEMPLATES_SOURCE_URL",
|
|
43
41
|
THEME = "THEME",
|
|
44
42
|
USER_CREATED = "USER_CREATED",
|
|
45
43
|
WEBHOOK_URL_PREFIX = "WEBHOOK_URL_PREFIX",
|
package/src/lib/flag/flag.js
CHANGED
|
@@ -16,7 +16,6 @@ var ApEdition;
|
|
|
16
16
|
var ApFlagId;
|
|
17
17
|
(function (ApFlagId) {
|
|
18
18
|
ApFlagId["BILLING_ENABLED"] = "BILLING_ENABLED";
|
|
19
|
-
ApFlagId["CHATBOT_ENABLED"] = "CHATBOT_ENABLED";
|
|
20
19
|
ApFlagId["CLOUD_AUTH_ENABLED"] = "CLOUD_AUTH_ENABLED";
|
|
21
20
|
ApFlagId["OWN_AUTH2_ENABLED"] = "OWN_AUTH2_ENABLED";
|
|
22
21
|
ApFlagId["CURRENT_VERSION"] = "CURRENT_VERSION";
|
|
@@ -39,7 +38,6 @@ var ApFlagId;
|
|
|
39
38
|
ApFlagId["SIGN_UP_ENABLED"] = "SIGN_UP_ENABLED";
|
|
40
39
|
ApFlagId["TELEMETRY_ENABLED"] = "TELEMETRY_ENABLED";
|
|
41
40
|
ApFlagId["TEMPLATES_PROJECT_ID"] = "TEMPLATES_PROJECT_ID";
|
|
42
|
-
ApFlagId["TEMPLATES_SOURCE_URL"] = "TEMPLATES_SOURCE_URL";
|
|
43
41
|
ApFlagId["THEME"] = "THEME";
|
|
44
42
|
ApFlagId["USER_CREATED"] = "USER_CREATED";
|
|
45
43
|
ApFlagId["WEBHOOK_URL_PREFIX"] = "WEBHOOK_URL_PREFIX";
|
package/src/lib/flag/flag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flag.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flag/flag.ts"],"names":[],"mappings":";;;AASA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,iCAAgB,CAAA;AACpB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,6BAAgB,CAAA;IAChB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"flag.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flag/flag.ts"],"names":[],"mappings":";;;AASA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,iCAAgB,CAAA;AACpB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,6BAAgB,CAAA;IAChB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,QA8BX;AA9BD,WAAY,QAAQ;IAChB,+CAAmC,CAAA;IACnC,qDAAyC,CAAA;IACzC,mDAAuC,CAAA;IACvC,+CAAmC,CAAA;IACnC,+BAAmB,CAAA;IACnB,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,6CAAiC,CAAA;IACjC,iDAAqC,CAAA;IACrC,6DAAiD,CAAA;IACjD,+DAAmD,CAAA;IACnD,iEAAqD,CAAA;IACrD,6FAAiF,CAAA;IACjF,6FAAiF,CAAA;IACjF,yCAA6B,CAAA;IAC7B,+CAAmC,CAAA;IACnC,6CAAiC,CAAA;IACjC,mCAAuB,CAAA;IACvB,mDAAuC,CAAA;IACvC,2DAA+C,CAAA;IAC/C,+CAAmC,CAAA;IACnC,mDAAuC,CAAA;IACvC,yDAA6C,CAAA;IAC7C,2BAAe,CAAA;IACf,yCAA6B,CAAA;IAC7B,qDAAyC,CAAA;IACzC,qDAAyC,CAAA;IACzC,qDAAyC,CAAA;IACzC,yDAA6C,CAAA;AACjD,CAAC,EA9BW,QAAQ,wBAAR,QAAQ,QA8BnB"}
|
|
@@ -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"}
|
|
@@ -44,9 +44,14 @@ export declare const FlowVersionTemplate: import("@sinclair/typebox").TObject<{
|
|
|
44
44
|
}>]>;
|
|
45
45
|
}>;
|
|
46
46
|
export type FlowVersionTemplate = Static<typeof FlowVersionTemplate>;
|
|
47
|
+
export declare enum TemplateType {
|
|
48
|
+
PLATFORM = "PLATFORM",
|
|
49
|
+
PROJECT = "PROJECT"
|
|
50
|
+
}
|
|
47
51
|
export declare const FlowTemplate: import("@sinclair/typebox").TObject<{
|
|
48
52
|
name: import("@sinclair/typebox").TString<string>;
|
|
49
53
|
description: import("@sinclair/typebox").TString<string>;
|
|
54
|
+
type: import("@sinclair/typebox").TEnum<typeof TemplateType>;
|
|
50
55
|
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
51
56
|
pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
52
57
|
blogUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
@@ -94,28 +99,70 @@ export declare const FlowTemplate: import("@sinclair/typebox").TObject<{
|
|
|
94
99
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
95
100
|
}>]>;
|
|
96
101
|
}>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
100
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
101
|
-
firstName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
102
|
-
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TNull]>>;
|
|
103
|
-
lastName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
104
|
-
imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
105
|
-
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
106
|
-
}>>;
|
|
107
|
-
imageUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TString<string>]>;
|
|
108
|
-
featuredDescription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
109
|
-
isFeatured: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
102
|
+
projectId: import("@sinclair/typebox").TString<string>;
|
|
103
|
+
platformId: import("@sinclair/typebox").TString<string>;
|
|
110
104
|
id: import("@sinclair/typebox").TString<string>;
|
|
111
105
|
created: import("@sinclair/typebox").TString<string>;
|
|
112
106
|
updated: import("@sinclair/typebox").TString<string>;
|
|
113
107
|
}>;
|
|
114
108
|
export type FlowTemplate = Static<typeof FlowTemplate>;
|
|
109
|
+
export declare const FlowTemplateWithoutProjectInformation: import("@sinclair/typebox").TObject<{
|
|
110
|
+
created: import("@sinclair/typebox").TString<string>;
|
|
111
|
+
updated: import("@sinclair/typebox").TString<string>;
|
|
112
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
113
|
+
description: import("@sinclair/typebox").TString<string>;
|
|
114
|
+
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
115
|
+
pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
116
|
+
blogUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
117
|
+
template: import("@sinclair/typebox").TObject<{
|
|
118
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
119
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
120
|
+
trigger: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
121
|
+
type: import("@sinclair/typebox").TLiteral<import("../triggers/trigger").TriggerType.WEBHOOK>;
|
|
122
|
+
settings: import("@sinclair/typebox").TObject<{
|
|
123
|
+
inputUiInfo: import("@sinclair/typebox").TObject<{
|
|
124
|
+
currentSelectedData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
125
|
+
customizedInputs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>>;
|
|
126
|
+
lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
127
|
+
}>;
|
|
128
|
+
}>;
|
|
129
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
130
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
131
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
132
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
133
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
134
|
+
type: import("@sinclair/typebox").TLiteral<import("../triggers/trigger").TriggerType.PIECE>;
|
|
135
|
+
settings: import("@sinclair/typebox").TObject<{
|
|
136
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
137
|
+
pieceVersion: import("@sinclair/typebox").TString<string>;
|
|
138
|
+
pieceType: import("@sinclair/typebox").TEnum<typeof import("../../pieces").PieceType>;
|
|
139
|
+
packageType: import("@sinclair/typebox").TEnum<typeof import("../../pieces").PackageType>;
|
|
140
|
+
triggerName: import("@sinclair/typebox").TString<string>;
|
|
141
|
+
input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>;
|
|
142
|
+
inputUiInfo: import("@sinclair/typebox").TObject<{
|
|
143
|
+
currentSelectedData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
144
|
+
customizedInputs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>>;
|
|
145
|
+
lastTestDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
146
|
+
}>;
|
|
147
|
+
}>;
|
|
148
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
149
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
150
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
151
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
152
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
153
|
+
type: import("@sinclair/typebox").TLiteral<import("../triggers/trigger").TriggerType.EMPTY>;
|
|
154
|
+
settings: import("@sinclair/typebox").TAny;
|
|
155
|
+
name: import("@sinclair/typebox").TString<string>;
|
|
156
|
+
valid: import("@sinclair/typebox").TBoolean;
|
|
157
|
+
displayName: import("@sinclair/typebox").TString<string>;
|
|
158
|
+
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
159
|
+
}>]>;
|
|
160
|
+
}>;
|
|
161
|
+
}>;
|
|
162
|
+
export type FlowTemplateWithoutProjectInformation = Static<typeof FlowTemplateWithoutProjectInformation>;
|
|
115
163
|
export declare const ListFlowTemplatesRequest: import("@sinclair/typebox").TObject<{
|
|
116
164
|
pieces: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>>;
|
|
117
165
|
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>>;
|
|
118
166
|
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
119
|
-
featuredOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
120
167
|
}>;
|
|
121
168
|
export type ListFlowTemplatesRequest = Static<typeof ListFlowTemplatesRequest>;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListFlowTemplatesRequest = exports.FlowTemplate = exports.FlowVersionTemplate = void 0;
|
|
3
|
+
exports.ListFlowTemplatesRequest = exports.FlowTemplateWithoutProjectInformation = exports.FlowTemplate = exports.TemplateType = exports.FlowVersionTemplate = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const flow_version_1 = require("../flow-version");
|
|
6
|
-
const user_1 = require("../../user/user");
|
|
7
6
|
const common_1 = require("../../common");
|
|
8
7
|
exports.FlowVersionTemplate = typebox_1.Type.Omit(flow_version_1.FlowVersion, ['id', 'created', 'updated', 'flowId', 'state', 'updatedBy']);
|
|
9
|
-
|
|
8
|
+
var TemplateType;
|
|
9
|
+
(function (TemplateType) {
|
|
10
|
+
TemplateType["PLATFORM"] = "PLATFORM";
|
|
11
|
+
TemplateType["PROJECT"] = "PROJECT";
|
|
12
|
+
})(TemplateType || (exports.TemplateType = TemplateType = {}));
|
|
13
|
+
exports.FlowTemplate = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), description: typebox_1.Type.String(), type: typebox_1.Type.Enum(TemplateType), tags: typebox_1.Type.Array(typebox_1.Type.String()), pieces: typebox_1.Type.Array(typebox_1.Type.String()), blogUrl: typebox_1.Type.Optional(typebox_1.Type.String()), template: exports.FlowVersionTemplate, projectId: typebox_1.Type.String(), platformId: typebox_1.Type.String() }));
|
|
14
|
+
exports.FlowTemplateWithoutProjectInformation = typebox_1.Type.Omit(exports.FlowTemplate, ['projectId', 'platformId', 'id', 'type']);
|
|
10
15
|
exports.ListFlowTemplatesRequest = typebox_1.Type.Object({
|
|
11
16
|
pieces: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
12
17
|
tags: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
13
18
|
search: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
14
|
-
featuredOnly: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
15
19
|
});
|
|
16
20
|
//# sourceMappingURL=flow-template-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-template-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/flow-template-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,kDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"flow-template-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/dto/flow-template-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,kDAA6C;AAC7C,yCAA8C;AACjC,QAAA,mBAAmB,GAAG,cAAI,CAAC,IAAI,CACxC,0BAAW,EACX,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,CAC/D,CAAA;AAKD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;AACvB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAEY,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,iCAChC,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE,EAC1B,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAC7B,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EAC/B,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACjC,OAAO,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACrC,QAAQ,EAAE,2BAAmB,EAC7B,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,IAC3B,CAAA;AAIW,QAAA,qCAAqC,GAAG,cAAI,CAAC,IAAI,CAAC,oBAAY,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;AAG1G,QAAA,wBAAwB,GAAG,cAAI,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,IAAI,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9C,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACvC,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,58 +0,0 @@
|
|
|
1
|
-
import { Static } from '@sinclair/typebox';
|
|
2
|
-
export declare enum VisibilityStatus {
|
|
3
|
-
PUBLIC = "PUBLIC",
|
|
4
|
-
PRIVATE = "PRIVATE"
|
|
5
|
-
}
|
|
6
|
-
export declare const Chatbot: import("@sinclair/typebox").TObject<{
|
|
7
|
-
type: import("@sinclair/typebox").TString<string>;
|
|
8
|
-
displayName: import("@sinclair/typebox").TString<string>;
|
|
9
|
-
projectId: import("@sinclair/typebox").TString<string>;
|
|
10
|
-
connectionId: import("@sinclair/typebox").TString<string>;
|
|
11
|
-
prompt: import("@sinclair/typebox").TString<string>;
|
|
12
|
-
visibilityStatus: import("@sinclair/typebox").TEnum<typeof VisibilityStatus>;
|
|
13
|
-
dataSources: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
14
|
-
displayName: import("@sinclair/typebox").TString<string>;
|
|
15
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
16
|
-
size: import("@sinclair/typebox").TNumber;
|
|
17
|
-
type: import("@sinclair/typebox").TLiteral<import("./datasource").DataSourceType>;
|
|
18
|
-
}>>;
|
|
19
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
20
|
-
created: import("@sinclair/typebox").TString<string>;
|
|
21
|
-
updated: import("@sinclair/typebox").TString<string>;
|
|
22
|
-
}>;
|
|
23
|
-
export type Chatbot = Static<typeof Chatbot>;
|
|
24
|
-
export type ChatbotMetadata = Pick<Chatbot, 'id' | 'displayName' | 'created' | 'updated'>;
|
|
25
|
-
export declare const CreateChatBotRequest: import("@sinclair/typebox").TObject<{
|
|
26
|
-
type: import("@sinclair/typebox").TString<string>;
|
|
27
|
-
}>;
|
|
28
|
-
export type CreateChatBotRequest = Static<typeof CreateChatBotRequest>;
|
|
29
|
-
export declare const UpdateChatbotRequest: import("@sinclair/typebox").TObject<{
|
|
30
|
-
displayName: import("@sinclair/typebox").TString<string>;
|
|
31
|
-
prompt: import("@sinclair/typebox").TString<string>;
|
|
32
|
-
visibilityStatus: import("@sinclair/typebox").TEnum<typeof VisibilityStatus>;
|
|
33
|
-
connectionId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TString<string>]>;
|
|
34
|
-
}>;
|
|
35
|
-
export type UpdateChatbotRequest = Static<typeof UpdateChatbotRequest>;
|
|
36
|
-
export declare const ListChatbotsRequest: import("@sinclair/typebox").TObject<{
|
|
37
|
-
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
38
|
-
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
39
|
-
}>;
|
|
40
|
-
export type ListChatbotsRequest = Static<typeof ListChatbotsRequest>;
|
|
41
|
-
export declare const ChatbotResponse: import("@sinclair/typebox").TObject<{
|
|
42
|
-
output: import("@sinclair/typebox").TString<string>;
|
|
43
|
-
}>;
|
|
44
|
-
export type ChatbotResponse = Static<typeof ChatbotResponse>;
|
|
45
|
-
export declare const APChatMessage: import("@sinclair/typebox").TObject<{
|
|
46
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"bot">]>;
|
|
47
|
-
text: import("@sinclair/typebox").TString<string>;
|
|
48
|
-
}>;
|
|
49
|
-
export type APChatMessage = Static<typeof APChatMessage>;
|
|
50
|
-
export declare const AskChatBotRequest: import("@sinclair/typebox").TObject<{
|
|
51
|
-
chatbotId: import("@sinclair/typebox").TString<string>;
|
|
52
|
-
input: import("@sinclair/typebox").TString<string>;
|
|
53
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
54
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"bot">]>;
|
|
55
|
-
text: import("@sinclair/typebox").TString<string>;
|
|
56
|
-
}>>;
|
|
57
|
-
}>;
|
|
58
|
-
export type AskChatBotRequest = Static<typeof AskChatBotRequest>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AskChatBotRequest = exports.APChatMessage = exports.ChatbotResponse = exports.ListChatbotsRequest = exports.UpdateChatbotRequest = exports.CreateChatBotRequest = exports.Chatbot = exports.VisibilityStatus = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const datasource_1 = require("./datasource");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
var VisibilityStatus;
|
|
8
|
-
(function (VisibilityStatus) {
|
|
9
|
-
VisibilityStatus["PUBLIC"] = "PUBLIC";
|
|
10
|
-
VisibilityStatus["PRIVATE"] = "PRIVATE";
|
|
11
|
-
})(VisibilityStatus || (exports.VisibilityStatus = VisibilityStatus = {}));
|
|
12
|
-
exports.Chatbot = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { type: typebox_1.Type.String(), displayName: typebox_1.Type.String(), projectId: typebox_1.Type.String(), connectionId: typebox_1.Type.String(), prompt: typebox_1.Type.String(), visibilityStatus: typebox_1.Type.Enum(VisibilityStatus), dataSources: typebox_1.Type.Array(datasource_1.DataSource) }));
|
|
13
|
-
exports.CreateChatBotRequest = typebox_1.Type.Object({
|
|
14
|
-
type: typebox_1.Type.String(),
|
|
15
|
-
});
|
|
16
|
-
exports.UpdateChatbotRequest = typebox_1.Type.Object({
|
|
17
|
-
displayName: typebox_1.Type.String(),
|
|
18
|
-
prompt: typebox_1.Type.String(),
|
|
19
|
-
visibilityStatus: typebox_1.Type.Enum(VisibilityStatus),
|
|
20
|
-
connectionId: typebox_1.Type.Union([typebox_1.Type.Null(), typebox_1.Type.String()]),
|
|
21
|
-
});
|
|
22
|
-
exports.ListChatbotsRequest = typebox_1.Type.Object({
|
|
23
|
-
cursor: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
24
|
-
limit: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
25
|
-
});
|
|
26
|
-
exports.ChatbotResponse = typebox_1.Type.Object({
|
|
27
|
-
output: typebox_1.Type.String(),
|
|
28
|
-
});
|
|
29
|
-
exports.APChatMessage = typebox_1.Type.Object({
|
|
30
|
-
role: typebox_1.Type.Union([typebox_1.Type.Literal('user'), typebox_1.Type.Literal('bot')]),
|
|
31
|
-
text: typebox_1.Type.String(),
|
|
32
|
-
});
|
|
33
|
-
exports.AskChatBotRequest = typebox_1.Type.Object({
|
|
34
|
-
chatbotId: typebox_1.Type.String(),
|
|
35
|
-
input: typebox_1.Type.String(),
|
|
36
|
-
history: typebox_1.Type.Array(exports.APChatMessage),
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=chatbot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/chatbot/chatbot.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,6CAAyC;AACzC,sCAA2C;AAE3C,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAEY,QAAA,OAAO,GAAG,cAAI,CAAC,MAAM,iCAC3B,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE,EAC1B,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,YAAY,EAAE,cAAI,CAAC,MAAM,EAAE,EAC3B,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE,EACrB,gBAAgB,EAAE,cAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAC7C,WAAW,EAAE,cAAI,CAAC,KAAK,CAAC,uBAAU,CAAC,IACrC,CAAA;AAMW,QAAA,oBAAoB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAIW,QAAA,oBAAoB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,cAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;IAC7C,YAAY,EAAE,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,IAAI,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;CACzD,CAAC,CAAA;AAIW,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACpC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC,CAAA;AAIW,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAIW,QAAA,aAAa,GAAG,cAAI,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7D,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAGW,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,qBAAa,CAAC;CACrC,CAAC,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Static } from '@sinclair/typebox';
|
|
2
|
-
export declare enum DataSourceType {
|
|
3
|
-
PDF = "PDF"
|
|
4
|
-
}
|
|
5
|
-
export declare const DataSource: import("@sinclair/typebox").TObject<{
|
|
6
|
-
displayName: import("@sinclair/typebox").TString<string>;
|
|
7
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
8
|
-
size: import("@sinclair/typebox").TNumber;
|
|
9
|
-
type: import("@sinclair/typebox").TLiteral<DataSourceType>;
|
|
10
|
-
}>;
|
|
11
|
-
export type DataSource = Static<typeof DataSource>;
|
|
12
|
-
export declare const CreateDataSourceRequest: import("@sinclair/typebox").TObject<{
|
|
13
|
-
displayName: import("@sinclair/typebox").TString<string>;
|
|
14
|
-
type: import("@sinclair/typebox").TLiteral<DataSourceType>;
|
|
15
|
-
settings: import("@sinclair/typebox").TObject<{
|
|
16
|
-
fileBase64: import("@sinclair/typebox").TString<string>;
|
|
17
|
-
}>;
|
|
18
|
-
}>;
|
|
19
|
-
export type CreateDataSourceRequest = Static<typeof CreateDataSourceRequest>;
|
|
20
|
-
export declare const DeleteDataSourceRequest: import("@sinclair/typebox").TObject<{
|
|
21
|
-
id: import("@sinclair/typebox").TString<string>;
|
|
22
|
-
}>;
|
|
23
|
-
export type DeleteDataSourceRequest = Static<typeof DeleteDataSourceRequest>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteDataSourceRequest = exports.CreateDataSourceRequest = exports.DataSource = exports.DataSourceType = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
var DataSourceType;
|
|
6
|
-
(function (DataSourceType) {
|
|
7
|
-
DataSourceType["PDF"] = "PDF";
|
|
8
|
-
})(DataSourceType || (exports.DataSourceType = DataSourceType = {}));
|
|
9
|
-
exports.DataSource = typebox_1.Type.Object({
|
|
10
|
-
displayName: typebox_1.Type.String(),
|
|
11
|
-
id: typebox_1.Type.String(),
|
|
12
|
-
size: typebox_1.Type.Number(),
|
|
13
|
-
type: typebox_1.Type.Literal(DataSourceType.PDF),
|
|
14
|
-
});
|
|
15
|
-
exports.CreateDataSourceRequest = typebox_1.Type.Object({
|
|
16
|
-
displayName: typebox_1.Type.String(),
|
|
17
|
-
type: typebox_1.Type.Literal(DataSourceType.PDF),
|
|
18
|
-
settings: typebox_1.Type.Object({
|
|
19
|
-
fileBase64: typebox_1.Type.String(),
|
|
20
|
-
}),
|
|
21
|
-
});
|
|
22
|
-
exports.DeleteDataSourceRequest = typebox_1.Type.Object({
|
|
23
|
-
id: typebox_1.Type.String(),
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=datasource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/chatbot/datasource.ts"],"names":[],"mappings":";;;AACA,+CAAgD;AAEhD,IAAY,cAEX;AAFD,WAAY,cAAc;IACtB,6BAAW,CAAA;AACf,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAEY,QAAA,UAAU,GAAG,cAAI,CAAC,MAAM,CAAC;IAClC,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC;CACzC,CAAC,CAAA;AAIW,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,cAAI,CAAC,MAAM,EAAE;IAC1B,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC;IACtC,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE;KAC5B,CAAC;CACL,CAAC,CAAA;AAIW,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA"}
|
package/src/lib/chatbot/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/chatbot/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,oDAAyB"}
|
|
@@ -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"}
|