@technova-tech/olive-proto-lib 1.9.9 → 2.0.0
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 +71 -1
- package/types/pos.v1/terminals.d.ts +26 -2
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -946,7 +946,7 @@ var com;
|
|
|
946
946
|
}
|
|
947
947
|
terminals.GetTerminalInstanceResponse = GetTerminalInstanceResponse;
|
|
948
948
|
class UpdateTerminalInstanceRequest extends pb_1.Message {
|
|
949
|
-
#one_of_decls = [];
|
|
949
|
+
#one_of_decls = [[12]];
|
|
950
950
|
constructor(data) {
|
|
951
951
|
super();
|
|
952
952
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -984,6 +984,9 @@ var com;
|
|
|
984
984
|
if ("auditContext" in data && data.auditContext != undefined) {
|
|
985
985
|
this.auditContext = data.auditContext;
|
|
986
986
|
}
|
|
987
|
+
if ("active" in data && data.active != undefined) {
|
|
988
|
+
this.active = data.active;
|
|
989
|
+
}
|
|
987
990
|
}
|
|
988
991
|
if (!this.deviceConfiguration)
|
|
989
992
|
this.deviceConfiguration = new Map();
|
|
@@ -1054,6 +1057,22 @@ var com;
|
|
|
1054
1057
|
set auditContext(value) {
|
|
1055
1058
|
pb_1.Message.setField(this, 11, value);
|
|
1056
1059
|
}
|
|
1060
|
+
get active() {
|
|
1061
|
+
return pb_1.Message.getFieldWithDefault(this, 12, false);
|
|
1062
|
+
}
|
|
1063
|
+
set active(value) {
|
|
1064
|
+
pb_1.Message.setOneofField(this, 12, this.#one_of_decls[0], value);
|
|
1065
|
+
}
|
|
1066
|
+
get hasActive() {
|
|
1067
|
+
return pb_1.Message.getField(this, 12) != null;
|
|
1068
|
+
}
|
|
1069
|
+
get _active() {
|
|
1070
|
+
const cases = {
|
|
1071
|
+
0: "none",
|
|
1072
|
+
12: "active"
|
|
1073
|
+
};
|
|
1074
|
+
return cases[pb_1.Message.computeOneofCase(this, [12])];
|
|
1075
|
+
}
|
|
1057
1076
|
static fromObject(data) {
|
|
1058
1077
|
const message = new UpdateTerminalInstanceRequest({});
|
|
1059
1078
|
if (data.instanceId != null) {
|
|
@@ -1089,6 +1108,9 @@ var com;
|
|
|
1089
1108
|
if (data.auditContext != null) {
|
|
1090
1109
|
message.auditContext = data.auditContext;
|
|
1091
1110
|
}
|
|
1111
|
+
if (data.active != null) {
|
|
1112
|
+
message.active = data.active;
|
|
1113
|
+
}
|
|
1092
1114
|
return message;
|
|
1093
1115
|
}
|
|
1094
1116
|
toObject() {
|
|
@@ -1126,6 +1148,9 @@ var com;
|
|
|
1126
1148
|
if (this.auditContext != null) {
|
|
1127
1149
|
data.auditContext = this.auditContext;
|
|
1128
1150
|
}
|
|
1151
|
+
if (this.active != null) {
|
|
1152
|
+
data.active = this.active;
|
|
1153
|
+
}
|
|
1129
1154
|
return data;
|
|
1130
1155
|
}
|
|
1131
1156
|
serialize(w) {
|
|
@@ -1156,6 +1181,8 @@ var com;
|
|
|
1156
1181
|
writer.writeString(10, this.processorTid);
|
|
1157
1182
|
if (this.auditContext.length)
|
|
1158
1183
|
writer.writeString(11, this.auditContext);
|
|
1184
|
+
if (this.hasActive)
|
|
1185
|
+
writer.writeBool(12, this.active);
|
|
1159
1186
|
if (!w)
|
|
1160
1187
|
return writer.getResultBuffer();
|
|
1161
1188
|
}
|
|
@@ -1198,6 +1225,9 @@ var com;
|
|
|
1198
1225
|
case 11:
|
|
1199
1226
|
message.auditContext = reader.readString();
|
|
1200
1227
|
break;
|
|
1228
|
+
case 12:
|
|
1229
|
+
message.active = reader.readBool();
|
|
1230
|
+
break;
|
|
1201
1231
|
default: reader.skipField();
|
|
1202
1232
|
}
|
|
1203
1233
|
}
|
|
@@ -1511,6 +1541,9 @@ var com;
|
|
|
1511
1541
|
if ("processorTid" in data && data.processorTid != undefined) {
|
|
1512
1542
|
this.processorTid = data.processorTid;
|
|
1513
1543
|
}
|
|
1544
|
+
if ("active" in data && data.active != undefined) {
|
|
1545
|
+
this.active = data.active;
|
|
1546
|
+
}
|
|
1514
1547
|
}
|
|
1515
1548
|
}
|
|
1516
1549
|
get id() {
|
|
@@ -1609,6 +1642,12 @@ var com;
|
|
|
1609
1642
|
set processorTid(value) {
|
|
1610
1643
|
pb_1.Message.setField(this, 16, value);
|
|
1611
1644
|
}
|
|
1645
|
+
get active() {
|
|
1646
|
+
return pb_1.Message.getFieldWithDefault(this, 17, false);
|
|
1647
|
+
}
|
|
1648
|
+
set active(value) {
|
|
1649
|
+
pb_1.Message.setField(this, 17, value);
|
|
1650
|
+
}
|
|
1612
1651
|
static fromObject(data) {
|
|
1613
1652
|
const message = new TerminalInstanceDetails({});
|
|
1614
1653
|
if (data.id != null) {
|
|
@@ -1659,6 +1698,9 @@ var com;
|
|
|
1659
1698
|
if (data.processorTid != null) {
|
|
1660
1699
|
message.processorTid = data.processorTid;
|
|
1661
1700
|
}
|
|
1701
|
+
if (data.active != null) {
|
|
1702
|
+
message.active = data.active;
|
|
1703
|
+
}
|
|
1662
1704
|
return message;
|
|
1663
1705
|
}
|
|
1664
1706
|
toObject() {
|
|
@@ -1711,6 +1753,9 @@ var com;
|
|
|
1711
1753
|
if (this.processorTid != null) {
|
|
1712
1754
|
data.processorTid = this.processorTid;
|
|
1713
1755
|
}
|
|
1756
|
+
if (this.active != null) {
|
|
1757
|
+
data.active = this.active;
|
|
1758
|
+
}
|
|
1714
1759
|
return data;
|
|
1715
1760
|
}
|
|
1716
1761
|
serialize(w) {
|
|
@@ -1747,6 +1792,8 @@ var com;
|
|
|
1747
1792
|
writer.writeRepeatedMessage(15, this.functions, (item) => item.serialize(writer));
|
|
1748
1793
|
if (this.processorTid.length)
|
|
1749
1794
|
writer.writeString(16, this.processorTid);
|
|
1795
|
+
if (this.active != false)
|
|
1796
|
+
writer.writeBool(17, this.active);
|
|
1750
1797
|
if (!w)
|
|
1751
1798
|
return writer.getResultBuffer();
|
|
1752
1799
|
}
|
|
@@ -1804,6 +1851,9 @@ var com;
|
|
|
1804
1851
|
case 16:
|
|
1805
1852
|
message.processorTid = reader.readString();
|
|
1806
1853
|
break;
|
|
1854
|
+
case 17:
|
|
1855
|
+
message.active = reader.readBool();
|
|
1856
|
+
break;
|
|
1807
1857
|
default: reader.skipField();
|
|
1808
1858
|
}
|
|
1809
1859
|
}
|
|
@@ -5264,6 +5314,9 @@ var com;
|
|
|
5264
5314
|
if ("category" in data && data.category != undefined) {
|
|
5265
5315
|
this.category = data.category;
|
|
5266
5316
|
}
|
|
5317
|
+
if ("active" in data && data.active != undefined) {
|
|
5318
|
+
this.active = data.active;
|
|
5319
|
+
}
|
|
5267
5320
|
}
|
|
5268
5321
|
}
|
|
5269
5322
|
get instanceId() {
|
|
@@ -5341,6 +5394,12 @@ var com;
|
|
|
5341
5394
|
set category(value) {
|
|
5342
5395
|
pb_1.Message.setField(this, 12, value);
|
|
5343
5396
|
}
|
|
5397
|
+
get active() {
|
|
5398
|
+
return pb_1.Message.getFieldWithDefault(this, 13, false);
|
|
5399
|
+
}
|
|
5400
|
+
set active(value) {
|
|
5401
|
+
pb_1.Message.setField(this, 13, value);
|
|
5402
|
+
}
|
|
5344
5403
|
static fromObject(data) {
|
|
5345
5404
|
const message = new AvailableTerminalData({});
|
|
5346
5405
|
if (data.instanceId != null) {
|
|
@@ -5379,6 +5438,9 @@ var com;
|
|
|
5379
5438
|
if (data.category != null) {
|
|
5380
5439
|
message.category = data.category;
|
|
5381
5440
|
}
|
|
5441
|
+
if (data.active != null) {
|
|
5442
|
+
message.active = data.active;
|
|
5443
|
+
}
|
|
5382
5444
|
return message;
|
|
5383
5445
|
}
|
|
5384
5446
|
toObject() {
|
|
@@ -5419,6 +5481,9 @@ var com;
|
|
|
5419
5481
|
if (this.category != null) {
|
|
5420
5482
|
data.category = this.category;
|
|
5421
5483
|
}
|
|
5484
|
+
if (this.active != null) {
|
|
5485
|
+
data.active = this.active;
|
|
5486
|
+
}
|
|
5422
5487
|
return data;
|
|
5423
5488
|
}
|
|
5424
5489
|
serialize(w) {
|
|
@@ -5447,6 +5512,8 @@ var com;
|
|
|
5447
5512
|
writer.writeString(11, this.processorTid);
|
|
5448
5513
|
if (this.category.length)
|
|
5449
5514
|
writer.writeString(12, this.category);
|
|
5515
|
+
if (this.active != false)
|
|
5516
|
+
writer.writeBool(13, this.active);
|
|
5450
5517
|
if (!w)
|
|
5451
5518
|
return writer.getResultBuffer();
|
|
5452
5519
|
}
|
|
@@ -5492,6 +5559,9 @@ var com;
|
|
|
5492
5559
|
case 12:
|
|
5493
5560
|
message.category = reader.readString();
|
|
5494
5561
|
break;
|
|
5562
|
+
case 13:
|
|
5563
|
+
message.active = reader.readBool();
|
|
5564
|
+
break;
|
|
5495
5565
|
default: reader.skipField();
|
|
5496
5566
|
}
|
|
5497
5567
|
}
|
|
@@ -208,6 +208,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
208
208
|
enabled?: boolean | undefined;
|
|
209
209
|
}[] | undefined;
|
|
210
210
|
processorTid?: string | undefined;
|
|
211
|
+
active?: boolean | undefined;
|
|
211
212
|
}[] | undefined;
|
|
212
213
|
terminalType?: {
|
|
213
214
|
id?: string | undefined;
|
|
@@ -303,6 +304,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
303
304
|
enabled?: boolean | undefined;
|
|
304
305
|
}[] | undefined;
|
|
305
306
|
processorTid?: string | undefined;
|
|
307
|
+
active?: boolean | undefined;
|
|
306
308
|
} | undefined;
|
|
307
309
|
errors?: string[] | undefined;
|
|
308
310
|
};
|
|
@@ -314,7 +316,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
314
316
|
}
|
|
315
317
|
export class UpdateTerminalInstanceRequest extends pb_1.Message {
|
|
316
318
|
#private;
|
|
317
|
-
constructor(data?: any[] | {
|
|
319
|
+
constructor(data?: any[] | ({
|
|
318
320
|
instanceId?: string;
|
|
319
321
|
status?: string;
|
|
320
322
|
condition?: string;
|
|
@@ -326,7 +328,9 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
326
328
|
notes?: string;
|
|
327
329
|
processorTid?: string;
|
|
328
330
|
auditContext?: string;
|
|
329
|
-
}
|
|
331
|
+
} & (({
|
|
332
|
+
active?: boolean;
|
|
333
|
+
}))));
|
|
330
334
|
get instanceId(): string;
|
|
331
335
|
set instanceId(value: string);
|
|
332
336
|
get status(): string;
|
|
@@ -349,6 +353,10 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
349
353
|
set processorTid(value: string);
|
|
350
354
|
get auditContext(): string;
|
|
351
355
|
set auditContext(value: string);
|
|
356
|
+
get active(): boolean;
|
|
357
|
+
set active(value: boolean);
|
|
358
|
+
get hasActive(): boolean;
|
|
359
|
+
get _active(): "active" | "none";
|
|
352
360
|
static fromObject(data: {
|
|
353
361
|
instanceId?: string;
|
|
354
362
|
status?: string;
|
|
@@ -363,6 +371,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
363
371
|
notes?: string;
|
|
364
372
|
processorTid?: string;
|
|
365
373
|
auditContext?: string;
|
|
374
|
+
active?: boolean;
|
|
366
375
|
}): UpdateTerminalInstanceRequest;
|
|
367
376
|
toObject(): {
|
|
368
377
|
instanceId?: string | undefined;
|
|
@@ -378,6 +387,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
378
387
|
notes?: string | undefined;
|
|
379
388
|
processorTid?: string | undefined;
|
|
380
389
|
auditContext?: string | undefined;
|
|
390
|
+
active?: boolean | undefined;
|
|
381
391
|
};
|
|
382
392
|
serialize(): Uint8Array;
|
|
383
393
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -433,6 +443,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
433
443
|
enabled?: boolean | undefined;
|
|
434
444
|
}[] | undefined;
|
|
435
445
|
processorTid?: string | undefined;
|
|
446
|
+
active?: boolean | undefined;
|
|
436
447
|
} | undefined;
|
|
437
448
|
errors?: string[] | undefined;
|
|
438
449
|
};
|
|
@@ -488,6 +499,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
488
499
|
enabled?: boolean | undefined;
|
|
489
500
|
}[] | undefined;
|
|
490
501
|
processorTid?: string | undefined;
|
|
502
|
+
active?: boolean | undefined;
|
|
491
503
|
}[] | undefined;
|
|
492
504
|
terminalType?: {
|
|
493
505
|
id?: string | undefined;
|
|
@@ -523,6 +535,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
523
535
|
updatedAt?: string;
|
|
524
536
|
functions?: TerminalFunction[];
|
|
525
537
|
processorTid?: string;
|
|
538
|
+
active?: boolean;
|
|
526
539
|
});
|
|
527
540
|
get id(): string;
|
|
528
541
|
set id(value: string);
|
|
@@ -556,6 +569,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
556
569
|
set functions(value: TerminalFunction[]);
|
|
557
570
|
get processorTid(): string;
|
|
558
571
|
set processorTid(value: string);
|
|
572
|
+
get active(): boolean;
|
|
573
|
+
set active(value: boolean);
|
|
559
574
|
static fromObject(data: {
|
|
560
575
|
id?: string;
|
|
561
576
|
terminalInstanceId?: string;
|
|
@@ -573,6 +588,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
573
588
|
updatedAt?: string;
|
|
574
589
|
functions?: ReturnType<typeof TerminalFunction.prototype.toObject>[];
|
|
575
590
|
processorTid?: string;
|
|
591
|
+
active?: boolean;
|
|
576
592
|
}): TerminalInstanceDetails;
|
|
577
593
|
toObject(): {
|
|
578
594
|
id?: string | undefined;
|
|
@@ -596,6 +612,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
596
612
|
enabled?: boolean | undefined;
|
|
597
613
|
}[] | undefined;
|
|
598
614
|
processorTid?: string | undefined;
|
|
615
|
+
active?: boolean | undefined;
|
|
599
616
|
};
|
|
600
617
|
serialize(): Uint8Array;
|
|
601
618
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -1364,6 +1381,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1364
1381
|
createdAt?: string | undefined;
|
|
1365
1382
|
processorTid?: string | undefined;
|
|
1366
1383
|
category?: string | undefined;
|
|
1384
|
+
active?: boolean | undefined;
|
|
1367
1385
|
}[] | undefined;
|
|
1368
1386
|
pagination?: {
|
|
1369
1387
|
currentPage?: number | undefined;
|
|
@@ -1917,6 +1935,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1917
1935
|
createdAt?: string;
|
|
1918
1936
|
processorTid?: string;
|
|
1919
1937
|
category?: string;
|
|
1938
|
+
active?: boolean;
|
|
1920
1939
|
});
|
|
1921
1940
|
get instanceId(): string;
|
|
1922
1941
|
set instanceId(value: string);
|
|
@@ -1943,6 +1962,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1943
1962
|
set processorTid(value: string);
|
|
1944
1963
|
get category(): string;
|
|
1945
1964
|
set category(value: string);
|
|
1965
|
+
get active(): boolean;
|
|
1966
|
+
set active(value: boolean);
|
|
1946
1967
|
static fromObject(data: {
|
|
1947
1968
|
instanceId?: string;
|
|
1948
1969
|
serialNumber?: string;
|
|
@@ -1956,6 +1977,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1956
1977
|
createdAt?: string;
|
|
1957
1978
|
processorTid?: string;
|
|
1958
1979
|
category?: string;
|
|
1980
|
+
active?: boolean;
|
|
1959
1981
|
}): AvailableTerminalData;
|
|
1960
1982
|
toObject(): {
|
|
1961
1983
|
instanceId?: string | undefined;
|
|
@@ -1975,6 +1997,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1975
1997
|
createdAt?: string | undefined;
|
|
1976
1998
|
processorTid?: string | undefined;
|
|
1977
1999
|
category?: string | undefined;
|
|
2000
|
+
active?: boolean | undefined;
|
|
1978
2001
|
};
|
|
1979
2002
|
serialize(): Uint8Array;
|
|
1980
2003
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -10333,6 +10356,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10333
10356
|
enabled?: boolean | undefined;
|
|
10334
10357
|
}[] | undefined;
|
|
10335
10358
|
processorTid?: string | undefined;
|
|
10359
|
+
active?: boolean | undefined;
|
|
10336
10360
|
}[] | undefined;
|
|
10337
10361
|
pagination?: {
|
|
10338
10362
|
currentPage?: number | undefined;
|