@dev-crew-berlin/enter-js-utils 0.22.0 → 0.23.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.
@@ -23,6 +23,7 @@ export default class API extends APIBase {
23
23
  }): Promise<APIResult<CheckinCounts>>;
24
24
  getAttendeeList(args: {
25
25
  instanceId: string;
26
+ includeDeleted?: boolean;
26
27
  }): Promise<APIResult<Attendee[]>>;
27
28
  sendEmail(args: {
28
29
  instanceId: string;
@@ -26,7 +26,13 @@ export default class API extends APIBase {
26
26
  }
27
27
 
28
28
  async getAttendeeList(args) {
29
- return this.get(`instances/${args.instanceId}/attendees`, parseAttendeeList);
29
+ const query = new URLSearchParams();
30
+
31
+ if (args.includeDeleted) {
32
+ query.append('include_deleted', 'true');
33
+ }
34
+
35
+ return this.get(`instances/${args.instanceId}/attendees?${query.toString()}`, parseAttendeeList);
30
36
  }
31
37
 
32
38
  async sendEmail(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.22.0",
3
+ "version": "0.23.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",