tango-api-schema 1.0.61 → 1.0.63

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": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,40 +3,45 @@
3
3
  * @description EyeTest Schema
4
4
  */
5
5
 
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const collection = new mongoose.Schema( {
10
- actionType: {
11
- type: String,
12
- },
13
- queueId: {
14
- type: String,
15
- },
16
- tokenNo: {
17
- type: String,
18
- },
19
- salesmanId: {
20
- type: String,
21
- },
22
- facilityCode: {
23
- type: String,
24
- },
25
- stepNo: {
26
- type: String,
27
- },
28
- store:{
29
- type:mongoose.Schema.Types.ObjectId,
30
- ref:"Store"
31
- },
32
- storeId:{
33
- type: String,
34
- }
35
- }, {
36
- timestamps: true,
37
- strict: true,
38
- versionKey: false,
39
- } );
40
-
41
- export default mongoose.model( 'eyeTest', collection );
42
-
6
+ import mongoose from "mongoose";
7
+
8
+ // Schema
9
+ const collection = new mongoose.Schema(
10
+ {
11
+ actionType: {
12
+ type: String,
13
+ },
14
+ queueId: {
15
+ type: String,
16
+ },
17
+ tokenNo: {
18
+ type: String,
19
+ },
20
+ salesmanId: {
21
+ type: String,
22
+ },
23
+ facilityCode: {
24
+ type: String,
25
+ },
26
+ stepNo: {
27
+ type: String,
28
+ },
29
+ testDate: {
30
+ type: Date,
31
+ },
32
+ store: {
33
+ type: mongoose.Schema.Types.ObjectId,
34
+ ref: "Store",
35
+ },
36
+ storeId: {
37
+ type: String,
38
+ },
39
+ },
40
+ {
41
+ timestamps: true,
42
+ strict: true,
43
+ versionKey: false,
44
+ }
45
+ );
46
+
47
+ export default mongoose.model("eyeTest", collection);
@@ -41,6 +41,12 @@ const financeSchema = new mongoose.Schema(
41
41
  type:Boolean,
42
42
  default:false
43
43
  },
44
+ activeStores:{
45
+ type:Number
46
+ },
47
+ totalStores:{
48
+ type:Number
49
+ },
44
50
  stores: [
45
51
  {
46
52
  store: {
@@ -50,16 +56,17 @@ const financeSchema = new mongoose.Schema(
50
56
  storeId: {
51
57
  type: String
52
58
  },
53
- active: {
59
+ storeName: {
54
60
  type: String
55
61
  },
62
+ active: {
63
+ type: Boolean
64
+ },
56
65
  deployedStatus: {
57
- type: Boolean,
58
- default: false,
66
+ type: Boolean
59
67
  },
60
68
  isdeletedstore: {
61
- type: Boolean,
62
- default: false,
69
+ type: Boolean
63
70
  },
64
71
  processfirstFileDate: {
65
72
  type: Date,
@@ -70,6 +77,10 @@ const financeSchema = new mongoose.Schema(
70
77
  Date:{
71
78
  type:Date
72
79
  },
80
+ daysDifference:{
81
+ type:Number,
82
+ default:0
83
+ },
73
84
  dataProcess: {
74
85
  type: String,
75
86
  enum: [ 'hold', 'suspend', 'active', 'deActive' ],