@technova-tech/olive-proto-lib 1.9.0 → 1.9.1
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 +20 -0
- package/package.json +1 -1
- package/types/bills/bills.d.ts +5 -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/bills/bills.js
CHANGED
|
@@ -855,6 +855,9 @@ var com;
|
|
|
855
855
|
if ("error" in data && data.error != undefined) {
|
|
856
856
|
this.error = data.error;
|
|
857
857
|
}
|
|
858
|
+
if ("data" in data && data.data != undefined) {
|
|
859
|
+
this.data = data.data;
|
|
860
|
+
}
|
|
858
861
|
}
|
|
859
862
|
}
|
|
860
863
|
get success() {
|
|
@@ -887,6 +890,12 @@ var com;
|
|
|
887
890
|
set error(value) {
|
|
888
891
|
pb_1.Message.setField(this, 5, value);
|
|
889
892
|
}
|
|
893
|
+
get data() {
|
|
894
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
895
|
+
}
|
|
896
|
+
set data(value) {
|
|
897
|
+
pb_1.Message.setField(this, 6, value);
|
|
898
|
+
}
|
|
890
899
|
static fromObject(data) {
|
|
891
900
|
const message = new DefaultResponse({});
|
|
892
901
|
if (data.success != null) {
|
|
@@ -904,6 +913,9 @@ var com;
|
|
|
904
913
|
if (data.error != null) {
|
|
905
914
|
message.error = data.error;
|
|
906
915
|
}
|
|
916
|
+
if (data.data != null) {
|
|
917
|
+
message.data = data.data;
|
|
918
|
+
}
|
|
907
919
|
return message;
|
|
908
920
|
}
|
|
909
921
|
toObject() {
|
|
@@ -923,6 +935,9 @@ var com;
|
|
|
923
935
|
if (this.error != null) {
|
|
924
936
|
data.error = this.error;
|
|
925
937
|
}
|
|
938
|
+
if (this.data != null) {
|
|
939
|
+
data.data = this.data;
|
|
940
|
+
}
|
|
926
941
|
return data;
|
|
927
942
|
}
|
|
928
943
|
serialize(w) {
|
|
@@ -937,6 +952,8 @@ var com;
|
|
|
937
952
|
writer.writeRepeatedMessage(4, this.errors, (item) => item.serialize(writer));
|
|
938
953
|
if (this.error.length)
|
|
939
954
|
writer.writeString(5, this.error);
|
|
955
|
+
if (this.data.length)
|
|
956
|
+
writer.writeString(6, this.data);
|
|
940
957
|
if (!w)
|
|
941
958
|
return writer.getResultBuffer();
|
|
942
959
|
}
|
|
@@ -961,6 +978,9 @@ var com;
|
|
|
961
978
|
case 5:
|
|
962
979
|
message.error = reader.readString();
|
|
963
980
|
break;
|
|
981
|
+
case 6:
|
|
982
|
+
message.data = reader.readString();
|
|
983
|
+
break;
|
|
964
984
|
default: reader.skipField();
|
|
965
985
|
}
|
|
966
986
|
}
|
package/package.json
CHANGED
package/types/bills/bills.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export declare namespace com.pkg.bills {
|
|
|
245
245
|
message?: string;
|
|
246
246
|
errors?: ValidationErrors[];
|
|
247
247
|
error?: string;
|
|
248
|
+
data?: string;
|
|
248
249
|
});
|
|
249
250
|
get success(): boolean;
|
|
250
251
|
set success(value: boolean);
|
|
@@ -256,12 +257,15 @@ export declare namespace com.pkg.bills {
|
|
|
256
257
|
set errors(value: ValidationErrors[]);
|
|
257
258
|
get error(): string;
|
|
258
259
|
set error(value: string);
|
|
260
|
+
get data(): string;
|
|
261
|
+
set data(value: string);
|
|
259
262
|
static fromObject(data: {
|
|
260
263
|
success?: boolean;
|
|
261
264
|
status?: string;
|
|
262
265
|
message?: string;
|
|
263
266
|
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
264
267
|
error?: string;
|
|
268
|
+
data?: string;
|
|
265
269
|
}): DefaultResponse;
|
|
266
270
|
toObject(): {
|
|
267
271
|
success?: boolean | undefined;
|
|
@@ -272,6 +276,7 @@ export declare namespace com.pkg.bills {
|
|
|
272
276
|
message?: string | undefined;
|
|
273
277
|
}[] | undefined;
|
|
274
278
|
error?: string | undefined;
|
|
279
|
+
data?: string | undefined;
|
|
275
280
|
};
|
|
276
281
|
serialize(): Uint8Array;
|
|
277
282
|
serialize(w: pb_1.BinaryWriter): void;
|
package/types/users/users.d.ts
CHANGED
|
@@ -772,14 +772,19 @@ export declare namespace com.pkg.user {
|
|
|
772
772
|
#private;
|
|
773
773
|
constructor(data?: any[] | {
|
|
774
774
|
id?: string;
|
|
775
|
+
auditContext?: string;
|
|
775
776
|
});
|
|
776
777
|
get id(): string;
|
|
777
778
|
set id(value: string);
|
|
779
|
+
get auditContext(): string;
|
|
780
|
+
set auditContext(value: string);
|
|
778
781
|
static fromObject(data: {
|
|
779
782
|
id?: string;
|
|
783
|
+
auditContext?: string;
|
|
780
784
|
}): IdRequest;
|
|
781
785
|
toObject(): {
|
|
782
786
|
id?: string | undefined;
|
|
787
|
+
auditContext?: string | undefined;
|
|
783
788
|
};
|
|
784
789
|
serialize(): Uint8Array;
|
|
785
790
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -3530,6 +3535,7 @@ export declare namespace com.pkg.user {
|
|
|
3530
3535
|
email?: string;
|
|
3531
3536
|
gender?: string;
|
|
3532
3537
|
dateOfBirth?: string;
|
|
3538
|
+
auditContext?: string;
|
|
3533
3539
|
});
|
|
3534
3540
|
get userId(): string;
|
|
3535
3541
|
set userId(value: string);
|
|
@@ -3549,6 +3555,8 @@ export declare namespace com.pkg.user {
|
|
|
3549
3555
|
set gender(value: string);
|
|
3550
3556
|
get dateOfBirth(): string;
|
|
3551
3557
|
set dateOfBirth(value: string);
|
|
3558
|
+
get auditContext(): string;
|
|
3559
|
+
set auditContext(value: string);
|
|
3552
3560
|
static fromObject(data: {
|
|
3553
3561
|
userId?: string;
|
|
3554
3562
|
bvn?: string;
|
|
@@ -3559,6 +3567,7 @@ export declare namespace com.pkg.user {
|
|
|
3559
3567
|
email?: string;
|
|
3560
3568
|
gender?: string;
|
|
3561
3569
|
dateOfBirth?: string;
|
|
3570
|
+
auditContext?: string;
|
|
3562
3571
|
}): UpdateUserKycDetailsRequest;
|
|
3563
3572
|
toObject(): {
|
|
3564
3573
|
userId?: string | undefined;
|
|
@@ -3570,6 +3579,7 @@ export declare namespace com.pkg.user {
|
|
|
3570
3579
|
email?: string | undefined;
|
|
3571
3580
|
gender?: string | undefined;
|
|
3572
3581
|
dateOfBirth?: string | undefined;
|
|
3582
|
+
auditContext?: string | undefined;
|
|
3573
3583
|
};
|
|
3574
3584
|
serialize(): Uint8Array;
|
|
3575
3585
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -2366,6 +2366,7 @@ export declare namespace com.pkg.verification {
|
|
|
2366
2366
|
identityValue?: string;
|
|
2367
2367
|
identityDocument?: string;
|
|
2368
2368
|
identityStatus?: string;
|
|
2369
|
+
auditContext?: string;
|
|
2369
2370
|
});
|
|
2370
2371
|
get userId(): string;
|
|
2371
2372
|
set userId(value: string);
|
|
@@ -2377,12 +2378,15 @@ export declare namespace com.pkg.verification {
|
|
|
2377
2378
|
set identityDocument(value: string);
|
|
2378
2379
|
get identityStatus(): string;
|
|
2379
2380
|
set identityStatus(value: string);
|
|
2381
|
+
get auditContext(): string;
|
|
2382
|
+
set auditContext(value: string);
|
|
2380
2383
|
static fromObject(data: {
|
|
2381
2384
|
userId?: string;
|
|
2382
2385
|
identityType?: string;
|
|
2383
2386
|
identityValue?: string;
|
|
2384
2387
|
identityDocument?: string;
|
|
2385
2388
|
identityStatus?: string;
|
|
2389
|
+
auditContext?: string;
|
|
2386
2390
|
}): UpdateKYCRequest;
|
|
2387
2391
|
toObject(): {
|
|
2388
2392
|
userId?: string | undefined;
|
|
@@ -2390,6 +2394,7 @@ export declare namespace com.pkg.verification {
|
|
|
2390
2394
|
identityValue?: string | undefined;
|
|
2391
2395
|
identityDocument?: string | undefined;
|
|
2392
2396
|
identityStatus?: string | undefined;
|
|
2397
|
+
auditContext?: string | undefined;
|
|
2393
2398
|
};
|
|
2394
2399
|
serialize(): Uint8Array;
|
|
2395
2400
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -2501,6 +2506,45 @@ export declare namespace com.pkg.verification {
|
|
|
2501
2506
|
serializeBinary(): Uint8Array;
|
|
2502
2507
|
static deserializeBinary(bytes: Uint8Array): MigrateIndividualToBusinessRequest;
|
|
2503
2508
|
}
|
|
2509
|
+
export class VerifyIdentityRequest extends pb_1.Message {
|
|
2510
|
+
#private;
|
|
2511
|
+
constructor(data?: any[] | {
|
|
2512
|
+
idNumber?: string;
|
|
2513
|
+
idType?: string;
|
|
2514
|
+
image?: string;
|
|
2515
|
+
userId?: string;
|
|
2516
|
+
category?: string;
|
|
2517
|
+
});
|
|
2518
|
+
get idNumber(): string;
|
|
2519
|
+
set idNumber(value: string);
|
|
2520
|
+
get idType(): string;
|
|
2521
|
+
set idType(value: string);
|
|
2522
|
+
get image(): string;
|
|
2523
|
+
set image(value: string);
|
|
2524
|
+
get userId(): string;
|
|
2525
|
+
set userId(value: string);
|
|
2526
|
+
get category(): string;
|
|
2527
|
+
set category(value: string);
|
|
2528
|
+
static fromObject(data: {
|
|
2529
|
+
idNumber?: string;
|
|
2530
|
+
idType?: string;
|
|
2531
|
+
image?: string;
|
|
2532
|
+
userId?: string;
|
|
2533
|
+
category?: string;
|
|
2534
|
+
}): VerifyIdentityRequest;
|
|
2535
|
+
toObject(): {
|
|
2536
|
+
idNumber?: string | undefined;
|
|
2537
|
+
idType?: string | undefined;
|
|
2538
|
+
image?: string | undefined;
|
|
2539
|
+
userId?: string | undefined;
|
|
2540
|
+
category?: string | undefined;
|
|
2541
|
+
};
|
|
2542
|
+
serialize(): Uint8Array;
|
|
2543
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
2544
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VerifyIdentityRequest;
|
|
2545
|
+
serializeBinary(): Uint8Array;
|
|
2546
|
+
static deserializeBinary(bytes: Uint8Array): VerifyIdentityRequest;
|
|
2547
|
+
}
|
|
2504
2548
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
2505
2549
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
2506
2550
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
@@ -2813,6 +2857,15 @@ export declare namespace com.pkg.verification {
|
|
|
2813
2857
|
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
2814
2858
|
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
2815
2859
|
};
|
|
2860
|
+
VerifyIdentity: {
|
|
2861
|
+
path: string;
|
|
2862
|
+
requestStream: boolean;
|
|
2863
|
+
responseStream: boolean;
|
|
2864
|
+
requestSerialize: (message: VerifyIdentityRequest) => Buffer;
|
|
2865
|
+
requestDeserialize: (bytes: Buffer) => VerifyIdentityRequest;
|
|
2866
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
2867
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
2868
|
+
};
|
|
2816
2869
|
};
|
|
2817
2870
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
2818
2871
|
abstract LookupBVN(call: grpc_1.ServerUnaryCall<BVNRequest, BVNLookupResponse>, callback: grpc_1.sendUnaryData<BVNLookupResponse>): void;
|
|
@@ -2849,6 +2902,7 @@ export declare namespace com.pkg.verification {
|
|
|
2849
2902
|
abstract UpdateIndividualKYC(call: grpc_1.ServerUnaryCall<UpdateKYCRequest, IndividualKYCResponse>, callback: grpc_1.sendUnaryData<IndividualKYCResponse>): void;
|
|
2850
2903
|
abstract UpdateBusinessKYC(call: grpc_1.ServerUnaryCall<UpdateKYCRequest, BusinessKYCResponse>, callback: grpc_1.sendUnaryData<BusinessKYCResponse>): void;
|
|
2851
2904
|
abstract MigrateIndividualToBusiness(call: grpc_1.ServerUnaryCall<MigrateIndividualToBusinessRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
2905
|
+
abstract VerifyIdentity(call: grpc_1.ServerUnaryCall<VerifyIdentityRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
2852
2906
|
}
|
|
2853
2907
|
const VerificationServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
2854
2908
|
export class VerificationServiceClient extends VerificationServiceClient_base {
|
|
@@ -2887,6 +2941,7 @@ export declare namespace com.pkg.verification {
|
|
|
2887
2941
|
UpdateIndividualKYC: GrpcPromiseServiceInterface<UpdateKYCRequest, IndividualKYCResponse>;
|
|
2888
2942
|
UpdateBusinessKYC: GrpcPromiseServiceInterface<UpdateKYCRequest, BusinessKYCResponse>;
|
|
2889
2943
|
MigrateIndividualToBusiness: GrpcPromiseServiceInterface<MigrateIndividualToBusinessRequest, DefaultResponse>;
|
|
2944
|
+
VerifyIdentity: GrpcPromiseServiceInterface<VerifyIdentityRequest, DefaultResponse>;
|
|
2890
2945
|
}
|
|
2891
2946
|
export {};
|
|
2892
2947
|
}
|
package/users/users.js
CHANGED
|
@@ -2299,6 +2299,9 @@ var com;
|
|
|
2299
2299
|
if ("id" in data && data.id != undefined) {
|
|
2300
2300
|
this.id = data.id;
|
|
2301
2301
|
}
|
|
2302
|
+
if ("auditContext" in data && data.auditContext != undefined) {
|
|
2303
|
+
this.auditContext = data.auditContext;
|
|
2304
|
+
}
|
|
2302
2305
|
}
|
|
2303
2306
|
}
|
|
2304
2307
|
get id() {
|
|
@@ -2307,11 +2310,20 @@ var com;
|
|
|
2307
2310
|
set id(value) {
|
|
2308
2311
|
pb_1.Message.setField(this, 1, value);
|
|
2309
2312
|
}
|
|
2313
|
+
get auditContext() {
|
|
2314
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2315
|
+
}
|
|
2316
|
+
set auditContext(value) {
|
|
2317
|
+
pb_1.Message.setField(this, 2, value);
|
|
2318
|
+
}
|
|
2310
2319
|
static fromObject(data) {
|
|
2311
2320
|
const message = new IdRequest({});
|
|
2312
2321
|
if (data.id != null) {
|
|
2313
2322
|
message.id = data.id;
|
|
2314
2323
|
}
|
|
2324
|
+
if (data.auditContext != null) {
|
|
2325
|
+
message.auditContext = data.auditContext;
|
|
2326
|
+
}
|
|
2315
2327
|
return message;
|
|
2316
2328
|
}
|
|
2317
2329
|
toObject() {
|
|
@@ -2319,12 +2331,17 @@ var com;
|
|
|
2319
2331
|
if (this.id != null) {
|
|
2320
2332
|
data.id = this.id;
|
|
2321
2333
|
}
|
|
2334
|
+
if (this.auditContext != null) {
|
|
2335
|
+
data.auditContext = this.auditContext;
|
|
2336
|
+
}
|
|
2322
2337
|
return data;
|
|
2323
2338
|
}
|
|
2324
2339
|
serialize(w) {
|
|
2325
2340
|
const writer = w || new pb_1.BinaryWriter();
|
|
2326
2341
|
if (this.id.length)
|
|
2327
2342
|
writer.writeString(1, this.id);
|
|
2343
|
+
if (this.auditContext.length)
|
|
2344
|
+
writer.writeString(2, this.auditContext);
|
|
2328
2345
|
if (!w)
|
|
2329
2346
|
return writer.getResultBuffer();
|
|
2330
2347
|
}
|
|
@@ -2337,6 +2354,9 @@ var com;
|
|
|
2337
2354
|
case 1:
|
|
2338
2355
|
message.id = reader.readString();
|
|
2339
2356
|
break;
|
|
2357
|
+
case 2:
|
|
2358
|
+
message.auditContext = reader.readString();
|
|
2359
|
+
break;
|
|
2340
2360
|
default: reader.skipField();
|
|
2341
2361
|
}
|
|
2342
2362
|
}
|
|
@@ -10532,6 +10552,9 @@ var com;
|
|
|
10532
10552
|
if ("dateOfBirth" in data && data.dateOfBirth != undefined) {
|
|
10533
10553
|
this.dateOfBirth = data.dateOfBirth;
|
|
10534
10554
|
}
|
|
10555
|
+
if ("auditContext" in data && data.auditContext != undefined) {
|
|
10556
|
+
this.auditContext = data.auditContext;
|
|
10557
|
+
}
|
|
10535
10558
|
}
|
|
10536
10559
|
}
|
|
10537
10560
|
get userId() {
|
|
@@ -10588,6 +10611,12 @@ var com;
|
|
|
10588
10611
|
set dateOfBirth(value) {
|
|
10589
10612
|
pb_1.Message.setField(this, 9, value);
|
|
10590
10613
|
}
|
|
10614
|
+
get auditContext() {
|
|
10615
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
10616
|
+
}
|
|
10617
|
+
set auditContext(value) {
|
|
10618
|
+
pb_1.Message.setField(this, 10, value);
|
|
10619
|
+
}
|
|
10591
10620
|
static fromObject(data) {
|
|
10592
10621
|
const message = new UpdateUserKycDetailsRequest({});
|
|
10593
10622
|
if (data.userId != null) {
|
|
@@ -10617,6 +10646,9 @@ var com;
|
|
|
10617
10646
|
if (data.dateOfBirth != null) {
|
|
10618
10647
|
message.dateOfBirth = data.dateOfBirth;
|
|
10619
10648
|
}
|
|
10649
|
+
if (data.auditContext != null) {
|
|
10650
|
+
message.auditContext = data.auditContext;
|
|
10651
|
+
}
|
|
10620
10652
|
return message;
|
|
10621
10653
|
}
|
|
10622
10654
|
toObject() {
|
|
@@ -10648,6 +10680,9 @@ var com;
|
|
|
10648
10680
|
if (this.dateOfBirth != null) {
|
|
10649
10681
|
data.dateOfBirth = this.dateOfBirth;
|
|
10650
10682
|
}
|
|
10683
|
+
if (this.auditContext != null) {
|
|
10684
|
+
data.auditContext = this.auditContext;
|
|
10685
|
+
}
|
|
10651
10686
|
return data;
|
|
10652
10687
|
}
|
|
10653
10688
|
serialize(w) {
|
|
@@ -10670,6 +10705,8 @@ var com;
|
|
|
10670
10705
|
writer.writeString(8, this.gender);
|
|
10671
10706
|
if (this.dateOfBirth.length)
|
|
10672
10707
|
writer.writeString(9, this.dateOfBirth);
|
|
10708
|
+
if (this.auditContext.length)
|
|
10709
|
+
writer.writeString(10, this.auditContext);
|
|
10673
10710
|
if (!w)
|
|
10674
10711
|
return writer.getResultBuffer();
|
|
10675
10712
|
}
|
|
@@ -10706,6 +10743,9 @@ var com;
|
|
|
10706
10743
|
case 9:
|
|
10707
10744
|
message.dateOfBirth = reader.readString();
|
|
10708
10745
|
break;
|
|
10746
|
+
case 10:
|
|
10747
|
+
message.auditContext = reader.readString();
|
|
10748
|
+
break;
|
|
10709
10749
|
default: reader.skipField();
|
|
10710
10750
|
}
|
|
10711
10751
|
}
|
|
@@ -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 = {}));
|