@technova-tech/olive-proto-lib 2.0.6 → 2.0.8
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 +51 -1
- package/types/pos.v1/terminals.d.ts +14 -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
|
}
|
|
@@ -10201,6 +10231,9 @@ var com;
|
|
|
10201
10231
|
if ("ownerId" in data && data.ownerId != undefined) {
|
|
10202
10232
|
this.ownerId = data.ownerId;
|
|
10203
10233
|
}
|
|
10234
|
+
if ("branchId" in data && data.branchId != undefined) {
|
|
10235
|
+
this.branchId = data.branchId;
|
|
10236
|
+
}
|
|
10204
10237
|
}
|
|
10205
10238
|
}
|
|
10206
10239
|
get businessContextToken() {
|
|
@@ -10308,6 +10341,12 @@ var com;
|
|
|
10308
10341
|
set ownerId(value) {
|
|
10309
10342
|
pb_1.Message.setField(this, 16, value);
|
|
10310
10343
|
}
|
|
10344
|
+
get branchId() {
|
|
10345
|
+
return pb_1.Message.getFieldWithDefault(this, 17, "");
|
|
10346
|
+
}
|
|
10347
|
+
set branchId(value) {
|
|
10348
|
+
pb_1.Message.setField(this, 17, value);
|
|
10349
|
+
}
|
|
10311
10350
|
static fromObject(data) {
|
|
10312
10351
|
const message = new BusinessContextData({});
|
|
10313
10352
|
if (data.businessContextToken != null) {
|
|
@@ -10358,6 +10397,9 @@ var com;
|
|
|
10358
10397
|
if (data.ownerId != null) {
|
|
10359
10398
|
message.ownerId = data.ownerId;
|
|
10360
10399
|
}
|
|
10400
|
+
if (data.branchId != null) {
|
|
10401
|
+
message.branchId = data.branchId;
|
|
10402
|
+
}
|
|
10361
10403
|
return message;
|
|
10362
10404
|
}
|
|
10363
10405
|
toObject() {
|
|
@@ -10410,6 +10452,9 @@ var com;
|
|
|
10410
10452
|
if (this.ownerId != null) {
|
|
10411
10453
|
data.ownerId = this.ownerId;
|
|
10412
10454
|
}
|
|
10455
|
+
if (this.branchId != null) {
|
|
10456
|
+
data.branchId = this.branchId;
|
|
10457
|
+
}
|
|
10413
10458
|
return data;
|
|
10414
10459
|
}
|
|
10415
10460
|
serialize(w) {
|
|
@@ -10446,6 +10491,8 @@ var com;
|
|
|
10446
10491
|
writer.writeString(15, this.ownerType);
|
|
10447
10492
|
if (this.ownerId.length)
|
|
10448
10493
|
writer.writeString(16, this.ownerId);
|
|
10494
|
+
if (this.branchId.length)
|
|
10495
|
+
writer.writeString(17, this.branchId);
|
|
10449
10496
|
if (!w)
|
|
10450
10497
|
return writer.getResultBuffer();
|
|
10451
10498
|
}
|
|
@@ -10503,6 +10550,9 @@ var com;
|
|
|
10503
10550
|
case 16:
|
|
10504
10551
|
message.ownerId = reader.readString();
|
|
10505
10552
|
break;
|
|
10553
|
+
case 17:
|
|
10554
|
+
message.branchId = reader.readString();
|
|
10555
|
+
break;
|
|
10506
10556
|
default: reader.skipField();
|
|
10507
10557
|
}
|
|
10508
10558
|
}
|
|
@@ -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;
|
|
@@ -3640,6 +3648,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3640
3648
|
sessionExpiresAt?: string;
|
|
3641
3649
|
ownerType?: string;
|
|
3642
3650
|
ownerId?: string;
|
|
3651
|
+
branchId?: string;
|
|
3643
3652
|
});
|
|
3644
3653
|
get businessContextToken(): string;
|
|
3645
3654
|
set businessContextToken(value: string);
|
|
@@ -3676,6 +3685,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3676
3685
|
set ownerType(value: string);
|
|
3677
3686
|
get ownerId(): string;
|
|
3678
3687
|
set ownerId(value: string);
|
|
3688
|
+
get branchId(): string;
|
|
3689
|
+
set branchId(value: string);
|
|
3679
3690
|
static fromObject(data: {
|
|
3680
3691
|
businessContextToken?: string;
|
|
3681
3692
|
businessId?: string;
|
|
@@ -3693,6 +3704,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3693
3704
|
sessionExpiresAt?: string;
|
|
3694
3705
|
ownerType?: string;
|
|
3695
3706
|
ownerId?: string;
|
|
3707
|
+
branchId?: string;
|
|
3696
3708
|
}): BusinessContextData;
|
|
3697
3709
|
toObject(): {
|
|
3698
3710
|
businessContextToken?: string | undefined;
|
|
@@ -3737,6 +3749,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3737
3749
|
sessionExpiresAt?: string | undefined;
|
|
3738
3750
|
ownerType?: string | undefined;
|
|
3739
3751
|
ownerId?: string | undefined;
|
|
3752
|
+
branchId?: string | undefined;
|
|
3740
3753
|
};
|
|
3741
3754
|
serialize(): Uint8Array;
|
|
3742
3755
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -7267,6 +7280,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7267
7280
|
sessionExpiresAt?: string | undefined;
|
|
7268
7281
|
ownerType?: string | undefined;
|
|
7269
7282
|
ownerId?: string | undefined;
|
|
7283
|
+
branchId?: string | undefined;
|
|
7270
7284
|
} | undefined;
|
|
7271
7285
|
error?: string | undefined;
|
|
7272
7286
|
};
|