@dev-crew-berlin/enter-js-utils 0.48.0 → 0.49.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.
@@ -65,6 +65,29 @@ export declare type paths = {
65
65
  };
66
66
  export declare type components = {
67
67
  schemas: {
68
+ /**
69
+ * AttendeeAuthCodeRequested
70
+ * @description A request to set an auth_code for the attendee
71
+ *
72
+ * This will generate and set an auth code for the attendee. If none is already set.
73
+ */
74
+ AttendeeAuthCodeRequested: {
75
+ /**
76
+ * Id
77
+ * Format: uuid
78
+ */
79
+ id?: string;
80
+ /**
81
+ * Event
82
+ * @default attendee-auth-code-requested
83
+ * @enum {string}
84
+ */
85
+ event: "attendee-auth-code-requested";
86
+ /** Instancename */
87
+ instanceName: string;
88
+ /** Attendeeid */
89
+ attendeeId: string;
90
+ };
68
91
  /**
69
92
  * AttendeeCreatedEvent
70
93
  * @description New attendee was created
@@ -218,55 +241,6 @@ export declare type components = {
218
241
  */
219
242
  suffix: string;
220
243
  };
221
- /** AuthField */
222
- AuthField: {
223
- /**
224
- * Type
225
- * @default auth
226
- * @enum {string}
227
- */
228
- type: "auth";
229
- /**
230
- * Name
231
- * @default new_field
232
- */
233
- name: string;
234
- /** Title */
235
- title?: string | {
236
- [key: string]: string;
237
- };
238
- /** Info */
239
- info?: string | {
240
- [key: string]: string;
241
- };
242
- /**
243
- * Class
244
- * @default
245
- */
246
- class: string;
247
- /**
248
- * Ismetafield
249
- * @default false
250
- */
251
- isMetaField: boolean;
252
- /**
253
- * Static
254
- * @default false
255
- */
256
- static: boolean;
257
- /**
258
- * Required
259
- * @default false
260
- */
261
- required: boolean;
262
- /**
263
- * Hidden
264
- * @default false
265
- */
266
- hidden: boolean;
267
- /** Value */
268
- value?: string;
269
- };
270
244
  /** CheckboxField */
271
245
  CheckboxField: {
272
246
  /**
@@ -473,6 +447,65 @@ export declare type components = {
473
447
  */
474
448
  deleted: string[];
475
449
  };
450
+ /** CodeField */
451
+ CodeField: {
452
+ /**
453
+ * Type
454
+ * @default code
455
+ * @enum {string}
456
+ */
457
+ type: "code";
458
+ /**
459
+ * Name
460
+ * @default new_field
461
+ */
462
+ name: string;
463
+ /** Title */
464
+ title?: string | {
465
+ [key: string]: string;
466
+ };
467
+ /** Info */
468
+ info?: string | {
469
+ [key: string]: string;
470
+ };
471
+ /**
472
+ * Class
473
+ * @default
474
+ */
475
+ class: string;
476
+ /**
477
+ * Ismetafield
478
+ * @default false
479
+ */
480
+ isMetaField: boolean;
481
+ /**
482
+ * Static
483
+ * @default false
484
+ */
485
+ static: boolean;
486
+ /**
487
+ * Required
488
+ * @default false
489
+ */
490
+ required: boolean;
491
+ /**
492
+ * Hidden
493
+ * @default false
494
+ */
495
+ hidden: boolean;
496
+ /** Value */
497
+ value?: string;
498
+ /**
499
+ * Min
500
+ * @default 0
501
+ */
502
+ min: number;
503
+ /**
504
+ * Max
505
+ * @default 2000
506
+ */
507
+ max: number;
508
+ };
476
509
  /** CompanionJSON */
477
510
  CompanionJSON: {
478
511
  /**
@@ -637,10 +670,16 @@ export declare type components = {
637
670
  hidden: boolean;
638
671
  /** Value */
639
672
  value?: string;
640
- /** Min */
641
- min?: number;
642
- /** Max */
643
- max?: number;
673
+ /**
674
+ * Min
675
+ * @default 0
676
+ */
677
+ min: number;
678
+ /**
679
+ * Max
680
+ * @default 1000
681
+ */
682
+ max: number;
644
683
  };
645
684
  /**
646
685
  * EmailUnsubscribedEvent
@@ -671,7 +710,7 @@ export declare type components = {
671
710
  emailAddress: string;
672
711
  };
673
712
  /** EventList */
674
- EventList: (components["schemas"]["AttendeeCreatedEvent"] | components["schemas"]["AttendeeUpdatedEvent"] | components["schemas"]["AttendeeRespondedEvent"] | components["schemas"]["EmailUnsubscribedEvent"] | components["schemas"]["AttendeeDeletedEvent"] | components["schemas"]["CheckinCreatedEvent"] | components["schemas"]["CheckinDeletedEvent"] | components["schemas"]["PaymentPaidEvent"])[];
713
+ EventList: (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"])[];
675
714
  /** EventResponse */
676
715
  EventResponse: {
677
716
  /** Created */
@@ -680,7 +719,7 @@ export declare type components = {
680
719
  /** FieldGroup */
681
720
  FieldGroup: {
682
721
  /** Questions */
683
- questions: (components["schemas"]["TextField"] | components["schemas"]["StaticField"] | components["schemas"]["ImageUploadField"] | components["schemas"]["FileUploadField"] | components["schemas"]["LongtextField"] | components["schemas"]["RadioButtonField"] | components["schemas"]["RadioButtonGroupField"] | components["schemas"]["DropdownField"] | components["schemas"]["DateField"] | components["schemas"]["EmailField"] | components["schemas"]["AuthField"] | components["schemas"]["NumberField"] | components["schemas"]["CheckboxField"] | components["schemas"]["CheckboxGroupField"])[];
722
+ questions: (components["schemas"]["TextField"] | components["schemas"]["StaticField"] | components["schemas"]["ImageUploadField"] | components["schemas"]["FileUploadField"] | components["schemas"]["LongtextField"] | components["schemas"]["RadioButtonGroupField"] | components["schemas"]["DropdownField"] | components["schemas"]["DateField"] | components["schemas"]["EmailField"] | components["schemas"]["NumberField"] | components["schemas"]["CheckboxField"] | components["schemas"]["CheckboxGroupField"] | components["schemas"]["CodeField"])[];
684
723
  /** Info */
685
724
  info?: string | {
686
725
  [key: string]: string;
@@ -887,10 +926,16 @@ export declare type components = {
887
926
  hidden: boolean;
888
927
  /** Value */
889
928
  value?: string;
890
- /** Min */
891
- min?: number;
892
- /** Max */
893
- max?: number;
929
+ /**
930
+ * Min
931
+ * @default 0
932
+ */
933
+ min: number;
934
+ /**
935
+ * Max
936
+ * @default 1000
937
+ */
938
+ max: number;
894
939
  };
895
940
  /** MainGuestJSON */
896
941
  MainGuestJSON: {
@@ -948,10 +993,16 @@ export declare type components = {
948
993
  hidden: boolean;
949
994
  /** Value */
950
995
  value?: string;
951
- /** Min */
952
- min?: number;
953
- /** Max */
954
- max?: number;
996
+ /**
997
+ * Min
998
+ * @default 0
999
+ */
1000
+ min: number;
1001
+ /**
1002
+ * Max
1003
+ * @default 1000
1004
+ */
1005
+ max: number;
955
1006
  };
956
1007
  /** Payment */
957
1008
  Payment: {
@@ -1105,57 +1156,6 @@ export declare type components = {
1105
1156
  /** Answer */
1106
1157
  answer: string;
1107
1158
  };
1108
- /** RadioButtonField */
1109
- RadioButtonField: {
1110
- /**
1111
- * Type
1112
- * @default radiobutton
1113
- * @enum {string}
1114
- */
1115
- type: "radiobutton";
1116
- /**
1117
- * Name
1118
- * @default new_field
1119
- */
1120
- name: string;
1121
- /** Title */
1122
- title?: string | {
1123
- [key: string]: string;
1124
- };
1125
- /** Info */
1126
- info?: string | {
1127
- [key: string]: string;
1128
- };
1129
- /**
1130
- * Class
1131
- * @default
1132
- */
1133
- class: string;
1134
- /**
1135
- * Ismetafield
1136
- * @default false
1137
- */
1138
- isMetaField: boolean;
1139
- /**
1140
- * Static
1141
- * @default false
1142
- */
1143
- static: boolean;
1144
- /**
1145
- * Required
1146
- * @default false
1147
- */
1148
- required: boolean;
1149
- /**
1150
- * Hidden
1151
- * @default false
1152
- */
1153
- hidden: boolean;
1154
- /** Value */
1155
- value?: string;
1156
- /** Itemval */
1157
- itemval?: string;
1158
- };
1159
1159
  /** RadioButtonGroupField */
1160
1160
  RadioButtonGroupField: {
1161
1161
  /**
@@ -1296,6 +1296,16 @@ export declare type components = {
1296
1296
  hidden: boolean;
1297
1297
  /** Value */
1298
1298
  value?: string;
1299
+ /**
1300
+ * Min
1301
+ * @default 0
1302
+ */
1303
+ min: number;
1304
+ /**
1305
+ * Max
1306
+ * @default 1000
1307
+ */
1308
+ max: number;
1299
1309
  };
1300
1310
  /** TextField */
1301
1311
  TextField: {
@@ -1345,10 +1355,16 @@ export declare type components = {
1345
1355
  hidden: boolean;
1346
1356
  /** Value */
1347
1357
  value?: string;
1348
- /** Min */
1349
- min?: number;
1350
- /** Max */
1351
- max?: number;
1358
+ /**
1359
+ * Min
1360
+ * @default 0
1361
+ */
1362
+ min: number;
1363
+ /**
1364
+ * Max
1365
+ * @default 1000
1366
+ */
1367
+ max: number;
1352
1368
  };
1353
1369
  /** UserPreferencesUpdate */
1354
1370
  UserPreferencesUpdate: {
@@ -20,9 +20,6 @@ export declare type SingleCheckboxField = components['schemas']['CheckboxField']
20
20
  export declare type RadioField = components['schemas']['RadioButtonGroupField'] & {
21
21
  group: string;
22
22
  };
23
- export declare type SingleRadioField = components['schemas']['RadioButtonField'] & {
24
- group: string;
25
- };
26
23
  export declare type SelectField = components['schemas']['DropdownField'] & {
27
24
  group: string;
28
25
  };
@@ -9,7 +9,7 @@ export type { Event, AttendeeUpdatedEvent, AttendeeCreatedEvent, AttendeeRespond
9
9
  export type { FieldGroup } from './field-group';
10
10
  export { FieldGroups } from './field-group';
11
11
  export type { FieldValue } from './field-value';
12
- export type { StaticField, TextField, EmailField, NumberField, CheckboxField, SingleCheckboxField, RadioField, SingleRadioField, SelectField, Field, } from './field';
12
+ export type { StaticField, TextField, EmailField, NumberField, CheckboxField, SingleCheckboxField, RadioField, SelectField, Field, } from './field';
13
13
  export { Instance } from './instance';
14
14
  export type { InstanceJSON } from './instance';
15
15
  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.48.0",
3
+ "version": "0.49.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",