@semiont/make-meaning 0.2.30-build.61 → 0.2.30-build.62
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.ts +24 -24
- package/dist/index.js +432 -356
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { components, AnnotationUri } from '@semiont/api-client';
|
|
|
2
2
|
import { ResourceId, EnvironmentConfig, ResourceAnnotations, AnnotationId, AnnotationCategory, GraphPath, GraphConnection } from '@semiont/core';
|
|
3
3
|
import { CommentMatch, HighlightMatch, AssessmentMatch, TagMatch } from '@semiont/inference';
|
|
4
4
|
export { AssessmentMatch, CommentMatch, HighlightMatch, TagMatch } from '@semiont/inference';
|
|
5
|
-
import { JobWorker, JobQueue,
|
|
5
|
+
import { JobWorker, JobQueue, AnyJob } from '@semiont/jobs';
|
|
6
6
|
import { EventStore } from '@semiont/event-sourcing';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -245,13 +245,13 @@ declare class CommentDetectionWorker extends JobWorker {
|
|
|
245
245
|
private isFirstProgress;
|
|
246
246
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
247
247
|
protected getWorkerName(): string;
|
|
248
|
-
protected canProcessJob(job:
|
|
249
|
-
protected executeJob(job:
|
|
248
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
249
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
250
250
|
/**
|
|
251
251
|
* Override updateJobProgress to emit events to Event Store
|
|
252
252
|
*/
|
|
253
|
-
protected updateJobProgress(job:
|
|
254
|
-
protected handleJobFailure(job:
|
|
253
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
254
|
+
protected handleJobFailure(job: AnyJob, error: any): Promise<void>;
|
|
255
255
|
private processCommentDetectionJob;
|
|
256
256
|
private createCommentAnnotation;
|
|
257
257
|
}
|
|
@@ -269,13 +269,13 @@ declare class HighlightDetectionWorker extends JobWorker {
|
|
|
269
269
|
private isFirstProgress;
|
|
270
270
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
271
271
|
protected getWorkerName(): string;
|
|
272
|
-
protected canProcessJob(job:
|
|
273
|
-
protected executeJob(job:
|
|
272
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
273
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
274
274
|
/**
|
|
275
275
|
* Override updateJobProgress to emit events to Event Store
|
|
276
276
|
*/
|
|
277
|
-
protected updateJobProgress(job:
|
|
278
|
-
protected handleJobFailure(job:
|
|
277
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
278
|
+
protected handleJobFailure(job: AnyJob, error: any): Promise<void>;
|
|
279
279
|
private processHighlightDetectionJob;
|
|
280
280
|
private createHighlightAnnotation;
|
|
281
281
|
}
|
|
@@ -293,13 +293,13 @@ declare class AssessmentDetectionWorker extends JobWorker {
|
|
|
293
293
|
private isFirstProgress;
|
|
294
294
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
295
295
|
protected getWorkerName(): string;
|
|
296
|
-
protected canProcessJob(job:
|
|
297
|
-
protected executeJob(job:
|
|
296
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
297
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
298
298
|
/**
|
|
299
299
|
* Override updateJobProgress to emit events to Event Store
|
|
300
300
|
*/
|
|
301
|
-
protected updateJobProgress(job:
|
|
302
|
-
protected handleJobFailure(job:
|
|
301
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
302
|
+
protected handleJobFailure(job: AnyJob, error: any): Promise<void>;
|
|
303
303
|
private processAssessmentDetectionJob;
|
|
304
304
|
private createAssessmentAnnotation;
|
|
305
305
|
}
|
|
@@ -318,13 +318,13 @@ declare class TagDetectionWorker extends JobWorker {
|
|
|
318
318
|
private isFirstProgress;
|
|
319
319
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
320
320
|
protected getWorkerName(): string;
|
|
321
|
-
protected canProcessJob(job:
|
|
322
|
-
protected executeJob(job:
|
|
321
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
322
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
323
323
|
/**
|
|
324
324
|
* Override updateJobProgress to emit events to Event Store
|
|
325
325
|
*/
|
|
326
|
-
protected updateJobProgress(job:
|
|
327
|
-
protected handleJobFailure(job:
|
|
326
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
327
|
+
protected handleJobFailure(job: AnyJob, error: any): Promise<void>;
|
|
328
328
|
private processTagDetectionJob;
|
|
329
329
|
private createTagAnnotation;
|
|
330
330
|
}
|
|
@@ -356,8 +356,8 @@ declare class ReferenceDetectionWorker extends JobWorker {
|
|
|
356
356
|
private eventStore;
|
|
357
357
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
358
358
|
protected getWorkerName(): string;
|
|
359
|
-
protected canProcessJob(job:
|
|
360
|
-
protected executeJob(job:
|
|
359
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
360
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
361
361
|
/**
|
|
362
362
|
* Detect entity references in resource using AI
|
|
363
363
|
* Self-contained implementation for reference detection
|
|
@@ -366,12 +366,12 @@ declare class ReferenceDetectionWorker extends JobWorker {
|
|
|
366
366
|
*/
|
|
367
367
|
detectReferences(resource: ResourceDescriptor, entityTypes: string[], includeDescriptiveReferences?: boolean): Promise<DetectedAnnotation[]>;
|
|
368
368
|
private processDetectionJob;
|
|
369
|
-
protected handleJobFailure(job:
|
|
369
|
+
protected handleJobFailure(job: AnyJob, error: any): Promise<void>;
|
|
370
370
|
/**
|
|
371
371
|
* Update job progress and emit events to Event Store
|
|
372
372
|
* Overrides base class to also emit job progress events
|
|
373
373
|
*/
|
|
374
|
-
protected updateJobProgress(job:
|
|
374
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
/**
|
|
@@ -388,14 +388,14 @@ declare class GenerationWorker extends JobWorker {
|
|
|
388
388
|
private eventStore;
|
|
389
389
|
constructor(jobQueue: JobQueue, config: EnvironmentConfig, eventStore: EventStore);
|
|
390
390
|
protected getWorkerName(): string;
|
|
391
|
-
protected canProcessJob(job:
|
|
392
|
-
protected executeJob(job:
|
|
391
|
+
protected canProcessJob(job: AnyJob): boolean;
|
|
392
|
+
protected executeJob(job: AnyJob): Promise<void>;
|
|
393
393
|
private processGenerationJob;
|
|
394
394
|
/**
|
|
395
395
|
* Update job progress and emit events to Event Store
|
|
396
396
|
* Overrides base class to also emit job progress events
|
|
397
397
|
*/
|
|
398
|
-
protected updateJobProgress(job:
|
|
398
|
+
protected updateJobProgress(job: AnyJob): Promise<void>;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
declare const PACKAGE_NAME = "@semiont/make-meaning";
|