tonightpass 0.0.140 → 0.0.141

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
@@ -287,6 +287,10 @@ declare enum ChannelType {
287
287
  Private = "private",
288
288
  Group = "group"
289
289
  }
290
+ declare enum ChannelMemberRole {
291
+ Member = "member",
292
+ Admin = "admin"
293
+ }
290
294
  type ChannelParticipant = Profile;
291
295
  declare enum ChannelStatus {
292
296
  Sent = "sent",
@@ -306,7 +310,7 @@ type Channel = Base & {
306
310
  type ChannelMember = {
307
311
  participant: ChannelParticipant;
308
312
  joinedAt: Date;
309
- role?: "admin" | "member";
313
+ role?: ChannelMemberRole;
310
314
  lastReadAt?: Date;
311
315
  };
312
316
  type UserChannelCountOptions = {
@@ -1377,4 +1381,4 @@ declare class TonightPass {
1377
1381
  declare const isBrowser: boolean;
1378
1382
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1379
1383
 
1380
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, 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, 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 };
1384
+ 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, 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
@@ -287,6 +287,10 @@ declare enum ChannelType {
287
287
  Private = "private",
288
288
  Group = "group"
289
289
  }
290
+ declare enum ChannelMemberRole {
291
+ Member = "member",
292
+ Admin = "admin"
293
+ }
290
294
  type ChannelParticipant = Profile;
291
295
  declare enum ChannelStatus {
292
296
  Sent = "sent",
@@ -306,7 +310,7 @@ type Channel = Base & {
306
310
  type ChannelMember = {
307
311
  participant: ChannelParticipant;
308
312
  joinedAt: Date;
309
- role?: "admin" | "member";
313
+ role?: ChannelMemberRole;
310
314
  lastReadAt?: Date;
311
315
  };
312
316
  type UserChannelCountOptions = {
@@ -1377,4 +1381,4 @@ declare class TonightPass {
1377
1381
  declare const isBrowser: boolean;
1378
1382
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
1379
1383
 
1380
- export { type APIRequestOptions, type APIResponse, AddParticipantDto, AddReactionDto, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type Attachment, AttachmentType, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelEndpoints, type ChannelMember, type ChannelMessage, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, type ChannelParticipant, 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, 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 };
1384
+ 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, 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'),Kn=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Kn__default=/*#__PURE__*/_interopDefault(Kn);var Do=Object.defineProperty;var n=(e,t)=>Do(e,"name",{value:t,configurable:true});var dt="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function Uo(e,t,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(Uo,"_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,"AddParticipantDto");}username};Uo([classValidator.IsString(),classValidator.Matches(d.USERNAME),Lo("design:type",String)],Ge.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}({}),fi=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var gi=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var H=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),Z=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var hi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var J=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Q=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var ji=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Ai=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Pi=function(e){return e.Follow="follow",e}({});var Di=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 Li=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Bi=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var ki=function(e){return e.User="user",e.Organization="organization",e}({});var T=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Vi=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 Ve(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ve,"_ts_metadata");var ye=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};We([classValidator.IsEnum(te),Ve("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([classValidator.IsArray(),classValidator.ArrayMinSize(1),classValidator.ValidateIf(e=>e.type===te.Private),classValidator.ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),classValidator.ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),classValidator.IsString({each:true}),classValidator.Matches(d.USERNAME,{each:true}),Ve("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Ve("design:type",String)],ye.prototype,"name",void 0);function Vo(e,t,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(Vo,"_ts_decorate");function Eo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Eo,"_ts_metadata");var Ee=class{static{n(this,"UpdateChannelDto");}name};Vo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Eo("design:type",String)],Ee.prototype,"name",void 0);function Ho(e,t,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(Ho,"_ts_decorate");function Zo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Zo,"_ts_metadata");var Xe=class{static{n(this,"AddReactionDto");}emoji};Ho([classValidator.IsString(),classValidator.Length(1,10),Zo("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 M=class{static{n(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(Ae),ne("design:type",typeof Ae>"u"?Object:Ae)],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 mt(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(mt,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(gt,"_ts_metadata");var _e=class{static{n(this,"UpdateChannelMessageDto");}content;attachments};mt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),gt("design:type",String)],_e.prototype,"content",void 0);mt([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>M),gt("design:type",Array)],_e.prototype,"attachments",void 0);function q(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(q,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(A,"_ts_metadata");var h=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,o]=this.coordinates;return o>=-90&&o<=90&&t>=-180&&t<=180}};q([classValidator.IsString(),classValidator.IsNotEmpty(),A("design:type",String)],h.prototype,"type",void 0);q([classValidator.IsArray(),classValidator.IsNotEmpty(),A("design:type",Array)],h.prototype,"coordinates",void 0);q([classValidator.ValidateNested(),A("design:type",Function),A("design:paramtypes",[]),A("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};q([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"name",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),A("design:type",String)],b.prototype,"address",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),A("design:type",String)],b.prototype,"zipCode",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"city",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"country",void 0);q([classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),A("design:type",typeof h>"u"?Object:h)],b.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 I=class{static{n(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"name",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),de("design:type",String)],I.prototype,"address",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),de("design:type",String)],I.prototype,"zipCode",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"city",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"country",void 0);pe([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>h),de("design:type",typeof h>"u"?Object:h)],I.prototype,"geometry",void 0);function k(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(k,"_ts_decorate");function W(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(W,"_ts_metadata");var le=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};k([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),W("design:type",String)],le.prototype,"organizationSlug",void 0);k([classValidator.IsObject(),W("design:type",typeof G>"u"?Object:G)],le.prototype,"identity",void 0);k([classValidator.IsArray(),W("design:type",Array)],le.prototype,"members",void 0);k([classValidator.IsOptional(),classValidator.IsObject(),W("design:type",typeof Location>"u"?Object:Location)],le.prototype,"location",void 0);var G=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),W("design:type",String)],G.prototype,"displayName",void 0);k([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),W("design:type",String)],G.prototype,"description",void 0);k([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"avatarUrl",void 0);k([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"bannerUrl",void 0);k([classValidator.IsOptional(),classValidator.IsArray(),W("design:type",Array)],G.prototype,"socialLinks",void 0);function E(e,t,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(E,"_ts_decorate");function X(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(X,"_ts_metadata");var fe=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};E([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),X("design:type",String)],fe.prototype,"slug",void 0);E([classValidator.IsObject(),classValidator.IsOptional(),X("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),X("design:type",Array)],fe.prototype,"members",void 0);E([classValidator.IsOptional(),classValidator.IsObject(),X("design:type",typeof Location>"u"?Object:Location)],fe.prototype,"location",void 0);var V=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};E([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),X("design:type",String)],V.prototype,"displayName",void 0);E([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),X("design:type",String)],V.prototype,"description",void 0);E([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),X("design:type",String)],V.prototype,"avatarUrl",void 0);E([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),X("design:type",String)],V.prototype,"bannerUrl",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),X("design:type",Array)],V.prototype,"socialLinks",void 0);var jt=class{static{n(this,"CreateOrganizationEventOrderDto");}cart};var ze=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Ot=class extends ze{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 _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_,"_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),_("design:type",String)],c.prototype,"name",void 0);w([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),_("design:type",String)],c.prototype,"description",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"price",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);w([classValidator.IsEnum(H),_("design:type",typeof H>"u"?Object:H)],c.prototype,"type",void 0);w([classValidator.IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);w([classValidator.IsEnum(T),_("design:type",typeof T>"u"?Object:T)],c.prototype,"currency",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function z(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(z,"_ts_decorate");function P(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(P,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};z([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),P("design:type",String)],l.prototype,"name",void 0);z([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),P("design:type",String)],l.prototype,"description",void 0);z([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),P("design:type",Number)],l.prototype,"price",void 0);z([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),P("design:type",Number)],l.prototype,"quantity",void 0);z([classValidator.IsEnum(H),classValidator.IsOptional(),P("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);z([classValidator.IsEnum(Z),classValidator.IsOptional(),P("design:type",typeof Z>"u"?Object:Z)],l.prototype,"category",void 0);z([classValidator.IsEnum(T),classValidator.IsOptional(),P("design:type",typeof T>"u"?Object:T)],l.prototype,"currency",void 0);z([classValidator.IsBoolean(),classValidator.IsOptional(),P("design:type",Boolean)],l.prototype,"isVisible",void 0);z([classValidator.IsBoolean(),classValidator.IsOptional(),P("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);z([classValidator.IsDateString(),classValidator.IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);z([classValidator.IsDateString(),classValidator.IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function x(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(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");var f=class{static{n(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),classValidator.IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function R(e,t,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(R,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(j,"_ts_metadata");var u=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),j("design:type",String)],u.prototype,"title",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),j("design:type",String)],u.prototype,"slug",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),j("design:type",String)],u.prototype,"description",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(J),j("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"flyers",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"trailers",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>I),j("design:type",typeof I>"u"?Object:I)],u.prototype,"location",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),j("design:type",Array)],u.prototype,"tickets",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),j("design:type",Array)],u.prototype,"styles",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function Zt(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(Zt,"_ts_decorate");function Jt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Jt,"_ts_metadata");var Le=class{static{n(this,"CreateOrganizationMemberDto");}user;role};Zt([classValidator.IsString(),classValidator.IsNotEmpty(),Jt("design:type",String)],Le.prototype,"user",void 0);Zt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),Jt("design:type",typeof Y>"u"?Object:Y)],Le.prototype,"role",void 0);function Pn(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(Pn,"_ts_decorate");function Nn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Nn,"_ts_metadata");var tt=class{static{n(this,"UpdateOrganizationMemberDto");}role};Pn([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),Nn("design:type",typeof Y>"u"?Object:Y)],tt.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 U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(U,"_ts_metadata");var Se=class{static{n(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),U("design:type",typeof ue>"u"?Object:ue)],Se.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>B),U("design:type",typeof B>"u"?Object:B)],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."}),U("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(),U("design:type",String)],ue.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],ue.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],ue.prototype,"username",void 0);var B=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"}),U("design:type",String)],B.prototype,"firstName",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],B.prototype,"lastName",void 0);D([classValidator.IsEnum(K),U("design:type",typeof K>"u"?Object:K)],B.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],B.prototype,"avatarUrl",void 0);D([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),classValidator.IsDate(),U("design:type",typeof Date>"u"?Object:Date)],B.prototype,"birthDate",void 0);function Wn(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(Wn,"_ts_decorate");function Vn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Vn,"_ts_metadata");var nt=class{static{n(this,"RecoveryDto");}identifier};Wn([classValidator.IsNotEmpty(),classValidator.IsString(),Vn("design:type",String)],nt.prototype,"identifier",void 0);function it(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(it,"_ts_decorate");function rt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(rt,"_ts_metadata");var Re=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenId",void 0);it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenValue",void 0);it([classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),classValidator.IsNotEmpty({message:"Password is required"}),rt("design:type",String)],Re.prototype,"password",void 0);function eo(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(eo,"_ts_decorate");function to(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(to,"_ts_metadata");var Fe=class{static{n(this,"SignInUserDto");}identifier;password};eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Fe.prototype,"identifier",void 0);eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Fe.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(()=>L),g("design:type",typeof L>"u"?Object:L)],je.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{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 L=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)],L.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(K),g("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var F=typeof window<"u";function po(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(po,"buildFileFormData");var Tn=Kn__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}),co=n(async(e,t)=>Tn(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var pt=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},Me=class{static{n(this,"Client");}options;url;constructor(t){this.options=t,this.url=(o,r)=>{let a=this.options.baseURL||dt;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 co(s,{method:t,data:r,...i}),qe=p.data;if(!qe.success)throw new pt(p,qe);return qe.data}};function v(e){return e}n(v,"sdk");var lo=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 fo=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 uo=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 mo=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:uo(e)});var go=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 yo=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var vo=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 ho=n(e=>({create:n(async(t,o,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var bo=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 Io=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 xo=n(e=>({record:n(async(t,o)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record")}),"organizationsEventsViews");var So=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"),orders:ho(e),styles:bo(e),tickets:Io(e),views:xo(e)}),"organizationsEvents");var Ro=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 jo=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:vo(e),events:So(e),members:Ro(e)});var Oo=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 Ao=e=>({get:n(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Oo(e)});var wo=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 _o=e=>({me:n(async()=>e.get("/users/@me/notifications"),"me"),count:n(async t=>e.get("/users/@me/notifications/count",t),"count")});var zo=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",po("file",r),{userId:t,userFileType:o}),"uploadFile"),bookings:wo(e),notifications:_o(e)});var Po=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var No=class{static{n(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Me(t),this.auth=lo(this.client),this.careers=fo(this.client),this.channels=mo(this.client),this.health=go(this.client),this.orders=yo(this.client),this.organizations=jo(this.client),this.profiles=Ao(this.client),this.users=zo(this.client),this.notifications=Po(this.client);}};
2
- exports.AddParticipantDto=Ge;exports.AddReactionDto=Xe;exports.AttachmentType=Ae;exports.ChannelStatus=fi;exports.ChannelType=te;exports.Client=Me;exports.CreateAttachmentDto=M;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=b;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=jt;exports.CreateOrganizationEventStyleDto=ze;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=G;exports.CreateOrganizationMemberDto=Le;exports.CreateUserDto=Se;exports.CreateUserIdentityDto=B;exports.Currency=T;exports.DEFAULT_API_URL=dt;exports.ErrorType=gi;exports.GeoPointDto=h;exports.Language=Vi;exports.OrganizationEventStyleType=hi;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=H;exports.OrganizationEventType=J;exports.OrganizationEventVisibilityType=Q;exports.OrganizationMemberRole=Y;exports.OrganizationMemberStatus=ji;exports.OrganizationSocialType=Ai;exports.ProfileType=ki;exports.REGEX=d;exports.RecoveryDto=nt;exports.RecoveryResetDto=Re;exports.SignInUserDto=Fe;exports.TonightPass=No;exports.TonightPassAPIError=pt;exports.UpdateChannelDto=Ee;exports.UpdateChannelMessageDto=_e;exports.UpdateLocationDto=I;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=Ot;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=tt;exports.UpdateUserDto=je;exports.UserFileType=Bi;exports.UserIdentityGender=K;exports.UserNotificationType=Pi;exports.UserRole=Li;exports.UserTokenType=Di;exports.auth=lo;exports.buildFileFormData=po;exports.careers=fo;exports.channels=mo;exports.health=go;exports.isBrowser=F;exports.notifications=Po;exports.orders=yo;exports.organizations=jo;exports.profiles=Ao;exports.request=co;exports.sdk=v;exports.users=zo;//# sourceMappingURL=index.js.map
1
+ 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),Kn=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Kn__default=/*#__PURE__*/_interopDefault(Kn);var Do=Object.defineProperty;var n=(e,t)=>Do(e,"name",{value:t,configurable:true});var dt="https://api.tonightpass.com";var d={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-ZÀ-ÿ0-9-\s]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function Uo(e,t,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(Uo,"_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,"AddParticipantDto");}username};Uo([classValidator.IsString(),classValidator.Matches(d.USERNAME),Lo("design:type",String)],Ge.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}({}),fi=function(e){return e.Member="member",e.Admin="admin",e}({}),ui=function(e){return e.Sent="sent",e.Delivered="delivered",e.Read="read",e.Received="received",e.Opened="opened",e}({});var yi=function(e){return e.AuthEmailAlreadyExists="auth.email-already-exists",e.AuthUsernameAlreadyExists="auth.username-already-exists",e.AuthPhoneNumberAlreadyExists="auth.phone-number-already-exists",e.AuthInvalidCredentials="auth.invalid-credentials",e.AuthUserNotFound="auth.user-not-found",e.AuthInvalidToken="auth.invalid-token",e.AuthTokenExpired="auth.token-expired",e.AuthUnauthorized="auth.unauthorized",e.AuthPasswordMismatch="auth.password-mismatch",e.AuthInvalidOAuth2Provider="auth.invalid-oauth2-provider",e.AuthOAuth2Error="auth.oauth2-error",e.UserNotFound="user.not-found",e.UserInvalidUsername="user.invalid-username",e.UserInvalidEmail="user.invalid-email",e.UserInvalidPhoneNumber="user.invalid-phone-number",e.UserInvalidPassword="user.invalid-password",e.UserInvalidBirthDate="user.invalid-birth-date",e.UserInvalidGender="user.invalid-gender",e.UserInvalidRole="user.invalid-role",e.UserInvalidPreferences="user.invalid-preferences",e.UserInvalidLocation="user.invalid-location",e.UserInvalidFile="user.invalid-file",e.UserFileTooLarge="user.file-too-large",e.UserUnsupportedFileType="user.unsupported-file-type",e.OrganizationNotFound="organization.not-found",e.OrganizationInvalidSlug="organization.invalid-slug",e.OrganizationInvalidName="organization.invalid-name",e.OrganizationInvalidDescription="organization.invalid-description",e.OrganizationInvalidLocation="organization.invalid-location",e.OrganizationInvalidSocialLink="organization.invalid-social-link",e.OrganizationAlreadyExists="organization.already-exists",e.OrganizationUnauthorized="organization.unauthorized",e.OrganizationMemberNotFound="organization.member-not-found",e.OrganizationMemberInvalidRole="organization.member-invalid-role",e.OrganizationMemberAlreadyExists="organization.member-already-exists",e.EventNotFound="event.not-found",e.EventInvalidTitle="event.invalid-title",e.EventInvalidDescription="event.invalid-description",e.EventInvalidLocation="event.invalid-location",e.EventInvalidDates="event.invalid-dates",e.EventInvalidTickets="event.invalid-tickets",e.EventInvalidStyles="event.invalid-styles",e.EventInvalidType="event.invalid-type",e.EventInvalidVisibility="event.invalid-visibility",e.EventUnavailable="event.unavailable",e.EventTicketNotFound="event.ticket-not-found",e.EventTicketUnavailable="event.ticket-unavailable",e.EventTicketInvalidQuantity="event.ticket-invalid-quantity",e.OrderNotFound="order.not-found",e.OrderInvalidStatus="order.invalid-status",e.OrderInvalidPayment="order.invalid-payment",e.OrderPaymentFailed="order.payment-failed",e.OrderAlreadyPaid="order.already-paid",e.OrderCancelled="order.cancelled",e.OrderRefunded="order.refunded",e.OrderExpired="order.expired",e.BookingNotFound="booking.not-found",e.BookingInvalidStatus="booking.invalid-status",e.BookingInvalidTickets="booking.invalid-tickets",e.BookingTicketNotFound="booking.ticket-not-found",e.BookingTicketInvalidToken="booking.ticket-invalid-token",e.BookingTicketExpired="booking.ticket-expired",e.BookingTicketUsed="booking.ticket-used",e.FileNotFound="file.not-found",e.FileInvalidType="file.invalid-type",e.FileTooLarge="file.too-large",e.FileUploadFailed="file.upload-failed",e.ValidationError="validation.error",e.DatabaseError="database.error",e.InternalServerError="server.internal-error",e.NotFound="not-found",e.BadRequest="bad-request",e.Unauthorized="unauthorized",e.Forbidden="forbidden",e.TooManyRequests="too-many-requests",e.ServiceUnavailable="service-unavailable",e.TooManyRequestsAuth="rate-limit.auth",e.TooManyRequestsApi="rate-limit.api",e.WebhookInvalidSignature="webhook.invalid-signature",e.WebhookInvalidEvent="webhook.invalid-event",e.WebhookProcessingFailed="webhook.processing-failed",e.PaymentRequired="payment.required",e.PaymentMethodRequired="payment.method-required",e.PaymentFailed="payment.failed",e.PaymentCancelled="payment.cancelled",e.PaymentRefunded="payment.refunded",e.BillingInvalidAccount="billing.invalid-account",e.BillingAccountRequired="billing.account-required",e.NotificationInvalidType="notification.invalid-type",e.NotificationSendingFailed="notification.sending-failed",e.CacheError="cache.error",e.CacheMiss="cache.miss",e.ExternalServiceError="external-service.error",e.ExternalServiceTimeout="external-service.timeout",e.ExternalServiceUnavailable="external-service.unavailable",e}({});var H=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),Z=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var bi=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var J=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),Q=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Oi=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var wi=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Ni=function(e){return e.Follow="follow",e}({});var Ui=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 Bi=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Fi=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Wi=function(e){return e.User="user",e.Organization="organization",e}({});var T=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Ei=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 Ve(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Ve,"_ts_metadata");var ye=class{static{n(this,"CreateChannelDto");}type;participantUsernames;name};We([classValidator.IsEnum(te),Ve("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([classValidator.IsArray(),classValidator.ArrayMinSize(1),classValidator.ValidateIf(e=>e.type===te.Private),classValidator.ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),classValidator.ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),classValidator.IsString({each:true}),classValidator.Matches(d.USERNAME,{each:true}),Ve("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([classValidator.IsOptional(),classValidator.ValidateIf(e=>e.type===te.Group),classValidator.IsString(),classValidator.Length(1,100),Ve("design:type",String)],ye.prototype,"name",void 0);function Vo(e,t,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(Vo,"_ts_decorate");function Eo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Eo,"_ts_metadata");var Ee=class{static{n(this,"UpdateChannelDto");}name};Vo([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,100),Eo("design:type",String)],Ee.prototype,"name",void 0);function Ho(e,t,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(Ho,"_ts_decorate");function Zo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Zo,"_ts_metadata");var Xe=class{static{n(this,"AddReactionDto");}emoji};Ho([classValidator.IsString(),classValidator.Length(1,10),Zo("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 M=class{static{n(this,"CreateAttachmentDto");}type;url;filename;mimeType};oe([classValidator.IsEnum(Ae),ne("design:type",typeof Ae>"u"?Object:Ae)],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 mt(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(mt,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(gt,"_ts_metadata");var _e=class{static{n(this,"UpdateChannelMessageDto");}content;attachments};mt([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,4e3),gt("design:type",String)],_e.prototype,"content",void 0);mt([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ArrayMaxSize(10),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>M),gt("design:type",Array)],_e.prototype,"attachments",void 0);function q(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(q,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(A,"_ts_metadata");var h=class{static{n(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,o]=this.coordinates;return o>=-90&&o<=90&&t>=-180&&t<=180}};q([classValidator.IsString(),classValidator.IsNotEmpty(),A("design:type",String)],h.prototype,"type",void 0);q([classValidator.IsArray(),classValidator.IsNotEmpty(),A("design:type",Array)],h.prototype,"coordinates",void 0);q([classValidator.ValidateNested(),A("design:type",Function),A("design:paramtypes",[]),A("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{n(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};q([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"name",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),A("design:type",String)],b.prototype,"address",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),A("design:type",String)],b.prototype,"zipCode",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"city",void 0);q([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),A("design:type",String)],b.prototype,"country",void 0);q([classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),A("design:type",typeof h>"u"?Object:h)],b.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 I=class{static{n(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"name",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),de("design:type",String)],I.prototype,"address",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),de("design:type",String)],I.prototype,"zipCode",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"city",void 0);pe([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),de("design:type",String)],I.prototype,"country",void 0);pe([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>h),de("design:type",typeof h>"u"?Object:h)],I.prototype,"geometry",void 0);function k(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(k,"_ts_decorate");function W(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(W,"_ts_metadata");var le=class{static{n(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};k([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),W("design:type",String)],le.prototype,"organizationSlug",void 0);k([classValidator.IsObject(),W("design:type",typeof G>"u"?Object:G)],le.prototype,"identity",void 0);k([classValidator.IsArray(),W("design:type",Array)],le.prototype,"members",void 0);k([classValidator.IsOptional(),classValidator.IsObject(),W("design:type",typeof Location>"u"?Object:Location)],le.prototype,"location",void 0);var G=class{static{n(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};k([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),W("design:type",String)],G.prototype,"displayName",void 0);k([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),W("design:type",String)],G.prototype,"description",void 0);k([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"avatarUrl",void 0);k([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"bannerUrl",void 0);k([classValidator.IsOptional(),classValidator.IsArray(),W("design:type",Array)],G.prototype,"socialLinks",void 0);function E(e,t,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(E,"_ts_decorate");function X(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(X,"_ts_metadata");var fe=class{static{n(this,"UpdateOrganizationDto");}slug;identity;members;location};E([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),X("design:type",String)],fe.prototype,"slug",void 0);E([classValidator.IsObject(),classValidator.IsOptional(),X("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),X("design:type",Array)],fe.prototype,"members",void 0);E([classValidator.IsOptional(),classValidator.IsObject(),X("design:type",typeof Location>"u"?Object:Location)],fe.prototype,"location",void 0);var V=class{static{n(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};E([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),X("design:type",String)],V.prototype,"displayName",void 0);E([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),X("design:type",String)],V.prototype,"description",void 0);E([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),X("design:type",String)],V.prototype,"avatarUrl",void 0);E([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),X("design:type",String)],V.prototype,"bannerUrl",void 0);E([classValidator.IsOptional(),classValidator.IsArray(),X("design:type",Array)],V.prototype,"socialLinks",void 0);var jt=class{static{n(this,"CreateOrganizationEventOrderDto");}cart};var ze=class{static{n(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Ot=class extends ze{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 _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(_,"_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),_("design:type",String)],c.prototype,"name",void 0);w([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),_("design:type",String)],c.prototype,"description",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"price",void 0);w([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);w([classValidator.IsEnum(H),_("design:type",typeof H>"u"?Object:H)],c.prototype,"type",void 0);w([classValidator.IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);w([classValidator.IsEnum(T),_("design:type",typeof T>"u"?Object:T)],c.prototype,"currency",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);w([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function z(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(z,"_ts_decorate");function P(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(P,"_ts_metadata");var l=class{static{n(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};z([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),P("design:type",String)],l.prototype,"name",void 0);z([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),P("design:type",String)],l.prototype,"description",void 0);z([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),P("design:type",Number)],l.prototype,"price",void 0);z([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),P("design:type",Number)],l.prototype,"quantity",void 0);z([classValidator.IsEnum(H),classValidator.IsOptional(),P("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);z([classValidator.IsEnum(Z),classValidator.IsOptional(),P("design:type",typeof Z>"u"?Object:Z)],l.prototype,"category",void 0);z([classValidator.IsEnum(T),classValidator.IsOptional(),P("design:type",typeof T>"u"?Object:T)],l.prototype,"currency",void 0);z([classValidator.IsBoolean(),classValidator.IsOptional(),P("design:type",Boolean)],l.prototype,"isVisible",void 0);z([classValidator.IsBoolean(),classValidator.IsOptional(),P("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);z([classValidator.IsDateString(),classValidator.IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);z([classValidator.IsDateString(),classValidator.IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function x(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(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(S,"_ts_metadata");var f=class{static{n(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([classValidator.IsEnum(Q),classValidator.IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),classValidator.IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:true}),classValidator.IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);function R(e,t,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(R,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(j,"_ts_metadata");var u=class{static{n(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),j("design:type",String)],u.prototype,"title",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.SLUG),j("design:type",String)],u.prototype,"slug",void 0);R([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),j("design:type",String)],u.prototype,"description",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(J),j("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);R([classValidator.IsOptional(),classValidator.IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"flyers",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"trailers",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>I),j("design:type",typeof I>"u"?Object:I)],u.prototype,"location",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:true}),classTransformer.Type(()=>l),j("design:type",Array)],u.prototype,"tickets",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:true}),j("design:type",Array)],u.prototype,"styles",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);R([classValidator.IsOptional(),classValidator.IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"endAt",void 0);function Zt(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(Zt,"_ts_decorate");function Jt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Jt,"_ts_metadata");var Le=class{static{n(this,"CreateOrganizationMemberDto");}user;role};Zt([classValidator.IsString(),classValidator.IsNotEmpty(),Jt("design:type",String)],Le.prototype,"user",void 0);Zt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),Jt("design:type",typeof Y>"u"?Object:Y)],Le.prototype,"role",void 0);function Pn(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(Pn,"_ts_decorate");function Nn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Nn,"_ts_metadata");var tt=class{static{n(this,"UpdateOrganizationMemberDto");}role};Pn([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),Nn("design:type",typeof Y>"u"?Object:Y)],tt.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 U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(U,"_ts_metadata");var Se=class{static{n(this,"CreateUserDto");}identifier;identity;password};D([classValidator.ValidateNested(),classTransformer.Type(()=>ue),U("design:type",typeof ue>"u"?Object:ue)],Se.prototype,"identifier",void 0);D([classValidator.ValidateNested(),classTransformer.Type(()=>B),U("design:type",typeof B>"u"?Object:B)],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."}),U("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(),U("design:type",String)],ue.prototype,"email",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),U("design:type",String)],ue.prototype,"phoneNumber",void 0);D([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(d.USERNAME),U("design:type",String)],ue.prototype,"username",void 0);var B=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"}),U("design:type",String)],B.prototype,"firstName",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],B.prototype,"lastName",void 0);D([classValidator.IsEnum(K),U("design:type",typeof K>"u"?Object:K)],B.prototype,"gender",void 0);D([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),U("design:type",String)],B.prototype,"avatarUrl",void 0);D([classValidator.IsOptional(),classTransformer.Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),classValidator.IsDate(),U("design:type",typeof Date>"u"?Object:Date)],B.prototype,"birthDate",void 0);function Wn(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(Wn,"_ts_decorate");function Vn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(Vn,"_ts_metadata");var nt=class{static{n(this,"RecoveryDto");}identifier};Wn([classValidator.IsNotEmpty(),classValidator.IsString(),Vn("design:type",String)],nt.prototype,"identifier",void 0);function it(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i}n(it,"_ts_decorate");function rt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(rt,"_ts_metadata");var Re=class{static{n(this,"RecoveryResetDto");}tokenId;tokenValue;password};it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenId",void 0);it([classValidator.IsString(),classValidator.IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenValue",void 0);it([classValidator.Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),classValidator.Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),classValidator.Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),classValidator.Matches(d.PASSWORD,{message:"Password must be secure."}),classValidator.IsNotEmpty({message:"Password is required"}),rt("design:type",String)],Re.prototype,"password",void 0);function eo(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(eo,"_ts_decorate");function to(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}n(to,"_ts_metadata");var Fe=class{static{n(this,"SignInUserDto");}identifier;password};eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Fe.prototype,"identifier",void 0);eo([classValidator.IsNotEmpty(),classValidator.IsString(),to("design:type",String)],Fe.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(()=>L),g("design:type",typeof L>"u"?Object:L)],je.prototype,"identity",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{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 L=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)],L.prototype,"firstName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([classValidator.IsOptional(),classValidator.IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([classValidator.IsOptional(),classValidator.IsEnum(K),g("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);m([classValidator.IsOptional(),classValidator.IsDateString(),g("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var F=typeof window<"u";function po(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(po,"buildFileFormData");var Tn=Kn__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}),co=n(async(e,t)=>Tn(e,{...t}).then(r=>r).catch(r=>{throw r.data||console.error(r),r.data}),"request");var pt=class extends Error{static{n(this,"TonightPassAPIError");}response;data;status;constructor(t,o){super(o.message),this.response=t,this.data=o,this.status=t.status;}},Me=class{static{n(this,"Client");}options;url;constructor(t){this.options=t,this.url=(o,r)=>{let a=this.options.baseURL||dt;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 co(s,{method:t,data:r,...i}),qe=p.data;if(!qe.success)throw new pt(p,qe);return qe.data}};function v(e){return e}n(v,"sdk");var lo=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 fo=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 uo=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 mo=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:uo(e)});var go=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 yo=e=>({getAll:n(async t=>e.get("/orders",t),"getAll"),get:n(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var vo=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 ho=n(e=>({create:n(async(t,o,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",r,{organizationSlug:t,eventSlug:o}),"create")}),"organizationsEventsOrders");var bo=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 Io=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 xo=n(e=>({record:n(async(t,o)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:o}),"record")}),"organizationsEventsViews");var So=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"),orders:ho(e),styles:bo(e),tickets:Io(e),views:xo(e)}),"organizationsEvents");var Ro=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 jo=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:vo(e),events:So(e),members:Ro(e)});var Oo=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 Ao=e=>({get:n(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Oo(e)});var wo=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 _o=e=>({me:n(async()=>e.get("/users/@me/notifications"),"me"),count:n(async t=>e.get("/users/@me/notifications/count",t),"count")});var zo=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",po("file",r),{userId:t,userFileType:o}),"uploadFile"),bookings:wo(e),notifications:_o(e)});var Po=e=>({registerToBeta:n(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var No=class{static{n(this,"TonightPass");}client;auth;careers;channels;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Me(t),this.auth=lo(this.client),this.careers=fo(this.client),this.channels=mo(this.client),this.health=go(this.client),this.orders=yo(this.client),this.organizations=jo(this.client),this.profiles=Ao(this.client),this.users=zo(this.client),this.notifications=Po(this.client);}};
2
+ exports.AddParticipantDto=Ge;exports.AddReactionDto=Xe;exports.AttachmentType=Ae;exports.ChannelMemberRole=fi;exports.ChannelStatus=ui;exports.ChannelType=te;exports.Client=Me;exports.CreateAttachmentDto=M;exports.CreateChannelDto=ye;exports.CreateChannelMessageDto=ve;exports.CreateLocationDto=b;exports.CreateOrganizationDto=le;exports.CreateOrganizationEventDto=f;exports.CreateOrganizationEventOrderDto=jt;exports.CreateOrganizationEventStyleDto=ze;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=G;exports.CreateOrganizationMemberDto=Le;exports.CreateUserDto=Se;exports.CreateUserIdentityDto=B;exports.Currency=T;exports.DEFAULT_API_URL=dt;exports.ErrorType=yi;exports.GeoPointDto=h;exports.Language=Ei;exports.OrganizationEventStyleType=bi;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=H;exports.OrganizationEventType=J;exports.OrganizationEventVisibilityType=Q;exports.OrganizationMemberRole=Y;exports.OrganizationMemberStatus=Oi;exports.OrganizationSocialType=wi;exports.ProfileType=Wi;exports.REGEX=d;exports.RecoveryDto=nt;exports.RecoveryResetDto=Re;exports.SignInUserDto=Fe;exports.TonightPass=No;exports.TonightPassAPIError=pt;exports.UpdateChannelDto=Ee;exports.UpdateChannelMessageDto=_e;exports.UpdateLocationDto=I;exports.UpdateOrganizationDto=fe;exports.UpdateOrganizationEventDto=u;exports.UpdateOrganizationEventStyleDto=Ot;exports.UpdateOrganizationEventTicketDto=l;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=tt;exports.UpdateUserDto=je;exports.UserFileType=Fi;exports.UserIdentityGender=K;exports.UserNotificationType=Ni;exports.UserRole=Bi;exports.UserTokenType=Ui;exports.auth=lo;exports.buildFileFormData=po;exports.careers=fo;exports.channels=mo;exports.health=go;exports.isBrowser=F;exports.notifications=Po;exports.orders=yo;exports.organizations=jo;exports.profiles=Ao;exports.request=co;exports.sdk=v;exports.users=zo;//# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map