tango-api-schema 1.0.48 → 1.0.49
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 +6 -1
- package/package.json +1 -1
- package/schema/dlZone.model.js +135 -0
- package/schema/reportParameter.model.js +13 -0
package/index.js
CHANGED
|
@@ -29,6 +29,9 @@ import revopModel from "./schema/revop.model.js";
|
|
|
29
29
|
import storeOperationModel from "./schema/storeOperation.model.js";
|
|
30
30
|
import liveDetectionDataModel from "./schema/liveDetectionData.model.js";
|
|
31
31
|
import liveProcessedDataModel from "./schema/liveProcessedData.model.js";
|
|
32
|
+
import reportParameterModel from "./schema/reportParameter.model.js";
|
|
33
|
+
import dlZoneModel from "./schema/dlZone.model.js";
|
|
34
|
+
|
|
32
35
|
export default {
|
|
33
36
|
clientModel,
|
|
34
37
|
cameraModel,
|
|
@@ -60,5 +63,7 @@ export default {
|
|
|
60
63
|
revopModel,
|
|
61
64
|
storeOperationModel,
|
|
62
65
|
liveDetectionDataModel,
|
|
63
|
-
liveProcessedDataModel
|
|
66
|
+
liveProcessedDataModel,
|
|
67
|
+
reportParameterModel,
|
|
68
|
+
dlZoneModel
|
|
64
69
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// NPM Modules
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
import uniqueValidator from 'mongoose-unique-validator';
|
|
4
|
+
const dlZoneSchema = mongoose.Schema( {
|
|
5
|
+
|
|
6
|
+
client_id: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
store_id: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
store_name: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
zoneName: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
imgUrl: [
|
|
23
|
+
{
|
|
24
|
+
stream_name: { type: String, default: '' },
|
|
25
|
+
url: { type: String, default: '' },
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
footfall_count: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 0,
|
|
31
|
+
},
|
|
32
|
+
bounced_footfall_count: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 0,
|
|
35
|
+
},
|
|
36
|
+
engagers_count: {
|
|
37
|
+
type: Number,
|
|
38
|
+
default: 0,
|
|
39
|
+
},
|
|
40
|
+
dwell_time: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 0,
|
|
43
|
+
},
|
|
44
|
+
average_time_spend: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 0,
|
|
47
|
+
},
|
|
48
|
+
age_12_below: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 0,
|
|
51
|
+
},
|
|
52
|
+
age_13_19: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 0,
|
|
55
|
+
},
|
|
56
|
+
age_20_30: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: 0,
|
|
59
|
+
},
|
|
60
|
+
age_31_45: {
|
|
61
|
+
type: Number,
|
|
62
|
+
default: 0,
|
|
63
|
+
},
|
|
64
|
+
age_46_59: {
|
|
65
|
+
type: Number,
|
|
66
|
+
default: 0,
|
|
67
|
+
},
|
|
68
|
+
age_60_above: {
|
|
69
|
+
type: Number,
|
|
70
|
+
default: 0,
|
|
71
|
+
},
|
|
72
|
+
age_31_40: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: '',
|
|
75
|
+
},
|
|
76
|
+
age_41_50: {
|
|
77
|
+
type: Number,
|
|
78
|
+
default: '',
|
|
79
|
+
},
|
|
80
|
+
age_51_60: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: '',
|
|
83
|
+
},
|
|
84
|
+
age_range: {
|
|
85
|
+
type: String,
|
|
86
|
+
},
|
|
87
|
+
male_count: {
|
|
88
|
+
type: Number,
|
|
89
|
+
default: 0,
|
|
90
|
+
},
|
|
91
|
+
female_count: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 0,
|
|
94
|
+
},
|
|
95
|
+
type: {
|
|
96
|
+
type: String,
|
|
97
|
+
enum: [ 'week', 'month' ],
|
|
98
|
+
default: 'week',
|
|
99
|
+
},
|
|
100
|
+
year: {
|
|
101
|
+
type: Number,
|
|
102
|
+
},
|
|
103
|
+
week_id: {
|
|
104
|
+
type: Number,
|
|
105
|
+
},
|
|
106
|
+
month_id: {
|
|
107
|
+
type: Number,
|
|
108
|
+
},
|
|
109
|
+
start_date_iso: {
|
|
110
|
+
type: Date,
|
|
111
|
+
},
|
|
112
|
+
end_date_iso: {
|
|
113
|
+
type: Date,
|
|
114
|
+
},
|
|
115
|
+
start_date_string: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: true,
|
|
118
|
+
},
|
|
119
|
+
end_date_string: {
|
|
120
|
+
type: String,
|
|
121
|
+
required: true,
|
|
122
|
+
},
|
|
123
|
+
type_count: { // finding avg dwell time
|
|
124
|
+
type: Number,
|
|
125
|
+
default: 1,
|
|
126
|
+
},
|
|
127
|
+
}, {
|
|
128
|
+
strict: true,
|
|
129
|
+
versionKey: false,
|
|
130
|
+
timestamps: true,
|
|
131
|
+
} );
|
|
132
|
+
|
|
133
|
+
dlZoneSchema.plugin( uniqueValidator );
|
|
134
|
+
|
|
135
|
+
export default mongoose.model( 'dlzone', dlZoneSchema );
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// NPM Modules
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
import uniqueValidator from 'mongoose-unique-validator';
|
|
4
|
+
const reportParameterSchema = mongoose.Schema( {},
|
|
5
|
+
{
|
|
6
|
+
strict: true,
|
|
7
|
+
versionKey: false,
|
|
8
|
+
timestamps: true,
|
|
9
|
+
} );
|
|
10
|
+
|
|
11
|
+
reportParameterSchema.plugin( uniqueValidator );
|
|
12
|
+
|
|
13
|
+
export default mongoose.model( 'reportparameter', reportParameterSchema );
|