tonightpass 0.0.104 → 0.0.105

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > tonightpass@0.0.104 build /home/runner/work/tonightpass/tonightpass/packages/node
2
+ > tonightpass@0.0.105 build /home/runner/work/tonightpass/tonightpass/packages/node
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,12 +10,12 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
- ESM dist/index.mjs 24.15 KB
14
- ESM dist/index.mjs.map 93.92 KB
15
- ESM ⚡️ Build success in 733ms
16
- CJS dist/index.js 26.57 KB
17
- CJS dist/index.js.map 94.07 KB
18
- CJS ⚡️ Build success in 735ms
19
- DTS ⚡️ Build success in 4136ms
20
- DTS dist/index.d.ts 38.29 KB
21
- DTS dist/index.d.mts 38.29 KB
13
+ ESM dist/index.mjs 24.22 KB
14
+ ESM dist/index.mjs.map 94.95 KB
15
+ ESM ⚡️ Build success in 609ms
16
+ CJS dist/index.js 26.65 KB
17
+ CJS dist/index.js.map 95.08 KB
18
+ CJS ⚡️ Build success in 610ms
19
+ DTS ⚡️ Build success in 4129ms
20
+ DTS dist/index.d.ts 38.42 KB
21
+ DTS dist/index.d.mts 38.42 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # tonightpass
2
2
 
3
+ ## 0.0.105
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cdab1e2`](https://github.com/tonightpass/tonightpass/commit/cdab1e2673e8b5aa5e20d50a3ddee2c9642677c9) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Fix export notifications types from user module
8
+
3
9
  ## 0.0.104
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -962,4 +962,4 @@ declare class TonightPass {
962
962
  declare const isBrowser: boolean;
963
963
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
964
964
 
965
- export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
965
+ export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
package/dist/index.d.ts CHANGED
@@ -962,4 +962,4 @@ declare class TonightPass {
962
962
  declare const isBrowser: boolean;
963
963
  declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
964
964
 
965
- export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
965
+ export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),zt=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var zt__default=/*#__PURE__*/_interopDefault(zt);var it=Object.defineProperty;var o=(e,t)=>it(e,"name",{value:t,configurable:!0});var de="https://api.tonightpass.com";var m={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 S(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(S,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var M=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],M.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof v>"u"?Object:v)],M.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],M.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var v=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};S([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],v.prototype,"displayName",void 0);S([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),w("design:type",String)],v.prototype,"description",void 0);S([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],v.prototype,"socialLinks",void 0);function j(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var F=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};j([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),A("design:type",String)],F.prototype,"slug",void 0);j([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof R>"u"?Object:R)],F.prototype,"identity",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],F.prototype,"members",void 0);j([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],F.prototype,"location",void 0);var R=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};j([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],R.prototype,"displayName",void 0);j([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],R.prototype,"description",void 0);j([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],R.prototype,"avatarUrl",void 0);j([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],R.prototype,"bannerUrl",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],R.prototype,"socialLinks",void 0);var xe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var $=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var ve=class extends ${static{o(this,"UpdateOrganizationEventStyleDto");}};var X=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 fo=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var V=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}({}),C=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var yo=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),D=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var bo=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var wo=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 jo=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),E=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Ao=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Do=function(e){return e.User="user",e.Organization="organization",e}({});var H=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Lo=function(e){return e.FR="fr",e.EN="en",e}({});function u(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};u([classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],f.prototype,"name",void 0);u([classValidator.IsString(),classValidator.Length(1,1024),g("design:type",String)],f.prototype,"description",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"price",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"quantity",void 0);u([classValidator.IsEnum(X),g("design:type",typeof X>"u"?Object:X)],f.prototype,"type",void 0);u([classValidator.IsEnum(Z),g("design:type",typeof Z>"u"?Object:Z)],f.prototype,"category",void 0);u([classValidator.IsEnum(H),g("design:type",typeof H>"u"?Object:H)],f.prototype,"currency",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isVisible",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isFeesIncluded",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);var Ne=class extends f{static{o(this,"UpdateOrganizationEventTicketDto");}};function P(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(P,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var y=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};P([classValidator.IsString(),classValidator.Length(1,64),U("design:type",String)],y.prototype,"title",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.SLUG),U("design:type",String)],y.prototype,"slug",void 0);P([classValidator.IsString(),classValidator.Length(16,2048),U("design:type",String)],y.prototype,"description",void 0);P([classValidator.IsEnum(V),U("design:type",typeof V>"u"?Object:V)],y.prototype,"type",void 0);P([classValidator.IsEnum(C),U("design:type",typeof C>"u"?Object:C)],y.prototype,"visibility",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);var Le=class extends y{static{o(this,"UpdateOrganizationEventDto");}};function Pe(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Pe,"_ts_decorate");function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ue,"_ts_metadata");var J=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Pe([classValidator.IsString(),classValidator.IsNotEmpty(),Ue("design:type",String)],J.prototype,"user",void 0);Pe([classValidator.IsEnum(D),classValidator.IsNotEmpty(),Ue("design:type",typeof D>"u"?Object:D)],J.prototype,"role",void 0);function ht(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(ht,"_ts_decorate");function bt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(bt,"_ts_metadata");var ie=class{static{o(this,"UpdateOrganizationMemberDto");}role};ht([classValidator.IsEnum(D),classValidator.IsNotEmpty(),bt("design:type",typeof D>"u"?Object:D)],ie.prototype,"role",void 0);function _(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}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 pe=class{static{o(this,"CreateUserDto");}identifier;identity;password};_([classValidator.IsString(),classValidator.Matches(m.PASSWORD,{message:"Password must be secure."}),N("design:type",String)],pe.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],fe.prototype,"email",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],fe.prototype,"phoneNumber",void 0);_([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),N("design:type",String)],fe.prototype,"username",void 0);var O=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),N("design:type",String)],O.prototype,"firstName",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),N("design:type",String)],O.prototype,"lastName",void 0);_([classValidator.IsEnum(E),N("design:type",typeof E>"u"?Object:E)],O.prototype,"gender",void 0);_([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],O.prototype,"avatarUrl",void 0);_([classValidator.IsOptional(),classValidator.IsDateString(),N("design:type",typeof Date>"u"?Object:Date)],O.prototype,"birthDate",void 0);var Oe=class{static{o(this,"SignInUserDto");}identifier;password};function c(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(c,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var q=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>k),l("design:type",typeof k>"u"?Object:k)],q.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),l("design:type",typeof h>"u"?Object:h)],q.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],q.prototype,"password",void 0);var k=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],k.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],k.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),l("design:type",String)],k.prototype,"username",void 0);var h=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],h.prototype,"firstName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],h.prototype,"lastName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],h.prototype,"displayName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],h.prototype,"description",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"avatarUrl",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"bannerUrl",void 0);c([classValidator.IsOptional(),classValidator.IsEnum(E),l("design:type",typeof E>"u"?Object:E)],h.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],h.prototype,"birthDate",void 0);var x=typeof window<"u";function Ge(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(s=>r.append(e,s)):t.forEach(s=>r.append(e,s)),r}o(Ge,"buildFileFormData");var Ot=zt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!x&&{"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:x}),qe=o(async(e,t)=>Ot(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var le=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;}},K=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||de;return pathcat.pathcat(i,r,s)};}setOptions(t){this.options=t;}async get(t,r,s){return this.requester("GET",t,void 0,r,s)}async post(t,r,s,i){return this.requester("POST",t,r,s,i)}async put(t,r,s,i){return this.requester("PUT",t,r,s,i)}async patch(t,r,s,i){return this.requester("PATCH",t,r,s,i)}async delete(t,r,s,i){return this.requester("DELETE",t,r,s,i)}async requester(t,r,s,i={},n={}){let p=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await qe(p,{method:t,data:s,...n}),Q=a.data;if(!Q.success)throw new le(a,Q);return Q.data}};function b(e){return e}o(b,"sdk");var We=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(x)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(x)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(x)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var $e=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 Xe=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 Ze=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ve=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(x)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(x)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 Ce=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var He=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 Je=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,s)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:s}),"get"),create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,s,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:s}),"update"),delete:o(async(t,r,s)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:s}),"delete")}),"organizationsEventsTickets");var Ye=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,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Ce(e),styles:He(e),tickets:Je(e)}),"organizationsEvents");var Ke=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 Qe=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:Ve(e),events:Ye(e),members:Ke(e)});var Te=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 et=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Te(e)});var tt=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 ot=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var rt=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,s)=>e.post("/users/:userId/files/:userFileType",Ge("file",s),{userId:t,userFileType:r}),"uploadFile"),bookings:tt(e),notifications:ot(e)});var st=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var nt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new K(t),this.auth=We(this.client),this.careers=$e(this.client),this.health=Xe(this.client),this.orders=Ze(this.client),this.organizations=Qe(this.client),this.profiles=et(this.client),this.users=rt(this.client),this.notifications=st(this.client);}};
2
- exports.Client=K;exports.CreateOrganizationDto=M;exports.CreateOrganizationEventDto=y;exports.CreateOrganizationEventOrderDto=xe;exports.CreateOrganizationEventStyleDto=$;exports.CreateOrganizationEventTicketDto=f;exports.CreateOrganizationIdentityDto=v;exports.CreateOrganizationMemberDto=J;exports.CreateUserDto=pe;exports.CreateUserIdentityDto=O;exports.Currency=H;exports.DEFAULT_API_URL=de;exports.Language=Lo;exports.OrganizationEventStyleType=fo;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=X;exports.OrganizationEventType=V;exports.OrganizationEventVisibilityType=C;exports.OrganizationMemberRole=D;exports.OrganizationMemberStatus=yo;exports.OrganizationSocialType=bo;exports.ProfileType=Do;exports.REGEX=m;exports.SignInUserDto=Oe;exports.TonightPass=nt;exports.TonightPassAPIError=le;exports.UpdateOrganizationDto=F;exports.UpdateOrganizationEventDto=Le;exports.UpdateOrganizationEventStyleDto=ve;exports.UpdateOrganizationEventTicketDto=Ne;exports.UpdateOrganizationIdentityDto=R;exports.UpdateOrganizationMemberDto=ie;exports.UpdateUserDto=q;exports.UserFileType=Ao;exports.UserIdentityGender=E;exports.UserRole=jo;exports.UserTokenType=wo;exports.auth=We;exports.buildFileFormData=Ge;exports.careers=$e;exports.health=Xe;exports.isBrowser=x;exports.notifications=st;exports.orders=Ze;exports.organizations=Qe;exports.profiles=et;exports.request=qe;exports.sdk=b;exports.users=rt;//# sourceMappingURL=index.js.map
1
+ 'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),zt=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var zt__default=/*#__PURE__*/_interopDefault(zt);var it=Object.defineProperty;var o=(e,t)=>it(e,"name",{value:t,configurable:!0});var de="https://api.tonightpass.com";var m={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 S(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(S,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var F=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],F.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof v>"u"?Object:v)],F.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],F.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],F.prototype,"location",void 0);var v=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};S([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],v.prototype,"displayName",void 0);S([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),w("design:type",String)],v.prototype,"description",void 0);S([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],v.prototype,"socialLinks",void 0);function j(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var M=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};j([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),A("design:type",String)],M.prototype,"slug",void 0);j([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof R>"u"?Object:R)],M.prototype,"identity",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],M.prototype,"members",void 0);j([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var R=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};j([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],R.prototype,"displayName",void 0);j([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],R.prototype,"description",void 0);j([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],R.prototype,"avatarUrl",void 0);j([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],R.prototype,"bannerUrl",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],R.prototype,"socialLinks",void 0);var xe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var $=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var ve=class extends ${static{o(this,"UpdateOrganizationEventStyleDto");}};var X=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 fo=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var V=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}({}),C=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var yo=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),D=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var bo=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var wo=function(e){return e.Follow="follow",e}({});var jo=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 Io=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),E=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),_o=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Po=function(e){return e.User="user",e.Organization="organization",e}({});var H=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),zo=function(e){return e.FR="fr",e.EN="en",e}({});function u(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};u([classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],f.prototype,"name",void 0);u([classValidator.IsString(),classValidator.Length(1,1024),g("design:type",String)],f.prototype,"description",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"price",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"quantity",void 0);u([classValidator.IsEnum(X),g("design:type",typeof X>"u"?Object:X)],f.prototype,"type",void 0);u([classValidator.IsEnum(Z),g("design:type",typeof Z>"u"?Object:Z)],f.prototype,"category",void 0);u([classValidator.IsEnum(H),g("design:type",typeof H>"u"?Object:H)],f.prototype,"currency",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isVisible",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isFeesIncluded",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);var Ne=class extends f{static{o(this,"UpdateOrganizationEventTicketDto");}};function P(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(P,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var y=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};P([classValidator.IsString(),classValidator.Length(1,64),U("design:type",String)],y.prototype,"title",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.SLUG),U("design:type",String)],y.prototype,"slug",void 0);P([classValidator.IsString(),classValidator.Length(16,2048),U("design:type",String)],y.prototype,"description",void 0);P([classValidator.IsEnum(V),U("design:type",typeof V>"u"?Object:V)],y.prototype,"type",void 0);P([classValidator.IsEnum(C),U("design:type",typeof C>"u"?Object:C)],y.prototype,"visibility",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);var Le=class extends y{static{o(this,"UpdateOrganizationEventDto");}};function Pe(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Pe,"_ts_decorate");function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ue,"_ts_metadata");var J=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Pe([classValidator.IsString(),classValidator.IsNotEmpty(),Ue("design:type",String)],J.prototype,"user",void 0);Pe([classValidator.IsEnum(D),classValidator.IsNotEmpty(),Ue("design:type",typeof D>"u"?Object:D)],J.prototype,"role",void 0);function ht(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(ht,"_ts_decorate");function bt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(bt,"_ts_metadata");var ie=class{static{o(this,"UpdateOrganizationMemberDto");}role};ht([classValidator.IsEnum(D),classValidator.IsNotEmpty(),bt("design:type",typeof D>"u"?Object:D)],ie.prototype,"role",void 0);function _(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}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 pe=class{static{o(this,"CreateUserDto");}identifier;identity;password};_([classValidator.IsString(),classValidator.Matches(m.PASSWORD,{message:"Password must be secure."}),N("design:type",String)],pe.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],fe.prototype,"email",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],fe.prototype,"phoneNumber",void 0);_([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),N("design:type",String)],fe.prototype,"username",void 0);var O=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),N("design:type",String)],O.prototype,"firstName",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),N("design:type",String)],O.prototype,"lastName",void 0);_([classValidator.IsEnum(E),N("design:type",typeof E>"u"?Object:E)],O.prototype,"gender",void 0);_([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],O.prototype,"avatarUrl",void 0);_([classValidator.IsOptional(),classValidator.IsDateString(),N("design:type",typeof Date>"u"?Object:Date)],O.prototype,"birthDate",void 0);var Oe=class{static{o(this,"SignInUserDto");}identifier;password};function c(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(c,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var q=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>k),l("design:type",typeof k>"u"?Object:k)],q.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),l("design:type",typeof h>"u"?Object:h)],q.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],q.prototype,"password",void 0);var k=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],k.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],k.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),l("design:type",String)],k.prototype,"username",void 0);var h=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],h.prototype,"firstName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],h.prototype,"lastName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],h.prototype,"displayName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],h.prototype,"description",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"avatarUrl",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"bannerUrl",void 0);c([classValidator.IsOptional(),classValidator.IsEnum(E),l("design:type",typeof E>"u"?Object:E)],h.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],h.prototype,"birthDate",void 0);var x=typeof window<"u";function Ge(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(s=>r.append(e,s)):t.forEach(s=>r.append(e,s)),r}o(Ge,"buildFileFormData");var Ot=zt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!x&&{"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:x}),qe=o(async(e,t)=>Ot(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var le=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;}},K=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||de;return pathcat.pathcat(i,r,s)};}setOptions(t){this.options=t;}async get(t,r,s){return this.requester("GET",t,void 0,r,s)}async post(t,r,s,i){return this.requester("POST",t,r,s,i)}async put(t,r,s,i){return this.requester("PUT",t,r,s,i)}async patch(t,r,s,i){return this.requester("PATCH",t,r,s,i)}async delete(t,r,s,i){return this.requester("DELETE",t,r,s,i)}async requester(t,r,s,i={},n={}){let p=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await qe(p,{method:t,data:s,...n}),Q=a.data;if(!Q.success)throw new le(a,Q);return Q.data}};function b(e){return e}o(b,"sdk");var We=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(x)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(x)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(x)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var $e=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 Xe=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 Ze=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ve=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(x)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(x)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 Ce=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var He=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 Je=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,s)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:s}),"get"),create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,s,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:s}),"update"),delete:o(async(t,r,s)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:s}),"delete")}),"organizationsEventsTickets");var Ye=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,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Ce(e),styles:He(e),tickets:Je(e)}),"organizationsEvents");var Ke=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 Qe=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:Ve(e),events:Ye(e),members:Ke(e)});var Te=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 et=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Te(e)});var tt=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 ot=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var rt=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,s)=>e.post("/users/:userId/files/:userFileType",Ge("file",s),{userId:t,userFileType:r}),"uploadFile"),bookings:tt(e),notifications:ot(e)});var st=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var nt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new K(t),this.auth=We(this.client),this.careers=$e(this.client),this.health=Xe(this.client),this.orders=Ze(this.client),this.organizations=Qe(this.client),this.profiles=et(this.client),this.users=rt(this.client),this.notifications=st(this.client);}};
2
+ exports.Client=K;exports.CreateOrganizationDto=F;exports.CreateOrganizationEventDto=y;exports.CreateOrganizationEventOrderDto=xe;exports.CreateOrganizationEventStyleDto=$;exports.CreateOrganizationEventTicketDto=f;exports.CreateOrganizationIdentityDto=v;exports.CreateOrganizationMemberDto=J;exports.CreateUserDto=pe;exports.CreateUserIdentityDto=O;exports.Currency=H;exports.DEFAULT_API_URL=de;exports.Language=zo;exports.OrganizationEventStyleType=fo;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=X;exports.OrganizationEventType=V;exports.OrganizationEventVisibilityType=C;exports.OrganizationMemberRole=D;exports.OrganizationMemberStatus=yo;exports.OrganizationSocialType=bo;exports.ProfileType=Po;exports.REGEX=m;exports.SignInUserDto=Oe;exports.TonightPass=nt;exports.TonightPassAPIError=le;exports.UpdateOrganizationDto=M;exports.UpdateOrganizationEventDto=Le;exports.UpdateOrganizationEventStyleDto=ve;exports.UpdateOrganizationEventTicketDto=Ne;exports.UpdateOrganizationIdentityDto=R;exports.UpdateOrganizationMemberDto=ie;exports.UpdateUserDto=q;exports.UserFileType=_o;exports.UserIdentityGender=E;exports.UserNotificationType=wo;exports.UserRole=Io;exports.UserTokenType=jo;exports.auth=We;exports.buildFileFormData=Ge;exports.careers=$e;exports.health=Xe;exports.isBrowser=x;exports.notifications=st;exports.orders=Ze;exports.organizations=Qe;exports.profiles=et;exports.request=qe;exports.sdk=b;exports.users=rt;//# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map