tango-api-schema 1.0.79 → 1.0.80
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 +85 -83
- package/package.json +27 -27
- package/schema/activitylog.model.js +42 -42
- package/schema/applicationDefault.model.js +24 -24
- package/schema/dailyWorkLog.model.js +152 -152
- package/schema/dlProcessedDaily.model.js +507 -507
- package/schema/dlZone.model.js +135 -135
- package/schema/edgeappVersion.model.js +23 -23
- package/schema/eyeTest.model.js +19 -19
- package/schema/eyeTestData.model.js +44 -44
- package/schema/finance.model.js +100 -100
- package/schema/hotjar.model.js +19 -19
- package/schema/liveDetectionData.model.js +38 -38
- package/schema/liveProcessedData.model.js +359 -359
- package/schema/noSourceNormalizedDaily.model.js +568 -568
- package/schema/noSourceNormalizedHourly.model.js +185 -185
- package/schema/nobHourly.model.js +47 -47
- package/schema/normalizedProcessHour.model.js +186 -186
- package/schema/normalizedProcessedDaily.model.js +559 -559
- package/schema/planoCrestLog.model.js +18 -0
- package/schema/processedCheckList.model.js +164 -164
- package/schema/processedDaily.model.js +569 -569
- package/schema/processedDetection.model.js +77 -77
- package/schema/processedHourly.model.js +186 -186
- package/schema/reportParameter.model.js +13 -13
- package/schema/revop.model.js +92 -92
- package/schema/source.model.js +8 -8
- package/schema/sourceNormalizedDaily.model.js +565 -565
- package/schema/sourceNormalizedHourly.model.js +193 -193
- package/schema/storeOperation.model.js +65 -65
- package/schema/ticket.model.js +113 -113
- package/schema/user.model.js +95 -95
- package/schema/userRole.model.js +28 -28
- package/schema/zone.model.js +209 -209
package/schema/revop.model.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
import uniqueValidator from 'mongoose-unique-validator';
|
|
3
|
-
|
|
4
|
-
const revopSchema = new mongoose.Schema(
|
|
5
|
-
{
|
|
6
|
-
client_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
trim: true,
|
|
9
|
-
},
|
|
10
|
-
date_iso: {
|
|
11
|
-
type: Date,
|
|
12
|
-
},
|
|
13
|
-
store_id: {
|
|
14
|
-
type: String,
|
|
15
|
-
trim: true,
|
|
16
|
-
},
|
|
17
|
-
date_string: {
|
|
18
|
-
type: String,
|
|
19
|
-
trim: true,
|
|
20
|
-
},
|
|
21
|
-
customer_intelligence_data: [
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
client_id: {
|
|
25
|
-
type: String,
|
|
26
|
-
trim: true,
|
|
27
|
-
},
|
|
28
|
-
date_time: {
|
|
29
|
-
type: Date,
|
|
30
|
-
},
|
|
31
|
-
store_id: {
|
|
32
|
-
type: String,
|
|
33
|
-
trim: true,
|
|
34
|
-
},
|
|
35
|
-
temp_id: {
|
|
36
|
-
type: String,
|
|
37
|
-
trim: true,
|
|
38
|
-
},
|
|
39
|
-
entry_time: {
|
|
40
|
-
type: Date,
|
|
41
|
-
},
|
|
42
|
-
exit_time: {
|
|
43
|
-
type: Date,
|
|
44
|
-
},
|
|
45
|
-
time_spent: {
|
|
46
|
-
type: Number,
|
|
47
|
-
trim: true,
|
|
48
|
-
},
|
|
49
|
-
age: {
|
|
50
|
-
type: Number,
|
|
51
|
-
trim: true,
|
|
52
|
-
},
|
|
53
|
-
path: {
|
|
54
|
-
type: String,
|
|
55
|
-
trim: true,
|
|
56
|
-
},
|
|
57
|
-
gender: {
|
|
58
|
-
type: String,
|
|
59
|
-
trim: true,
|
|
60
|
-
},
|
|
61
|
-
hour: {
|
|
62
|
-
type: Number,
|
|
63
|
-
trim: true,
|
|
64
|
-
},
|
|
65
|
-
zone_details: [ {
|
|
66
|
-
zone_name: {
|
|
67
|
-
type: String,
|
|
68
|
-
trim: true,
|
|
69
|
-
},
|
|
70
|
-
time_spent: {
|
|
71
|
-
type: Number,
|
|
72
|
-
trim: true,
|
|
73
|
-
},
|
|
74
|
-
entry_time: {
|
|
75
|
-
type: Date,
|
|
76
|
-
},
|
|
77
|
-
exit_time: {
|
|
78
|
-
type: Date,
|
|
79
|
-
},
|
|
80
|
-
} ],
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
strict: true,
|
|
86
|
-
versionKey: false,
|
|
87
|
-
timestamps: true,
|
|
88
|
-
},
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
revopSchema.plugin( uniqueValidator );
|
|
92
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import uniqueValidator from 'mongoose-unique-validator';
|
|
3
|
+
|
|
4
|
+
const revopSchema = new mongoose.Schema(
|
|
5
|
+
{
|
|
6
|
+
client_id: {
|
|
7
|
+
type: String,
|
|
8
|
+
trim: true,
|
|
9
|
+
},
|
|
10
|
+
date_iso: {
|
|
11
|
+
type: Date,
|
|
12
|
+
},
|
|
13
|
+
store_id: {
|
|
14
|
+
type: String,
|
|
15
|
+
trim: true,
|
|
16
|
+
},
|
|
17
|
+
date_string: {
|
|
18
|
+
type: String,
|
|
19
|
+
trim: true,
|
|
20
|
+
},
|
|
21
|
+
customer_intelligence_data: [
|
|
22
|
+
{
|
|
23
|
+
|
|
24
|
+
client_id: {
|
|
25
|
+
type: String,
|
|
26
|
+
trim: true,
|
|
27
|
+
},
|
|
28
|
+
date_time: {
|
|
29
|
+
type: Date,
|
|
30
|
+
},
|
|
31
|
+
store_id: {
|
|
32
|
+
type: String,
|
|
33
|
+
trim: true,
|
|
34
|
+
},
|
|
35
|
+
temp_id: {
|
|
36
|
+
type: String,
|
|
37
|
+
trim: true,
|
|
38
|
+
},
|
|
39
|
+
entry_time: {
|
|
40
|
+
type: Date,
|
|
41
|
+
},
|
|
42
|
+
exit_time: {
|
|
43
|
+
type: Date,
|
|
44
|
+
},
|
|
45
|
+
time_spent: {
|
|
46
|
+
type: Number,
|
|
47
|
+
trim: true,
|
|
48
|
+
},
|
|
49
|
+
age: {
|
|
50
|
+
type: Number,
|
|
51
|
+
trim: true,
|
|
52
|
+
},
|
|
53
|
+
path: {
|
|
54
|
+
type: String,
|
|
55
|
+
trim: true,
|
|
56
|
+
},
|
|
57
|
+
gender: {
|
|
58
|
+
type: String,
|
|
59
|
+
trim: true,
|
|
60
|
+
},
|
|
61
|
+
hour: {
|
|
62
|
+
type: Number,
|
|
63
|
+
trim: true,
|
|
64
|
+
},
|
|
65
|
+
zone_details: [ {
|
|
66
|
+
zone_name: {
|
|
67
|
+
type: String,
|
|
68
|
+
trim: true,
|
|
69
|
+
},
|
|
70
|
+
time_spent: {
|
|
71
|
+
type: Number,
|
|
72
|
+
trim: true,
|
|
73
|
+
},
|
|
74
|
+
entry_time: {
|
|
75
|
+
type: Date,
|
|
76
|
+
},
|
|
77
|
+
exit_time: {
|
|
78
|
+
type: Date,
|
|
79
|
+
},
|
|
80
|
+
} ],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
strict: true,
|
|
86
|
+
versionKey: false,
|
|
87
|
+
timestamps: true,
|
|
88
|
+
},
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
revopSchema.plugin( uniqueValidator );
|
|
92
|
+
|
|
93
93
|
export default mongoose.model( 'revopsourcedata', revopSchema );
|
package/schema/source.model.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const collection = new mongoose.Schema({}, {
|
|
4
|
-
timestamps:true,
|
|
5
|
-
strict: false,
|
|
6
|
-
versionKey: false
|
|
7
|
-
});
|
|
8
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const collection = new mongoose.Schema({}, {
|
|
4
|
+
timestamps:true,
|
|
5
|
+
strict: false,
|
|
6
|
+
versionKey: false
|
|
7
|
+
});
|
|
8
|
+
|
|
9
9
|
export default mongoose.model( 'sourcedata', collection );
|