tango-api-schema 2.5.28 → 2.5.30

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
@@ -106,6 +106,7 @@ 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
108
  import copilotMachineConfigModel from "./schema/copilotMachineConfig.model.js";
109
+ import findReplaceAiModel from "./schema/findReplaceAi.model.js";
109
110
 
110
111
  import planoDuplicateModel from './schema/planogramDuplicate.model.js'
111
112
  import storeLayoutDuplicateModel from './schema/storeLayoutDuplicate.model.js'
@@ -231,6 +232,7 @@ export default {
231
232
  templateLogSchema,
232
233
  eyeTestConfigurationModel,
233
234
  copilotMachineConfigModel,
235
+ findReplaceAiModel,
234
236
  planoDuplicateModel,
235
237
  storeLayoutDuplicateModel,
236
238
  storeFixtureDuplicateModel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.28",
3
+ "version": "2.5.30",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -131,7 +131,7 @@ const checklistconfigSchema = new mongoose.Schema({
131
131
  checkListType:{
132
132
  type:String,
133
133
  default:"custom",
134
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter']
134
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
135
135
  },
136
136
  createdAt: {
137
137
  type: Date,
@@ -0,0 +1,72 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const findReplaceAi = new mongoose.Schema(
4
+ {
5
+ searchMode: {
6
+ type: String,
7
+ enum: ['store', 'cluster'],
8
+ },
9
+ storeSearchString: {
10
+ type: String,
11
+ },
12
+ target: {
13
+ type: String,
14
+ enum: ['merch', 'vm', 'both'],
15
+ },
16
+ findPrompt: {
17
+ type: String,
18
+ },
19
+ replacePrompt: {
20
+ type: String,
21
+ },
22
+ stores: [
23
+ {
24
+ storeName: {
25
+ type: String,
26
+ required: true,
27
+ },
28
+ storeId: {
29
+ type: String,
30
+ required: true,
31
+ },
32
+ planoId: {
33
+ type: String,
34
+ required: true,
35
+ },
36
+ layoutId: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ batchId: {
41
+ type: String,
42
+ },
43
+ batchStatus: {
44
+ type: String,
45
+ enum: ['yet-to-start', 'initiated', 'complete', 'failed'],
46
+ },
47
+ responseStatus: {
48
+ type: String,
49
+ enum: ['match', 'no-match'],
50
+ },
51
+ findResponseData: {
52
+ type: mongoose.Schema.Types.Mixed,
53
+ },
54
+ replaceResponseData: {
55
+ type: mongoose.Schema.Types.Mixed,
56
+ },
57
+ },
58
+ ],
59
+ status: {
60
+ type: String,
61
+ enum: ['draft', 'batch-running', 'yet-to-approve', 'approved', 'approved-rollout'],
62
+ required: true,
63
+ },
64
+ },
65
+ {
66
+ strict: true,
67
+ versionKey: false,
68
+ timestamps: true,
69
+ },
70
+ );
71
+
72
+ export default mongoose.model('findReplaceAi', findReplaceAi);
@@ -81,7 +81,7 @@ const processedchecklistSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
83
  default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter']
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
85
85
  },
86
86
  store_id: {
87
87
  type: String,
@@ -81,7 +81,7 @@ const processedchecklistconfigSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
83
  default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter']
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
85
85
  },
86
86
  startTime:{
87
87
  type:Date