@technova-tech/olive-proto-lib 1.8.5 → 1.8.7
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 +85 -214
- package/google/protobuf/any.js +113 -0
- package/google/protobuf/struct.js +357 -0
- package/package.json +3 -3
- package/types/audit/audit.d.ts +42 -122
- package/types/google/protobuf/any.d.ts +27 -0
- package/types/google/protobuf/struct.d.ts +175 -0
package/audit/audit.js
CHANGED
|
@@ -32,86 +32,6 @@ var com;
|
|
|
32
32
|
(function (pkg) {
|
|
33
33
|
var audit;
|
|
34
34
|
(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
35
|
class ValidationErrors extends pb_1.Message {
|
|
116
36
|
#one_of_decls = [];
|
|
117
37
|
constructor(data) {
|
|
@@ -452,117 +372,11 @@ var com;
|
|
|
452
372
|
}
|
|
453
373
|
}
|
|
454
374
|
audit.GetAuditTrailsRequest = GetAuditTrailsRequest;
|
|
455
|
-
class ModifiedField extends pb_1.Message {
|
|
456
|
-
#one_of_decls = [];
|
|
457
|
-
constructor(data) {
|
|
458
|
-
super();
|
|
459
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
460
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
461
|
-
if ("fieldName" in data && data.fieldName != undefined) {
|
|
462
|
-
this.fieldName = data.fieldName;
|
|
463
|
-
}
|
|
464
|
-
if ("oldValue" in data && data.oldValue != undefined) {
|
|
465
|
-
this.oldValue = data.oldValue;
|
|
466
|
-
}
|
|
467
|
-
if ("newValue" in data && data.newValue != undefined) {
|
|
468
|
-
this.newValue = data.newValue;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
get fieldName() {
|
|
473
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
474
|
-
}
|
|
475
|
-
set fieldName(value) {
|
|
476
|
-
pb_1.Message.setField(this, 1, value);
|
|
477
|
-
}
|
|
478
|
-
get oldValue() {
|
|
479
|
-
return pb_1.Message.getWrapperField(this, Any, 2);
|
|
480
|
-
}
|
|
481
|
-
set oldValue(value) {
|
|
482
|
-
pb_1.Message.setWrapperField(this, 2, value);
|
|
483
|
-
}
|
|
484
|
-
get hasOldValue() {
|
|
485
|
-
return pb_1.Message.getField(this, 2) != null;
|
|
486
|
-
}
|
|
487
|
-
get newValue() {
|
|
488
|
-
return pb_1.Message.getWrapperField(this, Any, 3);
|
|
489
|
-
}
|
|
490
|
-
set newValue(value) {
|
|
491
|
-
pb_1.Message.setWrapperField(this, 3, value);
|
|
492
|
-
}
|
|
493
|
-
get hasNewValue() {
|
|
494
|
-
return pb_1.Message.getField(this, 3) != null;
|
|
495
|
-
}
|
|
496
|
-
static fromObject(data) {
|
|
497
|
-
const message = new ModifiedField({});
|
|
498
|
-
if (data.fieldName != null) {
|
|
499
|
-
message.fieldName = data.fieldName;
|
|
500
|
-
}
|
|
501
|
-
if (data.oldValue != null) {
|
|
502
|
-
message.oldValue = Any.fromObject(data.oldValue);
|
|
503
|
-
}
|
|
504
|
-
if (data.newValue != null) {
|
|
505
|
-
message.newValue = Any.fromObject(data.newValue);
|
|
506
|
-
}
|
|
507
|
-
return message;
|
|
508
|
-
}
|
|
509
|
-
toObject() {
|
|
510
|
-
const data = {};
|
|
511
|
-
if (this.fieldName != null) {
|
|
512
|
-
data.fieldName = this.fieldName;
|
|
513
|
-
}
|
|
514
|
-
if (this.oldValue != null) {
|
|
515
|
-
data.oldValue = this.oldValue.toObject();
|
|
516
|
-
}
|
|
517
|
-
if (this.newValue != null) {
|
|
518
|
-
data.newValue = this.newValue.toObject();
|
|
519
|
-
}
|
|
520
|
-
return data;
|
|
521
|
-
}
|
|
522
|
-
serialize(w) {
|
|
523
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
524
|
-
if (this.fieldName.length)
|
|
525
|
-
writer.writeString(1, this.fieldName);
|
|
526
|
-
if (this.hasOldValue)
|
|
527
|
-
writer.writeMessage(2, this.oldValue, () => this.oldValue.serialize(writer));
|
|
528
|
-
if (this.hasNewValue)
|
|
529
|
-
writer.writeMessage(3, this.newValue, () => this.newValue.serialize(writer));
|
|
530
|
-
if (!w)
|
|
531
|
-
return writer.getResultBuffer();
|
|
532
|
-
}
|
|
533
|
-
static deserialize(bytes) {
|
|
534
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ModifiedField();
|
|
535
|
-
while (reader.nextField()) {
|
|
536
|
-
if (reader.isEndGroup())
|
|
537
|
-
break;
|
|
538
|
-
switch (reader.getFieldNumber()) {
|
|
539
|
-
case 1:
|
|
540
|
-
message.fieldName = reader.readString();
|
|
541
|
-
break;
|
|
542
|
-
case 2:
|
|
543
|
-
reader.readMessage(message.oldValue, () => message.oldValue = Any.deserialize(reader));
|
|
544
|
-
break;
|
|
545
|
-
case 3:
|
|
546
|
-
reader.readMessage(message.newValue, () => message.newValue = Any.deserialize(reader));
|
|
547
|
-
break;
|
|
548
|
-
default: reader.skipField();
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
return message;
|
|
552
|
-
}
|
|
553
|
-
serializeBinary() {
|
|
554
|
-
return this.serialize();
|
|
555
|
-
}
|
|
556
|
-
static deserializeBinary(bytes) {
|
|
557
|
-
return ModifiedField.deserialize(bytes);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
audit.ModifiedField = ModifiedField;
|
|
561
375
|
class AuditTrail extends pb_1.Message {
|
|
562
376
|
#one_of_decls = [];
|
|
563
377
|
constructor(data) {
|
|
564
378
|
super();
|
|
565
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
379
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
566
380
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
567
381
|
if ("id" in data && data.id != undefined) {
|
|
568
382
|
this.id = data.id;
|
|
@@ -570,8 +384,8 @@ var com;
|
|
|
570
384
|
if ("adminName" in data && data.adminName != undefined) {
|
|
571
385
|
this.adminName = data.adminName;
|
|
572
386
|
}
|
|
573
|
-
if ("
|
|
574
|
-
this.
|
|
387
|
+
if ("action" in data && data.action != undefined) {
|
|
388
|
+
this.action = data.action;
|
|
575
389
|
}
|
|
576
390
|
if ("actionDate" in data && data.actionDate != undefined) {
|
|
577
391
|
this.actionDate = data.actionDate;
|
|
@@ -582,6 +396,15 @@ var com;
|
|
|
582
396
|
if ("modifiedFields" in data && data.modifiedFields != undefined) {
|
|
583
397
|
this.modifiedFields = data.modifiedFields;
|
|
584
398
|
}
|
|
399
|
+
if ("adminIdentity" in data && data.adminIdentity != undefined) {
|
|
400
|
+
this.adminIdentity = data.adminIdentity;
|
|
401
|
+
}
|
|
402
|
+
if ("dataType" in data && data.dataType != undefined) {
|
|
403
|
+
this.dataType = data.dataType;
|
|
404
|
+
}
|
|
405
|
+
if ("appName" in data && data.appName != undefined) {
|
|
406
|
+
this.appName = data.appName;
|
|
407
|
+
}
|
|
585
408
|
}
|
|
586
409
|
}
|
|
587
410
|
get id() {
|
|
@@ -596,10 +419,10 @@ var com;
|
|
|
596
419
|
set adminName(value) {
|
|
597
420
|
pb_1.Message.setField(this, 2, value);
|
|
598
421
|
}
|
|
599
|
-
get
|
|
422
|
+
get action() {
|
|
600
423
|
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
601
424
|
}
|
|
602
|
-
set
|
|
425
|
+
set action(value) {
|
|
603
426
|
pb_1.Message.setField(this, 3, value);
|
|
604
427
|
}
|
|
605
428
|
get actionDate() {
|
|
@@ -609,19 +432,34 @@ var com;
|
|
|
609
432
|
pb_1.Message.setField(this, 4, value);
|
|
610
433
|
}
|
|
611
434
|
get createdData() {
|
|
612
|
-
return pb_1.Message.
|
|
435
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
613
436
|
}
|
|
614
437
|
set createdData(value) {
|
|
615
|
-
pb_1.Message.
|
|
616
|
-
}
|
|
617
|
-
get hasCreatedData() {
|
|
618
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
438
|
+
pb_1.Message.setField(this, 5, value);
|
|
619
439
|
}
|
|
620
440
|
get modifiedFields() {
|
|
621
|
-
return pb_1.Message.
|
|
441
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
622
442
|
}
|
|
623
443
|
set modifiedFields(value) {
|
|
624
|
-
pb_1.Message.
|
|
444
|
+
pb_1.Message.setField(this, 6, value);
|
|
445
|
+
}
|
|
446
|
+
get adminIdentity() {
|
|
447
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
448
|
+
}
|
|
449
|
+
set adminIdentity(value) {
|
|
450
|
+
pb_1.Message.setField(this, 7, value);
|
|
451
|
+
}
|
|
452
|
+
get dataType() {
|
|
453
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
454
|
+
}
|
|
455
|
+
set dataType(value) {
|
|
456
|
+
pb_1.Message.setField(this, 8, value);
|
|
457
|
+
}
|
|
458
|
+
get appName() {
|
|
459
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
460
|
+
}
|
|
461
|
+
set appName(value) {
|
|
462
|
+
pb_1.Message.setField(this, 9, value);
|
|
625
463
|
}
|
|
626
464
|
static fromObject(data) {
|
|
627
465
|
const message = new AuditTrail({});
|
|
@@ -631,17 +469,26 @@ var com;
|
|
|
631
469
|
if (data.adminName != null) {
|
|
632
470
|
message.adminName = data.adminName;
|
|
633
471
|
}
|
|
634
|
-
if (data.
|
|
635
|
-
message.
|
|
472
|
+
if (data.action != null) {
|
|
473
|
+
message.action = data.action;
|
|
636
474
|
}
|
|
637
475
|
if (data.actionDate != null) {
|
|
638
476
|
message.actionDate = data.actionDate;
|
|
639
477
|
}
|
|
640
478
|
if (data.createdData != null) {
|
|
641
|
-
message.createdData =
|
|
479
|
+
message.createdData = data.createdData;
|
|
642
480
|
}
|
|
643
481
|
if (data.modifiedFields != null) {
|
|
644
|
-
message.modifiedFields = data.modifiedFields
|
|
482
|
+
message.modifiedFields = data.modifiedFields;
|
|
483
|
+
}
|
|
484
|
+
if (data.adminIdentity != null) {
|
|
485
|
+
message.adminIdentity = data.adminIdentity;
|
|
486
|
+
}
|
|
487
|
+
if (data.dataType != null) {
|
|
488
|
+
message.dataType = data.dataType;
|
|
489
|
+
}
|
|
490
|
+
if (data.appName != null) {
|
|
491
|
+
message.appName = data.appName;
|
|
645
492
|
}
|
|
646
493
|
return message;
|
|
647
494
|
}
|
|
@@ -653,17 +500,26 @@ var com;
|
|
|
653
500
|
if (this.adminName != null) {
|
|
654
501
|
data.adminName = this.adminName;
|
|
655
502
|
}
|
|
656
|
-
if (this.
|
|
657
|
-
data.
|
|
503
|
+
if (this.action != null) {
|
|
504
|
+
data.action = this.action;
|
|
658
505
|
}
|
|
659
506
|
if (this.actionDate != null) {
|
|
660
507
|
data.actionDate = this.actionDate;
|
|
661
508
|
}
|
|
662
509
|
if (this.createdData != null) {
|
|
663
|
-
data.createdData = this.createdData
|
|
510
|
+
data.createdData = this.createdData;
|
|
664
511
|
}
|
|
665
512
|
if (this.modifiedFields != null) {
|
|
666
|
-
data.modifiedFields = this.modifiedFields
|
|
513
|
+
data.modifiedFields = this.modifiedFields;
|
|
514
|
+
}
|
|
515
|
+
if (this.adminIdentity != null) {
|
|
516
|
+
data.adminIdentity = this.adminIdentity;
|
|
517
|
+
}
|
|
518
|
+
if (this.dataType != null) {
|
|
519
|
+
data.dataType = this.dataType;
|
|
520
|
+
}
|
|
521
|
+
if (this.appName != null) {
|
|
522
|
+
data.appName = this.appName;
|
|
667
523
|
}
|
|
668
524
|
return data;
|
|
669
525
|
}
|
|
@@ -673,14 +529,20 @@ var com;
|
|
|
673
529
|
writer.writeString(1, this.id);
|
|
674
530
|
if (this.adminName.length)
|
|
675
531
|
writer.writeString(2, this.adminName);
|
|
676
|
-
if (this.
|
|
677
|
-
writer.writeString(3, this.
|
|
532
|
+
if (this.action.length)
|
|
533
|
+
writer.writeString(3, this.action);
|
|
678
534
|
if (this.actionDate.length)
|
|
679
535
|
writer.writeString(4, this.actionDate);
|
|
680
|
-
if (this.
|
|
681
|
-
writer.
|
|
536
|
+
if (this.createdData.length)
|
|
537
|
+
writer.writeString(5, this.createdData);
|
|
682
538
|
if (this.modifiedFields.length)
|
|
683
|
-
writer.
|
|
539
|
+
writer.writeString(6, this.modifiedFields);
|
|
540
|
+
if (this.adminIdentity.length)
|
|
541
|
+
writer.writeString(7, this.adminIdentity);
|
|
542
|
+
if (this.dataType.length)
|
|
543
|
+
writer.writeString(8, this.dataType);
|
|
544
|
+
if (this.appName.length)
|
|
545
|
+
writer.writeString(9, this.appName);
|
|
684
546
|
if (!w)
|
|
685
547
|
return writer.getResultBuffer();
|
|
686
548
|
}
|
|
@@ -697,16 +559,25 @@ var com;
|
|
|
697
559
|
message.adminName = reader.readString();
|
|
698
560
|
break;
|
|
699
561
|
case 3:
|
|
700
|
-
message.
|
|
562
|
+
message.action = reader.readString();
|
|
701
563
|
break;
|
|
702
564
|
case 4:
|
|
703
565
|
message.actionDate = reader.readString();
|
|
704
566
|
break;
|
|
705
567
|
case 5:
|
|
706
|
-
|
|
568
|
+
message.createdData = reader.readString();
|
|
707
569
|
break;
|
|
708
570
|
case 6:
|
|
709
|
-
|
|
571
|
+
message.modifiedFields = reader.readString();
|
|
572
|
+
break;
|
|
573
|
+
case 7:
|
|
574
|
+
message.adminIdentity = reader.readString();
|
|
575
|
+
break;
|
|
576
|
+
case 8:
|
|
577
|
+
message.dataType = reader.readString();
|
|
578
|
+
break;
|
|
579
|
+
case 9:
|
|
580
|
+
message.appName = reader.readString();
|
|
710
581
|
break;
|
|
711
582
|
default: reader.skipField();
|
|
712
583
|
}
|
|
@@ -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 = {}));
|
|
@@ -0,0 +1,357 @@
|
|
|
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
|
+
let NullValue;
|
|
33
|
+
(function (NullValue) {
|
|
34
|
+
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
35
|
+
})(NullValue = protobuf.NullValue || (protobuf.NullValue = {}));
|
|
36
|
+
class Struct extends pb_1.Message {
|
|
37
|
+
#one_of_decls = [];
|
|
38
|
+
constructor(data) {
|
|
39
|
+
super();
|
|
40
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
41
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
42
|
+
if ("fields" in data && data.fields != undefined) {
|
|
43
|
+
this.fields = data.fields;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (!this.fields)
|
|
47
|
+
this.fields = new Map();
|
|
48
|
+
}
|
|
49
|
+
get fields() {
|
|
50
|
+
return pb_1.Message.getField(this, 1);
|
|
51
|
+
}
|
|
52
|
+
set fields(value) {
|
|
53
|
+
pb_1.Message.setField(this, 1, value);
|
|
54
|
+
}
|
|
55
|
+
static fromObject(data) {
|
|
56
|
+
const message = new Struct({});
|
|
57
|
+
if (typeof data.fields == "object") {
|
|
58
|
+
message.fields = new Map(Object.entries(data.fields).map(([key, value]) => [key, Value.fromObject(value)]));
|
|
59
|
+
}
|
|
60
|
+
return message;
|
|
61
|
+
}
|
|
62
|
+
toObject() {
|
|
63
|
+
const data = {};
|
|
64
|
+
if (this.fields != null) {
|
|
65
|
+
data.fields = (Object.fromEntries)((Array.from)(this.fields).map(([key, value]) => [key, value.toObject()]));
|
|
66
|
+
}
|
|
67
|
+
return data;
|
|
68
|
+
}
|
|
69
|
+
serialize(w) {
|
|
70
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
71
|
+
for (const [key, value] of this.fields) {
|
|
72
|
+
writer.writeMessage(1, this.fields, () => {
|
|
73
|
+
writer.writeString(1, key);
|
|
74
|
+
writer.writeMessage(2, value, () => value.serialize(writer));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (!w)
|
|
78
|
+
return writer.getResultBuffer();
|
|
79
|
+
}
|
|
80
|
+
static deserialize(bytes) {
|
|
81
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Struct();
|
|
82
|
+
while (reader.nextField()) {
|
|
83
|
+
if (reader.isEndGroup())
|
|
84
|
+
break;
|
|
85
|
+
switch (reader.getFieldNumber()) {
|
|
86
|
+
case 1:
|
|
87
|
+
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.fields, reader, reader.readString, () => {
|
|
88
|
+
let value;
|
|
89
|
+
reader.readMessage(message, () => value = Value.deserialize(reader));
|
|
90
|
+
return value;
|
|
91
|
+
}));
|
|
92
|
+
break;
|
|
93
|
+
default: reader.skipField();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
}
|
|
98
|
+
serializeBinary() {
|
|
99
|
+
return this.serialize();
|
|
100
|
+
}
|
|
101
|
+
static deserializeBinary(bytes) {
|
|
102
|
+
return Struct.deserialize(bytes);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
protobuf.Struct = Struct;
|
|
106
|
+
class Value extends pb_1.Message {
|
|
107
|
+
#one_of_decls = [[1, 2, 3, 4, 5, 6]];
|
|
108
|
+
constructor(data) {
|
|
109
|
+
super();
|
|
110
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
111
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
112
|
+
if ("nullValue" in data && data.nullValue != undefined) {
|
|
113
|
+
this.nullValue = data.nullValue;
|
|
114
|
+
}
|
|
115
|
+
if ("numberValue" in data && data.numberValue != undefined) {
|
|
116
|
+
this.numberValue = data.numberValue;
|
|
117
|
+
}
|
|
118
|
+
if ("stringValue" in data && data.stringValue != undefined) {
|
|
119
|
+
this.stringValue = data.stringValue;
|
|
120
|
+
}
|
|
121
|
+
if ("boolValue" in data && data.boolValue != undefined) {
|
|
122
|
+
this.boolValue = data.boolValue;
|
|
123
|
+
}
|
|
124
|
+
if ("structValue" in data && data.structValue != undefined) {
|
|
125
|
+
this.structValue = data.structValue;
|
|
126
|
+
}
|
|
127
|
+
if ("listValue" in data && data.listValue != undefined) {
|
|
128
|
+
this.listValue = data.listValue;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
get nullValue() {
|
|
133
|
+
return pb_1.Message.getFieldWithDefault(this, 1, NullValue.NULL_VALUE);
|
|
134
|
+
}
|
|
135
|
+
set nullValue(value) {
|
|
136
|
+
pb_1.Message.setOneofField(this, 1, this.#one_of_decls[0], value);
|
|
137
|
+
}
|
|
138
|
+
get hasNullValue() {
|
|
139
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
140
|
+
}
|
|
141
|
+
get numberValue() {
|
|
142
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
143
|
+
}
|
|
144
|
+
set numberValue(value) {
|
|
145
|
+
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value);
|
|
146
|
+
}
|
|
147
|
+
get hasNumberValue() {
|
|
148
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
149
|
+
}
|
|
150
|
+
get stringValue() {
|
|
151
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
152
|
+
}
|
|
153
|
+
set stringValue(value) {
|
|
154
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
|
|
155
|
+
}
|
|
156
|
+
get hasStringValue() {
|
|
157
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
158
|
+
}
|
|
159
|
+
get boolValue() {
|
|
160
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
161
|
+
}
|
|
162
|
+
set boolValue(value) {
|
|
163
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);
|
|
164
|
+
}
|
|
165
|
+
get hasBoolValue() {
|
|
166
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
167
|
+
}
|
|
168
|
+
get structValue() {
|
|
169
|
+
return pb_1.Message.getWrapperField(this, Struct, 5);
|
|
170
|
+
}
|
|
171
|
+
set structValue(value) {
|
|
172
|
+
pb_1.Message.setOneofWrapperField(this, 5, this.#one_of_decls[0], value);
|
|
173
|
+
}
|
|
174
|
+
get hasStructValue() {
|
|
175
|
+
return pb_1.Message.getField(this, 5) != null;
|
|
176
|
+
}
|
|
177
|
+
get listValue() {
|
|
178
|
+
return pb_1.Message.getWrapperField(this, ListValue, 6);
|
|
179
|
+
}
|
|
180
|
+
set listValue(value) {
|
|
181
|
+
pb_1.Message.setOneofWrapperField(this, 6, this.#one_of_decls[0], value);
|
|
182
|
+
}
|
|
183
|
+
get hasListValue() {
|
|
184
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
185
|
+
}
|
|
186
|
+
get kind() {
|
|
187
|
+
const cases = {
|
|
188
|
+
0: "none",
|
|
189
|
+
1: "nullValue",
|
|
190
|
+
2: "numberValue",
|
|
191
|
+
3: "stringValue",
|
|
192
|
+
4: "boolValue",
|
|
193
|
+
5: "structValue",
|
|
194
|
+
6: "listValue"
|
|
195
|
+
};
|
|
196
|
+
return cases[pb_1.Message.computeOneofCase(this, [1, 2, 3, 4, 5, 6])];
|
|
197
|
+
}
|
|
198
|
+
static fromObject(data) {
|
|
199
|
+
const message = new Value({});
|
|
200
|
+
if (data.nullValue != null) {
|
|
201
|
+
message.nullValue = data.nullValue;
|
|
202
|
+
}
|
|
203
|
+
if (data.numberValue != null) {
|
|
204
|
+
message.numberValue = data.numberValue;
|
|
205
|
+
}
|
|
206
|
+
if (data.stringValue != null) {
|
|
207
|
+
message.stringValue = data.stringValue;
|
|
208
|
+
}
|
|
209
|
+
if (data.boolValue != null) {
|
|
210
|
+
message.boolValue = data.boolValue;
|
|
211
|
+
}
|
|
212
|
+
if (data.structValue != null) {
|
|
213
|
+
message.structValue = Struct.fromObject(data.structValue);
|
|
214
|
+
}
|
|
215
|
+
if (data.listValue != null) {
|
|
216
|
+
message.listValue = ListValue.fromObject(data.listValue);
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
}
|
|
220
|
+
toObject() {
|
|
221
|
+
const data = {};
|
|
222
|
+
if (this.nullValue != null) {
|
|
223
|
+
data.nullValue = this.nullValue;
|
|
224
|
+
}
|
|
225
|
+
if (this.numberValue != null) {
|
|
226
|
+
data.numberValue = this.numberValue;
|
|
227
|
+
}
|
|
228
|
+
if (this.stringValue != null) {
|
|
229
|
+
data.stringValue = this.stringValue;
|
|
230
|
+
}
|
|
231
|
+
if (this.boolValue != null) {
|
|
232
|
+
data.boolValue = this.boolValue;
|
|
233
|
+
}
|
|
234
|
+
if (this.structValue != null) {
|
|
235
|
+
data.structValue = this.structValue.toObject();
|
|
236
|
+
}
|
|
237
|
+
if (this.listValue != null) {
|
|
238
|
+
data.listValue = this.listValue.toObject();
|
|
239
|
+
}
|
|
240
|
+
return data;
|
|
241
|
+
}
|
|
242
|
+
serialize(w) {
|
|
243
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
244
|
+
if (this.hasNullValue)
|
|
245
|
+
writer.writeEnum(1, this.nullValue);
|
|
246
|
+
if (this.hasNumberValue)
|
|
247
|
+
writer.writeDouble(2, this.numberValue);
|
|
248
|
+
if (this.hasStringValue)
|
|
249
|
+
writer.writeString(3, this.stringValue);
|
|
250
|
+
if (this.hasBoolValue)
|
|
251
|
+
writer.writeBool(4, this.boolValue);
|
|
252
|
+
if (this.hasStructValue)
|
|
253
|
+
writer.writeMessage(5, this.structValue, () => this.structValue.serialize(writer));
|
|
254
|
+
if (this.hasListValue)
|
|
255
|
+
writer.writeMessage(6, this.listValue, () => this.listValue.serialize(writer));
|
|
256
|
+
if (!w)
|
|
257
|
+
return writer.getResultBuffer();
|
|
258
|
+
}
|
|
259
|
+
static deserialize(bytes) {
|
|
260
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Value();
|
|
261
|
+
while (reader.nextField()) {
|
|
262
|
+
if (reader.isEndGroup())
|
|
263
|
+
break;
|
|
264
|
+
switch (reader.getFieldNumber()) {
|
|
265
|
+
case 1:
|
|
266
|
+
message.nullValue = reader.readEnum();
|
|
267
|
+
break;
|
|
268
|
+
case 2:
|
|
269
|
+
message.numberValue = reader.readDouble();
|
|
270
|
+
break;
|
|
271
|
+
case 3:
|
|
272
|
+
message.stringValue = reader.readString();
|
|
273
|
+
break;
|
|
274
|
+
case 4:
|
|
275
|
+
message.boolValue = reader.readBool();
|
|
276
|
+
break;
|
|
277
|
+
case 5:
|
|
278
|
+
reader.readMessage(message.structValue, () => message.structValue = Struct.deserialize(reader));
|
|
279
|
+
break;
|
|
280
|
+
case 6:
|
|
281
|
+
reader.readMessage(message.listValue, () => message.listValue = ListValue.deserialize(reader));
|
|
282
|
+
break;
|
|
283
|
+
default: reader.skipField();
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return message;
|
|
287
|
+
}
|
|
288
|
+
serializeBinary() {
|
|
289
|
+
return this.serialize();
|
|
290
|
+
}
|
|
291
|
+
static deserializeBinary(bytes) {
|
|
292
|
+
return Value.deserialize(bytes);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
protobuf.Value = Value;
|
|
296
|
+
class ListValue extends pb_1.Message {
|
|
297
|
+
#one_of_decls = [];
|
|
298
|
+
constructor(data) {
|
|
299
|
+
super();
|
|
300
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
301
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
302
|
+
if ("values" in data && data.values != undefined) {
|
|
303
|
+
this.values = data.values;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
get values() {
|
|
308
|
+
return pb_1.Message.getRepeatedWrapperField(this, Value, 1);
|
|
309
|
+
}
|
|
310
|
+
set values(value) {
|
|
311
|
+
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
312
|
+
}
|
|
313
|
+
static fromObject(data) {
|
|
314
|
+
const message = new ListValue({});
|
|
315
|
+
if (data.values != null) {
|
|
316
|
+
message.values = data.values.map(item => Value.fromObject(item));
|
|
317
|
+
}
|
|
318
|
+
return message;
|
|
319
|
+
}
|
|
320
|
+
toObject() {
|
|
321
|
+
const data = {};
|
|
322
|
+
if (this.values != null) {
|
|
323
|
+
data.values = this.values.map((item) => item.toObject());
|
|
324
|
+
}
|
|
325
|
+
return data;
|
|
326
|
+
}
|
|
327
|
+
serialize(w) {
|
|
328
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
329
|
+
if (this.values.length)
|
|
330
|
+
writer.writeRepeatedMessage(1, this.values, (item) => item.serialize(writer));
|
|
331
|
+
if (!w)
|
|
332
|
+
return writer.getResultBuffer();
|
|
333
|
+
}
|
|
334
|
+
static deserialize(bytes) {
|
|
335
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListValue();
|
|
336
|
+
while (reader.nextField()) {
|
|
337
|
+
if (reader.isEndGroup())
|
|
338
|
+
break;
|
|
339
|
+
switch (reader.getFieldNumber()) {
|
|
340
|
+
case 1:
|
|
341
|
+
reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Value.deserialize(reader), Value));
|
|
342
|
+
break;
|
|
343
|
+
default: reader.skipField();
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return message;
|
|
347
|
+
}
|
|
348
|
+
serializeBinary() {
|
|
349
|
+
return this.serialize();
|
|
350
|
+
}
|
|
351
|
+
static deserializeBinary(bytes) {
|
|
352
|
+
return ListValue.deserialize(bytes);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
protobuf.ListValue = ListValue;
|
|
356
|
+
})(protobuf = google.protobuf || (google.protobuf = {}));
|
|
357
|
+
})(google || (exports.google = google = {}));
|
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"module": "index",
|
|
7
7
|
"types": "types",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "rm -rf src && mkdir src && protoc --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto proto/**/*.proto",
|
|
10
|
-
"build:next": "rm -rf src && mkdir src && protoc-25.3.0 --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto proto/**/*.proto",
|
|
9
|
+
"build": "rm -rf src && mkdir src && protoc --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto -I=node_modules/google-protobuf proto/**/*.proto",
|
|
10
|
+
"build:next": "rm -rf src && mkdir src && protoc-25.3.0 --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto -I=node_modules/google-protobuf proto/**/*.proto",
|
|
11
11
|
"compile": "tsc -p tsconfig.json"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"version": "1.8.
|
|
14
|
+
"version": "1.8.7",
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/google-protobuf": "^3.15.12",
|
|
17
17
|
"protoc-gen-ts": "^0.8.7",
|
package/types/audit/audit.d.ts
CHANGED
|
@@ -2,30 +2,6 @@
|
|
|
2
2
|
import * as pb_1 from "google-protobuf";
|
|
3
3
|
import * as grpc_1 from "@grpc/grpc-js";
|
|
4
4
|
export declare namespace com.pkg.audit {
|
|
5
|
-
export class Any extends pb_1.Message {
|
|
6
|
-
#private;
|
|
7
|
-
constructor(data?: any[] | {
|
|
8
|
-
typeUrl?: string;
|
|
9
|
-
value?: Uint8Array;
|
|
10
|
-
});
|
|
11
|
-
get typeUrl(): string;
|
|
12
|
-
set typeUrl(value: string);
|
|
13
|
-
get value(): Uint8Array;
|
|
14
|
-
set value(value: Uint8Array);
|
|
15
|
-
static fromObject(data: {
|
|
16
|
-
typeUrl?: string;
|
|
17
|
-
value?: Uint8Array;
|
|
18
|
-
}): Any;
|
|
19
|
-
toObject(): {
|
|
20
|
-
typeUrl?: string | undefined;
|
|
21
|
-
value?: Uint8Array | undefined;
|
|
22
|
-
};
|
|
23
|
-
serialize(): Uint8Array;
|
|
24
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
25
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Any;
|
|
26
|
-
serializeBinary(): Uint8Array;
|
|
27
|
-
static deserializeBinary(bytes: Uint8Array): Any;
|
|
28
|
-
}
|
|
29
5
|
export class ValidationErrors extends pb_1.Message {
|
|
30
6
|
#private;
|
|
31
7
|
constructor(data?: any[] | {
|
|
@@ -123,94 +99,58 @@ export declare namespace com.pkg.audit {
|
|
|
123
99
|
serializeBinary(): Uint8Array;
|
|
124
100
|
static deserializeBinary(bytes: Uint8Array): GetAuditTrailsRequest;
|
|
125
101
|
}
|
|
126
|
-
export class ModifiedField extends pb_1.Message {
|
|
127
|
-
#private;
|
|
128
|
-
constructor(data?: any[] | {
|
|
129
|
-
fieldName?: string;
|
|
130
|
-
oldValue?: Any;
|
|
131
|
-
newValue?: Any;
|
|
132
|
-
});
|
|
133
|
-
get fieldName(): string;
|
|
134
|
-
set fieldName(value: string);
|
|
135
|
-
get oldValue(): Any;
|
|
136
|
-
set oldValue(value: Any);
|
|
137
|
-
get hasOldValue(): boolean;
|
|
138
|
-
get newValue(): Any;
|
|
139
|
-
set newValue(value: Any);
|
|
140
|
-
get hasNewValue(): boolean;
|
|
141
|
-
static fromObject(data: {
|
|
142
|
-
fieldName?: string;
|
|
143
|
-
oldValue?: ReturnType<typeof Any.prototype.toObject>;
|
|
144
|
-
newValue?: ReturnType<typeof Any.prototype.toObject>;
|
|
145
|
-
}): ModifiedField;
|
|
146
|
-
toObject(): {
|
|
147
|
-
fieldName?: string | undefined;
|
|
148
|
-
oldValue?: {
|
|
149
|
-
typeUrl?: string | undefined;
|
|
150
|
-
value?: Uint8Array | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
newValue?: {
|
|
153
|
-
typeUrl?: string | undefined;
|
|
154
|
-
value?: Uint8Array | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
};
|
|
157
|
-
serialize(): Uint8Array;
|
|
158
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
159
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ModifiedField;
|
|
160
|
-
serializeBinary(): Uint8Array;
|
|
161
|
-
static deserializeBinary(bytes: Uint8Array): ModifiedField;
|
|
162
|
-
}
|
|
163
102
|
export class AuditTrail extends pb_1.Message {
|
|
164
103
|
#private;
|
|
165
104
|
constructor(data?: any[] | {
|
|
166
105
|
id?: string;
|
|
167
106
|
adminName?: string;
|
|
168
|
-
|
|
107
|
+
action?: string;
|
|
169
108
|
actionDate?: string;
|
|
170
|
-
createdData?:
|
|
171
|
-
modifiedFields?:
|
|
109
|
+
createdData?: string;
|
|
110
|
+
modifiedFields?: string;
|
|
111
|
+
adminIdentity?: string;
|
|
112
|
+
dataType?: string;
|
|
113
|
+
appName?: string;
|
|
172
114
|
});
|
|
173
115
|
get id(): string;
|
|
174
116
|
set id(value: string);
|
|
175
117
|
get adminName(): string;
|
|
176
118
|
set adminName(value: string);
|
|
177
|
-
get
|
|
178
|
-
set
|
|
119
|
+
get action(): string;
|
|
120
|
+
set action(value: string);
|
|
179
121
|
get actionDate(): string;
|
|
180
122
|
set actionDate(value: string);
|
|
181
|
-
get createdData():
|
|
182
|
-
set createdData(value:
|
|
183
|
-
get
|
|
184
|
-
|
|
185
|
-
|
|
123
|
+
get createdData(): string;
|
|
124
|
+
set createdData(value: string);
|
|
125
|
+
get modifiedFields(): string;
|
|
126
|
+
set modifiedFields(value: string);
|
|
127
|
+
get adminIdentity(): string;
|
|
128
|
+
set adminIdentity(value: string);
|
|
129
|
+
get dataType(): string;
|
|
130
|
+
set dataType(value: string);
|
|
131
|
+
get appName(): string;
|
|
132
|
+
set appName(value: string);
|
|
186
133
|
static fromObject(data: {
|
|
187
134
|
id?: string;
|
|
188
135
|
adminName?: string;
|
|
189
|
-
|
|
136
|
+
action?: string;
|
|
190
137
|
actionDate?: string;
|
|
191
|
-
createdData?:
|
|
192
|
-
modifiedFields?:
|
|
138
|
+
createdData?: string;
|
|
139
|
+
modifiedFields?: string;
|
|
140
|
+
adminIdentity?: string;
|
|
141
|
+
dataType?: string;
|
|
142
|
+
appName?: string;
|
|
193
143
|
}): AuditTrail;
|
|
194
144
|
toObject(): {
|
|
195
145
|
id?: string | undefined;
|
|
196
146
|
adminName?: string | undefined;
|
|
197
|
-
|
|
147
|
+
action?: string | undefined;
|
|
198
148
|
actionDate?: string | undefined;
|
|
199
|
-
createdData?:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
fieldName?: string | undefined;
|
|
205
|
-
oldValue?: {
|
|
206
|
-
typeUrl?: string | undefined;
|
|
207
|
-
value?: Uint8Array | undefined;
|
|
208
|
-
} | undefined;
|
|
209
|
-
newValue?: {
|
|
210
|
-
typeUrl?: string | undefined;
|
|
211
|
-
value?: Uint8Array | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
}[] | undefined;
|
|
149
|
+
createdData?: string | undefined;
|
|
150
|
+
modifiedFields?: string | undefined;
|
|
151
|
+
adminIdentity?: string | undefined;
|
|
152
|
+
dataType?: string | undefined;
|
|
153
|
+
appName?: string | undefined;
|
|
214
154
|
};
|
|
215
155
|
serialize(): Uint8Array;
|
|
216
156
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -250,23 +190,13 @@ export declare namespace com.pkg.audit {
|
|
|
250
190
|
data?: {
|
|
251
191
|
id?: string | undefined;
|
|
252
192
|
adminName?: string | undefined;
|
|
253
|
-
|
|
193
|
+
action?: string | undefined;
|
|
254
194
|
actionDate?: string | undefined;
|
|
255
|
-
createdData?:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
fieldName?: string | undefined;
|
|
261
|
-
oldValue?: {
|
|
262
|
-
typeUrl?: string | undefined;
|
|
263
|
-
value?: Uint8Array | undefined;
|
|
264
|
-
} | undefined;
|
|
265
|
-
newValue?: {
|
|
266
|
-
typeUrl?: string | undefined;
|
|
267
|
-
value?: Uint8Array | undefined;
|
|
268
|
-
} | undefined;
|
|
269
|
-
}[] | undefined;
|
|
195
|
+
createdData?: string | undefined;
|
|
196
|
+
modifiedFields?: string | undefined;
|
|
197
|
+
adminIdentity?: string | undefined;
|
|
198
|
+
dataType?: string | undefined;
|
|
199
|
+
appName?: string | undefined;
|
|
270
200
|
}[] | undefined;
|
|
271
201
|
errors?: {
|
|
272
202
|
field?: string | undefined;
|
|
@@ -335,23 +265,13 @@ export declare namespace com.pkg.audit {
|
|
|
335
265
|
data?: {
|
|
336
266
|
id?: string | undefined;
|
|
337
267
|
adminName?: string | undefined;
|
|
338
|
-
|
|
268
|
+
action?: string | undefined;
|
|
339
269
|
actionDate?: string | undefined;
|
|
340
|
-
createdData?:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
fieldName?: string | undefined;
|
|
346
|
-
oldValue?: {
|
|
347
|
-
typeUrl?: string | undefined;
|
|
348
|
-
value?: Uint8Array | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
newValue?: {
|
|
351
|
-
typeUrl?: string | undefined;
|
|
352
|
-
value?: Uint8Array | undefined;
|
|
353
|
-
} | undefined;
|
|
354
|
-
}[] | undefined;
|
|
270
|
+
createdData?: string | undefined;
|
|
271
|
+
modifiedFields?: string | undefined;
|
|
272
|
+
adminIdentity?: string | undefined;
|
|
273
|
+
dataType?: string | undefined;
|
|
274
|
+
appName?: string | undefined;
|
|
355
275
|
} | undefined;
|
|
356
276
|
errors?: {
|
|
357
277
|
field?: string | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as pb_1 from "google-protobuf";
|
|
2
|
+
export declare namespace google.protobuf {
|
|
3
|
+
class Any extends pb_1.Message {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(data?: any[] | {
|
|
6
|
+
typeUrl?: string;
|
|
7
|
+
value?: Uint8Array;
|
|
8
|
+
});
|
|
9
|
+
get typeUrl(): string;
|
|
10
|
+
set typeUrl(value: string);
|
|
11
|
+
get value(): Uint8Array;
|
|
12
|
+
set value(value: Uint8Array);
|
|
13
|
+
static fromObject(data: {
|
|
14
|
+
typeUrl?: string;
|
|
15
|
+
value?: Uint8Array;
|
|
16
|
+
}): Any;
|
|
17
|
+
toObject(): {
|
|
18
|
+
typeUrl?: string | undefined;
|
|
19
|
+
value?: Uint8Array | undefined;
|
|
20
|
+
};
|
|
21
|
+
serialize(): Uint8Array;
|
|
22
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
23
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Any;
|
|
24
|
+
serializeBinary(): Uint8Array;
|
|
25
|
+
static deserializeBinary(bytes: Uint8Array): Any;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as pb_1 from "google-protobuf";
|
|
2
|
+
export declare namespace google.protobuf {
|
|
3
|
+
enum NullValue {
|
|
4
|
+
NULL_VALUE = 0
|
|
5
|
+
}
|
|
6
|
+
class Struct extends pb_1.Message {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(data?: any[] | {
|
|
9
|
+
fields?: Map<string, Value>;
|
|
10
|
+
});
|
|
11
|
+
get fields(): Map<string, Value>;
|
|
12
|
+
set fields(value: Map<string, Value>);
|
|
13
|
+
static fromObject(data: {
|
|
14
|
+
fields?: {
|
|
15
|
+
[key: string]: ReturnType<typeof Value.prototype.toObject>;
|
|
16
|
+
};
|
|
17
|
+
}): Struct;
|
|
18
|
+
toObject(): {
|
|
19
|
+
fields?: {
|
|
20
|
+
[key: string]: {
|
|
21
|
+
nullValue?: NullValue | undefined;
|
|
22
|
+
numberValue?: number | undefined;
|
|
23
|
+
stringValue?: string | undefined;
|
|
24
|
+
boolValue?: boolean | undefined;
|
|
25
|
+
structValue?: {
|
|
26
|
+
fields?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
} | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
listValue?: {
|
|
31
|
+
values?: any[] | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
34
|
+
} | undefined;
|
|
35
|
+
};
|
|
36
|
+
serialize(): Uint8Array;
|
|
37
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
38
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Struct;
|
|
39
|
+
serializeBinary(): Uint8Array;
|
|
40
|
+
static deserializeBinary(bytes: Uint8Array): Struct;
|
|
41
|
+
}
|
|
42
|
+
class Value extends pb_1.Message {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(data?: any[] | ({} & (({
|
|
45
|
+
nullValue?: NullValue;
|
|
46
|
+
numberValue?: never;
|
|
47
|
+
stringValue?: never;
|
|
48
|
+
boolValue?: never;
|
|
49
|
+
structValue?: never;
|
|
50
|
+
listValue?: never;
|
|
51
|
+
} | {
|
|
52
|
+
nullValue?: never;
|
|
53
|
+
numberValue?: number;
|
|
54
|
+
stringValue?: never;
|
|
55
|
+
boolValue?: never;
|
|
56
|
+
structValue?: never;
|
|
57
|
+
listValue?: never;
|
|
58
|
+
} | {
|
|
59
|
+
nullValue?: never;
|
|
60
|
+
numberValue?: never;
|
|
61
|
+
stringValue?: string;
|
|
62
|
+
boolValue?: never;
|
|
63
|
+
structValue?: never;
|
|
64
|
+
listValue?: never;
|
|
65
|
+
} | {
|
|
66
|
+
nullValue?: never;
|
|
67
|
+
numberValue?: never;
|
|
68
|
+
stringValue?: never;
|
|
69
|
+
boolValue?: boolean;
|
|
70
|
+
structValue?: never;
|
|
71
|
+
listValue?: never;
|
|
72
|
+
} | {
|
|
73
|
+
nullValue?: never;
|
|
74
|
+
numberValue?: never;
|
|
75
|
+
stringValue?: never;
|
|
76
|
+
boolValue?: never;
|
|
77
|
+
structValue?: Struct;
|
|
78
|
+
listValue?: never;
|
|
79
|
+
} | {
|
|
80
|
+
nullValue?: never;
|
|
81
|
+
numberValue?: never;
|
|
82
|
+
stringValue?: never;
|
|
83
|
+
boolValue?: never;
|
|
84
|
+
structValue?: never;
|
|
85
|
+
listValue?: ListValue;
|
|
86
|
+
}))));
|
|
87
|
+
get nullValue(): NullValue;
|
|
88
|
+
set nullValue(value: NullValue);
|
|
89
|
+
get hasNullValue(): boolean;
|
|
90
|
+
get numberValue(): number;
|
|
91
|
+
set numberValue(value: number);
|
|
92
|
+
get hasNumberValue(): boolean;
|
|
93
|
+
get stringValue(): string;
|
|
94
|
+
set stringValue(value: string);
|
|
95
|
+
get hasStringValue(): boolean;
|
|
96
|
+
get boolValue(): boolean;
|
|
97
|
+
set boolValue(value: boolean);
|
|
98
|
+
get hasBoolValue(): boolean;
|
|
99
|
+
get structValue(): Struct;
|
|
100
|
+
set structValue(value: Struct);
|
|
101
|
+
get hasStructValue(): boolean;
|
|
102
|
+
get listValue(): ListValue;
|
|
103
|
+
set listValue(value: ListValue);
|
|
104
|
+
get hasListValue(): boolean;
|
|
105
|
+
get kind(): "none" | "nullValue" | "numberValue" | "stringValue" | "boolValue" | "structValue" | "listValue";
|
|
106
|
+
static fromObject(data: {
|
|
107
|
+
nullValue?: NullValue;
|
|
108
|
+
numberValue?: number;
|
|
109
|
+
stringValue?: string;
|
|
110
|
+
boolValue?: boolean;
|
|
111
|
+
structValue?: ReturnType<typeof Struct.prototype.toObject>;
|
|
112
|
+
listValue?: ReturnType<typeof ListValue.prototype.toObject>;
|
|
113
|
+
}): Value;
|
|
114
|
+
toObject(): {
|
|
115
|
+
nullValue?: NullValue | undefined;
|
|
116
|
+
numberValue?: number | undefined;
|
|
117
|
+
stringValue?: string | undefined;
|
|
118
|
+
boolValue?: boolean | undefined;
|
|
119
|
+
structValue?: {
|
|
120
|
+
fields?: {
|
|
121
|
+
[key: string]: {
|
|
122
|
+
nullValue?: NullValue | undefined;
|
|
123
|
+
numberValue?: number | undefined;
|
|
124
|
+
stringValue?: string | undefined;
|
|
125
|
+
boolValue?: boolean | undefined;
|
|
126
|
+
structValue?: any | undefined;
|
|
127
|
+
listValue?: {
|
|
128
|
+
values?: any[] | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
};
|
|
131
|
+
} | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
listValue?: {
|
|
134
|
+
values?: any[] | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
};
|
|
137
|
+
serialize(): Uint8Array;
|
|
138
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
139
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Value;
|
|
140
|
+
serializeBinary(): Uint8Array;
|
|
141
|
+
static deserializeBinary(bytes: Uint8Array): Value;
|
|
142
|
+
}
|
|
143
|
+
class ListValue extends pb_1.Message {
|
|
144
|
+
#private;
|
|
145
|
+
constructor(data?: any[] | {
|
|
146
|
+
values?: Value[];
|
|
147
|
+
});
|
|
148
|
+
get values(): Value[];
|
|
149
|
+
set values(value: Value[]);
|
|
150
|
+
static fromObject(data: {
|
|
151
|
+
values?: ReturnType<typeof Value.prototype.toObject>[];
|
|
152
|
+
}): ListValue;
|
|
153
|
+
toObject(): {
|
|
154
|
+
values?: {
|
|
155
|
+
nullValue?: NullValue | undefined;
|
|
156
|
+
numberValue?: number | undefined;
|
|
157
|
+
stringValue?: string | undefined;
|
|
158
|
+
boolValue?: boolean | undefined;
|
|
159
|
+
structValue?: {
|
|
160
|
+
fields?: {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
} | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
listValue?: {
|
|
165
|
+
values?: any[] | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
};
|
|
169
|
+
serialize(): Uint8Array;
|
|
170
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
171
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListValue;
|
|
172
|
+
serializeBinary(): Uint8Array;
|
|
173
|
+
static deserializeBinary(bytes: Uint8Array): ListValue;
|
|
174
|
+
}
|
|
175
|
+
}
|