tango-api-schema 2.3.33 → 2.4.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.
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,28 +1,28 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.3.33",
4
- "description": "tangoEye model schema",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "start": "node index.js",
10
- "build:patch": "node build.js patch && npm publish",
11
- "build:minor": "node build.js minor && npm publish",
12
- "build:major": "node build.js major && npm publish"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
- },
18
- "author": "praveenraj",
19
- "license": "ISC",
20
- "bugs": {
21
- "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
- },
23
- "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
- "dependencies": {
25
- "express": "^4.21.1",
26
- "mongoose": "^7.5.3"
27
- }
1
+ {
2
+ "name": "tango-api-schema",
3
+ "version": "2.4.0",
4
+ "description": "tangoEye model schema",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "start": "node index.js",
10
+ "build:patch": "node build.js patch && npm publish",
11
+ "build:minor": "node build.js minor && npm publish",
12
+ "build:major": "node build.js major && npm publish"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
+ },
18
+ "author": "praveenraj",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
+ },
23
+ "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
+ "dependencies": {
25
+ "express": "^4.21.1",
26
+ "mongoose": "^7.5.3"
27
+ }
28
28
  }
@@ -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,
@@ -211,9 +211,6 @@ const fixtureConfigSchema = new mongoose.Schema(
211
211
  },
212
212
  isEdited: {
213
213
  type: Boolean,
214
- },
215
- templateGroupNumber:{
216
- type:Number
217
214
  }
218
215
  },
219
216
  {
@@ -348,16 +348,6 @@ const planoTaskCompliance = new mongoose.Schema(
348
348
  }
349
349
  ]
350
350
  }
351
- ],
352
- zoneStatus:[
353
- {
354
- zone:{
355
- type:String
356
- },
357
- status:{
358
- type:String
359
- }
360
- }
361
351
  ]
362
352
  }],
363
353
  planoId: {
@@ -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,
@@ -216,9 +216,6 @@ const storeFixtureSchema = new mongoose.Schema(
216
216
  templateGroupName: {
217
217
  type: String
218
218
  },
219
- templateGroupNumber:{
220
- type:Number
221
- }
222
219
 
223
220
  },
224
221
  {