@technova-tech/olive-proto-lib 2.0.1 → 2.0.2
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 +24 -0
- package/package.json +1 -1
- package/pos.v1/terminals.js +20 -0
- package/types/index.d.ts +1 -0
- package/types/pos.v1/terminals.d.ts +5 -0
package/index.js
CHANGED
|
@@ -44,3 +44,27 @@ const proto = {
|
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
exports.proto = proto;
|
|
47
|
+
const proto = {
|
|
48
|
+
import: {
|
|
49
|
+
admin: admin_1.com,
|
|
50
|
+
account: accounts_1.com,
|
|
51
|
+
audit: audit_1.com,
|
|
52
|
+
user: users_1.com,
|
|
53
|
+
verification: verifications_1.com,
|
|
54
|
+
bills: bills_1.com,
|
|
55
|
+
image: recognition_1.com,
|
|
56
|
+
storage: storage_1.com,
|
|
57
|
+
transfer: transfer_1.com,
|
|
58
|
+
business: business_1.com,
|
|
59
|
+
pos_transactions: transactions_1.com,
|
|
60
|
+
pov1Transaction: transactions_2.com,
|
|
61
|
+
pov1Auth: auth_1.com,
|
|
62
|
+
pov1Merchants: merchants_1.com,
|
|
63
|
+
pov1Eod: eod_1.com,
|
|
64
|
+
pov1TerminalTypes: terminal_types_1.com,
|
|
65
|
+
pov1Terminals: terminals_1.com,
|
|
66
|
+
pov1TerminalTransactions: terminal_transactions_1.com,
|
|
67
|
+
pov1TerminalCardTransactions: card_transactions_1.com,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
exports.proto = proto;
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -2035,6 +2035,9 @@ var com;
|
|
|
2035
2035
|
if ("auditContext" in data && data.auditContext != undefined) {
|
|
2036
2036
|
this.auditContext = data.auditContext;
|
|
2037
2037
|
}
|
|
2038
|
+
if ("ownerType" in data && data.ownerType != undefined) {
|
|
2039
|
+
this.ownerType = data.ownerType;
|
|
2040
|
+
}
|
|
2038
2041
|
}
|
|
2039
2042
|
if (!this.metadata)
|
|
2040
2043
|
this.metadata = new Map();
|
|
@@ -2129,6 +2132,12 @@ var com;
|
|
|
2129
2132
|
set auditContext(value) {
|
|
2130
2133
|
pb_1.Message.setField(this, 14, value);
|
|
2131
2134
|
}
|
|
2135
|
+
get ownerType() {
|
|
2136
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
2137
|
+
}
|
|
2138
|
+
set ownerType(value) {
|
|
2139
|
+
pb_1.Message.setField(this, 15, value);
|
|
2140
|
+
}
|
|
2132
2141
|
static fromObject(data) {
|
|
2133
2142
|
const message = new AssignTerminalRequest({});
|
|
2134
2143
|
if (data.serialNumber != null) {
|
|
@@ -2173,6 +2182,9 @@ var com;
|
|
|
2173
2182
|
if (data.auditContext != null) {
|
|
2174
2183
|
message.auditContext = data.auditContext;
|
|
2175
2184
|
}
|
|
2185
|
+
if (data.ownerType != null) {
|
|
2186
|
+
message.ownerType = data.ownerType;
|
|
2187
|
+
}
|
|
2176
2188
|
return message;
|
|
2177
2189
|
}
|
|
2178
2190
|
toObject() {
|
|
@@ -2219,6 +2231,9 @@ var com;
|
|
|
2219
2231
|
if (this.auditContext != null) {
|
|
2220
2232
|
data.auditContext = this.auditContext;
|
|
2221
2233
|
}
|
|
2234
|
+
if (this.ownerType != null) {
|
|
2235
|
+
data.ownerType = this.ownerType;
|
|
2236
|
+
}
|
|
2222
2237
|
return data;
|
|
2223
2238
|
}
|
|
2224
2239
|
serialize(w) {
|
|
@@ -2255,6 +2270,8 @@ var com;
|
|
|
2255
2270
|
writer.writeString(13, this.category);
|
|
2256
2271
|
if (this.auditContext.length)
|
|
2257
2272
|
writer.writeString(14, this.auditContext);
|
|
2273
|
+
if (this.ownerType.length)
|
|
2274
|
+
writer.writeString(15, this.ownerType);
|
|
2258
2275
|
if (!w)
|
|
2259
2276
|
return writer.getResultBuffer();
|
|
2260
2277
|
}
|
|
@@ -2306,6 +2323,9 @@ var com;
|
|
|
2306
2323
|
case 14:
|
|
2307
2324
|
message.auditContext = reader.readString();
|
|
2308
2325
|
break;
|
|
2326
|
+
case 15:
|
|
2327
|
+
message.ownerType = reader.readString();
|
|
2328
|
+
break;
|
|
2309
2329
|
default: reader.skipField();
|
|
2310
2330
|
}
|
|
2311
2331
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -671,6 +671,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
671
671
|
processorTid?: string;
|
|
672
672
|
category?: string;
|
|
673
673
|
auditContext?: string;
|
|
674
|
+
ownerType?: string;
|
|
674
675
|
});
|
|
675
676
|
get serialNumber(): string;
|
|
676
677
|
set serialNumber(value: string);
|
|
@@ -702,6 +703,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
702
703
|
set category(value: string);
|
|
703
704
|
get auditContext(): string;
|
|
704
705
|
set auditContext(value: string);
|
|
706
|
+
get ownerType(): string;
|
|
707
|
+
set ownerType(value: string);
|
|
705
708
|
static fromObject(data: {
|
|
706
709
|
serialNumber?: string;
|
|
707
710
|
businessId?: string;
|
|
@@ -719,6 +722,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
719
722
|
processorTid?: string;
|
|
720
723
|
category?: string;
|
|
721
724
|
auditContext?: string;
|
|
725
|
+
ownerType?: string;
|
|
722
726
|
}): AssignTerminalRequest;
|
|
723
727
|
toObject(): {
|
|
724
728
|
serialNumber?: string | undefined;
|
|
@@ -746,6 +750,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
746
750
|
processorTid?: string | undefined;
|
|
747
751
|
category?: string | undefined;
|
|
748
752
|
auditContext?: string | undefined;
|
|
753
|
+
ownerType?: string | undefined;
|
|
749
754
|
};
|
|
750
755
|
serialize(): Uint8Array;
|
|
751
756
|
serialize(w: pb_1.BinaryWriter): void;
|