scordi-extension 1.14.7 → 1.14.8
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/dist/blocks/ClearValueFormBlock.d.ts +8 -8
- package/dist/blocks/DataExtractBlock.d.ts +2 -2
- package/dist/blocks/ElementExistsBlock.d.ts +8 -8
- package/dist/blocks/EventClickBlock.d.ts +12 -12
- package/dist/blocks/FetchApiBlock.d.ts +2 -2
- package/dist/blocks/GetAttributeValueBlock.d.ts +8 -8
- package/dist/blocks/GetElementDataBlock.d.ts +14 -14
- package/dist/blocks/GetTextBlock.d.ts +10 -10
- package/dist/blocks/GetValueFormBlock.d.ts +8 -8
- package/dist/blocks/SaveAssetsBlock.d.ts +8 -8
- package/dist/blocks/ScrollBlock.d.ts +8 -8
- package/dist/blocks/SetValueFormBlock.d.ts +8 -8
- package/dist/blocks/index.d.ts +96 -96
- package/dist/blocks/types.d.ts +25 -8
- package/dist/blocks/types.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/sdk/index.cjs +4 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +5565 -1434
- package/dist/sdk/types.d.ts +2 -2
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/src/blocks/types.ts.js +1 -0
- package/dist/vendor/vite-client.js +1 -1
- package/package.json +1 -1
package/dist/blocks/index.d.ts
CHANGED
|
@@ -59,13 +59,13 @@ export declare const AllBlockSchemas: {
|
|
|
59
59
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
60
60
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
61
61
|
}, "strip", import("zod").ZodTypeAny, {
|
|
62
|
+
multiple?: boolean | undefined;
|
|
62
63
|
waitForSelector?: boolean | undefined;
|
|
63
64
|
waitSelectorTimeout?: number | undefined;
|
|
64
|
-
multiple?: boolean | undefined;
|
|
65
65
|
}, {
|
|
66
|
+
multiple?: boolean | undefined;
|
|
66
67
|
waitForSelector?: boolean | undefined;
|
|
67
68
|
waitSelectorTimeout?: number | undefined;
|
|
68
|
-
multiple?: boolean | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
} & {
|
|
71
71
|
name: import("zod").ZodLiteral<"get-text">;
|
|
@@ -80,17 +80,17 @@ export declare const AllBlockSchemas: {
|
|
|
80
80
|
scrollWaitMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
81
81
|
maxScrollAttempts: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
82
82
|
}, "strip", import("zod").ZodTypeAny, {
|
|
83
|
-
name: "get-text";
|
|
84
83
|
selector: string;
|
|
85
|
-
findBy: "cssSelector" | "xpath";
|
|
86
84
|
option: {
|
|
85
|
+
multiple?: boolean | undefined;
|
|
87
86
|
waitForSelector?: boolean | undefined;
|
|
88
87
|
waitSelectorTimeout?: number | undefined;
|
|
89
|
-
multiple?: boolean | undefined;
|
|
90
88
|
};
|
|
91
|
-
|
|
89
|
+
name: "get-text";
|
|
90
|
+
findBy: "cssSelector" | "xpath";
|
|
92
91
|
includeTags?: boolean | undefined;
|
|
93
92
|
useTextContent?: boolean | undefined;
|
|
93
|
+
regex?: string | undefined;
|
|
94
94
|
prefixText?: string | undefined;
|
|
95
95
|
suffixText?: string | undefined;
|
|
96
96
|
filterEmpty?: boolean | undefined;
|
|
@@ -99,17 +99,17 @@ export declare const AllBlockSchemas: {
|
|
|
99
99
|
scrollWaitMs?: number | undefined;
|
|
100
100
|
maxScrollAttempts?: number | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
name: "get-text";
|
|
103
102
|
selector: string;
|
|
104
|
-
findBy: "cssSelector" | "xpath";
|
|
105
103
|
option: {
|
|
104
|
+
multiple?: boolean | undefined;
|
|
106
105
|
waitForSelector?: boolean | undefined;
|
|
107
106
|
waitSelectorTimeout?: number | undefined;
|
|
108
|
-
multiple?: boolean | undefined;
|
|
109
107
|
};
|
|
110
|
-
|
|
108
|
+
name: "get-text";
|
|
109
|
+
findBy: "cssSelector" | "xpath";
|
|
111
110
|
includeTags?: boolean | undefined;
|
|
112
111
|
useTextContent?: boolean | undefined;
|
|
112
|
+
regex?: string | undefined;
|
|
113
113
|
prefixText?: string | undefined;
|
|
114
114
|
suffixText?: string | undefined;
|
|
115
115
|
filterEmpty?: boolean | undefined;
|
|
@@ -126,36 +126,36 @@ export declare const AllBlockSchemas: {
|
|
|
126
126
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
127
127
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
128
128
|
}, "strip", import("zod").ZodTypeAny, {
|
|
129
|
+
multiple?: boolean | undefined;
|
|
129
130
|
waitForSelector?: boolean | undefined;
|
|
130
131
|
waitSelectorTimeout?: number | undefined;
|
|
131
|
-
multiple?: boolean | undefined;
|
|
132
132
|
}, {
|
|
133
|
+
multiple?: boolean | undefined;
|
|
133
134
|
waitForSelector?: boolean | undefined;
|
|
134
135
|
waitSelectorTimeout?: number | undefined;
|
|
135
|
-
multiple?: boolean | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
} & {
|
|
138
138
|
name: import("zod").ZodLiteral<"attribute-value">;
|
|
139
139
|
attributeName: import("zod").ZodString;
|
|
140
140
|
}, "strip", import("zod").ZodTypeAny, {
|
|
141
|
-
name: "attribute-value";
|
|
142
141
|
selector: string;
|
|
143
|
-
findBy: "cssSelector" | "xpath";
|
|
144
142
|
option: {
|
|
143
|
+
multiple?: boolean | undefined;
|
|
145
144
|
waitForSelector?: boolean | undefined;
|
|
146
145
|
waitSelectorTimeout?: number | undefined;
|
|
147
|
-
multiple?: boolean | undefined;
|
|
148
146
|
};
|
|
147
|
+
name: "attribute-value";
|
|
148
|
+
findBy: "cssSelector" | "xpath";
|
|
149
149
|
attributeName: string;
|
|
150
150
|
}, {
|
|
151
|
-
name: "attribute-value";
|
|
152
151
|
selector: string;
|
|
153
|
-
findBy: "cssSelector" | "xpath";
|
|
154
152
|
option: {
|
|
153
|
+
multiple?: boolean | undefined;
|
|
155
154
|
waitForSelector?: boolean | undefined;
|
|
156
155
|
waitSelectorTimeout?: number | undefined;
|
|
157
|
-
multiple?: boolean | undefined;
|
|
158
156
|
};
|
|
157
|
+
name: "attribute-value";
|
|
158
|
+
findBy: "cssSelector" | "xpath";
|
|
159
159
|
attributeName: string;
|
|
160
160
|
}>;
|
|
161
161
|
readonly 'get-value-form': import("zod").ZodObject<{
|
|
@@ -166,36 +166,36 @@ export declare const AllBlockSchemas: {
|
|
|
166
166
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
167
167
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
168
168
|
}, "strip", import("zod").ZodTypeAny, {
|
|
169
|
+
multiple?: boolean | undefined;
|
|
169
170
|
waitForSelector?: boolean | undefined;
|
|
170
171
|
waitSelectorTimeout?: number | undefined;
|
|
171
|
-
multiple?: boolean | undefined;
|
|
172
172
|
}, {
|
|
173
|
+
multiple?: boolean | undefined;
|
|
173
174
|
waitForSelector?: boolean | undefined;
|
|
174
175
|
waitSelectorTimeout?: number | undefined;
|
|
175
|
-
multiple?: boolean | undefined;
|
|
176
176
|
}>;
|
|
177
177
|
} & {
|
|
178
178
|
name: import("zod").ZodLiteral<"get-value-form">;
|
|
179
179
|
type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
180
180
|
}, "strip", import("zod").ZodTypeAny, {
|
|
181
|
-
name: "get-value-form";
|
|
182
181
|
selector: string;
|
|
183
|
-
findBy: "cssSelector" | "xpath";
|
|
184
182
|
option: {
|
|
183
|
+
multiple?: boolean | undefined;
|
|
185
184
|
waitForSelector?: boolean | undefined;
|
|
186
185
|
waitSelectorTimeout?: number | undefined;
|
|
187
|
-
multiple?: boolean | undefined;
|
|
188
186
|
};
|
|
187
|
+
name: "get-value-form";
|
|
188
|
+
findBy: "cssSelector" | "xpath";
|
|
189
189
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
name: "get-value-form";
|
|
192
191
|
selector: string;
|
|
193
|
-
findBy: "cssSelector" | "xpath";
|
|
194
192
|
option: {
|
|
193
|
+
multiple?: boolean | undefined;
|
|
195
194
|
waitForSelector?: boolean | undefined;
|
|
196
195
|
waitSelectorTimeout?: number | undefined;
|
|
197
|
-
multiple?: boolean | undefined;
|
|
198
196
|
};
|
|
197
|
+
name: "get-value-form";
|
|
198
|
+
findBy: "cssSelector" | "xpath";
|
|
199
199
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
200
200
|
}>;
|
|
201
201
|
readonly 'set-value-form': import("zod").ZodObject<{
|
|
@@ -206,38 +206,38 @@ export declare const AllBlockSchemas: {
|
|
|
206
206
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
207
207
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
208
208
|
}, "strip", import("zod").ZodTypeAny, {
|
|
209
|
+
multiple?: boolean | undefined;
|
|
209
210
|
waitForSelector?: boolean | undefined;
|
|
210
211
|
waitSelectorTimeout?: number | undefined;
|
|
211
|
-
multiple?: boolean | undefined;
|
|
212
212
|
}, {
|
|
213
|
+
multiple?: boolean | undefined;
|
|
213
214
|
waitForSelector?: boolean | undefined;
|
|
214
215
|
waitSelectorTimeout?: number | undefined;
|
|
215
|
-
multiple?: boolean | undefined;
|
|
216
216
|
}>;
|
|
217
217
|
} & {
|
|
218
218
|
name: import("zod").ZodLiteral<"set-value-form">;
|
|
219
219
|
setValue: import("zod").ZodString;
|
|
220
220
|
type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
221
221
|
}, "strip", import("zod").ZodTypeAny, {
|
|
222
|
-
name: "set-value-form";
|
|
223
222
|
selector: string;
|
|
224
|
-
findBy: "cssSelector" | "xpath";
|
|
225
223
|
option: {
|
|
224
|
+
multiple?: boolean | undefined;
|
|
226
225
|
waitForSelector?: boolean | undefined;
|
|
227
226
|
waitSelectorTimeout?: number | undefined;
|
|
228
|
-
multiple?: boolean | undefined;
|
|
229
227
|
};
|
|
228
|
+
name: "set-value-form";
|
|
229
|
+
findBy: "cssSelector" | "xpath";
|
|
230
230
|
setValue: string;
|
|
231
231
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
name: "set-value-form";
|
|
234
233
|
selector: string;
|
|
235
|
-
findBy: "cssSelector" | "xpath";
|
|
236
234
|
option: {
|
|
235
|
+
multiple?: boolean | undefined;
|
|
237
236
|
waitForSelector?: boolean | undefined;
|
|
238
237
|
waitSelectorTimeout?: number | undefined;
|
|
239
|
-
multiple?: boolean | undefined;
|
|
240
238
|
};
|
|
239
|
+
name: "set-value-form";
|
|
240
|
+
findBy: "cssSelector" | "xpath";
|
|
241
241
|
setValue: string;
|
|
242
242
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
243
243
|
}>;
|
|
@@ -249,36 +249,36 @@ export declare const AllBlockSchemas: {
|
|
|
249
249
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
250
250
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
251
251
|
}, "strip", import("zod").ZodTypeAny, {
|
|
252
|
+
multiple?: boolean | undefined;
|
|
252
253
|
waitForSelector?: boolean | undefined;
|
|
253
254
|
waitSelectorTimeout?: number | undefined;
|
|
254
|
-
multiple?: boolean | undefined;
|
|
255
255
|
}, {
|
|
256
|
+
multiple?: boolean | undefined;
|
|
256
257
|
waitForSelector?: boolean | undefined;
|
|
257
258
|
waitSelectorTimeout?: number | undefined;
|
|
258
|
-
multiple?: boolean | undefined;
|
|
259
259
|
}>;
|
|
260
260
|
} & {
|
|
261
261
|
name: import("zod").ZodLiteral<"clear-value-form">;
|
|
262
262
|
type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
263
263
|
}, "strip", import("zod").ZodTypeAny, {
|
|
264
|
-
name: "clear-value-form";
|
|
265
264
|
selector: string;
|
|
266
|
-
findBy: "cssSelector" | "xpath";
|
|
267
265
|
option: {
|
|
266
|
+
multiple?: boolean | undefined;
|
|
268
267
|
waitForSelector?: boolean | undefined;
|
|
269
268
|
waitSelectorTimeout?: number | undefined;
|
|
270
|
-
multiple?: boolean | undefined;
|
|
271
269
|
};
|
|
270
|
+
name: "clear-value-form";
|
|
271
|
+
findBy: "cssSelector" | "xpath";
|
|
272
272
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
273
273
|
}, {
|
|
274
|
-
name: "clear-value-form";
|
|
275
274
|
selector: string;
|
|
276
|
-
findBy: "cssSelector" | "xpath";
|
|
277
275
|
option: {
|
|
276
|
+
multiple?: boolean | undefined;
|
|
278
277
|
waitForSelector?: boolean | undefined;
|
|
279
278
|
waitSelectorTimeout?: number | undefined;
|
|
280
|
-
multiple?: boolean | undefined;
|
|
281
279
|
};
|
|
280
|
+
name: "clear-value-form";
|
|
281
|
+
findBy: "cssSelector" | "xpath";
|
|
282
282
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
283
283
|
}>;
|
|
284
284
|
readonly 'element-exists': import("zod").ZodObject<{
|
|
@@ -289,34 +289,34 @@ export declare const AllBlockSchemas: {
|
|
|
289
289
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
290
290
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
291
291
|
}, "strip", import("zod").ZodTypeAny, {
|
|
292
|
+
multiple?: boolean | undefined;
|
|
292
293
|
waitForSelector?: boolean | undefined;
|
|
293
294
|
waitSelectorTimeout?: number | undefined;
|
|
294
|
-
multiple?: boolean | undefined;
|
|
295
295
|
}, {
|
|
296
|
+
multiple?: boolean | undefined;
|
|
296
297
|
waitForSelector?: boolean | undefined;
|
|
297
298
|
waitSelectorTimeout?: number | undefined;
|
|
298
|
-
multiple?: boolean | undefined;
|
|
299
299
|
}>;
|
|
300
300
|
} & {
|
|
301
301
|
name: import("zod").ZodLiteral<"element-exists">;
|
|
302
302
|
}, "strip", import("zod").ZodTypeAny, {
|
|
303
|
-
name: "element-exists";
|
|
304
303
|
selector: string;
|
|
305
|
-
findBy: "cssSelector" | "xpath";
|
|
306
304
|
option: {
|
|
305
|
+
multiple?: boolean | undefined;
|
|
307
306
|
waitForSelector?: boolean | undefined;
|
|
308
307
|
waitSelectorTimeout?: number | undefined;
|
|
309
|
-
multiple?: boolean | undefined;
|
|
310
308
|
};
|
|
311
|
-
}, {
|
|
312
309
|
name: "element-exists";
|
|
313
|
-
selector: string;
|
|
314
310
|
findBy: "cssSelector" | "xpath";
|
|
311
|
+
}, {
|
|
312
|
+
selector: string;
|
|
315
313
|
option: {
|
|
314
|
+
multiple?: boolean | undefined;
|
|
316
315
|
waitForSelector?: boolean | undefined;
|
|
317
316
|
waitSelectorTimeout?: number | undefined;
|
|
318
|
-
multiple?: boolean | undefined;
|
|
319
317
|
};
|
|
318
|
+
name: "element-exists";
|
|
319
|
+
findBy: "cssSelector" | "xpath";
|
|
320
320
|
}>;
|
|
321
321
|
readonly 'event-click': import("zod").ZodObject<{
|
|
322
322
|
selector: import("zod").ZodString;
|
|
@@ -326,13 +326,13 @@ export declare const AllBlockSchemas: {
|
|
|
326
326
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
327
327
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
328
328
|
}, "strip", import("zod").ZodTypeAny, {
|
|
329
|
+
multiple?: boolean | undefined;
|
|
329
330
|
waitForSelector?: boolean | undefined;
|
|
330
331
|
waitSelectorTimeout?: number | undefined;
|
|
331
|
-
multiple?: boolean | undefined;
|
|
332
332
|
}, {
|
|
333
|
+
multiple?: boolean | undefined;
|
|
333
334
|
waitForSelector?: boolean | undefined;
|
|
334
335
|
waitSelectorTimeout?: number | undefined;
|
|
335
|
-
multiple?: boolean | undefined;
|
|
336
336
|
}>;
|
|
337
337
|
} & {
|
|
338
338
|
name: import("zod").ZodLiteral<"event-click">;
|
|
@@ -341,36 +341,36 @@ export declare const AllBlockSchemas: {
|
|
|
341
341
|
mode: import("zod").ZodEnum<["exact", "contains", "startsWith", "endsWith", "regex"]>;
|
|
342
342
|
}, "strip", import("zod").ZodTypeAny, {
|
|
343
343
|
text: string | string[];
|
|
344
|
-
mode: "exact" | "
|
|
344
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
345
345
|
}, {
|
|
346
346
|
text: string | string[];
|
|
347
|
-
mode: "exact" | "
|
|
347
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
348
348
|
}>>;
|
|
349
349
|
}, "strip", import("zod").ZodTypeAny, {
|
|
350
|
-
name: "event-click";
|
|
351
350
|
selector: string;
|
|
352
|
-
findBy: "cssSelector" | "xpath";
|
|
353
351
|
option: {
|
|
352
|
+
multiple?: boolean | undefined;
|
|
354
353
|
waitForSelector?: boolean | undefined;
|
|
355
354
|
waitSelectorTimeout?: number | undefined;
|
|
356
|
-
multiple?: boolean | undefined;
|
|
357
355
|
};
|
|
356
|
+
name: "event-click";
|
|
357
|
+
findBy: "cssSelector" | "xpath";
|
|
358
358
|
textFilter?: {
|
|
359
359
|
text: string | string[];
|
|
360
|
-
mode: "exact" | "
|
|
360
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
361
361
|
} | undefined;
|
|
362
362
|
}, {
|
|
363
|
-
name: "event-click";
|
|
364
363
|
selector: string;
|
|
365
|
-
findBy: "cssSelector" | "xpath";
|
|
366
364
|
option: {
|
|
365
|
+
multiple?: boolean | undefined;
|
|
367
366
|
waitForSelector?: boolean | undefined;
|
|
368
367
|
waitSelectorTimeout?: number | undefined;
|
|
369
|
-
multiple?: boolean | undefined;
|
|
370
368
|
};
|
|
369
|
+
name: "event-click";
|
|
370
|
+
findBy: "cssSelector" | "xpath";
|
|
371
371
|
textFilter?: {
|
|
372
372
|
text: string | string[];
|
|
373
|
-
mode: "exact" | "
|
|
373
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
374
374
|
} | undefined;
|
|
375
375
|
}>;
|
|
376
376
|
readonly keypress: import("zod").ZodObject<{
|
|
@@ -542,34 +542,34 @@ export declare const AllBlockSchemas: {
|
|
|
542
542
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
543
543
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
544
544
|
}, "strip", import("zod").ZodTypeAny, {
|
|
545
|
+
multiple?: boolean | undefined;
|
|
545
546
|
waitForSelector?: boolean | undefined;
|
|
546
547
|
waitSelectorTimeout?: number | undefined;
|
|
547
|
-
multiple?: boolean | undefined;
|
|
548
548
|
}, {
|
|
549
|
+
multiple?: boolean | undefined;
|
|
549
550
|
waitForSelector?: boolean | undefined;
|
|
550
551
|
waitSelectorTimeout?: number | undefined;
|
|
551
|
-
multiple?: boolean | undefined;
|
|
552
552
|
}>;
|
|
553
553
|
} & {
|
|
554
554
|
name: import("zod").ZodLiteral<"save-assets">;
|
|
555
555
|
}, "strip", import("zod").ZodTypeAny, {
|
|
556
|
-
name: "save-assets";
|
|
557
556
|
selector: string;
|
|
558
|
-
findBy: "cssSelector" | "xpath";
|
|
559
557
|
option: {
|
|
558
|
+
multiple?: boolean | undefined;
|
|
560
559
|
waitForSelector?: boolean | undefined;
|
|
561
560
|
waitSelectorTimeout?: number | undefined;
|
|
562
|
-
multiple?: boolean | undefined;
|
|
563
561
|
};
|
|
564
|
-
}, {
|
|
565
562
|
name: "save-assets";
|
|
566
|
-
selector: string;
|
|
567
563
|
findBy: "cssSelector" | "xpath";
|
|
564
|
+
}, {
|
|
565
|
+
selector: string;
|
|
568
566
|
option: {
|
|
567
|
+
multiple?: boolean | undefined;
|
|
569
568
|
waitForSelector?: boolean | undefined;
|
|
570
569
|
waitSelectorTimeout?: number | undefined;
|
|
571
|
-
multiple?: boolean | undefined;
|
|
572
570
|
};
|
|
571
|
+
name: "save-assets";
|
|
572
|
+
findBy: "cssSelector" | "xpath";
|
|
573
573
|
}>;
|
|
574
574
|
readonly 'get-element-data': import("zod").ZodObject<{
|
|
575
575
|
selector: import("zod").ZodString;
|
|
@@ -579,13 +579,13 @@ export declare const AllBlockSchemas: {
|
|
|
579
579
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
580
580
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
581
581
|
}, "strip", import("zod").ZodTypeAny, {
|
|
582
|
+
multiple?: boolean | undefined;
|
|
582
583
|
waitForSelector?: boolean | undefined;
|
|
583
584
|
waitSelectorTimeout?: number | undefined;
|
|
584
|
-
multiple?: boolean | undefined;
|
|
585
585
|
}, {
|
|
586
|
+
multiple?: boolean | undefined;
|
|
586
587
|
waitForSelector?: boolean | undefined;
|
|
587
588
|
waitSelectorTimeout?: number | undefined;
|
|
588
|
-
multiple?: boolean | undefined;
|
|
589
589
|
}>;
|
|
590
590
|
} & {
|
|
591
591
|
name: import("zod").ZodLiteral<"get-element-data">;
|
|
@@ -599,39 +599,39 @@ export declare const AllBlockSchemas: {
|
|
|
599
599
|
includeSelector: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
600
600
|
includeXPath: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
601
601
|
}, "strip", import("zod").ZodTypeAny, {
|
|
602
|
-
name: "get-element-data";
|
|
603
602
|
selector: string;
|
|
604
|
-
findBy: "cssSelector" | "xpath";
|
|
605
603
|
option: {
|
|
604
|
+
multiple?: boolean | undefined;
|
|
606
605
|
waitForSelector?: boolean | undefined;
|
|
607
606
|
waitSelectorTimeout?: number | undefined;
|
|
608
|
-
multiple?: boolean | undefined;
|
|
609
607
|
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
includeText?: boolean | undefined;
|
|
608
|
+
name: "get-element-data";
|
|
609
|
+
findBy: "cssSelector" | "xpath";
|
|
613
610
|
includeTags?: boolean | undefined;
|
|
614
611
|
useTextContent?: boolean | undefined;
|
|
612
|
+
regex?: string | undefined;
|
|
615
613
|
prefixText?: string | undefined;
|
|
616
614
|
suffixText?: string | undefined;
|
|
615
|
+
attributes?: string[] | undefined;
|
|
616
|
+
includeText?: boolean | undefined;
|
|
617
617
|
includeSelector?: boolean | undefined;
|
|
618
618
|
includeXPath?: boolean | undefined;
|
|
619
619
|
}, {
|
|
620
|
-
name: "get-element-data";
|
|
621
620
|
selector: string;
|
|
622
|
-
findBy: "cssSelector" | "xpath";
|
|
623
621
|
option: {
|
|
622
|
+
multiple?: boolean | undefined;
|
|
624
623
|
waitForSelector?: boolean | undefined;
|
|
625
624
|
waitSelectorTimeout?: number | undefined;
|
|
626
|
-
multiple?: boolean | undefined;
|
|
627
625
|
};
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
includeText?: boolean | undefined;
|
|
626
|
+
name: "get-element-data";
|
|
627
|
+
findBy: "cssSelector" | "xpath";
|
|
631
628
|
includeTags?: boolean | undefined;
|
|
632
629
|
useTextContent?: boolean | undefined;
|
|
630
|
+
regex?: string | undefined;
|
|
633
631
|
prefixText?: string | undefined;
|
|
634
632
|
suffixText?: string | undefined;
|
|
633
|
+
attributes?: string[] | undefined;
|
|
634
|
+
includeText?: boolean | undefined;
|
|
635
635
|
includeSelector?: boolean | undefined;
|
|
636
636
|
includeXPath?: boolean | undefined;
|
|
637
637
|
}>;
|
|
@@ -643,13 +643,13 @@ export declare const AllBlockSchemas: {
|
|
|
643
643
|
waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
644
644
|
multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
645
645
|
}, "strip", import("zod").ZodTypeAny, {
|
|
646
|
+
multiple?: boolean | undefined;
|
|
646
647
|
waitForSelector?: boolean | undefined;
|
|
647
648
|
waitSelectorTimeout?: number | undefined;
|
|
648
|
-
multiple?: boolean | undefined;
|
|
649
649
|
}, {
|
|
650
|
+
multiple?: boolean | undefined;
|
|
650
651
|
waitForSelector?: boolean | undefined;
|
|
651
652
|
waitSelectorTimeout?: number | undefined;
|
|
652
|
-
multiple?: boolean | undefined;
|
|
653
653
|
}>;
|
|
654
654
|
} & {
|
|
655
655
|
name: import("zod").ZodLiteral<"scroll">;
|
|
@@ -659,28 +659,28 @@ export declare const AllBlockSchemas: {
|
|
|
659
659
|
maxScrolls: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
660
660
|
waitAfterScroll: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
661
661
|
}, "strip", import("zod").ZodTypeAny, {
|
|
662
|
-
name: "scroll";
|
|
663
662
|
selector: string;
|
|
664
|
-
findBy: "cssSelector" | "xpath";
|
|
665
663
|
option: {
|
|
664
|
+
multiple?: boolean | undefined;
|
|
666
665
|
waitForSelector?: boolean | undefined;
|
|
667
666
|
waitSelectorTimeout?: number | undefined;
|
|
668
|
-
multiple?: boolean | undefined;
|
|
669
667
|
};
|
|
668
|
+
name: "scroll";
|
|
669
|
+
findBy: "cssSelector" | "xpath";
|
|
670
670
|
behavior?: "auto" | "smooth" | undefined;
|
|
671
671
|
scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
|
|
672
672
|
distance?: number | undefined;
|
|
673
673
|
maxScrolls?: number | undefined;
|
|
674
674
|
waitAfterScroll?: number | undefined;
|
|
675
675
|
}, {
|
|
676
|
-
name: "scroll";
|
|
677
676
|
selector: string;
|
|
678
|
-
findBy: "cssSelector" | "xpath";
|
|
679
677
|
option: {
|
|
678
|
+
multiple?: boolean | undefined;
|
|
680
679
|
waitForSelector?: boolean | undefined;
|
|
681
680
|
waitSelectorTimeout?: number | undefined;
|
|
682
|
-
multiple?: boolean | undefined;
|
|
683
681
|
};
|
|
682
|
+
name: "scroll";
|
|
683
|
+
findBy: "cssSelector" | "xpath";
|
|
684
684
|
behavior?: "auto" | "smooth" | undefined;
|
|
685
685
|
scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
|
|
686
686
|
distance?: number | undefined;
|
|
@@ -752,18 +752,18 @@ export declare const AllBlockSchemas: {
|
|
|
752
752
|
name: "fetch-api";
|
|
753
753
|
url: string;
|
|
754
754
|
body?: Record<string, any> | undefined;
|
|
755
|
+
timeout?: number | undefined;
|
|
755
756
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
756
757
|
headers?: Record<string, string> | undefined;
|
|
757
|
-
timeout?: number | undefined;
|
|
758
758
|
parseJson?: boolean | undefined;
|
|
759
759
|
returnHeaders?: boolean | undefined;
|
|
760
760
|
}, {
|
|
761
761
|
name: "fetch-api";
|
|
762
762
|
url: string;
|
|
763
763
|
body?: Record<string, any> | undefined;
|
|
764
|
+
timeout?: number | undefined;
|
|
764
765
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
765
766
|
headers?: Record<string, string> | undefined;
|
|
766
|
-
timeout?: number | undefined;
|
|
767
767
|
parseJson?: boolean | undefined;
|
|
768
768
|
returnHeaders?: boolean | undefined;
|
|
769
769
|
}>;
|
|
@@ -772,12 +772,12 @@ export declare const AllBlockSchemas: {
|
|
|
772
772
|
code: import("zod").ZodString;
|
|
773
773
|
inputData: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
774
774
|
}, "strip", import("zod").ZodTypeAny, {
|
|
775
|
-
name: "data-extract";
|
|
776
775
|
code: string;
|
|
776
|
+
name: "data-extract";
|
|
777
777
|
inputData?: any;
|
|
778
778
|
}, {
|
|
779
|
-
name: "data-extract";
|
|
780
779
|
code: string;
|
|
780
|
+
name: "data-extract";
|
|
781
781
|
inputData?: any;
|
|
782
782
|
}>;
|
|
783
783
|
};
|
package/dist/blocks/types.d.ts
CHANGED
|
@@ -23,31 +23,48 @@ export declare const BaseBlockSchema: z.ZodObject<{
|
|
|
23
23
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
multiple?: boolean | undefined;
|
|
26
27
|
waitForSelector?: boolean | undefined;
|
|
27
28
|
waitSelectorTimeout?: number | undefined;
|
|
28
|
-
multiple?: boolean | undefined;
|
|
29
29
|
}, {
|
|
30
|
+
multiple?: boolean | undefined;
|
|
30
31
|
waitForSelector?: boolean | undefined;
|
|
31
32
|
waitSelectorTimeout?: number | undefined;
|
|
32
|
-
multiple?: boolean | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
name: string;
|
|
36
35
|
selector: string;
|
|
37
|
-
findBy: "cssSelector" | "xpath";
|
|
38
36
|
option: {
|
|
37
|
+
multiple?: boolean | undefined;
|
|
39
38
|
waitForSelector?: boolean | undefined;
|
|
40
39
|
waitSelectorTimeout?: number | undefined;
|
|
41
|
-
multiple?: boolean | undefined;
|
|
42
40
|
};
|
|
43
|
-
}, {
|
|
44
41
|
name: string;
|
|
45
|
-
selector: string;
|
|
46
42
|
findBy: "cssSelector" | "xpath";
|
|
43
|
+
}, {
|
|
44
|
+
selector: string;
|
|
47
45
|
option: {
|
|
46
|
+
multiple?: boolean | undefined;
|
|
48
47
|
waitForSelector?: boolean | undefined;
|
|
49
48
|
waitSelectorTimeout?: number | undefined;
|
|
50
|
-
multiple?: boolean | undefined;
|
|
51
49
|
};
|
|
50
|
+
name: string;
|
|
51
|
+
findBy: "cssSelector" | "xpath";
|
|
52
52
|
}>;
|
|
53
|
+
export type { GetTextBlock } from './GetTextBlock';
|
|
54
|
+
export type { GetAttributeValueBlock } from './GetAttributeValueBlock';
|
|
55
|
+
export type { GetValueFormsBlock } from './GetValueFormBlock';
|
|
56
|
+
export type { SetValueFormsBlock } from './SetValueFormBlock';
|
|
57
|
+
export type { ClearValueFormsBlock } from './ClearValueFormBlock';
|
|
58
|
+
export type { ElementExistsBlock } from './ElementExistsBlock';
|
|
59
|
+
export type { EventClickBlock } from './EventClickBlock';
|
|
60
|
+
export type { KeypressBlock } from './KeypressBlock';
|
|
61
|
+
export type { WaitBlock } from './WaitBlock';
|
|
62
|
+
export type { WaitForConditionBlock, WaitForConditionResult } from './WaitForConditionBlock';
|
|
63
|
+
export type { SaveAssetsBlock } from './SaveAssetsBlock';
|
|
64
|
+
export type { GetElementDataBlock, ElementData } from './GetElementDataBlock';
|
|
65
|
+
export type { ScrollBlock } from './ScrollBlock';
|
|
66
|
+
export type { AiParseDataBlock, SchemaField, SchemaDefinition } from './AiParseDataBlock';
|
|
67
|
+
export type { FetchApiBlock, FetchApiResponse } from './FetchApiBlock';
|
|
68
|
+
export type { DataExtractBlock } from './DataExtractBlock';
|
|
69
|
+
export { AllBlockSchemas } from './index';
|
|
53
70
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blocks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC;IAChC,MAAM,EAAE;QACN,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blocks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC;IAChC,MAAM,EAAE;QACN,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC7F,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|