@technova-tech/olive-proto-lib 3.2.7 → 3.2.9
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 +125 -0
- package/package.json +1 -1
- package/types/accounts/accounts.d.ts +387 -0
- package/types/admin/admin.d.ts +40 -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
package/types/users/users.d.ts
CHANGED
|
@@ -2,6 +2,94 @@
|
|
|
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.user {
|
|
5
|
+
export class CreateExistingBusinessUserRequest extends pb_1.Message {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(data?: any[] | {
|
|
8
|
+
phone?: string;
|
|
9
|
+
password?: string;
|
|
10
|
+
firstName?: string;
|
|
11
|
+
middleName?: string;
|
|
12
|
+
lastName?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
gender?: string;
|
|
15
|
+
dateOfBirth?: string;
|
|
16
|
+
bvn?: string;
|
|
17
|
+
providerId?: string;
|
|
18
|
+
});
|
|
19
|
+
get phone(): string;
|
|
20
|
+
set phone(value: string);
|
|
21
|
+
get password(): string;
|
|
22
|
+
set password(value: string);
|
|
23
|
+
get firstName(): string;
|
|
24
|
+
set firstName(value: string);
|
|
25
|
+
get middleName(): string;
|
|
26
|
+
set middleName(value: string);
|
|
27
|
+
get lastName(): string;
|
|
28
|
+
set lastName(value: string);
|
|
29
|
+
get email(): string;
|
|
30
|
+
set email(value: string);
|
|
31
|
+
get gender(): string;
|
|
32
|
+
set gender(value: string);
|
|
33
|
+
get dateOfBirth(): string;
|
|
34
|
+
set dateOfBirth(value: string);
|
|
35
|
+
get bvn(): string;
|
|
36
|
+
set bvn(value: string);
|
|
37
|
+
get providerId(): string;
|
|
38
|
+
set providerId(value: string);
|
|
39
|
+
static fromObject(data: {
|
|
40
|
+
phone?: string;
|
|
41
|
+
password?: string;
|
|
42
|
+
firstName?: string;
|
|
43
|
+
middleName?: string;
|
|
44
|
+
lastName?: string;
|
|
45
|
+
email?: string;
|
|
46
|
+
gender?: string;
|
|
47
|
+
dateOfBirth?: string;
|
|
48
|
+
bvn?: string;
|
|
49
|
+
providerId?: string;
|
|
50
|
+
}): CreateExistingBusinessUserRequest;
|
|
51
|
+
toObject(): {
|
|
52
|
+
phone?: string | undefined;
|
|
53
|
+
password?: string | undefined;
|
|
54
|
+
firstName?: string | undefined;
|
|
55
|
+
middleName?: string | undefined;
|
|
56
|
+
lastName?: string | undefined;
|
|
57
|
+
email?: string | undefined;
|
|
58
|
+
gender?: string | undefined;
|
|
59
|
+
dateOfBirth?: string | undefined;
|
|
60
|
+
bvn?: string | undefined;
|
|
61
|
+
providerId?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
serialize(): Uint8Array;
|
|
64
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
65
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateExistingBusinessUserRequest;
|
|
66
|
+
serializeBinary(): Uint8Array;
|
|
67
|
+
static deserializeBinary(bytes: Uint8Array): CreateExistingBusinessUserRequest;
|
|
68
|
+
}
|
|
69
|
+
export class VerifyLinkAccountOtpRequest extends pb_1.Message {
|
|
70
|
+
#private;
|
|
71
|
+
constructor(data?: any[] | {
|
|
72
|
+
id?: string;
|
|
73
|
+
code?: string;
|
|
74
|
+
});
|
|
75
|
+
get id(): string;
|
|
76
|
+
set id(value: string);
|
|
77
|
+
get code(): string;
|
|
78
|
+
set code(value: string);
|
|
79
|
+
static fromObject(data: {
|
|
80
|
+
id?: string;
|
|
81
|
+
code?: string;
|
|
82
|
+
}): VerifyLinkAccountOtpRequest;
|
|
83
|
+
toObject(): {
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
code?: string | undefined;
|
|
86
|
+
};
|
|
87
|
+
serialize(): Uint8Array;
|
|
88
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
89
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VerifyLinkAccountOtpRequest;
|
|
90
|
+
serializeBinary(): Uint8Array;
|
|
91
|
+
static deserializeBinary(bytes: Uint8Array): VerifyLinkAccountOtpRequest;
|
|
92
|
+
}
|
|
5
93
|
export class ValidationErrors extends pb_1.Message {
|
|
6
94
|
#private;
|
|
7
95
|
constructor(data?: any[] | {
|
|
@@ -4417,6 +4505,42 @@ export declare namespace com.pkg.user {
|
|
|
4417
4505
|
responseSerialize: (message: PepResponse) => Buffer;
|
|
4418
4506
|
responseDeserialize: (bytes: Buffer) => PepResponse;
|
|
4419
4507
|
};
|
|
4508
|
+
CheckPhoneAvailability: {
|
|
4509
|
+
path: string;
|
|
4510
|
+
requestStream: boolean;
|
|
4511
|
+
responseStream: boolean;
|
|
4512
|
+
requestSerialize: (message: PhoneRequest) => Buffer;
|
|
4513
|
+
requestDeserialize: (bytes: Buffer) => PhoneRequest;
|
|
4514
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
4515
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
4516
|
+
};
|
|
4517
|
+
CreateExistingBusinessUser: {
|
|
4518
|
+
path: string;
|
|
4519
|
+
requestStream: boolean;
|
|
4520
|
+
responseStream: boolean;
|
|
4521
|
+
requestSerialize: (message: CreateExistingBusinessUserRequest) => Buffer;
|
|
4522
|
+
requestDeserialize: (bytes: Buffer) => CreateExistingBusinessUserRequest;
|
|
4523
|
+
responseSerialize: (message: CreateUserResponse) => Buffer;
|
|
4524
|
+
responseDeserialize: (bytes: Buffer) => CreateUserResponse;
|
|
4525
|
+
};
|
|
4526
|
+
RequestLinkAccountOtp: {
|
|
4527
|
+
path: string;
|
|
4528
|
+
requestStream: boolean;
|
|
4529
|
+
responseStream: boolean;
|
|
4530
|
+
requestSerialize: (message: IdRequest) => Buffer;
|
|
4531
|
+
requestDeserialize: (bytes: Buffer) => IdRequest;
|
|
4532
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
4533
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
4534
|
+
};
|
|
4535
|
+
VerifyLinkAccountOtp: {
|
|
4536
|
+
path: string;
|
|
4537
|
+
requestStream: boolean;
|
|
4538
|
+
responseStream: boolean;
|
|
4539
|
+
requestSerialize: (message: VerifyLinkAccountOtpRequest) => Buffer;
|
|
4540
|
+
requestDeserialize: (bytes: Buffer) => VerifyLinkAccountOtpRequest;
|
|
4541
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
4542
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
4543
|
+
};
|
|
4420
4544
|
};
|
|
4421
4545
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
4422
4546
|
abstract Init(call: grpc_1.ServerUnaryCall<OnboardUserRequest, OnboardUserResponse>, callback: grpc_1.sendUnaryData<OnboardUserResponse>): void;
|
|
@@ -4468,6 +4592,10 @@ export declare namespace com.pkg.user {
|
|
|
4468
4592
|
abstract MigrateToBusiness(call: grpc_1.ServerUnaryCall<MigrateToBusinessRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4469
4593
|
abstract CreatePep(call: grpc_1.ServerUnaryCall<CreatePepRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4470
4594
|
abstract GetPep(call: grpc_1.ServerUnaryCall<GetPepRequest, PepResponse>, callback: grpc_1.sendUnaryData<PepResponse>): void;
|
|
4595
|
+
abstract CheckPhoneAvailability(call: grpc_1.ServerUnaryCall<PhoneRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4596
|
+
abstract CreateExistingBusinessUser(call: grpc_1.ServerUnaryCall<CreateExistingBusinessUserRequest, CreateUserResponse>, callback: grpc_1.sendUnaryData<CreateUserResponse>): void;
|
|
4597
|
+
abstract RequestLinkAccountOtp(call: grpc_1.ServerUnaryCall<IdRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4598
|
+
abstract VerifyLinkAccountOtp(call: grpc_1.ServerUnaryCall<VerifyLinkAccountOtpRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4471
4599
|
}
|
|
4472
4600
|
const UserServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
4473
4601
|
export class UserServiceClient extends UserServiceClient_base {
|
|
@@ -4521,6 +4649,10 @@ export declare namespace com.pkg.user {
|
|
|
4521
4649
|
MigrateToBusiness: GrpcPromiseServiceInterface<MigrateToBusinessRequest, DefaultResponse>;
|
|
4522
4650
|
CreatePep: GrpcPromiseServiceInterface<CreatePepRequest, DefaultResponse>;
|
|
4523
4651
|
GetPep: GrpcPromiseServiceInterface<GetPepRequest, PepResponse>;
|
|
4652
|
+
CheckPhoneAvailability: GrpcPromiseServiceInterface<PhoneRequest, DefaultResponse>;
|
|
4653
|
+
CreateExistingBusinessUser: GrpcPromiseServiceInterface<CreateExistingBusinessUserRequest, CreateUserResponse>;
|
|
4654
|
+
RequestLinkAccountOtp: GrpcPromiseServiceInterface<IdRequest, DefaultResponse>;
|
|
4655
|
+
VerifyLinkAccountOtp: GrpcPromiseServiceInterface<VerifyLinkAccountOtpRequest, DefaultResponse>;
|
|
4524
4656
|
}
|
|
4525
4657
|
export {};
|
|
4526
4658
|
}
|
|
@@ -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 = {}));
|