@dev-crew-berlin/enter-js-utils 0.87.2 → 0.88.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ npm install @dev-crew-berlin/enter-js-utils
12
12
 
13
13
  React ui components for enter and dcb apps.
14
14
 
15
- > docs: https://js-utils.enter.events/storybook
15
+ > docs: https://js-utils.enter.events/storybook/
16
16
 
17
17
  ### lib
18
18
 
@@ -4,6 +4,7 @@ import { Checkins } from './checkins';
4
4
  import { FieldValue } from './field-value';
5
5
  import { Rsvp } from './rsvp';
6
6
  import { AttendeeUpdatedEvent } from './event';
7
+ import { Payment } from './payment';
7
8
  type AttendeeJSONInput = components['schemas']['PublicAttendee-Input'];
8
9
  export type AttendeeJSON = Omit<components['schemas']['PublicAttendee-Output'], 'companions'> & {
9
10
  companions: AttendeeJSONInput['companions'];
@@ -19,19 +20,14 @@ export declare class Attendee {
19
20
  checkin: Map<string, Checkins>;
20
21
  companions: {
21
22
  isCompanion: false;
22
- comanionNames?: {
23
+ companionNames?: {
23
24
  [attendeeId: string]: string;
24
25
  };
25
26
  } | {
26
27
  isCompanion: true;
27
28
  mainGuestId: string;
28
29
  };
29
- payment: {
30
- paid: boolean;
31
- provider: components['schemas']['Payment']['provider'];
32
- amount: number;
33
- testmode: boolean;
34
- } | null;
30
+ payment: Payment | null;
35
31
  deleted: boolean;
36
32
  constructor(args: AttendeeJSONInput | string);
37
33
  /**
@@ -10,7 +10,7 @@ export class Attendee {
10
10
  checkin = new Map();
11
11
  companions = {
12
12
  isCompanion: false,
13
- comanionNames: {}
13
+ companionNames: {}
14
14
  };
15
15
  payment = null;
16
16
  deleted = false;
@@ -19,3 +19,4 @@ export type { InstanceJSON } from './instance';
19
19
  export type { Permission } from './permission';
20
20
  export type { User } from './user';
21
21
  export type { Variable } from './variable';
22
+ export type { Payment } from './payment';
@@ -0,0 +1,2 @@
1
+ import { components } from '../generated/api-schema';
2
+ export type Payment = components['schemas']['Payment'];
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.87.2",
3
+ "version": "0.88.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",