@dev-crew-berlin/enter-js-utils 0.51.2 → 0.53.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.
|
@@ -29,6 +29,7 @@ export default class API extends APIBase {
|
|
|
29
29
|
}>>;
|
|
30
30
|
getAttendeeList(args: {
|
|
31
31
|
instanceName: string;
|
|
32
|
+
filter?: string;
|
|
32
33
|
includeDeleted?: boolean;
|
|
33
34
|
}): Promise<APIResult<Attendee[]>>;
|
|
34
35
|
getAttendee(args: {
|
|
@@ -43,7 +44,7 @@ export default class API extends APIBase {
|
|
|
43
44
|
}): Promise<APIResult<Attendee[]>>;
|
|
44
45
|
generateRegistrationToken(args: {
|
|
45
46
|
instanceName: string;
|
|
46
|
-
|
|
47
|
+
check: components['schemas']['SecurityQuestion'] | components['schemas']['AuthCode'] | components['schemas']['AttendeeId'];
|
|
47
48
|
}): Promise<APIResult<string>>;
|
|
48
49
|
getVariableList(args: {
|
|
49
50
|
instanceName: string;
|
package/dist/api-client/index.js
CHANGED
|
@@ -33,6 +33,9 @@ export default class API extends APIBase {
|
|
|
33
33
|
}
|
|
34
34
|
async getAttendeeList(args) {
|
|
35
35
|
const query = new URLSearchParams();
|
|
36
|
+
if (args.filter) {
|
|
37
|
+
query.append('filter', args.filter);
|
|
38
|
+
}
|
|
36
39
|
if (args.includeDeleted) {
|
|
37
40
|
query.append('include_deleted', 'true');
|
|
38
41
|
}
|
|
@@ -68,7 +71,7 @@ export default class API extends APIBase {
|
|
|
68
71
|
}
|
|
69
72
|
async generateRegistrationToken(args) {
|
|
70
73
|
const instanceName = args.instanceName;
|
|
71
|
-
return this.post(`/instances/${instanceName}/registration/registration_token`, args.
|
|
74
|
+
return this.post(`/instances/${instanceName}/registration/registration_token`, args.check);
|
|
72
75
|
}
|
|
73
76
|
async getVariableList(args) {
|
|
74
77
|
const instanceName = args.instanceName;
|
|
@@ -134,6 +134,17 @@ export declare type components = {
|
|
|
134
134
|
/** Final */
|
|
135
135
|
final: boolean;
|
|
136
136
|
};
|
|
137
|
+
/** AttendeeId */
|
|
138
|
+
AttendeeId: {
|
|
139
|
+
/** Attendeeid */
|
|
140
|
+
attendeeId: string;
|
|
141
|
+
/** Session Type */
|
|
142
|
+
session_type?: string;
|
|
143
|
+
/** Flags */
|
|
144
|
+
flags?: {
|
|
145
|
+
[key: string]: unknown;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
137
148
|
/**
|
|
138
149
|
* AttendeeRespondedEvent
|
|
139
150
|
* @description Attendee response status was changed. Meaning the rsvp value was updated.
|
|
@@ -1607,6 +1618,7 @@ export declare type operations = {
|
|
|
1607
1618
|
instance_name: string;
|
|
1608
1619
|
};
|
|
1609
1620
|
query: {
|
|
1621
|
+
filter?: string;
|
|
1610
1622
|
include_deleted?: boolean;
|
|
1611
1623
|
};
|
|
1612
1624
|
};
|
|
@@ -1853,7 +1865,7 @@ export declare type operations = {
|
|
|
1853
1865
|
};
|
|
1854
1866
|
requestBody: {
|
|
1855
1867
|
content: {
|
|
1856
|
-
"application/json": components["schemas"]["SecurityQuestion"] | components["schemas"]["AuthCode"];
|
|
1868
|
+
"application/json": components["schemas"]["SecurityQuestion"] | components["schemas"]["AuthCode"] | components["schemas"]["AttendeeId"];
|
|
1857
1869
|
};
|
|
1858
1870
|
};
|
|
1859
1871
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-crew-berlin/enter-js-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
23
|
"storybook": "start-storybook -p 6006",
|
|
24
24
|
"build-storybook": "build-storybook",
|
|
25
|
-
"generate-client": "openapi-typescript https://api.
|
|
25
|
+
"generate-client": "openapi-typescript https://api.enter.events/openapi.json --output src/generated/api-schema.ts --default-non-nullable --export-type"
|
|
26
26
|
},
|
|
27
27
|
"lint-staged": {
|
|
28
28
|
"**/*": "prettier --write --ignore-unknown"
|