@activepieces/shared 0.40.1 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/automation/agents/index.d.ts +1 -0
- package/src/lib/automation/agents/index.js +1 -0
- package/src/lib/automation/agents/index.js.map +1 -1
- package/src/lib/automation/agents/mcp-tool-name-util.d.ts +15 -0
- package/src/lib/automation/agents/mcp-tool-name-util.js +40 -0
- package/src/lib/automation/agents/mcp-tool-name-util.js.map +1 -0
- package/src/lib/automation/agents/tools.d.ts +2 -5
- package/src/lib/automation/agents/tools.js +1 -13
- package/src/lib/automation/agents/tools.js.map +1 -1
- package/src/lib/automation/app-connection/app-connection.d.ts +2 -2
- package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +1 -1
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +21 -21
- package/src/lib/automation/flows/flow-version.d.ts +3 -3
- package/src/lib/automation/flows/flow-version.js +1 -1
- package/src/lib/automation/flows/flow.d.ts +8 -8
- package/src/lib/automation/flows/flow.js.map +1 -1
- package/src/lib/automation/flows/operations/index.d.ts +25 -25
- package/src/lib/automation/flows/operations/paste-operations.d.ts +19 -19
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +1 -1
- package/src/lib/automation/flows/util/flow-structure-util.js +12 -6
- package/src/lib/automation/flows/util/flow-structure-util.js.map +1 -1
- package/src/lib/automation/mcp/mcp.d.ts +4 -4
- package/src/lib/automation/pieces/utils.js +5 -4
- package/src/lib/automation/pieces/utils.js.map +1 -1
- package/src/lib/automation/project-release/project-state.d.ts +30 -30
- package/src/lib/automation/tables/dto/tables.dto.d.ts +9 -0
- package/src/lib/automation/tables/dto/tables.dto.js +10 -1
- package/src/lib/automation/tables/dto/tables.dto.js.map +1 -1
- package/src/lib/automation/tables/record.d.ts +1 -1
- package/src/lib/automation/tables/table.d.ts +5 -3
- package/src/lib/automation/tables/table.js +1 -1
- package/src/lib/automation/tables/table.js.map +1 -1
- package/src/lib/automation/workers/job-data.d.ts +27 -27
- package/src/lib/core/authentication/dto/authentication-response.d.ts +5 -5
- package/src/lib/core/common/activepieces-error.d.ts +2 -50
- package/src/lib/core/common/activepieces-error.js +0 -10
- package/src/lib/core/common/activepieces-error.js.map +1 -1
- package/src/lib/ee/api-key/index.d.ts +1 -1
- package/src/lib/ee/audit-events/index.d.ts +24 -24
- package/src/lib/ee/git-repo/index.d.ts +1 -1
- package/src/lib/ee/project-members/project-member.d.ts +1 -1
- package/src/lib/management/invitations/index.d.ts +2 -2
- package/src/lib/management/project/project.d.ts +8 -8
- package/src/lib/management/template/template.d.ts +10 -10
|
@@ -36,9 +36,9 @@ export declare const DeleteBranchRequest: import("@sinclair/typebox").TObject<{
|
|
|
36
36
|
}>;
|
|
37
37
|
export declare const UpdateNoteRequest: import("@sinclair/typebox").TObject<{
|
|
38
38
|
id: import("@sinclair/typebox").TString;
|
|
39
|
+
content: import("@sinclair/typebox").TString;
|
|
39
40
|
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
40
41
|
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
41
|
-
content: import("@sinclair/typebox").TString;
|
|
42
42
|
position: import("@sinclair/typebox").TObject<{
|
|
43
43
|
x: import("@sinclair/typebox").TNumber;
|
|
44
44
|
y: import("@sinclair/typebox").TNumber;
|
|
@@ -53,8 +53,8 @@ export declare const DeleteNoteRequest: import("@sinclair/typebox").TObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const AddNoteRequest: import("@sinclair/typebox").TObject<{
|
|
55
55
|
id: import("@sinclair/typebox").TString;
|
|
56
|
-
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
57
56
|
content: import("@sinclair/typebox").TString;
|
|
57
|
+
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
58
58
|
position: import("@sinclair/typebox").TObject<{
|
|
59
59
|
x: import("@sinclair/typebox").TNumber;
|
|
60
60
|
y: import("@sinclair/typebox").TNumber;
|
|
@@ -154,8 +154,8 @@ export declare const ImportFlowRequest: import("@sinclair/typebox").TObject<{
|
|
|
154
154
|
notes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
155
155
|
ownerId?: string | null | undefined;
|
|
156
156
|
id: string;
|
|
157
|
-
color: import("../note").NoteColorVariant;
|
|
158
157
|
content: string;
|
|
158
|
+
color: import("../note").NoteColorVariant;
|
|
159
159
|
position: {
|
|
160
160
|
x: number;
|
|
161
161
|
y: number;
|
|
@@ -540,8 +540,8 @@ export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[i
|
|
|
540
540
|
notes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
541
541
|
ownerId?: string | null | undefined;
|
|
542
542
|
id: string;
|
|
543
|
-
color: import("../note").NoteColorVariant;
|
|
544
543
|
content: string;
|
|
544
|
+
color: import("../note").NoteColorVariant;
|
|
545
545
|
position: {
|
|
546
546
|
x: number;
|
|
547
547
|
y: number;
|
|
@@ -916,9 +916,9 @@ export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[i
|
|
|
916
916
|
type: import("@sinclair/typebox").TLiteral<FlowOperationType.UPDATE_NOTE>;
|
|
917
917
|
request: import("@sinclair/typebox").TObject<{
|
|
918
918
|
id: import("@sinclair/typebox").TString;
|
|
919
|
+
content: import("@sinclair/typebox").TString;
|
|
919
920
|
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
920
921
|
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
921
|
-
content: import("@sinclair/typebox").TString;
|
|
922
922
|
position: import("@sinclair/typebox").TObject<{
|
|
923
923
|
x: import("@sinclair/typebox").TNumber;
|
|
924
924
|
y: import("@sinclair/typebox").TNumber;
|
|
@@ -937,8 +937,8 @@ export declare const FlowOperationRequest: import("@sinclair/typebox").TUnion<[i
|
|
|
937
937
|
type: import("@sinclair/typebox").TLiteral<FlowOperationType.ADD_NOTE>;
|
|
938
938
|
request: import("@sinclair/typebox").TObject<{
|
|
939
939
|
id: import("@sinclair/typebox").TString;
|
|
940
|
-
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
941
940
|
content: import("@sinclair/typebox").TString;
|
|
941
|
+
color: import("@sinclair/typebox").TEnum<typeof import("../note").NoteColorVariant>;
|
|
942
942
|
position: import("@sinclair/typebox").TObject<{
|
|
943
943
|
x: import("@sinclair/typebox").TNumber;
|
|
944
944
|
y: import("@sinclair/typebox").TNumber;
|
|
@@ -985,8 +985,8 @@ export declare const flowOperations: {
|
|
|
985
985
|
notes?: {
|
|
986
986
|
ownerId?: string | null | undefined;
|
|
987
987
|
id: string;
|
|
988
|
-
color: import("../note").NoteColorVariant;
|
|
989
988
|
content: string;
|
|
989
|
+
color: import("../note").NoteColorVariant;
|
|
990
990
|
position: {
|
|
991
991
|
x: number;
|
|
992
992
|
y: number;
|
|
@@ -1003,14 +1003,13 @@ export declare const flowOperations: {
|
|
|
1003
1003
|
nextAction?: any;
|
|
1004
1004
|
type: FlowTriggerType.EMPTY;
|
|
1005
1005
|
name: string;
|
|
1006
|
-
displayName: string;
|
|
1007
1006
|
settings: any;
|
|
1008
1007
|
valid: boolean;
|
|
1008
|
+
displayName: string;
|
|
1009
1009
|
} | {
|
|
1010
1010
|
nextAction?: any;
|
|
1011
1011
|
type: FlowTriggerType.PIECE;
|
|
1012
1012
|
name: string;
|
|
1013
|
-
displayName: string;
|
|
1014
1013
|
settings: {
|
|
1015
1014
|
triggerName?: string | undefined;
|
|
1016
1015
|
sampleData?: {
|
|
@@ -1032,6 +1031,7 @@ export declare const flowOperations: {
|
|
|
1032
1031
|
};
|
|
1033
1032
|
};
|
|
1034
1033
|
valid: boolean;
|
|
1034
|
+
displayName: string;
|
|
1035
1035
|
};
|
|
1036
1036
|
};
|
|
1037
1037
|
} | {
|
|
@@ -1050,7 +1050,6 @@ export declare const flowOperations: {
|
|
|
1050
1050
|
skip?: boolean | undefined;
|
|
1051
1051
|
type: import("../actions/action").FlowActionType.ROUTER;
|
|
1052
1052
|
name: string;
|
|
1053
|
-
displayName: string;
|
|
1054
1053
|
settings: {
|
|
1055
1054
|
sampleData?: {
|
|
1056
1055
|
sampleDataFileId?: string | undefined;
|
|
@@ -1085,11 +1084,11 @@ export declare const flowOperations: {
|
|
|
1085
1084
|
executionType: import("../actions/action").RouterExecutionType;
|
|
1086
1085
|
};
|
|
1087
1086
|
valid: boolean;
|
|
1087
|
+
displayName: string;
|
|
1088
1088
|
} | {
|
|
1089
1089
|
skip?: boolean | undefined;
|
|
1090
1090
|
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
1091
1091
|
name: string;
|
|
1092
|
-
displayName: string;
|
|
1093
1092
|
settings: {
|
|
1094
1093
|
sampleData?: {
|
|
1095
1094
|
sampleDataFileId?: string | undefined;
|
|
@@ -1100,13 +1099,12 @@ export declare const flowOperations: {
|
|
|
1100
1099
|
items: string;
|
|
1101
1100
|
};
|
|
1102
1101
|
valid: boolean;
|
|
1102
|
+
displayName: string;
|
|
1103
1103
|
} | {
|
|
1104
1104
|
skip?: boolean | undefined;
|
|
1105
1105
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
1106
1106
|
name: string;
|
|
1107
|
-
displayName: string;
|
|
1108
1107
|
settings: {
|
|
1109
|
-
actionName?: string | undefined;
|
|
1110
1108
|
errorHandlingOptions?: {
|
|
1111
1109
|
continueOnFailure?: {
|
|
1112
1110
|
value?: boolean | undefined;
|
|
@@ -1121,6 +1119,7 @@ export declare const flowOperations: {
|
|
|
1121
1119
|
lastTestDate?: string | undefined;
|
|
1122
1120
|
} | undefined;
|
|
1123
1121
|
customLogoUrl?: string | undefined;
|
|
1122
|
+
actionName?: string | undefined;
|
|
1124
1123
|
pieceName: string;
|
|
1125
1124
|
pieceVersion: string;
|
|
1126
1125
|
input: {
|
|
@@ -1134,11 +1133,11 @@ export declare const flowOperations: {
|
|
|
1134
1133
|
};
|
|
1135
1134
|
};
|
|
1136
1135
|
valid: boolean;
|
|
1136
|
+
displayName: string;
|
|
1137
1137
|
} | {
|
|
1138
1138
|
skip?: boolean | undefined;
|
|
1139
1139
|
type: import("../actions/action").FlowActionType.CODE;
|
|
1140
1140
|
name: string;
|
|
1141
|
-
displayName: string;
|
|
1142
1141
|
settings: {
|
|
1143
1142
|
errorHandlingOptions?: {
|
|
1144
1143
|
continueOnFailure?: {
|
|
@@ -1158,11 +1157,12 @@ export declare const flowOperations: {
|
|
|
1158
1157
|
[x: string]: any;
|
|
1159
1158
|
};
|
|
1160
1159
|
sourceCode: {
|
|
1161
|
-
code: string;
|
|
1162
1160
|
packageJson: string;
|
|
1161
|
+
code: string;
|
|
1163
1162
|
};
|
|
1164
1163
|
};
|
|
1165
1164
|
valid: boolean;
|
|
1165
|
+
displayName: string;
|
|
1166
1166
|
};
|
|
1167
1167
|
} | {
|
|
1168
1168
|
type: FlowOperationType.ADD_ACTION;
|
|
@@ -1174,7 +1174,6 @@ export declare const flowOperations: {
|
|
|
1174
1174
|
skip?: boolean | undefined;
|
|
1175
1175
|
type: import("../actions/action").FlowActionType.ROUTER;
|
|
1176
1176
|
name: string;
|
|
1177
|
-
displayName: string;
|
|
1178
1177
|
settings: {
|
|
1179
1178
|
sampleData?: {
|
|
1180
1179
|
sampleDataFileId?: string | undefined;
|
|
@@ -1209,11 +1208,11 @@ export declare const flowOperations: {
|
|
|
1209
1208
|
executionType: import("../actions/action").RouterExecutionType;
|
|
1210
1209
|
};
|
|
1211
1210
|
valid: boolean;
|
|
1211
|
+
displayName: string;
|
|
1212
1212
|
} | {
|
|
1213
1213
|
skip?: boolean | undefined;
|
|
1214
1214
|
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
1215
1215
|
name: string;
|
|
1216
|
-
displayName: string;
|
|
1217
1216
|
settings: {
|
|
1218
1217
|
sampleData?: {
|
|
1219
1218
|
sampleDataFileId?: string | undefined;
|
|
@@ -1224,13 +1223,12 @@ export declare const flowOperations: {
|
|
|
1224
1223
|
items: string;
|
|
1225
1224
|
};
|
|
1226
1225
|
valid: boolean;
|
|
1226
|
+
displayName: string;
|
|
1227
1227
|
} | {
|
|
1228
1228
|
skip?: boolean | undefined;
|
|
1229
1229
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
1230
1230
|
name: string;
|
|
1231
|
-
displayName: string;
|
|
1232
1231
|
settings: {
|
|
1233
|
-
actionName?: string | undefined;
|
|
1234
1232
|
errorHandlingOptions?: {
|
|
1235
1233
|
continueOnFailure?: {
|
|
1236
1234
|
value?: boolean | undefined;
|
|
@@ -1245,6 +1243,7 @@ export declare const flowOperations: {
|
|
|
1245
1243
|
lastTestDate?: string | undefined;
|
|
1246
1244
|
} | undefined;
|
|
1247
1245
|
customLogoUrl?: string | undefined;
|
|
1246
|
+
actionName?: string | undefined;
|
|
1248
1247
|
pieceName: string;
|
|
1249
1248
|
pieceVersion: string;
|
|
1250
1249
|
input: {
|
|
@@ -1258,11 +1257,11 @@ export declare const flowOperations: {
|
|
|
1258
1257
|
};
|
|
1259
1258
|
};
|
|
1260
1259
|
valid: boolean;
|
|
1260
|
+
displayName: string;
|
|
1261
1261
|
} | {
|
|
1262
1262
|
skip?: boolean | undefined;
|
|
1263
1263
|
type: import("../actions/action").FlowActionType.CODE;
|
|
1264
1264
|
name: string;
|
|
1265
|
-
displayName: string;
|
|
1266
1265
|
settings: {
|
|
1267
1266
|
errorHandlingOptions?: {
|
|
1268
1267
|
continueOnFailure?: {
|
|
@@ -1282,11 +1281,12 @@ export declare const flowOperations: {
|
|
|
1282
1281
|
[x: string]: any;
|
|
1283
1282
|
};
|
|
1284
1283
|
sourceCode: {
|
|
1285
|
-
code: string;
|
|
1286
1284
|
packageJson: string;
|
|
1285
|
+
code: string;
|
|
1287
1286
|
};
|
|
1288
1287
|
};
|
|
1289
1288
|
valid: boolean;
|
|
1289
|
+
displayName: string;
|
|
1290
1290
|
};
|
|
1291
1291
|
};
|
|
1292
1292
|
} | {
|
|
@@ -1295,14 +1295,13 @@ export declare const flowOperations: {
|
|
|
1295
1295
|
nextAction?: any;
|
|
1296
1296
|
type: FlowTriggerType.EMPTY;
|
|
1297
1297
|
name: string;
|
|
1298
|
-
displayName: string;
|
|
1299
1298
|
settings: any;
|
|
1300
1299
|
valid: boolean;
|
|
1300
|
+
displayName: string;
|
|
1301
1301
|
} | {
|
|
1302
1302
|
nextAction?: any;
|
|
1303
1303
|
type: FlowTriggerType.PIECE;
|
|
1304
1304
|
name: string;
|
|
1305
|
-
displayName: string;
|
|
1306
1305
|
settings: {
|
|
1307
1306
|
triggerName?: string | undefined;
|
|
1308
1307
|
sampleData?: {
|
|
@@ -1324,6 +1323,7 @@ export declare const flowOperations: {
|
|
|
1324
1323
|
};
|
|
1325
1324
|
};
|
|
1326
1325
|
valid: boolean;
|
|
1326
|
+
displayName: string;
|
|
1327
1327
|
};
|
|
1328
1328
|
} | {
|
|
1329
1329
|
type: FlowOperationType.CHANGE_FOLDER;
|
|
@@ -1413,8 +1413,8 @@ export declare const flowOperations: {
|
|
|
1413
1413
|
request: {
|
|
1414
1414
|
ownerId?: string | null | undefined;
|
|
1415
1415
|
id: string;
|
|
1416
|
-
color: import("../note").NoteColorVariant;
|
|
1417
1416
|
content: string;
|
|
1417
|
+
color: import("../note").NoteColorVariant;
|
|
1418
1418
|
position: {
|
|
1419
1419
|
x: number;
|
|
1420
1420
|
y: number;
|
|
@@ -1433,8 +1433,8 @@ export declare const flowOperations: {
|
|
|
1433
1433
|
type: FlowOperationType.ADD_NOTE;
|
|
1434
1434
|
request: {
|
|
1435
1435
|
id: string;
|
|
1436
|
-
color: import("../note").NoteColorVariant;
|
|
1437
1436
|
content: string;
|
|
1437
|
+
color: import("../note").NoteColorVariant;
|
|
1438
1438
|
position: {
|
|
1439
1439
|
x: number;
|
|
1440
1440
|
y: number;
|
|
@@ -44,8 +44,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
44
44
|
notes?: {
|
|
45
45
|
ownerId?: string | null | undefined;
|
|
46
46
|
id: string;
|
|
47
|
-
color: import("..").NoteColorVariant;
|
|
48
47
|
content: string;
|
|
48
|
+
color: import("..").NoteColorVariant;
|
|
49
49
|
position: {
|
|
50
50
|
x: number;
|
|
51
51
|
y: number;
|
|
@@ -62,14 +62,13 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
62
62
|
nextAction?: any;
|
|
63
63
|
type: import("../triggers/trigger").FlowTriggerType.EMPTY;
|
|
64
64
|
name: string;
|
|
65
|
-
displayName: string;
|
|
66
65
|
settings: any;
|
|
67
66
|
valid: boolean;
|
|
67
|
+
displayName: string;
|
|
68
68
|
} | {
|
|
69
69
|
nextAction?: any;
|
|
70
70
|
type: import("../triggers/trigger").FlowTriggerType.PIECE;
|
|
71
71
|
name: string;
|
|
72
|
-
displayName: string;
|
|
73
72
|
settings: {
|
|
74
73
|
triggerName?: string | undefined;
|
|
75
74
|
sampleData?: {
|
|
@@ -91,6 +90,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
91
90
|
};
|
|
92
91
|
};
|
|
93
92
|
valid: boolean;
|
|
93
|
+
displayName: string;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} | {
|
|
@@ -109,7 +109,6 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
109
109
|
skip?: boolean | undefined;
|
|
110
110
|
type: import("../actions/action").FlowActionType.ROUTER;
|
|
111
111
|
name: string;
|
|
112
|
-
displayName: string;
|
|
113
112
|
settings: {
|
|
114
113
|
sampleData?: {
|
|
115
114
|
sampleDataFileId?: string | undefined;
|
|
@@ -144,11 +143,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
144
143
|
executionType: import("../actions/action").RouterExecutionType;
|
|
145
144
|
};
|
|
146
145
|
valid: boolean;
|
|
146
|
+
displayName: string;
|
|
147
147
|
} | {
|
|
148
148
|
skip?: boolean | undefined;
|
|
149
149
|
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
150
150
|
name: string;
|
|
151
|
-
displayName: string;
|
|
152
151
|
settings: {
|
|
153
152
|
sampleData?: {
|
|
154
153
|
sampleDataFileId?: string | undefined;
|
|
@@ -159,13 +158,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
159
158
|
items: string;
|
|
160
159
|
};
|
|
161
160
|
valid: boolean;
|
|
161
|
+
displayName: string;
|
|
162
162
|
} | {
|
|
163
163
|
skip?: boolean | undefined;
|
|
164
164
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
165
165
|
name: string;
|
|
166
|
-
displayName: string;
|
|
167
166
|
settings: {
|
|
168
|
-
actionName?: string | undefined;
|
|
169
167
|
errorHandlingOptions?: {
|
|
170
168
|
continueOnFailure?: {
|
|
171
169
|
value?: boolean | undefined;
|
|
@@ -180,6 +178,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
180
178
|
lastTestDate?: string | undefined;
|
|
181
179
|
} | undefined;
|
|
182
180
|
customLogoUrl?: string | undefined;
|
|
181
|
+
actionName?: string | undefined;
|
|
183
182
|
pieceName: string;
|
|
184
183
|
pieceVersion: string;
|
|
185
184
|
input: {
|
|
@@ -193,11 +192,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
193
192
|
};
|
|
194
193
|
};
|
|
195
194
|
valid: boolean;
|
|
195
|
+
displayName: string;
|
|
196
196
|
} | {
|
|
197
197
|
skip?: boolean | undefined;
|
|
198
198
|
type: import("../actions/action").FlowActionType.CODE;
|
|
199
199
|
name: string;
|
|
200
|
-
displayName: string;
|
|
201
200
|
settings: {
|
|
202
201
|
errorHandlingOptions?: {
|
|
203
202
|
continueOnFailure?: {
|
|
@@ -217,11 +216,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
217
216
|
[x: string]: any;
|
|
218
217
|
};
|
|
219
218
|
sourceCode: {
|
|
220
|
-
code: string;
|
|
221
219
|
packageJson: string;
|
|
220
|
+
code: string;
|
|
222
221
|
};
|
|
223
222
|
};
|
|
224
223
|
valid: boolean;
|
|
224
|
+
displayName: string;
|
|
225
225
|
};
|
|
226
226
|
} | {
|
|
227
227
|
type: FlowOperationType.ADD_ACTION;
|
|
@@ -233,7 +233,6 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
233
233
|
skip?: boolean | undefined;
|
|
234
234
|
type: import("../actions/action").FlowActionType.ROUTER;
|
|
235
235
|
name: string;
|
|
236
|
-
displayName: string;
|
|
237
236
|
settings: {
|
|
238
237
|
sampleData?: {
|
|
239
238
|
sampleDataFileId?: string | undefined;
|
|
@@ -268,11 +267,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
268
267
|
executionType: import("../actions/action").RouterExecutionType;
|
|
269
268
|
};
|
|
270
269
|
valid: boolean;
|
|
270
|
+
displayName: string;
|
|
271
271
|
} | {
|
|
272
272
|
skip?: boolean | undefined;
|
|
273
273
|
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
274
274
|
name: string;
|
|
275
|
-
displayName: string;
|
|
276
275
|
settings: {
|
|
277
276
|
sampleData?: {
|
|
278
277
|
sampleDataFileId?: string | undefined;
|
|
@@ -283,13 +282,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
283
282
|
items: string;
|
|
284
283
|
};
|
|
285
284
|
valid: boolean;
|
|
285
|
+
displayName: string;
|
|
286
286
|
} | {
|
|
287
287
|
skip?: boolean | undefined;
|
|
288
288
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
289
289
|
name: string;
|
|
290
|
-
displayName: string;
|
|
291
290
|
settings: {
|
|
292
|
-
actionName?: string | undefined;
|
|
293
291
|
errorHandlingOptions?: {
|
|
294
292
|
continueOnFailure?: {
|
|
295
293
|
value?: boolean | undefined;
|
|
@@ -304,6 +302,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
304
302
|
lastTestDate?: string | undefined;
|
|
305
303
|
} | undefined;
|
|
306
304
|
customLogoUrl?: string | undefined;
|
|
305
|
+
actionName?: string | undefined;
|
|
307
306
|
pieceName: string;
|
|
308
307
|
pieceVersion: string;
|
|
309
308
|
input: {
|
|
@@ -317,11 +316,11 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
317
316
|
};
|
|
318
317
|
};
|
|
319
318
|
valid: boolean;
|
|
319
|
+
displayName: string;
|
|
320
320
|
} | {
|
|
321
321
|
skip?: boolean | undefined;
|
|
322
322
|
type: import("../actions/action").FlowActionType.CODE;
|
|
323
323
|
name: string;
|
|
324
|
-
displayName: string;
|
|
325
324
|
settings: {
|
|
326
325
|
errorHandlingOptions?: {
|
|
327
326
|
continueOnFailure?: {
|
|
@@ -341,11 +340,12 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
341
340
|
[x: string]: any;
|
|
342
341
|
};
|
|
343
342
|
sourceCode: {
|
|
344
|
-
code: string;
|
|
345
343
|
packageJson: string;
|
|
344
|
+
code: string;
|
|
346
345
|
};
|
|
347
346
|
};
|
|
348
347
|
valid: boolean;
|
|
348
|
+
displayName: string;
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
351
|
} | {
|
|
@@ -354,14 +354,13 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
354
354
|
nextAction?: any;
|
|
355
355
|
type: import("../triggers/trigger").FlowTriggerType.EMPTY;
|
|
356
356
|
name: string;
|
|
357
|
-
displayName: string;
|
|
358
357
|
settings: any;
|
|
359
358
|
valid: boolean;
|
|
359
|
+
displayName: string;
|
|
360
360
|
} | {
|
|
361
361
|
nextAction?: any;
|
|
362
362
|
type: import("../triggers/trigger").FlowTriggerType.PIECE;
|
|
363
363
|
name: string;
|
|
364
|
-
displayName: string;
|
|
365
364
|
settings: {
|
|
366
365
|
triggerName?: string | undefined;
|
|
367
366
|
sampleData?: {
|
|
@@ -383,6 +382,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
383
382
|
};
|
|
384
383
|
};
|
|
385
384
|
valid: boolean;
|
|
385
|
+
displayName: string;
|
|
386
386
|
};
|
|
387
387
|
} | {
|
|
388
388
|
type: FlowOperationType.CHANGE_FOLDER;
|
|
@@ -472,8 +472,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
472
472
|
request: {
|
|
473
473
|
ownerId?: string | null | undefined;
|
|
474
474
|
id: string;
|
|
475
|
-
color: import("..").NoteColorVariant;
|
|
476
475
|
content: string;
|
|
476
|
+
color: import("..").NoteColorVariant;
|
|
477
477
|
position: {
|
|
478
478
|
x: number;
|
|
479
479
|
y: number;
|
|
@@ -492,8 +492,8 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
492
492
|
type: FlowOperationType.ADD_NOTE;
|
|
493
493
|
request: {
|
|
494
494
|
id: string;
|
|
495
|
-
color: import("..").NoteColorVariant;
|
|
496
495
|
content: string;
|
|
496
|
+
color: import("..").NoteColorVariant;
|
|
497
497
|
position: {
|
|
498
498
|
x: number;
|
|
499
499
|
y: number;
|
|
@@ -10,8 +10,8 @@ export declare const TriggerEvent: import("@sinclair/typebox").TObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
export type TriggerEvent = Static<typeof TriggerEvent> & BaseModel<TriggerEventId>;
|
|
12
12
|
export declare const TriggerEventWithPayload: import("@sinclair/typebox").TObject<{
|
|
13
|
-
id: import("@sinclair/typebox").TString;
|
|
14
13
|
projectId: import("@sinclair/typebox").TString;
|
|
14
|
+
id: import("@sinclair/typebox").TString;
|
|
15
15
|
flowId: import("@sinclair/typebox").TString;
|
|
16
16
|
sourceName: import("@sinclair/typebox").TString;
|
|
17
17
|
fileId: import("@sinclair/typebox").TString;
|
|
@@ -16,9 +16,11 @@ function getActionOrThrow(name, flowRoot) {
|
|
|
16
16
|
const step = getStepOrThrow(name, flowRoot);
|
|
17
17
|
if (!isAction(step.type)) {
|
|
18
18
|
throw new activepieces_error_1.ActivepiecesError({
|
|
19
|
-
code: activepieces_error_1.ErrorCode.
|
|
19
|
+
code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
|
|
20
20
|
params: {
|
|
21
|
-
|
|
21
|
+
entityType: 'step',
|
|
22
|
+
entityId: name,
|
|
23
|
+
message: 'Step is not an action',
|
|
22
24
|
},
|
|
23
25
|
});
|
|
24
26
|
}
|
|
@@ -28,9 +30,11 @@ function getTriggerOrThrow(name, flowRoot) {
|
|
|
28
30
|
const step = getStepOrThrow(name, flowRoot);
|
|
29
31
|
if (!isTrigger(step.type)) {
|
|
30
32
|
throw new activepieces_error_1.ActivepiecesError({
|
|
31
|
-
code: activepieces_error_1.ErrorCode.
|
|
33
|
+
code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
|
|
32
34
|
params: {
|
|
33
|
-
|
|
35
|
+
entityType: 'step',
|
|
36
|
+
entityId: name,
|
|
37
|
+
message: 'Step is not a trigger',
|
|
34
38
|
},
|
|
35
39
|
});
|
|
36
40
|
}
|
|
@@ -43,9 +47,11 @@ function getStepOrThrow(name, flowRoot) {
|
|
|
43
47
|
const step = getStep(name, flowRoot);
|
|
44
48
|
if ((0, common_1.isNil)(step)) {
|
|
45
49
|
throw new activepieces_error_1.ActivepiecesError({
|
|
46
|
-
code: activepieces_error_1.ErrorCode.
|
|
50
|
+
code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
|
|
47
51
|
params: {
|
|
48
|
-
|
|
52
|
+
entityType: 'step',
|
|
53
|
+
entityId: name,
|
|
54
|
+
message: 'Step not found',
|
|
49
55
|
},
|
|
50
56
|
});
|
|
51
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,gFAAsF;AACtF,8CAAqJ;AAErJ,iDAAkE;AAGrD,QAAA,aAAa,GAAG,wBAAwB,CAAA;AAOrD,SAAS,QAAQ,CAAC,IAAkD;IAChE,OAAO,MAAM,CAAC,OAAO,CAAC,uBAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC7E,CAAC;AAED,SAAS,SAAS,CAAC,IAAkD;IACjE,OAAO,MAAM,CAAC,OAAO,CAAC,yBAAe,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC9E,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAY,EAAE,QAAc;IAClD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC3C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,sCAAiB,CAAC;YACxB,IAAI,EAAE,8BAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"flow-structure-util.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/util/flow-structure-util.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,gFAAsF;AACtF,8CAAqJ;AAErJ,iDAAkE;AAGrD,QAAA,aAAa,GAAG,wBAAwB,CAAA;AAOrD,SAAS,QAAQ,CAAC,IAAkD;IAChE,OAAO,MAAM,CAAC,OAAO,CAAC,uBAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;AAC7E,CAAC;AAED,SAAS,SAAS,CAAC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CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;YACxD,CAAC,CAAC,EAAE,CAAA;KAAA,CACX,CAAA;IAEL,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,cAAc,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA;AACnE,CAAC;AAEY,QAAA,iBAAiB,GAAG;IAC7B,SAAS;IACT,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,cAAc;IACd,SAAS;IACT,cAAc;IACd,eAAe;IACf,gCAAgC;IAChC,gBAAgB;IAChB,oBAAoB;IACpB,YAAY;IACZ,eAAe;CAClB,CAAA"}
|
|
@@ -15,23 +15,23 @@ export declare const McpServer: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
updated: import("@sinclair/typebox").TString;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const PopulatedMcpServer: import("@sinclair/typebox").TObject<{
|
|
18
|
+
projectId: import("@sinclair/typebox").TString;
|
|
18
19
|
id: import("@sinclair/typebox").TString;
|
|
19
20
|
created: import("@sinclair/typebox").TString;
|
|
20
21
|
updated: import("@sinclair/typebox").TString;
|
|
21
|
-
projectId: import("@sinclair/typebox").TString;
|
|
22
22
|
status: import("@sinclair/typebox").TEnum<typeof McpServerStatus>;
|
|
23
23
|
token: import("@sinclair/typebox").TString;
|
|
24
24
|
flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
25
|
+
projectId: import("@sinclair/typebox").TString;
|
|
25
26
|
id: import("@sinclair/typebox").TString;
|
|
26
27
|
created: import("@sinclair/typebox").TString;
|
|
27
28
|
updated: import("@sinclair/typebox").TString;
|
|
28
|
-
|
|
29
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
29
30
|
externalId: import("@sinclair/typebox").TString;
|
|
31
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
30
32
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
31
33
|
[x: string]: unknown;
|
|
32
34
|
} | null>>;
|
|
33
|
-
projectId: import("@sinclair/typebox").TString;
|
|
34
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
35
35
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
36
36
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
37
37
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -50,11 +50,12 @@ const extractPieceFromModule = (params) => {
|
|
|
50
50
|
constructors.push((_a = e === null || e === void 0 ? void 0 : e.constructor) === null || _a === void 0 ? void 0 : _a.name);
|
|
51
51
|
}
|
|
52
52
|
throw new activepieces_error_1.ActivepiecesError({
|
|
53
|
-
code: activepieces_error_1.ErrorCode.
|
|
53
|
+
code: activepieces_error_1.ErrorCode.ENTITY_NOT_FOUND,
|
|
54
54
|
params: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
message: `Failed to extract piece from module, found constructors: ${constructors.join(', ')}`,
|
|
55
|
+
entityType: 'piece',
|
|
56
|
+
entityId: pieceName,
|
|
57
|
+
message: `Failed to extract piece from module (version: ${pieceVersion}), found constructors: ${constructors.join(', ')}`,
|
|
58
|
+
extra: { pieceName, pieceVersion },
|
|
58
59
|
},
|
|
59
60
|
});
|
|
60
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/lib/automation/pieces/utils.ts"],"names":[],"mappings":";;;;AAAA,2EAAgD;AAChD,2EAAgD;AAChD,oFAAwD;AACxD,8CAA4D;AAC5D,6EAAmF;AAEnF;;;;GAIG;AACI,MAAM,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