@technova-tech/olive-proto-lib 1.9.0 → 1.9.2
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/bills/bills.js +40 -0
- package/package.json +1 -1
- package/types/bills/bills.d.ts +10 -0
- package/types/users/users.d.ts +10 -0
- package/types/verifications/verifications.d.ts +55 -0
- package/users/users.js +40 -0
- package/verifications/verifications.js +185 -0
- package/google/protobuf/any.js +0 -113
- package/google/protobuf/struct.js +0 -357
- package/types/google/protobuf/any.d.ts +0 -27
- package/types/google/protobuf/struct.d.ts +0 -175
|
@@ -6724,6 +6724,9 @@ var com;
|
|
|
6724
6724
|
if ("identityStatus" in data && data.identityStatus != undefined) {
|
|
6725
6725
|
this.identityStatus = data.identityStatus;
|
|
6726
6726
|
}
|
|
6727
|
+
if ("auditContext" in data && data.auditContext != undefined) {
|
|
6728
|
+
this.auditContext = data.auditContext;
|
|
6729
|
+
}
|
|
6727
6730
|
}
|
|
6728
6731
|
}
|
|
6729
6732
|
get userId() {
|
|
@@ -6756,6 +6759,12 @@ var com;
|
|
|
6756
6759
|
set identityStatus(value) {
|
|
6757
6760
|
pb_1.Message.setField(this, 5, value);
|
|
6758
6761
|
}
|
|
6762
|
+
get auditContext() {
|
|
6763
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
6764
|
+
}
|
|
6765
|
+
set auditContext(value) {
|
|
6766
|
+
pb_1.Message.setField(this, 6, value);
|
|
6767
|
+
}
|
|
6759
6768
|
static fromObject(data) {
|
|
6760
6769
|
const message = new UpdateKYCRequest({});
|
|
6761
6770
|
if (data.userId != null) {
|
|
@@ -6773,6 +6782,9 @@ var com;
|
|
|
6773
6782
|
if (data.identityStatus != null) {
|
|
6774
6783
|
message.identityStatus = data.identityStatus;
|
|
6775
6784
|
}
|
|
6785
|
+
if (data.auditContext != null) {
|
|
6786
|
+
message.auditContext = data.auditContext;
|
|
6787
|
+
}
|
|
6776
6788
|
return message;
|
|
6777
6789
|
}
|
|
6778
6790
|
toObject() {
|
|
@@ -6792,6 +6804,9 @@ var com;
|
|
|
6792
6804
|
if (this.identityStatus != null) {
|
|
6793
6805
|
data.identityStatus = this.identityStatus;
|
|
6794
6806
|
}
|
|
6807
|
+
if (this.auditContext != null) {
|
|
6808
|
+
data.auditContext = this.auditContext;
|
|
6809
|
+
}
|
|
6795
6810
|
return data;
|
|
6796
6811
|
}
|
|
6797
6812
|
serialize(w) {
|
|
@@ -6806,6 +6821,8 @@ var com;
|
|
|
6806
6821
|
writer.writeString(4, this.identityDocument);
|
|
6807
6822
|
if (this.identityStatus.length)
|
|
6808
6823
|
writer.writeString(5, this.identityStatus);
|
|
6824
|
+
if (this.auditContext.length)
|
|
6825
|
+
writer.writeString(6, this.auditContext);
|
|
6809
6826
|
if (!w)
|
|
6810
6827
|
return writer.getResultBuffer();
|
|
6811
6828
|
}
|
|
@@ -6830,6 +6847,9 @@ var com;
|
|
|
6830
6847
|
case 5:
|
|
6831
6848
|
message.identityStatus = reader.readString();
|
|
6832
6849
|
break;
|
|
6850
|
+
case 6:
|
|
6851
|
+
message.auditContext = reader.readString();
|
|
6852
|
+
break;
|
|
6833
6853
|
default: reader.skipField();
|
|
6834
6854
|
}
|
|
6835
6855
|
}
|
|
@@ -7123,6 +7143,146 @@ var com;
|
|
|
7123
7143
|
}
|
|
7124
7144
|
}
|
|
7125
7145
|
verification.MigrateIndividualToBusinessRequest = MigrateIndividualToBusinessRequest;
|
|
7146
|
+
class VerifyIdentityRequest extends pb_1.Message {
|
|
7147
|
+
#one_of_decls = [];
|
|
7148
|
+
constructor(data) {
|
|
7149
|
+
super();
|
|
7150
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
7151
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
7152
|
+
if ("idNumber" in data && data.idNumber != undefined) {
|
|
7153
|
+
this.idNumber = data.idNumber;
|
|
7154
|
+
}
|
|
7155
|
+
if ("idType" in data && data.idType != undefined) {
|
|
7156
|
+
this.idType = data.idType;
|
|
7157
|
+
}
|
|
7158
|
+
if ("image" in data && data.image != undefined) {
|
|
7159
|
+
this.image = data.image;
|
|
7160
|
+
}
|
|
7161
|
+
if ("userId" in data && data.userId != undefined) {
|
|
7162
|
+
this.userId = data.userId;
|
|
7163
|
+
}
|
|
7164
|
+
if ("category" in data && data.category != undefined) {
|
|
7165
|
+
this.category = data.category;
|
|
7166
|
+
}
|
|
7167
|
+
}
|
|
7168
|
+
}
|
|
7169
|
+
get idNumber() {
|
|
7170
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
7171
|
+
}
|
|
7172
|
+
set idNumber(value) {
|
|
7173
|
+
pb_1.Message.setField(this, 1, value);
|
|
7174
|
+
}
|
|
7175
|
+
get idType() {
|
|
7176
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
7177
|
+
}
|
|
7178
|
+
set idType(value) {
|
|
7179
|
+
pb_1.Message.setField(this, 2, value);
|
|
7180
|
+
}
|
|
7181
|
+
get image() {
|
|
7182
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
7183
|
+
}
|
|
7184
|
+
set image(value) {
|
|
7185
|
+
pb_1.Message.setField(this, 3, value);
|
|
7186
|
+
}
|
|
7187
|
+
get userId() {
|
|
7188
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
7189
|
+
}
|
|
7190
|
+
set userId(value) {
|
|
7191
|
+
pb_1.Message.setField(this, 4, value);
|
|
7192
|
+
}
|
|
7193
|
+
get category() {
|
|
7194
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
7195
|
+
}
|
|
7196
|
+
set category(value) {
|
|
7197
|
+
pb_1.Message.setField(this, 5, value);
|
|
7198
|
+
}
|
|
7199
|
+
static fromObject(data) {
|
|
7200
|
+
const message = new VerifyIdentityRequest({});
|
|
7201
|
+
if (data.idNumber != null) {
|
|
7202
|
+
message.idNumber = data.idNumber;
|
|
7203
|
+
}
|
|
7204
|
+
if (data.idType != null) {
|
|
7205
|
+
message.idType = data.idType;
|
|
7206
|
+
}
|
|
7207
|
+
if (data.image != null) {
|
|
7208
|
+
message.image = data.image;
|
|
7209
|
+
}
|
|
7210
|
+
if (data.userId != null) {
|
|
7211
|
+
message.userId = data.userId;
|
|
7212
|
+
}
|
|
7213
|
+
if (data.category != null) {
|
|
7214
|
+
message.category = data.category;
|
|
7215
|
+
}
|
|
7216
|
+
return message;
|
|
7217
|
+
}
|
|
7218
|
+
toObject() {
|
|
7219
|
+
const data = {};
|
|
7220
|
+
if (this.idNumber != null) {
|
|
7221
|
+
data.idNumber = this.idNumber;
|
|
7222
|
+
}
|
|
7223
|
+
if (this.idType != null) {
|
|
7224
|
+
data.idType = this.idType;
|
|
7225
|
+
}
|
|
7226
|
+
if (this.image != null) {
|
|
7227
|
+
data.image = this.image;
|
|
7228
|
+
}
|
|
7229
|
+
if (this.userId != null) {
|
|
7230
|
+
data.userId = this.userId;
|
|
7231
|
+
}
|
|
7232
|
+
if (this.category != null) {
|
|
7233
|
+
data.category = this.category;
|
|
7234
|
+
}
|
|
7235
|
+
return data;
|
|
7236
|
+
}
|
|
7237
|
+
serialize(w) {
|
|
7238
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
7239
|
+
if (this.idNumber.length)
|
|
7240
|
+
writer.writeString(1, this.idNumber);
|
|
7241
|
+
if (this.idType.length)
|
|
7242
|
+
writer.writeString(2, this.idType);
|
|
7243
|
+
if (this.image.length)
|
|
7244
|
+
writer.writeString(3, this.image);
|
|
7245
|
+
if (this.userId.length)
|
|
7246
|
+
writer.writeString(4, this.userId);
|
|
7247
|
+
if (this.category.length)
|
|
7248
|
+
writer.writeString(5, this.category);
|
|
7249
|
+
if (!w)
|
|
7250
|
+
return writer.getResultBuffer();
|
|
7251
|
+
}
|
|
7252
|
+
static deserialize(bytes) {
|
|
7253
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new VerifyIdentityRequest();
|
|
7254
|
+
while (reader.nextField()) {
|
|
7255
|
+
if (reader.isEndGroup())
|
|
7256
|
+
break;
|
|
7257
|
+
switch (reader.getFieldNumber()) {
|
|
7258
|
+
case 1:
|
|
7259
|
+
message.idNumber = reader.readString();
|
|
7260
|
+
break;
|
|
7261
|
+
case 2:
|
|
7262
|
+
message.idType = reader.readString();
|
|
7263
|
+
break;
|
|
7264
|
+
case 3:
|
|
7265
|
+
message.image = reader.readString();
|
|
7266
|
+
break;
|
|
7267
|
+
case 4:
|
|
7268
|
+
message.userId = reader.readString();
|
|
7269
|
+
break;
|
|
7270
|
+
case 5:
|
|
7271
|
+
message.category = reader.readString();
|
|
7272
|
+
break;
|
|
7273
|
+
default: reader.skipField();
|
|
7274
|
+
}
|
|
7275
|
+
}
|
|
7276
|
+
return message;
|
|
7277
|
+
}
|
|
7278
|
+
serializeBinary() {
|
|
7279
|
+
return this.serialize();
|
|
7280
|
+
}
|
|
7281
|
+
static deserializeBinary(bytes) {
|
|
7282
|
+
return VerifyIdentityRequest.deserialize(bytes);
|
|
7283
|
+
}
|
|
7284
|
+
}
|
|
7285
|
+
verification.VerifyIdentityRequest = VerifyIdentityRequest;
|
|
7126
7286
|
class UnimplementedVerificationServiceService {
|
|
7127
7287
|
static definition = {
|
|
7128
7288
|
LookupBVN: {
|
|
@@ -7430,6 +7590,15 @@ var com;
|
|
|
7430
7590
|
requestDeserialize: (bytes) => MigrateIndividualToBusinessRequest.deserialize(new Uint8Array(bytes)),
|
|
7431
7591
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
7432
7592
|
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
7593
|
+
},
|
|
7594
|
+
VerifyIdentity: {
|
|
7595
|
+
path: "/com.pkg.verification.VerificationService/VerifyIdentity",
|
|
7596
|
+
requestStream: false,
|
|
7597
|
+
responseStream: false,
|
|
7598
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
7599
|
+
requestDeserialize: (bytes) => VerifyIdentityRequest.deserialize(new Uint8Array(bytes)),
|
|
7600
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
7601
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
7433
7602
|
}
|
|
7434
7603
|
};
|
|
7435
7604
|
}
|
|
@@ -7982,6 +8151,22 @@ var com;
|
|
|
7982
8151
|
}
|
|
7983
8152
|
}));
|
|
7984
8153
|
};
|
|
8154
|
+
VerifyIdentity = (message, metadata, options) => {
|
|
8155
|
+
if (!metadata) {
|
|
8156
|
+
metadata = new grpc_1.Metadata;
|
|
8157
|
+
}
|
|
8158
|
+
if (!options) {
|
|
8159
|
+
options = {};
|
|
8160
|
+
}
|
|
8161
|
+
return new Promise((resolve, reject) => super.VerifyIdentity(message, metadata, options, (error, response) => {
|
|
8162
|
+
if (error) {
|
|
8163
|
+
reject(error);
|
|
8164
|
+
}
|
|
8165
|
+
else {
|
|
8166
|
+
resolve(response);
|
|
8167
|
+
}
|
|
8168
|
+
}));
|
|
8169
|
+
};
|
|
7985
8170
|
}
|
|
7986
8171
|
verification.VerificationServiceClient = VerificationServiceClient;
|
|
7987
8172
|
})(verification = pkg.verification || (pkg.verification = {}));
|
package/google/protobuf/any.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
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 = {}));
|