@kadoa/node-sdk 0.19.0 → 0.19.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/dist/browser/index.global.js +13 -13
- package/dist/browser/index.global.js.map +1 -1
- package/dist/index.d.mts +67 -1
- package/dist/index.d.ts +67 -1
- package/dist/index.js +20 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4590,7 +4590,11 @@ var ExtractionBuilderService = class {
|
|
|
4590
4590
|
navigationMode,
|
|
4591
4591
|
extraction,
|
|
4592
4592
|
additionalData,
|
|
4593
|
-
bypassPreview
|
|
4593
|
+
bypassPreview,
|
|
4594
|
+
userPrompt,
|
|
4595
|
+
interval,
|
|
4596
|
+
schedules,
|
|
4597
|
+
location
|
|
4594
4598
|
}) {
|
|
4595
4599
|
let entity = "ai-detection";
|
|
4596
4600
|
if (extraction) {
|
|
@@ -4602,6 +4606,9 @@ var ExtractionBuilderService = class {
|
|
|
4602
4606
|
entity = builtSchema.entityName ? { name: builtSchema.entityName, fields: builtSchema.fields } : { fields: builtSchema.fields };
|
|
4603
4607
|
}
|
|
4604
4608
|
}
|
|
4609
|
+
if (userPrompt) {
|
|
4610
|
+
this._userPrompt = userPrompt;
|
|
4611
|
+
}
|
|
4605
4612
|
this._options = {
|
|
4606
4613
|
urls,
|
|
4607
4614
|
name,
|
|
@@ -4609,7 +4616,11 @@ var ExtractionBuilderService = class {
|
|
|
4609
4616
|
navigationMode: navigationMode || "single-page",
|
|
4610
4617
|
entity,
|
|
4611
4618
|
bypassPreview: bypassPreview ?? false,
|
|
4612
|
-
additionalData
|
|
4619
|
+
additionalData,
|
|
4620
|
+
userPrompt,
|
|
4621
|
+
interval,
|
|
4622
|
+
schedules,
|
|
4623
|
+
location
|
|
4613
4624
|
};
|
|
4614
4625
|
return this;
|
|
4615
4626
|
}
|
|
@@ -4671,15 +4682,12 @@ var ExtractionBuilderService = class {
|
|
|
4671
4682
|
fields: typeof entity === "object" && "fields" in entity ? entity.fields : []
|
|
4672
4683
|
};
|
|
4673
4684
|
} else {
|
|
4674
|
-
resolvedEntity = await this.entityResolverService.resolveEntity(
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
selectorMode: useSelectorMode
|
|
4681
|
-
}
|
|
4682
|
-
);
|
|
4685
|
+
resolvedEntity = await this.entityResolverService.resolveEntity(entity, {
|
|
4686
|
+
link: urls[0],
|
|
4687
|
+
location: this._options.location,
|
|
4688
|
+
navigationMode,
|
|
4689
|
+
selectorMode: useSelectorMode
|
|
4690
|
+
});
|
|
4683
4691
|
}
|
|
4684
4692
|
const workflow = await this.workflowsCoreService.create({
|
|
4685
4693
|
urls,
|
|
@@ -5219,7 +5227,7 @@ var WSS_API_URI = process.env.KADOA_WSS_API_URI ?? "wss://realtime.kadoa.com";
|
|
|
5219
5227
|
var REALTIME_API_URI = process.env.KADOA_REALTIME_API_URI ?? "https://realtime.kadoa.com";
|
|
5220
5228
|
|
|
5221
5229
|
// src/version.ts
|
|
5222
|
-
var SDK_VERSION = "0.19.
|
|
5230
|
+
var SDK_VERSION = "0.19.2";
|
|
5223
5231
|
var SDK_NAME = "kadoa-node-sdk";
|
|
5224
5232
|
var SDK_LANGUAGE = "node";
|
|
5225
5233
|
|