tango-api-schema 2.0.96 → 2.0.98

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
@@ -21,8 +21,9 @@ import basePricingModel from "./schema/basePricing.model.js";
21
21
  import invoiceModel from "./schema/invoice.model.js";
22
22
  import workstationModel from "./schema/workstation.model.js";
23
23
  import dailyPricingModel from "./schema/dailyPricing.model.js";
24
- import fittingModel from './schema/fitting.model.js'
25
- import qualityCheckModel from './schema/quality.model.js'
24
+ import fittingModel from './schema/fitting.model.js';
25
+ import qualityCheckModel from './schema/quality.model.js';
26
+ import taggingModel from "./schema/tagging.model.js";
26
27
 
27
28
  export default {
28
29
  leadModel,
@@ -49,5 +50,6 @@ export default {
49
50
  workstationModel,
50
51
  dailyPricingModel,
51
52
  fittingModel,
52
- qualityCheckModel
53
+ qualityCheckModel,
54
+ taggingModel
53
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.96",
3
+ "version": "2.0.98",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,35 @@
1
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
2
+ import mongoose from 'mongoose';
3
+
4
+ // schema
5
+ const collection = new Schema({
6
+ clientId:{
7
+ type:String,
8
+ required:true
9
+ },
10
+ storeId:{
11
+ type:String,
12
+ required:true
13
+ },
14
+ tagName:{
15
+ type:String,
16
+ required:true
17
+ },
18
+ coordinates:{
19
+ type:Array,
20
+ },
21
+ cameraId:{
22
+ type:mongoose.Types.ObjectId,
23
+ },
24
+ streamName:{
25
+ type:String,
26
+ }
27
+ },{
28
+ strict: true,
29
+ versionKey: false,
30
+ timestamps: true,
31
+ } );
32
+
33
+ collection.plugin(mongooseUniqueValidator);
34
+
35
+ export default model("tagging", collection);
@@ -32,18 +32,27 @@ const tangoTickets = new mongoose.Schema(
32
32
  }
33
33
  ],
34
34
  cameraList: [],
35
- ticketDetails: {
36
- dataMismatch: {
37
- actualCount: {
38
- type: Number
39
- },
40
- expectedCount: {
41
- type: Number
42
- },
43
- contactEmail: {
44
- type: String
45
- }
35
+ dataMismatch: {
36
+ actualCount: {
37
+ type: Number
38
+ },
39
+ expectedCount: {
40
+ type: Number
41
+ },
42
+ contactEmail: {
43
+ type: String
44
+ },
45
+ description: {
46
+ type: String
47
+ },
48
+ feature: {
49
+ type: String
46
50
  },
51
+ attachmentPath: {
52
+ type: String
53
+ },
54
+ },
55
+ ticketDetails: {
47
56
  issueIdentifiedDate: {
48
57
  type: Date
49
58
  },