tonightpass 0.0.109 → 0.0.111

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tonightpass",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "description": "@tonightpass sdk and tools.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Represents a GeoJSON point with specific geographic coordinates.
3
+ *
4
+ * @see https://geojson.org/geojson-spec.html#point
5
+ *
6
+ * @property {"Point"} type - The type of the geometry, which is always "Point" for a GeoJSON point.
7
+ * @property {[number, number]} coordinates - The coordinates of the point, represented as [longitude, latitude].
8
+ */
1
9
  export type GeoPoint = {
2
10
  type: "Point";
3
11
  coordinates: [number, number];
@@ -104,6 +104,12 @@ export type OrganizationEventEndpoints =
104
104
  OrganizationEvent,
105
105
  CreateOrganizationEventDto
106
106
  >
107
+ | Endpoint<
108
+ "POST",
109
+ "/organizations/:organizationSlug/events/:eventSlug/views",
110
+ boolean,
111
+ null
112
+ >
107
113
  | Endpoint<
108
114
  "PUT",
109
115
  "/organizations/:organizationSlug/events/:eventSlug",
@@ -55,6 +55,15 @@ export const organizationsEvents = (client: Client) => ({
55
55
  organizationSlug,
56
56
  eventSlug,
57
57
  }),
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
+ ),
58
67
  orders: organizationsEventsOrders(client),
59
68
  styles: organizationsEventsStyles(client),
60
69
  tickets: organizationsEventsTickets(client),