@stashfin/grpc 1.0.31 → 1.2.1
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 +1 -1
- package/ts/customers/getprofile.js +1 -1
- package/ts/customers/getstep.js +1 -1
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.d.ts +2 -0
- package/ts/customers/sendotp.js +36 -4
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.js +1 -1
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.js +1 -1
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.d.ts +1 -0
- package/ts/customers/verifyotp.js +22 -8
- package/ts/customers.js +1 -1
- package/ts/example.js +1 -1
- package/ts/loans/banklist.d.ts +36 -0
- package/ts/{customer/setmpin.js → loans/banklist.js} +59 -58
- package/ts/loans/calculateemi.d.ts +48 -0
- package/ts/loans/calculateemi.js +201 -0
- package/ts/loans/creditlimit.d.ts +35 -0
- package/ts/{customer/profileupdatetnc.js → loans/creditlimit.js} +44 -41
- package/ts/loans.d.ts +56 -0
- package/ts/loans.js +44 -0
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.d.ts +1 -0
- package/ts/stashcash/getscbalance.js +24 -2
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/sendotp.js +0 -133
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/verifympin.js +0 -149
- package/ts/customer/verifyotp.d.ts +0 -39
- package/ts/customer/verifyotp.js +0 -177
- package/ts/customer.d.ts +0 -262
- package/ts/customer.js +0 -190
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getprofile.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/getstep.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getstep.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/profilebasic.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/profileupdatetnc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/sendemailtoken.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -2,10 +2,12 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "customers.sendotp";
|
|
3
3
|
export interface sendOtpRequest {
|
|
4
4
|
mobile: string;
|
|
5
|
+
device_id: string;
|
|
5
6
|
}
|
|
6
7
|
export interface sendOtpRespone {
|
|
7
8
|
ismpin: boolean;
|
|
8
9
|
token: string;
|
|
10
|
+
is_device_registered: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const sendOtpRequest: {
|
|
11
13
|
encode(message: sendOtpRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/customers/sendotp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/sendotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -13,13 +13,16 @@ exports.sendOtpRespone = exports.sendOtpRequest = exports.protobufPackage = void
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.sendotp";
|
|
15
15
|
function createBasesendOtpRequest() {
|
|
16
|
-
return { mobile: "" };
|
|
16
|
+
return { mobile: "", device_id: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.sendOtpRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.mobile !== "") {
|
|
21
21
|
writer.uint32(10).string(message.mobile);
|
|
22
22
|
}
|
|
23
|
+
if (message.device_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.device_id);
|
|
25
|
+
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
@@ -35,6 +38,12 @@ exports.sendOtpRequest = {
|
|
|
35
38
|
}
|
|
36
39
|
message.mobile = reader.string();
|
|
37
40
|
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.device_id = reader.string();
|
|
46
|
+
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
49
|
break;
|
|
@@ -44,13 +53,19 @@ exports.sendOtpRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
63
|
if (message.mobile !== "") {
|
|
52
64
|
obj.mobile = message.mobile;
|
|
53
65
|
}
|
|
66
|
+
if (message.device_id !== "") {
|
|
67
|
+
obj.device_id = message.device_id;
|
|
68
|
+
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
@@ -59,11 +74,12 @@ exports.sendOtpRequest = {
|
|
|
59
74
|
fromPartial(object) {
|
|
60
75
|
const message = createBasesendOtpRequest();
|
|
61
76
|
message.mobile = object.mobile ?? "";
|
|
77
|
+
message.device_id = object.device_id ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
|
65
81
|
function createBasesendOtpRespone() {
|
|
66
|
-
return { ismpin: false, token: "" };
|
|
82
|
+
return { ismpin: false, token: "", is_device_registered: false };
|
|
67
83
|
}
|
|
68
84
|
exports.sendOtpRespone = {
|
|
69
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -73,6 +89,9 @@ exports.sendOtpRespone = {
|
|
|
73
89
|
if (message.token !== "") {
|
|
74
90
|
writer.uint32(18).string(message.token);
|
|
75
91
|
}
|
|
92
|
+
if (message.is_device_registered !== false) {
|
|
93
|
+
writer.uint32(24).bool(message.is_device_registered);
|
|
94
|
+
}
|
|
76
95
|
return writer;
|
|
77
96
|
},
|
|
78
97
|
decode(input, length) {
|
|
@@ -94,6 +113,12 @@ exports.sendOtpRespone = {
|
|
|
94
113
|
}
|
|
95
114
|
message.token = reader.string();
|
|
96
115
|
continue;
|
|
116
|
+
case 3:
|
|
117
|
+
if (tag !== 24) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.is_device_registered = reader.bool();
|
|
121
|
+
continue;
|
|
97
122
|
}
|
|
98
123
|
if ((tag & 7) === 4 || tag === 0) {
|
|
99
124
|
break;
|
|
@@ -106,6 +131,9 @@ exports.sendOtpRespone = {
|
|
|
106
131
|
return {
|
|
107
132
|
ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
|
|
108
133
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
134
|
+
is_device_registered: isSet(object.is_device_registered)
|
|
135
|
+
? globalThis.Boolean(object.is_device_registered)
|
|
136
|
+
: false,
|
|
109
137
|
};
|
|
110
138
|
},
|
|
111
139
|
toJSON(message) {
|
|
@@ -116,6 +144,9 @@ exports.sendOtpRespone = {
|
|
|
116
144
|
if (message.token !== "") {
|
|
117
145
|
obj.token = message.token;
|
|
118
146
|
}
|
|
147
|
+
if (message.is_device_registered !== false) {
|
|
148
|
+
obj.is_device_registered = message.is_device_registered;
|
|
149
|
+
}
|
|
119
150
|
return obj;
|
|
120
151
|
},
|
|
121
152
|
create(base) {
|
|
@@ -125,6 +156,7 @@ exports.sendOtpRespone = {
|
|
|
125
156
|
const message = createBasesendOtpRespone();
|
|
126
157
|
message.ismpin = object.ismpin ?? false;
|
|
127
158
|
message.token = object.token ?? "";
|
|
159
|
+
message.is_device_registered = object.is_device_registered ?? false;
|
|
128
160
|
return message;
|
|
129
161
|
},
|
|
130
162
|
};
|
package/ts/customers/setmpin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/setmpin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step1.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step1.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step10.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step10.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step7.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step8.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step8.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step9.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/step9.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/stepstatic.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifyemail.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifympin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/verifyotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -13,21 +13,24 @@ exports.verifyOtpResponse = exports.verifyOtpReqeust = exports.protobufPackage =
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.verifyotp";
|
|
15
15
|
function createBaseverifyOtpReqeust() {
|
|
16
|
-
return { mobile: "", otp: "", token: "", tnc: false };
|
|
16
|
+
return { mobile: "", device_id: "", otp: "", token: "", tnc: false };
|
|
17
17
|
}
|
|
18
18
|
exports.verifyOtpReqeust = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.mobile !== "") {
|
|
21
21
|
writer.uint32(10).string(message.mobile);
|
|
22
22
|
}
|
|
23
|
+
if (message.device_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.device_id);
|
|
25
|
+
}
|
|
23
26
|
if (message.otp !== "") {
|
|
24
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(26).string(message.otp);
|
|
25
28
|
}
|
|
26
29
|
if (message.token !== "") {
|
|
27
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(34).string(message.token);
|
|
28
31
|
}
|
|
29
32
|
if (message.tnc !== false) {
|
|
30
|
-
writer.uint32(
|
|
33
|
+
writer.uint32(40).bool(message.tnc);
|
|
31
34
|
}
|
|
32
35
|
return writer;
|
|
33
36
|
},
|
|
@@ -48,16 +51,22 @@ exports.verifyOtpReqeust = {
|
|
|
48
51
|
if (tag !== 18) {
|
|
49
52
|
break;
|
|
50
53
|
}
|
|
51
|
-
message.
|
|
54
|
+
message.device_id = reader.string();
|
|
52
55
|
continue;
|
|
53
56
|
case 3:
|
|
54
57
|
if (tag !== 26) {
|
|
55
58
|
break;
|
|
56
59
|
}
|
|
57
|
-
message.
|
|
60
|
+
message.otp = reader.string();
|
|
58
61
|
continue;
|
|
59
62
|
case 4:
|
|
60
|
-
if (tag !==
|
|
63
|
+
if (tag !== 34) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.token = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 40) {
|
|
61
70
|
break;
|
|
62
71
|
}
|
|
63
72
|
message.tnc = reader.bool();
|
|
@@ -73,6 +82,7 @@ exports.verifyOtpReqeust = {
|
|
|
73
82
|
fromJSON(object) {
|
|
74
83
|
return {
|
|
75
84
|
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
85
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
76
86
|
otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
|
|
77
87
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
78
88
|
tnc: isSet(object.tnc) ? globalThis.Boolean(object.tnc) : false,
|
|
@@ -83,6 +93,9 @@ exports.verifyOtpReqeust = {
|
|
|
83
93
|
if (message.mobile !== "") {
|
|
84
94
|
obj.mobile = message.mobile;
|
|
85
95
|
}
|
|
96
|
+
if (message.device_id !== "") {
|
|
97
|
+
obj.device_id = message.device_id;
|
|
98
|
+
}
|
|
86
99
|
if (message.otp !== "") {
|
|
87
100
|
obj.otp = message.otp;
|
|
88
101
|
}
|
|
@@ -100,6 +113,7 @@ exports.verifyOtpReqeust = {
|
|
|
100
113
|
fromPartial(object) {
|
|
101
114
|
const message = createBaseverifyOtpReqeust();
|
|
102
115
|
message.mobile = object.mobile ?? "";
|
|
116
|
+
message.device_id = object.device_id ?? "";
|
|
103
117
|
message.otp = object.otp ?? "";
|
|
104
118
|
message.token = object.token ?? "";
|
|
105
119
|
message.tnc = object.tnc ?? false;
|
package/ts/customers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/ts/example.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: example.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.banklist";
|
|
3
|
+
export interface bankListRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface bankListResponse {
|
|
6
|
+
bank_name: string;
|
|
7
|
+
ifsc_code: number;
|
|
8
|
+
account_number: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const bankListRequest: {
|
|
11
|
+
encode(_: bankListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListRequest;
|
|
13
|
+
fromJSON(_: any): bankListRequest;
|
|
14
|
+
toJSON(_: bankListRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<bankListRequest>, I>>(base?: I): bankListRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<bankListRequest>, I>>(_: I): bankListRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const bankListResponse: {
|
|
19
|
+
encode(message: bankListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse;
|
|
21
|
+
fromJSON(object: any): bankListResponse;
|
|
22
|
+
toJSON(message: bankListResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<bankListResponse>, I>>(base?: I): bankListResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<bankListResponse>, I>>(object: I): bankListResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -1,49 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
|
-
// source:
|
|
6
|
+
// source: loans/banklist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.bankListResponse = exports.bankListRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "loans.banklist";
|
|
15
|
+
function createBasebankListRequest() {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
19
|
-
encode(
|
|
20
|
-
if (message.mobile !== "") {
|
|
21
|
-
writer.uint32(10).string(message.mobile);
|
|
22
|
-
}
|
|
23
|
-
if (message.mpin !== 0) {
|
|
24
|
-
writer.uint32(16).int32(message.mpin);
|
|
25
|
-
}
|
|
18
|
+
exports.bankListRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
26
20
|
return writer;
|
|
27
21
|
},
|
|
28
22
|
decode(input, length) {
|
|
29
23
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
24
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
-
const message =
|
|
25
|
+
const message = createBasebankListRequest();
|
|
32
26
|
while (reader.pos < end) {
|
|
33
27
|
const tag = reader.uint32();
|
|
34
28
|
switch (tag >>> 3) {
|
|
35
|
-
case 1:
|
|
36
|
-
if (tag !== 10) {
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
message.mobile = reader.string();
|
|
40
|
-
continue;
|
|
41
|
-
case 2:
|
|
42
|
-
if (tag !== 16) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
message.mpin = reader.int32();
|
|
46
|
-
continue;
|
|
47
29
|
}
|
|
48
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
31
|
break;
|
|
@@ -52,54 +34,61 @@ exports.request = {
|
|
|
52
34
|
}
|
|
53
35
|
return message;
|
|
54
36
|
},
|
|
55
|
-
fromJSON(
|
|
56
|
-
return {
|
|
57
|
-
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
-
mpin: isSet(object.mpin) ? globalThis.Number(object.mpin) : 0,
|
|
59
|
-
};
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
60
39
|
},
|
|
61
|
-
toJSON(
|
|
40
|
+
toJSON(_) {
|
|
62
41
|
const obj = {};
|
|
63
|
-
if (message.mobile !== "") {
|
|
64
|
-
obj.mobile = message.mobile;
|
|
65
|
-
}
|
|
66
|
-
if (message.mpin !== 0) {
|
|
67
|
-
obj.mpin = Math.round(message.mpin);
|
|
68
|
-
}
|
|
69
42
|
return obj;
|
|
70
43
|
},
|
|
71
44
|
create(base) {
|
|
72
|
-
return exports.
|
|
45
|
+
return exports.bankListRequest.fromPartial(base ?? {});
|
|
73
46
|
},
|
|
74
|
-
fromPartial(
|
|
75
|
-
const message =
|
|
76
|
-
message.mobile = object.mobile ?? "";
|
|
77
|
-
message.mpin = object.mpin ?? 0;
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasebankListRequest();
|
|
78
49
|
return message;
|
|
79
50
|
},
|
|
80
51
|
};
|
|
81
|
-
function
|
|
82
|
-
return {
|
|
52
|
+
function createBasebankListResponse() {
|
|
53
|
+
return { bank_name: "", ifsc_code: 0, account_number: 0 };
|
|
83
54
|
}
|
|
84
|
-
exports.
|
|
55
|
+
exports.bankListResponse = {
|
|
85
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
if (message.
|
|
87
|
-
writer.uint32(
|
|
57
|
+
if (message.bank_name !== "") {
|
|
58
|
+
writer.uint32(10).string(message.bank_name);
|
|
59
|
+
}
|
|
60
|
+
if (message.ifsc_code !== 0) {
|
|
61
|
+
writer.uint32(16).int32(message.ifsc_code);
|
|
62
|
+
}
|
|
63
|
+
if (message.account_number !== 0) {
|
|
64
|
+
writer.uint32(24).int32(message.account_number);
|
|
88
65
|
}
|
|
89
66
|
return writer;
|
|
90
67
|
},
|
|
91
68
|
decode(input, length) {
|
|
92
69
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
70
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
-
const message =
|
|
71
|
+
const message = createBasebankListResponse();
|
|
95
72
|
while (reader.pos < end) {
|
|
96
73
|
const tag = reader.uint32();
|
|
97
74
|
switch (tag >>> 3) {
|
|
98
75
|
case 1:
|
|
99
|
-
if (tag !==
|
|
76
|
+
if (tag !== 10) {
|
|
100
77
|
break;
|
|
101
78
|
}
|
|
102
|
-
message.
|
|
79
|
+
message.bank_name = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 16) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.ifsc_code = reader.int32();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 24) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.account_number = reader.int32();
|
|
103
92
|
continue;
|
|
104
93
|
}
|
|
105
94
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -110,21 +99,33 @@ exports.response = {
|
|
|
110
99
|
return message;
|
|
111
100
|
},
|
|
112
101
|
fromJSON(object) {
|
|
113
|
-
return {
|
|
102
|
+
return {
|
|
103
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
104
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.Number(object.ifsc_code) : 0,
|
|
105
|
+
account_number: isSet(object.account_number) ? globalThis.Number(object.account_number) : 0,
|
|
106
|
+
};
|
|
114
107
|
},
|
|
115
108
|
toJSON(message) {
|
|
116
109
|
const obj = {};
|
|
117
|
-
if (message.
|
|
118
|
-
obj.
|
|
110
|
+
if (message.bank_name !== "") {
|
|
111
|
+
obj.bank_name = message.bank_name;
|
|
112
|
+
}
|
|
113
|
+
if (message.ifsc_code !== 0) {
|
|
114
|
+
obj.ifsc_code = Math.round(message.ifsc_code);
|
|
115
|
+
}
|
|
116
|
+
if (message.account_number !== 0) {
|
|
117
|
+
obj.account_number = Math.round(message.account_number);
|
|
119
118
|
}
|
|
120
119
|
return obj;
|
|
121
120
|
},
|
|
122
121
|
create(base) {
|
|
123
|
-
return exports.
|
|
122
|
+
return exports.bankListResponse.fromPartial(base ?? {});
|
|
124
123
|
},
|
|
125
124
|
fromPartial(object) {
|
|
126
|
-
const message =
|
|
127
|
-
message.
|
|
125
|
+
const message = createBasebankListResponse();
|
|
126
|
+
message.bank_name = object.bank_name ?? "";
|
|
127
|
+
message.ifsc_code = object.ifsc_code ?? 0;
|
|
128
|
+
message.account_number = object.account_number ?? 0;
|
|
128
129
|
return message;
|
|
129
130
|
},
|
|
130
131
|
};
|