@productcraft/trawl 0.1.1 → 0.1.3

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 CHANGED
@@ -29,7 +29,7 @@ const trawl = new Trawl({ auth: { type: "apiKey", key: process.env.PCFT_KEY! } }
29
29
  const { data, error } = await trawl.client.POST(
30
30
  "/v1/workspaces/{workspaceId}/jobs",
31
31
  {
32
- params: { path: { workspaceId: "ws_..." } },
32
+ params: { path: { workspaceId: "<workspace-uuid>" } },
33
33
  body: {
34
34
  description: "Extract the product title and price from each page.",
35
35
  json_schema: {
@@ -43,7 +43,7 @@ const { data, error } = await trawl.client.POST(
43
43
  );
44
44
 
45
45
  if (error) throw error;
46
- console.log(data.id, data.status); // → "job_...", "queued"
46
+ console.log(data.id, data.status); // → "<job-uuid>", "queued"
47
47
  ```
48
48
 
49
49
  Poll `GET /v1/workspaces/{workspaceId}/jobs/{id}` for the result, or