gemcap-be-common 1.5.103 → 1.5.104

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.
@@ -29,7 +29,7 @@
29
29
  /// <reference types="mongoose/types/inferschematype" />
30
30
  import mongoose from 'mongoose';
31
31
  import { TTaskStatus } from '../interfaces/task.interface';
32
- export interface IAiAnalysisJob {
32
+ export interface IAIJob {
33
33
  taskId: string;
34
34
  userId: string;
35
35
  status: TTaskStatus;
@@ -53,19 +53,19 @@ export interface IAiAnalysisJob {
53
53
  startedAt?: Date;
54
54
  completedAt?: Date;
55
55
  }
56
- export type TAiAnalysisJobDoc = mongoose.HydratedDocument<IAiAnalysisJob>;
57
- export interface IAiAnalysisJobLean extends IAiAnalysisJob {
56
+ export type TAIJobDoc = mongoose.HydratedDocument<IAIJob>;
57
+ export interface IAIJobLean extends IAIJob {
58
58
  _id: mongoose.Types.ObjectId;
59
59
  createdAt: Date;
60
60
  updatedAt: Date;
61
61
  }
62
- export interface IAiAnalysisJobPlain extends IAiAnalysisJob {
62
+ export interface IAIJobPlain extends IAIJob {
63
63
  _id: string;
64
64
  createdAt: Date;
65
65
  updatedAt: Date;
66
66
  }
67
- export type TAiAnalysisJobModel = mongoose.Model<IAiAnalysisJob>;
68
- export declare const AiAnalysisJobSchema: mongoose.Schema<IAiAnalysisJob, TAiAnalysisJobModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAiAnalysisJob, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAiAnalysisJob>> & mongoose.FlatRecord<IAiAnalysisJob> & {
67
+ export type TAIJobModel = mongoose.Model<IAIJob>;
68
+ export declare const AIJobSchema: mongoose.Schema<IAIJob, TAIJobModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIJob, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIJob>> & mongoose.FlatRecord<IAIJob> & {
69
69
  _id: mongoose.Types.ObjectId;
70
70
  }>;
71
- export declare const AiAnalysisJob: TAiAnalysisJobModel;
71
+ export declare const AIJob: TAIJobModel;
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AiAnalysisJob = exports.AiAnalysisJobSchema = void 0;
6
+ exports.AIJob = exports.AIJobSchema = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
- exports.AiAnalysisJobSchema = new mongoose_1.default.Schema({
9
+ exports.AIJobSchema = new mongoose_1.default.Schema({
10
10
  taskId: {
11
11
  type: String,
12
12
  required: true,
@@ -93,5 +93,5 @@ exports.AiAnalysisJobSchema = new mongoose_1.default.Schema({
93
93
  timestamps: { createdAt: true, updatedAt: true },
94
94
  versionKey: false,
95
95
  });
96
- exports.AiAnalysisJobSchema.index({ taskId: 1, userId: 1, status: 1 }, { unique: true });
97
- exports.AiAnalysisJob = mongoose_1.default.model(_models_1.MODEL_NAMES.AIJobs, exports.AiAnalysisJobSchema);
96
+ exports.AIJobSchema.index({ taskId: 1, userId: 1, status: 1 }, { unique: true });
97
+ exports.AIJob = mongoose_1.default.model(_models_1.MODEL_NAMES.AIJobs, exports.AIJobSchema);
@@ -3,7 +3,7 @@ import mongoose from 'mongoose';
3
3
  import { MODEL_NAMES } from './_models';
4
4
  import { TTaskStatus } from '../interfaces/task.interface';
5
5
 
6
- export interface IAiAnalysisJob {
6
+ export interface IAIJob {
7
7
  taskId: string;
8
8
  userId: string;
9
9
 
@@ -36,23 +36,23 @@ export interface IAiAnalysisJob {
36
36
  completedAt?: Date;
37
37
  }
38
38
 
39
- export type TAiAnalysisJobDoc = mongoose.HydratedDocument<IAiAnalysisJob>;
39
+ export type TAIJobDoc = mongoose.HydratedDocument<IAIJob>;
40
40
 
41
- export interface IAiAnalysisJobLean extends IAiAnalysisJob {
41
+ export interface IAIJobLean extends IAIJob {
42
42
  _id: mongoose.Types.ObjectId;
43
43
  createdAt: Date;
44
44
  updatedAt: Date;
45
45
  }
46
46
 
47
- export interface IAiAnalysisJobPlain extends IAiAnalysisJob {
47
+ export interface IAIJobPlain extends IAIJob {
48
48
  _id: string;
49
49
  createdAt: Date;
50
50
  updatedAt: Date;
51
51
  }
52
52
 
53
- export type TAiAnalysisJobModel = mongoose.Model<IAiAnalysisJob>;
53
+ export type TAIJobModel = mongoose.Model<IAIJob>;
54
54
 
55
- export const AiAnalysisJobSchema = new mongoose.Schema<IAiAnalysisJob, TAiAnalysisJobModel>(
55
+ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
56
56
  {
57
57
  taskId: {
58
58
  type: String,
@@ -145,9 +145,9 @@ export const AiAnalysisJobSchema = new mongoose.Schema<IAiAnalysisJob, TAiAnalys
145
145
  },
146
146
  );
147
147
 
148
- AiAnalysisJobSchema.index(
148
+ AIJobSchema.index(
149
149
  { taskId: 1, userId: 1, status: 1 },
150
150
  { unique: true },
151
151
  );
152
152
 
153
- export const AiAnalysisJob = mongoose.model<IAiAnalysisJob, TAiAnalysisJobModel>(MODEL_NAMES.AIJobs, AiAnalysisJobSchema);
153
+ export const AIJob = mongoose.model<IAIJob, TAIJobModel>(MODEL_NAMES.AIJobs, AIJobSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.103",
3
+ "version": "1.5.104",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {