@lansweeper/ot-asset-model 0.0.12 → 0.0.14

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,22 @@
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.14](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/ot-asset-model@0.0.13...@lansweeper/ot-asset-model@0.0.14) (2022-05-12)
7
+
8
+ **Note:** Version bump only for package @lansweeper/ot-asset-model
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.0.13](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/ot-asset-model@0.0.12...@lansweeper/ot-asset-model@0.0.13) (2022-05-12)
15
+
16
+ **Note:** Version bump only for package @lansweeper/ot-asset-model
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.0.12](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/ot-asset-model@0.0.11...@lansweeper/ot-asset-model@0.0.12) (2022-05-11)
7
23
 
8
24
  **Note:** Version bump only for package @lansweeper/ot-asset-model
@@ -7,9 +7,9 @@
7
7
  <Company>Lansweeper</Company>
8
8
  <Product>Lansweeper Syncer</Product>
9
9
  <Copyright>Lansweeper</Copyright>
10
- <PackageVersion>0.0.11</PackageVersion>
11
- <Version>0.0.11</Version>
12
- <FileVersion>0.0.11</FileVersion>
10
+ <PackageVersion>0.0.13</PackageVersion>
11
+ <Version>0.0.13</Version>
12
+ <FileVersion>0.0.13</FileVersion>
13
13
  <RepositoryUrl>https://github.com/Lansweeper/lansweeperapis</RepositoryUrl>
14
14
  </PropertyGroup>
15
15
  <ItemGroup>
@@ -6,7 +6,7 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v6.0": {
9
- "Lansweeper.Model.OTAsset/0.0.11": {
9
+ "Lansweeper.Model.OTAsset/0.0.13": {
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.11": {
17
+ "Lansweeper.Model.OTAsset/0.0.13": {
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.11": {
10
+ "Lansweeper.Model.OTAsset/0.0.13": {
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.11": {
27
+ "Lansweeper.Model.OTAsset/0.0.13": {
28
28
  "type": "project",
29
29
  "serviceable": false,
30
30
  "sha512": ""
@@ -6,23 +6,6 @@
6
6
  "onpremId": "Id",
7
7
  "cloudId": "assetId",
8
8
  "cloudKey": "assetKey",
9
- "unions": [
10
- {
11
- "rootFk": "Id",
12
- "unionPk": "AssetId",
13
- "onpremTable": "Module",
14
- "properties": {
15
- "firmware": {
16
- "onprem": "Firmware",
17
- "type": "string"
18
- },
19
- "componentType": {
20
- "onprem": "ComponentType",
21
- "type": "string"
22
- }
23
- }
24
- }
25
- ],
26
9
  "children": [
27
10
  {
28
11
  "isArray": false,
@@ -45,12 +28,6 @@
45
28
  "properties": {
46
29
  "rackSize": {
47
30
  "type": "float"
48
- },
49
- "firmware": {
50
- "type": "string"
51
- },
52
- "componentType": {
53
- "type": "string"
54
31
  }
55
32
  }
56
33
  },
@@ -58,7 +35,7 @@
58
35
  "cloudEntity": "Module",
59
36
  "onpremTable": "Module",
60
37
  "onpremId": "Id",
61
- "cloudId": "moduleId",
38
+ "cloudId": "id",
62
39
  "parentFk": "AssetId",
63
40
  "propertyName": "modules",
64
41
  "limit": 1000,
@@ -142,6 +119,10 @@
142
119
  "onprem": "SerialNumber",
143
120
  "type": "string"
144
121
  },
122
+ "isMainModule": {
123
+ "onprem": "IsMainModule",
124
+ "type": "boolean"
125
+ },
145
126
  "model": {
146
127
  "onprem": "Model",
147
128
  "type": "string"
@@ -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.11")]
18
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.11")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.13")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.13")]
19
19
  [assembly: System.Reflection.AssemblyProductAttribute("Lansweeper Syncer")]
20
20
  [assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.Model.OTAsset")]
21
- [assembly: System.Reflection.AssemblyVersionAttribute("0.0.11.0")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("0.0.13.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
- ffb15306b870457db27a15d87ba23fa78f9ded77
1
+ 91b2684e5b28ba48a543f6311d5013a1104cfcde
@@ -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.11")]
18
- [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.11")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.13")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.13")]
19
19
  [assembly: System.Reflection.AssemblyProductAttribute("Lansweeper Syncer")]
20
20
  [assembly: System.Reflection.AssemblyTitleAttribute("Lansweeper.Model.OTAsset")]
21
- [assembly: System.Reflection.AssemblyVersionAttribute("0.0.11.0")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("0.0.13.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
- ffb15306b870457db27a15d87ba23fa78f9ded77
1
+ 91b2684e5b28ba48a543f6311d5013a1104cfcde
@@ -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.11",
8
+ "version": "0.0.13",
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.11",
188
+ "version": "0.0.13",
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": "sDMVFmcd4vTm1Qg+wwtk4p7hujLir6XH0r+tiEcOqmKc01/gt58TMLXcWhwmtGnbWgrBZt4eyvpUKqGqHR0lUw==",
3
+ "dgSpecHash": "UvGVLyHbhFHvL/v7SpNYOcmKxtkelVwAcWtrEWQvUyBiD+V3beou7oyuVGCGF66x9IOusGpQ0DJqHSS2ojzyOg==",
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.12",
3
+ "version": "0.0.14",
4
4
  "description": "OT Asset model",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -17,5 +17,5 @@
17
17
  "scripts": {
18
18
  "build": "tsc"
19
19
  },
20
- "gitHead": "58f9266ca269b740a5e71272ec211e1d586d8b0b"
20
+ "gitHead": "71ab0c66509816bff531cd9f406cff749b77c546"
21
21
  }
package/src/ot-model.json CHANGED
@@ -1,234 +1,216 @@
1
1
  [
2
- {
3
- "context": "Asset",
4
- "cloudEntity": "Asset",
5
- "onpremTable": "Asset",
2
+ {
3
+ "context": "Asset",
4
+ "cloudEntity": "Asset",
5
+ "onpremTable": "Asset",
6
+ "onpremId": "Id",
7
+ "cloudId": "assetId",
8
+ "cloudKey": "assetKey",
9
+ "children": [
10
+ {
11
+ "isArray": false,
12
+ "propertyName": "assetCustom",
13
+ "properties": {
14
+ "manufacturer": {
15
+ "type": "string"
16
+ },
17
+ "model": {
18
+ "type": "string"
19
+ },
20
+ "serialNumber": {
21
+ "type": "string"
22
+ }
23
+ }
24
+ },
25
+ {
26
+ "isArray": false,
27
+ "propertyName": "otData",
28
+ "properties": {
29
+ "rackSize": {
30
+ "type": "float"
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "cloudEntity": "Module",
36
+ "onpremTable": "Module",
6
37
  "onpremId": "Id",
7
- "cloudId": "assetId",
8
- "cloudKey": "assetKey",
9
- "unions": [
10
- {
11
- "rootFk": "Id",
12
- "unionPk": "AssetId",
13
- "onpremTable": "Module",
14
- "properties": {
15
- "firmware": {
16
- "onprem": "Firmware",
17
- "type": "string"
18
- },
19
- "componentType": {
20
- "onprem": "ComponentType",
21
- "type": "string"
22
- }
23
- }
24
- }],
38
+ "cloudId": "id",
39
+ "parentFk": "AssetId",
40
+ "propertyName": "modules",
41
+ "limit": 1000,
42
+ "isArray": true,
25
43
  "children": [
26
- {
27
- "isArray": false,
28
- "propertyName": "assetCustom",
29
- "properties": {
30
- "manufacturer": {
31
- "type": "string"
32
- },
33
- "model": {
34
- "type": "string"
35
- },
36
- "serialNumber": {
37
- "type": "string"
38
- }
39
- }
40
- },
41
- {
42
- "isArray": false,
43
- "propertyName": "otData",
44
- "properties": {
45
- "rackSize": {
46
- "type": "float"
47
- },
48
- "firmware": {
49
- "type": "string"
50
- },
51
- "componentType": {
52
- "type": "string"
53
- }
54
- }
55
- },
56
- {
57
- "cloudEntity": "Module",
58
- "onpremTable": "Module",
59
- "onpremId": "Id",
60
- "cloudId": "moduleId",
61
- "parentFk": "AssetId",
62
- "propertyName": "modules",
63
- "limit": 1000,
64
- "isArray": true,
65
- "children": [
66
- {
67
- "cloudEntity": "ExtraField",
68
- "onpremTable": "ModuleExtendedInformation",
69
- "onpremId": "Id",
70
- "cloudId": "extraFieldId",
71
- "parentFk": "ModuleId",
72
- "propertyName": "extraFields",
73
- "limit": 1000,
74
- "isArray": true,
75
- "properties": {
76
- "id": {
77
- "onprem": "Id",
78
- "type": "string"
79
- },
80
- "name": {
81
- "onprem": "Name",
82
- "type": "string"
83
- },
84
- "value": {
85
- "onprem": "Value",
86
- "type": "string"
87
- }
88
- }
89
- },
90
- {
91
- "cloudEntity": "FirmwareHistory",
92
- "onpremTable": "ModuleFirmwareHistory",
93
- "onpremId": "Id",
94
- "cloudId": "firmwareHistoryId",
95
- "parentFk": "ModuleId",
96
- "propertyName": "firmwareHistory",
97
- "limit": 1000,
98
- "isArray": true,
99
- "properties": {
100
- "id": {
101
- "onprem": "Id",
102
- "type": "string"
103
- },
104
- "firmware": {
105
- "onprem": "Firmware",
106
- "type": "string"
107
- },
108
- "from": {
109
- "onprem": "From",
110
- "type": "date-time"
111
- },
112
- "to": {
113
- "onprem": "Until",
114
- "type": "date-time"
115
- }
116
- }
117
- }
118
- ],
119
- "properties": {
120
- "id": {
121
- "onprem": "Id",
122
- "type": "string"
123
- },
124
- "componentType": {
125
- "onprem": "ComponentType",
126
- "type": "string"
127
- },
128
- "name": {
129
- "onprem": "Name",
130
- "type": "string"
131
- },
132
- "manufacturer": {
133
- "onprem": "Manufacturer",
134
- "type": "string"
135
- },
136
- "type": {
137
- "onprem": "Type",
138
- "type": "string"
139
- },
140
- "serialNumber": {
141
- "onprem": "SerialNumber",
142
- "type": "string"
143
- },
144
- "model": {
145
- "onprem": "Model",
146
- "type": "string"
147
- },
148
- "firmware": {
149
- "onprem": "Firmware",
150
- "type": "string"
151
- },
152
- "rack": {
153
- "onprem": "Rack",
154
- "type": "float"
155
- },
156
- "rackName": {
157
- "onprem": "RackName",
158
- "type": "string"
159
- },
160
- "slot": {
161
- "onprem": "Slot",
162
- "type": "float"
163
- },
164
- "slotSize": {
165
- "onprem": "SlotSize",
166
- "type": "float"
167
- }
168
- }
169
- }
170
- ],
171
- "properties": {
172
- "assetId": {
44
+ {
45
+ "cloudEntity": "ExtraField",
46
+ "onpremTable": "ModuleExtendedInformation",
47
+ "onpremId": "Id",
48
+ "cloudId": "extraFieldId",
49
+ "parentFk": "ModuleId",
50
+ "propertyName": "extraFields",
51
+ "limit": 1000,
52
+ "isArray": true,
53
+ "properties": {
54
+ "id": {
173
55
  "onprem": "Id",
174
56
  "type": "string"
175
- },
176
- "ipAddress": {
177
- "onprem": "IPAddress",
178
- "type": "string"
179
- },
180
- "ipNumeric": {
181
- "onprem": "IPNumeric",
182
- "type": "float"
183
- },
184
- "mac": {
185
- "onprem": "Mac",
186
- "type": "string"
187
- },
188
- "assetTypeId": {
189
- "onprem": "AssetTypeId",
190
- "type": "string"
191
- },
192
- "assetName": {
57
+ },
58
+ "name": {
193
59
  "onprem": "Name",
194
60
  "type": "string"
195
- },
196
- "description": {
197
- "onprem": "Description",
61
+ },
62
+ "value": {
63
+ "onprem": "Value",
198
64
  "type": "string"
199
- },
200
- "manufacturer": {
201
- "onprem": "Manufacturer",
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "cloudEntity": "FirmwareHistory",
70
+ "onpremTable": "ModuleFirmwareHistory",
71
+ "onpremId": "Id",
72
+ "cloudId": "firmwareHistoryId",
73
+ "parentFk": "ModuleId",
74
+ "propertyName": "firmwareHistory",
75
+ "limit": 1000,
76
+ "isArray": true,
77
+ "properties": {
78
+ "id": {
79
+ "onprem": "Id",
202
80
  "type": "string"
203
- },
204
- "model": {
205
- "onprem": "Model",
206
- "type": "string"
207
- },
208
- "serialNumber": {
209
- "onprem": "SerialNumber",
81
+ },
82
+ "firmware": {
83
+ "onprem": "Firmware",
210
84
  "type": "string"
211
- },
212
- "rackSize": {
213
- "onprem": "RackSize",
214
- "type": "float"
215
- },
216
- "firstSeen": {
217
- "onprem": "FirstSeen",
85
+ },
86
+ "from": {
87
+ "onprem": "From",
218
88
  "type": "date-time"
219
- },
220
- "lastSeen": {
221
- "onprem": "LastSeen",
222
- "type": "date-time"
223
- },
224
- "lastTried": {
225
- "onprem": "LastTried",
226
- "type": "date-time"
227
- },
228
- "lastChanged": {
229
- "onprem": "LastChanged",
89
+ },
90
+ "to": {
91
+ "onprem": "Until",
230
92
  "type": "date-time"
93
+ }
231
94
  }
95
+ }
96
+ ],
97
+ "properties": {
98
+ "id": {
99
+ "onprem": "Id",
100
+ "type": "string"
101
+ },
102
+ "componentType": {
103
+ "onprem": "ComponentType",
104
+ "type": "string"
105
+ },
106
+ "name": {
107
+ "onprem": "Name",
108
+ "type": "string"
109
+ },
110
+ "manufacturer": {
111
+ "onprem": "Manufacturer",
112
+ "type": "string"
113
+ },
114
+ "type": {
115
+ "onprem": "Type",
116
+ "type": "string"
117
+ },
118
+ "serialNumber": {
119
+ "onprem": "SerialNumber",
120
+ "type": "string"
121
+ },
122
+ "isMainModule": {
123
+ "onprem": "IsMainModule",
124
+ "type": "boolean"
125
+ },
126
+ "model": {
127
+ "onprem": "Model",
128
+ "type": "string"
129
+ },
130
+ "firmware": {
131
+ "onprem": "Firmware",
132
+ "type": "string"
133
+ },
134
+ "rack": {
135
+ "onprem": "Rack",
136
+ "type": "float"
137
+ },
138
+ "rackName": {
139
+ "onprem": "RackName",
140
+ "type": "string"
141
+ },
142
+ "slot": {
143
+ "onprem": "Slot",
144
+ "type": "float"
145
+ },
146
+ "slotSize": {
147
+ "onprem": "SlotSize",
148
+ "type": "float"
149
+ }
232
150
  }
151
+ }
152
+ ],
153
+ "properties": {
154
+ "assetId": {
155
+ "onprem": "Id",
156
+ "type": "string"
157
+ },
158
+ "ipAddress": {
159
+ "onprem": "IPAddress",
160
+ "type": "string"
161
+ },
162
+ "ipNumeric": {
163
+ "onprem": "IPNumeric",
164
+ "type": "float"
165
+ },
166
+ "mac": {
167
+ "onprem": "Mac",
168
+ "type": "string"
169
+ },
170
+ "assetTypeId": {
171
+ "onprem": "AssetTypeId",
172
+ "type": "string"
173
+ },
174
+ "assetName": {
175
+ "onprem": "Name",
176
+ "type": "string"
177
+ },
178
+ "description": {
179
+ "onprem": "Description",
180
+ "type": "string"
181
+ },
182
+ "manufacturer": {
183
+ "onprem": "Manufacturer",
184
+ "type": "string"
185
+ },
186
+ "model": {
187
+ "onprem": "Model",
188
+ "type": "string"
189
+ },
190
+ "serialNumber": {
191
+ "onprem": "SerialNumber",
192
+ "type": "string"
193
+ },
194
+ "rackSize": {
195
+ "onprem": "RackSize",
196
+ "type": "float"
197
+ },
198
+ "firstSeen": {
199
+ "onprem": "FirstSeen",
200
+ "type": "date-time"
201
+ },
202
+ "lastSeen": {
203
+ "onprem": "LastSeen",
204
+ "type": "date-time"
205
+ },
206
+ "lastTried": {
207
+ "onprem": "LastTried",
208
+ "type": "date-time"
209
+ },
210
+ "lastChanged": {
211
+ "onprem": "LastChanged",
212
+ "type": "date-time"
213
+ }
233
214
  }
234
- ]
215
+ }
216
+ ]