@openmdm/core 0.3.0 → 0.4.0
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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -1
- package/dist/types.d.ts +3 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/schema.ts +1 -0
- package/src/types.ts +3 -0
package/package.json
CHANGED
package/src/schema.ts
CHANGED
|
@@ -107,6 +107,7 @@ export const mdmSchema: SchemaDefinition = {
|
|
|
107
107
|
nullable: true,
|
|
108
108
|
references: { table: 'mdm_policies', column: 'id', onDelete: 'set null' },
|
|
109
109
|
},
|
|
110
|
+
agent_version: { type: 'string', nullable: true }, // MDM agent version installed on device
|
|
110
111
|
last_heartbeat: { type: 'datetime', nullable: true },
|
|
111
112
|
last_sync: { type: 'datetime', nullable: true },
|
|
112
113
|
|
package/src/types.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface Device {
|
|
|
28
28
|
|
|
29
29
|
// MDM State
|
|
30
30
|
policyId?: string | null;
|
|
31
|
+
agentVersion?: string | null; // MDM agent version installed on device
|
|
31
32
|
lastHeartbeat?: Date | null;
|
|
32
33
|
lastSync?: Date | null;
|
|
33
34
|
|
|
@@ -80,6 +81,7 @@ export interface UpdateDeviceInput {
|
|
|
80
81
|
externalId?: string | null;
|
|
81
82
|
status?: DeviceStatus;
|
|
82
83
|
policyId?: string | null;
|
|
84
|
+
agentVersion?: string | null;
|
|
83
85
|
model?: string;
|
|
84
86
|
manufacturer?: string;
|
|
85
87
|
osVersion?: string;
|
|
@@ -374,6 +376,7 @@ export type CommandType =
|
|
|
374
376
|
| 'setTimeZone' // Set device timezone
|
|
375
377
|
| 'enableAdb' // Enable/disable ADB debugging
|
|
376
378
|
| 'rollbackApp' // Rollback to previous app version
|
|
379
|
+
| 'updateAgent' // Update MDM agent to a new version
|
|
377
380
|
| 'custom';
|
|
378
381
|
|
|
379
382
|
export type CommandStatus =
|