tango-api-schema 2.0.115 → 2.0.116

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
@@ -1,19 +1,19 @@
1
1
  import leadModel from "./schema/lead.model.js";
2
2
  import otpModel from "./schema/otp.model.js";
3
3
  import storeModel from "./schema/store.model.js";
4
- import countryCodesModel from './schema/countryCodes.model.js';
4
+ import countryCodesModel from "./schema/countryCodes.model.js";
5
5
  import clientModel from "./schema/client.model.js";
6
6
  import tangoTicketModel from "./schema/tangoTicket.model.js";
7
7
  import ipLogModel from "./schema/ipLogs.model.js";
8
8
  import userModel from "./schema/user.model.js";
9
- import edgeAppVersionModel from './schema/edgeAppVersion.model.js';
9
+ import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
10
10
  import applicationDefaultModel from "./schema/applicationDefault.model.js";
11
11
  import cameraModel from "./schema/camera.model.js";
12
12
  import reportModel from "./schema/report.model.js";
13
13
  import standaredRoleModel from "./schema/standaredRole.model.js";
14
14
  import infraReasonModel from "./schema/infraReason.model.js";
15
- import groupModel from './schema/group.model.js';
16
- import authenticationModel from './schema/authentication.model.js';
15
+ import groupModel from "./schema/group.model.js";
16
+ import authenticationModel from "./schema/authentication.model.js";
17
17
  import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
18
18
  import edgeappAuthModel from "./schema/edgeappAuth.model.js";
19
19
  import clientRequestModel from "./schema/clientRequest.model.js";
@@ -21,14 +21,15 @@ 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
26
  import taggingModel from "./schema/tagging.model.js";
27
27
  import auditModel from "./schema/audit.model.js";
28
28
  import auditLogsModel from "./schema/auditLogs.model.js";
29
29
  import assignAuditModel from "./schema/assignAudit.model.js";
30
30
  import auditFilesCountModel from "./schema/auditFilesCount.model.js";
31
31
  import matLogModel from "./schema/matLog.model.js";
32
+ import billingModel from "./schema/billing.model.js";
32
33
 
33
34
  export default {
34
35
  leadModel,
@@ -61,5 +62,6 @@ export default {
61
62
  assignAuditModel,
62
63
  auditLogsModel,
63
64
  auditFilesCountModel,
64
- matLogModel
65
+ matLogModel,
66
+ billingModel
65
67
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.115",
3
+ "version": "2.0.116",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,100 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const billingSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ groupName: {
10
+ type: String,
11
+ default:'Default Group'
12
+ },
13
+ groupTag: {
14
+ type: String,
15
+ enum: ['store','gst'],
16
+ default: 'store'
17
+ },
18
+ registeredCompanyName: {
19
+ type: String,
20
+ },
21
+ gst: {
22
+ type: String,
23
+ },
24
+ addressLineOne: {
25
+ type: String,
26
+ },
27
+ addressLineTwo: {
28
+ type: String,
29
+ },
30
+ city: {
31
+ type: String,
32
+ },
33
+ state: {
34
+ type: String,
35
+ },
36
+ country: {
37
+ type: String,
38
+ },
39
+ pinCode: {
40
+ type: String,
41
+ },
42
+ placeOfSupply: {
43
+ type: String,
44
+ },
45
+ po: {
46
+ type: String,
47
+ },
48
+ stores: {
49
+ type: Array,
50
+ },
51
+ proRata: {
52
+ type: String,
53
+ enum: ['b15','a15'],
54
+ default: 'a15'
55
+ },
56
+ paymentCategory: {
57
+ type: String,
58
+ enum: ['pre','post'],
59
+ default: 'post'
60
+ },
61
+ currency: {
62
+ type: String,
63
+ enum: ['dollar','inr'],
64
+ },
65
+ isInstallationOneTime: {
66
+ type: Boolean,
67
+ default: false
68
+ },
69
+ installationFee: {
70
+ type: Number,
71
+ },
72
+ paymentCycle: {
73
+ type: String,
74
+ enum: ['monthly','quarter', 'halfYearly', 'yearly'],
75
+ default: 'monthly'
76
+ },
77
+ paymentTerm: {
78
+ type: Number,
79
+ enum: [30, 45, 60, 90],
80
+ default: 30
81
+ },
82
+ generateInvoiceTo: {
83
+ type: Array,
84
+ },
85
+ attachAnnexure: {
86
+ type: Boolean,
87
+ default:false
88
+ },
89
+ isPrimary: {
90
+ type: Boolean
91
+ }
92
+ },
93
+ {
94
+ strict: true,
95
+ versionKey: false,
96
+ timestamps: true,
97
+ },
98
+ );
99
+
100
+ export default mongoose.model( 'billing', billingSchema);
@@ -290,6 +290,13 @@ const store = new mongoose.Schema(
290
290
  fileCount:{
291
291
  type: Number
292
292
  }
293
+ },
294
+ featurePackage:{
295
+ controlCenter: {
296
+ type: Boolean,
297
+ default: false
298
+ },
299
+
293
300
  }
294
301
  },
295
302
  {