tango-api-schema 2.4.18 → 2.4.20
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 +27 -27
- package/schema/client.model.js +58 -29
- package/schema/vmsStoreRequest.model.js +3 -1
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tango-api-schema",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "tangoEye model schema",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"start": "node index.js",
|
|
10
|
-
"build:patch": "node build.js patch && npm publish",
|
|
11
|
-
"build:minor": "node build.js minor && npm publish",
|
|
12
|
-
"build:major": "node build.js major && npm publish"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
17
|
-
},
|
|
18
|
-
"author": "praveenraj",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"express": "^4.21.1",
|
|
26
|
-
"mongoose": "^7.5.3"
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tango-api-schema",
|
|
3
|
+
"version": "2.4.20",
|
|
4
|
+
"description": "tangoEye model schema",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"start": "node index.js",
|
|
10
|
+
"build:patch": "node build.js patch && npm publish",
|
|
11
|
+
"build:minor": "node build.js minor && npm publish",
|
|
12
|
+
"build:major": "node build.js major && npm publish"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "praveenraj",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"express": "^4.21.1",
|
|
26
|
+
"mongoose": "^7.5.3"
|
|
27
|
+
}
|
|
28
28
|
}
|
package/schema/client.model.js
CHANGED
|
@@ -479,53 +479,82 @@ const client = new mongoose.Schema(
|
|
|
479
479
|
|
|
480
480
|
},
|
|
481
481
|
footfallDirectoryConfigs: {
|
|
482
|
-
revision:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
482
|
+
revision: {
|
|
483
|
+
type: [
|
|
484
|
+
{
|
|
485
|
+
actionType: {
|
|
486
|
+
type: String,
|
|
487
|
+
enum: ["reviewer", "approver", "tango"],
|
|
488
|
+
},
|
|
489
|
+
isChecked: {
|
|
490
|
+
type: Boolean,
|
|
491
|
+
}
|
|
490
492
|
}
|
|
493
|
+
],
|
|
494
|
+
default: function () {
|
|
495
|
+
return [
|
|
496
|
+
{ actionType: "reviewer", isChecked: false },
|
|
497
|
+
{ actionType: "approver", isChecked: false },
|
|
498
|
+
{ actionType: "tango", isChecked: true },
|
|
499
|
+
];
|
|
491
500
|
}
|
|
492
501
|
|
|
493
|
-
|
|
502
|
+
},
|
|
494
503
|
allowTicketCreation: {
|
|
495
|
-
type: Number
|
|
504
|
+
type: Number,
|
|
505
|
+
default:3
|
|
496
506
|
},
|
|
497
507
|
isAutoCloseEnable: {
|
|
498
|
-
type: Boolean
|
|
508
|
+
type: Boolean,
|
|
509
|
+
default:true
|
|
499
510
|
},
|
|
500
511
|
autoCloseAccuracy: {
|
|
501
|
-
type: String
|
|
512
|
+
type: String,
|
|
513
|
+
default:"95%"
|
|
502
514
|
},
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
515
|
+
taggingLimitation: {
|
|
516
|
+
type: [
|
|
517
|
+
{
|
|
518
|
+
type: {
|
|
519
|
+
type: String,
|
|
520
|
+
default: ""
|
|
521
|
+
},
|
|
522
|
+
value: {
|
|
523
|
+
type: Number,
|
|
524
|
+
default: 0
|
|
525
|
+
},
|
|
526
|
+
unit: {
|
|
527
|
+
type: String,
|
|
528
|
+
default: "%"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
default: function () {
|
|
533
|
+
return [
|
|
534
|
+
{ type: "duplicate", value: 10, unit: "%" },
|
|
535
|
+
{ type: "employee", value: 5, unit: "%" },
|
|
536
|
+
{ type: "house-keeping", value: 1, unit: "%" },
|
|
537
|
+
{ type: "junk", value: 5, unit: "%" }
|
|
538
|
+
];
|
|
539
|
+
}
|
|
540
|
+
},
|
|
516
541
|
accuracyBreach: {
|
|
517
542
|
ticketCount: {
|
|
518
|
-
type: String
|
|
543
|
+
type: String,
|
|
544
|
+
default:"3"
|
|
519
545
|
},
|
|
520
546
|
days: {
|
|
521
|
-
type: String
|
|
547
|
+
type: String,
|
|
548
|
+
default:"30"
|
|
522
549
|
},
|
|
523
550
|
accuracy: {
|
|
524
|
-
type: String
|
|
551
|
+
type: String,
|
|
552
|
+
default:"95%"
|
|
525
553
|
}
|
|
526
554
|
},
|
|
527
555
|
tangoReview: {
|
|
528
|
-
type: String
|
|
556
|
+
type: String,
|
|
557
|
+
default:"85%"
|
|
529
558
|
}
|
|
530
559
|
},
|
|
531
560
|
document: {
|