@activepieces/shared 0.10.176 → 0.10.178
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/flows/flow.d.ts +2 -2
- package/src/lib/flows/flow.js +1 -1
- package/src/lib/flows/flow.js.map +1 -1
- package/src/lib/project-release/project-state.d.ts +284 -78
- package/src/lib/project-release/project-state.js +38 -3
- package/src/lib/project-release/project-state.js.map +1 -1
- package/src/lib/tables/dto/fields.dto.d.ts +2 -0
- package/src/lib/tables/dto/fields.dto.js +2 -0
- package/src/lib/tables/dto/fields.dto.js.map +1 -1
- package/src/lib/tables/dto/tables.dto.d.ts +1 -0
- package/src/lib/tables/dto/tables.dto.js +1 -0
- package/src/lib/tables/dto/tables.dto.js.map +1 -1
- package/src/lib/tables/field.d.ts +2 -0
- package/src/lib/tables/field.js +2 -2
- package/src/lib/tables/field.js.map +1 -1
- package/src/lib/tables/table.d.ts +1 -0
- package/src/lib/tables/table.js +1 -1
- package/src/lib/tables/table.js.map +1 -1
package/package.json
CHANGED
package/src/lib/flows/flow.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const FlowScheduleOptions: import("@sinclair/typebox").TObject<{
|
|
|
17
17
|
export type FlowScheduleOptions = Static<typeof FlowScheduleOptions>;
|
|
18
18
|
export declare const Flow: import("@sinclair/typebox").TObject<{
|
|
19
19
|
projectId: import("@sinclair/typebox").TString;
|
|
20
|
-
externalId: import("@sinclair/typebox").
|
|
20
|
+
externalId: import("@sinclair/typebox").TString;
|
|
21
21
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
22
22
|
status: import("@sinclair/typebox").TEnum<typeof FlowStatus>;
|
|
23
23
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -39,7 +39,7 @@ export declare const PopulatedFlow: import("@sinclair/typebox").TObject<{
|
|
|
39
39
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
40
40
|
[x: string]: unknown;
|
|
41
41
|
} | null>>;
|
|
42
|
-
externalId: import("@sinclair/typebox").
|
|
42
|
+
externalId: import("@sinclair/typebox").TString;
|
|
43
43
|
id: import("@sinclair/typebox").TString;
|
|
44
44
|
created: import("@sinclair/typebox").TString;
|
|
45
45
|
updated: import("@sinclair/typebox").TString;
|
package/src/lib/flows/flow.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.FlowScheduleOptions = typebox_1.Type.Object({
|
|
|
20
20
|
timezone: typebox_1.Type.String(),
|
|
21
21
|
failureCount: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
22
22
|
});
|
|
23
|
-
exports.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), externalId:
|
|
23
|
+
exports.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), externalId: 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()), metadata: (0, base_model_1.Nullable)(metadata_1.Metadata) }));
|
|
24
24
|
exports.PopulatedFlow = typebox_1.Type.Composite([
|
|
25
25
|
exports.Flow,
|
|
26
26
|
typebox_1.Type.Object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/flows/flow.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAgE;AAEhE,iDAA6C;AAC7C,iDAA4C;AAI5C,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,mDAAmC,CAAA;AACvC,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB;AAED,IAAY,UAGX;AAHD,WAAY,UA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Ae,KAClB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,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,EAC3C,QAAQ,EAAE,IAAA,qBAAQ,EAAC,mBAAQ,CAAC,IAC9B,CAAA;AAGW,QAAA,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC;IACxC,YAAI;IACJ,cAAI,CAAC,MAAM,CAAC;QACR,OAAO,EAAE,0BAAW;KACvB,CAAC;CACL,CAAC,CAAA"}
|
|
@@ -9,7 +9,23 @@ export declare enum ConnectionOperationType {
|
|
|
9
9
|
CREATE_CONNECTION = "CREATE_CONNECTION"
|
|
10
10
|
}
|
|
11
11
|
export declare const FlowState: import("@sinclair/typebox").TObject<{
|
|
12
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
} | null>>;
|
|
15
|
+
externalId: import("@sinclair/typebox").TString;
|
|
12
16
|
id: import("@sinclair/typebox").TString;
|
|
17
|
+
created: import("@sinclair/typebox").TString;
|
|
18
|
+
updated: import("@sinclair/typebox").TString;
|
|
19
|
+
projectId: import("@sinclair/typebox").TString;
|
|
20
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
21
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
22
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
23
|
+
failureCount?: number | undefined;
|
|
24
|
+
type: import("../flows/flow").ScheduleType;
|
|
25
|
+
cronExpression: string;
|
|
26
|
+
timezone: string;
|
|
27
|
+
} | null>>;
|
|
28
|
+
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
13
29
|
version: import("@sinclair/typebox").TObject<{
|
|
14
30
|
flowId: import("@sinclair/typebox").TString;
|
|
15
31
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -52,22 +68,11 @@ export declare const FlowState: import("@sinclair/typebox").TObject<{
|
|
|
52
68
|
created: import("@sinclair/typebox").TString;
|
|
53
69
|
updated: import("@sinclair/typebox").TString;
|
|
54
70
|
}>;
|
|
55
|
-
projectId: import("@sinclair/typebox").TString;
|
|
56
|
-
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
} | null>>;
|
|
59
|
-
created: import("@sinclair/typebox").TString;
|
|
60
|
-
updated: import("@sinclair/typebox").TString;
|
|
61
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
62
|
-
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
63
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
64
|
-
failureCount?: number | undefined;
|
|
65
|
-
type: import("../flows/flow").ScheduleType;
|
|
66
|
-
cronExpression: string;
|
|
67
|
-
timezone: string;
|
|
68
|
-
} | null>>;
|
|
69
|
-
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
70
71
|
}>;
|
|
72
|
+
export declare enum TableOperationType {
|
|
73
|
+
UPDATE_TABLE = "UPDATE_TABLE",
|
|
74
|
+
CREATE_TABLE = "CREATE_TABLE"
|
|
75
|
+
}
|
|
71
76
|
export type FlowState = Static<typeof FlowState>;
|
|
72
77
|
export declare const ConnectionState: import("@sinclair/typebox").TObject<{
|
|
73
78
|
externalId: import("@sinclair/typebox").TString;
|
|
@@ -75,12 +80,39 @@ export declare const ConnectionState: import("@sinclair/typebox").TObject<{
|
|
|
75
80
|
displayName: import("@sinclair/typebox").TString;
|
|
76
81
|
}>;
|
|
77
82
|
export type ConnectionState = Static<typeof ConnectionState>;
|
|
83
|
+
export declare const FieldState: import("@sinclair/typebox").TObject<{
|
|
84
|
+
name: import("@sinclair/typebox").TString;
|
|
85
|
+
type: import("@sinclair/typebox").TString;
|
|
86
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
87
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
88
|
+
value: import("@sinclair/typebox").TString;
|
|
89
|
+
}>>;
|
|
90
|
+
}>>;
|
|
91
|
+
externalId: import("@sinclair/typebox").TString;
|
|
92
|
+
}>;
|
|
93
|
+
export type FieldState = Static<typeof FieldState>;
|
|
94
|
+
export declare const TableState: import("@sinclair/typebox").TObject<{
|
|
95
|
+
id: import("@sinclair/typebox").TString;
|
|
96
|
+
name: import("@sinclair/typebox").TString;
|
|
97
|
+
externalId: import("@sinclair/typebox").TString;
|
|
98
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
99
|
+
name: import("@sinclair/typebox").TString;
|
|
100
|
+
type: import("@sinclair/typebox").TString;
|
|
101
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
102
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
103
|
+
value: import("@sinclair/typebox").TString;
|
|
104
|
+
}>>;
|
|
105
|
+
}>>;
|
|
106
|
+
externalId: import("@sinclair/typebox").TString;
|
|
107
|
+
}>>;
|
|
108
|
+
}>;
|
|
109
|
+
export type TableState = Static<typeof TableState>;
|
|
78
110
|
export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
79
111
|
flows: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
80
112
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
81
113
|
[x: string]: unknown;
|
|
82
114
|
} | null>>;
|
|
83
|
-
externalId: import("@sinclair/typebox").
|
|
115
|
+
externalId: import("@sinclair/typebox").TString;
|
|
84
116
|
id: import("@sinclair/typebox").TString;
|
|
85
117
|
created: import("@sinclair/typebox").TString;
|
|
86
118
|
updated: import("@sinclair/typebox").TString;
|
|
@@ -142,12 +174,43 @@ export declare const ProjectState: import("@sinclair/typebox").TObject<{
|
|
|
142
174
|
pieceName: import("@sinclair/typebox").TString;
|
|
143
175
|
displayName: import("@sinclair/typebox").TString;
|
|
144
176
|
}>>>;
|
|
177
|
+
tables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
178
|
+
id: import("@sinclair/typebox").TString;
|
|
179
|
+
name: import("@sinclair/typebox").TString;
|
|
180
|
+
externalId: import("@sinclair/typebox").TString;
|
|
181
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
182
|
+
name: import("@sinclair/typebox").TString;
|
|
183
|
+
type: import("@sinclair/typebox").TString;
|
|
184
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
185
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
186
|
+
value: import("@sinclair/typebox").TString;
|
|
187
|
+
}>>;
|
|
188
|
+
}>>;
|
|
189
|
+
externalId: import("@sinclair/typebox").TString;
|
|
190
|
+
}>>;
|
|
191
|
+
}>>>;
|
|
145
192
|
}>;
|
|
146
193
|
export type ProjectState = Static<typeof ProjectState>;
|
|
147
194
|
export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
148
195
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.UPDATE_FLOW>;
|
|
149
196
|
newFlowState: import("@sinclair/typebox").TObject<{
|
|
197
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
198
|
+
[x: string]: unknown;
|
|
199
|
+
} | null>>;
|
|
200
|
+
externalId: import("@sinclair/typebox").TString;
|
|
150
201
|
id: import("@sinclair/typebox").TString;
|
|
202
|
+
created: import("@sinclair/typebox").TString;
|
|
203
|
+
updated: import("@sinclair/typebox").TString;
|
|
204
|
+
projectId: import("@sinclair/typebox").TString;
|
|
205
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
206
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
207
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
208
|
+
failureCount?: number | undefined;
|
|
209
|
+
type: import("../flows/flow").ScheduleType;
|
|
210
|
+
cronExpression: string;
|
|
211
|
+
timezone: string;
|
|
212
|
+
} | null>>;
|
|
213
|
+
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
151
214
|
version: import("@sinclair/typebox").TObject<{
|
|
152
215
|
flowId: import("@sinclair/typebox").TString;
|
|
153
216
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -190,12 +253,16 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
190
253
|
created: import("@sinclair/typebox").TString;
|
|
191
254
|
updated: import("@sinclair/typebox").TString;
|
|
192
255
|
}>;
|
|
193
|
-
|
|
256
|
+
}>;
|
|
257
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
194
258
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
195
259
|
[x: string]: unknown;
|
|
196
260
|
} | null>>;
|
|
261
|
+
externalId: import("@sinclair/typebox").TString;
|
|
262
|
+
id: import("@sinclair/typebox").TString;
|
|
197
263
|
created: import("@sinclair/typebox").TString;
|
|
198
264
|
updated: import("@sinclair/typebox").TString;
|
|
265
|
+
projectId: import("@sinclair/typebox").TString;
|
|
199
266
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
200
267
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
201
268
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -205,9 +272,6 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
205
272
|
timezone: string;
|
|
206
273
|
} | null>>;
|
|
207
274
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
208
|
-
}>;
|
|
209
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
210
|
-
id: import("@sinclair/typebox").TString;
|
|
211
275
|
version: import("@sinclair/typebox").TObject<{
|
|
212
276
|
flowId: import("@sinclair/typebox").TString;
|
|
213
277
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -250,12 +314,18 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
250
314
|
created: import("@sinclair/typebox").TString;
|
|
251
315
|
updated: import("@sinclair/typebox").TString;
|
|
252
316
|
}>;
|
|
253
|
-
|
|
317
|
+
}>;
|
|
318
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
319
|
+
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
320
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
254
321
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
255
322
|
[x: string]: unknown;
|
|
256
323
|
} | null>>;
|
|
324
|
+
externalId: import("@sinclair/typebox").TString;
|
|
325
|
+
id: import("@sinclair/typebox").TString;
|
|
257
326
|
created: import("@sinclair/typebox").TString;
|
|
258
327
|
updated: import("@sinclair/typebox").TString;
|
|
328
|
+
projectId: import("@sinclair/typebox").TString;
|
|
259
329
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
260
330
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
261
331
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -265,11 +335,6 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
265
335
|
timezone: string;
|
|
266
336
|
} | null>>;
|
|
267
337
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
268
|
-
}>;
|
|
269
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
270
|
-
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
271
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
272
|
-
id: import("@sinclair/typebox").TString;
|
|
273
338
|
version: import("@sinclair/typebox").TObject<{
|
|
274
339
|
flowId: import("@sinclair/typebox").TString;
|
|
275
340
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -312,12 +377,18 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
312
377
|
created: import("@sinclair/typebox").TString;
|
|
313
378
|
updated: import("@sinclair/typebox").TString;
|
|
314
379
|
}>;
|
|
315
|
-
|
|
380
|
+
}>;
|
|
381
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
382
|
+
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
383
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
316
384
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
317
385
|
[x: string]: unknown;
|
|
318
386
|
} | null>>;
|
|
387
|
+
externalId: import("@sinclair/typebox").TString;
|
|
388
|
+
id: import("@sinclair/typebox").TString;
|
|
319
389
|
created: import("@sinclair/typebox").TString;
|
|
320
390
|
updated: import("@sinclair/typebox").TString;
|
|
391
|
+
projectId: import("@sinclair/typebox").TString;
|
|
321
392
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
322
393
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
323
394
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -327,11 +398,6 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
327
398
|
timezone: string;
|
|
328
399
|
} | null>>;
|
|
329
400
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
330
|
-
}>;
|
|
331
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
332
|
-
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
333
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
334
|
-
id: import("@sinclair/typebox").TString;
|
|
335
401
|
version: import("@sinclair/typebox").TObject<{
|
|
336
402
|
flowId: import("@sinclair/typebox").TString;
|
|
337
403
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -374,21 +440,6 @@ export declare const ProjectOperation: import("@sinclair/typebox").TUnion<[impor
|
|
|
374
440
|
created: import("@sinclair/typebox").TString;
|
|
375
441
|
updated: import("@sinclair/typebox").TString;
|
|
376
442
|
}>;
|
|
377
|
-
projectId: import("@sinclair/typebox").TString;
|
|
378
|
-
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
379
|
-
[x: string]: unknown;
|
|
380
|
-
} | null>>;
|
|
381
|
-
created: import("@sinclair/typebox").TString;
|
|
382
|
-
updated: import("@sinclair/typebox").TString;
|
|
383
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
384
|
-
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
385
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
386
|
-
failureCount?: number | undefined;
|
|
387
|
-
type: import("../flows/flow").ScheduleType;
|
|
388
|
-
cronExpression: string;
|
|
389
|
-
timezone: string;
|
|
390
|
-
} | null>>;
|
|
391
|
-
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
392
443
|
}>;
|
|
393
444
|
}>]>;
|
|
394
445
|
export type ProjectOperation = Static<typeof ProjectOperation>;
|
|
@@ -413,11 +464,78 @@ export declare const ConnectionOperation: import("@sinclair/typebox").TUnion<[im
|
|
|
413
464
|
}>;
|
|
414
465
|
}>]>;
|
|
415
466
|
export type ConnectionOperation = Static<typeof ConnectionOperation>;
|
|
467
|
+
export declare const TableOperation: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
468
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
|
|
469
|
+
newTableState: import("@sinclair/typebox").TObject<{
|
|
470
|
+
id: import("@sinclair/typebox").TString;
|
|
471
|
+
name: import("@sinclair/typebox").TString;
|
|
472
|
+
externalId: import("@sinclair/typebox").TString;
|
|
473
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
474
|
+
name: import("@sinclair/typebox").TString;
|
|
475
|
+
type: import("@sinclair/typebox").TString;
|
|
476
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
477
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
478
|
+
value: import("@sinclair/typebox").TString;
|
|
479
|
+
}>>;
|
|
480
|
+
}>>;
|
|
481
|
+
externalId: import("@sinclair/typebox").TString;
|
|
482
|
+
}>>;
|
|
483
|
+
}>;
|
|
484
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
485
|
+
id: import("@sinclair/typebox").TString;
|
|
486
|
+
name: import("@sinclair/typebox").TString;
|
|
487
|
+
externalId: import("@sinclair/typebox").TString;
|
|
488
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
489
|
+
name: import("@sinclair/typebox").TString;
|
|
490
|
+
type: import("@sinclair/typebox").TString;
|
|
491
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
492
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
493
|
+
value: import("@sinclair/typebox").TString;
|
|
494
|
+
}>>;
|
|
495
|
+
}>>;
|
|
496
|
+
externalId: import("@sinclair/typebox").TString;
|
|
497
|
+
}>>;
|
|
498
|
+
}>;
|
|
499
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
500
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
|
|
501
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
502
|
+
id: import("@sinclair/typebox").TString;
|
|
503
|
+
name: import("@sinclair/typebox").TString;
|
|
504
|
+
externalId: import("@sinclair/typebox").TString;
|
|
505
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
506
|
+
name: import("@sinclair/typebox").TString;
|
|
507
|
+
type: import("@sinclair/typebox").TString;
|
|
508
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
509
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
510
|
+
value: import("@sinclair/typebox").TString;
|
|
511
|
+
}>>;
|
|
512
|
+
}>>;
|
|
513
|
+
externalId: import("@sinclair/typebox").TString;
|
|
514
|
+
}>>;
|
|
515
|
+
}>;
|
|
516
|
+
}>]>;
|
|
517
|
+
export type TableOperation = Static<typeof TableOperation>;
|
|
416
518
|
export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
417
519
|
operations: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
418
520
|
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.UPDATE_FLOW>;
|
|
419
521
|
newFlowState: import("@sinclair/typebox").TObject<{
|
|
522
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
523
|
+
[x: string]: unknown;
|
|
524
|
+
} | null>>;
|
|
525
|
+
externalId: import("@sinclair/typebox").TString;
|
|
420
526
|
id: import("@sinclair/typebox").TString;
|
|
527
|
+
created: import("@sinclair/typebox").TString;
|
|
528
|
+
updated: import("@sinclair/typebox").TString;
|
|
529
|
+
projectId: import("@sinclair/typebox").TString;
|
|
530
|
+
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
531
|
+
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
532
|
+
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
533
|
+
failureCount?: number | undefined;
|
|
534
|
+
type: import("../flows/flow").ScheduleType;
|
|
535
|
+
cronExpression: string;
|
|
536
|
+
timezone: string;
|
|
537
|
+
} | null>>;
|
|
538
|
+
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
421
539
|
version: import("@sinclair/typebox").TObject<{
|
|
422
540
|
flowId: import("@sinclair/typebox").TString;
|
|
423
541
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -460,12 +578,16 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
460
578
|
created: import("@sinclair/typebox").TString;
|
|
461
579
|
updated: import("@sinclair/typebox").TString;
|
|
462
580
|
}>;
|
|
463
|
-
|
|
581
|
+
}>;
|
|
582
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
464
583
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
465
584
|
[x: string]: unknown;
|
|
466
585
|
} | null>>;
|
|
586
|
+
externalId: import("@sinclair/typebox").TString;
|
|
587
|
+
id: import("@sinclair/typebox").TString;
|
|
467
588
|
created: import("@sinclair/typebox").TString;
|
|
468
589
|
updated: import("@sinclair/typebox").TString;
|
|
590
|
+
projectId: import("@sinclair/typebox").TString;
|
|
469
591
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
470
592
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
471
593
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -475,9 +597,6 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
475
597
|
timezone: string;
|
|
476
598
|
} | null>>;
|
|
477
599
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
478
|
-
}>;
|
|
479
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
480
|
-
id: import("@sinclair/typebox").TString;
|
|
481
600
|
version: import("@sinclair/typebox").TObject<{
|
|
482
601
|
flowId: import("@sinclair/typebox").TString;
|
|
483
602
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -520,12 +639,18 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
520
639
|
created: import("@sinclair/typebox").TString;
|
|
521
640
|
updated: import("@sinclair/typebox").TString;
|
|
522
641
|
}>;
|
|
523
|
-
|
|
642
|
+
}>;
|
|
643
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
644
|
+
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
645
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
524
646
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
525
647
|
[x: string]: unknown;
|
|
526
648
|
} | null>>;
|
|
649
|
+
externalId: import("@sinclair/typebox").TString;
|
|
650
|
+
id: import("@sinclair/typebox").TString;
|
|
527
651
|
created: import("@sinclair/typebox").TString;
|
|
528
652
|
updated: import("@sinclair/typebox").TString;
|
|
653
|
+
projectId: import("@sinclair/typebox").TString;
|
|
529
654
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
530
655
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
531
656
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -535,11 +660,6 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
535
660
|
timezone: string;
|
|
536
661
|
} | null>>;
|
|
537
662
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
538
|
-
}>;
|
|
539
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
540
|
-
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.CREATE_FLOW>;
|
|
541
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
542
|
-
id: import("@sinclair/typebox").TString;
|
|
543
663
|
version: import("@sinclair/typebox").TObject<{
|
|
544
664
|
flowId: import("@sinclair/typebox").TString;
|
|
545
665
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -582,12 +702,18 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
582
702
|
created: import("@sinclair/typebox").TString;
|
|
583
703
|
updated: import("@sinclair/typebox").TString;
|
|
584
704
|
}>;
|
|
585
|
-
|
|
705
|
+
}>;
|
|
706
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
707
|
+
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
708
|
+
flowState: import("@sinclair/typebox").TObject<{
|
|
586
709
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
587
710
|
[x: string]: unknown;
|
|
588
711
|
} | null>>;
|
|
712
|
+
externalId: import("@sinclair/typebox").TString;
|
|
713
|
+
id: import("@sinclair/typebox").TString;
|
|
589
714
|
created: import("@sinclair/typebox").TString;
|
|
590
715
|
updated: import("@sinclair/typebox").TString;
|
|
716
|
+
projectId: import("@sinclair/typebox").TString;
|
|
591
717
|
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
592
718
|
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
593
719
|
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
@@ -597,11 +723,6 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
597
723
|
timezone: string;
|
|
598
724
|
} | null>>;
|
|
599
725
|
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
600
|
-
}>;
|
|
601
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
602
|
-
type: import("@sinclair/typebox").TLiteral<ProjectOperationType.DELETE_FLOW>;
|
|
603
|
-
flowState: import("@sinclair/typebox").TObject<{
|
|
604
|
-
id: import("@sinclair/typebox").TString;
|
|
605
726
|
version: import("@sinclair/typebox").TObject<{
|
|
606
727
|
flowId: import("@sinclair/typebox").TString;
|
|
607
728
|
displayName: import("@sinclair/typebox").TString;
|
|
@@ -644,21 +765,6 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
644
765
|
created: import("@sinclair/typebox").TString;
|
|
645
766
|
updated: import("@sinclair/typebox").TString;
|
|
646
767
|
}>;
|
|
647
|
-
projectId: import("@sinclair/typebox").TString;
|
|
648
|
-
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
649
|
-
[x: string]: unknown;
|
|
650
|
-
} | null>>;
|
|
651
|
-
created: import("@sinclair/typebox").TString;
|
|
652
|
-
updated: import("@sinclair/typebox").TString;
|
|
653
|
-
status: import("@sinclair/typebox").TEnum<typeof import("../flows/flow").FlowStatus>;
|
|
654
|
-
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
655
|
-
schedule: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<{
|
|
656
|
-
failureCount?: number | undefined;
|
|
657
|
-
type: import("../flows/flow").ScheduleType;
|
|
658
|
-
cronExpression: string;
|
|
659
|
-
timezone: string;
|
|
660
|
-
} | null>>;
|
|
661
|
-
publishedVersionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>;
|
|
662
768
|
}>;
|
|
663
769
|
}>]>>;
|
|
664
770
|
connections: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
@@ -681,6 +787,56 @@ export declare const DiffState: import("@sinclair/typebox").TObject<{
|
|
|
681
787
|
displayName: import("@sinclair/typebox").TString;
|
|
682
788
|
}>;
|
|
683
789
|
}>]>>;
|
|
790
|
+
tables: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
791
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
|
|
792
|
+
newTableState: import("@sinclair/typebox").TObject<{
|
|
793
|
+
id: import("@sinclair/typebox").TString;
|
|
794
|
+
name: import("@sinclair/typebox").TString;
|
|
795
|
+
externalId: import("@sinclair/typebox").TString;
|
|
796
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
797
|
+
name: import("@sinclair/typebox").TString;
|
|
798
|
+
type: import("@sinclair/typebox").TString;
|
|
799
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
800
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
801
|
+
value: import("@sinclair/typebox").TString;
|
|
802
|
+
}>>;
|
|
803
|
+
}>>;
|
|
804
|
+
externalId: import("@sinclair/typebox").TString;
|
|
805
|
+
}>>;
|
|
806
|
+
}>;
|
|
807
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
808
|
+
id: import("@sinclair/typebox").TString;
|
|
809
|
+
name: import("@sinclair/typebox").TString;
|
|
810
|
+
externalId: import("@sinclair/typebox").TString;
|
|
811
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
812
|
+
name: import("@sinclair/typebox").TString;
|
|
813
|
+
type: import("@sinclair/typebox").TString;
|
|
814
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
815
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
816
|
+
value: import("@sinclair/typebox").TString;
|
|
817
|
+
}>>;
|
|
818
|
+
}>>;
|
|
819
|
+
externalId: import("@sinclair/typebox").TString;
|
|
820
|
+
}>>;
|
|
821
|
+
}>;
|
|
822
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
823
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
|
|
824
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
825
|
+
id: import("@sinclair/typebox").TString;
|
|
826
|
+
name: import("@sinclair/typebox").TString;
|
|
827
|
+
externalId: import("@sinclair/typebox").TString;
|
|
828
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
829
|
+
name: import("@sinclair/typebox").TString;
|
|
830
|
+
type: import("@sinclair/typebox").TString;
|
|
831
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
832
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
833
|
+
value: import("@sinclair/typebox").TString;
|
|
834
|
+
}>>;
|
|
835
|
+
}>>;
|
|
836
|
+
externalId: import("@sinclair/typebox").TString;
|
|
837
|
+
}>>;
|
|
838
|
+
}>;
|
|
839
|
+
}>]>>;
|
|
684
840
|
}>;
|
|
685
841
|
export type DiffState = Static<typeof DiffState>;
|
|
686
842
|
export declare const ProjectSyncError: import("@sinclair/typebox").TObject<{
|
|
@@ -756,6 +912,56 @@ export declare const ProjectSyncPlan: import("@sinclair/typebox").TObject<{
|
|
|
756
912
|
displayName: import("@sinclair/typebox").TString;
|
|
757
913
|
}>;
|
|
758
914
|
}>]>>;
|
|
915
|
+
tables: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
916
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.UPDATE_TABLE>;
|
|
917
|
+
newTableState: import("@sinclair/typebox").TObject<{
|
|
918
|
+
id: import("@sinclair/typebox").TString;
|
|
919
|
+
name: import("@sinclair/typebox").TString;
|
|
920
|
+
externalId: import("@sinclair/typebox").TString;
|
|
921
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
922
|
+
name: import("@sinclair/typebox").TString;
|
|
923
|
+
type: import("@sinclair/typebox").TString;
|
|
924
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
925
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
926
|
+
value: import("@sinclair/typebox").TString;
|
|
927
|
+
}>>;
|
|
928
|
+
}>>;
|
|
929
|
+
externalId: import("@sinclair/typebox").TString;
|
|
930
|
+
}>>;
|
|
931
|
+
}>;
|
|
932
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
933
|
+
id: import("@sinclair/typebox").TString;
|
|
934
|
+
name: import("@sinclair/typebox").TString;
|
|
935
|
+
externalId: import("@sinclair/typebox").TString;
|
|
936
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
937
|
+
name: import("@sinclair/typebox").TString;
|
|
938
|
+
type: import("@sinclair/typebox").TString;
|
|
939
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
940
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
941
|
+
value: import("@sinclair/typebox").TString;
|
|
942
|
+
}>>;
|
|
943
|
+
}>>;
|
|
944
|
+
externalId: import("@sinclair/typebox").TString;
|
|
945
|
+
}>>;
|
|
946
|
+
}>;
|
|
947
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
948
|
+
type: import("@sinclair/typebox").TLiteral<TableOperationType.CREATE_TABLE>;
|
|
949
|
+
tableState: import("@sinclair/typebox").TObject<{
|
|
950
|
+
id: import("@sinclair/typebox").TString;
|
|
951
|
+
name: import("@sinclair/typebox").TString;
|
|
952
|
+
externalId: import("@sinclair/typebox").TString;
|
|
953
|
+
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
954
|
+
name: import("@sinclair/typebox").TString;
|
|
955
|
+
type: import("@sinclair/typebox").TString;
|
|
956
|
+
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
957
|
+
options: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
958
|
+
value: import("@sinclair/typebox").TString;
|
|
959
|
+
}>>;
|
|
960
|
+
}>>;
|
|
961
|
+
externalId: import("@sinclair/typebox").TString;
|
|
962
|
+
}>>;
|
|
963
|
+
}>;
|
|
964
|
+
}>]>>;
|
|
759
965
|
errors: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
760
966
|
flowId: import("@sinclair/typebox").TString;
|
|
761
967
|
message: import("@sinclair/typebox").TString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectSyncPlan = exports.ProjectSyncPlanOperation = exports.ProjectSyncError = exports.DiffState = exports.ConnectionOperation = exports.ProjectOperation = exports.ProjectState = exports.ConnectionState = exports.FlowState = exports.ConnectionOperationType = exports.ProjectOperationType = void 0;
|
|
3
|
+
exports.ProjectSyncPlan = exports.ProjectSyncPlanOperation = exports.ProjectSyncError = exports.DiffState = exports.TableOperation = exports.ConnectionOperation = exports.ProjectOperation = exports.ProjectState = exports.TableState = exports.FieldState = exports.ConnectionState = exports.TableOperationType = exports.FlowState = exports.ConnectionOperationType = exports.ProjectOperationType = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const flow_1 = require("../flows/flow");
|
|
6
6
|
var ProjectOperationType;
|
|
@@ -14,16 +14,38 @@ var ConnectionOperationType;
|
|
|
14
14
|
ConnectionOperationType["UPDATE_CONNECTION"] = "UPDATE_CONNECTION";
|
|
15
15
|
ConnectionOperationType["CREATE_CONNECTION"] = "CREATE_CONNECTION";
|
|
16
16
|
})(ConnectionOperationType || (exports.ConnectionOperationType = ConnectionOperationType = {}));
|
|
17
|
-
exports.FlowState =
|
|
17
|
+
exports.FlowState = flow_1.PopulatedFlow;
|
|
18
|
+
var TableOperationType;
|
|
19
|
+
(function (TableOperationType) {
|
|
20
|
+
TableOperationType["UPDATE_TABLE"] = "UPDATE_TABLE";
|
|
21
|
+
TableOperationType["CREATE_TABLE"] = "CREATE_TABLE";
|
|
22
|
+
})(TableOperationType || (exports.TableOperationType = TableOperationType = {}));
|
|
18
23
|
exports.ConnectionState = typebox_1.Type.Object({
|
|
19
24
|
externalId: typebox_1.Type.String(),
|
|
20
25
|
pieceName: typebox_1.Type.String(),
|
|
21
26
|
displayName: typebox_1.Type.String(),
|
|
22
27
|
});
|
|
28
|
+
exports.FieldState = typebox_1.Type.Object({
|
|
29
|
+
name: typebox_1.Type.String(),
|
|
30
|
+
type: typebox_1.Type.String(),
|
|
31
|
+
data: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
32
|
+
options: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
33
|
+
value: typebox_1.Type.String(),
|
|
34
|
+
})),
|
|
35
|
+
})),
|
|
36
|
+
externalId: typebox_1.Type.String(),
|
|
37
|
+
});
|
|
38
|
+
exports.TableState = typebox_1.Type.Object({
|
|
39
|
+
id: typebox_1.Type.String(),
|
|
40
|
+
name: typebox_1.Type.String(),
|
|
41
|
+
externalId: typebox_1.Type.String(),
|
|
42
|
+
fields: typebox_1.Type.Array(exports.FieldState),
|
|
43
|
+
});
|
|
23
44
|
exports.ProjectState = typebox_1.Type.Object({
|
|
24
45
|
flows: typebox_1.Type.Array(flow_1.PopulatedFlow),
|
|
25
|
-
// NOTE: This is optional because in old releases, the connections state is not present
|
|
46
|
+
// NOTE: This is optional because in old releases, the connections and tables state is not present
|
|
26
47
|
connections: typebox_1.Type.Optional(typebox_1.Type.Array(exports.ConnectionState)),
|
|
48
|
+
tables: typebox_1.Type.Optional(typebox_1.Type.Array(exports.TableState)),
|
|
27
49
|
});
|
|
28
50
|
exports.ProjectOperation = typebox_1.Type.Union([
|
|
29
51
|
typebox_1.Type.Object({
|
|
@@ -51,9 +73,21 @@ exports.ConnectionOperation = typebox_1.Type.Union([
|
|
|
51
73
|
connectionState: exports.ConnectionState,
|
|
52
74
|
}),
|
|
53
75
|
]);
|
|
76
|
+
exports.TableOperation = typebox_1.Type.Union([
|
|
77
|
+
typebox_1.Type.Object({
|
|
78
|
+
type: typebox_1.Type.Literal(TableOperationType.UPDATE_TABLE),
|
|
79
|
+
newTableState: exports.TableState,
|
|
80
|
+
tableState: exports.TableState,
|
|
81
|
+
}),
|
|
82
|
+
typebox_1.Type.Object({
|
|
83
|
+
type: typebox_1.Type.Literal(TableOperationType.CREATE_TABLE),
|
|
84
|
+
tableState: exports.TableState,
|
|
85
|
+
}),
|
|
86
|
+
]);
|
|
54
87
|
exports.DiffState = typebox_1.Type.Object({
|
|
55
88
|
operations: typebox_1.Type.Array(exports.ProjectOperation),
|
|
56
89
|
connections: typebox_1.Type.Array(exports.ConnectionOperation),
|
|
90
|
+
tables: typebox_1.Type.Array(exports.TableOperation),
|
|
57
91
|
});
|
|
58
92
|
exports.ProjectSyncError = typebox_1.Type.Object({
|
|
59
93
|
flowId: typebox_1.Type.String(),
|
|
@@ -89,6 +123,7 @@ exports.ProjectSyncPlanOperation = typebox_1.Type.Union([
|
|
|
89
123
|
exports.ProjectSyncPlan = typebox_1.Type.Object({
|
|
90
124
|
operations: typebox_1.Type.Array(exports.ProjectSyncPlanOperation),
|
|
91
125
|
connections: typebox_1.Type.Array(exports.ConnectionOperation),
|
|
126
|
+
tables: typebox_1.Type.Array(exports.TableOperation),
|
|
92
127
|
errors: typebox_1.Type.Array(exports.ProjectSyncError),
|
|
93
128
|
});
|
|
94
129
|
//# sourceMappingURL=project-state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-state.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/project-release/project-state.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,wCAA6C;AAE7C,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,mDAA2B,CAAA;IAC3B,mDAA2B,CAAA;IAC3B,mDAA2B,CAAA;AAC/B,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AACD,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AAC3C,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAEY,QAAA,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"project-state.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/project-release/project-state.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,wCAA6C;AAE7C,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,mDAA2B,CAAA;IAC3B,mDAA2B,CAAA;IAC3B,mDAA2B,CAAA;AAC/B,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AACD,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AAC3C,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAEY,QAAA,SAAS,GAAG,oBAAa,CAAA;AACtC,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,mDAA6B,CAAA;IAC7B,mDAA6B,CAAA;AACjC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAIY,QAAA,eAAe,GAAG,cAAI,CAAC,MAAM,CAAC;IACvC,U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AAM,CAAC;IACvC,UAAU,EAAE,cAAI,CAAC,KAAK,CAAC,gCAAwB,CAAC;IAChD,WAAW,EAAE,cAAI,CAAC,KAAK,CAAC,2BAAmB,CAAC;IAC5C,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,sBAAc,CAAC;IAClC,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,wBAAgB,CAAC;CACvC,CAAC,CAAA"}
|
|
@@ -9,10 +9,12 @@ export declare const CreateFieldRequest: import("@sinclair/typebox").TUnion<[imp
|
|
|
9
9
|
value: import("@sinclair/typebox").TString;
|
|
10
10
|
}>>;
|
|
11
11
|
}>;
|
|
12
|
+
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
13
|
}>, import("@sinclair/typebox").TObject<{
|
|
13
14
|
name: import("@sinclair/typebox").TString;
|
|
14
15
|
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<FieldType.TEXT>, import("@sinclair/typebox").TLiteral<FieldType.NUMBER>, import("@sinclair/typebox").TLiteral<FieldType.DATE>]>;
|
|
15
16
|
tableId: import("@sinclair/typebox").TString;
|
|
17
|
+
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
18
|
}>]>;
|
|
17
19
|
export declare const UpdateFieldRequest: import("@sinclair/typebox").TObject<{
|
|
18
20
|
name: import("@sinclair/typebox").TString;
|
|
@@ -13,10 +13,12 @@ exports.CreateFieldRequest = typebox_1.Type.Union([typebox_1.Type.Object({
|
|
|
13
13
|
type: typebox_1.Type.Literal(field_1.FieldType.STATIC_DROPDOWN),
|
|
14
14
|
tableId: typebox_1.Type.String(),
|
|
15
15
|
data: StaticDropdownData,
|
|
16
|
+
externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
16
17
|
}), typebox_1.Type.Object({
|
|
17
18
|
name: typebox_1.Type.String(),
|
|
18
19
|
type: typebox_1.Type.Union([typebox_1.Type.Literal(field_1.FieldType.TEXT), typebox_1.Type.Literal(field_1.FieldType.NUMBER), typebox_1.Type.Literal(field_1.FieldType.DATE)]),
|
|
19
20
|
tableId: typebox_1.Type.String(),
|
|
21
|
+
externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
20
22
|
})]);
|
|
21
23
|
exports.UpdateFieldRequest = typebox_1.Type.Object({
|
|
22
24
|
name: typebox_1.Type.String(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/fields.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oCAAoC;AAGpC,MAAM,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC;QAC5B,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;KACvB,CAAC,CAAC;CACN,CAAC,CAAA;AAEW,QAAA,kBAAkB,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,MAAM,CAAC;QACtD,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,iBAAS,CAAC,eAAe,CAAC;QAC7C,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"fields.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/fields.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oCAAoC;AAGpC,MAAM,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC;QAC5B,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;KACvB,CAAC,CAAC;CACN,CAAC,CAAA;AAEW,QAAA,kBAAkB,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,MAAM,CAAC;QACtD,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,iBAAS,CAAC,eAAe,CAAC;QAC7C,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KAC3C,CAAC,EAAE,cAAI,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,iBAAS,CAAC,IAAI,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,iBAAS,CAAC,MAAM,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,iBAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9G,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE;QACtB,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;KAC3C,CAAC,CAAC,CAAC,CAAA;AAES,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { Static } from '@sinclair/typebox';
|
|
|
2
2
|
import { TableWebhookEventType } from '../table-webhook';
|
|
3
3
|
export declare const CreateTableRequest: import("@sinclair/typebox").TObject<{
|
|
4
4
|
name: import("@sinclair/typebox").TString;
|
|
5
|
+
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
6
|
}>;
|
|
6
7
|
export type CreateTableRequest = Static<typeof CreateTableRequest>;
|
|
7
8
|
export declare const ExportTableResponse: import("@sinclair/typebox").TObject<{
|
|
@@ -5,6 +5,7 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
5
5
|
const table_webhook_1 = require("../table-webhook");
|
|
6
6
|
exports.CreateTableRequest = typebox_1.Type.Object({
|
|
7
7
|
name: typebox_1.Type.String(),
|
|
8
|
+
externalId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
8
9
|
});
|
|
9
10
|
exports.ExportTableResponse = typebox_1.Type.Object({
|
|
10
11
|
fields: typebox_1.Type.Array(typebox_1.Type.Object({ id: typebox_1.Type.String(), name: typebox_1.Type.String() })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,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;CACtB,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,MAAM,EAAE;CACtB,CAAC,CAAA;AAKW,QAAA,iBAAiB,GAAG,cAAI,CAAC,MAAM,CAAC;IACzC,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;CACvC,CAAC,CAAA"}
|
|
@@ -7,6 +7,7 @@ export declare enum FieldType {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
9
9
|
name: import("@sinclair/typebox").TString;
|
|
10
|
+
externalId: import("@sinclair/typebox").TString;
|
|
10
11
|
type: import("@sinclair/typebox").TLiteral<FieldType.STATIC_DROPDOWN>;
|
|
11
12
|
tableId: import("@sinclair/typebox").TString;
|
|
12
13
|
projectId: import("@sinclair/typebox").TString;
|
|
@@ -20,6 +21,7 @@ export declare const Field: import("@sinclair/typebox").TUnion<[import("@sinclai
|
|
|
20
21
|
updated: import("@sinclair/typebox").TString;
|
|
21
22
|
}>, import("@sinclair/typebox").TObject<{
|
|
22
23
|
name: import("@sinclair/typebox").TString;
|
|
24
|
+
externalId: import("@sinclair/typebox").TString;
|
|
23
25
|
type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<FieldType.TEXT>, import("@sinclair/typebox").TLiteral<FieldType.NUMBER>, import("@sinclair/typebox").TLiteral<FieldType.DATE>]>;
|
|
24
26
|
tableId: import("@sinclair/typebox").TString;
|
|
25
27
|
projectId: import("@sinclair/typebox").TString;
|
package/src/lib/tables/field.js
CHANGED
|
@@ -10,11 +10,11 @@ var FieldType;
|
|
|
10
10
|
FieldType["DATE"] = "DATE";
|
|
11
11
|
FieldType["STATIC_DROPDOWN"] = "STATIC_DROPDOWN";
|
|
12
12
|
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
13
|
-
exports.Field = typebox_1.Type.Union([typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), type: typebox_1.Type.Literal(FieldType.STATIC_DROPDOWN), tableId: typebox_1.Type.String(), projectId: typebox_1.Type.String(), data: typebox_1.Type.Object({
|
|
13
|
+
exports.Field = typebox_1.Type.Union([typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), externalId: typebox_1.Type.String(), type: typebox_1.Type.Literal(FieldType.STATIC_DROPDOWN), tableId: typebox_1.Type.String(), projectId: typebox_1.Type.String(), data: typebox_1.Type.Object({
|
|
14
14
|
options: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
15
15
|
value: typebox_1.Type.String(),
|
|
16
16
|
})),
|
|
17
|
-
}) })), typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), type: typebox_1.Type.Union([typebox_1.Type.Literal(FieldType.TEXT), typebox_1.Type.Literal(FieldType.NUMBER), typebox_1.Type.Literal(FieldType.DATE)]), tableId: typebox_1.Type.String(), projectId: typebox_1.Type.String() }))]);
|
|
17
|
+
}) })), typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), externalId: typebox_1.Type.String(), type: typebox_1.Type.Union([typebox_1.Type.Literal(FieldType.TEXT), typebox_1.Type.Literal(FieldType.NUMBER), typebox_1.Type.Literal(FieldType.DATE)]), tableId: typebox_1.Type.String(), projectId: typebox_1.Type.String() }))]);
|
|
18
18
|
exports.StaticDropdownEmptyOption = {
|
|
19
19
|
label: '',
|
|
20
20
|
value: '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/field.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAA2C;AAE3C,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,gDAAmC,CAAA;AACvC,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAEY,QAAA,KAAK,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,MAAM,iCACrC,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,EAC7C,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE,EACtB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC;YACd,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC;gBAC5B,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;aACvB,CAAC,CAAC;SACN,CAAC,IACJ,EAAE,cAAI,CAAC,MAAM,iCACR,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAC9G,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE,EACtB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,IAC1B,CAAC,CAAC,CAAA;AAIS,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;CACZ,CAAA"}
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/field.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAA2C;AAE3C,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,gDAAmC,CAAA;AACvC,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAEY,QAAA,KAAK,GAAG,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,MAAM,iCACrC,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,EAC7C,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE,EACtB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC;YACd,OAAO,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC;gBAC5B,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;aACvB,CAAC,CAAC;SACN,CAAC,IACJ,EAAE,cAAI,CAAC,MAAM,iCACR,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAC9G,OAAO,EAAE,cAAI,CAAC,MAAM,EAAE,EACtB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,IAC1B,CAAC,CAAC,CAAA;AAIS,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;CACZ,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { Static } from '@sinclair/typebox';
|
|
|
2
2
|
export declare const Table: import("@sinclair/typebox").TObject<{
|
|
3
3
|
name: import("@sinclair/typebox").TString;
|
|
4
4
|
projectId: import("@sinclair/typebox").TString;
|
|
5
|
+
externalId: import("@sinclair/typebox").TString;
|
|
5
6
|
id: import("@sinclair/typebox").TString;
|
|
6
7
|
created: import("@sinclair/typebox").TString;
|
|
7
8
|
updated: import("@sinclair/typebox").TString;
|
package/src/lib/tables/table.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Table = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const common_1 = require("../common");
|
|
6
|
-
exports.Table = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), projectId: typebox_1.Type.String() }));
|
|
6
|
+
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() }));
|
|
7
7
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAA2C;AAE9B,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,iCACzB,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAA2C;AAE9B,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,iCACzB,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,IAC3B,CAAA"}
|