tango-api-schema 2.2.95 → 2.2.96

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.
@@ -1,88 +1,88 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskassignconfigSchema = new mongoose.Schema({
4
- store_id: {
5
- type: String,
6
- default:''
7
- },
8
- storeName: {
9
- type: String,
10
- default:''
11
- },
12
- userId: {
13
- type: mongoose.SchemaTypes.ObjectId,
14
- },
15
- userEmail: {
16
- type: String,
17
- },
18
- userName: {
19
- type: String,
20
- },
21
- userPhone:{
22
- type:String,
23
- },
24
- city:{
25
- type:String
26
- },
27
- country:{
28
- type:String
29
- },
30
- checkFlag: {
31
- type: Boolean,
32
- default:true
33
- },
34
- checkListId: {
35
- type: mongoose.SchemaTypes.ObjectId,
36
- required:true
37
- },
38
- checkListName: {
39
- type: String,
40
- required:true
41
- },
42
- client_id: {
43
- type: String,
44
- required:true
45
- },
46
- createdAt: {
47
- type: Date,
48
- default: Date.now
49
- },
50
- updatedAt: {
51
- type: Date,
52
- default: Date.now
53
- },
54
- isdeleted: {
55
- type: Boolean,
56
- default: false
57
- },
58
- reinitiate:{
59
- type:Boolean,
60
- default:false
61
- },
62
- sendNotification:{
63
- type:Boolean,
64
- default:false,
65
- },
66
- clusterName:{
67
- type:String,
68
- },
69
- teamName:{
70
- type:String
71
- },
72
- assignId:{
73
- type:mongoose.Types.ObjectId
74
- },
75
- coverage:{
76
- type: String,
77
- default: 'store',
78
- enum: ["store", "user"]
79
- },
80
- },
81
- {
82
- strict: true,
83
- versionKey: false,
84
- timestamps: true,
85
- },
86
- );
87
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskassignconfigSchema = new mongoose.Schema({
4
+ store_id: {
5
+ type: String,
6
+ default:''
7
+ },
8
+ storeName: {
9
+ type: String,
10
+ default:''
11
+ },
12
+ userId: {
13
+ type: mongoose.SchemaTypes.ObjectId,
14
+ },
15
+ userEmail: {
16
+ type: String,
17
+ },
18
+ userName: {
19
+ type: String,
20
+ },
21
+ userPhone:{
22
+ type:String,
23
+ },
24
+ city:{
25
+ type:String
26
+ },
27
+ country:{
28
+ type:String
29
+ },
30
+ checkFlag: {
31
+ type: Boolean,
32
+ default:true
33
+ },
34
+ checkListId: {
35
+ type: mongoose.SchemaTypes.ObjectId,
36
+ required:true
37
+ },
38
+ checkListName: {
39
+ type: String,
40
+ required:true
41
+ },
42
+ client_id: {
43
+ type: String,
44
+ required:true
45
+ },
46
+ createdAt: {
47
+ type: Date,
48
+ default: Date.now
49
+ },
50
+ updatedAt: {
51
+ type: Date,
52
+ default: Date.now
53
+ },
54
+ isdeleted: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ reinitiate:{
59
+ type:Boolean,
60
+ default:false
61
+ },
62
+ sendNotification:{
63
+ type:Boolean,
64
+ default:false,
65
+ },
66
+ clusterName:{
67
+ type:String,
68
+ },
69
+ teamName:{
70
+ type:String
71
+ },
72
+ assignId:{
73
+ type:mongoose.Types.ObjectId
74
+ },
75
+ coverage:{
76
+ type: String,
77
+ default: 'store',
78
+ enum: ["store", "user"]
79
+ },
80
+ },
81
+ {
82
+ strict: true,
83
+ versionKey: false,
84
+ timestamps: true,
85
+ },
86
+ );
87
+
88
88
  export default mongoose.model( 'taskAssignConfig', taskassignconfigSchema);
@@ -1,116 +1,116 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskSchema = new mongoose.Schema(
4
- {
5
- checkListName: {
6
- type: String,
7
- },
8
- checkListDescription:{
9
- type: String,
10
- },
11
- createdBy: {
12
- type: mongoose.SchemaTypes.ObjectId,
13
- required: true
14
- },
15
- createdByName: {
16
- type: String,
17
- required: true
18
- },
19
- publish: {
20
- type: Boolean,
21
- default: false
22
- },
23
- scheduleEndTime: {
24
- type: String,
25
- default: ''
26
- },
27
- scheduleEndTimeISO: {
28
- type: Date
29
- },
30
- scheduleDate: {
31
- type: Date,
32
- default: Date.now
33
- },
34
- client_id: {
35
- type: String
36
- },
37
- questionCount: {
38
- type: Number,
39
- default:0
40
- },
41
- storeCount: {
42
- type: Number,
43
- default: 0
44
- },
45
- publishDate: {
46
- type: Date,
47
- },
48
- locationCount:{
49
- type:Number
50
- },
51
- checkListType:{
52
- type:String,
53
- default:"task",
54
- enum: ['task','checklistTask','cctv']
55
- },
56
- createdAt: {
57
- type: Date,
58
- default: Date.now
59
- },
60
- updatedAt: {
61
- type: Date,
62
- default: Date.now
63
- },
64
- isdeleted: {
65
- type: Boolean,
66
- default: false
67
- },
68
- markasread:{
69
- type:Boolean,
70
- default:false
71
- },
72
- priorityType:{
73
- type:String,
74
- enum:['high','medium','low'],
75
- },
76
- approver:{
77
- type:Array,
78
- default:[]
79
- },
80
- remainder:{
81
- type:Array,
82
- default:[]
83
- },
84
- restrictAttendance:{
85
- type:Boolean,
86
- default:false
87
- },
88
- allowedStoreLocation: {
89
- type: Boolean,
90
- default:false
91
- },
92
- reinitiate:{
93
- type:Boolean,
94
- default:false
95
- },
96
- referenceCheckListId:{
97
- type:mongoose.SchemaTypes.ObjectId,
98
- },
99
- coverage:{
100
- type: String,
101
- default: 'store',
102
- enum: ["store", "user", "checklist"]
103
- },
104
- rawImageUpload: {
105
- type: Boolean,
106
- default:false
107
- },
108
- },
109
- {
110
- strict: true,
111
- versionKey: false,
112
- timestamps: true,
113
- },
114
- );
115
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskSchema = new mongoose.Schema(
4
+ {
5
+ checkListName: {
6
+ type: String,
7
+ },
8
+ checkListDescription:{
9
+ type: String,
10
+ },
11
+ createdBy: {
12
+ type: mongoose.SchemaTypes.ObjectId,
13
+ required: true
14
+ },
15
+ createdByName: {
16
+ type: String,
17
+ required: true
18
+ },
19
+ publish: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ scheduleEndTime: {
24
+ type: String,
25
+ default: ''
26
+ },
27
+ scheduleEndTimeISO: {
28
+ type: Date
29
+ },
30
+ scheduleDate: {
31
+ type: Date,
32
+ default: Date.now
33
+ },
34
+ client_id: {
35
+ type: String
36
+ },
37
+ questionCount: {
38
+ type: Number,
39
+ default:0
40
+ },
41
+ storeCount: {
42
+ type: Number,
43
+ default: 0
44
+ },
45
+ publishDate: {
46
+ type: Date,
47
+ },
48
+ locationCount:{
49
+ type:Number
50
+ },
51
+ checkListType:{
52
+ type:String,
53
+ default:"task",
54
+ enum: ['task','checklistTask','cctv']
55
+ },
56
+ createdAt: {
57
+ type: Date,
58
+ default: Date.now
59
+ },
60
+ updatedAt: {
61
+ type: Date,
62
+ default: Date.now
63
+ },
64
+ isdeleted: {
65
+ type: Boolean,
66
+ default: false
67
+ },
68
+ markasread:{
69
+ type:Boolean,
70
+ default:false
71
+ },
72
+ priorityType:{
73
+ type:String,
74
+ enum:['high','medium','low'],
75
+ },
76
+ approver:{
77
+ type:Array,
78
+ default:[]
79
+ },
80
+ remainder:{
81
+ type:Array,
82
+ default:[]
83
+ },
84
+ restrictAttendance:{
85
+ type:Boolean,
86
+ default:false
87
+ },
88
+ allowedStoreLocation: {
89
+ type: Boolean,
90
+ default:false
91
+ },
92
+ reinitiate:{
93
+ type:Boolean,
94
+ default:false
95
+ },
96
+ referenceCheckListId:{
97
+ type:mongoose.SchemaTypes.ObjectId,
98
+ },
99
+ coverage:{
100
+ type: String,
101
+ default: 'store',
102
+ enum: ["store", "user", "checklist"]
103
+ },
104
+ rawImageUpload: {
105
+ type: Boolean,
106
+ default:false
107
+ },
108
+ },
109
+ {
110
+ strict: true,
111
+ versionKey: false,
112
+ timestamps: true,
113
+ },
114
+ );
115
+
116
116
  export default mongoose.model( 'taskConfig', taskSchema);