@tsed/formio-types 8.0.0-alpha.5 → 8.0.0-alpha.7

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 (40) hide show
  1. package/lib/types/domain/FormioComponent.d.ts +1 -1
  2. package/package.json +8 -9
  3. package/lib/cjs/domain/FormioAccess.js +0 -3
  4. package/lib/cjs/domain/FormioAccess.js.map +0 -1
  5. package/lib/cjs/domain/FormioAction.js +0 -3
  6. package/lib/cjs/domain/FormioAction.js.map +0 -1
  7. package/lib/cjs/domain/FormioActionInfo.js +0 -3
  8. package/lib/cjs/domain/FormioActionInfo.js.map +0 -1
  9. package/lib/cjs/domain/FormioActionItem.js +0 -3
  10. package/lib/cjs/domain/FormioActionItem.js.map +0 -1
  11. package/lib/cjs/domain/FormioComponent.js +0 -3
  12. package/lib/cjs/domain/FormioComponent.js.map +0 -1
  13. package/lib/cjs/domain/FormioForm.js +0 -3
  14. package/lib/cjs/domain/FormioForm.js.map +0 -1
  15. package/lib/cjs/domain/FormioPermission.js +0 -3
  16. package/lib/cjs/domain/FormioPermission.js.map +0 -1
  17. package/lib/cjs/domain/FormioRole.js +0 -3
  18. package/lib/cjs/domain/FormioRole.js.map +0 -1
  19. package/lib/cjs/domain/FormioSchema.js +0 -3
  20. package/lib/cjs/domain/FormioSchema.js.map +0 -1
  21. package/lib/cjs/domain/FormioSubmission.js +0 -3
  22. package/lib/cjs/domain/FormioSubmission.js.map +0 -1
  23. package/lib/cjs/domain/FormioToken.js +0 -3
  24. package/lib/cjs/domain/FormioToken.js.map +0 -1
  25. package/lib/cjs/index.js +0 -18
  26. package/lib/cjs/index.js.map +0 -1
  27. package/lib/cjs/package.json +0 -3
  28. package/lib/esm/package.json +0 -3
  29. package/lib/types-esm/domain/FormioAccess.d.ts +0 -5
  30. package/lib/types-esm/domain/FormioAction.d.ts +0 -12
  31. package/lib/types-esm/domain/FormioActionInfo.d.ts +0 -14
  32. package/lib/types-esm/domain/FormioActionItem.d.ts +0 -12
  33. package/lib/types-esm/domain/FormioComponent.d.ts +0 -17
  34. package/lib/types-esm/domain/FormioForm.d.ts +0 -55
  35. package/lib/types-esm/domain/FormioPermission.d.ts +0 -4
  36. package/lib/types-esm/domain/FormioRole.d.ts +0 -8
  37. package/lib/types-esm/domain/FormioSchema.d.ts +0 -6
  38. package/lib/types-esm/domain/FormioSubmission.d.ts +0 -19
  39. package/lib/types-esm/domain/FormioToken.d.ts +0 -5
  40. package/lib/types-esm/index.d.ts +0 -14
@@ -1,5 +1,5 @@
1
- import { FormioForm } from "./FormioForm.js";
2
1
  import type { ExtendedComponentSchema } from "formiojs";
2
+ import { FormioForm } from "./FormioForm.js";
3
3
  export interface FormioComponent extends ExtendedComponentSchema {
4
4
  type: string;
5
5
  key: string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tsed/formio-types",
3
- "version": "8.0.0-alpha.5",
4
3
  "description": "Formio types definition package for Ts.ED framework",
5
- "type": "commonjs",
4
+ "type": "module",
5
+ "version": "8.0.0-alpha.7",
6
6
  "keywords": [
7
7
  "Formio",
8
8
  "Ts.ED",
@@ -12,14 +12,13 @@
12
12
  "express"
13
13
  ],
14
14
  "source": "./src/index.ts",
15
- "main": "./lib/cjs/index.js",
15
+ "main": "./lib/esm/index.js",
16
16
  "module": "./lib/esm/index.js",
17
17
  "typings": "./lib/types/index.d.ts",
18
18
  "exports": {
19
19
  ".": {
20
20
  "types": "./lib/types/index.d.ts",
21
21
  "import": "./lib/esm/index.js",
22
- "require": "./lib/cjs/index.js",
23
22
  "default": "./lib/cjs/index.js"
24
23
  }
25
24
  },
@@ -30,16 +29,16 @@
30
29
  "build:ts": "tsc --build tsconfig.json"
31
30
  },
32
31
  "dependencies": {
33
- "tslib": "2.6.1"
32
+ "tslib": "2.7.0"
34
33
  },
35
34
  "peerDependencies": {
36
35
  "formiojs": ">=4.0.0"
37
36
  },
38
37
  "devDependencies": {
39
- "@tsed/barrels": "8.0.0-alpha.5",
40
- "@tsed/typescript": "8.0.0-alpha.5",
41
- "eslint": "^8.57.0",
42
- "typescript": "4.9.5"
38
+ "@tsed/barrels": "8.0.0-alpha.7",
39
+ "@tsed/typescript": "8.0.0-alpha.7",
40
+ "eslint": "9.11.1",
41
+ "typescript": "5.4.5"
43
42
  },
44
43
  "repository": "https://github.com/tsedio/tsed",
45
44
  "bugs": {
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioAccess.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAccess.js","sourceRoot":"","sources":["../../../src/domain/FormioAccess.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioAction.js","sourceRoot":"","sources":["../../../src/domain/FormioAction.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioActionInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioActionInfo.js","sourceRoot":"","sources":["../../../src/domain/FormioActionInfo.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioActionItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioActionItem.js","sourceRoot":"","sources":["../../../src/domain/FormioActionItem.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioComponent.js","sourceRoot":"","sources":["../../../src/domain/FormioComponent.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioForm.js","sourceRoot":"","sources":["../../../src/domain/FormioForm.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioPermission.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioPermission.js","sourceRoot":"","sources":["../../../src/domain/FormioPermission.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioRole.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioRole.js","sourceRoot":"","sources":["../../../src/domain/FormioRole.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioSchema.js","sourceRoot":"","sources":["../../../src/domain/FormioSchema.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioSubmission.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioSubmission.js","sourceRoot":"","sources":["../../../src/domain/FormioSubmission.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=FormioToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormioToken.js","sourceRoot":"","sources":["../../../src/domain/FormioToken.ts"],"names":[],"mappings":""}
package/lib/cjs/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * @file Automatically generated by @tsed/barrels.
6
- */
7
- tslib_1.__exportStar(require("./domain/FormioAccess.js"), exports);
8
- tslib_1.__exportStar(require("./domain/FormioAction.js"), exports);
9
- tslib_1.__exportStar(require("./domain/FormioActionInfo.js"), exports);
10
- tslib_1.__exportStar(require("./domain/FormioActionItem.js"), exports);
11
- tslib_1.__exportStar(require("./domain/FormioComponent.js"), exports);
12
- tslib_1.__exportStar(require("./domain/FormioForm.js"), exports);
13
- tslib_1.__exportStar(require("./domain/FormioPermission.js"), exports);
14
- tslib_1.__exportStar(require("./domain/FormioRole.js"), exports);
15
- tslib_1.__exportStar(require("./domain/FormioSchema.js"), exports);
16
- tslib_1.__exportStar(require("./domain/FormioSubmission.js"), exports);
17
- tslib_1.__exportStar(require("./domain/FormioToken.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAyC;AACzC,mEAAyC;AACzC,uEAA6C;AAC7C,uEAA6C;AAC7C,sEAA4C;AAC5C,iEAAuC;AACvC,uEAA6C;AAC7C,iEAAuC;AACvC,mEAAyC;AACzC,uEAA6C;AAC7C,kEAAwC"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,5 +0,0 @@
1
- export interface FormioAccess {
2
- _id: string | undefined;
3
- type: string;
4
- resources: any[];
5
- }
@@ -1,12 +0,0 @@
1
- export interface FormioAction<Settings = any> {
2
- name: string;
3
- title: string;
4
- action: string;
5
- handler: string[];
6
- method: string[];
7
- priority: number;
8
- form: any;
9
- settings: Settings;
10
- condition?: any;
11
- deleted?: number | null;
12
- }
@@ -1,14 +0,0 @@
1
- export interface FormioActionInfo {
2
- name: string;
3
- title: string;
4
- description: string;
5
- priority: number;
6
- defaults: {
7
- handler: string[];
8
- method: string[];
9
- };
10
- access?: {
11
- handler: boolean;
12
- method: boolean;
13
- };
14
- }
@@ -1,12 +0,0 @@
1
- export interface FormioActionItem<Data = any> {
2
- _id: string | undefined;
3
- title: string;
4
- form: string;
5
- submission?: string;
6
- action: string;
7
- handler: string;
8
- method: string;
9
- state: "new" | "inprogress" | "complete" | "error";
10
- messages: any[];
11
- data: Data;
12
- }
@@ -1,17 +0,0 @@
1
- import { FormioForm } from "./FormioForm.js";
2
- import type { ExtendedComponentSchema } from "formiojs";
3
- export interface FormioComponent extends ExtendedComponentSchema {
4
- type: string;
5
- key: string;
6
- template?: string;
7
- dataSrc?: "json" | "url";
8
- data?: {
9
- json?: any;
10
- url?: string;
11
- [key: string]: any;
12
- };
13
- valueProperty?: string;
14
- customConditional?: string;
15
- components?: FormioComponent[];
16
- form?: string | FormioForm;
17
- }
@@ -1,55 +0,0 @@
1
- import { FormioComponent } from "./FormioComponent.js";
2
- import { FormioPermission } from "./FormioPermission.js";
3
- export interface FormioForm extends Record<string, any> {
4
- _id: string | undefined;
5
- /**
6
- * The title for the form
7
- */
8
- title: string;
9
- /**
10
- * The machine name for this form
11
- */
12
- name: string;
13
- /**
14
- * The path for this resource
15
- */
16
- path: string;
17
- /**
18
- * The form type.
19
- */
20
- type: string;
21
- /**
22
- * The display method for this form
23
- */
24
- display?: "form" | "wizard" | string;
25
- /**
26
- * A custom action URL to submit the data to.
27
- */
28
- action?: string;
29
- tags?: string[];
30
- deleted: number | null;
31
- /**
32
- * Access rules
33
- */
34
- access: FormioPermission[];
35
- /**
36
- * Submission access rules
37
- */
38
- submissionAccess: FormioPermission[];
39
- /**
40
- *
41
- */
42
- owner: string;
43
- /**
44
- * Components.
45
- */
46
- components: FormioComponent[];
47
- /**
48
- * Custom form settings object.
49
- */
50
- settings?: any;
51
- /**
52
- * Custom form properties.
53
- */
54
- properties?: any;
55
- }
@@ -1,4 +0,0 @@
1
- export interface FormioPermission {
2
- type: "create_all" | "read_all" | "update_all" | "delete_all" | "create_own" | "read_own" | "update_own" | "delete_own" | "self";
3
- roles: string[];
4
- }
@@ -1,8 +0,0 @@
1
- export interface FormioRole extends Record<string, any> {
2
- _id: string | undefined;
3
- title: string;
4
- description: string;
5
- deleted: number | null;
6
- default: boolean;
7
- admin: boolean;
8
- }
@@ -1,6 +0,0 @@
1
- export interface FormioSchema {
2
- key: string;
3
- isLocked: boolean;
4
- version: string;
5
- value: string;
6
- }
@@ -1,19 +0,0 @@
1
- import { FormioAccess } from "./FormioAccess.js";
2
- export interface FormioSubmission<Data = any> extends Record<string, any> {
3
- _id: string | undefined;
4
- form: string;
5
- data: Data;
6
- owner?: string;
7
- roles?: string[];
8
- access?: FormioAccess[];
9
- externalIds?: {
10
- type?: string;
11
- resource?: string;
12
- id?: string;
13
- }[];
14
- metadata?: Record<string, any>;
15
- created?: string;
16
- updated?: string;
17
- deleted?: string | null;
18
- modified?: string;
19
- }
@@ -1,5 +0,0 @@
1
- export interface FormioToken {
2
- key: string;
3
- value: string;
4
- expireAt: Date;
5
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @file Automatically generated by @tsed/barrels.
3
- */
4
- export * from "./domain/FormioAccess.js";
5
- export * from "./domain/FormioAction.js";
6
- export * from "./domain/FormioActionInfo.js";
7
- export * from "./domain/FormioActionItem.js";
8
- export * from "./domain/FormioComponent.js";
9
- export * from "./domain/FormioForm.js";
10
- export * from "./domain/FormioPermission.js";
11
- export * from "./domain/FormioRole.js";
12
- export * from "./domain/FormioSchema.js";
13
- export * from "./domain/FormioSubmission.js";
14
- export * from "./domain/FormioToken.js";