@technova-tech/olive-proto-lib 1.8.4 → 1.8.6
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/audit/audit.js +81 -100
- package/google/protobuf/any.js +113 -0
- package/google/protobuf/struct.js +357 -0
- package/package.json +3 -3
- package/pos.v1/terminals.js +20 -0
- package/types/audit/audit.d.ts +173 -65
- package/types/google/protobuf/any.d.ts +27 -0
- package/types/google/protobuf/struct.d.ts +175 -0
- package/types/pos.v1/terminals.d.ts +6 -0
package/audit/audit.js
CHANGED
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.com = void 0;
|
|
27
|
+
const dependency_2 = __importStar(require("./../google/protobuf/struct"));
|
|
27
28
|
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
29
|
const grpc_1 = __importStar(require("@grpc/grpc-js"));
|
|
29
30
|
var com;
|
|
@@ -32,86 +33,6 @@ var com;
|
|
|
32
33
|
(function (pkg) {
|
|
33
34
|
var audit;
|
|
34
35
|
(function (audit) {
|
|
35
|
-
class Any extends pb_1.Message {
|
|
36
|
-
#one_of_decls = [];
|
|
37
|
-
constructor(data) {
|
|
38
|
-
super();
|
|
39
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
40
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
41
|
-
if ("typeUrl" in data && data.typeUrl != undefined) {
|
|
42
|
-
this.typeUrl = data.typeUrl;
|
|
43
|
-
}
|
|
44
|
-
if ("value" in data && data.value != undefined) {
|
|
45
|
-
this.value = data.value;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
get typeUrl() {
|
|
50
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
51
|
-
}
|
|
52
|
-
set typeUrl(value) {
|
|
53
|
-
pb_1.Message.setField(this, 1, value);
|
|
54
|
-
}
|
|
55
|
-
get value() {
|
|
56
|
-
return pb_1.Message.getFieldWithDefault(this, 2, new Uint8Array(0));
|
|
57
|
-
}
|
|
58
|
-
set value(value) {
|
|
59
|
-
pb_1.Message.setField(this, 2, value);
|
|
60
|
-
}
|
|
61
|
-
static fromObject(data) {
|
|
62
|
-
const message = new Any({});
|
|
63
|
-
if (data.typeUrl != null) {
|
|
64
|
-
message.typeUrl = data.typeUrl;
|
|
65
|
-
}
|
|
66
|
-
if (data.value != null) {
|
|
67
|
-
message.value = data.value;
|
|
68
|
-
}
|
|
69
|
-
return message;
|
|
70
|
-
}
|
|
71
|
-
toObject() {
|
|
72
|
-
const data = {};
|
|
73
|
-
if (this.typeUrl != null) {
|
|
74
|
-
data.typeUrl = this.typeUrl;
|
|
75
|
-
}
|
|
76
|
-
if (this.value != null) {
|
|
77
|
-
data.value = this.value;
|
|
78
|
-
}
|
|
79
|
-
return data;
|
|
80
|
-
}
|
|
81
|
-
serialize(w) {
|
|
82
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
83
|
-
if (this.typeUrl.length)
|
|
84
|
-
writer.writeString(1, this.typeUrl);
|
|
85
|
-
if (this.value.length)
|
|
86
|
-
writer.writeBytes(2, this.value);
|
|
87
|
-
if (!w)
|
|
88
|
-
return writer.getResultBuffer();
|
|
89
|
-
}
|
|
90
|
-
static deserialize(bytes) {
|
|
91
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Any();
|
|
92
|
-
while (reader.nextField()) {
|
|
93
|
-
if (reader.isEndGroup())
|
|
94
|
-
break;
|
|
95
|
-
switch (reader.getFieldNumber()) {
|
|
96
|
-
case 1:
|
|
97
|
-
message.typeUrl = reader.readString();
|
|
98
|
-
break;
|
|
99
|
-
case 2:
|
|
100
|
-
message.value = reader.readBytes();
|
|
101
|
-
break;
|
|
102
|
-
default: reader.skipField();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return message;
|
|
106
|
-
}
|
|
107
|
-
serializeBinary() {
|
|
108
|
-
return this.serialize();
|
|
109
|
-
}
|
|
110
|
-
static deserializeBinary(bytes) {
|
|
111
|
-
return Any.deserialize(bytes);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
audit.Any = Any;
|
|
115
36
|
class ValidationErrors extends pb_1.Message {
|
|
116
37
|
#one_of_decls = [];
|
|
117
38
|
constructor(data) {
|
|
@@ -476,7 +397,7 @@ var com;
|
|
|
476
397
|
pb_1.Message.setField(this, 1, value);
|
|
477
398
|
}
|
|
478
399
|
get oldValue() {
|
|
479
|
-
return pb_1.Message.getWrapperField(this,
|
|
400
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Value, 2);
|
|
480
401
|
}
|
|
481
402
|
set oldValue(value) {
|
|
482
403
|
pb_1.Message.setWrapperField(this, 2, value);
|
|
@@ -485,7 +406,7 @@ var com;
|
|
|
485
406
|
return pb_1.Message.getField(this, 2) != null;
|
|
486
407
|
}
|
|
487
408
|
get newValue() {
|
|
488
|
-
return pb_1.Message.getWrapperField(this,
|
|
409
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Value, 3);
|
|
489
410
|
}
|
|
490
411
|
set newValue(value) {
|
|
491
412
|
pb_1.Message.setWrapperField(this, 3, value);
|
|
@@ -499,10 +420,10 @@ var com;
|
|
|
499
420
|
message.fieldName = data.fieldName;
|
|
500
421
|
}
|
|
501
422
|
if (data.oldValue != null) {
|
|
502
|
-
message.oldValue =
|
|
423
|
+
message.oldValue = dependency_2.google.protobuf.Value.fromObject(data.oldValue);
|
|
503
424
|
}
|
|
504
425
|
if (data.newValue != null) {
|
|
505
|
-
message.newValue =
|
|
426
|
+
message.newValue = dependency_2.google.protobuf.Value.fromObject(data.newValue);
|
|
506
427
|
}
|
|
507
428
|
return message;
|
|
508
429
|
}
|
|
@@ -540,10 +461,10 @@ var com;
|
|
|
540
461
|
message.fieldName = reader.readString();
|
|
541
462
|
break;
|
|
542
463
|
case 2:
|
|
543
|
-
reader.readMessage(message.oldValue, () => message.oldValue =
|
|
464
|
+
reader.readMessage(message.oldValue, () => message.oldValue = dependency_2.google.protobuf.Value.deserialize(reader));
|
|
544
465
|
break;
|
|
545
466
|
case 3:
|
|
546
|
-
reader.readMessage(message.newValue, () => message.newValue =
|
|
467
|
+
reader.readMessage(message.newValue, () => message.newValue = dependency_2.google.protobuf.Value.deserialize(reader));
|
|
547
468
|
break;
|
|
548
469
|
default: reader.skipField();
|
|
549
470
|
}
|
|
@@ -570,8 +491,8 @@ var com;
|
|
|
570
491
|
if ("adminName" in data && data.adminName != undefined) {
|
|
571
492
|
this.adminName = data.adminName;
|
|
572
493
|
}
|
|
573
|
-
if ("
|
|
574
|
-
this.
|
|
494
|
+
if ("action" in data && data.action != undefined) {
|
|
495
|
+
this.action = data.action;
|
|
575
496
|
}
|
|
576
497
|
if ("actionDate" in data && data.actionDate != undefined) {
|
|
577
498
|
this.actionDate = data.actionDate;
|
|
@@ -582,6 +503,15 @@ var com;
|
|
|
582
503
|
if ("modifiedFields" in data && data.modifiedFields != undefined) {
|
|
583
504
|
this.modifiedFields = data.modifiedFields;
|
|
584
505
|
}
|
|
506
|
+
if ("adminIdentity" in data && data.adminIdentity != undefined) {
|
|
507
|
+
this.adminIdentity = data.adminIdentity;
|
|
508
|
+
}
|
|
509
|
+
if ("dataType" in data && data.dataType != undefined) {
|
|
510
|
+
this.dataType = data.dataType;
|
|
511
|
+
}
|
|
512
|
+
if ("appName" in data && data.appName != undefined) {
|
|
513
|
+
this.appName = data.appName;
|
|
514
|
+
}
|
|
585
515
|
}
|
|
586
516
|
}
|
|
587
517
|
get id() {
|
|
@@ -596,10 +526,10 @@ var com;
|
|
|
596
526
|
set adminName(value) {
|
|
597
527
|
pb_1.Message.setField(this, 2, value);
|
|
598
528
|
}
|
|
599
|
-
get
|
|
529
|
+
get action() {
|
|
600
530
|
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
601
531
|
}
|
|
602
|
-
set
|
|
532
|
+
set action(value) {
|
|
603
533
|
pb_1.Message.setField(this, 3, value);
|
|
604
534
|
}
|
|
605
535
|
get actionDate() {
|
|
@@ -609,7 +539,7 @@ var com;
|
|
|
609
539
|
pb_1.Message.setField(this, 4, value);
|
|
610
540
|
}
|
|
611
541
|
get createdData() {
|
|
612
|
-
return pb_1.Message.getWrapperField(this,
|
|
542
|
+
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Value, 5);
|
|
613
543
|
}
|
|
614
544
|
set createdData(value) {
|
|
615
545
|
pb_1.Message.setWrapperField(this, 5, value);
|
|
@@ -623,6 +553,24 @@ var com;
|
|
|
623
553
|
set modifiedFields(value) {
|
|
624
554
|
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
625
555
|
}
|
|
556
|
+
get adminIdentity() {
|
|
557
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
558
|
+
}
|
|
559
|
+
set adminIdentity(value) {
|
|
560
|
+
pb_1.Message.setField(this, 7, value);
|
|
561
|
+
}
|
|
562
|
+
get dataType() {
|
|
563
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
564
|
+
}
|
|
565
|
+
set dataType(value) {
|
|
566
|
+
pb_1.Message.setField(this, 8, value);
|
|
567
|
+
}
|
|
568
|
+
get appName() {
|
|
569
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
570
|
+
}
|
|
571
|
+
set appName(value) {
|
|
572
|
+
pb_1.Message.setField(this, 9, value);
|
|
573
|
+
}
|
|
626
574
|
static fromObject(data) {
|
|
627
575
|
const message = new AuditTrail({});
|
|
628
576
|
if (data.id != null) {
|
|
@@ -631,18 +579,27 @@ var com;
|
|
|
631
579
|
if (data.adminName != null) {
|
|
632
580
|
message.adminName = data.adminName;
|
|
633
581
|
}
|
|
634
|
-
if (data.
|
|
635
|
-
message.
|
|
582
|
+
if (data.action != null) {
|
|
583
|
+
message.action = data.action;
|
|
636
584
|
}
|
|
637
585
|
if (data.actionDate != null) {
|
|
638
586
|
message.actionDate = data.actionDate;
|
|
639
587
|
}
|
|
640
588
|
if (data.createdData != null) {
|
|
641
|
-
message.createdData =
|
|
589
|
+
message.createdData = dependency_2.google.protobuf.Value.fromObject(data.createdData);
|
|
642
590
|
}
|
|
643
591
|
if (data.modifiedFields != null) {
|
|
644
592
|
message.modifiedFields = data.modifiedFields.map(item => ModifiedField.fromObject(item));
|
|
645
593
|
}
|
|
594
|
+
if (data.adminIdentity != null) {
|
|
595
|
+
message.adminIdentity = data.adminIdentity;
|
|
596
|
+
}
|
|
597
|
+
if (data.dataType != null) {
|
|
598
|
+
message.dataType = data.dataType;
|
|
599
|
+
}
|
|
600
|
+
if (data.appName != null) {
|
|
601
|
+
message.appName = data.appName;
|
|
602
|
+
}
|
|
646
603
|
return message;
|
|
647
604
|
}
|
|
648
605
|
toObject() {
|
|
@@ -653,8 +610,8 @@ var com;
|
|
|
653
610
|
if (this.adminName != null) {
|
|
654
611
|
data.adminName = this.adminName;
|
|
655
612
|
}
|
|
656
|
-
if (this.
|
|
657
|
-
data.
|
|
613
|
+
if (this.action != null) {
|
|
614
|
+
data.action = this.action;
|
|
658
615
|
}
|
|
659
616
|
if (this.actionDate != null) {
|
|
660
617
|
data.actionDate = this.actionDate;
|
|
@@ -665,6 +622,15 @@ var com;
|
|
|
665
622
|
if (this.modifiedFields != null) {
|
|
666
623
|
data.modifiedFields = this.modifiedFields.map((item) => item.toObject());
|
|
667
624
|
}
|
|
625
|
+
if (this.adminIdentity != null) {
|
|
626
|
+
data.adminIdentity = this.adminIdentity;
|
|
627
|
+
}
|
|
628
|
+
if (this.dataType != null) {
|
|
629
|
+
data.dataType = this.dataType;
|
|
630
|
+
}
|
|
631
|
+
if (this.appName != null) {
|
|
632
|
+
data.appName = this.appName;
|
|
633
|
+
}
|
|
668
634
|
return data;
|
|
669
635
|
}
|
|
670
636
|
serialize(w) {
|
|
@@ -673,14 +639,20 @@ var com;
|
|
|
673
639
|
writer.writeString(1, this.id);
|
|
674
640
|
if (this.adminName.length)
|
|
675
641
|
writer.writeString(2, this.adminName);
|
|
676
|
-
if (this.
|
|
677
|
-
writer.writeString(3, this.
|
|
642
|
+
if (this.action.length)
|
|
643
|
+
writer.writeString(3, this.action);
|
|
678
644
|
if (this.actionDate.length)
|
|
679
645
|
writer.writeString(4, this.actionDate);
|
|
680
646
|
if (this.hasCreatedData)
|
|
681
647
|
writer.writeMessage(5, this.createdData, () => this.createdData.serialize(writer));
|
|
682
648
|
if (this.modifiedFields.length)
|
|
683
649
|
writer.writeRepeatedMessage(6, this.modifiedFields, (item) => item.serialize(writer));
|
|
650
|
+
if (this.adminIdentity.length)
|
|
651
|
+
writer.writeString(7, this.adminIdentity);
|
|
652
|
+
if (this.dataType.length)
|
|
653
|
+
writer.writeString(8, this.dataType);
|
|
654
|
+
if (this.appName.length)
|
|
655
|
+
writer.writeString(9, this.appName);
|
|
684
656
|
if (!w)
|
|
685
657
|
return writer.getResultBuffer();
|
|
686
658
|
}
|
|
@@ -697,17 +669,26 @@ var com;
|
|
|
697
669
|
message.adminName = reader.readString();
|
|
698
670
|
break;
|
|
699
671
|
case 3:
|
|
700
|
-
message.
|
|
672
|
+
message.action = reader.readString();
|
|
701
673
|
break;
|
|
702
674
|
case 4:
|
|
703
675
|
message.actionDate = reader.readString();
|
|
704
676
|
break;
|
|
705
677
|
case 5:
|
|
706
|
-
reader.readMessage(message.createdData, () => message.createdData =
|
|
678
|
+
reader.readMessage(message.createdData, () => message.createdData = dependency_2.google.protobuf.Value.deserialize(reader));
|
|
707
679
|
break;
|
|
708
680
|
case 6:
|
|
709
681
|
reader.readMessage(message.modifiedFields, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ModifiedField.deserialize(reader), ModifiedField));
|
|
710
682
|
break;
|
|
683
|
+
case 7:
|
|
684
|
+
message.adminIdentity = reader.readString();
|
|
685
|
+
break;
|
|
686
|
+
case 8:
|
|
687
|
+
message.dataType = reader.readString();
|
|
688
|
+
break;
|
|
689
|
+
case 9:
|
|
690
|
+
message.appName = reader.readString();
|
|
691
|
+
break;
|
|
711
692
|
default: reader.skipField();
|
|
712
693
|
}
|
|
713
694
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.google = void 0;
|
|
27
|
+
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
|
+
var google;
|
|
29
|
+
(function (google) {
|
|
30
|
+
var protobuf;
|
|
31
|
+
(function (protobuf) {
|
|
32
|
+
class Any extends pb_1.Message {
|
|
33
|
+
#one_of_decls = [];
|
|
34
|
+
constructor(data) {
|
|
35
|
+
super();
|
|
36
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
37
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
38
|
+
if ("typeUrl" in data && data.typeUrl != undefined) {
|
|
39
|
+
this.typeUrl = data.typeUrl;
|
|
40
|
+
}
|
|
41
|
+
if ("value" in data && data.value != undefined) {
|
|
42
|
+
this.value = data.value;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
get typeUrl() {
|
|
47
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
48
|
+
}
|
|
49
|
+
set typeUrl(value) {
|
|
50
|
+
pb_1.Message.setField(this, 1, value);
|
|
51
|
+
}
|
|
52
|
+
get value() {
|
|
53
|
+
return pb_1.Message.getFieldWithDefault(this, 2, new Uint8Array(0));
|
|
54
|
+
}
|
|
55
|
+
set value(value) {
|
|
56
|
+
pb_1.Message.setField(this, 2, value);
|
|
57
|
+
}
|
|
58
|
+
static fromObject(data) {
|
|
59
|
+
const message = new Any({});
|
|
60
|
+
if (data.typeUrl != null) {
|
|
61
|
+
message.typeUrl = data.typeUrl;
|
|
62
|
+
}
|
|
63
|
+
if (data.value != null) {
|
|
64
|
+
message.value = data.value;
|
|
65
|
+
}
|
|
66
|
+
return message;
|
|
67
|
+
}
|
|
68
|
+
toObject() {
|
|
69
|
+
const data = {};
|
|
70
|
+
if (this.typeUrl != null) {
|
|
71
|
+
data.typeUrl = this.typeUrl;
|
|
72
|
+
}
|
|
73
|
+
if (this.value != null) {
|
|
74
|
+
data.value = this.value;
|
|
75
|
+
}
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
serialize(w) {
|
|
79
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
80
|
+
if (this.typeUrl.length)
|
|
81
|
+
writer.writeString(1, this.typeUrl);
|
|
82
|
+
if (this.value.length)
|
|
83
|
+
writer.writeBytes(2, this.value);
|
|
84
|
+
if (!w)
|
|
85
|
+
return writer.getResultBuffer();
|
|
86
|
+
}
|
|
87
|
+
static deserialize(bytes) {
|
|
88
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Any();
|
|
89
|
+
while (reader.nextField()) {
|
|
90
|
+
if (reader.isEndGroup())
|
|
91
|
+
break;
|
|
92
|
+
switch (reader.getFieldNumber()) {
|
|
93
|
+
case 1:
|
|
94
|
+
message.typeUrl = reader.readString();
|
|
95
|
+
break;
|
|
96
|
+
case 2:
|
|
97
|
+
message.value = reader.readBytes();
|
|
98
|
+
break;
|
|
99
|
+
default: reader.skipField();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
serializeBinary() {
|
|
105
|
+
return this.serialize();
|
|
106
|
+
}
|
|
107
|
+
static deserializeBinary(bytes) {
|
|
108
|
+
return Any.deserialize(bytes);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
protobuf.Any = Any;
|
|
112
|
+
})(protobuf = google.protobuf || (google.protobuf = {}));
|
|
113
|
+
})(google || (exports.google = google = {}));
|