@stashfin/grpc 1.2.583 → 1.2.585
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/banking/aa/getaasupport.d.ts +38 -0
- package/ts/banking/aa/getaasupport.js +161 -0
- package/ts/banking.d.ts +14 -0
- package/ts/banking.js +10 -0
- package/ts/ckyc/ckycdownload.d.ts +38 -0
- package/ts/ckyc/ckycdownload.js +163 -0
- package/ts/ckyc/ckycsearch.d.ts +69 -0
- package/ts/ckyc/ckycsearch.js +525 -0
- package/ts/ckyc.d.ts +42 -0
- package/ts/ckyc.js +34 -0
- package/ts/kyc/nsdlpanvalidate.d.ts +55 -0
- package/ts/kyc/nsdlpanvalidate.js +301 -0
- package/ts/kyc.d.ts +14 -0
- package/ts/kyc.js +10 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: ckyc/ckycsearch.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.CkycSearchResponse = exports.CKYCData = exports.CkycSearchRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "ckyc.ckycsearch";
|
|
15
|
+
function createBaseCkycSearchRequest() {
|
|
16
|
+
return { pan_no: "", customer_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.CkycSearchRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.pan_no !== "") {
|
|
21
|
+
writer.uint32(10).string(message.pan_no);
|
|
22
|
+
}
|
|
23
|
+
if (message.customer_id !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.customer_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 = createBaseCkycSearchRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.pan_no = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.customer_id = reader.int32();
|
|
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
|
+
pan_no: isSet(object.pan_no) ? globalThis.String(object.pan_no) : "",
|
|
58
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.pan_no !== "") {
|
|
64
|
+
obj.pan_no = message.pan_no;
|
|
65
|
+
}
|
|
66
|
+
if (message.customer_id !== 0) {
|
|
67
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.CkycSearchRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseCkycSearchRequest();
|
|
76
|
+
message.pan_no = object.pan_no ?? "";
|
|
77
|
+
message.customer_id = object.customer_id ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseCKYCData() {
|
|
82
|
+
return {
|
|
83
|
+
customer_id: 0,
|
|
84
|
+
request_id: undefined,
|
|
85
|
+
request_status: undefined,
|
|
86
|
+
transaction_id: undefined,
|
|
87
|
+
transaction_status: undefined,
|
|
88
|
+
ckyc_available: undefined,
|
|
89
|
+
ckyc_account_number: undefined,
|
|
90
|
+
ckyc_id: undefined,
|
|
91
|
+
ckyc_age: undefined,
|
|
92
|
+
ckyc_father_name: undefined,
|
|
93
|
+
ckyc_gen_date: undefined,
|
|
94
|
+
ckyc_name: undefined,
|
|
95
|
+
ckyc_request_date: undefined,
|
|
96
|
+
ckyc_update_date: undefined,
|
|
97
|
+
ckyc_availableid_type: undefined,
|
|
98
|
+
ckyc_availableid_type_status: undefined,
|
|
99
|
+
create_date: "",
|
|
100
|
+
kycphoto: undefined,
|
|
101
|
+
kycphototype: undefined,
|
|
102
|
+
ckyc_reference_id: undefined,
|
|
103
|
+
transaction_rejection_status: undefined,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
exports.CKYCData = {
|
|
107
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
108
|
+
if (message.customer_id !== 0) {
|
|
109
|
+
writer.uint32(8).int32(message.customer_id);
|
|
110
|
+
}
|
|
111
|
+
if (message.request_id !== undefined) {
|
|
112
|
+
writer.uint32(18).string(message.request_id);
|
|
113
|
+
}
|
|
114
|
+
if (message.request_status !== undefined) {
|
|
115
|
+
writer.uint32(26).string(message.request_status);
|
|
116
|
+
}
|
|
117
|
+
if (message.transaction_id !== undefined) {
|
|
118
|
+
writer.uint32(34).string(message.transaction_id);
|
|
119
|
+
}
|
|
120
|
+
if (message.transaction_status !== undefined) {
|
|
121
|
+
writer.uint32(42).string(message.transaction_status);
|
|
122
|
+
}
|
|
123
|
+
if (message.ckyc_available !== undefined) {
|
|
124
|
+
writer.uint32(50).string(message.ckyc_available);
|
|
125
|
+
}
|
|
126
|
+
if (message.ckyc_account_number !== undefined) {
|
|
127
|
+
writer.uint32(58).string(message.ckyc_account_number);
|
|
128
|
+
}
|
|
129
|
+
if (message.ckyc_id !== undefined) {
|
|
130
|
+
writer.uint32(66).string(message.ckyc_id);
|
|
131
|
+
}
|
|
132
|
+
if (message.ckyc_age !== undefined) {
|
|
133
|
+
writer.uint32(74).string(message.ckyc_age);
|
|
134
|
+
}
|
|
135
|
+
if (message.ckyc_father_name !== undefined) {
|
|
136
|
+
writer.uint32(82).string(message.ckyc_father_name);
|
|
137
|
+
}
|
|
138
|
+
if (message.ckyc_gen_date !== undefined) {
|
|
139
|
+
writer.uint32(90).string(message.ckyc_gen_date);
|
|
140
|
+
}
|
|
141
|
+
if (message.ckyc_name !== undefined) {
|
|
142
|
+
writer.uint32(98).string(message.ckyc_name);
|
|
143
|
+
}
|
|
144
|
+
if (message.ckyc_request_date !== undefined) {
|
|
145
|
+
writer.uint32(106).string(message.ckyc_request_date);
|
|
146
|
+
}
|
|
147
|
+
if (message.ckyc_update_date !== undefined) {
|
|
148
|
+
writer.uint32(114).string(message.ckyc_update_date);
|
|
149
|
+
}
|
|
150
|
+
if (message.ckyc_availableid_type !== undefined) {
|
|
151
|
+
writer.uint32(122).string(message.ckyc_availableid_type);
|
|
152
|
+
}
|
|
153
|
+
if (message.ckyc_availableid_type_status !== undefined) {
|
|
154
|
+
writer.uint32(130).string(message.ckyc_availableid_type_status);
|
|
155
|
+
}
|
|
156
|
+
if (message.create_date !== "") {
|
|
157
|
+
writer.uint32(138).string(message.create_date);
|
|
158
|
+
}
|
|
159
|
+
if (message.kycphoto !== undefined) {
|
|
160
|
+
writer.uint32(146).string(message.kycphoto);
|
|
161
|
+
}
|
|
162
|
+
if (message.kycphototype !== undefined) {
|
|
163
|
+
writer.uint32(154).string(message.kycphototype);
|
|
164
|
+
}
|
|
165
|
+
if (message.ckyc_reference_id !== undefined) {
|
|
166
|
+
writer.uint32(162).string(message.ckyc_reference_id);
|
|
167
|
+
}
|
|
168
|
+
if (message.transaction_rejection_status !== undefined) {
|
|
169
|
+
writer.uint32(170).string(message.transaction_rejection_status);
|
|
170
|
+
}
|
|
171
|
+
return writer;
|
|
172
|
+
},
|
|
173
|
+
decode(input, length) {
|
|
174
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
175
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
+
const message = createBaseCKYCData();
|
|
177
|
+
while (reader.pos < end) {
|
|
178
|
+
const tag = reader.uint32();
|
|
179
|
+
switch (tag >>> 3) {
|
|
180
|
+
case 1:
|
|
181
|
+
if (tag !== 8) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.customer_id = reader.int32();
|
|
185
|
+
continue;
|
|
186
|
+
case 2:
|
|
187
|
+
if (tag !== 18) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
message.request_id = reader.string();
|
|
191
|
+
continue;
|
|
192
|
+
case 3:
|
|
193
|
+
if (tag !== 26) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.request_status = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
case 4:
|
|
199
|
+
if (tag !== 34) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.transaction_id = reader.string();
|
|
203
|
+
continue;
|
|
204
|
+
case 5:
|
|
205
|
+
if (tag !== 42) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.transaction_status = reader.string();
|
|
209
|
+
continue;
|
|
210
|
+
case 6:
|
|
211
|
+
if (tag !== 50) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
message.ckyc_available = reader.string();
|
|
215
|
+
continue;
|
|
216
|
+
case 7:
|
|
217
|
+
if (tag !== 58) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.ckyc_account_number = reader.string();
|
|
221
|
+
continue;
|
|
222
|
+
case 8:
|
|
223
|
+
if (tag !== 66) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.ckyc_id = reader.string();
|
|
227
|
+
continue;
|
|
228
|
+
case 9:
|
|
229
|
+
if (tag !== 74) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
message.ckyc_age = reader.string();
|
|
233
|
+
continue;
|
|
234
|
+
case 10:
|
|
235
|
+
if (tag !== 82) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
message.ckyc_father_name = reader.string();
|
|
239
|
+
continue;
|
|
240
|
+
case 11:
|
|
241
|
+
if (tag !== 90) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.ckyc_gen_date = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
case 12:
|
|
247
|
+
if (tag !== 98) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.ckyc_name = reader.string();
|
|
251
|
+
continue;
|
|
252
|
+
case 13:
|
|
253
|
+
if (tag !== 106) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.ckyc_request_date = reader.string();
|
|
257
|
+
continue;
|
|
258
|
+
case 14:
|
|
259
|
+
if (tag !== 114) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.ckyc_update_date = reader.string();
|
|
263
|
+
continue;
|
|
264
|
+
case 15:
|
|
265
|
+
if (tag !== 122) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.ckyc_availableid_type = reader.string();
|
|
269
|
+
continue;
|
|
270
|
+
case 16:
|
|
271
|
+
if (tag !== 130) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.ckyc_availableid_type_status = reader.string();
|
|
275
|
+
continue;
|
|
276
|
+
case 17:
|
|
277
|
+
if (tag !== 138) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
message.create_date = reader.string();
|
|
281
|
+
continue;
|
|
282
|
+
case 18:
|
|
283
|
+
if (tag !== 146) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.kycphoto = reader.string();
|
|
287
|
+
continue;
|
|
288
|
+
case 19:
|
|
289
|
+
if (tag !== 154) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.kycphototype = reader.string();
|
|
293
|
+
continue;
|
|
294
|
+
case 20:
|
|
295
|
+
if (tag !== 162) {
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
message.ckyc_reference_id = reader.string();
|
|
299
|
+
continue;
|
|
300
|
+
case 21:
|
|
301
|
+
if (tag !== 170) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.transaction_rejection_status = reader.string();
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
reader.skipType(tag & 7);
|
|
311
|
+
}
|
|
312
|
+
return message;
|
|
313
|
+
},
|
|
314
|
+
fromJSON(object) {
|
|
315
|
+
return {
|
|
316
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
317
|
+
request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : undefined,
|
|
318
|
+
request_status: isSet(object.request_status) ? globalThis.String(object.request_status) : undefined,
|
|
319
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
|
|
320
|
+
transaction_status: isSet(object.transaction_status) ? globalThis.String(object.transaction_status) : undefined,
|
|
321
|
+
ckyc_available: isSet(object.ckyc_available) ? globalThis.String(object.ckyc_available) : undefined,
|
|
322
|
+
ckyc_account_number: isSet(object.ckyc_account_number)
|
|
323
|
+
? globalThis.String(object.ckyc_account_number)
|
|
324
|
+
: undefined,
|
|
325
|
+
ckyc_id: isSet(object.ckyc_id) ? globalThis.String(object.ckyc_id) : undefined,
|
|
326
|
+
ckyc_age: isSet(object.ckyc_age) ? globalThis.String(object.ckyc_age) : undefined,
|
|
327
|
+
ckyc_father_name: isSet(object.ckyc_father_name) ? globalThis.String(object.ckyc_father_name) : undefined,
|
|
328
|
+
ckyc_gen_date: isSet(object.ckyc_gen_date) ? globalThis.String(object.ckyc_gen_date) : undefined,
|
|
329
|
+
ckyc_name: isSet(object.ckyc_name) ? globalThis.String(object.ckyc_name) : undefined,
|
|
330
|
+
ckyc_request_date: isSet(object.ckyc_request_date) ? globalThis.String(object.ckyc_request_date) : undefined,
|
|
331
|
+
ckyc_update_date: isSet(object.ckyc_update_date) ? globalThis.String(object.ckyc_update_date) : undefined,
|
|
332
|
+
ckyc_availableid_type: isSet(object.ckyc_availableid_type)
|
|
333
|
+
? globalThis.String(object.ckyc_availableid_type)
|
|
334
|
+
: undefined,
|
|
335
|
+
ckyc_availableid_type_status: isSet(object.ckyc_availableid_type_status)
|
|
336
|
+
? globalThis.String(object.ckyc_availableid_type_status)
|
|
337
|
+
: undefined,
|
|
338
|
+
create_date: isSet(object.create_date) ? globalThis.String(object.create_date) : "",
|
|
339
|
+
kycphoto: isSet(object.kycphoto) ? globalThis.String(object.kycphoto) : undefined,
|
|
340
|
+
kycphototype: isSet(object.kycphototype) ? globalThis.String(object.kycphototype) : undefined,
|
|
341
|
+
ckyc_reference_id: isSet(object.ckyc_reference_id) ? globalThis.String(object.ckyc_reference_id) : undefined,
|
|
342
|
+
transaction_rejection_status: isSet(object.transaction_rejection_status)
|
|
343
|
+
? globalThis.String(object.transaction_rejection_status)
|
|
344
|
+
: undefined,
|
|
345
|
+
};
|
|
346
|
+
},
|
|
347
|
+
toJSON(message) {
|
|
348
|
+
const obj = {};
|
|
349
|
+
if (message.customer_id !== 0) {
|
|
350
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
351
|
+
}
|
|
352
|
+
if (message.request_id !== undefined) {
|
|
353
|
+
obj.request_id = message.request_id;
|
|
354
|
+
}
|
|
355
|
+
if (message.request_status !== undefined) {
|
|
356
|
+
obj.request_status = message.request_status;
|
|
357
|
+
}
|
|
358
|
+
if (message.transaction_id !== undefined) {
|
|
359
|
+
obj.transaction_id = message.transaction_id;
|
|
360
|
+
}
|
|
361
|
+
if (message.transaction_status !== undefined) {
|
|
362
|
+
obj.transaction_status = message.transaction_status;
|
|
363
|
+
}
|
|
364
|
+
if (message.ckyc_available !== undefined) {
|
|
365
|
+
obj.ckyc_available = message.ckyc_available;
|
|
366
|
+
}
|
|
367
|
+
if (message.ckyc_account_number !== undefined) {
|
|
368
|
+
obj.ckyc_account_number = message.ckyc_account_number;
|
|
369
|
+
}
|
|
370
|
+
if (message.ckyc_id !== undefined) {
|
|
371
|
+
obj.ckyc_id = message.ckyc_id;
|
|
372
|
+
}
|
|
373
|
+
if (message.ckyc_age !== undefined) {
|
|
374
|
+
obj.ckyc_age = message.ckyc_age;
|
|
375
|
+
}
|
|
376
|
+
if (message.ckyc_father_name !== undefined) {
|
|
377
|
+
obj.ckyc_father_name = message.ckyc_father_name;
|
|
378
|
+
}
|
|
379
|
+
if (message.ckyc_gen_date !== undefined) {
|
|
380
|
+
obj.ckyc_gen_date = message.ckyc_gen_date;
|
|
381
|
+
}
|
|
382
|
+
if (message.ckyc_name !== undefined) {
|
|
383
|
+
obj.ckyc_name = message.ckyc_name;
|
|
384
|
+
}
|
|
385
|
+
if (message.ckyc_request_date !== undefined) {
|
|
386
|
+
obj.ckyc_request_date = message.ckyc_request_date;
|
|
387
|
+
}
|
|
388
|
+
if (message.ckyc_update_date !== undefined) {
|
|
389
|
+
obj.ckyc_update_date = message.ckyc_update_date;
|
|
390
|
+
}
|
|
391
|
+
if (message.ckyc_availableid_type !== undefined) {
|
|
392
|
+
obj.ckyc_availableid_type = message.ckyc_availableid_type;
|
|
393
|
+
}
|
|
394
|
+
if (message.ckyc_availableid_type_status !== undefined) {
|
|
395
|
+
obj.ckyc_availableid_type_status = message.ckyc_availableid_type_status;
|
|
396
|
+
}
|
|
397
|
+
if (message.create_date !== "") {
|
|
398
|
+
obj.create_date = message.create_date;
|
|
399
|
+
}
|
|
400
|
+
if (message.kycphoto !== undefined) {
|
|
401
|
+
obj.kycphoto = message.kycphoto;
|
|
402
|
+
}
|
|
403
|
+
if (message.kycphototype !== undefined) {
|
|
404
|
+
obj.kycphototype = message.kycphototype;
|
|
405
|
+
}
|
|
406
|
+
if (message.ckyc_reference_id !== undefined) {
|
|
407
|
+
obj.ckyc_reference_id = message.ckyc_reference_id;
|
|
408
|
+
}
|
|
409
|
+
if (message.transaction_rejection_status !== undefined) {
|
|
410
|
+
obj.transaction_rejection_status = message.transaction_rejection_status;
|
|
411
|
+
}
|
|
412
|
+
return obj;
|
|
413
|
+
},
|
|
414
|
+
create(base) {
|
|
415
|
+
return exports.CKYCData.fromPartial(base ?? {});
|
|
416
|
+
},
|
|
417
|
+
fromPartial(object) {
|
|
418
|
+
const message = createBaseCKYCData();
|
|
419
|
+
message.customer_id = object.customer_id ?? 0;
|
|
420
|
+
message.request_id = object.request_id ?? undefined;
|
|
421
|
+
message.request_status = object.request_status ?? undefined;
|
|
422
|
+
message.transaction_id = object.transaction_id ?? undefined;
|
|
423
|
+
message.transaction_status = object.transaction_status ?? undefined;
|
|
424
|
+
message.ckyc_available = object.ckyc_available ?? undefined;
|
|
425
|
+
message.ckyc_account_number = object.ckyc_account_number ?? undefined;
|
|
426
|
+
message.ckyc_id = object.ckyc_id ?? undefined;
|
|
427
|
+
message.ckyc_age = object.ckyc_age ?? undefined;
|
|
428
|
+
message.ckyc_father_name = object.ckyc_father_name ?? undefined;
|
|
429
|
+
message.ckyc_gen_date = object.ckyc_gen_date ?? undefined;
|
|
430
|
+
message.ckyc_name = object.ckyc_name ?? undefined;
|
|
431
|
+
message.ckyc_request_date = object.ckyc_request_date ?? undefined;
|
|
432
|
+
message.ckyc_update_date = object.ckyc_update_date ?? undefined;
|
|
433
|
+
message.ckyc_availableid_type = object.ckyc_availableid_type ?? undefined;
|
|
434
|
+
message.ckyc_availableid_type_status = object.ckyc_availableid_type_status ?? undefined;
|
|
435
|
+
message.create_date = object.create_date ?? "";
|
|
436
|
+
message.kycphoto = object.kycphoto ?? undefined;
|
|
437
|
+
message.kycphototype = object.kycphototype ?? undefined;
|
|
438
|
+
message.ckyc_reference_id = object.ckyc_reference_id ?? undefined;
|
|
439
|
+
message.transaction_rejection_status = object.transaction_rejection_status ?? undefined;
|
|
440
|
+
return message;
|
|
441
|
+
},
|
|
442
|
+
};
|
|
443
|
+
function createBaseCkycSearchResponse() {
|
|
444
|
+
return { message: "", status: "", data: undefined };
|
|
445
|
+
}
|
|
446
|
+
exports.CkycSearchResponse = {
|
|
447
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
448
|
+
if (message.message !== "") {
|
|
449
|
+
writer.uint32(10).string(message.message);
|
|
450
|
+
}
|
|
451
|
+
if (message.status !== "") {
|
|
452
|
+
writer.uint32(18).string(message.status);
|
|
453
|
+
}
|
|
454
|
+
if (message.data !== undefined) {
|
|
455
|
+
exports.CKYCData.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
456
|
+
}
|
|
457
|
+
return writer;
|
|
458
|
+
},
|
|
459
|
+
decode(input, length) {
|
|
460
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
461
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
462
|
+
const message = createBaseCkycSearchResponse();
|
|
463
|
+
while (reader.pos < end) {
|
|
464
|
+
const tag = reader.uint32();
|
|
465
|
+
switch (tag >>> 3) {
|
|
466
|
+
case 1:
|
|
467
|
+
if (tag !== 10) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.message = reader.string();
|
|
471
|
+
continue;
|
|
472
|
+
case 2:
|
|
473
|
+
if (tag !== 18) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.status = reader.string();
|
|
477
|
+
continue;
|
|
478
|
+
case 3:
|
|
479
|
+
if (tag !== 26) {
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
message.data = exports.CKYCData.decode(reader, reader.uint32());
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
reader.skipType(tag & 7);
|
|
489
|
+
}
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
fromJSON(object) {
|
|
493
|
+
return {
|
|
494
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
495
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
496
|
+
data: isSet(object.data) ? exports.CKYCData.fromJSON(object.data) : undefined,
|
|
497
|
+
};
|
|
498
|
+
},
|
|
499
|
+
toJSON(message) {
|
|
500
|
+
const obj = {};
|
|
501
|
+
if (message.message !== "") {
|
|
502
|
+
obj.message = message.message;
|
|
503
|
+
}
|
|
504
|
+
if (message.status !== "") {
|
|
505
|
+
obj.status = message.status;
|
|
506
|
+
}
|
|
507
|
+
if (message.data !== undefined) {
|
|
508
|
+
obj.data = exports.CKYCData.toJSON(message.data);
|
|
509
|
+
}
|
|
510
|
+
return obj;
|
|
511
|
+
},
|
|
512
|
+
create(base) {
|
|
513
|
+
return exports.CkycSearchResponse.fromPartial(base ?? {});
|
|
514
|
+
},
|
|
515
|
+
fromPartial(object) {
|
|
516
|
+
const message = createBaseCkycSearchResponse();
|
|
517
|
+
message.message = object.message ?? "";
|
|
518
|
+
message.status = object.status ?? "";
|
|
519
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.CKYCData.fromPartial(object.data) : undefined;
|
|
520
|
+
return message;
|
|
521
|
+
},
|
|
522
|
+
};
|
|
523
|
+
function isSet(value) {
|
|
524
|
+
return value !== null && value !== undefined;
|
|
525
|
+
}
|
package/ts/ckyc.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { CkycDownloadRequest, CkycDownloadResponse } from "./ckyc/ckycdownload";
|
|
3
|
+
import { CkycSearchRequest, CkycSearchResponse } from "./ckyc/ckycsearch";
|
|
4
|
+
export declare const protobufPackage = "service";
|
|
5
|
+
export type ckycService = typeof ckycService;
|
|
6
|
+
export declare const ckycService: {
|
|
7
|
+
readonly ckycSearch: {
|
|
8
|
+
readonly path: "/service.ckyc/ckycSearch";
|
|
9
|
+
readonly requestStream: false;
|
|
10
|
+
readonly responseStream: false;
|
|
11
|
+
readonly requestSerialize: (value: CkycSearchRequest) => Buffer;
|
|
12
|
+
readonly requestDeserialize: (value: Buffer) => CkycSearchRequest;
|
|
13
|
+
readonly responseSerialize: (value: CkycSearchResponse) => Buffer;
|
|
14
|
+
readonly responseDeserialize: (value: Buffer) => CkycSearchResponse;
|
|
15
|
+
};
|
|
16
|
+
readonly ckycDownload: {
|
|
17
|
+
readonly path: "/service.ckyc/ckycDownload";
|
|
18
|
+
readonly requestStream: false;
|
|
19
|
+
readonly responseStream: false;
|
|
20
|
+
readonly requestSerialize: (value: CkycDownloadRequest) => Buffer;
|
|
21
|
+
readonly requestDeserialize: (value: Buffer) => CkycDownloadRequest;
|
|
22
|
+
readonly responseSerialize: (value: CkycDownloadResponse) => Buffer;
|
|
23
|
+
readonly responseDeserialize: (value: Buffer) => CkycDownloadResponse;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export interface ckycServer extends UntypedServiceImplementation {
|
|
27
|
+
ckycSearch: handleUnaryCall<CkycSearchRequest, CkycSearchResponse>;
|
|
28
|
+
ckycDownload: handleUnaryCall<CkycDownloadRequest, CkycDownloadResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface ckycClient extends Client {
|
|
31
|
+
ckycSearch(request: CkycSearchRequest, callback: (error: ServiceError | null, response: CkycSearchResponse) => void): ClientUnaryCall;
|
|
32
|
+
ckycSearch(request: CkycSearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CkycSearchResponse) => void): ClientUnaryCall;
|
|
33
|
+
ckycSearch(request: CkycSearchRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CkycSearchResponse) => void): ClientUnaryCall;
|
|
34
|
+
ckycDownload(request: CkycDownloadRequest, callback: (error: ServiceError | null, response: CkycDownloadResponse) => void): ClientUnaryCall;
|
|
35
|
+
ckycDownload(request: CkycDownloadRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CkycDownloadResponse) => void): ClientUnaryCall;
|
|
36
|
+
ckycDownload(request: CkycDownloadRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CkycDownloadResponse) => void): ClientUnaryCall;
|
|
37
|
+
}
|
|
38
|
+
export declare const ckycClient: {
|
|
39
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ckycClient;
|
|
40
|
+
service: typeof ckycService;
|
|
41
|
+
serviceName: string;
|
|
42
|
+
};
|
package/ts/ckyc.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: ckyc.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ckycClient = exports.ckycService = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const ckycdownload_1 = require("./ckyc/ckycdownload");
|
|
12
|
+
const ckycsearch_1 = require("./ckyc/ckycsearch");
|
|
13
|
+
exports.protobufPackage = "service";
|
|
14
|
+
exports.ckycService = {
|
|
15
|
+
ckycSearch: {
|
|
16
|
+
path: "/service.ckyc/ckycSearch",
|
|
17
|
+
requestStream: false,
|
|
18
|
+
responseStream: false,
|
|
19
|
+
requestSerialize: (value) => Buffer.from(ckycsearch_1.CkycSearchRequest.encode(value).finish()),
|
|
20
|
+
requestDeserialize: (value) => ckycsearch_1.CkycSearchRequest.decode(value),
|
|
21
|
+
responseSerialize: (value) => Buffer.from(ckycsearch_1.CkycSearchResponse.encode(value).finish()),
|
|
22
|
+
responseDeserialize: (value) => ckycsearch_1.CkycSearchResponse.decode(value),
|
|
23
|
+
},
|
|
24
|
+
ckycDownload: {
|
|
25
|
+
path: "/service.ckyc/ckycDownload",
|
|
26
|
+
requestStream: false,
|
|
27
|
+
responseStream: false,
|
|
28
|
+
requestSerialize: (value) => Buffer.from(ckycdownload_1.CkycDownloadRequest.encode(value).finish()),
|
|
29
|
+
requestDeserialize: (value) => ckycdownload_1.CkycDownloadRequest.decode(value),
|
|
30
|
+
responseSerialize: (value) => Buffer.from(ckycdownload_1.CkycDownloadResponse.encode(value).finish()),
|
|
31
|
+
responseDeserialize: (value) => ckycdownload_1.CkycDownloadResponse.decode(value),
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
exports.ckycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ckycService, "service.ckyc");
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "kyc.nsdlpanvalidate";
|
|
3
|
+
export interface CustomerPanDetailRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
full_name: string;
|
|
6
|
+
pan_number: string;
|
|
7
|
+
dob: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PanDetails {
|
|
10
|
+
pan: string;
|
|
11
|
+
pan_status: string;
|
|
12
|
+
name: string;
|
|
13
|
+
fathername: string;
|
|
14
|
+
dob: string;
|
|
15
|
+
seeding_status: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CustomerPanDetailResponse {
|
|
18
|
+
response_code: string;
|
|
19
|
+
output_data: PanDetails[];
|
|
20
|
+
}
|
|
21
|
+
export declare const CustomerPanDetailRequest: {
|
|
22
|
+
encode(message: CustomerPanDetailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CustomerPanDetailRequest;
|
|
24
|
+
fromJSON(object: any): CustomerPanDetailRequest;
|
|
25
|
+
toJSON(message: CustomerPanDetailRequest): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<CustomerPanDetailRequest>, I>>(base?: I): CustomerPanDetailRequest;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<CustomerPanDetailRequest>, I>>(object: I): CustomerPanDetailRequest;
|
|
28
|
+
};
|
|
29
|
+
export declare const PanDetails: {
|
|
30
|
+
encode(message: PanDetails, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PanDetails;
|
|
32
|
+
fromJSON(object: any): PanDetails;
|
|
33
|
+
toJSON(message: PanDetails): unknown;
|
|
34
|
+
create<I extends Exact<DeepPartial<PanDetails>, I>>(base?: I): PanDetails;
|
|
35
|
+
fromPartial<I extends Exact<DeepPartial<PanDetails>, I>>(object: I): PanDetails;
|
|
36
|
+
};
|
|
37
|
+
export declare const CustomerPanDetailResponse: {
|
|
38
|
+
encode(message: CustomerPanDetailResponse, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CustomerPanDetailResponse;
|
|
40
|
+
fromJSON(object: any): CustomerPanDetailResponse;
|
|
41
|
+
toJSON(message: CustomerPanDetailResponse): unknown;
|
|
42
|
+
create<I extends Exact<DeepPartial<CustomerPanDetailResponse>, I>>(base?: I): CustomerPanDetailResponse;
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<CustomerPanDetailResponse>, I>>(object: I): CustomerPanDetailResponse;
|
|
44
|
+
};
|
|
45
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
46
|
+
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 {} ? {
|
|
47
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
48
|
+
} : Partial<T>;
|
|
49
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
50
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
51
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
52
|
+
} & {
|
|
53
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
54
|
+
};
|
|
55
|
+
export {};
|