@dev-crew-berlin/enter-js-utils 0.97.3 → 0.97.4

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.
@@ -97,96 +97,6 @@ export type paths = {
97
97
  export type webhooks = Record<string, never>;
98
98
  export type components = {
99
99
  schemas: {
100
- /**
101
- * Attendee
102
- * @description A guest attending an event
103
- */
104
- Attendee: {
105
- /** Id */
106
- id: string;
107
- /** Index */
108
- index: number;
109
- /** Auth Code */
110
- auth_code?: string | null;
111
- /** Instance */
112
- instance: string;
113
- /**
114
- * Name
115
- * @default
116
- */
117
- name?: string;
118
- /**
119
- * Userdata
120
- * @default {}
121
- */
122
- userdata?: {
123
- [key: string]: string | boolean | number | string[] | components["schemas"]["FileReference"] | null;
124
- };
125
- /** @default [] */
126
- tags?: components["schemas"]["StorableSet_str_-Output"];
127
- /** @default [] */
128
- dynamic_tags?: components["schemas"]["StorableSet_str_-Output"];
129
- /** @default [] */
130
- changes?: components["schemas"]["StorableSet_str_-Output"];
131
- /** Language */
132
- language?: string | null;
133
- /**
134
- * Time
135
- * Format: date-time
136
- */
137
- time?: string;
138
- /**
139
- * Updated
140
- * Format: date-time
141
- */
142
- updated?: string;
143
- /**
144
- * Created By
145
- * @default uknown
146
- */
147
- created_by?: string;
148
- /**
149
- * Rsvp
150
- * @default {}
151
- */
152
- rsvp?: {
153
- [key: string]: components["schemas"]["RSVP-Output"] | null;
154
- };
155
- /**
156
- * Checkin
157
- * @default {}
158
- */
159
- checkin?: {
160
- [key: string]: components["schemas"]["Checkins-Output"];
161
- };
162
- /** @default [] */
163
- branches?: components["schemas"]["StorableSet_str_-Output"];
164
- /**
165
- * @default {
166
- * "isCompanion": false,
167
- * "companionNames": {}
168
- * }
169
- */
170
- companions?: components["schemas"]["RootModel_Union_Companion__MainGuest__-Output"];
171
- payment?: components["schemas"]["Payment"] | null;
172
- /**
173
- * Emails
174
- * @default {}
175
- */
176
- emails?: {
177
- [key: string]: components["schemas"]["EmailStatus-Output"];
178
- };
179
- /**
180
- * Log
181
- * @default []
182
- */
183
- log?: Record<string, unknown>[];
184
- /**
185
- * Deleted
186
- * @default false
187
- */
188
- deleted?: boolean;
189
- };
190
100
  /**
191
101
  * AttendeeAuthCodeRequested
192
102
  * @description A request to set an auth_code for the attendee
@@ -448,26 +358,26 @@ export type components = {
448
358
  /** AttendeeUpdate */
449
359
  "AttendeeUpdate-Output": {
450
360
  /** Userdata */
451
- userdata?: {
361
+ userdata: {
452
362
  [key: string]: string | boolean | number | string[] | components["schemas"]["FileReference"] | null;
453
363
  };
454
364
  /** Tags */
455
- tags?: string[];
365
+ tags: string[];
456
366
  /** Deletedtags */
457
- deletedTags?: string[];
367
+ deletedTags: string[];
458
368
  /** Language */
459
- language?: string;
369
+ language: string;
460
370
  /** Rsvp */
461
- rsvp?: {
371
+ rsvp: {
462
372
  [key: string]: components["schemas"]["RSVP-Output"] | null;
463
373
  };
464
- companions?: components["schemas"]["RootModel_Union_Companion__MainGuest__-Output"];
465
- payment?: components["schemas"]["Payment"] | null;
466
- partialPayment?: components["schemas"]["PartialPayment"];
374
+ companions: components["schemas"]["RootModel_Union_Companion__MainGuest__-Output"];
375
+ payment: components["schemas"]["Payment"] | null;
376
+ partialPayment: components["schemas"]["PartialPayment"];
467
377
  /** Branches */
468
- branches?: string[];
378
+ branches: string[];
469
379
  /** Deletedbranches */
470
- deletedBranches?: string[];
380
+ deletedBranches: string[];
471
381
  };
472
382
  /**
473
383
  * AttendeeUpdatedEvent
@@ -1234,7 +1144,7 @@ export type components = {
1234
1144
  max: number;
1235
1145
  };
1236
1146
  /** EmailStatus */
1237
- "EmailStatus-Input": {
1147
+ EmailStatus: {
1238
1148
  /**
1239
1149
  * Mailing Id
1240
1150
  * @description the unique id of the bulk or single mailing
@@ -1265,38 +1175,6 @@ export type components = {
1265
1175
  /** @description for clicked events a url can be provided (those will be merged with clicks from prevois events) */
1266
1176
  clicks?: components["schemas"]["StorableSet_str_-Input"];
1267
1177
  };
1268
- /** EmailStatus */
1269
- "EmailStatus-Output": {
1270
- /**
1271
- * Mailing Id
1272
- * @description the unique id of the bulk or single mailing
1273
- */
1274
- mailing_id: string;
1275
- /**
1276
- * Status
1277
- * @enum {string}
1278
- */
1279
- status: "pending" | "waiting" | "submitted" | "skipped" | "sent" | "opened" | "clicked" | "invalid" | "rejected" | "unsubscribed";
1280
- /**
1281
- * Updated At
1282
- * Format: date-time
1283
- */
1284
- updated_at?: string;
1285
- /**
1286
- * Time
1287
- * @description the time the email was sent (this should only be set when setting the status to 'sent')
1288
- */
1289
- time?: string | null;
1290
- /**
1291
- * Reason
1292
- * @description for error states a reason can be added to the event (reasons will be merged with reasons from prevoius errors)
1293
- */
1294
- reason?: string | components["schemas"]["StorableSet_str_-Output"];
1295
- /** @description for open events a set of email clients can be added (those will be merged with clients from prevois states) */
1296
- clients?: components["schemas"]["StorableSet_str_-Output"];
1297
- /** @description for clicked events a url can be provided (those will be merged with clicks from prevois events) */
1298
- clicks?: components["schemas"]["StorableSet_str_-Output"];
1299
- };
1300
1178
  /**
1301
1179
  * EmailStatusUpdatedEvent
1302
1180
  * @description EmailStatus for attendee was updated.
@@ -1323,7 +1201,7 @@ export type components = {
1323
1201
  attendeeId: string;
1324
1202
  /** Mailid */
1325
1203
  mailId: string;
1326
- emailStatus: components["schemas"]["EmailStatus-Input"];
1204
+ emailStatus: components["schemas"]["EmailStatus"];
1327
1205
  };
1328
1206
  /**
1329
1207
  * EmailUnsubscribedEvent
@@ -1522,51 +1400,6 @@ export type components = {
1522
1400
  /** Ext */
1523
1401
  ext: string[] | null;
1524
1402
  };
1525
- /**
1526
- * InternalAttendeeCreatedEvent
1527
- * @description New attendee was created via a public interface
1528
- */
1529
- InternalAttendeeCreatedEvent: {
1530
- /**
1531
- * Id
1532
- * Format: uuid
1533
- */
1534
- id: string;
1535
- /**
1536
- * Event
1537
- * @default internal-attendee-created
1538
- * @constant
1539
- */
1540
- event: "internal-attendee-created";
1541
- attendee: components["schemas"]["Attendee"];
1542
- /** Attendeeid */
1543
- attendeeId: string;
1544
- /** Instancename */
1545
- instanceName: string;
1546
- };
1547
- /**
1548
- * InternalAttendeeUpdatedEvent
1549
- * @description Attendee was updated. This includes `userdata` but also other data such as `payment`, `rsvp` or `tags`
1550
- */
1551
- InternalAttendeeUpdatedEvent: {
1552
- /**
1553
- * Id
1554
- * Format: uuid
1555
- */
1556
- id: string;
1557
- /**
1558
- * Event
1559
- * @default internal-attendee-updated
1560
- * @constant
1561
- */
1562
- event: "internal-attendee-updated";
1563
- /** Instancename */
1564
- instanceName: string;
1565
- /** Attendeeid */
1566
- attendeeId: string;
1567
- /** Attendeeupdates */
1568
- attendeeUpdates: components["schemas"]["AttendeeUpdate-Output"][];
1569
- };
1570
1403
  /** ItemOption */
1571
1404
  ItemOption: {
1572
1405
  /**
@@ -1812,7 +1645,7 @@ export type components = {
1812
1645
  * Provider
1813
1646
  * @enum {string}
1814
1647
  */
1815
- provider?: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe";
1648
+ provider?: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe" | "payrexx" | "alternative";
1816
1649
  /**
1817
1650
  * Currency
1818
1651
  * @enum {string}
@@ -1829,7 +1662,7 @@ export type components = {
1829
1662
  * Provider
1830
1663
  * @enum {string}
1831
1664
  */
1832
- provider: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe";
1665
+ provider: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe" | "payrexx" | "alternative";
1833
1666
  /** Reference */
1834
1667
  reference?: string | null;
1835
1668
  /** Amount */
@@ -1866,7 +1699,7 @@ export type components = {
1866
1699
  /** Instancename */
1867
1700
  instanceName: string;
1868
1701
  /** Provider */
1869
- provider?: ("manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe") | null;
1702
+ provider?: ("manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe" | "payrexx" | "alternative") | null;
1870
1703
  };
1871
1704
  /**
1872
1705
  * PaymentPaidEvent
@@ -1891,7 +1724,7 @@ export type components = {
1891
1724
  /** Instancename */
1892
1725
  instanceName: string;
1893
1726
  /** Provider */
1894
- provider: ("manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe") | null;
1727
+ provider: ("manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe" | "payrexx" | "alternative") | null;
1895
1728
  };
1896
1729
  /** PublicAttendee */
1897
1730
  "PublicAttendee-Input": {
@@ -2530,12 +2363,15 @@ export type operations = {
2530
2363
  instance?: string | null;
2531
2364
  event_type?: string[] | null;
2532
2365
  };
2366
+ header?: {
2367
+ "x-enter-device-name"?: string | null;
2368
+ };
2533
2369
  };
2534
2370
  responses: {
2535
2371
  /** @description Successful Response */
2536
2372
  200: {
2537
2373
  content: {
2538
- "text/event-stream": components["schemas"]["AttendeeCreatedEvent-Output"] | components["schemas"]["AttendeeUpdatedEvent-Output"] | components["schemas"]["AttendeeRespondedEvent-Output"] | components["schemas"]["AttendeeRestoredEvent"] | components["schemas"]["AttendeeDeletedEvent-Output"] | components["schemas"]["AttendeeAuthCodeRequested-Output"] | components["schemas"]["InternalAttendeeCreatedEvent"] | components["schemas"]["InternalAttendeeUpdatedEvent"] | components["schemas"]["CheckinCreatedEvent-Output"] | components["schemas"]["CheckinDeletedEvent-Output"] | components["schemas"]["CompanionLinkedEvent"] | components["schemas"]["CompanionUnlinkedEvent"] | components["schemas"]["CompanionNameChangedEvent"] | components["schemas"]["MainGuestLinkedEvent"] | components["schemas"]["MainGuestUnlinkedEvent"] | components["schemas"]["MainGuestNameChangedEvent"] | components["schemas"]["PaymentPaidEvent-Output"];
2374
+ "text/event-stream": components["schemas"]["AttendeeCreatedEvent-Output"] | components["schemas"]["AttendeeUpdatedEvent-Output"] | components["schemas"]["AttendeeRespondedEvent-Output"] | components["schemas"]["AttendeeRestoredEvent"] | components["schemas"]["AttendeeDeletedEvent-Output"] | components["schemas"]["AttendeeAuthCodeRequested-Output"] | components["schemas"]["CheckinCreatedEvent-Output"] | components["schemas"]["CheckinDeletedEvent-Output"] | components["schemas"]["CompanionLinkedEvent"] | components["schemas"]["CompanionUnlinkedEvent"] | components["schemas"]["CompanionNameChangedEvent"] | components["schemas"]["MainGuestLinkedEvent"] | components["schemas"]["MainGuestUnlinkedEvent"] | components["schemas"]["MainGuestNameChangedEvent"] | components["schemas"]["PaymentPaidEvent-Output"];
2539
2375
  };
2540
2376
  };
2541
2377
  /** @description Validation Error */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.97.3",
3
+ "version": "0.97.4",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",