@dev-crew-berlin/enter-js-utils 0.49.0 → 0.50.1
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.
|
@@ -21,6 +21,12 @@ export default class API extends APIBase {
|
|
|
21
21
|
getCheckinCounts(args: {
|
|
22
22
|
instanceName: string;
|
|
23
23
|
}): Promise<APIResult<CheckinCounts>>;
|
|
24
|
+
calculateCustomCounts(args: {
|
|
25
|
+
instanceName: string;
|
|
26
|
+
counter: components['schemas']['CustomCounter'][];
|
|
27
|
+
}): Promise<APIResult<{
|
|
28
|
+
[key: string]: number;
|
|
29
|
+
}>>;
|
|
24
30
|
getAttendeeList(args: {
|
|
25
31
|
instanceName: string;
|
|
26
32
|
includeDeleted?: boolean;
|
package/dist/api-client/index.js
CHANGED
|
@@ -25,6 +25,12 @@ export default class API extends APIBase {
|
|
|
25
25
|
const instanceName = args.instanceName;
|
|
26
26
|
return this.get(`/instances/${instanceName}/checkin_counts`);
|
|
27
27
|
}
|
|
28
|
+
async calculateCustomCounts(args) {
|
|
29
|
+
const instanceName = args.instanceName;
|
|
30
|
+
return this.post(`/instances/${instanceName}/custom_counts`, {
|
|
31
|
+
counters: args.counter
|
|
32
|
+
});
|
|
33
|
+
}
|
|
28
34
|
async getAttendeeList(args) {
|
|
29
35
|
const query = new URLSearchParams();
|
|
30
36
|
if (args.includeDeleted) {
|
|
@@ -10,6 +10,9 @@ export declare type paths = {
|
|
|
10
10
|
"/instances/{instance_name}/checkin_counts": {
|
|
11
11
|
get: operations["checkin_counts_instances__instance_name__checkin_counts_get"];
|
|
12
12
|
};
|
|
13
|
+
"/instances/{instance_name}/custom_counts": {
|
|
14
|
+
post: operations["calcualte_custom_counts_instances__instance_name__custom_counts_post"];
|
|
15
|
+
};
|
|
13
16
|
"/events": {
|
|
14
17
|
/** Send a list of events to be applied to the current state. Events are executed in order. */
|
|
15
18
|
post: operations["create_events_events_post"];
|
|
@@ -516,6 +519,18 @@ export declare type components = {
|
|
|
516
519
|
/** Mainguestid */
|
|
517
520
|
mainGuestId: string;
|
|
518
521
|
};
|
|
522
|
+
/** CustomCountQuery */
|
|
523
|
+
CustomCountQuery: {
|
|
524
|
+
/** Counters */
|
|
525
|
+
counters: components["schemas"]["CustomCounter"][];
|
|
526
|
+
};
|
|
527
|
+
/** CustomCounter */
|
|
528
|
+
CustomCounter: {
|
|
529
|
+
/** Name */
|
|
530
|
+
name: string;
|
|
531
|
+
/** Filter */
|
|
532
|
+
filter: string;
|
|
533
|
+
};
|
|
519
534
|
/** DateField */
|
|
520
535
|
DateField: {
|
|
521
536
|
/**
|
|
@@ -1454,6 +1469,37 @@ export declare type operations = {
|
|
|
1454
1469
|
};
|
|
1455
1470
|
};
|
|
1456
1471
|
};
|
|
1472
|
+
calcualte_custom_counts_instances__instance_name__custom_counts_post: {
|
|
1473
|
+
parameters: {
|
|
1474
|
+
path: {
|
|
1475
|
+
instance_name: string;
|
|
1476
|
+
};
|
|
1477
|
+
query: {
|
|
1478
|
+
include_deleted?: boolean;
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
responses: {
|
|
1482
|
+
/** Successful Response */
|
|
1483
|
+
200: {
|
|
1484
|
+
content: {
|
|
1485
|
+
"application/json": {
|
|
1486
|
+
[key: string]: number;
|
|
1487
|
+
};
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
/** Validation Error */
|
|
1491
|
+
422: {
|
|
1492
|
+
content: {
|
|
1493
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
requestBody: {
|
|
1498
|
+
content: {
|
|
1499
|
+
"application/json": components["schemas"]["CustomCountQuery"];
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1457
1503
|
/** Send a list of events to be applied to the current state. Events are executed in order. */
|
|
1458
1504
|
create_events_events_post: {
|
|
1459
1505
|
responses: {
|