@technova-tech/olive-proto-lib 2.0.5 → 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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.0.5",
14
+ "version": "2.0.7",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -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
  }
@@ -10195,6 +10225,12 @@ var com;
10195
10225
  if ("sessionExpiresAt" in data && data.sessionExpiresAt != undefined) {
10196
10226
  this.sessionExpiresAt = data.sessionExpiresAt;
10197
10227
  }
10228
+ if ("ownerType" in data && data.ownerType != undefined) {
10229
+ this.ownerType = data.ownerType;
10230
+ }
10231
+ if ("ownerId" in data && data.ownerId != undefined) {
10232
+ this.ownerId = data.ownerId;
10233
+ }
10198
10234
  }
10199
10235
  }
10200
10236
  get businessContextToken() {
@@ -10290,6 +10326,18 @@ var com;
10290
10326
  set sessionExpiresAt(value) {
10291
10327
  pb_1.Message.setField(this, 14, value);
10292
10328
  }
10329
+ get ownerType() {
10330
+ return pb_1.Message.getFieldWithDefault(this, 15, "");
10331
+ }
10332
+ set ownerType(value) {
10333
+ pb_1.Message.setField(this, 15, value);
10334
+ }
10335
+ get ownerId() {
10336
+ return pb_1.Message.getFieldWithDefault(this, 16, "");
10337
+ }
10338
+ set ownerId(value) {
10339
+ pb_1.Message.setField(this, 16, value);
10340
+ }
10293
10341
  static fromObject(data) {
10294
10342
  const message = new BusinessContextData({});
10295
10343
  if (data.businessContextToken != null) {
@@ -10334,6 +10382,12 @@ var com;
10334
10382
  if (data.sessionExpiresAt != null) {
10335
10383
  message.sessionExpiresAt = data.sessionExpiresAt;
10336
10384
  }
10385
+ if (data.ownerType != null) {
10386
+ message.ownerType = data.ownerType;
10387
+ }
10388
+ if (data.ownerId != null) {
10389
+ message.ownerId = data.ownerId;
10390
+ }
10337
10391
  return message;
10338
10392
  }
10339
10393
  toObject() {
@@ -10380,6 +10434,12 @@ var com;
10380
10434
  if (this.sessionExpiresAt != null) {
10381
10435
  data.sessionExpiresAt = this.sessionExpiresAt;
10382
10436
  }
10437
+ if (this.ownerType != null) {
10438
+ data.ownerType = this.ownerType;
10439
+ }
10440
+ if (this.ownerId != null) {
10441
+ data.ownerId = this.ownerId;
10442
+ }
10383
10443
  return data;
10384
10444
  }
10385
10445
  serialize(w) {
@@ -10412,6 +10472,10 @@ var com;
10412
10472
  writer.writeString(13, this.tokenExpiresAt);
10413
10473
  if (this.sessionExpiresAt.length)
10414
10474
  writer.writeString(14, this.sessionExpiresAt);
10475
+ if (this.ownerType.length)
10476
+ writer.writeString(15, this.ownerType);
10477
+ if (this.ownerId.length)
10478
+ writer.writeString(16, this.ownerId);
10415
10479
  if (!w)
10416
10480
  return writer.getResultBuffer();
10417
10481
  }
@@ -10463,6 +10527,12 @@ var com;
10463
10527
  case 14:
10464
10528
  message.sessionExpiresAt = reader.readString();
10465
10529
  break;
10530
+ case 15:
10531
+ message.ownerType = reader.readString();
10532
+ break;
10533
+ case 16:
10534
+ message.ownerId = reader.readString();
10535
+ break;
10466
10536
  default: reader.skipField();
10467
10537
  }
10468
10538
  }
@@ -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;
@@ -3638,6 +3646,8 @@ export declare namespace com.pkg.posv1.terminals {
3638
3646
  sessionId?: string;
3639
3647
  tokenExpiresAt?: string;
3640
3648
  sessionExpiresAt?: string;
3649
+ ownerType?: string;
3650
+ ownerId?: string;
3641
3651
  });
3642
3652
  get businessContextToken(): string;
3643
3653
  set businessContextToken(value: string);
@@ -3670,6 +3680,10 @@ export declare namespace com.pkg.posv1.terminals {
3670
3680
  set tokenExpiresAt(value: string);
3671
3681
  get sessionExpiresAt(): string;
3672
3682
  set sessionExpiresAt(value: string);
3683
+ get ownerType(): string;
3684
+ set ownerType(value: string);
3685
+ get ownerId(): string;
3686
+ set ownerId(value: string);
3673
3687
  static fromObject(data: {
3674
3688
  businessContextToken?: string;
3675
3689
  businessId?: string;
@@ -3685,6 +3699,8 @@ export declare namespace com.pkg.posv1.terminals {
3685
3699
  sessionId?: string;
3686
3700
  tokenExpiresAt?: string;
3687
3701
  sessionExpiresAt?: string;
3702
+ ownerType?: string;
3703
+ ownerId?: string;
3688
3704
  }): BusinessContextData;
3689
3705
  toObject(): {
3690
3706
  businessContextToken?: string | undefined;
@@ -3727,6 +3743,8 @@ export declare namespace com.pkg.posv1.terminals {
3727
3743
  sessionId?: string | undefined;
3728
3744
  tokenExpiresAt?: string | undefined;
3729
3745
  sessionExpiresAt?: string | undefined;
3746
+ ownerType?: string | undefined;
3747
+ ownerId?: string | undefined;
3730
3748
  };
3731
3749
  serialize(): Uint8Array;
3732
3750
  serialize(w: pb_1.BinaryWriter): void;
@@ -7255,6 +7273,8 @@ export declare namespace com.pkg.posv1.terminals {
7255
7273
  sessionId?: string | undefined;
7256
7274
  tokenExpiresAt?: string | undefined;
7257
7275
  sessionExpiresAt?: string | undefined;
7276
+ ownerType?: string | undefined;
7277
+ ownerId?: string | undefined;
7258
7278
  } | undefined;
7259
7279
  error?: string | undefined;
7260
7280
  };