@appsemble/types 0.19.1 → 0.19.5

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -4
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -416,7 +416,7 @@ export interface ResourceDefinition {
416
416
  /**
417
417
  * The JSON schema to validate resources against before sending it to the backend.
418
418
  */
419
- schema?: OpenAPIV3.SchemaObject;
419
+ schema: OpenAPIV3.SchemaObject;
420
420
  /**
421
421
  * The URL to post the resource to.
422
422
  *
@@ -838,7 +838,10 @@ export interface BasePageDefinition {
838
838
  */
839
839
  hideFromMenu?: boolean;
840
840
  }
841
- interface SubPage {
841
+ /**
842
+ * A subset of page for use within flow pages and tab pages.
843
+ */
844
+ export interface SubPage {
842
845
  name: string;
843
846
  blocks: BlockDefinition[];
844
847
  }
@@ -848,7 +851,7 @@ export interface BasicPageDefinition extends BasePageDefinition {
848
851
  }
849
852
  export interface FlowPageDefinition extends BasePageDefinition {
850
853
  type: 'flow';
851
- subPages: SubPage[];
854
+ steps: SubPage[];
852
855
  /**
853
856
  * A mapping of actions that can be fired by the page to action handlers.
854
857
  */
@@ -865,7 +868,7 @@ export interface FlowPageDefinition extends BasePageDefinition {
865
868
  }
866
869
  export interface TabsPageDefinition extends BasePageDefinition {
867
870
  type: 'tabs';
868
- subPages: SubPage[];
871
+ tabs: SubPage[];
869
872
  }
870
873
  export declare type PageDefinition = BasicPageDefinition | FlowPageDefinition | TabsPageDefinition;
871
874
  export interface AppDefinition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.19.1",
3
+ "version": "0.19.5",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -30,10 +30,10 @@
30
30
  "test": "jest"
31
31
  },
32
32
  "dependencies": {
33
- "@appsemble/sdk": "0.19.1",
33
+ "@appsemble/sdk": "0.19.5",
34
34
  "@fortawesome/fontawesome-common-types": "^0.2.0",
35
35
  "jsonschema": "^1.0.0",
36
36
  "openapi-types": "^9.0.0",
37
- "type-fest": "^1.0.0"
37
+ "type-fest": "^2.0.0"
38
38
  }
39
39
  }