tonightpass 0.0.113 → 0.0.115

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 {Type}from'class-transformer';import {IsString,IsNotEmpty,IsArray,Length,IsNumber,ValidateNested,IsOptional,IsLowercase,IsObject,IsUrl,Matches,Min,IsEnum,IsBoolean,IsDateString,IsEmail,IsPhoneNumber,MinLength,MaxLength}from'class-validator';import Bo from'redaxios';import {pathcat}from'pathcat';var Tt=Object.defineProperty;var o=(e,t)=>Tt(e,"name",{value:t,configurable:!0});var qe="https://api.tonightpass.com";var f={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,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 M(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(M,"_ts_decorate");function I(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(I,"_ts_metadata");var h=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,r]=this.coordinates;return r>=-90&&r<=90&&t>=-180&&t<=180}};M([IsString(),IsNotEmpty(),I("design:type",String)],h.prototype,"type",void 0);M([IsArray(),IsNotEmpty(),Length(2,2),IsNumber({},{each:!0}),I("design:type",Array)],h.prototype,"coordinates",void 0);M([ValidateNested(),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",Boolean)],h.prototype,"validate",null);var v=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};M([IsOptional(),IsString(),Length(1,128),I("design:type",String)],v.prototype,"name",void 0);M([IsString(),IsNotEmpty(),Length(1,256),I("design:type",String)],v.prototype,"address",void 0);M([IsString(),IsNotEmpty(),Length(1,32),I("design:type",String)],v.prototype,"zipCode",void 0);M([IsString(),IsNotEmpty(),Length(1,128),I("design:type",String)],v.prototype,"city",void 0);M([IsString(),IsNotEmpty(),Length(1,128),I("design:type",String)],v.prototype,"country",void 0);M([ValidateNested(),Type(()=>h),IsNotEmpty(),I("design:type",typeof h>"u"?Object:h)],v.prototype,"geometry",void 0);function ne(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(ne,"_ts_decorate");function ie(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ie,"_ts_metadata");var b=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],b.prototype,"name",void 0);ne([IsOptional(),IsString(),Length(1,256),ie("design:type",String)],b.prototype,"address",void 0);ne([IsOptional(),IsString(),Length(1,32),ie("design:type",String)],b.prototype,"zipCode",void 0);ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],b.prototype,"city",void 0);ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],b.prototype,"country",void 0);ne([IsOptional(),ValidateNested(),Type(()=>h),ie("design:type",typeof h>"u"?Object:h)],b.prototype,"geometry",void 0);function G(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(G,"_ts_decorate");function q(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(q,"_ts_metadata");var pe=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([IsOptional(),IsString(),IsLowercase(),Length(1,48),q("design:type",String)],pe.prototype,"organizationSlug",void 0);G([IsObject(),q("design:type",typeof B>"u"?Object:B)],pe.prototype,"identity",void 0);G([IsArray(),q("design:type",Array)],pe.prototype,"members",void 0);G([IsOptional(),IsObject(),q("design:type",typeof Location>"u"?Object:Location)],pe.prototype,"location",void 0);var B=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([IsString(),IsNotEmpty(),Length(1,32),q("design:type",String)],B.prototype,"displayName",void 0);G([IsString(),Length(16,1024),IsOptional(),q("design:type",String)],B.prototype,"description",void 0);G([IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"avatarUrl",void 0);G([IsOptional(),IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"bannerUrl",void 0);G([IsOptional(),IsArray(),q("design:type",Array)],B.prototype,"socialLinks",void 0);function W(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(W,"_ts_decorate");function $(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($,"_ts_metadata");var ae=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};W([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),$("design:type",String)],ae.prototype,"slug",void 0);W([IsObject(),IsOptional(),$("design:type",typeof V>"u"?Object:V)],ae.prototype,"identity",void 0);W([IsOptional(),IsArray(),$("design:type",Array)],ae.prototype,"members",void 0);W([IsOptional(),IsObject(),$("design:type",typeof Location>"u"?Object:Location)],ae.prototype,"location",void 0);var V=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};W([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),$("design:type",String)],V.prototype,"displayName",void 0);W([IsString(),Length(16,1024),IsOptional(),$("design:type",String)],V.prototype,"description",void 0);W([IsUrl({protocols:["http","https"]}),IsOptional(),$("design:type",String)],V.prototype,"avatarUrl",void 0);W([IsOptional(),IsUrl({protocols:["http","https"]}),$("design:type",String)],V.prototype,"bannerUrl",void 0);W([IsOptional(),IsArray(),$("design:type",Array)],V.prototype,"socialLinks",void 0);var He=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var ve=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Je=class extends ve{static{o(this,"UpdateOrganizationEventStyleDto");}};var k=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 Ir=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var H=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),J=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Er=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 Lr=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Mr=function(e){return e.Follow="follow",e}({});var Gr=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 Vr=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}({}),Wr=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Zr=function(e){return e.User="user",e.Organization="organization",e}({});var Q=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Jr=function(e){return e.FR="fr",e.EN="en",e}({});function A(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(A,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};A([IsString(),Length(1,128),_("design:type",String)],c.prototype,"name",void 0);A([IsString(),Length(1,1024),_("design:type",String)],c.prototype,"description",void 0);A([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"price",void 0);A([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);A([IsEnum(k),_("design:type",typeof k>"u"?Object:k)],c.prototype,"type",void 0);A([IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);A([IsEnum(Q),_("design:type",typeof Q>"u"?Object:Q)],c.prototype,"currency",void 0);A([IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);A([IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);A([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);A([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function O(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(O,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var d=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};O([IsString(),Length(1,128),IsOptional(),N("design:type",String)],d.prototype,"name",void 0);O([IsString(),Length(1,1024),IsOptional(),N("design:type",String)],d.prototype,"description",void 0);O([IsNumber(),Min(0),IsOptional(),N("design:type",Number)],d.prototype,"price",void 0);O([IsNumber(),Min(0),IsOptional(),N("design:type",Number)],d.prototype,"quantity",void 0);O([IsEnum(k),IsOptional(),N("design:type",typeof k>"u"?Object:k)],d.prototype,"type",void 0);O([IsEnum(Z),IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],d.prototype,"category",void 0);O([IsEnum(Q),IsOptional(),N("design:type",typeof Q>"u"?Object:Q)],d.prototype,"currency",void 0);O([IsBoolean(),IsOptional(),N("design:type",Boolean)],d.prototype,"isVisible",void 0);O([IsBoolean(),IsOptional(),N("design:type",Boolean)],d.prototype,"isFeesIncluded",void 0);O([IsDateString(),IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"startAt",void 0);O([IsDateString(),IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"endAt",void 0);function x(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],l.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.SLUG),S("design:type",String)],l.prototype,"slug",void 0);x([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],l.prototype,"description",void 0);x([IsEnum(H),IsNotEmpty(),S("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);x([IsEnum(J),IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],l.prototype,"visibility",void 0);x([IsArray(),IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"flyers",void 0);x([IsArray(),IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"trailers",void 0);x([IsObject(),ValidateNested(),Type(()=>v),IsNotEmpty(),S("design:type",typeof v>"u"?Object:v)],l.prototype,"location",void 0);x([IsArray(),ValidateNested({each:!0}),Type(()=>c),IsNotEmpty(),S("design:type",Array)],l.prototype,"tickets",void 0);x([IsArray(),IsString({each:!0}),IsNotEmpty(),S("design:type",Array)],l.prototype,"styles",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function j(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var y=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};j([IsOptional(),IsString(),Length(1,64),R("design:type",String)],y.prototype,"title",void 0);j([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.SLUG),R("design:type",String)],y.prototype,"slug",void 0);j([IsOptional(),IsString(),Length(16,2048),R("design:type",String)],y.prototype,"description",void 0);j([IsOptional(),IsEnum(H),R("design:type",typeof H>"u"?Object:H)],y.prototype,"type",void 0);j([IsOptional(),IsEnum(J),R("design:type",typeof J>"u"?Object:J)],y.prototype,"visibility",void 0);j([IsOptional(),IsArray(),IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"flyers",void 0);j([IsOptional(),IsArray(),IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"trailers",void 0);j([IsOptional(),IsObject(),ValidateNested(),Type(()=>b),R("design:type",typeof b>"u"?Object:b)],y.prototype,"location",void 0);j([IsOptional(),IsArray(),ValidateNested({each:!0}),Type(()=>d),R("design:type",Array)],y.prototype,"tickets",void 0);j([IsOptional(),IsArray(),IsString({each:!0}),R("design:type",Array)],y.prototype,"styles",void 0);j([IsOptional(),IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);j([IsOptional(),IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);function bt(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(bt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var Re=class{static{o(this,"CreateOrganizationMemberDto");}user;role};bt([IsString(),IsNotEmpty(),xt("design:type",String)],Re.prototype,"user",void 0);bt([IsEnum(Y),IsNotEmpty(),xt("design:type",typeof Y>"u"?Object:Y)],Re.prototype,"role",void 0);function So(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(So,"_ts_decorate");function jo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(jo,"_ts_metadata");var Fe=class{static{o(this,"UpdateOrganizationMemberDto");}role};So([IsEnum(Y),IsNotEmpty(),jo("design:type",typeof Y>"u"?Object:Y)],Fe.prototype,"role",void 0);function E(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(E,"_ts_decorate");function P(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(P,"_ts_metadata");var me=class{static{o(this,"CreateUserDto");}identifier;identity;password};E([ValidateNested(),Type(()=>fe),P("design:type",typeof fe>"u"?Object:fe)],me.prototype,"identifier",void 0);E([ValidateNested(),Type(()=>U),P("design:type",typeof U>"u"?Object:U)],me.prototype,"identity",void 0);E([IsString(),Matches(f.PASSWORD,{message:"Password must be secure."}),P("design:type",String)],me.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};E([IsOptional(),IsString(),IsEmail(),P("design:type",String)],fe.prototype,"email",void 0);E([IsOptional(),IsString(),IsPhoneNumber(),P("design:type",String)],fe.prototype,"phoneNumber",void 0);E([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),P("design:type",String)],fe.prototype,"username",void 0);var U=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};E([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"First name must be composed of letters only"}),P("design:type",String)],U.prototype,"firstName",void 0);E([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"Last name must be composed of letters only"}),P("design:type",String)],U.prototype,"lastName",void 0);E([IsEnum(K),P("design:type",typeof K>"u"?Object:K)],U.prototype,"gender",void 0);E([IsOptional(),IsUrl({protocols:["http","https"]}),P("design:type",String)],U.prototype,"avatarUrl",void 0);E([IsOptional(),IsDateString(),P("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);function wt(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(wt,"_ts_decorate");function It(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(It,"_ts_metadata");var Ie=class{static{o(this,"SignInUserDto");}identifier;password};wt([IsNotEmpty(),IsString(),It("design:type",String)],Ie.prototype,"identifier",void 0);wt([IsNotEmpty(),IsString(),It("design:type",String)],Ie.prototype,"password",void 0);function u(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function m(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(m,"_ts_metadata");var ge=class{static{o(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>de),m("design:type",typeof de>"u"?Object:de)],ge.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>L),m("design:type",typeof L>"u"?Object:L)],ge.prototype,"identity",void 0);u([IsOptional(),IsString(),MinLength(8),MaxLength(128),m("design:type",String)],ge.prototype,"password",void 0);var de=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),m("design:type",String)],de.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),m("design:type",String)],de.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),m("design:type",String)],de.prototype,"username",void 0);var L=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};u([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"First name must be composed of letters only"}),m("design:type",String)],L.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"Last name must be composed of letters only"}),m("design:type",String)],L.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),m("design:type",String)],L.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),m("design:type",String)],L.prototype,"description",void 0);u([IsOptional(),IsUrl(),m("design:type",Object)],L.prototype,"avatarUrl",void 0);u([IsOptional(),IsUrl(),m("design:type",Object)],L.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum(K),m("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);u([IsOptional(),IsDateString(),m("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var F=typeof window<"u";function Pt(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(i=>r.append(e,i)):t.forEach(i=>r.append(e,i)),r}o(Pt,"buildFileFormData");var Go=Bo.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}),Lt=o(async(e,t)=>Go(e,{...t}).then(i=>i).catch(i=>{throw i.data||console.error(i),i.data}),"request");var Ge=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},Ae=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,i)=>{let s=this.options.baseURL||qe;return pathcat(s,r,i)};}setOptions(t){this.options=t;}async get(t,r,i){return this.requester("GET",t,void 0,r,i)}async post(t,r,i,s){return this.requester("POST",t,r,i,s)}async put(t,r,i,s){return this.requester("PUT",t,r,i,s)}async patch(t,r,i,s){return this.requester("PATCH",t,r,i,s)}async delete(t,r,i,s){return this.requester("DELETE",t,r,i,s)}async requester(t,r,i,s={},n={}){let p=this.url(r,s);if(i!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await Lt(p,{method:t,data:i,...n}),_e=a.data;if(!_e.success)throw new Ge(a,_e);return _e.data}};function z(e){return e}o(z,"sdk");var zt=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(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:o(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:o(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 Ut=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ft=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Mt=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Bt=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(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:o(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 Gt=o(e=>({create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",i,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var qt=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Vt=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,i)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:i}),"get"),create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",i,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,i,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:r,ticketId:i}),"update"),delete:o(async(t,r,i)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:i}),"delete")}),"organizationsEventsTickets");var Wt=o(e=>({record:o(async(t,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:r}),"record"),heartbeat:o(async(t,r,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/views/:viewId",void 0,{organizationSlug:t,eventSlug:r,viewId:i}),"heartbeat")}),"organizationsEventsViews");var $t=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug",i,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Gt(e),styles:qt(e),tickets:Vt(e),views:Wt(e)}),"organizationsEvents");var Ct=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Xt=e=>({getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Bt(e),events:$t(e),members:Ct(e)});var kt=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,r)=>e.get("/profiles/:username/relationships/followers",{username:t,...r}),"getFollowers")});var Zt=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:kt(e)});var Ht=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var Jt=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Yt=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update"),uploadFile:o(async(t,r,i)=>e.post("/users/:userId/files/:userFileType",Pt("file",i),{userId:t,userFileType:r}),"uploadFile"),bookings:Ht(e),notifications:Jt(e)});var Kt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Qt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Ae(t),this.auth=zt(this.client),this.careers=Ut(this.client),this.health=Ft(this.client),this.orders=Mt(this.client),this.organizations=Xt(this.client),this.profiles=Zt(this.client),this.users=Yt(this.client),this.notifications=Kt(this.client);}};
2
- export{Ae as Client,v as CreateLocationDto,pe as CreateOrganizationDto,l as CreateOrganizationEventDto,He as CreateOrganizationEventOrderDto,ve as CreateOrganizationEventStyleDto,c as CreateOrganizationEventTicketDto,B as CreateOrganizationIdentityDto,Re as CreateOrganizationMemberDto,me as CreateUserDto,U as CreateUserIdentityDto,Q as Currency,qe as DEFAULT_API_URL,h as GeoPointDto,Jr as Language,Ir as OrganizationEventStyleType,Z as OrganizationEventTicketCategory,k as OrganizationEventTicketType,H as OrganizationEventType,J as OrganizationEventVisibilityType,Y as OrganizationMemberRole,Er as OrganizationMemberStatus,Lr as OrganizationSocialType,Zr as ProfileType,f as REGEX,Ie as SignInUserDto,Qt as TonightPass,Ge as TonightPassAPIError,b as UpdateLocationDto,ae as UpdateOrganizationDto,y as UpdateOrganizationEventDto,Je as UpdateOrganizationEventStyleDto,d as UpdateOrganizationEventTicketDto,V as UpdateOrganizationIdentityDto,Fe as UpdateOrganizationMemberDto,ge as UpdateUserDto,Wr as UserFileType,K as UserIdentityGender,Mr as UserNotificationType,Vr as UserRole,Gr as UserTokenType,zt as auth,Pt as buildFileFormData,Ut as careers,Ft as health,F as isBrowser,Kt as notifications,Mt as orders,Xt as organizations,Zt as profiles,Lt as request,z as sdk,Yt as users};//# sourceMappingURL=index.mjs.map
1
+ import'reflect-metadata';import {Type}from'class-transformer';import {IsString,IsNotEmpty,IsArray,Length,IsNumber,ValidateNested,IsOptional,IsLowercase,IsObject,IsUrl,Matches,Min,IsEnum,IsBoolean,IsDateString,IsEmail,IsPhoneNumber,MinLength,MaxLength}from'class-validator';import Bo from'redaxios';import {pathcat}from'pathcat';var Tt=Object.defineProperty;var o=(e,t)=>Tt(e,"name",{value:t,configurable:!0});var qe="https://api.tonightpass.com";var f={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,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 M(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(M,"_ts_decorate");function I(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(I,"_ts_metadata");var h=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,r]=this.coordinates;return r>=-90&&r<=90&&t>=-180&&t<=180}};M([IsString(),IsNotEmpty(),I("design:type",String)],h.prototype,"type",void 0);M([IsArray(),IsNotEmpty(),Length(2,2),IsNumber({},{each:!0}),I("design:type",Array)],h.prototype,"coordinates",void 0);M([ValidateNested(),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};M([IsOptional(),IsString(),Length(1,128),I("design:type",String)],b.prototype,"name",void 0);M([IsString(),IsNotEmpty(),Length(1,256),I("design:type",String)],b.prototype,"address",void 0);M([IsString(),IsNotEmpty(),Length(1,32),I("design:type",String)],b.prototype,"zipCode",void 0);M([IsString(),IsNotEmpty(),Length(1,128),I("design:type",String)],b.prototype,"city",void 0);M([IsString(),IsNotEmpty(),Length(1,128),I("design:type",String)],b.prototype,"country",void 0);M([ValidateNested(),Type(()=>h),IsNotEmpty(),I("design:type",typeof h>"u"?Object:h)],b.prototype,"geometry",void 0);function ne(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(ne,"_ts_decorate");function ie(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ie,"_ts_metadata");var v=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],v.prototype,"name",void 0);ne([IsOptional(),IsString(),Length(1,256),ie("design:type",String)],v.prototype,"address",void 0);ne([IsOptional(),IsString(),Length(1,32),ie("design:type",String)],v.prototype,"zipCode",void 0);ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],v.prototype,"city",void 0);ne([IsOptional(),IsString(),Length(1,128),ie("design:type",String)],v.prototype,"country",void 0);ne([IsOptional(),ValidateNested(),Type(()=>h),ie("design:type",typeof h>"u"?Object:h)],v.prototype,"geometry",void 0);function G(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(G,"_ts_decorate");function q(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(q,"_ts_metadata");var pe=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([IsOptional(),IsString(),IsLowercase(),Length(1,48),q("design:type",String)],pe.prototype,"organizationSlug",void 0);G([IsObject(),q("design:type",typeof B>"u"?Object:B)],pe.prototype,"identity",void 0);G([IsArray(),q("design:type",Array)],pe.prototype,"members",void 0);G([IsOptional(),IsObject(),q("design:type",typeof Location>"u"?Object:Location)],pe.prototype,"location",void 0);var B=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([IsString(),IsNotEmpty(),Length(1,32),q("design:type",String)],B.prototype,"displayName",void 0);G([IsString(),Length(16,1024),IsOptional(),q("design:type",String)],B.prototype,"description",void 0);G([IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"avatarUrl",void 0);G([IsOptional(),IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"bannerUrl",void 0);G([IsOptional(),IsArray(),q("design:type",Array)],B.prototype,"socialLinks",void 0);function W(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(W,"_ts_decorate");function $(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($,"_ts_metadata");var ae=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};W([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),$("design:type",String)],ae.prototype,"slug",void 0);W([IsObject(),IsOptional(),$("design:type",typeof V>"u"?Object:V)],ae.prototype,"identity",void 0);W([IsOptional(),IsArray(),$("design:type",Array)],ae.prototype,"members",void 0);W([IsOptional(),IsObject(),$("design:type",typeof Location>"u"?Object:Location)],ae.prototype,"location",void 0);var V=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};W([IsString(),IsNotEmpty(),Length(1,32),IsOptional(),$("design:type",String)],V.prototype,"displayName",void 0);W([IsString(),Length(16,1024),IsOptional(),$("design:type",String)],V.prototype,"description",void 0);W([IsUrl({protocols:["http","https"]}),IsOptional(),$("design:type",String)],V.prototype,"avatarUrl",void 0);W([IsOptional(),IsUrl({protocols:["http","https"]}),$("design:type",String)],V.prototype,"bannerUrl",void 0);W([IsOptional(),IsArray(),$("design:type",Array)],V.prototype,"socialLinks",void 0);var He=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var be=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Je=class extends be{static{o(this,"UpdateOrganizationEventStyleDto");}};var k=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 Ir=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var H=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),J=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Er=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 Lr=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Mr=function(e){return e.Follow="follow",e}({});var Gr=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 Vr=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}({}),Wr=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Zr=function(e){return e.User="user",e.Organization="organization",e}({});var Q=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Jr=function(e){return e.FR="fr",e.EN="en",e}({});function A(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(A,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};A([IsString(),Length(1,128),_("design:type",String)],c.prototype,"name",void 0);A([IsString(),Length(1,1024),_("design:type",String)],c.prototype,"description",void 0);A([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"price",void 0);A([IsNumber(),Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);A([IsEnum(k),_("design:type",typeof k>"u"?Object:k)],c.prototype,"type",void 0);A([IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);A([IsEnum(Q),_("design:type",typeof Q>"u"?Object:Q)],c.prototype,"currency",void 0);A([IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);A([IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);A([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);A([IsDateString(),IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function O(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(O,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var d=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};O([IsString(),Length(1,128),IsOptional(),N("design:type",String)],d.prototype,"name",void 0);O([IsString(),Length(1,1024),IsOptional(),N("design:type",String)],d.prototype,"description",void 0);O([IsNumber(),Min(0),IsOptional(),N("design:type",Number)],d.prototype,"price",void 0);O([IsNumber(),Min(0),IsOptional(),N("design:type",Number)],d.prototype,"quantity",void 0);O([IsEnum(k),IsOptional(),N("design:type",typeof k>"u"?Object:k)],d.prototype,"type",void 0);O([IsEnum(Z),IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],d.prototype,"category",void 0);O([IsEnum(Q),IsOptional(),N("design:type",typeof Q>"u"?Object:Q)],d.prototype,"currency",void 0);O([IsBoolean(),IsOptional(),N("design:type",Boolean)],d.prototype,"isVisible",void 0);O([IsBoolean(),IsOptional(),N("design:type",Boolean)],d.prototype,"isFeesIncluded",void 0);O([IsDateString(),IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"startAt",void 0);O([IsDateString(),IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"endAt",void 0);function x(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([IsString(),IsNotEmpty(),Length(1,64),S("design:type",String)],l.prototype,"title",void 0);x([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.SLUG),S("design:type",String)],l.prototype,"slug",void 0);x([IsString(),IsNotEmpty(),Length(16,2048),S("design:type",String)],l.prototype,"description",void 0);x([IsEnum(H),IsNotEmpty(),S("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);x([IsEnum(J),IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],l.prototype,"visibility",void 0);x([IsArray(),IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"flyers",void 0);x([IsArray(),IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"trailers",void 0);x([IsObject(),ValidateNested(),Type(()=>b),IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],l.prototype,"location",void 0);x([IsArray(),ValidateNested({each:!0}),Type(()=>c),IsNotEmpty(),S("design:type",Array)],l.prototype,"tickets",void 0);x([IsArray(),IsString({each:!0}),IsNotEmpty(),S("design:type",Array)],l.prototype,"styles",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);x([IsDateString(),IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function j(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var y=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};j([IsOptional(),IsString(),Length(1,64),R("design:type",String)],y.prototype,"title",void 0);j([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.SLUG),R("design:type",String)],y.prototype,"slug",void 0);j([IsOptional(),IsString(),Length(16,2048),R("design:type",String)],y.prototype,"description",void 0);j([IsOptional(),IsEnum(H),R("design:type",typeof H>"u"?Object:H)],y.prototype,"type",void 0);j([IsOptional(),IsEnum(J),R("design:type",typeof J>"u"?Object:J)],y.prototype,"visibility",void 0);j([IsOptional(),IsArray(),IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"flyers",void 0);j([IsOptional(),IsArray(),IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"trailers",void 0);j([IsOptional(),IsObject(),ValidateNested(),Type(()=>v),R("design:type",typeof v>"u"?Object:v)],y.prototype,"location",void 0);j([IsOptional(),IsArray(),ValidateNested({each:!0}),Type(()=>d),R("design:type",Array)],y.prototype,"tickets",void 0);j([IsOptional(),IsArray(),IsString({each:!0}),R("design:type",Array)],y.prototype,"styles",void 0);j([IsOptional(),IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);j([IsOptional(),IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);function vt(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(vt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var Re=class{static{o(this,"CreateOrganizationMemberDto");}user;role};vt([IsString(),IsNotEmpty(),xt("design:type",String)],Re.prototype,"user",void 0);vt([IsEnum(Y),IsNotEmpty(),xt("design:type",typeof Y>"u"?Object:Y)],Re.prototype,"role",void 0);function So(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(So,"_ts_decorate");function jo(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(jo,"_ts_metadata");var Fe=class{static{o(this,"UpdateOrganizationMemberDto");}role};So([IsEnum(Y),IsNotEmpty(),jo("design:type",typeof Y>"u"?Object:Y)],Fe.prototype,"role",void 0);function E(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(E,"_ts_decorate");function P(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(P,"_ts_metadata");var me=class{static{o(this,"CreateUserDto");}identifier;identity;password};E([ValidateNested(),Type(()=>fe),P("design:type",typeof fe>"u"?Object:fe)],me.prototype,"identifier",void 0);E([ValidateNested(),Type(()=>U),P("design:type",typeof U>"u"?Object:U)],me.prototype,"identity",void 0);E([IsString(),Matches(f.PASSWORD,{message:"Password must be secure."}),P("design:type",String)],me.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};E([IsOptional(),IsString(),IsEmail(),P("design:type",String)],fe.prototype,"email",void 0);E([IsOptional(),IsString(),IsPhoneNumber(),P("design:type",String)],fe.prototype,"phoneNumber",void 0);E([IsString(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),P("design:type",String)],fe.prototype,"username",void 0);var U=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};E([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"First name must be composed of letters only"}),P("design:type",String)],U.prototype,"firstName",void 0);E([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"Last name must be composed of letters only"}),P("design:type",String)],U.prototype,"lastName",void 0);E([IsEnum(K),P("design:type",typeof K>"u"?Object:K)],U.prototype,"gender",void 0);E([IsOptional(),IsUrl({protocols:["http","https"]}),P("design:type",String)],U.prototype,"avatarUrl",void 0);E([IsOptional(),IsDateString(),P("design:type",typeof Date>"u"?Object:Date)],U.prototype,"birthDate",void 0);function wt(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(wt,"_ts_decorate");function It(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(It,"_ts_metadata");var Ie=class{static{o(this,"SignInUserDto");}identifier;password};wt([IsNotEmpty(),IsString(),It("design:type",String)],Ie.prototype,"identifier",void 0);wt([IsNotEmpty(),IsString(),It("design:type",String)],Ie.prototype,"password",void 0);function u(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function m(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(m,"_ts_metadata");var ge=class{static{o(this,"UpdateUserDto");}identifier;identity;password};u([IsOptional(),IsObject(),ValidateNested(),Type(()=>de),m("design:type",typeof de>"u"?Object:de)],ge.prototype,"identifier",void 0);u([IsOptional(),IsObject(),ValidateNested(),Type(()=>L),m("design:type",typeof L>"u"?Object:L)],ge.prototype,"identity",void 0);u([IsOptional(),IsString(),MinLength(8),MaxLength(128),m("design:type",String)],ge.prototype,"password",void 0);var de=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([IsOptional(),IsString(),IsEmail(),m("design:type",String)],de.prototype,"email",void 0);u([IsOptional(),IsString(),IsPhoneNumber(),m("design:type",String)],de.prototype,"phoneNumber",void 0);u([IsOptional(),IsString(),IsLowercase(),Length(3,48),Matches(f.USERNAME),m("design:type",String)],de.prototype,"username",void 0);var L=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};u([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"First name must be composed of letters only"}),m("design:type",String)],L.prototype,"firstName",void 0);u([IsOptional(),IsString(),Length(2,32),Matches(f.NAME,{message:"Last name must be composed of letters only"}),m("design:type",String)],L.prototype,"lastName",void 0);u([IsOptional(),IsString(),Length(1,32),m("design:type",String)],L.prototype,"displayName",void 0);u([IsOptional(),IsString(),Length(1,128),m("design:type",String)],L.prototype,"description",void 0);u([IsOptional(),IsUrl(),m("design:type",Object)],L.prototype,"avatarUrl",void 0);u([IsOptional(),IsUrl(),m("design:type",Object)],L.prototype,"bannerUrl",void 0);u([IsOptional(),IsEnum(K),m("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);u([IsOptional(),IsDateString(),m("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var F=typeof window<"u";function Pt(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(i=>r.append(e,i)):t.forEach(i=>r.append(e,i)),r}o(Pt,"buildFileFormData");var Go=Bo.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}),Lt=o(async(e,t)=>Go(e,{...t}).then(i=>i).catch(i=>{throw i.data||console.error(i),i.data}),"request");var Ge=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},Ae=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,i)=>{let s=this.options.baseURL||qe;return pathcat(s,r,i)};}setOptions(t){this.options=t;}async get(t,r,i){return this.requester("GET",t,void 0,r,i)}async post(t,r,i,s){return this.requester("POST",t,r,i,s)}async put(t,r,i,s){return this.requester("PUT",t,r,i,s)}async patch(t,r,i,s){return this.requester("PATCH",t,r,i,s)}async delete(t,r,i,s){return this.requester("DELETE",t,r,i,s)}async requester(t,r,i,s={},n={}){let p=this.url(r,s);if(i!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await Lt(p,{method:t,data:i,...n}),_e=a.data;if(!_e.success)throw new Ge(a,_e);return _e.data}};function z(e){return e}o(z,"sdk");var zt=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(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:o(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:o(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 Ut=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ft=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Mt=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Bt=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(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:o(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 Gt=o(e=>({create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",i,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var qt=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Vt=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,i)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:i}),"get"),create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",i,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,i,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:r,ticketId:i}),"update"),delete:o(async(t,r,i)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:i}),"delete")}),"organizationsEventsTickets");var Wt=o(e=>({record:o(async(t,r)=>e.post("/organizations/:organizationSlug/events/:eventSlug/views",null,{organizationSlug:t,eventSlug:r}),"record")}),"organizationsEventsViews");var $t=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug",i,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Gt(e),styles:qt(e),tickets:Vt(e),views:Wt(e)}),"organizationsEvents");var Ct=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Xt=e=>({getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Bt(e),events:$t(e),members:Ct(e)});var kt=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,r)=>e.get("/profiles/:username/relationships/followers",{username:t,...r}),"getFollowers")});var Zt=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:kt(e)});var Ht=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var Jt=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Yt=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update"),uploadFile:o(async(t,r,i)=>e.post("/users/:userId/files/:userFileType",Pt("file",i),{userId:t,userFileType:r}),"uploadFile"),bookings:Ht(e),notifications:Jt(e)});var Kt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Qt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Ae(t),this.auth=zt(this.client),this.careers=Ut(this.client),this.health=Ft(this.client),this.orders=Mt(this.client),this.organizations=Xt(this.client),this.profiles=Zt(this.client),this.users=Yt(this.client),this.notifications=Kt(this.client);}};
2
+ export{Ae as Client,b as CreateLocationDto,pe as CreateOrganizationDto,l as CreateOrganizationEventDto,He as CreateOrganizationEventOrderDto,be as CreateOrganizationEventStyleDto,c as CreateOrganizationEventTicketDto,B as CreateOrganizationIdentityDto,Re as CreateOrganizationMemberDto,me as CreateUserDto,U as CreateUserIdentityDto,Q as Currency,qe as DEFAULT_API_URL,h as GeoPointDto,Jr as Language,Ir as OrganizationEventStyleType,Z as OrganizationEventTicketCategory,k as OrganizationEventTicketType,H as OrganizationEventType,J as OrganizationEventVisibilityType,Y as OrganizationMemberRole,Er as OrganizationMemberStatus,Lr as OrganizationSocialType,Zr as ProfileType,f as REGEX,Ie as SignInUserDto,Qt as TonightPass,Ge as TonightPassAPIError,v as UpdateLocationDto,ae as UpdateOrganizationDto,y as UpdateOrganizationEventDto,Je as UpdateOrganizationEventStyleDto,d as UpdateOrganizationEventTicketDto,V as UpdateOrganizationIdentityDto,Fe as UpdateOrganizationMemberDto,ge as UpdateUserDto,Wr as UserFileType,K as UserIdentityGender,Mr as UserNotificationType,Vr as UserRole,Gr as UserTokenType,zt as auth,Pt as buildFileFormData,Ut as careers,Ft as health,F as isBrowser,Kt as notifications,Mt as orders,Xt as organizations,Zt as profiles,Lt as request,z as sdk,Yt as users};//# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map