tango-api-schema 2.1.51 → 2.1.53

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
@@ -56,6 +56,7 @@ import processedchecklistconfigModel from "./schema/processedchecklistconfig.js"
56
56
  import processeddetectionModel from "./schema/processeddetection.js";
57
57
  import domainModel from "./schema/domain.js";
58
58
  import hotjarModel from "./schema/hotjar.model.js";
59
+ import downloadModel from "./schema/download.js";
59
60
 
60
61
 
61
62
  export default {
@@ -116,5 +117,6 @@ export default {
116
117
  processedchecklistconfigModel,
117
118
  processeddetectionModel,
118
119
  domainModel,
119
- hotjarModel
120
+ hotjarModel,
121
+ downloadModel
120
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.51",
3
+ "version": "2.1.53",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -69,8 +69,16 @@ const auditUserWalletSchema = new mongoose.Schema( {
69
69
  },
70
70
  deductionByLateLogin:{
71
71
  type:Number
72
+ },
73
+ afterCountCredit:{
74
+ type:Number
75
+ },
76
+ beforeCountCredit:{
77
+ type:Number
78
+ },
79
+ singleImageAmount:{
80
+ type:Number
72
81
  }
73
-
74
82
 
75
83
  },
76
84
  {
@@ -0,0 +1,84 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const downloadSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ date_iso: {
9
+ type: Date,
10
+ },
11
+ date_string: {
12
+ type: String,
13
+ },
14
+ sourceCheckList_id: {
15
+ type: String,
16
+ },
17
+ storeIds: {
18
+ type: Array,
19
+ },
20
+ questions: {
21
+ type: Array,
22
+ },
23
+ status: {
24
+ type: String,
25
+ enum: ['open','inprogress','completed'],
26
+ default: 'open'
27
+ },
28
+ name: {
29
+ type: String,
30
+ },
31
+ url: {
32
+ type: String,
33
+ },
34
+ clientNotification: {
35
+ type: Boolean,
36
+ trim: false
37
+ },
38
+ adminNotification: {
39
+ type: Boolean,
40
+ trim: true
41
+ },
42
+ createdBy: {
43
+ type: mongoose.Types.ObjectId,
44
+ ref: 'User'
45
+ },
46
+ userEmail: {
47
+ type:String,
48
+ },
49
+ fileType:{
50
+ type:String,
51
+ required:true,
52
+ enum: ['pdf','csv','ppt','pdfzip','zipfiles'],
53
+ default:'zipfiles'
54
+ },
55
+ createdAt: {
56
+ type: Date,
57
+ default: Date.now
58
+ },
59
+ updatedAt: {
60
+ type: Date,
61
+ default: Date.now
62
+ },
63
+ markasread: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ checklistIdList:{
68
+ type:Array
69
+ },
70
+ filePath:{
71
+ type:Array
72
+ },
73
+ previewType:{
74
+ type:String
75
+ },
76
+ },
77
+ {
78
+ strict: true,
79
+ versionKey: false,
80
+ timestamps: true,
81
+ },
82
+ );
83
+
84
+ export default mongoose.model( 'download', downloadSchema);