Skip to content

Commit aec4765

Browse files
committed
fix(shadow): add metadata
1 parent fb2f733 commit aec4765

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/api/DeviceShadow.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ void describe('DeviceShadow type', () => {
2121
ts: 1697102116821,
2222
},
2323
},
24+
metadata: {
25+
dev: {
26+
v: {
27+
imei: { timestamp: 1697102116821 },
28+
iccid: { timestamp: 1697102116821 },
29+
modV: { timestamp: 1697102116821 },
30+
brdV: { timestamp: 1697102116821 },
31+
appV: { timestamp: 1697102116821 },
32+
},
33+
ts: {
34+
timestamp: 1697102116821,
35+
},
36+
},
37+
},
2438
},
2539
$meta: {
2640
updatedAt: '2023-04-20T07:29:46.467Z',

src/api/DeviceShadow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const DeviceShadow = Type.Object({
2525
Type.Record(Type.String({ minLength: 1 }), Type.Any()),
2626
),
2727
version: Type.Number(),
28+
metadata: Type.Record(Type.String({ minLength: 1 }), Type.Any()),
2829
}),
2930
})
3031

0 commit comments

Comments
 (0)