@stashfin/grpc 1.2.52 → 1.2.54

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 (226) hide show
  1. package/README.md +74 -0
  2. package/package.json +3 -2
  3. package/src/proto/customers/addaddress.proto +25 -0
  4. package/src/proto/customers/addbankaccountdetails.proto +13 -0
  5. package/src/proto/customers/createcustomerreference.proto +21 -0
  6. package/src/proto/customers/forgotmpin.proto +12 -0
  7. package/src/proto/customers/forgotmpinotp.proto +10 -0
  8. package/src/proto/customers/getbankaccountdetails.proto +11 -0
  9. package/src/proto/customers/getbasicinfo.proto +24 -0
  10. package/src/proto/customers/getcities.proto +16 -0
  11. package/src/proto/customers/getcustomerbyid.proto +31 -0
  12. package/src/proto/customers/getdashboard.proto +47 -0
  13. package/src/proto/customers/getdashboardmaincard.proto +37 -0
  14. package/src/proto/customers/getkycweburl.proto +10 -0
  15. package/src/proto/customers/getprofessionalinfo.proto +22 -0
  16. package/src/proto/customers/getprofile.proto +22 -0
  17. package/src/proto/customers/getstates.proto +15 -0
  18. package/src/proto/customers/getstep.proto +30 -0
  19. package/src/proto/customers/profilebasic.proto +14 -0
  20. package/src/proto/customers/profileupdatetnc.proto +11 -0
  21. package/src/proto/customers/resetmpin.proto +13 -0
  22. package/src/proto/customers/savebasicdetails.proto +16 -0
  23. package/src/proto/customers/saveunlocklimit.proto +10 -0
  24. package/src/proto/customers/sendemailtoken.proto +11 -0
  25. package/src/proto/customers/sendotp.proto +14 -0
  26. package/src/proto/customers/setmpin.proto +12 -0
  27. package/src/proto/customers/step10.proto +34 -0
  28. package/src/proto/customers/step7.proto +29 -0
  29. package/src/proto/customers/step8.proto +30 -0
  30. package/src/proto/customers/step9.proto +36 -0
  31. package/src/proto/customers/stepstatic.proto +27 -0
  32. package/src/proto/customers/updatedigilockertxn.proto +13 -0
  33. package/src/proto/customers/updatedob.proto +13 -0
  34. package/src/proto/customers/updatehypervergetxn.proto +12 -0
  35. package/src/proto/customers/verifyemail.proto +11 -0
  36. package/src/proto/customers/verifympin.proto +13 -0
  37. package/src/proto/customers/verifyotp.proto +17 -0
  38. package/src/proto/customers.proto +83 -0
  39. package/src/proto/example.proto +20 -0
  40. package/src/proto/loans/approveloan.proto +15 -0
  41. package/src/proto/loans/banklist.proto +12 -0
  42. package/src/proto/loans/calculateemi.proto +20 -0
  43. package/src/proto/loans/creditlimit.proto +18 -0
  44. package/src/proto/loans/restructureloan.proto +12 -0
  45. package/src/proto/loans/transactionlist.proto +18 -0
  46. package/src/proto/loans/updateinstallments.proto +19 -0
  47. package/src/proto/loans/updateloan.proto +15 -0
  48. package/src/proto/loans.proto +23 -0
  49. package/src/proto/stashcash/creditsc.proto +22 -0
  50. package/src/proto/stashcash/debitsc.proto +27 -0
  51. package/src/proto/stashcash/getscbalance.proto +21 -0
  52. package/src/proto/stashcash/getschistory.proto +35 -0
  53. package/src/proto/stashcash/reversesc.proto +20 -0
  54. package/src/proto/stashcash.proto +17 -0
  55. package/src/ts/customers/addaddress.ts +310 -0
  56. package/src/ts/customers/addbankaccountdetails.ts +184 -0
  57. package/src/ts/customers/createcustomerreference.ts +276 -0
  58. package/src/ts/customers/getbankaccountdetails.ts +169 -0
  59. package/src/ts/customers/getbasicinfo.ts +385 -0
  60. package/src/ts/customers/getcities.ts +227 -0
  61. package/src/ts/customers/getcustomerbyid.ts +492 -0
  62. package/src/ts/customers/getdashboard.ts +728 -0
  63. package/src/ts/customers/getdashboardmaincard.ts +608 -0
  64. package/src/ts/customers/getkycweburl.ts +133 -0
  65. package/src/ts/customers/getprofessionalinfo.ts +344 -0
  66. package/src/ts/customers/getprofile.ts +338 -0
  67. package/src/ts/customers/getstates.ts +212 -0
  68. package/src/ts/customers/getstep.ts +483 -0
  69. package/src/ts/customers/profilebasic.ts +198 -0
  70. package/src/ts/customers/profileupdatetnc.ts +148 -0
  71. package/src/ts/customers/resetmpin.ts +166 -0
  72. package/src/ts/customers/savebasicdetails.ts +229 -0
  73. package/src/ts/customers/saveunlocklimit.ts +133 -0
  74. package/src/ts/customers/sendemailtoken.ts +148 -0
  75. package/src/ts/customers/sendotp.ts +202 -0
  76. package/src/ts/customers/setmpin.ts +166 -0
  77. package/src/ts/customers/step10.ts +544 -0
  78. package/src/ts/customers/step7.ts +456 -0
  79. package/src/ts/customers/step8.ts +472 -0
  80. package/src/ts/customers/step9.ts +578 -0
  81. package/src/ts/customers/stepstatic.ts +425 -0
  82. package/src/ts/customers/updatedigilockertxn.ts +182 -0
  83. package/src/ts/customers/updatehypervergetxn.ts +166 -0
  84. package/src/ts/customers/verifyemail.ts +148 -0
  85. package/src/ts/customers/verifympin.ts +184 -0
  86. package/src/ts/customers/verifyotp.ts +232 -0
  87. package/src/ts/customers.ts +1038 -0
  88. package/src/ts/example.ts +294 -0
  89. package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
  90. package/src/ts/loans/approveloan.ts +214 -0
  91. package/src/ts/loans/banklist.ts +183 -0
  92. package/src/ts/loans/calculateemi.ts +295 -0
  93. package/src/ts/loans/creditlimit.ts +294 -0
  94. package/src/ts/loans/restructureloan.ts +166 -0
  95. package/src/ts/loans/transactionlist.ts +281 -0
  96. package/src/ts/loans/updateinstallments.ts +271 -0
  97. package/src/ts/loans/updateloan.ts +214 -0
  98. package/src/ts/loans.ts +221 -0
  99. package/src/ts/stashcash/creditsc.ts +361 -0
  100. package/src/ts/stashcash/debitsc.ts +450 -0
  101. package/src/ts/stashcash/getscbalance.ts +351 -0
  102. package/src/ts/stashcash/getschistory.ts +566 -0
  103. package/src/ts/stashcash/reversesc.ts +329 -0
  104. package/src/ts/stashcash.ts +152 -0
  105. package/tsconfig.json +18 -0
  106. package/ts/customer/getprofile.d.ts +0 -38
  107. package/ts/customer/getprofile.js +0 -162
  108. package/ts/customer/getstep.d.ts +0 -78
  109. package/ts/customer/getstep.js +0 -420
  110. package/ts/customer/profileupdatetnc.d.ts +0 -35
  111. package/ts/customer/profileupdatetnc.js +0 -117
  112. package/ts/customer/sendotp.d.ts +0 -36
  113. package/ts/customer/sendotp.js +0 -133
  114. package/ts/customer/setmpin.d.ts +0 -36
  115. package/ts/customer/setmpin.js +0 -133
  116. package/ts/customer/step1.d.ts +0 -69
  117. package/ts/customer/step1.js +0 -395
  118. package/ts/customer/step10.d.ts +0 -73
  119. package/ts/customer/step10.js +0 -459
  120. package/ts/customer/step2.d.ts +0 -68
  121. package/ts/customer/step2.js +0 -381
  122. package/ts/customer/step7.d.ts +0 -68
  123. package/ts/customer/step7.js +0 -381
  124. package/ts/customer/step8.d.ts +0 -69
  125. package/ts/customer/step8.js +0 -395
  126. package/ts/customer/step9.d.ts +0 -75
  127. package/ts/customer/step9.js +0 -489
  128. package/ts/customer/stepstatic.d.ts +0 -66
  129. package/ts/customer/stepstatic.js +0 -352
  130. package/ts/customer/verifympin.d.ts +0 -37
  131. package/ts/customer/verifympin.js +0 -149
  132. package/ts/customer/verifyotp.d.ts +0 -39
  133. package/ts/customer/verifyotp.js +0 -177
  134. package/ts/customer.d.ts +0 -262
  135. package/ts/customer.js +0 -190
  136. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  137. package/ts/customers/getbankaccountdetails.js +0 -134
  138. package/ts/customers/getbasicinfo.d.ts +0 -39
  139. package/ts/customers/getbasicinfo.js +0 -176
  140. package/ts/customers/getcustomerbyid.d.ts +0 -50
  141. package/ts/customers/getcustomerbyid.js +0 -346
  142. package/ts/customers/getdashboard.d.ts +0 -90
  143. package/ts/customers/getdashboard.js +0 -603
  144. package/ts/customers/getdashboardmaincard.d.ts +0 -69
  145. package/ts/customers/getdashboardmaincard.js +0 -520
  146. package/ts/customers/getprofessionalinfo.d.ts +0 -37
  147. package/ts/customers/getprofessionalinfo.js +0 -148
  148. package/ts/customers/getprofile.d.ts +0 -38
  149. package/ts/customers/getprofile.js +0 -162
  150. package/ts/customers/getstep.d.ts +0 -78
  151. package/ts/customers/getstep.js +0 -420
  152. package/ts/customers/profilebasic.d.ts +0 -38
  153. package/ts/customers/profilebasic.js +0 -161
  154. package/ts/customers/profileupdatetnc.d.ts +0 -35
  155. package/ts/customers/profileupdatetnc.js +0 -117
  156. package/ts/customers/sendemailtoken.d.ts +0 -35
  157. package/ts/customers/sendemailtoken.js +0 -117
  158. package/ts/customers/sendotp.d.ts +0 -38
  159. package/ts/customers/sendotp.js +0 -165
  160. package/ts/customers/setmpin.d.ts +0 -36
  161. package/ts/customers/setmpin.js +0 -133
  162. package/ts/customers/step1.d.ts +0 -69
  163. package/ts/customers/step1.js +0 -395
  164. package/ts/customers/step10.d.ts +0 -73
  165. package/ts/customers/step10.js +0 -459
  166. package/ts/customers/step2.d.ts +0 -68
  167. package/ts/customers/step2.js +0 -381
  168. package/ts/customers/step7.d.ts +0 -68
  169. package/ts/customers/step7.js +0 -381
  170. package/ts/customers/step8.d.ts +0 -69
  171. package/ts/customers/step8.js +0 -395
  172. package/ts/customers/step9.d.ts +0 -75
  173. package/ts/customers/step9.js +0 -489
  174. package/ts/customers/stepstatic.d.ts +0 -66
  175. package/ts/customers/stepstatic.js +0 -354
  176. package/ts/customers/verifyemail.d.ts +0 -35
  177. package/ts/customers/verifyemail.js +0 -117
  178. package/ts/customers/verifympin.d.ts +0 -37
  179. package/ts/customers/verifympin.js +0 -149
  180. package/ts/customers/verifyotp.d.ts +0 -40
  181. package/ts/customers/verifyotp.js +0 -191
  182. package/ts/customers.d.ts +0 -388
  183. package/ts/customers.js +0 -280
  184. package/ts/example.d.ts +0 -78
  185. package/ts/example.js +0 -199
  186. package/ts/google/protobuf/any.d.ts +0 -138
  187. package/ts/google/protobuf/any.js +0 -108
  188. package/ts/google/protobuf/timestamp.js +0 -97
  189. package/ts/loans/approveloan.d.ts +0 -39
  190. package/ts/loans/approveloan.js +0 -175
  191. package/ts/loans/banklist.d.ts +0 -48
  192. package/ts/loans/banklist.js +0 -202
  193. package/ts/loans/calculateemi.d.ts +0 -37
  194. package/ts/loans/calculateemi.js +0 -147
  195. package/ts/loans/creditlimit.d.ts +0 -35
  196. package/ts/loans/creditlimit.js +0 -120
  197. package/ts/loans/updateinstallments.d.ts +0 -42
  198. package/ts/loans/updateinstallments.js +0 -226
  199. package/ts/loans/updateloan.d.ts +0 -39
  200. package/ts/loans/updateloan.js +0 -175
  201. package/ts/loans.d.ts +0 -98
  202. package/ts/loans.js +0 -74
  203. package/ts/payments/checkpaymentstatus.d.ts +0 -51
  204. package/ts/payments/checkpaymentstatus.js +0 -259
  205. package/ts/payments/createorder.d.ts +0 -39
  206. package/ts/payments/createorder.js +0 -191
  207. package/ts/payments/getpaymentdetails.d.ts +0 -58
  208. package/ts/payments/getpaymentdetails.js +0 -367
  209. package/ts/payments/getpaymentoptions.d.ts +0 -50
  210. package/ts/payments/getpaymentoptions.js +0 -231
  211. package/ts/payments/initiatepayment.d.ts +0 -54
  212. package/ts/payments/initiatepayment.js +0 -299
  213. package/ts/payments.d.ts +0 -70
  214. package/ts/payments.js +0 -54
  215. package/ts/stashcash/creditsc.d.ts +0 -54
  216. package/ts/stashcash/creditsc.js +0 -301
  217. package/ts/stashcash/debitsc.d.ts +0 -59
  218. package/ts/stashcash/debitsc.js +0 -380
  219. package/ts/stashcash/getscbalance.d.ts +0 -53
  220. package/ts/stashcash/getscbalance.js +0 -293
  221. package/ts/stashcash/getschistory.d.ts +0 -73
  222. package/ts/stashcash/getschistory.js +0 -479
  223. package/ts/stashcash/reversesc.d.ts +0 -52
  224. package/ts/stashcash/reversesc.js +0 -273
  225. package/ts/stashcash.d.ts +0 -84
  226. package/ts/stashcash.js +0 -64
@@ -1,138 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * `Any` contains an arbitrary serialized protocol buffer message along with a
5
- * URL that describes the type of the serialized message.
6
- *
7
- * Protobuf library provides support to pack/unpack Any values in the form
8
- * of utility functions or additional generated methods of the Any type.
9
- *
10
- * Example 1: Pack and unpack a message in C++.
11
- *
12
- * Foo foo = ...;
13
- * Any any;
14
- * any.PackFrom(foo);
15
- * ...
16
- * if (any.UnpackTo(&foo)) {
17
- * ...
18
- * }
19
- *
20
- * Example 2: Pack and unpack a message in Java.
21
- *
22
- * Foo foo = ...;
23
- * Any any = Any.pack(foo);
24
- * ...
25
- * if (any.is(Foo.class)) {
26
- * foo = any.unpack(Foo.class);
27
- * }
28
- *
29
- * Example 3: Pack and unpack a message in Python.
30
- *
31
- * foo = Foo(...)
32
- * any = Any()
33
- * any.Pack(foo)
34
- * ...
35
- * if any.Is(Foo.DESCRIPTOR):
36
- * any.Unpack(foo)
37
- * ...
38
- *
39
- * Example 4: Pack and unpack a message in Go
40
- *
41
- * foo := &pb.Foo{...}
42
- * any, err := anypb.New(foo)
43
- * if err != nil {
44
- * ...
45
- * }
46
- * ...
47
- * foo := &pb.Foo{}
48
- * if err := any.UnmarshalTo(foo); err != nil {
49
- * ...
50
- * }
51
- *
52
- * The pack methods provided by protobuf library will by default use
53
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
54
- * methods only use the fully qualified type name after the last '/'
55
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
56
- * name "y.z".
57
- *
58
- * JSON
59
- *
60
- * The JSON representation of an `Any` value uses the regular
61
- * representation of the deserialized, embedded message, with an
62
- * additional field `@type` which contains the type URL. Example:
63
- *
64
- * package google.profile;
65
- * message Person {
66
- * string first_name = 1;
67
- * string last_name = 2;
68
- * }
69
- *
70
- * {
71
- * "@type": "type.googleapis.com/google.profile.Person",
72
- * "firstName": <string>,
73
- * "lastName": <string>
74
- * }
75
- *
76
- * If the embedded message type is well-known and has a custom JSON
77
- * representation, that representation will be embedded adding a field
78
- * `value` which holds the custom JSON in addition to the `@type`
79
- * field. Example (for message [google.protobuf.Duration][]):
80
- *
81
- * {
82
- * "@type": "type.googleapis.com/google.protobuf.Duration",
83
- * "value": "1.212s"
84
- * }
85
- */
86
- export interface Any {
87
- /**
88
- * A URL/resource name that uniquely identifies the type of the serialized
89
- * protocol buffer message. This string must contain at least
90
- * one "/" character. The last segment of the URL's path must represent
91
- * the fully qualified name of the type (as in
92
- * `path/google.protobuf.Duration`). The name should be in a canonical form
93
- * (e.g., leading "." is not accepted).
94
- *
95
- * In practice, teams usually precompile into the binary all types that they
96
- * expect it to use in the context of Any. However, for URLs which use the
97
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
98
- * server that maps type URLs to message definitions as follows:
99
- *
100
- * * If no scheme is provided, `https` is assumed.
101
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
102
- * value in binary format, or produce an error.
103
- * * Applications are allowed to cache lookup results based on the
104
- * URL, or have them precompiled into a binary to avoid any
105
- * lookup. Therefore, binary compatibility needs to be preserved
106
- * on changes to types. (Use versioned type names to manage
107
- * breaking changes.)
108
- *
109
- * Note: this functionality is not currently available in the official
110
- * protobuf release, and it is not used for type URLs beginning with
111
- * type.googleapis.com.
112
- *
113
- * Schemes other than `http`, `https` (or the empty scheme) might be
114
- * used with implementation specific semantics.
115
- */
116
- type_url: string;
117
- /** Must be a valid serialized protocol buffer of the above specified type. */
118
- value: Uint8Array;
119
- }
120
- export declare const Any: {
121
- encode(message: Any, writer?: _m0.Writer): _m0.Writer;
122
- decode(input: _m0.Reader | Uint8Array, length?: number): Any;
123
- fromJSON(object: any): Any;
124
- toJSON(message: Any): unknown;
125
- create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any;
126
- fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
127
- };
128
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
129
- 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 {} ? {
130
- [K in keyof T]?: DeepPartial<T[K]>;
131
- } : Partial<T>;
132
- type KeysOfUnion<T> = T extends T ? keyof T : never;
133
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
134
- [K in keyof P]: Exact<P[K], I[K]>;
135
- } & {
136
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
137
- };
138
- export {};
@@ -1,108 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.180.0
5
- // protoc v3.20.3
6
- // source: google/protobuf/any.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.Any = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "google.protobuf";
15
- function createBaseAny() {
16
- return { type_url: "", value: new Uint8Array(0) };
17
- }
18
- exports.Any = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.type_url !== "") {
21
- writer.uint32(10).string(message.type_url);
22
- }
23
- if (message.value.length !== 0) {
24
- writer.uint32(18).bytes(message.value);
25
- }
26
- return writer;
27
- },
28
- decode(input, length) {
29
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
- let end = length === undefined ? reader.len : reader.pos + length;
31
- const message = createBaseAny();
32
- while (reader.pos < end) {
33
- const tag = reader.uint32();
34
- switch (tag >>> 3) {
35
- case 1:
36
- if (tag !== 10) {
37
- break;
38
- }
39
- message.type_url = reader.string();
40
- continue;
41
- case 2:
42
- if (tag !== 18) {
43
- break;
44
- }
45
- message.value = reader.bytes();
46
- continue;
47
- }
48
- if ((tag & 7) === 4 || tag === 0) {
49
- break;
50
- }
51
- reader.skipType(tag & 7);
52
- }
53
- return message;
54
- },
55
- fromJSON(object) {
56
- return {
57
- type_url: isSet(object.type_url) ? globalThis.String(object.type_url) : "",
58
- value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
59
- };
60
- },
61
- toJSON(message) {
62
- const obj = {};
63
- if (message.type_url !== "") {
64
- obj.type_url = message.type_url;
65
- }
66
- if (message.value.length !== 0) {
67
- obj.value = base64FromBytes(message.value);
68
- }
69
- return obj;
70
- },
71
- create(base) {
72
- return exports.Any.fromPartial(base ?? {});
73
- },
74
- fromPartial(object) {
75
- const message = createBaseAny();
76
- message.type_url = object.type_url ?? "";
77
- message.value = object.value ?? new Uint8Array(0);
78
- return message;
79
- },
80
- };
81
- function bytesFromBase64(b64) {
82
- if (globalThis.Buffer) {
83
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
84
- }
85
- else {
86
- const bin = globalThis.atob(b64);
87
- const arr = new Uint8Array(bin.length);
88
- for (let i = 0; i < bin.length; ++i) {
89
- arr[i] = bin.charCodeAt(i);
90
- }
91
- return arr;
92
- }
93
- }
94
- function base64FromBytes(arr) {
95
- if (globalThis.Buffer) {
96
- return globalThis.Buffer.from(arr).toString("base64");
97
- }
98
- else {
99
- const bin = [];
100
- arr.forEach((byte) => {
101
- bin.push(globalThis.String.fromCharCode(byte));
102
- });
103
- return globalThis.btoa(bin.join(""));
104
- }
105
- }
106
- function isSet(value) {
107
- return value !== null && value !== undefined;
108
- }
@@ -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.180.0
5
- // protoc v3.20.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,39 +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
- }
10
- export interface approveLoanResponse {
11
- id: number;
12
- }
13
- export declare const approveLoanRequest: {
14
- encode(message: approveLoanRequest, writer?: _m0.Writer): _m0.Writer;
15
- decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest;
16
- fromJSON(object: any): approveLoanRequest;
17
- toJSON(message: approveLoanRequest): unknown;
18
- create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest;
19
- fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest;
20
- };
21
- export declare const approveLoanResponse: {
22
- encode(message: approveLoanResponse, writer?: _m0.Writer): _m0.Writer;
23
- decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse;
24
- fromJSON(object: any): approveLoanResponse;
25
- toJSON(message: approveLoanResponse): unknown;
26
- create<I extends Exact<DeepPartial<approveLoanResponse>, I>>(base?: I): approveLoanResponse;
27
- fromPartial<I extends Exact<DeepPartial<approveLoanResponse>, I>>(object: I): approveLoanResponse;
28
- };
29
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
30
- 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 {} ? {
31
- [K in keyof T]?: DeepPartial<T[K]>;
32
- } : Partial<T>;
33
- type KeysOfUnion<T> = T extends T ? keyof T : never;
34
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
35
- [K in keyof P]: Exact<P[K], I[K]>;
36
- } & {
37
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
38
- };
39
- export {};
@@ -1,175 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.180.0
5
- // protoc v3.20.3
6
- // source: 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: "" };
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
- return writer;
36
- },
37
- decode(input, length) {
38
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
39
- let end = length === undefined ? reader.len : reader.pos + length;
40
- const message = createBaseapproveLoanRequest();
41
- while (reader.pos < end) {
42
- const tag = reader.uint32();
43
- switch (tag >>> 3) {
44
- case 1:
45
- if (tag !== 8) {
46
- break;
47
- }
48
- message.bank_id = reader.int32();
49
- continue;
50
- case 2:
51
- if (tag !== 16) {
52
- break;
53
- }
54
- message.amount = reader.int32();
55
- continue;
56
- case 3:
57
- if (tag !== 24) {
58
- break;
59
- }
60
- message.tenure = reader.int32();
61
- continue;
62
- case 4:
63
- if (tag !== 32) {
64
- break;
65
- }
66
- message.customer_id = reader.int32();
67
- continue;
68
- case 5:
69
- if (tag !== 42) {
70
- break;
71
- }
72
- message.ip = reader.string();
73
- continue;
74
- }
75
- if ((tag & 7) === 4 || tag === 0) {
76
- break;
77
- }
78
- reader.skipType(tag & 7);
79
- }
80
- return message;
81
- },
82
- fromJSON(object) {
83
- return {
84
- bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
85
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
86
- tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
87
- customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
88
- ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
89
- };
90
- },
91
- toJSON(message) {
92
- const obj = {};
93
- if (message.bank_id !== 0) {
94
- obj.bank_id = Math.round(message.bank_id);
95
- }
96
- if (message.amount !== 0) {
97
- obj.amount = Math.round(message.amount);
98
- }
99
- if (message.tenure !== 0) {
100
- obj.tenure = Math.round(message.tenure);
101
- }
102
- if (message.customer_id !== 0) {
103
- obj.customer_id = Math.round(message.customer_id);
104
- }
105
- if (message.ip !== "") {
106
- obj.ip = message.ip;
107
- }
108
- return obj;
109
- },
110
- create(base) {
111
- return exports.approveLoanRequest.fromPartial(base ?? {});
112
- },
113
- fromPartial(object) {
114
- const message = createBaseapproveLoanRequest();
115
- message.bank_id = object.bank_id ?? 0;
116
- message.amount = object.amount ?? 0;
117
- message.tenure = object.tenure ?? 0;
118
- message.customer_id = object.customer_id ?? 0;
119
- message.ip = object.ip ?? "";
120
- return message;
121
- },
122
- };
123
- function createBaseapproveLoanResponse() {
124
- return { id: 0 };
125
- }
126
- exports.approveLoanResponse = {
127
- encode(message, writer = minimal_1.default.Writer.create()) {
128
- if (message.id !== 0) {
129
- writer.uint32(8).int32(message.id);
130
- }
131
- return writer;
132
- },
133
- decode(input, length) {
134
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
135
- let end = length === undefined ? reader.len : reader.pos + length;
136
- const message = createBaseapproveLoanResponse();
137
- while (reader.pos < end) {
138
- const tag = reader.uint32();
139
- switch (tag >>> 3) {
140
- case 1:
141
- if (tag !== 8) {
142
- break;
143
- }
144
- message.id = reader.int32();
145
- continue;
146
- }
147
- if ((tag & 7) === 4 || tag === 0) {
148
- break;
149
- }
150
- reader.skipType(tag & 7);
151
- }
152
- return message;
153
- },
154
- fromJSON(object) {
155
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
156
- },
157
- toJSON(message) {
158
- const obj = {};
159
- if (message.id !== 0) {
160
- obj.id = Math.round(message.id);
161
- }
162
- return obj;
163
- },
164
- create(base) {
165
- return exports.approveLoanResponse.fromPartial(base ?? {});
166
- },
167
- fromPartial(object) {
168
- const message = createBaseapproveLoanResponse();
169
- message.id = object.id ?? 0;
170
- return message;
171
- },
172
- };
173
- function isSet(value) {
174
- return value !== null && value !== undefined;
175
- }
@@ -1,48 +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
- data: bankListResponse_Field[];
7
- }
8
- export interface bankListResponse_Field {
9
- id: number;
10
- account_number: number;
11
- bank_name: string;
12
- ifsc_code: number;
13
- }
14
- export declare const bankListRequest: {
15
- encode(_: bankListRequest, writer?: _m0.Writer): _m0.Writer;
16
- decode(input: _m0.Reader | Uint8Array, length?: number): bankListRequest;
17
- fromJSON(_: any): bankListRequest;
18
- toJSON(_: bankListRequest): unknown;
19
- create<I extends Exact<DeepPartial<bankListRequest>, I>>(base?: I): bankListRequest;
20
- fromPartial<I extends Exact<DeepPartial<bankListRequest>, I>>(_: I): bankListRequest;
21
- };
22
- export declare const bankListResponse: {
23
- encode(message: bankListResponse, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse;
25
- fromJSON(object: any): bankListResponse;
26
- toJSON(message: bankListResponse): unknown;
27
- create<I extends Exact<DeepPartial<bankListResponse>, I>>(base?: I): bankListResponse;
28
- fromPartial<I extends Exact<DeepPartial<bankListResponse>, I>>(object: I): bankListResponse;
29
- };
30
- export declare const bankListResponse_Field: {
31
- encode(message: bankListResponse_Field, writer?: _m0.Writer): _m0.Writer;
32
- decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse_Field;
33
- fromJSON(object: any): bankListResponse_Field;
34
- toJSON(message: bankListResponse_Field): unknown;
35
- create<I extends Exact<DeepPartial<bankListResponse_Field>, I>>(base?: I): bankListResponse_Field;
36
- fromPartial<I extends Exact<DeepPartial<bankListResponse_Field>, I>>(object: I): bankListResponse_Field;
37
- };
38
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
39
- 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 {} ? {
40
- [K in keyof T]?: DeepPartial<T[K]>;
41
- } : Partial<T>;
42
- type KeysOfUnion<T> = T extends T ? keyof T : never;
43
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
- [K in keyof P]: Exact<P[K], I[K]>;
45
- } & {
46
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
- };
48
- export {};