@dev-crew-berlin/enter-js-utils 0.98.9 → 0.98.11
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/dist/api-client/api-base.js +62 -9
- package/dist/api-client/api-client.test.js +242 -0
- package/dist/api-client/index.d.ts +4 -1
- package/dist/api-client/index.js +12 -1
- package/dist/generated/api-schema.d.ts +618 -267
- package/dist/models/attendee.d.ts +4 -1
- package/dist/models/attendee.js +4 -0
- package/package.json +1 -1
|
@@ -6,8 +6,11 @@ import { Rsvp } from './rsvp';
|
|
|
6
6
|
import { AttendeeUpdatedEvent } from './event';
|
|
7
7
|
import { Payment } from './payment';
|
|
8
8
|
type AttendeeJSONInput = components['schemas']['PublicAttendee-Input'];
|
|
9
|
+
type CompanionInput = components['schemas']['Companion-Input'] | (Omit<components['schemas']['MainGuest-Input'], 'companionNames'> & {
|
|
10
|
+
companionNames?: Record<string, string>;
|
|
11
|
+
});
|
|
9
12
|
export type AttendeeJSON = Omit<components['schemas']['PublicAttendee-Output'], 'companions'> & {
|
|
10
|
-
companions
|
|
13
|
+
companions?: CompanionInput;
|
|
11
14
|
};
|
|
12
15
|
export declare class Attendee {
|
|
13
16
|
id: string;
|
package/dist/models/attendee.js
CHANGED
|
@@ -2,6 +2,10 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
2
2
|
import hash from 'stable-hash';
|
|
3
3
|
import { Checkins } from './checkins';
|
|
4
4
|
import { Rsvp } from './rsvp';
|
|
5
|
+
|
|
6
|
+
// companionNames has default:{} on the backend so it is optional on input,
|
|
7
|
+
// but openapi-typescript treats absent `required` as all-required — patch it locally.
|
|
8
|
+
|
|
5
9
|
export class Attendee {
|
|
6
10
|
userdata = new Map();
|
|
7
11
|
tags = new Set();
|