@stashfin/grpc 1.2.367 → 1.2.369

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/ts/customers/accidentprotectionplan.d.ts +52 -0
  3. package/ts/customers/accidentprotectionplan.js +256 -0
  4. package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
  5. package/ts/customers/enach/updatetxnstatus.js +64 -8
  6. package/ts/customers/getdashboardmaincard.d.ts +1 -0
  7. package/ts/customers/getdashboardmaincard.js +15 -0
  8. package/ts/customers/restoreaccount.d.ts +36 -0
  9. package/ts/customers/{skipdlrcscreen.js → restoreaccount.js} +46 -30
  10. package/ts/customers/verifyotp.d.ts +1 -0
  11. package/ts/customers/verifyotp.js +15 -1
  12. package/ts/customers.d.ts +28 -0
  13. package/ts/customers.js +20 -0
  14. package/ts/loans/creditlimit.d.ts +1 -4
  15. package/ts/loans/creditlimit.js +18 -71
  16. package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
  17. package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
  18. package/ts/loans/updatecollectionview.d.ts +42 -0
  19. package/ts/loans/updatecollectionview.js +226 -0
  20. package/ts/loans.d.ts +14 -0
  21. package/ts/loans.js +10 -0
  22. package/ts/customers/getrpdlink.d.ts +0 -40
  23. package/ts/customers/getrpdlink.js +0 -190
  24. package/ts/customers/sendemailtoken.d.ts +0 -35
  25. package/ts/customers/sendemailtoken.js +0 -117
  26. package/ts/customers/skipdlrcscreen.d.ts +0 -35
  27. package/ts/customers/step1.d.ts +0 -69
  28. package/ts/customers/step1.js +0 -395
  29. package/ts/customers/step10.d.ts +0 -73
  30. package/ts/customers/step10.js +0 -459
  31. package/ts/customers/step2.d.ts +0 -68
  32. package/ts/customers/step2.js +0 -381
  33. package/ts/customers/step7.d.ts +0 -68
  34. package/ts/customers/step7.js +0 -381
  35. package/ts/customers/step8.d.ts +0 -69
  36. package/ts/customers/step8.js +0 -395
  37. package/ts/customers/step9.d.ts +0 -75
  38. package/ts/customers/step9.js +0 -489
  39. package/ts/customers/stepstatic.d.ts +0 -66
  40. package/ts/customers/stepstatic.js +0 -354
  41. package/ts/customers/verifyemail.d.ts +0 -35
  42. package/ts/google/protobuf/timestamp.d.ts +0 -127
  43. package/ts/google/protobuf/timestamp.js +0 -97
@@ -1,459 +0,0 @@
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.27.3
6
- // source: customers/step10.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.step10Response_Field = exports.step10Response = exports.Validation = exports.step10Request = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customers.step10";
15
- function createBasestep10Request() {
16
- return {
17
- email: "",
18
- father_name: "",
19
- monthly_income: 0,
20
- company_name: "",
21
- salary_date: "",
22
- occupation: "",
23
- gender: "",
24
- };
25
- }
26
- exports.step10Request = {
27
- encode(message, writer = minimal_1.default.Writer.create()) {
28
- if (message.email !== "") {
29
- writer.uint32(10).string(message.email);
30
- }
31
- if (message.father_name !== "") {
32
- writer.uint32(18).string(message.father_name);
33
- }
34
- if (message.monthly_income !== 0) {
35
- writer.uint32(29).float(message.monthly_income);
36
- }
37
- if (message.company_name !== "") {
38
- writer.uint32(34).string(message.company_name);
39
- }
40
- if (message.salary_date !== "") {
41
- writer.uint32(42).string(message.salary_date);
42
- }
43
- if (message.occupation !== "") {
44
- writer.uint32(50).string(message.occupation);
45
- }
46
- if (message.gender !== "") {
47
- writer.uint32(58).string(message.gender);
48
- }
49
- return writer;
50
- },
51
- decode(input, length) {
52
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
53
- let end = length === undefined ? reader.len : reader.pos + length;
54
- const message = createBasestep10Request();
55
- while (reader.pos < end) {
56
- const tag = reader.uint32();
57
- switch (tag >>> 3) {
58
- case 1:
59
- if (tag !== 10) {
60
- break;
61
- }
62
- message.email = reader.string();
63
- continue;
64
- case 2:
65
- if (tag !== 18) {
66
- break;
67
- }
68
- message.father_name = reader.string();
69
- continue;
70
- case 3:
71
- if (tag !== 29) {
72
- break;
73
- }
74
- message.monthly_income = reader.float();
75
- continue;
76
- case 4:
77
- if (tag !== 34) {
78
- break;
79
- }
80
- message.company_name = reader.string();
81
- continue;
82
- case 5:
83
- if (tag !== 42) {
84
- break;
85
- }
86
- message.salary_date = reader.string();
87
- continue;
88
- case 6:
89
- if (tag !== 50) {
90
- break;
91
- }
92
- message.occupation = reader.string();
93
- continue;
94
- case 7:
95
- if (tag !== 58) {
96
- break;
97
- }
98
- message.gender = reader.string();
99
- continue;
100
- }
101
- if ((tag & 7) === 4 || tag === 0) {
102
- break;
103
- }
104
- reader.skipType(tag & 7);
105
- }
106
- return message;
107
- },
108
- fromJSON(object) {
109
- return {
110
- email: isSet(object.email) ? globalThis.String(object.email) : "",
111
- father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
112
- monthly_income: isSet(object.monthly_income) ? globalThis.Number(object.monthly_income) : 0,
113
- company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
114
- salary_date: isSet(object.salary_date) ? globalThis.String(object.salary_date) : "",
115
- occupation: isSet(object.occupation) ? globalThis.String(object.occupation) : "",
116
- gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
117
- };
118
- },
119
- toJSON(message) {
120
- const obj = {};
121
- if (message.email !== "") {
122
- obj.email = message.email;
123
- }
124
- if (message.father_name !== "") {
125
- obj.father_name = message.father_name;
126
- }
127
- if (message.monthly_income !== 0) {
128
- obj.monthly_income = message.monthly_income;
129
- }
130
- if (message.company_name !== "") {
131
- obj.company_name = message.company_name;
132
- }
133
- if (message.salary_date !== "") {
134
- obj.salary_date = message.salary_date;
135
- }
136
- if (message.occupation !== "") {
137
- obj.occupation = message.occupation;
138
- }
139
- if (message.gender !== "") {
140
- obj.gender = message.gender;
141
- }
142
- return obj;
143
- },
144
- create(base) {
145
- return exports.step10Request.fromPartial(base ?? {});
146
- },
147
- fromPartial(object) {
148
- const message = createBasestep10Request();
149
- message.email = object.email ?? "";
150
- message.father_name = object.father_name ?? "";
151
- message.monthly_income = object.monthly_income ?? 0;
152
- message.company_name = object.company_name ?? "";
153
- message.salary_date = object.salary_date ?? "";
154
- message.occupation = object.occupation ?? "";
155
- message.gender = object.gender ?? "";
156
- return message;
157
- },
158
- };
159
- function createBaseValidation() {
160
- return { key: "", value: "", message: "" };
161
- }
162
- exports.Validation = {
163
- encode(message, writer = minimal_1.default.Writer.create()) {
164
- if (message.key !== "") {
165
- writer.uint32(10).string(message.key);
166
- }
167
- if (message.value !== "") {
168
- writer.uint32(18).string(message.value);
169
- }
170
- if (message.message !== "") {
171
- writer.uint32(26).string(message.message);
172
- }
173
- return writer;
174
- },
175
- decode(input, length) {
176
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
177
- let end = length === undefined ? reader.len : reader.pos + length;
178
- const message = createBaseValidation();
179
- while (reader.pos < end) {
180
- const tag = reader.uint32();
181
- switch (tag >>> 3) {
182
- case 1:
183
- if (tag !== 10) {
184
- break;
185
- }
186
- message.key = reader.string();
187
- continue;
188
- case 2:
189
- if (tag !== 18) {
190
- break;
191
- }
192
- message.value = reader.string();
193
- continue;
194
- case 3:
195
- if (tag !== 26) {
196
- break;
197
- }
198
- message.message = reader.string();
199
- continue;
200
- }
201
- if ((tag & 7) === 4 || tag === 0) {
202
- break;
203
- }
204
- reader.skipType(tag & 7);
205
- }
206
- return message;
207
- },
208
- fromJSON(object) {
209
- return {
210
- key: isSet(object.key) ? globalThis.String(object.key) : "",
211
- value: isSet(object.value) ? globalThis.String(object.value) : "",
212
- message: isSet(object.message) ? globalThis.String(object.message) : "",
213
- };
214
- },
215
- toJSON(message) {
216
- const obj = {};
217
- if (message.key !== "") {
218
- obj.key = message.key;
219
- }
220
- if (message.value !== "") {
221
- obj.value = message.value;
222
- }
223
- if (message.message !== "") {
224
- obj.message = message.message;
225
- }
226
- return obj;
227
- },
228
- create(base) {
229
- return exports.Validation.fromPartial(base ?? {});
230
- },
231
- fromPartial(object) {
232
- const message = createBaseValidation();
233
- message.key = object.key ?? "";
234
- message.value = object.value ?? "";
235
- message.message = object.message ?? "";
236
- return message;
237
- },
238
- };
239
- function createBasestep10Response() {
240
- return { page: "", type: "", button_text: "", data: [] };
241
- }
242
- exports.step10Response = {
243
- encode(message, writer = minimal_1.default.Writer.create()) {
244
- if (message.page !== "") {
245
- writer.uint32(10).string(message.page);
246
- }
247
- if (message.type !== "") {
248
- writer.uint32(18).string(message.type);
249
- }
250
- if (message.button_text !== "") {
251
- writer.uint32(26).string(message.button_text);
252
- }
253
- for (const v of message.data) {
254
- exports.step10Response_Field.encode(v, writer.uint32(34).fork()).ldelim();
255
- }
256
- return writer;
257
- },
258
- decode(input, length) {
259
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
260
- let end = length === undefined ? reader.len : reader.pos + length;
261
- const message = createBasestep10Response();
262
- while (reader.pos < end) {
263
- const tag = reader.uint32();
264
- switch (tag >>> 3) {
265
- case 1:
266
- if (tag !== 10) {
267
- break;
268
- }
269
- message.page = reader.string();
270
- continue;
271
- case 2:
272
- if (tag !== 18) {
273
- break;
274
- }
275
- message.type = reader.string();
276
- continue;
277
- case 3:
278
- if (tag !== 26) {
279
- break;
280
- }
281
- message.button_text = reader.string();
282
- continue;
283
- case 4:
284
- if (tag !== 34) {
285
- break;
286
- }
287
- message.data.push(exports.step10Response_Field.decode(reader, reader.uint32()));
288
- continue;
289
- }
290
- if ((tag & 7) === 4 || tag === 0) {
291
- break;
292
- }
293
- reader.skipType(tag & 7);
294
- }
295
- return message;
296
- },
297
- fromJSON(object) {
298
- return {
299
- page: isSet(object.page) ? globalThis.String(object.page) : "",
300
- type: isSet(object.type) ? globalThis.String(object.type) : "",
301
- button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
302
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.step10Response_Field.fromJSON(e)) : [],
303
- };
304
- },
305
- toJSON(message) {
306
- const obj = {};
307
- if (message.page !== "") {
308
- obj.page = message.page;
309
- }
310
- if (message.type !== "") {
311
- obj.type = message.type;
312
- }
313
- if (message.button_text !== "") {
314
- obj.button_text = message.button_text;
315
- }
316
- if (message.data?.length) {
317
- obj.data = message.data.map((e) => exports.step10Response_Field.toJSON(e));
318
- }
319
- return obj;
320
- },
321
- create(base) {
322
- return exports.step10Response.fromPartial(base ?? {});
323
- },
324
- fromPartial(object) {
325
- const message = createBasestep10Response();
326
- message.page = object.page ?? "";
327
- message.type = object.type ?? "";
328
- message.button_text = object.button_text ?? "";
329
- message.data = object.data?.map((e) => exports.step10Response_Field.fromPartial(e)) || [];
330
- return message;
331
- },
332
- };
333
- function createBasestep10Response_Field() {
334
- return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
335
- }
336
- exports.step10Response_Field = {
337
- encode(message, writer = minimal_1.default.Writer.create()) {
338
- if (message.label !== "") {
339
- writer.uint32(10).string(message.label);
340
- }
341
- if (message.key !== "") {
342
- writer.uint32(18).string(message.key);
343
- }
344
- if (message.input_type !== "") {
345
- writer.uint32(26).string(message.input_type);
346
- }
347
- if (message.data_type !== "") {
348
- writer.uint32(34).string(message.data_type);
349
- }
350
- if (message.icon !== "") {
351
- writer.uint32(42).string(message.icon);
352
- }
353
- for (const v of message.validations) {
354
- exports.Validation.encode(v, writer.uint32(58).fork()).ldelim();
355
- }
356
- return writer;
357
- },
358
- decode(input, length) {
359
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
360
- let end = length === undefined ? reader.len : reader.pos + length;
361
- const message = createBasestep10Response_Field();
362
- while (reader.pos < end) {
363
- const tag = reader.uint32();
364
- switch (tag >>> 3) {
365
- case 1:
366
- if (tag !== 10) {
367
- break;
368
- }
369
- message.label = reader.string();
370
- continue;
371
- case 2:
372
- if (tag !== 18) {
373
- break;
374
- }
375
- message.key = reader.string();
376
- continue;
377
- case 3:
378
- if (tag !== 26) {
379
- break;
380
- }
381
- message.input_type = reader.string();
382
- continue;
383
- case 4:
384
- if (tag !== 34) {
385
- break;
386
- }
387
- message.data_type = reader.string();
388
- continue;
389
- case 5:
390
- if (tag !== 42) {
391
- break;
392
- }
393
- message.icon = reader.string();
394
- continue;
395
- case 7:
396
- if (tag !== 58) {
397
- break;
398
- }
399
- message.validations.push(exports.Validation.decode(reader, reader.uint32()));
400
- continue;
401
- }
402
- if ((tag & 7) === 4 || tag === 0) {
403
- break;
404
- }
405
- reader.skipType(tag & 7);
406
- }
407
- return message;
408
- },
409
- fromJSON(object) {
410
- return {
411
- label: isSet(object.label) ? globalThis.String(object.label) : "",
412
- key: isSet(object.key) ? globalThis.String(object.key) : "",
413
- input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
414
- data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
415
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
416
- validations: globalThis.Array.isArray(object?.validations)
417
- ? object.validations.map((e) => exports.Validation.fromJSON(e))
418
- : [],
419
- };
420
- },
421
- toJSON(message) {
422
- const obj = {};
423
- if (message.label !== "") {
424
- obj.label = message.label;
425
- }
426
- if (message.key !== "") {
427
- obj.key = message.key;
428
- }
429
- if (message.input_type !== "") {
430
- obj.input_type = message.input_type;
431
- }
432
- if (message.data_type !== "") {
433
- obj.data_type = message.data_type;
434
- }
435
- if (message.icon !== "") {
436
- obj.icon = message.icon;
437
- }
438
- if (message.validations?.length) {
439
- obj.validations = message.validations.map((e) => exports.Validation.toJSON(e));
440
- }
441
- return obj;
442
- },
443
- create(base) {
444
- return exports.step10Response_Field.fromPartial(base ?? {});
445
- },
446
- fromPartial(object) {
447
- const message = createBasestep10Response_Field();
448
- message.label = object.label ?? "";
449
- message.key = object.key ?? "";
450
- message.input_type = object.input_type ?? "";
451
- message.data_type = object.data_type ?? "";
452
- message.icon = object.icon ?? "";
453
- message.validations = object.validations?.map((e) => exports.Validation.fromPartial(e)) || [];
454
- return message;
455
- },
456
- };
457
- function isSet(value) {
458
- return value !== null && value !== undefined;
459
- }
@@ -1,68 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.step2";
3
- export interface step2Request {
4
- pincode: string;
5
- dob: string;
6
- }
7
- export interface Validation {
8
- key: string;
9
- value: string;
10
- message: string;
11
- }
12
- export interface step2Response {
13
- page: string;
14
- type: string;
15
- button_text: string;
16
- data: step2Response_Field[];
17
- }
18
- export interface step2Response_Field {
19
- label: string;
20
- key: string;
21
- input_type: string;
22
- data_type: string;
23
- icon: string;
24
- validations: Validation[];
25
- }
26
- export declare const step2Request: {
27
- encode(message: step2Request, writer?: _m0.Writer): _m0.Writer;
28
- decode(input: _m0.Reader | Uint8Array, length?: number): step2Request;
29
- fromJSON(object: any): step2Request;
30
- toJSON(message: step2Request): unknown;
31
- create<I extends Exact<DeepPartial<step2Request>, I>>(base?: I): step2Request;
32
- fromPartial<I extends Exact<DeepPartial<step2Request>, I>>(object: I): step2Request;
33
- };
34
- export declare const Validation: {
35
- encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
36
- decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
37
- fromJSON(object: any): Validation;
38
- toJSON(message: Validation): unknown;
39
- create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
40
- fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
41
- };
42
- export declare const step2Response: {
43
- encode(message: step2Response, writer?: _m0.Writer): _m0.Writer;
44
- decode(input: _m0.Reader | Uint8Array, length?: number): step2Response;
45
- fromJSON(object: any): step2Response;
46
- toJSON(message: step2Response): unknown;
47
- create<I extends Exact<DeepPartial<step2Response>, I>>(base?: I): step2Response;
48
- fromPartial<I extends Exact<DeepPartial<step2Response>, I>>(object: I): step2Response;
49
- };
50
- export declare const step2Response_Field: {
51
- encode(message: step2Response_Field, writer?: _m0.Writer): _m0.Writer;
52
- decode(input: _m0.Reader | Uint8Array, length?: number): step2Response_Field;
53
- fromJSON(object: any): step2Response_Field;
54
- toJSON(message: step2Response_Field): unknown;
55
- create<I extends Exact<DeepPartial<step2Response_Field>, I>>(base?: I): step2Response_Field;
56
- fromPartial<I extends Exact<DeepPartial<step2Response_Field>, I>>(object: I): step2Response_Field;
57
- };
58
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
- 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 {} ? {
60
- [K in keyof T]?: DeepPartial<T[K]>;
61
- } : Partial<T>;
62
- type KeysOfUnion<T> = T extends T ? keyof T : never;
63
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
64
- [K in keyof P]: Exact<P[K], I[K]>;
65
- } & {
66
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
67
- };
68
- export {};