@technova-tech/olive-proto-lib 1.8.5 → 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 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, Any, 2);
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, Any, 3);
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 = Any.fromObject(data.oldValue);
423
+ message.oldValue = dependency_2.google.protobuf.Value.fromObject(data.oldValue);
503
424
  }
504
425
  if (data.newValue != null) {
505
- message.newValue = Any.fromObject(data.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 = Any.deserialize(reader));
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 = Any.deserialize(reader));
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 ("actionType" in data && data.actionType != undefined) {
574
- this.actionType = data.actionType;
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 actionType() {
529
+ get action() {
600
530
  return pb_1.Message.getFieldWithDefault(this, 3, "");
601
531
  }
602
- set actionType(value) {
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, Any, 5);
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.actionType != null) {
635
- message.actionType = data.actionType;
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 = Any.fromObject(data.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.actionType != null) {
657
- data.actionType = this.actionType;
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.actionType.length)
677
- writer.writeString(3, this.actionType);
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.actionType = reader.readString();
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 = Any.deserialize(reader));
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 = {}));
@@ -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.5",
14
+ "version": "1.8.6",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -1,31 +1,8 @@
1
1
  /// <reference types="node" />
2
+ import * as dependency_2 from "./../google/protobuf/struct";
2
3
  import * as pb_1 from "google-protobuf";
3
4
  import * as grpc_1 from "@grpc/grpc-js";
4
5
  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
6
  export class ValidationErrors extends pb_1.Message {
30
7
  #private;
31
8
  constructor(data?: any[] | {
@@ -127,31 +104,51 @@ export declare namespace com.pkg.audit {
127
104
  #private;
128
105
  constructor(data?: any[] | {
129
106
  fieldName?: string;
130
- oldValue?: Any;
131
- newValue?: Any;
107
+ oldValue?: dependency_2.google.protobuf.Value;
108
+ newValue?: dependency_2.google.protobuf.Value;
132
109
  });
133
110
  get fieldName(): string;
134
111
  set fieldName(value: string);
135
- get oldValue(): Any;
136
- set oldValue(value: Any);
112
+ get oldValue(): dependency_2.google.protobuf.Value;
113
+ set oldValue(value: dependency_2.google.protobuf.Value);
137
114
  get hasOldValue(): boolean;
138
- get newValue(): Any;
139
- set newValue(value: Any);
115
+ get newValue(): dependency_2.google.protobuf.Value;
116
+ set newValue(value: dependency_2.google.protobuf.Value);
140
117
  get hasNewValue(): boolean;
141
118
  static fromObject(data: {
142
119
  fieldName?: string;
143
- oldValue?: ReturnType<typeof Any.prototype.toObject>;
144
- newValue?: ReturnType<typeof Any.prototype.toObject>;
120
+ oldValue?: ReturnType<typeof dependency_2.google.protobuf.Value.prototype.toObject>;
121
+ newValue?: ReturnType<typeof dependency_2.google.protobuf.Value.prototype.toObject>;
145
122
  }): ModifiedField;
146
123
  toObject(): {
147
124
  fieldName?: string | undefined;
148
125
  oldValue?: {
149
- typeUrl?: string | undefined;
150
- value?: Uint8Array | undefined;
126
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
127
+ numberValue?: number | undefined;
128
+ stringValue?: string | undefined;
129
+ boolValue?: boolean | undefined;
130
+ structValue?: {
131
+ fields?: {
132
+ [key: string]: any;
133
+ } | undefined;
134
+ } | undefined;
135
+ listValue?: {
136
+ values?: any[] | undefined;
137
+ } | undefined;
151
138
  } | undefined;
152
139
  newValue?: {
153
- typeUrl?: string | undefined;
154
- value?: Uint8Array | undefined;
140
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
141
+ numberValue?: number | undefined;
142
+ stringValue?: string | undefined;
143
+ boolValue?: boolean | undefined;
144
+ structValue?: {
145
+ fields?: {
146
+ [key: string]: any;
147
+ } | undefined;
148
+ } | undefined;
149
+ listValue?: {
150
+ values?: any[] | undefined;
151
+ } | undefined;
155
152
  } | undefined;
156
153
  };
157
154
  serialize(): Uint8Array;
@@ -165,52 +162,97 @@ export declare namespace com.pkg.audit {
165
162
  constructor(data?: any[] | {
166
163
  id?: string;
167
164
  adminName?: string;
168
- actionType?: string;
165
+ action?: string;
169
166
  actionDate?: string;
170
- createdData?: Any;
167
+ createdData?: dependency_2.google.protobuf.Value;
171
168
  modifiedFields?: ModifiedField[];
169
+ adminIdentity?: string;
170
+ dataType?: string;
171
+ appName?: string;
172
172
  });
173
173
  get id(): string;
174
174
  set id(value: string);
175
175
  get adminName(): string;
176
176
  set adminName(value: string);
177
- get actionType(): string;
178
- set actionType(value: string);
177
+ get action(): string;
178
+ set action(value: string);
179
179
  get actionDate(): string;
180
180
  set actionDate(value: string);
181
- get createdData(): Any;
182
- set createdData(value: Any);
181
+ get createdData(): dependency_2.google.protobuf.Value;
182
+ set createdData(value: dependency_2.google.protobuf.Value);
183
183
  get hasCreatedData(): boolean;
184
184
  get modifiedFields(): ModifiedField[];
185
185
  set modifiedFields(value: ModifiedField[]);
186
+ get adminIdentity(): string;
187
+ set adminIdentity(value: string);
188
+ get dataType(): string;
189
+ set dataType(value: string);
190
+ get appName(): string;
191
+ set appName(value: string);
186
192
  static fromObject(data: {
187
193
  id?: string;
188
194
  adminName?: string;
189
- actionType?: string;
195
+ action?: string;
190
196
  actionDate?: string;
191
- createdData?: ReturnType<typeof Any.prototype.toObject>;
197
+ createdData?: ReturnType<typeof dependency_2.google.protobuf.Value.prototype.toObject>;
192
198
  modifiedFields?: ReturnType<typeof ModifiedField.prototype.toObject>[];
199
+ adminIdentity?: string;
200
+ dataType?: string;
201
+ appName?: string;
193
202
  }): AuditTrail;
194
203
  toObject(): {
195
204
  id?: string | undefined;
196
205
  adminName?: string | undefined;
197
- actionType?: string | undefined;
206
+ action?: string | undefined;
198
207
  actionDate?: string | undefined;
199
208
  createdData?: {
200
- typeUrl?: string | undefined;
201
- value?: Uint8Array | undefined;
209
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
210
+ numberValue?: number | undefined;
211
+ stringValue?: string | undefined;
212
+ boolValue?: boolean | undefined;
213
+ structValue?: {
214
+ fields?: {
215
+ [key: string]: any;
216
+ } | undefined;
217
+ } | undefined;
218
+ listValue?: {
219
+ values?: any[] | undefined;
220
+ } | undefined;
202
221
  } | undefined;
203
222
  modifiedFields?: {
204
223
  fieldName?: string | undefined;
205
224
  oldValue?: {
206
- typeUrl?: string | undefined;
207
- value?: Uint8Array | undefined;
225
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
226
+ numberValue?: number | undefined;
227
+ stringValue?: string | undefined;
228
+ boolValue?: boolean | undefined;
229
+ structValue?: {
230
+ fields?: {
231
+ [key: string]: any;
232
+ } | undefined;
233
+ } | undefined;
234
+ listValue?: {
235
+ values?: any[] | undefined;
236
+ } | undefined;
208
237
  } | undefined;
209
238
  newValue?: {
210
- typeUrl?: string | undefined;
211
- value?: Uint8Array | undefined;
239
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
240
+ numberValue?: number | undefined;
241
+ stringValue?: string | undefined;
242
+ boolValue?: boolean | undefined;
243
+ structValue?: {
244
+ fields?: {
245
+ [key: string]: any;
246
+ } | undefined;
247
+ } | undefined;
248
+ listValue?: {
249
+ values?: any[] | undefined;
250
+ } | undefined;
212
251
  } | undefined;
213
252
  }[] | undefined;
253
+ adminIdentity?: string | undefined;
254
+ dataType?: string | undefined;
255
+ appName?: string | undefined;
214
256
  };
215
257
  serialize(): Uint8Array;
216
258
  serialize(w: pb_1.BinaryWriter): void;
@@ -250,23 +292,56 @@ export declare namespace com.pkg.audit {
250
292
  data?: {
251
293
  id?: string | undefined;
252
294
  adminName?: string | undefined;
253
- actionType?: string | undefined;
295
+ action?: string | undefined;
254
296
  actionDate?: string | undefined;
255
297
  createdData?: {
256
- typeUrl?: string | undefined;
257
- value?: Uint8Array | undefined;
298
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
299
+ numberValue?: number | undefined;
300
+ stringValue?: string | undefined;
301
+ boolValue?: boolean | undefined;
302
+ structValue?: {
303
+ fields?: {
304
+ [key: string]: any;
305
+ } | undefined;
306
+ } | undefined;
307
+ listValue?: {
308
+ values?: any[] | undefined;
309
+ } | undefined;
258
310
  } | undefined;
259
311
  modifiedFields?: {
260
312
  fieldName?: string | undefined;
261
313
  oldValue?: {
262
- typeUrl?: string | undefined;
263
- value?: Uint8Array | undefined;
314
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
315
+ numberValue?: number | undefined;
316
+ stringValue?: string | undefined;
317
+ boolValue?: boolean | undefined;
318
+ structValue?: {
319
+ fields?: {
320
+ [key: string]: any;
321
+ } | undefined;
322
+ } | undefined;
323
+ listValue?: {
324
+ values?: any[] | undefined;
325
+ } | undefined;
264
326
  } | undefined;
265
327
  newValue?: {
266
- typeUrl?: string | undefined;
267
- value?: Uint8Array | undefined;
328
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
329
+ numberValue?: number | undefined;
330
+ stringValue?: string | undefined;
331
+ boolValue?: boolean | undefined;
332
+ structValue?: {
333
+ fields?: {
334
+ [key: string]: any;
335
+ } | undefined;
336
+ } | undefined;
337
+ listValue?: {
338
+ values?: any[] | undefined;
339
+ } | undefined;
268
340
  } | undefined;
269
341
  }[] | undefined;
342
+ adminIdentity?: string | undefined;
343
+ dataType?: string | undefined;
344
+ appName?: string | undefined;
270
345
  }[] | undefined;
271
346
  errors?: {
272
347
  field?: string | undefined;
@@ -335,23 +410,56 @@ export declare namespace com.pkg.audit {
335
410
  data?: {
336
411
  id?: string | undefined;
337
412
  adminName?: string | undefined;
338
- actionType?: string | undefined;
413
+ action?: string | undefined;
339
414
  actionDate?: string | undefined;
340
415
  createdData?: {
341
- typeUrl?: string | undefined;
342
- value?: Uint8Array | undefined;
416
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
417
+ numberValue?: number | undefined;
418
+ stringValue?: string | undefined;
419
+ boolValue?: boolean | undefined;
420
+ structValue?: {
421
+ fields?: {
422
+ [key: string]: any;
423
+ } | undefined;
424
+ } | undefined;
425
+ listValue?: {
426
+ values?: any[] | undefined;
427
+ } | undefined;
343
428
  } | undefined;
344
429
  modifiedFields?: {
345
430
  fieldName?: string | undefined;
346
431
  oldValue?: {
347
- typeUrl?: string | undefined;
348
- value?: Uint8Array | undefined;
432
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
433
+ numberValue?: number | undefined;
434
+ stringValue?: string | undefined;
435
+ boolValue?: boolean | undefined;
436
+ structValue?: {
437
+ fields?: {
438
+ [key: string]: any;
439
+ } | undefined;
440
+ } | undefined;
441
+ listValue?: {
442
+ values?: any[] | undefined;
443
+ } | undefined;
349
444
  } | undefined;
350
445
  newValue?: {
351
- typeUrl?: string | undefined;
352
- value?: Uint8Array | undefined;
446
+ nullValue?: dependency_2.google.protobuf.NullValue | undefined;
447
+ numberValue?: number | undefined;
448
+ stringValue?: string | undefined;
449
+ boolValue?: boolean | undefined;
450
+ structValue?: {
451
+ fields?: {
452
+ [key: string]: any;
453
+ } | undefined;
454
+ } | undefined;
455
+ listValue?: {
456
+ values?: any[] | undefined;
457
+ } | undefined;
353
458
  } | undefined;
354
459
  }[] | undefined;
460
+ adminIdentity?: string | undefined;
461
+ dataType?: string | undefined;
462
+ appName?: string | undefined;
355
463
  } | undefined;
356
464
  errors?: {
357
465
  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
+ }