@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 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
  }
@@ -1644,6 +1664,9 @@ var com;
1644
1664
  if ("quantity" in data && data.quantity != undefined) {
1645
1665
  this.quantity = data.quantity;
1646
1666
  }
1667
+ if ("paymentReference" in data && data.paymentReference != undefined) {
1668
+ this.paymentReference = data.paymentReference;
1669
+ }
1647
1670
  }
1648
1671
  }
1649
1672
  get category() {
@@ -1694,6 +1717,12 @@ var com;
1694
1717
  set quantity(value) {
1695
1718
  pb_1.Message.setField(this, 8, value);
1696
1719
  }
1720
+ get paymentReference() {
1721
+ return pb_1.Message.getFieldWithDefault(this, 9, "");
1722
+ }
1723
+ set paymentReference(value) {
1724
+ pb_1.Message.setField(this, 9, value);
1725
+ }
1697
1726
  static fromObject(data) {
1698
1727
  const message = new PurchaseBillRequest({});
1699
1728
  if (data.category != null) {
@@ -1720,6 +1749,9 @@ var com;
1720
1749
  if (data.quantity != null) {
1721
1750
  message.quantity = data.quantity;
1722
1751
  }
1752
+ if (data.paymentReference != null) {
1753
+ message.paymentReference = data.paymentReference;
1754
+ }
1723
1755
  return message;
1724
1756
  }
1725
1757
  toObject() {
@@ -1748,6 +1780,9 @@ var com;
1748
1780
  if (this.quantity != null) {
1749
1781
  data.quantity = this.quantity;
1750
1782
  }
1783
+ if (this.paymentReference != null) {
1784
+ data.paymentReference = this.paymentReference;
1785
+ }
1751
1786
  return data;
1752
1787
  }
1753
1788
  serialize(w) {
@@ -1768,6 +1803,8 @@ var com;
1768
1803
  writer.writeString(7, this.bundleCode);
1769
1804
  if (this.quantity != 0)
1770
1805
  writer.writeUint32(8, this.quantity);
1806
+ if (this.paymentReference.length)
1807
+ writer.writeString(9, this.paymentReference);
1771
1808
  if (!w)
1772
1809
  return writer.getResultBuffer();
1773
1810
  }
@@ -1801,6 +1838,9 @@ var com;
1801
1838
  case 8:
1802
1839
  message.quantity = reader.readUint32();
1803
1840
  break;
1841
+ case 9:
1842
+ message.paymentReference = reader.readString();
1843
+ break;
1804
1844
  default: reader.skipField();
1805
1845
  }
1806
1846
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "1.9.0",
14
+ "version": "1.9.2",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -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;
@@ -491,6 +496,7 @@ export declare namespace com.pkg.bills {
491
496
  phone?: string;
492
497
  bundleCode?: string;
493
498
  quantity?: number;
499
+ paymentReference?: string;
494
500
  });
495
501
  get category(): string;
496
502
  set category(value: string);
@@ -508,6 +514,8 @@ export declare namespace com.pkg.bills {
508
514
  set bundleCode(value: string);
509
515
  get quantity(): number;
510
516
  set quantity(value: number);
517
+ get paymentReference(): string;
518
+ set paymentReference(value: string);
511
519
  static fromObject(data: {
512
520
  category?: string;
513
521
  providerCode?: string;
@@ -517,6 +525,7 @@ export declare namespace com.pkg.bills {
517
525
  phone?: string;
518
526
  bundleCode?: string;
519
527
  quantity?: number;
528
+ paymentReference?: string;
520
529
  }): PurchaseBillRequest;
521
530
  toObject(): {
522
531
  category?: string | undefined;
@@ -527,6 +536,7 @@ export declare namespace com.pkg.bills {
527
536
  phone?: string | undefined;
528
537
  bundleCode?: string | undefined;
529
538
  quantity?: number | undefined;
539
+ paymentReference?: string | undefined;
530
540
  };
531
541
  serialize(): Uint8Array;
532
542
  serialize(w: pb_1.BinaryWriter): void;
@@ -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
  }