@lansweeper/ot-asset-model 0.0.31 → 0.0.32

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.32](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/ot-asset-model@0.0.31...@lansweeper/ot-asset-model@0.0.32) (2022-08-18)
7
+
8
+ **Note:** Version bump only for package @lansweeper/ot-asset-model
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.0.31](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/ot-asset-model@0.0.30...@lansweeper/ot-asset-model@0.0.31) (2022-08-17)
7
15
 
8
16
  **Note:** Version bump only for package @lansweeper/ot-asset-model
@@ -7,13 +7,13 @@
7
7
  <Company>Lansweeper</Company>
8
8
  <Product>Lansweeper Syncer</Product>
9
9
  <Copyright>Lansweeper</Copyright>
10
- <PackageVersion>0.0.30</PackageVersion>
11
- <Version>0.0.30</Version>
12
- <FileVersion>0.0.30</FileVersion>
10
+ <PackageVersion>0.0.31</PackageVersion>
11
+ <Version>0.0.31</Version>
12
+ <FileVersion>0.0.31</FileVersion>
13
13
  <RepositoryUrl>https://github.com/Lansweeper/lansweeperapis</RepositoryUrl>
14
14
  </PropertyGroup>
15
15
  <ItemGroup>
16
- <EmbeddedResource Include="src/ot-model.json">
16
+ <EmbeddedResource Include="src/ot-model-query.json">
17
17
  <LogicalName>Lansweeper.Model.OTAsset.Content.json</LogicalName>
18
18
  </EmbeddedResource>
19
19
  </ItemGroup>
@@ -6,7 +6,7 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v6.0": {
9
- "Lansweeper.Model.OTAsset/0.0.30": {
9
+ "Lansweeper.Model.OTAsset/0.0.31": {
10
10
  "runtime": {
11
11
  "Lansweeper.Model.OTAsset.dll": {}
12
12
  }
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "libraries": {
17
- "Lansweeper.Model.OTAsset/0.0.30": {
17
+ "Lansweeper.Model.OTAsset/0.0.31": {
18
18
  "type": "project",
19
19
  "serviceable": false,
20
20
  "sha512": ""
@@ -7,7 +7,7 @@
7
7
  "targets": {
8
8
  ".NETStandard,Version=v2.0": {},
9
9
  ".NETStandard,Version=v2.0/": {
10
- "Lansweeper.Model.OTAsset/0.0.30": {
10
+ "Lansweeper.Model.OTAsset/0.0.31": {
11
11
  "dependencies": {
12
12
  "NETStandard.Library": "2.0.3"
13
13
  },
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "libraries": {
27
- "Lansweeper.Model.OTAsset/0.0.30": {
27
+ "Lansweeper.Model.OTAsset/0.0.31": {
28
28
  "type": "project",
29
29
  "serviceable": false,
30
30
  "sha512": ""
@@ -172,23 +172,6 @@
172
172
  "propertyName": "otLastScans",
173
173
  "limit": 1000,
174
174
  "isArray": true,
175
- "unions": [
176
- {
177
- "rootFk": "ProtocolId",
178
- "unionPk": "Id",
179
- "onpremTable": "Protocol",
180
- "properties": {
181
- "name": {
182
- "onprem": "Name",
183
- "type": "string"
184
- },
185
- "isManufacturerSpecific": {
186
- "onprem": "IsManufacturerSpecific",
187
- "type": "boolean"
188
- }
189
- }
190
- }
191
- ],
192
175
  "properties": {
193
176
  "lastScanId": {
194
177
  "onprem": "Id",
@@ -209,6 +192,14 @@
209
192
  "lastScan": {
210
193
  "onprem": "LastScan",
211
194
  "type": "date-time"
195
+ },
196
+ "name": {
197
+ "onprem": "Name",
198
+ "type": "string"
199
+ },
200
+ "isManufacturerSpecific": {
201
+ "onprem": "IsManufacturerSpecific",
202
+ "type": "boolean"
212
203
  }
213
204
  }
214
205
  }
@@ -245,22 +236,6 @@
245
236
  "onprem": "Description",
246
237
  "type": "string"
247
238
  },
248
- "manufacturer": {
249
- "onprem": "Manufacturer",
250
- "type": "string"
251
- },
252
- "model": {
253
- "onprem": "Model",
254
- "type": "string"
255
- },
256
- "serialNumber": {
257
- "onprem": "SerialNumber",
258
- "type": "string"
259
- },
260
- "rackSize": {
261
- "onprem": "RackSize",
262
- "type": "float"
263
- },
264
239
  "firstSeen": {
265
240
  "onprem": "FirstSeen",
266
241
  "type": "date-time"
@@ -14,11 +14,11 @@ using System.Reflection;
14
14
  [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15
15
  [assembly: System.Reflection.AssemblyCopyrightAttribute("Lansweeper")]
16
16
  [assembly: System.Reflection.AssemblyDescriptionAttribute("More Info : http://www.lansweeper.com")]
17
- [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.30")]
18
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.30")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.31")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.31")]
19
19
  [assembly: System.Reflection.AssemblyProductAttribute("Lansweeper Syncer")]
20
20
  [assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.Model.OTAsset")]
21
- [assembly: System.Reflection.AssemblyVersionAttribute("0.0.30.0")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("0.0.31.0")]
22
22
  [assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Lansweeper/lansweeperapis")]
23
23
 
24
24
  // Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
1
- d6389f1364ba2074491629d6e11db3e6986abc53
1
+ dee17910f1c5cc46bf704c92174faa164aebb434
@@ -14,11 +14,11 @@ using System.Reflection;
14
14
  [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15
15
  [assembly: System.Reflection.AssemblyCopyrightAttribute("Lansweeper")]
16
16
  [assembly: System.Reflection.AssemblyDescriptionAttribute("More Info : http://www.lansweeper.com")]
17
- [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.30")]
18
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.30")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.31")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.31")]
19
19
  [assembly: System.Reflection.AssemblyProductAttribute("Lansweeper Syncer")]
20
20
  [assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.Model.OTAsset")]
21
- [assembly: System.Reflection.AssemblyVersionAttribute("0.0.30.0")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("0.0.31.0")]
22
22
  [assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Lansweeper/lansweeperapis")]
23
23
 
24
24
  // Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
1
- d6389f1364ba2074491629d6e11db3e6986abc53
1
+ dee17910f1c5cc46bf704c92174faa164aebb434
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "projects": {
7
7
  "/home/circleci/project/packages/model/otAsset/Lansweeper.Model.OTAsset.csproj": {
8
- "version": "0.0.30",
8
+ "version": "0.0.31",
9
9
  "restore": {
10
10
  "projectUniqueName": "/home/circleci/project/packages/model/otAsset/Lansweeper.Model.OTAsset.csproj",
11
11
  "projectName": "Lansweeper.Model.OTAsset",
@@ -185,7 +185,7 @@
185
185
  "/home/circleci/.nuget/packages/": {}
186
186
  },
187
187
  "project": {
188
- "version": "0.0.30",
188
+ "version": "0.0.31",
189
189
  "restore": {
190
190
  "projectUniqueName": "/home/circleci/project/packages/model/otAsset/Lansweeper.Model.OTAsset.csproj",
191
191
  "projectName": "Lansweeper.Model.OTAsset",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 2,
3
- "dgSpecHash": "8zsEaYCJlFxT0OcQ8ojR2uXfTTJw9znOC07yQCMpkqeUExOABapknRHG64pmIcyMdscsX0NCjTSTcCF/TI1cUw==",
3
+ "dgSpecHash": "T0yozV8DHcEQmwb5c5vicJAIxykuGkGw1FkE39EMMRrI/rOIhqBBQj4Ct3vRhNWCQX89uY85IXI5KEWtKypKHQ==",
4
4
  "success": true,
5
5
  "projectFilePath": "/home/circleci/project/packages/model/otAsset/Lansweeper.Model.OTAsset.csproj",
6
6
  "expectedPackageFiles": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/ot-asset-model",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "OT Asset model",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -16,5 +16,5 @@
16
16
  "scripts": {
17
17
  "build": "tsc"
18
18
  },
19
- "gitHead": "f317844e0b24567d1059e486fc8733aff90b90c5"
19
+ "gitHead": "e925d9800e6c7a6aed7b6ec0961bca331f8a0294"
20
20
  }
@@ -0,0 +1,246 @@
1
+ [
2
+ {
3
+ "context": "Asset",
4
+ "cloudEntity": "Asset",
5
+ "onpremTable": "Asset",
6
+ "onpremId": "Id",
7
+ "rootId": "Id",
8
+ "cloudId": "assetId",
9
+ "cloudKey": "assetKey",
10
+ "children": [
11
+ {
12
+ "cloudEntity": "Module",
13
+ "onpremTable": "Module",
14
+ "onpremId": "Id",
15
+ "cloudId": "moduleId",
16
+ "rootId": "AssetId",
17
+ "parentFk": "AssetId",
18
+ "propertyName": "modules",
19
+ "limit": 1000,
20
+ "isArray": true,
21
+ "children": [
22
+ {
23
+ "cloudEntity": "ExtraField",
24
+ "onpremTable": "ModuleExtendedInformation",
25
+ "onpremId": "Id",
26
+ "cloudId": "extraFieldId",
27
+ "parentFk": "ModuleId",
28
+ "rootId": "RootId",
29
+ "propertyName": "extraFields",
30
+ "limit": 1000,
31
+ "isArray": true,
32
+ "properties": {
33
+ "extraFieldId": {
34
+ "onprem": "Id",
35
+ "type": "string"
36
+ },
37
+ "name": {
38
+ "onprem": "Name",
39
+ "type": "string"
40
+ },
41
+ "value": {
42
+ "onprem": "Value",
43
+ "type": "string"
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "cloudEntity": "FirmwareHistory",
49
+ "onpremTable": "ModuleFirmwareHistory",
50
+ "onpremId": "Id",
51
+ "cloudId": "firmwareHistoryId",
52
+ "rootId": "RootId",
53
+ "parentFk": "ModuleId",
54
+ "propertyName": "firmwareHistory",
55
+ "limit": 1000,
56
+ "isArray": true,
57
+ "properties": {
58
+ "firmwareHistoryId": {
59
+ "onprem": "Id",
60
+ "type": "string"
61
+ },
62
+ "firmware": {
63
+ "onprem": "Firmware",
64
+ "type": "string"
65
+ },
66
+ "from": {
67
+ "onprem": "From",
68
+ "type": "date-time"
69
+ },
70
+ "to": {
71
+ "onprem": "Until",
72
+ "type": "date-time"
73
+ }
74
+ }
75
+ }
76
+ ],
77
+ "properties": {
78
+ "moduleId": {
79
+ "onprem": "Id",
80
+ "type": "string"
81
+ },
82
+ "componentType": {
83
+ "onprem": "ComponentType",
84
+ "type": "string"
85
+ },
86
+ "name": {
87
+ "onprem": "Name",
88
+ "type": "string"
89
+ },
90
+ "manufacturer": {
91
+ "onprem": "Manufacturer",
92
+ "type": "string"
93
+ },
94
+ "type": {
95
+ "onprem": "Type",
96
+ "type": "string"
97
+ },
98
+ "serialNumber": {
99
+ "onprem": "SerialNumber",
100
+ "type": "string"
101
+ },
102
+ "isMainModule": {
103
+ "onprem": "IsMainModule",
104
+ "type": "boolean"
105
+ },
106
+ "model": {
107
+ "onprem": "Model",
108
+ "type": "string"
109
+ },
110
+ "firmware": {
111
+ "onprem": "Firmware",
112
+ "type": "string"
113
+ },
114
+ "rack": {
115
+ "onprem": "Rack",
116
+ "type": "float"
117
+ },
118
+ "rackName": {
119
+ "onprem": "RackName",
120
+ "type": "string"
121
+ },
122
+ "slot": {
123
+ "onprem": "Slot",
124
+ "type": "float"
125
+ },
126
+ "slotSize": {
127
+ "onprem": "SlotSize",
128
+ "type": "float"
129
+ }
130
+ }
131
+ },
132
+ {
133
+ "cloudEntity": "OTLastScan",
134
+ "onpremTable": "AssetProtocol",
135
+ "onpremId": "Id",
136
+ "cloudId": "lastScanId",
137
+ "parentFk": "AssetId",
138
+ "rootId": "AssetId",
139
+ "propertyName": "otLastScans",
140
+ "limit": 1000,
141
+ "isArray": true,
142
+ "unions": [
143
+ {
144
+ "rootFk": "ProtocolId",
145
+ "unionPk": "Id",
146
+ "onpremTable": "Protocol",
147
+ "properties": {
148
+ "name": {
149
+ "onprem": "Name",
150
+ "type": "string"
151
+ },
152
+ "isManufacturerSpecific": {
153
+ "onprem": "IsManufacturerSpecific",
154
+ "type": "boolean"
155
+ }
156
+ }
157
+ }
158
+ ],
159
+ "properties": {
160
+ "lastScanId": {
161
+ "onprem": "Id",
162
+ "type": "string"
163
+ },
164
+ "ipAddress": {
165
+ "onprem": "IPAddress",
166
+ "type": "string"
167
+ },
168
+ "port": {
169
+ "onprem": "Port",
170
+ "type": "float"
171
+ },
172
+ "lastTried": {
173
+ "onprem": "LastTried",
174
+ "type": "date-time"
175
+ },
176
+ "lastScan": {
177
+ "onprem": "LastScan",
178
+ "type": "date-time"
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ "properties": {
184
+ "assetId": {
185
+ "onprem": "Id",
186
+ "type": "string"
187
+ },
188
+ "ipAddress": {
189
+ "onprem": "IPAddress",
190
+ "type": "string"
191
+ },
192
+ "ipNumeric": {
193
+ "onprem": "IPNumeric",
194
+ "type": "float"
195
+ },
196
+ "mac": {
197
+ "onprem": "Mac",
198
+ "type": "string"
199
+ },
200
+ "assetTypeId": {
201
+ "onprem": "AssetTypeId",
202
+ "type": "string"
203
+ },
204
+ "assetName": {
205
+ "onprem": "Name",
206
+ "type": "string"
207
+ },
208
+ "description": {
209
+ "onprem": "Description",
210
+ "type": "string"
211
+ },
212
+ "manufacturer": {
213
+ "onprem": "Manufacturer",
214
+ "type": "string"
215
+ },
216
+ "model": {
217
+ "onprem": "Model",
218
+ "type": "string"
219
+ },
220
+ "serialNumber": {
221
+ "onprem": "SerialNumber",
222
+ "type": "string"
223
+ },
224
+ "rackSize": {
225
+ "onprem": "RackSize",
226
+ "type": "float"
227
+ },
228
+ "firstSeen": {
229
+ "onprem": "FirstSeen",
230
+ "type": "date-time"
231
+ },
232
+ "lastSeen": {
233
+ "onprem": "LastSeen",
234
+ "type": "date-time"
235
+ },
236
+ "lastTried": {
237
+ "onprem": "LastTried",
238
+ "type": "date-time"
239
+ },
240
+ "lastChanged": {
241
+ "onprem": "LastChanged",
242
+ "type": "date-time"
243
+ }
244
+ }
245
+ }
246
+ ]
package/src/ot-model.json CHANGED
@@ -172,23 +172,6 @@
172
172
  "propertyName": "otLastScans",
173
173
  "limit": 1000,
174
174
  "isArray": true,
175
- "unions": [
176
- {
177
- "rootFk": "ProtocolId",
178
- "unionPk": "Id",
179
- "onpremTable": "Protocol",
180
- "properties": {
181
- "name": {
182
- "onprem": "Name",
183
- "type": "string"
184
- },
185
- "isManufacturerSpecific": {
186
- "onprem": "IsManufacturerSpecific",
187
- "type": "boolean"
188
- }
189
- }
190
- }
191
- ],
192
175
  "properties": {
193
176
  "lastScanId": {
194
177
  "onprem": "Id",
@@ -209,6 +192,14 @@
209
192
  "lastScan": {
210
193
  "onprem": "LastScan",
211
194
  "type": "date-time"
195
+ },
196
+ "name": {
197
+ "onprem": "Name",
198
+ "type": "string"
199
+ },
200
+ "isManufacturerSpecific": {
201
+ "onprem": "IsManufacturerSpecific",
202
+ "type": "boolean"
212
203
  }
213
204
  }
214
205
  }
@@ -245,22 +236,6 @@
245
236
  "onprem": "Description",
246
237
  "type": "string"
247
238
  },
248
- "manufacturer": {
249
- "onprem": "Manufacturer",
250
- "type": "string"
251
- },
252
- "model": {
253
- "onprem": "Model",
254
- "type": "string"
255
- },
256
- "serialNumber": {
257
- "onprem": "SerialNumber",
258
- "type": "string"
259
- },
260
- "rackSize": {
261
- "onprem": "RackSize",
262
- "type": "float"
263
- },
264
239
  "firstSeen": {
265
240
  "onprem": "FirstSeen",
266
241
  "type": "date-time"