@technova-tech/olive-proto-lib 2.0.6 → 2.0.7
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/index.js +19 -3
- package/package.json +1 -1
- package/pos.v1/terminals.js +31 -1
- package/types/pos.v1/terminals.d.ts +8 -0
package/index.js
CHANGED
|
@@ -22,9 +22,25 @@ const card_transactions_1 = require("./pos.v1/card-transactions");
|
|
|
22
22
|
const terminals_1 = require("./pos.v1/terminals");
|
|
23
23
|
const proto = {
|
|
24
24
|
import: {
|
|
25
|
-
admin: admin_1.com,
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
admin: admin_1.com,
|
|
26
|
+
account: accounts_1.com,
|
|
27
|
+
audit: audit_1.com,
|
|
28
|
+
user: users_1.com,
|
|
29
|
+
verification: verifications_1.com,
|
|
30
|
+
bills: bills_1.com,
|
|
31
|
+
image: recognition_1.com,
|
|
32
|
+
storage: storage_1.com,
|
|
33
|
+
transfer: transfer_1.com,
|
|
34
|
+
business: business_1.com,
|
|
35
|
+
pos_transactions: transactions_1.com,
|
|
36
|
+
pov1Transaction: transactions_2.com,
|
|
37
|
+
pov1Auth: auth_1.com,
|
|
38
|
+
pov1Merchants: merchants_1.com,
|
|
39
|
+
pov1Eod: eod_1.com,
|
|
40
|
+
pov1TerminalTypes: terminal_types_1.com,
|
|
41
|
+
pov1Terminals: terminals_1.com,
|
|
42
|
+
pov1TerminalTransactions: terminal_transactions_1.com,
|
|
43
|
+
pov1TerminalCardTransactions: card_transactions_1.com,
|
|
28
44
|
},
|
|
29
45
|
};
|
|
30
46
|
exports.proto = proto;
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -9592,7 +9592,7 @@ var com;
|
|
|
9592
9592
|
}
|
|
9593
9593
|
terminals.TerminalSessionData = TerminalSessionData;
|
|
9594
9594
|
class DiscoverBusinessContextRequest extends pb_1.Message {
|
|
9595
|
-
#one_of_decls = [[2], [3], [4]];
|
|
9595
|
+
#one_of_decls = [[2], [3], [4], [6]];
|
|
9596
9596
|
constructor(data) {
|
|
9597
9597
|
super();
|
|
9598
9598
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -9612,6 +9612,9 @@ var com;
|
|
|
9612
9612
|
if ("timestamp" in data && data.timestamp != undefined) {
|
|
9613
9613
|
this.timestamp = data.timestamp;
|
|
9614
9614
|
}
|
|
9615
|
+
if ("activation" in data && data.activation != undefined) {
|
|
9616
|
+
this.activation = data.activation;
|
|
9617
|
+
}
|
|
9615
9618
|
}
|
|
9616
9619
|
}
|
|
9617
9620
|
get serialNumber() {
|
|
@@ -9653,6 +9656,15 @@ var com;
|
|
|
9653
9656
|
set timestamp(value) {
|
|
9654
9657
|
pb_1.Message.setField(this, 5, value);
|
|
9655
9658
|
}
|
|
9659
|
+
get activation() {
|
|
9660
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
9661
|
+
}
|
|
9662
|
+
set activation(value) {
|
|
9663
|
+
pb_1.Message.setOneofField(this, 6, this.#one_of_decls[3], value);
|
|
9664
|
+
}
|
|
9665
|
+
get hasActivation() {
|
|
9666
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
9667
|
+
}
|
|
9656
9668
|
get _terminal_instance_id() {
|
|
9657
9669
|
const cases = {
|
|
9658
9670
|
0: "none",
|
|
@@ -9674,6 +9686,13 @@ var com;
|
|
|
9674
9686
|
};
|
|
9675
9687
|
return cases[pb_1.Message.computeOneofCase(this, [4])];
|
|
9676
9688
|
}
|
|
9689
|
+
get _activation() {
|
|
9690
|
+
const cases = {
|
|
9691
|
+
0: "none",
|
|
9692
|
+
6: "activation"
|
|
9693
|
+
};
|
|
9694
|
+
return cases[pb_1.Message.computeOneofCase(this, [6])];
|
|
9695
|
+
}
|
|
9677
9696
|
static fromObject(data) {
|
|
9678
9697
|
const message = new DiscoverBusinessContextRequest({});
|
|
9679
9698
|
if (data.serialNumber != null) {
|
|
@@ -9691,6 +9710,9 @@ var com;
|
|
|
9691
9710
|
if (data.timestamp != null) {
|
|
9692
9711
|
message.timestamp = data.timestamp;
|
|
9693
9712
|
}
|
|
9713
|
+
if (data.activation != null) {
|
|
9714
|
+
message.activation = data.activation;
|
|
9715
|
+
}
|
|
9694
9716
|
return message;
|
|
9695
9717
|
}
|
|
9696
9718
|
toObject() {
|
|
@@ -9710,6 +9732,9 @@ var com;
|
|
|
9710
9732
|
if (this.timestamp != null) {
|
|
9711
9733
|
data.timestamp = this.timestamp;
|
|
9712
9734
|
}
|
|
9735
|
+
if (this.activation != null) {
|
|
9736
|
+
data.activation = this.activation;
|
|
9737
|
+
}
|
|
9713
9738
|
return data;
|
|
9714
9739
|
}
|
|
9715
9740
|
serialize(w) {
|
|
@@ -9724,6 +9749,8 @@ var com;
|
|
|
9724
9749
|
writer.writeString(4, this.cryptoSignature);
|
|
9725
9750
|
if (this.timestamp != 0)
|
|
9726
9751
|
writer.writeInt64(5, this.timestamp);
|
|
9752
|
+
if (this.hasActivation)
|
|
9753
|
+
writer.writeBool(6, this.activation);
|
|
9727
9754
|
if (!w)
|
|
9728
9755
|
return writer.getResultBuffer();
|
|
9729
9756
|
}
|
|
@@ -9748,6 +9775,9 @@ var com;
|
|
|
9748
9775
|
case 5:
|
|
9749
9776
|
message.timestamp = reader.readInt64();
|
|
9750
9777
|
break;
|
|
9778
|
+
case 6:
|
|
9779
|
+
message.activation = reader.readBool();
|
|
9780
|
+
break;
|
|
9751
9781
|
default: reader.skipField();
|
|
9752
9782
|
}
|
|
9753
9783
|
}
|
|
@@ -3450,6 +3450,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3450
3450
|
hardwareFingerprint?: string;
|
|
3451
3451
|
}) | ({
|
|
3452
3452
|
cryptoSignature?: string;
|
|
3453
|
+
}) | ({
|
|
3454
|
+
activation?: boolean;
|
|
3453
3455
|
}))));
|
|
3454
3456
|
get serialNumber(): string;
|
|
3455
3457
|
set serialNumber(value: string);
|
|
@@ -3464,15 +3466,20 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3464
3466
|
get hasCryptoSignature(): boolean;
|
|
3465
3467
|
get timestamp(): number;
|
|
3466
3468
|
set timestamp(value: number);
|
|
3469
|
+
get activation(): boolean;
|
|
3470
|
+
set activation(value: boolean);
|
|
3471
|
+
get hasActivation(): boolean;
|
|
3467
3472
|
get _terminal_instance_id(): "none" | "terminalInstanceId";
|
|
3468
3473
|
get _hardware_fingerprint(): "none" | "hardwareFingerprint";
|
|
3469
3474
|
get _crypto_signature(): "none" | "cryptoSignature";
|
|
3475
|
+
get _activation(): "none" | "activation";
|
|
3470
3476
|
static fromObject(data: {
|
|
3471
3477
|
serialNumber?: string;
|
|
3472
3478
|
terminalInstanceId?: string;
|
|
3473
3479
|
hardwareFingerprint?: string;
|
|
3474
3480
|
cryptoSignature?: string;
|
|
3475
3481
|
timestamp?: number;
|
|
3482
|
+
activation?: boolean;
|
|
3476
3483
|
}): DiscoverBusinessContextRequest;
|
|
3477
3484
|
toObject(): {
|
|
3478
3485
|
serialNumber?: string | undefined;
|
|
@@ -3480,6 +3487,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3480
3487
|
hardwareFingerprint?: string | undefined;
|
|
3481
3488
|
cryptoSignature?: string | undefined;
|
|
3482
3489
|
timestamp?: number | undefined;
|
|
3490
|
+
activation?: boolean | undefined;
|
|
3483
3491
|
};
|
|
3484
3492
|
serialize(): Uint8Array;
|
|
3485
3493
|
serialize(w: pb_1.BinaryWriter): void;
|