tonightpass 0.0.111 → 0.0.113
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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/rest/types/organizations/events/index.ts +3 -7
- package/src/rest/types/organizations/events/views/index.ts +14 -0
- package/src/sdk/organizations/events/index.ts +2 -9
- package/src/sdk/organizations/events/views/index.ts +27 -0
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
OrganizationEventStyleEndpoints,
|
|
10
10
|
} from "./styles";
|
|
11
11
|
import { ArrayOptions, ArrayResult, Base, Location } from "../..";
|
|
12
|
+
import { OrganizationEventViewEndpoints } from "./views";
|
|
12
13
|
import {
|
|
13
14
|
CreateOrganizationEventDto,
|
|
14
15
|
UpdateOrganizationEventDto,
|
|
@@ -104,12 +105,6 @@ export type OrganizationEventEndpoints =
|
|
|
104
105
|
OrganizationEvent,
|
|
105
106
|
CreateOrganizationEventDto
|
|
106
107
|
>
|
|
107
|
-
| Endpoint<
|
|
108
|
-
"POST",
|
|
109
|
-
"/organizations/:organizationSlug/events/:eventSlug/views",
|
|
110
|
-
boolean,
|
|
111
|
-
null
|
|
112
|
-
>
|
|
113
108
|
| Endpoint<
|
|
114
109
|
"PUT",
|
|
115
110
|
"/organizations/:organizationSlug/events/:eventSlug",
|
|
@@ -124,4 +119,5 @@ export type OrganizationEventEndpoints =
|
|
|
124
119
|
>
|
|
125
120
|
| OrganizationEventOrderEndpoints
|
|
126
121
|
| OrganizationEventStyleEndpoints
|
|
127
|
-
| OrganizationEventTicketEndpoints
|
|
122
|
+
| OrganizationEventTicketEndpoints
|
|
123
|
+
| OrganizationEventViewEndpoints;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Endpoint } from "../../../../endpoints";
|
|
2
|
+
|
|
3
|
+
export type OrganizationEventViewEndpoints =
|
|
4
|
+
| Endpoint<
|
|
5
|
+
"POST",
|
|
6
|
+
"/organizations/:organizationSlug/events/:eventSlug/views",
|
|
7
|
+
boolean,
|
|
8
|
+
string
|
|
9
|
+
>
|
|
10
|
+
| Endpoint<
|
|
11
|
+
"PUT",
|
|
12
|
+
"/organizations/:organizationSlug/events/:eventSlug/views/:viewId",
|
|
13
|
+
boolean
|
|
14
|
+
>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { organizationsEventsOrders } from "./orders";
|
|
2
2
|
import { organizationsEventsStyles } from "./styles";
|
|
3
3
|
import { organizationsEventsTickets } from "./tickets";
|
|
4
|
+
import { organizationsEventsViews } from "./views";
|
|
4
5
|
import {
|
|
5
6
|
ArrayOptions,
|
|
6
7
|
Client,
|
|
@@ -55,16 +56,8 @@ export const organizationsEvents = (client: Client) => ({
|
|
|
55
56
|
organizationSlug,
|
|
56
57
|
eventSlug,
|
|
57
58
|
}),
|
|
58
|
-
recordView: async (organizationSlug: string, eventSlug: string) =>
|
|
59
|
-
client.post(
|
|
60
|
-
"/organizations/:organizationSlug/events/:eventSlug/views",
|
|
61
|
-
null,
|
|
62
|
-
{
|
|
63
|
-
organizationSlug,
|
|
64
|
-
eventSlug,
|
|
65
|
-
},
|
|
66
|
-
),
|
|
67
59
|
orders: organizationsEventsOrders(client),
|
|
68
60
|
styles: organizationsEventsStyles(client),
|
|
69
61
|
tickets: organizationsEventsTickets(client),
|
|
62
|
+
views: organizationsEventsViews(client),
|
|
70
63
|
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Client } from "../../../../rest";
|
|
2
|
+
|
|
3
|
+
export const organizationsEventsViews = (client: Client) => ({
|
|
4
|
+
record: async (organizationSlug: string, eventSlug: string) =>
|
|
5
|
+
client.post(
|
|
6
|
+
"/organizations/:organizationSlug/events/:eventSlug/views",
|
|
7
|
+
null,
|
|
8
|
+
{
|
|
9
|
+
organizationSlug,
|
|
10
|
+
eventSlug,
|
|
11
|
+
},
|
|
12
|
+
),
|
|
13
|
+
heartbeat: async (
|
|
14
|
+
organizationSlug: string,
|
|
15
|
+
eventSlug: string,
|
|
16
|
+
viewId: string,
|
|
17
|
+
) =>
|
|
18
|
+
client.put(
|
|
19
|
+
"/organizations/:organizationSlug/events/:eventSlug/views/:viewId",
|
|
20
|
+
undefined,
|
|
21
|
+
{
|
|
22
|
+
organizationSlug,
|
|
23
|
+
eventSlug,
|
|
24
|
+
viewId,
|
|
25
|
+
},
|
|
26
|
+
),
|
|
27
|
+
});
|