@dev-crew-berlin/enter-js-utils 0.60.1 → 0.60.3
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.
|
@@ -190,9 +190,36 @@ export declare type components = {
|
|
|
190
190
|
* Alternatively you can set `is_edit` to trigger email that are sent on edit instead.
|
|
191
191
|
*/
|
|
192
192
|
AttendeeRespondedEvent: {
|
|
193
|
+
/**
|
|
194
|
+
* Id
|
|
195
|
+
* Format: uuid
|
|
196
|
+
*/
|
|
197
|
+
id?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Event
|
|
200
|
+
* @default attendee-responded
|
|
201
|
+
* @constant
|
|
202
|
+
* @enum {string}
|
|
203
|
+
*/
|
|
204
|
+
event?: "attendee-responded";
|
|
205
|
+
/** Group */
|
|
206
|
+
group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
|
|
207
|
+
preconditions?: components["schemas"]["Preconditions"] | null;
|
|
208
|
+
/** Instancename */
|
|
209
|
+
instanceName: string;
|
|
210
|
+
/** Attendeeid */
|
|
211
|
+
attendeeId: string;
|
|
212
|
+
/** Rsvp */
|
|
193
213
|
rsvp: {
|
|
194
|
-
[key: string]:
|
|
214
|
+
[key: string]: number | null;
|
|
195
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
* Responsetime
|
|
218
|
+
* Format: date-time
|
|
219
|
+
*/
|
|
220
|
+
responseTime?: string;
|
|
221
|
+
/** Isedit */
|
|
222
|
+
isEdit: boolean;
|
|
196
223
|
};
|
|
197
224
|
/** AttendeeUpdate */
|
|
198
225
|
AttendeeUpdate: {
|
|
@@ -215,8 +242,7 @@ export declare type components = {
|
|
|
215
242
|
rsvp?: {
|
|
216
243
|
[key: string]: number | null;
|
|
217
244
|
};
|
|
218
|
-
|
|
219
|
-
companions?: components["schemas"]["MainGuestJSON-Input"] | components["schemas"]["CompanionJSON-Input"];
|
|
245
|
+
companions?: components["schemas"]["RootModel_Union_MainGuest__Companion__-Input"];
|
|
220
246
|
payment?: components["schemas"]["Payment"] | null;
|
|
221
247
|
};
|
|
222
248
|
/**
|
|
@@ -224,9 +250,27 @@ export declare type components = {
|
|
|
224
250
|
* @description Attendee was updated. This includes `userdata` but also other data such as `payment`, `rsvp` or `tags`
|
|
225
251
|
*/
|
|
226
252
|
AttendeeUpdatedEvent: {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
253
|
+
/**
|
|
254
|
+
* Id
|
|
255
|
+
* Format: uuid
|
|
256
|
+
*/
|
|
257
|
+
id?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Event
|
|
260
|
+
* @default attendee-updated
|
|
261
|
+
* @constant
|
|
262
|
+
* @enum {string}
|
|
263
|
+
*/
|
|
264
|
+
event?: "attendee-updated";
|
|
265
|
+
/** Group */
|
|
266
|
+
group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
|
|
267
|
+
/** Preconditions */
|
|
268
|
+
preconditions?: [components["schemas"]["Filter"], components["schemas"]["FieldGroup-Input"][]] | null;
|
|
269
|
+
/** Instancename */
|
|
270
|
+
instanceName: string;
|
|
271
|
+
/** Attendeeid */
|
|
272
|
+
attendeeId: string;
|
|
273
|
+
updates: components["schemas"]["AttendeeUpdate"];
|
|
230
274
|
};
|
|
231
275
|
/** AuthCode */
|
|
232
276
|
AuthCode: {
|
|
@@ -407,7 +451,7 @@ export declare type components = {
|
|
|
407
451
|
* Items
|
|
408
452
|
* @default []
|
|
409
453
|
*/
|
|
410
|
-
items?: components["schemas"]["ItemOption"][];
|
|
454
|
+
items?: components["schemas"]["ItemOption-Input"][];
|
|
411
455
|
};
|
|
412
456
|
/** CheckboxGroupField */
|
|
413
457
|
"CheckboxGroupField-Output": {
|
|
@@ -460,7 +504,7 @@ export declare type components = {
|
|
|
460
504
|
* Items
|
|
461
505
|
* @default []
|
|
462
506
|
*/
|
|
463
|
-
items: components["schemas"]["ItemOption"][];
|
|
507
|
+
items: components["schemas"]["ItemOption-Output"][];
|
|
464
508
|
};
|
|
465
509
|
/**
|
|
466
510
|
* Checkin
|
|
@@ -701,27 +745,29 @@ export declare type components = {
|
|
|
701
745
|
*/
|
|
702
746
|
max: number;
|
|
703
747
|
};
|
|
704
|
-
/**
|
|
705
|
-
"
|
|
748
|
+
/** Companion */
|
|
749
|
+
"Companion-Input": {
|
|
750
|
+
/** Mainguestid */
|
|
751
|
+
mainGuestId: string;
|
|
706
752
|
/**
|
|
707
753
|
* Iscompanion
|
|
754
|
+
* @default true
|
|
708
755
|
* @constant
|
|
709
756
|
* @enum {boolean}
|
|
710
757
|
*/
|
|
711
|
-
|
|
712
|
-
/** Mainguestid */
|
|
713
|
-
mainguestid: string;
|
|
758
|
+
isCompanion?: true;
|
|
714
759
|
};
|
|
715
|
-
/**
|
|
716
|
-
"
|
|
760
|
+
/** Companion */
|
|
761
|
+
"Companion-Output": {
|
|
762
|
+
/** Mainguestid */
|
|
763
|
+
mainGuestId: string;
|
|
717
764
|
/**
|
|
718
765
|
* Iscompanion
|
|
766
|
+
* @default true
|
|
719
767
|
* @constant
|
|
720
768
|
* @enum {boolean}
|
|
721
769
|
*/
|
|
722
770
|
isCompanion: true;
|
|
723
|
-
/** Mainguestid */
|
|
724
|
-
mainGuestId: string;
|
|
725
771
|
};
|
|
726
772
|
/** CustomCountQuery */
|
|
727
773
|
CustomCountQuery: {
|
|
@@ -889,7 +935,7 @@ export declare type components = {
|
|
|
889
935
|
* Items
|
|
890
936
|
* @default []
|
|
891
937
|
*/
|
|
892
|
-
items?: components["schemas"]["ItemOption"][];
|
|
938
|
+
items?: components["schemas"]["ItemOption-Input"][];
|
|
893
939
|
};
|
|
894
940
|
/** DropdownField */
|
|
895
941
|
"DropdownField-Output": {
|
|
@@ -942,7 +988,7 @@ export declare type components = {
|
|
|
942
988
|
* Items
|
|
943
989
|
* @default []
|
|
944
990
|
*/
|
|
945
|
-
items: components["schemas"]["ItemOption"][];
|
|
991
|
+
items: components["schemas"]["ItemOption-Output"][];
|
|
946
992
|
};
|
|
947
993
|
/** EmailConfig */
|
|
948
994
|
EmailConfig: {
|
|
@@ -1550,7 +1596,7 @@ export declare type components = {
|
|
|
1550
1596
|
ext: string[] | null;
|
|
1551
1597
|
};
|
|
1552
1598
|
/** ItemOption */
|
|
1553
|
-
ItemOption: {
|
|
1599
|
+
"ItemOption-Input": {
|
|
1554
1600
|
/**
|
|
1555
1601
|
* Name
|
|
1556
1602
|
* @default
|
|
@@ -1561,6 +1607,18 @@ export declare type components = {
|
|
|
1561
1607
|
/** Value */
|
|
1562
1608
|
value?: string | null;
|
|
1563
1609
|
};
|
|
1610
|
+
/** ItemOption */
|
|
1611
|
+
"ItemOption-Output": {
|
|
1612
|
+
/**
|
|
1613
|
+
* Name
|
|
1614
|
+
* @default
|
|
1615
|
+
*/
|
|
1616
|
+
name: string | {
|
|
1617
|
+
[key: string]: string;
|
|
1618
|
+
};
|
|
1619
|
+
/** Value */
|
|
1620
|
+
value: string | null;
|
|
1621
|
+
};
|
|
1564
1622
|
/** LongtextField */
|
|
1565
1623
|
"LongtextField-Input": {
|
|
1566
1624
|
/**
|
|
@@ -1677,19 +1735,21 @@ export declare type components = {
|
|
|
1677
1735
|
*/
|
|
1678
1736
|
max: number;
|
|
1679
1737
|
};
|
|
1680
|
-
/**
|
|
1681
|
-
"
|
|
1738
|
+
/** MainGuest */
|
|
1739
|
+
"MainGuest-Input": {
|
|
1682
1740
|
/**
|
|
1683
1741
|
* Iscompanion
|
|
1742
|
+
* @default false
|
|
1684
1743
|
* @constant
|
|
1685
1744
|
* @enum {boolean}
|
|
1686
1745
|
*/
|
|
1687
|
-
|
|
1746
|
+
isCompanion?: false;
|
|
1688
1747
|
};
|
|
1689
|
-
/**
|
|
1690
|
-
"
|
|
1748
|
+
/** MainGuest */
|
|
1749
|
+
"MainGuest-Output": {
|
|
1691
1750
|
/**
|
|
1692
1751
|
* Iscompanion
|
|
1752
|
+
* @default false
|
|
1693
1753
|
* @constant
|
|
1694
1754
|
* @enum {boolean}
|
|
1695
1755
|
*/
|
|
@@ -1901,12 +1961,11 @@ export declare type components = {
|
|
|
1901
1961
|
[key: string]: components["schemas"]["Checkins-Input"];
|
|
1902
1962
|
};
|
|
1903
1963
|
/**
|
|
1904
|
-
* Companions
|
|
1905
1964
|
* @default {
|
|
1906
1965
|
* "isCompanion": false
|
|
1907
1966
|
* }
|
|
1908
1967
|
*/
|
|
1909
|
-
companions?: components["schemas"]["
|
|
1968
|
+
companions?: components["schemas"]["RootModel_Union_MainGuest__Companion__-Input"];
|
|
1910
1969
|
payment?: components["schemas"]["Payment"] | null;
|
|
1911
1970
|
/**
|
|
1912
1971
|
* Deleted
|
|
@@ -1952,12 +2011,11 @@ export declare type components = {
|
|
|
1952
2011
|
[key: string]: components["schemas"]["Checkins-Output"];
|
|
1953
2012
|
};
|
|
1954
2013
|
/**
|
|
1955
|
-
* Companions
|
|
1956
2014
|
* @default {
|
|
1957
2015
|
* "isCompanion": false
|
|
1958
2016
|
* }
|
|
1959
2017
|
*/
|
|
1960
|
-
companions: components["schemas"]["
|
|
2018
|
+
companions: components["schemas"]["RootModel_Union_MainGuest__Companion__-Output"];
|
|
1961
2019
|
payment: components["schemas"]["Payment"] | null;
|
|
1962
2020
|
/**
|
|
1963
2021
|
* Deleted
|
|
@@ -2100,7 +2158,7 @@ export declare type components = {
|
|
|
2100
2158
|
* Items
|
|
2101
2159
|
* @default []
|
|
2102
2160
|
*/
|
|
2103
|
-
items?: components["schemas"]["ItemOption"][];
|
|
2161
|
+
items?: components["schemas"]["ItemOption-Input"][];
|
|
2104
2162
|
};
|
|
2105
2163
|
/** RadioButtonGroupField */
|
|
2106
2164
|
"RadioButtonGroupField-Output": {
|
|
@@ -2153,7 +2211,7 @@ export declare type components = {
|
|
|
2153
2211
|
* Items
|
|
2154
2212
|
* @default []
|
|
2155
2213
|
*/
|
|
2156
|
-
items: components["schemas"]["ItemOption"][];
|
|
2214
|
+
items: components["schemas"]["ItemOption-Output"][];
|
|
2157
2215
|
};
|
|
2158
2216
|
/** RegistrationInfo */
|
|
2159
2217
|
RegistrationInfo: {
|
|
@@ -2180,6 +2238,10 @@ export declare type components = {
|
|
|
2180
2238
|
allowRegistrationWithAuthCode?: boolean;
|
|
2181
2239
|
auth_code_generator?: components["schemas"]["AuthCodeGenerator"];
|
|
2182
2240
|
};
|
|
2241
|
+
/** RootModel[Union[MainGuest, Companion]] */
|
|
2242
|
+
"RootModel_Union_MainGuest__Companion__-Input": components["schemas"]["MainGuest-Input"] | components["schemas"]["Companion-Input"];
|
|
2243
|
+
/** RootModel[Union[MainGuest, Companion]] */
|
|
2244
|
+
"RootModel_Union_MainGuest__Companion__-Output": components["schemas"]["MainGuest-Output"] | components["schemas"]["Companion-Output"];
|
|
2183
2245
|
/** RootModel[list[Annotated[Union[AttendeeCreatedEvent, AttendeeUpdatedEvent, AttendeeRespondedEvent, AttendeeAuthCodeRequested, EmailUnsubscribedEvent, AttendeeDeletedEvent, CheckinCreatedEvent, CheckinDeletedEvent, PaymentPaidEvent], FieldInfo(annotation=NoneType, required=True, discriminator='event')]]] */
|
|
2184
2246
|
RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____: (components["schemas"]["AttendeeCreatedEvent"] | components["schemas"]["AttendeeUpdatedEvent"] | components["schemas"]["AttendeeRespondedEvent"] | components["schemas"]["AttendeeAuthCodeRequested"] | components["schemas"]["EmailUnsubscribedEvent"] | components["schemas"]["AttendeeDeletedEvent"] | components["schemas"]["CheckinCreatedEvent"] | components["schemas"]["CheckinDeletedEvent"] | components["schemas"]["PaymentPaidEvent"])[];
|
|
2185
2247
|
/** SecurityQuestion */
|
|
@@ -2441,7 +2503,7 @@ export declare type components = {
|
|
|
2441
2503
|
* @description Variables store values which can be used on a global per instance basis,
|
|
2442
2504
|
* for example in multiple E-Mails.
|
|
2443
2505
|
*/
|
|
2444
|
-
Variable: {
|
|
2506
|
+
"Variable-Input": {
|
|
2445
2507
|
/** Name */
|
|
2446
2508
|
name: string;
|
|
2447
2509
|
/** Title */
|
|
@@ -2463,6 +2525,33 @@ export declare type components = {
|
|
|
2463
2525
|
*/
|
|
2464
2526
|
isPrivate?: boolean;
|
|
2465
2527
|
};
|
|
2528
|
+
/**
|
|
2529
|
+
* Variable
|
|
2530
|
+
* @description Variables store values which can be used on a global per instance basis,
|
|
2531
|
+
* for example in multiple E-Mails.
|
|
2532
|
+
*/
|
|
2533
|
+
"Variable-Output": {
|
|
2534
|
+
/** Name */
|
|
2535
|
+
name: string;
|
|
2536
|
+
/** Title */
|
|
2537
|
+
title: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* Variabletype
|
|
2540
|
+
* @constant
|
|
2541
|
+
* @enum {string}
|
|
2542
|
+
*/
|
|
2543
|
+
variableType: "text";
|
|
2544
|
+
/**
|
|
2545
|
+
* Value
|
|
2546
|
+
* @default
|
|
2547
|
+
*/
|
|
2548
|
+
value: string;
|
|
2549
|
+
/**
|
|
2550
|
+
* Isprivate
|
|
2551
|
+
* @default false
|
|
2552
|
+
*/
|
|
2553
|
+
isPrivate: boolean;
|
|
2554
|
+
};
|
|
2466
2555
|
/** VariableUpdate */
|
|
2467
2556
|
VariableUpdate: {
|
|
2468
2557
|
/** Value */
|
|
@@ -2870,7 +2959,7 @@ export declare type operations = {
|
|
|
2870
2959
|
/** @description Successful Response */
|
|
2871
2960
|
200: {
|
|
2872
2961
|
content: {
|
|
2873
|
-
"application/json": components["schemas"]["Variable"][];
|
|
2962
|
+
"application/json": components["schemas"]["Variable-Output"][];
|
|
2874
2963
|
};
|
|
2875
2964
|
};
|
|
2876
2965
|
/** @description Validation Error */
|
|
@@ -2893,14 +2982,14 @@ export declare type operations = {
|
|
|
2893
2982
|
};
|
|
2894
2983
|
requestBody: {
|
|
2895
2984
|
content: {
|
|
2896
|
-
"application/json": components["schemas"]["Variable"];
|
|
2985
|
+
"application/json": components["schemas"]["Variable-Input"];
|
|
2897
2986
|
};
|
|
2898
2987
|
};
|
|
2899
2988
|
responses: {
|
|
2900
2989
|
/** @description Successful Response */
|
|
2901
2990
|
200: {
|
|
2902
2991
|
content: {
|
|
2903
|
-
"application/json": components["schemas"]["Variable"];
|
|
2992
|
+
"application/json": components["schemas"]["Variable-Output"];
|
|
2904
2993
|
};
|
|
2905
2994
|
};
|
|
2906
2995
|
/** @description Validation Error */
|
|
@@ -2926,7 +3015,7 @@ export declare type operations = {
|
|
|
2926
3015
|
/** @description Successful Response */
|
|
2927
3016
|
200: {
|
|
2928
3017
|
content: {
|
|
2929
|
-
"application/json": components["schemas"]["Variable"];
|
|
3018
|
+
"application/json": components["schemas"]["Variable-Output"];
|
|
2930
3019
|
};
|
|
2931
3020
|
};
|
|
2932
3021
|
/** @description Validation Error */
|
|
@@ -2957,7 +3046,7 @@ export declare type operations = {
|
|
|
2957
3046
|
/** @description Successful Response */
|
|
2958
3047
|
200: {
|
|
2959
3048
|
content: {
|
|
2960
|
-
"application/json": components["schemas"]["Variable"];
|
|
3049
|
+
"application/json": components["schemas"]["Variable-Output"];
|
|
2961
3050
|
};
|
|
2962
3051
|
};
|
|
2963
3052
|
/** @description Validation Error */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { components } from '../generated/api-schema';
|
|
2
|
-
export declare type Variable = components['schemas']['Variable'];
|
|
2
|
+
export declare type Variable = components['schemas']['Variable-Output'];
|
|
@@ -56,4 +56,4 @@ export declare const Disabled: ComponentStory<React.FunctionComponent<Omit<React
|
|
|
56
56
|
borderless?: boolean | undefined;
|
|
57
57
|
fullWidth?: boolean | undefined;
|
|
58
58
|
}>>;
|
|
59
|
-
export declare const OnePrimaryAndTwoBorderless: () => JSX.Element;
|
|
59
|
+
export declare const OnePrimaryAndTwoBorderless: () => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-crew-berlin/enter-js-utils",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.3",
|
|
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,7 @@
|
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
23
|
"storybook": "start-storybook -p 6006",
|
|
24
24
|
"build-storybook": "build-storybook",
|
|
25
|
-
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --
|
|
25
|
+
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --empty-objects-unknown --export-type"
|
|
26
26
|
},
|
|
27
27
|
"lint-staged": {
|
|
28
28
|
"**/*": "prettier --write --ignore-unknown"
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"@babel/preset-env": "^7.18.2",
|
|
44
44
|
"@babel/preset-react": "^7.17.12",
|
|
45
45
|
"@babel/preset-typescript": "^7.17.12",
|
|
46
|
-
"@liangskyli/openapi-typescript": "^5.4.1",
|
|
47
46
|
"@storybook/addon-actions": "^6.5.15",
|
|
48
47
|
"@storybook/addon-essentials": "^6.5.15",
|
|
49
48
|
"@storybook/addon-interactions": "^6.5.15",
|
|
@@ -55,17 +54,18 @@
|
|
|
55
54
|
"@types/cookie": "^0.6.0",
|
|
56
55
|
"@types/jws": "^3.2.9",
|
|
57
56
|
"@types/node": "^17.0.38",
|
|
58
|
-
"@types/react": "^18.
|
|
59
|
-
"@types/react-dom": "^18.0
|
|
57
|
+
"@types/react": "^18.3.3",
|
|
58
|
+
"@types/react-dom": "^18.3.0",
|
|
60
59
|
"@types/uuid": "^8.3.4",
|
|
61
60
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
62
61
|
"@typescript-eslint/parser": "^5.27.0",
|
|
63
62
|
"eslint": "^8.16.0",
|
|
64
63
|
"eslint-config-prettier": "^8.5.0",
|
|
65
64
|
"husky": "^7.0.1",
|
|
65
|
+
"openapi-typescript": "^6.7.6",
|
|
66
66
|
"prettier": "^2.6.2",
|
|
67
|
-
"react": "^18.1
|
|
68
|
-
"react-dom": "^18.1
|
|
67
|
+
"react": "^18.3.1",
|
|
68
|
+
"react-dom": "^18.3.1",
|
|
69
69
|
"typescript": "^4.8.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"cookie": "^0.6.0",
|
|
77
|
-
"fp-ts": "^2.12.1",
|
|
78
77
|
"jws": "^4.0.0",
|
|
79
78
|
"styled-jsx": "^5.0.2",
|
|
80
79
|
"uuid": "^9.0.0"
|