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.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import'reflect-metadata';import {IsString,Matches,IsEnum,IsArray,ArrayMinSize,ValidateIf,ArrayMaxSize,IsOptional,Length,IsUrl,ValidateNested,IsUUID,IsNotEmpty,IsLowercase,IsObject,IsNumber,Min,IsBoolean,IsDateString,IsEmail,IsPhoneNumber,IsDate,MinLength,MaxLength}from'class-validator';import {Type,Transform}from'class-transformer';import Kn from'redaxios';import {pathcat}from'pathcat';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([IsString(),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([IsEnum(te),Ve("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===te.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===te.Group),ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),IsString({each:true}),Matches(d.USERNAME,{each:true}),Ve("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([IsOptional(),ValidateIf(e=>e.type===te.Group),IsString(),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([IsOptional(),IsString(),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([IsString(),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([IsEnum(Ae),ne("design:type",typeof Ae>"u"?Object:Ae)],M.prototype,"type",void 0);oe([IsUrl(),ne("design:type",String)],M.prototype,"url",void 0);oe([IsOptional(),IsString(),Length(1,255),ne("design:type",String)],M.prototype,"filename",void 0);oe([IsOptional(),IsString(),ne("design:type",String)],M.prototype,"mimeType",void 0);var ve=class{static{n(this,"CreateChannelMessageDto");}content;attachments;replyToId};oe([IsString(),Length(1,4e3),ne("design:type",String)],ve.prototype,"content",void 0);oe([IsOptional(),IsArray(),ArrayMaxSize(10),ValidateNested({each:true}),Type(()=>M),ne("design:type",Array)],ve.prototype,"attachments",void 0);oe([IsOptional(),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([IsOptional(),IsString(),Length(1,4e3),gt("design:type",String)],_e.prototype,"content",void 0);mt([IsOptional(),IsArray(),ArrayMaxSize(10),ValidateNested({each:true}),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([IsString(),IsNotEmpty(),A("design:type",String)],h.prototype,"type",void 0);q([IsArray(),IsNotEmpty(),A("design:type",Array)],h.prototype,"coordinates",void 0);q([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([IsOptional(),IsString(),Length(1,128),A("design:type",String)],b.prototype,"name",void 0);q([IsString(),IsNotEmpty(),Length(1,256),A("design:type",String)],b.prototype,"address",void 0);q([IsString(),IsNotEmpty(),Length(1,32),A("design:type",String)],b.prototype,"zipCode",void 0);q([IsString(),IsNotEmpty(),Length(1,128),A("design:type",String)],b.prototype,"city",void 0);q([IsString(),IsNotEmpty(),Length(1,128),A("design:type",String)],b.prototype,"country",void 0);q([ValidateNested(),Type(()=>h),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([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"name",void 0);pe([IsOptional(),IsString(),Length(1,256),de("design:type",String)],I.prototype,"address",void 0);pe([IsOptional(),IsString(),Length(1,32),de("design:type",String)],I.prototype,"zipCode",void 0);pe([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"city",void 0);pe([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"country",void 0);pe([IsOptional(),ValidateNested(),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([IsOptional(),IsString(),IsLowercase(),Length(1,48),W("design:type",String)],le.prototype,"organizationSlug",void 0);k([IsObject(),W("design:type",typeof G>"u"?Object:G)],le.prototype,"identity",void 0);k([IsArray(),W("design:type",Array)],le.prototype,"members",void 0);k([IsOptional(),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([IsString(),IsNotEmpty(),Length(1,32),W("design:type",String)],G.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),W("design:type",String)],G.prototype,"description",void 0);k([IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"avatarUrl",void 0);k([IsOptional(),IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"bannerUrl",void 0);k([IsOptional(),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([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.USERNAME),X("design:type",String)],fe.prototype,"slug",void 0);E([IsObject(),IsOptional(),X("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);E([IsOptional(),IsArray(),X("design:type",Array)],fe.prototype,"members",void 0);E([IsOptional(),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([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),X("design:type",String)],V.prototype,"displayName",void 0);E([IsString(),Length(16,1024),IsOptional(),X("design:type",String)],V.prototype,"description",void 0);E([IsUrl({protocols:["http","https"]}),IsOptional(),X("design:type",String)],V.prototype,"avatarUrl",void 0);E([IsOptional(),IsUrl({protocols:["http","https"]}),X("design:type",String)],V.prototype,"bannerUrl",void 0);E([IsOptional(),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([IsString(),Length(1,128),_("design:type",String)],c.prototype,"name",void 0);w([IsString(),Length(1,1024),IsOptional(),_("design:type",String)],c.prototype,"description",void 0);w([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"price",void 0);w([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);w([IsEnum(H),_("design:type",typeof H>"u"?Object:H)],c.prototype,"type",void 0);w([IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);w([IsEnum(T),_("design:type",typeof T>"u"?Object:T)],c.prototype,"currency",void 0);w([IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);w([IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([IsDateString(),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([IsString(),Length(1,128),IsOptional(),P("design:type",String)],l.prototype,"name",void 0);z([IsString(),Length(1,1024),IsOptional(),P("design:type",String)],l.prototype,"description",void 0);z([IsNumber(),Min(0),IsOptional(),P("design:type",Number)],l.prototype,"price",void 0);z([IsNumber(),Min(0),IsOptional(),P("design:type",Number)],l.prototype,"quantity",void 0);z([IsEnum(H),IsOptional(),P("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);z([IsEnum(Z),IsOptional(),P("design:type",typeof Z>"u"?Object:Z)],l.prototype,"category",void 0);z([IsEnum(T),IsOptional(),P("design:type",typeof T>"u"?Object:T)],l.prototype,"currency",void 0);z([IsBoolean(),IsOptional(),P("design:type",Boolean)],l.prototype,"isVisible",void 0);z([IsBoolean(),IsOptional(),P("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);z([IsDateString(),IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);z([IsDateString(),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([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([IsEnum(J),IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([IsEnum(Q),IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([IsArray(),IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([IsArray(),IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([IsObject(),ValidateNested(),Type(()=>b),IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);x([IsArray(),ValidateNested({each:true}),Type(()=>c),IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([IsArray(),IsString({each:true}),IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([IsDateString(),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([IsOptional(),IsString(),Length(1,64),j("design:type",String)],u.prototype,"title",void 0);R([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.SLUG),j("design:type",String)],u.prototype,"slug",void 0);R([IsOptional(),IsString(),Length(16,2048),j("design:type",String)],u.prototype,"description",void 0);R([IsOptional(),IsEnum(J),j("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);R([IsOptional(),IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);R([IsOptional(),IsArray(),IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"flyers",void 0);R([IsOptional(),IsArray(),IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"trailers",void 0);R([IsOptional(),IsObject(),ValidateNested(),Type(()=>I),j("design:type",typeof I>"u"?Object:I)],u.prototype,"location",void 0);R([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>l),j("design:type",Array)],u.prototype,"tickets",void 0);R([IsOptional(),IsArray(),IsString({each:true}),j("design:type",Array)],u.prototype,"styles",void 0);R([IsOptional(),IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);R([IsOptional(),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([IsString(),IsNotEmpty(),Jt("design:type",String)],Le.prototype,"user",void 0);Zt([IsEnum(Y),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([IsEnum(Y),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([ValidateNested(),Type(()=>ue),U("design:type",typeof ue>"u"?Object:ue)],Se.prototype,"identifier",void 0);D([ValidateNested(),Type(()=>B),U("design:type",typeof B>"u"?Object:B)],Se.prototype,"identity",void 0);D([IsString(),Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),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([IsOptional(),IsString(),IsEmail(),U("design:type",String)],ue.prototype,"email",void 0);D([IsOptional(),IsString(),IsPhoneNumber(),U("design:type",String)],ue.prototype,"phoneNumber",void 0);D([IsString(),IsString(),IsLowercase(),Length(3,48),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([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],B.prototype,"firstName",void 0);D([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],B.prototype,"lastName",void 0);D([IsEnum(K),U("design:type",typeof K>"u"?Object:K)],B.prototype,"gender",void 0);D([IsOptional(),IsUrl({protocols:["http","https"]}),U("design:type",String)],B.prototype,"avatarUrl",void 0);D([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),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([IsNotEmpty(),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([IsString(),IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenId",void 0);it([IsString(),IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenValue",void 0);it([Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(d.PASSWORD,{message:"Password must be secure."}),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([IsNotEmpty(),IsString(),to("design:type",String)],Fe.prototype,"identifier",void 0);eo([IsNotEmpty(),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([IsOptional(),IsObject(),ValidateNested(),Type(()=>ge),g("design:type",typeof ge>"u"?Object:ge)],je.prototype,"identifier",void 0);m([IsOptional(),IsObject(),ValidateNested(),Type(()=>L),g("design:type",typeof L>"u"?Object:L)],je.prototype,"identity",void 0);m([IsOptional(),IsString(),MinLength(8),MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{n(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([IsOptional(),IsString(),IsEmail(),g("design:type",String)],ge.prototype,"email",void 0);m([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],ge.prototype,"phoneNumber",void 0);m([IsOptional(),IsString(),IsLowercase(),Length(3,48),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([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],L.prototype,"firstName",void 0);m([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([IsOptional(),IsString(),Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([IsOptional(),IsString(),Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([IsOptional(),IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([IsOptional(),IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([IsOptional(),IsEnum(K),g("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);m([IsOptional(),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.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(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
- export{Ge as AddParticipantDto,Xe as AddReactionDto,Ae as AttachmentType,fi as ChannelStatus,te as ChannelType,Me as Client,M as CreateAttachmentDto,ye as CreateChannelDto,ve as CreateChannelMessageDto,b as CreateLocationDto,le as CreateOrganizationDto,f as CreateOrganizationEventDto,jt as CreateOrganizationEventOrderDto,ze as CreateOrganizationEventStyleDto,c as CreateOrganizationEventTicketDto,G as CreateOrganizationIdentityDto,Le as CreateOrganizationMemberDto,Se as CreateUserDto,B as CreateUserIdentityDto,T as Currency,dt as DEFAULT_API_URL,gi as ErrorType,h as GeoPointDto,Vi as Language,hi as OrganizationEventStyleType,Z as OrganizationEventTicketCategory,H as OrganizationEventTicketType,J as OrganizationEventType,Q as OrganizationEventVisibilityType,Y as OrganizationMemberRole,ji as OrganizationMemberStatus,Ai as OrganizationSocialType,ki as ProfileType,d as REGEX,nt as RecoveryDto,Re as RecoveryResetDto,Fe as SignInUserDto,No as TonightPass,pt as TonightPassAPIError,Ee as UpdateChannelDto,_e as UpdateChannelMessageDto,I as UpdateLocationDto,fe as UpdateOrganizationDto,u as UpdateOrganizationEventDto,Ot as UpdateOrganizationEventStyleDto,l as UpdateOrganizationEventTicketDto,V as UpdateOrganizationIdentityDto,tt as UpdateOrganizationMemberDto,je as UpdateUserDto,Bi as UserFileType,K as UserIdentityGender,Pi as UserNotificationType,Li as UserRole,Di as UserTokenType,lo as auth,po as buildFileFormData,fo as careers,mo as channels,go as health,F as isBrowser,Po as notifications,yo as orders,jo as organizations,Ao as profiles,co as request,v as sdk,zo as users};//# sourceMappingURL=index.mjs.map
1
+ import'reflect-metadata';import {IsString,Matches,IsEnum,IsArray,ArrayMinSize,ValidateIf,ArrayMaxSize,IsOptional,Length,IsUrl,ValidateNested,IsUUID,IsNotEmpty,IsLowercase,IsObject,IsNumber,Min,IsBoolean,IsDateString,IsEmail,IsPhoneNumber,IsDate,MinLength,MaxLength}from'class-validator';import {Type,Transform}from'class-transformer';import Kn from'redaxios';import {pathcat}from'pathcat';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([IsString(),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([IsEnum(te),Ve("design:type",typeof te>"u"?Object:te)],ye.prototype,"type",void 0);We([IsArray(),ArrayMinSize(1),ValidateIf(e=>e.type===te.Private),ArrayMaxSize(2,{message:"Private channels can only have 2 participants"}),ValidateIf(e=>e.type===te.Group),ArrayMinSize(3,{message:"Group channels must have at least 3 participants"}),ArrayMaxSize(50,{message:"Group channels can have at most 50 participants"}),IsString({each:true}),Matches(d.USERNAME,{each:true}),Ve("design:type",Array)],ye.prototype,"participantUsernames",void 0);We([IsOptional(),ValidateIf(e=>e.type===te.Group),IsString(),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([IsOptional(),IsString(),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([IsString(),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([IsEnum(Ae),ne("design:type",typeof Ae>"u"?Object:Ae)],M.prototype,"type",void 0);oe([IsUrl(),ne("design:type",String)],M.prototype,"url",void 0);oe([IsOptional(),IsString(),Length(1,255),ne("design:type",String)],M.prototype,"filename",void 0);oe([IsOptional(),IsString(),ne("design:type",String)],M.prototype,"mimeType",void 0);var ve=class{static{n(this,"CreateChannelMessageDto");}content;attachments;replyToId};oe([IsString(),Length(1,4e3),ne("design:type",String)],ve.prototype,"content",void 0);oe([IsOptional(),IsArray(),ArrayMaxSize(10),ValidateNested({each:true}),Type(()=>M),ne("design:type",Array)],ve.prototype,"attachments",void 0);oe([IsOptional(),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([IsOptional(),IsString(),Length(1,4e3),gt("design:type",String)],_e.prototype,"content",void 0);mt([IsOptional(),IsArray(),ArrayMaxSize(10),ValidateNested({each:true}),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([IsString(),IsNotEmpty(),A("design:type",String)],h.prototype,"type",void 0);q([IsArray(),IsNotEmpty(),A("design:type",Array)],h.prototype,"coordinates",void 0);q([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([IsOptional(),IsString(),Length(1,128),A("design:type",String)],b.prototype,"name",void 0);q([IsString(),IsNotEmpty(),Length(1,256),A("design:type",String)],b.prototype,"address",void 0);q([IsString(),IsNotEmpty(),Length(1,32),A("design:type",String)],b.prototype,"zipCode",void 0);q([IsString(),IsNotEmpty(),Length(1,128),A("design:type",String)],b.prototype,"city",void 0);q([IsString(),IsNotEmpty(),Length(1,128),A("design:type",String)],b.prototype,"country",void 0);q([ValidateNested(),Type(()=>h),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([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"name",void 0);pe([IsOptional(),IsString(),Length(1,256),de("design:type",String)],I.prototype,"address",void 0);pe([IsOptional(),IsString(),Length(1,32),de("design:type",String)],I.prototype,"zipCode",void 0);pe([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"city",void 0);pe([IsOptional(),IsString(),Length(1,128),de("design:type",String)],I.prototype,"country",void 0);pe([IsOptional(),ValidateNested(),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([IsOptional(),IsString(),IsLowercase(),Length(1,48),W("design:type",String)],le.prototype,"organizationSlug",void 0);k([IsObject(),W("design:type",typeof G>"u"?Object:G)],le.prototype,"identity",void 0);k([IsArray(),W("design:type",Array)],le.prototype,"members",void 0);k([IsOptional(),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([IsString(),IsNotEmpty(),Length(1,32),W("design:type",String)],G.prototype,"displayName",void 0);k([IsString(),Length(16,1024),IsOptional(),W("design:type",String)],G.prototype,"description",void 0);k([IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"avatarUrl",void 0);k([IsOptional(),IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),W("design:type",String)],G.prototype,"bannerUrl",void 0);k([IsOptional(),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([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.USERNAME),X("design:type",String)],fe.prototype,"slug",void 0);E([IsObject(),IsOptional(),X("design:type",typeof V>"u"?Object:V)],fe.prototype,"identity",void 0);E([IsOptional(),IsArray(),X("design:type",Array)],fe.prototype,"members",void 0);E([IsOptional(),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([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),X("design:type",String)],V.prototype,"displayName",void 0);E([IsString(),Length(16,1024),IsOptional(),X("design:type",String)],V.prototype,"description",void 0);E([IsUrl({protocols:["http","https"]}),IsOptional(),X("design:type",String)],V.prototype,"avatarUrl",void 0);E([IsOptional(),IsUrl({protocols:["http","https"]}),X("design:type",String)],V.prototype,"bannerUrl",void 0);E([IsOptional(),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([IsString(),Length(1,128),_("design:type",String)],c.prototype,"name",void 0);w([IsString(),Length(1,1024),IsOptional(),_("design:type",String)],c.prototype,"description",void 0);w([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"price",void 0);w([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);w([IsEnum(H),_("design:type",typeof H>"u"?Object:H)],c.prototype,"type",void 0);w([IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);w([IsEnum(T),_("design:type",typeof T>"u"?Object:T)],c.prototype,"currency",void 0);w([IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);w([IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);w([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);w([IsDateString(),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([IsString(),Length(1,128),IsOptional(),P("design:type",String)],l.prototype,"name",void 0);z([IsString(),Length(1,1024),IsOptional(),P("design:type",String)],l.prototype,"description",void 0);z([IsNumber(),Min(0),IsOptional(),P("design:type",Number)],l.prototype,"price",void 0);z([IsNumber(),Min(0),IsOptional(),P("design:type",Number)],l.prototype,"quantity",void 0);z([IsEnum(H),IsOptional(),P("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);z([IsEnum(Z),IsOptional(),P("design:type",typeof Z>"u"?Object:Z)],l.prototype,"category",void 0);z([IsEnum(T),IsOptional(),P("design:type",typeof T>"u"?Object:T)],l.prototype,"currency",void 0);z([IsBoolean(),IsOptional(),P("design:type",Boolean)],l.prototype,"isVisible",void 0);z([IsBoolean(),IsOptional(),P("design:type",Boolean)],l.prototype,"isFeesIncluded",void 0);z([IsDateString(),IsOptional(),P("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);z([IsDateString(),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([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],f.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.SLUG),S("design:type",String)],f.prototype,"slug",void 0);x([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],f.prototype,"description",void 0);x([IsEnum(J),IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],f.prototype,"type",void 0);x([IsEnum(Q),IsNotEmpty(),S("design:type",typeof Q>"u"?Object:Q)],f.prototype,"visibility",void 0);x([IsArray(),IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"flyers",void 0);x([IsArray(),IsUrl({},{each:true}),S("design:type",Array)],f.prototype,"trailers",void 0);x([IsObject(),ValidateNested(),Type(()=>b),IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],f.prototype,"location",void 0);x([IsArray(),ValidateNested({each:true}),Type(()=>c),IsNotEmpty(),S("design:type",Array)],f.prototype,"tickets",void 0);x([IsArray(),IsString({each:true}),IsNotEmpty(),S("design:type",Array)],f.prototype,"styles",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);x([IsDateString(),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([IsOptional(),IsString(),Length(1,64),j("design:type",String)],u.prototype,"title",void 0);R([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(d.SLUG),j("design:type",String)],u.prototype,"slug",void 0);R([IsOptional(),IsString(),Length(16,2048),j("design:type",String)],u.prototype,"description",void 0);R([IsOptional(),IsEnum(J),j("design:type",typeof J>"u"?Object:J)],u.prototype,"type",void 0);R([IsOptional(),IsEnum(Q),j("design:type",typeof Q>"u"?Object:Q)],u.prototype,"visibility",void 0);R([IsOptional(),IsArray(),IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"flyers",void 0);R([IsOptional(),IsArray(),IsUrl({},{each:true}),j("design:type",Array)],u.prototype,"trailers",void 0);R([IsOptional(),IsObject(),ValidateNested(),Type(()=>I),j("design:type",typeof I>"u"?Object:I)],u.prototype,"location",void 0);R([IsOptional(),IsArray(),ValidateNested({each:true}),Type(()=>l),j("design:type",Array)],u.prototype,"tickets",void 0);R([IsOptional(),IsArray(),IsString({each:true}),j("design:type",Array)],u.prototype,"styles",void 0);R([IsOptional(),IsDateString(),j("design:type",typeof Date>"u"?Object:Date)],u.prototype,"startAt",void 0);R([IsOptional(),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([IsString(),IsNotEmpty(),Jt("design:type",String)],Le.prototype,"user",void 0);Zt([IsEnum(Y),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([IsEnum(Y),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([ValidateNested(),Type(()=>ue),U("design:type",typeof ue>"u"?Object:ue)],Se.prototype,"identifier",void 0);D([ValidateNested(),Type(()=>B),U("design:type",typeof B>"u"?Object:B)],Se.prototype,"identity",void 0);D([IsString(),Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),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([IsOptional(),IsString(),IsEmail(),U("design:type",String)],ue.prototype,"email",void 0);D([IsOptional(),IsString(),IsPhoneNumber(),U("design:type",String)],ue.prototype,"phoneNumber",void 0);D([IsString(),IsString(),IsLowercase(),Length(3,48),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([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"First name must be composed of letters only"}),U("design:type",String)],B.prototype,"firstName",void 0);D([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"Last name must be composed of letters only"}),U("design:type",String)],B.prototype,"lastName",void 0);D([IsEnum(K),U("design:type",typeof K>"u"?Object:K)],B.prototype,"gender",void 0);D([IsOptional(),IsUrl({protocols:["http","https"]}),U("design:type",String)],B.prototype,"avatarUrl",void 0);D([IsOptional(),Transform(({value:e})=>{if(!e)return;let t=new Date(e);return isNaN(t.getTime())?e:t}),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([IsNotEmpty(),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([IsString(),IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenId",void 0);it([IsString(),IsNotEmpty(),rt("design:type",String)],Re.prototype,"tokenValue",void 0);it([Matches(d.PASSWORD_MIN_LENGTH,{message:"Password must be at least 8 characters long."}),Matches(d.PASSWORD_UPPERCASE,{message:"Password must contain at least one uppercase letter."}),Matches(d.PASSWORD_LOWERCASE,{message:"Password must contain at least one lowercase letter."}),Matches(d.PASSWORD,{message:"Password must be secure."}),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([IsNotEmpty(),IsString(),to("design:type",String)],Fe.prototype,"identifier",void 0);eo([IsNotEmpty(),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([IsOptional(),IsObject(),ValidateNested(),Type(()=>ge),g("design:type",typeof ge>"u"?Object:ge)],je.prototype,"identifier",void 0);m([IsOptional(),IsObject(),ValidateNested(),Type(()=>L),g("design:type",typeof L>"u"?Object:L)],je.prototype,"identity",void 0);m([IsOptional(),IsString(),MinLength(8),MaxLength(128),g("design:type",String)],je.prototype,"password",void 0);var ge=class{static{n(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};m([IsOptional(),IsString(),IsEmail(),g("design:type",String)],ge.prototype,"email",void 0);m([IsOptional(),IsString(),IsPhoneNumber(),g("design:type",String)],ge.prototype,"phoneNumber",void 0);m([IsOptional(),IsString(),IsLowercase(),Length(3,48),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([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"First name must be composed of letters only"}),g("design:type",String)],L.prototype,"firstName",void 0);m([IsOptional(),IsString(),Length(2,32),Matches(d.NAME,{message:"Last name must be composed of letters only"}),g("design:type",String)],L.prototype,"lastName",void 0);m([IsOptional(),IsString(),Length(1,32),g("design:type",String)],L.prototype,"displayName",void 0);m([IsOptional(),IsString(),Length(1,128),g("design:type",String)],L.prototype,"description",void 0);m([IsOptional(),IsUrl(),g("design:type",Object)],L.prototype,"avatarUrl",void 0);m([IsOptional(),IsUrl(),g("design:type",Object)],L.prototype,"bannerUrl",void 0);m([IsOptional(),IsEnum(K),g("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);m([IsOptional(),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.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(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
+ export{Ge as AddParticipantDto,Xe as AddReactionDto,Ae as AttachmentType,fi as ChannelMemberRole,ui as ChannelStatus,te as ChannelType,Me as Client,M as CreateAttachmentDto,ye as CreateChannelDto,ve as CreateChannelMessageDto,b as CreateLocationDto,le as CreateOrganizationDto,f as CreateOrganizationEventDto,jt as CreateOrganizationEventOrderDto,ze as CreateOrganizationEventStyleDto,c as CreateOrganizationEventTicketDto,G as CreateOrganizationIdentityDto,Le as CreateOrganizationMemberDto,Se as CreateUserDto,B as CreateUserIdentityDto,T as Currency,dt as DEFAULT_API_URL,yi as ErrorType,h as GeoPointDto,Ei as Language,bi as OrganizationEventStyleType,Z as OrganizationEventTicketCategory,H as OrganizationEventTicketType,J as OrganizationEventType,Q as OrganizationEventVisibilityType,Y as OrganizationMemberRole,Oi as OrganizationMemberStatus,wi as OrganizationSocialType,Wi as ProfileType,d as REGEX,nt as RecoveryDto,Re as RecoveryResetDto,Fe as SignInUserDto,No as TonightPass,pt as TonightPassAPIError,Ee as UpdateChannelDto,_e as UpdateChannelMessageDto,I as UpdateLocationDto,fe as UpdateOrganizationDto,u as UpdateOrganizationEventDto,Ot as UpdateOrganizationEventStyleDto,l as UpdateOrganizationEventTicketDto,V as UpdateOrganizationIdentityDto,tt as UpdateOrganizationMemberDto,je as UpdateUserDto,Fi as UserFileType,K as UserIdentityGender,Ni as UserNotificationType,Bi as UserRole,Ui as UserTokenType,lo as auth,po as buildFileFormData,fo as careers,mo as channels,go as health,F as isBrowser,Po as notifications,yo as orders,jo as organizations,Ao as profiles,co as request,v as sdk,zo as users};//# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map