tango-api-schema 2.2.47 → 2.2.49

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.2.47",
3
+ "version": "2.2.49",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -71,7 +71,12 @@ const checklistassignconfigSchema = new mongoose.Schema({
71
71
  },
72
72
  assignId:{
73
73
  type:mongoose.Types.ObjectId
74
- }
74
+ },
75
+ coverage:{
76
+ type: String,
77
+ default: 'store',
78
+ enum: ["store", "user"]
79
+ },
75
80
  },
76
81
  {
77
82
  strict: true,
@@ -21,7 +21,7 @@ const downloadSchema = new mongoose.Schema({
21
21
  storeIds: {
22
22
  type: Array,
23
23
  },
24
- userEmail: {
24
+ userEmailList: {
25
25
  type: Array,
26
26
  },
27
27
  questions: {
@@ -85,7 +85,6 @@ const processedchecklistSchema = new mongoose.Schema({
85
85
  },
86
86
  store_id: {
87
87
  type: String,
88
- // required:true,
89
88
  default:''
90
89
  },
91
90
  country: {
@@ -95,7 +94,6 @@ const processedchecklistSchema = new mongoose.Schema({
95
94
  },
96
95
  storeName: {
97
96
  type: String,
98
- // required:true,
99
97
  default:''
100
98
  },
101
99
  userId: {
@@ -3,12 +3,10 @@ import mongoose from 'mongoose';
3
3
  const taskassignconfigSchema = new mongoose.Schema({
4
4
  store_id: {
5
5
  type: String,
6
- required:true,
7
6
  default:''
8
7
  },
9
8
  storeName: {
10
9
  type: String,
11
- required:true,
12
10
  default:''
13
11
  },
14
12
  userId: {
@@ -64,7 +62,12 @@ const taskassignconfigSchema = new mongoose.Schema({
64
62
  sendNotification:{
65
63
  type:Boolean,
66
64
  default:false,
67
- }
65
+ },
66
+ coverage:{
67
+ type: String,
68
+ default: 'store',
69
+ enum: ["store", "user"]
70
+ },
68
71
  },
69
72
  {
70
73
  strict: true,