tango-api-schema 2.2.127 → 2.2.129
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 +187 -185
- package/package.json +25 -25
- package/schema/auditConfig.model.js +41 -41
- package/schema/binaryAudit.model.js +84 -84
- package/schema/camera.model.js +211 -211
- package/schema/checklistassignconfig.js +90 -90
- package/schema/checklistconfig.js +246 -246
- package/schema/checklistlog.js +113 -113
- package/schema/client.model.js +671 -671
- package/schema/countryCurrency.model.js +17 -17
- package/schema/download.js +124 -124
- package/schema/emailers.model.js +45 -45
- package/schema/fixtureConfig.model.js +72 -72
- package/schema/fixtureShelf.model.js +63 -63
- package/schema/liveConnection.model.js +54 -54
- package/schema/loginAttempt.model.js +26 -0
- package/schema/planoCrestLog.model.js +17 -17
- package/schema/planoMapping.model.js +56 -56
- package/schema/planoProductDetail.model.js +80 -80
- package/schema/planoQrConversionRequest.model.js +61 -61
- package/schema/planoStaticData.model.js +17 -17
- package/schema/planoTaskCompliance.model.js +50 -50
- package/schema/planogram.model.js +66 -66
- package/schema/processedchecklist.js +249 -249
- package/schema/processedchecklistconfig.js +173 -173
- package/schema/revopConfig.model.js +19 -19
- package/schema/store.model.js +371 -371
- package/schema/storeFixture.model.js +165 -165
- package/schema/storeLayout.model.js +66 -66
- package/schema/streaming.model.js +29 -29
- package/schema/suspiciousActivity.model.js +54 -54
- package/schema/taskAssign.model.js +87 -87
- package/schema/taskConfig.model.js +115 -115
- package/schema/taskProcessed.model.js +245 -245
- package/schema/taskProcessedConfig.model.js +128 -128
- package/schema/user.model.js +136 -136
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const planoTaskCompliance = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
status: {
|
|
6
|
-
type: String,
|
|
7
|
-
enum: ['complete', 'incomplete', 'missing'],
|
|
8
|
-
required: true
|
|
9
|
-
},
|
|
10
|
-
answers: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: []
|
|
13
|
-
},
|
|
14
|
-
planoId: {
|
|
15
|
-
type: mongoose.Types.ObjectId,
|
|
16
|
-
required: true
|
|
17
|
-
},
|
|
18
|
-
floorId: {
|
|
19
|
-
type: mongoose.Types.ObjectId,
|
|
20
|
-
required: true
|
|
21
|
-
},
|
|
22
|
-
fixtureId: {
|
|
23
|
-
type: mongoose.Types.ObjectId
|
|
24
|
-
},
|
|
25
|
-
type: {
|
|
26
|
-
type: String,
|
|
27
|
-
enum: ['fixture', 'vm', 'product', 'layout'],
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
date_string:{
|
|
31
|
-
type:String,
|
|
32
|
-
required:true
|
|
33
|
-
},
|
|
34
|
-
storeName:{
|
|
35
|
-
type:String
|
|
36
|
-
},
|
|
37
|
-
taskId:{
|
|
38
|
-
type:mongoose.Types.ObjectId
|
|
39
|
-
},
|
|
40
|
-
date_iso:{
|
|
41
|
-
type:Date
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
timestamps: true,
|
|
46
|
-
versionKey: false,
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
export default mongoose.model('planotaskcompliance', planoTaskCompliance);
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planoTaskCompliance = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
status: {
|
|
6
|
+
type: String,
|
|
7
|
+
enum: ['complete', 'incomplete', 'missing'],
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
answers: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: []
|
|
13
|
+
},
|
|
14
|
+
planoId: {
|
|
15
|
+
type: mongoose.Types.ObjectId,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
floorId: {
|
|
19
|
+
type: mongoose.Types.ObjectId,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
fixtureId: {
|
|
23
|
+
type: mongoose.Types.ObjectId
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
enum: ['fixture', 'vm', 'product', 'layout'],
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
date_string:{
|
|
31
|
+
type:String,
|
|
32
|
+
required:true
|
|
33
|
+
},
|
|
34
|
+
storeName:{
|
|
35
|
+
type:String
|
|
36
|
+
},
|
|
37
|
+
taskId:{
|
|
38
|
+
type:mongoose.Types.ObjectId
|
|
39
|
+
},
|
|
40
|
+
date_iso:{
|
|
41
|
+
type:Date
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
timestamps: true,
|
|
46
|
+
versionKey: false,
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
export default mongoose.model('planotaskcompliance', planoTaskCompliance);
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const planogramSchema = new mongoose.Schema( {
|
|
4
|
-
storeName: {
|
|
5
|
-
type: String,
|
|
6
|
-
required: true,
|
|
7
|
-
},
|
|
8
|
-
storeId: {
|
|
9
|
-
type: String,
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
layoutName: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
clientId: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
attachments: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: [],
|
|
23
|
-
},
|
|
24
|
-
createdBy: {
|
|
25
|
-
type: mongoose.Types.ObjectId,
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
createdByName: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: true,
|
|
31
|
-
},
|
|
32
|
-
createdByEmail: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
status: {
|
|
37
|
-
type: String,
|
|
38
|
-
enum: [ 'draft', 'completed' ],
|
|
39
|
-
default: 'draft',
|
|
40
|
-
},
|
|
41
|
-
floorNumber: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: 1,
|
|
44
|
-
},
|
|
45
|
-
productResolutionLevel: {
|
|
46
|
-
type: String,
|
|
47
|
-
enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
|
|
48
|
-
// L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
|
|
49
|
-
default: 'L3',
|
|
50
|
-
},
|
|
51
|
-
scanType: {
|
|
52
|
-
type: String,
|
|
53
|
-
enum: [ 'rfid', 'qr' ],
|
|
54
|
-
},
|
|
55
|
-
validateShelfSections: {
|
|
56
|
-
type: Boolean
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
strict: true,
|
|
61
|
-
versionKey: false,
|
|
62
|
-
timestamps: true,
|
|
63
|
-
},
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
export default mongoose.model( 'planogram', planogramSchema );
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planogramSchema = new mongoose.Schema( {
|
|
4
|
+
storeName: {
|
|
5
|
+
type: String,
|
|
6
|
+
required: true,
|
|
7
|
+
},
|
|
8
|
+
storeId: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
layoutName: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
clientId: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
attachments: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: [],
|
|
23
|
+
},
|
|
24
|
+
createdBy: {
|
|
25
|
+
type: mongoose.Types.ObjectId,
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
createdByName: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
createdByEmail: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
status: {
|
|
37
|
+
type: String,
|
|
38
|
+
enum: [ 'draft', 'completed' ],
|
|
39
|
+
default: 'draft',
|
|
40
|
+
},
|
|
41
|
+
floorNumber: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 1,
|
|
44
|
+
},
|
|
45
|
+
productResolutionLevel: {
|
|
46
|
+
type: String,
|
|
47
|
+
enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
|
|
48
|
+
// L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
|
|
49
|
+
default: 'L3',
|
|
50
|
+
},
|
|
51
|
+
scanType: {
|
|
52
|
+
type: String,
|
|
53
|
+
enum: [ 'rfid', 'qr' ],
|
|
54
|
+
},
|
|
55
|
+
validateShelfSections: {
|
|
56
|
+
type: Boolean
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
strict: true,
|
|
61
|
+
versionKey: false,
|
|
62
|
+
timestamps: true,
|
|
63
|
+
},
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
export default mongoose.model( 'planogram', planogramSchema );
|