tonightpass 0.0.145 → 0.0.146

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
@@ -4,6 +4,7 @@ export * from 'pathcat';
4
4
  import { Options, Response as Response$1 } from 'redaxios';
5
5
  import * as Stripe from 'stripe';
6
6
  import Stripe__default from 'stripe';
7
+ import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
7
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
8
9
 
9
10
  declare const DEFAULT_API_URL = "https://api.tonightpass.com";
@@ -867,6 +868,11 @@ declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrga
867
868
  endAt?: Date;
868
869
  }
869
870
 
871
+ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface {
872
+ validate(_value: unknown, args: ValidationArguments): boolean;
873
+ defaultMessage(): string;
874
+ }
875
+ declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
870
876
  type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount"> & {
871
877
  slug?: string;
872
878
  styles: string[];
@@ -887,6 +893,11 @@ declare class CreateOrganizationEventDto implements CreateOrganizationEventInput
887
893
  endAt: Date;
888
894
  }
889
895
 
896
+ declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
897
+ validate(_value: unknown, args: ValidationArguments): boolean;
898
+ defaultMessage(): string;
899
+ }
900
+ declare function AtLeastOneMediaOnUpdate(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
890
901
  declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
891
902
  title?: string;
892
903
  slug?: string;
@@ -1388,4 +1399,4 @@ declare class TonightPass {
1388
1399
  declare const isBrowser: boolean;
1389
1400
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1390
1401
 
1391
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from 'pathcat';
4
4
  import { Options, Response as Response$1 } from 'redaxios';
5
5
  import * as Stripe from 'stripe';
6
6
  import Stripe__default from 'stripe';
7
+ import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
7
8
  import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
8
9
 
9
10
  declare const DEFAULT_API_URL = "https://api.tonightpass.com";
@@ -867,6 +868,11 @@ declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrga
867
868
  endAt?: Date;
868
869
  }
869
870
 
871
+ declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface {
872
+ validate(_value: unknown, args: ValidationArguments): boolean;
873
+ defaultMessage(): string;
874
+ }
875
+ declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
870
876
  type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization" | "viewsCount" | "sessionsCount" | "totalViewsCount" | "averageViewsPerSessionCount"> & {
871
877
  slug?: string;
872
878
  styles: string[];
@@ -887,6 +893,11 @@ declare class CreateOrganizationEventDto implements CreateOrganizationEventInput
887
893
  endAt: Date;
888
894
  }
889
895
 
896
+ declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
897
+ validate(_value: unknown, args: ValidationArguments): boolean;
898
+ defaultMessage(): string;
899
+ }
900
+ declare function AtLeastOneMediaOnUpdate(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
890
901
  declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
891
902
  title?: string;
892
903
  slug?: string;
@@ -1388,4 +1399,4 @@ declare class TonightPass {
1388
1399
  declare const isBrowser: boolean;
1389
1400
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1390
1401
 
1391
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, 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 };
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 };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),pi=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var pi__default=/*#__PURE__*/_interopDefault(pi);var qo=Object.defineProperty;var n=(e,t)=>qo(e,"name",{value:t,configurable:true});var lt="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 Go(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(Go,"_ts_decorate");function ko(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ko,"_ts_metadata");var ke=class{static{n(this,"AddParticipantDto");}username};Go([classValidator.IsString(),classValidator.Matches(d.USERNAME),ko("design:type",String)],ke.prototype,"username",void 0);var Ae=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}({}),Si=function(e){return e.Member="member",e.Admin="admin",e}({}),Ri=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var wi=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 $=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),H=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 zi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var Z=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}({}),J=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),Di=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({});var Bi=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Q=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var qi=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Wi=function(e){return e.Follow="follow",e}({});var Ci=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 $i=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Y=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Hi=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Ki=function(e){return e.User="user",e.Organization="organization",e}({});var K=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),er=function(e){return e.FR="fr",e.EN="en",e}({});function We(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(We,"_ts_decorate");function Ee(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ee,"_ts_metadata");var ye=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};We([classValidator.IsEnum(te),Ee("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([classValidator.IsArray(),classValidator.ArrayMinSize(1),classValidator.ValidateIf(e=>e.type===te.Private),classValidator.ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),classValidator.ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),classValidator.IsString({each:true}),classValidator.Matches(d.USERNAME,{each:true}),Ee("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Ee("design:type",String)],ye.prototype,"name",void 0);function Zo(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(Zo,"_ts_decorate");function Jo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Jo,"_ts_metadata");var Ce=class{static{n(this,"UpdateChannelDto");}name};Zo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Jo("design:type",String)],Ce.prototype,"name",void 0);function To(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(To,"_ts_decorate");function en(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(en,"_ts_metadata");var Xe=class{static{n(this,"AddReactionDto");}emoji};To([classValidator.IsString(),classValidator.Length(1,10),en("design:type",String)],Xe.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 B=class{static{n(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(Ae),ne("design:type",typeof Ae>"u"?Object:Ae)],B.prototype,"type",void 0);oe([classValidator.IsUrl(),ne("design:type",String)],B.prototype,"url",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,255),ne("design:type",String)],B.prototype,"filename",void 0);oe([classValidator.IsOptional(),classValidator.IsString(),ne("design:type",String)],B.prototype,"mimeType",void 0);var ve=class{static{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(()=>B),ne("design:type",Array)],ve.prototype,"attachments",void 0);oe([classValidator.IsOptional(),classValidator.IsUUID("4"),ne("design:type",String)],ve.prototype,"replyToId",void 0);function yt(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(yt,"_ts_decorate");function vt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(vt,"_ts_metadata");var ze=class{static{n(this,"UpdateChannelMessageDto");}content;attachments};yt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),vt("design:type",String)],ze.prototype,"content",void 0);yt([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>B),vt("design:type",Array)],ze.prototype,"attachments",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 T(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(T,"_ts_metadata");var He=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"}};He=M([classValidator.ValidatorConstraint({name:"coordinatesRange",async:false})],He);var O=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}};M([classValidator.IsString(),classValidator.IsNotEmpty(),T("design:type",String)],O.prototype,"type",void 0);M([classValidator.IsArray(),classValidator.IsNotEmpty(),classValidator.Validate(He),T("design:type",Array)],O.prototype,"coordinates",void 0);var h=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};M([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),T("design:type",String)],h.prototype,"name",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),T("design:type",String)],h.prototype,"address",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),T("design:type",String)],h.prototype,"zipCode",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),T("design:type",String)],h.prototype,"city",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),T("design:type",String)],h.prototype,"country",void 0);M([classValidator.ValidateNested(),classTransformer.Type(()=>O),classValidator.IsNotEmpty(),T("design:type",typeof O>"u"?Object:O)],h.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 b=class{static{n(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],b.prototype,"name",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),de("design:type",String)],b.prototype,"address",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),de("design:type",String)],b.prototype,"zipCode",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],b.prototype,"city",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],b.prototype,"country",void 0);pe([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>O),de("design:type",typeof O>"u"?Object:O)],b.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 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,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(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 Ot=class{static{n(this,"CreateOrganizationEventOrderDto");}cart};var Pe=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var wt=class extends Pe{static{n(this,"UpdateOrganizationEventStyleDto");}};function w(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(w,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(A,"_ts_metadata");var c=class{static{n(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};w([classValidator.IsString(),classValidator.Length(1,128),A("design:type",String)],c.prototype,"name",void 0);w([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),A("design:type",String)],c.prototype,"description",void 0);w([classValidator.IsNumber(),classValidator.Min(0),A("design:type",Number)],c.prototype,"price",void 0);w([classValidator.IsNumber(),classValidator.Min(0),A("design:type",Number)],c.prototype,"quantity",void 0);w([classValidator.IsEnum($),A("design:type",typeof $>"u"?Object:$)],c.prototype,"type",void 0);w([classValidator.IsEnum(H),A("design:type",typeof H>"u"?Object:H)],c.prototype,"category",void 0);w([classValidator.IsEnum(K),A("design:type",typeof K>"u"?Object:K)],c.prototype,"currency",void 0);w([classValidator.IsBoolean(),A("design:type",Boolean)],c.prototype,"isVisible",void 0);w([classValidator.IsBoolean(),A("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),A("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),A("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(1,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($),classValidator.IsOptional(),z("design:type",typeof $>"u"?Object:$)],l.prototype,"type",void 0);_([classValidator.IsEnum(H),classValidator.IsOptional(),z("design:type",typeof H>"u"?Object:H)],l.prototype,"category",void 0);_([classValidator.IsEnum(K),classValidator.IsOptional(),z("design:type",typeof K>"u"?Object:K)],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 I(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(I,"_ts_decorate");function x(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(x,"_ts_metadata");var f=class{static{n(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};I([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),x("design:type",String)],f.prototype,"title",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),x("design:type",String)],f.prototype,"slug",void 0);I([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),x("design:type",String)],f.prototype,"description",void 0);I([classValidator.IsEnum(Z),classValidator.IsNotEmpty(),x("design:type",typeof Z>"u"?Object:Z)],f.prototype,"type",void 0);I([classValidator.IsEnum(J),classValidator.IsNotEmpty(),x("design:type",typeof J>"u"?Object:J)],f.prototype,"visibility",void 0);I([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),x("design:type",Array)],f.prototype,"flyers",void 0);I([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),x("design:type",Array)],f.prototype,"trailers",void 0);I([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),x("design:type",typeof h>"u"?Object:h)],f.prototype,"location",void 0);I([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),x("design:type",Array)],f.prototype,"tickets",void 0);I([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),x("design:type",Array)],f.prototype,"styles",void 0);I([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),x("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);I([classTransformer.Transform(({value:e})=>e instanceof Date?e:new Date(e)),classValidator.IsDate(),classValidator.IsNotEmpty(),classValidator.MinDate(new Date),x("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function S(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(S,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(R,"_ts_metadata");var u=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),R("design:type",String)],u.prototype,"title",void 0);S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),R("design:type",String)],u.prototype,"slug",void 0);S([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),R("design:type",String)],u.prototype,"description",void 0);S([classValidator.IsOptional(),classValidator.IsEnum(Z),R("design:type",typeof Z>"u"?Object:Z)],u.prototype,"type",void 0);S([classValidator.IsOptional(),classValidator.IsEnum(J),R("design:type",typeof J>"u"?Object:J)],u.prototype,"visibility",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],u.prototype,"flyers",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),R("design:type",Array)],u.prototype,"trailers",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),R("design:type",typeof b>"u"?Object:b)],u.prototype,"location",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),R("design:type",Array)],u.prototype,"tickets",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),R("design:type",Array)],u.prototype,"styles",void 0);S([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);S([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 to(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(to,"_ts_decorate");function oo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(oo,"_ts_metadata");var Fe=class{static{n(this,"CreateOrganizationMemberDto");}user;role};to([classValidator.IsString(),classValidator.IsNotEmpty(),oo("design:type",String)],Fe.prototype,"user",void 0);to([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),oo("design:type",typeof Q>"u"?Object:Q)],Fe.prototype,"role",void 0);function Gn(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(Gn,"_ts_decorate");function kn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(kn,"_ts_metadata");var nt=class{static{n(this,"UpdateOrganizationMemberDto");}role};Gn([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),kn("design:type",typeof Q>"u"?Object:Q)],nt.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 Se=class{static{n(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),N("design:type",typeof ue>"u"?Object:ue)],Se.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>L),N("design:type",typeof L>"u"?Object:L)],Se.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)],Se.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(Y),N("design:type",typeof Y>"u"?Object:Y)],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 Qn(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(Qn,"_ts_decorate");function Yn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Yn,"_ts_metadata");var rt=class{static{n(this,"RecoveryDto");}identifier};Qn([classValidator.IsNotEmpty(),classValidator.IsString(),Yn("design:type",String)],rt.prototype,"identifier",void 0);function at(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(at,"_ts_decorate");function st(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(st,"_ts_metadata");var Re=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};at([classValidator.IsString(),classValidator.IsNotEmpty(),st("design:type",String)],Re.prototype,"tokenId",void 0);at([classValidator.IsString(),classValidator.IsNotEmpty(),st("design:type",String)],Re.prototype,"tokenValue",void 0);at([classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),classValidator.IsNotEmpty({message:"Password is required"}),st("design:type",String)],Re.prototype,"password",void 0);function so(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(so,"_ts_decorate");function po(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(po,"_ts_metadata");var Me=class{static{n(this,"SignInUserDto");}identifier;password};so([classValidator.IsNotEmpty(),classValidator.IsString(),po("design:type",String)],Me.prototype,"identifier",void 0);so([classValidator.IsNotEmpty(),classValidator.IsString(),po("design:type",String)],Me.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 je=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)],je.prototype,"identifier",void 0);m([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>U),g("design:type",typeof U>"u"?Object:U)],je.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{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(Y),g("design:type",typeof Y>"u"?Object:Y)],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 we(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(we,"buildFileFormData");var di=pi__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}),yo=n(async(e,t)=>di(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var ct=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;}},qe=class{static{n(this,"Client");}options;url;constructor(t){this.options=t,this.url=(o,r)=>{let a=this.options.baseURL||lt;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 yo(s,{method:t,data:r,...i}),Ge=p.data;if(!Ge.success)throw new ct(p,Ge);return Ge.data}};function v(e){return e}n(v,"sdk");var vo=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 ho=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 bo=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 Io=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:bo(e)});var xo=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 So=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ro=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 jo=n(e=>({create:n(async(t,o,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var Oo=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 wo=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 Ao=n(e=>({record:n(async(t,o)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record")}),"organizationsEventsViews");var _o=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",we("file",o),{eventFileType:t}),"uploadFile"),uploadOrganizationFile:n(async(t,o,r,a)=>e.post("/organizations/:organizationSlug/events/:eventSlug/files/:eventFileType",we("file",a),{organizationSlug:t,eventSlug:o,eventFileType:r}),"uploadOrganizationFile"),orders:jo(e),styles:Oo(e),tickets:wo(e),views:Ao(e)}),"organizationsEvents");var zo=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 Po=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:Ro(e),events:_o(e),members:zo(e)});var Do=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 No=e=>({get:n(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Do(e)});var Uo=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 Lo=e=>({me:n(async()=>e.get("/users/@me/notifications"),"me"),count:n(async t=>e.get("/users/@me/notifications/count",t),"count")});var Fo=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",we("file",r),{userId:t,userFileType:o}),"uploadFile"),bookings:Uo(e),notifications:Lo(e)});var Bo=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Mo=class{static{n(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new qe(t),this.auth=vo(this.client),this.careers=ho(this.client),this.channels=Io(this.client),this.health=xo(this.client),this.orders=So(this.client),this.organizations=Po(this.client),this.profiles=No(this.client),this.users=Fo(this.client),this.notifications=Bo(this.client);}};
2
- exports.AddParticipantDto=ke;exports.AddReactionDto=Xe;exports.AttachmentType=Ae;exports.ChannelMemberRole=Si;exports.ChannelStatus=Ri;exports.ChannelType=te;exports.Client=qe;exports.CreateAttachmentDto=B;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=h;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=Ot;exports.CreateOrganizationEventStyleDto=Pe;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=q;exports.CreateOrganizationMemberDto=Fe;exports.CreateUserDto=Se;exports.CreateUserIdentityDto=L;exports.Currency=K;exports.DEFAULT_API_URL=lt;exports.ErrorType=wi;exports.GeoPointDto=O;exports.Language=er;exports.OrganizationEventFileType=Di;exports.OrganizationEventStyleType=zi;exports.OrganizationEventTicketCategory=H;exports.OrganizationEventTicketType=$;exports.OrganizationEventType=Z;exports.OrganizationEventVisibilityType=J;exports.OrganizationMemberRole=Q;exports.OrganizationMemberStatus=Bi;exports.OrganizationSocialType=qi;exports.ProfileType=Ki;exports.REGEX=d;exports.RecoveryDto=rt;exports.RecoveryResetDto=Re;exports.SignInUserDto=Me;exports.TonightPass=Mo;exports.TonightPassAPIError=ct;exports.UpdateChannelDto=Ce;exports.UpdateChannelMessageDto=ze;exports.UpdateLocationDto=b;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=wt;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=nt;exports.UpdateUserDto=je;exports.UserFileType=Hi;exports.UserIdentityGender=Y;exports.UserNotificationType=Wi;exports.UserRole=$i;exports.UserTokenType=Ci;exports.auth=vo;exports.buildFileFormData=we;exports.careers=ho;exports.channels=Io;exports.health=xo;exports.isBrowser=F;exports.notifications=Bo;exports.orders=So;exports.organizations=Po;exports.profiles=No;exports.request=yo;exports.sdk=v;exports.users=Fo;//# sourceMappingURL=index.js.map
1
+ 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),yi=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var yi__default=/*#__PURE__*/_interopDefault(yi);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}({}),Pi=function(e){return e.Member="member",e.Admin="admin",e}({}),Di=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var Li=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 $=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),H=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 Bi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var Z=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}({}),J=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({}),Gi=function(e){return e.Flyer="flyer",e.Trailer="trailer",e}({});var Ci=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Q=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var $i=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Qi=function(e){return e.Follow="follow",e}({});var Ki=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 er=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),Y=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),tr=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var ar=function(e){return e.User="user",e.Organization="organization",e}({});var K=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),pr=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 T(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(T,"_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(),T("design:type",String)],O.prototype,"type",void 0);B([classValidator.IsArray(),classValidator.IsNotEmpty(),classValidator.Validate(Je),T("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),T("design:type",String)],I.prototype,"name",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),T("design:type",String)],I.prototype,"address",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),T("design:type",String)],I.prototype,"zipCode",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),T("design:type",String)],I.prototype,"city",void 0);B([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),T("design:type",String)],I.prototype,"country",void 0);B([classValidator.ValidateNested(),classTransformer.Type(()=>O),classValidator.IsNotEmpty(),T("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(1,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($),w("design:type",typeof $>"u"?Object:$)],c.prototype,"type",void 0);A([classValidator.IsEnum(H),w("design:type",typeof H>"u"?Object:H)],c.prototype,"category",void 0);A([classValidator.IsEnum(K),w("design:type",typeof K>"u"?Object:K)],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(1,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($),classValidator.IsOptional(),z("design:type",typeof $>"u"?Object:$)],l.prototype,"type",void 0);_([classValidator.IsEnum(H),classValidator.IsOptional(),z("design:type",typeof H>"u"?Object:H)],l.prototype,"category",void 0);_([classValidator.IsEnum(K),classValidator.IsOptional(),z("design:type",typeof K>"u"?Object:K)],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 qn(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaConstraint});}}n(qn,"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(Z),classValidator.IsNotEmpty(),S("design:type",typeof Z>"u"?Object:Z)],f.prototype,"type",void 0);v([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"visibility",void 0);v([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),qn(),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.IsNotEmpty(),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 Cn(e){return function(t,o){classValidator.registerDecorator({target:t.constructor,propertyName:o,options:e,constraints:[],validator:exports.AtLeastOneMediaOnUpdateConstraint});}}n(Cn,"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(Z),R("design:type",typeof Z>"u"?Object:Z)],u.prototype,"type",void 0);h([classValidator.IsOptional(),classValidator.IsEnum(J),R("design:type",typeof J>"u"?Object:J)],u.prototype,"visibility",void 0);h([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),Cn(),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(Q),classValidator.IsNotEmpty(),io("design:type",typeof Q>"u"?Object:Q)],Be.prototype,"role",void 0);function Hn(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(Hn,"_ts_decorate");function Zn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Zn,"_ts_metadata");var rt=class{static{n(this,"UpdateOrganizationMemberDto");}role};Hn([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),Zn("design:type",typeof Q>"u"?Object:Q)],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(Y),N("design:type",typeof Y>"u"?Object:Y)],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 ii(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(ii,"_ts_decorate");function ri(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(ri,"_ts_metadata");var st=class{static{n(this,"RecoveryDto");}identifier};ii([classValidator.IsNotEmpty(),classValidator.IsString(),ri("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(Y),g("design:type",typeof Y>"u"?Object:Y)],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 vi=yi__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)=>vi(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=qn;exports.AtLeastOneMediaOnUpdate=Cn;exports.AttachmentType=ze;exports.ChannelMemberRole=Pi;exports.ChannelStatus=Di;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=K;exports.DEFAULT_API_URL=ut;exports.ErrorType=Li;exports.GeoPointDto=O;exports.Language=pr;exports.OrganizationEventFileType=Gi;exports.OrganizationEventStyleType=Bi;exports.OrganizationEventTicketCategory=H;exports.OrganizationEventTicketType=$;exports.OrganizationEventType=Z;exports.OrganizationEventVisibilityType=J;exports.OrganizationMemberRole=Q;exports.OrganizationMemberStatus=Ci;exports.OrganizationSocialType=$i;exports.ProfileType=ar;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=tr;exports.UserIdentityGender=Y;exports.UserNotificationType=Qi;exports.UserRole=er;exports.UserTokenType=Ki;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
3
3
  //# sourceMappingURL=index.js.map