@technova-tech/olive-proto-lib 2.0.5 → 2.0.6
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 +3 -19
- package/package.json +1 -1
- package/pos.v1/terminals.js +40 -0
- package/types/pos.v1/terminals.d.ts +12 -0
package/index.js
CHANGED
|
@@ -22,25 +22,9 @@ 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
|
-
|
|
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,
|
|
25
|
+
admin: admin_1.com, account: accounts_1.com, audit: audit_1.com, user: users_1.com, verification: verifications_1.com, bills: bills_1.com, image: recognition_1.com, storage: storage_1.com, transfer: transfer_1.com,
|
|
26
|
+
business: business_1.com, pos_transactions: transactions_1.com, pov1Transaction: transactions_2.com, pov1Auth: auth_1.com, pov1Merchants: merchants_1.com, pov1Eod: eod_1.com,
|
|
27
|
+
pov1TerminalTypes: terminal_types_1.com, pov1Terminals: terminals_1.com, pov1TerminalTransactions: terminal_transactions_1.com, pov1TerminalCardTransactions: card_transactions_1.com,
|
|
44
28
|
},
|
|
45
29
|
};
|
|
46
30
|
exports.proto = proto;
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -10195,6 +10195,12 @@ var com;
|
|
|
10195
10195
|
if ("sessionExpiresAt" in data && data.sessionExpiresAt != undefined) {
|
|
10196
10196
|
this.sessionExpiresAt = data.sessionExpiresAt;
|
|
10197
10197
|
}
|
|
10198
|
+
if ("ownerType" in data && data.ownerType != undefined) {
|
|
10199
|
+
this.ownerType = data.ownerType;
|
|
10200
|
+
}
|
|
10201
|
+
if ("ownerId" in data && data.ownerId != undefined) {
|
|
10202
|
+
this.ownerId = data.ownerId;
|
|
10203
|
+
}
|
|
10198
10204
|
}
|
|
10199
10205
|
}
|
|
10200
10206
|
get businessContextToken() {
|
|
@@ -10290,6 +10296,18 @@ var com;
|
|
|
10290
10296
|
set sessionExpiresAt(value) {
|
|
10291
10297
|
pb_1.Message.setField(this, 14, value);
|
|
10292
10298
|
}
|
|
10299
|
+
get ownerType() {
|
|
10300
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
10301
|
+
}
|
|
10302
|
+
set ownerType(value) {
|
|
10303
|
+
pb_1.Message.setField(this, 15, value);
|
|
10304
|
+
}
|
|
10305
|
+
get ownerId() {
|
|
10306
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
10307
|
+
}
|
|
10308
|
+
set ownerId(value) {
|
|
10309
|
+
pb_1.Message.setField(this, 16, value);
|
|
10310
|
+
}
|
|
10293
10311
|
static fromObject(data) {
|
|
10294
10312
|
const message = new BusinessContextData({});
|
|
10295
10313
|
if (data.businessContextToken != null) {
|
|
@@ -10334,6 +10352,12 @@ var com;
|
|
|
10334
10352
|
if (data.sessionExpiresAt != null) {
|
|
10335
10353
|
message.sessionExpiresAt = data.sessionExpiresAt;
|
|
10336
10354
|
}
|
|
10355
|
+
if (data.ownerType != null) {
|
|
10356
|
+
message.ownerType = data.ownerType;
|
|
10357
|
+
}
|
|
10358
|
+
if (data.ownerId != null) {
|
|
10359
|
+
message.ownerId = data.ownerId;
|
|
10360
|
+
}
|
|
10337
10361
|
return message;
|
|
10338
10362
|
}
|
|
10339
10363
|
toObject() {
|
|
@@ -10380,6 +10404,12 @@ var com;
|
|
|
10380
10404
|
if (this.sessionExpiresAt != null) {
|
|
10381
10405
|
data.sessionExpiresAt = this.sessionExpiresAt;
|
|
10382
10406
|
}
|
|
10407
|
+
if (this.ownerType != null) {
|
|
10408
|
+
data.ownerType = this.ownerType;
|
|
10409
|
+
}
|
|
10410
|
+
if (this.ownerId != null) {
|
|
10411
|
+
data.ownerId = this.ownerId;
|
|
10412
|
+
}
|
|
10383
10413
|
return data;
|
|
10384
10414
|
}
|
|
10385
10415
|
serialize(w) {
|
|
@@ -10412,6 +10442,10 @@ var com;
|
|
|
10412
10442
|
writer.writeString(13, this.tokenExpiresAt);
|
|
10413
10443
|
if (this.sessionExpiresAt.length)
|
|
10414
10444
|
writer.writeString(14, this.sessionExpiresAt);
|
|
10445
|
+
if (this.ownerType.length)
|
|
10446
|
+
writer.writeString(15, this.ownerType);
|
|
10447
|
+
if (this.ownerId.length)
|
|
10448
|
+
writer.writeString(16, this.ownerId);
|
|
10415
10449
|
if (!w)
|
|
10416
10450
|
return writer.getResultBuffer();
|
|
10417
10451
|
}
|
|
@@ -10463,6 +10497,12 @@ var com;
|
|
|
10463
10497
|
case 14:
|
|
10464
10498
|
message.sessionExpiresAt = reader.readString();
|
|
10465
10499
|
break;
|
|
10500
|
+
case 15:
|
|
10501
|
+
message.ownerType = reader.readString();
|
|
10502
|
+
break;
|
|
10503
|
+
case 16:
|
|
10504
|
+
message.ownerId = reader.readString();
|
|
10505
|
+
break;
|
|
10466
10506
|
default: reader.skipField();
|
|
10467
10507
|
}
|
|
10468
10508
|
}
|
|
@@ -3638,6 +3638,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3638
3638
|
sessionId?: string;
|
|
3639
3639
|
tokenExpiresAt?: string;
|
|
3640
3640
|
sessionExpiresAt?: string;
|
|
3641
|
+
ownerType?: string;
|
|
3642
|
+
ownerId?: string;
|
|
3641
3643
|
});
|
|
3642
3644
|
get businessContextToken(): string;
|
|
3643
3645
|
set businessContextToken(value: string);
|
|
@@ -3670,6 +3672,10 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3670
3672
|
set tokenExpiresAt(value: string);
|
|
3671
3673
|
get sessionExpiresAt(): string;
|
|
3672
3674
|
set sessionExpiresAt(value: string);
|
|
3675
|
+
get ownerType(): string;
|
|
3676
|
+
set ownerType(value: string);
|
|
3677
|
+
get ownerId(): string;
|
|
3678
|
+
set ownerId(value: string);
|
|
3673
3679
|
static fromObject(data: {
|
|
3674
3680
|
businessContextToken?: string;
|
|
3675
3681
|
businessId?: string;
|
|
@@ -3685,6 +3691,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3685
3691
|
sessionId?: string;
|
|
3686
3692
|
tokenExpiresAt?: string;
|
|
3687
3693
|
sessionExpiresAt?: string;
|
|
3694
|
+
ownerType?: string;
|
|
3695
|
+
ownerId?: string;
|
|
3688
3696
|
}): BusinessContextData;
|
|
3689
3697
|
toObject(): {
|
|
3690
3698
|
businessContextToken?: string | undefined;
|
|
@@ -3727,6 +3735,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
3727
3735
|
sessionId?: string | undefined;
|
|
3728
3736
|
tokenExpiresAt?: string | undefined;
|
|
3729
3737
|
sessionExpiresAt?: string | undefined;
|
|
3738
|
+
ownerType?: string | undefined;
|
|
3739
|
+
ownerId?: string | undefined;
|
|
3730
3740
|
};
|
|
3731
3741
|
serialize(): Uint8Array;
|
|
3732
3742
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -7255,6 +7265,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7255
7265
|
sessionId?: string | undefined;
|
|
7256
7266
|
tokenExpiresAt?: string | undefined;
|
|
7257
7267
|
sessionExpiresAt?: string | undefined;
|
|
7268
|
+
ownerType?: string | undefined;
|
|
7269
|
+
ownerId?: string | undefined;
|
|
7258
7270
|
} | undefined;
|
|
7259
7271
|
error?: string | undefined;
|
|
7260
7272
|
};
|