@dev-crew-berlin/enter-js-utils 0.37.0 → 0.38.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.
|
@@ -28,6 +28,11 @@ export default class API extends APIBase {
|
|
|
28
28
|
attendeeId: string;
|
|
29
29
|
includeDeleted?: boolean;
|
|
30
30
|
}): Promise<APIResult<Attendee>>;
|
|
31
|
+
getCompanions(args: {
|
|
32
|
+
instanceName: string;
|
|
33
|
+
attendeeId: string;
|
|
34
|
+
includeDeleted?: boolean;
|
|
35
|
+
}): Promise<APIResult<Attendee[]>>;
|
|
31
36
|
getVariableList(args: {
|
|
32
37
|
instanceName: string;
|
|
33
38
|
}): Promise<APIResult<Variable[]>>;
|
package/dist/api-client/index.js
CHANGED
|
@@ -48,6 +48,18 @@ export default class API extends APIBase {
|
|
|
48
48
|
if (!result.success) return result;
|
|
49
49
|
return success(new Attendee(result.data));
|
|
50
50
|
}
|
|
51
|
+
async getCompanions(args) {
|
|
52
|
+
const query = new URLSearchParams();
|
|
53
|
+
if (args.includeDeleted) {
|
|
54
|
+
query.append('include_deleted', 'true');
|
|
55
|
+
}
|
|
56
|
+
const instanceName = args.instanceName;
|
|
57
|
+
const attendeeId = args.attendeeId;
|
|
58
|
+
const queryString = `?${query.toString()}`;
|
|
59
|
+
const result = await this.get(`/instances/${instanceName}/attendees/${attendeeId}/companions${queryString}`);
|
|
60
|
+
if (!result.success) return result;
|
|
61
|
+
return success(result.data.map(attendeeJSON => new Attendee(attendeeJSON)));
|
|
62
|
+
}
|
|
51
63
|
async getVariableList(args) {
|
|
52
64
|
const instanceName = args.instanceName;
|
|
53
65
|
return this.get(`/instances/${instanceName}/variables`);
|
|
@@ -47,6 +47,9 @@ export declare type paths = {
|
|
|
47
47
|
"/instances/{instance_name}/attendees/{attendee_id}": {
|
|
48
48
|
get: operations["single_attende_instances__instance_name__attendees__attendee_id__get"];
|
|
49
49
|
};
|
|
50
|
+
"/instances/{instance_name}/attendees/{attendee_id}/companions": {
|
|
51
|
+
get: operations["attendee_companions_instances__instance_name__attendees__attendee_id__companions_get"];
|
|
52
|
+
};
|
|
50
53
|
"/instances/{instance_name}/attendees/{attendee_id}/emails/{email_name}/send": {
|
|
51
54
|
post: operations["send_email_instances__instance_name__attendees__attendee_id__emails__email_name__send_post"];
|
|
52
55
|
};
|
|
@@ -1557,6 +1560,31 @@ export declare type operations = {
|
|
|
1557
1560
|
};
|
|
1558
1561
|
};
|
|
1559
1562
|
};
|
|
1563
|
+
attendee_companions_instances__instance_name__attendees__attendee_id__companions_get: {
|
|
1564
|
+
parameters: {
|
|
1565
|
+
path: {
|
|
1566
|
+
instance_name: string;
|
|
1567
|
+
attendee_id: string;
|
|
1568
|
+
};
|
|
1569
|
+
query: {
|
|
1570
|
+
include_deleted?: boolean;
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
responses: {
|
|
1574
|
+
/** Successful Response */
|
|
1575
|
+
200: {
|
|
1576
|
+
content: {
|
|
1577
|
+
"application/json": components["schemas"]["PublicAttendee"][];
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
/** Validation Error */
|
|
1581
|
+
422: {
|
|
1582
|
+
content: {
|
|
1583
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1560
1588
|
send_email_instances__instance_name__attendees__attendee_id__emails__email_name__send_post: {
|
|
1561
1589
|
parameters: {
|
|
1562
1590
|
path: {
|