@flowrunner/cli 0.1.9 → 0.1.10-dev.2
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/README.md +8 -8
- package/ai-docs/instructions/service-code-format/01-service-structure.md +3 -2
- package/ai-docs/instructions/service-code-format/02-zod-types.md +8 -0
- package/ai-docs/instructions/service-code-format/03-parameters.md +181 -10
- package/ai-docs/instructions/service-code-format/04-http-requests.md +2 -2
- package/ai-docs/instructions/service-code-format/05-dictionaries.md +14 -0
- package/ai-docs/instructions/service-code-format/07-actions.md +5 -4
- package/ai-docs/instructions/service-code-format/11-output-model.md +42 -6
- package/ai-docs/instructions/service-code-format/12-service-readme.md +1 -1
- package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +4 -1
- package/ai-docs/instructions/service-code-format/15-unit-tests.md +2 -1
- package/ai-docs/instructions/service-code-format/16-gotchas.md +39 -1
- package/ai-docs/instructions/service-code-format/README.md +1 -1
- package/ai-docs/providers/claude/agents/flowrunner-service-test-engineer.md +1 -1
- package/dist/cli.js +10663 -71
- package/dist/cli.js.map +4 -4
- package/dist/index.js +10632 -64
- package/dist/index.js.map +4 -4
- package/dist/types/flow-extension-runner/src/v2/actions/action-method.d.ts +13 -9
- package/dist/types/flow-extension-runner/src/v2/loaders/loader-method.d.ts +52 -7
- package/dist/types/flow-extension-runner/src/v2/loaders/loader-owner.d.ts +4 -6
- package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/v2/params/index.d.ts +2 -2
- package/dist/types/flow-extension-runner/src/v2/params/json/encode.d.ts +10 -2
- package/dist/types/flow-extension-runner/src/v2/params/json/types.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/params/zod.d.ts +29 -0
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +20 -8
- package/dist/types/shared/src/constants/activity-log.d.ts +1496 -0
- package/dist/types/shared/src/constants/docs.d.ts +2 -0
- package/dist/types/shared/src/constants/notification-types.d.ts +9 -3
- package/dist/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/dist/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/dist/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/activity-log-base.d.ts +35 -0
- package/dist/types/shared/src/scheme/data-types/java.dto.d.ts +2 -3
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -0
- package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +1 -0
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +5 -0
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +147 -0
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +20 -0
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/dist/types/shared/src/scheme/shared-extensions/methods.d.ts +33 -1
- package/dist/types/shared/src/scheme/shared-extensions/params-schema.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -0
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +10 -0
- package/package.json +1 -4
- package/runtime/index.js +10621 -43
- package/runtime/index.js.map +4 -4
- package/runtime/types/flow-extension-runner/src/v2/actions/action-method.d.ts +13 -9
- package/runtime/types/flow-extension-runner/src/v2/loaders/loader-method.d.ts +52 -7
- package/runtime/types/flow-extension-runner/src/v2/loaders/loader-owner.d.ts +4 -6
- package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/v2/params/index.d.ts +2 -2
- package/runtime/types/flow-extension-runner/src/v2/params/json/encode.d.ts +10 -2
- package/runtime/types/flow-extension-runner/src/v2/params/json/types.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/params/zod.d.ts +29 -0
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +20 -8
- package/runtime/types/shared/src/constants/activity-log.d.ts +1496 -0
- package/runtime/types/shared/src/constants/docs.d.ts +2 -0
- package/runtime/types/shared/src/constants/notification-types.d.ts +9 -3
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/runtime/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/activity-log-base.d.ts +35 -0
- package/runtime/types/shared/src/scheme/data-types/java.dto.d.ts +2 -3
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -0
- package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +1 -0
- package/runtime/types/shared/src/scheme/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +5 -0
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +147 -0
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +20 -0
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/runtime/types/shared/src/scheme/shared-extensions/methods.d.ts +33 -1
- package/runtime/types/shared/src/scheme/shared-extensions/params-schema.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -0
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +10 -0
- package/templates/demo-todo-list/files/src/index.js +6 -6
- package/templates/qa-test/files/README.md +23 -8
- package/templates/qa-test/files/src/index.js +368 -37
|
@@ -46,12 +46,17 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
46
46
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
47
47
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
48
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
49
50
|
}, z.core.$strip>>>;
|
|
50
51
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
51
52
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
52
53
|
methodName: z.ZodString;
|
|
53
54
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
55
|
}, z.core.$strip>>;
|
|
56
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
methodName: z.ZodString;
|
|
58
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
55
60
|
}, z.core.$strip>;
|
|
56
61
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
62
|
v: z.ZodNumber;
|
|
@@ -136,12 +141,17 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
|
|
|
136
141
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
137
142
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
143
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
144
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
139
145
|
}, z.core.$strip>>>;
|
|
140
146
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
141
147
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
142
148
|
methodName: z.ZodString;
|
|
143
149
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
150
|
}, z.core.$strip>>;
|
|
151
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
methodName: z.ZodString;
|
|
153
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
145
155
|
}, z.core.$strip>;
|
|
146
156
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
147
157
|
v: z.ZodNumber;
|
|
@@ -236,12 +246,17 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
236
246
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
237
247
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
238
248
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
249
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
239
250
|
}, z.core.$strip>>>;
|
|
240
251
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
241
252
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
242
253
|
methodName: z.ZodString;
|
|
243
254
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
255
|
}, z.core.$strip>>;
|
|
256
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
methodName: z.ZodString;
|
|
258
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
245
260
|
}, z.core.$strip>;
|
|
246
261
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
247
262
|
v: z.ZodNumber;
|
|
@@ -325,12 +340,17 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
|
|
|
325
340
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
326
341
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
342
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
343
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
328
344
|
}, z.core.$strip>>>;
|
|
329
345
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
330
346
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
331
347
|
methodName: z.ZodString;
|
|
332
348
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
333
349
|
}, z.core.$strip>>;
|
|
350
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
351
|
+
methodName: z.ZodString;
|
|
352
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
|
+
}, z.core.$strip>>;
|
|
334
354
|
}, z.core.$strip>;
|
|
335
355
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
336
356
|
v: z.ZodNumber;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SHARED_EXTENSIONS_LIST_MAX_LIMIT = 100;
|
|
3
|
+
export declare const SharedExtensionListStatusSchema: z.ZodEnum<{
|
|
4
|
+
up_to_date: "up_to_date";
|
|
5
|
+
update_available: "update_available";
|
|
6
|
+
legacy: "legacy";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const SharedExtensionConfigStatusSchema: z.ZodEnum<{
|
|
9
|
+
configured: "configured";
|
|
10
|
+
missing: "missing";
|
|
11
|
+
not_needed: "not_needed";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const InstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
14
|
+
name: "name";
|
|
15
|
+
serviceId: "serviceId";
|
|
16
|
+
status: "status";
|
|
17
|
+
updatedAt: "updatedAt";
|
|
18
|
+
runnerVersion: "runnerVersion";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const InstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
21
|
+
runnerVersion: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
v1: "v1";
|
|
23
|
+
v2: "v2";
|
|
24
|
+
}>>;
|
|
25
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
up_to_date: "up_to_date";
|
|
27
|
+
update_available: "update_available";
|
|
28
|
+
legacy: "legacy";
|
|
29
|
+
}>>;
|
|
30
|
+
oauth: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
true: "true";
|
|
32
|
+
false: "false";
|
|
33
|
+
}>>;
|
|
34
|
+
config: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
configured: "configured";
|
|
36
|
+
missing: "missing";
|
|
37
|
+
}>>;
|
|
38
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
39
|
+
name: "name";
|
|
40
|
+
serviceId: "serviceId";
|
|
41
|
+
status: "status";
|
|
42
|
+
updatedAt: "updatedAt";
|
|
43
|
+
runnerVersion: "runnerVersion";
|
|
44
|
+
}>>;
|
|
45
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
asc: "asc";
|
|
47
|
+
desc: "desc";
|
|
48
|
+
}>>;
|
|
49
|
+
search: z.ZodOptional<z.ZodString>;
|
|
50
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
51
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const InstalledSharedExtensionListItemSchema: z.ZodObject<{
|
|
54
|
+
serviceId: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
sourceHash: z.ZodString;
|
|
57
|
+
sourceLatestHash: z.ZodNullable<z.ZodString>;
|
|
58
|
+
runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
v1: "v1";
|
|
60
|
+
v2: "v2";
|
|
61
|
+
}>>>;
|
|
62
|
+
enabled: z.ZodBoolean;
|
|
63
|
+
status: z.ZodEnum<{
|
|
64
|
+
up_to_date: "up_to_date";
|
|
65
|
+
update_available: "update_available";
|
|
66
|
+
legacy: "legacy";
|
|
67
|
+
}>;
|
|
68
|
+
requireOAuth: z.ZodBoolean;
|
|
69
|
+
configStatus: z.ZodEnum<{
|
|
70
|
+
configured: "configured";
|
|
71
|
+
missing: "missing";
|
|
72
|
+
not_needed: "not_needed";
|
|
73
|
+
}>;
|
|
74
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
75
|
+
updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const InstalledSharedExtensionsCountsSchema: z.ZodObject<{
|
|
78
|
+
all: z.ZodNumber;
|
|
79
|
+
runner: z.ZodObject<{
|
|
80
|
+
any: z.ZodNumber;
|
|
81
|
+
v1: z.ZodNumber;
|
|
82
|
+
v2: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
status: z.ZodObject<{
|
|
85
|
+
any: z.ZodNumber;
|
|
86
|
+
upToDate: z.ZodNumber;
|
|
87
|
+
updateAvailable: z.ZodNumber;
|
|
88
|
+
legacy: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
oauth: z.ZodObject<{
|
|
91
|
+
any: z.ZodNumber;
|
|
92
|
+
enabled: z.ZodNumber;
|
|
93
|
+
none: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
config: z.ZodObject<{
|
|
96
|
+
any: z.ZodNumber;
|
|
97
|
+
configured: z.ZodNumber;
|
|
98
|
+
missing: z.ZodNumber;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const InstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
102
|
+
items: z.ZodArray<z.ZodObject<{
|
|
103
|
+
serviceId: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
sourceHash: z.ZodString;
|
|
106
|
+
sourceLatestHash: z.ZodNullable<z.ZodString>;
|
|
107
|
+
runnerVersion: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
108
|
+
v1: "v1";
|
|
109
|
+
v2: "v2";
|
|
110
|
+
}>>>;
|
|
111
|
+
enabled: z.ZodBoolean;
|
|
112
|
+
status: z.ZodEnum<{
|
|
113
|
+
up_to_date: "up_to_date";
|
|
114
|
+
update_available: "update_available";
|
|
115
|
+
legacy: "legacy";
|
|
116
|
+
}>;
|
|
117
|
+
requireOAuth: z.ZodBoolean;
|
|
118
|
+
configStatus: z.ZodEnum<{
|
|
119
|
+
configured: "configured";
|
|
120
|
+
missing: "missing";
|
|
121
|
+
not_needed: "not_needed";
|
|
122
|
+
}>;
|
|
123
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
124
|
+
updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
total: z.ZodNumber;
|
|
127
|
+
page: z.ZodNumber;
|
|
128
|
+
limit: z.ZodNumber;
|
|
129
|
+
counts: z.ZodObject<{
|
|
130
|
+
all: z.ZodNumber;
|
|
131
|
+
runner: z.ZodObject<{
|
|
132
|
+
any: z.ZodNumber;
|
|
133
|
+
v1: z.ZodNumber;
|
|
134
|
+
v2: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
status: z.ZodObject<{
|
|
137
|
+
any: z.ZodNumber;
|
|
138
|
+
upToDate: z.ZodNumber;
|
|
139
|
+
updateAvailable: z.ZodNumber;
|
|
140
|
+
legacy: z.ZodNumber;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
oauth: z.ZodObject<{
|
|
143
|
+
any: z.ZodNumber;
|
|
144
|
+
enabled: z.ZodNumber;
|
|
145
|
+
none: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
config: z.ZodObject<{
|
|
148
|
+
any: z.ZodNumber;
|
|
149
|
+
configured: z.ZodNumber;
|
|
150
|
+
missing: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export declare const NotInstalledSharedExtensionsSortFieldSchema: z.ZodEnum<{
|
|
155
|
+
name: "name";
|
|
156
|
+
serviceId: "serviceId";
|
|
157
|
+
}>;
|
|
158
|
+
export declare const NotInstalledSharedExtensionsQuerySchema: z.ZodObject<{
|
|
159
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
160
|
+
name: "name";
|
|
161
|
+
serviceId: "serviceId";
|
|
162
|
+
}>>;
|
|
163
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
164
|
+
asc: "asc";
|
|
165
|
+
desc: "desc";
|
|
166
|
+
}>>;
|
|
167
|
+
search: z.ZodOptional<z.ZodString>;
|
|
168
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
169
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const NotInstalledSharedExtensionsPageSchema: z.ZodObject<{
|
|
172
|
+
items: z.ZodArray<z.ZodObject<{
|
|
173
|
+
serviceId: z.ZodString;
|
|
174
|
+
serviceName: z.ZodString;
|
|
175
|
+
sourceHash: z.ZodString;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
total: z.ZodNumber;
|
|
178
|
+
page: z.ZodNumber;
|
|
179
|
+
limit: z.ZodNumber;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
export declare const SharedExtensionBulkTargetSchema: z.ZodObject<{
|
|
182
|
+
serviceId: z.ZodString;
|
|
183
|
+
enabled: z.ZodBoolean;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export declare const SharedExtensionBulkTargetsSchema: z.ZodObject<{
|
|
186
|
+
update: z.ZodArray<z.ZodObject<{
|
|
187
|
+
serviceId: z.ZodString;
|
|
188
|
+
enabled: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
reinstall: z.ZodArray<z.ZodObject<{
|
|
191
|
+
serviceId: z.ZodString;
|
|
192
|
+
enabled: z.ZodBoolean;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
install: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type SharedExtensionListStatus = z.infer<typeof SharedExtensionListStatusSchema>;
|
|
197
|
+
export type SharedExtensionConfigStatus = z.infer<typeof SharedExtensionConfigStatusSchema>;
|
|
198
|
+
export type InstalledSharedExtensionsSortField = z.infer<typeof InstalledSharedExtensionsSortFieldSchema>;
|
|
199
|
+
export type InstalledSharedExtensionsQuery = z.infer<typeof InstalledSharedExtensionsQuerySchema>;
|
|
200
|
+
export type InstalledSharedExtensionsQueryInput = z.input<typeof InstalledSharedExtensionsQuerySchema>;
|
|
201
|
+
export type InstalledSharedExtensionListItem = z.infer<typeof InstalledSharedExtensionListItemSchema>;
|
|
202
|
+
export type InstalledSharedExtensionsCounts = z.infer<typeof InstalledSharedExtensionsCountsSchema>;
|
|
203
|
+
export type InstalledSharedExtensionsPage = z.infer<typeof InstalledSharedExtensionsPageSchema>;
|
|
204
|
+
export type NotInstalledSharedExtensionsSortField = z.infer<typeof NotInstalledSharedExtensionsSortFieldSchema>;
|
|
205
|
+
export type NotInstalledSharedExtensionsQuery = z.infer<typeof NotInstalledSharedExtensionsQuerySchema>;
|
|
206
|
+
export type NotInstalledSharedExtensionsQueryInput = z.input<typeof NotInstalledSharedExtensionsQuerySchema>;
|
|
207
|
+
export type NotInstalledSharedExtensionsPage = z.infer<typeof NotInstalledSharedExtensionsPageSchema>;
|
|
208
|
+
export type SharedExtensionBulkTarget = z.infer<typeof SharedExtensionBulkTargetSchema>;
|
|
209
|
+
export type SharedExtensionBulkTargets = z.infer<typeof SharedExtensionBulkTargetsSchema>;
|
|
@@ -17,12 +17,17 @@ export interface SharedExtensionParam {
|
|
|
17
17
|
dictionary?: string;
|
|
18
18
|
defaultValue?: unknown;
|
|
19
19
|
}
|
|
20
|
-
declare const SharedExtensionMethodParamSchema: z.ZodType<SharedExtensionParam>;
|
|
20
|
+
export declare const SharedExtensionMethodParamSchema: z.ZodType<SharedExtensionParam>;
|
|
21
21
|
declare const SharedExtensionMetaInfoArgSchema: z.ZodObject<{
|
|
22
22
|
label: z.ZodOptional<z.ZodString>;
|
|
23
23
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const SharedExtensionLoaderRefSchema: z.ZodObject<{
|
|
29
|
+
methodName: z.ZodString;
|
|
30
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
31
|
}, z.core.$strip>;
|
|
27
32
|
declare const SharedExtensionMetaInfoSchema: z.ZodObject<{
|
|
28
33
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -30,12 +35,17 @@ declare const SharedExtensionMetaInfoSchema: z.ZodObject<{
|
|
|
30
35
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
31
36
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
37
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
33
39
|
}, z.core.$strip>>>;
|
|
34
40
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
35
41
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
36
42
|
methodName: z.ZodString;
|
|
37
43
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
44
|
}, z.core.$strip>>;
|
|
45
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
methodName: z.ZodString;
|
|
47
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
39
49
|
}, z.core.$strip>;
|
|
40
50
|
export declare const SharedExtensionMethodSchema: z.ZodObject<{
|
|
41
51
|
name: z.ZodString;
|
|
@@ -55,22 +65,44 @@ export declare const SharedExtensionMethodSchema: z.ZodObject<{
|
|
|
55
65
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
56
66
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
67
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
58
69
|
}, z.core.$strip>>>;
|
|
59
70
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
60
71
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
61
72
|
methodName: z.ZodString;
|
|
62
73
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
74
|
}, z.core.$strip>>;
|
|
75
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
methodName: z.ZodString;
|
|
77
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
64
79
|
}, z.core.$strip>;
|
|
65
80
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
81
|
v: z.ZodNumber;
|
|
67
82
|
fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
|
|
68
83
|
}, z.core.$loose>>>;
|
|
69
84
|
}, z.core.$strip>;
|
|
85
|
+
export declare const SharedExtensionLoadedParamsSchema: z.ZodObject<{
|
|
86
|
+
paramsSchema: z.ZodObject<{
|
|
87
|
+
v: z.ZodNumber;
|
|
88
|
+
fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
|
|
89
|
+
}, z.core.$loose>;
|
|
90
|
+
params: z.ZodArray<z.ZodType<SharedExtensionParam, unknown, z.core.$ZodTypeInternals<SharedExtensionParam, unknown>>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export declare const SharedExtensionParamSchemaLoaderResponseSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodType<SharedExtensionParam, unknown, z.core.$ZodTypeInternals<SharedExtensionParam, unknown>>>, z.ZodObject<{
|
|
93
|
+
paramsSchema: z.ZodObject<{
|
|
94
|
+
v: z.ZodNumber;
|
|
95
|
+
fields: z.ZodArray<z.ZodType<import("./params-schema").ParamsSchemaField, unknown, z.core.$ZodTypeInternals<import("./params-schema").ParamsSchemaField, unknown>>>;
|
|
96
|
+
}, z.core.$loose>;
|
|
97
|
+
params: z.ZodArray<z.ZodType<SharedExtensionParam, unknown, z.core.$ZodTypeInternals<SharedExtensionParam, unknown>>>;
|
|
98
|
+
}, z.core.$strip>]>;
|
|
70
99
|
export type SharedExtensionMethod = z.infer<typeof SharedExtensionMethodSchema>;
|
|
71
100
|
export type SharedExtensionMetaInfo = z.infer<typeof SharedExtensionMetaInfoSchema>;
|
|
72
101
|
export type SharedExtensionMethodParam = z.infer<typeof SharedExtensionMethodParamSchema>;
|
|
73
102
|
export type SharedExtensionMetaInfoArg = z.infer<typeof SharedExtensionMetaInfoArgSchema>;
|
|
103
|
+
export type SharedExtensionLoaderRef = z.infer<typeof SharedExtensionLoaderRefSchema>;
|
|
104
|
+
export type SharedExtensionLoadedParams = z.infer<typeof SharedExtensionLoadedParamsSchema>;
|
|
105
|
+
export type SharedExtensionParamSchemaLoaderResponse = z.infer<typeof SharedExtensionParamSchemaLoaderResponseSchema>;
|
|
74
106
|
export type { ParamsSchemaField, ParamsSchemaJSON } from './params-schema';
|
|
75
107
|
export interface SharedExtensionDefinition {
|
|
76
108
|
runnerVersion: 'v1' | 'v2';
|
|
@@ -91,12 +91,17 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
|
|
|
91
91
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
92
92
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
93
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
94
95
|
}, z.core.$strip>>>;
|
|
95
96
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
96
97
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
97
98
|
methodName: z.ZodString;
|
|
98
99
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
100
|
}, z.core.$strip>>;
|
|
101
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
methodName: z.ZodString;
|
|
103
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
100
105
|
}, z.core.$strip>;
|
|
101
106
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
102
107
|
v: z.ZodNumber;
|
|
@@ -202,12 +207,17 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
|
|
|
202
207
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
203
208
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
209
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
205
211
|
}, z.core.$strip>>>;
|
|
206
212
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
207
213
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
208
214
|
methodName: z.ZodString;
|
|
209
215
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
216
|
}, z.core.$strip>>;
|
|
217
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
methodName: z.ZodString;
|
|
219
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
211
221
|
}, z.core.$strip>;
|
|
212
222
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
213
223
|
v: z.ZodNumber;
|
|
@@ -312,12 +322,17 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
|
|
|
312
322
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
313
323
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
314
324
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
325
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
315
326
|
}, z.core.$strip>>>;
|
|
316
327
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
317
328
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
318
329
|
methodName: z.ZodString;
|
|
319
330
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
331
|
}, z.core.$strip>>;
|
|
332
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
methodName: z.ZodString;
|
|
334
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
335
|
+
}, z.core.$strip>>;
|
|
321
336
|
}, z.core.$strip>;
|
|
322
337
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
323
338
|
v: z.ZodNumber;
|
|
@@ -23,12 +23,17 @@ export declare const SharedExtensionSearchResultMethodSchema: z.ZodObject<{
|
|
|
23
23
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
24
24
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
26
27
|
}, z.core.$strip>>>;
|
|
27
28
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
28
29
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
29
30
|
methodName: z.ZodString;
|
|
30
31
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
32
|
}, z.core.$strip>>;
|
|
33
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
methodName: z.ZodString;
|
|
35
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
32
37
|
}, z.core.$strip>;
|
|
33
38
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
39
|
v: z.ZodNumber;
|
|
@@ -116,12 +121,17 @@ export declare const SearchSharedExtensionsResponseSchema: z.ZodObject<{
|
|
|
116
121
|
dictionary: z.ZodOptional<z.ZodString>;
|
|
117
122
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
123
|
uiComponent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
124
|
+
schemaLoader: z.ZodOptional<z.ZodString>;
|
|
119
125
|
}, z.core.$strip>>>;
|
|
120
126
|
sampleResult: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
121
127
|
sampleResultLoader: z.ZodNullable<z.ZodObject<{
|
|
122
128
|
methodName: z.ZodString;
|
|
123
129
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
130
|
}, z.core.$strip>>;
|
|
131
|
+
dynamicParams: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
methodName: z.ZodString;
|
|
133
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
125
135
|
}, z.core.$strip>;
|
|
126
136
|
paramsSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
127
137
|
v: z.ZodNumber;
|
|
@@ -300,19 +300,19 @@ ext.addAction({
|
|
|
300
300
|
dueDate : z.coerce.date().optional().label('Due Date'),
|
|
301
301
|
tags : z.array(z.string()).optional().label('Tags'),
|
|
302
302
|
}),
|
|
303
|
-
// The list's Custom Fields become real inputs here. `
|
|
304
|
-
// different list and these fields are
|
|
303
|
+
// The list's Custom Fields become real inputs here. `dependsOn` is what the console watches: pick a
|
|
304
|
+
// different list and these fields are loaded again. `execute` returns them as a plain zod shape.
|
|
305
305
|
dynamicParams: {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
const list =
|
|
306
|
+
dependsOn: ['listId'],
|
|
307
|
+
execute : ({ criteria }) => {
|
|
308
|
+
const list = storage.lists.get(criteria.listId)
|
|
309
309
|
const shape = {}
|
|
310
310
|
|
|
311
311
|
for (const label of list ? list.customFields : []) {
|
|
312
312
|
shape[customFieldKey(label)] = z.string().optional().label(label)
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
return
|
|
315
|
+
return shape
|
|
316
316
|
},
|
|
317
317
|
},
|
|
318
318
|
result : taskResult,
|
|
@@ -25,9 +25,11 @@ Endpoint**, where you supply the URL.
|
|
|
25
25
|
4. **Params — Date Forms** — put the same value in every field and compare what each declaration hands over
|
|
26
26
|
5. **Params — List Of Objects** and **Params — List Of Choices** — the repeatable editors
|
|
27
27
|
6. **Params — Dictionary-backed** — dependent, paged and failing dropdowns
|
|
28
|
-
7. **
|
|
29
|
-
8. **
|
|
30
|
-
9.
|
|
28
|
+
7. **Dynamic Props — Every Field Type** — pick a record type, fill its fields, switch type and check "Name" keeps its value
|
|
29
|
+
8. **Dynamic Props — Loader States** — slow, failing and invalid loaders, and how each one surfaces
|
|
30
|
+
9. **Files — Upload, Read, List, Delete** — the whole storage surface in one call
|
|
31
|
+
10. **Throw An Error** and **Run Longer Than A Timeout** — failure propagation, and that a long run survives
|
|
32
|
+
11. Enable one of the triggers and wait for a poll
|
|
31
33
|
|
|
32
34
|
## List of Actions
|
|
33
35
|
|
|
@@ -47,10 +49,23 @@ Endpoint**, where you supply the URL.
|
|
|
47
49
|
- Params — List Of Choices
|
|
48
50
|
- Params — Nested Object
|
|
49
51
|
- Params — Dictionary-backed
|
|
50
|
-
- Params — Generated At Runtime
|
|
51
52
|
- Params — Unknown Fields Are Stripped
|
|
52
53
|
|
|
53
|
-
**3.
|
|
54
|
+
**3. Dynamic Fields** — fields loaded at design time from the values of other params; each echoes `params` back
|
|
55
|
+
|
|
56
|
+
- Dynamic Props — Every Field Type
|
|
57
|
+
- Dynamic Props — Declared Keys Plus Loaded Ones
|
|
58
|
+
- Dynamic Props — Dropdowns Inside
|
|
59
|
+
- Dynamic Props — List Of Objects
|
|
60
|
+
- Dynamic Props — No Dependencies
|
|
61
|
+
- Dynamic Props — Several Dependencies, Typed
|
|
62
|
+
- Dynamic Props — One Definition, Two Params
|
|
63
|
+
- Dynamic Props — Loader States
|
|
64
|
+
- Dynamic Params — One Field Per Child
|
|
65
|
+
- Dynamic Params — Every Field Type
|
|
66
|
+
- Dynamic Params And Props Together
|
|
67
|
+
|
|
68
|
+
**4. Results** — one per `result` form, because each publishes a different return type or sample source
|
|
54
69
|
|
|
55
70
|
- Returns — Object
|
|
56
71
|
- Returns — List
|
|
@@ -58,7 +73,7 @@ Endpoint**, where you supply the URL.
|
|
|
58
73
|
- Returns — Sample From A Schema
|
|
59
74
|
- Returns — Sample Computed From Params
|
|
60
75
|
|
|
61
|
-
**
|
|
76
|
+
**5. Runtime**
|
|
62
77
|
|
|
63
78
|
- Call Helpers
|
|
64
79
|
- Emit Logs
|
|
@@ -66,11 +81,11 @@ Endpoint**, where you supply the URL.
|
|
|
66
81
|
- Run Longer Than A Timeout
|
|
67
82
|
- Read OAuth Without Declaring It
|
|
68
83
|
|
|
69
|
-
**
|
|
84
|
+
**6. HTTP**
|
|
70
85
|
|
|
71
86
|
- Call An HTTP Endpoint
|
|
72
87
|
|
|
73
|
-
**
|
|
88
|
+
**7. Files**
|
|
74
89
|
|
|
75
90
|
- Files — Upload, Read, List, Delete
|
|
76
91
|
- Files — Storage Usage
|