tango-api-schema 1.0.40 → 1.0.42
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
|
@@ -11,7 +11,9 @@ import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
|
11
11
|
import userModel from "./schema/user.model.js";
|
|
12
12
|
import userRoleModel from "./schema/userRole.model.js";
|
|
13
13
|
import edgeappVersionModel from "./schema/edgeappVersion.model.js";
|
|
14
|
-
import
|
|
14
|
+
import nobHourlyModel from "./schema/nobHourly.model.js";
|
|
15
|
+
import processedCheckListModel from "./schema/processedCheckList.model.js";
|
|
16
|
+
import processedDetectionModel from "./schema/processedDetection.model.js";
|
|
15
17
|
|
|
16
18
|
export default {
|
|
17
19
|
clientModel,
|
|
@@ -27,5 +29,7 @@ export default {
|
|
|
27
29
|
userModel,
|
|
28
30
|
userRoleModel,
|
|
29
31
|
edgeappVersionModel,
|
|
30
|
-
|
|
32
|
+
nobHourlyModel,
|
|
33
|
+
processedCheckListModel,
|
|
34
|
+
processedDetectionModel
|
|
31
35
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_processedchecklistassign_model
|
|
3
|
+
* @description Processedchecklistassign Model
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// NPM Modules
|
|
7
|
+
import mongoose from 'mongoose';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// Model
|
|
11
|
+
const collection = new mongoose.Schema({
|
|
12
|
+
client_id: {
|
|
13
|
+
type: String,
|
|
14
|
+
required:true
|
|
15
|
+
},
|
|
16
|
+
brandId: {
|
|
17
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
18
|
+
required:true
|
|
19
|
+
},
|
|
20
|
+
date_iso: {
|
|
21
|
+
type: Date,
|
|
22
|
+
},
|
|
23
|
+
date_string: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
sourceCheckList_id: {
|
|
27
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
28
|
+
ref: 'checklistconfig'
|
|
29
|
+
},
|
|
30
|
+
checkListName: {
|
|
31
|
+
type: String,
|
|
32
|
+
required:true
|
|
33
|
+
},
|
|
34
|
+
scheduleStartTime: {
|
|
35
|
+
type: String
|
|
36
|
+
},
|
|
37
|
+
scheduleEndTime: {
|
|
38
|
+
type: String
|
|
39
|
+
},
|
|
40
|
+
scheduleStartTime_iso: {
|
|
41
|
+
type: Date
|
|
42
|
+
},
|
|
43
|
+
scheduleEndTime_iso: {
|
|
44
|
+
type: Date
|
|
45
|
+
},
|
|
46
|
+
allowedOverTime: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default:false
|
|
49
|
+
},
|
|
50
|
+
allowedStoreLocation: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default:false
|
|
53
|
+
},
|
|
54
|
+
createdBy: {
|
|
55
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
56
|
+
},
|
|
57
|
+
createdByName: {
|
|
58
|
+
type: String,
|
|
59
|
+
},
|
|
60
|
+
questionAnswers: {
|
|
61
|
+
type: Array
|
|
62
|
+
},
|
|
63
|
+
isdeleted: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
questionCount: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
storeCount: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 0
|
|
74
|
+
},
|
|
75
|
+
publishDate: {
|
|
76
|
+
type: Date,
|
|
77
|
+
},
|
|
78
|
+
locationCount: {
|
|
79
|
+
type: Number
|
|
80
|
+
},
|
|
81
|
+
checkListType: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: "custom",
|
|
84
|
+
enum: ["storeopenandclose", "mobileusagedetection", "uniformdetection", "custom"]
|
|
85
|
+
},
|
|
86
|
+
store_id: {
|
|
87
|
+
type: String,
|
|
88
|
+
required:true,
|
|
89
|
+
default:''
|
|
90
|
+
},
|
|
91
|
+
storeName: {
|
|
92
|
+
type: String,
|
|
93
|
+
required:true,
|
|
94
|
+
default:''
|
|
95
|
+
},
|
|
96
|
+
userId: {
|
|
97
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
98
|
+
},
|
|
99
|
+
userName: {
|
|
100
|
+
type: String,
|
|
101
|
+
},
|
|
102
|
+
userEmail: {
|
|
103
|
+
type: String,
|
|
104
|
+
},
|
|
105
|
+
checkListId: {
|
|
106
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
107
|
+
required:true
|
|
108
|
+
},
|
|
109
|
+
checklistStatus: {
|
|
110
|
+
type: String,
|
|
111
|
+
enum: ['open', 'inprogress', 'submit'],
|
|
112
|
+
default: 'open'
|
|
113
|
+
},
|
|
114
|
+
startTime:{
|
|
115
|
+
type: Date,
|
|
116
|
+
},
|
|
117
|
+
submitTime:{
|
|
118
|
+
type: Date,
|
|
119
|
+
},
|
|
120
|
+
startTime_string:{
|
|
121
|
+
type: String,
|
|
122
|
+
},
|
|
123
|
+
submitTime_string:{
|
|
124
|
+
type: String,
|
|
125
|
+
},
|
|
126
|
+
timeFlagStatus:{
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: true
|
|
129
|
+
},
|
|
130
|
+
timeFlag:{
|
|
131
|
+
type: Number,
|
|
132
|
+
default: 0
|
|
133
|
+
},
|
|
134
|
+
questionFlag:{
|
|
135
|
+
type: Number,
|
|
136
|
+
default: 0
|
|
137
|
+
},
|
|
138
|
+
mobileDetectionFlag:{
|
|
139
|
+
type: Number,
|
|
140
|
+
default: 0
|
|
141
|
+
},
|
|
142
|
+
storeOpenCloseFlag:{
|
|
143
|
+
type: Number,
|
|
144
|
+
default: 0
|
|
145
|
+
},
|
|
146
|
+
reinitiateStatus:{
|
|
147
|
+
type:Boolean,
|
|
148
|
+
default: false
|
|
149
|
+
},
|
|
150
|
+
markasread:{
|
|
151
|
+
type:Boolean,
|
|
152
|
+
default:false
|
|
153
|
+
},
|
|
154
|
+
uniformDetectionFlag:{
|
|
155
|
+
type: Number,
|
|
156
|
+
default: 0
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
timestamps: true,
|
|
160
|
+
strict: true,
|
|
161
|
+
versionKey: false
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export default mongoose.model( 'processedchecklist', collection );
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
const collection = new mongoose.Schema({
|
|
4
|
+
client_id:{
|
|
5
|
+
type:String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
store_id:{
|
|
9
|
+
type:String,
|
|
10
|
+
required:true
|
|
11
|
+
},
|
|
12
|
+
userName:{
|
|
13
|
+
type:String,
|
|
14
|
+
required:true,
|
|
15
|
+
default:'System Created'
|
|
16
|
+
},
|
|
17
|
+
userId:{
|
|
18
|
+
type:mongoose.Schema.Types.ObjectId,
|
|
19
|
+
},
|
|
20
|
+
time:{
|
|
21
|
+
type:String,
|
|
22
|
+
required:true
|
|
23
|
+
},
|
|
24
|
+
type:{
|
|
25
|
+
type:String,
|
|
26
|
+
required:true,
|
|
27
|
+
default:'negative'
|
|
28
|
+
},
|
|
29
|
+
checklistName:{
|
|
30
|
+
type: String,
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
checklistId:{
|
|
34
|
+
type:mongoose.Schema.Types.ObjectId,
|
|
35
|
+
required:true
|
|
36
|
+
},
|
|
37
|
+
sourceChecklist_id:{
|
|
38
|
+
type:mongoose.Schema.Types.ObjectId,
|
|
39
|
+
required:true
|
|
40
|
+
},
|
|
41
|
+
category:{
|
|
42
|
+
type:String
|
|
43
|
+
},
|
|
44
|
+
reason:{
|
|
45
|
+
type:String,
|
|
46
|
+
default:''
|
|
47
|
+
},
|
|
48
|
+
acknowledgedDate:{
|
|
49
|
+
type:Date,
|
|
50
|
+
default:''
|
|
51
|
+
},
|
|
52
|
+
date_iso:{
|
|
53
|
+
type:Date
|
|
54
|
+
},
|
|
55
|
+
date_string:{
|
|
56
|
+
type:String
|
|
57
|
+
},
|
|
58
|
+
startRange:{
|
|
59
|
+
type:String
|
|
60
|
+
},
|
|
61
|
+
scheduleTime:{
|
|
62
|
+
type:Date
|
|
63
|
+
},
|
|
64
|
+
timeStamp:{
|
|
65
|
+
type:Number
|
|
66
|
+
},
|
|
67
|
+
timeFormat:{
|
|
68
|
+
type:String
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
},{
|
|
72
|
+
timestamps:true,
|
|
73
|
+
strict: false,
|
|
74
|
+
versionKey: false
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
export default mongoose.model( 'processeddetection', collection );
|
|
File without changes
|