@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
|
@@ -0,0 +1,183 @@
|
|
|
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: customers/getcities.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.getCitiesResponse = exports.City = exports.getCitiesRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getcities";
|
|
15
|
+
function createBasegetCitiesRequest() {
|
|
16
|
+
return { state_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getCitiesRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.state_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.state_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetCitiesRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.state_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { state_id: isSet(object.state_id) ? globalThis.Number(object.state_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.state_id !== 0) {
|
|
52
|
+
obj.state_id = Math.round(message.state_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getCitiesRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetCitiesRequest();
|
|
61
|
+
message.state_id = object.state_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseCity() {
|
|
66
|
+
return { id: 0, name: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.City = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.id !== 0) {
|
|
71
|
+
writer.uint32(8).int32(message.id);
|
|
72
|
+
}
|
|
73
|
+
if (message.name !== "") {
|
|
74
|
+
writer.uint32(18).string(message.name);
|
|
75
|
+
}
|
|
76
|
+
return writer;
|
|
77
|
+
},
|
|
78
|
+
decode(input, length) {
|
|
79
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
80
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
+
const message = createBaseCity();
|
|
82
|
+
while (reader.pos < end) {
|
|
83
|
+
const tag = reader.uint32();
|
|
84
|
+
switch (tag >>> 3) {
|
|
85
|
+
case 1:
|
|
86
|
+
if (tag !== 8) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.id = reader.int32();
|
|
90
|
+
continue;
|
|
91
|
+
case 2:
|
|
92
|
+
if (tag !== 18) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.name = reader.string();
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
reader.skipType(tag & 7);
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
fromJSON(object) {
|
|
106
|
+
return {
|
|
107
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
108
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
toJSON(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
if (message.id !== 0) {
|
|
114
|
+
obj.id = Math.round(message.id);
|
|
115
|
+
}
|
|
116
|
+
if (message.name !== "") {
|
|
117
|
+
obj.name = message.name;
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.City.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBaseCity();
|
|
126
|
+
message.id = object.id ?? 0;
|
|
127
|
+
message.name = object.name ?? "";
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function createBasegetCitiesResponse() {
|
|
132
|
+
return { cities: [] };
|
|
133
|
+
}
|
|
134
|
+
exports.getCitiesResponse = {
|
|
135
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
136
|
+
for (const v of message.cities) {
|
|
137
|
+
exports.City.encode(v, writer.uint32(10).fork()).ldelim();
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBasegetCitiesResponse();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 10) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.cities.push(exports.City.decode(reader, reader.uint32()));
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
reader.skipType(tag & 7);
|
|
159
|
+
}
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
fromJSON(object) {
|
|
163
|
+
return { cities: globalThis.Array.isArray(object?.cities) ? object.cities.map((e) => exports.City.fromJSON(e)) : [] };
|
|
164
|
+
},
|
|
165
|
+
toJSON(message) {
|
|
166
|
+
const obj = {};
|
|
167
|
+
if (message.cities?.length) {
|
|
168
|
+
obj.cities = message.cities.map((e) => exports.City.toJSON(e));
|
|
169
|
+
}
|
|
170
|
+
return obj;
|
|
171
|
+
},
|
|
172
|
+
create(base) {
|
|
173
|
+
return exports.getCitiesResponse.fromPartial(base ?? {});
|
|
174
|
+
},
|
|
175
|
+
fromPartial(object) {
|
|
176
|
+
const message = createBasegetCitiesResponse();
|
|
177
|
+
message.cities = object.cities?.map((e) => exports.City.fromPartial(e)) || [];
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
function isSet(value) {
|
|
182
|
+
return value !== null && value !== undefined;
|
|
183
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getcustomerbyid";
|
|
3
|
+
export interface getCustomerByIdRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getCustomerByIdResponse {
|
|
7
|
+
mobile: string;
|
|
8
|
+
email: string;
|
|
9
|
+
first_name: string;
|
|
10
|
+
middle_name: string;
|
|
11
|
+
last_name: string;
|
|
12
|
+
father_name: string;
|
|
13
|
+
mother_maiden_name: string;
|
|
14
|
+
dob: string;
|
|
15
|
+
company_name: string;
|
|
16
|
+
pincode: string;
|
|
17
|
+
app_version: string;
|
|
18
|
+
biometric_enabled: boolean;
|
|
19
|
+
journey_sequence: number;
|
|
20
|
+
category: string;
|
|
21
|
+
loc_limit: number;
|
|
22
|
+
status: string;
|
|
23
|
+
min_tenure: number;
|
|
24
|
+
max_tenure: number;
|
|
25
|
+
roi: number;
|
|
26
|
+
processing_rate: number;
|
|
27
|
+
emi_date: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const getCustomerByIdRequest: {
|
|
30
|
+
encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdRequest;
|
|
32
|
+
fromJSON(object: any): getCustomerByIdRequest;
|
|
33
|
+
toJSON(message: getCustomerByIdRequest): unknown;
|
|
34
|
+
create<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(base?: I): getCustomerByIdRequest;
|
|
35
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(object: I): getCustomerByIdRequest;
|
|
36
|
+
};
|
|
37
|
+
export declare const getCustomerByIdResponse: {
|
|
38
|
+
encode(message: getCustomerByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdResponse;
|
|
40
|
+
fromJSON(object: any): getCustomerByIdResponse;
|
|
41
|
+
toJSON(message: getCustomerByIdResponse): unknown;
|
|
42
|
+
create<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(base?: I): getCustomerByIdResponse;
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(object: I): getCustomerByIdResponse;
|
|
44
|
+
};
|
|
45
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
46
|
+
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 {} ? {
|
|
47
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
48
|
+
} : Partial<T>;
|
|
49
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
50
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
51
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
52
|
+
} & {
|
|
53
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
54
|
+
};
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,421 @@
|
|
|
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: customers/getcustomerbyid.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.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getcustomerbyid";
|
|
15
|
+
function createBasegetCustomerByIdRequest() {
|
|
16
|
+
return { customer_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getCustomerByIdRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetCustomerByIdRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.customer_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.customer_id !== 0) {
|
|
52
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getCustomerByIdRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetCustomerByIdRequest();
|
|
61
|
+
message.customer_id = object.customer_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetCustomerByIdResponse() {
|
|
66
|
+
return {
|
|
67
|
+
mobile: "",
|
|
68
|
+
email: "",
|
|
69
|
+
first_name: "",
|
|
70
|
+
middle_name: "",
|
|
71
|
+
last_name: "",
|
|
72
|
+
father_name: "",
|
|
73
|
+
mother_maiden_name: "",
|
|
74
|
+
dob: "",
|
|
75
|
+
company_name: "",
|
|
76
|
+
pincode: "",
|
|
77
|
+
app_version: "",
|
|
78
|
+
biometric_enabled: false,
|
|
79
|
+
journey_sequence: 0,
|
|
80
|
+
category: "",
|
|
81
|
+
loc_limit: 0,
|
|
82
|
+
status: "",
|
|
83
|
+
min_tenure: 0,
|
|
84
|
+
max_tenure: 0,
|
|
85
|
+
roi: 0,
|
|
86
|
+
processing_rate: 0,
|
|
87
|
+
emi_date: "",
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
exports.getCustomerByIdResponse = {
|
|
91
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
92
|
+
if (message.mobile !== "") {
|
|
93
|
+
writer.uint32(10).string(message.mobile);
|
|
94
|
+
}
|
|
95
|
+
if (message.email !== "") {
|
|
96
|
+
writer.uint32(18).string(message.email);
|
|
97
|
+
}
|
|
98
|
+
if (message.first_name !== "") {
|
|
99
|
+
writer.uint32(26).string(message.first_name);
|
|
100
|
+
}
|
|
101
|
+
if (message.middle_name !== "") {
|
|
102
|
+
writer.uint32(34).string(message.middle_name);
|
|
103
|
+
}
|
|
104
|
+
if (message.last_name !== "") {
|
|
105
|
+
writer.uint32(42).string(message.last_name);
|
|
106
|
+
}
|
|
107
|
+
if (message.father_name !== "") {
|
|
108
|
+
writer.uint32(50).string(message.father_name);
|
|
109
|
+
}
|
|
110
|
+
if (message.mother_maiden_name !== "") {
|
|
111
|
+
writer.uint32(58).string(message.mother_maiden_name);
|
|
112
|
+
}
|
|
113
|
+
if (message.dob !== "") {
|
|
114
|
+
writer.uint32(66).string(message.dob);
|
|
115
|
+
}
|
|
116
|
+
if (message.company_name !== "") {
|
|
117
|
+
writer.uint32(74).string(message.company_name);
|
|
118
|
+
}
|
|
119
|
+
if (message.pincode !== "") {
|
|
120
|
+
writer.uint32(82).string(message.pincode);
|
|
121
|
+
}
|
|
122
|
+
if (message.app_version !== "") {
|
|
123
|
+
writer.uint32(90).string(message.app_version);
|
|
124
|
+
}
|
|
125
|
+
if (message.biometric_enabled !== false) {
|
|
126
|
+
writer.uint32(96).bool(message.biometric_enabled);
|
|
127
|
+
}
|
|
128
|
+
if (message.journey_sequence !== 0) {
|
|
129
|
+
writer.uint32(104).int32(message.journey_sequence);
|
|
130
|
+
}
|
|
131
|
+
if (message.category !== "") {
|
|
132
|
+
writer.uint32(114).string(message.category);
|
|
133
|
+
}
|
|
134
|
+
if (message.loc_limit !== 0) {
|
|
135
|
+
writer.uint32(125).float(message.loc_limit);
|
|
136
|
+
}
|
|
137
|
+
if (message.status !== "") {
|
|
138
|
+
writer.uint32(130).string(message.status);
|
|
139
|
+
}
|
|
140
|
+
if (message.min_tenure !== 0) {
|
|
141
|
+
writer.uint32(136).int32(message.min_tenure);
|
|
142
|
+
}
|
|
143
|
+
if (message.max_tenure !== 0) {
|
|
144
|
+
writer.uint32(144).int32(message.max_tenure);
|
|
145
|
+
}
|
|
146
|
+
if (message.roi !== 0) {
|
|
147
|
+
writer.uint32(157).float(message.roi);
|
|
148
|
+
}
|
|
149
|
+
if (message.processing_rate !== 0) {
|
|
150
|
+
writer.uint32(165).float(message.processing_rate);
|
|
151
|
+
}
|
|
152
|
+
if (message.emi_date !== "") {
|
|
153
|
+
writer.uint32(170).string(message.emi_date);
|
|
154
|
+
}
|
|
155
|
+
return writer;
|
|
156
|
+
},
|
|
157
|
+
decode(input, length) {
|
|
158
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
159
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
160
|
+
const message = createBasegetCustomerByIdResponse();
|
|
161
|
+
while (reader.pos < end) {
|
|
162
|
+
const tag = reader.uint32();
|
|
163
|
+
switch (tag >>> 3) {
|
|
164
|
+
case 1:
|
|
165
|
+
if (tag !== 10) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.mobile = reader.string();
|
|
169
|
+
continue;
|
|
170
|
+
case 2:
|
|
171
|
+
if (tag !== 18) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.email = reader.string();
|
|
175
|
+
continue;
|
|
176
|
+
case 3:
|
|
177
|
+
if (tag !== 26) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.first_name = reader.string();
|
|
181
|
+
continue;
|
|
182
|
+
case 4:
|
|
183
|
+
if (tag !== 34) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
message.middle_name = reader.string();
|
|
187
|
+
continue;
|
|
188
|
+
case 5:
|
|
189
|
+
if (tag !== 42) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
message.last_name = reader.string();
|
|
193
|
+
continue;
|
|
194
|
+
case 6:
|
|
195
|
+
if (tag !== 50) {
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
message.father_name = reader.string();
|
|
199
|
+
continue;
|
|
200
|
+
case 7:
|
|
201
|
+
if (tag !== 58) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
message.mother_maiden_name = reader.string();
|
|
205
|
+
continue;
|
|
206
|
+
case 8:
|
|
207
|
+
if (tag !== 66) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.dob = reader.string();
|
|
211
|
+
continue;
|
|
212
|
+
case 9:
|
|
213
|
+
if (tag !== 74) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
message.company_name = reader.string();
|
|
217
|
+
continue;
|
|
218
|
+
case 10:
|
|
219
|
+
if (tag !== 82) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
message.pincode = reader.string();
|
|
223
|
+
continue;
|
|
224
|
+
case 11:
|
|
225
|
+
if (tag !== 90) {
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
message.app_version = reader.string();
|
|
229
|
+
continue;
|
|
230
|
+
case 12:
|
|
231
|
+
if (tag !== 96) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
message.biometric_enabled = reader.bool();
|
|
235
|
+
continue;
|
|
236
|
+
case 13:
|
|
237
|
+
if (tag !== 104) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
message.journey_sequence = reader.int32();
|
|
241
|
+
continue;
|
|
242
|
+
case 14:
|
|
243
|
+
if (tag !== 114) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
message.category = reader.string();
|
|
247
|
+
continue;
|
|
248
|
+
case 15:
|
|
249
|
+
if (tag !== 125) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.loc_limit = reader.float();
|
|
253
|
+
continue;
|
|
254
|
+
case 16:
|
|
255
|
+
if (tag !== 130) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.status = reader.string();
|
|
259
|
+
continue;
|
|
260
|
+
case 17:
|
|
261
|
+
if (tag !== 136) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.min_tenure = reader.int32();
|
|
265
|
+
continue;
|
|
266
|
+
case 18:
|
|
267
|
+
if (tag !== 144) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
message.max_tenure = reader.int32();
|
|
271
|
+
continue;
|
|
272
|
+
case 19:
|
|
273
|
+
if (tag !== 157) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
message.roi = reader.float();
|
|
277
|
+
continue;
|
|
278
|
+
case 20:
|
|
279
|
+
if (tag !== 165) {
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
message.processing_rate = reader.float();
|
|
283
|
+
continue;
|
|
284
|
+
case 21:
|
|
285
|
+
if (tag !== 170) {
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
message.emi_date = reader.string();
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
reader.skipType(tag & 7);
|
|
295
|
+
}
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
fromJSON(object) {
|
|
299
|
+
return {
|
|
300
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
301
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
302
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
303
|
+
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
304
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
305
|
+
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
306
|
+
mother_maiden_name: isSet(object.mother_maiden_name) ? globalThis.String(object.mother_maiden_name) : "",
|
|
307
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
308
|
+
company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
|
|
309
|
+
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
310
|
+
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
|
|
311
|
+
biometric_enabled: isSet(object.biometric_enabled) ? globalThis.Boolean(object.biometric_enabled) : false,
|
|
312
|
+
journey_sequence: isSet(object.journey_sequence) ? globalThis.Number(object.journey_sequence) : 0,
|
|
313
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
314
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
315
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
316
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
317
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
318
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
319
|
+
processing_rate: isSet(object.processing_rate) ? globalThis.Number(object.processing_rate) : 0,
|
|
320
|
+
emi_date: isSet(object.emi_date) ? globalThis.String(object.emi_date) : "",
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
toJSON(message) {
|
|
324
|
+
const obj = {};
|
|
325
|
+
if (message.mobile !== "") {
|
|
326
|
+
obj.mobile = message.mobile;
|
|
327
|
+
}
|
|
328
|
+
if (message.email !== "") {
|
|
329
|
+
obj.email = message.email;
|
|
330
|
+
}
|
|
331
|
+
if (message.first_name !== "") {
|
|
332
|
+
obj.first_name = message.first_name;
|
|
333
|
+
}
|
|
334
|
+
if (message.middle_name !== "") {
|
|
335
|
+
obj.middle_name = message.middle_name;
|
|
336
|
+
}
|
|
337
|
+
if (message.last_name !== "") {
|
|
338
|
+
obj.last_name = message.last_name;
|
|
339
|
+
}
|
|
340
|
+
if (message.father_name !== "") {
|
|
341
|
+
obj.father_name = message.father_name;
|
|
342
|
+
}
|
|
343
|
+
if (message.mother_maiden_name !== "") {
|
|
344
|
+
obj.mother_maiden_name = message.mother_maiden_name;
|
|
345
|
+
}
|
|
346
|
+
if (message.dob !== "") {
|
|
347
|
+
obj.dob = message.dob;
|
|
348
|
+
}
|
|
349
|
+
if (message.company_name !== "") {
|
|
350
|
+
obj.company_name = message.company_name;
|
|
351
|
+
}
|
|
352
|
+
if (message.pincode !== "") {
|
|
353
|
+
obj.pincode = message.pincode;
|
|
354
|
+
}
|
|
355
|
+
if (message.app_version !== "") {
|
|
356
|
+
obj.app_version = message.app_version;
|
|
357
|
+
}
|
|
358
|
+
if (message.biometric_enabled !== false) {
|
|
359
|
+
obj.biometric_enabled = message.biometric_enabled;
|
|
360
|
+
}
|
|
361
|
+
if (message.journey_sequence !== 0) {
|
|
362
|
+
obj.journey_sequence = Math.round(message.journey_sequence);
|
|
363
|
+
}
|
|
364
|
+
if (message.category !== "") {
|
|
365
|
+
obj.category = message.category;
|
|
366
|
+
}
|
|
367
|
+
if (message.loc_limit !== 0) {
|
|
368
|
+
obj.loc_limit = message.loc_limit;
|
|
369
|
+
}
|
|
370
|
+
if (message.status !== "") {
|
|
371
|
+
obj.status = message.status;
|
|
372
|
+
}
|
|
373
|
+
if (message.min_tenure !== 0) {
|
|
374
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
375
|
+
}
|
|
376
|
+
if (message.max_tenure !== 0) {
|
|
377
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
378
|
+
}
|
|
379
|
+
if (message.roi !== 0) {
|
|
380
|
+
obj.roi = message.roi;
|
|
381
|
+
}
|
|
382
|
+
if (message.processing_rate !== 0) {
|
|
383
|
+
obj.processing_rate = message.processing_rate;
|
|
384
|
+
}
|
|
385
|
+
if (message.emi_date !== "") {
|
|
386
|
+
obj.emi_date = message.emi_date;
|
|
387
|
+
}
|
|
388
|
+
return obj;
|
|
389
|
+
},
|
|
390
|
+
create(base) {
|
|
391
|
+
return exports.getCustomerByIdResponse.fromPartial(base ?? {});
|
|
392
|
+
},
|
|
393
|
+
fromPartial(object) {
|
|
394
|
+
const message = createBasegetCustomerByIdResponse();
|
|
395
|
+
message.mobile = object.mobile ?? "";
|
|
396
|
+
message.email = object.email ?? "";
|
|
397
|
+
message.first_name = object.first_name ?? "";
|
|
398
|
+
message.middle_name = object.middle_name ?? "";
|
|
399
|
+
message.last_name = object.last_name ?? "";
|
|
400
|
+
message.father_name = object.father_name ?? "";
|
|
401
|
+
message.mother_maiden_name = object.mother_maiden_name ?? "";
|
|
402
|
+
message.dob = object.dob ?? "";
|
|
403
|
+
message.company_name = object.company_name ?? "";
|
|
404
|
+
message.pincode = object.pincode ?? "";
|
|
405
|
+
message.app_version = object.app_version ?? "";
|
|
406
|
+
message.biometric_enabled = object.biometric_enabled ?? false;
|
|
407
|
+
message.journey_sequence = object.journey_sequence ?? 0;
|
|
408
|
+
message.category = object.category ?? "";
|
|
409
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
410
|
+
message.status = object.status ?? "";
|
|
411
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
412
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
413
|
+
message.roi = object.roi ?? 0;
|
|
414
|
+
message.processing_rate = object.processing_rate ?? 0;
|
|
415
|
+
message.emi_date = object.emi_date ?? "";
|
|
416
|
+
return message;
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
function isSet(value) {
|
|
420
|
+
return value !== null && value !== undefined;
|
|
421
|
+
}
|