@appsemble/types 0.19.13 → 0.19.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/dist/index.d.ts CHANGED
@@ -382,11 +382,21 @@ interface ResourceReference {
382
382
  update?: ResourceReferenceAction;
383
383
  delete?: ResourceReferenceAction;
384
384
  }
385
+ export interface ResourceHistoryDefinition {
386
+ /**
387
+ * If set to `false`, edits are still tracked, but exactly what changed is lost.
388
+ */
389
+ data: boolean;
390
+ }
385
391
  export interface ResourceDefinition {
386
392
  /**
387
393
  * The default list of roles used for permission checks for each action.
388
394
  */
389
395
  roles?: string[];
396
+ /**
397
+ * A definition of how versioning should happen for instances of this resource.
398
+ */
399
+ history?: ResourceHistoryDefinition | boolean;
390
400
  /**
391
401
  * The definition for the `resource.create` action.
392
402
  */
@@ -40,3 +40,8 @@ export interface ResourceAuthor {
40
40
  */
41
41
  name: string;
42
42
  }
43
+ export interface ResourceVersion {
44
+ created: string;
45
+ data: Record<string, unknown>;
46
+ author: ResourceAuthor;
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.19.13",
3
+ "version": "0.19.14",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -30,7 +30,7 @@
30
30
  "test": "jest"
31
31
  },
32
32
  "dependencies": {
33
- "@appsemble/sdk": "0.19.13",
33
+ "@appsemble/sdk": "0.19.14",
34
34
  "@fortawesome/fontawesome-common-types": "^0.2.0",
35
35
  "jsonschema": "^1.0.0",
36
36
  "openapi-types": "^10.0.0",