tango-api-schema 2.3.34 → 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 +3 -1
- package/package.json +27 -27
- package/schema/copilotMachineConfig.model.js +32 -0
- package/schema/download.js +5 -2
- package/schema/fixtureConfig.model.js +0 -6
- package/schema/planoTaskCompliance.model.js +0 -10
- package/schema/runAIRequest.js +6 -0
- package/schema/storeFixture.model.js +0 -6
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.
|
|
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');
|
package/schema/download.js
CHANGED
|
@@ -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,
|
package/schema/runAIRequest.js
CHANGED