tango-api-schema 2.5.93 → 2.5.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.93",
3
+ "version": "2.5.94",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -60,7 +60,7 @@ const billingSchema = new mongoose.Schema(
60
60
  },
61
61
  currency: {
62
62
  type: String,
63
- enum: ['dollar','inr'],
63
+ enum: ['dollar','inr','singaporedollar','euro'],
64
64
  },
65
65
  isInstallationOneTime: {
66
66
  type: Boolean,
@@ -464,6 +464,12 @@ const checklistconfigSchema = new mongoose.Schema({
464
464
  default: '14:00'
465
465
  },
466
466
  },
467
+ alertCooldownEnabled: {
468
+ type: Boolean
469
+ },
470
+ alertCooldownTime: {
471
+ type: String
472
+ },
467
473
  },
468
474
  // ──── NEW: Box Alert ────
469
475
  boxAlert: {
@@ -48,7 +48,7 @@ const paymentAccountSchema = new mongoose.Schema(
48
48
  },
49
49
  currency: {
50
50
  type: String,
51
- enum: [ 'dollar', 'inr' ],
51
+ enum: [ 'dollar', 'inr', 'singaporedollar', 'euro' ],
52
52
  },
53
53
  },
54
54
  {
@@ -379,6 +379,12 @@ const processedchecklistconfigSchema = new mongoose.Schema({
379
379
  default: '14:00'
380
380
  },
381
381
  },
382
+ alertCooldownEnabled: {
383
+ type: Boolean
384
+ },
385
+ alertCooldownTime: {
386
+ type: String
387
+ },
382
388
  },
383
389
  // ──── NEW: Box Alert ────
384
390
  boxAlert: {
@@ -1,92 +1,92 @@
1
- import mongoose from 'mongoose';
2
-
3
- const recurringFlagTrackerSchema = new mongoose.Schema({
4
- client_id: {
5
- type: String,
6
- required: true,
7
- },
8
- sourceCheckList_id: {
9
- type: mongoose.SchemaTypes.ObjectId,
10
- ref: 'checklistconfig',
11
- required: true,
12
- },
13
- checkListName: {
14
- type: String,
15
- },
16
- coverage: {
17
- type: String,
18
- enum: ['store', 'user'],
19
- default: 'store',
20
- },
21
- store_id: {
22
- type: String,
23
- default: '',
24
- },
25
- storeName: {
26
- type: String,
27
- },
28
- user_id: {
29
- type: String,
30
- default: '',
31
- },
32
- userName: {
33
- type: String,
34
- },
35
- userEmail: {
36
- type: String,
37
- },
38
- section_id: {
39
- type: String,
40
- },
41
- sectionName: {
42
- type: String,
43
- },
44
- qno: {
45
- type: String,
46
- },
47
- qname: {
48
- type: String,
49
- },
50
- consecutiveCount: {
51
- type: Number,
52
- default: 0,
53
- },
54
- lastFlaggedDate: {
55
- type: String,
56
- },
57
- lastEmailDate: {
58
- type: String,
59
- },
60
- runAICount: {
61
- type: Number,
62
- default: 0,
63
- },
64
- lastRunAIFlaggedDate: {
65
- type: String,
66
- },
67
- emailHistory: {
68
- type: [ String ],
69
- default: [],
70
- },
71
- lastSubmittedBy: {
72
- type: String,
73
- },
74
- lastSubmissionDate: {
75
- type: String,
76
- },
77
- }, {
78
- strict: true,
79
- versionKey: false,
80
- timestamps: true,
81
- });
82
-
83
- recurringFlagTrackerSchema.index({
84
- client_id: 1,
85
- sourceCheckList_id: 1,
86
- store_id: 1,
87
- user_id: 1,
88
- section_id: 1,
89
- qno: 1,
90
- }, { unique: true });
91
-
92
- export default mongoose.model('recurringFlagTracker', recurringFlagTrackerSchema);
1
+ import mongoose from 'mongoose';
2
+
3
+ const recurringFlagTrackerSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required: true,
7
+ },
8
+ sourceCheckList_id: {
9
+ type: mongoose.SchemaTypes.ObjectId,
10
+ ref: 'checklistconfig',
11
+ required: true,
12
+ },
13
+ checkListName: {
14
+ type: String,
15
+ },
16
+ coverage: {
17
+ type: String,
18
+ enum: ['store', 'user'],
19
+ default: 'store',
20
+ },
21
+ store_id: {
22
+ type: String,
23
+ default: '',
24
+ },
25
+ storeName: {
26
+ type: String,
27
+ },
28
+ user_id: {
29
+ type: String,
30
+ default: '',
31
+ },
32
+ userName: {
33
+ type: String,
34
+ },
35
+ userEmail: {
36
+ type: String,
37
+ },
38
+ section_id: {
39
+ type: String,
40
+ },
41
+ sectionName: {
42
+ type: String,
43
+ },
44
+ qno: {
45
+ type: String,
46
+ },
47
+ qname: {
48
+ type: String,
49
+ },
50
+ consecutiveCount: {
51
+ type: Number,
52
+ default: 0,
53
+ },
54
+ lastFlaggedDate: {
55
+ type: String,
56
+ },
57
+ lastEmailDate: {
58
+ type: String,
59
+ },
60
+ runAICount: {
61
+ type: Number,
62
+ default: 0,
63
+ },
64
+ lastRunAIFlaggedDate: {
65
+ type: String,
66
+ },
67
+ emailHistory: {
68
+ type: [ String ],
69
+ default: [],
70
+ },
71
+ lastSubmittedBy: {
72
+ type: String,
73
+ },
74
+ lastSubmissionDate: {
75
+ type: String,
76
+ },
77
+ }, {
78
+ strict: true,
79
+ versionKey: false,
80
+ timestamps: true,
81
+ });
82
+
83
+ recurringFlagTrackerSchema.index({
84
+ client_id: 1,
85
+ sourceCheckList_id: 1,
86
+ store_id: 1,
87
+ user_id: 1,
88
+ section_id: 1,
89
+ qno: 1,
90
+ }, { unique: true });
91
+
92
+ export default mongoose.model('recurringFlagTracker', recurringFlagTrackerSchema);
@@ -32,7 +32,7 @@ const transactionSchema = new mongoose.Schema(
32
32
  },
33
33
  currency: {
34
34
  type: String,
35
- enum: [ 'dollar', 'inr' ],
35
+ enum: [ 'dollar', 'inr', 'singaporedollar', 'euro' ],
36
36
  },
37
37
  transactionType: {
38
38
  type: String,
@@ -43,7 +43,7 @@ const transactionSchema = new mongoose.Schema(
43
43
  },
44
44
  balanceCreditCurrency: {
45
45
  type: String,
46
- enum: [ 'dollar', 'inr' ],
46
+ enum: [ 'dollar', 'inr', 'singaporedollar', 'euro' ],
47
47
  },
48
48
  }, {
49
49
  strict: true,