@tsed/formio-types 7.79.4 → 7.80.1
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/lib/types-esm/domain/FormioAccess.d.ts +5 -0
- package/lib/types-esm/domain/FormioAction.d.ts +12 -0
- package/lib/types-esm/domain/FormioActionInfo.d.ts +14 -0
- package/lib/types-esm/domain/FormioActionItem.d.ts +12 -0
- package/lib/types-esm/domain/FormioComponent.d.ts +17 -0
- package/lib/types-esm/domain/FormioForm.d.ts +55 -0
- package/lib/types-esm/domain/FormioPermission.d.ts +4 -0
- package/lib/types-esm/domain/FormioRole.d.ts +8 -0
- package/lib/types-esm/domain/FormioSchema.d.ts +6 -0
- package/lib/types-esm/domain/FormioSubmission.d.ts +19 -0
- package/lib/types-esm/domain/FormioToken.d.ts +5 -0
- package/lib/types-esm/index.d.ts +14 -0
- package/package.json +12 -9
- package/lib/cjs/package.json +0 -3
- package/lib/esm/package.json +0 -3
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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";
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/formio-types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.80.1",
|
|
4
4
|
"description": "Formio types definition package for Ts.ED framework",
|
|
5
|
+
"type": "commonjs",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"Formio",
|
|
7
8
|
"Ts.ED",
|
|
@@ -15,16 +16,17 @@
|
|
|
15
16
|
"module": "./lib/esm/index.js",
|
|
16
17
|
"typings": "./lib/types/index.d.ts",
|
|
17
18
|
"exports": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./lib/types/index.d.ts",
|
|
21
|
+
"import": "./lib/esm/index.js",
|
|
22
|
+
"default": "./lib/cjs/index.js"
|
|
23
|
+
}
|
|
22
24
|
},
|
|
23
25
|
"scripts": {
|
|
24
26
|
"build": "yarn barrels && yarn build:ts",
|
|
25
27
|
"barrels": "barrels",
|
|
26
28
|
"start": "ts-node test/app/index.ts",
|
|
27
|
-
"build:ts": "tsc --build tsconfig.json
|
|
29
|
+
"build:ts": "tsc --build tsconfig.json"
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"tslib": "2.6.1"
|
|
@@ -33,10 +35,11 @@
|
|
|
33
35
|
"formiojs": ">=4.0.0"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
|
-
"@tsed/barrels": "7.
|
|
37
|
-
"@tsed/typescript": "7.
|
|
38
|
+
"@tsed/barrels": "7.80.1",
|
|
39
|
+
"@tsed/typescript": "7.80.1",
|
|
38
40
|
"eslint": "^8.57.0",
|
|
39
|
-
"jest": "^29.7.0"
|
|
41
|
+
"jest": "^29.7.0",
|
|
42
|
+
"typescript": "4.9.5"
|
|
40
43
|
},
|
|
41
44
|
"repository": "https://github.com/tsedio/tsed",
|
|
42
45
|
"bugs": {
|
package/lib/cjs/package.json
DELETED
package/lib/esm/package.json
DELETED