tango-api-schema 2.4.15 → 2.4.17

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.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -478,6 +478,56 @@ const client = new mongoose.Schema(
478
478
  },
479
479
 
480
480
  },
481
+ footfallDirectoryConfigs: {
482
+ revision: [
483
+ {
484
+ actionType: {
485
+ type: String,
486
+ enum: ["reviewer", "approver", "tango"]
487
+ },
488
+ isChecked: {
489
+ type: Boolean
490
+ }
491
+ }
492
+
493
+ ],
494
+ allowTicketCreation: {
495
+ type: Number
496
+ },
497
+ isAutoCloseEnable: {
498
+ type: Boolean
499
+ },
500
+ autoCloseAccuracy: {
501
+ type: String
502
+ },
503
+ taggingLimitation: [
504
+ {
505
+ Type: {
506
+ type: String
507
+ },
508
+ value: {
509
+ type: Number
510
+ },
511
+ unit: {
512
+ type: String
513
+ }
514
+ }
515
+ ],
516
+ accuracyBreach: {
517
+ ticketCount: {
518
+ type: String
519
+ },
520
+ days: {
521
+ type: String
522
+ },
523
+ accuracy: {
524
+ type: String
525
+ }
526
+ },
527
+ tangoReview: {
528
+ type: String
529
+ }
530
+ },
481
531
  document: {
482
532
  addressProof: {
483
533
  path: {
@@ -15,6 +15,9 @@ const tangoTickets = new mongoose.Schema(
15
15
  type: String,
16
16
  enum: ['infra', 'mat', 'highcount', 'lowcount', 'installation']
17
17
  },
18
+ productModule: {
19
+ type: String,
20
+ },
18
21
  hibernation: {
19
22
  type: Date
20
23
  },
@@ -0,0 +1,40 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema({
5
+ clientId: {
6
+ type: String,
7
+ required: true
8
+ },
9
+ storeId: {
10
+ type: String,
11
+ required: true
12
+ },
13
+ storeName: {
14
+ type: String,
15
+ required: true
16
+ },
17
+ dateString: {
18
+ type: String,
19
+ required: true
20
+ },
21
+ raisedBy: {
22
+ type: String,
23
+ required: true
24
+ },
25
+ approvedBy: {
26
+ type: String,
27
+ required: true
28
+ }
29
+ },
30
+ {
31
+ timestamps: true,
32
+ strict: true,
33
+ versionKey: false,
34
+ });
35
+
36
+
37
+ collection.index({ storeId:1,dateString: 1, });
38
+ collection.index({ clientId:1,dateString: 1 });
39
+
40
+ export default mongoose.model('vmsStoreRequest', collection, 'vmsStoreRequest');