@spider-cloud/spider-client 0.1.74 → 0.1.77
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/config.d.ts +11 -23
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -135,84 +135,72 @@ type CSSExtractionMap = {
|
|
|
135
135
|
[path: string]: CSSSelector[];
|
|
136
136
|
};
|
|
137
137
|
export type Evaluate = {
|
|
138
|
-
type: "Evaluate";
|
|
139
138
|
/** Rust: Evaluate(String) */
|
|
140
139
|
code: string;
|
|
141
140
|
};
|
|
142
141
|
export type Click = {
|
|
143
|
-
type: "Click";
|
|
144
142
|
/** Rust: Click(String) */
|
|
145
143
|
selector: string;
|
|
146
144
|
};
|
|
147
145
|
export type ClickAll = {
|
|
148
|
-
type: "ClickAll";
|
|
149
146
|
/** Rust: ClickAll(String) */
|
|
150
147
|
selector: string;
|
|
151
148
|
};
|
|
152
|
-
export type ClickAllClickable = {
|
|
153
|
-
|
|
149
|
+
export type ClickAllClickable = {};
|
|
150
|
+
export type ClickPoint = {
|
|
151
|
+
x: number;
|
|
152
|
+
y: number;
|
|
154
153
|
};
|
|
155
154
|
export type Wait = {
|
|
156
|
-
type: "Wait";
|
|
157
155
|
/** Rust: u64 (milliseconds) */
|
|
158
156
|
ms: number;
|
|
159
157
|
};
|
|
160
|
-
export type WaitForNavigation = {
|
|
161
|
-
type: "WaitForNavigation";
|
|
162
|
-
};
|
|
158
|
+
export type WaitForNavigation = {};
|
|
163
159
|
export type WaitForDom = {
|
|
164
|
-
type: "WaitForDom";
|
|
165
160
|
/** Rust: Option<String> */
|
|
166
161
|
selector?: string | null;
|
|
167
162
|
/** Rust: u32 (milliseconds) */
|
|
168
163
|
timeout: number;
|
|
169
164
|
};
|
|
170
165
|
export type WaitFor = {
|
|
171
|
-
type: "WaitFor";
|
|
172
|
-
/** Rust: String */
|
|
173
166
|
selector: string;
|
|
174
167
|
};
|
|
175
168
|
export type WaitForWithTimeout = {
|
|
176
|
-
type: "WaitForWithTimeout";
|
|
177
169
|
selector: string;
|
|
178
170
|
/** Rust: u64 (milliseconds) */
|
|
179
171
|
timeout: number;
|
|
180
172
|
};
|
|
181
173
|
export type WaitForAndClick = {
|
|
182
|
-
type: "WaitForAndClick";
|
|
183
174
|
selector: string;
|
|
184
175
|
};
|
|
185
176
|
export type ScrollX = {
|
|
186
|
-
type: "ScrollX";
|
|
187
177
|
/** Rust: i32 (pixels) */
|
|
188
178
|
dx: number;
|
|
189
179
|
};
|
|
190
180
|
export type ScrollY = {
|
|
191
|
-
type: "ScrollY";
|
|
192
181
|
/** Rust: i32 (pixels) */
|
|
193
182
|
dy: number;
|
|
194
183
|
};
|
|
195
184
|
export type Fill = {
|
|
196
|
-
type: "Fill";
|
|
197
185
|
selector: string;
|
|
198
186
|
value: string;
|
|
199
187
|
};
|
|
188
|
+
export type Type = {
|
|
189
|
+
modifier: number;
|
|
190
|
+
value: string;
|
|
191
|
+
};
|
|
200
192
|
export type InfiniteScroll = {
|
|
201
|
-
type: "InfiniteScroll";
|
|
202
193
|
/** Rust: u32 (pixels/step or count—match your semantics) */
|
|
203
194
|
step_px: number;
|
|
204
195
|
};
|
|
205
196
|
export type Screenshot = {
|
|
206
|
-
type: "Screenshot";
|
|
207
197
|
/** Keep snake_case to match Rust JSON if interop is needed */
|
|
208
198
|
full_page: boolean;
|
|
209
199
|
omit_background: boolean;
|
|
210
200
|
output: string;
|
|
211
201
|
};
|
|
212
|
-
export type ValidateChain = {
|
|
213
|
-
|
|
214
|
-
};
|
|
215
|
-
export type WebAutomation = Evaluate | Click | ClickAll | ClickAllClickable | Wait | WaitForNavigation | WaitForDom | WaitFor | WaitForWithTimeout | WaitForAndClick | ScrollX | ScrollY | Fill | InfiniteScroll | Screenshot | ValidateChain;
|
|
202
|
+
export type ValidateChain = {};
|
|
203
|
+
export type WebAutomation = Evaluate | Click | ClickAll | ClickAllClickable | ClickPoint | Wait | WaitForNavigation | WaitForDom | WaitFor | WaitForWithTimeout | WaitForAndClick | ScrollX | ScrollY | Fill | Type | InfiniteScroll | Screenshot | ValidateChain;
|
|
216
204
|
export type ReturnFormat = "markdown" | "commonmark" | "raw" | "screenshot" | "text" | "html2text" | "bytes" | "xml" | "empty";
|
|
217
205
|
export type WebAutomationMap = Record<string, WebAutomation[]>;
|
|
218
206
|
export type ExecutionScriptsMap = Record<string, string>;
|