@stashfin/grpc 1.2.51 → 1.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/customer/getprofile.d.ts +38 -0
- package/ts/customer/getprofile.js +162 -0
- package/ts/customer/getstep.d.ts +78 -0
- package/ts/customer/getstep.js +420 -0
- package/ts/customer/profileupdatetnc.d.ts +35 -0
- package/ts/{customers/saveunlocklimit.js → customer/profileupdatetnc.js} +33 -20
- package/ts/customer/sendotp.d.ts +36 -0
- package/ts/{customers/resetmpin.js → customer/sendotp.js} +47 -47
- package/ts/customer/setmpin.d.ts +36 -0
- package/ts/{customers/updatehypervergetxn.js → customer/setmpin.js} +30 -30
- package/ts/customer/step1.d.ts +69 -0
- package/ts/customer/step1.js +395 -0
- package/ts/customer/step10.d.ts +73 -0
- package/ts/customer/step10.js +459 -0
- package/ts/customer/step2.d.ts +68 -0
- package/ts/customer/step2.js +381 -0
- package/ts/customer/step7.d.ts +68 -0
- package/ts/customer/step7.js +381 -0
- package/ts/customer/step8.d.ts +69 -0
- package/ts/customer/step8.js +395 -0
- package/ts/customer/step9.d.ts +75 -0
- package/ts/customer/step9.js +489 -0
- package/ts/customer/stepstatic.d.ts +66 -0
- package/ts/customer/stepstatic.js +352 -0
- package/ts/customer/verifympin.d.ts +37 -0
- package/ts/{customers/updatedigilockertxn.js → customer/verifympin.js} +48 -46
- package/ts/customer/verifyotp.d.ts +39 -0
- package/ts/customer/verifyotp.js +177 -0
- package/ts/customer.d.ts +262 -0
- package/ts/customer.js +190 -0
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.d.ts +3 -20
- package/ts/customers/getbasicinfo.js +24 -171
- package/ts/customers/getcustomerbyid.d.ts +0 -5
- package/ts/customers/getcustomerbyid.js +1 -76
- package/ts/customers/getdashboard.d.ts +0 -1
- package/ts/customers/getdashboard.js +34 -49
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getprofessionalinfo.d.ts +1 -18
- package/ts/customers/getprofessionalinfo.js +10 -148
- package/ts/customers/getprofile.d.ts +2 -17
- package/ts/customers/getprofile.js +26 -146
- package/ts/customers/getstep.d.ts +28 -19
- package/ts/customers/getstep.js +173 -159
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.d.ts +0 -2
- package/ts/customers/step1.js +4 -32
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +6 -5
- package/ts/customers/step2.js +37 -22
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +28 -180
- package/ts/customers.js +17 -125
- package/ts/example.js +1 -1
- package/ts/google/protobuf/any.d.ts +138 -0
- package/ts/google/protobuf/any.js +108 -0
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.d.ts +11 -0
- package/ts/loans/banklist.js +60 -6
- package/ts/loans/calculateemi.d.ts +2 -16
- package/ts/loans/calculateemi.js +19 -115
- package/ts/loans/creditlimit.d.ts +0 -8
- package/ts/loans/creditlimit.js +2 -129
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +1 -11
- package/ts/payments/checkpaymentstatus.d.ts +51 -0
- package/ts/payments/checkpaymentstatus.js +259 -0
- package/ts/payments/createorder.d.ts +39 -0
- package/ts/payments/createorder.js +191 -0
- package/ts/payments/getpaymentdetails.d.ts +58 -0
- package/ts/payments/getpaymentdetails.js +367 -0
- package/ts/payments/getpaymentoptions.d.ts +50 -0
- package/ts/payments/getpaymentoptions.js +231 -0
- package/ts/payments/initiatepayment.d.ts +54 -0
- package/ts/payments/initiatepayment.js +299 -0
- package/ts/payments.d.ts +70 -0
- package/ts/payments.js +54 -0
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customers/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getkycweburl.d.ts +0 -34
- package/ts/customers/getkycweburl.js +0 -104
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/resetmpin.d.ts +0 -36
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/updatedigilockertxn.d.ts +0 -37
- package/ts/customers/updatehypervergetxn.d.ts +0 -36
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/transactionlist.d.ts +0 -50
- package/ts/loans/transactionlist.js +0 -229
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getdashboardmaincard.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -6,16 +6,7 @@ export interface getProfessionalInfoResponse {
|
|
|
6
6
|
company_name: string;
|
|
7
7
|
designation: string;
|
|
8
8
|
official_email: string;
|
|
9
|
-
office_addr:
|
|
10
|
-
}
|
|
11
|
-
export interface Address {
|
|
12
|
-
house_flat_no: string;
|
|
13
|
-
address_line_1: string;
|
|
14
|
-
address_line_2: string;
|
|
15
|
-
landmark: string;
|
|
16
|
-
city: string;
|
|
17
|
-
state: string;
|
|
18
|
-
pin_code: string;
|
|
9
|
+
office_addr: string;
|
|
19
10
|
}
|
|
20
11
|
export declare const getProfessionalInfoRequest: {
|
|
21
12
|
encode(_: getProfessionalInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -33,14 +24,6 @@ export declare const getProfessionalInfoResponse: {
|
|
|
33
24
|
create<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(base?: I): getProfessionalInfoResponse;
|
|
34
25
|
fromPartial<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(object: I): getProfessionalInfoResponse;
|
|
35
26
|
};
|
|
36
|
-
export declare const Address: {
|
|
37
|
-
encode(message: Address, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Address;
|
|
39
|
-
fromJSON(object: any): Address;
|
|
40
|
-
toJSON(message: Address): unknown;
|
|
41
|
-
create<I extends Exact<DeepPartial<Address>, I>>(base?: I): Address;
|
|
42
|
-
fromPartial<I extends Exact<DeepPartial<Address>, I>>(object: I): Address;
|
|
43
|
-
};
|
|
44
27
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
28
|
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 {} ? {
|
|
46
29
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getprofessionalinfo.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.getProfessionalInfoResponse = exports.getProfessionalInfoRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getprofessionalinfo";
|
|
@@ -50,7 +50,7 @@ exports.getProfessionalInfoRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetProfessionalInfoResponse() {
|
|
53
|
-
return { company_name: "", designation: "", official_email: "", office_addr:
|
|
53
|
+
return { company_name: "", designation: "", official_email: "", office_addr: "" };
|
|
54
54
|
}
|
|
55
55
|
exports.getProfessionalInfoResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -63,8 +63,8 @@ exports.getProfessionalInfoResponse = {
|
|
|
63
63
|
if (message.official_email !== "") {
|
|
64
64
|
writer.uint32(26).string(message.official_email);
|
|
65
65
|
}
|
|
66
|
-
if (message.office_addr !==
|
|
67
|
-
|
|
66
|
+
if (message.office_addr !== "") {
|
|
67
|
+
writer.uint32(34).string(message.office_addr);
|
|
68
68
|
}
|
|
69
69
|
return writer;
|
|
70
70
|
},
|
|
@@ -97,7 +97,7 @@ exports.getProfessionalInfoResponse = {
|
|
|
97
97
|
if (tag !== 34) {
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
|
-
message.office_addr =
|
|
100
|
+
message.office_addr = reader.string();
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -112,7 +112,7 @@ exports.getProfessionalInfoResponse = {
|
|
|
112
112
|
company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
|
|
113
113
|
designation: isSet(object.designation) ? globalThis.String(object.designation) : "",
|
|
114
114
|
official_email: isSet(object.official_email) ? globalThis.String(object.official_email) : "",
|
|
115
|
-
office_addr: isSet(object.office_addr) ?
|
|
115
|
+
office_addr: isSet(object.office_addr) ? globalThis.String(object.office_addr) : "",
|
|
116
116
|
};
|
|
117
117
|
},
|
|
118
118
|
toJSON(message) {
|
|
@@ -126,8 +126,8 @@ exports.getProfessionalInfoResponse = {
|
|
|
126
126
|
if (message.official_email !== "") {
|
|
127
127
|
obj.official_email = message.official_email;
|
|
128
128
|
}
|
|
129
|
-
if (message.office_addr !==
|
|
130
|
-
obj.office_addr =
|
|
129
|
+
if (message.office_addr !== "") {
|
|
130
|
+
obj.office_addr = message.office_addr;
|
|
131
131
|
}
|
|
132
132
|
return obj;
|
|
133
133
|
},
|
|
@@ -139,145 +139,7 @@ exports.getProfessionalInfoResponse = {
|
|
|
139
139
|
message.company_name = object.company_name ?? "";
|
|
140
140
|
message.designation = object.designation ?? "";
|
|
141
141
|
message.official_email = object.official_email ?? "";
|
|
142
|
-
message.office_addr =
|
|
143
|
-
? exports.Address.fromPartial(object.office_addr)
|
|
144
|
-
: undefined;
|
|
145
|
-
return message;
|
|
146
|
-
},
|
|
147
|
-
};
|
|
148
|
-
function createBaseAddress() {
|
|
149
|
-
return { house_flat_no: "", address_line_1: "", address_line_2: "", landmark: "", city: "", state: "", pin_code: "" };
|
|
150
|
-
}
|
|
151
|
-
exports.Address = {
|
|
152
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
153
|
-
if (message.house_flat_no !== "") {
|
|
154
|
-
writer.uint32(10).string(message.house_flat_no);
|
|
155
|
-
}
|
|
156
|
-
if (message.address_line_1 !== "") {
|
|
157
|
-
writer.uint32(18).string(message.address_line_1);
|
|
158
|
-
}
|
|
159
|
-
if (message.address_line_2 !== "") {
|
|
160
|
-
writer.uint32(26).string(message.address_line_2);
|
|
161
|
-
}
|
|
162
|
-
if (message.landmark !== "") {
|
|
163
|
-
writer.uint32(34).string(message.landmark);
|
|
164
|
-
}
|
|
165
|
-
if (message.city !== "") {
|
|
166
|
-
writer.uint32(42).string(message.city);
|
|
167
|
-
}
|
|
168
|
-
if (message.state !== "") {
|
|
169
|
-
writer.uint32(50).string(message.state);
|
|
170
|
-
}
|
|
171
|
-
if (message.pin_code !== "") {
|
|
172
|
-
writer.uint32(58).string(message.pin_code);
|
|
173
|
-
}
|
|
174
|
-
return writer;
|
|
175
|
-
},
|
|
176
|
-
decode(input, length) {
|
|
177
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
178
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
179
|
-
const message = createBaseAddress();
|
|
180
|
-
while (reader.pos < end) {
|
|
181
|
-
const tag = reader.uint32();
|
|
182
|
-
switch (tag >>> 3) {
|
|
183
|
-
case 1:
|
|
184
|
-
if (tag !== 10) {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
message.house_flat_no = reader.string();
|
|
188
|
-
continue;
|
|
189
|
-
case 2:
|
|
190
|
-
if (tag !== 18) {
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
message.address_line_1 = reader.string();
|
|
194
|
-
continue;
|
|
195
|
-
case 3:
|
|
196
|
-
if (tag !== 26) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
message.address_line_2 = reader.string();
|
|
200
|
-
continue;
|
|
201
|
-
case 4:
|
|
202
|
-
if (tag !== 34) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
message.landmark = reader.string();
|
|
206
|
-
continue;
|
|
207
|
-
case 5:
|
|
208
|
-
if (tag !== 42) {
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
message.city = reader.string();
|
|
212
|
-
continue;
|
|
213
|
-
case 6:
|
|
214
|
-
if (tag !== 50) {
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
message.state = reader.string();
|
|
218
|
-
continue;
|
|
219
|
-
case 7:
|
|
220
|
-
if (tag !== 58) {
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
message.pin_code = reader.string();
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
reader.skipType(tag & 7);
|
|
230
|
-
}
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
fromJSON(object) {
|
|
234
|
-
return {
|
|
235
|
-
house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
|
|
236
|
-
address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
|
|
237
|
-
address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
|
|
238
|
-
landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
|
|
239
|
-
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
240
|
-
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
241
|
-
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
|
|
242
|
-
};
|
|
243
|
-
},
|
|
244
|
-
toJSON(message) {
|
|
245
|
-
const obj = {};
|
|
246
|
-
if (message.house_flat_no !== "") {
|
|
247
|
-
obj.house_flat_no = message.house_flat_no;
|
|
248
|
-
}
|
|
249
|
-
if (message.address_line_1 !== "") {
|
|
250
|
-
obj.address_line_1 = message.address_line_1;
|
|
251
|
-
}
|
|
252
|
-
if (message.address_line_2 !== "") {
|
|
253
|
-
obj.address_line_2 = message.address_line_2;
|
|
254
|
-
}
|
|
255
|
-
if (message.landmark !== "") {
|
|
256
|
-
obj.landmark = message.landmark;
|
|
257
|
-
}
|
|
258
|
-
if (message.city !== "") {
|
|
259
|
-
obj.city = message.city;
|
|
260
|
-
}
|
|
261
|
-
if (message.state !== "") {
|
|
262
|
-
obj.state = message.state;
|
|
263
|
-
}
|
|
264
|
-
if (message.pin_code !== "") {
|
|
265
|
-
obj.pin_code = message.pin_code;
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
},
|
|
269
|
-
create(base) {
|
|
270
|
-
return exports.Address.fromPartial(base ?? {});
|
|
271
|
-
},
|
|
272
|
-
fromPartial(object) {
|
|
273
|
-
const message = createBaseAddress();
|
|
274
|
-
message.house_flat_no = object.house_flat_no ?? "";
|
|
275
|
-
message.address_line_1 = object.address_line_1 ?? "";
|
|
276
|
-
message.address_line_2 = object.address_line_2 ?? "";
|
|
277
|
-
message.landmark = object.landmark ?? "";
|
|
278
|
-
message.city = object.city ?? "";
|
|
279
|
-
message.state = object.state ?? "";
|
|
280
|
-
message.pin_code = object.pin_code ?? "";
|
|
142
|
+
message.office_addr = object.office_addr ?? "";
|
|
281
143
|
return message;
|
|
282
144
|
},
|
|
283
145
|
};
|
|
@@ -3,18 +3,11 @@ export declare const protobufPackage = "customers.getprofile";
|
|
|
3
3
|
export interface getCustomerProfileRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getCustomerProfileResponse {
|
|
6
|
+
customer_id: number;
|
|
6
7
|
first_name: string;
|
|
7
8
|
middle_name: string;
|
|
8
9
|
last_name: string;
|
|
9
|
-
|
|
10
|
-
email: string;
|
|
11
|
-
profile_completion_status: number;
|
|
12
|
-
details: ProfileDetail[];
|
|
13
|
-
}
|
|
14
|
-
export interface ProfileDetail {
|
|
15
|
-
title: string;
|
|
16
|
-
status: boolean;
|
|
17
|
-
redirect_url: string;
|
|
10
|
+
mobile_number: string;
|
|
18
11
|
}
|
|
19
12
|
export declare const getCustomerProfileRequest: {
|
|
20
13
|
encode(_: getCustomerProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -32,14 +25,6 @@ export declare const getCustomerProfileResponse: {
|
|
|
32
25
|
create<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(base?: I): getCustomerProfileResponse;
|
|
33
26
|
fromPartial<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(object: I): getCustomerProfileResponse;
|
|
34
27
|
};
|
|
35
|
-
export declare const ProfileDetail: {
|
|
36
|
-
encode(message: ProfileDetail, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ProfileDetail;
|
|
38
|
-
fromJSON(object: any): ProfileDetail;
|
|
39
|
-
toJSON(message: ProfileDetail): unknown;
|
|
40
|
-
create<I extends Exact<DeepPartial<ProfileDetail>, I>>(base?: I): ProfileDetail;
|
|
41
|
-
fromPartial<I extends Exact<DeepPartial<ProfileDetail>, I>>(object: I): ProfileDetail;
|
|
42
|
-
};
|
|
43
28
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
44
29
|
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 {} ? {
|
|
45
30
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers/getprofile.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.getCustomerProfileResponse = exports.getCustomerProfileRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getprofile";
|
|
@@ -50,38 +50,24 @@ exports.getCustomerProfileRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetCustomerProfileResponse() {
|
|
53
|
-
return {
|
|
54
|
-
first_name: "",
|
|
55
|
-
middle_name: "",
|
|
56
|
-
last_name: "",
|
|
57
|
-
profile_image: "",
|
|
58
|
-
email: "",
|
|
59
|
-
profile_completion_status: 0,
|
|
60
|
-
details: [],
|
|
61
|
-
};
|
|
53
|
+
return { customer_id: 0, first_name: "", middle_name: "", last_name: "", mobile_number: "" };
|
|
62
54
|
}
|
|
63
55
|
exports.getCustomerProfileResponse = {
|
|
64
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.customer_id !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.customer_id);
|
|
59
|
+
}
|
|
65
60
|
if (message.first_name !== "") {
|
|
66
|
-
writer.uint32(
|
|
61
|
+
writer.uint32(18).string(message.first_name);
|
|
67
62
|
}
|
|
68
63
|
if (message.middle_name !== "") {
|
|
69
|
-
writer.uint32(
|
|
64
|
+
writer.uint32(26).string(message.middle_name);
|
|
70
65
|
}
|
|
71
66
|
if (message.last_name !== "") {
|
|
72
|
-
writer.uint32(
|
|
73
|
-
}
|
|
74
|
-
if (message.profile_image !== "") {
|
|
75
|
-
writer.uint32(34).string(message.profile_image);
|
|
76
|
-
}
|
|
77
|
-
if (message.email !== "") {
|
|
78
|
-
writer.uint32(42).string(message.email);
|
|
67
|
+
writer.uint32(34).string(message.last_name);
|
|
79
68
|
}
|
|
80
|
-
if (message.
|
|
81
|
-
writer.uint32(
|
|
82
|
-
}
|
|
83
|
-
for (const v of message.details) {
|
|
84
|
-
exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
|
|
69
|
+
if (message.mobile_number !== "") {
|
|
70
|
+
writer.uint32(42).string(message.mobile_number);
|
|
85
71
|
}
|
|
86
72
|
return writer;
|
|
87
73
|
},
|
|
@@ -93,46 +79,34 @@ exports.getCustomerProfileResponse = {
|
|
|
93
79
|
const tag = reader.uint32();
|
|
94
80
|
switch (tag >>> 3) {
|
|
95
81
|
case 1:
|
|
96
|
-
if (tag !==
|
|
82
|
+
if (tag !== 8) {
|
|
97
83
|
break;
|
|
98
84
|
}
|
|
99
|
-
message.
|
|
85
|
+
message.customer_id = reader.int32();
|
|
100
86
|
continue;
|
|
101
87
|
case 2:
|
|
102
88
|
if (tag !== 18) {
|
|
103
89
|
break;
|
|
104
90
|
}
|
|
105
|
-
message.
|
|
91
|
+
message.first_name = reader.string();
|
|
106
92
|
continue;
|
|
107
93
|
case 3:
|
|
108
94
|
if (tag !== 26) {
|
|
109
95
|
break;
|
|
110
96
|
}
|
|
111
|
-
message.
|
|
97
|
+
message.middle_name = reader.string();
|
|
112
98
|
continue;
|
|
113
99
|
case 4:
|
|
114
100
|
if (tag !== 34) {
|
|
115
101
|
break;
|
|
116
102
|
}
|
|
117
|
-
message.
|
|
103
|
+
message.last_name = reader.string();
|
|
118
104
|
continue;
|
|
119
105
|
case 5:
|
|
120
106
|
if (tag !== 42) {
|
|
121
107
|
break;
|
|
122
108
|
}
|
|
123
|
-
message.
|
|
124
|
-
continue;
|
|
125
|
-
case 6:
|
|
126
|
-
if (tag !== 48) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
message.profile_completion_status = reader.int32();
|
|
130
|
-
continue;
|
|
131
|
-
case 7:
|
|
132
|
-
if (tag !== 58) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
109
|
+
message.mobile_number = reader.string();
|
|
136
110
|
continue;
|
|
137
111
|
}
|
|
138
112
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -144,21 +118,18 @@ exports.getCustomerProfileResponse = {
|
|
|
144
118
|
},
|
|
145
119
|
fromJSON(object) {
|
|
146
120
|
return {
|
|
121
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
147
122
|
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
148
123
|
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
149
124
|
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
150
|
-
|
|
151
|
-
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
152
|
-
profile_completion_status: isSet(object.profile_completion_status)
|
|
153
|
-
? globalThis.Number(object.profile_completion_status)
|
|
154
|
-
: 0,
|
|
155
|
-
details: globalThis.Array.isArray(object?.details)
|
|
156
|
-
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
157
|
-
: [],
|
|
125
|
+
mobile_number: isSet(object.mobile_number) ? globalThis.String(object.mobile_number) : "",
|
|
158
126
|
};
|
|
159
127
|
},
|
|
160
128
|
toJSON(message) {
|
|
161
129
|
const obj = {};
|
|
130
|
+
if (message.customer_id !== 0) {
|
|
131
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
132
|
+
}
|
|
162
133
|
if (message.first_name !== "") {
|
|
163
134
|
obj.first_name = message.first_name;
|
|
164
135
|
}
|
|
@@ -168,17 +139,8 @@ exports.getCustomerProfileResponse = {
|
|
|
168
139
|
if (message.last_name !== "") {
|
|
169
140
|
obj.last_name = message.last_name;
|
|
170
141
|
}
|
|
171
|
-
if (message.
|
|
172
|
-
obj.
|
|
173
|
-
}
|
|
174
|
-
if (message.email !== "") {
|
|
175
|
-
obj.email = message.email;
|
|
176
|
-
}
|
|
177
|
-
if (message.profile_completion_status !== 0) {
|
|
178
|
-
obj.profile_completion_status = Math.round(message.profile_completion_status);
|
|
179
|
-
}
|
|
180
|
-
if (message.details?.length) {
|
|
181
|
-
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
142
|
+
if (message.mobile_number !== "") {
|
|
143
|
+
obj.mobile_number = message.mobile_number;
|
|
182
144
|
}
|
|
183
145
|
return obj;
|
|
184
146
|
},
|
|
@@ -187,93 +149,11 @@ exports.getCustomerProfileResponse = {
|
|
|
187
149
|
},
|
|
188
150
|
fromPartial(object) {
|
|
189
151
|
const message = createBasegetCustomerProfileResponse();
|
|
152
|
+
message.customer_id = object.customer_id ?? 0;
|
|
190
153
|
message.first_name = object.first_name ?? "";
|
|
191
154
|
message.middle_name = object.middle_name ?? "";
|
|
192
155
|
message.last_name = object.last_name ?? "";
|
|
193
|
-
message.
|
|
194
|
-
message.email = object.email ?? "";
|
|
195
|
-
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
196
|
-
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
function createBaseProfileDetail() {
|
|
201
|
-
return { title: "", status: false, redirect_url: "" };
|
|
202
|
-
}
|
|
203
|
-
exports.ProfileDetail = {
|
|
204
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
205
|
-
if (message.title !== "") {
|
|
206
|
-
writer.uint32(10).string(message.title);
|
|
207
|
-
}
|
|
208
|
-
if (message.status !== false) {
|
|
209
|
-
writer.uint32(16).bool(message.status);
|
|
210
|
-
}
|
|
211
|
-
if (message.redirect_url !== "") {
|
|
212
|
-
writer.uint32(26).string(message.redirect_url);
|
|
213
|
-
}
|
|
214
|
-
return writer;
|
|
215
|
-
},
|
|
216
|
-
decode(input, length) {
|
|
217
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
218
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
219
|
-
const message = createBaseProfileDetail();
|
|
220
|
-
while (reader.pos < end) {
|
|
221
|
-
const tag = reader.uint32();
|
|
222
|
-
switch (tag >>> 3) {
|
|
223
|
-
case 1:
|
|
224
|
-
if (tag !== 10) {
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
message.title = reader.string();
|
|
228
|
-
continue;
|
|
229
|
-
case 2:
|
|
230
|
-
if (tag !== 16) {
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
message.status = reader.bool();
|
|
234
|
-
continue;
|
|
235
|
-
case 3:
|
|
236
|
-
if (tag !== 26) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
message.redirect_url = reader.string();
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
reader.skipType(tag & 7);
|
|
246
|
-
}
|
|
247
|
-
return message;
|
|
248
|
-
},
|
|
249
|
-
fromJSON(object) {
|
|
250
|
-
return {
|
|
251
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
252
|
-
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
253
|
-
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
254
|
-
};
|
|
255
|
-
},
|
|
256
|
-
toJSON(message) {
|
|
257
|
-
const obj = {};
|
|
258
|
-
if (message.title !== "") {
|
|
259
|
-
obj.title = message.title;
|
|
260
|
-
}
|
|
261
|
-
if (message.status !== false) {
|
|
262
|
-
obj.status = message.status;
|
|
263
|
-
}
|
|
264
|
-
if (message.redirect_url !== "") {
|
|
265
|
-
obj.redirect_url = message.redirect_url;
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
},
|
|
269
|
-
create(base) {
|
|
270
|
-
return exports.ProfileDetail.fromPartial(base ?? {});
|
|
271
|
-
},
|
|
272
|
-
fromPartial(object) {
|
|
273
|
-
const message = createBaseProfileDetail();
|
|
274
|
-
message.title = object.title ?? "";
|
|
275
|
-
message.status = object.status ?? false;
|
|
276
|
-
message.redirect_url = object.redirect_url ?? "";
|
|
156
|
+
message.mobile_number = object.mobile_number ?? "";
|
|
277
157
|
return message;
|
|
278
158
|
},
|
|
279
159
|
};
|
|
@@ -3,27 +3,28 @@ export declare const protobufPackage = "customers.getstep";
|
|
|
3
3
|
export interface getstepRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getstepResponse {
|
|
6
|
-
|
|
6
|
+
step: string;
|
|
7
|
+
setp_data: stepResponse | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface Validation {
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
export interface stepResponse {
|
|
15
|
+
page: string;
|
|
7
16
|
type: string;
|
|
8
17
|
button_text: string;
|
|
9
|
-
data:
|
|
18
|
+
data: stepResponse_Field[];
|
|
10
19
|
}
|
|
11
|
-
export interface
|
|
20
|
+
export interface stepResponse_Field {
|
|
12
21
|
label: string;
|
|
13
22
|
key: string;
|
|
14
23
|
input_type: string;
|
|
15
24
|
data_type: string;
|
|
16
25
|
icon: string;
|
|
17
|
-
is_popup: boolean;
|
|
18
|
-
keyboard_type: string;
|
|
19
|
-
text_capitalization: string;
|
|
20
26
|
validations: Validation[];
|
|
21
27
|
}
|
|
22
|
-
export interface Validation {
|
|
23
|
-
key: string;
|
|
24
|
-
value: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}
|
|
27
28
|
export declare const getstepRequest: {
|
|
28
29
|
encode(_: getstepRequest, writer?: _m0.Writer): _m0.Writer;
|
|
29
30
|
decode(input: _m0.Reader | Uint8Array, length?: number): getstepRequest;
|
|
@@ -40,14 +41,6 @@ export declare const getstepResponse: {
|
|
|
40
41
|
create<I extends Exact<DeepPartial<getstepResponse>, I>>(base?: I): getstepResponse;
|
|
41
42
|
fromPartial<I extends Exact<DeepPartial<getstepResponse>, I>>(object: I): getstepResponse;
|
|
42
43
|
};
|
|
43
|
-
export declare const getstepResponse_Field: {
|
|
44
|
-
encode(message: getstepResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getstepResponse_Field;
|
|
46
|
-
fromJSON(object: any): getstepResponse_Field;
|
|
47
|
-
toJSON(message: getstepResponse_Field): unknown;
|
|
48
|
-
create<I extends Exact<DeepPartial<getstepResponse_Field>, I>>(base?: I): getstepResponse_Field;
|
|
49
|
-
fromPartial<I extends Exact<DeepPartial<getstepResponse_Field>, I>>(object: I): getstepResponse_Field;
|
|
50
|
-
};
|
|
51
44
|
export declare const Validation: {
|
|
52
45
|
encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
|
|
53
46
|
decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
|
|
@@ -56,6 +49,22 @@ export declare const Validation: {
|
|
|
56
49
|
create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
|
|
57
50
|
fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
|
|
58
51
|
};
|
|
52
|
+
export declare const stepResponse: {
|
|
53
|
+
encode(message: stepResponse, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): stepResponse;
|
|
55
|
+
fromJSON(object: any): stepResponse;
|
|
56
|
+
toJSON(message: stepResponse): unknown;
|
|
57
|
+
create<I extends Exact<DeepPartial<stepResponse>, I>>(base?: I): stepResponse;
|
|
58
|
+
fromPartial<I extends Exact<DeepPartial<stepResponse>, I>>(object: I): stepResponse;
|
|
59
|
+
};
|
|
60
|
+
export declare const stepResponse_Field: {
|
|
61
|
+
encode(message: stepResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): stepResponse_Field;
|
|
63
|
+
fromJSON(object: any): stepResponse_Field;
|
|
64
|
+
toJSON(message: stepResponse_Field): unknown;
|
|
65
|
+
create<I extends Exact<DeepPartial<stepResponse_Field>, I>>(base?: I): stepResponse_Field;
|
|
66
|
+
fromPartial<I extends Exact<DeepPartial<stepResponse_Field>, I>>(object: I): stepResponse_Field;
|
|
67
|
+
};
|
|
59
68
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
60
69
|
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 {} ? {
|
|
61
70
|
[K in keyof T]?: DeepPartial<T[K]>;
|