@dev-crew-berlin/enter-js-utils 0.52.0 → 0.54.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.
|
@@ -44,7 +44,7 @@ export default class API extends APIBase {
|
|
|
44
44
|
}): Promise<APIResult<Attendee[]>>;
|
|
45
45
|
generateRegistrationToken(args: {
|
|
46
46
|
instanceName: string;
|
|
47
|
-
|
|
47
|
+
check: components['schemas']['SecurityQuestion'] | components['schemas']['AuthCode'] | components['schemas']['AttendeeId'];
|
|
48
48
|
}): Promise<APIResult<string>>;
|
|
49
49
|
getVariableList(args: {
|
|
50
50
|
instanceName: string;
|
package/dist/api-client/index.js
CHANGED
|
@@ -71,7 +71,7 @@ export default class API extends APIBase {
|
|
|
71
71
|
}
|
|
72
72
|
async generateRegistrationToken(args) {
|
|
73
73
|
const instanceName = args.instanceName;
|
|
74
|
-
return this.post(`/instances/${instanceName}/registration/registration_token`, args.
|
|
74
|
+
return this.post(`/instances/${instanceName}/registration/registration_token`, args.check);
|
|
75
75
|
}
|
|
76
76
|
async getVariableList(args) {
|
|
77
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.
|
|
@@ -1854,7 +1865,7 @@ export declare type operations = {
|
|
|
1854
1865
|
};
|
|
1855
1866
|
requestBody: {
|
|
1856
1867
|
content: {
|
|
1857
|
-
"application/json": components["schemas"]["SecurityQuestion"] | components["schemas"]["AuthCode"];
|
|
1868
|
+
"application/json": components["schemas"]["SecurityQuestion"] | components["schemas"]["AuthCode"] | components["schemas"]["AttendeeId"];
|
|
1858
1869
|
};
|
|
1859
1870
|
};
|
|
1860
1871
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { components } from '../generated/api-schema';
|
|
2
2
|
import { Field } from './field';
|
|
3
3
|
export declare type Dictionary<T> = Record<string, T>;
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type FieldGroup = Omit<
|
|
4
|
+
export declare type FieldGroupJSON = components['schemas']['FieldGroup'];
|
|
5
|
+
export declare type FieldGroup = Omit<FieldGroupJSON, 'questions'>;
|
|
6
6
|
export declare class FieldGroups {
|
|
7
7
|
private _groups;
|
|
8
8
|
get groups(): Map<string, FieldGroup>;
|
|
9
9
|
get fields(): Map<string, Field>;
|
|
10
|
-
constructor(json:
|
|
11
|
-
toJSON():
|
|
10
|
+
constructor(json: FieldGroupJSON[]);
|
|
11
|
+
toJSON(): FieldGroupJSON[];
|
|
12
12
|
withoutMetaFields(): FieldGroups;
|
|
13
13
|
getLabelForField(fieldKey: string, language: string): string;
|
|
14
14
|
}
|
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.54.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"
|