@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
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.180.0
|
|
5
|
-
// protoc v3.20.3
|
|
6
|
-
// source: customers/getcustomerbyid.proto
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.getcustomerbyid";
|
|
15
|
-
function createBasegetCustomerByIdRequest() {
|
|
16
|
-
return { customer_id: 0 };
|
|
17
|
-
}
|
|
18
|
-
exports.getCustomerByIdRequest = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.customer_id !== 0) {
|
|
21
|
-
writer.uint32(8).int32(message.customer_id);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBasegetCustomerByIdRequest();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 8) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.customer_id = reader.int32();
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
reader.skipType(tag & 7);
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.customer_id !== 0) {
|
|
52
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.getCustomerByIdRequest.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBasegetCustomerByIdRequest();
|
|
61
|
-
message.customer_id = object.customer_id ?? 0;
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function createBasegetCustomerByIdResponse() {
|
|
66
|
-
return {
|
|
67
|
-
mobile: "",
|
|
68
|
-
email: "",
|
|
69
|
-
first_name: "",
|
|
70
|
-
middle_name: "",
|
|
71
|
-
last_name: "",
|
|
72
|
-
father_name: "",
|
|
73
|
-
mother_maiden_name: "",
|
|
74
|
-
dob: "",
|
|
75
|
-
company_name: "",
|
|
76
|
-
pincode: "",
|
|
77
|
-
app_version: "",
|
|
78
|
-
biometric_enabled: false,
|
|
79
|
-
journey_sequence: 0,
|
|
80
|
-
category: "",
|
|
81
|
-
loc_limit: 0,
|
|
82
|
-
status: "",
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
exports.getCustomerByIdResponse = {
|
|
86
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
-
if (message.mobile !== "") {
|
|
88
|
-
writer.uint32(10).string(message.mobile);
|
|
89
|
-
}
|
|
90
|
-
if (message.email !== "") {
|
|
91
|
-
writer.uint32(18).string(message.email);
|
|
92
|
-
}
|
|
93
|
-
if (message.first_name !== "") {
|
|
94
|
-
writer.uint32(26).string(message.first_name);
|
|
95
|
-
}
|
|
96
|
-
if (message.middle_name !== "") {
|
|
97
|
-
writer.uint32(34).string(message.middle_name);
|
|
98
|
-
}
|
|
99
|
-
if (message.last_name !== "") {
|
|
100
|
-
writer.uint32(42).string(message.last_name);
|
|
101
|
-
}
|
|
102
|
-
if (message.father_name !== "") {
|
|
103
|
-
writer.uint32(50).string(message.father_name);
|
|
104
|
-
}
|
|
105
|
-
if (message.mother_maiden_name !== "") {
|
|
106
|
-
writer.uint32(58).string(message.mother_maiden_name);
|
|
107
|
-
}
|
|
108
|
-
if (message.dob !== "") {
|
|
109
|
-
writer.uint32(66).string(message.dob);
|
|
110
|
-
}
|
|
111
|
-
if (message.company_name !== "") {
|
|
112
|
-
writer.uint32(74).string(message.company_name);
|
|
113
|
-
}
|
|
114
|
-
if (message.pincode !== "") {
|
|
115
|
-
writer.uint32(82).string(message.pincode);
|
|
116
|
-
}
|
|
117
|
-
if (message.app_version !== "") {
|
|
118
|
-
writer.uint32(90).string(message.app_version);
|
|
119
|
-
}
|
|
120
|
-
if (message.biometric_enabled !== false) {
|
|
121
|
-
writer.uint32(96).bool(message.biometric_enabled);
|
|
122
|
-
}
|
|
123
|
-
if (message.journey_sequence !== 0) {
|
|
124
|
-
writer.uint32(104).int32(message.journey_sequence);
|
|
125
|
-
}
|
|
126
|
-
if (message.category !== "") {
|
|
127
|
-
writer.uint32(114).string(message.category);
|
|
128
|
-
}
|
|
129
|
-
if (message.loc_limit !== 0) {
|
|
130
|
-
writer.uint32(125).float(message.loc_limit);
|
|
131
|
-
}
|
|
132
|
-
if (message.status !== "") {
|
|
133
|
-
writer.uint32(130).string(message.status);
|
|
134
|
-
}
|
|
135
|
-
return writer;
|
|
136
|
-
},
|
|
137
|
-
decode(input, length) {
|
|
138
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
139
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
140
|
-
const message = createBasegetCustomerByIdResponse();
|
|
141
|
-
while (reader.pos < end) {
|
|
142
|
-
const tag = reader.uint32();
|
|
143
|
-
switch (tag >>> 3) {
|
|
144
|
-
case 1:
|
|
145
|
-
if (tag !== 10) {
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
message.mobile = reader.string();
|
|
149
|
-
continue;
|
|
150
|
-
case 2:
|
|
151
|
-
if (tag !== 18) {
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
message.email = reader.string();
|
|
155
|
-
continue;
|
|
156
|
-
case 3:
|
|
157
|
-
if (tag !== 26) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
message.first_name = reader.string();
|
|
161
|
-
continue;
|
|
162
|
-
case 4:
|
|
163
|
-
if (tag !== 34) {
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
message.middle_name = reader.string();
|
|
167
|
-
continue;
|
|
168
|
-
case 5:
|
|
169
|
-
if (tag !== 42) {
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
message.last_name = reader.string();
|
|
173
|
-
continue;
|
|
174
|
-
case 6:
|
|
175
|
-
if (tag !== 50) {
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
message.father_name = reader.string();
|
|
179
|
-
continue;
|
|
180
|
-
case 7:
|
|
181
|
-
if (tag !== 58) {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
message.mother_maiden_name = reader.string();
|
|
185
|
-
continue;
|
|
186
|
-
case 8:
|
|
187
|
-
if (tag !== 66) {
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
message.dob = reader.string();
|
|
191
|
-
continue;
|
|
192
|
-
case 9:
|
|
193
|
-
if (tag !== 74) {
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
message.company_name = reader.string();
|
|
197
|
-
continue;
|
|
198
|
-
case 10:
|
|
199
|
-
if (tag !== 82) {
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
message.pincode = reader.string();
|
|
203
|
-
continue;
|
|
204
|
-
case 11:
|
|
205
|
-
if (tag !== 90) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
message.app_version = reader.string();
|
|
209
|
-
continue;
|
|
210
|
-
case 12:
|
|
211
|
-
if (tag !== 96) {
|
|
212
|
-
break;
|
|
213
|
-
}
|
|
214
|
-
message.biometric_enabled = reader.bool();
|
|
215
|
-
continue;
|
|
216
|
-
case 13:
|
|
217
|
-
if (tag !== 104) {
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
message.journey_sequence = reader.int32();
|
|
221
|
-
continue;
|
|
222
|
-
case 14:
|
|
223
|
-
if (tag !== 114) {
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
message.category = reader.string();
|
|
227
|
-
continue;
|
|
228
|
-
case 15:
|
|
229
|
-
if (tag !== 125) {
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
message.loc_limit = reader.float();
|
|
233
|
-
continue;
|
|
234
|
-
case 16:
|
|
235
|
-
if (tag !== 130) {
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
message.status = reader.string();
|
|
239
|
-
continue;
|
|
240
|
-
}
|
|
241
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
reader.skipType(tag & 7);
|
|
245
|
-
}
|
|
246
|
-
return message;
|
|
247
|
-
},
|
|
248
|
-
fromJSON(object) {
|
|
249
|
-
return {
|
|
250
|
-
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
251
|
-
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
252
|
-
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
253
|
-
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
254
|
-
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
255
|
-
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
256
|
-
mother_maiden_name: isSet(object.mother_maiden_name) ? globalThis.String(object.mother_maiden_name) : "",
|
|
257
|
-
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
258
|
-
company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
|
|
259
|
-
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
260
|
-
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
|
|
261
|
-
biometric_enabled: isSet(object.biometric_enabled) ? globalThis.Boolean(object.biometric_enabled) : false,
|
|
262
|
-
journey_sequence: isSet(object.journey_sequence) ? globalThis.Number(object.journey_sequence) : 0,
|
|
263
|
-
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
264
|
-
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
265
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
266
|
-
};
|
|
267
|
-
},
|
|
268
|
-
toJSON(message) {
|
|
269
|
-
const obj = {};
|
|
270
|
-
if (message.mobile !== "") {
|
|
271
|
-
obj.mobile = message.mobile;
|
|
272
|
-
}
|
|
273
|
-
if (message.email !== "") {
|
|
274
|
-
obj.email = message.email;
|
|
275
|
-
}
|
|
276
|
-
if (message.first_name !== "") {
|
|
277
|
-
obj.first_name = message.first_name;
|
|
278
|
-
}
|
|
279
|
-
if (message.middle_name !== "") {
|
|
280
|
-
obj.middle_name = message.middle_name;
|
|
281
|
-
}
|
|
282
|
-
if (message.last_name !== "") {
|
|
283
|
-
obj.last_name = message.last_name;
|
|
284
|
-
}
|
|
285
|
-
if (message.father_name !== "") {
|
|
286
|
-
obj.father_name = message.father_name;
|
|
287
|
-
}
|
|
288
|
-
if (message.mother_maiden_name !== "") {
|
|
289
|
-
obj.mother_maiden_name = message.mother_maiden_name;
|
|
290
|
-
}
|
|
291
|
-
if (message.dob !== "") {
|
|
292
|
-
obj.dob = message.dob;
|
|
293
|
-
}
|
|
294
|
-
if (message.company_name !== "") {
|
|
295
|
-
obj.company_name = message.company_name;
|
|
296
|
-
}
|
|
297
|
-
if (message.pincode !== "") {
|
|
298
|
-
obj.pincode = message.pincode;
|
|
299
|
-
}
|
|
300
|
-
if (message.app_version !== "") {
|
|
301
|
-
obj.app_version = message.app_version;
|
|
302
|
-
}
|
|
303
|
-
if (message.biometric_enabled !== false) {
|
|
304
|
-
obj.biometric_enabled = message.biometric_enabled;
|
|
305
|
-
}
|
|
306
|
-
if (message.journey_sequence !== 0) {
|
|
307
|
-
obj.journey_sequence = Math.round(message.journey_sequence);
|
|
308
|
-
}
|
|
309
|
-
if (message.category !== "") {
|
|
310
|
-
obj.category = message.category;
|
|
311
|
-
}
|
|
312
|
-
if (message.loc_limit !== 0) {
|
|
313
|
-
obj.loc_limit = message.loc_limit;
|
|
314
|
-
}
|
|
315
|
-
if (message.status !== "") {
|
|
316
|
-
obj.status = message.status;
|
|
317
|
-
}
|
|
318
|
-
return obj;
|
|
319
|
-
},
|
|
320
|
-
create(base) {
|
|
321
|
-
return exports.getCustomerByIdResponse.fromPartial(base ?? {});
|
|
322
|
-
},
|
|
323
|
-
fromPartial(object) {
|
|
324
|
-
const message = createBasegetCustomerByIdResponse();
|
|
325
|
-
message.mobile = object.mobile ?? "";
|
|
326
|
-
message.email = object.email ?? "";
|
|
327
|
-
message.first_name = object.first_name ?? "";
|
|
328
|
-
message.middle_name = object.middle_name ?? "";
|
|
329
|
-
message.last_name = object.last_name ?? "";
|
|
330
|
-
message.father_name = object.father_name ?? "";
|
|
331
|
-
message.mother_maiden_name = object.mother_maiden_name ?? "";
|
|
332
|
-
message.dob = object.dob ?? "";
|
|
333
|
-
message.company_name = object.company_name ?? "";
|
|
334
|
-
message.pincode = object.pincode ?? "";
|
|
335
|
-
message.app_version = object.app_version ?? "";
|
|
336
|
-
message.biometric_enabled = object.biometric_enabled ?? false;
|
|
337
|
-
message.journey_sequence = object.journey_sequence ?? 0;
|
|
338
|
-
message.category = object.category ?? "";
|
|
339
|
-
message.loc_limit = object.loc_limit ?? 0;
|
|
340
|
-
message.status = object.status ?? "";
|
|
341
|
-
return message;
|
|
342
|
-
},
|
|
343
|
-
};
|
|
344
|
-
function isSet(value) {
|
|
345
|
-
return value !== null && value !== undefined;
|
|
346
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customers.getdashboard";
|
|
3
|
-
export interface getDashboardRequest {
|
|
4
|
-
}
|
|
5
|
-
export interface getDashboardResponse {
|
|
6
|
-
user_state: string;
|
|
7
|
-
father_name_dialog: boolean;
|
|
8
|
-
current_step: string;
|
|
9
|
-
blocks: Block[];
|
|
10
|
-
}
|
|
11
|
-
export interface Block {
|
|
12
|
-
block_name: string;
|
|
13
|
-
block_title: string;
|
|
14
|
-
block_code: string;
|
|
15
|
-
block_data: BlockData[];
|
|
16
|
-
}
|
|
17
|
-
export interface BlockData {
|
|
18
|
-
text: string;
|
|
19
|
-
image_url: string;
|
|
20
|
-
video_url: string;
|
|
21
|
-
video_length: number;
|
|
22
|
-
action_url: string;
|
|
23
|
-
landing_page: string;
|
|
24
|
-
api_mode: string;
|
|
25
|
-
app_version: string;
|
|
26
|
-
old_customers: boolean;
|
|
27
|
-
is_new: boolean;
|
|
28
|
-
action_type: string;
|
|
29
|
-
color1: string;
|
|
30
|
-
color2: string;
|
|
31
|
-
image_trailing: string;
|
|
32
|
-
tag: Tag | undefined;
|
|
33
|
-
overlay_image: string;
|
|
34
|
-
}
|
|
35
|
-
export interface Tag {
|
|
36
|
-
text: string;
|
|
37
|
-
bg_color: string;
|
|
38
|
-
text_color: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const getDashboardRequest: {
|
|
41
|
-
encode(_: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardRequest;
|
|
43
|
-
fromJSON(_: any): getDashboardRequest;
|
|
44
|
-
toJSON(_: getDashboardRequest): unknown;
|
|
45
|
-
create<I extends Exact<DeepPartial<getDashboardRequest>, I>>(base?: I): getDashboardRequest;
|
|
46
|
-
fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(_: I): getDashboardRequest;
|
|
47
|
-
};
|
|
48
|
-
export declare const getDashboardResponse: {
|
|
49
|
-
encode(message: getDashboardResponse, writer?: _m0.Writer): _m0.Writer;
|
|
50
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardResponse;
|
|
51
|
-
fromJSON(object: any): getDashboardResponse;
|
|
52
|
-
toJSON(message: getDashboardResponse): unknown;
|
|
53
|
-
create<I extends Exact<DeepPartial<getDashboardResponse>, I>>(base?: I): getDashboardResponse;
|
|
54
|
-
fromPartial<I extends Exact<DeepPartial<getDashboardResponse>, I>>(object: I): getDashboardResponse;
|
|
55
|
-
};
|
|
56
|
-
export declare const Block: {
|
|
57
|
-
encode(message: Block, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Block;
|
|
59
|
-
fromJSON(object: any): Block;
|
|
60
|
-
toJSON(message: Block): unknown;
|
|
61
|
-
create<I extends Exact<DeepPartial<Block>, I>>(base?: I): Block;
|
|
62
|
-
fromPartial<I extends Exact<DeepPartial<Block>, I>>(object: I): Block;
|
|
63
|
-
};
|
|
64
|
-
export declare const BlockData: {
|
|
65
|
-
encode(message: BlockData, writer?: _m0.Writer): _m0.Writer;
|
|
66
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BlockData;
|
|
67
|
-
fromJSON(object: any): BlockData;
|
|
68
|
-
toJSON(message: BlockData): unknown;
|
|
69
|
-
create<I extends Exact<DeepPartial<BlockData>, I>>(base?: I): BlockData;
|
|
70
|
-
fromPartial<I extends Exact<DeepPartial<BlockData>, I>>(object: I): BlockData;
|
|
71
|
-
};
|
|
72
|
-
export declare const Tag: {
|
|
73
|
-
encode(message: Tag, writer?: _m0.Writer): _m0.Writer;
|
|
74
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Tag;
|
|
75
|
-
fromJSON(object: any): Tag;
|
|
76
|
-
toJSON(message: Tag): unknown;
|
|
77
|
-
create<I extends Exact<DeepPartial<Tag>, I>>(base?: I): Tag;
|
|
78
|
-
fromPartial<I extends Exact<DeepPartial<Tag>, I>>(object: I): Tag;
|
|
79
|
-
};
|
|
80
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
81
|
-
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 {} ? {
|
|
82
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
83
|
-
} : Partial<T>;
|
|
84
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
85
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
86
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
87
|
-
} & {
|
|
88
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
89
|
-
};
|
|
90
|
-
export {};
|