@stashfin/grpc 1.2.49 → 1.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/customers/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/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.d.ts +20 -3
- package/ts/customers/getbasicinfo.js +171 -24
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +5 -0
- package/ts/customers/getcustomerbyid.js +76 -1
- package/ts/customers/getdashboard.d.ts +1 -0
- package/ts/customers/getdashboard.js +49 -34
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +18 -1
- package/ts/customers/getprofessionalinfo.js +148 -10
- package/ts/customers/getprofile.d.ts +17 -2
- package/ts/customers/getprofile.js +146 -26
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +19 -28
- package/ts/customers/getstep.js +159 -173
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/{customer/sendotp.js → customers/resetmpin.js} +47 -47
- 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/{customer/profileupdatetnc.js → customers/saveunlocklimit.js} +20 -33
- 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 +2 -0
- package/ts/customers/step1.js +32 -4
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +5 -6
- package/ts/customers/step2.js +22 -37
- 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/updatedigilockertxn.d.ts +37 -0
- package/ts/{customer/verifympin.js → customers/updatedigilockertxn.js} +46 -48
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/{customer/setmpin.js → customers/updatehypervergetxn.js} +30 -30
- 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 +180 -28
- package/ts/customers.js +125 -17
- package/ts/example.js +1 -1
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.d.ts +0 -11
- package/ts/loans/banklist.js +6 -60
- package/ts/loans/calculateemi.d.ts +16 -2
- package/ts/loans/calculateemi.js +115 -19
- package/ts/loans/creditlimit.d.ts +8 -0
- package/ts/loans/creditlimit.js +129 -2
- 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.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +11 -1
- 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/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/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/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/payments/checkpaymentstatus.d.ts +0 -52
- package/ts/payments/checkpaymentstatus.js +0 -273
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -57
- package/ts/payments/getpaymentdetails.js +0 -353
- 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 -307
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: customers/getkycweburl.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.getKycWebUrlResponse = exports.getKycWebUrlRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getkycweburl";
|
|
15
|
+
function createBasegetKycWebUrlRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getKycWebUrlRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetKycWebUrlRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getKycWebUrlRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetKycWebUrlRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetKycWebUrlResponse() {
|
|
53
|
+
return { web_url: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getKycWebUrlResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.web_url !== "") {
|
|
58
|
+
writer.uint32(10).string(message.web_url);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasegetKycWebUrlResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.web_url = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { web_url: isSet(object.web_url) ? globalThis.String(object.web_url) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.web_url !== "") {
|
|
89
|
+
obj.web_url = message.web_url;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getKycWebUrlResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetKycWebUrlResponse();
|
|
98
|
+
message.web_url = object.web_url ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -6,7 +6,16 @@ export interface getProfessionalInfoResponse {
|
|
|
6
6
|
company_name: string;
|
|
7
7
|
designation: string;
|
|
8
8
|
official_email: string;
|
|
9
|
-
office_addr:
|
|
9
|
+
office_addr: Address | undefined;
|
|
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;
|
|
10
19
|
}
|
|
11
20
|
export declare const getProfessionalInfoRequest: {
|
|
12
21
|
encode(_: getProfessionalInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -24,6 +33,14 @@ export declare const getProfessionalInfoResponse: {
|
|
|
24
33
|
create<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(base?: I): getProfessionalInfoResponse;
|
|
25
34
|
fromPartial<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(object: I): getProfessionalInfoResponse;
|
|
26
35
|
};
|
|
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
|
+
};
|
|
27
44
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
45
|
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 {} ? {
|
|
29
46
|
[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.181.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.getProfessionalInfoResponse = exports.getProfessionalInfoRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Address = 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: undefined };
|
|
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
|
-
writer.uint32(34).
|
|
66
|
+
if (message.office_addr !== undefined) {
|
|
67
|
+
exports.Address.encode(message.office_addr, writer.uint32(34).fork()).ldelim();
|
|
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 = reader.
|
|
100
|
+
message.office_addr = exports.Address.decode(reader, reader.uint32());
|
|
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) ? exports.Address.fromJSON(object.office_addr) : undefined,
|
|
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 = message.office_addr;
|
|
129
|
+
if (message.office_addr !== undefined) {
|
|
130
|
+
obj.office_addr = exports.Address.toJSON(message.office_addr);
|
|
131
131
|
}
|
|
132
132
|
return obj;
|
|
133
133
|
},
|
|
@@ -139,7 +139,145 @@ 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 = object.office_addr
|
|
142
|
+
message.office_addr = (object.office_addr !== undefined && object.office_addr !== null)
|
|
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 ?? "";
|
|
143
281
|
return message;
|
|
144
282
|
},
|
|
145
283
|
};
|
|
@@ -3,11 +3,18 @@ export declare const protobufPackage = "customers.getprofile";
|
|
|
3
3
|
export interface getCustomerProfileRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getCustomerProfileResponse {
|
|
6
|
-
customer_id: number;
|
|
7
6
|
first_name: string;
|
|
8
7
|
middle_name: string;
|
|
9
8
|
last_name: string;
|
|
10
|
-
|
|
9
|
+
profile_image: string;
|
|
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;
|
|
11
18
|
}
|
|
12
19
|
export declare const getCustomerProfileRequest: {
|
|
13
20
|
encode(_: getCustomerProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -25,6 +32,14 @@ export declare const getCustomerProfileResponse: {
|
|
|
25
32
|
create<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(base?: I): getCustomerProfileResponse;
|
|
26
33
|
fromPartial<I extends Exact<DeepPartial<getCustomerProfileResponse>, I>>(object: I): getCustomerProfileResponse;
|
|
27
34
|
};
|
|
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
|
+
};
|
|
28
43
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
44
|
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 {} ? {
|
|
30
45
|
[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.181.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.getCustomerProfileResponse = exports.getCustomerProfileRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.ProfileDetail = 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,24 +50,38 @@ exports.getCustomerProfileRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetCustomerProfileResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return {
|
|
54
|
+
first_name: "",
|
|
55
|
+
middle_name: "",
|
|
56
|
+
last_name: "",
|
|
57
|
+
profile_image: "",
|
|
58
|
+
email: "",
|
|
59
|
+
profile_completion_status: 0,
|
|
60
|
+
details: [],
|
|
61
|
+
};
|
|
54
62
|
}
|
|
55
63
|
exports.getCustomerProfileResponse = {
|
|
56
64
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.customer_id !== 0) {
|
|
58
|
-
writer.uint32(8).int32(message.customer_id);
|
|
59
|
-
}
|
|
60
65
|
if (message.first_name !== "") {
|
|
61
|
-
writer.uint32(
|
|
66
|
+
writer.uint32(10).string(message.first_name);
|
|
62
67
|
}
|
|
63
68
|
if (message.middle_name !== "") {
|
|
64
|
-
writer.uint32(
|
|
69
|
+
writer.uint32(18).string(message.middle_name);
|
|
65
70
|
}
|
|
66
71
|
if (message.last_name !== "") {
|
|
67
|
-
writer.uint32(
|
|
72
|
+
writer.uint32(26).string(message.last_name);
|
|
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);
|
|
68
79
|
}
|
|
69
|
-
if (message.
|
|
70
|
-
writer.uint32(
|
|
80
|
+
if (message.profile_completion_status !== 0) {
|
|
81
|
+
writer.uint32(48).int32(message.profile_completion_status);
|
|
82
|
+
}
|
|
83
|
+
for (const v of message.details) {
|
|
84
|
+
exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
|
|
71
85
|
}
|
|
72
86
|
return writer;
|
|
73
87
|
},
|
|
@@ -79,34 +93,46 @@ exports.getCustomerProfileResponse = {
|
|
|
79
93
|
const tag = reader.uint32();
|
|
80
94
|
switch (tag >>> 3) {
|
|
81
95
|
case 1:
|
|
82
|
-
if (tag !==
|
|
96
|
+
if (tag !== 10) {
|
|
83
97
|
break;
|
|
84
98
|
}
|
|
85
|
-
message.
|
|
99
|
+
message.first_name = reader.string();
|
|
86
100
|
continue;
|
|
87
101
|
case 2:
|
|
88
102
|
if (tag !== 18) {
|
|
89
103
|
break;
|
|
90
104
|
}
|
|
91
|
-
message.
|
|
105
|
+
message.middle_name = reader.string();
|
|
92
106
|
continue;
|
|
93
107
|
case 3:
|
|
94
108
|
if (tag !== 26) {
|
|
95
109
|
break;
|
|
96
110
|
}
|
|
97
|
-
message.
|
|
111
|
+
message.last_name = reader.string();
|
|
98
112
|
continue;
|
|
99
113
|
case 4:
|
|
100
114
|
if (tag !== 34) {
|
|
101
115
|
break;
|
|
102
116
|
}
|
|
103
|
-
message.
|
|
117
|
+
message.profile_image = reader.string();
|
|
104
118
|
continue;
|
|
105
119
|
case 5:
|
|
106
120
|
if (tag !== 42) {
|
|
107
121
|
break;
|
|
108
122
|
}
|
|
109
|
-
message.
|
|
123
|
+
message.email = reader.string();
|
|
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()));
|
|
110
136
|
continue;
|
|
111
137
|
}
|
|
112
138
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -118,18 +144,21 @@ exports.getCustomerProfileResponse = {
|
|
|
118
144
|
},
|
|
119
145
|
fromJSON(object) {
|
|
120
146
|
return {
|
|
121
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
122
147
|
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
123
148
|
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
124
149
|
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
125
|
-
|
|
150
|
+
profile_image: isSet(object.profile_image) ? globalThis.String(object.profile_image) : "",
|
|
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
|
+
: [],
|
|
126
158
|
};
|
|
127
159
|
},
|
|
128
160
|
toJSON(message) {
|
|
129
161
|
const obj = {};
|
|
130
|
-
if (message.customer_id !== 0) {
|
|
131
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
132
|
-
}
|
|
133
162
|
if (message.first_name !== "") {
|
|
134
163
|
obj.first_name = message.first_name;
|
|
135
164
|
}
|
|
@@ -139,8 +168,17 @@ exports.getCustomerProfileResponse = {
|
|
|
139
168
|
if (message.last_name !== "") {
|
|
140
169
|
obj.last_name = message.last_name;
|
|
141
170
|
}
|
|
142
|
-
if (message.
|
|
143
|
-
obj.
|
|
171
|
+
if (message.profile_image !== "") {
|
|
172
|
+
obj.profile_image = message.profile_image;
|
|
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));
|
|
144
182
|
}
|
|
145
183
|
return obj;
|
|
146
184
|
},
|
|
@@ -149,11 +187,93 @@ exports.getCustomerProfileResponse = {
|
|
|
149
187
|
},
|
|
150
188
|
fromPartial(object) {
|
|
151
189
|
const message = createBasegetCustomerProfileResponse();
|
|
152
|
-
message.customer_id = object.customer_id ?? 0;
|
|
153
190
|
message.first_name = object.first_name ?? "";
|
|
154
191
|
message.middle_name = object.middle_name ?? "";
|
|
155
192
|
message.last_name = object.last_name ?? "";
|
|
156
|
-
message.
|
|
193
|
+
message.profile_image = object.profile_image ?? "";
|
|
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 ?? "";
|
|
157
277
|
return message;
|
|
158
278
|
},
|
|
159
279
|
};
|