@kadoa/node-sdk 0.19.1 → 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/index.d.mts CHANGED
@@ -6382,7 +6382,7 @@ declare class ExtractionBuilderService {
6382
6382
  get workflowId(): string;
6383
6383
  get jobId(): string;
6384
6384
  constructor(workflowsCoreService: WorkflowsCoreService, entityResolverService: EntityResolverService, dataFetcherService: DataFetcherService, notificationSetupService: NotificationSetupService);
6385
- extract({ urls, name, description, navigationMode, extraction, additionalData, bypassPreview, }: ExtractOptions): PreparedExtraction;
6385
+ extract({ urls, name, description, navigationMode, extraction, additionalData, bypassPreview, userPrompt, interval, schedules, location, }: ExtractOptions): PreparedExtraction;
6386
6386
  withNotifications(options: Omit<NotificationOptions, "workflowId">): PreparedExtraction;
6387
6387
  withMonitoring(options: WorkflowMonitoringConfig): PreparedExtraction;
6388
6388
  bypassPreview(): PreparedExtraction;
package/dist/index.d.ts CHANGED
@@ -6382,7 +6382,7 @@ declare class ExtractionBuilderService {
6382
6382
  get workflowId(): string;
6383
6383
  get jobId(): string;
6384
6384
  constructor(workflowsCoreService: WorkflowsCoreService, entityResolverService: EntityResolverService, dataFetcherService: DataFetcherService, notificationSetupService: NotificationSetupService);
6385
- extract({ urls, name, description, navigationMode, extraction, additionalData, bypassPreview, }: ExtractOptions): PreparedExtraction;
6385
+ extract({ urls, name, description, navigationMode, extraction, additionalData, bypassPreview, userPrompt, interval, schedules, location, }: ExtractOptions): PreparedExtraction;
6386
6386
  withNotifications(options: Omit<NotificationOptions, "workflowId">): PreparedExtraction;
6387
6387
  withMonitoring(options: WorkflowMonitoringConfig): PreparedExtraction;
6388
6388
  bypassPreview(): PreparedExtraction;
package/dist/index.js CHANGED
@@ -4598,7 +4598,11 @@ var ExtractionBuilderService = class {
4598
4598
  navigationMode,
4599
4599
  extraction,
4600
4600
  additionalData,
4601
- bypassPreview
4601
+ bypassPreview,
4602
+ userPrompt,
4603
+ interval,
4604
+ schedules,
4605
+ location
4602
4606
  }) {
4603
4607
  let entity = "ai-detection";
4604
4608
  if (extraction) {
@@ -4610,6 +4614,9 @@ var ExtractionBuilderService = class {
4610
4614
  entity = builtSchema.entityName ? { name: builtSchema.entityName, fields: builtSchema.fields } : { fields: builtSchema.fields };
4611
4615
  }
4612
4616
  }
4617
+ if (userPrompt) {
4618
+ this._userPrompt = userPrompt;
4619
+ }
4613
4620
  this._options = {
4614
4621
  urls,
4615
4622
  name,
@@ -4617,7 +4624,11 @@ var ExtractionBuilderService = class {
4617
4624
  navigationMode: navigationMode || "single-page",
4618
4625
  entity,
4619
4626
  bypassPreview: bypassPreview ?? false,
4620
- additionalData
4627
+ additionalData,
4628
+ userPrompt,
4629
+ interval,
4630
+ schedules,
4631
+ location
4621
4632
  };
4622
4633
  return this;
4623
4634
  }
@@ -4679,15 +4690,12 @@ var ExtractionBuilderService = class {
4679
4690
  fields: typeof entity === "object" && "fields" in entity ? entity.fields : []
4680
4691
  };
4681
4692
  } else {
4682
- resolvedEntity = await this.entityResolverService.resolveEntity(
4683
- entity,
4684
- {
4685
- link: urls[0],
4686
- location: this._options.location,
4687
- navigationMode,
4688
- selectorMode: useSelectorMode
4689
- }
4690
- );
4693
+ resolvedEntity = await this.entityResolverService.resolveEntity(entity, {
4694
+ link: urls[0],
4695
+ location: this._options.location,
4696
+ navigationMode,
4697
+ selectorMode: useSelectorMode
4698
+ });
4691
4699
  }
4692
4700
  const workflow = await this.workflowsCoreService.create({
4693
4701
  urls,
@@ -5227,7 +5235,7 @@ var WSS_API_URI = process.env.KADOA_WSS_API_URI ?? "wss://realtime.kadoa.com";
5227
5235
  var REALTIME_API_URI = process.env.KADOA_REALTIME_API_URI ?? "https://realtime.kadoa.com";
5228
5236
 
5229
5237
  // src/version.ts
5230
- var SDK_VERSION = "0.19.1";
5238
+ var SDK_VERSION = "0.19.2";
5231
5239
  var SDK_NAME = "kadoa-node-sdk";
5232
5240
  var SDK_LANGUAGE = "node";
5233
5241