tonightpass 0.0.78 → 0.0.80

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.78",
3
+ "version": "0.0.80",
4
4
  "description": "@tonightpass sdk and tools.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,8 +17,8 @@ export type CareersJob = {
17
17
  status: "ALL" | "ONLINE" | "ARCHIVED";
18
18
  remote: boolean;
19
19
  office: CareersOffice;
20
- workplaceType: string;
21
- remoteType?: string;
20
+ workplaceType: "ONSITE" | "REMOTE" | "HYBRID";
21
+ remoteType?: "ANYWHERE" | "COUNTRY";
22
22
  description?: string;
23
23
  categoryId?: number;
24
24
  employmentTypeId?: number;
@@ -58,12 +58,6 @@ export type OrganizationEndpoints =
58
58
  ArrayResult<Organization>,
59
59
  ArrayOptions<Organization>
60
60
  >
61
- | Endpoint<
62
- "GET",
63
- "/organizations/me",
64
- ArrayResult<Organization>,
65
- ArrayOptions<Organization>
66
- >
67
61
  | Endpoint<"GET", "/organizations/:organizationSlug", Organization>
68
62
  | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>
69
63
  | Endpoint<
@@ -36,7 +36,7 @@ export type OrganizationMembersEndpoints =
36
36
  >
37
37
  | Endpoint<
38
38
  "GET",
39
- "/organizations/members/me",
39
+ "/organizations/@me/members",
40
40
  ArrayResult<OrganizationMember>,
41
41
  ArrayOptions<OrganizationMember>
42
42
  >
@@ -21,7 +21,7 @@ export type UserBookingEndpoints =
21
21
  >
22
22
  | Endpoint<
23
23
  "GET",
24
- "/users/bookings/me",
24
+ "/users/@me/bookings",
25
25
  ArrayResult<UserBooking>,
26
26
  ArrayOptions<UserBooking>
27
27
  >
@@ -91,7 +91,7 @@ export type UserConnectionClient = {
91
91
  export type UserEndpoints =
92
92
  | Endpoint<"GET", "/users", User[]>
93
93
  | Endpoint<"GET", "/users/:userId", User>
94
- | Endpoint<"GET", "/users/me", User>
94
+ | Endpoint<"GET", "/users/@me", User>
95
95
  | Endpoint<
96
96
  "GET",
97
97
  "/users/check/:identifier",
@@ -4,4 +4,5 @@ export const usersBookings = sdk((client) => ({
4
4
  getAll: async () => client.get("/users/bookings"),
5
5
  get: async (bookingId: string) =>
6
6
  client.get("/users/bookings/:bookingId", { bookingId }),
7
+ me: async () => client.get("/users/@me/bookings"),
7
8
  }));
@@ -4,7 +4,7 @@ import { sdk } from "../builder";
4
4
  export const users = sdk((client) => ({
5
5
  getAll: async () => client.get("/users"),
6
6
  get: async (userId: string) => client.get("/users/:userId", { userId }),
7
- me: async () => client.get("/users/me"),
7
+ me: async () => client.get("/users/@me"),
8
8
  check: async (identifier: string, suggestions?: boolean) =>
9
9
  client.get("/users/check/:identifier", { identifier, suggestions }),
10
10
  update: async (userId: string, data: UpdateUserDto) =>