@dev-crew-berlin/enter-js-utils 0.70.2 → 0.72.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.
@@ -17,6 +17,12 @@ declare type ResponseType<Path extends keyof paths, Method extends HTTPMethod> =
17
17
  export declare type RequestBody<Path extends keyof paths, Method extends HTTPMethod> = paths[Path] extends Record<Method, {
18
18
  requestBody: JSONRes;
19
19
  }> ? paths[Path][Method]['requestBody']['content']['application/json'] : never;
20
+ export declare type FetchOptions = {
21
+ cache?: 'force-cache' | 'no-store';
22
+ next?: {
23
+ revalidate: false | 0 | number;
24
+ };
25
+ };
20
26
  export default class APIBase {
21
27
  private credentials;
22
28
  private isLoggedIn;
@@ -45,11 +51,11 @@ export default class APIBase {
45
51
  expires: Date;
46
52
  }>>;
47
53
  private fetchFromEnter;
48
- protected get<Path extends keyof paths>(endpoint: Path): Promise<APIResult<ResponseType<Path, 'get'>>>;
49
- protected post<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'post'>): Promise<APIResult<ResponseType<Path, 'post'>>>;
50
- protected put<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'put'>): Promise<APIResult<ResponseType<Path, 'put'>>>;
51
- protected patch<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'patch'>): Promise<APIResult<ResponseType<Path, 'patch'>>>;
52
- protected delete<Path extends keyof paths>(endpoint: Path): Promise<APIResult<ResponseType<Path, 'delete'>>>;
54
+ protected get<Path extends keyof paths>(endpoint: Path, options: FetchOptions): Promise<APIResult<ResponseType<Path, 'get'>>>;
55
+ protected post<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'post'>, options: FetchOptions): Promise<APIResult<ResponseType<Path, 'post'>>>;
56
+ protected put<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'put'>, options: FetchOptions): Promise<APIResult<ResponseType<Path, 'put'>>>;
57
+ protected patch<Path extends keyof paths>(endpoint: Path, data: RequestBody<Path, 'patch'>, options: FetchOptions): Promise<APIResult<ResponseType<Path, 'patch'>>>;
58
+ protected delete<Path extends keyof paths>(endpoint: Path, options: FetchOptions): Promise<APIResult<ResponseType<Path, 'delete'>>>;
53
59
  logout(): Promise<void>;
54
60
  }
55
61
  export {};
@@ -68,7 +68,7 @@ export default class APIBase {
68
68
  return failure(`${error}`);
69
69
  }
70
70
  }
71
- async fetchFromEnter(endpoint, method, data) {
71
+ async fetchFromEnter(endpoint, method, data, options) {
72
72
  const body = data !== null ? JSON.stringify(data) : null;
73
73
  const headers = {
74
74
  Authorization: `bearer ${this.credentials.accessToken}`,
@@ -79,7 +79,8 @@ export default class APIBase {
79
79
  const res = await APIBase.fetchResult(`${this.credentials.url}${endpoint}`, {
80
80
  method: method.toUpperCase(),
81
81
  headers,
82
- body
82
+ body,
83
+ ...options
83
84
  });
84
85
  if (!res.success) {
85
86
  return failure([{
@@ -121,28 +122,28 @@ export default class APIBase {
121
122
  const json = await res.data.json();
122
123
  return success(json);
123
124
  }
124
- async get(endpoint) {
125
- const rawResponse = await this.fetchFromEnter(endpoint, 'get', undefined);
125
+ async get(endpoint, options) {
126
+ const rawResponse = await this.fetchFromEnter(endpoint, 'get', undefined, options);
126
127
  if (!rawResponse.success) return rawResponse;
127
128
  return success(rawResponse.data);
128
129
  }
129
- async post(endpoint, data) {
130
- const rawResponse = await this.fetchFromEnter(endpoint, 'post', data);
130
+ async post(endpoint, data, options) {
131
+ const rawResponse = await this.fetchFromEnter(endpoint, 'post', data, options);
131
132
  if (!rawResponse.success) return rawResponse;
132
133
  return success(rawResponse.data);
133
134
  }
134
- async put(endpoint, data) {
135
- const rawResponse = await this.fetchFromEnter(endpoint, 'put', data);
135
+ async put(endpoint, data, options) {
136
+ const rawResponse = await this.fetchFromEnter(endpoint, 'put', data, options);
136
137
  if (!rawResponse.success) return rawResponse;
137
138
  return success(rawResponse.data);
138
139
  }
139
- async patch(endpoint, data) {
140
- const rawResponse = await this.fetchFromEnter(endpoint, 'patch', data);
140
+ async patch(endpoint, data, options) {
141
+ const rawResponse = await this.fetchFromEnter(endpoint, 'patch', data, options);
141
142
  if (!rawResponse.success) return rawResponse;
142
143
  return success(rawResponse.data);
143
144
  }
144
- async delete(endpoint) {
145
- const rawResponse = await this.fetchFromEnter(endpoint, 'delete', undefined);
145
+ async delete(endpoint, options) {
146
+ const rawResponse = await this.fetchFromEnter(endpoint, 'delete', undefined, options);
146
147
  if (!rawResponse.success) return rawResponse;
147
148
  return success(rawResponse.data);
148
149
  }
@@ -1,4 +1,4 @@
1
- import APIBase, { RequestBody } from './api-base';
1
+ import APIBase, { FetchOptions, RequestBody } from './api-base';
2
2
  import { APIResult } from '../lib';
3
3
  import { Attendee } from '../models/attendee';
4
4
  import { Event } from '../models';
@@ -11,72 +11,72 @@ import { components } from '../generated/api-schema';
11
11
  import { Email } from '../models/email';
12
12
  export type { APICredentials } from './api-base';
13
13
  export default class API extends APIBase {
14
- getInstanceList(): Promise<APIResult<Instance[]>>;
14
+ getInstanceList(options?: FetchOptions): Promise<APIResult<Instance[]>>;
15
15
  getInstance(args: {
16
16
  instanceName: string;
17
- }): Promise<APIResult<Instance>>;
17
+ }, options?: FetchOptions): Promise<APIResult<Instance>>;
18
18
  getFields(args: {
19
19
  instanceName: string;
20
- }): Promise<APIResult<FieldGroups>>;
20
+ }, options?: FetchOptions): Promise<APIResult<FieldGroups>>;
21
21
  getCheckinCounts(args: {
22
22
  instanceName: string;
23
- }): Promise<APIResult<CheckinCounts>>;
23
+ }, options?: FetchOptions): Promise<APIResult<CheckinCounts>>;
24
24
  calculateCustomCounts(args: {
25
25
  instanceName: string;
26
26
  counter: components['schemas']['CustomCounter'][];
27
- }): Promise<APIResult<{
27
+ }, options?: FetchOptions): Promise<APIResult<{
28
28
  [key: string]: number;
29
29
  }>>;
30
30
  getAttendeeList(args: {
31
31
  instanceName: string;
32
32
  filter?: string;
33
33
  includeDeleted?: boolean;
34
- }): Promise<APIResult<Attendee[]>>;
34
+ }, options?: FetchOptions): Promise<APIResult<Attendee[]>>;
35
35
  getAttendee(args: {
36
36
  instanceName: string;
37
37
  attendeeId: string;
38
38
  includeDeleted?: boolean;
39
- }): Promise<APIResult<Attendee>>;
39
+ }, options?: FetchOptions): Promise<APIResult<Attendee>>;
40
40
  getCompanions(args: {
41
41
  instanceName: string;
42
42
  attendeeId: string;
43
43
  includeDeleted?: boolean;
44
- }): Promise<APIResult<Attendee[]>>;
44
+ }, options?: FetchOptions): Promise<APIResult<Attendee[]>>;
45
45
  generateRegistrationToken(args: {
46
46
  instanceName: string;
47
47
  check: components['schemas']['SecurityQuestion'] | components['schemas']['AuthCode'] | components['schemas']['AttendeeId'];
48
- }): Promise<APIResult<string>>;
48
+ }, options?: FetchOptions): Promise<APIResult<string>>;
49
49
  getVariableList(args: {
50
50
  instanceName: string;
51
- }): Promise<APIResult<Variable[]>>;
51
+ }, options?: FetchOptions): Promise<APIResult<Variable[]>>;
52
52
  getVariable(args: {
53
53
  instanceName: string;
54
54
  variableName: string;
55
- }): Promise<APIResult<Variable>>;
55
+ }, options?: FetchOptions): Promise<APIResult<Variable>>;
56
56
  createVariable(args: {
57
57
  instanceName: string;
58
58
  variable: Variable;
59
- }): Promise<APIResult<Variable>>;
59
+ }, options?: FetchOptions): Promise<APIResult<Variable>>;
60
60
  updateVariable(args: {
61
61
  instanceName: string;
62
62
  variableName: string;
63
63
  update: RequestBody<'/instances/{instance_name}/variables/{variable_name}', 'put'>;
64
- }): Promise<APIResult<Variable>>;
64
+ }, options?: FetchOptions): Promise<APIResult<Variable>>;
65
65
  deleteVariable(args: {
66
66
  instanceName: string;
67
67
  variableName: string;
68
- }): Promise<APIResult<null>>;
69
- getUser(): Promise<APIResult<User>>;
70
- updateUser(args: RequestBody<'/users/me', 'patch'>): Promise<APIResult<User>>;
68
+ }, options?: FetchOptions): Promise<APIResult<null>>;
69
+ getUser(options?: FetchOptions): Promise<APIResult<User>>;
70
+ updateUser(args: RequestBody<'/users/me', 'patch'>, options?: FetchOptions): Promise<APIResult<User>>;
71
71
  sendEmail(args: {
72
72
  instanceName: string;
73
73
  attendeeId: string;
74
74
  emailName: string;
75
- }): Promise<APIResult<null>>;
75
+ }, options?: FetchOptions): Promise<APIResult<null>>;
76
76
  getRenderedEmail(args: {
77
77
  instanceName: string;
78
78
  attendeeId: string;
79
79
  emailName: string;
80
- }): Promise<APIResult<Email>>;
81
- createEvents(args: Event[]): Promise<APIResult<null>>;
80
+ }, options?: FetchOptions): Promise<APIResult<Email>>;
81
+ createEvents(args: Event[], options?: FetchOptions): Promise<APIResult<null>>;
82
82
  }
@@ -4,34 +4,34 @@ import { Attendee } from '../models/attendee';
4
4
  import { FieldGroups } from '../models/field-group';
5
5
  import { Instance } from '../models/instance';
6
6
  export default class API extends APIBase {
7
- async getInstanceList() {
8
- const result = await this.get('/instances');
7
+ async getInstanceList(options = {}) {
8
+ const result = await this.get('/instances', options);
9
9
  if (!result.success) return result;
10
10
  return success(result.data.map(instanceJSON => new Instance(instanceJSON)));
11
11
  }
12
- async getInstance(args) {
12
+ async getInstance(args, options = {}) {
13
13
  const instanceName = args.instanceName;
14
- const result = await this.get(`/instances/${instanceName}`);
14
+ const result = await this.get(`/instances/${instanceName}`, options);
15
15
  if (!result.success) return result;
16
16
  return success(new Instance(result.data));
17
17
  }
18
- async getFields(args) {
18
+ async getFields(args, options = {}) {
19
19
  const instanceName = args.instanceName;
20
- const result = await this.get(`/instances/${instanceName}/fields`);
20
+ const result = await this.get(`/instances/${instanceName}/fields`, options);
21
21
  if (!result.success) return result;
22
22
  return success(new FieldGroups(result.data));
23
23
  }
24
- async getCheckinCounts(args) {
24
+ async getCheckinCounts(args, options = {}) {
25
25
  const instanceName = args.instanceName;
26
- return this.get(`/instances/${instanceName}/checkin_counts`);
26
+ return this.get(`/instances/${instanceName}/checkin_counts`, options);
27
27
  }
28
- async calculateCustomCounts(args) {
28
+ async calculateCustomCounts(args, options = {}) {
29
29
  const instanceName = args.instanceName;
30
30
  return this.post(`/instances/${instanceName}/custom_counts`, {
31
31
  counters: args.counter
32
- });
32
+ }, options);
33
33
  }
34
- async getAttendeeList(args) {
34
+ async getAttendeeList(args, options = {}) {
35
35
  const query = new URLSearchParams();
36
36
  if (args.filter) {
37
37
  query.append('filter', args.filter);
@@ -41,11 +41,11 @@ export default class API extends APIBase {
41
41
  }
42
42
  const instanceName = args.instanceName;
43
43
  const queryString = `?${query.toString()}`;
44
- const result = await this.get(`/instances/${instanceName}/attendees${queryString}`);
44
+ const result = await this.get(`/instances/${instanceName}/attendees${queryString}`, options);
45
45
  if (!result.success) return result;
46
46
  return success(result.data.map(attendeeJSON => new Attendee(attendeeJSON)));
47
47
  }
48
- async getAttendee(args) {
48
+ async getAttendee(args, options = {}) {
49
49
  const query = new URLSearchParams();
50
50
  if (args.includeDeleted) {
51
51
  query.append('include_deleted', 'true');
@@ -53,11 +53,11 @@ export default class API extends APIBase {
53
53
  const instanceName = args.instanceName;
54
54
  const attendeeId = args.attendeeId;
55
55
  const queryString = `?${query.toString()}`;
56
- const result = await this.get(`/instances/${instanceName}/attendees/${attendeeId}${queryString}`);
56
+ const result = await this.get(`/instances/${instanceName}/attendees/${attendeeId}${queryString}`, options);
57
57
  if (!result.success) return result;
58
58
  return success(new Attendee(result.data));
59
59
  }
60
- async getCompanions(args) {
60
+ async getCompanions(args, options = {}) {
61
61
  const query = new URLSearchParams();
62
62
  if (args.includeDeleted) {
63
63
  query.append('include_deleted', 'true');
@@ -65,56 +65,56 @@ export default class API extends APIBase {
65
65
  const instanceName = args.instanceName;
66
66
  const attendeeId = args.attendeeId;
67
67
  const queryString = `?${query.toString()}`;
68
- const result = await this.get(`/instances/${instanceName}/attendees/${attendeeId}/companions${queryString}`);
68
+ const result = await this.get(`/instances/${instanceName}/attendees/${attendeeId}/companions${queryString}`, options);
69
69
  if (!result.success) return result;
70
70
  return success(result.data.map(attendeeJSON => new Attendee(attendeeJSON)));
71
71
  }
72
- async generateRegistrationToken(args) {
72
+ async generateRegistrationToken(args, options = {}) {
73
73
  const instanceName = args.instanceName;
74
- return this.post(`/instances/${instanceName}/registration/registration_token`, args.check);
74
+ return this.post(`/instances/${instanceName}/registration/registration_token`, args.check, options);
75
75
  }
76
- async getVariableList(args) {
76
+ async getVariableList(args, options = {}) {
77
77
  const instanceName = args.instanceName;
78
- return this.get(`/instances/${instanceName}/variables`);
78
+ return this.get(`/instances/${instanceName}/variables`, options);
79
79
  }
80
- async getVariable(args) {
80
+ async getVariable(args, options = {}) {
81
81
  const instanceName = args.instanceName;
82
82
  const variableName = args.variableName;
83
- return this.get(`/instances/${instanceName}/variables/${variableName}`);
83
+ return this.get(`/instances/${instanceName}/variables/${variableName}`, options);
84
84
  }
85
- async createVariable(args) {
85
+ async createVariable(args, options = {}) {
86
86
  const instanceName = args.instanceName;
87
- return this.post(`/instances/${instanceName}/variables`, args.variable);
87
+ return this.post(`/instances/${instanceName}/variables`, args.variable, options);
88
88
  }
89
- async updateVariable(args) {
89
+ async updateVariable(args, options = {}) {
90
90
  const instanceName = args.instanceName;
91
91
  const variableName = args.variableName;
92
- return this.put(`/instances/${instanceName}/variables/${variableName}`, args.update);
92
+ return this.put(`/instances/${instanceName}/variables/${variableName}`, args.update, options);
93
93
  }
94
- async deleteVariable(args) {
94
+ async deleteVariable(args, options = {}) {
95
95
  const instanceName = args.instanceName;
96
96
  const variableName = args.variableName;
97
- return this.delete(`/instances/${instanceName}/variables/${variableName}`);
97
+ return this.delete(`/instances/${instanceName}/variables/${variableName}`, options);
98
98
  }
99
- async getUser() {
100
- return this.get('/users/me');
99
+ async getUser(options = {}) {
100
+ return this.get('/users/me', options);
101
101
  }
102
- async updateUser(args) {
103
- return this.patch('/users/me', args);
102
+ async updateUser(args, options = {}) {
103
+ return this.patch('/users/me', args, options);
104
104
  }
105
- async sendEmail(args) {
105
+ async sendEmail(args, options = {}) {
106
106
  const instanceName = args.instanceName;
107
107
  const attendeeId = args.attendeeId;
108
108
  const emailName = args.emailName;
109
- return this.post(`/instances/${instanceName}/attendees/${attendeeId}/emails/${emailName}/send`, null);
109
+ return this.post(`/instances/${instanceName}/attendees/${attendeeId}/emails/${emailName}/send`, null, options);
110
110
  }
111
- async getRenderedEmail(args) {
111
+ async getRenderedEmail(args, options = {}) {
112
112
  const instanceName = args.instanceName;
113
113
  const attendeeId = args.attendeeId;
114
114
  const emailName = args.emailName;
115
- return this.get(`/instances/${instanceName}/attendees/${attendeeId}/emails/${emailName}/render`);
115
+ return this.get(`/instances/${instanceName}/attendees/${attendeeId}/emails/${emailName}/render`, options);
116
116
  }
117
- async createEvents(args) {
118
- return this.post(`/events`, args);
117
+ async createEvents(args, options = {}) {
118
+ return this.post(`/events`, args, options);
119
119
  }
120
120
  }
@@ -1239,6 +1239,76 @@ export declare type components = {
1239
1239
  */
1240
1240
  max: number;
1241
1241
  };
1242
+ /** EmailStatus */
1243
+ EmailStatus: {
1244
+ /**
1245
+ * Mailing Id
1246
+ * @description the unique id of the bulk or single mailing
1247
+ */
1248
+ mailing_id: string;
1249
+ /**
1250
+ * Status
1251
+ * @enum {string}
1252
+ */
1253
+ status: "pending" | "waiting" | "submitted" | "skipped" | "sent" | "opened" | "clicked" | "invalid" | "rejected" | "unsubscribed";
1254
+ /**
1255
+ * Updated At
1256
+ * Format: date-time
1257
+ */
1258
+ updated_at?: string;
1259
+ /**
1260
+ * Time
1261
+ * @description the time the email was sent (this should only be set when setting the status to 'sent')
1262
+ */
1263
+ time?: string | null;
1264
+ /**
1265
+ * Reason
1266
+ * @description for error states a reason can be added to the event (reasons will be merged with reasons from prevoius errors)
1267
+ */
1268
+ reason?: string | string[];
1269
+ /**
1270
+ * Clients
1271
+ * @description for open events a set of email clients can be added (those will be merged with clients from prevois states)
1272
+ */
1273
+ clients?: string[];
1274
+ /**
1275
+ * Clicks
1276
+ * @description for clicked events a url can be provided (those will be merged with clicks from prevois events)
1277
+ */
1278
+ clicks?: string[];
1279
+ };
1280
+ /**
1281
+ * EmailStatusUpdatedEvent
1282
+ * @description EmailStatus for attendee was updated.
1283
+ *
1284
+ * Note that there is a special email-unsubscribed-event that also
1285
+ * adds the email address to a blacklist.
1286
+ * This event will only update the email status of the atttendee and nothing else.
1287
+ */
1288
+ EmailStatusUpdatedEvent: {
1289
+ /**
1290
+ * Id
1291
+ * Format: uuid
1292
+ */
1293
+ id?: string;
1294
+ /**
1295
+ * Event
1296
+ * @default email-status-updated
1297
+ * @constant
1298
+ * @enum {string}
1299
+ */
1300
+ event?: "email-status-updated";
1301
+ /** Group */
1302
+ group?: components["schemas"]["EventGroup"] | components["schemas"]["NoGroup"];
1303
+ preconditions?: components["schemas"]["Filter"] | null;
1304
+ /** Instancename */
1305
+ instanceName: string;
1306
+ /** Attendeeid */
1307
+ attendeeId: string;
1308
+ /** Mailid */
1309
+ mailId: string;
1310
+ emailStatus: components["schemas"]["EmailStatus"];
1311
+ };
1242
1312
  /**
1243
1313
  * EmailUnsubscribedEvent
1244
1314
  * @description Attendee unsubscribed from email list.
@@ -2289,8 +2359,8 @@ export declare type components = {
2289
2359
  "RootModel_Union_Companion__MainGuest__-Input": components["schemas"]["Companion-Input"] | components["schemas"]["MainGuest-Input"];
2290
2360
  /** RootModel[Union[Companion, MainGuest]] */
2291
2361
  "RootModel_Union_Companion__MainGuest__-Output": components["schemas"]["Companion-Output"] | components["schemas"]["MainGuest-Output"];
2292
- /** RootModel[list[Annotated[Union[AttendeeCreatedEvent, AttendeeUpdatedEvent, AttendeeRespondedEvent, AttendeeAuthCodeRequested, EmailUnsubscribedEvent, AttendeeDeletedEvent, CheckinCreatedEvent, CheckinDeletedEvent, PaymentPaidEvent], FieldInfo(annotation=NoneType, required=True, discriminator='event')]]] */
2293
- RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____: (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"])[];
2362
+ /** RootModel[list[Annotated[Union[AttendeeCreatedEvent, AttendeeUpdatedEvent, AttendeeRespondedEvent, AttendeeAuthCodeRequested, EmailStatusUpdatedEvent, EmailUnsubscribedEvent, AttendeeDeletedEvent, CheckinCreatedEvent, CheckinDeletedEvent, PaymentPaidEvent], FieldInfo(annotation=NoneType, required=True, discriminator='event')]]] */
2363
+ RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailStatusUpdatedEvent__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____: (components["schemas"]["AttendeeCreatedEvent"] | components["schemas"]["AttendeeUpdatedEvent"] | components["schemas"]["AttendeeRespondedEvent"] | components["schemas"]["AttendeeAuthCodeRequested"] | components["schemas"]["EmailStatusUpdatedEvent"] | components["schemas"]["EmailUnsubscribedEvent"] | components["schemas"]["AttendeeDeletedEvent"] | components["schemas"]["CheckinCreatedEvent"] | components["schemas"]["CheckinDeletedEvent"] | components["schemas"]["PaymentPaidEvent"])[];
2294
2364
  /** SecurityQuestion */
2295
2365
  SecurityQuestion: {
2296
2366
  security_question: components["schemas"]["QuestionFields"];
@@ -2726,7 +2796,7 @@ export declare type operations = {
2726
2796
  };
2727
2797
  requestBody: {
2728
2798
  content: {
2729
- "application/json": components["schemas"]["RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____"];
2799
+ "application/json": components["schemas"]["RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailStatusUpdatedEvent__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____"];
2730
2800
  };
2731
2801
  };
2732
2802
  responses: {
@@ -8,4 +8,4 @@ export declare type EmailUnsubscribedEvent = components['schemas']['EmailUnsubsc
8
8
  export declare type CheckinCreatedEvent = components['schemas']['CheckinCreatedEvent'];
9
9
  export declare type CheckinDeletedEvent = components['schemas']['CheckinDeletedEvent'];
10
10
  export declare type PaymentPaidEvent = components['schemas']['PaymentPaidEvent'];
11
- export declare type Event = components['schemas']['RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____'][number];
11
+ export declare type Event = components['schemas']['RootModel_list_Annotated_Union_AttendeeCreatedEvent__AttendeeUpdatedEvent__AttendeeRespondedEvent__AttendeeAuthCodeRequested__EmailStatusUpdatedEvent__EmailUnsubscribedEvent__AttendeeDeletedEvent__CheckinCreatedEvent__CheckinDeletedEvent__PaymentPaidEvent___FieldInfo_annotation_NoneType__required_True__discriminator__event_____'][number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.70.2",
3
+ "version": "0.72.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",