tonightpass 0.0.222 → 0.0.224
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/dist/index.d.mts +24 -23
- package/dist/index.d.ts +24 -23
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -330,7 +330,7 @@ type UserPostComment = Base & {
|
|
|
330
330
|
isEdited: boolean;
|
|
331
331
|
editedAt?: Date;
|
|
332
332
|
};
|
|
333
|
-
type UserPostCommentEndpoints = Endpoint<"GET", "/users
|
|
333
|
+
type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void>;
|
|
334
334
|
|
|
335
335
|
declare enum UserPostMediaType {
|
|
336
336
|
Image = "image",
|
|
@@ -346,7 +346,7 @@ type UserPostMedia = {
|
|
|
346
346
|
thumbnailUrl?: string;
|
|
347
347
|
duration?: number;
|
|
348
348
|
};
|
|
349
|
-
type UserPostMediaEndpoints = Endpoint<"POST", "/users
|
|
349
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
|
|
350
350
|
|
|
351
351
|
declare class CreateUserPostRepostDto {
|
|
352
352
|
comment?: string;
|
|
@@ -357,9 +357,9 @@ type UserPostRepost = Base & {
|
|
|
357
357
|
author: UserProfile;
|
|
358
358
|
comment?: string;
|
|
359
359
|
};
|
|
360
|
-
type UserPostRepostEndpoints = Endpoint<"GET", "/users
|
|
360
|
+
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void>;
|
|
361
361
|
|
|
362
|
-
type UserPostViewEndpoints = Endpoint<"POST", "/users
|
|
362
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null>;
|
|
363
363
|
|
|
364
364
|
declare enum UserPostVisibility {
|
|
365
365
|
Public = "public",
|
|
@@ -380,7 +380,7 @@ type UserPost = Base & {
|
|
|
380
380
|
isEdited: boolean;
|
|
381
381
|
editedAt?: Date;
|
|
382
382
|
};
|
|
383
|
-
type UserPostEndpoints = Endpoint<"GET", "/users
|
|
383
|
+
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
384
384
|
|
|
385
385
|
declare class CreateUserPostDto {
|
|
386
386
|
content?: string;
|
|
@@ -422,9 +422,9 @@ type UserNotificationFollow = UserNotificationBase & {
|
|
|
422
422
|
follower: UserProfile;
|
|
423
423
|
};
|
|
424
424
|
type UserNotification = UserNotificationFollow;
|
|
425
|
-
type UserNotificationEndpoints = Endpoint<"GET", "/users
|
|
425
|
+
type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
|
|
426
426
|
unseen?: boolean;
|
|
427
|
-
}> | Endpoint<"PUT", "/users
|
|
427
|
+
}> | Endpoint<"PUT", "/users/~me/notifications/read", void>;
|
|
428
428
|
|
|
429
429
|
type UserBookingTicket = Base & {
|
|
430
430
|
booking: UserBookingWithoutTickets;
|
|
@@ -453,7 +453,7 @@ type UserBooking = Base & {
|
|
|
453
453
|
customer: OrganizationCustomer;
|
|
454
454
|
event: OrganizationEvent;
|
|
455
455
|
};
|
|
456
|
-
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users
|
|
456
|
+
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/~me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/~me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
|
|
457
457
|
|
|
458
458
|
declare enum ProfileType {
|
|
459
459
|
User = "user",
|
|
@@ -500,7 +500,7 @@ type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
|
500
500
|
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
501
501
|
q: string;
|
|
502
502
|
};
|
|
503
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles
|
|
503
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/@:username", Profile> | Endpoint<"GET", "/profiles/~me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/@:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/@:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/@:username/relationships/unfollow", boolean, null>;
|
|
504
504
|
|
|
505
505
|
type UserCustomer = UserProfile & {
|
|
506
506
|
email?: string;
|
|
@@ -556,6 +556,7 @@ type UserIdentity = UserProfile & {
|
|
|
556
556
|
fullName: string;
|
|
557
557
|
gender: UserIdentityGender;
|
|
558
558
|
birthDate: Date;
|
|
559
|
+
birthDateLastUpdatedAt?: Date;
|
|
559
560
|
};
|
|
560
561
|
declare enum UserRole {
|
|
561
562
|
User = "user",
|
|
@@ -613,14 +614,14 @@ declare enum UserFileType {
|
|
|
613
614
|
Avatar = "avatar",
|
|
614
615
|
Banner = "banner"
|
|
615
616
|
}
|
|
616
|
-
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users
|
|
617
|
+
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
617
618
|
exists: boolean;
|
|
618
619
|
identifier: Partial<UserIdentifier>;
|
|
619
620
|
suggestions?: string[];
|
|
620
621
|
}, {
|
|
621
622
|
identifier: boolean;
|
|
622
623
|
suggestions?: boolean;
|
|
623
|
-
}> | Endpoint<"PUT", "/users
|
|
624
|
+
}> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
|
|
624
625
|
|
|
625
626
|
declare enum OAuth2Provider {
|
|
626
627
|
Google = "google",
|
|
@@ -732,7 +733,7 @@ type ChannelMessage = Base & {
|
|
|
732
733
|
replyTo?: ChannelMessage;
|
|
733
734
|
reactions?: ChannelMessageReaction[];
|
|
734
735
|
};
|
|
735
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels
|
|
736
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
736
737
|
|
|
737
738
|
declare enum ChannelType {
|
|
738
739
|
Private = "private",
|
|
@@ -767,7 +768,7 @@ type ChannelMember = {
|
|
|
767
768
|
type UserChannelCountOptions = {
|
|
768
769
|
unseen?: boolean;
|
|
769
770
|
};
|
|
770
|
-
type ChannelEndpoints = Endpoint<"GET", "/channels
|
|
771
|
+
type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
|
|
771
772
|
|
|
772
773
|
declare enum Currency {
|
|
773
774
|
EUR = "EUR",
|
|
@@ -956,7 +957,7 @@ type Distance<T> = T & {
|
|
|
956
957
|
distance: number;
|
|
957
958
|
};
|
|
958
959
|
|
|
959
|
-
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations
|
|
960
|
+
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
960
961
|
|
|
961
962
|
type OrganizationEventStyle = Base & {
|
|
962
963
|
type: OrganizationEventStyleType;
|
|
@@ -973,7 +974,7 @@ declare enum OrganizationEventStyleType {
|
|
|
973
974
|
}
|
|
974
975
|
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle[], null>;
|
|
975
976
|
|
|
976
|
-
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations
|
|
977
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null>;
|
|
977
978
|
|
|
978
979
|
type OrganizationEventTicket = Base & {
|
|
979
980
|
name: string;
|
|
@@ -1007,7 +1008,7 @@ declare enum OrganizationEventTicketCategory {
|
|
|
1007
1008
|
Shuttle = "shuttle",
|
|
1008
1009
|
Other = "other"
|
|
1009
1010
|
}
|
|
1010
|
-
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations
|
|
1011
|
+
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
|
|
1011
1012
|
|
|
1012
1013
|
type OrganizationEvent = Base & {
|
|
1013
1014
|
title: string;
|
|
@@ -1082,7 +1083,7 @@ type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search"
|
|
|
1082
1083
|
latitude: number;
|
|
1083
1084
|
longitude: number;
|
|
1084
1085
|
radius?: number;
|
|
1085
|
-
}> | Endpoint<"GET", "/organizations
|
|
1086
|
+
}> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | OrganizationEventOrderEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
1086
1087
|
|
|
1087
1088
|
type OrganizationAnalyticsOverview = {
|
|
1088
1089
|
metrics: {
|
|
@@ -1130,7 +1131,7 @@ type AnalyticsOptions = {
|
|
|
1130
1131
|
type EventAnalyticsOptions = AnalyticsOptions & {
|
|
1131
1132
|
status?: "upcoming" | "past" | "all";
|
|
1132
1133
|
};
|
|
1133
|
-
type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations
|
|
1134
|
+
type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/analytics/overview", OrganizationAnalyticsOverview, AnalyticsOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/analytics/events", ArrayResult<OrganizationEventAnalytics>, ArrayOptions<OrganizationEventAnalytics> & EventAnalyticsOptions>;
|
|
1134
1135
|
|
|
1135
1136
|
type OrganizationCustomer = UserProfile & {
|
|
1136
1137
|
email?: string;
|
|
@@ -1147,7 +1148,7 @@ type OrganizationCustomerMetadata = UserProfileMetadata & {
|
|
|
1147
1148
|
totalSpent: number;
|
|
1148
1149
|
lastBookingAt?: Date;
|
|
1149
1150
|
};
|
|
1150
|
-
type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations
|
|
1151
|
+
type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/customers", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/customers/:username", OrganizationCustomer>;
|
|
1151
1152
|
|
|
1152
1153
|
type OrganizationToken = Omit<Base, "updatedAt"> & {
|
|
1153
1154
|
type: OrganizationTokenType;
|
|
@@ -1178,12 +1179,12 @@ declare enum OrganizationMemberRole {
|
|
|
1178
1179
|
Manager = "manager",
|
|
1179
1180
|
Member = "member"
|
|
1180
1181
|
}
|
|
1181
|
-
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members
|
|
1182
|
+
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members/~me", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"GET", "/organizations/@:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"POST", "/organizations/@:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/members/:username", OrganizationMember, UpdateOrganizationMemberDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/:username", OrganizationMember[], null> | Endpoint<"GET", "/organizations/@:organizationSlug/members/invitations/links", ArrayResult<OrganizationToken>, ArrayOptions<OrganizationToken>> | Endpoint<"POST", "/organizations/@:organizationSlug/members/invitations/links", OrganizationToken, CreateOrganizationMemberInvitationLinkDto> | Endpoint<"POST", "/organizations/@:organizationSlug/members/invitations/accept", OrganizationMember, AcceptOrganizationMemberInvitationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/members/~me/accept", OrganizationMember, null> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/~me/reject", null, null> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/~me", null, null>;
|
|
1182
1183
|
|
|
1183
1184
|
type OrganizationOrder = Omit<Order, "user"> & {
|
|
1184
1185
|
customer: OrganizationCustomer;
|
|
1185
1186
|
};
|
|
1186
|
-
type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations
|
|
1187
|
+
type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/orders/:orderId", OrganizationOrder> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>>;
|
|
1187
1188
|
|
|
1188
1189
|
type Organization = Base & {
|
|
1189
1190
|
slug: string;
|
|
@@ -1208,7 +1209,7 @@ declare enum OrganizationFileType {
|
|
|
1208
1209
|
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
1209
1210
|
q: string;
|
|
1210
1211
|
limit?: number;
|
|
1211
|
-
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations
|
|
1212
|
+
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, null> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
1212
1213
|
|
|
1213
1214
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
1214
1215
|
|
|
@@ -1948,7 +1949,7 @@ type WebSocketEndpoint<Path extends string, ConnectOptions = undefined> = {
|
|
|
1948
1949
|
path: WebSocketPath<Path>;
|
|
1949
1950
|
options: ConnectOptions;
|
|
1950
1951
|
};
|
|
1951
|
-
type WebSocketEndpoints = WebSocketEndpoint<"/channels
|
|
1952
|
+
type WebSocketEndpoints = WebSocketEndpoint<"/channels/~me/ws", WebSocketConnectOptions> | WebSocketEndpoint<"/channels/~me/:channelId/ws", WebSocketConnectOptions & {
|
|
1952
1953
|
channelId: string;
|
|
1953
1954
|
}> | WebSocketEndpoint<"/channels/:organizationSlug/ws", WebSocketConnectOptions & {
|
|
1954
1955
|
organizationSlug: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -330,7 +330,7 @@ type UserPostComment = Base & {
|
|
|
330
330
|
isEdited: boolean;
|
|
331
331
|
editedAt?: Date;
|
|
332
332
|
};
|
|
333
|
-
type UserPostCommentEndpoints = Endpoint<"GET", "/users
|
|
333
|
+
type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void>;
|
|
334
334
|
|
|
335
335
|
declare enum UserPostMediaType {
|
|
336
336
|
Image = "image",
|
|
@@ -346,7 +346,7 @@ type UserPostMedia = {
|
|
|
346
346
|
thumbnailUrl?: string;
|
|
347
347
|
duration?: number;
|
|
348
348
|
};
|
|
349
|
-
type UserPostMediaEndpoints = Endpoint<"POST", "/users
|
|
349
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
|
|
350
350
|
|
|
351
351
|
declare class CreateUserPostRepostDto {
|
|
352
352
|
comment?: string;
|
|
@@ -357,9 +357,9 @@ type UserPostRepost = Base & {
|
|
|
357
357
|
author: UserProfile;
|
|
358
358
|
comment?: string;
|
|
359
359
|
};
|
|
360
|
-
type UserPostRepostEndpoints = Endpoint<"GET", "/users
|
|
360
|
+
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void>;
|
|
361
361
|
|
|
362
|
-
type UserPostViewEndpoints = Endpoint<"POST", "/users
|
|
362
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null>;
|
|
363
363
|
|
|
364
364
|
declare enum UserPostVisibility {
|
|
365
365
|
Public = "public",
|
|
@@ -380,7 +380,7 @@ type UserPost = Base & {
|
|
|
380
380
|
isEdited: boolean;
|
|
381
381
|
editedAt?: Date;
|
|
382
382
|
};
|
|
383
|
-
type UserPostEndpoints = Endpoint<"GET", "/users
|
|
383
|
+
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
384
384
|
|
|
385
385
|
declare class CreateUserPostDto {
|
|
386
386
|
content?: string;
|
|
@@ -422,9 +422,9 @@ type UserNotificationFollow = UserNotificationBase & {
|
|
|
422
422
|
follower: UserProfile;
|
|
423
423
|
};
|
|
424
424
|
type UserNotification = UserNotificationFollow;
|
|
425
|
-
type UserNotificationEndpoints = Endpoint<"GET", "/users
|
|
425
|
+
type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
|
|
426
426
|
unseen?: boolean;
|
|
427
|
-
}> | Endpoint<"PUT", "/users
|
|
427
|
+
}> | Endpoint<"PUT", "/users/~me/notifications/read", void>;
|
|
428
428
|
|
|
429
429
|
type UserBookingTicket = Base & {
|
|
430
430
|
booking: UserBookingWithoutTickets;
|
|
@@ -453,7 +453,7 @@ type UserBooking = Base & {
|
|
|
453
453
|
customer: OrganizationCustomer;
|
|
454
454
|
event: OrganizationEvent;
|
|
455
455
|
};
|
|
456
|
-
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users
|
|
456
|
+
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/~me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/~me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
|
|
457
457
|
|
|
458
458
|
declare enum ProfileType {
|
|
459
459
|
User = "user",
|
|
@@ -500,7 +500,7 @@ type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
|
500
500
|
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
501
501
|
q: string;
|
|
502
502
|
};
|
|
503
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles
|
|
503
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/@:username", Profile> | Endpoint<"GET", "/profiles/~me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/@:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/@:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/@:username/relationships/unfollow", boolean, null>;
|
|
504
504
|
|
|
505
505
|
type UserCustomer = UserProfile & {
|
|
506
506
|
email?: string;
|
|
@@ -556,6 +556,7 @@ type UserIdentity = UserProfile & {
|
|
|
556
556
|
fullName: string;
|
|
557
557
|
gender: UserIdentityGender;
|
|
558
558
|
birthDate: Date;
|
|
559
|
+
birthDateLastUpdatedAt?: Date;
|
|
559
560
|
};
|
|
560
561
|
declare enum UserRole {
|
|
561
562
|
User = "user",
|
|
@@ -613,14 +614,14 @@ declare enum UserFileType {
|
|
|
613
614
|
Avatar = "avatar",
|
|
614
615
|
Banner = "banner"
|
|
615
616
|
}
|
|
616
|
-
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users
|
|
617
|
+
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
617
618
|
exists: boolean;
|
|
618
619
|
identifier: Partial<UserIdentifier>;
|
|
619
620
|
suggestions?: string[];
|
|
620
621
|
}, {
|
|
621
622
|
identifier: boolean;
|
|
622
623
|
suggestions?: boolean;
|
|
623
|
-
}> | Endpoint<"PUT", "/users
|
|
624
|
+
}> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
|
|
624
625
|
|
|
625
626
|
declare enum OAuth2Provider {
|
|
626
627
|
Google = "google",
|
|
@@ -732,7 +733,7 @@ type ChannelMessage = Base & {
|
|
|
732
733
|
replyTo?: ChannelMessage;
|
|
733
734
|
reactions?: ChannelMessageReaction[];
|
|
734
735
|
};
|
|
735
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels
|
|
736
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, null> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
736
737
|
|
|
737
738
|
declare enum ChannelType {
|
|
738
739
|
Private = "private",
|
|
@@ -767,7 +768,7 @@ type ChannelMember = {
|
|
|
767
768
|
type UserChannelCountOptions = {
|
|
768
769
|
unseen?: boolean;
|
|
769
770
|
};
|
|
770
|
-
type ChannelEndpoints = Endpoint<"GET", "/channels
|
|
771
|
+
type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
|
|
771
772
|
|
|
772
773
|
declare enum Currency {
|
|
773
774
|
EUR = "EUR",
|
|
@@ -956,7 +957,7 @@ type Distance<T> = T & {
|
|
|
956
957
|
distance: number;
|
|
957
958
|
};
|
|
958
959
|
|
|
959
|
-
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations
|
|
960
|
+
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
960
961
|
|
|
961
962
|
type OrganizationEventStyle = Base & {
|
|
962
963
|
type: OrganizationEventStyleType;
|
|
@@ -973,7 +974,7 @@ declare enum OrganizationEventStyleType {
|
|
|
973
974
|
}
|
|
974
975
|
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle[], null>;
|
|
975
976
|
|
|
976
|
-
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations
|
|
977
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null>;
|
|
977
978
|
|
|
978
979
|
type OrganizationEventTicket = Base & {
|
|
979
980
|
name: string;
|
|
@@ -1007,7 +1008,7 @@ declare enum OrganizationEventTicketCategory {
|
|
|
1007
1008
|
Shuttle = "shuttle",
|
|
1008
1009
|
Other = "other"
|
|
1009
1010
|
}
|
|
1010
|
-
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations
|
|
1011
|
+
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
|
|
1011
1012
|
|
|
1012
1013
|
type OrganizationEvent = Base & {
|
|
1013
1014
|
title: string;
|
|
@@ -1082,7 +1083,7 @@ type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search"
|
|
|
1082
1083
|
latitude: number;
|
|
1083
1084
|
longitude: number;
|
|
1084
1085
|
radius?: number;
|
|
1085
|
-
}> | Endpoint<"GET", "/organizations
|
|
1086
|
+
}> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | OrganizationEventOrderEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
1086
1087
|
|
|
1087
1088
|
type OrganizationAnalyticsOverview = {
|
|
1088
1089
|
metrics: {
|
|
@@ -1130,7 +1131,7 @@ type AnalyticsOptions = {
|
|
|
1130
1131
|
type EventAnalyticsOptions = AnalyticsOptions & {
|
|
1131
1132
|
status?: "upcoming" | "past" | "all";
|
|
1132
1133
|
};
|
|
1133
|
-
type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations
|
|
1134
|
+
type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/analytics/overview", OrganizationAnalyticsOverview, AnalyticsOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/analytics/events", ArrayResult<OrganizationEventAnalytics>, ArrayOptions<OrganizationEventAnalytics> & EventAnalyticsOptions>;
|
|
1134
1135
|
|
|
1135
1136
|
type OrganizationCustomer = UserProfile & {
|
|
1136
1137
|
email?: string;
|
|
@@ -1147,7 +1148,7 @@ type OrganizationCustomerMetadata = UserProfileMetadata & {
|
|
|
1147
1148
|
totalSpent: number;
|
|
1148
1149
|
lastBookingAt?: Date;
|
|
1149
1150
|
};
|
|
1150
|
-
type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations
|
|
1151
|
+
type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/customers", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/customers/:username", OrganizationCustomer>;
|
|
1151
1152
|
|
|
1152
1153
|
type OrganizationToken = Omit<Base, "updatedAt"> & {
|
|
1153
1154
|
type: OrganizationTokenType;
|
|
@@ -1178,12 +1179,12 @@ declare enum OrganizationMemberRole {
|
|
|
1178
1179
|
Manager = "manager",
|
|
1179
1180
|
Member = "member"
|
|
1180
1181
|
}
|
|
1181
|
-
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members
|
|
1182
|
+
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members/~me", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"GET", "/organizations/@:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"POST", "/organizations/@:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/members/:username", OrganizationMember, UpdateOrganizationMemberDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/:username", OrganizationMember[], null> | Endpoint<"GET", "/organizations/@:organizationSlug/members/invitations/links", ArrayResult<OrganizationToken>, ArrayOptions<OrganizationToken>> | Endpoint<"POST", "/organizations/@:organizationSlug/members/invitations/links", OrganizationToken, CreateOrganizationMemberInvitationLinkDto> | Endpoint<"POST", "/organizations/@:organizationSlug/members/invitations/accept", OrganizationMember, AcceptOrganizationMemberInvitationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/members/~me/accept", OrganizationMember, null> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/~me/reject", null, null> | Endpoint<"DELETE", "/organizations/@:organizationSlug/members/~me", null, null>;
|
|
1182
1183
|
|
|
1183
1184
|
type OrganizationOrder = Omit<Order, "user"> & {
|
|
1184
1185
|
customer: OrganizationCustomer;
|
|
1185
1186
|
};
|
|
1186
|
-
type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations
|
|
1187
|
+
type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/orders/:orderId", OrganizationOrder> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>>;
|
|
1187
1188
|
|
|
1188
1189
|
type Organization = Base & {
|
|
1189
1190
|
slug: string;
|
|
@@ -1208,7 +1209,7 @@ declare enum OrganizationFileType {
|
|
|
1208
1209
|
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
1209
1210
|
q: string;
|
|
1210
1211
|
limit?: number;
|
|
1211
|
-
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations
|
|
1212
|
+
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, null> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
1212
1213
|
|
|
1213
1214
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
1214
1215
|
|
|
@@ -1948,7 +1949,7 @@ type WebSocketEndpoint<Path extends string, ConnectOptions = undefined> = {
|
|
|
1948
1949
|
path: WebSocketPath<Path>;
|
|
1949
1950
|
options: ConnectOptions;
|
|
1950
1951
|
};
|
|
1951
|
-
type WebSocketEndpoints = WebSocketEndpoint<"/channels
|
|
1952
|
+
type WebSocketEndpoints = WebSocketEndpoint<"/channels/~me/ws", WebSocketConnectOptions> | WebSocketEndpoint<"/channels/~me/:channelId/ws", WebSocketConnectOptions & {
|
|
1952
1953
|
channelId: string;
|
|
1953
1954
|
}> | WebSocketEndpoint<"/channels/:organizationSlug/ws", WebSocketConnectOptions & {
|
|
1954
1955
|
organizationSlug: string;
|