tonightpass 0.0.148 → 0.0.150

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 CHANGED
@@ -878,7 +878,7 @@ type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug"
878
878
  styles: string[];
879
879
  tickets: CreateOrganizationEventTicketInput[];
880
880
  };
881
- declare class CreateOrganizationEventDto implements CreateOrganizationEventInput {
881
+ declare abstract class BaseOrganizationEventDto {
882
882
  title: string;
883
883
  slug?: string;
884
884
  description: string;
@@ -887,11 +887,13 @@ declare class CreateOrganizationEventDto implements CreateOrganizationEventInput
887
887
  flyers: string[];
888
888
  trailers: string[];
889
889
  location: CreateLocationDto;
890
- tickets: CreateOrganizationEventTicketDto[];
891
890
  styles: string[];
892
891
  startAt: Date;
893
892
  endAt: Date;
894
893
  }
894
+ declare class CreateOrganizationEventDto extends BaseOrganizationEventDto implements CreateOrganizationEventInput {
895
+ tickets: CreateOrganizationEventTicketDto[];
896
+ }
895
897
 
896
898
  declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
897
899
  validate(_value: unknown, args: ValidationArguments): boolean;
@@ -1399,4 +1401,4 @@ declare class TonightPass {
1399
1401
  declare const isBrowser: boolean;
1400
1402
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1401
1403
 
1402
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, 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, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelStatus, 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, OrganizationEventFileType, 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 UserChannelCountOptions, 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 };
1404
+ export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type Attachment, AttachmentType, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelStatus, 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, OrganizationEventFileType, 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 UserChannelCountOptions, 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
@@ -878,7 +878,7 @@ type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug"
878
878
  styles: string[];
879
879
  tickets: CreateOrganizationEventTicketInput[];
880
880
  };
881
- declare class CreateOrganizationEventDto implements CreateOrganizationEventInput {
881
+ declare abstract class BaseOrganizationEventDto {
882
882
  title: string;
883
883
  slug?: string;
884
884
  description: string;
@@ -887,11 +887,13 @@ declare class CreateOrganizationEventDto implements CreateOrganizationEventInput
887
887
  flyers: string[];
888
888
  trailers: string[];
889
889
  location: CreateLocationDto;
890
- tickets: CreateOrganizationEventTicketDto[];
891
890
  styles: string[];
892
891
  startAt: Date;
893
892
  endAt: Date;
894
893
  }
894
+ declare class CreateOrganizationEventDto extends BaseOrganizationEventDto implements CreateOrganizationEventInput {
895
+ tickets: CreateOrganizationEventTicketDto[];
896
+ }
895
897
 
896
898
  declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
897
899
  validate(_value: unknown, args: ValidationArguments): boolean;
@@ -1399,4 +1401,4 @@ declare class TonightPass {
1399
1401
  declare const isBrowser: boolean;
1400
1402
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1401
1403
 
1402
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, 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, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelStatus, 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, OrganizationEventFileType, 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 UserChannelCountOptions, 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 };
1404
+ export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type Attachment, AttachmentType, type AuthEndpoints, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, ChannelMemberRole, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, ChannelStatus, 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, OrganizationEventFileType, 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 UserChannelCountOptions, 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'),vi=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var vi__default=/*#__PURE__*/_interopDefault(vi);var ko=Object.defineProperty;var n=(e,t)=>ko(e,"name",{value:t,configurable:true});var ut="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 Vo(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(Vo,"_ts_decorate");function Wo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Wo,"_ts_metadata");var We=class{static{n(this,"AddParticipantDto");}username};Vo([classValidator.IsString(),classValidator.Matches(d.USERNAME),Wo("design:type",String)],We.prototype,"username",void 0);var ze=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}({}),Di=function(e){return e.Member="member",e.Admin="admin",e}({}),Ni=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var Fi=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 X=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),$=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 qi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var H=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}({}),Z=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),ki=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({});var Xi=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),J=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Hi=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 Ti=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 tr=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Q=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),or=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var sr=function(e){return e.User="user",e.Organization="organization",e}({});var Y=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),dr=function(e){return e.FR="fr",e.EN="en",e}({});function Ce(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(Ce,"_ts_decorate");function Xe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Xe,"_ts_metadata");var ye=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};Ce([classValidator.IsEnum(te),Xe("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);Ce([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}),Xe("design:type",Array)],ye.prototype,"participantUsernames",void 0);Ce([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Xe("design:type",String)],ye.prototype,"name",void 0);function Qo(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(Qo,"_ts_decorate");function Yo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Yo,"_ts_metadata");var $e=class{static{n(this,"UpdateChannelDto");}name};Qo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Yo("design:type",String)],$e.prototype,"name",void 0);function tn(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(tn,"_ts_decorate");function on(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(on,"_ts_metadata");var He=class{static{n(this,"AddReactionDto");}emoji};tn([classValidator.IsString(),classValidator.Length(1,10),on("design:type",String)],He.prototype,"emoji",void 0);function oe(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(oe,"_ts_decorate");function ne(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ne,"_ts_metadata");var M=class{static{n(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(ze),ne("design:type",typeof ze>"u"?Object:ze)],M.prototype,"type",void 0);oe([classValidator.IsUrl(),ne("design:type",String)],M.prototype,"url",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,255),ne("design:type",String)],M.prototype,"filename",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),ne("design:type",String)],M.prototype,"mimeType",void 0);var ve=class{static{n(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(()=>M),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 ht(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(ht,"_ts_decorate");function bt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(bt,"_ts_metadata");var De=class{static{n(this,"UpdateChannelMessageDto");}content;attachments};ht([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),bt("design:type",String)],De.prototype,"content",void 0);ht([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>M),bt("design:type",Array)],De.prototype,"attachments",void 0);function B(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(B,"_ts_decorate");function K(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(K,"_ts_metadata");var Je=class{static{n(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[o,i]=t;return i>=-90&&i<=90&&o>=-180&&o<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};Je=B([classValidator.ValidatorConstraint({name:"coordinatesRange",async:false})],Je);var O=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};B([classValidator.IsString(),classValidator.IsNotEmpty(),K("design:type",String)],O.prototype,"type",void 0);B([classValidator.IsArray(),classValidator.IsNotEmpty(),classValidator.Validate(Je),K("design:type",Array)],O.prototype,"coordinates",void 0);var I=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"name",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),K("design:type",String)],I.prototype,"address",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),K("design:type",String)],I.prototype,"zipCode",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"city",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"country",void 0);B([classValidator.ValidateNested(),classTransformer.Type(()=>O),classValidator.IsNotEmpty(),K("design:type",typeof O>"u"?Object:O)],I.prototype,"geometry",void 0);function pe(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(pe,"_ts_decorate");function de(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(de,"_ts_metadata");var x=class{static{n(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(()=>O),de("design:type",typeof O>"u"?Object:O)],x.prototype,"geometry",void 0);function G(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(G,"_ts_decorate");function k(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(k,"_ts_metadata");var le=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),k("design:type",String)],le.prototype,"organizationSlug",void 0);G([classValidator.IsObject(),k("design:type",typeof q>"u"?Object:q)],le.prototype,"identity",void 0);G([classValidator.IsArray(),k("design:type",Array)],le.prototype,"members",void 0);G([classValidator.IsOptional(),classValidator.IsObject(),k("design:type",typeof Location>"u"?Object:Location)],le.prototype,"location",void 0);var q=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),k("design:type",String)],q.prototype,"displayName",void 0);G([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),k("design:type",String)],q.prototype,"description",void 0);G([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),k("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"]}),k("design:type",String)],q.prototype,"bannerUrl",void 0);G([classValidator.IsOptional(),classValidator.IsArray(),k("design:type",Array)],q.prototype,"socialLinks",void 0);function W(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(W,"_ts_decorate");function E(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(E,"_ts_metadata");var fe=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};W([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),E("design:type",String)],fe.prototype,"slug",void 0);W([classValidator.IsObject(),classValidator.IsOptional(),E("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);W([classValidator.IsOptional(),classValidator.IsArray(),E("design:type",Array)],fe.prototype,"members",void 0);W([classValidator.IsOptional(),classValidator.IsObject(),E("design:type",typeof Location>"u"?Object:Location)],fe.prototype,"location",void 0);var V=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};W([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),E("design:type",String)],V.prototype,"displayName",void 0);W([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),E("design:type",String)],V.prototype,"description",void 0);W([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),E("design:type",String)],V.prototype,"avatarUrl",void 0);W([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),E("design:type",String)],V.prototype,"bannerUrl",void 0);W([classValidator.IsOptional(),classValidator.IsArray(),E("design:type",Array)],V.prototype,"socialLinks",void 0);var wt=class{static{n(this,"CreateOrganizationEventOrderDto");}cart};var Ne=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var _t=class extends Ne{static{n(this,"UpdateOrganizationEventStyleDto");}};function A(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(A,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(w,"_ts_metadata");var c=class{static{n(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};A([classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],c.prototype,"name",void 0);A([classValidator.IsString(),classValidator.Length(0,1024),classValidator.IsOptional(),w("design:type",String)],c.prototype,"description",void 0);A([classValidator.IsNumber(),classValidator.Min(0),w("design:type",Number)],c.prototype,"price",void 0);A([classValidator.IsNumber(),classValidator.Min(0),w("design:type",Number)],c.prototype,"quantity",void 0);A([classValidator.IsEnum(X),w("design:type",typeof X>"u"?Object:X)],c.prototype,"type",void 0);A([classValidator.IsEnum($),w("design:type",typeof $>"u"?Object:$)],c.prototype,"category",void 0);A([classValidator.IsEnum(Y),w("design:type",typeof Y>"u"?Object:Y)],c.prototype,"currency",void 0);A([classValidator.IsBoolean(),w("design:type",Boolean)],c.prototype,"isVisible",void 0);A([classValidator.IsBoolean(),w("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);A([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),w("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);A([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),w("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function _(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(_,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(z,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};_([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),z("design:type",String)],l.prototype,"name",void 0);_([classValidator.IsString(),classValidator.Length(0,1024),classValidator.IsOptional(),z("design:type",String)],l.prototype,"description",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),z("design:type",Number)],l.prototype,"price",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),z("design:type",Number)],l.prototype,"quantity",void 0);_([classValidator.IsEnum(X),classValidator.IsOptional(),z("design:type",typeof X>"u"?Object:X)],l.prototype,"type",void 0);_([classValidator.IsEnum($),classValidator.IsOptional(),z("design:type",typeof $>"u"?Object:$)],l.prototype,"category",void 0);_([classValidator.IsEnum(Y),classValidator.IsOptional(),z("design:type",typeof Y>"u"?Object:Y)],l.prototype,"currency",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),z("design:type",Boolean)],l.prototype,"isVisible",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),z("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);_([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),z("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);_([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),z("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function v(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(v,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");exports.AtLeastOneMediaConstraint=class Se{static{n(this,"AtLeastOneMediaConstraint");}validate(t,o){let i=o.object,a=i.flyers||[],r=i.trailers||[];return a.length>0||r.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};exports.AtLeastOneMediaConstraint=v([classValidator.ValidatorConstraint({name:"atLeastOneMedia",async:false})],exports.AtLeastOneMediaConstraint);function Gn(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaConstraint});}}n(Gn,"AtLeastOneMedia");var f=class{static{n(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);v([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);v([classValidator.IsEnum(H),classValidator.IsNotEmpty(),S("design:type",typeof H>"u"?Object:H)],f.prototype,"type",void 0);v([classValidator.IsEnum(Z),classValidator.IsNotEmpty(),S("design:type",typeof Z>"u"?Object:Z)],f.prototype,"visibility",void 0);v([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),Gn(),S("design:type",Array)],f.prototype,"flyers",void 0);v([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);v([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>I),classValidator.IsNotEmpty(),S("design:type",typeof I>"u"?Object:I)],f.prototype,"location",void 0);v([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);v([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.ArrayMinSize(1),S("design:type",Array)],f.prototype,"styles",void 0);v([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);v([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function h(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(h,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(R,"_ts_metadata");exports.AtLeastOneMediaOnUpdateConstraint=class Re{static{n(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,o){let i=o.object;return i.flyers!==void 0&&i.trailers!==void 0?i.flyers.length>0||i.trailers.length>0:i.flyers!==void 0&&i.trailers===void 0?i.flyers.length>0:i.trailers!==void 0&&i.flyers===void 0?i.trailers.length>0:true}defaultMessage(){return "Cannot remove all media from event. At least one flyer or trailer must remain"}};exports.AtLeastOneMediaOnUpdateConstraint=h([classValidator.ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],exports.AtLeastOneMediaOnUpdateConstraint);function Xn(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaOnUpdateConstraint});}}n(Xn,"AtLeastOneMediaOnUpdate");var u=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};h([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),R("design:type",String)],u.prototype,"title",void 0);h([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],u.prototype,"slug",void 0);h([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),R("design:type",String)],u.prototype,"description",void 0);h([classValidator.IsOptional(),classValidator.IsEnum(H),R("design:type",typeof H>"u"?Object:H)],u.prototype,"type",void 0);h([classValidator.IsOptional(),classValidator.IsEnum(Z),R("design:type",typeof Z>"u"?Object:Z)],u.prototype,"visibility",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),Xn(),R("design:type",Array)],u.prototype,"flyers",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],u.prototype,"trailers",void 0);h([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>x),R("design:type",typeof x>"u"?Object:x)],u.prototype,"location",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),R("design:type",Array)],u.prototype,"tickets",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),R("design:type",Array)],u.prototype,"styles",void 0);h([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.MinDate(new Date),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);h([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.MinDate(new Date),R("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function no(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(no,"_ts_decorate");function io(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(io,"_ts_metadata");var Be=class{static{n(this,"CreateOrganizationMemberDto");}user;role};no([classValidator.IsString(),classValidator.IsNotEmpty(),io("design:type",String)],Be.prototype,"user",void 0);no([classValidator.IsEnum(J),classValidator.IsNotEmpty(),io("design:type",typeof J>"u"?Object:J)],Be.prototype,"role",void 0);function Zn(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(Zn,"_ts_decorate");function Jn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Jn,"_ts_metadata");var rt=class{static{n(this,"UpdateOrganizationMemberDto");}role};Zn([classValidator.IsEnum(J),classValidator.IsNotEmpty(),Jn("design:type",typeof J>"u"?Object:J)],rt.prototype,"role",void 0);function D(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(D,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(N,"_ts_metadata");var je=class{static{n(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),N("design:type",typeof ue>"u"?Object:ue)],je.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>L),N("design:type",typeof L>"u"?Object:L)],je.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."}),N("design:type",String)],je.prototype,"password",void 0);var ue=class{static{n(this,"CreateUserIdentifierDto");}email;phoneNumber;username};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],ue.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],ue.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),N("design:type",String)],ue.prototype,"username",void 0);var L=class{static{n(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"}),N("design:type",String)],L.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"}),N("design:type",String)],L.prototype,"lastName",void 0);D([classValidator.IsEnum(Q),N("design:type",typeof Q>"u"?Object:Q)],L.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],L.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(),N("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);function ri(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(ri,"_ts_decorate");function ai(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ai,"_ts_metadata");var st=class{static{n(this,"RecoveryDto");}identifier};ri([classValidator.IsNotEmpty(),classValidator.IsString(),ai("design:type",String)],st.prototype,"identifier",void 0);function pt(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(pt,"_ts_decorate");function dt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(dt,"_ts_metadata");var Oe=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};pt([classValidator.IsString(),classValidator.IsNotEmpty(),dt("design:type",String)],Oe.prototype,"tokenId",void 0);pt([classValidator.IsString(),classValidator.IsNotEmpty(),dt("design:type",String)],Oe.prototype,"tokenValue",void 0);pt([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"}),dt("design:type",String)],Oe.prototype,"password",void 0);function co(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(co,"_ts_decorate");function lo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(lo,"_ts_metadata");var Ge=class{static{n(this,"SignInUserDto");}identifier;password};co([classValidator.IsNotEmpty(),classValidator.IsString(),lo("design:type",String)],Ge.prototype,"identifier",void 0);co([classValidator.IsNotEmpty(),classValidator.IsString(),lo("design:type",String)],Ge.prototype,"password",void 0);function m(e,t,o,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r}n(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(g,"_ts_metadata");var Ae=class{static{n(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ge),g("design:type",typeof ge>"u"?Object:ge)],Ae.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>U),g("design:type",typeof U>"u"?Object:U)],Ae.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],Ae.prototype,"password",void 0);var ge=class{static{n(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 U=class{static{n(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)],U.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)],U.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],U.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],U.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],U.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],U.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(Q),g("design:type",typeof Q>"u"?Object:Q)],U.prototype,"gender",void 0);m([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),g("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);var F=typeof window<"u";function _e(e,t){let o=new FormData;return t instanceof File?o.append(e,t):t instanceof FileList?Array.from(t).forEach(i=>o.append(e,i)):t.forEach(i=>o.append(e,i)),o}n(_e,"buildFileFormData");var hi=vi__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!F&&{"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:F}),ho=n(async(e,t)=>hi(e,{...t}).then(i=>i).catch(i=>{throw i.data||console.error(i),i.data}),"request");var ft=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},ke=class{static{n(this,"Client");}options;url;constructor(t){this.options=t,this.url=(o,i)=>{let a=this.options.baseURL||ut;return pathcat.pathcat(a,o,i)};}setOptions(t){this.options=t;}async get(t,o,i){return this.requester("GET",t,void 0,o,i)}async post(t,o,i,a){return this.requester("POST",t,o,i,a)}async put(t,o,i,a){return this.requester("PUT",t,o,i,a)}async patch(t,o,i,a){return this.requester("PATCH",t,o,i,a)}async delete(t,o,i,a){return this.requester("DELETE",t,o,i,a)}async requester(t,o,i,a={},r={}){let s=this.url(o,a);if(i!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await ho(s,{method:t,data:i,...r}),Ve=p.data;if(!Ve.success)throw new ft(p,Ve);return Ve.data}};function b(e){return e}n(b,"sdk");var bo=e=>({signIn:n(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:n(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:n(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:n(async()=>e.post("/auth/refresh-token",null),"refreshToken"),recovery:n(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:n(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),oauth2:{google:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var Io=e=>({categories:{getAll:n(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:n(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:n(async t=>e.get("/careers/jobs",t),"getAll"),get:n(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:n(async t=>e.get("/careers/offices",t),"getAll")}});var xo=e=>({getAll:n(async(t,o)=>e.get("/channels/@me/:channelId/messages",{channelId:t,...o}),"getAll"),getAllByOrganization:n(async(t,o,i)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:o,...i}),"getAllByOrganization"),get:n(async(t,o)=>e.get("/channels/@me/:channelId/messages/:messageId",{channelId:t,messageId:o}),"get"),getByOrganization:n(async(t,o,i)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:o,messageId:i}),"getByOrganization"),create:n(async(t,o)=>e.post("/channels/@me/:channelId/messages",o,{channelId:t}),"create"),createByOrganization:n(async(t,o,i)=>e.post("/channels/:organizationSlug/:channelId/messages",i,{organizationSlug:t,channelId:o}),"createByOrganization"),update:n(async(t,o,i)=>e.put("/channels/@me/:channelId/messages/:messageId",i,{channelId:t,messageId:o}),"update"),updateByOrganization:n(async(t,o,i,a)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",a,{organizationSlug:t,channelId:o,messageId:i}),"updateByOrganization"),delete:n(async(t,o)=>e.delete("/channels/@me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:o}),"delete"),deleteByOrganization:n(async(t,o,i)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:o,messageId:i}),"deleteByOrganization"),addReaction:n(async(t,o,i)=>e.post("/channels/@me/:channelId/messages/:messageId/reactions",i,{channelId:t,messageId:o}),"addReaction"),addReactionByOrganization:n(async(t,o,i,a)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",a,{organizationSlug:t,channelId:o,messageId:i}),"addReactionByOrganization"),removeReaction:n(async(t,o,i)=>e.delete("/channels/@me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:o,emoji:i}),"removeReaction"),removeReactionByOrganization:n(async(t,o,i,a)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:o,messageId:i,emoji:a}),"removeReactionByOrganization"),markAsRead:n(async(t,o)=>e.post("/channels/@me/:channelId/messages/:messageId/read",null,{channelId:t,messageId:o}),"markAsRead"),markAsReadByOrganization:n(async(t,o,i)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",null,{organizationSlug:t,channelId:o,messageId:i}),"markAsReadByOrganization")});var So=e=>({me:n(async t=>e.get("/channels/@me",t),"me"),getByOrganization:n(async(t,o)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...o}),"getByOrganization"),countMe:n(async t=>e.get("/users/@me/channels/count",t),"countMe"),countByOrganization:n(async(t,o)=>e.get("/users/:organizationSlug/channels/count",{organizationSlug:t,...o}),"countByOrganization"),get:n(async t=>e.get("/channels/@me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:n(async(t,o)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:o}),"getByOrganizationChannel"),create:n(async t=>e.post("/channels/@me",t),"create"),createByOrganization:n(async(t,o)=>e.post("/channels/:organizationSlug",o,{organizationSlug:t}),"createByOrganization"),update:n(async(t,o)=>e.put("/channels/@me/:channelId",o,{channelId:t}),"update"),updateByOrganization:n(async(t,o,i)=>e.put("/channels/:organizationSlug/:channelId",i,{organizationSlug:t,channelId:o}),"updateByOrganization"),delete:n(async t=>e.delete("/channels/@me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:n(async(t,o)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:o}),"deleteByOrganization"),addParticipant:n(async(t,o)=>e.post("/channels/@me/:channelId/participants",o,{channelId:t}),"addParticipant"),addParticipantByOrganization:n(async(t,o,i)=>e.post("/channels/:organizationSlug/:channelId/participants",i,{organizationSlug:t,channelId:o}),"addParticipantByOrganization"),removeParticipant:n(async(t,o)=>e.delete("/channels/@me/:channelId/participants/:username",void 0,{channelId:t,username:o}),"removeParticipant"),removeParticipantByOrganization:n(async(t,o,i)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:o,username:i}),"removeParticipantByOrganization"),getMembers:n(async(t,o)=>e.get("/channels/@me/:channelId/members",{channelId:t,...o}),"getMembers"),getMembersByOrganization:n(async(t,o,i)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:o,...i}),"getMembersByOrganization"),messages:xo(e)});var Ro=e=>({getAll:n(async()=>e.get("/health"),"getAll"),database:n(async()=>e.get("/health/database"),"database"),api:n(async()=>e.get("/health/api"),"api"),app:n(async()=>e.get("/health/app"),"app")});var jo=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Oo=n(e=>({account:n(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:n(t=>{if(F)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:n(t=>{if(F)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 Ao=n(e=>({create:n(async(t,o,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",i,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var wo=n(e=>({getAll:n(async()=>e.get("/organizations/events/styles"),"getAll"),get:n(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:n(async t=>e.post("/organizations/events/styles",t),"create"),update:n(async(t,o)=>e.put("/organizations/events/styles/:styleSlug",o,{styleSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var _o=n(e=>({getAll:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:o}),"getAll"),get:n(async(t,o,i)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:o,ticketId:i}),"get"),create:n(async(t,o,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",i,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,i,a)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",a,{organizationSlug:t,eventSlug:o,ticketId:i}),"update"),delete:n(async(t,o,i)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:o,ticketId:i}),"delete")}),"organizationsEventsTickets");var zo=n(e=>({record:n(async(t,o)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record")}),"organizationsEventsViews");var Po=n(e=>({search:n(async(t,o)=>e.get("/organizations/events/search",{q:t,limit:o}),"search"),getAll:n(async(t,o)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...o}):e.get("/organizations/events",o),"getAll"),getSuggestions:n(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:n(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...o}),"getPast"),getUpcoming:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...o}),"getUpcoming"),get:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:o}),"get"),create:n(async(t,o)=>e.post("/organizations/:organizationSlug/events",o,{organizationSlug:t}),"create"),update:n(async(t,o,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug",i,{organizationSlug:t,eventSlug:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:o}),"delete"),uploadFile:n(async(t,o)=>e.post("/events/files/:eventFileType",_e("file",o),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:n(async(t,o,i,a)=>e.post("/organizations/:organizationSlug/events/:eventSlug/files/:eventFileType",_e("file",a),{organizationSlug:t,eventSlug:o,eventFileType:i}),"uploadOrganizationFile"),orders:Ao(e),styles:wo(e),tickets:_o(e),views:zo(e)}),"organizationsEvents");var Do=n(e=>({getAll:n(async()=>e.get("/organizations/members"),"getAll"),delete:n(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var No=e=>({search:n(async(t,o)=>e.get("/organizations/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/organizations"),"getAll"),get:n(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:n(async t=>e.post("/organizations",t),"create"),update:n(async(t,o)=>e.put("/organizations/:organizationSlug",o,{organizationSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Oo(e),events:Po(e),members:Do(e)});var Uo=e=>({follow:n(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:n(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:n(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:n(async(t,o)=>e.get("/profiles/:username/relationships/followers",{username:t,...o}),"getFollowers")});var Lo=e=>({get:n(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Uo(e)});var Fo=e=>({getAll:n(async()=>e.get("/users/bookings"),"getAll"),get:n(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:n(async()=>e.get("/users/@me/bookings"),"me")});var Mo=e=>({me:n(async()=>e.get("/users/@me/notifications"),"me"),count:n(async t=>e.get("/users/@me/notifications/count",t),"count")});var Bo=e=>({search:n(async(t,o)=>e.get("/users/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/users"),"getAll"),get:n(async t=>e.get("/users/:userId",{userId:t}),"get"),me:n(async()=>e.get("/users/@me"),"me"),check:n(async(t,o)=>e.get("/users/check/:identifier",{identifier:t,suggestions:o}),"check"),update:n(async(t,o)=>e.put("/users/:userId",o,{userId:t}),"update"),uploadFile:n(async(t,o,i)=>e.post("/users/:userId/files/:userFileType",_e("file",i),{userId:t,userFileType:o}),"uploadFile"),bookings:Fo(e),notifications:Mo(e)});var qo=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Go=class{static{n(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new ke(t),this.auth=bo(this.client),this.careers=Io(this.client),this.channels=So(this.client),this.health=Ro(this.client),this.orders=jo(this.client),this.organizations=No(this.client),this.profiles=Lo(this.client),this.users=Bo(this.client),this.notifications=qo(this.client);}};
2
- exports.AddParticipantDto=We;exports.AddReactionDto=He;exports.AtLeastOneMedia=Gn;exports.AtLeastOneMediaOnUpdate=Xn;exports.AttachmentType=ze;exports.ChannelMemberRole=Di;exports.ChannelStatus=Ni;exports.ChannelType=te;exports.Client=ke;exports.CreateAttachmentDto=M;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=I;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=wt;exports.CreateOrganizationEventStyleDto=Ne;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=q;exports.CreateOrganizationMemberDto=Be;exports.CreateUserDto=je;exports.CreateUserIdentityDto=L;exports.Currency=Y;exports.DEFAULT_API_URL=ut;exports.ErrorType=Fi;exports.GeoPointDto=O;exports.Language=dr;exports.OrganizationEventFileType=ki;exports.OrganizationEventStyleType=qi;exports.OrganizationEventTicketCategory=$;exports.OrganizationEventTicketType=X;exports.OrganizationEventType=H;exports.OrganizationEventVisibilityType=Z;exports.OrganizationMemberRole=J;exports.OrganizationMemberStatus=Xi;exports.OrganizationSocialType=Hi;exports.ProfileType=sr;exports.REGEX=d;exports.RecoveryDto=st;exports.RecoveryResetDto=Oe;exports.SignInUserDto=Ge;exports.TonightPass=Go;exports.TonightPassAPIError=ft;exports.UpdateChannelDto=$e;exports.UpdateChannelMessageDto=De;exports.UpdateLocationDto=x;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=_t;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=rt;exports.UpdateUserDto=Ae;exports.UserFileType=or;exports.UserIdentityGender=Q;exports.UserNotificationType=Yi;exports.UserRole=tr;exports.UserTokenType=Ti;exports.auth=bo;exports.buildFileFormData=_e;exports.careers=Io;exports.channels=So;exports.health=Ro;exports.isBrowser=F;exports.notifications=qo;exports.orders=jo;exports.organizations=No;exports.profiles=Lo;exports.request=ho;exports.sdk=b;exports.users=Bo;//# sourceMappingURL=index.js.map
1
+ 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),Ri=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ri__default=/*#__PURE__*/_interopDefault(Ri);var Wo=Object.defineProperty;var n=(e,t)=>Wo(e,"name",{value:t,configurable:true});var gt="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 ko(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(ko,"_ts_decorate");function Co(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Co,"_ts_metadata");var ke=class{static{n(this,"AddParticipantDto");}username};ko([classValidator.IsString(),classValidator.Matches(d.USERNAME),Co("design:type",String)],ke.prototype,"username",void 0);var ze=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}({}),Mi=function(e){return e.Member="member",e.Admin="admin",e}({}),Bi=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var Vi=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 X=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),$=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 Ci=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var H=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}({}),Z=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),Xi=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({});var Qi=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),J=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Ki=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var or=function(e){return e.Follow="follow",e}({});var ir=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 ar=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Q=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),sr=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var fr=function(e){return e.User="user",e.Organization="organization",e}({});var Y=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),mr=function(e){return e.FR="fr",e.EN="en",e}({});function Ee(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(Ee,"_ts_decorate");function Xe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Xe,"_ts_metadata");var ye=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};Ee([classValidator.IsEnum(te),Xe("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);Ee([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}),Xe("design:type",Array)],ye.prototype,"participantUsernames",void 0);Ee([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Xe("design:type",String)],ye.prototype,"name",void 0);function Yo(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(Yo,"_ts_decorate");function Ko(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ko,"_ts_metadata");var $e=class{static{n(this,"UpdateChannelDto");}name};Yo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Ko("design:type",String)],$e.prototype,"name",void 0);function on(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(on,"_ts_decorate");function nn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(nn,"_ts_metadata");var He=class{static{n(this,"AddReactionDto");}emoji};on([classValidator.IsString(),classValidator.Length(1,10),nn("design:type",String)],He.prototype,"emoji",void 0);function oe(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(oe,"_ts_decorate");function ne(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ne,"_ts_metadata");var M=class{static{n(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(ze),ne("design:type",typeof ze>"u"?Object:ze)],M.prototype,"type",void 0);oe([classValidator.IsUrl(),ne("design:type",String)],M.prototype,"url",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,255),ne("design:type",String)],M.prototype,"filename",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),ne("design:type",String)],M.prototype,"mimeType",void 0);var ve=class{static{n(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(()=>M),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 It(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(It,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(xt,"_ts_metadata");var De=class{static{n(this,"UpdateChannelMessageDto");}content;attachments};It([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),xt("design:type",String)],De.prototype,"content",void 0);It([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>M),xt("design:type",Array)],De.prototype,"attachments",void 0);function B(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(B,"_ts_decorate");function K(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(K,"_ts_metadata");var Je=class{static{n(this,"CoordinatesRangeConstraint");}validate(t){if(!Array.isArray(t)||t.length!==2)return false;let[o,r]=t;return r>=-90&&r<=90&&o>=-180&&o<=180}defaultMessage(){return "Coordinates must be within valid geographic ranges"}};Je=B([classValidator.ValidatorConstraint({name:"coordinatesRange",async:false})],Je);var O=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};B([classValidator.IsString(),classValidator.IsNotEmpty(),K("design:type",String)],O.prototype,"type",void 0);B([classValidator.IsArray(),classValidator.IsNotEmpty(),classValidator.Validate(Je),K("design:type",Array)],O.prototype,"coordinates",void 0);var I=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};B([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"name",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),K("design:type",String)],I.prototype,"address",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),K("design:type",String)],I.prototype,"zipCode",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"city",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),K("design:type",String)],I.prototype,"country",void 0);B([classValidator.ValidateNested(),classTransformer.Type(()=>O),classValidator.IsNotEmpty(),K("design:type",typeof O>"u"?Object:O)],I.prototype,"geometry",void 0);function pe(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(pe,"_ts_decorate");function de(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(de,"_ts_metadata");var x=class{static{n(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(()=>O),de("design:type",typeof O>"u"?Object:O)],x.prototype,"geometry",void 0);function G(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(G,"_ts_decorate");function V(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(V,"_ts_metadata");var le=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),V("design:type",String)],le.prototype,"organizationSlug",void 0);G([classValidator.IsObject(),V("design:type",typeof q>"u"?Object:q)],le.prototype,"identity",void 0);G([classValidator.IsArray(),V("design:type",Array)],le.prototype,"members",void 0);G([classValidator.IsOptional(),classValidator.IsObject(),V("design:type",typeof Location>"u"?Object:Location)],le.prototype,"location",void 0);var q=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),V("design:type",String)],q.prototype,"displayName",void 0);G([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),V("design:type",String)],q.prototype,"description",void 0);G([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),V("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"]}),V("design:type",String)],q.prototype,"bannerUrl",void 0);G([classValidator.IsOptional(),classValidator.IsArray(),V("design:type",Array)],q.prototype,"socialLinks",void 0);function k(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(k,"_ts_decorate");function C(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(C,"_ts_metadata");var fe=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};k([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),C("design:type",String)],fe.prototype,"slug",void 0);k([classValidator.IsObject(),classValidator.IsOptional(),C("design:type",typeof W>"u"?Object:W)],fe.prototype,"identity",void 0);k([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],fe.prototype,"members",void 0);k([classValidator.IsOptional(),classValidator.IsObject(),C("design:type",typeof Location>"u"?Object:Location)],fe.prototype,"location",void 0);var W=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),C("design:type",String)],W.prototype,"displayName",void 0);k([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),C("design:type",String)],W.prototype,"description",void 0);k([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),C("design:type",String)],W.prototype,"avatarUrl",void 0);k([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),C("design:type",String)],W.prototype,"bannerUrl",void 0);k([classValidator.IsOptional(),classValidator.IsArray(),C("design:type",Array)],W.prototype,"socialLinks",void 0);function Un(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(Un,"_ts_decorate");function Ln(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ln,"_ts_metadata");var et=class{static{n(this,"CreateOrganizationEventOrderDto");}cart};Un([classValidator.IsArray(),classValidator.IsString({each:true}),Ln("design:type",Array)],et.prototype,"cart",void 0);var Ne=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var zt=class extends Ne{static{n(this,"UpdateOrganizationEventStyleDto");}};function A(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(A,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(w,"_ts_metadata");var c=class{static{n(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};A([classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],c.prototype,"name",void 0);A([classValidator.IsString(),classValidator.Length(0,1024),classValidator.IsOptional(),w("design:type",String)],c.prototype,"description",void 0);A([classValidator.IsNumber(),classValidator.Min(0),w("design:type",Number)],c.prototype,"price",void 0);A([classValidator.IsNumber(),classValidator.Min(0),w("design:type",Number)],c.prototype,"quantity",void 0);A([classValidator.IsEnum(X),w("design:type",typeof X>"u"?Object:X)],c.prototype,"type",void 0);A([classValidator.IsEnum($),w("design:type",typeof $>"u"?Object:$)],c.prototype,"category",void 0);A([classValidator.IsEnum(Y),w("design:type",typeof Y>"u"?Object:Y)],c.prototype,"currency",void 0);A([classValidator.IsBoolean(),w("design:type",Boolean)],c.prototype,"isVisible",void 0);A([classValidator.IsBoolean(),w("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);A([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),w("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);A([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),w("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function _(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(_,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(z,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};_([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),z("design:type",String)],l.prototype,"name",void 0);_([classValidator.IsString(),classValidator.Length(0,1024),classValidator.IsOptional(),z("design:type",String)],l.prototype,"description",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),z("design:type",Number)],l.prototype,"price",void 0);_([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),z("design:type",Number)],l.prototype,"quantity",void 0);_([classValidator.IsEnum(X),classValidator.IsOptional(),z("design:type",typeof X>"u"?Object:X)],l.prototype,"type",void 0);_([classValidator.IsEnum($),classValidator.IsOptional(),z("design:type",typeof $>"u"?Object:$)],l.prototype,"category",void 0);_([classValidator.IsEnum(Y),classValidator.IsOptional(),z("design:type",typeof Y>"u"?Object:Y)],l.prototype,"currency",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),z("design:type",Boolean)],l.prototype,"isVisible",void 0);_([classValidator.IsBoolean(),classValidator.IsOptional(),z("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);_([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),z("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);_([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),z("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function v(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(v,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(R,"_ts_metadata");exports.AtLeastOneMediaConstraint=class Re{static{n(this,"AtLeastOneMediaConstraint");}validate(t,o){let r=o.object,a=r.flyers||[],i=r.trailers||[];return a.length>0||i.length>0}defaultMessage(){return "At least one flyer or trailer must be provided"}};exports.AtLeastOneMediaConstraint=v([classValidator.ValidatorConstraint({name:"atLeastOneMedia",async:false})],exports.AtLeastOneMediaConstraint);function En(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaConstraint});}}n(En,"AtLeastOneMedia");var f=class{static{n(this,"BaseOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;styles;startAt;endAt};v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),R("design:type",String)],f.prototype,"title",void 0);v([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],f.prototype,"slug",void 0);v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),R("design:type",String)],f.prototype,"description",void 0);v([classValidator.IsEnum(H),classValidator.IsNotEmpty(),R("design:type",typeof H>"u"?Object:H)],f.prototype,"type",void 0);v([classValidator.IsEnum(Z),classValidator.IsNotEmpty(),R("design:type",typeof Z>"u"?Object:Z)],f.prototype,"visibility",void 0);v([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),En(),R("design:type",Array)],f.prototype,"flyers",void 0);v([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],f.prototype,"trailers",void 0);v([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>I),classValidator.IsNotEmpty(),R("design:type",typeof I>"u"?Object:I)],f.prototype,"location",void 0);v([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.ArrayMinSize(1),R("design:type",Array)],f.prototype,"styles",void 0);v([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),R("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);v([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),R("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);var it=class extends f{static{n(this,"CreateOrganizationEventDto");}tickets};v([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),R("design:type",Array)],it.prototype,"tickets",void 0);function h(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(h,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");exports.AtLeastOneMediaOnUpdateConstraint=class Se{static{n(this,"AtLeastOneMediaOnUpdateConstraint");}validate(t,o){let r=o.object;return r.flyers!==void 0&&r.trailers!==void 0?r.flyers.length>0||r.trailers.length>0:r.flyers!==void 0&&r.trailers===void 0?r.flyers.length>0:r.trailers!==void 0&&r.flyers===void 0?r.trailers.length>0:true}defaultMessage(){return "Cannot remove all media from event. At least one flyer or trailer must remain"}};exports.AtLeastOneMediaOnUpdateConstraint=h([classValidator.ValidatorConstraint({name:"atLeastOneMediaOnUpdate",async:false})],exports.AtLeastOneMediaOnUpdateConstraint);function Qn(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaOnUpdateConstraint});}}n(Qn,"AtLeastOneMediaOnUpdate");var u=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};h([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),S("design:type",String)],u.prototype,"title",void 0);h([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],u.prototype,"slug",void 0);h([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),S("design:type",String)],u.prototype,"description",void 0);h([classValidator.IsOptional(),classValidator.IsEnum(H),S("design:type",typeof H>"u"?Object:H)],u.prototype,"type",void 0);h([classValidator.IsOptional(),classValidator.IsEnum(Z),S("design:type",typeof Z>"u"?Object:Z)],u.prototype,"visibility",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),Qn(),S("design:type",Array)],u.prototype,"flyers",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],u.prototype,"trailers",void 0);h([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>x),S("design:type",typeof x>"u"?Object:x)],u.prototype,"location",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),S("design:type",Array)],u.prototype,"tickets",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),S("design:type",Array)],u.prototype,"styles",void 0);h([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);h([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.MinDate(new Date),S("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function io(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(io,"_ts_decorate");function ro(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ro,"_ts_metadata");var Be=class{static{n(this,"CreateOrganizationMemberDto");}user;role};io([classValidator.IsString(),classValidator.IsNotEmpty(),ro("design:type",String)],Be.prototype,"user",void 0);io([classValidator.IsEnum(J),classValidator.IsNotEmpty(),ro("design:type",typeof J>"u"?Object:J)],Be.prototype,"role",void 0);function Tn(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(Tn,"_ts_decorate");function ei(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ei,"_ts_metadata");var st=class{static{n(this,"UpdateOrganizationMemberDto");}role};Tn([classValidator.IsEnum(J),classValidator.IsNotEmpty(),ei("design:type",typeof J>"u"?Object:J)],st.prototype,"role",void 0);function D(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(D,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(N,"_ts_metadata");var je=class{static{n(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),N("design:type",typeof ue>"u"?Object:ue)],je.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>L),N("design:type",typeof L>"u"?Object:L)],je.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."}),N("design:type",String)],je.prototype,"password",void 0);var ue=class{static{n(this,"CreateUserIdentifierDto");}email;phoneNumber;username};D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],ue.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],ue.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),N("design:type",String)],ue.prototype,"username",void 0);var L=class{static{n(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"}),N("design:type",String)],L.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"}),N("design:type",String)],L.prototype,"lastName",void 0);D([classValidator.IsEnum(Q),N("design:type",typeof Q>"u"?Object:Q)],L.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],L.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(),N("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);function ci(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(ci,"_ts_decorate");function li(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(li,"_ts_metadata");var dt=class{static{n(this,"RecoveryDto");}identifier};ci([classValidator.IsNotEmpty(),classValidator.IsString(),li("design:type",String)],dt.prototype,"identifier",void 0);function ct(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(ct,"_ts_decorate");function lt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(lt,"_ts_metadata");var Oe=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};ct([classValidator.IsString(),classValidator.IsNotEmpty(),lt("design:type",String)],Oe.prototype,"tokenId",void 0);ct([classValidator.IsString(),classValidator.IsNotEmpty(),lt("design:type",String)],Oe.prototype,"tokenValue",void 0);ct([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"}),lt("design:type",String)],Oe.prototype,"password",void 0);function lo(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(lo,"_ts_decorate");function fo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(fo,"_ts_metadata");var Ge=class{static{n(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,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(m,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(g,"_ts_metadata");var Ae=class{static{n(this,"UpdateUserDto");}identifier;identity;password};m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>ge),g("design:type",typeof ge>"u"?Object:ge)],Ae.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>U),g("design:type",typeof U>"u"?Object:U)],Ae.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],Ae.prototype,"password",void 0);var ge=class{static{n(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 U=class{static{n(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)],U.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)],U.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],U.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],U.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],U.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],U.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(Q),g("design:type",typeof Q>"u"?Object:Q)],U.prototype,"gender",void 0);m([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),g("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);var F=typeof window<"u";function _e(e,t){let o=new FormData;return t instanceof File?o.append(e,t):t instanceof FileList?Array.from(t).forEach(r=>o.append(e,r)):t.forEach(r=>o.append(e,r)),o}n(_e,"buildFileFormData");var Si=Ri__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!F&&{"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:F}),bo=n(async(e,t)=>Si(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var mt=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},Ve=class{static{n(this,"Client");}options;url;constructor(t){this.options=t,this.url=(o,r)=>{let a=this.options.baseURL||gt;return pathcat.pathcat(a,o,r)};}setOptions(t){this.options=t;}async get(t,o,r){return this.requester("GET",t,void 0,o,r)}async post(t,o,r,a){return this.requester("POST",t,o,r,a)}async put(t,o,r,a){return this.requester("PUT",t,o,r,a)}async patch(t,o,r,a){return this.requester("PATCH",t,o,r,a)}async delete(t,o,r,a){return this.requester("DELETE",t,o,r,a)}async requester(t,o,r,a={},i={}){let s=this.url(o,a);if(r!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await bo(s,{method:t,data:r,...i}),We=p.data;if(!We.success)throw new mt(p,We);return We.data}};function b(e){return e}n(b,"sdk");var Io=e=>({signIn:n(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:n(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:n(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:n(async()=>e.post("/auth/refresh-token",null),"refreshToken"),recovery:n(async t=>e.post("/auth/recovery",t),"recovery"),recoveryReset:n(async t=>e.post("/auth/recovery/reset",t),"recoveryReset"),oauth2:{google:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:n(t=>{if(F)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var xo=e=>({categories:{getAll:n(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:n(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:n(async t=>e.get("/careers/jobs",t),"getAll"),get:n(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:n(async t=>e.get("/careers/offices",t),"getAll")}});var Ro=e=>({getAll:n(async(t,o)=>e.get("/channels/@me/:channelId/messages",{channelId:t,...o}),"getAll"),getAllByOrganization:n(async(t,o,r)=>e.get("/channels/:organizationSlug/:channelId/messages",{organizationSlug:t,channelId:o,...r}),"getAllByOrganization"),get:n(async(t,o)=>e.get("/channels/@me/:channelId/messages/:messageId",{channelId:t,messageId:o}),"get"),getByOrganization:n(async(t,o,r)=>e.get("/channels/:organizationSlug/:channelId/messages/:messageId",{organizationSlug:t,channelId:o,messageId:r}),"getByOrganization"),create:n(async(t,o)=>e.post("/channels/@me/:channelId/messages",o,{channelId:t}),"create"),createByOrganization:n(async(t,o,r)=>e.post("/channels/:organizationSlug/:channelId/messages",r,{organizationSlug:t,channelId:o}),"createByOrganization"),update:n(async(t,o,r)=>e.put("/channels/@me/:channelId/messages/:messageId",r,{channelId:t,messageId:o}),"update"),updateByOrganization:n(async(t,o,r,a)=>e.put("/channels/:organizationSlug/:channelId/messages/:messageId",a,{organizationSlug:t,channelId:o,messageId:r}),"updateByOrganization"),delete:n(async(t,o)=>e.delete("/channels/@me/:channelId/messages/:messageId",void 0,{channelId:t,messageId:o}),"delete"),deleteByOrganization:n(async(t,o,r)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId",void 0,{organizationSlug:t,channelId:o,messageId:r}),"deleteByOrganization"),addReaction:n(async(t,o,r)=>e.post("/channels/@me/:channelId/messages/:messageId/reactions",r,{channelId:t,messageId:o}),"addReaction"),addReactionByOrganization:n(async(t,o,r,a)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/reactions",a,{organizationSlug:t,channelId:o,messageId:r}),"addReactionByOrganization"),removeReaction:n(async(t,o,r)=>e.delete("/channels/@me/:channelId/messages/:messageId/reactions/:emoji",void 0,{channelId:t,messageId:o,emoji:r}),"removeReaction"),removeReactionByOrganization:n(async(t,o,r,a)=>e.delete("/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji",void 0,{organizationSlug:t,channelId:o,messageId:r,emoji:a}),"removeReactionByOrganization"),markAsRead:n(async(t,o)=>e.post("/channels/@me/:channelId/messages/:messageId/read",null,{channelId:t,messageId:o}),"markAsRead"),markAsReadByOrganization:n(async(t,o,r)=>e.post("/channels/:organizationSlug/:channelId/messages/:messageId/read",null,{organizationSlug:t,channelId:o,messageId:r}),"markAsReadByOrganization")});var So=e=>({me:n(async t=>e.get("/channels/@me",t),"me"),getByOrganization:n(async(t,o)=>e.get("/channels/:organizationSlug",{organizationSlug:t,...o}),"getByOrganization"),countMe:n(async t=>e.get("/users/@me/channels/count",t),"countMe"),countByOrganization:n(async(t,o)=>e.get("/users/:organizationSlug/channels/count",{organizationSlug:t,...o}),"countByOrganization"),get:n(async t=>e.get("/channels/@me/:channelId",{channelId:t}),"get"),getByOrganizationChannel:n(async(t,o)=>e.get("/channels/:organizationSlug/:channelId",{organizationSlug:t,channelId:o}),"getByOrganizationChannel"),create:n(async t=>e.post("/channels/@me",t),"create"),createByOrganization:n(async(t,o)=>e.post("/channels/:organizationSlug",o,{organizationSlug:t}),"createByOrganization"),update:n(async(t,o)=>e.put("/channels/@me/:channelId",o,{channelId:t}),"update"),updateByOrganization:n(async(t,o,r)=>e.put("/channels/:organizationSlug/:channelId",r,{organizationSlug:t,channelId:o}),"updateByOrganization"),delete:n(async t=>e.delete("/channels/@me/:channelId",void 0,{channelId:t}),"delete"),deleteByOrganization:n(async(t,o)=>e.delete("/channels/:organizationSlug/:channelId",void 0,{organizationSlug:t,channelId:o}),"deleteByOrganization"),addParticipant:n(async(t,o)=>e.post("/channels/@me/:channelId/participants",o,{channelId:t}),"addParticipant"),addParticipantByOrganization:n(async(t,o,r)=>e.post("/channels/:organizationSlug/:channelId/participants",r,{organizationSlug:t,channelId:o}),"addParticipantByOrganization"),removeParticipant:n(async(t,o)=>e.delete("/channels/@me/:channelId/participants/:username",void 0,{channelId:t,username:o}),"removeParticipant"),removeParticipantByOrganization:n(async(t,o,r)=>e.delete("/channels/:organizationSlug/:channelId/participants/:username",void 0,{organizationSlug:t,channelId:o,username:r}),"removeParticipantByOrganization"),getMembers:n(async(t,o)=>e.get("/channels/@me/:channelId/members",{channelId:t,...o}),"getMembers"),getMembersByOrganization:n(async(t,o,r)=>e.get("/channels/:organizationSlug/:channelId/members",{organizationSlug:t,channelId:o,...r}),"getMembersByOrganization"),messages:Ro(e)});var jo=e=>({getAll:n(async()=>e.get("/health"),"getAll"),database:n(async()=>e.get("/health/database"),"database"),api:n(async()=>e.get("/health/api"),"api"),app:n(async()=>e.get("/health/app"),"app")});var Oo=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ao=n(e=>({account:n(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:n(t=>{if(F)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:n(t=>{if(F)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 wo=n(e=>({create:n(async(t,o,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var _o=n(e=>({getAll:n(async()=>e.get("/organizations/events/styles"),"getAll"),get:n(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:n(async t=>e.post("/organizations/events/styles",t),"create"),update:n(async(t,o)=>e.put("/organizations/events/styles/:styleSlug",o,{styleSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var zo=n(e=>({getAll:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:o}),"getAll"),get:n(async(t,o,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:o,ticketId:r}),"get"),create:n(async(t,o,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",r,{organizationSlug:t,eventSlug:o}),"create"),update:n(async(t,o,r,a)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",a,{organizationSlug:t,eventSlug:o,ticketId:r}),"update"),delete:n(async(t,o,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:o,ticketId:r}),"delete")}),"organizationsEventsTickets");var Po=n(e=>({record:n(async(t,o)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record")}),"organizationsEventsViews");var Do=n(e=>({search:n(async(t,o)=>e.get("/organizations/events/search",{q:t,limit:o}),"search"),getAll:n(async(t,o)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...o}):e.get("/organizations/events",o),"getAll"),getSuggestions:n(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:n(async t=>e.get("/organizations/events/nearby",t),"getNearby"),getPast:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/past",{organizationSlug:t,...o}),"getPast"),getUpcoming:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/upcoming",{organizationSlug:t,...o}),"getUpcoming"),get:n(async(t,o)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:o}),"get"),create:n(async(t,o)=>e.post("/organizations/:organizationSlug/events",o,{organizationSlug:t}),"create"),update:n(async(t,o,r)=>e.put("/organizations/:organizationSlug/events/:eventSlug",r,{organizationSlug:t,eventSlug:o}),"update"),delete:n(async(t,o)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:o}),"delete"),uploadFile:n(async(t,o)=>e.post("/events/files/:eventFileType",_e("file",o),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:n(async(t,o,r,a)=>e.post("/organizations/:organizationSlug/events/:eventSlug/files/:eventFileType",_e("file",a),{organizationSlug:t,eventSlug:o,eventFileType:r}),"uploadOrganizationFile"),orders:wo(e),styles:_o(e),tickets:zo(e),views:Po(e)}),"organizationsEvents");var No=n(e=>({getAll:n(async()=>e.get("/organizations/members"),"getAll"),delete:n(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Uo=e=>({search:n(async(t,o)=>e.get("/organizations/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/organizations"),"getAll"),get:n(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:n(async t=>e.post("/organizations",t),"create"),update:n(async(t,o)=>e.put("/organizations/:organizationSlug",o,{organizationSlug:t}),"update"),delete:n(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Ao(e),events:Do(e),members:No(e)});var Lo=e=>({follow:n(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:n(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:n(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:n(async(t,o)=>e.get("/profiles/:username/relationships/followers",{username:t,...o}),"getFollowers")});var Fo=e=>({get:n(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Lo(e)});var Mo=e=>({getAll:n(async()=>e.get("/users/bookings"),"getAll"),get:n(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:n(async()=>e.get("/users/@me/bookings"),"me")});var Bo=e=>({me:n(async()=>e.get("/users/@me/notifications"),"me"),count:n(async t=>e.get("/users/@me/notifications/count",t),"count")});var qo=e=>({search:n(async(t,o)=>e.get("/users/search",{q:t,limit:o}),"search"),getAll:n(async()=>e.get("/users"),"getAll"),get:n(async t=>e.get("/users/:userId",{userId:t}),"get"),me:n(async()=>e.get("/users/@me"),"me"),check:n(async(t,o)=>e.get("/users/check/:identifier",{identifier:t,suggestions:o}),"check"),update:n(async(t,o)=>e.put("/users/:userId",o,{userId:t}),"update"),uploadFile:n(async(t,o,r)=>e.post("/users/:userId/files/:userFileType",_e("file",r),{userId:t,userFileType:o}),"uploadFile"),bookings:Mo(e),notifications:Bo(e)});var Go=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Vo=class{static{n(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Ve(t),this.auth=Io(this.client),this.careers=xo(this.client),this.channels=So(this.client),this.health=jo(this.client),this.orders=Oo(this.client),this.organizations=Uo(this.client),this.profiles=Fo(this.client),this.users=qo(this.client),this.notifications=Go(this.client);}};
2
+ exports.AddParticipantDto=ke;exports.AddReactionDto=He;exports.AtLeastOneMedia=En;exports.AtLeastOneMediaOnUpdate=Qn;exports.AttachmentType=ze;exports.BaseOrganizationEventDto=f;exports.ChannelMemberRole=Mi;exports.ChannelStatus=Bi;exports.ChannelType=te;exports.Client=Ve;exports.CreateAttachmentDto=M;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=I;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=it;exports.CreateOrganizationEventOrderDto=et;exports.CreateOrganizationEventStyleDto=Ne;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=q;exports.CreateOrganizationMemberDto=Be;exports.CreateUserDto=je;exports.CreateUserIdentityDto=L;exports.Currency=Y;exports.DEFAULT_API_URL=gt;exports.ErrorType=Vi;exports.GeoPointDto=O;exports.Language=mr;exports.OrganizationEventFileType=Xi;exports.OrganizationEventStyleType=Ci;exports.OrganizationEventTicketCategory=$;exports.OrganizationEventTicketType=X;exports.OrganizationEventType=H;exports.OrganizationEventVisibilityType=Z;exports.OrganizationMemberRole=J;exports.OrganizationMemberStatus=Qi;exports.OrganizationSocialType=Ki;exports.ProfileType=fr;exports.REGEX=d;exports.RecoveryDto=dt;exports.RecoveryResetDto=Oe;exports.SignInUserDto=Ge;exports.TonightPass=Vo;exports.TonightPassAPIError=mt;exports.UpdateChannelDto=$e;exports.UpdateChannelMessageDto=De;exports.UpdateLocationDto=x;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=zt;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=W;exports.UpdateOrganizationMemberDto=st;exports.UpdateUserDto=Ae;exports.UserFileType=sr;exports.UserIdentityGender=Q;exports.UserNotificationType=or;exports.UserRole=ar;exports.UserTokenType=ir;exports.auth=Io;exports.buildFileFormData=_e;exports.careers=xo;exports.channels=So;exports.health=jo;exports.isBrowser=F;exports.notifications=Go;exports.orders=Oo;exports.organizations=Uo;exports.profiles=Fo;exports.request=bo;exports.sdk=b;exports.users=qo;//# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map