tango-api-schema 2.3.34 → 2.4.1

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/index.js CHANGED
@@ -105,6 +105,7 @@ import runAIFeaturesModel from "./schema/runAIFeatures.js";
105
105
  import runAIRequestModel from "./schema/runAIRequest.js";
106
106
  import templateLogSchema from "./schema/templateLog.model.js";
107
107
  import eyeTestConfigurationModel from "./schema/eyeTestConfiguration.model.js";
108
+ import copilotMachineConfigModel from "./schema/copilotMachineConfig.model.js";
108
109
 
109
110
 
110
111
  export default {
@@ -212,5 +213,6 @@ export default {
212
213
  runAIRequestModel,
213
214
  runAIFeaturesModel,
214
215
  templateLogSchema,
215
- eyeTestConfigurationModel
216
+ eyeTestConfigurationModel,
217
+ copilotMachineConfigModel
216
218
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.3.34",
3
+ "version": "2.4.1",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -29,6 +29,9 @@ const appVersionSchema = new mongoose.Schema({
29
29
  clientId: {
30
30
  type: String,
31
31
  },
32
+ scanditKey:{
33
+ type:String
34
+ }
32
35
  },
33
36
  {
34
37
  strict: true,
@@ -0,0 +1,32 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema({
5
+ machineId: {
6
+ type: String,
7
+ required:true
8
+
9
+ },
10
+ clientId: {
11
+ type: String,
12
+
13
+ },
14
+ storeId: {
15
+ type: String,
16
+
17
+ },
18
+ isEnable:{
19
+ type:Boolean
20
+ }
21
+ },
22
+ {
23
+ timestamps: true,
24
+ strict: true,
25
+ versionKey: false,
26
+ });
27
+
28
+ collection.index({ machineId: 1 });
29
+ collection.index({ storeId: 1 });
30
+ collection.index({ clientId: 1 });
31
+
32
+ export default mongoose.model('copilotMachineConfig', collection, 'copilotMachineConfig');
@@ -104,7 +104,7 @@ const downloadSchema = new mongoose.Schema({
104
104
  },
105
105
  checkListName:{
106
106
  type: String,
107
- },
107
+ },
108
108
  downloadInsertFrom: {
109
109
  type: String,
110
110
  enum: ['','report','gallery','dashboard'],
@@ -113,7 +113,10 @@ const downloadSchema = new mongoose.Schema({
113
113
  filtertype: {
114
114
  type: String,
115
115
  enum: ['Clusters','Teams']
116
- },
116
+ },
117
+ aiFilter:{
118
+ type: String,
119
+ },
117
120
  },
118
121
  {
119
122
  strict: true,
@@ -43,6 +43,12 @@ const runAIRequestSchema = new mongoose.Schema({
43
43
  createdBy: {
44
44
  type: String
45
45
  },
46
+ uniqueqid: {
47
+ type: String
48
+ },
49
+ checkListNumber: {
50
+ type: Number,
51
+ },
46
52
  },
47
53
  {
48
54
  strict: true,