@aceplus/smartace-api 3.4.0-alpha.9 → 3.5.0-alpha.1

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
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.4.0-alpha.9",
8
+ "version": "3.5.0-alpha.1",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -489,8 +489,8 @@ export namespace AssetProto {
489
489
  getComponentIdentifier(): ComponentIdentifierMap[keyof ComponentIdentifierMap];
490
490
  setComponentIdentifier(value: ComponentIdentifierMap[keyof ComponentIdentifierMap]): void;
491
491
 
492
- getDomain(): string;
493
- setDomain(value: string): void;
492
+ getComponentId(): string;
493
+ setComponentId(value: string): void;
494
494
 
495
495
  getComponentClass(): string;
496
496
  setComponentClass(value: string): void;
@@ -515,6 +515,8 @@ export namespace AssetProto {
515
515
 
516
516
  getAttributesMap(): jspb.Map<string, string>;
517
517
  clearAttributesMap(): void;
518
+ getMetadataMap(): jspb.Map<string, string>;
519
+ clearMetadataMap(): void;
518
520
  serializeBinary(): Uint8Array;
519
521
  toObject(includeInstance?: boolean): ComponentState.AsObject;
520
522
  static toObject(includeInstance: boolean, msg: ComponentState): ComponentState.AsObject;
@@ -529,13 +531,14 @@ export namespace AssetProto {
529
531
  export type AsObject = {
530
532
  id: string,
531
533
  componentIdentifier: ComponentIdentifierMap[keyof ComponentIdentifierMap],
532
- domain: string,
534
+ componentId: string,
533
535
  componentClass: string,
534
536
  value: string,
535
537
  lastChanged?: google_protobuf_timestamp_pb.Timestamp.AsObject,
536
538
  lastUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
537
539
  lastReported?: google_protobuf_timestamp_pb.Timestamp.AsObject,
538
540
  attributesMap: Array<[string, string]>,
541
+ metadataMap: Array<[string, string]>,
539
542
  }
540
543
  }
541
544
 
package/spic.asset_pb.js CHANGED
@@ -3396,13 +3396,14 @@ proto.Spic.AssetProto.ComponentState.toObject = function(includeInstance, msg) {
3396
3396
  var f, obj = {
3397
3397
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3398
3398
  componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
3399
- domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
3399
+ componentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
3400
3400
  componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
3401
3401
  value: jspb.Message.getFieldWithDefault(msg, 5, ""),
3402
3402
  lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3403
3403
  lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3404
3404
  lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3405
- attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
3405
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
3406
+ metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : []
3406
3407
  };
3407
3408
 
3408
3409
  if (includeInstance) {
@@ -3449,7 +3450,7 @@ proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg,
3449
3450
  break;
3450
3451
  case 3:
3451
3452
  var value = /** @type {string} */ (reader.readString());
3452
- msg.setDomain(value);
3453
+ msg.setComponentId(value);
3453
3454
  break;
3454
3455
  case 4:
3455
3456
  var value = /** @type {string} */ (reader.readString());
@@ -3480,6 +3481,12 @@ proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg,
3480
3481
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3481
3482
  });
3482
3483
  break;
3484
+ case 10:
3485
+ var value = msg.getMetadataMap();
3486
+ reader.readMessage(value, function(message, reader) {
3487
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3488
+ });
3489
+ break;
3483
3490
  default:
3484
3491
  reader.skipField();
3485
3492
  break;
@@ -3523,7 +3530,7 @@ proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter = function(message,
3523
3530
  f
3524
3531
  );
3525
3532
  }
3526
- f = message.getDomain();
3533
+ f = message.getComponentId();
3527
3534
  if (f.length > 0) {
3528
3535
  writer.writeString(
3529
3536
  3,
@@ -3572,6 +3579,10 @@ proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter = function(message,
3572
3579
  if (f && f.getLength() > 0) {
3573
3580
  f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3574
3581
  }
3582
+ f = message.getMetadataMap(true);
3583
+ if (f && f.getLength() > 0) {
3584
+ f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3585
+ }
3575
3586
  };
3576
3587
 
3577
3588
 
@@ -3612,10 +3623,10 @@ proto.Spic.AssetProto.ComponentState.prototype.setComponentIdentifier = function
3612
3623
 
3613
3624
 
3614
3625
  /**
3615
- * optional string domain = 3;
3626
+ * optional string component_id = 3;
3616
3627
  * @return {string}
3617
3628
  */
3618
- proto.Spic.AssetProto.ComponentState.prototype.getDomain = function() {
3629
+ proto.Spic.AssetProto.ComponentState.prototype.getComponentId = function() {
3619
3630
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3620
3631
  };
3621
3632
 
@@ -3624,7 +3635,7 @@ proto.Spic.AssetProto.ComponentState.prototype.getDomain = function() {
3624
3635
  * @param {string} value
3625
3636
  * @return {!proto.Spic.AssetProto.ComponentState} returns this
3626
3637
  */
3627
- proto.Spic.AssetProto.ComponentState.prototype.setDomain = function(value) {
3638
+ proto.Spic.AssetProto.ComponentState.prototype.setComponentId = function(value) {
3628
3639
  return jspb.Message.setProto3StringField(this, 3, value);
3629
3640
  };
3630
3641
 
@@ -3799,6 +3810,29 @@ proto.Spic.AssetProto.ComponentState.prototype.clearAttributesMap = function() {
3799
3810
  };
3800
3811
 
3801
3812
 
3813
+ /**
3814
+ * map<string, string> metadata = 10;
3815
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3816
+ * empty, instead returning `undefined`
3817
+ * @return {!jspb.Map<string,string>}
3818
+ */
3819
+ proto.Spic.AssetProto.ComponentState.prototype.getMetadataMap = function(opt_noLazyCreate) {
3820
+ return /** @type {!jspb.Map<string,string>} */ (
3821
+ jspb.Message.getMapField(this, 10, opt_noLazyCreate,
3822
+ null));
3823
+ };
3824
+
3825
+
3826
+ /**
3827
+ * Clears values from the map. The map will be non-null.
3828
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3829
+ */
3830
+ proto.Spic.AssetProto.ComponentState.prototype.clearMetadataMap = function() {
3831
+ this.getMetadataMap().clear();
3832
+ return this;
3833
+ };
3834
+
3835
+
3802
3836
  /**
3803
3837
  * optional int64 id = 1;
3804
3838
  * @return {number}
@@ -0,0 +1,142 @@
1
+ // package: Spic
2
+ // file: spic.history.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
6
+ import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
+
8
+ export class HistoryProto extends jspb.Message {
9
+ serializeBinary(): Uint8Array;
10
+ toObject(includeInstance?: boolean): HistoryProto.AsObject;
11
+ static toObject(includeInstance: boolean, msg: HistoryProto): HistoryProto.AsObject;
12
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
13
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14
+ static serializeBinaryToWriter(message: HistoryProto, writer: jspb.BinaryWriter): void;
15
+ static deserializeBinary(bytes: Uint8Array): HistoryProto;
16
+ static deserializeBinaryFromReader(message: HistoryProto, reader: jspb.BinaryReader): HistoryProto;
17
+ }
18
+
19
+ export namespace HistoryProto {
20
+ export type AsObject = {
21
+ }
22
+
23
+ export class StateSnapshot extends jspb.Message {
24
+ getValue(): string;
25
+ setValue(value: string): void;
26
+
27
+ getMetadataMap(): jspb.Map<string, string>;
28
+ clearMetadataMap(): void;
29
+ hasDateTime(): boolean;
30
+ clearDateTime(): void;
31
+ getDateTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
32
+ setDateTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
33
+
34
+ serializeBinary(): Uint8Array;
35
+ toObject(includeInstance?: boolean): StateSnapshot.AsObject;
36
+ static toObject(includeInstance: boolean, msg: StateSnapshot): StateSnapshot.AsObject;
37
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
38
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
39
+ static serializeBinaryToWriter(message: StateSnapshot, writer: jspb.BinaryWriter): void;
40
+ static deserializeBinary(bytes: Uint8Array): StateSnapshot;
41
+ static deserializeBinaryFromReader(message: StateSnapshot, reader: jspb.BinaryReader): StateSnapshot;
42
+ }
43
+
44
+ export namespace StateSnapshot {
45
+ export type AsObject = {
46
+ value: string,
47
+ metadataMap: Array<[string, string]>,
48
+ dateTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
49
+ }
50
+ }
51
+
52
+ export class ComponentHistory extends jspb.Message {
53
+ clearStatesList(): void;
54
+ getStatesList(): Array<HistoryProto.StateSnapshot>;
55
+ setStatesList(value: Array<HistoryProto.StateSnapshot>): void;
56
+ addStates(value?: HistoryProto.StateSnapshot, index?: number): HistoryProto.StateSnapshot;
57
+
58
+ getComponentId(): string;
59
+ setComponentId(value: string): void;
60
+
61
+ getComponentClass(): string;
62
+ setComponentClass(value: string): void;
63
+
64
+ getAttributesMap(): jspb.Map<string, string>;
65
+ clearAttributesMap(): void;
66
+ getInitialValue(): string;
67
+ setInitialValue(value: string): void;
68
+
69
+ serializeBinary(): Uint8Array;
70
+ toObject(includeInstance?: boolean): ComponentHistory.AsObject;
71
+ static toObject(includeInstance: boolean, msg: ComponentHistory): ComponentHistory.AsObject;
72
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
73
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
74
+ static serializeBinaryToWriter(message: ComponentHistory, writer: jspb.BinaryWriter): void;
75
+ static deserializeBinary(bytes: Uint8Array): ComponentHistory;
76
+ static deserializeBinaryFromReader(message: ComponentHistory, reader: jspb.BinaryReader): ComponentHistory;
77
+ }
78
+
79
+ export namespace ComponentHistory {
80
+ export type AsObject = {
81
+ statesList: Array<HistoryProto.StateSnapshot.AsObject>,
82
+ componentId: string,
83
+ componentClass: string,
84
+ attributesMap: Array<[string, string]>,
85
+ initialValue: string,
86
+ }
87
+ }
88
+
89
+ export class SearchRequest extends jspb.Message {
90
+ clearComponentIdList(): void;
91
+ getComponentIdList(): Array<string>;
92
+ setComponentIdList(value: Array<string>): void;
93
+ addComponentId(value: string, index?: number): string;
94
+
95
+ hasDateFrom(): boolean;
96
+ clearDateFrom(): void;
97
+ getDateFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
98
+ setDateFrom(value?: google_protobuf_timestamp_pb.Timestamp): void;
99
+
100
+ hasDateTo(): boolean;
101
+ clearDateTo(): void;
102
+ getDateTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
103
+ setDateTo(value?: google_protobuf_timestamp_pb.Timestamp): void;
104
+
105
+ serializeBinary(): Uint8Array;
106
+ toObject(includeInstance?: boolean): SearchRequest.AsObject;
107
+ static toObject(includeInstance: boolean, msg: SearchRequest): SearchRequest.AsObject;
108
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
109
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
110
+ static serializeBinaryToWriter(message: SearchRequest, writer: jspb.BinaryWriter): void;
111
+ static deserializeBinary(bytes: Uint8Array): SearchRequest;
112
+ static deserializeBinaryFromReader(message: SearchRequest, reader: jspb.BinaryReader): SearchRequest;
113
+ }
114
+
115
+ export namespace SearchRequest {
116
+ export type AsObject = {
117
+ componentIdList: Array<string>,
118
+ dateFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
119
+ dateTo?: google_protobuf_timestamp_pb.Timestamp.AsObject,
120
+ }
121
+ }
122
+
123
+ export class SearchReply extends jspb.Message {
124
+ getComponentsMap(): jspb.Map<string, HistoryProto.ComponentHistory>;
125
+ clearComponentsMap(): void;
126
+ serializeBinary(): Uint8Array;
127
+ toObject(includeInstance?: boolean): SearchReply.AsObject;
128
+ static toObject(includeInstance: boolean, msg: SearchReply): SearchReply.AsObject;
129
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
130
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
131
+ static serializeBinaryToWriter(message: SearchReply, writer: jspb.BinaryWriter): void;
132
+ static deserializeBinary(bytes: Uint8Array): SearchReply;
133
+ static deserializeBinaryFromReader(message: SearchReply, reader: jspb.BinaryReader): SearchReply;
134
+ }
135
+
136
+ export namespace SearchReply {
137
+ export type AsObject = {
138
+ componentsMap: Array<[string, HistoryProto.ComponentHistory.AsObject]>,
139
+ }
140
+ }
141
+ }
142
+