@stashfin/grpc 1.2.132 → 1.2.134

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 (199) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.d.ts +0 -57
  3. package/ts/bureau/getbasicdetails.js +0 -341
  4. package/ts/bureau/getbureau.d.ts +0 -157
  5. package/ts/bureau/getbureau.js +0 -1376
  6. package/ts/bureau/getdemogs.d.ts +0 -113
  7. package/ts/bureau/getdemogs.js +0 -611
  8. package/ts/bureau/getreport.d.ts +0 -184
  9. package/ts/bureau/getreport.js +0 -1581
  10. package/ts/bureau.d.ts +0 -56
  11. package/ts/bureau.js +0 -44
  12. package/ts/colender/disburseLoan.d.ts +0 -44
  13. package/ts/colender/disburseLoan.js +0 -256
  14. package/ts/colender/forecloseLoan.d.ts +0 -41
  15. package/ts/colender/forecloseLoan.js +0 -205
  16. package/ts/colender/repayLoan.d.ts +0 -48
  17. package/ts/colender/repayLoan.js +0 -313
  18. package/ts/colender.d.ts +0 -56
  19. package/ts/colender.js +0 -44
  20. package/ts/customers/aa/getbanklist.d.ts +0 -48
  21. package/ts/customers/aa/getbanklist.js +0 -198
  22. package/ts/customers/aa/initiate.d.ts +0 -40
  23. package/ts/customers/aa/initiate.js +0 -209
  24. package/ts/customers/addaddress.d.ts +0 -50
  25. package/ts/customers/addaddress.js +0 -265
  26. package/ts/customers/addbankaccountdetails.d.ts +0 -37
  27. package/ts/customers/addbankaccountdetails.js +0 -147
  28. package/ts/customers/addgstnumber.d.ts +0 -35
  29. package/ts/customers/addgstnumber.js +0 -117
  30. package/ts/customers/addsuspendedcustomer.d.ts +0 -36
  31. package/ts/customers/addsuspendedcustomer.js +0 -133
  32. package/ts/customers/adduserapps.d.ts +0 -74
  33. package/ts/customers/adduserapps.js +0 -210
  34. package/ts/customers/changempin.d.ts +0 -36
  35. package/ts/customers/changempin.js +0 -133
  36. package/ts/customers/createcustomerreference.d.ts +0 -43
  37. package/ts/customers/createcustomerreference.js +0 -226
  38. package/ts/customers/deleteprofile.d.ts +0 -35
  39. package/ts/customers/deleteprofile.js +0 -120
  40. package/ts/customers/disablempin.d.ts +0 -34
  41. package/ts/customers/disablempin.js +0 -104
  42. package/ts/customers/fetchrcprofile.d.ts +0 -45
  43. package/ts/customers/fetchrcprofile.js +0 -271
  44. package/ts/customers/forgotmpin.d.ts +0 -35
  45. package/ts/customers/forgotmpin.js +0 -117
  46. package/ts/customers/forgotmpinotp.d.ts +0 -34
  47. package/ts/customers/forgotmpinotp.js +0 -104
  48. package/ts/customers/forgotmpinverify.d.ts +0 -36
  49. package/ts/customers/forgotmpinverify.js +0 -133
  50. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  51. package/ts/customers/getbankaccountdetails.js +0 -134
  52. package/ts/customers/getbanklist.d.ts +0 -48
  53. package/ts/customers/getbanklist.js +0 -198
  54. package/ts/customers/getbasicinfo.d.ts +0 -56
  55. package/ts/customers/getbasicinfo.js +0 -323
  56. package/ts/customers/getcities.d.ts +0 -47
  57. package/ts/customers/getcities.js +0 -183
  58. package/ts/customers/getcustomerbyid.d.ts +0 -128
  59. package/ts/customers/getcustomerbyid.js +0 -1411
  60. package/ts/customers/getdashboard.d.ts +0 -91
  61. package/ts/customers/getdashboard.js +0 -618
  62. package/ts/customers/getdashboardmaincard.d.ts +0 -69
  63. package/ts/customers/getdashboardmaincard.js +0 -520
  64. package/ts/customers/getdocuments.d.ts +0 -36
  65. package/ts/customers/getdocuments.js +0 -134
  66. package/ts/customers/getkycweburl.d.ts +0 -34
  67. package/ts/customers/getkycweburl.js +0 -104
  68. package/ts/customers/getprofessionalinfo.d.ts +0 -54
  69. package/ts/customers/getprofessionalinfo.js +0 -286
  70. package/ts/customers/getprofile.d.ts +0 -54
  71. package/ts/customers/getprofile.js +0 -296
  72. package/ts/customers/getselfieetxnid.d.ts +0 -34
  73. package/ts/customers/getselfieetxnid.js +0 -104
  74. package/ts/customers/getstates.d.ts +0 -46
  75. package/ts/customers/getstates.js +0 -170
  76. package/ts/customers/getstep.d.ts +0 -69
  77. package/ts/customers/getstep.js +0 -406
  78. package/ts/customers/profilebasic.d.ts +0 -38
  79. package/ts/customers/profilebasic.js +0 -161
  80. package/ts/customers/profileupdatetnc.d.ts +0 -35
  81. package/ts/customers/profileupdatetnc.js +0 -117
  82. package/ts/customers/resetmpin.d.ts +0 -36
  83. package/ts/customers/resetmpin.js +0 -133
  84. package/ts/customers/savebasicdetails.d.ts +0 -47
  85. package/ts/customers/savebasicdetails.js +0 -185
  86. package/ts/customers/saveunlocklimit.d.ts +0 -34
  87. package/ts/customers/saveunlocklimit.js +0 -104
  88. package/ts/customers/sendemailtoken.d.ts +0 -35
  89. package/ts/customers/sendemailtoken.js +0 -117
  90. package/ts/customers/sendotp.d.ts +0 -38
  91. package/ts/customers/sendotp.js +0 -165
  92. package/ts/customers/sendotptoemail.d.ts +0 -35
  93. package/ts/customers/sendotptoemail.js +0 -117
  94. package/ts/customers/setmpin.d.ts +0 -36
  95. package/ts/customers/setmpin.js +0 -133
  96. package/ts/customers/step1.d.ts +0 -71
  97. package/ts/customers/step1.js +0 -423
  98. package/ts/customers/step10.d.ts +0 -73
  99. package/ts/customers/step10.js +0 -459
  100. package/ts/customers/step2.d.ts +0 -67
  101. package/ts/customers/step2.js +0 -366
  102. package/ts/customers/step7.d.ts +0 -68
  103. package/ts/customers/step7.js +0 -381
  104. package/ts/customers/step8.d.ts +0 -69
  105. package/ts/customers/step8.js +0 -395
  106. package/ts/customers/step9.d.ts +0 -75
  107. package/ts/customers/step9.js +0 -489
  108. package/ts/customers/stepstatic.d.ts +0 -66
  109. package/ts/customers/stepstatic.js +0 -354
  110. package/ts/customers/updatedigilockertxn.d.ts +0 -37
  111. package/ts/customers/updatedigilockertxn.js +0 -147
  112. package/ts/customers/updatedob.d.ts +0 -35
  113. package/ts/customers/updatedob.js +0 -117
  114. package/ts/customers/updatehypervergetxn.d.ts +0 -36
  115. package/ts/customers/updatehypervergetxn.js +0 -133
  116. package/ts/customers/updatelocdisabled.d.ts +0 -35
  117. package/ts/customers/updatelocdisabled.js +0 -117
  118. package/ts/customers/updatelocstatus.d.ts +0 -36
  119. package/ts/customers/updatelocstatus.js +0 -133
  120. package/ts/customers/updatemobile.d.ts +0 -35
  121. package/ts/customers/updatemobile.js +0 -117
  122. package/ts/customers/updatemobilesendotp.d.ts +0 -35
  123. package/ts/customers/updatemobilesendotp.js +0 -117
  124. package/ts/customers/updatemobileverifyotp.d.ts +0 -36
  125. package/ts/customers/updatemobileverifyotp.js +0 -133
  126. package/ts/customers/updateokyctxn.d.ts +0 -37
  127. package/ts/customers/updateokyctxn.js +0 -147
  128. package/ts/customers/updateselfieetxn.d.ts +0 -36
  129. package/ts/customers/updateselfieetxn.js +0 -133
  130. package/ts/customers/validatepan.d.ts +0 -45
  131. package/ts/customers/validatepan.js +0 -274
  132. package/ts/customers/verifyemail.d.ts +0 -35
  133. package/ts/customers/verifyemail.js +0 -117
  134. package/ts/customers/verifympin.d.ts +0 -37
  135. package/ts/customers/verifympin.js +0 -149
  136. package/ts/customers/verifyotp.d.ts +0 -41
  137. package/ts/customers/verifyotp.js +0 -205
  138. package/ts/customers/verifyotptoemail.d.ts +0 -35
  139. package/ts/customers/verifyotptoemail.js +0 -117
  140. package/ts/customers.d.ts +0 -764
  141. package/ts/customers.js +0 -548
  142. package/ts/example.d.ts +0 -78
  143. package/ts/example.js +0 -199
  144. package/ts/google/protobuf/timestamp.d.ts +0 -127
  145. package/ts/google/protobuf/timestamp.js +0 -97
  146. package/ts/loans/approveloan.d.ts +0 -40
  147. package/ts/loans/approveloan.js +0 -189
  148. package/ts/loans/banklist.d.ts +0 -37
  149. package/ts/loans/banklist.js +0 -148
  150. package/ts/loans/calculateemi.d.ts +0 -57
  151. package/ts/loans/calculateemi.js +0 -340
  152. package/ts/loans/creditlimit.d.ts +0 -51
  153. package/ts/loans/creditlimit.js +0 -381
  154. package/ts/loans/futurepaymentmoredetails.d.ts +0 -50
  155. package/ts/loans/futurepaymentmoredetails.js +0 -230
  156. package/ts/loans/getcustomerloanstatus.d.ts +0 -34
  157. package/ts/loans/getcustomerloanstatus.js +0 -104
  158. package/ts/loans/getloanbyid.d.ts +0 -53
  159. package/ts/loans/getloanbyid.js +0 -393
  160. package/ts/loans/getpendingemiamount.d.ts +0 -34
  161. package/ts/loans/getpendingemiamount.js +0 -104
  162. package/ts/loans/getstaticfields.d.ts +0 -86
  163. package/ts/loans/getstaticfields.js +0 -801
  164. package/ts/loans/getsummarystaticfields.d.ts +0 -80
  165. package/ts/loans/getsummarystaticfields.js +0 -700
  166. package/ts/loans/loansummary.d.ts +0 -66
  167. package/ts/loans/loansummary.js +0 -593
  168. package/ts/loans/paymentallocation.d.ts +0 -37
  169. package/ts/loans/paymentallocation.js +0 -147
  170. package/ts/loans/paymenthistory.d.ts +0 -47
  171. package/ts/loans/paymenthistory.js +0 -188
  172. package/ts/loans/restructureloan.d.ts +0 -36
  173. package/ts/loans/restructureloan.js +0 -133
  174. package/ts/loans/sendemail.d.ts +0 -35
  175. package/ts/loans/sendemail.js +0 -117
  176. package/ts/loans/sendnocemail.d.ts +0 -35
  177. package/ts/loans/sendnocemail.js +0 -117
  178. package/ts/loans/transactionlist.d.ts +0 -52
  179. package/ts/loans/transactionlist.js +0 -257
  180. package/ts/loans/updateinstallments.d.ts +0 -42
  181. package/ts/loans/updateinstallments.js +0 -226
  182. package/ts/loans/updateloan.d.ts +0 -39
  183. package/ts/loans/updateloan.js +0 -175
  184. package/ts/loans.d.ts +0 -266
  185. package/ts/loans.js +0 -194
  186. package/ts/payments.d.ts +0 -239
  187. package/ts/payments.js +0 -1117
  188. package/ts/stashcash/creditsc.d.ts +0 -54
  189. package/ts/stashcash/creditsc.js +0 -301
  190. package/ts/stashcash/debitsc.d.ts +0 -59
  191. package/ts/stashcash/debitsc.js +0 -380
  192. package/ts/stashcash/getscbalance.d.ts +0 -53
  193. package/ts/stashcash/getscbalance.js +0 -293
  194. package/ts/stashcash/getschistory.d.ts +0 -73
  195. package/ts/stashcash/getschistory.js +0 -479
  196. package/ts/stashcash/reversesc.d.ts +0 -52
  197. package/ts/stashcash/reversesc.js +0 -273
  198. package/ts/stashcash.d.ts +0 -84
  199. package/ts/stashcash.js +0 -64
@@ -1,1376 +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: bureau/getbureau.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.dpdChar = exports.Enquiries = exports.DPD = exports.TradeLine = exports.Report = exports.bureauResponse = exports.bureauRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const long_1 = __importDefault(require("long"));
14
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
- exports.protobufPackage = "bureau.getbureau";
16
- function createBasebureauRequest() {
17
- return { customer_id: 0, range: 0, bureau_type: 0, source: "", pull_type: 0 };
18
- }
19
- exports.bureauRequest = {
20
- encode(message, writer = minimal_1.default.Writer.create()) {
21
- if (message.customer_id !== 0) {
22
- writer.uint32(8).int64(message.customer_id);
23
- }
24
- if (message.range !== 0) {
25
- writer.uint32(16).int32(message.range);
26
- }
27
- if (message.bureau_type !== 0) {
28
- writer.uint32(24).int32(message.bureau_type);
29
- }
30
- if (message.source !== "") {
31
- writer.uint32(34).string(message.source);
32
- }
33
- if (message.pull_type !== 0) {
34
- writer.uint32(40).int32(message.pull_type);
35
- }
36
- return writer;
37
- },
38
- decode(input, length) {
39
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
40
- let end = length === undefined ? reader.len : reader.pos + length;
41
- const message = createBasebureauRequest();
42
- while (reader.pos < end) {
43
- const tag = reader.uint32();
44
- switch (tag >>> 3) {
45
- case 1:
46
- if (tag !== 8) {
47
- break;
48
- }
49
- message.customer_id = longToNumber(reader.int64());
50
- continue;
51
- case 2:
52
- if (tag !== 16) {
53
- break;
54
- }
55
- message.range = reader.int32();
56
- continue;
57
- case 3:
58
- if (tag !== 24) {
59
- break;
60
- }
61
- message.bureau_type = reader.int32();
62
- continue;
63
- case 4:
64
- if (tag !== 34) {
65
- break;
66
- }
67
- message.source = reader.string();
68
- continue;
69
- case 5:
70
- if (tag !== 40) {
71
- break;
72
- }
73
- message.pull_type = reader.int32();
74
- continue;
75
- }
76
- if ((tag & 7) === 4 || tag === 0) {
77
- break;
78
- }
79
- reader.skipType(tag & 7);
80
- }
81
- return message;
82
- },
83
- fromJSON(object) {
84
- return {
85
- customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
86
- range: isSet(object.range) ? globalThis.Number(object.range) : 0,
87
- bureau_type: isSet(object.bureau_type) ? globalThis.Number(object.bureau_type) : 0,
88
- source: isSet(object.source) ? globalThis.String(object.source) : "",
89
- pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
90
- };
91
- },
92
- toJSON(message) {
93
- const obj = {};
94
- if (message.customer_id !== 0) {
95
- obj.customer_id = Math.round(message.customer_id);
96
- }
97
- if (message.range !== 0) {
98
- obj.range = Math.round(message.range);
99
- }
100
- if (message.bureau_type !== 0) {
101
- obj.bureau_type = Math.round(message.bureau_type);
102
- }
103
- if (message.source !== "") {
104
- obj.source = message.source;
105
- }
106
- if (message.pull_type !== 0) {
107
- obj.pull_type = Math.round(message.pull_type);
108
- }
109
- return obj;
110
- },
111
- create(base) {
112
- return exports.bureauRequest.fromPartial(base ?? {});
113
- },
114
- fromPartial(object) {
115
- const message = createBasebureauRequest();
116
- message.customer_id = object.customer_id ?? 0;
117
- message.range = object.range ?? 0;
118
- message.bureau_type = object.bureau_type ?? 0;
119
- message.source = object.source ?? "";
120
- message.pull_type = object.pull_type ?? 0;
121
- return message;
122
- },
123
- };
124
- function createBasebureauResponse() {
125
- return { status: "", data: undefined };
126
- }
127
- exports.bureauResponse = {
128
- encode(message, writer = minimal_1.default.Writer.create()) {
129
- if (message.status !== "") {
130
- writer.uint32(10).string(message.status);
131
- }
132
- if (message.data !== undefined) {
133
- exports.Report.encode(message.data, writer.uint32(18).fork()).ldelim();
134
- }
135
- return writer;
136
- },
137
- decode(input, length) {
138
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
139
- let end = length === undefined ? reader.len : reader.pos + length;
140
- const message = createBasebureauResponse();
141
- while (reader.pos < end) {
142
- const tag = reader.uint32();
143
- switch (tag >>> 3) {
144
- case 1:
145
- if (tag !== 10) {
146
- break;
147
- }
148
- message.status = reader.string();
149
- continue;
150
- case 2:
151
- if (tag !== 18) {
152
- break;
153
- }
154
- message.data = exports.Report.decode(reader, reader.uint32());
155
- continue;
156
- }
157
- if ((tag & 7) === 4 || tag === 0) {
158
- break;
159
- }
160
- reader.skipType(tag & 7);
161
- }
162
- return message;
163
- },
164
- fromJSON(object) {
165
- return {
166
- status: isSet(object.status) ? globalThis.String(object.status) : "",
167
- data: isSet(object.data) ? exports.Report.fromJSON(object.data) : undefined,
168
- };
169
- },
170
- toJSON(message) {
171
- const obj = {};
172
- if (message.status !== "") {
173
- obj.status = message.status;
174
- }
175
- if (message.data !== undefined) {
176
- obj.data = exports.Report.toJSON(message.data);
177
- }
178
- return obj;
179
- },
180
- create(base) {
181
- return exports.bureauResponse.fromPartial(base ?? {});
182
- },
183
- fromPartial(object) {
184
- const message = createBasebureauResponse();
185
- message.status = object.status ?? "";
186
- message.data = (object.data !== undefined && object.data !== null) ? exports.Report.fromPartial(object.data) : undefined;
187
- return message;
188
- },
189
- };
190
- function createBaseReport() {
191
- return {
192
- report_id: 0,
193
- score: 0,
194
- type: "",
195
- trdelines: [],
196
- dpd: undefined,
197
- enquiries: undefined,
198
- dpd_char: undefined,
199
- written_off: 0,
200
- suit_filled: "",
201
- };
202
- }
203
- exports.Report = {
204
- encode(message, writer = minimal_1.default.Writer.create()) {
205
- if (message.report_id !== 0) {
206
- writer.uint32(8).int32(message.report_id);
207
- }
208
- if (message.score !== 0) {
209
- writer.uint32(16).int32(message.score);
210
- }
211
- if (message.type !== "") {
212
- writer.uint32(26).string(message.type);
213
- }
214
- for (const v of message.trdelines) {
215
- exports.TradeLine.encode(v, writer.uint32(34).fork()).ldelim();
216
- }
217
- if (message.dpd !== undefined) {
218
- exports.DPD.encode(message.dpd, writer.uint32(42).fork()).ldelim();
219
- }
220
- if (message.enquiries !== undefined) {
221
- exports.Enquiries.encode(message.enquiries, writer.uint32(50).fork()).ldelim();
222
- }
223
- if (message.dpd_char !== undefined) {
224
- exports.dpdChar.encode(message.dpd_char, writer.uint32(58).fork()).ldelim();
225
- }
226
- if (message.written_off !== 0) {
227
- writer.uint32(64).int32(message.written_off);
228
- }
229
- if (message.suit_filled !== "") {
230
- writer.uint32(74).string(message.suit_filled);
231
- }
232
- return writer;
233
- },
234
- decode(input, length) {
235
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
236
- let end = length === undefined ? reader.len : reader.pos + length;
237
- const message = createBaseReport();
238
- while (reader.pos < end) {
239
- const tag = reader.uint32();
240
- switch (tag >>> 3) {
241
- case 1:
242
- if (tag !== 8) {
243
- break;
244
- }
245
- message.report_id = reader.int32();
246
- continue;
247
- case 2:
248
- if (tag !== 16) {
249
- break;
250
- }
251
- message.score = reader.int32();
252
- continue;
253
- case 3:
254
- if (tag !== 26) {
255
- break;
256
- }
257
- message.type = reader.string();
258
- continue;
259
- case 4:
260
- if (tag !== 34) {
261
- break;
262
- }
263
- message.trdelines.push(exports.TradeLine.decode(reader, reader.uint32()));
264
- continue;
265
- case 5:
266
- if (tag !== 42) {
267
- break;
268
- }
269
- message.dpd = exports.DPD.decode(reader, reader.uint32());
270
- continue;
271
- case 6:
272
- if (tag !== 50) {
273
- break;
274
- }
275
- message.enquiries = exports.Enquiries.decode(reader, reader.uint32());
276
- continue;
277
- case 7:
278
- if (tag !== 58) {
279
- break;
280
- }
281
- message.dpd_char = exports.dpdChar.decode(reader, reader.uint32());
282
- continue;
283
- case 8:
284
- if (tag !== 64) {
285
- break;
286
- }
287
- message.written_off = reader.int32();
288
- continue;
289
- case 9:
290
- if (tag !== 74) {
291
- break;
292
- }
293
- message.suit_filled = reader.string();
294
- continue;
295
- }
296
- if ((tag & 7) === 4 || tag === 0) {
297
- break;
298
- }
299
- reader.skipType(tag & 7);
300
- }
301
- return message;
302
- },
303
- fromJSON(object) {
304
- return {
305
- report_id: isSet(object.report_id) ? globalThis.Number(object.report_id) : 0,
306
- score: isSet(object.score) ? globalThis.Number(object.score) : 0,
307
- type: isSet(object.type) ? globalThis.String(object.type) : "",
308
- trdelines: globalThis.Array.isArray(object?.trdelines)
309
- ? object.trdelines.map((e) => exports.TradeLine.fromJSON(e))
310
- : [],
311
- dpd: isSet(object.dpd) ? exports.DPD.fromJSON(object.dpd) : undefined,
312
- enquiries: isSet(object.enquiries) ? exports.Enquiries.fromJSON(object.enquiries) : undefined,
313
- dpd_char: isSet(object.dpd_char) ? exports.dpdChar.fromJSON(object.dpd_char) : undefined,
314
- written_off: isSet(object.written_off) ? globalThis.Number(object.written_off) : 0,
315
- suit_filled: isSet(object.suit_filled) ? globalThis.String(object.suit_filled) : "",
316
- };
317
- },
318
- toJSON(message) {
319
- const obj = {};
320
- if (message.report_id !== 0) {
321
- obj.report_id = Math.round(message.report_id);
322
- }
323
- if (message.score !== 0) {
324
- obj.score = Math.round(message.score);
325
- }
326
- if (message.type !== "") {
327
- obj.type = message.type;
328
- }
329
- if (message.trdelines?.length) {
330
- obj.trdelines = message.trdelines.map((e) => exports.TradeLine.toJSON(e));
331
- }
332
- if (message.dpd !== undefined) {
333
- obj.dpd = exports.DPD.toJSON(message.dpd);
334
- }
335
- if (message.enquiries !== undefined) {
336
- obj.enquiries = exports.Enquiries.toJSON(message.enquiries);
337
- }
338
- if (message.dpd_char !== undefined) {
339
- obj.dpd_char = exports.dpdChar.toJSON(message.dpd_char);
340
- }
341
- if (message.written_off !== 0) {
342
- obj.written_off = Math.round(message.written_off);
343
- }
344
- if (message.suit_filled !== "") {
345
- obj.suit_filled = message.suit_filled;
346
- }
347
- return obj;
348
- },
349
- create(base) {
350
- return exports.Report.fromPartial(base ?? {});
351
- },
352
- fromPartial(object) {
353
- const message = createBaseReport();
354
- message.report_id = object.report_id ?? 0;
355
- message.score = object.score ?? 0;
356
- message.type = object.type ?? "";
357
- message.trdelines = object.trdelines?.map((e) => exports.TradeLine.fromPartial(e)) || [];
358
- message.dpd = (object.dpd !== undefined && object.dpd !== null) ? exports.DPD.fromPartial(object.dpd) : undefined;
359
- message.enquiries = (object.enquiries !== undefined && object.enquiries !== null)
360
- ? exports.Enquiries.fromPartial(object.enquiries)
361
- : undefined;
362
- message.dpd_char = (object.dpd_char !== undefined && object.dpd_char !== null)
363
- ? exports.dpdChar.fromPartial(object.dpd_char)
364
- : undefined;
365
- message.written_off = object.written_off ?? 0;
366
- message.suit_filled = object.suit_filled ?? "";
367
- return message;
368
- },
369
- };
370
- function createBaseTradeLine() {
371
- return {
372
- account_id: 0,
373
- account_type: "",
374
- current_balance: 0,
375
- date_closed: "",
376
- last_payment_date: "",
377
- disbursed_date: "",
378
- date_reported: "",
379
- sanctioned_amount: 0,
380
- ownership_indicator: "",
381
- suit_filed: "",
382
- overdue_amount: 0,
383
- settled_status: "",
384
- account_status: "",
385
- emi_amount: 0,
386
- credit_limit: 0,
387
- };
388
- }
389
- exports.TradeLine = {
390
- encode(message, writer = minimal_1.default.Writer.create()) {
391
- if (message.account_id !== 0) {
392
- writer.uint32(8).int32(message.account_id);
393
- }
394
- if (message.account_type !== "") {
395
- writer.uint32(18).string(message.account_type);
396
- }
397
- if (message.current_balance !== 0) {
398
- writer.uint32(24).int32(message.current_balance);
399
- }
400
- if (message.date_closed !== "") {
401
- writer.uint32(34).string(message.date_closed);
402
- }
403
- if (message.last_payment_date !== "") {
404
- writer.uint32(42).string(message.last_payment_date);
405
- }
406
- if (message.disbursed_date !== "") {
407
- writer.uint32(50).string(message.disbursed_date);
408
- }
409
- if (message.date_reported !== "") {
410
- writer.uint32(58).string(message.date_reported);
411
- }
412
- if (message.sanctioned_amount !== 0) {
413
- writer.uint32(64).int32(message.sanctioned_amount);
414
- }
415
- if (message.ownership_indicator !== "") {
416
- writer.uint32(74).string(message.ownership_indicator);
417
- }
418
- if (message.suit_filed !== "") {
419
- writer.uint32(82).string(message.suit_filed);
420
- }
421
- if (message.overdue_amount !== 0) {
422
- writer.uint32(88).int32(message.overdue_amount);
423
- }
424
- if (message.settled_status !== "") {
425
- writer.uint32(98).string(message.settled_status);
426
- }
427
- if (message.account_status !== "") {
428
- writer.uint32(106).string(message.account_status);
429
- }
430
- if (message.emi_amount !== 0) {
431
- writer.uint32(112).int64(message.emi_amount);
432
- }
433
- if (message.credit_limit !== 0) {
434
- writer.uint32(120).int64(message.credit_limit);
435
- }
436
- return writer;
437
- },
438
- decode(input, length) {
439
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
440
- let end = length === undefined ? reader.len : reader.pos + length;
441
- const message = createBaseTradeLine();
442
- while (reader.pos < end) {
443
- const tag = reader.uint32();
444
- switch (tag >>> 3) {
445
- case 1:
446
- if (tag !== 8) {
447
- break;
448
- }
449
- message.account_id = reader.int32();
450
- continue;
451
- case 2:
452
- if (tag !== 18) {
453
- break;
454
- }
455
- message.account_type = reader.string();
456
- continue;
457
- case 3:
458
- if (tag !== 24) {
459
- break;
460
- }
461
- message.current_balance = reader.int32();
462
- continue;
463
- case 4:
464
- if (tag !== 34) {
465
- break;
466
- }
467
- message.date_closed = reader.string();
468
- continue;
469
- case 5:
470
- if (tag !== 42) {
471
- break;
472
- }
473
- message.last_payment_date = reader.string();
474
- continue;
475
- case 6:
476
- if (tag !== 50) {
477
- break;
478
- }
479
- message.disbursed_date = reader.string();
480
- continue;
481
- case 7:
482
- if (tag !== 58) {
483
- break;
484
- }
485
- message.date_reported = reader.string();
486
- continue;
487
- case 8:
488
- if (tag !== 64) {
489
- break;
490
- }
491
- message.sanctioned_amount = reader.int32();
492
- continue;
493
- case 9:
494
- if (tag !== 74) {
495
- break;
496
- }
497
- message.ownership_indicator = reader.string();
498
- continue;
499
- case 10:
500
- if (tag !== 82) {
501
- break;
502
- }
503
- message.suit_filed = reader.string();
504
- continue;
505
- case 11:
506
- if (tag !== 88) {
507
- break;
508
- }
509
- message.overdue_amount = reader.int32();
510
- continue;
511
- case 12:
512
- if (tag !== 98) {
513
- break;
514
- }
515
- message.settled_status = reader.string();
516
- continue;
517
- case 13:
518
- if (tag !== 106) {
519
- break;
520
- }
521
- message.account_status = reader.string();
522
- continue;
523
- case 14:
524
- if (tag !== 112) {
525
- break;
526
- }
527
- message.emi_amount = longToNumber(reader.int64());
528
- continue;
529
- case 15:
530
- if (tag !== 120) {
531
- break;
532
- }
533
- message.credit_limit = longToNumber(reader.int64());
534
- continue;
535
- }
536
- if ((tag & 7) === 4 || tag === 0) {
537
- break;
538
- }
539
- reader.skipType(tag & 7);
540
- }
541
- return message;
542
- },
543
- fromJSON(object) {
544
- return {
545
- account_id: isSet(object.account_id) ? globalThis.Number(object.account_id) : 0,
546
- account_type: isSet(object.account_type) ? globalThis.String(object.account_type) : "",
547
- current_balance: isSet(object.current_balance) ? globalThis.Number(object.current_balance) : 0,
548
- date_closed: isSet(object.date_closed) ? globalThis.String(object.date_closed) : "",
549
- last_payment_date: isSet(object.last_payment_date) ? globalThis.String(object.last_payment_date) : "",
550
- disbursed_date: isSet(object.disbursed_date) ? globalThis.String(object.disbursed_date) : "",
551
- date_reported: isSet(object.date_reported) ? globalThis.String(object.date_reported) : "",
552
- sanctioned_amount: isSet(object.sanctioned_amount) ? globalThis.Number(object.sanctioned_amount) : 0,
553
- ownership_indicator: isSet(object.ownership_indicator) ? globalThis.String(object.ownership_indicator) : "",
554
- suit_filed: isSet(object.suit_filed) ? globalThis.String(object.suit_filed) : "",
555
- overdue_amount: isSet(object.overdue_amount) ? globalThis.Number(object.overdue_amount) : 0,
556
- settled_status: isSet(object.settled_status) ? globalThis.String(object.settled_status) : "",
557
- account_status: isSet(object.account_status) ? globalThis.String(object.account_status) : "",
558
- emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
559
- credit_limit: isSet(object.credit_limit) ? globalThis.Number(object.credit_limit) : 0,
560
- };
561
- },
562
- toJSON(message) {
563
- const obj = {};
564
- if (message.account_id !== 0) {
565
- obj.account_id = Math.round(message.account_id);
566
- }
567
- if (message.account_type !== "") {
568
- obj.account_type = message.account_type;
569
- }
570
- if (message.current_balance !== 0) {
571
- obj.current_balance = Math.round(message.current_balance);
572
- }
573
- if (message.date_closed !== "") {
574
- obj.date_closed = message.date_closed;
575
- }
576
- if (message.last_payment_date !== "") {
577
- obj.last_payment_date = message.last_payment_date;
578
- }
579
- if (message.disbursed_date !== "") {
580
- obj.disbursed_date = message.disbursed_date;
581
- }
582
- if (message.date_reported !== "") {
583
- obj.date_reported = message.date_reported;
584
- }
585
- if (message.sanctioned_amount !== 0) {
586
- obj.sanctioned_amount = Math.round(message.sanctioned_amount);
587
- }
588
- if (message.ownership_indicator !== "") {
589
- obj.ownership_indicator = message.ownership_indicator;
590
- }
591
- if (message.suit_filed !== "") {
592
- obj.suit_filed = message.suit_filed;
593
- }
594
- if (message.overdue_amount !== 0) {
595
- obj.overdue_amount = Math.round(message.overdue_amount);
596
- }
597
- if (message.settled_status !== "") {
598
- obj.settled_status = message.settled_status;
599
- }
600
- if (message.account_status !== "") {
601
- obj.account_status = message.account_status;
602
- }
603
- if (message.emi_amount !== 0) {
604
- obj.emi_amount = Math.round(message.emi_amount);
605
- }
606
- if (message.credit_limit !== 0) {
607
- obj.credit_limit = Math.round(message.credit_limit);
608
- }
609
- return obj;
610
- },
611
- create(base) {
612
- return exports.TradeLine.fromPartial(base ?? {});
613
- },
614
- fromPartial(object) {
615
- const message = createBaseTradeLine();
616
- message.account_id = object.account_id ?? 0;
617
- message.account_type = object.account_type ?? "";
618
- message.current_balance = object.current_balance ?? 0;
619
- message.date_closed = object.date_closed ?? "";
620
- message.last_payment_date = object.last_payment_date ?? "";
621
- message.disbursed_date = object.disbursed_date ?? "";
622
- message.date_reported = object.date_reported ?? "";
623
- message.sanctioned_amount = object.sanctioned_amount ?? 0;
624
- message.ownership_indicator = object.ownership_indicator ?? "";
625
- message.suit_filed = object.suit_filed ?? "";
626
- message.overdue_amount = object.overdue_amount ?? 0;
627
- message.settled_status = object.settled_status ?? "";
628
- message.account_status = object.account_status ?? "";
629
- message.emi_amount = object.emi_amount ?? 0;
630
- message.credit_limit = object.credit_limit ?? 0;
631
- return message;
632
- },
633
- };
634
- function createBaseDPD() {
635
- return {
636
- month1: 0,
637
- month2: 0,
638
- month3: 0,
639
- month4: 0,
640
- month5: 0,
641
- month6: 0,
642
- month7: 0,
643
- month8: 0,
644
- month9: 0,
645
- month10: 0,
646
- month11: 0,
647
- month12: 0,
648
- month13: 0,
649
- month14: 0,
650
- month15: 0,
651
- month16: 0,
652
- month17: 0,
653
- month18: 0,
654
- month19: 0,
655
- month20: 0,
656
- month21: 0,
657
- month22: 0,
658
- month23: 0,
659
- month24: 0,
660
- };
661
- }
662
- exports.DPD = {
663
- encode(message, writer = minimal_1.default.Writer.create()) {
664
- if (message.month1 !== 0) {
665
- writer.uint32(8).int32(message.month1);
666
- }
667
- if (message.month2 !== 0) {
668
- writer.uint32(16).int32(message.month2);
669
- }
670
- if (message.month3 !== 0) {
671
- writer.uint32(24).int32(message.month3);
672
- }
673
- if (message.month4 !== 0) {
674
- writer.uint32(32).int32(message.month4);
675
- }
676
- if (message.month5 !== 0) {
677
- writer.uint32(40).int32(message.month5);
678
- }
679
- if (message.month6 !== 0) {
680
- writer.uint32(48).int32(message.month6);
681
- }
682
- if (message.month7 !== 0) {
683
- writer.uint32(56).int32(message.month7);
684
- }
685
- if (message.month8 !== 0) {
686
- writer.uint32(64).int32(message.month8);
687
- }
688
- if (message.month9 !== 0) {
689
- writer.uint32(72).int32(message.month9);
690
- }
691
- if (message.month10 !== 0) {
692
- writer.uint32(80).int32(message.month10);
693
- }
694
- if (message.month11 !== 0) {
695
- writer.uint32(88).int32(message.month11);
696
- }
697
- if (message.month12 !== 0) {
698
- writer.uint32(96).int32(message.month12);
699
- }
700
- if (message.month13 !== 0) {
701
- writer.uint32(104).int32(message.month13);
702
- }
703
- if (message.month14 !== 0) {
704
- writer.uint32(112).int32(message.month14);
705
- }
706
- if (message.month15 !== 0) {
707
- writer.uint32(120).int32(message.month15);
708
- }
709
- if (message.month16 !== 0) {
710
- writer.uint32(128).int32(message.month16);
711
- }
712
- if (message.month17 !== 0) {
713
- writer.uint32(136).int32(message.month17);
714
- }
715
- if (message.month18 !== 0) {
716
- writer.uint32(144).int32(message.month18);
717
- }
718
- if (message.month19 !== 0) {
719
- writer.uint32(152).int32(message.month19);
720
- }
721
- if (message.month20 !== 0) {
722
- writer.uint32(160).int32(message.month20);
723
- }
724
- if (message.month21 !== 0) {
725
- writer.uint32(168).int32(message.month21);
726
- }
727
- if (message.month22 !== 0) {
728
- writer.uint32(176).int32(message.month22);
729
- }
730
- if (message.month23 !== 0) {
731
- writer.uint32(184).int32(message.month23);
732
- }
733
- if (message.month24 !== 0) {
734
- writer.uint32(192).int32(message.month24);
735
- }
736
- return writer;
737
- },
738
- decode(input, length) {
739
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
740
- let end = length === undefined ? reader.len : reader.pos + length;
741
- const message = createBaseDPD();
742
- while (reader.pos < end) {
743
- const tag = reader.uint32();
744
- switch (tag >>> 3) {
745
- case 1:
746
- if (tag !== 8) {
747
- break;
748
- }
749
- message.month1 = reader.int32();
750
- continue;
751
- case 2:
752
- if (tag !== 16) {
753
- break;
754
- }
755
- message.month2 = reader.int32();
756
- continue;
757
- case 3:
758
- if (tag !== 24) {
759
- break;
760
- }
761
- message.month3 = reader.int32();
762
- continue;
763
- case 4:
764
- if (tag !== 32) {
765
- break;
766
- }
767
- message.month4 = reader.int32();
768
- continue;
769
- case 5:
770
- if (tag !== 40) {
771
- break;
772
- }
773
- message.month5 = reader.int32();
774
- continue;
775
- case 6:
776
- if (tag !== 48) {
777
- break;
778
- }
779
- message.month6 = reader.int32();
780
- continue;
781
- case 7:
782
- if (tag !== 56) {
783
- break;
784
- }
785
- message.month7 = reader.int32();
786
- continue;
787
- case 8:
788
- if (tag !== 64) {
789
- break;
790
- }
791
- message.month8 = reader.int32();
792
- continue;
793
- case 9:
794
- if (tag !== 72) {
795
- break;
796
- }
797
- message.month9 = reader.int32();
798
- continue;
799
- case 10:
800
- if (tag !== 80) {
801
- break;
802
- }
803
- message.month10 = reader.int32();
804
- continue;
805
- case 11:
806
- if (tag !== 88) {
807
- break;
808
- }
809
- message.month11 = reader.int32();
810
- continue;
811
- case 12:
812
- if (tag !== 96) {
813
- break;
814
- }
815
- message.month12 = reader.int32();
816
- continue;
817
- case 13:
818
- if (tag !== 104) {
819
- break;
820
- }
821
- message.month13 = reader.int32();
822
- continue;
823
- case 14:
824
- if (tag !== 112) {
825
- break;
826
- }
827
- message.month14 = reader.int32();
828
- continue;
829
- case 15:
830
- if (tag !== 120) {
831
- break;
832
- }
833
- message.month15 = reader.int32();
834
- continue;
835
- case 16:
836
- if (tag !== 128) {
837
- break;
838
- }
839
- message.month16 = reader.int32();
840
- continue;
841
- case 17:
842
- if (tag !== 136) {
843
- break;
844
- }
845
- message.month17 = reader.int32();
846
- continue;
847
- case 18:
848
- if (tag !== 144) {
849
- break;
850
- }
851
- message.month18 = reader.int32();
852
- continue;
853
- case 19:
854
- if (tag !== 152) {
855
- break;
856
- }
857
- message.month19 = reader.int32();
858
- continue;
859
- case 20:
860
- if (tag !== 160) {
861
- break;
862
- }
863
- message.month20 = reader.int32();
864
- continue;
865
- case 21:
866
- if (tag !== 168) {
867
- break;
868
- }
869
- message.month21 = reader.int32();
870
- continue;
871
- case 22:
872
- if (tag !== 176) {
873
- break;
874
- }
875
- message.month22 = reader.int32();
876
- continue;
877
- case 23:
878
- if (tag !== 184) {
879
- break;
880
- }
881
- message.month23 = reader.int32();
882
- continue;
883
- case 24:
884
- if (tag !== 192) {
885
- break;
886
- }
887
- message.month24 = reader.int32();
888
- continue;
889
- }
890
- if ((tag & 7) === 4 || tag === 0) {
891
- break;
892
- }
893
- reader.skipType(tag & 7);
894
- }
895
- return message;
896
- },
897
- fromJSON(object) {
898
- return {
899
- month1: isSet(object.month1) ? globalThis.Number(object.month1) : 0,
900
- month2: isSet(object.month2) ? globalThis.Number(object.month2) : 0,
901
- month3: isSet(object.month3) ? globalThis.Number(object.month3) : 0,
902
- month4: isSet(object.month4) ? globalThis.Number(object.month4) : 0,
903
- month5: isSet(object.month5) ? globalThis.Number(object.month5) : 0,
904
- month6: isSet(object.month6) ? globalThis.Number(object.month6) : 0,
905
- month7: isSet(object.month7) ? globalThis.Number(object.month7) : 0,
906
- month8: isSet(object.month8) ? globalThis.Number(object.month8) : 0,
907
- month9: isSet(object.month9) ? globalThis.Number(object.month9) : 0,
908
- month10: isSet(object.month10) ? globalThis.Number(object.month10) : 0,
909
- month11: isSet(object.month11) ? globalThis.Number(object.month11) : 0,
910
- month12: isSet(object.month12) ? globalThis.Number(object.month12) : 0,
911
- month13: isSet(object.month13) ? globalThis.Number(object.month13) : 0,
912
- month14: isSet(object.month14) ? globalThis.Number(object.month14) : 0,
913
- month15: isSet(object.month15) ? globalThis.Number(object.month15) : 0,
914
- month16: isSet(object.month16) ? globalThis.Number(object.month16) : 0,
915
- month17: isSet(object.month17) ? globalThis.Number(object.month17) : 0,
916
- month18: isSet(object.month18) ? globalThis.Number(object.month18) : 0,
917
- month19: isSet(object.month19) ? globalThis.Number(object.month19) : 0,
918
- month20: isSet(object.month20) ? globalThis.Number(object.month20) : 0,
919
- month21: isSet(object.month21) ? globalThis.Number(object.month21) : 0,
920
- month22: isSet(object.month22) ? globalThis.Number(object.month22) : 0,
921
- month23: isSet(object.month23) ? globalThis.Number(object.month23) : 0,
922
- month24: isSet(object.month24) ? globalThis.Number(object.month24) : 0,
923
- };
924
- },
925
- toJSON(message) {
926
- const obj = {};
927
- if (message.month1 !== 0) {
928
- obj.month1 = Math.round(message.month1);
929
- }
930
- if (message.month2 !== 0) {
931
- obj.month2 = Math.round(message.month2);
932
- }
933
- if (message.month3 !== 0) {
934
- obj.month3 = Math.round(message.month3);
935
- }
936
- if (message.month4 !== 0) {
937
- obj.month4 = Math.round(message.month4);
938
- }
939
- if (message.month5 !== 0) {
940
- obj.month5 = Math.round(message.month5);
941
- }
942
- if (message.month6 !== 0) {
943
- obj.month6 = Math.round(message.month6);
944
- }
945
- if (message.month7 !== 0) {
946
- obj.month7 = Math.round(message.month7);
947
- }
948
- if (message.month8 !== 0) {
949
- obj.month8 = Math.round(message.month8);
950
- }
951
- if (message.month9 !== 0) {
952
- obj.month9 = Math.round(message.month9);
953
- }
954
- if (message.month10 !== 0) {
955
- obj.month10 = Math.round(message.month10);
956
- }
957
- if (message.month11 !== 0) {
958
- obj.month11 = Math.round(message.month11);
959
- }
960
- if (message.month12 !== 0) {
961
- obj.month12 = Math.round(message.month12);
962
- }
963
- if (message.month13 !== 0) {
964
- obj.month13 = Math.round(message.month13);
965
- }
966
- if (message.month14 !== 0) {
967
- obj.month14 = Math.round(message.month14);
968
- }
969
- if (message.month15 !== 0) {
970
- obj.month15 = Math.round(message.month15);
971
- }
972
- if (message.month16 !== 0) {
973
- obj.month16 = Math.round(message.month16);
974
- }
975
- if (message.month17 !== 0) {
976
- obj.month17 = Math.round(message.month17);
977
- }
978
- if (message.month18 !== 0) {
979
- obj.month18 = Math.round(message.month18);
980
- }
981
- if (message.month19 !== 0) {
982
- obj.month19 = Math.round(message.month19);
983
- }
984
- if (message.month20 !== 0) {
985
- obj.month20 = Math.round(message.month20);
986
- }
987
- if (message.month21 !== 0) {
988
- obj.month21 = Math.round(message.month21);
989
- }
990
- if (message.month22 !== 0) {
991
- obj.month22 = Math.round(message.month22);
992
- }
993
- if (message.month23 !== 0) {
994
- obj.month23 = Math.round(message.month23);
995
- }
996
- if (message.month24 !== 0) {
997
- obj.month24 = Math.round(message.month24);
998
- }
999
- return obj;
1000
- },
1001
- create(base) {
1002
- return exports.DPD.fromPartial(base ?? {});
1003
- },
1004
- fromPartial(object) {
1005
- const message = createBaseDPD();
1006
- message.month1 = object.month1 ?? 0;
1007
- message.month2 = object.month2 ?? 0;
1008
- message.month3 = object.month3 ?? 0;
1009
- message.month4 = object.month4 ?? 0;
1010
- message.month5 = object.month5 ?? 0;
1011
- message.month6 = object.month6 ?? 0;
1012
- message.month7 = object.month7 ?? 0;
1013
- message.month8 = object.month8 ?? 0;
1014
- message.month9 = object.month9 ?? 0;
1015
- message.month10 = object.month10 ?? 0;
1016
- message.month11 = object.month11 ?? 0;
1017
- message.month12 = object.month12 ?? 0;
1018
- message.month13 = object.month13 ?? 0;
1019
- message.month14 = object.month14 ?? 0;
1020
- message.month15 = object.month15 ?? 0;
1021
- message.month16 = object.month16 ?? 0;
1022
- message.month17 = object.month17 ?? 0;
1023
- message.month18 = object.month18 ?? 0;
1024
- message.month19 = object.month19 ?? 0;
1025
- message.month20 = object.month20 ?? 0;
1026
- message.month21 = object.month21 ?? 0;
1027
- message.month22 = object.month22 ?? 0;
1028
- message.month23 = object.month23 ?? 0;
1029
- message.month24 = object.month24 ?? 0;
1030
- return message;
1031
- },
1032
- };
1033
- function createBaseEnquiries() {
1034
- return { month1: 0, month3: 0, month6: 0, month9: 0, month12: 0, month15: 0, month18: 0, month21: 0, month24: 0 };
1035
- }
1036
- exports.Enquiries = {
1037
- encode(message, writer = minimal_1.default.Writer.create()) {
1038
- if (message.month1 !== 0) {
1039
- writer.uint32(8).int32(message.month1);
1040
- }
1041
- if (message.month3 !== 0) {
1042
- writer.uint32(16).int32(message.month3);
1043
- }
1044
- if (message.month6 !== 0) {
1045
- writer.uint32(24).int32(message.month6);
1046
- }
1047
- if (message.month9 !== 0) {
1048
- writer.uint32(32).int32(message.month9);
1049
- }
1050
- if (message.month12 !== 0) {
1051
- writer.uint32(40).int32(message.month12);
1052
- }
1053
- if (message.month15 !== 0) {
1054
- writer.uint32(48).int32(message.month15);
1055
- }
1056
- if (message.month18 !== 0) {
1057
- writer.uint32(56).int32(message.month18);
1058
- }
1059
- if (message.month21 !== 0) {
1060
- writer.uint32(64).int32(message.month21);
1061
- }
1062
- if (message.month24 !== 0) {
1063
- writer.uint32(72).int32(message.month24);
1064
- }
1065
- return writer;
1066
- },
1067
- decode(input, length) {
1068
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1069
- let end = length === undefined ? reader.len : reader.pos + length;
1070
- const message = createBaseEnquiries();
1071
- while (reader.pos < end) {
1072
- const tag = reader.uint32();
1073
- switch (tag >>> 3) {
1074
- case 1:
1075
- if (tag !== 8) {
1076
- break;
1077
- }
1078
- message.month1 = reader.int32();
1079
- continue;
1080
- case 2:
1081
- if (tag !== 16) {
1082
- break;
1083
- }
1084
- message.month3 = reader.int32();
1085
- continue;
1086
- case 3:
1087
- if (tag !== 24) {
1088
- break;
1089
- }
1090
- message.month6 = reader.int32();
1091
- continue;
1092
- case 4:
1093
- if (tag !== 32) {
1094
- break;
1095
- }
1096
- message.month9 = reader.int32();
1097
- continue;
1098
- case 5:
1099
- if (tag !== 40) {
1100
- break;
1101
- }
1102
- message.month12 = reader.int32();
1103
- continue;
1104
- case 6:
1105
- if (tag !== 48) {
1106
- break;
1107
- }
1108
- message.month15 = reader.int32();
1109
- continue;
1110
- case 7:
1111
- if (tag !== 56) {
1112
- break;
1113
- }
1114
- message.month18 = reader.int32();
1115
- continue;
1116
- case 8:
1117
- if (tag !== 64) {
1118
- break;
1119
- }
1120
- message.month21 = reader.int32();
1121
- continue;
1122
- case 9:
1123
- if (tag !== 72) {
1124
- break;
1125
- }
1126
- message.month24 = reader.int32();
1127
- continue;
1128
- }
1129
- if ((tag & 7) === 4 || tag === 0) {
1130
- break;
1131
- }
1132
- reader.skipType(tag & 7);
1133
- }
1134
- return message;
1135
- },
1136
- fromJSON(object) {
1137
- return {
1138
- month1: isSet(object.month1) ? globalThis.Number(object.month1) : 0,
1139
- month3: isSet(object.month3) ? globalThis.Number(object.month3) : 0,
1140
- month6: isSet(object.month6) ? globalThis.Number(object.month6) : 0,
1141
- month9: isSet(object.month9) ? globalThis.Number(object.month9) : 0,
1142
- month12: isSet(object.month12) ? globalThis.Number(object.month12) : 0,
1143
- month15: isSet(object.month15) ? globalThis.Number(object.month15) : 0,
1144
- month18: isSet(object.month18) ? globalThis.Number(object.month18) : 0,
1145
- month21: isSet(object.month21) ? globalThis.Number(object.month21) : 0,
1146
- month24: isSet(object.month24) ? globalThis.Number(object.month24) : 0,
1147
- };
1148
- },
1149
- toJSON(message) {
1150
- const obj = {};
1151
- if (message.month1 !== 0) {
1152
- obj.month1 = Math.round(message.month1);
1153
- }
1154
- if (message.month3 !== 0) {
1155
- obj.month3 = Math.round(message.month3);
1156
- }
1157
- if (message.month6 !== 0) {
1158
- obj.month6 = Math.round(message.month6);
1159
- }
1160
- if (message.month9 !== 0) {
1161
- obj.month9 = Math.round(message.month9);
1162
- }
1163
- if (message.month12 !== 0) {
1164
- obj.month12 = Math.round(message.month12);
1165
- }
1166
- if (message.month15 !== 0) {
1167
- obj.month15 = Math.round(message.month15);
1168
- }
1169
- if (message.month18 !== 0) {
1170
- obj.month18 = Math.round(message.month18);
1171
- }
1172
- if (message.month21 !== 0) {
1173
- obj.month21 = Math.round(message.month21);
1174
- }
1175
- if (message.month24 !== 0) {
1176
- obj.month24 = Math.round(message.month24);
1177
- }
1178
- return obj;
1179
- },
1180
- create(base) {
1181
- return exports.Enquiries.fromPartial(base ?? {});
1182
- },
1183
- fromPartial(object) {
1184
- const message = createBaseEnquiries();
1185
- message.month1 = object.month1 ?? 0;
1186
- message.month3 = object.month3 ?? 0;
1187
- message.month6 = object.month6 ?? 0;
1188
- message.month9 = object.month9 ?? 0;
1189
- message.month12 = object.month12 ?? 0;
1190
- message.month15 = object.month15 ?? 0;
1191
- message.month18 = object.month18 ?? 0;
1192
- message.month21 = object.month21 ?? 0;
1193
- message.month24 = object.month24 ?? 0;
1194
- return message;
1195
- },
1196
- };
1197
- function createBasedpdChar() {
1198
- return { month1: 0, month3: 0, month6: 0, month9: 0, month12: 0, month15: 0, month18: 0, month21: 0, month24: 0 };
1199
- }
1200
- exports.dpdChar = {
1201
- encode(message, writer = minimal_1.default.Writer.create()) {
1202
- if (message.month1 !== 0) {
1203
- writer.uint32(8).int32(message.month1);
1204
- }
1205
- if (message.month3 !== 0) {
1206
- writer.uint32(16).int32(message.month3);
1207
- }
1208
- if (message.month6 !== 0) {
1209
- writer.uint32(24).int32(message.month6);
1210
- }
1211
- if (message.month9 !== 0) {
1212
- writer.uint32(32).int32(message.month9);
1213
- }
1214
- if (message.month12 !== 0) {
1215
- writer.uint32(40).int32(message.month12);
1216
- }
1217
- if (message.month15 !== 0) {
1218
- writer.uint32(48).int32(message.month15);
1219
- }
1220
- if (message.month18 !== 0) {
1221
- writer.uint32(56).int32(message.month18);
1222
- }
1223
- if (message.month21 !== 0) {
1224
- writer.uint32(64).int32(message.month21);
1225
- }
1226
- if (message.month24 !== 0) {
1227
- writer.uint32(72).int32(message.month24);
1228
- }
1229
- return writer;
1230
- },
1231
- decode(input, length) {
1232
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1233
- let end = length === undefined ? reader.len : reader.pos + length;
1234
- const message = createBasedpdChar();
1235
- while (reader.pos < end) {
1236
- const tag = reader.uint32();
1237
- switch (tag >>> 3) {
1238
- case 1:
1239
- if (tag !== 8) {
1240
- break;
1241
- }
1242
- message.month1 = reader.int32();
1243
- continue;
1244
- case 2:
1245
- if (tag !== 16) {
1246
- break;
1247
- }
1248
- message.month3 = reader.int32();
1249
- continue;
1250
- case 3:
1251
- if (tag !== 24) {
1252
- break;
1253
- }
1254
- message.month6 = reader.int32();
1255
- continue;
1256
- case 4:
1257
- if (tag !== 32) {
1258
- break;
1259
- }
1260
- message.month9 = reader.int32();
1261
- continue;
1262
- case 5:
1263
- if (tag !== 40) {
1264
- break;
1265
- }
1266
- message.month12 = reader.int32();
1267
- continue;
1268
- case 6:
1269
- if (tag !== 48) {
1270
- break;
1271
- }
1272
- message.month15 = reader.int32();
1273
- continue;
1274
- case 7:
1275
- if (tag !== 56) {
1276
- break;
1277
- }
1278
- message.month18 = reader.int32();
1279
- continue;
1280
- case 8:
1281
- if (tag !== 64) {
1282
- break;
1283
- }
1284
- message.month21 = reader.int32();
1285
- continue;
1286
- case 9:
1287
- if (tag !== 72) {
1288
- break;
1289
- }
1290
- message.month24 = reader.int32();
1291
- continue;
1292
- }
1293
- if ((tag & 7) === 4 || tag === 0) {
1294
- break;
1295
- }
1296
- reader.skipType(tag & 7);
1297
- }
1298
- return message;
1299
- },
1300
- fromJSON(object) {
1301
- return {
1302
- month1: isSet(object.month1) ? globalThis.Number(object.month1) : 0,
1303
- month3: isSet(object.month3) ? globalThis.Number(object.month3) : 0,
1304
- month6: isSet(object.month6) ? globalThis.Number(object.month6) : 0,
1305
- month9: isSet(object.month9) ? globalThis.Number(object.month9) : 0,
1306
- month12: isSet(object.month12) ? globalThis.Number(object.month12) : 0,
1307
- month15: isSet(object.month15) ? globalThis.Number(object.month15) : 0,
1308
- month18: isSet(object.month18) ? globalThis.Number(object.month18) : 0,
1309
- month21: isSet(object.month21) ? globalThis.Number(object.month21) : 0,
1310
- month24: isSet(object.month24) ? globalThis.Number(object.month24) : 0,
1311
- };
1312
- },
1313
- toJSON(message) {
1314
- const obj = {};
1315
- if (message.month1 !== 0) {
1316
- obj.month1 = Math.round(message.month1);
1317
- }
1318
- if (message.month3 !== 0) {
1319
- obj.month3 = Math.round(message.month3);
1320
- }
1321
- if (message.month6 !== 0) {
1322
- obj.month6 = Math.round(message.month6);
1323
- }
1324
- if (message.month9 !== 0) {
1325
- obj.month9 = Math.round(message.month9);
1326
- }
1327
- if (message.month12 !== 0) {
1328
- obj.month12 = Math.round(message.month12);
1329
- }
1330
- if (message.month15 !== 0) {
1331
- obj.month15 = Math.round(message.month15);
1332
- }
1333
- if (message.month18 !== 0) {
1334
- obj.month18 = Math.round(message.month18);
1335
- }
1336
- if (message.month21 !== 0) {
1337
- obj.month21 = Math.round(message.month21);
1338
- }
1339
- if (message.month24 !== 0) {
1340
- obj.month24 = Math.round(message.month24);
1341
- }
1342
- return obj;
1343
- },
1344
- create(base) {
1345
- return exports.dpdChar.fromPartial(base ?? {});
1346
- },
1347
- fromPartial(object) {
1348
- const message = createBasedpdChar();
1349
- message.month1 = object.month1 ?? 0;
1350
- message.month3 = object.month3 ?? 0;
1351
- message.month6 = object.month6 ?? 0;
1352
- message.month9 = object.month9 ?? 0;
1353
- message.month12 = object.month12 ?? 0;
1354
- message.month15 = object.month15 ?? 0;
1355
- message.month18 = object.month18 ?? 0;
1356
- message.month21 = object.month21 ?? 0;
1357
- message.month24 = object.month24 ?? 0;
1358
- return message;
1359
- },
1360
- };
1361
- function longToNumber(long) {
1362
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
1363
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1364
- }
1365
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
1366
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
1367
- }
1368
- return long.toNumber();
1369
- }
1370
- if (minimal_1.default.util.Long !== long_1.default) {
1371
- minimal_1.default.util.Long = long_1.default;
1372
- minimal_1.default.configure();
1373
- }
1374
- function isSet(value) {
1375
- return value !== null && value !== undefined;
1376
- }