tango-api-schema 2.6.64 → 2.6.66

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/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.6.64",
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.6.66",
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
  }
@@ -25,7 +25,7 @@ const findReplaceAi = new mongoose.Schema(
25
25
  replacePrompt: {
26
26
  type: String,
27
27
  },
28
- replaceBrand: {
28
+ replaceBrand: {
29
29
  _id: { type: String },
30
30
  brandName: { type: String },
31
31
  },
@@ -111,6 +111,12 @@ const findReplaceAi = new mongoose.Schema(
111
111
  batchMetadata: {
112
112
  type: mongoose.Schema.Types.Mixed,
113
113
  },
114
+ createdBy: {
115
+ type: String,
116
+ },
117
+ approvedAt: {
118
+ type: Date,
119
+ },
114
120
  },
115
121
  {
116
122
  strict: true,
@@ -126,6 +126,11 @@ const processedchecklistSchema = new mongoose.Schema({
126
126
  submitTime:{
127
127
  type: Date,
128
128
  },
129
+ // First submission instant; unlike submitTime it is never overwritten
130
+ // when a redo makes the user submit the checklist again
131
+ firstSubmitTime:{
132
+ type: Date,
133
+ },
129
134
  startTime_string:{
130
135
  type: String,
131
136
  },