@technova-tech/olive-proto-lib 1.7.0 → 1.7.1
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/accounts/accounts.js +0 -20
- package/business/business.js +5 -168
- package/package.json +2 -2
- package/pos.v1/terminals.js +0 -60
- package/types/accounts/accounts.d.ts +0 -5
- package/types/business/business.d.ts +0 -51
- package/types/index.d.ts +18 -36
- package/types/pos.v1/terminals.d.ts +0 -15
package/accounts/accounts.js
CHANGED
|
@@ -2950,9 +2950,6 @@ var com;
|
|
|
2950
2950
|
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
2951
2951
|
this.phoneNumber = data.phoneNumber;
|
|
2952
2952
|
}
|
|
2953
|
-
if ("terminal" in data && data.terminal != undefined) {
|
|
2954
|
-
this.terminal = data.terminal;
|
|
2955
|
-
}
|
|
2956
2953
|
}
|
|
2957
2954
|
}
|
|
2958
2955
|
get user() {
|
|
@@ -3015,12 +3012,6 @@ var com;
|
|
|
3015
3012
|
set phoneNumber(value) {
|
|
3016
3013
|
pb_1.Message.setField(this, 10, value);
|
|
3017
3014
|
}
|
|
3018
|
-
get terminal() {
|
|
3019
|
-
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
3020
|
-
}
|
|
3021
|
-
set terminal(value) {
|
|
3022
|
-
pb_1.Message.setField(this, 11, value);
|
|
3023
|
-
}
|
|
3024
3015
|
static fromObject(data) {
|
|
3025
3016
|
const message = new AssignOrCreateTerminalVirtualAccountRequest({});
|
|
3026
3017
|
if (data.user != null) {
|
|
@@ -3053,9 +3044,6 @@ var com;
|
|
|
3053
3044
|
if (data.phoneNumber != null) {
|
|
3054
3045
|
message.phoneNumber = data.phoneNumber;
|
|
3055
3046
|
}
|
|
3056
|
-
if (data.terminal != null) {
|
|
3057
|
-
message.terminal = data.terminal;
|
|
3058
|
-
}
|
|
3059
3047
|
return message;
|
|
3060
3048
|
}
|
|
3061
3049
|
toObject() {
|
|
@@ -3090,9 +3078,6 @@ var com;
|
|
|
3090
3078
|
if (this.phoneNumber != null) {
|
|
3091
3079
|
data.phoneNumber = this.phoneNumber;
|
|
3092
3080
|
}
|
|
3093
|
-
if (this.terminal != null) {
|
|
3094
|
-
data.terminal = this.terminal;
|
|
3095
|
-
}
|
|
3096
3081
|
return data;
|
|
3097
3082
|
}
|
|
3098
3083
|
serialize(w) {
|
|
@@ -3117,8 +3102,6 @@ var com;
|
|
|
3117
3102
|
writer.writeString(9, this.nin);
|
|
3118
3103
|
if (this.phoneNumber.length)
|
|
3119
3104
|
writer.writeString(10, this.phoneNumber);
|
|
3120
|
-
if (this.terminal.length)
|
|
3121
|
-
writer.writeString(11, this.terminal);
|
|
3122
3105
|
if (!w)
|
|
3123
3106
|
return writer.getResultBuffer();
|
|
3124
3107
|
}
|
|
@@ -3158,9 +3141,6 @@ var com;
|
|
|
3158
3141
|
case 10:
|
|
3159
3142
|
message.phoneNumber = reader.readString();
|
|
3160
3143
|
break;
|
|
3161
|
-
case 11:
|
|
3162
|
-
message.terminal = reader.readString();
|
|
3163
|
-
break;
|
|
3164
3144
|
default: reader.skipField();
|
|
3165
3145
|
}
|
|
3166
3146
|
}
|
package/business/business.js
CHANGED
|
@@ -231,146 +231,6 @@ var com;
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
business.PaginatedRequest = PaginatedRequest;
|
|
234
|
-
class Pagination extends pb_1.Message {
|
|
235
|
-
#one_of_decls = [];
|
|
236
|
-
constructor(data) {
|
|
237
|
-
super();
|
|
238
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
239
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
240
|
-
if ("page" in data && data.page != undefined) {
|
|
241
|
-
this.page = data.page;
|
|
242
|
-
}
|
|
243
|
-
if ("limit" in data && data.limit != undefined) {
|
|
244
|
-
this.limit = data.limit;
|
|
245
|
-
}
|
|
246
|
-
if ("total" in data && data.total != undefined) {
|
|
247
|
-
this.total = data.total;
|
|
248
|
-
}
|
|
249
|
-
if ("hasNext" in data && data.hasNext != undefined) {
|
|
250
|
-
this.hasNext = data.hasNext;
|
|
251
|
-
}
|
|
252
|
-
if ("hasPrev" in data && data.hasPrev != undefined) {
|
|
253
|
-
this.hasPrev = data.hasPrev;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
get page() {
|
|
258
|
-
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
259
|
-
}
|
|
260
|
-
set page(value) {
|
|
261
|
-
pb_1.Message.setField(this, 1, value);
|
|
262
|
-
}
|
|
263
|
-
get limit() {
|
|
264
|
-
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
265
|
-
}
|
|
266
|
-
set limit(value) {
|
|
267
|
-
pb_1.Message.setField(this, 2, value);
|
|
268
|
-
}
|
|
269
|
-
get total() {
|
|
270
|
-
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
271
|
-
}
|
|
272
|
-
set total(value) {
|
|
273
|
-
pb_1.Message.setField(this, 3, value);
|
|
274
|
-
}
|
|
275
|
-
get hasNext() {
|
|
276
|
-
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
277
|
-
}
|
|
278
|
-
set hasNext(value) {
|
|
279
|
-
pb_1.Message.setField(this, 4, value);
|
|
280
|
-
}
|
|
281
|
-
get hasPrev() {
|
|
282
|
-
return pb_1.Message.getFieldWithDefault(this, 5, false);
|
|
283
|
-
}
|
|
284
|
-
set hasPrev(value) {
|
|
285
|
-
pb_1.Message.setField(this, 5, value);
|
|
286
|
-
}
|
|
287
|
-
static fromObject(data) {
|
|
288
|
-
const message = new Pagination({});
|
|
289
|
-
if (data.page != null) {
|
|
290
|
-
message.page = data.page;
|
|
291
|
-
}
|
|
292
|
-
if (data.limit != null) {
|
|
293
|
-
message.limit = data.limit;
|
|
294
|
-
}
|
|
295
|
-
if (data.total != null) {
|
|
296
|
-
message.total = data.total;
|
|
297
|
-
}
|
|
298
|
-
if (data.hasNext != null) {
|
|
299
|
-
message.hasNext = data.hasNext;
|
|
300
|
-
}
|
|
301
|
-
if (data.hasPrev != null) {
|
|
302
|
-
message.hasPrev = data.hasPrev;
|
|
303
|
-
}
|
|
304
|
-
return message;
|
|
305
|
-
}
|
|
306
|
-
toObject() {
|
|
307
|
-
const data = {};
|
|
308
|
-
if (this.page != null) {
|
|
309
|
-
data.page = this.page;
|
|
310
|
-
}
|
|
311
|
-
if (this.limit != null) {
|
|
312
|
-
data.limit = this.limit;
|
|
313
|
-
}
|
|
314
|
-
if (this.total != null) {
|
|
315
|
-
data.total = this.total;
|
|
316
|
-
}
|
|
317
|
-
if (this.hasNext != null) {
|
|
318
|
-
data.hasNext = this.hasNext;
|
|
319
|
-
}
|
|
320
|
-
if (this.hasPrev != null) {
|
|
321
|
-
data.hasPrev = this.hasPrev;
|
|
322
|
-
}
|
|
323
|
-
return data;
|
|
324
|
-
}
|
|
325
|
-
serialize(w) {
|
|
326
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
327
|
-
if (this.page != 0)
|
|
328
|
-
writer.writeUint32(1, this.page);
|
|
329
|
-
if (this.limit != 0)
|
|
330
|
-
writer.writeUint32(2, this.limit);
|
|
331
|
-
if (this.total != 0)
|
|
332
|
-
writer.writeUint32(3, this.total);
|
|
333
|
-
if (this.hasNext != false)
|
|
334
|
-
writer.writeBool(4, this.hasNext);
|
|
335
|
-
if (this.hasPrev != false)
|
|
336
|
-
writer.writeBool(5, this.hasPrev);
|
|
337
|
-
if (!w)
|
|
338
|
-
return writer.getResultBuffer();
|
|
339
|
-
}
|
|
340
|
-
static deserialize(bytes) {
|
|
341
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Pagination();
|
|
342
|
-
while (reader.nextField()) {
|
|
343
|
-
if (reader.isEndGroup())
|
|
344
|
-
break;
|
|
345
|
-
switch (reader.getFieldNumber()) {
|
|
346
|
-
case 1:
|
|
347
|
-
message.page = reader.readUint32();
|
|
348
|
-
break;
|
|
349
|
-
case 2:
|
|
350
|
-
message.limit = reader.readUint32();
|
|
351
|
-
break;
|
|
352
|
-
case 3:
|
|
353
|
-
message.total = reader.readUint32();
|
|
354
|
-
break;
|
|
355
|
-
case 4:
|
|
356
|
-
message.hasNext = reader.readBool();
|
|
357
|
-
break;
|
|
358
|
-
case 5:
|
|
359
|
-
message.hasPrev = reader.readBool();
|
|
360
|
-
break;
|
|
361
|
-
default: reader.skipField();
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return message;
|
|
365
|
-
}
|
|
366
|
-
serializeBinary() {
|
|
367
|
-
return this.serialize();
|
|
368
|
-
}
|
|
369
|
-
static deserializeBinary(bytes) {
|
|
370
|
-
return Pagination.deserialize(bytes);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
business.Pagination = Pagination;
|
|
374
234
|
class PaginationInfo extends pb_1.Message {
|
|
375
235
|
#one_of_decls = [];
|
|
376
236
|
constructor(data) {
|
|
@@ -3560,7 +3420,7 @@ var com;
|
|
|
3560
3420
|
#one_of_decls = [];
|
|
3561
3421
|
constructor(data) {
|
|
3562
3422
|
super();
|
|
3563
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3,
|
|
3423
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 6], this.#one_of_decls);
|
|
3564
3424
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
3565
3425
|
if ("success" in data && data.success != undefined) {
|
|
3566
3426
|
this.success = data.success;
|
|
@@ -3577,9 +3437,6 @@ var com;
|
|
|
3577
3437
|
if ("message" in data && data.message != undefined) {
|
|
3578
3438
|
this.message = data.message;
|
|
3579
3439
|
}
|
|
3580
|
-
if ("pagination" in data && data.pagination != undefined) {
|
|
3581
|
-
this.pagination = data.pagination;
|
|
3582
|
-
}
|
|
3583
3440
|
if ("errors" in data && data.errors != undefined) {
|
|
3584
3441
|
this.errors = data.errors;
|
|
3585
3442
|
}
|
|
@@ -3615,20 +3472,11 @@ var com;
|
|
|
3615
3472
|
set message(value) {
|
|
3616
3473
|
pb_1.Message.setField(this, 5, value);
|
|
3617
3474
|
}
|
|
3618
|
-
get pagination() {
|
|
3619
|
-
return pb_1.Message.getWrapperField(this, Pagination, 6);
|
|
3620
|
-
}
|
|
3621
|
-
set pagination(value) {
|
|
3622
|
-
pb_1.Message.setWrapperField(this, 6, value);
|
|
3623
|
-
}
|
|
3624
|
-
get hasPagination() {
|
|
3625
|
-
return pb_1.Message.getField(this, 6) != null;
|
|
3626
|
-
}
|
|
3627
3475
|
get errors() {
|
|
3628
|
-
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors,
|
|
3476
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 6);
|
|
3629
3477
|
}
|
|
3630
3478
|
set errors(value) {
|
|
3631
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
3479
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
3632
3480
|
}
|
|
3633
3481
|
static fromObject(data) {
|
|
3634
3482
|
const message = new MBusinessDataResponse({});
|
|
@@ -3647,9 +3495,6 @@ var com;
|
|
|
3647
3495
|
if (data.message != null) {
|
|
3648
3496
|
message.message = data.message;
|
|
3649
3497
|
}
|
|
3650
|
-
if (data.pagination != null) {
|
|
3651
|
-
message.pagination = Pagination.fromObject(data.pagination);
|
|
3652
|
-
}
|
|
3653
3498
|
if (data.errors != null) {
|
|
3654
3499
|
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3655
3500
|
}
|
|
@@ -3672,9 +3517,6 @@ var com;
|
|
|
3672
3517
|
if (this.message != null) {
|
|
3673
3518
|
data.message = this.message;
|
|
3674
3519
|
}
|
|
3675
|
-
if (this.pagination != null) {
|
|
3676
|
-
data.pagination = this.pagination.toObject();
|
|
3677
|
-
}
|
|
3678
3520
|
if (this.errors != null) {
|
|
3679
3521
|
data.errors = this.errors.map((item) => item.toObject());
|
|
3680
3522
|
}
|
|
@@ -3692,10 +3534,8 @@ var com;
|
|
|
3692
3534
|
writer.writeString(4, this.error);
|
|
3693
3535
|
if (this.message.length)
|
|
3694
3536
|
writer.writeString(5, this.message);
|
|
3695
|
-
if (this.hasPagination)
|
|
3696
|
-
writer.writeMessage(6, this.pagination, () => this.pagination.serialize(writer));
|
|
3697
3537
|
if (this.errors.length)
|
|
3698
|
-
writer.writeRepeatedMessage(
|
|
3538
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
3699
3539
|
if (!w)
|
|
3700
3540
|
return writer.getResultBuffer();
|
|
3701
3541
|
}
|
|
@@ -3721,10 +3561,7 @@ var com;
|
|
|
3721
3561
|
message.message = reader.readString();
|
|
3722
3562
|
break;
|
|
3723
3563
|
case 6:
|
|
3724
|
-
reader.readMessage(message.
|
|
3725
|
-
break;
|
|
3726
|
-
case 7:
|
|
3727
|
-
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3564
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3728
3565
|
break;
|
|
3729
3566
|
default: reader.skipField();
|
|
3730
3567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@technova-tech/olive-proto-lib",
|
|
3
|
-
"description": "Proto Library",
|
|
3
|
+
"description": "Olive MFB Proto Library",
|
|
4
4
|
"author": "Technova Technologies",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"compile": "tsc -p tsconfig.json"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"version": "1.7.
|
|
14
|
+
"version": "1.7.1",
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/google-protobuf": "^3.15.12",
|
|
17
17
|
"protoc-gen-ts": "^0.8.7",
|
package/pos.v1/terminals.js
CHANGED
|
@@ -3327,9 +3327,6 @@ var com;
|
|
|
3327
3327
|
if ("limit" in data && data.limit != undefined) {
|
|
3328
3328
|
this.limit = data.limit;
|
|
3329
3329
|
}
|
|
3330
|
-
if ("search" in data && data.search != undefined) {
|
|
3331
|
-
this.search = data.search;
|
|
3332
|
-
}
|
|
3333
3330
|
}
|
|
3334
3331
|
}
|
|
3335
3332
|
get terminalTypeId() {
|
|
@@ -3356,12 +3353,6 @@ var com;
|
|
|
3356
3353
|
set limit(value) {
|
|
3357
3354
|
pb_1.Message.setField(this, 4, value);
|
|
3358
3355
|
}
|
|
3359
|
-
get search() {
|
|
3360
|
-
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
3361
|
-
}
|
|
3362
|
-
set search(value) {
|
|
3363
|
-
pb_1.Message.setField(this, 5, value);
|
|
3364
|
-
}
|
|
3365
3356
|
static fromObject(data) {
|
|
3366
3357
|
const message = new GetAvailableTerminalsRequest({});
|
|
3367
3358
|
if (data.terminalTypeId != null) {
|
|
@@ -3376,9 +3367,6 @@ var com;
|
|
|
3376
3367
|
if (data.limit != null) {
|
|
3377
3368
|
message.limit = data.limit;
|
|
3378
3369
|
}
|
|
3379
|
-
if (data.search != null) {
|
|
3380
|
-
message.search = data.search;
|
|
3381
|
-
}
|
|
3382
3370
|
return message;
|
|
3383
3371
|
}
|
|
3384
3372
|
toObject() {
|
|
@@ -3395,9 +3383,6 @@ var com;
|
|
|
3395
3383
|
if (this.limit != null) {
|
|
3396
3384
|
data.limit = this.limit;
|
|
3397
3385
|
}
|
|
3398
|
-
if (this.search != null) {
|
|
3399
|
-
data.search = this.search;
|
|
3400
|
-
}
|
|
3401
3386
|
return data;
|
|
3402
3387
|
}
|
|
3403
3388
|
serialize(w) {
|
|
@@ -3410,8 +3395,6 @@ var com;
|
|
|
3410
3395
|
writer.writeInt32(3, this.page);
|
|
3411
3396
|
if (this.limit != 0)
|
|
3412
3397
|
writer.writeInt32(4, this.limit);
|
|
3413
|
-
if (this.search.length)
|
|
3414
|
-
writer.writeString(5, this.search);
|
|
3415
3398
|
if (!w)
|
|
3416
3399
|
return writer.getResultBuffer();
|
|
3417
3400
|
}
|
|
@@ -3433,9 +3416,6 @@ var com;
|
|
|
3433
3416
|
case 4:
|
|
3434
3417
|
message.limit = reader.readInt32();
|
|
3435
3418
|
break;
|
|
3436
|
-
case 5:
|
|
3437
|
-
message.search = reader.readString();
|
|
3438
|
-
break;
|
|
3439
3419
|
default: reader.skipField();
|
|
3440
3420
|
}
|
|
3441
3421
|
}
|
|
@@ -22618,12 +22598,6 @@ var com;
|
|
|
22618
22598
|
if ("limit" in data && data.limit != undefined) {
|
|
22619
22599
|
this.limit = data.limit;
|
|
22620
22600
|
}
|
|
22621
|
-
if ("from" in data && data.from != undefined) {
|
|
22622
|
-
this.from = data.from;
|
|
22623
|
-
}
|
|
22624
|
-
if ("to" in data && data.to != undefined) {
|
|
22625
|
-
this.to = data.to;
|
|
22626
|
-
}
|
|
22627
22601
|
}
|
|
22628
22602
|
}
|
|
22629
22603
|
get terminalInstanceId() {
|
|
@@ -22662,18 +22636,6 @@ var com;
|
|
|
22662
22636
|
set limit(value) {
|
|
22663
22637
|
pb_1.Message.setField(this, 6, value);
|
|
22664
22638
|
}
|
|
22665
|
-
get from() {
|
|
22666
|
-
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
22667
|
-
}
|
|
22668
|
-
set from(value) {
|
|
22669
|
-
pb_1.Message.setField(this, 7, value);
|
|
22670
|
-
}
|
|
22671
|
-
get to() {
|
|
22672
|
-
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
22673
|
-
}
|
|
22674
|
-
set to(value) {
|
|
22675
|
-
pb_1.Message.setField(this, 8, value);
|
|
22676
|
-
}
|
|
22677
22639
|
static fromObject(data) {
|
|
22678
22640
|
const message = new TerminalFilterRequest({});
|
|
22679
22641
|
if (data.terminalInstanceId != null) {
|
|
@@ -22694,12 +22656,6 @@ var com;
|
|
|
22694
22656
|
if (data.limit != null) {
|
|
22695
22657
|
message.limit = data.limit;
|
|
22696
22658
|
}
|
|
22697
|
-
if (data.from != null) {
|
|
22698
|
-
message.from = data.from;
|
|
22699
|
-
}
|
|
22700
|
-
if (data.to != null) {
|
|
22701
|
-
message.to = data.to;
|
|
22702
|
-
}
|
|
22703
22659
|
return message;
|
|
22704
22660
|
}
|
|
22705
22661
|
toObject() {
|
|
@@ -22722,12 +22678,6 @@ var com;
|
|
|
22722
22678
|
if (this.limit != null) {
|
|
22723
22679
|
data.limit = this.limit;
|
|
22724
22680
|
}
|
|
22725
|
-
if (this.from != null) {
|
|
22726
|
-
data.from = this.from;
|
|
22727
|
-
}
|
|
22728
|
-
if (this.to != null) {
|
|
22729
|
-
data.to = this.to;
|
|
22730
|
-
}
|
|
22731
22681
|
return data;
|
|
22732
22682
|
}
|
|
22733
22683
|
serialize(w) {
|
|
@@ -22744,10 +22694,6 @@ var com;
|
|
|
22744
22694
|
writer.writeString(5, this.page);
|
|
22745
22695
|
if (this.limit.length)
|
|
22746
22696
|
writer.writeString(6, this.limit);
|
|
22747
|
-
if (this.from.length)
|
|
22748
|
-
writer.writeString(7, this.from);
|
|
22749
|
-
if (this.to.length)
|
|
22750
|
-
writer.writeString(8, this.to);
|
|
22751
22697
|
if (!w)
|
|
22752
22698
|
return writer.getResultBuffer();
|
|
22753
22699
|
}
|
|
@@ -22775,12 +22721,6 @@ var com;
|
|
|
22775
22721
|
case 6:
|
|
22776
22722
|
message.limit = reader.readString();
|
|
22777
22723
|
break;
|
|
22778
|
-
case 7:
|
|
22779
|
-
message.from = reader.readString();
|
|
22780
|
-
break;
|
|
22781
|
-
case 8:
|
|
22782
|
-
message.to = reader.readString();
|
|
22783
|
-
break;
|
|
22784
22724
|
default: reader.skipField();
|
|
22785
22725
|
}
|
|
22786
22726
|
}
|
|
@@ -908,7 +908,6 @@ export declare namespace com.pkg.account {
|
|
|
908
908
|
bvn?: string;
|
|
909
909
|
nin?: string;
|
|
910
910
|
phoneNumber?: string;
|
|
911
|
-
terminal?: string;
|
|
912
911
|
});
|
|
913
912
|
get user(): string;
|
|
914
913
|
set user(value: string);
|
|
@@ -930,8 +929,6 @@ export declare namespace com.pkg.account {
|
|
|
930
929
|
set nin(value: string);
|
|
931
930
|
get phoneNumber(): string;
|
|
932
931
|
set phoneNumber(value: string);
|
|
933
|
-
get terminal(): string;
|
|
934
|
-
set terminal(value: string);
|
|
935
932
|
static fromObject(data: {
|
|
936
933
|
user?: string;
|
|
937
934
|
terminalId?: string;
|
|
@@ -943,7 +940,6 @@ export declare namespace com.pkg.account {
|
|
|
943
940
|
bvn?: string;
|
|
944
941
|
nin?: string;
|
|
945
942
|
phoneNumber?: string;
|
|
946
|
-
terminal?: string;
|
|
947
943
|
}): AssignOrCreateTerminalVirtualAccountRequest;
|
|
948
944
|
toObject(): {
|
|
949
945
|
user?: string | undefined;
|
|
@@ -956,7 +952,6 @@ export declare namespace com.pkg.account {
|
|
|
956
952
|
bvn?: string | undefined;
|
|
957
953
|
nin?: string | undefined;
|
|
958
954
|
phoneNumber?: string | undefined;
|
|
959
|
-
terminal?: string | undefined;
|
|
960
955
|
};
|
|
961
956
|
serialize(): Uint8Array;
|
|
962
957
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -61,45 +61,6 @@ export declare namespace com.pkg.business {
|
|
|
61
61
|
serializeBinary(): Uint8Array;
|
|
62
62
|
static deserializeBinary(bytes: Uint8Array): PaginatedRequest;
|
|
63
63
|
}
|
|
64
|
-
export class Pagination extends pb_1.Message {
|
|
65
|
-
#private;
|
|
66
|
-
constructor(data?: any[] | {
|
|
67
|
-
page?: number;
|
|
68
|
-
limit?: number;
|
|
69
|
-
total?: number;
|
|
70
|
-
hasNext?: boolean;
|
|
71
|
-
hasPrev?: boolean;
|
|
72
|
-
});
|
|
73
|
-
get page(): number;
|
|
74
|
-
set page(value: number);
|
|
75
|
-
get limit(): number;
|
|
76
|
-
set limit(value: number);
|
|
77
|
-
get total(): number;
|
|
78
|
-
set total(value: number);
|
|
79
|
-
get hasNext(): boolean;
|
|
80
|
-
set hasNext(value: boolean);
|
|
81
|
-
get hasPrev(): boolean;
|
|
82
|
-
set hasPrev(value: boolean);
|
|
83
|
-
static fromObject(data: {
|
|
84
|
-
page?: number;
|
|
85
|
-
limit?: number;
|
|
86
|
-
total?: number;
|
|
87
|
-
hasNext?: boolean;
|
|
88
|
-
hasPrev?: boolean;
|
|
89
|
-
}): Pagination;
|
|
90
|
-
toObject(): {
|
|
91
|
-
page?: number | undefined;
|
|
92
|
-
limit?: number | undefined;
|
|
93
|
-
total?: number | undefined;
|
|
94
|
-
hasNext?: boolean | undefined;
|
|
95
|
-
hasPrev?: boolean | undefined;
|
|
96
|
-
};
|
|
97
|
-
serialize(): Uint8Array;
|
|
98
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
99
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Pagination;
|
|
100
|
-
serializeBinary(): Uint8Array;
|
|
101
|
-
static deserializeBinary(bytes: Uint8Array): Pagination;
|
|
102
|
-
}
|
|
103
64
|
export class PaginationInfo extends pb_1.Message {
|
|
104
65
|
#private;
|
|
105
66
|
constructor(data?: any[] | {
|
|
@@ -1197,7 +1158,6 @@ export declare namespace com.pkg.business {
|
|
|
1197
1158
|
data?: BusinessData[];
|
|
1198
1159
|
error?: string;
|
|
1199
1160
|
message?: string;
|
|
1200
|
-
pagination?: Pagination;
|
|
1201
1161
|
errors?: ValidationErrors[];
|
|
1202
1162
|
});
|
|
1203
1163
|
get success(): boolean;
|
|
@@ -1210,9 +1170,6 @@ export declare namespace com.pkg.business {
|
|
|
1210
1170
|
set error(value: string);
|
|
1211
1171
|
get message(): string;
|
|
1212
1172
|
set message(value: string);
|
|
1213
|
-
get pagination(): Pagination;
|
|
1214
|
-
set pagination(value: Pagination);
|
|
1215
|
-
get hasPagination(): boolean;
|
|
1216
1173
|
get errors(): ValidationErrors[];
|
|
1217
1174
|
set errors(value: ValidationErrors[]);
|
|
1218
1175
|
static fromObject(data: {
|
|
@@ -1221,7 +1178,6 @@ export declare namespace com.pkg.business {
|
|
|
1221
1178
|
data?: ReturnType<typeof BusinessData.prototype.toObject>[];
|
|
1222
1179
|
error?: string;
|
|
1223
1180
|
message?: string;
|
|
1224
|
-
pagination?: ReturnType<typeof Pagination.prototype.toObject>;
|
|
1225
1181
|
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
1226
1182
|
}): MBusinessDataResponse;
|
|
1227
1183
|
toObject(): {
|
|
@@ -1263,13 +1219,6 @@ export declare namespace com.pkg.business {
|
|
|
1263
1219
|
}[] | undefined;
|
|
1264
1220
|
error?: string | undefined;
|
|
1265
1221
|
message?: string | undefined;
|
|
1266
|
-
pagination?: {
|
|
1267
|
-
page?: number | undefined;
|
|
1268
|
-
limit?: number | undefined;
|
|
1269
|
-
total?: number | undefined;
|
|
1270
|
-
hasNext?: boolean | undefined;
|
|
1271
|
-
hasPrev?: boolean | undefined;
|
|
1272
|
-
} | undefined;
|
|
1273
1222
|
errors?: {
|
|
1274
1223
|
field?: string | undefined;
|
|
1275
1224
|
message?: string | undefined;
|
package/types/index.d.ts
CHANGED
|
@@ -1,41 +1,23 @@
|
|
|
1
|
-
import { com as account } from './accounts/accounts';
|
|
2
|
-
import { com as admin } from './admin/admin';
|
|
3
|
-
import { com as user } from './users/users';
|
|
4
|
-
import { com as verification } from './verifications/verifications';
|
|
5
|
-
import { com as bills } from './bills/bills';
|
|
6
|
-
import { com as image } from './image/recognition';
|
|
7
|
-
import { com as storage } from './storage/storage';
|
|
8
|
-
import { com as transfer } from './transfer/transfer';
|
|
9
|
-
import { com as business } from './business/business';
|
|
10
|
-
import { com as pos_transactions } from './pos/transactions';
|
|
11
|
-
import { com as pov1Transaction } from './pos.v1/transactions';
|
|
12
|
-
import { com as pov1Auth } from './pos.v1/auth';
|
|
13
|
-
import { com as pov1Merchants } from './pos.v1/merchants';
|
|
14
|
-
import { com as pov1Eod } from './pos.v1/eod';
|
|
15
|
-
import { com as pov1TerminalTypes } from './pos.v1/terminal-types';
|
|
16
|
-
import { com as pov1TerminalTransactions } from './pos.v1/terminal-transactions';
|
|
17
|
-
import { com as pov1TerminalCardTransactions } from './pos.v1/card-transactions';
|
|
18
|
-
import { com as pov1Terminals } from './pos.v1/terminals';
|
|
19
1
|
declare const proto: {
|
|
20
2
|
import: {
|
|
21
|
-
admin:
|
|
22
|
-
account:
|
|
23
|
-
user:
|
|
24
|
-
verification:
|
|
25
|
-
bills:
|
|
26
|
-
image:
|
|
27
|
-
storage:
|
|
28
|
-
transfer:
|
|
29
|
-
business:
|
|
30
|
-
pos_transactions:
|
|
31
|
-
pov1Transaction:
|
|
32
|
-
pov1Auth:
|
|
33
|
-
pov1Merchants:
|
|
34
|
-
pov1Eod:
|
|
35
|
-
pov1TerminalTypes:
|
|
36
|
-
pov1Terminals:
|
|
37
|
-
pov1TerminalTransactions:
|
|
38
|
-
pov1TerminalCardTransactions:
|
|
3
|
+
admin: any;
|
|
4
|
+
account: any;
|
|
5
|
+
user: any;
|
|
6
|
+
verification: any;
|
|
7
|
+
bills: any;
|
|
8
|
+
image: any;
|
|
9
|
+
storage: any;
|
|
10
|
+
transfer: any;
|
|
11
|
+
business: any;
|
|
12
|
+
pos_transactions: any;
|
|
13
|
+
pov1Transaction: any;
|
|
14
|
+
pov1Auth: any;
|
|
15
|
+
pov1Merchants: any;
|
|
16
|
+
pov1Eod: any;
|
|
17
|
+
pov1TerminalTypes: any;
|
|
18
|
+
pov1Terminals: any;
|
|
19
|
+
pov1TerminalTransactions: any;
|
|
20
|
+
pov1TerminalCardTransactions: any;
|
|
39
21
|
};
|
|
40
22
|
};
|
|
41
23
|
export { proto };
|
|
@@ -1224,7 +1224,6 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1224
1224
|
location?: string;
|
|
1225
1225
|
page?: number;
|
|
1226
1226
|
limit?: number;
|
|
1227
|
-
search?: string;
|
|
1228
1227
|
});
|
|
1229
1228
|
get terminalTypeId(): string;
|
|
1230
1229
|
set terminalTypeId(value: string);
|
|
@@ -1234,21 +1233,17 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1234
1233
|
set page(value: number);
|
|
1235
1234
|
get limit(): number;
|
|
1236
1235
|
set limit(value: number);
|
|
1237
|
-
get search(): string;
|
|
1238
|
-
set search(value: string);
|
|
1239
1236
|
static fromObject(data: {
|
|
1240
1237
|
terminalTypeId?: string;
|
|
1241
1238
|
location?: string;
|
|
1242
1239
|
page?: number;
|
|
1243
1240
|
limit?: number;
|
|
1244
|
-
search?: string;
|
|
1245
1241
|
}): GetAvailableTerminalsRequest;
|
|
1246
1242
|
toObject(): {
|
|
1247
1243
|
terminalTypeId?: string | undefined;
|
|
1248
1244
|
location?: string | undefined;
|
|
1249
1245
|
page?: number | undefined;
|
|
1250
1246
|
limit?: number | undefined;
|
|
1251
|
-
search?: string | undefined;
|
|
1252
1247
|
};
|
|
1253
1248
|
serialize(): Uint8Array;
|
|
1254
1249
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -7658,8 +7653,6 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7658
7653
|
status?: string;
|
|
7659
7654
|
page?: string;
|
|
7660
7655
|
limit?: string;
|
|
7661
|
-
from?: string;
|
|
7662
|
-
to?: string;
|
|
7663
7656
|
});
|
|
7664
7657
|
get terminalInstanceId(): string;
|
|
7665
7658
|
set terminalInstanceId(value: string);
|
|
@@ -7673,10 +7666,6 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7673
7666
|
set page(value: string);
|
|
7674
7667
|
get limit(): string;
|
|
7675
7668
|
set limit(value: string);
|
|
7676
|
-
get from(): string;
|
|
7677
|
-
set from(value: string);
|
|
7678
|
-
get to(): string;
|
|
7679
|
-
set to(value: string);
|
|
7680
7669
|
static fromObject(data: {
|
|
7681
7670
|
terminalInstanceId?: string;
|
|
7682
7671
|
outlet?: string;
|
|
@@ -7684,8 +7673,6 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7684
7673
|
status?: string;
|
|
7685
7674
|
page?: string;
|
|
7686
7675
|
limit?: string;
|
|
7687
|
-
from?: string;
|
|
7688
|
-
to?: string;
|
|
7689
7676
|
}): TerminalFilterRequest;
|
|
7690
7677
|
toObject(): {
|
|
7691
7678
|
terminalInstanceId?: string | undefined;
|
|
@@ -7694,8 +7681,6 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7694
7681
|
status?: string | undefined;
|
|
7695
7682
|
page?: string | undefined;
|
|
7696
7683
|
limit?: string | undefined;
|
|
7697
|
-
from?: string | undefined;
|
|
7698
|
-
to?: string | undefined;
|
|
7699
7684
|
};
|
|
7700
7685
|
serialize(): Uint8Array;
|
|
7701
7686
|
serialize(w: pb_1.BinaryWriter): void;
|