tonightpass 0.0.136 → 0.0.138
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 +30 -27
- package/dist/index.d.ts +30 -27
- 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/dist/index.d.mts
CHANGED
|
@@ -22,6 +22,10 @@ declare const REGEX: {
|
|
|
22
22
|
IMAGE_URL: RegExp;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
declare class AddParticipantDto {
|
|
26
|
+
username: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
type Endpoint<M extends Options["method"], Path extends string, Res, Body = undefined> = {
|
|
26
30
|
method: M;
|
|
27
31
|
path: Path;
|
|
@@ -255,50 +259,49 @@ type Attachment = {
|
|
|
255
259
|
size?: number;
|
|
256
260
|
mimeType?: string;
|
|
257
261
|
};
|
|
262
|
+
type ChannelMessageReadByEntry = {
|
|
263
|
+
participant: ChannelParticipant;
|
|
264
|
+
readAt: Date;
|
|
265
|
+
};
|
|
266
|
+
type ChannelMessageReaction = {
|
|
267
|
+
emoji: string;
|
|
268
|
+
participants: ChannelParticipant[];
|
|
269
|
+
};
|
|
258
270
|
type ChannelMessage = Base & {
|
|
259
271
|
channel: Channel;
|
|
260
|
-
sender:
|
|
272
|
+
sender: ChannelParticipant;
|
|
261
273
|
content: string;
|
|
262
274
|
attachments: Attachment[];
|
|
263
275
|
sent: boolean;
|
|
264
276
|
delivered: boolean;
|
|
265
277
|
read: boolean;
|
|
266
|
-
readBy?:
|
|
267
|
-
user: User;
|
|
268
|
-
readAt: Date;
|
|
269
|
-
}[];
|
|
278
|
+
readBy?: ChannelMessageReadByEntry[];
|
|
270
279
|
edited: boolean;
|
|
271
280
|
editedAt?: Date;
|
|
272
281
|
replyTo?: ChannelMessage;
|
|
273
|
-
|
|
274
|
-
reactions?: {
|
|
275
|
-
emoji: string;
|
|
276
|
-
users: User[];
|
|
277
|
-
}[];
|
|
282
|
+
reactions?: ChannelMessageReaction[];
|
|
278
283
|
};
|
|
279
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/reactions", void,
|
|
280
|
-
emoji: string;
|
|
281
|
-
}> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/read", void, null>;
|
|
284
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/read", void, null>;
|
|
282
285
|
|
|
283
286
|
declare enum ChannelType {
|
|
284
287
|
Private = "private",
|
|
285
288
|
Group = "group"
|
|
286
289
|
}
|
|
290
|
+
type ChannelParticipant = Profile;
|
|
287
291
|
type Channel = Base & {
|
|
288
292
|
type: ChannelType;
|
|
289
|
-
|
|
293
|
+
participants: ChannelParticipant[];
|
|
290
294
|
name?: string;
|
|
291
|
-
description?: string;
|
|
292
295
|
lastMessageAt?: Date;
|
|
293
296
|
unreadCount?: number;
|
|
294
297
|
};
|
|
295
298
|
type ChannelMember = {
|
|
296
|
-
|
|
299
|
+
participant: ChannelParticipant;
|
|
297
300
|
joinedAt: Date;
|
|
298
301
|
role?: "admin" | "member";
|
|
299
302
|
lastReadAt?: Date;
|
|
300
303
|
};
|
|
301
|
-
type ChannelEndpoints = Endpoint<"GET", "/channels", Channel[]> | Endpoint<"GET", "/channels/:channelId", Channel> | Endpoint<"POST", "/channels", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/:channelId", void, undefined> | Endpoint<"POST", "/channels/:channelId/
|
|
304
|
+
type ChannelEndpoints = Endpoint<"GET", "/channels", Channel[]> | Endpoint<"GET", "/channels/:channelId", Channel> | Endpoint<"POST", "/channels", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/:channelId", void, undefined> | Endpoint<"POST", "/channels/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/:channelId/members", ChannelMember[]>;
|
|
302
305
|
|
|
303
306
|
declare enum ErrorType {
|
|
304
307
|
AuthEmailAlreadyExists = "auth.email-already-exists",
|
|
@@ -725,14 +728,16 @@ type ArrayResult<T> = {
|
|
|
725
728
|
|
|
726
729
|
declare class CreateChannelDto {
|
|
727
730
|
type: ChannelType;
|
|
728
|
-
|
|
731
|
+
participantUsernames: string[];
|
|
729
732
|
name?: string;
|
|
730
|
-
description?: string;
|
|
731
733
|
}
|
|
732
734
|
|
|
733
735
|
declare class UpdateChannelDto {
|
|
734
736
|
name?: string;
|
|
735
|
-
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
declare class AddReactionDto {
|
|
740
|
+
emoji: string;
|
|
736
741
|
}
|
|
737
742
|
|
|
738
743
|
declare class CreateAttachmentDto {
|
|
@@ -745,13 +750,11 @@ declare class CreateChannelMessageDto {
|
|
|
745
750
|
content: string;
|
|
746
751
|
attachments?: CreateAttachmentDto[];
|
|
747
752
|
replyToId?: string;
|
|
748
|
-
mentionIds?: string[];
|
|
749
753
|
}
|
|
750
754
|
|
|
751
755
|
declare class UpdateChannelMessageDto {
|
|
752
756
|
content?: string;
|
|
753
757
|
attachments?: CreateAttachmentDto[];
|
|
754
|
-
mentionIds?: string[];
|
|
755
758
|
}
|
|
756
759
|
|
|
757
760
|
declare class GeoPointDto implements GeoPoint {
|
|
@@ -1044,8 +1047,8 @@ declare const channels: (client: Client) => {
|
|
|
1044
1047
|
create: (data: CreateChannelDto) => Promise<Channel>;
|
|
1045
1048
|
update: (channelId: string, data: UpdateChannelDto) => Promise<Channel>;
|
|
1046
1049
|
delete: (channelId: string) => Promise<void>;
|
|
1047
|
-
|
|
1048
|
-
|
|
1050
|
+
addParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1051
|
+
removeParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1049
1052
|
getMembers: (channelId: string) => Promise<ChannelMember[]>;
|
|
1050
1053
|
messages: {
|
|
1051
1054
|
getAll: (channelId: string, options?: ArrayOptions<ChannelMessage>) => Promise<ArrayResult<ChannelMessage>>;
|
|
@@ -1208,8 +1211,8 @@ declare class TonightPass {
|
|
|
1208
1211
|
create: (data: CreateChannelDto) => Promise<Channel>;
|
|
1209
1212
|
update: (channelId: string, data: UpdateChannelDto) => Promise<Channel>;
|
|
1210
1213
|
delete: (channelId: string) => Promise<void>;
|
|
1211
|
-
|
|
1212
|
-
|
|
1214
|
+
addParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1215
|
+
removeParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1213
1216
|
getMembers: (channelId: string) => Promise<ChannelMember[]>;
|
|
1214
1217
|
messages: {
|
|
1215
1218
|
getAll: (channelId: string, options?: ArrayOptions<ChannelMessage>) => Promise<ArrayResult<ChannelMessage>>;
|
|
@@ -1327,4 +1330,4 @@ declare class TonightPass {
|
|
|
1327
1330
|
declare const isBrowser: boolean;
|
|
1328
1331
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1329
1332
|
|
|
1330
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, ChannelType, Client, type ClientOptions, CreateAttachmentDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1333
|
+
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelType, Client, type ClientOptions, CreateAttachmentDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ declare const REGEX: {
|
|
|
22
22
|
IMAGE_URL: RegExp;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
declare class AddParticipantDto {
|
|
26
|
+
username: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
type Endpoint<M extends Options["method"], Path extends string, Res, Body = undefined> = {
|
|
26
30
|
method: M;
|
|
27
31
|
path: Path;
|
|
@@ -255,50 +259,49 @@ type Attachment = {
|
|
|
255
259
|
size?: number;
|
|
256
260
|
mimeType?: string;
|
|
257
261
|
};
|
|
262
|
+
type ChannelMessageReadByEntry = {
|
|
263
|
+
participant: ChannelParticipant;
|
|
264
|
+
readAt: Date;
|
|
265
|
+
};
|
|
266
|
+
type ChannelMessageReaction = {
|
|
267
|
+
emoji: string;
|
|
268
|
+
participants: ChannelParticipant[];
|
|
269
|
+
};
|
|
258
270
|
type ChannelMessage = Base & {
|
|
259
271
|
channel: Channel;
|
|
260
|
-
sender:
|
|
272
|
+
sender: ChannelParticipant;
|
|
261
273
|
content: string;
|
|
262
274
|
attachments: Attachment[];
|
|
263
275
|
sent: boolean;
|
|
264
276
|
delivered: boolean;
|
|
265
277
|
read: boolean;
|
|
266
|
-
readBy?:
|
|
267
|
-
user: User;
|
|
268
|
-
readAt: Date;
|
|
269
|
-
}[];
|
|
278
|
+
readBy?: ChannelMessageReadByEntry[];
|
|
270
279
|
edited: boolean;
|
|
271
280
|
editedAt?: Date;
|
|
272
281
|
replyTo?: ChannelMessage;
|
|
273
|
-
|
|
274
|
-
reactions?: {
|
|
275
|
-
emoji: string;
|
|
276
|
-
users: User[];
|
|
277
|
-
}[];
|
|
282
|
+
reactions?: ChannelMessageReaction[];
|
|
278
283
|
};
|
|
279
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/reactions", void,
|
|
280
|
-
emoji: string;
|
|
281
|
-
}> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/read", void, null>;
|
|
284
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/:channelId/messages/:messageId/read", void, null>;
|
|
282
285
|
|
|
283
286
|
declare enum ChannelType {
|
|
284
287
|
Private = "private",
|
|
285
288
|
Group = "group"
|
|
286
289
|
}
|
|
290
|
+
type ChannelParticipant = Profile;
|
|
287
291
|
type Channel = Base & {
|
|
288
292
|
type: ChannelType;
|
|
289
|
-
|
|
293
|
+
participants: ChannelParticipant[];
|
|
290
294
|
name?: string;
|
|
291
|
-
description?: string;
|
|
292
295
|
lastMessageAt?: Date;
|
|
293
296
|
unreadCount?: number;
|
|
294
297
|
};
|
|
295
298
|
type ChannelMember = {
|
|
296
|
-
|
|
299
|
+
participant: ChannelParticipant;
|
|
297
300
|
joinedAt: Date;
|
|
298
301
|
role?: "admin" | "member";
|
|
299
302
|
lastReadAt?: Date;
|
|
300
303
|
};
|
|
301
|
-
type ChannelEndpoints = Endpoint<"GET", "/channels", Channel[]> | Endpoint<"GET", "/channels/:channelId", Channel> | Endpoint<"POST", "/channels", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/:channelId", void, undefined> | Endpoint<"POST", "/channels/:channelId/
|
|
304
|
+
type ChannelEndpoints = Endpoint<"GET", "/channels", Channel[]> | Endpoint<"GET", "/channels/:channelId", Channel> | Endpoint<"POST", "/channels", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/:channelId", void, undefined> | Endpoint<"POST", "/channels/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/:channelId/members", ChannelMember[]>;
|
|
302
305
|
|
|
303
306
|
declare enum ErrorType {
|
|
304
307
|
AuthEmailAlreadyExists = "auth.email-already-exists",
|
|
@@ -725,14 +728,16 @@ type ArrayResult<T> = {
|
|
|
725
728
|
|
|
726
729
|
declare class CreateChannelDto {
|
|
727
730
|
type: ChannelType;
|
|
728
|
-
|
|
731
|
+
participantUsernames: string[];
|
|
729
732
|
name?: string;
|
|
730
|
-
description?: string;
|
|
731
733
|
}
|
|
732
734
|
|
|
733
735
|
declare class UpdateChannelDto {
|
|
734
736
|
name?: string;
|
|
735
|
-
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
declare class AddReactionDto {
|
|
740
|
+
emoji: string;
|
|
736
741
|
}
|
|
737
742
|
|
|
738
743
|
declare class CreateAttachmentDto {
|
|
@@ -745,13 +750,11 @@ declare class CreateChannelMessageDto {
|
|
|
745
750
|
content: string;
|
|
746
751
|
attachments?: CreateAttachmentDto[];
|
|
747
752
|
replyToId?: string;
|
|
748
|
-
mentionIds?: string[];
|
|
749
753
|
}
|
|
750
754
|
|
|
751
755
|
declare class UpdateChannelMessageDto {
|
|
752
756
|
content?: string;
|
|
753
757
|
attachments?: CreateAttachmentDto[];
|
|
754
|
-
mentionIds?: string[];
|
|
755
758
|
}
|
|
756
759
|
|
|
757
760
|
declare class GeoPointDto implements GeoPoint {
|
|
@@ -1044,8 +1047,8 @@ declare const channels: (client: Client) => {
|
|
|
1044
1047
|
create: (data: CreateChannelDto) => Promise<Channel>;
|
|
1045
1048
|
update: (channelId: string, data: UpdateChannelDto) => Promise<Channel>;
|
|
1046
1049
|
delete: (channelId: string) => Promise<void>;
|
|
1047
|
-
|
|
1048
|
-
|
|
1050
|
+
addParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1051
|
+
removeParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1049
1052
|
getMembers: (channelId: string) => Promise<ChannelMember[]>;
|
|
1050
1053
|
messages: {
|
|
1051
1054
|
getAll: (channelId: string, options?: ArrayOptions<ChannelMessage>) => Promise<ArrayResult<ChannelMessage>>;
|
|
@@ -1208,8 +1211,8 @@ declare class TonightPass {
|
|
|
1208
1211
|
create: (data: CreateChannelDto) => Promise<Channel>;
|
|
1209
1212
|
update: (channelId: string, data: UpdateChannelDto) => Promise<Channel>;
|
|
1210
1213
|
delete: (channelId: string) => Promise<void>;
|
|
1211
|
-
|
|
1212
|
-
|
|
1214
|
+
addParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1215
|
+
removeParticipant: (channelId: string, username: string) => Promise<void>;
|
|
1213
1216
|
getMembers: (channelId: string) => Promise<ChannelMember[]>;
|
|
1214
1217
|
messages: {
|
|
1215
1218
|
getAll: (channelId: string, options?: ArrayOptions<ChannelMessage>) => Promise<ArrayResult<ChannelMessage>>;
|
|
@@ -1327,4 +1330,4 @@ declare class TonightPass {
|
|
|
1327
1330
|
declare const isBrowser: boolean;
|
|
1328
1331
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
1329
1332
|
|
|
1330
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, ChannelType, Client, type ClientOptions, CreateAttachmentDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1333
|
+
export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelType, Client, type ClientOptions, CreateAttachmentDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type PublicUser, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, channels, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),Cn=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Cn__default=/*#__PURE__*/_interopDefault(Cn);var Vo=Object.defineProperty;var o=(e,t)=>Vo(e,"name",{value:t,configurable:true});var ct="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};var _e=function(e){return e.Image="image",e.Video="video",e.Audio="audio",e.Document="document",e.File="file",e}({});var H=function(e){return e.Private="private",e.Group="group",e}({});var ti=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var Z=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),J=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var ii=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var Q=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Y=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var ci=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),K=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var fi=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var yi=function(e){return e.Follow="follow",e}({});var hi=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Ii=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),T=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),xi=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var wi=function(e){return e.User="user",e.Organization="organization",e}({});var ee=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),_i=function(e){return e.FR="fr",e.EN="en",e}({});function Ne(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Ne,"_ts_decorate");function ze(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ze,"_ts_metadata");var ae=class{static{o(this,"CreateChannelDto");}type;userIds;name;description};Ne([classValidator.IsEnum(H),ze("design:type",typeof H>"u"?Object:H)],ae.prototype,"type",void 0);Ne([classValidator.IsArray(),classValidator.ArrayMinSize(1),classValidator.ValidateIf(e=>e.type===H.Private),classValidator.ArrayMaxSize(2,{message:"Private channels can only have 2 users"}),classValidator.ValidateIf(e=>e.type===H.Group),classValidator.ArrayMinSize(3,{message:"Group channels must have at least 3 users"}),classValidator.ArrayMaxSize(50,{message:"Group channels can have at most 50 users"}),classValidator.IsUUID("4",{each:true}),ze("design:type",Array)],ae.prototype,"userIds",void 0);Ne([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===H.Group),classValidator.IsString(),classValidator.Length(1,100),ze("design:type",String)],ae.prototype,"name",void 0);Ne([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===H.Group),classValidator.IsString(),classValidator.Length(1,500),ze("design:type",String)],ae.prototype,"description",void 0);function yt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(yt,"_ts_decorate");function vt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(vt,"_ts_metadata");var De=class{static{o(this,"UpdateChannelDto");}name;description};yt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),vt("design:type",String)],De.prototype,"name",void 0);yt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,500),vt("design:type",String)],De.prototype,"description",void 0);function te(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(te,"_ts_decorate");function oe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(oe,"_ts_metadata");var B=class{static{o(this,"CreateAttachmentDto");}type;url;filename;mimeType};te([classValidator.IsEnum(_e),oe("design:type",typeof _e>"u"?Object:_e)],B.prototype,"type",void 0);te([classValidator.IsUrl(),oe("design:type",String)],B.prototype,"url",void 0);te([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,255),oe("design:type",String)],B.prototype,"filename",void 0);te([classValidator.IsOptional(),classValidator.IsString(),oe("design:type",String)],B.prototype,"mimeType",void 0);var pe=class{static{o(this,"CreateChannelMessageDto");}content;attachments;replyToId;mentionIds};te([classValidator.IsString(),classValidator.Length(1,4e3),oe("design:type",String)],pe.prototype,"content",void 0);te([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>B),oe("design:type",Array)],pe.prototype,"attachments",void 0);te([classValidator.IsOptional(),classValidator.IsUUID("4"),oe("design:type",String)],pe.prototype,"replyToId",void 0);te([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(20),classValidator.IsUUID("4",{each:true}),oe("design:type",Array)],pe.prototype,"mentionIds",void 0);function $e(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o($e,"_ts_decorate");function Ee(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ee,"_ts_metadata");var be=class{static{o(this,"UpdateChannelMessageDto");}content;attachments;mentionIds};$e([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),Ee("design:type",String)],be.prototype,"content",void 0);$e([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>B),Ee("design:type",Array)],be.prototype,"attachments",void 0);$e([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(20),classValidator.IsUUID("4",{each:true}),Ee("design:type",Array)],be.prototype,"mentionIds",void 0);function k(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(k,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var h=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,n]=this.coordinates;return n>=-90&&n<=90&&t>=-180&&t<=180}};k([classValidator.IsString(),classValidator.IsNotEmpty(),w("design:type",String)],h.prototype,"type",void 0);k([classValidator.IsArray(),classValidator.IsNotEmpty(),w("design:type",Array)],h.prototype,"coordinates",void 0);k([classValidator.ValidateNested(),w("design:type",Function),w("design:paramtypes",[]),w("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};k([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"name",void 0);k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),w("design:type",String)],b.prototype,"address",void 0);k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],b.prototype,"zipCode",void 0);k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"city",void 0);k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"country",void 0);k([classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),w("design:type",typeof h>"u"?Object:h)],b.prototype,"geometry",void 0);function ce(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(ce,"_ts_decorate");function le(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(le,"_ts_metadata");var I=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ce([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),le("design:type",String)],I.prototype,"name",void 0);ce([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),le("design:type",String)],I.prototype,"address",void 0);ce([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),le("design:type",String)],I.prototype,"zipCode",void 0);ce([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),le("design:type",String)],I.prototype,"city",void 0);ce([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),le("design:type",String)],I.prototype,"country",void 0);ce([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>h),le("design:type",typeof h>"u"?Object:h)],I.prototype,"geometry",void 0);function G(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(G,"_ts_decorate");function W(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(W,"_ts_metadata");var ue=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),W("design:type",String)],ue.prototype,"organizationSlug",void 0);G([classValidator.IsObject(),W("design:type",typeof q>"u"?Object:q)],ue.prototype,"identity",void 0);G([classValidator.IsArray(),W("design:type",Array)],ue.prototype,"members",void 0);G([classValidator.IsOptional(),classValidator.IsObject(),W("design:type",typeof Location>"u"?Object:Location)],ue.prototype,"location",void 0);var q=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),W("design:type",String)],q.prototype,"displayName",void 0);G([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),W("design:type",String)],q.prototype,"description",void 0);G([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],q.prototype,"avatarUrl",void 0);G([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],q.prototype,"bannerUrl",void 0);G([classValidator.IsOptional(),classValidator.IsArray(),W("design:type",Array)],q.prototype,"socialLinks",void 0);function C(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(C,"_ts_decorate");function $(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($,"_ts_metadata");var me=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};C([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),$("design:type",String)],me.prototype,"slug",void 0);C([classValidator.IsObject(),classValidator.IsOptional(),$("design:type",typeof V>"u"?Object:V)],me.prototype,"identity",void 0);C([classValidator.IsOptional(),classValidator.IsArray(),$("design:type",Array)],me.prototype,"members",void 0);C([classValidator.IsOptional(),classValidator.IsObject(),$("design:type",typeof Location>"u"?Object:Location)],me.prototype,"location",void 0);var V=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};C([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),$("design:type",String)],V.prototype,"displayName",void 0);C([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),$("design:type",String)],V.prototype,"description",void 0);C([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),$("design:type",String)],V.prototype,"avatarUrl",void 0);C([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),$("design:type",String)],V.prototype,"bannerUrl",void 0);C([classValidator.IsOptional(),classValidator.IsArray(),$("design:type",Array)],V.prototype,"socialLinks",void 0);var Lt=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var Ue=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Ft=class extends Ue{static{o(this,"UpdateOrganizationEventStyleDto");}};function O(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(O,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};O([classValidator.IsString(),classValidator.Length(1,128),_("design:type",String)],c.prototype,"name",void 0);O([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),_("design:type",String)],c.prototype,"description",void 0);O([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"price",void 0);O([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);O([classValidator.IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"type",void 0);O([classValidator.IsEnum(J),_("design:type",typeof J>"u"?Object:J)],c.prototype,"category",void 0);O([classValidator.IsEnum(ee),_("design:type",typeof ee>"u"?Object:ee)],c.prototype,"currency",void 0);O([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);O([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);O([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);O([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function P(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var l=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};P([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),N("design:type",String)],l.prototype,"name",void 0);P([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),N("design:type",String)],l.prototype,"description",void 0);P([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],l.prototype,"price",void 0);P([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],l.prototype,"quantity",void 0);P([classValidator.IsEnum(Z),classValidator.IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],l.prototype,"type",void 0);P([classValidator.IsEnum(J),classValidator.IsOptional(),N("design:type",typeof J>"u"?Object:J)],l.prototype,"category",void 0);P([classValidator.IsEnum(ee),classValidator.IsOptional(),N("design:type",typeof ee>"u"?Object:ee)],l.prototype,"currency",void 0);P([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);P([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);P([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function x(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"type",void 0);x([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),S("design:type",typeof Y>"u"?Object:Y)],f.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),classValidator.IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function R(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(R,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var u=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),A("design:type",String)],u.prototype,"title",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),A("design:type",String)],u.prototype,"slug",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),A("design:type",String)],u.prototype,"description",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(Q),A("design:type",typeof Q>"u"?Object:Q)],u.prototype,"type",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(Y),A("design:type",typeof Y>"u"?Object:Y)],u.prototype,"visibility",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),A("design:type",Array)],u.prototype,"flyers",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),A("design:type",Array)],u.prototype,"trailers",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>I),A("design:type",typeof I>"u"?Object:I)],u.prototype,"location",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),A("design:type",Array)],u.prototype,"tickets",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),A("design:type",Array)],u.prototype,"styles",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),A("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),A("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function io(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(io,"_ts_decorate");function ro(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ro,"_ts_metadata");var ke=class{static{o(this,"CreateOrganizationMemberDto");}user;role};io([classValidator.IsString(),classValidator.IsNotEmpty(),ro("design:type",String)],ke.prototype,"user",void 0);io([classValidator.IsEnum(K),classValidator.IsNotEmpty(),ro("design:type",typeof K>"u"?Object:K)],ke.prototype,"role",void 0);function xn(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(xn,"_ts_decorate");function Sn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Sn,"_ts_metadata");var ot=class{static{o(this,"UpdateOrganizationMemberDto");}role};xn([classValidator.IsEnum(K),classValidator.IsNotEmpty(),Sn("design:type",typeof K>"u"?Object:K)],ot.prototype,"role",void 0);function D(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(D,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var Ae=class{static{o(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ge),U("design:type",typeof ge>"u"?Object:ge)],Ae.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>F),U("design:type",typeof F>"u"?Object:F)],Ae.prototype,"identity",void 0);D([classValidator.IsString(),classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),U("design:type",String)],Ae.prototype,"password",void 0);var ge=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),U("design:type",String)],ge.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],ge.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],ge.prototype,"username",void 0);var F=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],F.prototype,"firstName",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],F.prototype,"lastName",void 0);D([classValidator.IsEnum(T),U("design:type",typeof T>"u"?Object:T)],F.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],F.prototype,"avatarUrl",void 0);D([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),classValidator.IsDate(),U("design:type",typeof Date>"u"?Object:Date)],F.prototype,"birthDate",void 0);function Dn(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Dn,"_ts_decorate");function Un(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Un,"_ts_metadata");var it=class{static{o(this,"RecoveryDto");}identifier};Dn([classValidator.IsNotEmpty(),classValidator.IsString(),Un("design:type",String)],it.prototype,"identifier",void 0);function rt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(rt,"_ts_decorate");function st(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(st,"_ts_metadata");var je=class{static{o(this,"RecoveryResetDto");}tokenId;tokenValue;password};rt([classValidator.IsString(),classValidator.IsNotEmpty(),st("design:type",String)],je.prototype,"tokenId",void 0);rt([classValidator.IsString(),classValidator.IsNotEmpty(),st("design:type",String)],je.prototype,"tokenValue",void 0);rt([classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),classValidator.IsNotEmpty({message:"Password is required"}),st("design:type",String)],je.prototype,"password",void 0);function lo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(lo,"_ts_decorate");function fo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(fo,"_ts_metadata");var Ge=class{static{o(this,"SignInUserDto");}identifier;password};lo([classValidator.IsNotEmpty(),classValidator.IsString(),fo("design:type",String)],Ge.prototype,"identifier",void 0);lo([classValidator.IsNotEmpty(),classValidator.IsString(),fo("design:type",String)],Ge.prototype,"password",void 0);function m(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var we=class{static{o(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ve),g("design:type",typeof ve>"u"?Object:ve)],we.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>L),g("design:type",typeof L>"u"?Object:L)],we.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],we.prototype,"password",void 0);var ve=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),g("design:type",String)],ve.prototype,"email",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),g("design:type",String)],ve.prototype,"phoneNumber",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),g("design:type",String)],ve.prototype,"username",void 0);var L=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],L.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(T),g("design:type",typeof T>"u"?Object:T)],L.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var M=typeof window<"u";function bo(e,t){let n=new FormData;return t instanceof File?n.append(e,t):t instanceof FileList?Array.from(t).forEach(r=>n.append(e,r)):t.forEach(r=>n.append(e,r)),n}o(bo,"buildFileFormData");var $n=Cn__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!M&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:M}),Io=o(async(e,t)=>$n(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var dt=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},We=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(n,r)=>{let s=this.options.baseURL||ct;return pathcat.pathcat(s,n,r)};}setOptions(t){this.options=t;}async get(t,n,r){return this.requester("GET",t,void 0,n,r)}async post(t,n,r,s){return this.requester("POST",t,n,r,s)}async put(t,n,r,s){return this.requester("PUT",t,n,r,s)}async patch(t,n,r,s){return this.requester("PATCH",t,n,r,s)}async delete(t,n,r,s){return this.requester("DELETE",t,n,r,s)}async requester(t,n,r,s={},i={}){let a=this.url(n,s);if(r!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await Io(a,{method:t,data:r,...i}),Ve=p.data;if(!Ve.success)throw new dt(p,Ve);return Ve.data}};function v(e){return e}o(v,"sdk");var xo=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),recovery:o(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:o(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),oauth2:{google:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var So=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ro=e=>({getAll:o(async(t,n)=>e.get("/channels/:channelId/messages",{channelId:t,...n}),"getAll"),get:o(async(t,n)=>e.get("/channels/:channelId/messages/:messageId",{channelId:t,messageId:n}),"get"),create:o(async(t,n)=>e.post("/channels/:channelId/messages",n,{channelId:t}),"create"),update:o(async(t,n,r)=>e.put("/channels/:channelId/messages/:messageId",r,{channelId:t,messageId:n}),"update"),delete:o(async(t,n)=>e.delete("/channels/:channelId/messages/:messageId",void 0,{channelId:t,messageId:n}),"delete"),addReaction:o(async(t,n,r)=>e.post("/channels/:channelId/messages/:messageId/reactions",{emoji:r},{channelId:t,messageId:n}),"addReaction"),removeReaction:o(async(t,n,r)=>e.delete("/channels/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:n,emoji:r}),"removeReaction"),markAsRead:o(async(t,n)=>e.post("/channels/:channelId/messages/:messageId/read",null,{channelId:t,messageId:n}),"markAsRead")});var Ao=e=>({getAll:o(async()=>e.get("/channels"),"getAll"),get:o(async t=>e.get("/channels/:channelId",{channelId:t}),"get"),create:o(async t=>e.post("/channels",t),"create"),update:o(async(t,n)=>e.put("/channels/:channelId",n,{channelId:t}),"update"),delete:o(async t=>e.delete("/channels/:channelId",void 0,{channelId:t}),"delete"),addMember:o(async(t,n)=>e.post("/channels/:channelId/members/:userId",null,{channelId:t,userId:n}),"addMember"),removeMember:o(async(t,n)=>e.delete("/channels/:channelId/members/:userId",void 0,{channelId:t,userId:n}),"removeMember"),getMembers:o(async t=>e.get("/channels/:channelId/members",{channelId:t}),"getMembers"),messages:Ro(e)});var jo=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var wo=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Oo=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(M)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(M)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var _o=o(e=>({create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var Po=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var No=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:r}),"get"),create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",r,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:n,ticketId:r}),"update"),delete:o(async(t,n,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:r}),"delete")}),"organizationsEventsTickets");var zo=o(e=>({record:o(async(t,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record")}),"organizationsEventsViews");var Do=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,limit:n}),"search"),getAll:o(async(t,n)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...n}),"getPast"),getUpcoming:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...n}),"getUpcoming"),get:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,r)=>e.put("/organizations/:organizationSlug/events/:eventSlug",r,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:n}),"delete"),orders:_o(e),styles:Po(e),tickets:No(e),views:zo(e)}),"organizationsEvents");var Uo=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Lo=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Oo(e),events:Do(e),members:Uo(e)});var Fo=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/:username/relationships/followers",{username:t,...n}),"getFollowers")});var Mo=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Fo(e)});var Bo=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var ko=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var qo=e=>({search:o(async(t,n)=>e.get("/users/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,r)=>e.post("/users/:userId/files/:userFileType",bo("file",r),{userId:t,userFileType:n}),"uploadFile"),bookings:Bo(e),notifications:ko(e)});var Go=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Wo=class{static{o(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new We(t),this.auth=xo(this.client),this.careers=So(this.client),this.channels=Ao(this.client),this.health=jo(this.client),this.orders=wo(this.client),this.organizations=Lo(this.client),this.profiles=Mo(this.client),this.users=qo(this.client),this.notifications=Go(this.client);}};
|
|
2
|
-
exports.AttachmentType=
|
|
1
|
+
'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),Kn=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Kn__default=/*#__PURE__*/_interopDefault(Kn);var Do=Object.defineProperty;var o=(e,t)=>Do(e,"name",{value:t,configurable:true});var dt="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function Uo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Uo,"_ts_decorate");function Lo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Lo,"_ts_metadata");var Ge=class{static{o(this,"AddParticipantDto");}username};Uo([classValidator.IsString(),classValidator.Matches(d.USERNAME),Lo("design:type",String)],Ge.prototype,"username",void 0);var Oe=function(e){return e.Image="image",e.Video="video",e.Audio="audio",e.Document="document",e.File="file",e}({});var te=function(e){return e.Private="private",e.Group="group",e}({});var mi=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var H=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),Z=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var vi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var J=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Q=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Si=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Ai=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Pi=function(e){return e.Follow="follow",e}({});var zi=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Ui=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Li=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Gi=function(e){return e.User="user",e.Organization="organization",e}({});var T=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Wi=function(e){return e.FR="fr",e.EN="en",e}({});function We(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(We,"_ts_decorate");function Ve(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ve,"_ts_metadata");var ye=class{static{o(this,"CreateChannelDto");}type;participantUsernames;name};We([classValidator.IsEnum(te),Ve("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([classValidator.IsArray(),classValidator.ArrayMinSize(1),classValidator.ValidateIf(e=>e.type===te.Private),classValidator.ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),classValidator.ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),classValidator.IsString({each:true}),classValidator.Matches(d.USERNAME,{each:true}),Ve("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Ve("design:type",String)],ye.prototype,"name",void 0);function Vo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Vo,"_ts_decorate");function Eo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Eo,"_ts_metadata");var Ee=class{static{o(this,"UpdateChannelDto");}name};Vo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Eo("design:type",String)],Ee.prototype,"name",void 0);function Ho(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Ho,"_ts_decorate");function Zo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Zo,"_ts_metadata");var Ce=class{static{o(this,"AddReactionDto");}emoji};Ho([classValidator.IsString(),classValidator.Length(1,10),Zo("design:type",String)],Ce.prototype,"emoji",void 0);function oe(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(oe,"_ts_decorate");function ne(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ne,"_ts_metadata");var B=class{static{o(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(Oe),ne("design:type",typeof Oe>"u"?Object:Oe)],B.prototype,"type",void 0);oe([classValidator.IsUrl(),ne("design:type",String)],B.prototype,"url",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,255),ne("design:type",String)],B.prototype,"filename",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),ne("design:type",String)],B.prototype,"mimeType",void 0);var ve=class{static{o(this,"CreateChannelMessageDto");}content;attachments;replyToId};oe([classValidator.IsString(),classValidator.Length(1,4e3),ne("design:type",String)],ve.prototype,"content",void 0);oe([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>B),ne("design:type",Array)],ve.prototype,"attachments",void 0);oe([classValidator.IsOptional(),classValidator.IsUUID("4"),ne("design:type",String)],ve.prototype,"replyToId",void 0);function mt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(mt,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(gt,"_ts_metadata");var _e=class{static{o(this,"UpdateChannelMessageDto");}content;attachments};mt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),gt("design:type",String)],_e.prototype,"content",void 0);mt([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>B),gt("design:type",Array)],_e.prototype,"attachments",void 0);function q(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(q,"_ts_decorate");function O(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(O,"_ts_metadata");var h=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,n]=this.coordinates;return n>=-90&&n<=90&&t>=-180&&t<=180}};q([classValidator.IsString(),classValidator.IsNotEmpty(),O("design:type",String)],h.prototype,"type",void 0);q([classValidator.IsArray(),classValidator.IsNotEmpty(),O("design:type",Array)],h.prototype,"coordinates",void 0);q([classValidator.ValidateNested(),O("design:type",Function),O("design:paramtypes",[]),O("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};q([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),O("design:type",String)],b.prototype,"name",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),O("design:type",String)],b.prototype,"address",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),O("design:type",String)],b.prototype,"zipCode",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),O("design:type",String)],b.prototype,"city",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),O("design:type",String)],b.prototype,"country",void 0);q([classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),O("design:type",typeof h>"u"?Object:h)],b.prototype,"geometry",void 0);function pe(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(pe,"_ts_decorate");function de(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(de,"_ts_metadata");var x=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],x.prototype,"name",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),de("design:type",String)],x.prototype,"address",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),de("design:type",String)],x.prototype,"zipCode",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],x.prototype,"city",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],x.prototype,"country",void 0);pe([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>h),de("design:type",typeof h>"u"?Object:h)],x.prototype,"geometry",void 0);function k(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(k,"_ts_decorate");function W(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(W,"_ts_metadata");var le=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};k([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),W("design:type",String)],le.prototype,"organizationSlug",void 0);k([classValidator.IsObject(),W("design:type",typeof G>"u"?Object:G)],le.prototype,"identity",void 0);k([classValidator.IsArray(),W("design:type",Array)],le.prototype,"members",void 0);k([classValidator.IsOptional(),classValidator.IsObject(),W("design:type",typeof Location>"u"?Object:Location)],le.prototype,"location",void 0);var G=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),W("design:type",String)],G.prototype,"displayName",void 0);k([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),W("design:type",String)],G.prototype,"description",void 0);k([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"avatarUrl",void 0);k([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"bannerUrl",void 0);k([classValidator.IsOptional(),classValidator.IsArray(),W("design:type",Array)],G.prototype,"socialLinks",void 0);function E(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(E,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(C,"_ts_metadata");var fe=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};E([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),C("design:type",String)],fe.prototype,"slug",void 0);E([classValidator.IsObject(),classValidator.IsOptional(),C("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],fe.prototype,"members",void 0);E([classValidator.IsOptional(),classValidator.IsObject(),C("design:type",typeof Location>"u"?Object:Location)],fe.prototype,"location",void 0);var V=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};E([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),C("design:type",String)],V.prototype,"displayName",void 0);E([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),C("design:type",String)],V.prototype,"description",void 0);E([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),C("design:type",String)],V.prototype,"avatarUrl",void 0);E([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),C("design:type",String)],V.prototype,"bannerUrl",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],V.prototype,"socialLinks",void 0);var jt=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var Pe=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var At=class extends Pe{static{o(this,"UpdateOrganizationEventStyleDto");}};function w(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(w,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};w([classValidator.IsString(),classValidator.Length(1,128),_("design:type",String)],c.prototype,"name",void 0);w([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),_("design:type",String)],c.prototype,"description",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"price",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);w([classValidator.IsEnum(H),_("design:type",typeof H>"u"?Object:H)],c.prototype,"type",void 0);w([classValidator.IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);w([classValidator.IsEnum(T),_("design:type",typeof T>"u"?Object:T)],c.prototype,"currency",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function P(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(P,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var l=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};P([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),N("design:type",String)],l.prototype,"name",void 0);P([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),N("design:type",String)],l.prototype,"description",void 0);P([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],l.prototype,"price",void 0);P([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],l.prototype,"quantity",void 0);P([classValidator.IsEnum(H),classValidator.IsOptional(),N("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);P([classValidator.IsEnum(Z),classValidator.IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],l.prototype,"category",void 0);P([classValidator.IsEnum(T),classValidator.IsOptional(),N("design:type",typeof T>"u"?Object:T)],l.prototype,"currency",void 0);P([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],l.prototype,"isVisible",void 0);P([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);P([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);P([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function I(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(I,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};I([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),R("design:type",String)],f.prototype,"title",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],f.prototype,"slug",void 0);I([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),R("design:type",String)],f.prototype,"description",void 0);I([classValidator.IsEnum(J),classValidator.IsNotEmpty(),R("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);I([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),R("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);I([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],f.prototype,"flyers",void 0);I([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],f.prototype,"trailers",void 0);I([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),classValidator.IsNotEmpty(),R("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);I([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),R("design:type",Array)],f.prototype,"tickets",void 0);I([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),R("design:type",Array)],f.prototype,"styles",void 0);I([classValidator.IsDateString(),classValidator.IsNotEmpty(),R("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);I([classValidator.IsDateString(),classValidator.IsNotEmpty(),R("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function S(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(S,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(j,"_ts_metadata");var u=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),j("design:type",String)],u.prototype,"title",void 0);S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),j("design:type",String)],u.prototype,"slug",void 0);S([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),j("design:type",String)],u.prototype,"description",void 0);S([classValidator.IsOptional(),classValidator.IsEnum(J),j("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);S([classValidator.IsOptional(),classValidator.IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"flyers",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"trailers",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>x),j("design:type",typeof x>"u"?Object:x)],u.prototype,"location",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),j("design:type",Array)],u.prototype,"tickets",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),j("design:type",Array)],u.prototype,"styles",void 0);S([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);S([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function Zt(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Zt,"_ts_decorate");function Jt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Jt,"_ts_metadata");var Le=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Zt([classValidator.IsString(),classValidator.IsNotEmpty(),Jt("design:type",String)],Le.prototype,"user",void 0);Zt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),Jt("design:type",typeof Y>"u"?Object:Y)],Le.prototype,"role",void 0);function Nn(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Nn,"_ts_decorate");function zn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(zn,"_ts_metadata");var tt=class{static{o(this,"UpdateOrganizationMemberDto");}role};Nn([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),zn("design:type",typeof Y>"u"?Object:Y)],tt.prototype,"role",void 0);function D(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(D,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var Re=class{static{o(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),U("design:type",typeof ue>"u"?Object:ue)],Re.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>F),U("design:type",typeof F>"u"?Object:F)],Re.prototype,"identity",void 0);D([classValidator.IsString(),classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),U("design:type",String)],Re.prototype,"password",void 0);var ue=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),U("design:type",String)],ue.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],ue.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],ue.prototype,"username",void 0);var F=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],F.prototype,"firstName",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],F.prototype,"lastName",void 0);D([classValidator.IsEnum(K),U("design:type",typeof K>"u"?Object:K)],F.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],F.prototype,"avatarUrl",void 0);D([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),classValidator.IsDate(),U("design:type",typeof Date>"u"?Object:Date)],F.prototype,"birthDate",void 0);function Wn(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(Wn,"_ts_decorate");function Vn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Vn,"_ts_metadata");var nt=class{static{o(this,"RecoveryDto");}identifier};Wn([classValidator.IsNotEmpty(),classValidator.IsString(),Vn("design:type",String)],nt.prototype,"identifier",void 0);function it(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(it,"_ts_decorate");function rt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(rt,"_ts_metadata");var Se=class{static{o(this,"RecoveryResetDto");}tokenId;tokenValue;password};it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Se.prototype,"tokenId",void 0);it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Se.prototype,"tokenValue",void 0);it([classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),classValidator.IsNotEmpty({message:"Password is required"}),rt("design:type",String)],Se.prototype,"password",void 0);function eo(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(eo,"_ts_decorate");function to(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(to,"_ts_metadata");var Me=class{static{o(this,"SignInUserDto");}identifier;password};eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Me.prototype,"identifier",void 0);eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Me.prototype,"password",void 0);function m(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}o(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var je=class{static{o(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ge),g("design:type",typeof ge>"u"?Object:ge)],je.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>L),g("design:type",typeof L>"u"?Object:L)],je.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),g("design:type",String)],ge.prototype,"email",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),g("design:type",String)],ge.prototype,"phoneNumber",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),g("design:type",String)],ge.prototype,"username",void 0);var L=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],L.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(K),g("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var M=typeof window<"u";function po(e,t){let n=new FormData;return t instanceof File?n.append(e,t):t instanceof FileList?Array.from(t).forEach(r=>n.append(e,r)):t.forEach(r=>n.append(e,r)),n}o(po,"buildFileFormData");var Tn=Kn__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!M&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:M}),co=o(async(e,t)=>Tn(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var pt=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,n){super(n.message),this.response=t,this.data=n,this.status=t.status;}},Be=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(n,r)=>{let s=this.options.baseURL||dt;return pathcat.pathcat(s,n,r)};}setOptions(t){this.options=t;}async get(t,n,r){return this.requester("GET",t,void 0,n,r)}async post(t,n,r,s){return this.requester("POST",t,n,r,s)}async put(t,n,r,s){return this.requester("PUT",t,n,r,s)}async patch(t,n,r,s){return this.requester("PATCH",t,n,r,s)}async delete(t,n,r,s){return this.requester("DELETE",t,n,r,s)}async requester(t,n,r,s={},i={}){let a=this.url(n,s);if(r!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await co(a,{method:t,data:r,...i}),qe=p.data;if(!qe.success)throw new pt(p,qe);return qe.data}};function v(e){return e}o(v,"sdk");var lo=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),recovery:o(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:o(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),oauth2:{google:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(M)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var fo=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var uo=e=>({getAll:o(async(t,n)=>e.get("/channels/:channelId/messages",{channelId:t,...n}),"getAll"),get:o(async(t,n)=>e.get("/channels/:channelId/messages/:messageId",{channelId:t,messageId:n}),"get"),create:o(async(t,n)=>e.post("/channels/:channelId/messages",n,{channelId:t}),"create"),update:o(async(t,n,r)=>e.put("/channels/:channelId/messages/:messageId",r,{channelId:t,messageId:n}),"update"),delete:o(async(t,n)=>e.delete("/channels/:channelId/messages/:messageId",void 0,{channelId:t,messageId:n}),"delete"),addReaction:o(async(t,n,r)=>e.post("/channels/:channelId/messages/:messageId/reactions",{emoji:r},{channelId:t,messageId:n}),"addReaction"),removeReaction:o(async(t,n,r)=>e.delete("/channels/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:n,emoji:r}),"removeReaction"),markAsRead:o(async(t,n)=>e.post("/channels/:channelId/messages/:messageId/read",null,{channelId:t,messageId:n}),"markAsRead")});var mo=e=>({getAll:o(async()=>e.get("/channels"),"getAll"),get:o(async t=>e.get("/channels/:channelId",{channelId:t}),"get"),create:o(async t=>e.post("/channels",t),"create"),update:o(async(t,n)=>e.put("/channels/:channelId",n,{channelId:t}),"update"),delete:o(async t=>e.delete("/channels/:channelId",void 0,{channelId:t}),"delete"),addParticipant:o(async(t,n)=>e.post("/channels/:channelId/participants",{username:n},{channelId:t}),"addParticipant"),removeParticipant:o(async(t,n)=>e.delete("/channels/:channelId/participants/:username",void 0,{channelId:t,username:n}),"removeParticipant"),getMembers:o(async t=>e.get("/channels/:channelId/members",{channelId:t}),"getMembers"),messages:uo(e)});var go=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var yo=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var vo=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(M)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(M)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var ho=o(e=>({create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:n}),"create")}),"organizationsEventsOrders");var bo=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,n)=>e.put("/organizations/events/styles/:styleSlug",n,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var xo=o(e=>({getAll:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:n}),"getAll"),get:o(async(t,n,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:n,ticketId:r}),"get"),create:o(async(t,n,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",r,{organizationSlug:t,eventSlug:n}),"create"),update:o(async(t,n,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:n,ticketId:r}),"update"),delete:o(async(t,n,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:n,ticketId:r}),"delete")}),"organizationsEventsTickets");var Io=o(e=>({record:o(async(t,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:n}),"record")}),"organizationsEventsViews");var Ro=o(e=>({search:o(async(t,n)=>e.get("/organizations/events/search",{q:t,limit:n}),"search"),getAll:o(async(t,n)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...n}):e.get("/organizations/events",n),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...n}),"getPast"),getUpcoming:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...n}),"getUpcoming"),get:o(async(t,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:n}),"get"),create:o(async(t,n)=>e.post("/organizations/:organizationSlug/events",n,{organizationSlug:t}),"create"),update:o(async(t,n,r)=>e.put("/organizations/:organizationSlug/events/:eventSlug",r,{organizationSlug:t,eventSlug:n}),"update"),delete:o(async(t,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:n}),"delete"),orders:ho(e),styles:bo(e),tickets:xo(e),views:Io(e)}),"organizationsEvents");var So=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var jo=e=>({search:o(async(t,n)=>e.get("/organizations/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,n)=>e.put("/organizations/:organizationSlug",n,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:vo(e),events:Ro(e),members:So(e)});var Ao=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,n)=>e.get("/profiles/:username/relationships/followers",{username:t,...n}),"getFollowers")});var Oo=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Ao(e)});var wo=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var _o=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Po=e=>({search:o(async(t,n)=>e.get("/users/search",{q:t,limit:n}),"search"),getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,n)=>e.get("/users/check/:identifier",{identifier:t,suggestions:n}),"check"),update:o(async(t,n)=>e.put("/users/:userId",n,{userId:t}),"update"),uploadFile:o(async(t,n,r)=>e.post("/users/:userId/files/:userFileType",po("file",r),{userId:t,userFileType:n}),"uploadFile"),bookings:wo(e),notifications:_o(e)});var No=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var zo=class{static{o(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Be(t),this.auth=lo(this.client),this.careers=fo(this.client),this.channels=mo(this.client),this.health=go(this.client),this.orders=yo(this.client),this.organizations=jo(this.client),this.profiles=Oo(this.client),this.users=Po(this.client),this.notifications=No(this.client);}};
|
|
2
|
+
exports.AddParticipantDto=Ge;exports.AddReactionDto=Ce;exports.AttachmentType=Oe;exports.ChannelType=te;exports.Client=Be;exports.CreateAttachmentDto=B;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=b;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=jt;exports.CreateOrganizationEventStyleDto=Pe;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=G;exports.CreateOrganizationMemberDto=Le;exports.CreateUserDto=Re;exports.CreateUserIdentityDto=F;exports.Currency=T;exports.DEFAULT_API_URL=dt;exports.ErrorType=mi;exports.GeoPointDto=h;exports.Language=Wi;exports.OrganizationEventStyleType=vi;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=H;exports.OrganizationEventType=J;exports.OrganizationEventVisibilityType=Q;exports.OrganizationMemberRole=Y;exports.OrganizationMemberStatus=Si;exports.OrganizationSocialType=Ai;exports.ProfileType=Gi;exports.REGEX=d;exports.RecoveryDto=nt;exports.RecoveryResetDto=Se;exports.SignInUserDto=Me;exports.TonightPass=zo;exports.TonightPassAPIError=pt;exports.UpdateChannelDto=Ee;exports.UpdateChannelMessageDto=_e;exports.UpdateLocationDto=x;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=At;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=tt;exports.UpdateUserDto=je;exports.UserFileType=Li;exports.UserIdentityGender=K;exports.UserNotificationType=Pi;exports.UserRole=Ui;exports.UserTokenType=zi;exports.auth=lo;exports.buildFileFormData=po;exports.careers=fo;exports.channels=mo;exports.health=go;exports.isBrowser=M;exports.notifications=No;exports.orders=yo;exports.organizations=jo;exports.profiles=Oo;exports.request=co;exports.sdk=v;exports.users=Po;//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|