@memberjunction/queue 1.8.1 → 2.0.0
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.
|
@@ -24,7 +24,7 @@ export declare class TaskBase {
|
|
|
24
24
|
private _status;
|
|
25
25
|
get Options(): TaskOptions;
|
|
26
26
|
get Data(): any;
|
|
27
|
-
get ID():
|
|
27
|
+
get ID(): string;
|
|
28
28
|
constructor(taskRecord: QueueTaskEntity, data: any, options: TaskOptions);
|
|
29
29
|
get TaskRecord(): QueueTaskEntity;
|
|
30
30
|
get Status(): TaskStatus;
|
|
@@ -37,14 +37,14 @@ export declare abstract class QueueBase {
|
|
|
37
37
|
private _maxTasks;
|
|
38
38
|
private _checkInterval;
|
|
39
39
|
private _queueRecord;
|
|
40
|
-
constructor(QueueRecord: QueueEntity, QueueTypeID:
|
|
41
|
-
get QueueID():
|
|
42
|
-
get QueueTypeID():
|
|
40
|
+
constructor(QueueRecord: QueueEntity, QueueTypeID: string, ContextUser: UserInfo);
|
|
41
|
+
get QueueID(): string;
|
|
42
|
+
get QueueTypeID(): string;
|
|
43
43
|
private _processing;
|
|
44
44
|
protected ProcessTasks(): void;
|
|
45
45
|
AddTask(task: TaskBase): boolean;
|
|
46
46
|
protected abstract ProcessTask(task: TaskBase, contextUser: UserInfo): Promise<TaskResult>;
|
|
47
47
|
protected StartTask(task: TaskBase, contextUser: UserInfo): Promise<TaskResult>;
|
|
48
|
-
FindTask(ID:
|
|
48
|
+
FindTask(ID: string): TaskBase;
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=QueueBase.d.ts.map
|
|
@@ -27,7 +27,7 @@ export declare class QueueManager {
|
|
|
27
27
|
protected loadQueueTypes(contextUser: UserInfo): Promise<void>;
|
|
28
28
|
constructor();
|
|
29
29
|
static AddTask(QueueType: string, data: any, options: any, contextUser: UserInfo): Promise<TaskBase | undefined>;
|
|
30
|
-
AddTask(QueueTypeID:
|
|
30
|
+
AddTask(QueueTypeID: string, data: any, options: any, contextUser: UserInfo): Promise<TaskBase | undefined>;
|
|
31
31
|
private ongoingQueueCreations;
|
|
32
32
|
protected CheckCreateQueue(queueType: QueueTypeEntity, contextUser: UserInfo): Promise<QueueBase | undefined>;
|
|
33
33
|
protected CreateQueue(queueType: QueueTypeEntity, contextUser: UserInfo): Promise<QueueBase | null | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/queue",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "MemberJunction: Queue Library for managing server side queues",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/ai": "
|
|
23
|
-
"@memberjunction/aiengine": "
|
|
24
|
-
"@memberjunction/core": "
|
|
25
|
-
"@memberjunction/global": "
|
|
26
|
-
"@memberjunction/core-entities": "
|
|
22
|
+
"@memberjunction/ai": "2.0.0",
|
|
23
|
+
"@memberjunction/aiengine": "2.0.0",
|
|
24
|
+
"@memberjunction/core": "2.0.0",
|
|
25
|
+
"@memberjunction/global": "2.0.0",
|
|
26
|
+
"@memberjunction/core-entities": "2.0.0",
|
|
27
27
|
"@types/uuid": "^9.0.1",
|
|
28
28
|
"uuid": "^9.0.0"
|
|
29
29
|
}
|