@technova-tech/olive-proto-lib 2.0.0 → 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 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
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.0.0",
14
+ "version": "2.0.2",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -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
  }
@@ -10163,6 +10183,18 @@ var com;
10163
10183
  if ("virtualAccount" in data && data.virtualAccount != undefined) {
10164
10184
  this.virtualAccount = data.virtualAccount;
10165
10185
  }
10186
+ if ("token" in data && data.token != undefined) {
10187
+ this.token = data.token;
10188
+ }
10189
+ if ("sessionId" in data && data.sessionId != undefined) {
10190
+ this.sessionId = data.sessionId;
10191
+ }
10192
+ if ("tokenExpiresAt" in data && data.tokenExpiresAt != undefined) {
10193
+ this.tokenExpiresAt = data.tokenExpiresAt;
10194
+ }
10195
+ if ("sessionExpiresAt" in data && data.sessionExpiresAt != undefined) {
10196
+ this.sessionExpiresAt = data.sessionExpiresAt;
10197
+ }
10166
10198
  }
10167
10199
  }
10168
10200
  get businessContextToken() {
@@ -10234,6 +10266,30 @@ var com;
10234
10266
  get hasVirtualAccount() {
10235
10267
  return pb_1.Message.getField(this, 10) != null;
10236
10268
  }
10269
+ get token() {
10270
+ return pb_1.Message.getFieldWithDefault(this, 11, "");
10271
+ }
10272
+ set token(value) {
10273
+ pb_1.Message.setField(this, 11, value);
10274
+ }
10275
+ get sessionId() {
10276
+ return pb_1.Message.getFieldWithDefault(this, 12, "");
10277
+ }
10278
+ set sessionId(value) {
10279
+ pb_1.Message.setField(this, 12, value);
10280
+ }
10281
+ get tokenExpiresAt() {
10282
+ return pb_1.Message.getFieldWithDefault(this, 13, "");
10283
+ }
10284
+ set tokenExpiresAt(value) {
10285
+ pb_1.Message.setField(this, 13, value);
10286
+ }
10287
+ get sessionExpiresAt() {
10288
+ return pb_1.Message.getFieldWithDefault(this, 14, "");
10289
+ }
10290
+ set sessionExpiresAt(value) {
10291
+ pb_1.Message.setField(this, 14, value);
10292
+ }
10237
10293
  static fromObject(data) {
10238
10294
  const message = new BusinessContextData({});
10239
10295
  if (data.businessContextToken != null) {
@@ -10266,6 +10322,18 @@ var com;
10266
10322
  if (data.virtualAccount != null) {
10267
10323
  message.virtualAccount = VirtualAccountInfo.fromObject(data.virtualAccount);
10268
10324
  }
10325
+ if (data.token != null) {
10326
+ message.token = data.token;
10327
+ }
10328
+ if (data.sessionId != null) {
10329
+ message.sessionId = data.sessionId;
10330
+ }
10331
+ if (data.tokenExpiresAt != null) {
10332
+ message.tokenExpiresAt = data.tokenExpiresAt;
10333
+ }
10334
+ if (data.sessionExpiresAt != null) {
10335
+ message.sessionExpiresAt = data.sessionExpiresAt;
10336
+ }
10269
10337
  return message;
10270
10338
  }
10271
10339
  toObject() {
@@ -10300,6 +10368,18 @@ var com;
10300
10368
  if (this.virtualAccount != null) {
10301
10369
  data.virtualAccount = this.virtualAccount.toObject();
10302
10370
  }
10371
+ if (this.token != null) {
10372
+ data.token = this.token;
10373
+ }
10374
+ if (this.sessionId != null) {
10375
+ data.sessionId = this.sessionId;
10376
+ }
10377
+ if (this.tokenExpiresAt != null) {
10378
+ data.tokenExpiresAt = this.tokenExpiresAt;
10379
+ }
10380
+ if (this.sessionExpiresAt != null) {
10381
+ data.sessionExpiresAt = this.sessionExpiresAt;
10382
+ }
10303
10383
  return data;
10304
10384
  }
10305
10385
  serialize(w) {
@@ -10324,6 +10404,14 @@ var com;
10324
10404
  writer.writeString(9, this.processorName);
10325
10405
  if (this.hasVirtualAccount)
10326
10406
  writer.writeMessage(10, this.virtualAccount, () => this.virtualAccount.serialize(writer));
10407
+ if (this.token.length)
10408
+ writer.writeString(11, this.token);
10409
+ if (this.sessionId.length)
10410
+ writer.writeString(12, this.sessionId);
10411
+ if (this.tokenExpiresAt.length)
10412
+ writer.writeString(13, this.tokenExpiresAt);
10413
+ if (this.sessionExpiresAt.length)
10414
+ writer.writeString(14, this.sessionExpiresAt);
10327
10415
  if (!w)
10328
10416
  return writer.getResultBuffer();
10329
10417
  }
@@ -10363,6 +10451,18 @@ var com;
10363
10451
  case 10:
10364
10452
  reader.readMessage(message.virtualAccount, () => message.virtualAccount = VirtualAccountInfo.deserialize(reader));
10365
10453
  break;
10454
+ case 11:
10455
+ message.token = reader.readString();
10456
+ break;
10457
+ case 12:
10458
+ message.sessionId = reader.readString();
10459
+ break;
10460
+ case 13:
10461
+ message.tokenExpiresAt = reader.readString();
10462
+ break;
10463
+ case 14:
10464
+ message.sessionExpiresAt = reader.readString();
10465
+ break;
10366
10466
  default: reader.skipField();
10367
10467
  }
10368
10468
  }
package/types/index.d.ts CHANGED
@@ -41,3 +41,4 @@ declare const proto: {
41
41
  };
42
42
  };
43
43
  export { proto };
44
+ export { proto };
@@ -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;
@@ -3629,6 +3634,10 @@ export declare namespace com.pkg.posv1.terminals {
3629
3634
  processorTid?: string;
3630
3635
  processorName?: string;
3631
3636
  virtualAccount?: VirtualAccountInfo;
3637
+ token?: string;
3638
+ sessionId?: string;
3639
+ tokenExpiresAt?: string;
3640
+ sessionExpiresAt?: string;
3632
3641
  });
3633
3642
  get businessContextToken(): string;
3634
3643
  set businessContextToken(value: string);
@@ -3653,6 +3662,14 @@ export declare namespace com.pkg.posv1.terminals {
3653
3662
  get virtualAccount(): VirtualAccountInfo;
3654
3663
  set virtualAccount(value: VirtualAccountInfo);
3655
3664
  get hasVirtualAccount(): boolean;
3665
+ get token(): string;
3666
+ set token(value: string);
3667
+ get sessionId(): string;
3668
+ set sessionId(value: string);
3669
+ get tokenExpiresAt(): string;
3670
+ set tokenExpiresAt(value: string);
3671
+ get sessionExpiresAt(): string;
3672
+ set sessionExpiresAt(value: string);
3656
3673
  static fromObject(data: {
3657
3674
  businessContextToken?: string;
3658
3675
  businessId?: string;
@@ -3664,6 +3681,10 @@ export declare namespace com.pkg.posv1.terminals {
3664
3681
  processorTid?: string;
3665
3682
  processorName?: string;
3666
3683
  virtualAccount?: ReturnType<typeof VirtualAccountInfo.prototype.toObject>;
3684
+ token?: string;
3685
+ sessionId?: string;
3686
+ tokenExpiresAt?: string;
3687
+ sessionExpiresAt?: string;
3667
3688
  }): BusinessContextData;
3668
3689
  toObject(): {
3669
3690
  businessContextToken?: string | undefined;
@@ -3702,6 +3723,10 @@ export declare namespace com.pkg.posv1.terminals {
3702
3723
  accountNumber?: string | undefined;
3703
3724
  merchantName?: string | undefined;
3704
3725
  } | undefined;
3726
+ token?: string | undefined;
3727
+ sessionId?: string | undefined;
3728
+ tokenExpiresAt?: string | undefined;
3729
+ sessionExpiresAt?: string | undefined;
3705
3730
  };
3706
3731
  serialize(): Uint8Array;
3707
3732
  serialize(w: pb_1.BinaryWriter): void;
@@ -7226,6 +7251,10 @@ export declare namespace com.pkg.posv1.terminals {
7226
7251
  accountNumber?: string | undefined;
7227
7252
  merchantName?: string | undefined;
7228
7253
  } | undefined;
7254
+ token?: string | undefined;
7255
+ sessionId?: string | undefined;
7256
+ tokenExpiresAt?: string | undefined;
7257
+ sessionExpiresAt?: string | undefined;
7229
7258
  } | undefined;
7230
7259
  error?: string | undefined;
7231
7260
  };