@stashfin/grpc 1.0.31 → 1.2.1

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 (65) hide show
  1. package/package.json +1 -1
  2. package/ts/customers/getprofile.js +1 -1
  3. package/ts/customers/getstep.js +1 -1
  4. package/ts/customers/profilebasic.js +1 -1
  5. package/ts/customers/profileupdatetnc.js +1 -1
  6. package/ts/customers/sendemailtoken.js +1 -1
  7. package/ts/customers/sendotp.d.ts +2 -0
  8. package/ts/customers/sendotp.js +36 -4
  9. package/ts/customers/setmpin.js +1 -1
  10. package/ts/customers/step1.js +1 -1
  11. package/ts/customers/step10.js +1 -1
  12. package/ts/customers/step2.js +1 -1
  13. package/ts/customers/step7.js +1 -1
  14. package/ts/customers/step8.js +1 -1
  15. package/ts/customers/step9.js +1 -1
  16. package/ts/customers/stepstatic.js +1 -1
  17. package/ts/customers/verifyemail.js +1 -1
  18. package/ts/customers/verifympin.js +1 -1
  19. package/ts/customers/verifyotp.d.ts +1 -0
  20. package/ts/customers/verifyotp.js +22 -8
  21. package/ts/customers.js +1 -1
  22. package/ts/example.js +1 -1
  23. package/ts/loans/banklist.d.ts +36 -0
  24. package/ts/{customer/setmpin.js → loans/banklist.js} +59 -58
  25. package/ts/loans/calculateemi.d.ts +48 -0
  26. package/ts/loans/calculateemi.js +201 -0
  27. package/ts/loans/creditlimit.d.ts +35 -0
  28. package/ts/{customer/profileupdatetnc.js → loans/creditlimit.js} +44 -41
  29. package/ts/loans.d.ts +56 -0
  30. package/ts/loans.js +44 -0
  31. package/ts/stashcash/creditsc.js +1 -1
  32. package/ts/stashcash/debitsc.js +1 -1
  33. package/ts/stashcash/getscbalance.d.ts +1 -0
  34. package/ts/stashcash/getscbalance.js +24 -2
  35. package/ts/stashcash/getschistory.js +1 -1
  36. package/ts/stashcash/reversesc.js +1 -1
  37. package/ts/stashcash.js +1 -1
  38. package/ts/customer/getprofile.d.ts +0 -38
  39. package/ts/customer/getprofile.js +0 -162
  40. package/ts/customer/getstep.d.ts +0 -78
  41. package/ts/customer/getstep.js +0 -420
  42. package/ts/customer/profileupdatetnc.d.ts +0 -35
  43. package/ts/customer/sendotp.d.ts +0 -36
  44. package/ts/customer/sendotp.js +0 -133
  45. package/ts/customer/setmpin.d.ts +0 -36
  46. package/ts/customer/step1.d.ts +0 -69
  47. package/ts/customer/step1.js +0 -395
  48. package/ts/customer/step10.d.ts +0 -73
  49. package/ts/customer/step10.js +0 -459
  50. package/ts/customer/step2.d.ts +0 -68
  51. package/ts/customer/step2.js +0 -381
  52. package/ts/customer/step7.d.ts +0 -68
  53. package/ts/customer/step7.js +0 -381
  54. package/ts/customer/step8.d.ts +0 -69
  55. package/ts/customer/step8.js +0 -395
  56. package/ts/customer/step9.d.ts +0 -75
  57. package/ts/customer/step9.js +0 -489
  58. package/ts/customer/stepstatic.d.ts +0 -66
  59. package/ts/customer/stepstatic.js +0 -352
  60. package/ts/customer/verifympin.d.ts +0 -37
  61. package/ts/customer/verifympin.js +0 -149
  62. package/ts/customer/verifyotp.d.ts +0 -39
  63. package/ts/customer/verifyotp.js +0 -177
  64. package/ts/customer.d.ts +0 -262
  65. package/ts/customer.js +0 -190
@@ -1,381 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.180.0
5
- // protoc v3.20.3
6
- // source: customer/step7.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.response_Field = exports.response = exports.Validation = exports.request = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customer.step7";
15
- function createBaserequest() {
16
- return { bank_account_number: "", ifsc_code: "" };
17
- }
18
- exports.request = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.bank_account_number !== "") {
21
- writer.uint32(10).string(message.bank_account_number);
22
- }
23
- if (message.ifsc_code !== "") {
24
- writer.uint32(18).string(message.ifsc_code);
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 = createBaserequest();
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.bank_account_number = reader.string();
40
- continue;
41
- case 2:
42
- if (tag !== 18) {
43
- break;
44
- }
45
- message.ifsc_code = 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
- bank_account_number: isSet(object.bank_account_number) ? globalThis.String(object.bank_account_number) : "",
58
- ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
59
- };
60
- },
61
- toJSON(message) {
62
- const obj = {};
63
- if (message.bank_account_number !== "") {
64
- obj.bank_account_number = message.bank_account_number;
65
- }
66
- if (message.ifsc_code !== "") {
67
- obj.ifsc_code = message.ifsc_code;
68
- }
69
- return obj;
70
- },
71
- create(base) {
72
- return exports.request.fromPartial(base ?? {});
73
- },
74
- fromPartial(object) {
75
- const message = createBaserequest();
76
- message.bank_account_number = object.bank_account_number ?? "";
77
- message.ifsc_code = object.ifsc_code ?? "";
78
- return message;
79
- },
80
- };
81
- function createBaseValidation() {
82
- return { key: "", value: "", message: "" };
83
- }
84
- exports.Validation = {
85
- encode(message, writer = minimal_1.default.Writer.create()) {
86
- if (message.key !== "") {
87
- writer.uint32(10).string(message.key);
88
- }
89
- if (message.value !== "") {
90
- writer.uint32(18).string(message.value);
91
- }
92
- if (message.message !== "") {
93
- writer.uint32(26).string(message.message);
94
- }
95
- return writer;
96
- },
97
- decode(input, length) {
98
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
99
- let end = length === undefined ? reader.len : reader.pos + length;
100
- const message = createBaseValidation();
101
- while (reader.pos < end) {
102
- const tag = reader.uint32();
103
- switch (tag >>> 3) {
104
- case 1:
105
- if (tag !== 10) {
106
- break;
107
- }
108
- message.key = reader.string();
109
- continue;
110
- case 2:
111
- if (tag !== 18) {
112
- break;
113
- }
114
- message.value = reader.string();
115
- continue;
116
- case 3:
117
- if (tag !== 26) {
118
- break;
119
- }
120
- message.message = reader.string();
121
- continue;
122
- }
123
- if ((tag & 7) === 4 || tag === 0) {
124
- break;
125
- }
126
- reader.skipType(tag & 7);
127
- }
128
- return message;
129
- },
130
- fromJSON(object) {
131
- return {
132
- key: isSet(object.key) ? globalThis.String(object.key) : "",
133
- value: isSet(object.value) ? globalThis.String(object.value) : "",
134
- message: isSet(object.message) ? globalThis.String(object.message) : "",
135
- };
136
- },
137
- toJSON(message) {
138
- const obj = {};
139
- if (message.key !== "") {
140
- obj.key = message.key;
141
- }
142
- if (message.value !== "") {
143
- obj.value = message.value;
144
- }
145
- if (message.message !== "") {
146
- obj.message = message.message;
147
- }
148
- return obj;
149
- },
150
- create(base) {
151
- return exports.Validation.fromPartial(base ?? {});
152
- },
153
- fromPartial(object) {
154
- const message = createBaseValidation();
155
- message.key = object.key ?? "";
156
- message.value = object.value ?? "";
157
- message.message = object.message ?? "";
158
- return message;
159
- },
160
- };
161
- function createBaseresponse() {
162
- return { page: "", type: "", button_text: "", data: [] };
163
- }
164
- exports.response = {
165
- encode(message, writer = minimal_1.default.Writer.create()) {
166
- if (message.page !== "") {
167
- writer.uint32(10).string(message.page);
168
- }
169
- if (message.type !== "") {
170
- writer.uint32(18).string(message.type);
171
- }
172
- if (message.button_text !== "") {
173
- writer.uint32(26).string(message.button_text);
174
- }
175
- for (const v of message.data) {
176
- exports.response_Field.encode(v, writer.uint32(34).fork()).ldelim();
177
- }
178
- return writer;
179
- },
180
- decode(input, length) {
181
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
182
- let end = length === undefined ? reader.len : reader.pos + length;
183
- const message = createBaseresponse();
184
- while (reader.pos < end) {
185
- const tag = reader.uint32();
186
- switch (tag >>> 3) {
187
- case 1:
188
- if (tag !== 10) {
189
- break;
190
- }
191
- message.page = reader.string();
192
- continue;
193
- case 2:
194
- if (tag !== 18) {
195
- break;
196
- }
197
- message.type = reader.string();
198
- continue;
199
- case 3:
200
- if (tag !== 26) {
201
- break;
202
- }
203
- message.button_text = reader.string();
204
- continue;
205
- case 4:
206
- if (tag !== 34) {
207
- break;
208
- }
209
- message.data.push(exports.response_Field.decode(reader, reader.uint32()));
210
- continue;
211
- }
212
- if ((tag & 7) === 4 || tag === 0) {
213
- break;
214
- }
215
- reader.skipType(tag & 7);
216
- }
217
- return message;
218
- },
219
- fromJSON(object) {
220
- return {
221
- page: isSet(object.page) ? globalThis.String(object.page) : "",
222
- type: isSet(object.type) ? globalThis.String(object.type) : "",
223
- button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
224
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.response_Field.fromJSON(e)) : [],
225
- };
226
- },
227
- toJSON(message) {
228
- const obj = {};
229
- if (message.page !== "") {
230
- obj.page = message.page;
231
- }
232
- if (message.type !== "") {
233
- obj.type = message.type;
234
- }
235
- if (message.button_text !== "") {
236
- obj.button_text = message.button_text;
237
- }
238
- if (message.data?.length) {
239
- obj.data = message.data.map((e) => exports.response_Field.toJSON(e));
240
- }
241
- return obj;
242
- },
243
- create(base) {
244
- return exports.response.fromPartial(base ?? {});
245
- },
246
- fromPartial(object) {
247
- const message = createBaseresponse();
248
- message.page = object.page ?? "";
249
- message.type = object.type ?? "";
250
- message.button_text = object.button_text ?? "";
251
- message.data = object.data?.map((e) => exports.response_Field.fromPartial(e)) || [];
252
- return message;
253
- },
254
- };
255
- function createBaseresponse_Field() {
256
- return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
257
- }
258
- exports.response_Field = {
259
- encode(message, writer = minimal_1.default.Writer.create()) {
260
- if (message.label !== "") {
261
- writer.uint32(10).string(message.label);
262
- }
263
- if (message.key !== "") {
264
- writer.uint32(18).string(message.key);
265
- }
266
- if (message.input_type !== "") {
267
- writer.uint32(26).string(message.input_type);
268
- }
269
- if (message.data_type !== "") {
270
- writer.uint32(34).string(message.data_type);
271
- }
272
- if (message.icon !== "") {
273
- writer.uint32(42).string(message.icon);
274
- }
275
- for (const v of message.validations) {
276
- exports.Validation.encode(v, writer.uint32(58).fork()).ldelim();
277
- }
278
- return writer;
279
- },
280
- decode(input, length) {
281
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
282
- let end = length === undefined ? reader.len : reader.pos + length;
283
- const message = createBaseresponse_Field();
284
- while (reader.pos < end) {
285
- const tag = reader.uint32();
286
- switch (tag >>> 3) {
287
- case 1:
288
- if (tag !== 10) {
289
- break;
290
- }
291
- message.label = reader.string();
292
- continue;
293
- case 2:
294
- if (tag !== 18) {
295
- break;
296
- }
297
- message.key = reader.string();
298
- continue;
299
- case 3:
300
- if (tag !== 26) {
301
- break;
302
- }
303
- message.input_type = reader.string();
304
- continue;
305
- case 4:
306
- if (tag !== 34) {
307
- break;
308
- }
309
- message.data_type = reader.string();
310
- continue;
311
- case 5:
312
- if (tag !== 42) {
313
- break;
314
- }
315
- message.icon = reader.string();
316
- continue;
317
- case 7:
318
- if (tag !== 58) {
319
- break;
320
- }
321
- message.validations.push(exports.Validation.decode(reader, reader.uint32()));
322
- continue;
323
- }
324
- if ((tag & 7) === 4 || tag === 0) {
325
- break;
326
- }
327
- reader.skipType(tag & 7);
328
- }
329
- return message;
330
- },
331
- fromJSON(object) {
332
- return {
333
- label: isSet(object.label) ? globalThis.String(object.label) : "",
334
- key: isSet(object.key) ? globalThis.String(object.key) : "",
335
- input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
336
- data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
337
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
338
- validations: globalThis.Array.isArray(object?.validations)
339
- ? object.validations.map((e) => exports.Validation.fromJSON(e))
340
- : [],
341
- };
342
- },
343
- toJSON(message) {
344
- const obj = {};
345
- if (message.label !== "") {
346
- obj.label = message.label;
347
- }
348
- if (message.key !== "") {
349
- obj.key = message.key;
350
- }
351
- if (message.input_type !== "") {
352
- obj.input_type = message.input_type;
353
- }
354
- if (message.data_type !== "") {
355
- obj.data_type = message.data_type;
356
- }
357
- if (message.icon !== "") {
358
- obj.icon = message.icon;
359
- }
360
- if (message.validations?.length) {
361
- obj.validations = message.validations.map((e) => exports.Validation.toJSON(e));
362
- }
363
- return obj;
364
- },
365
- create(base) {
366
- return exports.response_Field.fromPartial(base ?? {});
367
- },
368
- fromPartial(object) {
369
- const message = createBaseresponse_Field();
370
- message.label = object.label ?? "";
371
- message.key = object.key ?? "";
372
- message.input_type = object.input_type ?? "";
373
- message.data_type = object.data_type ?? "";
374
- message.icon = object.icon ?? "";
375
- message.validations = object.validations?.map((e) => exports.Validation.fromPartial(e)) || [];
376
- return message;
377
- },
378
- };
379
- function isSet(value) {
380
- return value !== null && value !== undefined;
381
- }
@@ -1,69 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customer.step8";
3
- export interface request {
4
- selfie_url: string;
5
- pan_url: string;
6
- aadhaar_number: string;
7
- }
8
- export interface Validation {
9
- key: string;
10
- value: string;
11
- message: string;
12
- }
13
- export interface response {
14
- page: string;
15
- type: string;
16
- button_text: string;
17
- data: response_Field[];
18
- }
19
- export interface response_Field {
20
- label: string;
21
- key: string;
22
- input_type: string;
23
- data_type: string;
24
- icon: string;
25
- validations: Validation[];
26
- }
27
- export declare const request: {
28
- encode(message: request, writer?: _m0.Writer): _m0.Writer;
29
- decode(input: _m0.Reader | Uint8Array, length?: number): request;
30
- fromJSON(object: any): request;
31
- toJSON(message: request): unknown;
32
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
33
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
34
- };
35
- export declare const Validation: {
36
- encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
37
- decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
38
- fromJSON(object: any): Validation;
39
- toJSON(message: Validation): unknown;
40
- create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
41
- fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
42
- };
43
- export declare const response: {
44
- encode(message: response, writer?: _m0.Writer): _m0.Writer;
45
- decode(input: _m0.Reader | Uint8Array, length?: number): response;
46
- fromJSON(object: any): response;
47
- toJSON(message: response): unknown;
48
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
49
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
50
- };
51
- export declare const response_Field: {
52
- encode(message: response_Field, writer?: _m0.Writer): _m0.Writer;
53
- decode(input: _m0.Reader | Uint8Array, length?: number): response_Field;
54
- fromJSON(object: any): response_Field;
55
- toJSON(message: response_Field): unknown;
56
- create<I extends Exact<DeepPartial<response_Field>, I>>(base?: I): response_Field;
57
- fromPartial<I extends Exact<DeepPartial<response_Field>, I>>(object: I): response_Field;
58
- };
59
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
60
- 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 {} ? {
61
- [K in keyof T]?: DeepPartial<T[K]>;
62
- } : Partial<T>;
63
- type KeysOfUnion<T> = T extends T ? keyof T : never;
64
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
65
- [K in keyof P]: Exact<P[K], I[K]>;
66
- } & {
67
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
68
- };
69
- export {};