@technova-tech/olive-proto-lib 1.7.2 → 1.7.4
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/pos.v1/terminals.js +102 -1
- package/terminal/terminal.js +60 -0
- package/types/pos.v1/terminals.d.ts +31 -3
- package/types/terminal/terminal.d.ts +15 -0
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -3330,6 +3330,12 @@ var com;
|
|
|
3330
3330
|
if ("search" in data && data.search != undefined) {
|
|
3331
3331
|
this.search = data.search;
|
|
3332
3332
|
}
|
|
3333
|
+
if ("from" in data && data.from != undefined) {
|
|
3334
|
+
this.from = data.from;
|
|
3335
|
+
}
|
|
3336
|
+
if ("to" in data && data.to != undefined) {
|
|
3337
|
+
this.to = data.to;
|
|
3338
|
+
}
|
|
3333
3339
|
}
|
|
3334
3340
|
}
|
|
3335
3341
|
get terminalTypeId() {
|
|
@@ -3362,6 +3368,18 @@ var com;
|
|
|
3362
3368
|
set search(value) {
|
|
3363
3369
|
pb_1.Message.setField(this, 5, value);
|
|
3364
3370
|
}
|
|
3371
|
+
get from() {
|
|
3372
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
3373
|
+
}
|
|
3374
|
+
set from(value) {
|
|
3375
|
+
pb_1.Message.setField(this, 6, value);
|
|
3376
|
+
}
|
|
3377
|
+
get to() {
|
|
3378
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
3379
|
+
}
|
|
3380
|
+
set to(value) {
|
|
3381
|
+
pb_1.Message.setField(this, 7, value);
|
|
3382
|
+
}
|
|
3365
3383
|
static fromObject(data) {
|
|
3366
3384
|
const message = new GetAvailableTerminalsRequest({});
|
|
3367
3385
|
if (data.terminalTypeId != null) {
|
|
@@ -3379,6 +3397,12 @@ var com;
|
|
|
3379
3397
|
if (data.search != null) {
|
|
3380
3398
|
message.search = data.search;
|
|
3381
3399
|
}
|
|
3400
|
+
if (data.from != null) {
|
|
3401
|
+
message.from = data.from;
|
|
3402
|
+
}
|
|
3403
|
+
if (data.to != null) {
|
|
3404
|
+
message.to = data.to;
|
|
3405
|
+
}
|
|
3382
3406
|
return message;
|
|
3383
3407
|
}
|
|
3384
3408
|
toObject() {
|
|
@@ -3398,6 +3422,12 @@ var com;
|
|
|
3398
3422
|
if (this.search != null) {
|
|
3399
3423
|
data.search = this.search;
|
|
3400
3424
|
}
|
|
3425
|
+
if (this.from != null) {
|
|
3426
|
+
data.from = this.from;
|
|
3427
|
+
}
|
|
3428
|
+
if (this.to != null) {
|
|
3429
|
+
data.to = this.to;
|
|
3430
|
+
}
|
|
3401
3431
|
return data;
|
|
3402
3432
|
}
|
|
3403
3433
|
serialize(w) {
|
|
@@ -3412,6 +3442,10 @@ var com;
|
|
|
3412
3442
|
writer.writeInt32(4, this.limit);
|
|
3413
3443
|
if (this.search.length)
|
|
3414
3444
|
writer.writeString(5, this.search);
|
|
3445
|
+
if (this.from.length)
|
|
3446
|
+
writer.writeString(6, this.from);
|
|
3447
|
+
if (this.to.length)
|
|
3448
|
+
writer.writeString(7, this.to);
|
|
3415
3449
|
if (!w)
|
|
3416
3450
|
return writer.getResultBuffer();
|
|
3417
3451
|
}
|
|
@@ -3436,6 +3470,12 @@ var com;
|
|
|
3436
3470
|
case 5:
|
|
3437
3471
|
message.search = reader.readString();
|
|
3438
3472
|
break;
|
|
3473
|
+
case 6:
|
|
3474
|
+
message.from = reader.readString();
|
|
3475
|
+
break;
|
|
3476
|
+
case 7:
|
|
3477
|
+
message.to = reader.readString();
|
|
3478
|
+
break;
|
|
3439
3479
|
default: reader.skipField();
|
|
3440
3480
|
}
|
|
3441
3481
|
}
|
|
@@ -14011,18 +14051,70 @@ var com;
|
|
|
14011
14051
|
constructor(data) {
|
|
14012
14052
|
super();
|
|
14013
14053
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
14014
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
14054
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
14055
|
+
if ("from" in data && data.from != undefined) {
|
|
14056
|
+
this.from = data.from;
|
|
14057
|
+
}
|
|
14058
|
+
if ("to" in data && data.to != undefined) {
|
|
14059
|
+
this.to = data.to;
|
|
14060
|
+
}
|
|
14061
|
+
if ("duration" in data && data.duration != undefined) {
|
|
14062
|
+
this.duration = data.duration;
|
|
14063
|
+
}
|
|
14064
|
+
}
|
|
14065
|
+
}
|
|
14066
|
+
get from() {
|
|
14067
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
14068
|
+
}
|
|
14069
|
+
set from(value) {
|
|
14070
|
+
pb_1.Message.setField(this, 1, value);
|
|
14071
|
+
}
|
|
14072
|
+
get to() {
|
|
14073
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
14074
|
+
}
|
|
14075
|
+
set to(value) {
|
|
14076
|
+
pb_1.Message.setField(this, 2, value);
|
|
14077
|
+
}
|
|
14078
|
+
get duration() {
|
|
14079
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
14080
|
+
}
|
|
14081
|
+
set duration(value) {
|
|
14082
|
+
pb_1.Message.setField(this, 3, value);
|
|
14015
14083
|
}
|
|
14016
14084
|
static fromObject(data) {
|
|
14017
14085
|
const message = new GetDashboardStatisticsRequest({});
|
|
14086
|
+
if (data.from != null) {
|
|
14087
|
+
message.from = data.from;
|
|
14088
|
+
}
|
|
14089
|
+
if (data.to != null) {
|
|
14090
|
+
message.to = data.to;
|
|
14091
|
+
}
|
|
14092
|
+
if (data.duration != null) {
|
|
14093
|
+
message.duration = data.duration;
|
|
14094
|
+
}
|
|
14018
14095
|
return message;
|
|
14019
14096
|
}
|
|
14020
14097
|
toObject() {
|
|
14021
14098
|
const data = {};
|
|
14099
|
+
if (this.from != null) {
|
|
14100
|
+
data.from = this.from;
|
|
14101
|
+
}
|
|
14102
|
+
if (this.to != null) {
|
|
14103
|
+
data.to = this.to;
|
|
14104
|
+
}
|
|
14105
|
+
if (this.duration != null) {
|
|
14106
|
+
data.duration = this.duration;
|
|
14107
|
+
}
|
|
14022
14108
|
return data;
|
|
14023
14109
|
}
|
|
14024
14110
|
serialize(w) {
|
|
14025
14111
|
const writer = w || new pb_1.BinaryWriter();
|
|
14112
|
+
if (this.from.length)
|
|
14113
|
+
writer.writeString(1, this.from);
|
|
14114
|
+
if (this.to.length)
|
|
14115
|
+
writer.writeString(2, this.to);
|
|
14116
|
+
if (this.duration.length)
|
|
14117
|
+
writer.writeString(3, this.duration);
|
|
14026
14118
|
if (!w)
|
|
14027
14119
|
return writer.getResultBuffer();
|
|
14028
14120
|
}
|
|
@@ -14032,6 +14124,15 @@ var com;
|
|
|
14032
14124
|
if (reader.isEndGroup())
|
|
14033
14125
|
break;
|
|
14034
14126
|
switch (reader.getFieldNumber()) {
|
|
14127
|
+
case 1:
|
|
14128
|
+
message.from = reader.readString();
|
|
14129
|
+
break;
|
|
14130
|
+
case 2:
|
|
14131
|
+
message.to = reader.readString();
|
|
14132
|
+
break;
|
|
14133
|
+
case 3:
|
|
14134
|
+
message.duration = reader.readString();
|
|
14135
|
+
break;
|
|
14035
14136
|
default: reader.skipField();
|
|
14036
14137
|
}
|
|
14037
14138
|
}
|
package/terminal/terminal.js
CHANGED
|
@@ -9268,6 +9268,15 @@ var com;
|
|
|
9268
9268
|
if ("limit" in data && data.limit != undefined) {
|
|
9269
9269
|
this.limit = data.limit;
|
|
9270
9270
|
}
|
|
9271
|
+
if ("search" in data && data.search != undefined) {
|
|
9272
|
+
this.search = data.search;
|
|
9273
|
+
}
|
|
9274
|
+
if ("from" in data && data.from != undefined) {
|
|
9275
|
+
this.from = data.from;
|
|
9276
|
+
}
|
|
9277
|
+
if ("to" in data && data.to != undefined) {
|
|
9278
|
+
this.to = data.to;
|
|
9279
|
+
}
|
|
9271
9280
|
}
|
|
9272
9281
|
}
|
|
9273
9282
|
get terminalTypeId() {
|
|
@@ -9288,6 +9297,24 @@ var com;
|
|
|
9288
9297
|
set limit(value) {
|
|
9289
9298
|
pb_1.Message.setField(this, 3, value);
|
|
9290
9299
|
}
|
|
9300
|
+
get search() {
|
|
9301
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
9302
|
+
}
|
|
9303
|
+
set search(value) {
|
|
9304
|
+
pb_1.Message.setField(this, 4, value);
|
|
9305
|
+
}
|
|
9306
|
+
get from() {
|
|
9307
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
9308
|
+
}
|
|
9309
|
+
set from(value) {
|
|
9310
|
+
pb_1.Message.setField(this, 5, value);
|
|
9311
|
+
}
|
|
9312
|
+
get to() {
|
|
9313
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
9314
|
+
}
|
|
9315
|
+
set to(value) {
|
|
9316
|
+
pb_1.Message.setField(this, 6, value);
|
|
9317
|
+
}
|
|
9291
9318
|
static fromObject(data) {
|
|
9292
9319
|
const message = new GetAvailableTerminalsRequest({});
|
|
9293
9320
|
if (data.terminalTypeId != null) {
|
|
@@ -9299,6 +9326,15 @@ var com;
|
|
|
9299
9326
|
if (data.limit != null) {
|
|
9300
9327
|
message.limit = data.limit;
|
|
9301
9328
|
}
|
|
9329
|
+
if (data.search != null) {
|
|
9330
|
+
message.search = data.search;
|
|
9331
|
+
}
|
|
9332
|
+
if (data.from != null) {
|
|
9333
|
+
message.from = data.from;
|
|
9334
|
+
}
|
|
9335
|
+
if (data.to != null) {
|
|
9336
|
+
message.to = data.to;
|
|
9337
|
+
}
|
|
9302
9338
|
return message;
|
|
9303
9339
|
}
|
|
9304
9340
|
toObject() {
|
|
@@ -9312,6 +9348,15 @@ var com;
|
|
|
9312
9348
|
if (this.limit != null) {
|
|
9313
9349
|
data.limit = this.limit;
|
|
9314
9350
|
}
|
|
9351
|
+
if (this.search != null) {
|
|
9352
|
+
data.search = this.search;
|
|
9353
|
+
}
|
|
9354
|
+
if (this.from != null) {
|
|
9355
|
+
data.from = this.from;
|
|
9356
|
+
}
|
|
9357
|
+
if (this.to != null) {
|
|
9358
|
+
data.to = this.to;
|
|
9359
|
+
}
|
|
9315
9360
|
return data;
|
|
9316
9361
|
}
|
|
9317
9362
|
serialize(w) {
|
|
@@ -9322,6 +9367,12 @@ var com;
|
|
|
9322
9367
|
writer.writeInt32(2, this.page);
|
|
9323
9368
|
if (this.limit != 0)
|
|
9324
9369
|
writer.writeInt32(3, this.limit);
|
|
9370
|
+
if (this.search.length)
|
|
9371
|
+
writer.writeString(4, this.search);
|
|
9372
|
+
if (this.from.length)
|
|
9373
|
+
writer.writeString(5, this.from);
|
|
9374
|
+
if (this.to.length)
|
|
9375
|
+
writer.writeString(6, this.to);
|
|
9325
9376
|
if (!w)
|
|
9326
9377
|
return writer.getResultBuffer();
|
|
9327
9378
|
}
|
|
@@ -9340,6 +9391,15 @@ var com;
|
|
|
9340
9391
|
case 3:
|
|
9341
9392
|
message.limit = reader.readInt32();
|
|
9342
9393
|
break;
|
|
9394
|
+
case 4:
|
|
9395
|
+
message.search = reader.readString();
|
|
9396
|
+
break;
|
|
9397
|
+
case 5:
|
|
9398
|
+
message.from = reader.readString();
|
|
9399
|
+
break;
|
|
9400
|
+
case 6:
|
|
9401
|
+
message.to = reader.readString();
|
|
9402
|
+
break;
|
|
9343
9403
|
default: reader.skipField();
|
|
9344
9404
|
}
|
|
9345
9405
|
}
|
|
@@ -1225,6 +1225,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1225
1225
|
page?: number;
|
|
1226
1226
|
limit?: number;
|
|
1227
1227
|
search?: string;
|
|
1228
|
+
from?: string;
|
|
1229
|
+
to?: string;
|
|
1228
1230
|
});
|
|
1229
1231
|
get terminalTypeId(): string;
|
|
1230
1232
|
set terminalTypeId(value: string);
|
|
@@ -1236,12 +1238,18 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1236
1238
|
set limit(value: number);
|
|
1237
1239
|
get search(): string;
|
|
1238
1240
|
set search(value: string);
|
|
1241
|
+
get from(): string;
|
|
1242
|
+
set from(value: string);
|
|
1243
|
+
get to(): string;
|
|
1244
|
+
set to(value: string);
|
|
1239
1245
|
static fromObject(data: {
|
|
1240
1246
|
terminalTypeId?: string;
|
|
1241
1247
|
location?: string;
|
|
1242
1248
|
page?: number;
|
|
1243
1249
|
limit?: number;
|
|
1244
1250
|
search?: string;
|
|
1251
|
+
from?: string;
|
|
1252
|
+
to?: string;
|
|
1245
1253
|
}): GetAvailableTerminalsRequest;
|
|
1246
1254
|
toObject(): {
|
|
1247
1255
|
terminalTypeId?: string | undefined;
|
|
@@ -1249,6 +1257,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1249
1257
|
page?: number | undefined;
|
|
1250
1258
|
limit?: number | undefined;
|
|
1251
1259
|
search?: string | undefined;
|
|
1260
|
+
from?: string | undefined;
|
|
1261
|
+
to?: string | undefined;
|
|
1252
1262
|
};
|
|
1253
1263
|
serialize(): Uint8Array;
|
|
1254
1264
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -4885,9 +4895,27 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
4885
4895
|
}
|
|
4886
4896
|
export class GetDashboardStatisticsRequest extends pb_1.Message {
|
|
4887
4897
|
#private;
|
|
4888
|
-
constructor(data?: any[] | {
|
|
4889
|
-
|
|
4890
|
-
|
|
4898
|
+
constructor(data?: any[] | {
|
|
4899
|
+
from?: string;
|
|
4900
|
+
to?: string;
|
|
4901
|
+
duration?: string;
|
|
4902
|
+
});
|
|
4903
|
+
get from(): string;
|
|
4904
|
+
set from(value: string);
|
|
4905
|
+
get to(): string;
|
|
4906
|
+
set to(value: string);
|
|
4907
|
+
get duration(): string;
|
|
4908
|
+
set duration(value: string);
|
|
4909
|
+
static fromObject(data: {
|
|
4910
|
+
from?: string;
|
|
4911
|
+
to?: string;
|
|
4912
|
+
duration?: string;
|
|
4913
|
+
}): GetDashboardStatisticsRequest;
|
|
4914
|
+
toObject(): {
|
|
4915
|
+
from?: string | undefined;
|
|
4916
|
+
to?: string | undefined;
|
|
4917
|
+
duration?: string | undefined;
|
|
4918
|
+
};
|
|
4891
4919
|
serialize(): Uint8Array;
|
|
4892
4920
|
serialize(w: pb_1.BinaryWriter): void;
|
|
4893
4921
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetDashboardStatisticsRequest;
|
|
@@ -4170,6 +4170,9 @@ export declare namespace com.pkg.terminal {
|
|
|
4170
4170
|
terminalTypeId?: string;
|
|
4171
4171
|
page?: number;
|
|
4172
4172
|
limit?: number;
|
|
4173
|
+
search?: string;
|
|
4174
|
+
from?: string;
|
|
4175
|
+
to?: string;
|
|
4173
4176
|
});
|
|
4174
4177
|
get terminalTypeId(): string;
|
|
4175
4178
|
set terminalTypeId(value: string);
|
|
@@ -4177,15 +4180,27 @@ export declare namespace com.pkg.terminal {
|
|
|
4177
4180
|
set page(value: number);
|
|
4178
4181
|
get limit(): number;
|
|
4179
4182
|
set limit(value: number);
|
|
4183
|
+
get search(): string;
|
|
4184
|
+
set search(value: string);
|
|
4185
|
+
get from(): string;
|
|
4186
|
+
set from(value: string);
|
|
4187
|
+
get to(): string;
|
|
4188
|
+
set to(value: string);
|
|
4180
4189
|
static fromObject(data: {
|
|
4181
4190
|
terminalTypeId?: string;
|
|
4182
4191
|
page?: number;
|
|
4183
4192
|
limit?: number;
|
|
4193
|
+
search?: string;
|
|
4194
|
+
from?: string;
|
|
4195
|
+
to?: string;
|
|
4184
4196
|
}): GetAvailableTerminalsRequest;
|
|
4185
4197
|
toObject(): {
|
|
4186
4198
|
terminalTypeId?: string | undefined;
|
|
4187
4199
|
page?: number | undefined;
|
|
4188
4200
|
limit?: number | undefined;
|
|
4201
|
+
search?: string | undefined;
|
|
4202
|
+
from?: string | undefined;
|
|
4203
|
+
to?: string | undefined;
|
|
4189
4204
|
};
|
|
4190
4205
|
serialize(): Uint8Array;
|
|
4191
4206
|
serialize(w: pb_1.BinaryWriter): void;
|