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 +9 -7
- package/package.json +1 -1
- package/schema/billing.model.js +100 -0
- package/schema/store.model.js +7 -0
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
|
|
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
|
|
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
|
|
16
|
-
import authenticationModel from
|
|
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
|
|
25
|
-
import qualityCheckModel from
|
|
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
|
@@ -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);
|