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