tango-api-schema 2.2.205 → 2.3.2
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
|
@@ -99,6 +99,7 @@ import notification from "./schema/notification.model.js";
|
|
|
99
99
|
import planoRevisionModel from "./schema/planoRevision.model.js";
|
|
100
100
|
|
|
101
101
|
import auditUserBaseSalaryModel from "./schema/auditUserBaseSalary.model.js";
|
|
102
|
+
import revopDownloadModel from "./schema/revopDownload.model.js";
|
|
102
103
|
|
|
103
104
|
|
|
104
105
|
export default {
|
|
@@ -201,5 +202,6 @@ export default {
|
|
|
201
202
|
loginAttempt,
|
|
202
203
|
notification,
|
|
203
204
|
planoRevisionModel,
|
|
204
|
-
auditUserBaseSalaryModel
|
|
205
|
+
auditUserBaseSalaryModel,
|
|
206
|
+
revopDownloadModel
|
|
205
207
|
};
|
package/package.json
CHANGED
|
@@ -194,6 +194,17 @@ const fixtureConfigSchema = new mongoose.Schema(
|
|
|
194
194
|
type: Number,
|
|
195
195
|
default: 1,
|
|
196
196
|
},
|
|
197
|
+
templateType:{
|
|
198
|
+
type: String,
|
|
199
|
+
enum: [ 'master', 'sub' ],
|
|
200
|
+
default: 'sub'
|
|
201
|
+
},
|
|
202
|
+
masterTemplateId:{
|
|
203
|
+
type: mongoose.Types.ObjectId,
|
|
204
|
+
},
|
|
205
|
+
templateGroupName: {
|
|
206
|
+
type: String,
|
|
207
|
+
},
|
|
197
208
|
},
|
|
198
209
|
{
|
|
199
210
|
strict: true,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
// schema
|
|
4
|
+
const collection = new mongoose.Schema( {
|
|
5
|
+
userEmail: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
type:{
|
|
9
|
+
type: String,
|
|
10
|
+
},
|
|
11
|
+
fromDate:{
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
toDate:{
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
stores:{
|
|
18
|
+
type:Array
|
|
19
|
+
},
|
|
20
|
+
revopsType:{
|
|
21
|
+
tyep:String
|
|
22
|
+
},
|
|
23
|
+
ticketStatus:{
|
|
24
|
+
type:String
|
|
25
|
+
},
|
|
26
|
+
ticketAction:{
|
|
27
|
+
type:String
|
|
28
|
+
},
|
|
29
|
+
status:{
|
|
30
|
+
type:String,
|
|
31
|
+
default:'pending'
|
|
32
|
+
},
|
|
33
|
+
outputFilePath:{
|
|
34
|
+
type:String
|
|
35
|
+
},
|
|
36
|
+
bucketName:{
|
|
37
|
+
type:String
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
timestamps: true,
|
|
43
|
+
strict: true,
|
|
44
|
+
versionKey: false,
|
|
45
|
+
} );
|
|
46
|
+
|
|
47
|
+
collection.index( { createdAt: 1 }, { expires: '1d' } );
|
|
48
|
+
collection.index( { userEmail: 1 } );
|
|
49
|
+
|
|
50
|
+
export default mongoose.model( 'revopDownload',collection,"revopDownload" );
|