@dev-crew-berlin/enter-js-utils 0.46.0 → 0.46.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.
@@ -3,13 +3,14 @@ import { Field } from './field';
3
3
  export declare type Dictionary<T> = Record<string, T>;
4
4
  export declare type FieldGroup = components['schemas']['FieldGroup'];
5
5
  export declare type FieldLabels = Record<string, FieldTitle | undefined>;
6
+ export declare type FieldMap = Map<string, Field & {
7
+ group: string;
8
+ }>;
6
9
  declare type FieldTitle = string | Dictionary<string>;
7
10
  export declare class FieldGroups {
8
11
  groups: FieldGroup[];
9
12
  get groupNames(): string[];
10
- get fields(): Map<string, Field & {
11
- group: string;
12
- }>;
13
+ get fields(): FieldMap;
13
14
  constructor(json: FieldGroup[]);
14
15
  toJSON(): FieldGroup[];
15
16
  getFieldLabels(): FieldLabels;
@@ -6,7 +6,7 @@ export type { CheckinJSON } from './checkin';
6
6
  export { Checkins } from './checkins';
7
7
  export type { CheckinsJSON } from './checkins';
8
8
  export type { Event, AttendeeUpdatedEvent, AttendeeCreatedEvent, AttendeeRespondedEvent, AttendeeDeletedEvent, CheckinCreatedEvent, CheckinDeletedEvent, PaymentPaidEvent, } from './event';
9
- export type { FieldGroup, FieldLabels } from './field-group';
9
+ export type { FieldGroup, FieldLabels, FieldMap } from './field-group';
10
10
  export { FieldGroups } from './field-group';
11
11
  export type { FieldValue } from './field-value';
12
12
  export type { StaticField, TextField, EmailField, NumberField, CheckboxField, SingleCheckboxField, RadioField, SingleRadioField, SelectField, Field, } from './field';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",