@stashfin/grpc 1.2.46 → 1.2.47
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} +46 -46
- 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 -169
- package/ts/customers.js +17 -116
- 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 +41 -0
- package/ts/payments/checkpaymentstatus.js +206 -0
- package/ts/payments/createorder.d.ts +39 -0
- package/ts/payments/createorder.js +191 -0
- package/ts/payments/getpaymentdetails.d.ts +39 -0
- package/ts/payments/getpaymentdetails.js +164 -0
- package/ts/payments/getpaymentoptions.d.ts +39 -0
- package/ts/payments/getpaymentoptions.js +164 -0
- package/ts/payments/initiatepayment.d.ts +43 -0
- package/ts/payments/initiatepayment.js +255 -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
package/ts/customers/getstep.js
CHANGED
|
@@ -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/getstep.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.stepResponse_Field = exports.stepResponse = exports.Validation = exports.getstepResponse = exports.getstepRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getstep";
|
|
@@ -50,12 +50,160 @@ exports.getstepRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetstepResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { step: "", setp_data: undefined };
|
|
54
54
|
}
|
|
55
55
|
exports.getstepResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.
|
|
58
|
-
writer.uint32(10).string(message.
|
|
57
|
+
if (message.step !== "") {
|
|
58
|
+
writer.uint32(10).string(message.step);
|
|
59
|
+
}
|
|
60
|
+
if (message.setp_data !== undefined) {
|
|
61
|
+
exports.stepResponse.encode(message.setp_data, writer.uint32(18).fork()).ldelim();
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBasegetstepResponse();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 10) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.step = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 18) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.setp_data = exports.stepResponse.decode(reader, reader.uint32());
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
step: isSet(object.step) ? globalThis.String(object.step) : "",
|
|
95
|
+
setp_data: isSet(object.setp_data) ? exports.stepResponse.fromJSON(object.setp_data) : undefined,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.step !== "") {
|
|
101
|
+
obj.step = message.step;
|
|
102
|
+
}
|
|
103
|
+
if (message.setp_data !== undefined) {
|
|
104
|
+
obj.setp_data = exports.stepResponse.toJSON(message.setp_data);
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.getstepResponse.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBasegetstepResponse();
|
|
113
|
+
message.step = object.step ?? "";
|
|
114
|
+
message.setp_data = (object.setp_data !== undefined && object.setp_data !== null)
|
|
115
|
+
? exports.stepResponse.fromPartial(object.setp_data)
|
|
116
|
+
: undefined;
|
|
117
|
+
return message;
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
function createBaseValidation() {
|
|
121
|
+
return { key: "", value: "", message: "" };
|
|
122
|
+
}
|
|
123
|
+
exports.Validation = {
|
|
124
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
125
|
+
if (message.key !== "") {
|
|
126
|
+
writer.uint32(10).string(message.key);
|
|
127
|
+
}
|
|
128
|
+
if (message.value !== "") {
|
|
129
|
+
writer.uint32(18).string(message.value);
|
|
130
|
+
}
|
|
131
|
+
if (message.message !== "") {
|
|
132
|
+
writer.uint32(26).string(message.message);
|
|
133
|
+
}
|
|
134
|
+
return writer;
|
|
135
|
+
},
|
|
136
|
+
decode(input, length) {
|
|
137
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
138
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
139
|
+
const message = createBaseValidation();
|
|
140
|
+
while (reader.pos < end) {
|
|
141
|
+
const tag = reader.uint32();
|
|
142
|
+
switch (tag >>> 3) {
|
|
143
|
+
case 1:
|
|
144
|
+
if (tag !== 10) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
message.key = reader.string();
|
|
148
|
+
continue;
|
|
149
|
+
case 2:
|
|
150
|
+
if (tag !== 18) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.value = reader.string();
|
|
154
|
+
continue;
|
|
155
|
+
case 3:
|
|
156
|
+
if (tag !== 26) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
message.message = reader.string();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
reader.skipType(tag & 7);
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
fromJSON(object) {
|
|
170
|
+
return {
|
|
171
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
172
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
173
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
toJSON(message) {
|
|
177
|
+
const obj = {};
|
|
178
|
+
if (message.key !== "") {
|
|
179
|
+
obj.key = message.key;
|
|
180
|
+
}
|
|
181
|
+
if (message.value !== "") {
|
|
182
|
+
obj.value = message.value;
|
|
183
|
+
}
|
|
184
|
+
if (message.message !== "") {
|
|
185
|
+
obj.message = message.message;
|
|
186
|
+
}
|
|
187
|
+
return obj;
|
|
188
|
+
},
|
|
189
|
+
create(base) {
|
|
190
|
+
return exports.Validation.fromPartial(base ?? {});
|
|
191
|
+
},
|
|
192
|
+
fromPartial(object) {
|
|
193
|
+
const message = createBaseValidation();
|
|
194
|
+
message.key = object.key ?? "";
|
|
195
|
+
message.value = object.value ?? "";
|
|
196
|
+
message.message = object.message ?? "";
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
function createBasestepResponse() {
|
|
201
|
+
return { page: "", type: "", button_text: "", data: [] };
|
|
202
|
+
}
|
|
203
|
+
exports.stepResponse = {
|
|
204
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
205
|
+
if (message.page !== "") {
|
|
206
|
+
writer.uint32(10).string(message.page);
|
|
59
207
|
}
|
|
60
208
|
if (message.type !== "") {
|
|
61
209
|
writer.uint32(18).string(message.type);
|
|
@@ -64,14 +212,14 @@ exports.getstepResponse = {
|
|
|
64
212
|
writer.uint32(26).string(message.button_text);
|
|
65
213
|
}
|
|
66
214
|
for (const v of message.data) {
|
|
67
|
-
exports.
|
|
215
|
+
exports.stepResponse_Field.encode(v, writer.uint32(34).fork()).ldelim();
|
|
68
216
|
}
|
|
69
217
|
return writer;
|
|
70
218
|
},
|
|
71
219
|
decode(input, length) {
|
|
72
220
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
73
221
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
-
const message =
|
|
222
|
+
const message = createBasestepResponse();
|
|
75
223
|
while (reader.pos < end) {
|
|
76
224
|
const tag = reader.uint32();
|
|
77
225
|
switch (tag >>> 3) {
|
|
@@ -79,7 +227,7 @@ exports.getstepResponse = {
|
|
|
79
227
|
if (tag !== 10) {
|
|
80
228
|
break;
|
|
81
229
|
}
|
|
82
|
-
message.
|
|
230
|
+
message.page = reader.string();
|
|
83
231
|
continue;
|
|
84
232
|
case 2:
|
|
85
233
|
if (tag !== 18) {
|
|
@@ -97,7 +245,7 @@ exports.getstepResponse = {
|
|
|
97
245
|
if (tag !== 34) {
|
|
98
246
|
break;
|
|
99
247
|
}
|
|
100
|
-
message.data.push(exports.
|
|
248
|
+
message.data.push(exports.stepResponse_Field.decode(reader, reader.uint32()));
|
|
101
249
|
continue;
|
|
102
250
|
}
|
|
103
251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -109,18 +257,16 @@ exports.getstepResponse = {
|
|
|
109
257
|
},
|
|
110
258
|
fromJSON(object) {
|
|
111
259
|
return {
|
|
112
|
-
|
|
260
|
+
page: isSet(object.page) ? globalThis.String(object.page) : "",
|
|
113
261
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
114
262
|
button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
|
|
115
|
-
data: globalThis.Array.isArray(object?.data)
|
|
116
|
-
? object.data.map((e) => exports.getstepResponse_Field.fromJSON(e))
|
|
117
|
-
: [],
|
|
263
|
+
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.stepResponse_Field.fromJSON(e)) : [],
|
|
118
264
|
};
|
|
119
265
|
},
|
|
120
266
|
toJSON(message) {
|
|
121
267
|
const obj = {};
|
|
122
|
-
if (message.
|
|
123
|
-
obj.
|
|
268
|
+
if (message.page !== "") {
|
|
269
|
+
obj.page = message.page;
|
|
124
270
|
}
|
|
125
271
|
if (message.type !== "") {
|
|
126
272
|
obj.type = message.type;
|
|
@@ -129,36 +275,26 @@ exports.getstepResponse = {
|
|
|
129
275
|
obj.button_text = message.button_text;
|
|
130
276
|
}
|
|
131
277
|
if (message.data?.length) {
|
|
132
|
-
obj.data = message.data.map((e) => exports.
|
|
278
|
+
obj.data = message.data.map((e) => exports.stepResponse_Field.toJSON(e));
|
|
133
279
|
}
|
|
134
280
|
return obj;
|
|
135
281
|
},
|
|
136
282
|
create(base) {
|
|
137
|
-
return exports.
|
|
283
|
+
return exports.stepResponse.fromPartial(base ?? {});
|
|
138
284
|
},
|
|
139
285
|
fromPartial(object) {
|
|
140
|
-
const message =
|
|
141
|
-
message.
|
|
286
|
+
const message = createBasestepResponse();
|
|
287
|
+
message.page = object.page ?? "";
|
|
142
288
|
message.type = object.type ?? "";
|
|
143
289
|
message.button_text = object.button_text ?? "";
|
|
144
|
-
message.data = object.data?.map((e) => exports.
|
|
290
|
+
message.data = object.data?.map((e) => exports.stepResponse_Field.fromPartial(e)) || [];
|
|
145
291
|
return message;
|
|
146
292
|
},
|
|
147
293
|
};
|
|
148
|
-
function
|
|
149
|
-
return {
|
|
150
|
-
label: "",
|
|
151
|
-
key: "",
|
|
152
|
-
input_type: "",
|
|
153
|
-
data_type: "",
|
|
154
|
-
icon: "",
|
|
155
|
-
is_popup: false,
|
|
156
|
-
keyboard_type: "",
|
|
157
|
-
text_capitalization: "",
|
|
158
|
-
validations: [],
|
|
159
|
-
};
|
|
294
|
+
function createBasestepResponse_Field() {
|
|
295
|
+
return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
|
|
160
296
|
}
|
|
161
|
-
exports.
|
|
297
|
+
exports.stepResponse_Field = {
|
|
162
298
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
163
299
|
if (message.label !== "") {
|
|
164
300
|
writer.uint32(10).string(message.label);
|
|
@@ -175,24 +311,15 @@ exports.getstepResponse_Field = {
|
|
|
175
311
|
if (message.icon !== "") {
|
|
176
312
|
writer.uint32(42).string(message.icon);
|
|
177
313
|
}
|
|
178
|
-
if (message.is_popup !== false) {
|
|
179
|
-
writer.uint32(48).bool(message.is_popup);
|
|
180
|
-
}
|
|
181
|
-
if (message.keyboard_type !== "") {
|
|
182
|
-
writer.uint32(58).string(message.keyboard_type);
|
|
183
|
-
}
|
|
184
|
-
if (message.text_capitalization !== "") {
|
|
185
|
-
writer.uint32(66).string(message.text_capitalization);
|
|
186
|
-
}
|
|
187
314
|
for (const v of message.validations) {
|
|
188
|
-
exports.Validation.encode(v, writer.uint32(
|
|
315
|
+
exports.Validation.encode(v, writer.uint32(58).fork()).ldelim();
|
|
189
316
|
}
|
|
190
317
|
return writer;
|
|
191
318
|
},
|
|
192
319
|
decode(input, length) {
|
|
193
320
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
194
321
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
195
|
-
const message =
|
|
322
|
+
const message = createBasestepResponse_Field();
|
|
196
323
|
while (reader.pos < end) {
|
|
197
324
|
const tag = reader.uint32();
|
|
198
325
|
switch (tag >>> 3) {
|
|
@@ -226,28 +353,10 @@ exports.getstepResponse_Field = {
|
|
|
226
353
|
}
|
|
227
354
|
message.icon = reader.string();
|
|
228
355
|
continue;
|
|
229
|
-
case 6:
|
|
230
|
-
if (tag !== 48) {
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
message.is_popup = reader.bool();
|
|
234
|
-
continue;
|
|
235
356
|
case 7:
|
|
236
357
|
if (tag !== 58) {
|
|
237
358
|
break;
|
|
238
359
|
}
|
|
239
|
-
message.keyboard_type = reader.string();
|
|
240
|
-
continue;
|
|
241
|
-
case 8:
|
|
242
|
-
if (tag !== 66) {
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
message.text_capitalization = reader.string();
|
|
246
|
-
continue;
|
|
247
|
-
case 9:
|
|
248
|
-
if (tag !== 74) {
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
360
|
message.validations.push(exports.Validation.decode(reader, reader.uint32()));
|
|
252
361
|
continue;
|
|
253
362
|
}
|
|
@@ -265,9 +374,6 @@ exports.getstepResponse_Field = {
|
|
|
265
374
|
input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
|
|
266
375
|
data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
|
|
267
376
|
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
268
|
-
is_popup: isSet(object.is_popup) ? globalThis.Boolean(object.is_popup) : false,
|
|
269
|
-
keyboard_type: isSet(object.keyboard_type) ? globalThis.String(object.keyboard_type) : "",
|
|
270
|
-
text_capitalization: isSet(object.text_capitalization) ? globalThis.String(object.text_capitalization) : "",
|
|
271
377
|
validations: globalThis.Array.isArray(object?.validations)
|
|
272
378
|
? object.validations.map((e) => exports.Validation.fromJSON(e))
|
|
273
379
|
: [],
|
|
@@ -290,117 +396,25 @@ exports.getstepResponse_Field = {
|
|
|
290
396
|
if (message.icon !== "") {
|
|
291
397
|
obj.icon = message.icon;
|
|
292
398
|
}
|
|
293
|
-
if (message.is_popup !== false) {
|
|
294
|
-
obj.is_popup = message.is_popup;
|
|
295
|
-
}
|
|
296
|
-
if (message.keyboard_type !== "") {
|
|
297
|
-
obj.keyboard_type = message.keyboard_type;
|
|
298
|
-
}
|
|
299
|
-
if (message.text_capitalization !== "") {
|
|
300
|
-
obj.text_capitalization = message.text_capitalization;
|
|
301
|
-
}
|
|
302
399
|
if (message.validations?.length) {
|
|
303
400
|
obj.validations = message.validations.map((e) => exports.Validation.toJSON(e));
|
|
304
401
|
}
|
|
305
402
|
return obj;
|
|
306
403
|
},
|
|
307
404
|
create(base) {
|
|
308
|
-
return exports.
|
|
405
|
+
return exports.stepResponse_Field.fromPartial(base ?? {});
|
|
309
406
|
},
|
|
310
407
|
fromPartial(object) {
|
|
311
|
-
const message =
|
|
408
|
+
const message = createBasestepResponse_Field();
|
|
312
409
|
message.label = object.label ?? "";
|
|
313
410
|
message.key = object.key ?? "";
|
|
314
411
|
message.input_type = object.input_type ?? "";
|
|
315
412
|
message.data_type = object.data_type ?? "";
|
|
316
413
|
message.icon = object.icon ?? "";
|
|
317
|
-
message.is_popup = object.is_popup ?? false;
|
|
318
|
-
message.keyboard_type = object.keyboard_type ?? "";
|
|
319
|
-
message.text_capitalization = object.text_capitalization ?? "";
|
|
320
414
|
message.validations = object.validations?.map((e) => exports.Validation.fromPartial(e)) || [];
|
|
321
415
|
return message;
|
|
322
416
|
},
|
|
323
417
|
};
|
|
324
|
-
function createBaseValidation() {
|
|
325
|
-
return { key: "", value: "", message: "" };
|
|
326
|
-
}
|
|
327
|
-
exports.Validation = {
|
|
328
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
329
|
-
if (message.key !== "") {
|
|
330
|
-
writer.uint32(10).string(message.key);
|
|
331
|
-
}
|
|
332
|
-
if (message.value !== "") {
|
|
333
|
-
writer.uint32(18).string(message.value);
|
|
334
|
-
}
|
|
335
|
-
if (message.message !== "") {
|
|
336
|
-
writer.uint32(26).string(message.message);
|
|
337
|
-
}
|
|
338
|
-
return writer;
|
|
339
|
-
},
|
|
340
|
-
decode(input, length) {
|
|
341
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
342
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
343
|
-
const message = createBaseValidation();
|
|
344
|
-
while (reader.pos < end) {
|
|
345
|
-
const tag = reader.uint32();
|
|
346
|
-
switch (tag >>> 3) {
|
|
347
|
-
case 1:
|
|
348
|
-
if (tag !== 10) {
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
message.key = reader.string();
|
|
352
|
-
continue;
|
|
353
|
-
case 2:
|
|
354
|
-
if (tag !== 18) {
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
message.value = reader.string();
|
|
358
|
-
continue;
|
|
359
|
-
case 3:
|
|
360
|
-
if (tag !== 26) {
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
message.message = reader.string();
|
|
364
|
-
continue;
|
|
365
|
-
}
|
|
366
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
reader.skipType(tag & 7);
|
|
370
|
-
}
|
|
371
|
-
return message;
|
|
372
|
-
},
|
|
373
|
-
fromJSON(object) {
|
|
374
|
-
return {
|
|
375
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
376
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
377
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
378
|
-
};
|
|
379
|
-
},
|
|
380
|
-
toJSON(message) {
|
|
381
|
-
const obj = {};
|
|
382
|
-
if (message.key !== "") {
|
|
383
|
-
obj.key = message.key;
|
|
384
|
-
}
|
|
385
|
-
if (message.value !== "") {
|
|
386
|
-
obj.value = message.value;
|
|
387
|
-
}
|
|
388
|
-
if (message.message !== "") {
|
|
389
|
-
obj.message = message.message;
|
|
390
|
-
}
|
|
391
|
-
return obj;
|
|
392
|
-
},
|
|
393
|
-
create(base) {
|
|
394
|
-
return exports.Validation.fromPartial(base ?? {});
|
|
395
|
-
},
|
|
396
|
-
fromPartial(object) {
|
|
397
|
-
const message = createBaseValidation();
|
|
398
|
-
message.key = object.key ?? "";
|
|
399
|
-
message.value = object.value ?? "";
|
|
400
|
-
message.message = object.message ?? "";
|
|
401
|
-
return message;
|
|
402
|
-
},
|
|
403
|
-
};
|
|
404
418
|
function isSet(value) {
|
|
405
419
|
return value !== null && value !== undefined;
|
|
406
420
|
}
|
|
@@ -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/profilebasic.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -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/profileupdatetnc.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -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/sendemailtoken.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/sendotp.js
CHANGED
|
@@ -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/sendotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/setmpin.js
CHANGED
|
@@ -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/setmpin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step1.d.ts
CHANGED
package/ts/customers/step1.js
CHANGED
|
@@ -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/step1.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -13,7 +13,7 @@ exports.step1Response_Field = exports.step1Response = exports.Validation = expor
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.step1";
|
|
15
15
|
function createBasestep1Request() {
|
|
16
|
-
return { full_name: "", pan_number: "",
|
|
16
|
+
return { full_name: "", pan_number: "", tnc: false };
|
|
17
17
|
}
|
|
18
18
|
exports.step1Request = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,14 +23,8 @@ exports.step1Request = {
|
|
|
23
23
|
if (message.pan_number !== "") {
|
|
24
24
|
writer.uint32(18).string(message.pan_number);
|
|
25
25
|
}
|
|
26
|
-
if (message.dob !== "") {
|
|
27
|
-
writer.uint32(26).string(message.dob);
|
|
28
|
-
}
|
|
29
|
-
if (message.pincode !== "") {
|
|
30
|
-
writer.uint32(34).string(message.pincode);
|
|
31
|
-
}
|
|
32
26
|
if (message.tnc !== false) {
|
|
33
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(24).bool(message.tnc);
|
|
34
28
|
}
|
|
35
29
|
return writer;
|
|
36
30
|
},
|
|
@@ -54,19 +48,7 @@ exports.step1Request = {
|
|
|
54
48
|
message.pan_number = reader.string();
|
|
55
49
|
continue;
|
|
56
50
|
case 3:
|
|
57
|
-
if (tag !==
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
message.dob = reader.string();
|
|
61
|
-
continue;
|
|
62
|
-
case 4:
|
|
63
|
-
if (tag !== 34) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.pincode = reader.string();
|
|
67
|
-
continue;
|
|
68
|
-
case 5:
|
|
69
|
-
if (tag !== 40) {
|
|
51
|
+
if (tag !== 24) {
|
|
70
52
|
break;
|
|
71
53
|
}
|
|
72
54
|
message.tnc = reader.bool();
|
|
@@ -83,8 +65,6 @@ exports.step1Request = {
|
|
|
83
65
|
return {
|
|
84
66
|
full_name: isSet(object.full_name) ? globalThis.String(object.full_name) : "",
|
|
85
67
|
pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : "",
|
|
86
|
-
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
87
|
-
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
88
68
|
tnc: isSet(object.tnc) ? globalThis.Boolean(object.tnc) : false,
|
|
89
69
|
};
|
|
90
70
|
},
|
|
@@ -96,12 +76,6 @@ exports.step1Request = {
|
|
|
96
76
|
if (message.pan_number !== "") {
|
|
97
77
|
obj.pan_number = message.pan_number;
|
|
98
78
|
}
|
|
99
|
-
if (message.dob !== "") {
|
|
100
|
-
obj.dob = message.dob;
|
|
101
|
-
}
|
|
102
|
-
if (message.pincode !== "") {
|
|
103
|
-
obj.pincode = message.pincode;
|
|
104
|
-
}
|
|
105
79
|
if (message.tnc !== false) {
|
|
106
80
|
obj.tnc = message.tnc;
|
|
107
81
|
}
|
|
@@ -114,8 +88,6 @@ exports.step1Request = {
|
|
|
114
88
|
const message = createBasestep1Request();
|
|
115
89
|
message.full_name = object.full_name ?? "";
|
|
116
90
|
message.pan_number = object.pan_number ?? "";
|
|
117
|
-
message.dob = object.dob ?? "";
|
|
118
|
-
message.pincode = object.pincode ?? "";
|
|
119
91
|
message.tnc = object.tnc ?? false;
|
|
120
92
|
return message;
|
|
121
93
|
},
|
package/ts/customers/step10.js
CHANGED
|
@@ -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/step10.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/customers/step2.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.step2";
|
|
3
3
|
export interface step2Request {
|
|
4
|
+
pincode: string;
|
|
5
|
+
dob: string;
|
|
4
6
|
}
|
|
5
7
|
export interface Validation {
|
|
6
8
|
key: string;
|
|
@@ -12,7 +14,6 @@ export interface step2Response {
|
|
|
12
14
|
type: string;
|
|
13
15
|
button_text: string;
|
|
14
16
|
data: step2Response_Field[];
|
|
15
|
-
kyc_web_url: string;
|
|
16
17
|
}
|
|
17
18
|
export interface step2Response_Field {
|
|
18
19
|
label: string;
|
|
@@ -23,12 +24,12 @@ export interface step2Response_Field {
|
|
|
23
24
|
validations: Validation[];
|
|
24
25
|
}
|
|
25
26
|
export declare const step2Request: {
|
|
26
|
-
encode(
|
|
27
|
+
encode(message: step2Request, writer?: _m0.Writer): _m0.Writer;
|
|
27
28
|
decode(input: _m0.Reader | Uint8Array, length?: number): step2Request;
|
|
28
|
-
fromJSON(
|
|
29
|
-
toJSON(
|
|
29
|
+
fromJSON(object: any): step2Request;
|
|
30
|
+
toJSON(message: step2Request): unknown;
|
|
30
31
|
create<I extends Exact<DeepPartial<step2Request>, I>>(base?: I): step2Request;
|
|
31
|
-
fromPartial<I extends Exact<DeepPartial<step2Request>, I>>(
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<step2Request>, I>>(object: I): step2Request;
|
|
32
33
|
};
|
|
33
34
|
export declare const Validation: {
|
|
34
35
|
encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
|