gemcap-be-common 1.5.118 → 1.5.120

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.
@@ -2,6 +2,14 @@ export declare const TaskStatus: {
2
2
  readonly PENDING: "PENDING";
3
3
  readonly IN_PROGRESS: "IN_PROGRESS";
4
4
  readonly SUCCESS: "SUCCESS";
5
+ readonly STOPPED: "STOPPED";
5
6
  readonly FAILED: "FAILED";
6
7
  };
8
+ export declare const TaskStatusDictionary: {
9
+ readonly PENDING: "Pending";
10
+ readonly IN_PROGRESS: "In Progress";
11
+ readonly SUCCESS: "Success";
12
+ readonly STOPPED: "Stopped";
13
+ readonly FAILED: "Failed";
14
+ };
7
15
  export type TTaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskStatus = void 0;
3
+ exports.TaskStatusDictionary = exports.TaskStatus = void 0;
4
4
  exports.TaskStatus = {
5
5
  PENDING: 'PENDING',
6
6
  IN_PROGRESS: 'IN_PROGRESS',
7
7
  SUCCESS: 'SUCCESS',
8
+ STOPPED: 'STOPPED',
8
9
  FAILED: 'FAILED',
9
10
  };
11
+ exports.TaskStatusDictionary = {
12
+ [exports.TaskStatus.PENDING]: 'Pending',
13
+ [exports.TaskStatus.IN_PROGRESS]: 'In Progress',
14
+ [exports.TaskStatus.SUCCESS]: 'Success',
15
+ [exports.TaskStatus.STOPPED]: 'Stopped',
16
+ [exports.TaskStatus.FAILED]: 'Failed',
17
+ };
@@ -2,7 +2,16 @@ export const TaskStatus = {
2
2
  PENDING: 'PENDING',
3
3
  IN_PROGRESS: 'IN_PROGRESS',
4
4
  SUCCESS: 'SUCCESS',
5
+ STOPPED: 'STOPPED',
5
6
  FAILED: 'FAILED',
6
7
  } as const;
7
8
 
9
+ export const TaskStatusDictionary = {
10
+ [TaskStatus.PENDING]: 'Pending',
11
+ [TaskStatus.IN_PROGRESS]: 'In Progress',
12
+ [TaskStatus.SUCCESS]: 'Success',
13
+ [TaskStatus.STOPPED]: 'Stopped',
14
+ [TaskStatus.FAILED]: 'Failed',
15
+ } as const;
16
+
8
17
  export type TTaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
@@ -74,6 +74,9 @@ export interface IAIJob {
74
74
 
75
75
  startedAt?: Date;
76
76
  completedAt?: Date;
77
+ email?: {
78
+ variables: Record<string, string>;
79
+ };
77
80
  }
78
81
 
79
82
  export type TAIJobDoc = mongoose.HydratedDocument<IAIJob>;
@@ -124,6 +127,10 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
124
127
 
125
128
  context: mongoose.Schema.Types.Mixed,
126
129
 
130
+ email: {
131
+ variables: mongoose.Schema.Types.Mixed
132
+ },
133
+
127
134
  inputFiles: [{
128
135
  storageFileId: {
129
136
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.118",
3
+ "version": "1.5.120",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {