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
|
@@ -12,36 +12,36 @@ export declare const ClearValueFormsBlockSchema: z.ZodObject<{
|
|
|
12
12
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
multiple?: boolean | undefined;
|
|
15
16
|
waitForSelector?: boolean | undefined;
|
|
16
17
|
waitSelectorTimeout?: number | undefined;
|
|
17
|
-
multiple?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
+
multiple?: boolean | undefined;
|
|
19
20
|
waitForSelector?: boolean | undefined;
|
|
20
21
|
waitSelectorTimeout?: number | undefined;
|
|
21
|
-
multiple?: boolean | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
} & {
|
|
24
24
|
name: z.ZodLiteral<"clear-value-form">;
|
|
25
25
|
type: z.ZodOptional<z.ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
name: "clear-value-form";
|
|
28
27
|
selector: string;
|
|
29
|
-
findBy: "cssSelector" | "xpath";
|
|
30
28
|
option: {
|
|
29
|
+
multiple?: boolean | undefined;
|
|
31
30
|
waitForSelector?: boolean | undefined;
|
|
32
31
|
waitSelectorTimeout?: number | undefined;
|
|
33
|
-
multiple?: boolean | undefined;
|
|
34
32
|
};
|
|
33
|
+
name: "clear-value-form";
|
|
34
|
+
findBy: "cssSelector" | "xpath";
|
|
35
35
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
name: "clear-value-form";
|
|
38
37
|
selector: string;
|
|
39
|
-
findBy: "cssSelector" | "xpath";
|
|
40
38
|
option: {
|
|
39
|
+
multiple?: boolean | undefined;
|
|
41
40
|
waitForSelector?: boolean | undefined;
|
|
42
41
|
waitSelectorTimeout?: number | undefined;
|
|
43
|
-
multiple?: boolean | undefined;
|
|
44
42
|
};
|
|
43
|
+
name: "clear-value-form";
|
|
44
|
+
findBy: "cssSelector" | "xpath";
|
|
45
45
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export declare function validateClearValueFormsBlock(data: unknown): ClearValueFormsBlock;
|
|
@@ -10,12 +10,12 @@ export declare const DataExtractBlockSchema: z.ZodObject<{
|
|
|
10
10
|
code: z.ZodString;
|
|
11
11
|
inputData: z.ZodOptional<z.ZodAny>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
name: "data-extract";
|
|
14
13
|
code: string;
|
|
14
|
+
name: "data-extract";
|
|
15
15
|
inputData?: any;
|
|
16
16
|
}, {
|
|
17
|
-
name: "data-extract";
|
|
18
17
|
code: string;
|
|
18
|
+
name: "data-extract";
|
|
19
19
|
inputData?: any;
|
|
20
20
|
}>;
|
|
21
21
|
export declare function validateDataExtractBlock(data: unknown): DataExtractBlock;
|
|
@@ -11,34 +11,34 @@ export declare const ElementExistsBlockSchema: z.ZodObject<{
|
|
|
11
11
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
multiple?: boolean | undefined;
|
|
14
15
|
waitForSelector?: boolean | undefined;
|
|
15
16
|
waitSelectorTimeout?: number | undefined;
|
|
16
|
-
multiple?: boolean | undefined;
|
|
17
17
|
}, {
|
|
18
|
+
multiple?: boolean | undefined;
|
|
18
19
|
waitForSelector?: boolean | undefined;
|
|
19
20
|
waitSelectorTimeout?: number | undefined;
|
|
20
|
-
multiple?: boolean | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
} & {
|
|
23
23
|
name: z.ZodLiteral<"element-exists">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
name: "element-exists";
|
|
26
25
|
selector: string;
|
|
27
|
-
findBy: "cssSelector" | "xpath";
|
|
28
26
|
option: {
|
|
27
|
+
multiple?: boolean | undefined;
|
|
29
28
|
waitForSelector?: boolean | undefined;
|
|
30
29
|
waitSelectorTimeout?: number | undefined;
|
|
31
|
-
multiple?: boolean | undefined;
|
|
32
30
|
};
|
|
33
|
-
}, {
|
|
34
31
|
name: "element-exists";
|
|
35
|
-
selector: string;
|
|
36
32
|
findBy: "cssSelector" | "xpath";
|
|
33
|
+
}, {
|
|
34
|
+
selector: string;
|
|
37
35
|
option: {
|
|
36
|
+
multiple?: boolean | undefined;
|
|
38
37
|
waitForSelector?: boolean | undefined;
|
|
39
38
|
waitSelectorTimeout?: number | undefined;
|
|
40
|
-
multiple?: boolean | undefined;
|
|
41
39
|
};
|
|
40
|
+
name: "element-exists";
|
|
41
|
+
findBy: "cssSelector" | "xpath";
|
|
42
42
|
}>;
|
|
43
43
|
export declare function validateElementExistsBlock(data: unknown): ElementExistsBlock;
|
|
44
44
|
export declare function handlerElementExists(data: ElementExistsBlock): Promise<BlockResult<boolean | null>>;
|
|
@@ -15,13 +15,13 @@ export declare const EventClickBlockSchema: z.ZodObject<{
|
|
|
15
15
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
16
16
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
multiple?: boolean | undefined;
|
|
18
19
|
waitForSelector?: boolean | undefined;
|
|
19
20
|
waitSelectorTimeout?: number | undefined;
|
|
20
|
-
multiple?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
|
+
multiple?: boolean | undefined;
|
|
22
23
|
waitForSelector?: boolean | undefined;
|
|
23
24
|
waitSelectorTimeout?: number | undefined;
|
|
24
|
-
multiple?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
} & {
|
|
27
27
|
name: z.ZodLiteral<"event-click">;
|
|
@@ -30,36 +30,36 @@ export declare const EventClickBlockSchema: z.ZodObject<{
|
|
|
30
30
|
mode: z.ZodEnum<["exact", "contains", "startsWith", "endsWith", "regex"]>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
text: string | string[];
|
|
33
|
-
mode: "exact" | "
|
|
33
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
34
34
|
}, {
|
|
35
35
|
text: string | string[];
|
|
36
|
-
mode: "exact" | "
|
|
36
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
37
37
|
}>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
name: "event-click";
|
|
40
39
|
selector: string;
|
|
41
|
-
findBy: "cssSelector" | "xpath";
|
|
42
40
|
option: {
|
|
41
|
+
multiple?: boolean | undefined;
|
|
43
42
|
waitForSelector?: boolean | undefined;
|
|
44
43
|
waitSelectorTimeout?: number | undefined;
|
|
45
|
-
multiple?: boolean | undefined;
|
|
46
44
|
};
|
|
45
|
+
name: "event-click";
|
|
46
|
+
findBy: "cssSelector" | "xpath";
|
|
47
47
|
textFilter?: {
|
|
48
48
|
text: string | string[];
|
|
49
|
-
mode: "exact" | "
|
|
49
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
50
50
|
} | undefined;
|
|
51
51
|
}, {
|
|
52
|
-
name: "event-click";
|
|
53
52
|
selector: string;
|
|
54
|
-
findBy: "cssSelector" | "xpath";
|
|
55
53
|
option: {
|
|
54
|
+
multiple?: boolean | undefined;
|
|
56
55
|
waitForSelector?: boolean | undefined;
|
|
57
56
|
waitSelectorTimeout?: number | undefined;
|
|
58
|
-
multiple?: boolean | undefined;
|
|
59
57
|
};
|
|
58
|
+
name: "event-click";
|
|
59
|
+
findBy: "cssSelector" | "xpath";
|
|
60
60
|
textFilter?: {
|
|
61
61
|
text: string | string[];
|
|
62
|
-
mode: "exact" | "
|
|
62
|
+
mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
|
|
63
63
|
} | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
export declare function validateEventClickBlock(data: unknown): EventClickBlock;
|
|
@@ -29,18 +29,18 @@ export declare const FetchApiBlockSchema: z.ZodObject<{
|
|
|
29
29
|
name: "fetch-api";
|
|
30
30
|
url: string;
|
|
31
31
|
body?: Record<string, any> | undefined;
|
|
32
|
+
timeout?: number | undefined;
|
|
32
33
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
33
34
|
headers?: Record<string, string> | undefined;
|
|
34
|
-
timeout?: number | undefined;
|
|
35
35
|
parseJson?: boolean | undefined;
|
|
36
36
|
returnHeaders?: boolean | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
name: "fetch-api";
|
|
39
39
|
url: string;
|
|
40
40
|
body?: Record<string, any> | undefined;
|
|
41
|
+
timeout?: number | undefined;
|
|
41
42
|
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
42
43
|
headers?: Record<string, string> | undefined;
|
|
43
|
-
timeout?: number | undefined;
|
|
44
44
|
parseJson?: boolean | undefined;
|
|
45
45
|
returnHeaders?: boolean | undefined;
|
|
46
46
|
}>;
|
|
@@ -12,36 +12,36 @@ export declare const GetAttributeValueBlockSchema: z.ZodObject<{
|
|
|
12
12
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
multiple?: boolean | undefined;
|
|
15
16
|
waitForSelector?: boolean | undefined;
|
|
16
17
|
waitSelectorTimeout?: number | undefined;
|
|
17
|
-
multiple?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
+
multiple?: boolean | undefined;
|
|
19
20
|
waitForSelector?: boolean | undefined;
|
|
20
21
|
waitSelectorTimeout?: number | undefined;
|
|
21
|
-
multiple?: boolean | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
} & {
|
|
24
24
|
name: z.ZodLiteral<"attribute-value">;
|
|
25
25
|
attributeName: z.ZodString;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
name: "attribute-value";
|
|
28
27
|
selector: string;
|
|
29
|
-
findBy: "cssSelector" | "xpath";
|
|
30
28
|
option: {
|
|
29
|
+
multiple?: boolean | undefined;
|
|
31
30
|
waitForSelector?: boolean | undefined;
|
|
32
31
|
waitSelectorTimeout?: number | undefined;
|
|
33
|
-
multiple?: boolean | undefined;
|
|
34
32
|
};
|
|
33
|
+
name: "attribute-value";
|
|
34
|
+
findBy: "cssSelector" | "xpath";
|
|
35
35
|
attributeName: string;
|
|
36
36
|
}, {
|
|
37
|
-
name: "attribute-value";
|
|
38
37
|
selector: string;
|
|
39
|
-
findBy: "cssSelector" | "xpath";
|
|
40
38
|
option: {
|
|
39
|
+
multiple?: boolean | undefined;
|
|
41
40
|
waitForSelector?: boolean | undefined;
|
|
42
41
|
waitSelectorTimeout?: number | undefined;
|
|
43
|
-
multiple?: boolean | undefined;
|
|
44
42
|
};
|
|
43
|
+
name: "attribute-value";
|
|
44
|
+
findBy: "cssSelector" | "xpath";
|
|
45
45
|
attributeName: string;
|
|
46
46
|
}>;
|
|
47
47
|
export declare function validateGetAttributeValueBlock(data: unknown): GetAttributeValueBlock;
|
|
@@ -27,13 +27,13 @@ export declare const GetElementDataBlockSchema: z.ZodObject<{
|
|
|
27
27
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
multiple?: boolean | undefined;
|
|
30
31
|
waitForSelector?: boolean | undefined;
|
|
31
32
|
waitSelectorTimeout?: number | undefined;
|
|
32
|
-
multiple?: boolean | undefined;
|
|
33
33
|
}, {
|
|
34
|
+
multiple?: boolean | undefined;
|
|
34
35
|
waitForSelector?: boolean | undefined;
|
|
35
36
|
waitSelectorTimeout?: number | undefined;
|
|
36
|
-
multiple?: boolean | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
} & {
|
|
39
39
|
name: z.ZodLiteral<"get-element-data">;
|
|
@@ -47,39 +47,39 @@ export declare const GetElementDataBlockSchema: z.ZodObject<{
|
|
|
47
47
|
includeSelector: z.ZodOptional<z.ZodBoolean>;
|
|
48
48
|
includeXPath: z.ZodOptional<z.ZodBoolean>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
name: "get-element-data";
|
|
51
50
|
selector: string;
|
|
52
|
-
findBy: "cssSelector" | "xpath";
|
|
53
51
|
option: {
|
|
52
|
+
multiple?: boolean | undefined;
|
|
54
53
|
waitForSelector?: boolean | undefined;
|
|
55
54
|
waitSelectorTimeout?: number | undefined;
|
|
56
|
-
multiple?: boolean | undefined;
|
|
57
55
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
includeText?: boolean | undefined;
|
|
56
|
+
name: "get-element-data";
|
|
57
|
+
findBy: "cssSelector" | "xpath";
|
|
61
58
|
includeTags?: boolean | undefined;
|
|
62
59
|
useTextContent?: boolean | undefined;
|
|
60
|
+
regex?: string | undefined;
|
|
63
61
|
prefixText?: string | undefined;
|
|
64
62
|
suffixText?: string | undefined;
|
|
63
|
+
attributes?: string[] | undefined;
|
|
64
|
+
includeText?: boolean | undefined;
|
|
65
65
|
includeSelector?: boolean | undefined;
|
|
66
66
|
includeXPath?: boolean | undefined;
|
|
67
67
|
}, {
|
|
68
|
-
name: "get-element-data";
|
|
69
68
|
selector: string;
|
|
70
|
-
findBy: "cssSelector" | "xpath";
|
|
71
69
|
option: {
|
|
70
|
+
multiple?: boolean | undefined;
|
|
72
71
|
waitForSelector?: boolean | undefined;
|
|
73
72
|
waitSelectorTimeout?: number | undefined;
|
|
74
|
-
multiple?: boolean | undefined;
|
|
75
73
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
includeText?: boolean | undefined;
|
|
74
|
+
name: "get-element-data";
|
|
75
|
+
findBy: "cssSelector" | "xpath";
|
|
79
76
|
includeTags?: boolean | undefined;
|
|
80
77
|
useTextContent?: boolean | undefined;
|
|
78
|
+
regex?: string | undefined;
|
|
81
79
|
prefixText?: string | undefined;
|
|
82
80
|
suffixText?: string | undefined;
|
|
81
|
+
attributes?: string[] | undefined;
|
|
82
|
+
includeText?: boolean | undefined;
|
|
83
83
|
includeSelector?: boolean | undefined;
|
|
84
84
|
includeXPath?: boolean | undefined;
|
|
85
85
|
}>;
|
|
@@ -21,13 +21,13 @@ export declare const GetTextBlockSchema: z.ZodObject<{
|
|
|
21
21
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
multiple?: boolean | undefined;
|
|
24
25
|
waitForSelector?: boolean | undefined;
|
|
25
26
|
waitSelectorTimeout?: number | undefined;
|
|
26
|
-
multiple?: boolean | undefined;
|
|
27
27
|
}, {
|
|
28
|
+
multiple?: boolean | undefined;
|
|
28
29
|
waitForSelector?: boolean | undefined;
|
|
29
30
|
waitSelectorTimeout?: number | undefined;
|
|
30
|
-
multiple?: boolean | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
} & {
|
|
33
33
|
name: z.ZodLiteral<"get-text">;
|
|
@@ -42,17 +42,17 @@ export declare const GetTextBlockSchema: z.ZodObject<{
|
|
|
42
42
|
scrollWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
maxScrollAttempts: z.ZodOptional<z.ZodNumber>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
name: "get-text";
|
|
46
45
|
selector: string;
|
|
47
|
-
findBy: "cssSelector" | "xpath";
|
|
48
46
|
option: {
|
|
47
|
+
multiple?: boolean | undefined;
|
|
49
48
|
waitForSelector?: boolean | undefined;
|
|
50
49
|
waitSelectorTimeout?: number | undefined;
|
|
51
|
-
multiple?: boolean | undefined;
|
|
52
50
|
};
|
|
53
|
-
|
|
51
|
+
name: "get-text";
|
|
52
|
+
findBy: "cssSelector" | "xpath";
|
|
54
53
|
includeTags?: boolean | undefined;
|
|
55
54
|
useTextContent?: boolean | undefined;
|
|
55
|
+
regex?: string | undefined;
|
|
56
56
|
prefixText?: string | undefined;
|
|
57
57
|
suffixText?: string | undefined;
|
|
58
58
|
filterEmpty?: boolean | undefined;
|
|
@@ -61,17 +61,17 @@ export declare const GetTextBlockSchema: z.ZodObject<{
|
|
|
61
61
|
scrollWaitMs?: number | undefined;
|
|
62
62
|
maxScrollAttempts?: number | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
name: "get-text";
|
|
65
64
|
selector: string;
|
|
66
|
-
findBy: "cssSelector" | "xpath";
|
|
67
65
|
option: {
|
|
66
|
+
multiple?: boolean | undefined;
|
|
68
67
|
waitForSelector?: boolean | undefined;
|
|
69
68
|
waitSelectorTimeout?: number | undefined;
|
|
70
|
-
multiple?: boolean | undefined;
|
|
71
69
|
};
|
|
72
|
-
|
|
70
|
+
name: "get-text";
|
|
71
|
+
findBy: "cssSelector" | "xpath";
|
|
73
72
|
includeTags?: boolean | undefined;
|
|
74
73
|
useTextContent?: boolean | undefined;
|
|
74
|
+
regex?: string | undefined;
|
|
75
75
|
prefixText?: string | undefined;
|
|
76
76
|
suffixText?: string | undefined;
|
|
77
77
|
filterEmpty?: boolean | undefined;
|
|
@@ -12,36 +12,36 @@ export declare const GetValueFormsBlockSchema: z.ZodObject<{
|
|
|
12
12
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
multiple?: boolean | undefined;
|
|
15
16
|
waitForSelector?: boolean | undefined;
|
|
16
17
|
waitSelectorTimeout?: number | undefined;
|
|
17
|
-
multiple?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
+
multiple?: boolean | undefined;
|
|
19
20
|
waitForSelector?: boolean | undefined;
|
|
20
21
|
waitSelectorTimeout?: number | undefined;
|
|
21
|
-
multiple?: boolean | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
} & {
|
|
24
24
|
name: z.ZodLiteral<"get-value-form">;
|
|
25
25
|
type: z.ZodOptional<z.ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
name: "get-value-form";
|
|
28
27
|
selector: string;
|
|
29
|
-
findBy: "cssSelector" | "xpath";
|
|
30
28
|
option: {
|
|
29
|
+
multiple?: boolean | undefined;
|
|
31
30
|
waitForSelector?: boolean | undefined;
|
|
32
31
|
waitSelectorTimeout?: number | undefined;
|
|
33
|
-
multiple?: boolean | undefined;
|
|
34
32
|
};
|
|
33
|
+
name: "get-value-form";
|
|
34
|
+
findBy: "cssSelector" | "xpath";
|
|
35
35
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
name: "get-value-form";
|
|
38
37
|
selector: string;
|
|
39
|
-
findBy: "cssSelector" | "xpath";
|
|
40
38
|
option: {
|
|
39
|
+
multiple?: boolean | undefined;
|
|
41
40
|
waitForSelector?: boolean | undefined;
|
|
42
41
|
waitSelectorTimeout?: number | undefined;
|
|
43
|
-
multiple?: boolean | undefined;
|
|
44
42
|
};
|
|
43
|
+
name: "get-value-form";
|
|
44
|
+
findBy: "cssSelector" | "xpath";
|
|
45
45
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export declare function validateGetValueFormsBlock(data: unknown): GetValueFormsBlock;
|
|
@@ -11,34 +11,34 @@ export declare const SaveAssetsBlockSchema: z.ZodObject<{
|
|
|
11
11
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
multiple?: boolean | undefined;
|
|
14
15
|
waitForSelector?: boolean | undefined;
|
|
15
16
|
waitSelectorTimeout?: number | undefined;
|
|
16
|
-
multiple?: boolean | undefined;
|
|
17
17
|
}, {
|
|
18
|
+
multiple?: boolean | undefined;
|
|
18
19
|
waitForSelector?: boolean | undefined;
|
|
19
20
|
waitSelectorTimeout?: number | undefined;
|
|
20
|
-
multiple?: boolean | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
} & {
|
|
23
23
|
name: z.ZodLiteral<"save-assets">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
name: "save-assets";
|
|
26
25
|
selector: string;
|
|
27
|
-
findBy: "cssSelector" | "xpath";
|
|
28
26
|
option: {
|
|
27
|
+
multiple?: boolean | undefined;
|
|
29
28
|
waitForSelector?: boolean | undefined;
|
|
30
29
|
waitSelectorTimeout?: number | undefined;
|
|
31
|
-
multiple?: boolean | undefined;
|
|
32
30
|
};
|
|
33
|
-
}, {
|
|
34
31
|
name: "save-assets";
|
|
35
|
-
selector: string;
|
|
36
32
|
findBy: "cssSelector" | "xpath";
|
|
33
|
+
}, {
|
|
34
|
+
selector: string;
|
|
37
35
|
option: {
|
|
36
|
+
multiple?: boolean | undefined;
|
|
38
37
|
waitForSelector?: boolean | undefined;
|
|
39
38
|
waitSelectorTimeout?: number | undefined;
|
|
40
|
-
multiple?: boolean | undefined;
|
|
41
39
|
};
|
|
40
|
+
name: "save-assets";
|
|
41
|
+
findBy: "cssSelector" | "xpath";
|
|
42
42
|
}>;
|
|
43
43
|
export declare function validateSaveAssetsBlock(data: unknown): SaveAssetsBlock;
|
|
44
44
|
export declare function handlerSaveAssets(data: SaveAssetsBlock): Promise<BlockResult<string[] | null>>;
|
|
@@ -16,13 +16,13 @@ export declare const ScrollBlockSchema: z.ZodObject<{
|
|
|
16
16
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
multiple?: boolean | undefined;
|
|
19
20
|
waitForSelector?: boolean | undefined;
|
|
20
21
|
waitSelectorTimeout?: number | undefined;
|
|
21
|
-
multiple?: boolean | undefined;
|
|
22
22
|
}, {
|
|
23
|
+
multiple?: boolean | undefined;
|
|
23
24
|
waitForSelector?: boolean | undefined;
|
|
24
25
|
waitSelectorTimeout?: number | undefined;
|
|
25
|
-
multiple?: boolean | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
} & {
|
|
28
28
|
name: z.ZodLiteral<"scroll">;
|
|
@@ -32,28 +32,28 @@ export declare const ScrollBlockSchema: z.ZodObject<{
|
|
|
32
32
|
maxScrolls: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
waitAfterScroll: z.ZodOptional<z.ZodNumber>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
name: "scroll";
|
|
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
|
};
|
|
41
|
+
name: "scroll";
|
|
42
|
+
findBy: "cssSelector" | "xpath";
|
|
43
43
|
behavior?: "auto" | "smooth" | undefined;
|
|
44
44
|
scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
|
|
45
45
|
distance?: number | undefined;
|
|
46
46
|
maxScrolls?: number | undefined;
|
|
47
47
|
waitAfterScroll?: number | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
name: "scroll";
|
|
50
49
|
selector: string;
|
|
51
|
-
findBy: "cssSelector" | "xpath";
|
|
52
50
|
option: {
|
|
51
|
+
multiple?: boolean | undefined;
|
|
53
52
|
waitForSelector?: boolean | undefined;
|
|
54
53
|
waitSelectorTimeout?: number | undefined;
|
|
55
|
-
multiple?: boolean | undefined;
|
|
56
54
|
};
|
|
55
|
+
name: "scroll";
|
|
56
|
+
findBy: "cssSelector" | "xpath";
|
|
57
57
|
behavior?: "auto" | "smooth" | undefined;
|
|
58
58
|
scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
|
|
59
59
|
distance?: number | undefined;
|
|
@@ -13,38 +13,38 @@ export declare const SetValueFormsBlockSchema: z.ZodObject<{
|
|
|
13
13
|
waitSelectorTimeout: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
multiple?: boolean | undefined;
|
|
16
17
|
waitForSelector?: boolean | undefined;
|
|
17
18
|
waitSelectorTimeout?: number | undefined;
|
|
18
|
-
multiple?: boolean | undefined;
|
|
19
19
|
}, {
|
|
20
|
+
multiple?: boolean | undefined;
|
|
20
21
|
waitForSelector?: boolean | undefined;
|
|
21
22
|
waitSelectorTimeout?: number | undefined;
|
|
22
|
-
multiple?: boolean | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
} & {
|
|
25
25
|
name: z.ZodLiteral<"set-value-form">;
|
|
26
26
|
setValue: z.ZodString;
|
|
27
27
|
type: z.ZodOptional<z.ZodEnum<["text-field", "select", "checkbox"]>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
name: "set-value-form";
|
|
30
29
|
selector: string;
|
|
31
|
-
findBy: "cssSelector" | "xpath";
|
|
32
30
|
option: {
|
|
31
|
+
multiple?: boolean | undefined;
|
|
33
32
|
waitForSelector?: boolean | undefined;
|
|
34
33
|
waitSelectorTimeout?: number | undefined;
|
|
35
|
-
multiple?: boolean | undefined;
|
|
36
34
|
};
|
|
35
|
+
name: "set-value-form";
|
|
36
|
+
findBy: "cssSelector" | "xpath";
|
|
37
37
|
setValue: string;
|
|
38
38
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
name: "set-value-form";
|
|
41
40
|
selector: string;
|
|
42
|
-
findBy: "cssSelector" | "xpath";
|
|
43
41
|
option: {
|
|
42
|
+
multiple?: boolean | undefined;
|
|
44
43
|
waitForSelector?: boolean | undefined;
|
|
45
44
|
waitSelectorTimeout?: number | undefined;
|
|
46
|
-
multiple?: boolean | undefined;
|
|
47
45
|
};
|
|
46
|
+
name: "set-value-form";
|
|
47
|
+
findBy: "cssSelector" | "xpath";
|
|
48
48
|
setValue: string;
|
|
49
49
|
type?: "select" | "text-field" | "checkbox" | undefined;
|
|
50
50
|
}>;
|