@dev-crew-berlin/enter-js-utils 0.84.0 → 0.86.0

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.
@@ -109,13 +109,10 @@ export type components = {
109
109
  * Event
110
110
  * @default attendee-auth-code-requested
111
111
  * @constant
112
- * @enum {string}
113
112
  */
114
113
  event?: "attendee-auth-code-requested";
115
- /** Group */
116
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
117
114
  /** Preconditions */
118
- preconditions?: [components["schemas"]["AttendeesSelector"], components["schemas"]["RegistrationInfo"]] | null;
115
+ preconditions?: ([components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"], components["schemas"]["RegistrationInfo"]]) | null;
119
116
  /** Instancename */
120
117
  instanceName: string;
121
118
  /** Attendeeid */
@@ -135,13 +132,9 @@ export type components = {
135
132
  * Event
136
133
  * @default attendee-created
137
134
  * @constant
138
- * @enum {string}
139
135
  */
140
136
  event?: "attendee-created";
141
- /** Group */
142
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
143
- /** Preconditions */
144
- preconditions?: null;
137
+ preconditions?: components["schemas"]["common__events__attendee_created_event__Preconditions"] | null;
145
138
  attendee: components["schemas"]["PublicAttendee-Input"];
146
139
  /** Instancename */
147
140
  instanceName: string;
@@ -160,12 +153,10 @@ export type components = {
160
153
  * Event
161
154
  * @default attendee-deleted
162
155
  * @constant
163
- * @enum {string}
164
156
  */
165
157
  event?: "attendee-deleted";
166
- /** Group */
167
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
168
- preconditions?: components["schemas"]["AttendeesSelector"] | null;
158
+ /** Preconditions */
159
+ preconditions?: components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"] | null;
169
160
  /** Attendeeid */
170
161
  attendeeId: string;
171
162
  /** Instancename */
@@ -199,11 +190,8 @@ export type components = {
199
190
  * Event
200
191
  * @default attendee-responded
201
192
  * @constant
202
- * @enum {string}
203
193
  */
204
194
  event?: "attendee-responded";
205
- /** Group */
206
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
207
195
  preconditions?: components["schemas"]["common__events__attendee_responded_event__Preconditions"] | null;
208
196
  /** Instancename */
209
197
  instanceName: string;
@@ -258,13 +246,9 @@ export type components = {
258
246
  * Event
259
247
  * @default attendee-updated
260
248
  * @constant
261
- * @enum {string}
262
249
  */
263
250
  event?: "attendee-updated";
264
- /** Group */
265
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
266
- /** Preconditions */
267
- preconditions?: [components["schemas"]["AttendeesSelector"], components["schemas"]["FieldGroup-Input"][]] | null;
251
+ preconditions?: components["schemas"]["common__events__attendee_updated_event__Preconditions"] | null;
268
252
  /** Instancename */
269
253
  instanceName: string;
270
254
  /** Attendeeid */
@@ -276,24 +260,6 @@ export type components = {
276
260
  */
277
261
  time?: string;
278
262
  };
279
- /** AttendeesSelector */
280
- AttendeesSelector: {
281
- /** Instancename */
282
- instanceName: string;
283
- /**
284
- * Branchname
285
- * @default default
286
- */
287
- branchName?: string;
288
- /** @default {} */
289
- filter?: components["schemas"]["Filter"];
290
- /**
291
- * Deleted
292
- * @default exclude_deleted
293
- * @enum {string}
294
- */
295
- deleted?: "exclude_deleted" | "include_deleted" | "only_deleted";
296
- };
297
263
  /** AuthCode */
298
264
  AuthCode: {
299
265
  /** Authcode */
@@ -354,7 +320,6 @@ export type components = {
354
320
  * Type
355
321
  * @default checkbox
356
322
  * @constant
357
- * @enum {string}
358
323
  */
359
324
  type?: "checkbox";
360
325
  /**
@@ -402,7 +367,6 @@ export type components = {
402
367
  * Type
403
368
  * @default checkbox
404
369
  * @constant
405
- * @enum {string}
406
370
  */
407
371
  type: "checkbox";
408
372
  /**
@@ -450,7 +414,6 @@ export type components = {
450
414
  * Type
451
415
  * @default check
452
416
  * @constant
453
- * @enum {string}
454
417
  */
455
418
  type?: "check";
456
419
  /**
@@ -503,7 +466,6 @@ export type components = {
503
466
  * Type
504
467
  * @default check
505
468
  * @constant
506
- * @enum {string}
507
469
  */
508
470
  type: "check";
509
471
  /**
@@ -626,11 +588,8 @@ export type components = {
626
588
  * Event
627
589
  * @default checkin-created
628
590
  * @constant
629
- * @enum {string}
630
591
  */
631
592
  event?: "checkin-created";
632
- /** Group */
633
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
634
593
  /** Preconditions */
635
594
  preconditions?: null;
636
595
  /** Instancename */
@@ -655,11 +614,8 @@ export type components = {
655
614
  * Event
656
615
  * @default checkin-deleted
657
616
  * @constant
658
- * @enum {string}
659
617
  */
660
618
  event?: "checkin-deleted";
661
- /** Group */
662
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
663
619
  /** Preconditions */
664
620
  preconditions?: null;
665
621
  /** Instancename */
@@ -712,7 +668,6 @@ export type components = {
712
668
  * Type
713
669
  * @default code
714
670
  * @constant
715
- * @enum {string}
716
671
  */
717
672
  type?: "code";
718
673
  /**
@@ -770,7 +725,6 @@ export type components = {
770
725
  * Type
771
726
  * @default code
772
727
  * @constant
773
- * @enum {string}
774
728
  */
775
729
  type: "code";
776
730
  /**
@@ -826,11 +780,15 @@ export type components = {
826
780
  "Companion-Input": {
827
781
  /** Mainguestid */
828
782
  mainGuestId: string;
783
+ /**
784
+ * Mainguestname
785
+ * @default <Unnamed>
786
+ */
787
+ mainGuestName?: string;
829
788
  /**
830
789
  * Iscompanion
831
790
  * @default true
832
791
  * @constant
833
- * @enum {boolean}
834
792
  */
835
793
  isCompanion?: true;
836
794
  };
@@ -838,11 +796,15 @@ export type components = {
838
796
  "Companion-Output": {
839
797
  /** Mainguestid */
840
798
  mainGuestId: string;
799
+ /**
800
+ * Mainguestname
801
+ * @default <Unnamed>
802
+ */
803
+ mainGuestName: string;
841
804
  /**
842
805
  * Iscompanion
843
806
  * @default true
844
807
  * @constant
845
- * @enum {boolean}
846
808
  */
847
809
  isCompanion: true;
848
810
  };
@@ -864,7 +826,6 @@ export type components = {
864
826
  * Type
865
827
  * @default date
866
828
  * @constant
867
- * @enum {string}
868
829
  */
869
830
  type?: "date";
870
831
  /**
@@ -912,7 +873,6 @@ export type components = {
912
873
  * Type
913
874
  * @default date
914
875
  * @constant
915
- * @enum {string}
916
876
  */
917
877
  type: "date";
918
878
  /**
@@ -967,7 +927,6 @@ export type components = {
967
927
  * Type
968
928
  * @default dropdown
969
929
  * @constant
970
- * @enum {string}
971
930
  */
972
931
  type?: "dropdown";
973
932
  /**
@@ -1020,7 +979,6 @@ export type components = {
1020
979
  * Type
1021
980
  * @default dropdown
1022
981
  * @constant
1023
- * @enum {string}
1024
982
  */
1025
983
  type: "dropdown";
1026
984
  /**
@@ -1211,7 +1169,6 @@ export type components = {
1211
1169
  * Type
1212
1170
  * @default email
1213
1171
  * @constant
1214
- * @enum {string}
1215
1172
  */
1216
1173
  type?: "email";
1217
1174
  /**
@@ -1269,7 +1226,6 @@ export type components = {
1269
1226
  * Type
1270
1227
  * @default email
1271
1228
  * @constant
1272
- * @enum {string}
1273
1229
  */
1274
1230
  type: "email";
1275
1231
  /**
@@ -1347,17 +1303,11 @@ export type components = {
1347
1303
  * Reason
1348
1304
  * @description for error states a reason can be added to the event (reasons will be merged with reasons from prevoius errors)
1349
1305
  */
1350
- reason?: string | string[];
1351
- /**
1352
- * Clients
1353
- * @description for open events a set of email clients can be added (those will be merged with clients from prevois states)
1354
- */
1355
- clients?: string[];
1356
- /**
1357
- * Clicks
1358
- * @description for clicked events a url can be provided (those will be merged with clicks from prevois events)
1359
- */
1360
- clicks?: string[];
1306
+ reason?: string | components["schemas"]["StorableSet_str_-Input"];
1307
+ /** @description for open events a set of email clients can be added (those will be merged with clients from prevois states) */
1308
+ clients?: components["schemas"]["StorableSet_str_-Input"];
1309
+ /** @description for clicked events a url can be provided (those will be merged with clicks from prevois events) */
1310
+ clicks?: components["schemas"]["StorableSet_str_-Input"];
1361
1311
  };
1362
1312
  /**
1363
1313
  * EmailStatusUpdatedEvent
@@ -1377,12 +1327,10 @@ export type components = {
1377
1327
  * Event
1378
1328
  * @default email-status-updated
1379
1329
  * @constant
1380
- * @enum {string}
1381
1330
  */
1382
1331
  event?: "email-status-updated";
1383
- /** Group */
1384
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
1385
- preconditions?: components["schemas"]["AttendeesSelector"] | null;
1332
+ /** Preconditions */
1333
+ preconditions?: components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"] | null;
1386
1334
  /** Instancename */
1387
1335
  instanceName: string;
1388
1336
  /** Attendeeid */
@@ -1408,11 +1356,8 @@ export type components = {
1408
1356
  * Event
1409
1357
  * @default email-unsubscribed
1410
1358
  * @constant
1411
- * @enum {string}
1412
1359
  */
1413
1360
  event?: "email-unsubscribed";
1414
- /** Group */
1415
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
1416
1361
  preconditions?: components["schemas"]["Domain"] | null;
1417
1362
  /** Instancename */
1418
1363
  instanceName: string;
@@ -1423,19 +1368,23 @@ export type components = {
1423
1368
  /** Emailaddress */
1424
1369
  emailAddress: string;
1425
1370
  };
1426
- /** EventGroup */
1427
- EventGroup: {
1371
+ /** EmptyAttendeeSelector */
1372
+ EmptyAttendeeSelector: {
1373
+ /** Instancename */
1374
+ instanceName: string;
1428
1375
  /**
1429
- * Id
1430
- * Format: uuid
1376
+ * Branchname
1377
+ * @default default
1431
1378
  */
1432
- id?: string;
1433
- /** Name */
1434
- name: string;
1435
- /** Description */
1436
- description: string;
1437
- /** Instance Name */
1438
- instance_name: string;
1379
+ branchName?: string;
1380
+ /** @default {} */
1381
+ filter?: components["schemas"]["Filter"];
1382
+ /**
1383
+ * Deleted
1384
+ * @default exclude_deleted
1385
+ * @enum {string}
1386
+ */
1387
+ deleted?: "exclude_deleted" | "include_deleted" | "only_deleted";
1439
1388
  };
1440
1389
  /** EventResponse */
1441
1390
  EventResponse: {
@@ -1444,6 +1393,8 @@ export type components = {
1444
1393
  };
1445
1394
  /** FieldGroup */
1446
1395
  "FieldGroup-Input": {
1396
+ /** Name */
1397
+ name?: string;
1447
1398
  /** Questions */
1448
1399
  questions: (components["schemas"]["TextField-Input"] | components["schemas"]["StaticField-Input"] | components["schemas"]["ImageUploadField-Input"] | components["schemas"]["FileUploadField-Input"] | components["schemas"]["LongtextField-Input"] | components["schemas"]["RadioButtonGroupField-Input"] | components["schemas"]["DropdownField-Input"] | components["schemas"]["DateField-Input"] | components["schemas"]["EmailField-Input"] | components["schemas"]["NumberField-Input"] | components["schemas"]["CheckboxField-Input"] | components["schemas"]["CheckboxGroupField-Input"] | components["schemas"]["CodeField-Input"])[];
1449
1400
  /** Info */
@@ -1454,8 +1405,6 @@ export type components = {
1454
1405
  title?: string | {
1455
1406
  [key: string]: string;
1456
1407
  } | null;
1457
- /** Class */
1458
- class?: string | null;
1459
1408
  /**
1460
1409
  * Ismetagroup
1461
1410
  * @default false
@@ -1464,6 +1413,8 @@ export type components = {
1464
1413
  };
1465
1414
  /** FieldGroup */
1466
1415
  "FieldGroup-Output": {
1416
+ /** Name */
1417
+ name: string;
1467
1418
  /** Questions */
1468
1419
  questions: (components["schemas"]["TextField-Output"] | components["schemas"]["StaticField-Output"] | components["schemas"]["ImageUploadField-Output"] | components["schemas"]["FileUploadField-Output"] | components["schemas"]["LongtextField-Output"] | components["schemas"]["RadioButtonGroupField-Output"] | components["schemas"]["DropdownField-Output"] | components["schemas"]["DateField-Output"] | components["schemas"]["EmailField-Output"] | components["schemas"]["NumberField-Output"] | components["schemas"]["CheckboxField-Output"] | components["schemas"]["CheckboxGroupField-Output"] | components["schemas"]["CodeField-Output"])[];
1469
1420
  /** Info */
@@ -1474,8 +1425,6 @@ export type components = {
1474
1425
  title: string | {
1475
1426
  [key: string]: string;
1476
1427
  } | null;
1477
- /** Class */
1478
- class: string | null;
1479
1428
  /**
1480
1429
  * Ismetagroup
1481
1430
  * @default false
@@ -1497,7 +1446,6 @@ export type components = {
1497
1446
  * Type
1498
1447
  * @default upload
1499
1448
  * @constant
1500
- * @enum {string}
1501
1449
  */
1502
1450
  type?: "upload";
1503
1451
  /**
@@ -1551,7 +1499,6 @@ export type components = {
1551
1499
  * Type
1552
1500
  * @default upload
1553
1501
  * @constant
1554
- * @enum {string}
1555
1502
  */
1556
1503
  type: "upload";
1557
1504
  /**
@@ -1629,7 +1576,6 @@ export type components = {
1629
1576
  * Type
1630
1577
  * @default image
1631
1578
  * @constant
1632
- * @enum {string}
1633
1579
  */
1634
1580
  type?: "image";
1635
1581
  /**
@@ -1691,7 +1637,6 @@ export type components = {
1691
1637
  * Type
1692
1638
  * @default image
1693
1639
  * @constant
1694
- * @enum {string}
1695
1640
  */
1696
1641
  type: "image";
1697
1642
  /**
@@ -1777,7 +1722,6 @@ export type components = {
1777
1722
  * Type
1778
1723
  * @default longtext
1779
1724
  * @constant
1780
- * @enum {string}
1781
1725
  */
1782
1726
  type?: "longtext";
1783
1727
  /**
@@ -1835,7 +1779,6 @@ export type components = {
1835
1779
  * Type
1836
1780
  * @default longtext
1837
1781
  * @constant
1838
- * @enum {string}
1839
1782
  */
1840
1783
  type: "longtext";
1841
1784
  /**
@@ -1893,7 +1836,6 @@ export type components = {
1893
1836
  * Provider
1894
1837
  * @default mailgun
1895
1838
  * @constant
1896
- * @enum {string}
1897
1839
  */
1898
1840
  provider?: "mailgun";
1899
1841
  domain: components["schemas"]["Domain"];
@@ -1914,9 +1856,15 @@ export type components = {
1914
1856
  * Iscompanion
1915
1857
  * @default false
1916
1858
  * @constant
1917
- * @enum {boolean}
1918
1859
  */
1919
1860
  isCompanion?: false;
1861
+ /**
1862
+ * Companionnames
1863
+ * @default {}
1864
+ */
1865
+ companionNames?: {
1866
+ [key: string]: string;
1867
+ };
1920
1868
  };
1921
1869
  /** MainGuest */
1922
1870
  "MainGuest-Output": {
@@ -1924,17 +1872,33 @@ export type components = {
1924
1872
  * Iscompanion
1925
1873
  * @default false
1926
1874
  * @constant
1927
- * @enum {boolean}
1928
1875
  */
1929
1876
  isCompanion: false;
1877
+ /**
1878
+ * Companionnames
1879
+ * @default {}
1880
+ */
1881
+ companionNames: {
1882
+ [key: string]: string;
1883
+ };
1930
1884
  };
1931
- /** NoGroup */
1932
- NoGroup: {
1885
+ /** NarrowedAttendeeSelector */
1886
+ NarrowedAttendeeSelector: {
1887
+ /** Instancename */
1888
+ instanceName: string;
1933
1889
  /**
1934
- * Id
1935
- * Format: uuid
1890
+ * Branchname
1891
+ * @default default
1936
1892
  */
1937
- id?: string;
1893
+ branchName?: string;
1894
+ /** @default {} */
1895
+ filter?: components["schemas"]["Filter"];
1896
+ /**
1897
+ * Deleted
1898
+ * @default exclude_deleted
1899
+ * @enum {string}
1900
+ */
1901
+ deleted?: "exclude_deleted" | "include_deleted" | "only_deleted";
1938
1902
  };
1939
1903
  /** NumberField */
1940
1904
  "NumberField-Input": {
@@ -1942,7 +1906,6 @@ export type components = {
1942
1906
  * Type
1943
1907
  * @default number
1944
1908
  * @constant
1945
- * @enum {string}
1946
1909
  */
1947
1910
  type?: "number";
1948
1911
  /**
@@ -2000,7 +1963,6 @@ export type components = {
2000
1963
  * Type
2001
1964
  * @default number
2002
1965
  * @constant
2003
- * @enum {string}
2004
1966
  */
2005
1967
  type: "number";
2006
1968
  /**
@@ -2084,11 +2046,8 @@ export type components = {
2084
2046
  * Event
2085
2047
  * @default payment-paid
2086
2048
  * @constant
2087
- * @enum {string}
2088
2049
  */
2089
2050
  event?: "payment-paid";
2090
- /** Group */
2091
- group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
2092
2051
  preconditions?: components["schemas"]["common__events__payment_paid_event__Preconditions"] | null;
2093
2052
  /** Attendeeid */
2094
2053
  attendeeId: string;
@@ -2106,11 +2065,8 @@ export type components = {
2106
2065
  userdata?: {
2107
2066
  [key: string]: string | boolean | number | string[] | components["schemas"]["FileReference"] | null;
2108
2067
  };
2109
- /**
2110
- * Tags
2111
- * @default []
2112
- */
2113
- tags?: string[];
2068
+ /** @default [] */
2069
+ tags?: components["schemas"]["StorableSet_str_-Input"];
2114
2070
  /** Language */
2115
2071
  language: string | null;
2116
2072
  /**
@@ -2132,14 +2088,12 @@ export type components = {
2132
2088
  checkin?: {
2133
2089
  [key: string]: components["schemas"]["Checkins-Input"];
2134
2090
  };
2135
- /**
2136
- * Branches
2137
- * @default []
2138
- */
2139
- branches?: string[];
2091
+ /** @default [] */
2092
+ branches?: components["schemas"]["StorableSet_str_-Input"];
2140
2093
  /**
2141
2094
  * @default {
2142
- * "isCompanion": false
2095
+ * "isCompanion": false,
2096
+ * "companionNames": {}
2143
2097
  * }
2144
2098
  */
2145
2099
  companions?: components["schemas"]["RootModel_Union_Companion__MainGuest__-Input"];
@@ -2161,11 +2115,8 @@ export type components = {
2161
2115
  userdata: {
2162
2116
  [key: string]: string | boolean | number | string[] | components["schemas"]["FileReference"] | null;
2163
2117
  };
2164
- /**
2165
- * Tags
2166
- * @default []
2167
- */
2168
- tags: string[];
2118
+ /** @default [] */
2119
+ tags: components["schemas"]["StorableSet_str_-Output"];
2169
2120
  /** Language */
2170
2121
  language: string | null;
2171
2122
  /**
@@ -2187,14 +2138,12 @@ export type components = {
2187
2138
  checkin: {
2188
2139
  [key: string]: components["schemas"]["Checkins-Output"];
2189
2140
  };
2190
- /**
2191
- * Branches
2192
- * @default []
2193
- */
2194
- branches: string[];
2141
+ /** @default [] */
2142
+ branches: components["schemas"]["StorableSet_str_-Output"];
2195
2143
  /**
2196
2144
  * @default {
2197
- * "isCompanion": false
2145
+ * "isCompanion": false,
2146
+ * "companionNames": {}
2198
2147
  * }
2199
2148
  */
2200
2149
  companions: components["schemas"]["RootModel_Union_Companion__MainGuest__-Output"];
@@ -2276,7 +2225,7 @@ export type components = {
2276
2225
  userdata: Record<string, unknown>;
2277
2226
  /** Permissions */
2278
2227
  permissions: {
2279
- [key: string]: ("attendees:read" | "attendees:create" | "attendees:write" | "attendees:write:bulk" | "attendees:import" | "attendees:export" | "attendees:delete:soft" | "attendees:delete:final" | "emails:send" | "emails:send:bulk" | "email-config:write" | "pdfs:write" | "pdfs:export" | "payment:write" | "checkins:write" | "branches:write" | "files:write" | "fields:write" | "fields:read" | "templates:write" | "register-flow:write" | "export-config:write" | "instance-info:read" | "instance-info:write" | "domains:manage" | "stats:read" | "stats:write" | "backup:write" | "variables:read" | "variables:write" | "webhooks:read" | "webhooks:write" | "eventlog:read")[];
2228
+ [key: string]: ("attendees:read" | "attendees:create" | "attendees:write" | "attendees:write:bulk" | "attendees:import" | "attendees:export" | "attendees:delete:soft" | "attendees:delete:final" | "emails:send" | "emails:send:bulk" | "email-config:write" | "eventlog:read" | "pdfs:write" | "pdfs:export" | "payment:write" | "checkins:write" | "branches:write" | "files:write" | "fields:write" | "fields:read" | "templates:write" | "register-flow:write" | "export-config:write" | "instance-info:read" | "instance-info:write" | "domains:manage" | "stats:read" | "stats:write" | "backup:write" | "variables:read" | "variables:write" | "webhooks:read" | "webhooks:write")[];
2280
2229
  };
2281
2230
  /** Groups */
2282
2231
  groups: {
@@ -2305,12 +2254,11 @@ export type components = {
2305
2254
  /** Personcount */
2306
2255
  personCount: number;
2307
2256
  /**
2308
- * Checkincounters
2309
2257
  * @default [
2310
2258
  * "main"
2311
2259
  * ]
2312
2260
  */
2313
- checkinCounters?: string[];
2261
+ checkinCounters?: components["schemas"]["StorableSet_str_-Input"];
2314
2262
  /** Time */
2315
2263
  time: string | null;
2316
2264
  };
@@ -2324,12 +2272,11 @@ export type components = {
2324
2272
  /** Personcount */
2325
2273
  personCount: number;
2326
2274
  /**
2327
- * Checkincounters
2328
2275
  * @default [
2329
2276
  * "main"
2330
2277
  * ]
2331
2278
  */
2332
- checkinCounters: string[];
2279
+ checkinCounters: components["schemas"]["StorableSet_str_-Output"];
2333
2280
  /** Time */
2334
2281
  time: string | null;
2335
2282
  /** Confirmed */
@@ -2341,7 +2288,6 @@ export type components = {
2341
2288
  * Type
2342
2289
  * @default radio
2343
2290
  * @constant
2344
- * @enum {string}
2345
2291
  */
2346
2292
  type?: "radio";
2347
2293
  /**
@@ -2394,7 +2340,6 @@ export type components = {
2394
2340
  * Type
2395
2341
  * @default radio
2396
2342
  * @constant
2397
- * @enum {string}
2398
2343
  */
2399
2344
  type: "radio";
2400
2345
  /**
@@ -2486,7 +2431,6 @@ export type components = {
2486
2431
  * Provider
2487
2432
  * @default smtp
2488
2433
  * @constant
2489
- * @enum {string}
2490
2434
  */
2491
2435
  provider?: "smtp";
2492
2436
  /** Server */
@@ -2506,7 +2450,6 @@ export type components = {
2506
2450
  * Type
2507
2451
  * @default static
2508
2452
  * @constant
2509
- * @enum {string}
2510
2453
  */
2511
2454
  type?: "static";
2512
2455
  /**
@@ -2564,7 +2507,6 @@ export type components = {
2564
2507
  * Type
2565
2508
  * @default static
2566
2509
  * @constant
2567
- * @enum {string}
2568
2510
  */
2569
2511
  type: "static";
2570
2512
  /**
@@ -2616,13 +2558,14 @@ export type components = {
2616
2558
  */
2617
2559
  max: number;
2618
2560
  };
2561
+ "StorableSet_str_-Input": string[];
2562
+ "StorableSet_str_-Output": string[];
2619
2563
  /** TextField */
2620
2564
  "TextField-Input": {
2621
2565
  /**
2622
2566
  * Type
2623
2567
  * @default text
2624
2568
  * @constant
2625
- * @enum {string}
2626
2569
  */
2627
2570
  type?: "text";
2628
2571
  /**
@@ -2680,7 +2623,6 @@ export type components = {
2680
2623
  * Type
2681
2624
  * @default text
2682
2625
  * @constant
2683
- * @enum {string}
2684
2626
  */
2685
2627
  type: "text";
2686
2628
  /**
@@ -2759,7 +2701,6 @@ export type components = {
2759
2701
  /**
2760
2702
  * Variabletype
2761
2703
  * @constant
2762
- * @enum {string}
2763
2704
  */
2764
2705
  variableType: "text";
2765
2706
  /**
@@ -2786,7 +2727,6 @@ export type components = {
2786
2727
  /**
2787
2728
  * Variabletype
2788
2729
  * @constant
2789
- * @enum {string}
2790
2730
  */
2791
2731
  variableType: "text";
2792
2732
  /**
@@ -2809,8 +2749,10 @@ export type components = {
2809
2749
  /** Isprivate */
2810
2750
  isPrivate?: boolean | null;
2811
2751
  };
2812
- common__events__attendee_responded_event__Preconditions: [components["schemas"]["AttendeesSelector"], [string, components["schemas"]["EmailConfig"]][], components["schemas"]["MailgunConfig"] | components["schemas"]["SmtpConfig"], components["schemas"]["FrontendConfig"]];
2813
- common__events__payment_paid_event__Preconditions: [components["schemas"]["AttendeesSelector"], [string, components["schemas"]["EmailConfig"]][], components["schemas"]["MailgunConfig"] | components["schemas"]["SmtpConfig"], components["schemas"]["FrontendConfig"]];
2752
+ common__events__attendee_created_event__Preconditions: [string[]];
2753
+ common__events__attendee_responded_event__Preconditions: [components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"], [string, components["schemas"]["EmailConfig"]][], components["schemas"]["MailgunConfig"] | components["schemas"]["SmtpConfig"], components["schemas"]["FrontendConfig"]];
2754
+ common__events__attendee_updated_event__Preconditions: [components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"], components["schemas"]["FieldGroup-Input"][], string[]];
2755
+ common__events__payment_paid_event__Preconditions: [components["schemas"]["NarrowedAttendeeSelector"] | components["schemas"]["EmptyAttendeeSelector"], [string, components["schemas"]["EmailConfig"]][], components["schemas"]["MailgunConfig"] | components["schemas"]["SmtpConfig"], components["schemas"]["FrontendConfig"]];
2814
2756
  };
2815
2757
  responses: never;
2816
2758
  parameters: never;
@@ -4,8 +4,10 @@ import { Checkins } from './checkins';
4
4
  import { FieldValue } from './field-value';
5
5
  import { Rsvp } from './rsvp';
6
6
  import { AttendeeUpdatedEvent } from './event';
7
- export type AttendeeJSON = components['schemas']['PublicAttendee-Output'];
8
7
  type AttendeeJSONInput = components['schemas']['PublicAttendee-Input'];
8
+ export type AttendeeJSON = Omit<components['schemas']['PublicAttendee-Output'], 'companions'> & {
9
+ companions: AttendeeJSONInput['companions'];
10
+ };
9
11
  export declare class Attendee {
10
12
  id: string;
11
13
  userdata: Map<string, FieldValue>;
@@ -17,6 +19,9 @@ export declare class Attendee {
17
19
  checkin: Map<string, Checkins>;
18
20
  companions: {
19
21
  isCompanion: false;
22
+ comanionNames?: {
23
+ [attendeeId: string]: string;
24
+ };
20
25
  } | {
21
26
  isCompanion: true;
22
27
  mainGuestId: string;
@@ -53,7 +58,7 @@ export declare class Attendee {
53
58
  checkinId: string;
54
59
  }): Attendee;
55
60
  withUpdates(updates: AttendeeUpdatedEvent['updates']): Attendee;
56
- getFieldString(fieldKey: string): string;
61
+ getFieldString(fieldKey: string, fallback?: string): string;
57
62
  /**
58
63
  * @deprecated Use `getFieldString` instead
59
64
  */
@@ -9,7 +9,8 @@ export class Attendee {
9
9
  rsvp = new Map();
10
10
  checkin = new Map();
11
11
  companions = {
12
- isCompanion: false
12
+ isCompanion: false,
13
+ comanionNames: {}
13
14
  };
14
15
  payment = null;
15
16
  deleted = false;
@@ -32,7 +33,8 @@ export class Attendee {
32
33
  isCompanion: true,
33
34
  ...json.companions
34
35
  } : {
35
- isCompanion: false
36
+ isCompanion: false,
37
+ ...json.companions
36
38
  };
37
39
  this.payment = json.payment ?? null;
38
40
  this.deleted = json.deleted ?? false;
@@ -159,9 +161,9 @@ export class Attendee {
159
161
  }
160
162
  return newAttendee;
161
163
  }
162
- getFieldString(fieldKey) {
164
+ getFieldString(fieldKey, fallback = '') {
163
165
  const fieldValue = this.userdata.get(fieldKey);
164
- return fieldValue?.toString() ?? '';
166
+ return fieldValue?.toString() ?? fallback;
165
167
  }
166
168
 
167
169
  /**
@@ -1,18 +1,18 @@
1
1
  export class FieldGroups {
2
2
  get groups() {
3
3
  const groups = new Map();
4
- for (const [index, group] of this._groups.entries()) {
5
- groups.set(index.toString(), group);
4
+ for (const group of this._groups) {
5
+ groups.set(group.name, group);
6
6
  }
7
7
  return groups;
8
8
  }
9
9
  get fields() {
10
10
  const fields = new Map();
11
- for (const [groupIndex, group] of this._groups.entries()) {
11
+ for (const group of this._groups) {
12
12
  for (const field of group.questions) {
13
13
  fields.set(field.name, {
14
14
  ...field,
15
- group: groupIndex.toString()
15
+ group: group.name
16
16
  });
17
17
  }
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.84.0",
3
+ "version": "0.86.0",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",