@technova-tech/olive-proto-lib 3.2.6 → 3.2.8
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/accounts/accounts.js +1181 -0
- package/admin/admin.js +20 -0
- package/package.json +1 -1
- package/types/accounts/accounts.d.ts +387 -0
- package/types/admin/admin.d.ts +5 -0
- package/types/pos.v1/merchants.d.ts +1 -1
- package/types/users/users.d.ts +132 -0
- package/types/verifications/verifications.d.ts +45 -0
- package/users/users.js +420 -0
- package/verifications/verifications.js +145 -0
|
@@ -2,6 +2,40 @@
|
|
|
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.verification {
|
|
5
|
+
export class ImportedBusinessVerificationRequest extends pb_1.Message {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(data?: any[] | {
|
|
8
|
+
userId?: string;
|
|
9
|
+
businessName?: string;
|
|
10
|
+
businessEmail?: string;
|
|
11
|
+
bvn?: string;
|
|
12
|
+
});
|
|
13
|
+
get userId(): string;
|
|
14
|
+
set userId(value: string);
|
|
15
|
+
get businessName(): string;
|
|
16
|
+
set businessName(value: string);
|
|
17
|
+
get businessEmail(): string;
|
|
18
|
+
set businessEmail(value: string);
|
|
19
|
+
get bvn(): string;
|
|
20
|
+
set bvn(value: string);
|
|
21
|
+
static fromObject(data: {
|
|
22
|
+
userId?: string;
|
|
23
|
+
businessName?: string;
|
|
24
|
+
businessEmail?: string;
|
|
25
|
+
bvn?: string;
|
|
26
|
+
}): ImportedBusinessVerificationRequest;
|
|
27
|
+
toObject(): {
|
|
28
|
+
userId?: string | undefined;
|
|
29
|
+
businessName?: string | undefined;
|
|
30
|
+
businessEmail?: string | undefined;
|
|
31
|
+
bvn?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
serialize(): Uint8Array;
|
|
34
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
35
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImportedBusinessVerificationRequest;
|
|
36
|
+
serializeBinary(): Uint8Array;
|
|
37
|
+
static deserializeBinary(bytes: Uint8Array): ImportedBusinessVerificationRequest;
|
|
38
|
+
}
|
|
5
39
|
export class SaveVerificationSessionRequest extends pb_1.Message {
|
|
6
40
|
#private;
|
|
7
41
|
constructor(data?: any[] | {
|
|
@@ -2971,6 +3005,15 @@ export declare namespace com.pkg.verification {
|
|
|
2971
3005
|
responseSerialize: (message: VerificationSessionResponse) => Buffer;
|
|
2972
3006
|
responseDeserialize: (bytes: Buffer) => VerificationSessionResponse;
|
|
2973
3007
|
};
|
|
3008
|
+
CreateImportedBusinessVerification: {
|
|
3009
|
+
path: string;
|
|
3010
|
+
requestStream: boolean;
|
|
3011
|
+
responseStream: boolean;
|
|
3012
|
+
requestSerialize: (message: ImportedBusinessVerificationRequest) => Buffer;
|
|
3013
|
+
requestDeserialize: (bytes: Buffer) => ImportedBusinessVerificationRequest;
|
|
3014
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
3015
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
3016
|
+
};
|
|
2974
3017
|
};
|
|
2975
3018
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
2976
3019
|
abstract LookupBVN(call: grpc_1.ServerUnaryCall<BVNRequest, BVNLookupResponse>, callback: grpc_1.sendUnaryData<BVNLookupResponse>): void;
|
|
@@ -3010,6 +3053,7 @@ export declare namespace com.pkg.verification {
|
|
|
3010
3053
|
abstract VerifyIdentity(call: grpc_1.ServerUnaryCall<VerifyIdentityRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3011
3054
|
abstract SaveVerificationSession(call: grpc_1.ServerUnaryCall<SaveVerificationSessionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3012
3055
|
abstract GetVerificationSession(call: grpc_1.ServerUnaryCall<GetVerificationSessionRequest, VerificationSessionResponse>, callback: grpc_1.sendUnaryData<VerificationSessionResponse>): void;
|
|
3056
|
+
abstract CreateImportedBusinessVerification(call: grpc_1.ServerUnaryCall<ImportedBusinessVerificationRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
3013
3057
|
}
|
|
3014
3058
|
const VerificationServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
3015
3059
|
export class VerificationServiceClient extends VerificationServiceClient_base {
|
|
@@ -3051,6 +3095,7 @@ export declare namespace com.pkg.verification {
|
|
|
3051
3095
|
VerifyIdentity: GrpcPromiseServiceInterface<VerifyIdentityRequest, DefaultResponse>;
|
|
3052
3096
|
SaveVerificationSession: GrpcPromiseServiceInterface<SaveVerificationSessionRequest, DefaultResponse>;
|
|
3053
3097
|
GetVerificationSession: GrpcPromiseServiceInterface<GetVerificationSessionRequest, VerificationSessionResponse>;
|
|
3098
|
+
CreateImportedBusinessVerification: GrpcPromiseServiceInterface<ImportedBusinessVerificationRequest, DefaultResponse>;
|
|
3054
3099
|
}
|
|
3055
3100
|
export {};
|
|
3056
3101
|
}
|
package/users/users.js
CHANGED
|
@@ -32,6 +32,326 @@ var com;
|
|
|
32
32
|
(function (pkg) {
|
|
33
33
|
var user;
|
|
34
34
|
(function (user) {
|
|
35
|
+
class CreateExistingBusinessUserRequest 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 ("phone" in data && data.phone != undefined) {
|
|
42
|
+
this.phone = data.phone;
|
|
43
|
+
}
|
|
44
|
+
if ("password" in data && data.password != undefined) {
|
|
45
|
+
this.password = data.password;
|
|
46
|
+
}
|
|
47
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
48
|
+
this.firstName = data.firstName;
|
|
49
|
+
}
|
|
50
|
+
if ("middleName" in data && data.middleName != undefined) {
|
|
51
|
+
this.middleName = data.middleName;
|
|
52
|
+
}
|
|
53
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
54
|
+
this.lastName = data.lastName;
|
|
55
|
+
}
|
|
56
|
+
if ("email" in data && data.email != undefined) {
|
|
57
|
+
this.email = data.email;
|
|
58
|
+
}
|
|
59
|
+
if ("gender" in data && data.gender != undefined) {
|
|
60
|
+
this.gender = data.gender;
|
|
61
|
+
}
|
|
62
|
+
if ("dateOfBirth" in data && data.dateOfBirth != undefined) {
|
|
63
|
+
this.dateOfBirth = data.dateOfBirth;
|
|
64
|
+
}
|
|
65
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
66
|
+
this.bvn = data.bvn;
|
|
67
|
+
}
|
|
68
|
+
if ("providerId" in data && data.providerId != undefined) {
|
|
69
|
+
this.providerId = data.providerId;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
get phone() {
|
|
74
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
75
|
+
}
|
|
76
|
+
set phone(value) {
|
|
77
|
+
pb_1.Message.setField(this, 1, value);
|
|
78
|
+
}
|
|
79
|
+
get password() {
|
|
80
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
81
|
+
}
|
|
82
|
+
set password(value) {
|
|
83
|
+
pb_1.Message.setField(this, 2, value);
|
|
84
|
+
}
|
|
85
|
+
get firstName() {
|
|
86
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
87
|
+
}
|
|
88
|
+
set firstName(value) {
|
|
89
|
+
pb_1.Message.setField(this, 3, value);
|
|
90
|
+
}
|
|
91
|
+
get middleName() {
|
|
92
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
93
|
+
}
|
|
94
|
+
set middleName(value) {
|
|
95
|
+
pb_1.Message.setField(this, 4, value);
|
|
96
|
+
}
|
|
97
|
+
get lastName() {
|
|
98
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
99
|
+
}
|
|
100
|
+
set lastName(value) {
|
|
101
|
+
pb_1.Message.setField(this, 5, value);
|
|
102
|
+
}
|
|
103
|
+
get email() {
|
|
104
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
105
|
+
}
|
|
106
|
+
set email(value) {
|
|
107
|
+
pb_1.Message.setField(this, 6, value);
|
|
108
|
+
}
|
|
109
|
+
get gender() {
|
|
110
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
111
|
+
}
|
|
112
|
+
set gender(value) {
|
|
113
|
+
pb_1.Message.setField(this, 7, value);
|
|
114
|
+
}
|
|
115
|
+
get dateOfBirth() {
|
|
116
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
117
|
+
}
|
|
118
|
+
set dateOfBirth(value) {
|
|
119
|
+
pb_1.Message.setField(this, 8, value);
|
|
120
|
+
}
|
|
121
|
+
get bvn() {
|
|
122
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
123
|
+
}
|
|
124
|
+
set bvn(value) {
|
|
125
|
+
pb_1.Message.setField(this, 9, value);
|
|
126
|
+
}
|
|
127
|
+
get providerId() {
|
|
128
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
129
|
+
}
|
|
130
|
+
set providerId(value) {
|
|
131
|
+
pb_1.Message.setField(this, 10, value);
|
|
132
|
+
}
|
|
133
|
+
static fromObject(data) {
|
|
134
|
+
const message = new CreateExistingBusinessUserRequest({});
|
|
135
|
+
if (data.phone != null) {
|
|
136
|
+
message.phone = data.phone;
|
|
137
|
+
}
|
|
138
|
+
if (data.password != null) {
|
|
139
|
+
message.password = data.password;
|
|
140
|
+
}
|
|
141
|
+
if (data.firstName != null) {
|
|
142
|
+
message.firstName = data.firstName;
|
|
143
|
+
}
|
|
144
|
+
if (data.middleName != null) {
|
|
145
|
+
message.middleName = data.middleName;
|
|
146
|
+
}
|
|
147
|
+
if (data.lastName != null) {
|
|
148
|
+
message.lastName = data.lastName;
|
|
149
|
+
}
|
|
150
|
+
if (data.email != null) {
|
|
151
|
+
message.email = data.email;
|
|
152
|
+
}
|
|
153
|
+
if (data.gender != null) {
|
|
154
|
+
message.gender = data.gender;
|
|
155
|
+
}
|
|
156
|
+
if (data.dateOfBirth != null) {
|
|
157
|
+
message.dateOfBirth = data.dateOfBirth;
|
|
158
|
+
}
|
|
159
|
+
if (data.bvn != null) {
|
|
160
|
+
message.bvn = data.bvn;
|
|
161
|
+
}
|
|
162
|
+
if (data.providerId != null) {
|
|
163
|
+
message.providerId = data.providerId;
|
|
164
|
+
}
|
|
165
|
+
return message;
|
|
166
|
+
}
|
|
167
|
+
toObject() {
|
|
168
|
+
const data = {};
|
|
169
|
+
if (this.phone != null) {
|
|
170
|
+
data.phone = this.phone;
|
|
171
|
+
}
|
|
172
|
+
if (this.password != null) {
|
|
173
|
+
data.password = this.password;
|
|
174
|
+
}
|
|
175
|
+
if (this.firstName != null) {
|
|
176
|
+
data.firstName = this.firstName;
|
|
177
|
+
}
|
|
178
|
+
if (this.middleName != null) {
|
|
179
|
+
data.middleName = this.middleName;
|
|
180
|
+
}
|
|
181
|
+
if (this.lastName != null) {
|
|
182
|
+
data.lastName = this.lastName;
|
|
183
|
+
}
|
|
184
|
+
if (this.email != null) {
|
|
185
|
+
data.email = this.email;
|
|
186
|
+
}
|
|
187
|
+
if (this.gender != null) {
|
|
188
|
+
data.gender = this.gender;
|
|
189
|
+
}
|
|
190
|
+
if (this.dateOfBirth != null) {
|
|
191
|
+
data.dateOfBirth = this.dateOfBirth;
|
|
192
|
+
}
|
|
193
|
+
if (this.bvn != null) {
|
|
194
|
+
data.bvn = this.bvn;
|
|
195
|
+
}
|
|
196
|
+
if (this.providerId != null) {
|
|
197
|
+
data.providerId = this.providerId;
|
|
198
|
+
}
|
|
199
|
+
return data;
|
|
200
|
+
}
|
|
201
|
+
serialize(w) {
|
|
202
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
203
|
+
if (this.phone.length)
|
|
204
|
+
writer.writeString(1, this.phone);
|
|
205
|
+
if (this.password.length)
|
|
206
|
+
writer.writeString(2, this.password);
|
|
207
|
+
if (this.firstName.length)
|
|
208
|
+
writer.writeString(3, this.firstName);
|
|
209
|
+
if (this.middleName.length)
|
|
210
|
+
writer.writeString(4, this.middleName);
|
|
211
|
+
if (this.lastName.length)
|
|
212
|
+
writer.writeString(5, this.lastName);
|
|
213
|
+
if (this.email.length)
|
|
214
|
+
writer.writeString(6, this.email);
|
|
215
|
+
if (this.gender.length)
|
|
216
|
+
writer.writeString(7, this.gender);
|
|
217
|
+
if (this.dateOfBirth.length)
|
|
218
|
+
writer.writeString(8, this.dateOfBirth);
|
|
219
|
+
if (this.bvn.length)
|
|
220
|
+
writer.writeString(9, this.bvn);
|
|
221
|
+
if (this.providerId.length)
|
|
222
|
+
writer.writeString(10, this.providerId);
|
|
223
|
+
if (!w)
|
|
224
|
+
return writer.getResultBuffer();
|
|
225
|
+
}
|
|
226
|
+
static deserialize(bytes) {
|
|
227
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateExistingBusinessUserRequest();
|
|
228
|
+
while (reader.nextField()) {
|
|
229
|
+
if (reader.isEndGroup())
|
|
230
|
+
break;
|
|
231
|
+
switch (reader.getFieldNumber()) {
|
|
232
|
+
case 1:
|
|
233
|
+
message.phone = reader.readString();
|
|
234
|
+
break;
|
|
235
|
+
case 2:
|
|
236
|
+
message.password = reader.readString();
|
|
237
|
+
break;
|
|
238
|
+
case 3:
|
|
239
|
+
message.firstName = reader.readString();
|
|
240
|
+
break;
|
|
241
|
+
case 4:
|
|
242
|
+
message.middleName = reader.readString();
|
|
243
|
+
break;
|
|
244
|
+
case 5:
|
|
245
|
+
message.lastName = reader.readString();
|
|
246
|
+
break;
|
|
247
|
+
case 6:
|
|
248
|
+
message.email = reader.readString();
|
|
249
|
+
break;
|
|
250
|
+
case 7:
|
|
251
|
+
message.gender = reader.readString();
|
|
252
|
+
break;
|
|
253
|
+
case 8:
|
|
254
|
+
message.dateOfBirth = reader.readString();
|
|
255
|
+
break;
|
|
256
|
+
case 9:
|
|
257
|
+
message.bvn = reader.readString();
|
|
258
|
+
break;
|
|
259
|
+
case 10:
|
|
260
|
+
message.providerId = reader.readString();
|
|
261
|
+
break;
|
|
262
|
+
default: reader.skipField();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return message;
|
|
266
|
+
}
|
|
267
|
+
serializeBinary() {
|
|
268
|
+
return this.serialize();
|
|
269
|
+
}
|
|
270
|
+
static deserializeBinary(bytes) {
|
|
271
|
+
return CreateExistingBusinessUserRequest.deserialize(bytes);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
user.CreateExistingBusinessUserRequest = CreateExistingBusinessUserRequest;
|
|
275
|
+
class VerifyLinkAccountOtpRequest extends pb_1.Message {
|
|
276
|
+
#one_of_decls = [];
|
|
277
|
+
constructor(data) {
|
|
278
|
+
super();
|
|
279
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
280
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
281
|
+
if ("id" in data && data.id != undefined) {
|
|
282
|
+
this.id = data.id;
|
|
283
|
+
}
|
|
284
|
+
if ("code" in data && data.code != undefined) {
|
|
285
|
+
this.code = data.code;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
get id() {
|
|
290
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
291
|
+
}
|
|
292
|
+
set id(value) {
|
|
293
|
+
pb_1.Message.setField(this, 1, value);
|
|
294
|
+
}
|
|
295
|
+
get code() {
|
|
296
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
297
|
+
}
|
|
298
|
+
set code(value) {
|
|
299
|
+
pb_1.Message.setField(this, 2, value);
|
|
300
|
+
}
|
|
301
|
+
static fromObject(data) {
|
|
302
|
+
const message = new VerifyLinkAccountOtpRequest({});
|
|
303
|
+
if (data.id != null) {
|
|
304
|
+
message.id = data.id;
|
|
305
|
+
}
|
|
306
|
+
if (data.code != null) {
|
|
307
|
+
message.code = data.code;
|
|
308
|
+
}
|
|
309
|
+
return message;
|
|
310
|
+
}
|
|
311
|
+
toObject() {
|
|
312
|
+
const data = {};
|
|
313
|
+
if (this.id != null) {
|
|
314
|
+
data.id = this.id;
|
|
315
|
+
}
|
|
316
|
+
if (this.code != null) {
|
|
317
|
+
data.code = this.code;
|
|
318
|
+
}
|
|
319
|
+
return data;
|
|
320
|
+
}
|
|
321
|
+
serialize(w) {
|
|
322
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
323
|
+
if (this.id.length)
|
|
324
|
+
writer.writeString(1, this.id);
|
|
325
|
+
if (this.code.length)
|
|
326
|
+
writer.writeString(2, this.code);
|
|
327
|
+
if (!w)
|
|
328
|
+
return writer.getResultBuffer();
|
|
329
|
+
}
|
|
330
|
+
static deserialize(bytes) {
|
|
331
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new VerifyLinkAccountOtpRequest();
|
|
332
|
+
while (reader.nextField()) {
|
|
333
|
+
if (reader.isEndGroup())
|
|
334
|
+
break;
|
|
335
|
+
switch (reader.getFieldNumber()) {
|
|
336
|
+
case 1:
|
|
337
|
+
message.id = reader.readString();
|
|
338
|
+
break;
|
|
339
|
+
case 2:
|
|
340
|
+
message.code = reader.readString();
|
|
341
|
+
break;
|
|
342
|
+
default: reader.skipField();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return message;
|
|
346
|
+
}
|
|
347
|
+
serializeBinary() {
|
|
348
|
+
return this.serialize();
|
|
349
|
+
}
|
|
350
|
+
static deserializeBinary(bytes) {
|
|
351
|
+
return VerifyLinkAccountOtpRequest.deserialize(bytes);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
user.VerifyLinkAccountOtpRequest = VerifyLinkAccountOtpRequest;
|
|
35
355
|
class ValidationErrors extends pb_1.Message {
|
|
36
356
|
#one_of_decls = [];
|
|
37
357
|
constructor(data) {
|
|
@@ -12504,6 +12824,42 @@ var com;
|
|
|
12504
12824
|
requestDeserialize: (bytes) => GetPepRequest.deserialize(new Uint8Array(bytes)),
|
|
12505
12825
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12506
12826
|
responseDeserialize: (bytes) => PepResponse.deserialize(new Uint8Array(bytes))
|
|
12827
|
+
},
|
|
12828
|
+
CheckPhoneAvailability: {
|
|
12829
|
+
path: "/com.pkg.user.UserService/CheckPhoneAvailability",
|
|
12830
|
+
requestStream: false,
|
|
12831
|
+
responseStream: false,
|
|
12832
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12833
|
+
requestDeserialize: (bytes) => PhoneRequest.deserialize(new Uint8Array(bytes)),
|
|
12834
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12835
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
12836
|
+
},
|
|
12837
|
+
CreateExistingBusinessUser: {
|
|
12838
|
+
path: "/com.pkg.user.UserService/CreateExistingBusinessUser",
|
|
12839
|
+
requestStream: false,
|
|
12840
|
+
responseStream: false,
|
|
12841
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12842
|
+
requestDeserialize: (bytes) => CreateExistingBusinessUserRequest.deserialize(new Uint8Array(bytes)),
|
|
12843
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12844
|
+
responseDeserialize: (bytes) => CreateUserResponse.deserialize(new Uint8Array(bytes))
|
|
12845
|
+
},
|
|
12846
|
+
RequestLinkAccountOtp: {
|
|
12847
|
+
path: "/com.pkg.user.UserService/RequestLinkAccountOtp",
|
|
12848
|
+
requestStream: false,
|
|
12849
|
+
responseStream: false,
|
|
12850
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12851
|
+
requestDeserialize: (bytes) => IdRequest.deserialize(new Uint8Array(bytes)),
|
|
12852
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12853
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
12854
|
+
},
|
|
12855
|
+
VerifyLinkAccountOtp: {
|
|
12856
|
+
path: "/com.pkg.user.UserService/VerifyLinkAccountOtp",
|
|
12857
|
+
requestStream: false,
|
|
12858
|
+
responseStream: false,
|
|
12859
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12860
|
+
requestDeserialize: (bytes) => VerifyLinkAccountOtpRequest.deserialize(new Uint8Array(bytes)),
|
|
12861
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12862
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
12507
12863
|
}
|
|
12508
12864
|
};
|
|
12509
12865
|
}
|
|
@@ -13296,6 +13652,70 @@ var com;
|
|
|
13296
13652
|
}
|
|
13297
13653
|
}));
|
|
13298
13654
|
};
|
|
13655
|
+
CheckPhoneAvailability = (message, metadata, options) => {
|
|
13656
|
+
if (!metadata) {
|
|
13657
|
+
metadata = new grpc_1.Metadata;
|
|
13658
|
+
}
|
|
13659
|
+
if (!options) {
|
|
13660
|
+
options = {};
|
|
13661
|
+
}
|
|
13662
|
+
return new Promise((resolve, reject) => super.CheckPhoneAvailability(message, metadata, options, (error, response) => {
|
|
13663
|
+
if (error) {
|
|
13664
|
+
reject(error);
|
|
13665
|
+
}
|
|
13666
|
+
else {
|
|
13667
|
+
resolve(response);
|
|
13668
|
+
}
|
|
13669
|
+
}));
|
|
13670
|
+
};
|
|
13671
|
+
CreateExistingBusinessUser = (message, metadata, options) => {
|
|
13672
|
+
if (!metadata) {
|
|
13673
|
+
metadata = new grpc_1.Metadata;
|
|
13674
|
+
}
|
|
13675
|
+
if (!options) {
|
|
13676
|
+
options = {};
|
|
13677
|
+
}
|
|
13678
|
+
return new Promise((resolve, reject) => super.CreateExistingBusinessUser(message, metadata, options, (error, response) => {
|
|
13679
|
+
if (error) {
|
|
13680
|
+
reject(error);
|
|
13681
|
+
}
|
|
13682
|
+
else {
|
|
13683
|
+
resolve(response);
|
|
13684
|
+
}
|
|
13685
|
+
}));
|
|
13686
|
+
};
|
|
13687
|
+
RequestLinkAccountOtp = (message, metadata, options) => {
|
|
13688
|
+
if (!metadata) {
|
|
13689
|
+
metadata = new grpc_1.Metadata;
|
|
13690
|
+
}
|
|
13691
|
+
if (!options) {
|
|
13692
|
+
options = {};
|
|
13693
|
+
}
|
|
13694
|
+
return new Promise((resolve, reject) => super.RequestLinkAccountOtp(message, metadata, options, (error, response) => {
|
|
13695
|
+
if (error) {
|
|
13696
|
+
reject(error);
|
|
13697
|
+
}
|
|
13698
|
+
else {
|
|
13699
|
+
resolve(response);
|
|
13700
|
+
}
|
|
13701
|
+
}));
|
|
13702
|
+
};
|
|
13703
|
+
VerifyLinkAccountOtp = (message, metadata, options) => {
|
|
13704
|
+
if (!metadata) {
|
|
13705
|
+
metadata = new grpc_1.Metadata;
|
|
13706
|
+
}
|
|
13707
|
+
if (!options) {
|
|
13708
|
+
options = {};
|
|
13709
|
+
}
|
|
13710
|
+
return new Promise((resolve, reject) => super.VerifyLinkAccountOtp(message, metadata, options, (error, response) => {
|
|
13711
|
+
if (error) {
|
|
13712
|
+
reject(error);
|
|
13713
|
+
}
|
|
13714
|
+
else {
|
|
13715
|
+
resolve(response);
|
|
13716
|
+
}
|
|
13717
|
+
}));
|
|
13718
|
+
};
|
|
13299
13719
|
}
|
|
13300
13720
|
user.UserServiceClient = UserServiceClient;
|
|
13301
13721
|
})(user = pkg.user || (pkg.user = {}));
|
|
@@ -32,6 +32,126 @@ var com;
|
|
|
32
32
|
(function (pkg) {
|
|
33
33
|
var verification;
|
|
34
34
|
(function (verification) {
|
|
35
|
+
class ImportedBusinessVerificationRequest 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 ("userId" in data && data.userId != undefined) {
|
|
42
|
+
this.userId = data.userId;
|
|
43
|
+
}
|
|
44
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
45
|
+
this.businessName = data.businessName;
|
|
46
|
+
}
|
|
47
|
+
if ("businessEmail" in data && data.businessEmail != undefined) {
|
|
48
|
+
this.businessEmail = data.businessEmail;
|
|
49
|
+
}
|
|
50
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
51
|
+
this.bvn = data.bvn;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
get userId() {
|
|
56
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
57
|
+
}
|
|
58
|
+
set userId(value) {
|
|
59
|
+
pb_1.Message.setField(this, 1, value);
|
|
60
|
+
}
|
|
61
|
+
get businessName() {
|
|
62
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
63
|
+
}
|
|
64
|
+
set businessName(value) {
|
|
65
|
+
pb_1.Message.setField(this, 2, value);
|
|
66
|
+
}
|
|
67
|
+
get businessEmail() {
|
|
68
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
69
|
+
}
|
|
70
|
+
set businessEmail(value) {
|
|
71
|
+
pb_1.Message.setField(this, 3, value);
|
|
72
|
+
}
|
|
73
|
+
get bvn() {
|
|
74
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
75
|
+
}
|
|
76
|
+
set bvn(value) {
|
|
77
|
+
pb_1.Message.setField(this, 4, value);
|
|
78
|
+
}
|
|
79
|
+
static fromObject(data) {
|
|
80
|
+
const message = new ImportedBusinessVerificationRequest({});
|
|
81
|
+
if (data.userId != null) {
|
|
82
|
+
message.userId = data.userId;
|
|
83
|
+
}
|
|
84
|
+
if (data.businessName != null) {
|
|
85
|
+
message.businessName = data.businessName;
|
|
86
|
+
}
|
|
87
|
+
if (data.businessEmail != null) {
|
|
88
|
+
message.businessEmail = data.businessEmail;
|
|
89
|
+
}
|
|
90
|
+
if (data.bvn != null) {
|
|
91
|
+
message.bvn = data.bvn;
|
|
92
|
+
}
|
|
93
|
+
return message;
|
|
94
|
+
}
|
|
95
|
+
toObject() {
|
|
96
|
+
const data = {};
|
|
97
|
+
if (this.userId != null) {
|
|
98
|
+
data.userId = this.userId;
|
|
99
|
+
}
|
|
100
|
+
if (this.businessName != null) {
|
|
101
|
+
data.businessName = this.businessName;
|
|
102
|
+
}
|
|
103
|
+
if (this.businessEmail != null) {
|
|
104
|
+
data.businessEmail = this.businessEmail;
|
|
105
|
+
}
|
|
106
|
+
if (this.bvn != null) {
|
|
107
|
+
data.bvn = this.bvn;
|
|
108
|
+
}
|
|
109
|
+
return data;
|
|
110
|
+
}
|
|
111
|
+
serialize(w) {
|
|
112
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
113
|
+
if (this.userId.length)
|
|
114
|
+
writer.writeString(1, this.userId);
|
|
115
|
+
if (this.businessName.length)
|
|
116
|
+
writer.writeString(2, this.businessName);
|
|
117
|
+
if (this.businessEmail.length)
|
|
118
|
+
writer.writeString(3, this.businessEmail);
|
|
119
|
+
if (this.bvn.length)
|
|
120
|
+
writer.writeString(4, this.bvn);
|
|
121
|
+
if (!w)
|
|
122
|
+
return writer.getResultBuffer();
|
|
123
|
+
}
|
|
124
|
+
static deserialize(bytes) {
|
|
125
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImportedBusinessVerificationRequest();
|
|
126
|
+
while (reader.nextField()) {
|
|
127
|
+
if (reader.isEndGroup())
|
|
128
|
+
break;
|
|
129
|
+
switch (reader.getFieldNumber()) {
|
|
130
|
+
case 1:
|
|
131
|
+
message.userId = reader.readString();
|
|
132
|
+
break;
|
|
133
|
+
case 2:
|
|
134
|
+
message.businessName = reader.readString();
|
|
135
|
+
break;
|
|
136
|
+
case 3:
|
|
137
|
+
message.businessEmail = reader.readString();
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
message.bvn = reader.readString();
|
|
141
|
+
break;
|
|
142
|
+
default: reader.skipField();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return message;
|
|
146
|
+
}
|
|
147
|
+
serializeBinary() {
|
|
148
|
+
return this.serialize();
|
|
149
|
+
}
|
|
150
|
+
static deserializeBinary(bytes) {
|
|
151
|
+
return ImportedBusinessVerificationRequest.deserialize(bytes);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
verification.ImportedBusinessVerificationRequest = ImportedBusinessVerificationRequest;
|
|
35
155
|
class SaveVerificationSessionRequest extends pb_1.Message {
|
|
36
156
|
#one_of_decls = [];
|
|
37
157
|
constructor(data) {
|
|
@@ -7917,6 +8037,15 @@ var com;
|
|
|
7917
8037
|
requestDeserialize: (bytes) => GetVerificationSessionRequest.deserialize(new Uint8Array(bytes)),
|
|
7918
8038
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
7919
8039
|
responseDeserialize: (bytes) => VerificationSessionResponse.deserialize(new Uint8Array(bytes))
|
|
8040
|
+
},
|
|
8041
|
+
CreateImportedBusinessVerification: {
|
|
8042
|
+
path: "/com.pkg.verification.VerificationService/CreateImportedBusinessVerification",
|
|
8043
|
+
requestStream: false,
|
|
8044
|
+
responseStream: false,
|
|
8045
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
8046
|
+
requestDeserialize: (bytes) => ImportedBusinessVerificationRequest.deserialize(new Uint8Array(bytes)),
|
|
8047
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
8048
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
7920
8049
|
}
|
|
7921
8050
|
};
|
|
7922
8051
|
}
|
|
@@ -8517,6 +8646,22 @@ var com;
|
|
|
8517
8646
|
}
|
|
8518
8647
|
}));
|
|
8519
8648
|
};
|
|
8649
|
+
CreateImportedBusinessVerification = (message, metadata, options) => {
|
|
8650
|
+
if (!metadata) {
|
|
8651
|
+
metadata = new grpc_1.Metadata;
|
|
8652
|
+
}
|
|
8653
|
+
if (!options) {
|
|
8654
|
+
options = {};
|
|
8655
|
+
}
|
|
8656
|
+
return new Promise((resolve, reject) => super.CreateImportedBusinessVerification(message, metadata, options, (error, response) => {
|
|
8657
|
+
if (error) {
|
|
8658
|
+
reject(error);
|
|
8659
|
+
}
|
|
8660
|
+
else {
|
|
8661
|
+
resolve(response);
|
|
8662
|
+
}
|
|
8663
|
+
}));
|
|
8664
|
+
};
|
|
8520
8665
|
}
|
|
8521
8666
|
verification.VerificationServiceClient = VerificationServiceClient;
|
|
8522
8667
|
})(verification = pkg.verification || (pkg.verification = {}));
|