@stashfin/grpc 1.2.54 → 1.2.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/forgotmpin.d.ts +36 -0
- package/ts/customers/forgotmpin.js +133 -0
- package/ts/customers/forgotmpinotp.d.ts +34 -0
- package/ts/customers/forgotmpinotp.js +104 -0
- package/ts/customers/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +55 -0
- package/ts/customers/getcustomerbyid.js +421 -0
- package/ts/customers/getdashboard.d.ts +91 -0
- package/ts/customers/getdashboard.js +618 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +53 -0
- package/ts/customers/getprofile.js +282 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedigilockertxn.d.ts +37 -0
- package/ts/customers/updatedigilockertxn.js +147 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/customers/updatehypervergetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers.d.ts +596 -0
- package/ts/customers.js +428 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +51 -0
- package/ts/loans/calculateemi.js +243 -0
- package/ts/loans/creditlimit.d.ts +43 -0
- package/ts/loans/creditlimit.js +247 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +126 -0
- package/ts/loans.js +94 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
- package/README.md +0 -74
- package/src/proto/customers/addaddress.proto +0 -25
- package/src/proto/customers/addbankaccountdetails.proto +0 -13
- package/src/proto/customers/createcustomerreference.proto +0 -21
- package/src/proto/customers/forgotmpin.proto +0 -12
- package/src/proto/customers/forgotmpinotp.proto +0 -10
- package/src/proto/customers/getbankaccountdetails.proto +0 -11
- package/src/proto/customers/getbasicinfo.proto +0 -24
- package/src/proto/customers/getcities.proto +0 -16
- package/src/proto/customers/getcustomerbyid.proto +0 -31
- package/src/proto/customers/getdashboard.proto +0 -47
- package/src/proto/customers/getdashboardmaincard.proto +0 -37
- package/src/proto/customers/getkycweburl.proto +0 -10
- package/src/proto/customers/getprofessionalinfo.proto +0 -22
- package/src/proto/customers/getprofile.proto +0 -22
- package/src/proto/customers/getstates.proto +0 -15
- package/src/proto/customers/getstep.proto +0 -30
- package/src/proto/customers/profilebasic.proto +0 -14
- package/src/proto/customers/profileupdatetnc.proto +0 -11
- package/src/proto/customers/resetmpin.proto +0 -13
- package/src/proto/customers/savebasicdetails.proto +0 -16
- package/src/proto/customers/saveunlocklimit.proto +0 -10
- package/src/proto/customers/sendemailtoken.proto +0 -11
- package/src/proto/customers/sendotp.proto +0 -14
- package/src/proto/customers/setmpin.proto +0 -12
- package/src/proto/customers/step10.proto +0 -34
- package/src/proto/customers/step7.proto +0 -29
- package/src/proto/customers/step8.proto +0 -30
- package/src/proto/customers/step9.proto +0 -36
- package/src/proto/customers/stepstatic.proto +0 -27
- package/src/proto/customers/updatedigilockertxn.proto +0 -13
- package/src/proto/customers/updatedob.proto +0 -13
- package/src/proto/customers/updatehypervergetxn.proto +0 -12
- package/src/proto/customers/verifyemail.proto +0 -11
- package/src/proto/customers/verifympin.proto +0 -13
- package/src/proto/customers/verifyotp.proto +0 -17
- package/src/proto/customers.proto +0 -83
- package/src/proto/example.proto +0 -20
- package/src/proto/loans/approveloan.proto +0 -15
- package/src/proto/loans/banklist.proto +0 -12
- package/src/proto/loans/calculateemi.proto +0 -20
- package/src/proto/loans/creditlimit.proto +0 -18
- package/src/proto/loans/restructureloan.proto +0 -12
- package/src/proto/loans/transactionlist.proto +0 -18
- package/src/proto/loans/updateinstallments.proto +0 -19
- package/src/proto/loans/updateloan.proto +0 -15
- package/src/proto/loans.proto +0 -23
- package/src/proto/stashcash/creditsc.proto +0 -22
- package/src/proto/stashcash/debitsc.proto +0 -27
- package/src/proto/stashcash/getscbalance.proto +0 -21
- package/src/proto/stashcash/getschistory.proto +0 -35
- package/src/proto/stashcash/reversesc.proto +0 -20
- package/src/proto/stashcash.proto +0 -17
- package/src/ts/customers/addaddress.ts +0 -310
- package/src/ts/customers/addbankaccountdetails.ts +0 -184
- package/src/ts/customers/createcustomerreference.ts +0 -276
- package/src/ts/customers/getbankaccountdetails.ts +0 -169
- package/src/ts/customers/getbasicinfo.ts +0 -385
- package/src/ts/customers/getcities.ts +0 -227
- package/src/ts/customers/getcustomerbyid.ts +0 -492
- package/src/ts/customers/getdashboard.ts +0 -728
- package/src/ts/customers/getdashboardmaincard.ts +0 -608
- package/src/ts/customers/getkycweburl.ts +0 -133
- package/src/ts/customers/getprofessionalinfo.ts +0 -344
- package/src/ts/customers/getprofile.ts +0 -338
- package/src/ts/customers/getstates.ts +0 -212
- package/src/ts/customers/getstep.ts +0 -483
- package/src/ts/customers/profilebasic.ts +0 -198
- package/src/ts/customers/profileupdatetnc.ts +0 -148
- package/src/ts/customers/resetmpin.ts +0 -166
- package/src/ts/customers/savebasicdetails.ts +0 -229
- package/src/ts/customers/saveunlocklimit.ts +0 -133
- package/src/ts/customers/sendemailtoken.ts +0 -148
- package/src/ts/customers/sendotp.ts +0 -202
- package/src/ts/customers/setmpin.ts +0 -166
- package/src/ts/customers/step10.ts +0 -544
- package/src/ts/customers/step7.ts +0 -456
- package/src/ts/customers/step8.ts +0 -472
- package/src/ts/customers/step9.ts +0 -578
- package/src/ts/customers/stepstatic.ts +0 -425
- package/src/ts/customers/updatedigilockertxn.ts +0 -182
- package/src/ts/customers/updatehypervergetxn.ts +0 -166
- package/src/ts/customers/verifyemail.ts +0 -148
- package/src/ts/customers/verifympin.ts +0 -184
- package/src/ts/customers/verifyotp.ts +0 -232
- package/src/ts/customers.ts +0 -1038
- package/src/ts/example.ts +0 -294
- package/src/ts/loans/approveloan.ts +0 -214
- package/src/ts/loans/banklist.ts +0 -183
- package/src/ts/loans/calculateemi.ts +0 -295
- package/src/ts/loans/creditlimit.ts +0 -294
- package/src/ts/loans/restructureloan.ts +0 -166
- package/src/ts/loans/transactionlist.ts +0 -281
- package/src/ts/loans/updateinstallments.ts +0 -271
- package/src/ts/loans/updateloan.ts +0 -214
- package/src/ts/loans.ts +0 -221
- package/src/ts/stashcash/creditsc.ts +0 -361
- package/src/ts/stashcash/debitsc.ts +0 -450
- package/src/ts/stashcash/getscbalance.ts +0 -351
- package/src/ts/stashcash/getschistory.ts +0 -566
- package/src/ts/stashcash/reversesc.ts +0 -329
- package/src/ts/stashcash.ts +0 -152
- package/tsconfig.json +0 -18
package/ts/example.js
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
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 v3.20.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,15 +1,5 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: google/protobuf/timestamp.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import Long from "long";
|
|
9
1
|
import _m0 from "protobufjs/minimal";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "google.protobuf";
|
|
12
|
-
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
13
3
|
/**
|
|
14
4
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
15
5
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -102,122 +92,36 @@ export const protobufPackage = "google.protobuf";
|
|
|
102
92
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
103
93
|
*/
|
|
104
94
|
export interface Timestamp {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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;
|
|
118
108
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (message.seconds !== 0) {
|
|
127
|
-
writer.uint32(8).int64(message.seconds);
|
|
128
|
-
}
|
|
129
|
-
if (message.nanos !== 0) {
|
|
130
|
-
writer.uint32(16).int32(message.nanos);
|
|
131
|
-
}
|
|
132
|
-
return writer;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {
|
|
136
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
137
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
138
|
-
const message = createBaseTimestamp();
|
|
139
|
-
while (reader.pos < end) {
|
|
140
|
-
const tag = reader.uint32();
|
|
141
|
-
switch (tag >>> 3) {
|
|
142
|
-
case 1:
|
|
143
|
-
if (tag !== 8) {
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message.seconds = longToNumber(reader.int64() as Long);
|
|
148
|
-
continue;
|
|
149
|
-
case 2:
|
|
150
|
-
if (tag !== 16) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
message.nanos = reader.int32();
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
reader.skipType(tag & 7);
|
|
161
|
-
}
|
|
162
|
-
return message;
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
fromJSON(object: any): Timestamp {
|
|
166
|
-
return {
|
|
167
|
-
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
168
|
-
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
169
|
-
};
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
toJSON(message: Timestamp): unknown {
|
|
173
|
-
const obj: any = {};
|
|
174
|
-
if (message.seconds !== 0) {
|
|
175
|
-
obj.seconds = Math.round(message.seconds);
|
|
176
|
-
}
|
|
177
|
-
if (message.nanos !== 0) {
|
|
178
|
-
obj.nanos = Math.round(message.nanos);
|
|
179
|
-
}
|
|
180
|
-
return obj;
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp {
|
|
184
|
-
return Timestamp.fromPartial(base ?? ({} as any));
|
|
185
|
-
},
|
|
186
|
-
fromPartial<I extends Exact<DeepPartial<Timestamp>, I>>(object: I): Timestamp {
|
|
187
|
-
const message = createBaseTimestamp();
|
|
188
|
-
message.seconds = object.seconds ?? 0;
|
|
189
|
-
message.nanos = object.nanos ?? 0;
|
|
190
|
-
return message;
|
|
191
|
-
},
|
|
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;
|
|
192
116
|
};
|
|
193
|
-
|
|
194
117
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
199
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
200
|
-
: Partial<T>;
|
|
201
|
-
|
|
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>;
|
|
202
121
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
203
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
211
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
212
|
-
}
|
|
213
|
-
return long.toNumber();
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
if (_m0.util.Long !== Long) {
|
|
217
|
-
_m0.util.Long = Long as any;
|
|
218
|
-
_m0.configure();
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function isSet(value: any): boolean {
|
|
222
|
-
return value !== null && value !== undefined;
|
|
223
|
-
}
|
|
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 {};
|
|
@@ -0,0 +1,97 @@
|
|
|
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 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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,175 @@
|
|
|
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 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
|
+
}
|