@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
package/ts/example.js DELETED
@@ -1,199 +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: example.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.ExampleClient = exports.ExampleService = exports.ExampleResponse = exports.ExampleRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const grpc_js_1 = require("@grpc/grpc-js");
14
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
- exports.protobufPackage = "service";
16
- function createBaseExampleRequest() {
17
- return { name: "", id: 0 };
18
- }
19
- exports.ExampleRequest = {
20
- encode(message, writer = minimal_1.default.Writer.create()) {
21
- if (message.name !== "") {
22
- writer.uint32(10).string(message.name);
23
- }
24
- if (message.id !== 0) {
25
- writer.uint32(16).int32(message.id);
26
- }
27
- return writer;
28
- },
29
- decode(input, length) {
30
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
31
- let end = length === undefined ? reader.len : reader.pos + length;
32
- const message = createBaseExampleRequest();
33
- while (reader.pos < end) {
34
- const tag = reader.uint32();
35
- switch (tag >>> 3) {
36
- case 1:
37
- if (tag !== 10) {
38
- break;
39
- }
40
- message.name = reader.string();
41
- continue;
42
- case 2:
43
- if (tag !== 16) {
44
- break;
45
- }
46
- message.id = reader.int32();
47
- continue;
48
- }
49
- if ((tag & 7) === 4 || tag === 0) {
50
- break;
51
- }
52
- reader.skipType(tag & 7);
53
- }
54
- return message;
55
- },
56
- fromJSON(object) {
57
- return {
58
- name: isSet(object.name) ? globalThis.String(object.name) : "",
59
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
60
- };
61
- },
62
- toJSON(message) {
63
- const obj = {};
64
- if (message.name !== "") {
65
- obj.name = message.name;
66
- }
67
- if (message.id !== 0) {
68
- obj.id = Math.round(message.id);
69
- }
70
- return obj;
71
- },
72
- create(base) {
73
- return exports.ExampleRequest.fromPartial(base ?? {});
74
- },
75
- fromPartial(object) {
76
- const message = createBaseExampleRequest();
77
- message.name = object.name ?? "";
78
- message.id = object.id ?? 0;
79
- return message;
80
- },
81
- };
82
- function createBaseExampleResponse() {
83
- return { message: "", id: 0, name: "", status: "" };
84
- }
85
- exports.ExampleResponse = {
86
- encode(message, writer = minimal_1.default.Writer.create()) {
87
- if (message.message !== "") {
88
- writer.uint32(10).string(message.message);
89
- }
90
- if (message.id !== 0) {
91
- writer.uint32(16).int32(message.id);
92
- }
93
- if (message.name !== "") {
94
- writer.uint32(26).string(message.name);
95
- }
96
- if (message.status !== "") {
97
- writer.uint32(34).string(message.status);
98
- }
99
- return writer;
100
- },
101
- decode(input, length) {
102
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
103
- let end = length === undefined ? reader.len : reader.pos + length;
104
- const message = createBaseExampleResponse();
105
- while (reader.pos < end) {
106
- const tag = reader.uint32();
107
- switch (tag >>> 3) {
108
- case 1:
109
- if (tag !== 10) {
110
- break;
111
- }
112
- message.message = reader.string();
113
- continue;
114
- case 2:
115
- if (tag !== 16) {
116
- break;
117
- }
118
- message.id = reader.int32();
119
- continue;
120
- case 3:
121
- if (tag !== 26) {
122
- break;
123
- }
124
- message.name = reader.string();
125
- continue;
126
- case 4:
127
- if (tag !== 34) {
128
- break;
129
- }
130
- message.status = reader.string();
131
- continue;
132
- }
133
- if ((tag & 7) === 4 || tag === 0) {
134
- break;
135
- }
136
- reader.skipType(tag & 7);
137
- }
138
- return message;
139
- },
140
- fromJSON(object) {
141
- return {
142
- message: isSet(object.message) ? globalThis.String(object.message) : "",
143
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
144
- name: isSet(object.name) ? globalThis.String(object.name) : "",
145
- status: isSet(object.status) ? globalThis.String(object.status) : "",
146
- };
147
- },
148
- toJSON(message) {
149
- const obj = {};
150
- if (message.message !== "") {
151
- obj.message = message.message;
152
- }
153
- if (message.id !== 0) {
154
- obj.id = Math.round(message.id);
155
- }
156
- if (message.name !== "") {
157
- obj.name = message.name;
158
- }
159
- if (message.status !== "") {
160
- obj.status = message.status;
161
- }
162
- return obj;
163
- },
164
- create(base) {
165
- return exports.ExampleResponse.fromPartial(base ?? {});
166
- },
167
- fromPartial(object) {
168
- const message = createBaseExampleResponse();
169
- message.message = object.message ?? "";
170
- message.id = object.id ?? 0;
171
- message.name = object.name ?? "";
172
- message.status = object.status ?? "";
173
- return message;
174
- },
175
- };
176
- exports.ExampleService = {
177
- getExample: {
178
- path: "/service.Example/GetExample",
179
- requestStream: false,
180
- responseStream: false,
181
- requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
182
- requestDeserialize: (value) => exports.ExampleRequest.decode(value),
183
- responseSerialize: (value) => Buffer.from(exports.ExampleResponse.encode(value).finish()),
184
- responseDeserialize: (value) => exports.ExampleResponse.decode(value),
185
- },
186
- setExample: {
187
- path: "/service.Example/SetExample",
188
- requestStream: false,
189
- responseStream: false,
190
- requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
191
- requestDeserialize: (value) => exports.ExampleRequest.decode(value),
192
- responseSerialize: (value) => Buffer.from(exports.ExampleResponse.encode(value).finish()),
193
- responseDeserialize: (value) => exports.ExampleResponse.decode(value),
194
- },
195
- };
196
- exports.ExampleClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ExampleService, "service.Example");
197
- function isSet(value) {
198
- return value !== null && value !== undefined;
199
- }
@@ -1,127 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * A Timestamp represents a point in time independent of any time zone or local
5
- * calendar, encoded as a count of seconds and fractions of seconds at
6
- * nanosecond resolution. The count is relative to an epoch at UTC midnight on
7
- * January 1, 1970, in the proleptic Gregorian calendar which extends the
8
- * Gregorian calendar backwards to year one.
9
- *
10
- * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
11
- * second table is needed for interpretation, using a [24-hour linear
12
- * smear](https://developers.google.com/time/smear).
13
- *
14
- * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
15
- * restricting to that range, we ensure that we can convert to and from [RFC
16
- * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
17
- *
18
- * # Examples
19
- *
20
- * Example 1: Compute Timestamp from POSIX `time()`.
21
- *
22
- * Timestamp timestamp;
23
- * timestamp.set_seconds(time(NULL));
24
- * timestamp.set_nanos(0);
25
- *
26
- * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
27
- *
28
- * struct timeval tv;
29
- * gettimeofday(&tv, NULL);
30
- *
31
- * Timestamp timestamp;
32
- * timestamp.set_seconds(tv.tv_sec);
33
- * timestamp.set_nanos(tv.tv_usec * 1000);
34
- *
35
- * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
36
- *
37
- * FILETIME ft;
38
- * GetSystemTimeAsFileTime(&ft);
39
- * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
40
- *
41
- * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
42
- * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
43
- * Timestamp timestamp;
44
- * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
45
- * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
46
- *
47
- * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
48
- *
49
- * long millis = System.currentTimeMillis();
50
- *
51
- * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
52
- * .setNanos((int) ((millis % 1000) * 1000000)).build();
53
- *
54
- * Example 5: Compute Timestamp from Java `Instant.now()`.
55
- *
56
- * Instant now = Instant.now();
57
- *
58
- * Timestamp timestamp =
59
- * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
60
- * .setNanos(now.getNano()).build();
61
- *
62
- * Example 6: Compute Timestamp from current time in Python.
63
- *
64
- * timestamp = Timestamp()
65
- * timestamp.GetCurrentTime()
66
- *
67
- * # JSON Mapping
68
- *
69
- * In JSON format, the Timestamp type is encoded as a string in the
70
- * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
71
- * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
72
- * where {year} is always expressed using four digits while {month}, {day},
73
- * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
74
- * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
75
- * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
76
- * is required. A proto3 JSON serializer should always use UTC (as indicated by
77
- * "Z") when printing the Timestamp type and a proto3 JSON parser should be
78
- * able to accept both UTC and other timezones (as indicated by an offset).
79
- *
80
- * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
81
- * 01:30 UTC on January 15, 2017.
82
- *
83
- * In JavaScript, one can convert a Date object to this format using the
84
- * standard
85
- * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
86
- * method. In Python, a standard `datetime.datetime` object can be converted
87
- * to this format using
88
- * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
89
- * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
90
- * the Joda Time's [`ISODateTimeFormat.dateTime()`](
91
- * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
92
- * ) to obtain a formatter capable of generating timestamps in this format.
93
- */
94
- export interface Timestamp {
95
- /**
96
- * Represents seconds of UTC time since Unix epoch
97
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
98
- * 9999-12-31T23:59:59Z inclusive.
99
- */
100
- seconds: number;
101
- /**
102
- * Non-negative fractions of a second at nanosecond resolution. Negative
103
- * second values with fractions must still have non-negative nanos values
104
- * that count forward in time. Must be from 0 to 999,999,999
105
- * inclusive.
106
- */
107
- nanos: number;
108
- }
109
- export declare const Timestamp: {
110
- encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
111
- decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
112
- fromJSON(object: any): Timestamp;
113
- toJSON(message: Timestamp): unknown;
114
- create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp;
115
- fromPartial<I extends Exact<DeepPartial<Timestamp>, I>>(object: I): Timestamp;
116
- };
117
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
118
- 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 {} ? {
119
- [K in keyof T]?: DeepPartial<T[K]>;
120
- } : Partial<T>;
121
- type KeysOfUnion<T> = T extends T ? keyof T : never;
122
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
123
- [K in keyof P]: Exact<P[K], I[K]>;
124
- } & {
125
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
126
- };
127
- export {};
@@ -1,97 +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: google/protobuf/timestamp.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.Timestamp = 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 = "google.protobuf";
16
- function createBaseTimestamp() {
17
- return { seconds: 0, nanos: 0 };
18
- }
19
- exports.Timestamp = {
20
- encode(message, writer = minimal_1.default.Writer.create()) {
21
- if (message.seconds !== 0) {
22
- writer.uint32(8).int64(message.seconds);
23
- }
24
- if (message.nanos !== 0) {
25
- writer.uint32(16).int32(message.nanos);
26
- }
27
- return writer;
28
- },
29
- decode(input, length) {
30
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
31
- let end = length === undefined ? reader.len : reader.pos + length;
32
- const message = createBaseTimestamp();
33
- while (reader.pos < end) {
34
- const tag = reader.uint32();
35
- switch (tag >>> 3) {
36
- case 1:
37
- if (tag !== 8) {
38
- break;
39
- }
40
- message.seconds = longToNumber(reader.int64());
41
- continue;
42
- case 2:
43
- if (tag !== 16) {
44
- break;
45
- }
46
- message.nanos = reader.int32();
47
- continue;
48
- }
49
- if ((tag & 7) === 4 || tag === 0) {
50
- break;
51
- }
52
- reader.skipType(tag & 7);
53
- }
54
- return message;
55
- },
56
- fromJSON(object) {
57
- return {
58
- seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
59
- nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
60
- };
61
- },
62
- toJSON(message) {
63
- const obj = {};
64
- if (message.seconds !== 0) {
65
- obj.seconds = Math.round(message.seconds);
66
- }
67
- if (message.nanos !== 0) {
68
- obj.nanos = Math.round(message.nanos);
69
- }
70
- return obj;
71
- },
72
- create(base) {
73
- return exports.Timestamp.fromPartial(base ?? {});
74
- },
75
- fromPartial(object) {
76
- const message = createBaseTimestamp();
77
- message.seconds = object.seconds ?? 0;
78
- message.nanos = object.nanos ?? 0;
79
- return message;
80
- },
81
- };
82
- function longToNumber(long) {
83
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
84
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
85
- }
86
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
87
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
88
- }
89
- return long.toNumber();
90
- }
91
- if (minimal_1.default.util.Long !== long_1.default) {
92
- minimal_1.default.util.Long = long_1.default;
93
- minimal_1.default.configure();
94
- }
95
- function isSet(value) {
96
- return value !== null && value !== undefined;
97
- }
@@ -1,40 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "loans.approveloan";
3
- export interface approveLoanRequest {
4
- bank_id: number;
5
- amount: number;
6
- tenure: number;
7
- customer_id: number;
8
- ip: string;
9
- addons: number;
10
- }
11
- export interface approveLoanResponse {
12
- id: number;
13
- }
14
- export declare const approveLoanRequest: {
15
- encode(message: approveLoanRequest, writer?: _m0.Writer): _m0.Writer;
16
- decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest;
17
- fromJSON(object: any): approveLoanRequest;
18
- toJSON(message: approveLoanRequest): unknown;
19
- create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest;
20
- fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest;
21
- };
22
- export declare const approveLoanResponse: {
23
- encode(message: approveLoanResponse, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse;
25
- fromJSON(object: any): approveLoanResponse;
26
- toJSON(message: approveLoanResponse): unknown;
27
- create<I extends Exact<DeepPartial<approveLoanResponse>, I>>(base?: I): approveLoanResponse;
28
- fromPartial<I extends Exact<DeepPartial<approveLoanResponse>, I>>(object: I): approveLoanResponse;
29
- };
30
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
- 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 {} ? {
32
- [K in keyof T]?: DeepPartial<T[K]>;
33
- } : Partial<T>;
34
- type KeysOfUnion<T> = T extends T ? keyof T : never;
35
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
36
- [K in keyof P]: Exact<P[K], I[K]>;
37
- } & {
38
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
39
- };
40
- export {};
@@ -1,189 +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: loans/approveloan.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.approveLoanResponse = exports.approveLoanRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "loans.approveloan";
15
- function createBaseapproveLoanRequest() {
16
- return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "", addons: 0 };
17
- }
18
- exports.approveLoanRequest = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.bank_id !== 0) {
21
- writer.uint32(8).int32(message.bank_id);
22
- }
23
- if (message.amount !== 0) {
24
- writer.uint32(16).int32(message.amount);
25
- }
26
- if (message.tenure !== 0) {
27
- writer.uint32(24).int32(message.tenure);
28
- }
29
- if (message.customer_id !== 0) {
30
- writer.uint32(32).int32(message.customer_id);
31
- }
32
- if (message.ip !== "") {
33
- writer.uint32(42).string(message.ip);
34
- }
35
- if (message.addons !== 0) {
36
- writer.uint32(48).int32(message.addons);
37
- }
38
- return writer;
39
- },
40
- decode(input, length) {
41
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
42
- let end = length === undefined ? reader.len : reader.pos + length;
43
- const message = createBaseapproveLoanRequest();
44
- while (reader.pos < end) {
45
- const tag = reader.uint32();
46
- switch (tag >>> 3) {
47
- case 1:
48
- if (tag !== 8) {
49
- break;
50
- }
51
- message.bank_id = reader.int32();
52
- continue;
53
- case 2:
54
- if (tag !== 16) {
55
- break;
56
- }
57
- message.amount = reader.int32();
58
- continue;
59
- case 3:
60
- if (tag !== 24) {
61
- break;
62
- }
63
- message.tenure = reader.int32();
64
- continue;
65
- case 4:
66
- if (tag !== 32) {
67
- break;
68
- }
69
- message.customer_id = reader.int32();
70
- continue;
71
- case 5:
72
- if (tag !== 42) {
73
- break;
74
- }
75
- message.ip = reader.string();
76
- continue;
77
- case 6:
78
- if (tag !== 48) {
79
- break;
80
- }
81
- message.addons = reader.int32();
82
- continue;
83
- }
84
- if ((tag & 7) === 4 || tag === 0) {
85
- break;
86
- }
87
- reader.skipType(tag & 7);
88
- }
89
- return message;
90
- },
91
- fromJSON(object) {
92
- return {
93
- bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
94
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
95
- tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
96
- customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
97
- ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
98
- addons: isSet(object.addons) ? globalThis.Number(object.addons) : 0,
99
- };
100
- },
101
- toJSON(message) {
102
- const obj = {};
103
- if (message.bank_id !== 0) {
104
- obj.bank_id = Math.round(message.bank_id);
105
- }
106
- if (message.amount !== 0) {
107
- obj.amount = Math.round(message.amount);
108
- }
109
- if (message.tenure !== 0) {
110
- obj.tenure = Math.round(message.tenure);
111
- }
112
- if (message.customer_id !== 0) {
113
- obj.customer_id = Math.round(message.customer_id);
114
- }
115
- if (message.ip !== "") {
116
- obj.ip = message.ip;
117
- }
118
- if (message.addons !== 0) {
119
- obj.addons = Math.round(message.addons);
120
- }
121
- return obj;
122
- },
123
- create(base) {
124
- return exports.approveLoanRequest.fromPartial(base ?? {});
125
- },
126
- fromPartial(object) {
127
- const message = createBaseapproveLoanRequest();
128
- message.bank_id = object.bank_id ?? 0;
129
- message.amount = object.amount ?? 0;
130
- message.tenure = object.tenure ?? 0;
131
- message.customer_id = object.customer_id ?? 0;
132
- message.ip = object.ip ?? "";
133
- message.addons = object.addons ?? 0;
134
- return message;
135
- },
136
- };
137
- function createBaseapproveLoanResponse() {
138
- return { id: 0 };
139
- }
140
- exports.approveLoanResponse = {
141
- encode(message, writer = minimal_1.default.Writer.create()) {
142
- if (message.id !== 0) {
143
- writer.uint32(8).int32(message.id);
144
- }
145
- return writer;
146
- },
147
- decode(input, length) {
148
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
149
- let end = length === undefined ? reader.len : reader.pos + length;
150
- const message = createBaseapproveLoanResponse();
151
- while (reader.pos < end) {
152
- const tag = reader.uint32();
153
- switch (tag >>> 3) {
154
- case 1:
155
- if (tag !== 8) {
156
- break;
157
- }
158
- message.id = reader.int32();
159
- continue;
160
- }
161
- if ((tag & 7) === 4 || tag === 0) {
162
- break;
163
- }
164
- reader.skipType(tag & 7);
165
- }
166
- return message;
167
- },
168
- fromJSON(object) {
169
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
170
- },
171
- toJSON(message) {
172
- const obj = {};
173
- if (message.id !== 0) {
174
- obj.id = Math.round(message.id);
175
- }
176
- return obj;
177
- },
178
- create(base) {
179
- return exports.approveLoanResponse.fromPartial(base ?? {});
180
- },
181
- fromPartial(object) {
182
- const message = createBaseapproveLoanResponse();
183
- message.id = object.id ?? 0;
184
- return message;
185
- },
186
- };
187
- function isSet(value) {
188
- return value !== null && value !== undefined;
189
- }
@@ -1,37 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "loans.banklist";
3
- export interface bankListRequest {
4
- }
5
- export interface bankListResponse {
6
- id: number;
7
- account_number: number;
8
- bank_name: string;
9
- ifsc_code: number;
10
- }
11
- export declare const bankListRequest: {
12
- encode(_: bankListRequest, writer?: _m0.Writer): _m0.Writer;
13
- decode(input: _m0.Reader | Uint8Array, length?: number): bankListRequest;
14
- fromJSON(_: any): bankListRequest;
15
- toJSON(_: bankListRequest): unknown;
16
- create<I extends Exact<DeepPartial<bankListRequest>, I>>(base?: I): bankListRequest;
17
- fromPartial<I extends Exact<DeepPartial<bankListRequest>, I>>(_: I): bankListRequest;
18
- };
19
- export declare const bankListResponse: {
20
- encode(message: bankListResponse, writer?: _m0.Writer): _m0.Writer;
21
- decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse;
22
- fromJSON(object: any): bankListResponse;
23
- toJSON(message: bankListResponse): unknown;
24
- create<I extends Exact<DeepPartial<bankListResponse>, I>>(base?: I): bankListResponse;
25
- fromPartial<I extends Exact<DeepPartial<bankListResponse>, I>>(object: I): bankListResponse;
26
- };
27
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
- 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 {} ? {
29
- [K in keyof T]?: DeepPartial<T[K]>;
30
- } : Partial<T>;
31
- type KeysOfUnion<T> = T extends T ? keyof T : never;
32
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
- [K in keyof P]: Exact<P[K], I[K]>;
34
- } & {
35
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
- };
37
- export {};