@stashfin/grpc 1.2.471 → 1.2.473

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.471",
3
+ "version": "1.2.473",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,6 +4,8 @@ export interface detailsRequest {
4
4
  customer_id: number;
5
5
  range: number;
6
6
  source: string;
7
+ bureau_type: number;
8
+ pull_type: number;
7
9
  }
8
10
  export interface detailsResponse {
9
11
  status: string;
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "bureau.getbasicdetails";
16
16
  function createBasedetailsRequest() {
17
- return { customer_id: 0, range: 0, source: "" };
17
+ return { customer_id: 0, range: 0, source: "", bureau_type: 0, pull_type: 0 };
18
18
  }
19
19
  exports.detailsRequest = {
20
20
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -27,6 +27,12 @@ exports.detailsRequest = {
27
27
  if (message.source !== "") {
28
28
  writer.uint32(26).string(message.source);
29
29
  }
30
+ if (message.bureau_type !== 0) {
31
+ writer.uint32(32).int32(message.bureau_type);
32
+ }
33
+ if (message.pull_type !== 0) {
34
+ writer.uint32(40).int32(message.pull_type);
35
+ }
30
36
  return writer;
31
37
  },
32
38
  decode(input, length) {
@@ -54,6 +60,18 @@ exports.detailsRequest = {
54
60
  }
55
61
  message.source = reader.string();
56
62
  continue;
63
+ case 4:
64
+ if (tag !== 32) {
65
+ break;
66
+ }
67
+ message.bureau_type = reader.int32();
68
+ continue;
69
+ case 5:
70
+ if (tag !== 40) {
71
+ break;
72
+ }
73
+ message.pull_type = reader.int32();
74
+ continue;
57
75
  }
58
76
  if ((tag & 7) === 4 || tag === 0) {
59
77
  break;
@@ -67,6 +85,8 @@ exports.detailsRequest = {
67
85
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
68
86
  range: isSet(object.range) ? globalThis.Number(object.range) : 0,
69
87
  source: isSet(object.source) ? globalThis.String(object.source) : "",
88
+ bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
89
+ pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
70
90
  };
71
91
  },
72
92
  toJSON(message) {
@@ -80,6 +100,12 @@ exports.detailsRequest = {
80
100
  if (message.source !== "") {
81
101
  obj.source = message.source;
82
102
  }
103
+ if (message.bureau_type !== 0) {
104
+ obj.bureau_type = Math.round(message.bureau_type);
105
+ }
106
+ if (message.pull_type !== 0) {
107
+ obj.pull_type = Math.round(message.pull_type);
108
+ }
83
109
  return obj;
84
110
  },
85
111
  create(base) {
@@ -90,6 +116,8 @@ exports.detailsRequest = {
90
116
  message.customer_id = object.customer_id ?? 0;
91
117
  message.range = object.range ?? 0;
92
118
  message.source = object.source ?? "";
119
+ message.bureau_type = object.bureau_type ?? 0;
120
+ message.pull_type = object.pull_type ?? 0;
93
121
  return message;
94
122
  },
95
123
  };
@@ -4,28 +4,28 @@ export interface validateIFSCRequest {
4
4
  ifsc: string;
5
5
  }
6
6
  export interface BankData {
7
- MICR: string;
8
- BRANCH: string;
9
- ADDRESS: string;
10
- STATE: string;
11
- CONTACT: string;
12
- UPI: boolean;
13
- RTGS: boolean;
14
- CITY: string;
15
- CENTRE: string;
16
- DISTRICT: string;
17
- NEFT: boolean;
18
- IMPS: boolean;
19
- SWIFT: string;
20
- ISO3166: string;
21
- BANK: string;
22
- BANKCODE: string;
23
- IFSC: string;
7
+ MICR?: string | undefined;
8
+ BRANCH?: string | undefined;
9
+ ADDRESS?: string | undefined;
10
+ STATE?: string | undefined;
11
+ CONTACT?: string | undefined;
12
+ UPI?: boolean | undefined;
13
+ RTGS?: boolean | undefined;
14
+ CITY?: string | undefined;
15
+ CENTRE?: string | undefined;
16
+ DISTRICT?: string | undefined;
17
+ NEFT?: boolean | undefined;
18
+ IMPS?: boolean | undefined;
19
+ SWIFT?: string | undefined;
20
+ ISO3166?: string | undefined;
21
+ BANK?: string | undefined;
22
+ BANKCODE?: string | undefined;
23
+ IFSC?: string | undefined;
24
24
  }
25
25
  export interface validateIFSCResponse {
26
26
  status: string;
27
27
  message: string;
28
- data: BankData | undefined;
28
+ data?: BankData | undefined;
29
29
  }
30
30
  export declare const validateIFSCRequest: {
31
31
  encode(message: validateIFSCRequest, writer?: _m0.Writer): _m0.Writer;
@@ -64,76 +64,76 @@ exports.validateIFSCRequest = {
64
64
  };
65
65
  function createBaseBankData() {
66
66
  return {
67
- MICR: "",
68
- BRANCH: "",
69
- ADDRESS: "",
70
- STATE: "",
71
- CONTACT: "",
72
- UPI: false,
73
- RTGS: false,
74
- CITY: "",
75
- CENTRE: "",
76
- DISTRICT: "",
77
- NEFT: false,
78
- IMPS: false,
79
- SWIFT: "",
80
- ISO3166: "",
81
- BANK: "",
82
- BANKCODE: "",
83
- IFSC: "",
67
+ MICR: undefined,
68
+ BRANCH: undefined,
69
+ ADDRESS: undefined,
70
+ STATE: undefined,
71
+ CONTACT: undefined,
72
+ UPI: undefined,
73
+ RTGS: undefined,
74
+ CITY: undefined,
75
+ CENTRE: undefined,
76
+ DISTRICT: undefined,
77
+ NEFT: undefined,
78
+ IMPS: undefined,
79
+ SWIFT: undefined,
80
+ ISO3166: undefined,
81
+ BANK: undefined,
82
+ BANKCODE: undefined,
83
+ IFSC: undefined,
84
84
  };
85
85
  }
86
86
  exports.BankData = {
87
87
  encode(message, writer = minimal_1.default.Writer.create()) {
88
- if (message.MICR !== "") {
88
+ if (message.MICR !== undefined) {
89
89
  writer.uint32(10).string(message.MICR);
90
90
  }
91
- if (message.BRANCH !== "") {
91
+ if (message.BRANCH !== undefined) {
92
92
  writer.uint32(18).string(message.BRANCH);
93
93
  }
94
- if (message.ADDRESS !== "") {
94
+ if (message.ADDRESS !== undefined) {
95
95
  writer.uint32(26).string(message.ADDRESS);
96
96
  }
97
- if (message.STATE !== "") {
97
+ if (message.STATE !== undefined) {
98
98
  writer.uint32(34).string(message.STATE);
99
99
  }
100
- if (message.CONTACT !== "") {
100
+ if (message.CONTACT !== undefined) {
101
101
  writer.uint32(42).string(message.CONTACT);
102
102
  }
103
- if (message.UPI !== false) {
103
+ if (message.UPI !== undefined) {
104
104
  writer.uint32(48).bool(message.UPI);
105
105
  }
106
- if (message.RTGS !== false) {
106
+ if (message.RTGS !== undefined) {
107
107
  writer.uint32(56).bool(message.RTGS);
108
108
  }
109
- if (message.CITY !== "") {
109
+ if (message.CITY !== undefined) {
110
110
  writer.uint32(66).string(message.CITY);
111
111
  }
112
- if (message.CENTRE !== "") {
112
+ if (message.CENTRE !== undefined) {
113
113
  writer.uint32(74).string(message.CENTRE);
114
114
  }
115
- if (message.DISTRICT !== "") {
115
+ if (message.DISTRICT !== undefined) {
116
116
  writer.uint32(82).string(message.DISTRICT);
117
117
  }
118
- if (message.NEFT !== false) {
118
+ if (message.NEFT !== undefined) {
119
119
  writer.uint32(88).bool(message.NEFT);
120
120
  }
121
- if (message.IMPS !== false) {
121
+ if (message.IMPS !== undefined) {
122
122
  writer.uint32(96).bool(message.IMPS);
123
123
  }
124
- if (message.SWIFT !== "") {
124
+ if (message.SWIFT !== undefined) {
125
125
  writer.uint32(106).string(message.SWIFT);
126
126
  }
127
- if (message.ISO3166 !== "") {
127
+ if (message.ISO3166 !== undefined) {
128
128
  writer.uint32(114).string(message.ISO3166);
129
129
  }
130
- if (message.BANK !== "") {
130
+ if (message.BANK !== undefined) {
131
131
  writer.uint32(122).string(message.BANK);
132
132
  }
133
- if (message.BANKCODE !== "") {
133
+ if (message.BANKCODE !== undefined) {
134
134
  writer.uint32(130).string(message.BANKCODE);
135
135
  }
136
- if (message.IFSC !== "") {
136
+ if (message.IFSC !== undefined) {
137
137
  writer.uint32(138).string(message.IFSC);
138
138
  }
139
139
  return writer;
@@ -257,76 +257,76 @@ exports.BankData = {
257
257
  },
258
258
  fromJSON(object) {
259
259
  return {
260
- MICR: isSet(object.MICR) ? globalThis.String(object.MICR) : "",
261
- BRANCH: isSet(object.BRANCH) ? globalThis.String(object.BRANCH) : "",
262
- ADDRESS: isSet(object.ADDRESS) ? globalThis.String(object.ADDRESS) : "",
263
- STATE: isSet(object.STATE) ? globalThis.String(object.STATE) : "",
264
- CONTACT: isSet(object.CONTACT) ? globalThis.String(object.CONTACT) : "",
265
- UPI: isSet(object.UPI) ? globalThis.Boolean(object.UPI) : false,
266
- RTGS: isSet(object.RTGS) ? globalThis.Boolean(object.RTGS) : false,
267
- CITY: isSet(object.CITY) ? globalThis.String(object.CITY) : "",
268
- CENTRE: isSet(object.CENTRE) ? globalThis.String(object.CENTRE) : "",
269
- DISTRICT: isSet(object.DISTRICT) ? globalThis.String(object.DISTRICT) : "",
270
- NEFT: isSet(object.NEFT) ? globalThis.Boolean(object.NEFT) : false,
271
- IMPS: isSet(object.IMPS) ? globalThis.Boolean(object.IMPS) : false,
272
- SWIFT: isSet(object.SWIFT) ? globalThis.String(object.SWIFT) : "",
273
- ISO3166: isSet(object.ISO3166) ? globalThis.String(object.ISO3166) : "",
274
- BANK: isSet(object.BANK) ? globalThis.String(object.BANK) : "",
275
- BANKCODE: isSet(object.BANKCODE) ? globalThis.String(object.BANKCODE) : "",
276
- IFSC: isSet(object.IFSC) ? globalThis.String(object.IFSC) : "",
260
+ MICR: isSet(object.MICR) ? globalThis.String(object.MICR) : undefined,
261
+ BRANCH: isSet(object.BRANCH) ? globalThis.String(object.BRANCH) : undefined,
262
+ ADDRESS: isSet(object.ADDRESS) ? globalThis.String(object.ADDRESS) : undefined,
263
+ STATE: isSet(object.STATE) ? globalThis.String(object.STATE) : undefined,
264
+ CONTACT: isSet(object.CONTACT) ? globalThis.String(object.CONTACT) : undefined,
265
+ UPI: isSet(object.UPI) ? globalThis.Boolean(object.UPI) : undefined,
266
+ RTGS: isSet(object.RTGS) ? globalThis.Boolean(object.RTGS) : undefined,
267
+ CITY: isSet(object.CITY) ? globalThis.String(object.CITY) : undefined,
268
+ CENTRE: isSet(object.CENTRE) ? globalThis.String(object.CENTRE) : undefined,
269
+ DISTRICT: isSet(object.DISTRICT) ? globalThis.String(object.DISTRICT) : undefined,
270
+ NEFT: isSet(object.NEFT) ? globalThis.Boolean(object.NEFT) : undefined,
271
+ IMPS: isSet(object.IMPS) ? globalThis.Boolean(object.IMPS) : undefined,
272
+ SWIFT: isSet(object.SWIFT) ? globalThis.String(object.SWIFT) : undefined,
273
+ ISO3166: isSet(object.ISO3166) ? globalThis.String(object.ISO3166) : undefined,
274
+ BANK: isSet(object.BANK) ? globalThis.String(object.BANK) : undefined,
275
+ BANKCODE: isSet(object.BANKCODE) ? globalThis.String(object.BANKCODE) : undefined,
276
+ IFSC: isSet(object.IFSC) ? globalThis.String(object.IFSC) : undefined,
277
277
  };
278
278
  },
279
279
  toJSON(message) {
280
280
  const obj = {};
281
- if (message.MICR !== "") {
281
+ if (message.MICR !== undefined) {
282
282
  obj.MICR = message.MICR;
283
283
  }
284
- if (message.BRANCH !== "") {
284
+ if (message.BRANCH !== undefined) {
285
285
  obj.BRANCH = message.BRANCH;
286
286
  }
287
- if (message.ADDRESS !== "") {
287
+ if (message.ADDRESS !== undefined) {
288
288
  obj.ADDRESS = message.ADDRESS;
289
289
  }
290
- if (message.STATE !== "") {
290
+ if (message.STATE !== undefined) {
291
291
  obj.STATE = message.STATE;
292
292
  }
293
- if (message.CONTACT !== "") {
293
+ if (message.CONTACT !== undefined) {
294
294
  obj.CONTACT = message.CONTACT;
295
295
  }
296
- if (message.UPI !== false) {
296
+ if (message.UPI !== undefined) {
297
297
  obj.UPI = message.UPI;
298
298
  }
299
- if (message.RTGS !== false) {
299
+ if (message.RTGS !== undefined) {
300
300
  obj.RTGS = message.RTGS;
301
301
  }
302
- if (message.CITY !== "") {
302
+ if (message.CITY !== undefined) {
303
303
  obj.CITY = message.CITY;
304
304
  }
305
- if (message.CENTRE !== "") {
305
+ if (message.CENTRE !== undefined) {
306
306
  obj.CENTRE = message.CENTRE;
307
307
  }
308
- if (message.DISTRICT !== "") {
308
+ if (message.DISTRICT !== undefined) {
309
309
  obj.DISTRICT = message.DISTRICT;
310
310
  }
311
- if (message.NEFT !== false) {
311
+ if (message.NEFT !== undefined) {
312
312
  obj.NEFT = message.NEFT;
313
313
  }
314
- if (message.IMPS !== false) {
314
+ if (message.IMPS !== undefined) {
315
315
  obj.IMPS = message.IMPS;
316
316
  }
317
- if (message.SWIFT !== "") {
317
+ if (message.SWIFT !== undefined) {
318
318
  obj.SWIFT = message.SWIFT;
319
319
  }
320
- if (message.ISO3166 !== "") {
320
+ if (message.ISO3166 !== undefined) {
321
321
  obj.ISO3166 = message.ISO3166;
322
322
  }
323
- if (message.BANK !== "") {
323
+ if (message.BANK !== undefined) {
324
324
  obj.BANK = message.BANK;
325
325
  }
326
- if (message.BANKCODE !== "") {
326
+ if (message.BANKCODE !== undefined) {
327
327
  obj.BANKCODE = message.BANKCODE;
328
328
  }
329
- if (message.IFSC !== "") {
329
+ if (message.IFSC !== undefined) {
330
330
  obj.IFSC = message.IFSC;
331
331
  }
332
332
  return obj;
@@ -336,23 +336,23 @@ exports.BankData = {
336
336
  },
337
337
  fromPartial(object) {
338
338
  const message = createBaseBankData();
339
- message.MICR = object.MICR ?? "";
340
- message.BRANCH = object.BRANCH ?? "";
341
- message.ADDRESS = object.ADDRESS ?? "";
342
- message.STATE = object.STATE ?? "";
343
- message.CONTACT = object.CONTACT ?? "";
344
- message.UPI = object.UPI ?? false;
345
- message.RTGS = object.RTGS ?? false;
346
- message.CITY = object.CITY ?? "";
347
- message.CENTRE = object.CENTRE ?? "";
348
- message.DISTRICT = object.DISTRICT ?? "";
349
- message.NEFT = object.NEFT ?? false;
350
- message.IMPS = object.IMPS ?? false;
351
- message.SWIFT = object.SWIFT ?? "";
352
- message.ISO3166 = object.ISO3166 ?? "";
353
- message.BANK = object.BANK ?? "";
354
- message.BANKCODE = object.BANKCODE ?? "";
355
- message.IFSC = object.IFSC ?? "";
339
+ message.MICR = object.MICR ?? undefined;
340
+ message.BRANCH = object.BRANCH ?? undefined;
341
+ message.ADDRESS = object.ADDRESS ?? undefined;
342
+ message.STATE = object.STATE ?? undefined;
343
+ message.CONTACT = object.CONTACT ?? undefined;
344
+ message.UPI = object.UPI ?? undefined;
345
+ message.RTGS = object.RTGS ?? undefined;
346
+ message.CITY = object.CITY ?? undefined;
347
+ message.CENTRE = object.CENTRE ?? undefined;
348
+ message.DISTRICT = object.DISTRICT ?? undefined;
349
+ message.NEFT = object.NEFT ?? undefined;
350
+ message.IMPS = object.IMPS ?? undefined;
351
+ message.SWIFT = object.SWIFT ?? undefined;
352
+ message.ISO3166 = object.ISO3166 ?? undefined;
353
+ message.BANK = object.BANK ?? undefined;
354
+ message.BANKCODE = object.BANKCODE ?? undefined;
355
+ message.IFSC = object.IFSC ?? undefined;
356
356
  return message;
357
357
  },
358
358
  };