@flowrunner/cli 0.1.3 → 0.1.5
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/ai-docs/instructions/service-code-format/02-zod-types.md +20 -14
- package/ai-docs/instructions/service-code-format/08-polling-triggers.md +2 -2
- package/dist/cli.js +18 -8
- package/dist/cli.js.map +2 -2
- package/dist/index.js +14 -7
- package/dist/index.js.map +2 -2
- package/dist/types/shared/src/constants/error-codes.d.ts +1 -0
- package/dist/types/shared/src/constants/knowledge-base.d.ts +1 -0
- package/dist/types/shared/src/constants/notification-types.d.ts +95 -22
- package/dist/types/shared/src/constants/shared-extensions.d.ts +9 -0
- package/dist/types/shared/src/errors/k8s.d.ts +10 -0
- package/dist/types/shared/src/scheme/crm/dto.d.ts +2 -2
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -29
- package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +2 -2
- package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +80 -0
- package/dist/types/shared/src/scheme/notifications/dto.d.ts +3 -0
- package/dist/types/shared/src/scheme/notifications/rest.d.ts +6 -0
- package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -20
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +30 -36
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +40 -40
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -24
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +10 -10
- package/dist/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +44 -0
- package/dist/types/shared/src/scheme/workspace/dto.d.ts +1 -1
- package/package.json +4 -1
- package/runtime/index.js +14 -7
- package/runtime/index.js.map +2 -2
- package/runtime/types/shared/src/constants/error-codes.d.ts +1 -0
- package/runtime/types/shared/src/constants/knowledge-base.d.ts +1 -0
- package/runtime/types/shared/src/constants/notification-types.d.ts +95 -22
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +9 -0
- package/runtime/types/shared/src/errors/k8s.d.ts +10 -0
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -29
- package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +2 -2
- package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +80 -0
- package/runtime/types/shared/src/scheme/notifications/dto.d.ts +3 -0
- package/runtime/types/shared/src/scheme/notifications/rest.d.ts +6 -0
- package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +20 -20
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +30 -36
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +40 -40
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -24
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +10 -10
- package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +44 -0
|
@@ -58,11 +58,11 @@ export declare const CustomExtensionDTOSchema: z.ZodObject<{
|
|
|
58
58
|
shared: z.ZodBoolean;
|
|
59
59
|
name: z.ZodString;
|
|
60
60
|
type: z.ZodEnum<{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
readonly STRING: "string";
|
|
62
|
+
readonly BOOL: "bool";
|
|
63
|
+
readonly DATE: "date";
|
|
64
|
+
readonly CHOICE: "choice";
|
|
65
|
+
readonly TEXT: "text";
|
|
66
66
|
}>;
|
|
67
67
|
required: z.ZodBoolean;
|
|
68
68
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -161,11 +161,11 @@ export declare const CustomExtensionDeployServiceSchema: z.ZodObject<{
|
|
|
161
161
|
shared: z.ZodBoolean;
|
|
162
162
|
name: z.ZodString;
|
|
163
163
|
type: z.ZodEnum<{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
readonly STRING: "string";
|
|
165
|
+
readonly BOOL: "bool";
|
|
166
|
+
readonly DATE: "date";
|
|
167
|
+
readonly CHOICE: "choice";
|
|
168
|
+
readonly TEXT: "text";
|
|
169
169
|
}>;
|
|
170
170
|
required: z.ZodBoolean;
|
|
171
171
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -228,11 +228,11 @@ export declare const CustomExtensionDeployDefinitionSchema: z.ZodObject<{
|
|
|
228
228
|
shared: z.ZodBoolean;
|
|
229
229
|
name: z.ZodString;
|
|
230
230
|
type: z.ZodEnum<{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
readonly STRING: "string";
|
|
232
|
+
readonly BOOL: "bool";
|
|
233
|
+
readonly DATE: "date";
|
|
234
|
+
readonly CHOICE: "choice";
|
|
235
|
+
readonly TEXT: "text";
|
|
236
236
|
}>;
|
|
237
237
|
required: z.ZodBoolean;
|
|
238
238
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -268,11 +268,11 @@ export declare const CustomExtensionConfigsResponseSchema: z.ZodObject<{
|
|
|
268
268
|
shared: z.ZodBoolean;
|
|
269
269
|
name: z.ZodString;
|
|
270
270
|
type: z.ZodEnum<{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
271
|
+
readonly STRING: "string";
|
|
272
|
+
readonly BOOL: "bool";
|
|
273
|
+
readonly DATE: "date";
|
|
274
|
+
readonly CHOICE: "choice";
|
|
275
|
+
readonly TEXT: "text";
|
|
276
276
|
}>;
|
|
277
277
|
required: z.ZodBoolean;
|
|
278
278
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -296,11 +296,11 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
|
|
|
296
296
|
shared: z.ZodBoolean;
|
|
297
297
|
name: z.ZodString;
|
|
298
298
|
type: z.ZodEnum<{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
readonly STRING: "string";
|
|
300
|
+
readonly BOOL: "bool";
|
|
301
|
+
readonly DATE: "date";
|
|
302
|
+
readonly CHOICE: "choice";
|
|
303
|
+
readonly TEXT: "text";
|
|
304
304
|
}>;
|
|
305
305
|
required: z.ZodBoolean;
|
|
306
306
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -363,12 +363,9 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
|
|
|
363
363
|
APP: "APP";
|
|
364
364
|
SHARED: "SHARED";
|
|
365
365
|
}>;
|
|
366
|
-
serviceName: z.ZodString;
|
|
367
366
|
requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
368
367
|
id: z.ZodString;
|
|
369
368
|
legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
370
|
-
modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
371
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
372
369
|
}, z.core.$strip>>;
|
|
373
370
|
}, z.core.$strip>>;
|
|
374
371
|
}, z.core.$strip>;
|
|
@@ -390,11 +387,11 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
390
387
|
shared: z.ZodBoolean;
|
|
391
388
|
name: z.ZodString;
|
|
392
389
|
type: z.ZodEnum<{
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
390
|
+
readonly STRING: "string";
|
|
391
|
+
readonly BOOL: "bool";
|
|
392
|
+
readonly DATE: "date";
|
|
393
|
+
readonly CHOICE: "choice";
|
|
394
|
+
readonly TEXT: "text";
|
|
398
395
|
}>;
|
|
399
396
|
required: z.ZodBoolean;
|
|
400
397
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -457,12 +454,9 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
457
454
|
APP: "APP";
|
|
458
455
|
SHARED: "SHARED";
|
|
459
456
|
}>;
|
|
460
|
-
serviceName: z.ZodString;
|
|
461
457
|
requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
462
458
|
id: z.ZodString;
|
|
463
459
|
legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
|
-
modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
460
|
}, z.core.$strip>>;
|
|
467
461
|
}, z.core.$strip>>;
|
|
468
462
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -67,11 +67,11 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
67
67
|
shared: z.ZodBoolean;
|
|
68
68
|
name: z.ZodString;
|
|
69
69
|
type: z.ZodEnum<{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
readonly STRING: "string";
|
|
71
|
+
readonly BOOL: "bool";
|
|
72
|
+
readonly DATE: "date";
|
|
73
|
+
readonly CHOICE: "choice";
|
|
74
|
+
readonly TEXT: "text";
|
|
75
75
|
}>;
|
|
76
76
|
required: z.ZodBoolean;
|
|
77
77
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -83,11 +83,11 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
83
83
|
shared: z.ZodBoolean;
|
|
84
84
|
name: z.ZodString;
|
|
85
85
|
type: z.ZodEnum<{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
readonly STRING: "string";
|
|
87
|
+
readonly BOOL: "bool";
|
|
88
|
+
readonly DATE: "date";
|
|
89
|
+
readonly CHOICE: "choice";
|
|
90
|
+
readonly TEXT: "text";
|
|
91
91
|
}>;
|
|
92
92
|
required: z.ZodBoolean;
|
|
93
93
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -155,11 +155,11 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
155
155
|
shared: z.ZodBoolean;
|
|
156
156
|
name: z.ZodString;
|
|
157
157
|
type: z.ZodEnum<{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
readonly STRING: "string";
|
|
159
|
+
readonly BOOL: "bool";
|
|
160
|
+
readonly DATE: "date";
|
|
161
|
+
readonly CHOICE: "choice";
|
|
162
|
+
readonly TEXT: "text";
|
|
163
163
|
}>;
|
|
164
164
|
required: z.ZodBoolean;
|
|
165
165
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -171,11 +171,11 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
171
171
|
shared: z.ZodBoolean;
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
type: z.ZodEnum<{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
readonly STRING: "string";
|
|
175
|
+
readonly BOOL: "bool";
|
|
176
|
+
readonly DATE: "date";
|
|
177
|
+
readonly CHOICE: "choice";
|
|
178
|
+
readonly TEXT: "text";
|
|
179
179
|
}>;
|
|
180
180
|
required: z.ZodBoolean;
|
|
181
181
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -255,11 +255,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
255
255
|
shared: z.ZodBoolean;
|
|
256
256
|
name: z.ZodString;
|
|
257
257
|
type: z.ZodEnum<{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
258
|
+
readonly STRING: "string";
|
|
259
|
+
readonly BOOL: "bool";
|
|
260
|
+
readonly DATE: "date";
|
|
261
|
+
readonly CHOICE: "choice";
|
|
262
|
+
readonly TEXT: "text";
|
|
263
263
|
}>;
|
|
264
264
|
required: z.ZodBoolean;
|
|
265
265
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -271,11 +271,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
271
271
|
shared: z.ZodBoolean;
|
|
272
272
|
name: z.ZodString;
|
|
273
273
|
type: z.ZodEnum<{
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
274
|
+
readonly STRING: "string";
|
|
275
|
+
readonly BOOL: "bool";
|
|
276
|
+
readonly DATE: "date";
|
|
277
|
+
readonly CHOICE: "choice";
|
|
278
|
+
readonly TEXT: "text";
|
|
279
279
|
}>;
|
|
280
280
|
required: z.ZodBoolean;
|
|
281
281
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -342,11 +342,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
342
342
|
shared: z.ZodBoolean;
|
|
343
343
|
name: z.ZodString;
|
|
344
344
|
type: z.ZodEnum<{
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
345
|
+
readonly STRING: "string";
|
|
346
|
+
readonly BOOL: "bool";
|
|
347
|
+
readonly DATE: "date";
|
|
348
|
+
readonly CHOICE: "choice";
|
|
349
|
+
readonly TEXT: "text";
|
|
350
350
|
}>;
|
|
351
351
|
required: z.ZodBoolean;
|
|
352
352
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -358,11 +358,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
358
358
|
shared: z.ZodBoolean;
|
|
359
359
|
name: z.ZodString;
|
|
360
360
|
type: z.ZodEnum<{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
361
|
+
readonly STRING: "string";
|
|
362
|
+
readonly BOOL: "bool";
|
|
363
|
+
readonly DATE: "date";
|
|
364
|
+
readonly CHOICE: "choice";
|
|
365
|
+
readonly TEXT: "text";
|
|
366
366
|
}>;
|
|
367
367
|
required: z.ZodBoolean;
|
|
368
368
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -40,11 +40,11 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
|
|
|
40
40
|
shared: z.ZodBoolean;
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
type: z.ZodEnum<{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
readonly STRING: "string";
|
|
44
|
+
readonly BOOL: "bool";
|
|
45
|
+
readonly DATE: "date";
|
|
46
|
+
readonly CHOICE: "choice";
|
|
47
|
+
readonly TEXT: "text";
|
|
48
48
|
}>;
|
|
49
49
|
required: z.ZodBoolean;
|
|
50
50
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -107,12 +107,9 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
|
|
|
107
107
|
APP: "APP";
|
|
108
108
|
SHARED: "SHARED";
|
|
109
109
|
}>;
|
|
110
|
-
serviceName: z.ZodString;
|
|
111
110
|
requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
112
111
|
id: z.ZodString;
|
|
113
112
|
legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
113
|
}, z.core.$strip>>;
|
|
117
114
|
}, z.core.$strip>;
|
|
118
115
|
hostType: z.ZodEnum<{
|
|
@@ -153,11 +150,11 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
|
|
|
153
150
|
shared: z.ZodBoolean;
|
|
154
151
|
name: z.ZodString;
|
|
155
152
|
type: z.ZodEnum<{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
153
|
+
readonly STRING: "string";
|
|
154
|
+
readonly BOOL: "bool";
|
|
155
|
+
readonly DATE: "date";
|
|
156
|
+
readonly CHOICE: "choice";
|
|
157
|
+
readonly TEXT: "text";
|
|
161
158
|
}>;
|
|
162
159
|
required: z.ZodBoolean;
|
|
163
160
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -220,12 +217,9 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
|
|
|
220
217
|
APP: "APP";
|
|
221
218
|
SHARED: "SHARED";
|
|
222
219
|
}>;
|
|
223
|
-
serviceName: z.ZodString;
|
|
224
220
|
requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
225
221
|
id: z.ZodString;
|
|
226
222
|
legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
-
modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
223
|
}, z.core.$strip>>;
|
|
230
224
|
}, z.core.$strip>;
|
|
231
225
|
hostType: z.ZodEnum<{
|
|
@@ -265,11 +259,11 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
|
|
|
265
259
|
shared: z.ZodBoolean;
|
|
266
260
|
name: z.ZodString;
|
|
267
261
|
type: z.ZodEnum<{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
262
|
+
readonly STRING: "string";
|
|
263
|
+
readonly BOOL: "bool";
|
|
264
|
+
readonly DATE: "date";
|
|
265
|
+
readonly CHOICE: "choice";
|
|
266
|
+
readonly TEXT: "text";
|
|
273
267
|
}>;
|
|
274
268
|
required: z.ZodBoolean;
|
|
275
269
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -332,12 +326,9 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
|
|
|
332
326
|
APP: "APP";
|
|
333
327
|
SHARED: "SHARED";
|
|
334
328
|
}>;
|
|
335
|
-
serviceName: z.ZodString;
|
|
336
329
|
requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
337
330
|
id: z.ZodString;
|
|
338
331
|
legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
-
modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
332
|
}, z.core.$strip>>;
|
|
342
333
|
}, z.core.$strip>;
|
|
343
334
|
hostType: z.ZodEnum<{
|
|
@@ -44,11 +44,11 @@ export declare const SharedExtensionSearchResultMethodSchema: z.ZodObject<{
|
|
|
44
44
|
shared: z.ZodBoolean;
|
|
45
45
|
name: z.ZodString;
|
|
46
46
|
type: z.ZodEnum<{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
readonly STRING: "string";
|
|
48
|
+
readonly BOOL: "bool";
|
|
49
|
+
readonly DATE: "date";
|
|
50
|
+
readonly CHOICE: "choice";
|
|
51
|
+
readonly TEXT: "text";
|
|
52
52
|
}>;
|
|
53
53
|
required: z.ZodBoolean;
|
|
54
54
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -136,11 +136,11 @@ export declare const SearchSharedExtensionsResponseSchema: z.ZodObject<{
|
|
|
136
136
|
shared: z.ZodBoolean;
|
|
137
137
|
name: z.ZodString;
|
|
138
138
|
type: z.ZodEnum<{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
readonly STRING: "string";
|
|
140
|
+
readonly BOOL: "bool";
|
|
141
|
+
readonly DATE: "date";
|
|
142
|
+
readonly CHOICE: "choice";
|
|
143
|
+
readonly TEXT: "text";
|
|
144
144
|
}>;
|
|
145
145
|
required: z.ZodBoolean;
|
|
146
146
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkspaceStackExtensionDTOSchema: z.ZodObject<{
|
|
3
|
+
serviceId: z.ZodString;
|
|
4
|
+
packageId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const WorkspaceStackResponseSchema: z.ZodObject<{
|
|
7
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
8
|
+
serviceId: z.ZodString;
|
|
9
|
+
packageId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
developersCount: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const SaveWorkspaceStackRequestSchema: z.ZodObject<{
|
|
14
|
+
extensions: z.ZodArray<z.ZodObject<{
|
|
15
|
+
serviceId: z.ZodString;
|
|
16
|
+
packageId: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const WorkspaceStackUsagesJavaDTOSchema: z.ZodArray<z.ZodObject<{
|
|
20
|
+
serviceId: z.ZodString;
|
|
21
|
+
packageId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
export declare const WorkspaceStackUsageDTOSchema: z.ZodObject<{
|
|
24
|
+
serviceId: z.ZodString;
|
|
25
|
+
serviceName: z.ZodString;
|
|
26
|
+
integrationName: z.ZodString;
|
|
27
|
+
integrationIcon: z.ZodNullable<z.ZodString>;
|
|
28
|
+
sourceHash: z.ZodString;
|
|
29
|
+
packageId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const WorkspaceStackUsagesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
32
|
+
serviceId: z.ZodString;
|
|
33
|
+
serviceName: z.ZodString;
|
|
34
|
+
integrationName: z.ZodString;
|
|
35
|
+
integrationIcon: z.ZodNullable<z.ZodString>;
|
|
36
|
+
sourceHash: z.ZodString;
|
|
37
|
+
packageId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
export type WorkspaceStackExtensionDTO = z.infer<typeof WorkspaceStackExtensionDTOSchema>;
|
|
40
|
+
export type WorkspaceStackResponse = z.infer<typeof WorkspaceStackResponseSchema>;
|
|
41
|
+
export type SaveWorkspaceStackRequest = z.infer<typeof SaveWorkspaceStackRequestSchema>;
|
|
42
|
+
export type WorkspaceStackUsageJavaDTO = z.infer<typeof WorkspaceStackUsagesJavaDTOSchema>[number];
|
|
43
|
+
export type WorkspaceStackUsageDTO = z.infer<typeof WorkspaceStackUsageDTOSchema>;
|
|
44
|
+
export type WorkspaceStackUsagesResponse = z.infer<typeof WorkspaceStackUsagesResponseSchema>;
|
|
@@ -20,8 +20,8 @@ export declare const WorkspaceDocSchema: z.ZodObject<{
|
|
|
20
20
|
export declare const WorkspaceJavaDTOSchema: z.ZodObject<{
|
|
21
21
|
type: z.ZodOptional<z.ZodString>;
|
|
22
22
|
_class: z.ZodOptional<z.ZodString>;
|
|
23
|
-
version: z.ZodString;
|
|
24
23
|
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
version: z.ZodString;
|
|
25
25
|
created: z.ZodCoercedDate<unknown>;
|
|
26
26
|
accountOwnerId: z.ZodString;
|
|
27
27
|
originDomains: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowrunner/cli",
|
|
3
|
+
"version": "0.1.5",
|
|
3
4
|
"publishConfig": {
|
|
4
5
|
"access": "public"
|
|
5
6
|
},
|
|
6
|
-
"
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20"
|
|
9
|
+
},
|
|
7
10
|
"description": "Flowrunner CLI for deploying Custom Extensions",
|
|
8
11
|
"bin": {
|
|
9
12
|
"flowrunner": "./bin/flowrunner.js"
|
package/runtime/index.js
CHANGED
|
@@ -4103,17 +4103,24 @@ var DedupeMechanism = class extends FetchingMechanism {
|
|
|
4103
4103
|
delta(items, state) {
|
|
4104
4104
|
const currentIds = items.map(this.#by).map((id) => `${id}`);
|
|
4105
4105
|
if (!state?.[this.#stateKey]) {
|
|
4106
|
-
return { events: [], state: { [this.#stateKey]: this.#buildSeen(currentIds) } };
|
|
4106
|
+
return { events: [], state: { [this.#stateKey]: this.#buildSeen([], currentIds) } };
|
|
4107
4107
|
}
|
|
4108
|
-
const seen = state[this.#stateKey];
|
|
4109
|
-
const
|
|
4110
|
-
|
|
4108
|
+
const seen = toSeenList(state[this.#stateKey]);
|
|
4109
|
+
const seenSet = new Set(seen);
|
|
4110
|
+
const events = items.filter((_item, index) => !seenSet.has(currentIds[index]));
|
|
4111
|
+
return { events, state: { [this.#stateKey]: this.#buildSeen(seen, currentIds) } };
|
|
4111
4112
|
}
|
|
4112
|
-
// Bounded id
|
|
4113
|
-
|
|
4114
|
-
|
|
4113
|
+
// Bounded id list, oldest first, keeping the most-recent `max` ids. An id fetched again moves to the end,
|
|
4114
|
+
// so an item that is still in the feed is never the one evicted. It is a list, not an `{ id: 1 }` map: a
|
|
4115
|
+
// map orders integer-like keys numerically, which evicted the SMALLEST id instead of the oldest one.
|
|
4116
|
+
#buildSeen(seen, currentIds) {
|
|
4117
|
+
const fetched = new Set(currentIds);
|
|
4118
|
+
return [...seen.filter((id) => !fetched.has(id)), ...fetched].slice(-this.#max);
|
|
4115
4119
|
}
|
|
4116
4120
|
};
|
|
4121
|
+
var toSeenList = (value) => {
|
|
4122
|
+
return Array.isArray(value) ? value.map((id) => `${id}`) : Object.keys(value);
|
|
4123
|
+
};
|
|
4117
4124
|
var isNewer = (value, marker) => value > marker;
|
|
4118
4125
|
var WatermarkMechanism = class extends FetchingMechanism {
|
|
4119
4126
|
constructor(fetch, config) {
|