@technova-tech/olive-proto-lib 3.0.3 → 3.0.4

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": "3.0.3",
14
+ "version": "3.0.4",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -381,6 +381,12 @@ var com;
381
381
  if ("inStock" in data && data.inStock != undefined) {
382
382
  this.inStock = data.inStock;
383
383
  }
384
+ if ("adminId" in data && data.adminId != undefined) {
385
+ this.adminId = data.adminId;
386
+ }
387
+ if ("dataScope" in data && data.dataScope != undefined) {
388
+ this.dataScope = data.dataScope;
389
+ }
384
390
  }
385
391
  }
386
392
  get status() {
@@ -425,6 +431,18 @@ var com;
425
431
  set inStock(value) {
426
432
  pb_1.Message.setField(this, 7, value);
427
433
  }
434
+ get adminId() {
435
+ return pb_1.Message.getFieldWithDefault(this, 8, "");
436
+ }
437
+ set adminId(value) {
438
+ pb_1.Message.setField(this, 8, value);
439
+ }
440
+ get dataScope() {
441
+ return pb_1.Message.getFieldWithDefault(this, 9, "");
442
+ }
443
+ set dataScope(value) {
444
+ pb_1.Message.setField(this, 9, value);
445
+ }
428
446
  static fromObject(data) {
429
447
  const message = new GetTerminalTypesRequest({});
430
448
  if (data.status != null) {
@@ -448,6 +466,12 @@ var com;
448
466
  if (data.inStock != null) {
449
467
  message.inStock = data.inStock;
450
468
  }
469
+ if (data.adminId != null) {
470
+ message.adminId = data.adminId;
471
+ }
472
+ if (data.dataScope != null) {
473
+ message.dataScope = data.dataScope;
474
+ }
451
475
  return message;
452
476
  }
453
477
  toObject() {
@@ -473,6 +497,12 @@ var com;
473
497
  if (this.inStock != null) {
474
498
  data.inStock = this.inStock;
475
499
  }
500
+ if (this.adminId != null) {
501
+ data.adminId = this.adminId;
502
+ }
503
+ if (this.dataScope != null) {
504
+ data.dataScope = this.dataScope;
505
+ }
476
506
  return data;
477
507
  }
478
508
  serialize(w) {
@@ -491,6 +521,10 @@ var com;
491
521
  writer.writeDouble(6, this.priceMax);
492
522
  if (this.inStock != false)
493
523
  writer.writeBool(7, this.inStock);
524
+ if (this.adminId.length)
525
+ writer.writeString(8, this.adminId);
526
+ if (this.dataScope.length)
527
+ writer.writeString(9, this.dataScope);
494
528
  if (!w)
495
529
  return writer.getResultBuffer();
496
530
  }
@@ -521,6 +555,12 @@ var com;
521
555
  case 7:
522
556
  message.inStock = reader.readBool();
523
557
  break;
558
+ case 8:
559
+ message.adminId = reader.readString();
560
+ break;
561
+ case 9:
562
+ message.dataScope = reader.readString();
563
+ break;
524
564
  default: reader.skipField();
525
565
  }
526
566
  }
@@ -96,6 +96,8 @@ export declare namespace com.pkg.posv1.terminalTypes {
96
96
  priceMin?: number;
97
97
  priceMax?: number;
98
98
  inStock?: boolean;
99
+ adminId?: string;
100
+ dataScope?: string;
99
101
  });
100
102
  get status(): string;
101
103
  set status(value: string);
@@ -111,6 +113,10 @@ export declare namespace com.pkg.posv1.terminalTypes {
111
113
  set priceMax(value: number);
112
114
  get inStock(): boolean;
113
115
  set inStock(value: boolean);
116
+ get adminId(): string;
117
+ set adminId(value: string);
118
+ get dataScope(): string;
119
+ set dataScope(value: string);
114
120
  static fromObject(data: {
115
121
  status?: string;
116
122
  category?: string;
@@ -119,6 +125,8 @@ export declare namespace com.pkg.posv1.terminalTypes {
119
125
  priceMin?: number;
120
126
  priceMax?: number;
121
127
  inStock?: boolean;
128
+ adminId?: string;
129
+ dataScope?: string;
122
130
  }): GetTerminalTypesRequest;
123
131
  toObject(): {
124
132
  status?: string | undefined;
@@ -128,6 +136,8 @@ export declare namespace com.pkg.posv1.terminalTypes {
128
136
  priceMin?: number | undefined;
129
137
  priceMax?: number | undefined;
130
138
  inStock?: boolean | undefined;
139
+ adminId?: string | undefined;
140
+ dataScope?: string | undefined;
131
141
  };
132
142
  serialize(): Uint8Array;
133
143
  serialize(w: pb_1.BinaryWriter): void;