@stashfin/grpc 1.2.440 → 1.2.442
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/enach/updatetxnstatus.d.ts +1 -4
- package/ts/customers/enach/updatetxnstatus.js +8 -64
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/skipdlrcscreen.d.ts +35 -0
- package/ts/customers/skipdlrcscreen.js +117 -0
- package/ts/customers/step1.d.ts +69 -0
- package/ts/customers/step1.js +395 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +68 -0
- package/ts/customers/step2.js +381 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/{loans/getvirtualaccountnumber.js → customers/verifyemail.js} +32 -32
- package/ts/eqxcustomer.d.ts +84 -0
- package/ts/eqxcustomer.js +64 -0
- package/ts/eqxcustomers/getcustomerbyid.d.ts +44 -0
- package/ts/eqxcustomers/getcustomerbyid.js +256 -0
- package/ts/eqxcustomers/getdashboard.d.ts +89 -0
- package/ts/eqxcustomers/getdashboard.js +588 -0
- package/ts/eqxcustomers/getdashboardmaincard.d.ts +59 -0
- package/ts/eqxcustomers/getdashboardmaincard.js +369 -0
- package/ts/eqxcustomers/sendotp.d.ts +38 -0
- package/ts/eqxcustomers/sendotp.js +163 -0
- package/ts/eqxcustomers/verifyotp.d.ts +44 -0
- package/ts/eqxcustomers/verifyotp.js +247 -0
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/getvirtualaccountnumber.d.ts +0 -35
|
@@ -0,0 +1,369 @@
|
|
|
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 v5.28.3
|
|
6
|
+
// source: eqxcustomers/getdashboardmaincard.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.MainCardData = exports.getDashboardMainCardResponse = exports.getDashboardMainCardRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.getdashboardmaincard";
|
|
15
|
+
function createBasegetDashboardMainCardRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getDashboardMainCardRequest = {
|
|
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 = createBasegetDashboardMainCardRequest();
|
|
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.getDashboardMainCardRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetDashboardMainCardRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetDashboardMainCardResponse() {
|
|
53
|
+
return { name: "", code: "", block_data: undefined, user_state: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getDashboardMainCardResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.name !== "") {
|
|
58
|
+
writer.uint32(10).string(message.name);
|
|
59
|
+
}
|
|
60
|
+
if (message.code !== "") {
|
|
61
|
+
writer.uint32(18).string(message.code);
|
|
62
|
+
}
|
|
63
|
+
if (message.block_data !== undefined) {
|
|
64
|
+
exports.MainCardData.encode(message.block_data, writer.uint32(26).fork()).ldelim();
|
|
65
|
+
}
|
|
66
|
+
if (message.user_state !== "") {
|
|
67
|
+
writer.uint32(34).string(message.user_state);
|
|
68
|
+
}
|
|
69
|
+
return writer;
|
|
70
|
+
},
|
|
71
|
+
decode(input, length) {
|
|
72
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
73
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBasegetDashboardMainCardResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1:
|
|
79
|
+
if (tag !== 10) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.name = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
case 2:
|
|
85
|
+
if (tag !== 18) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.code = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 26) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.block_data = exports.MainCardData.decode(reader, reader.uint32());
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.user_state = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
113
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
114
|
+
block_data: isSet(object.block_data) ? exports.MainCardData.fromJSON(object.block_data) : undefined,
|
|
115
|
+
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.name !== "") {
|
|
121
|
+
obj.name = message.name;
|
|
122
|
+
}
|
|
123
|
+
if (message.code !== "") {
|
|
124
|
+
obj.code = message.code;
|
|
125
|
+
}
|
|
126
|
+
if (message.block_data !== undefined) {
|
|
127
|
+
obj.block_data = exports.MainCardData.toJSON(message.block_data);
|
|
128
|
+
}
|
|
129
|
+
if (message.user_state !== "") {
|
|
130
|
+
obj.user_state = message.user_state;
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.getDashboardMainCardResponse.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBasegetDashboardMainCardResponse();
|
|
139
|
+
message.name = object.name ?? "";
|
|
140
|
+
message.code = object.code ?? "";
|
|
141
|
+
message.block_data = (object.block_data !== undefined && object.block_data !== null)
|
|
142
|
+
? exports.MainCardData.fromPartial(object.block_data)
|
|
143
|
+
: undefined;
|
|
144
|
+
message.user_state = object.user_state ?? "";
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
function createBaseMainCardData() {
|
|
149
|
+
return {
|
|
150
|
+
text: "",
|
|
151
|
+
amount_text: "",
|
|
152
|
+
sub_text: "",
|
|
153
|
+
action_button_text: "",
|
|
154
|
+
action: "",
|
|
155
|
+
action_type: "",
|
|
156
|
+
comment: "",
|
|
157
|
+
landing_page: "",
|
|
158
|
+
timer: "",
|
|
159
|
+
image: "",
|
|
160
|
+
show_button: false,
|
|
161
|
+
static_text: "",
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
exports.MainCardData = {
|
|
165
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
166
|
+
if (message.text !== "") {
|
|
167
|
+
writer.uint32(10).string(message.text);
|
|
168
|
+
}
|
|
169
|
+
if (message.amount_text !== "") {
|
|
170
|
+
writer.uint32(18).string(message.amount_text);
|
|
171
|
+
}
|
|
172
|
+
if (message.sub_text !== "") {
|
|
173
|
+
writer.uint32(26).string(message.sub_text);
|
|
174
|
+
}
|
|
175
|
+
if (message.action_button_text !== "") {
|
|
176
|
+
writer.uint32(34).string(message.action_button_text);
|
|
177
|
+
}
|
|
178
|
+
if (message.action !== "") {
|
|
179
|
+
writer.uint32(42).string(message.action);
|
|
180
|
+
}
|
|
181
|
+
if (message.action_type !== "") {
|
|
182
|
+
writer.uint32(50).string(message.action_type);
|
|
183
|
+
}
|
|
184
|
+
if (message.comment !== "") {
|
|
185
|
+
writer.uint32(58).string(message.comment);
|
|
186
|
+
}
|
|
187
|
+
if (message.landing_page !== "") {
|
|
188
|
+
writer.uint32(66).string(message.landing_page);
|
|
189
|
+
}
|
|
190
|
+
if (message.timer !== "") {
|
|
191
|
+
writer.uint32(74).string(message.timer);
|
|
192
|
+
}
|
|
193
|
+
if (message.image !== "") {
|
|
194
|
+
writer.uint32(82).string(message.image);
|
|
195
|
+
}
|
|
196
|
+
if (message.show_button !== false) {
|
|
197
|
+
writer.uint32(88).bool(message.show_button);
|
|
198
|
+
}
|
|
199
|
+
if (message.static_text !== "") {
|
|
200
|
+
writer.uint32(98).string(message.static_text);
|
|
201
|
+
}
|
|
202
|
+
return writer;
|
|
203
|
+
},
|
|
204
|
+
decode(input, length) {
|
|
205
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
206
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
207
|
+
const message = createBaseMainCardData();
|
|
208
|
+
while (reader.pos < end) {
|
|
209
|
+
const tag = reader.uint32();
|
|
210
|
+
switch (tag >>> 3) {
|
|
211
|
+
case 1:
|
|
212
|
+
if (tag !== 10) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.text = reader.string();
|
|
216
|
+
continue;
|
|
217
|
+
case 2:
|
|
218
|
+
if (tag !== 18) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
message.amount_text = reader.string();
|
|
222
|
+
continue;
|
|
223
|
+
case 3:
|
|
224
|
+
if (tag !== 26) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
message.sub_text = reader.string();
|
|
228
|
+
continue;
|
|
229
|
+
case 4:
|
|
230
|
+
if (tag !== 34) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.action_button_text = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
case 5:
|
|
236
|
+
if (tag !== 42) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.action = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
case 6:
|
|
242
|
+
if (tag !== 50) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.action_type = reader.string();
|
|
246
|
+
continue;
|
|
247
|
+
case 7:
|
|
248
|
+
if (tag !== 58) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.comment = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
case 8:
|
|
254
|
+
if (tag !== 66) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.landing_page = reader.string();
|
|
258
|
+
continue;
|
|
259
|
+
case 9:
|
|
260
|
+
if (tag !== 74) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
message.timer = reader.string();
|
|
264
|
+
continue;
|
|
265
|
+
case 10:
|
|
266
|
+
if (tag !== 82) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
message.image = reader.string();
|
|
270
|
+
continue;
|
|
271
|
+
case 11:
|
|
272
|
+
if (tag !== 88) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
message.show_button = reader.bool();
|
|
276
|
+
continue;
|
|
277
|
+
case 12:
|
|
278
|
+
if (tag !== 98) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
message.static_text = reader.string();
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
reader.skipType(tag & 7);
|
|
288
|
+
}
|
|
289
|
+
return message;
|
|
290
|
+
},
|
|
291
|
+
fromJSON(object) {
|
|
292
|
+
return {
|
|
293
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
294
|
+
amount_text: isSet(object.amount_text) ? globalThis.String(object.amount_text) : "",
|
|
295
|
+
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
|
|
296
|
+
action_button_text: isSet(object.action_button_text) ? globalThis.String(object.action_button_text) : "",
|
|
297
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
298
|
+
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
299
|
+
comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
|
|
300
|
+
landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
|
|
301
|
+
timer: isSet(object.timer) ? globalThis.String(object.timer) : "",
|
|
302
|
+
image: isSet(object.image) ? globalThis.String(object.image) : "",
|
|
303
|
+
show_button: isSet(object.show_button) ? globalThis.Boolean(object.show_button) : false,
|
|
304
|
+
static_text: isSet(object.static_text) ? globalThis.String(object.static_text) : "",
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
toJSON(message) {
|
|
308
|
+
const obj = {};
|
|
309
|
+
if (message.text !== "") {
|
|
310
|
+
obj.text = message.text;
|
|
311
|
+
}
|
|
312
|
+
if (message.amount_text !== "") {
|
|
313
|
+
obj.amount_text = message.amount_text;
|
|
314
|
+
}
|
|
315
|
+
if (message.sub_text !== "") {
|
|
316
|
+
obj.sub_text = message.sub_text;
|
|
317
|
+
}
|
|
318
|
+
if (message.action_button_text !== "") {
|
|
319
|
+
obj.action_button_text = message.action_button_text;
|
|
320
|
+
}
|
|
321
|
+
if (message.action !== "") {
|
|
322
|
+
obj.action = message.action;
|
|
323
|
+
}
|
|
324
|
+
if (message.action_type !== "") {
|
|
325
|
+
obj.action_type = message.action_type;
|
|
326
|
+
}
|
|
327
|
+
if (message.comment !== "") {
|
|
328
|
+
obj.comment = message.comment;
|
|
329
|
+
}
|
|
330
|
+
if (message.landing_page !== "") {
|
|
331
|
+
obj.landing_page = message.landing_page;
|
|
332
|
+
}
|
|
333
|
+
if (message.timer !== "") {
|
|
334
|
+
obj.timer = message.timer;
|
|
335
|
+
}
|
|
336
|
+
if (message.image !== "") {
|
|
337
|
+
obj.image = message.image;
|
|
338
|
+
}
|
|
339
|
+
if (message.show_button !== false) {
|
|
340
|
+
obj.show_button = message.show_button;
|
|
341
|
+
}
|
|
342
|
+
if (message.static_text !== "") {
|
|
343
|
+
obj.static_text = message.static_text;
|
|
344
|
+
}
|
|
345
|
+
return obj;
|
|
346
|
+
},
|
|
347
|
+
create(base) {
|
|
348
|
+
return exports.MainCardData.fromPartial(base ?? {});
|
|
349
|
+
},
|
|
350
|
+
fromPartial(object) {
|
|
351
|
+
const message = createBaseMainCardData();
|
|
352
|
+
message.text = object.text ?? "";
|
|
353
|
+
message.amount_text = object.amount_text ?? "";
|
|
354
|
+
message.sub_text = object.sub_text ?? "";
|
|
355
|
+
message.action_button_text = object.action_button_text ?? "";
|
|
356
|
+
message.action = object.action ?? "";
|
|
357
|
+
message.action_type = object.action_type ?? "";
|
|
358
|
+
message.comment = object.comment ?? "";
|
|
359
|
+
message.landing_page = object.landing_page ?? "";
|
|
360
|
+
message.timer = object.timer ?? "";
|
|
361
|
+
message.image = object.image ?? "";
|
|
362
|
+
message.show_button = object.show_button ?? false;
|
|
363
|
+
message.static_text = object.static_text ?? "";
|
|
364
|
+
return message;
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
function isSet(value) {
|
|
368
|
+
return value !== null && value !== undefined;
|
|
369
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.sendotp";
|
|
3
|
+
export interface sendOtpRequest {
|
|
4
|
+
mobile: string;
|
|
5
|
+
device_id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface sendOtpResponse {
|
|
8
|
+
token: string;
|
|
9
|
+
is_registered: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const sendOtpRequest: {
|
|
13
|
+
encode(message: sendOtpRequest, writer?: _m0.Writer): _m0.Writer;
|
|
14
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendOtpRequest;
|
|
15
|
+
fromJSON(object: any): sendOtpRequest;
|
|
16
|
+
toJSON(message: sendOtpRequest): unknown;
|
|
17
|
+
create<I extends Exact<DeepPartial<sendOtpRequest>, I>>(base?: I): sendOtpRequest;
|
|
18
|
+
fromPartial<I extends Exact<DeepPartial<sendOtpRequest>, I>>(object: I): sendOtpRequest;
|
|
19
|
+
};
|
|
20
|
+
export declare const sendOtpResponse: {
|
|
21
|
+
encode(message: sendOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendOtpResponse;
|
|
23
|
+
fromJSON(object: any): sendOtpResponse;
|
|
24
|
+
toJSON(message: sendOtpResponse): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<sendOtpResponse>, I>>(base?: I): sendOtpResponse;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<sendOtpResponse>, I>>(object: I): sendOtpResponse;
|
|
27
|
+
};
|
|
28
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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 {} ? {
|
|
30
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
31
|
+
} : Partial<T>;
|
|
32
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
33
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
34
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
35
|
+
} & {
|
|
36
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
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 v5.28.3
|
|
6
|
+
// source: eqxcustomers/sendotp.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.sendOtpResponse = exports.sendOtpRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.sendotp";
|
|
15
|
+
function createBasesendOtpRequest() {
|
|
16
|
+
return { mobile: "", device_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.sendOtpRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
|
+
}
|
|
23
|
+
if (message.device_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.device_id);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBasesendOtpRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.mobile = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.device_id = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.mobile !== "") {
|
|
64
|
+
obj.mobile = message.mobile;
|
|
65
|
+
}
|
|
66
|
+
if (message.device_id !== "") {
|
|
67
|
+
obj.device_id = message.device_id;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.sendOtpRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBasesendOtpRequest();
|
|
76
|
+
message.mobile = object.mobile ?? "";
|
|
77
|
+
message.device_id = object.device_id ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBasesendOtpResponse() {
|
|
82
|
+
return { token: "", is_registered: false, message: "" };
|
|
83
|
+
}
|
|
84
|
+
exports.sendOtpResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.token !== "") {
|
|
87
|
+
writer.uint32(10).string(message.token);
|
|
88
|
+
}
|
|
89
|
+
if (message.is_registered !== false) {
|
|
90
|
+
writer.uint32(16).bool(message.is_registered);
|
|
91
|
+
}
|
|
92
|
+
if (message.message !== "") {
|
|
93
|
+
writer.uint32(26).string(message.message);
|
|
94
|
+
}
|
|
95
|
+
return writer;
|
|
96
|
+
},
|
|
97
|
+
decode(input, length) {
|
|
98
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
99
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
|
+
const message = createBasesendOtpResponse();
|
|
101
|
+
while (reader.pos < end) {
|
|
102
|
+
const tag = reader.uint32();
|
|
103
|
+
switch (tag >>> 3) {
|
|
104
|
+
case 1:
|
|
105
|
+
if (tag !== 10) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.token = reader.string();
|
|
109
|
+
continue;
|
|
110
|
+
case 2:
|
|
111
|
+
if (tag !== 16) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.is_registered = reader.bool();
|
|
115
|
+
continue;
|
|
116
|
+
case 3:
|
|
117
|
+
if (tag !== 26) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
message.message = reader.string();
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
reader.skipType(tag & 7);
|
|
127
|
+
}
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
fromJSON(object) {
|
|
131
|
+
return {
|
|
132
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
133
|
+
is_registered: isSet(object.is_registered) ? globalThis.Boolean(object.is_registered) : false,
|
|
134
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
135
|
+
};
|
|
136
|
+
},
|
|
137
|
+
toJSON(message) {
|
|
138
|
+
const obj = {};
|
|
139
|
+
if (message.token !== "") {
|
|
140
|
+
obj.token = message.token;
|
|
141
|
+
}
|
|
142
|
+
if (message.is_registered !== false) {
|
|
143
|
+
obj.is_registered = message.is_registered;
|
|
144
|
+
}
|
|
145
|
+
if (message.message !== "") {
|
|
146
|
+
obj.message = message.message;
|
|
147
|
+
}
|
|
148
|
+
return obj;
|
|
149
|
+
},
|
|
150
|
+
create(base) {
|
|
151
|
+
return exports.sendOtpResponse.fromPartial(base ?? {});
|
|
152
|
+
},
|
|
153
|
+
fromPartial(object) {
|
|
154
|
+
const message = createBasesendOtpResponse();
|
|
155
|
+
message.token = object.token ?? "";
|
|
156
|
+
message.is_registered = object.is_registered ?? false;
|
|
157
|
+
message.message = object.message ?? "";
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
function isSet(value) {
|
|
162
|
+
return value !== null && value !== undefined;
|
|
163
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.verifyotp";
|
|
3
|
+
export interface verifyOtpReqeust {
|
|
4
|
+
mobile: string;
|
|
5
|
+
device_id: string;
|
|
6
|
+
otp: string;
|
|
7
|
+
token: string;
|
|
8
|
+
tnc: boolean;
|
|
9
|
+
is_rooted: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface verifyOtpResponse {
|
|
12
|
+
auth_token: string;
|
|
13
|
+
deleted_auth_token?: string | undefined;
|
|
14
|
+
first_name?: string | undefined;
|
|
15
|
+
last_name?: string | undefined;
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const verifyOtpReqeust: {
|
|
19
|
+
encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): verifyOtpReqeust;
|
|
21
|
+
fromJSON(object: any): verifyOtpReqeust;
|
|
22
|
+
toJSON(message: verifyOtpReqeust): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<verifyOtpReqeust>, I>>(base?: I): verifyOtpReqeust;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<verifyOtpReqeust>, I>>(object: I): verifyOtpReqeust;
|
|
25
|
+
};
|
|
26
|
+
export declare const verifyOtpResponse: {
|
|
27
|
+
encode(message: verifyOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): verifyOtpResponse;
|
|
29
|
+
fromJSON(object: any): verifyOtpResponse;
|
|
30
|
+
toJSON(message: verifyOtpResponse): unknown;
|
|
31
|
+
create<I extends Exact<DeepPartial<verifyOtpResponse>, I>>(base?: I): verifyOtpResponse;
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<verifyOtpResponse>, I>>(object: I): verifyOtpResponse;
|
|
33
|
+
};
|
|
34
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
35
|
+
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 {} ? {
|
|
36
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
37
|
+
} : Partial<T>;
|
|
38
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
39
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
40
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
41
|
+
} & {
|
|
42
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
43
|
+
};
|
|
44
|
+
export {};
|