@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
|
@@ -15,16 +15,16 @@ export declare enum TableOperationType {
|
|
|
15
15
|
DELETE_TABLE = "DELETE_TABLE"
|
|
16
16
|
}
|
|
17
17
|
export declare const FlowState: 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
|
-
|
|
22
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
22
23
|
externalId: import("@sinclair/typebox").TString;
|
|
24
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
23
25
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
24
26
|
[x: string]: unknown;
|
|
25
27
|
} | null>>;
|
|
26
|
-
projectId: import("@sinclair/typebox").TString;
|
|
27
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
28
28
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
29
29
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
30
30
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -138,16 +138,16 @@ export declare const TableState: import("@sinclair/typebox").TObject<{
|
|
|
138
138
|
export type TableState = Static<typeof TableState>;
|
|
139
139
|
export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
140
140
|
flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
141
|
+
projectId: import("@sinclair/typebox").TString;
|
|
141
142
|
id: import("@sinclair/typebox").TString;
|
|
142
143
|
created: import("@sinclair/typebox").TString;
|
|
143
144
|
updated: import("@sinclair/typebox").TString;
|
|
144
|
-
|
|
145
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
145
146
|
externalId: import("@sinclair/typebox").TString;
|
|
147
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
146
148
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
147
149
|
[x: string]: unknown;
|
|
148
150
|
} | null>>;
|
|
149
|
-
projectId: import("@sinclair/typebox").TString;
|
|
150
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
151
151
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
152
152
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
153
153
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -250,16 +250,16 @@ export type ProjectState = Static<typeof ProjectState>;
|
|
|
250
250
|
export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
251
251
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
|
|
252
252
|
newFlowState: import("@sinclair/typebox").TObject<{
|
|
253
|
+
projectId: import("@sinclair/typebox").TString;
|
|
253
254
|
id: import("@sinclair/typebox").TString;
|
|
254
255
|
created: import("@sinclair/typebox").TString;
|
|
255
256
|
updated: import("@sinclair/typebox").TString;
|
|
256
|
-
|
|
257
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
257
258
|
externalId: import("@sinclair/typebox").TString;
|
|
259
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
258
260
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
259
261
|
[x: string]: unknown;
|
|
260
262
|
} | null>>;
|
|
261
|
-
projectId: import("@sinclair/typebox").TString;
|
|
262
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
263
263
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
264
264
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
265
265
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -336,16 +336,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
336
336
|
}>>;
|
|
337
337
|
}>;
|
|
338
338
|
flowState: import("@sinclair/typebox").TObject<{
|
|
339
|
+
projectId: import("@sinclair/typebox").TString;
|
|
339
340
|
id: import("@sinclair/typebox").TString;
|
|
340
341
|
created: import("@sinclair/typebox").TString;
|
|
341
342
|
updated: import("@sinclair/typebox").TString;
|
|
342
|
-
|
|
343
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
343
344
|
externalId: import("@sinclair/typebox").TString;
|
|
345
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
344
346
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
345
347
|
[x: string]: unknown;
|
|
346
348
|
} | null>>;
|
|
347
|
-
projectId: import("@sinclair/typebox").TString;
|
|
348
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
349
349
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
350
350
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
351
351
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -424,16 +424,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
424
424
|
}>, import("@sinclair/typebox").TObject<{
|
|
425
425
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
|
|
426
426
|
flowState: import("@sinclair/typebox").TObject<{
|
|
427
|
+
projectId: import("@sinclair/typebox").TString;
|
|
427
428
|
id: import("@sinclair/typebox").TString;
|
|
428
429
|
created: import("@sinclair/typebox").TString;
|
|
429
430
|
updated: import("@sinclair/typebox").TString;
|
|
430
|
-
|
|
431
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
431
432
|
externalId: import("@sinclair/typebox").TString;
|
|
433
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
432
434
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
433
435
|
[x: string]: unknown;
|
|
434
436
|
} | null>>;
|
|
435
|
-
projectId: import("@sinclair/typebox").TString;
|
|
436
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
437
437
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
438
438
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
439
439
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -512,16 +512,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
512
512
|
}>, import("@sinclair/typebox").TObject<{
|
|
513
513
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
|
|
514
514
|
flowState: import("@sinclair/typebox").TObject<{
|
|
515
|
+
projectId: import("@sinclair/typebox").TString;
|
|
515
516
|
id: import("@sinclair/typebox").TString;
|
|
516
517
|
created: import("@sinclair/typebox").TString;
|
|
517
518
|
updated: import("@sinclair/typebox").TString;
|
|
518
|
-
|
|
519
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
519
520
|
externalId: import("@sinclair/typebox").TString;
|
|
521
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
520
522
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
521
523
|
[x: string]: unknown;
|
|
522
524
|
} | null>>;
|
|
523
|
-
projectId: import("@sinclair/typebox").TString;
|
|
524
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
525
525
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
526
526
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
527
527
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -700,16 +700,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
700
700
|
flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
701
701
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.UPDATE_FLOW>;
|
|
702
702
|
newFlowState: import("@sinclair/typebox").TObject<{
|
|
703
|
+
projectId: import("@sinclair/typebox").TString;
|
|
703
704
|
id: import("@sinclair/typebox").TString;
|
|
704
705
|
created: import("@sinclair/typebox").TString;
|
|
705
706
|
updated: import("@sinclair/typebox").TString;
|
|
706
|
-
|
|
707
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
707
708
|
externalId: import("@sinclair/typebox").TString;
|
|
709
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
708
710
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
709
711
|
[x: string]: unknown;
|
|
710
712
|
} | null>>;
|
|
711
|
-
projectId: import("@sinclair/typebox").TString;
|
|
712
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
713
713
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
714
714
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
715
715
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -786,16 +786,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
786
786
|
}>>;
|
|
787
787
|
}>;
|
|
788
788
|
flowState: import("@sinclair/typebox").TObject<{
|
|
789
|
+
projectId: import("@sinclair/typebox").TString;
|
|
789
790
|
id: import("@sinclair/typebox").TString;
|
|
790
791
|
created: import("@sinclair/typebox").TString;
|
|
791
792
|
updated: import("@sinclair/typebox").TString;
|
|
792
|
-
|
|
793
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
793
794
|
externalId: import("@sinclair/typebox").TString;
|
|
795
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
794
796
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
795
797
|
[x: string]: unknown;
|
|
796
798
|
} | null>>;
|
|
797
|
-
projectId: import("@sinclair/typebox").TString;
|
|
798
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
799
799
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
800
800
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
801
801
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -874,16 +874,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
874
874
|
}>, import("@sinclair/typebox").TObject<{
|
|
875
875
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.CREATE_FLOW>;
|
|
876
876
|
flowState: import("@sinclair/typebox").TObject<{
|
|
877
|
+
projectId: import("@sinclair/typebox").TString;
|
|
877
878
|
id: import("@sinclair/typebox").TString;
|
|
878
879
|
created: import("@sinclair/typebox").TString;
|
|
879
880
|
updated: import("@sinclair/typebox").TString;
|
|
880
|
-
|
|
881
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
881
882
|
externalId: import("@sinclair/typebox").TString;
|
|
883
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
882
884
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
883
885
|
[x: string]: unknown;
|
|
884
886
|
} | null>>;
|
|
885
|
-
projectId: import("@sinclair/typebox").TString;
|
|
886
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
887
887
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
888
888
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
889
889
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -962,16 +962,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
962
962
|
}>, import("@sinclair/typebox").TObject<{
|
|
963
963
|
type: import("@sinclair/typebox").TLiteral<FlowProjectOperationType.DELETE_FLOW>;
|
|
964
964
|
flowState: import("@sinclair/typebox").TObject<{
|
|
965
|
+
projectId: import("@sinclair/typebox").TString;
|
|
965
966
|
id: import("@sinclair/typebox").TString;
|
|
966
967
|
created: import("@sinclair/typebox").TString;
|
|
967
968
|
updated: import("@sinclair/typebox").TString;
|
|
968
|
-
|
|
969
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
969
970
|
externalId: import("@sinclair/typebox").TString;
|
|
971
|
+
ownerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
970
972
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
971
973
|
[x: string]: unknown;
|
|
972
974
|
} | null>>;
|
|
973
|
-
projectId: import("@sinclair/typebox").TString;
|
|
974
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
975
975
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
976
976
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
977
977
|
operationStatus: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowOperationStatus>;
|
|
@@ -15,6 +15,8 @@ export declare const CreateTableRequest: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
externalId: import("@sinclair/typebox").TString;
|
|
16
16
|
}>>>;
|
|
17
17
|
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
folderName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
20
|
}>;
|
|
19
21
|
export type CreateTableRequest = Static<typeof CreateTableRequest>;
|
|
20
22
|
export declare const ExportTableResponse: import("@sinclair/typebox").TObject<{
|
|
@@ -36,6 +38,7 @@ export declare const UpdateTableRequest: import("@sinclair/typebox").TObject<{
|
|
|
36
38
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37
39
|
trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof TableAutomationTrigger>>;
|
|
38
40
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof TableAutomationStatus>>;
|
|
41
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
39
42
|
}>;
|
|
40
43
|
export type UpdateTableRequest = Static<typeof UpdateTableRequest>;
|
|
41
44
|
export declare const ListTablesRequest: import("@sinclair/typebox").TObject<{
|
|
@@ -44,5 +47,11 @@ export declare const ListTablesRequest: import("@sinclair/typebox").TObject<{
|
|
|
44
47
|
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
48
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
46
49
|
externalIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
50
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
51
|
}>;
|
|
48
52
|
export type ListTablesRequest = Static<typeof ListTablesRequest>;
|
|
53
|
+
export declare const CountTablesRequest: import("@sinclair/typebox").TObject<{
|
|
54
|
+
projectId: import("@sinclair/typebox").TString;
|
|
55
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
56
|
+
}>;
|
|
57
|
+
export type CountTablesRequest = Static<typeof CountTablesRequest>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListTablesRequest = exports.UpdateTableRequest = exports.CreateTableWebhookRequest = exports.ExportTableResponse = exports.CreateTableRequest = void 0;
|
|
3
|
+
exports.CountTablesRequest = exports.ListTablesRequest = exports.UpdateTableRequest = exports.CreateTableWebhookRequest = exports.ExportTableResponse = exports.CreateTableRequest = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
+
const common_1 = require("../../../core/common");
|
|
5
6
|
const project_state_1 = require("../../project-release/project-state");
|
|
6
7
|
const table_1 = require("../table");
|
|
7
8
|
const table_webhook_1 = require("../table-webhook");
|
|
@@ -10,6 +11,8 @@ exports.CreateTableRequest = typebox_1.Type.Object({
|
|
|
10
11
|
name: typebox_1.Type.String(),
|
|
11
12
|
fields: typebox_1.Type.Optional(typebox_1.Type.Array(project_state_1.FieldState)),
|
|
12
13
|
externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
14
|
+
folderId: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
15
|
+
folderName: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
13
16
|
});
|
|
14
17
|
exports.ExportTableResponse = typebox_1.Type.Object({
|
|
15
18
|
fields: typebox_1.Type.Array(typebox_1.Type.Object({ id: typebox_1.Type.String(), name: typebox_1.Type.String() })),
|
|
@@ -25,6 +28,7 @@ exports.UpdateTableRequest = typebox_1.Type.Object({
|
|
|
25
28
|
name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
26
29
|
trigger: typebox_1.Type.Optional(typebox_1.Type.Enum(table_1.TableAutomationTrigger)),
|
|
27
30
|
status: typebox_1.Type.Optional(typebox_1.Type.Enum(table_1.TableAutomationStatus)),
|
|
31
|
+
folderId: (0, common_1.Nullable)(typebox_1.Type.String()),
|
|
28
32
|
});
|
|
29
33
|
exports.ListTablesRequest = typebox_1.Type.Object({
|
|
30
34
|
projectId: typebox_1.Type.String(),
|
|
@@ -32,5 +36,10 @@ exports.ListTablesRequest = typebox_1.Type.Object({
|
|
|
32
36
|
cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
33
37
|
name: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
34
38
|
externalIds: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
39
|
+
folderId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
40
|
+
});
|
|
41
|
+
exports.CountTablesRequest = typebox_1.Type.Object({
|
|
42
|
+
projectId: typebox_1.Type.String(),
|
|
43
|
+
folderId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
35
44
|
});
|
|
36
45
|
//# sourceMappingURL=tables.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,uEAAgE;AAChE,oCAAwE;AACxE,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,0BAAU,CAAC,CAAC;IAC7C,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,iDAA+C;AAC/C,uEAAgE;AAChE,oCAAwE;AACxE,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,0BAAU,CAAC,CAAC;IAC7C,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxC,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC7C,CAAC,CAAA;AAIW,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3E,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CAEtB,CAAC,CAAA;AAIW,QAAA,yBAAyB,GAAG,cAAI,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,IAAI,CAAC,qCAAqB,CAAC,CAAC;IACpD,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAIW,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,8BAAsB,CAAC,CAAC;IACzD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,6BAAqB,CAAC,CAAC;IACvD,QAAQ,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAA;AAKW,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,IAAI,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACpC,WAAW,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACrD,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAA;AAIW,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAA"}
|
|
@@ -8,10 +8,10 @@ export declare const Record: import("@sinclair/typebox").TObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export type Record = Static<typeof Record>;
|
|
10
10
|
export declare const PopulatedRecord: import("@sinclair/typebox").TObject<{
|
|
11
|
+
projectId: import("@sinclair/typebox").TString;
|
|
11
12
|
id: import("@sinclair/typebox").TString;
|
|
12
13
|
created: import("@sinclair/typebox").TString;
|
|
13
14
|
updated: import("@sinclair/typebox").TString;
|
|
14
|
-
projectId: import("@sinclair/typebox").TString;
|
|
15
15
|
tableId: import("@sinclair/typebox").TString;
|
|
16
16
|
cells: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
17
17
|
created: import("@sinclair/typebox").TString;
|
|
@@ -9,6 +9,7 @@ export declare enum TableAutomationStatus {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const Table: import("@sinclair/typebox").TObject<{
|
|
11
11
|
name: import("@sinclair/typebox").TString;
|
|
12
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
12
13
|
projectId: import("@sinclair/typebox").TString;
|
|
13
14
|
externalId: import("@sinclair/typebox").TString;
|
|
14
15
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
|
|
@@ -19,13 +20,14 @@ export declare const Table: import("@sinclair/typebox").TObject<{
|
|
|
19
20
|
}>;
|
|
20
21
|
export type Table = Static<typeof Table>;
|
|
21
22
|
export declare const PopulatedTable: import("@sinclair/typebox").TObject<{
|
|
23
|
+
projectId: import("@sinclair/typebox").TString;
|
|
22
24
|
id: import("@sinclair/typebox").TString;
|
|
23
25
|
created: import("@sinclair/typebox").TString;
|
|
24
26
|
updated: import("@sinclair/typebox").TString;
|
|
25
|
-
name: import("@sinclair/typebox").TString;
|
|
26
|
-
externalId: import("@sinclair/typebox").TString;
|
|
27
|
-
projectId: import("@sinclair/typebox").TString;
|
|
28
27
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
|
|
28
|
+
externalId: import("@sinclair/typebox").TString;
|
|
29
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
30
|
+
name: import("@sinclair/typebox").TString;
|
|
29
31
|
trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
|
|
30
32
|
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
31
33
|
name: import("@sinclair/typebox").TString;
|
|
@@ -14,7 +14,7 @@ var TableAutomationStatus;
|
|
|
14
14
|
TableAutomationStatus["ENABLED"] = "ENABLED";
|
|
15
15
|
TableAutomationStatus["DISABLED"] = "DISABLED";
|
|
16
16
|
})(TableAutomationStatus || (exports.TableAutomationStatus = TableAutomationStatus = {}));
|
|
17
|
-
exports.Table = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), projectId: typebox_1.Type.String(), externalId: typebox_1.Type.String(), status: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationStatus)), trigger: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationTrigger)) }));
|
|
17
|
+
exports.Table = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), folderId: (0, common_1.Nullable)(typebox_1.Type.String()), projectId: typebox_1.Type.String(), externalId: typebox_1.Type.String(), status: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationStatus)), trigger: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationTrigger)) }));
|
|
18
18
|
exports.PopulatedTable = typebox_1.Type.Composite([
|
|
19
19
|
exports.Table,
|
|
20
20
|
typebox_1.Type.Object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../src/lib/automation/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../src/lib/automation/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,8CAA2E;AAC3E,mCAA+B;AAE/B,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,yDAA+B,CAAA;IAC/B,+DAAqC,CAAA;AACzC,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,iCACzB,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,QAAQ,EAAE,IAAA,iBAAQ,EAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACjC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,MAAM,EAAE,IAAA,qBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EACtD,OAAO,EAAE,IAAA,qBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAC1D,CAAA;AAKW,QAAA,cAAc,GAAG,cAAI,CAAC,SAAS,CAAC;IACzC,aAAK;IACL,cAAI,CAAC,MAAM,CAAC;QACR,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,aAAK,CAAC;KAC5B,CAAC;CACL,CAAC,CAAA"}
|
|
@@ -421,9 +421,8 @@ export declare const UserInteractionJobData: import("@sinclair/typebox").TUnion<
|
|
|
421
421
|
}>]>;
|
|
422
422
|
export type UserInteractionJobData = Static<typeof UserInteractionJobData>;
|
|
423
423
|
export declare const UserInteractionJobDataWithoutWatchingInformation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
424
|
-
platformId: import("@sinclair/typebox").TString;
|
|
425
424
|
projectId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
426
|
-
|
|
425
|
+
platformId: import("@sinclair/typebox").TString;
|
|
427
426
|
piece: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
428
427
|
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.ARCHIVE>;
|
|
429
428
|
pieceType: import("@sinclair/typebox").TEnum<typeof import("../pieces/piece").PieceType>;
|
|
@@ -443,13 +442,14 @@ export declare const UserInteractionJobDataWithoutWatchingInformation: import("@
|
|
|
443
442
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
444
443
|
platformId: import("@sinclair/typebox").TString;
|
|
445
444
|
}>]>;
|
|
445
|
+
jobType: import("@sinclair/typebox").TLiteral<WorkerJobType.EXECUTE_VALIDATION>;
|
|
446
446
|
connectionValue: import("@sinclair/typebox").TUnknown;
|
|
447
447
|
}>, import("@sinclair/typebox").TObject<{
|
|
448
|
-
platformId: import("@sinclair/typebox").TString;
|
|
449
448
|
projectId: import("@sinclair/typebox").TString;
|
|
450
|
-
test: import("@sinclair/typebox").TBoolean;
|
|
451
449
|
flowId: import("@sinclair/typebox").TString;
|
|
452
450
|
flowVersionId: import("@sinclair/typebox").TString;
|
|
451
|
+
platformId: import("@sinclair/typebox").TString;
|
|
452
|
+
test: import("@sinclair/typebox").TBoolean;
|
|
453
453
|
jobType: import("@sinclair/typebox").TLiteral<WorkerJobType.EXECUTE_TRIGGER_HOOK>;
|
|
454
454
|
hookType: import("@sinclair/typebox").TEnum<typeof TriggerHookType>;
|
|
455
455
|
triggerPayload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -459,12 +459,31 @@ export declare const UserInteractionJobDataWithoutWatchingInformation: import("@
|
|
|
459
459
|
queryParams: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
460
460
|
}>>;
|
|
461
461
|
}>, import("@sinclair/typebox").TObject<{
|
|
462
|
-
platformId: import("@sinclair/typebox").TString;
|
|
463
462
|
projectId: import("@sinclair/typebox").TString;
|
|
464
|
-
|
|
463
|
+
platformId: import("@sinclair/typebox").TString;
|
|
465
464
|
actionOrTriggerName: import("@sinclair/typebox").TString;
|
|
466
465
|
propertyName: import("@sinclair/typebox").TString;
|
|
466
|
+
input: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
467
467
|
searchValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
468
|
+
piece: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
469
|
+
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.ARCHIVE>;
|
|
470
|
+
pieceType: import("@sinclair/typebox").TEnum<typeof import("../pieces/piece").PieceType>;
|
|
471
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
472
|
+
pieceVersion: import("@sinclair/typebox").TString;
|
|
473
|
+
archiveId: import("@sinclair/typebox").TString;
|
|
474
|
+
platformId: import("@sinclair/typebox").TString;
|
|
475
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
476
|
+
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.REGISTRY>;
|
|
477
|
+
pieceType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PieceType.OFFICIAL>;
|
|
478
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
479
|
+
pieceVersion: import("@sinclair/typebox").TString;
|
|
480
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
481
|
+
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.REGISTRY>;
|
|
482
|
+
pieceType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PieceType.CUSTOM>;
|
|
483
|
+
pieceName: import("@sinclair/typebox").TString;
|
|
484
|
+
pieceVersion: import("@sinclair/typebox").TString;
|
|
485
|
+
platformId: import("@sinclair/typebox").TString;
|
|
486
|
+
}>]>;
|
|
468
487
|
sampleData: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
469
488
|
flowVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
470
489
|
flowId: import("@sinclair/typebox").TString;
|
|
@@ -529,29 +548,9 @@ export declare const UserInteractionJobDataWithoutWatchingInformation: import("@
|
|
|
529
548
|
updated: import("@sinclair/typebox").TString;
|
|
530
549
|
}>>;
|
|
531
550
|
jobType: import("@sinclair/typebox").TLiteral<WorkerJobType.EXECUTE_PROPERTY>;
|
|
532
|
-
piece: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
533
|
-
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.ARCHIVE>;
|
|
534
|
-
pieceType: import("@sinclair/typebox").TEnum<typeof import("../pieces/piece").PieceType>;
|
|
535
|
-
pieceName: import("@sinclair/typebox").TString;
|
|
536
|
-
pieceVersion: import("@sinclair/typebox").TString;
|
|
537
|
-
archiveId: import("@sinclair/typebox").TString;
|
|
538
|
-
platformId: import("@sinclair/typebox").TString;
|
|
539
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
540
|
-
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.REGISTRY>;
|
|
541
|
-
pieceType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PieceType.OFFICIAL>;
|
|
542
|
-
pieceName: import("@sinclair/typebox").TString;
|
|
543
|
-
pieceVersion: import("@sinclair/typebox").TString;
|
|
544
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
545
|
-
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.REGISTRY>;
|
|
546
|
-
pieceType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PieceType.CUSTOM>;
|
|
547
|
-
pieceName: import("@sinclair/typebox").TString;
|
|
548
|
-
pieceVersion: import("@sinclair/typebox").TString;
|
|
549
|
-
platformId: import("@sinclair/typebox").TString;
|
|
550
|
-
}>]>;
|
|
551
551
|
}>, import("@sinclair/typebox").TObject<{
|
|
552
|
-
platformId: import("@sinclair/typebox").TString;
|
|
553
552
|
projectId: import("@sinclair/typebox").TUndefined;
|
|
554
|
-
|
|
553
|
+
platformId: import("@sinclair/typebox").TString;
|
|
555
554
|
piece: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
556
555
|
packageType: import("@sinclair/typebox").TLiteral<import("../pieces/piece").PackageType.ARCHIVE>;
|
|
557
556
|
pieceType: import("@sinclair/typebox").TEnum<typeof import("../pieces/piece").PieceType>;
|
|
@@ -571,6 +570,7 @@ export declare const UserInteractionJobDataWithoutWatchingInformation: import("@
|
|
|
571
570
|
pieceVersion: import("@sinclair/typebox").TString;
|
|
572
571
|
platformId: import("@sinclair/typebox").TString;
|
|
573
572
|
}>]>;
|
|
573
|
+
jobType: import("@sinclair/typebox").TLiteral<WorkerJobType.EXECUTE_EXTRACT_PIECE_INFORMATION>;
|
|
574
574
|
}>]>;
|
|
575
575
|
export type UserInteractionJobDataWithoutWatchingInformation = Static<typeof UserInteractionJobDataWithoutWatchingInformation>;
|
|
576
576
|
export declare const EventDestinationJobData: import("@sinclair/typebox").TObject<{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Static } from '@sinclair/typebox';
|
|
2
2
|
export declare const UserWithoutPassword: import("@sinclair/typebox").TObject<{
|
|
3
|
-
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
4
3
|
id: import("@sinclair/typebox").TString;
|
|
5
|
-
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
6
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../../user/user").UserStatus>;
|
|
7
4
|
platformRole: import("@sinclair/typebox").TEnum<typeof import("../../user/user").PlatformRole>;
|
|
5
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../../user/user").UserStatus>;
|
|
6
|
+
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
7
|
+
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
8
8
|
}>;
|
|
9
9
|
export type UserWithoutPassword = Static<typeof UserWithoutPassword>;
|
|
10
10
|
export declare const AuthenticationResponse: import("@sinclair/typebox").TObject<{
|
|
11
11
|
id: import("@sinclair/typebox").TString;
|
|
12
|
-
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
13
|
-
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
14
12
|
status: import("@sinclair/typebox").TEnum<typeof import("../../user/user").UserStatus>;
|
|
13
|
+
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
14
|
+
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
15
15
|
platformRole: import("@sinclair/typebox").TEnum<typeof import("../../user/user").PlatformRole>;
|
|
16
16
|
email: import("@sinclair/typebox").TString;
|
|
17
17
|
firstName: import("@sinclair/typebox").TString;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { FlowRunId } from '../../automation/flow-run/flow-run';
|
|
2
1
|
import type { FlowId } from '../../automation/flows/flow';
|
|
3
2
|
import type { FlowVersionId } from '../../automation/flows/flow-version';
|
|
4
3
|
import type { PlatformUsageMetric } from '../../management/platform';
|
|
5
4
|
import type { ProjectId } from '../../management/project';
|
|
6
5
|
import type { ProjectRole } from '../../management/project-role/project-role';
|
|
7
|
-
import type { FileId } from '../file';
|
|
8
6
|
import type { UserId } from '../user';
|
|
9
7
|
import type { ApId } from './id-generator';
|
|
10
8
|
import type { Permission } from './security';
|
|
@@ -13,7 +11,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
13
11
|
constructor(error: ApErrorParams, message?: string);
|
|
14
12
|
toString(): string;
|
|
15
13
|
}
|
|
16
|
-
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams |
|
|
14
|
+
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExistingUserErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowOperationInProgressErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerUpdateStatusErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | AIProviderModelNotSupportedParams | AIProviderNotSupportedParams | AIRequestNotSupportedParams | AICreditLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | ProjectExternalIdAlreadyExistsParams | SandboxMemoryIssueParams | SandboxExecutionTimeoutParams | SandboxInternalErrorParams | InvalidCustomDomainErrorParams | McpPieceRequiresConnectionParams | McpPieceConnectionMismatchParams | ErrorUpdatingSubscriptionParams | TriggerExecutionFailedParams | SubflowFailedParams | MachineNotAvailableParams | MachineNotConnectedParams | DoesNotMeetBusinessRequirementsParams | PieceSyncNotSupportedErrorParams | SecretManagerConnectionFailedParams | SecretManagerGetSecretFailedParams | SecretManagerKeyNotSecretParams | InvalidAIProviderCredentialsParams;
|
|
17
15
|
export type TriggerExecutionFailedParams = BaseErrorParams<ErrorCode.TRIGGER_EXECUTION_FAILED, {
|
|
18
16
|
flowId: FlowId;
|
|
19
17
|
message?: string;
|
|
@@ -56,9 +54,6 @@ export type SessionExpiredParams = BaseErrorParams<ErrorCode.SESSION_EXPIRED, {
|
|
|
56
54
|
message?: string;
|
|
57
55
|
}>;
|
|
58
56
|
export type NoChatResponseParams = BaseErrorParams<ErrorCode.NO_CHAT_RESPONSE, Record<string, never>>;
|
|
59
|
-
export type FileNotFoundErrorParams = BaseErrorParams<ErrorCode.FILE_NOT_FOUND, {
|
|
60
|
-
id: FileId;
|
|
61
|
-
}>;
|
|
62
57
|
export type EmailAuthIsDisabledParams = BaseErrorParams<ErrorCode.EMAIL_AUTH_DISABLED, Record<string, never>>;
|
|
63
58
|
export type AuthorizationErrorParams = BaseErrorParams<ErrorCode.AUTHORIZATION, Record<string, string> & {
|
|
64
59
|
message?: string;
|
|
@@ -76,12 +71,6 @@ export type PermissionDeniedErrorParams = BaseErrorParams<ErrorCode.PERMISSION_D
|
|
|
76
71
|
export type SystemInvalidErrorParams = BaseErrorParams<ErrorCode.SYSTEM_PROP_INVALID, {
|
|
77
72
|
prop: string;
|
|
78
73
|
}>;
|
|
79
|
-
export type FlowNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_NOT_FOUND, {
|
|
80
|
-
id: FlowId;
|
|
81
|
-
}>;
|
|
82
|
-
export type FlowRunNotFoundErrorParams = BaseErrorParams<ErrorCode.FLOW_RUN_NOT_FOUND, {
|
|
83
|
-
id: FlowRunId;
|
|
84
|
-
}>;
|
|
85
74
|
export type InvalidCredentialsErrorParams = BaseErrorParams<ErrorCode.INVALID_CREDENTIALS, null>;
|
|
86
75
|
export type DomainIsNotAllowedErrorParams = BaseErrorParams<ErrorCode.DOMAIN_NOT_ALLOWED, {
|
|
87
76
|
domain: string;
|
|
@@ -96,33 +85,12 @@ export type ExistingUserErrorParams = BaseErrorParams<ErrorCode.EXISTING_USER, {
|
|
|
96
85
|
email: string;
|
|
97
86
|
platformId: string | null;
|
|
98
87
|
}>;
|
|
99
|
-
export type StepNotFoundErrorParams = BaseErrorParams<ErrorCode.STEP_NOT_FOUND, {
|
|
100
|
-
pieceName?: string;
|
|
101
|
-
pieceVersion?: string;
|
|
102
|
-
stepName: string;
|
|
103
|
-
}>;
|
|
104
|
-
export type PieceNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_NOT_FOUND, {
|
|
105
|
-
pieceName: string;
|
|
106
|
-
pieceVersion: string | undefined;
|
|
107
|
-
message: string;
|
|
108
|
-
}>;
|
|
109
|
-
export type PieceTriggerNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_TRIGGER_NOT_FOUND, {
|
|
110
|
-
pieceName: string;
|
|
111
|
-
pieceVersion: string;
|
|
112
|
-
triggerName: string | undefined;
|
|
113
|
-
}>;
|
|
114
88
|
export type TriggerFailedErrorParams = BaseErrorParams<ErrorCode.TRIGGER_FAILED, {
|
|
115
89
|
pieceName: string;
|
|
116
90
|
pieceVersion: string;
|
|
117
91
|
triggerName: string;
|
|
118
92
|
error: string | undefined;
|
|
119
93
|
}>;
|
|
120
|
-
export type ConfigNotFoundErrorParams = BaseErrorParams<ErrorCode.CONFIG_NOT_FOUND, {
|
|
121
|
-
pieceName: string;
|
|
122
|
-
pieceVersion: string;
|
|
123
|
-
stepName: string;
|
|
124
|
-
configName: string;
|
|
125
|
-
}>;
|
|
126
94
|
export type JobRemovalFailureErrorParams = BaseErrorParams<ErrorCode.JOB_REMOVAL_FAILURE, {
|
|
127
95
|
flowVersionId: ApId;
|
|
128
96
|
}>;
|
|
@@ -136,10 +104,6 @@ export type FlowOperationErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_
|
|
|
136
104
|
export type FlowOperationInProgressErrorParams = BaseErrorParams<ErrorCode.FLOW_OPERATION_IN_PROGRESS, {
|
|
137
105
|
message: string;
|
|
138
106
|
}>;
|
|
139
|
-
export type FlowFormNotFoundError = BaseErrorParams<ErrorCode.FLOW_FORM_NOT_FOUND, {
|
|
140
|
-
flowId: FlowVersionId;
|
|
141
|
-
message: string;
|
|
142
|
-
}>;
|
|
143
107
|
export type FlowIsLockedErrorParams = BaseErrorParams<ErrorCode.FLOW_IN_USE, {
|
|
144
108
|
flowVersionId: FlowVersionId;
|
|
145
109
|
message: string;
|
|
@@ -154,6 +118,7 @@ export type EntityNotFoundErrorParams = BaseErrorParams<ErrorCode.ENTITY_NOT_FOU
|
|
|
154
118
|
message?: string;
|
|
155
119
|
entityType?: string;
|
|
156
120
|
entityId?: string;
|
|
121
|
+
extra?: Record<string, unknown>;
|
|
157
122
|
}>;
|
|
158
123
|
export type InvalidCustomDomainErrorParams = BaseErrorParams<ErrorCode.INVALID_CUSTOM_DOMAIN, {
|
|
159
124
|
message: string;
|
|
@@ -187,9 +152,6 @@ export type QuotaExceededParams = BaseErrorParams<ErrorCode.QUOTA_EXCEEDED, {
|
|
|
187
152
|
export type ErrorUpdatingSubscriptionParams = BaseErrorParams<ErrorCode.ERROR_UPDATING_SUBSCRIPTION, {
|
|
188
153
|
message: string;
|
|
189
154
|
}>;
|
|
190
|
-
export type ProviderProxyConfigNotFoundParams = BaseErrorParams<ErrorCode.PROVIDER_PROXY_CONFIG_NOT_FOUND_FOR_PROVIDER, {
|
|
191
|
-
provider: string;
|
|
192
|
-
}>;
|
|
193
155
|
export type AIProviderModelNotSupportedParams = BaseErrorParams<ErrorCode.AI_MODEL_NOT_SUPPORTED, {
|
|
194
156
|
provider: string;
|
|
195
157
|
model: string;
|
|
@@ -277,11 +239,9 @@ export declare enum ErrorCode {
|
|
|
277
239
|
ERROR_UPDATING_SUBSCRIPTION = "ERROR_UPDATING_SUBSCRIPTION",
|
|
278
240
|
AUTHENTICATION = "AUTHENTICATION",
|
|
279
241
|
AUTHORIZATION = "AUTHORIZATION",
|
|
280
|
-
PROVIDER_PROXY_CONFIG_NOT_FOUND_FOR_PROVIDER = "PROVIDER_PROXY_CONFIG_NOT_FOUND_FOR_PROVIDER",
|
|
281
242
|
AI_MODEL_NOT_SUPPORTED = "AI_MODEL_NOT_SUPPORTED",
|
|
282
243
|
AI_PROVIDER_NOT_SUPPORTED = "AI_PROVIDER_NOT_SUPPORTED",
|
|
283
244
|
AI_REQUEST_NOT_SUPPORTED = "AI_REQUEST_NOT_SUPPORTED",
|
|
284
|
-
CONFIG_NOT_FOUND = "CONFIG_NOT_FOUND",
|
|
285
245
|
DOMAIN_NOT_ALLOWED = "DOMAIN_NOT_ALLOWED",
|
|
286
246
|
EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED",
|
|
287
247
|
ENGINE_OPERATION_FAILURE = "ENGINE_OPERATION_FAILURE",
|
|
@@ -294,14 +254,9 @@ export declare enum ErrorCode {
|
|
|
294
254
|
EXISTING_USER = "EXISTING_USER",
|
|
295
255
|
EXISTING_ALERT_CHANNEL = "EXISTING_ALERT_CHANNEL",
|
|
296
256
|
PROJECT_EXTERNAL_ID_ALREADY_EXISTS = "PROJECT_EXTERNAL_ID_ALREADY_EXISTS",
|
|
297
|
-
FLOW_FORM_NOT_FOUND = "FLOW_FORM_NOT_FOUND",
|
|
298
|
-
FILE_NOT_FOUND = "FILE_NOT_FOUND",
|
|
299
|
-
FLOW_INSTANCE_NOT_FOUND = "INSTANCE_NOT_FOUND",
|
|
300
|
-
FLOW_NOT_FOUND = "FLOW_NOT_FOUND",
|
|
301
257
|
FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID",
|
|
302
258
|
FLOW_OPERATION_IN_PROGRESS = "FLOW_OPERATION_IN_PROGRESS",
|
|
303
259
|
FLOW_IN_USE = "FLOW_IN_USE",
|
|
304
|
-
FLOW_RUN_NOT_FOUND = "FLOW_RUN_NOT_FOUND",
|
|
305
260
|
INVALID_API_KEY = "INVALID_API_KEY",
|
|
306
261
|
INVALID_APP_CONNECTION = "INVALID_APP_CONNECTION",
|
|
307
262
|
INVALID_BEARER_TOKEN = "INVALID_BEARER_TOKEN",
|
|
@@ -317,13 +272,10 @@ export declare enum ErrorCode {
|
|
|
317
272
|
OPEN_AI_FAILED = "OPEN_AI_FAILED",
|
|
318
273
|
PAUSE_METADATA_MISSING = "PAUSE_METADATA_MISSING",
|
|
319
274
|
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
320
|
-
PIECE_NOT_FOUND = "PIECE_NOT_FOUND",
|
|
321
|
-
PIECE_TRIGGER_NOT_FOUND = "PIECE_TRIGGER_NOT_FOUND",
|
|
322
275
|
QUOTA_EXCEEDED = "QUOTA_EXCEEDED",
|
|
323
276
|
FEATURE_DISABLED = "FEATURE_DISABLED",
|
|
324
277
|
AI_CREDIT_LIMIT_EXCEEDED = "AI_CREDIT_LIMIT_EXCEEDED",
|
|
325
278
|
SIGN_UP_DISABLED = "SIGN_UP_DISABLED",
|
|
326
|
-
STEP_NOT_FOUND = "STEP_NOT_FOUND",
|
|
327
279
|
SYSTEM_PROP_INVALID = "SYSTEM_PROP_INVALID",
|
|
328
280
|
SYSTEM_PROP_NOT_DEFINED = "SYSTEM_PROP_NOT_DEFINED",
|
|
329
281
|
TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED",
|