@stashfin/grpc 1.2.52 → 1.2.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- 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/profileupdatetnc.js +0 -117
- 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/setmpin.js +0 -133
- 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/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -39
- package/ts/customers/getbasicinfo.js +0 -176
- package/ts/customers/getcustomerbyid.d.ts +0 -50
- package/ts/customers/getcustomerbyid.js +0 -346
- package/ts/customers/getdashboard.d.ts +0 -90
- package/ts/customers/getdashboard.js +0 -603
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getprofessionalinfo.d.ts +0 -37
- package/ts/customers/getprofessionalinfo.js +0 -148
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -388
- package/ts/customers.js +0 -280
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -48
- package/ts/loans/banklist.js +0 -202
- package/ts/loans/calculateemi.d.ts +0 -37
- package/ts/loans/calculateemi.js +0 -147
- package/ts/loans/creditlimit.d.ts +0 -35
- package/ts/loans/creditlimit.js +0 -120
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -98
- package/ts/loans.js +0 -74
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -58
- package/ts/payments/getpaymentdetails.js +0 -367
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -231
- package/ts/payments/initiatepayment.d.ts +0 -54
- package/ts/payments/initiatepayment.js +0 -299
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,385 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
}
|