@medplum/definitions 3.2.32 → 3.3.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/README.md CHANGED
@@ -16,4 +16,4 @@ Medplum is a healthcare platform that helps you quickly develop high-quality com
16
16
 
17
17
  ## License
18
18
 
19
- Apache 2.0. Copyright © Medplum 2024
19
+ Apache 2.0. Copyright © Medplum 2025
@@ -61107,6 +61107,10 @@
61107
61107
  "dataVersion": {
61108
61108
  "description": "The data version of the migration this job represents.",
61109
61109
  "$ref": "#/definitions/integer"
61110
+ },
61111
+ "minServerVersion": {
61112
+ "description": "The minimum Medplum server version required to run this job.",
61113
+ "$ref": "#/definitions/string"
61110
61114
  }
61111
61115
  },
61112
61116
  "additionalProperties": false,
@@ -5218,7 +5218,15 @@
5218
5218
  "path" : "AsyncJob",
5219
5219
  "min" : 0,
5220
5220
  "max" : "*"
5221
- }
5221
+ },
5222
+ "constraint": [
5223
+ {
5224
+ "key" : "ajb-1",
5225
+ "severity" : "error",
5226
+ "human" : "Async jobs of type 'data-migration' require a 'dataVersion' and 'minServerVersion'.",
5227
+ "expression" : "type.exists() and type = 'data-migration' implies dataVersion.exists() and minServerVersion.exists()"
5228
+ }
5229
+ ]
5222
5230
  },
5223
5231
  {
5224
5232
  "id" : "AsyncJob.id",
@@ -5459,6 +5467,21 @@
5459
5467
  "type" : [{
5460
5468
  "code" : "integer"
5461
5469
  }]
5470
+ },
5471
+ {
5472
+ "id" : "AsyncJob.minServerVersion",
5473
+ "path" : "AsyncJob.minServerVersion",
5474
+ "definition" : "The minimum Medplum server version required to run this job.",
5475
+ "min" : 0,
5476
+ "max" : "1",
5477
+ "base" : {
5478
+ "path" : "AsyncJob.minServerVersion",
5479
+ "min" : 0,
5480
+ "max" : "1"
5481
+ },
5482
+ "type" : [{
5483
+ "code" : "string"
5484
+ }]
5462
5485
  }
5463
5486
  ]
5464
5487
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "3.2.32",
3
+ "version": "3.3.0",
4
4
  "description": "Medplum Data Definitions",
5
5
  "keywords": [
6
6
  "medplum",