tango-api-schema 2.0.84 → 2.0.86
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 +52 -48
- package/package.json +27 -27
- package/schema/applicationDefault.model.js +24 -24
- package/schema/authentication.model.js +27 -27
- package/schema/basePricing.model.js +29 -29
- package/schema/camera.model.js +123 -123
- package/schema/client.model.js +414 -415
- package/schema/clientRequest.model.js +40 -40
- package/schema/countryCodes.model.js +28 -28
- package/schema/dailyPricing.model.js +52 -52
- package/schema/edgeAppVersion.model.js +33 -33
- package/schema/edgeappAuth.model.js +32 -32
- package/schema/fitting.model.js +49 -0
- package/schema/group.model.js +31 -31
- package/schema/infraReason.model.js +44 -44
- package/schema/invoice.model.js +65 -65
- package/schema/ipLogs.model.js +39 -39
- package/schema/lead.model.js +71 -71
- package/schema/otp.model.js +28 -28
- package/schema/quality.model.js +53 -0
- package/schema/report.model.js +30 -30
- package/schema/standaredRole.model.js +54 -54
- package/schema/store.model.js +301 -301
- package/schema/tangoTicket.model.js +161 -161
- package/schema/user.model.js +95 -95
- package/schema/userAssignedStore.model.js +38 -38
- package/schema/workstation.model.js +77 -77
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Schema, model } from "mongoose";
|
|
2
|
-
import mongooseUniqueValidator from "mongoose-unique-validator";
|
|
3
|
-
const workStationModel = new Schema(
|
|
4
|
-
{
|
|
5
|
-
workStationId: {
|
|
6
|
-
type: String,
|
|
7
|
-
trim: true,
|
|
8
|
-
required: true,
|
|
9
|
-
unique: true,
|
|
10
|
-
},
|
|
11
|
-
appId: {
|
|
12
|
-
type: String,
|
|
13
|
-
trim: true,
|
|
14
|
-
required: true,
|
|
15
|
-
unique: true,
|
|
16
|
-
},
|
|
17
|
-
ip: {
|
|
18
|
-
type: String,
|
|
19
|
-
require: true,
|
|
20
|
-
},
|
|
21
|
-
macAddress: {
|
|
22
|
-
type: String,
|
|
23
|
-
require: true,
|
|
24
|
-
},
|
|
25
|
-
serverType: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false,
|
|
28
|
-
},
|
|
29
|
-
active: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: true,
|
|
32
|
-
},
|
|
33
|
-
updateAppVersion: {
|
|
34
|
-
type: String,
|
|
35
|
-
trim: true,
|
|
36
|
-
},
|
|
37
|
-
appVersion: {
|
|
38
|
-
type: String,
|
|
39
|
-
trim: true,
|
|
40
|
-
},
|
|
41
|
-
architecture: {
|
|
42
|
-
type: String,
|
|
43
|
-
trim: true,
|
|
44
|
-
enum: [ 'x32', 'x64' ],
|
|
45
|
-
},
|
|
46
|
-
triggerProcessId:{
|
|
47
|
-
type: String,
|
|
48
|
-
trim: true,
|
|
49
|
-
},
|
|
50
|
-
isRestartRequired:{
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false,
|
|
53
|
-
},
|
|
54
|
-
deleteInterval:{
|
|
55
|
-
type: Number,
|
|
56
|
-
trim: true,
|
|
57
|
-
},
|
|
58
|
-
deleteExe:{
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: false,
|
|
61
|
-
},
|
|
62
|
-
isSocketEnable:{
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
strict: true,
|
|
69
|
-
versionKey: false,
|
|
70
|
-
timestamps: true,
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
workStationModel.index({ workStationId: 1, appId: 1 });
|
|
75
|
-
workStationModel.plugin(mongooseUniqueValidator);
|
|
76
|
-
|
|
77
|
-
export default model("workstation", workStationModel);
|
|
1
|
+
import { Schema, model } from "mongoose";
|
|
2
|
+
import mongooseUniqueValidator from "mongoose-unique-validator";
|
|
3
|
+
const workStationModel = new Schema(
|
|
4
|
+
{
|
|
5
|
+
workStationId: {
|
|
6
|
+
type: String,
|
|
7
|
+
trim: true,
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
},
|
|
11
|
+
appId: {
|
|
12
|
+
type: String,
|
|
13
|
+
trim: true,
|
|
14
|
+
required: true,
|
|
15
|
+
unique: true,
|
|
16
|
+
},
|
|
17
|
+
ip: {
|
|
18
|
+
type: String,
|
|
19
|
+
require: true,
|
|
20
|
+
},
|
|
21
|
+
macAddress: {
|
|
22
|
+
type: String,
|
|
23
|
+
require: true,
|
|
24
|
+
},
|
|
25
|
+
serverType: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false,
|
|
28
|
+
},
|
|
29
|
+
active: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true,
|
|
32
|
+
},
|
|
33
|
+
updateAppVersion: {
|
|
34
|
+
type: String,
|
|
35
|
+
trim: true,
|
|
36
|
+
},
|
|
37
|
+
appVersion: {
|
|
38
|
+
type: String,
|
|
39
|
+
trim: true,
|
|
40
|
+
},
|
|
41
|
+
architecture: {
|
|
42
|
+
type: String,
|
|
43
|
+
trim: true,
|
|
44
|
+
enum: [ 'x32', 'x64' ],
|
|
45
|
+
},
|
|
46
|
+
triggerProcessId:{
|
|
47
|
+
type: String,
|
|
48
|
+
trim: true,
|
|
49
|
+
},
|
|
50
|
+
isRestartRequired:{
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
54
|
+
deleteInterval:{
|
|
55
|
+
type: Number,
|
|
56
|
+
trim: true,
|
|
57
|
+
},
|
|
58
|
+
deleteExe:{
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
61
|
+
},
|
|
62
|
+
isSocketEnable:{
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
strict: true,
|
|
69
|
+
versionKey: false,
|
|
70
|
+
timestamps: true,
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
workStationModel.index({ workStationId: 1, appId: 1 });
|
|
75
|
+
workStationModel.plugin(mongooseUniqueValidator);
|
|
76
|
+
|
|
77
|
+
export default model("workstation", workStationModel);
|