@dev-crew-berlin/enter-js-utils 0.87.0 → 0.87.2
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 +14 -7
- package/dist/api-client/api-base.d.ts +6 -0
- package/dist/api-client/api-base.js +8 -0
- package/dist/api-client/index.d.ts +83 -1
- package/dist/api-client/index.js +102 -2
- package/dist/generated/api-schema.d.ts +200 -1169
- package/dist/models/field-group.d.ts +1 -1
- package/dist/models/field.d.ts +11 -14
- package/dist/models/index.d.ts +1 -1
- package/package.json +18 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { components } from '../generated/api-schema';
|
|
2
2
|
import { Field } from './field';
|
|
3
3
|
export type Dictionary<T> = Record<string, T>;
|
|
4
|
-
export type FieldGroupJSON = components['schemas']['FieldGroup
|
|
4
|
+
export type FieldGroupJSON = components['schemas']['FieldGroup'];
|
|
5
5
|
export type FieldGroup = Omit<FieldGroupJSON, 'questions'>;
|
|
6
6
|
export declare class FieldGroups {
|
|
7
7
|
private _groups;
|
package/dist/models/field.d.ts
CHANGED
|
@@ -1,37 +1,34 @@
|
|
|
1
1
|
import { components } from '../generated/api-schema';
|
|
2
|
-
export type
|
|
2
|
+
export type TextField = components['schemas']['TextField'] & {
|
|
3
3
|
group: string;
|
|
4
4
|
};
|
|
5
|
-
export type
|
|
5
|
+
export type LongtextField = components['schemas']['LongtextField'] & {
|
|
6
6
|
group: string;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type EmailField = components['schemas']['EmailField'] & {
|
|
9
9
|
group: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type NumberField = components['schemas']['NumberField'] & {
|
|
12
12
|
group: string;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type CheckboxField = components['schemas']['CheckboxGroupField'] & {
|
|
15
15
|
group: string;
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type ToggleField = components['schemas']['CheckboxField'] & {
|
|
18
18
|
group: string;
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
20
|
+
export type RadioField = components['schemas']['RadioButtonGroupField'] & {
|
|
21
21
|
group: string;
|
|
22
22
|
};
|
|
23
|
-
export type
|
|
23
|
+
export type SelectField = components['schemas']['DropdownField'] & {
|
|
24
24
|
group: string;
|
|
25
25
|
};
|
|
26
|
-
export type
|
|
26
|
+
export type CodeField = components['schemas']['CodeField'] & {
|
|
27
27
|
group: string;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
29
|
+
export type DateField = components['schemas']['DateField'] & {
|
|
30
30
|
group: string;
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
33
|
-
group: string;
|
|
34
|
-
};
|
|
35
|
-
export type Field = components['schemas']['FieldGroup-Output']['questions'][number] & {
|
|
32
|
+
export type Field = components['schemas']['FieldGroup']['questions'][number] & {
|
|
36
33
|
group: string;
|
|
37
34
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type { Event, AttendeeUpdatedEvent, AttendeeCreatedEvent, AttendeeRespond
|
|
|
13
13
|
export type { FieldGroup, FieldGroupJSON } from './field-group';
|
|
14
14
|
export { FieldGroups } from './field-group';
|
|
15
15
|
export type { FieldValue } from './field-value';
|
|
16
|
-
export type {
|
|
16
|
+
export type { TextField, EmailField, NumberField, CheckboxField, ToggleField, RadioField, SelectField, Field, } from './field';
|
|
17
17
|
export { Instance } from './instance';
|
|
18
18
|
export type { InstanceJSON } from './instance';
|
|
19
19
|
export type { Permission } from './permission';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-crew-berlin/enter-js-utils",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.2",
|
|
4
4
|
"description": "utils such as vaildation and other helpers to work with data from the enter app",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
23
|
"storybook": "storybook dev -p 6006",
|
|
24
24
|
"build-storybook": "storybook build",
|
|
25
|
-
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type"
|
|
25
|
+
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type",
|
|
26
|
+
"generate-docs": "typedoc --plugin typedoc-plugin-rename-defaults --entryPointStrategy expand"
|
|
26
27
|
},
|
|
27
28
|
"lint-staged": {
|
|
28
29
|
"**/*": "prettier --write --ignore-unknown"
|
|
@@ -43,15 +44,15 @@
|
|
|
43
44
|
"@babel/preset-env": "^7.25.8",
|
|
44
45
|
"@babel/preset-react": "^7.25.7",
|
|
45
46
|
"@babel/preset-typescript": "^7.25.7",
|
|
46
|
-
"@storybook/addon-actions": "^8.
|
|
47
|
-
"@storybook/addon-essentials": "^8.
|
|
48
|
-
"@storybook/addon-interactions": "^8.
|
|
49
|
-
"@storybook/addon-links": "^8.
|
|
50
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.
|
|
51
|
-
"@storybook/nextjs": "^8.
|
|
52
|
-
"@storybook/react": "^8.
|
|
53
|
-
"@storybook/react-webpack5": "^8.
|
|
54
|
-
"@storybook/test": "^8.
|
|
47
|
+
"@storybook/addon-actions": "^8.5.8",
|
|
48
|
+
"@storybook/addon-essentials": "^8.5.8",
|
|
49
|
+
"@storybook/addon-interactions": "^8.5.8",
|
|
50
|
+
"@storybook/addon-links": "^8.5.8",
|
|
51
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
52
|
+
"@storybook/nextjs": "^8.5.8",
|
|
53
|
+
"@storybook/react": "^8.5.8",
|
|
54
|
+
"@storybook/react-webpack5": "^8.5.8",
|
|
55
|
+
"@storybook/test": "^8.5.8",
|
|
55
56
|
"@types/cookie": "^0.6.0",
|
|
56
57
|
"@types/jws": "^3.2.9",
|
|
57
58
|
"@types/node": "^17.0.38",
|
|
@@ -65,13 +66,15 @@
|
|
|
65
66
|
"husky": "^7.0.1",
|
|
66
67
|
"openapi-typescript": "^6.7.6",
|
|
67
68
|
"prettier": "^2.6.2",
|
|
68
|
-
"react": "^
|
|
69
|
-
"react-dom": "^
|
|
69
|
+
"react": "^19.0.0",
|
|
70
|
+
"react-dom": "^19.0.0",
|
|
71
|
+
"typedoc": "^0.27.8",
|
|
72
|
+
"typedoc-plugin-rename-defaults": "^0.7.2",
|
|
70
73
|
"typescript": "^5.7.3"
|
|
71
74
|
},
|
|
72
75
|
"peerDependencies": {
|
|
73
|
-
"react": "^
|
|
74
|
-
"react-dom": "^
|
|
76
|
+
"react": "^19.0.0",
|
|
77
|
+
"react-dom": "^19.0.0"
|
|
75
78
|
},
|
|
76
79
|
"dependencies": {
|
|
77
80
|
"cookie": "^1.0.1",
|