@stashfin/grpc 1.2.782 → 1.2.784
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/package.json +1 -1
- package/ts/kyc/ckycfetchrecord.d.ts +16 -1
- package/ts/kyc/ckycfetchrecord.js +121 -11
- package/ts/kyc/ckycresendotp.d.ts +37 -0
- package/ts/kyc/ckycresendotp.js +149 -0
- package/ts/kyc.d.ts +14 -0
- package/ts/kyc.js +10 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "kyc.ckycfetchrecord";
|
|
3
3
|
export interface ckycFetchRecordRequest {
|
|
4
|
-
customer_id:
|
|
4
|
+
customer_id: number;
|
|
5
5
|
otp: string;
|
|
6
6
|
loan_id: number;
|
|
7
7
|
transaction_id: string;
|
|
@@ -9,6 +9,13 @@ export interface ckycFetchRecordRequest {
|
|
|
9
9
|
export interface ckycFetchRecordResponse {
|
|
10
10
|
message: string;
|
|
11
11
|
status: string;
|
|
12
|
+
customer_data: CustomerData | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface CustomerData {
|
|
15
|
+
email?: string | undefined;
|
|
16
|
+
gender?: string | undefined;
|
|
17
|
+
father_name?: string | undefined;
|
|
18
|
+
dob?: string | undefined;
|
|
12
19
|
}
|
|
13
20
|
export declare const ckycFetchRecordRequest: {
|
|
14
21
|
encode(message: ckycFetchRecordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -26,6 +33,14 @@ export declare const ckycFetchRecordResponse: {
|
|
|
26
33
|
create<I extends Exact<DeepPartial<ckycFetchRecordResponse>, I>>(base?: I): ckycFetchRecordResponse;
|
|
27
34
|
fromPartial<I extends Exact<DeepPartial<ckycFetchRecordResponse>, I>>(object: I): ckycFetchRecordResponse;
|
|
28
35
|
};
|
|
36
|
+
export declare const CustomerData: {
|
|
37
|
+
encode(message: CustomerData, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CustomerData;
|
|
39
|
+
fromJSON(object: any): CustomerData;
|
|
40
|
+
toJSON(message: CustomerData): unknown;
|
|
41
|
+
create<I extends Exact<DeepPartial<CustomerData>, I>>(base?: I): CustomerData;
|
|
42
|
+
fromPartial<I extends Exact<DeepPartial<CustomerData>, I>>(object: I): CustomerData;
|
|
43
|
+
};
|
|
29
44
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
30
45
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
31
46
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,17 +8,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ckycFetchRecordResponse = exports.ckycFetchRecordRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.CustomerData = exports.ckycFetchRecordResponse = exports.ckycFetchRecordRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "kyc.ckycfetchrecord";
|
|
15
15
|
function createBaseckycFetchRecordRequest() {
|
|
16
|
-
return { customer_id:
|
|
16
|
+
return { customer_id: 0, otp: "", loan_id: 0, transaction_id: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.ckycFetchRecordRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.customer_id !==
|
|
21
|
-
writer.uint32(
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
23
|
if (message.otp !== "") {
|
|
24
24
|
writer.uint32(18).string(message.otp);
|
|
@@ -39,10 +39,10 @@ exports.ckycFetchRecordRequest = {
|
|
|
39
39
|
const tag = reader.uint32();
|
|
40
40
|
switch (tag >>> 3) {
|
|
41
41
|
case 1:
|
|
42
|
-
if (tag !==
|
|
42
|
+
if (tag !== 8) {
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
|
-
message.customer_id = reader.
|
|
45
|
+
message.customer_id = reader.int32();
|
|
46
46
|
continue;
|
|
47
47
|
case 2:
|
|
48
48
|
if (tag !== 18) {
|
|
@@ -72,7 +72,7 @@ exports.ckycFetchRecordRequest = {
|
|
|
72
72
|
},
|
|
73
73
|
fromJSON(object) {
|
|
74
74
|
return {
|
|
75
|
-
customer_id: isSet(object.customer_id) ? globalThis.
|
|
75
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
76
76
|
otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
|
|
77
77
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
78
78
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
@@ -80,8 +80,8 @@ exports.ckycFetchRecordRequest = {
|
|
|
80
80
|
},
|
|
81
81
|
toJSON(message) {
|
|
82
82
|
const obj = {};
|
|
83
|
-
if (message.customer_id !==
|
|
84
|
-
obj.customer_id = message.customer_id;
|
|
83
|
+
if (message.customer_id !== 0) {
|
|
84
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
85
85
|
}
|
|
86
86
|
if (message.otp !== "") {
|
|
87
87
|
obj.otp = message.otp;
|
|
@@ -99,7 +99,7 @@ exports.ckycFetchRecordRequest = {
|
|
|
99
99
|
},
|
|
100
100
|
fromPartial(object) {
|
|
101
101
|
const message = createBaseckycFetchRecordRequest();
|
|
102
|
-
message.customer_id = object.customer_id ??
|
|
102
|
+
message.customer_id = object.customer_id ?? 0;
|
|
103
103
|
message.otp = object.otp ?? "";
|
|
104
104
|
message.loan_id = object.loan_id ?? 0;
|
|
105
105
|
message.transaction_id = object.transaction_id ?? "";
|
|
@@ -107,7 +107,7 @@ exports.ckycFetchRecordRequest = {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
function createBaseckycFetchRecordResponse() {
|
|
110
|
-
return { message: "", status: "" };
|
|
110
|
+
return { message: "", status: "", customer_data: undefined };
|
|
111
111
|
}
|
|
112
112
|
exports.ckycFetchRecordResponse = {
|
|
113
113
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -117,6 +117,9 @@ exports.ckycFetchRecordResponse = {
|
|
|
117
117
|
if (message.status !== "") {
|
|
118
118
|
writer.uint32(18).string(message.status);
|
|
119
119
|
}
|
|
120
|
+
if (message.customer_data !== undefined) {
|
|
121
|
+
exports.CustomerData.encode(message.customer_data, writer.uint32(26).fork()).ldelim();
|
|
122
|
+
}
|
|
120
123
|
return writer;
|
|
121
124
|
},
|
|
122
125
|
decode(input, length) {
|
|
@@ -138,6 +141,12 @@ exports.ckycFetchRecordResponse = {
|
|
|
138
141
|
}
|
|
139
142
|
message.status = reader.string();
|
|
140
143
|
continue;
|
|
144
|
+
case 3:
|
|
145
|
+
if (tag !== 26) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.customer_data = exports.CustomerData.decode(reader, reader.uint32());
|
|
149
|
+
continue;
|
|
141
150
|
}
|
|
142
151
|
if ((tag & 7) === 4 || tag === 0) {
|
|
143
152
|
break;
|
|
@@ -150,6 +159,7 @@ exports.ckycFetchRecordResponse = {
|
|
|
150
159
|
return {
|
|
151
160
|
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
152
161
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
162
|
+
customer_data: isSet(object.customer_data) ? exports.CustomerData.fromJSON(object.customer_data) : undefined,
|
|
153
163
|
};
|
|
154
164
|
},
|
|
155
165
|
toJSON(message) {
|
|
@@ -160,6 +170,9 @@ exports.ckycFetchRecordResponse = {
|
|
|
160
170
|
if (message.status !== "") {
|
|
161
171
|
obj.status = message.status;
|
|
162
172
|
}
|
|
173
|
+
if (message.customer_data !== undefined) {
|
|
174
|
+
obj.customer_data = exports.CustomerData.toJSON(message.customer_data);
|
|
175
|
+
}
|
|
163
176
|
return obj;
|
|
164
177
|
},
|
|
165
178
|
create(base) {
|
|
@@ -169,6 +182,103 @@ exports.ckycFetchRecordResponse = {
|
|
|
169
182
|
const message = createBaseckycFetchRecordResponse();
|
|
170
183
|
message.message = object.message ?? "";
|
|
171
184
|
message.status = object.status ?? "";
|
|
185
|
+
message.customer_data = (object.customer_data !== undefined && object.customer_data !== null)
|
|
186
|
+
? exports.CustomerData.fromPartial(object.customer_data)
|
|
187
|
+
: undefined;
|
|
188
|
+
return message;
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
function createBaseCustomerData() {
|
|
192
|
+
return { email: undefined, gender: undefined, father_name: undefined, dob: undefined };
|
|
193
|
+
}
|
|
194
|
+
exports.CustomerData = {
|
|
195
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
196
|
+
if (message.email !== undefined) {
|
|
197
|
+
writer.uint32(10).string(message.email);
|
|
198
|
+
}
|
|
199
|
+
if (message.gender !== undefined) {
|
|
200
|
+
writer.uint32(18).string(message.gender);
|
|
201
|
+
}
|
|
202
|
+
if (message.father_name !== undefined) {
|
|
203
|
+
writer.uint32(26).string(message.father_name);
|
|
204
|
+
}
|
|
205
|
+
if (message.dob !== undefined) {
|
|
206
|
+
writer.uint32(34).string(message.dob);
|
|
207
|
+
}
|
|
208
|
+
return writer;
|
|
209
|
+
},
|
|
210
|
+
decode(input, length) {
|
|
211
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
212
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
213
|
+
const message = createBaseCustomerData();
|
|
214
|
+
while (reader.pos < end) {
|
|
215
|
+
const tag = reader.uint32();
|
|
216
|
+
switch (tag >>> 3) {
|
|
217
|
+
case 1:
|
|
218
|
+
if (tag !== 10) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
message.email = reader.string();
|
|
222
|
+
continue;
|
|
223
|
+
case 2:
|
|
224
|
+
if (tag !== 18) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
message.gender = reader.string();
|
|
228
|
+
continue;
|
|
229
|
+
case 3:
|
|
230
|
+
if (tag !== 26) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.father_name = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
case 4:
|
|
236
|
+
if (tag !== 34) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.dob = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
reader.skipType(tag & 7);
|
|
246
|
+
}
|
|
247
|
+
return message;
|
|
248
|
+
},
|
|
249
|
+
fromJSON(object) {
|
|
250
|
+
return {
|
|
251
|
+
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
252
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : undefined,
|
|
253
|
+
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : undefined,
|
|
254
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
toJSON(message) {
|
|
258
|
+
const obj = {};
|
|
259
|
+
if (message.email !== undefined) {
|
|
260
|
+
obj.email = message.email;
|
|
261
|
+
}
|
|
262
|
+
if (message.gender !== undefined) {
|
|
263
|
+
obj.gender = message.gender;
|
|
264
|
+
}
|
|
265
|
+
if (message.father_name !== undefined) {
|
|
266
|
+
obj.father_name = message.father_name;
|
|
267
|
+
}
|
|
268
|
+
if (message.dob !== undefined) {
|
|
269
|
+
obj.dob = message.dob;
|
|
270
|
+
}
|
|
271
|
+
return obj;
|
|
272
|
+
},
|
|
273
|
+
create(base) {
|
|
274
|
+
return exports.CustomerData.fromPartial(base ?? {});
|
|
275
|
+
},
|
|
276
|
+
fromPartial(object) {
|
|
277
|
+
const message = createBaseCustomerData();
|
|
278
|
+
message.email = object.email ?? undefined;
|
|
279
|
+
message.gender = object.gender ?? undefined;
|
|
280
|
+
message.father_name = object.father_name ?? undefined;
|
|
281
|
+
message.dob = object.dob ?? undefined;
|
|
172
282
|
return message;
|
|
173
283
|
},
|
|
174
284
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "kyc.ckycresendotp";
|
|
3
|
+
export interface ckycResendOtpRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
transaction_id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ckycResendOtpResponse {
|
|
8
|
+
message: string;
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ckycResendOtpRequest: {
|
|
12
|
+
encode(message: ckycResendOtpRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ckycResendOtpRequest;
|
|
14
|
+
fromJSON(object: any): ckycResendOtpRequest;
|
|
15
|
+
toJSON(message: ckycResendOtpRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<ckycResendOtpRequest>, I>>(base?: I): ckycResendOtpRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<ckycResendOtpRequest>, I>>(object: I): ckycResendOtpRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const ckycResendOtpResponse: {
|
|
20
|
+
encode(message: ckycResendOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ckycResendOtpResponse;
|
|
22
|
+
fromJSON(object: any): ckycResendOtpResponse;
|
|
23
|
+
toJSON(message: ckycResendOtpResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<ckycResendOtpResponse>, I>>(base?: I): ckycResendOtpResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<ckycResendOtpResponse>, I>>(object: I): ckycResendOtpResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: kyc/ckycresendotp.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.ckycResendOtpResponse = exports.ckycResendOtpRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "kyc.ckycresendotp";
|
|
15
|
+
function createBaseckycResendOtpRequest() {
|
|
16
|
+
return { customer_id: 0, transaction_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.ckycResendOtpRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.transaction_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.transaction_id);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseckycResendOtpRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.customer_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.transaction_id = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
58
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.customer_id !== 0) {
|
|
64
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.transaction_id !== "") {
|
|
67
|
+
obj.transaction_id = message.transaction_id;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.ckycResendOtpRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseckycResendOtpRequest();
|
|
76
|
+
message.customer_id = object.customer_id ?? 0;
|
|
77
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseckycResendOtpResponse() {
|
|
82
|
+
return { message: "", status: "" };
|
|
83
|
+
}
|
|
84
|
+
exports.ckycResendOtpResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.message !== "") {
|
|
87
|
+
writer.uint32(10).string(message.message);
|
|
88
|
+
}
|
|
89
|
+
if (message.status !== "") {
|
|
90
|
+
writer.uint32(18).string(message.status);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseckycResendOtpResponse();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 10) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.message = reader.string();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.status = reader.string();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromJSON(object) {
|
|
122
|
+
return {
|
|
123
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
124
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
toJSON(message) {
|
|
128
|
+
const obj = {};
|
|
129
|
+
if (message.message !== "") {
|
|
130
|
+
obj.message = message.message;
|
|
131
|
+
}
|
|
132
|
+
if (message.status !== "") {
|
|
133
|
+
obj.status = message.status;
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.ckycResendOtpResponse.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseckycResendOtpResponse();
|
|
142
|
+
message.message = object.message ?? "";
|
|
143
|
+
message.status = object.status ?? "";
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
function isSet(value) {
|
|
148
|
+
return value !== null && value !== undefined;
|
|
149
|
+
}
|
package/ts/kyc.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { amlDetailsRequest, amlDetailsResponse } from "./kyc/amldetails";
|
|
|
3
3
|
import { authbridgeRequest, authbridgeResponse } from "./kyc/authbridgepancomprehend";
|
|
4
4
|
import { bureauWpRequest, bureauWpResponse } from "./kyc/bureauidwhatsapp";
|
|
5
5
|
import { ckycFetchRecordRequest, ckycFetchRecordResponse } from "./kyc/ckycfetchrecord";
|
|
6
|
+
import { ckycResendOtpRequest, ckycResendOtpResponse } from "./kyc/ckycresendotp";
|
|
6
7
|
import { CkycV1SearchRequest, CkycV1SearchResponse } from "./kyc/ckycsearchv1";
|
|
7
8
|
import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
|
|
8
9
|
import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
|
|
@@ -132,6 +133,15 @@ export declare const kycService: {
|
|
|
132
133
|
readonly responseSerialize: (value: ckycFetchRecordResponse) => Buffer;
|
|
133
134
|
readonly responseDeserialize: (value: Buffer) => ckycFetchRecordResponse;
|
|
134
135
|
};
|
|
136
|
+
readonly ckycResendOtp: {
|
|
137
|
+
readonly path: "/service.kyc/ckycResendOtp";
|
|
138
|
+
readonly requestStream: false;
|
|
139
|
+
readonly responseStream: false;
|
|
140
|
+
readonly requestSerialize: (value: ckycResendOtpRequest) => Buffer;
|
|
141
|
+
readonly requestDeserialize: (value: Buffer) => ckycResendOtpRequest;
|
|
142
|
+
readonly responseSerialize: (value: ckycResendOtpResponse) => Buffer;
|
|
143
|
+
readonly responseDeserialize: (value: Buffer) => ckycResendOtpResponse;
|
|
144
|
+
};
|
|
135
145
|
};
|
|
136
146
|
export interface kycServer extends UntypedServiceImplementation {
|
|
137
147
|
fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
|
|
@@ -147,6 +157,7 @@ export interface kycServer extends UntypedServiceImplementation {
|
|
|
147
157
|
getOkycLinkHyperverge: handleUnaryCall<okyclinkHypervergeRequest, okyclinkHypervergeResponse>;
|
|
148
158
|
searchCkyc: handleUnaryCall<CkycV1SearchRequest, CkycV1SearchResponse>;
|
|
149
159
|
ckycFetchRecord: handleUnaryCall<ckycFetchRecordRequest, ckycFetchRecordResponse>;
|
|
160
|
+
ckycResendOtp: handleUnaryCall<ckycResendOtpRequest, ckycResendOtpResponse>;
|
|
150
161
|
}
|
|
151
162
|
export interface kycClient extends Client {
|
|
152
163
|
fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
|
|
@@ -188,6 +199,9 @@ export interface kycClient extends Client {
|
|
|
188
199
|
ckycFetchRecord(request: ckycFetchRecordRequest, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
|
|
189
200
|
ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
|
|
190
201
|
ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
|
|
202
|
+
ckycResendOtp(request: ckycResendOtpRequest, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
|
|
203
|
+
ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
|
|
204
|
+
ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
|
|
191
205
|
}
|
|
192
206
|
export declare const kycClient: {
|
|
193
207
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
|
package/ts/kyc.js
CHANGED
|
@@ -12,6 +12,7 @@ const amldetails_1 = require("./kyc/amldetails");
|
|
|
12
12
|
const authbridgepancomprehend_1 = require("./kyc/authbridgepancomprehend");
|
|
13
13
|
const bureauidwhatsapp_1 = require("./kyc/bureauidwhatsapp");
|
|
14
14
|
const ckycfetchrecord_1 = require("./kyc/ckycfetchrecord");
|
|
15
|
+
const ckycresendotp_1 = require("./kyc/ckycresendotp");
|
|
15
16
|
const ckycsearchv1_1 = require("./kyc/ckycsearchv1");
|
|
16
17
|
const facematch_1 = require("./kyc/facematch");
|
|
17
18
|
const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
|
|
@@ -140,5 +141,14 @@ exports.kycService = {
|
|
|
140
141
|
responseSerialize: (value) => Buffer.from(ckycfetchrecord_1.ckycFetchRecordResponse.encode(value).finish()),
|
|
141
142
|
responseDeserialize: (value) => ckycfetchrecord_1.ckycFetchRecordResponse.decode(value),
|
|
142
143
|
},
|
|
144
|
+
ckycResendOtp: {
|
|
145
|
+
path: "/service.kyc/ckycResendOtp",
|
|
146
|
+
requestStream: false,
|
|
147
|
+
responseStream: false,
|
|
148
|
+
requestSerialize: (value) => Buffer.from(ckycresendotp_1.ckycResendOtpRequest.encode(value).finish()),
|
|
149
|
+
requestDeserialize: (value) => ckycresendotp_1.ckycResendOtpRequest.decode(value),
|
|
150
|
+
responseSerialize: (value) => Buffer.from(ckycresendotp_1.ckycResendOtpResponse.encode(value).finish()),
|
|
151
|
+
responseDeserialize: (value) => ckycresendotp_1.ckycResendOtpResponse.decode(value),
|
|
152
|
+
},
|
|
143
153
|
};
|
|
144
154
|
exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");
|