tonightpass 0.0.86 → 0.0.88

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.86 build /home/runner/work/tonightpass/tonightpass/packages/node
2
+ > tonightpass@0.0.88 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 22.96 KB
14
- ESM dist/index.mjs.map 84.94 KB
15
- ESM ⚡️ Build success in 631ms
16
13
  CJS dist/index.js 25.47 KB
17
14
  CJS dist/index.js.map 85.09 KB
18
- CJS ⚡️ Build success in 633ms
19
- DTS ⚡️ Build success in 4069ms
20
- DTS dist/index.d.ts 35.30 KB
21
- DTS dist/index.d.mts 35.30 KB
15
+ CJS ⚡️ Build success in 866ms
16
+ ESM dist/index.mjs 22.96 KB
17
+ ESM dist/index.mjs.map 84.95 KB
18
+ ESM ⚡️ Build success in 867ms
19
+ DTS ⚡️ Build success in 4210ms
20
+ DTS dist/index.d.ts 35.48 KB
21
+ DTS dist/index.d.mts 35.48 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # tonightpass
2
2
 
3
+ ## 0.0.88
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4535441`](https://github.com/tonightpass/tonightpass/commit/4535441e1615627dfe2e9a54c7f51a060ba0b903) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Fix wrong types for tickets in user booking
8
+
9
+ ## 0.0.87
10
+
11
+ ### Patch Changes
12
+
13
+ - [`fbafc8b`](https://github.com/tonightpass/tonightpass/commit/fbafc8b43ce8aefb25dc2db2cc99a0f2abed2695) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add user booking ticket types
14
+
3
15
  ## 0.0.86
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -36,12 +36,35 @@ type Order = Base & {
36
36
  };
37
37
  type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
38
38
 
39
- type UserBooking = Base & {
39
+ type UserBookingTicket = Base & {
40
+ booking: UserBooking;
40
41
  ticket: OrganizationEventTicket;
42
+ token: UserToken;
43
+ useCount: number;
44
+ };
45
+ type UserBooking = Base & {
46
+ tickets: UserBookingTicket;
41
47
  order: Order;
48
+ user: User;
42
49
  };
43
50
  type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>;
44
51
 
52
+ type UserToken = {
53
+ type: UserTokenType;
54
+ value: string;
55
+ createdAt: Date;
56
+ expiresAt: Date;
57
+ user?: User;
58
+ identifier?: string;
59
+ };
60
+ declare enum UserTokenType {
61
+ Authentication = "authentication",
62
+ OrganizationInvite = "organization_invite",
63
+ PasswordRecovery = "password_recovery",
64
+ EmailValidation = "email_validation",
65
+ PhoneValidation = "phone_validation"
66
+ }
67
+
45
68
  type User = Base & {
46
69
  identifier: UserIdentifier;
47
70
  password: string;
@@ -297,22 +320,6 @@ declare class UpdateOrganizationMemberDto {
297
320
  role: OrganizationMemberRole;
298
321
  }
299
322
 
300
- type UserToken = {
301
- type: UserTokenType;
302
- value: string;
303
- createdAt: Date;
304
- expiresAt: Date;
305
- user?: User;
306
- identifier?: string;
307
- };
308
- declare enum UserTokenType {
309
- Authentication = "authentication",
310
- OrganizationInvite = "organization_invite",
311
- PasswordRecovery = "password_recovery",
312
- EmailValidation = "email_validation",
313
- PhoneValidation = "phone_validation"
314
- }
315
-
316
323
  type OrganizationMember = Base & {
317
324
  organization: Organization;
318
325
  role: OrganizationMemberRole;
@@ -901,4 +908,4 @@ declare class TonightPass {
901
908
 
902
909
  declare const isBrowser: boolean;
903
910
 
904
- 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 CareersCategory, type CareersEmploymentType, type CareersEndpoints, 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 NotificationsEndpoints, 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 UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
911
+ 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 CareersCategory, type CareersEmploymentType, type CareersEndpoints, 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 NotificationsEndpoints, 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, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
package/dist/index.d.ts CHANGED
@@ -36,12 +36,35 @@ type Order = Base & {
36
36
  };
37
37
  type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
38
38
 
39
- type UserBooking = Base & {
39
+ type UserBookingTicket = Base & {
40
+ booking: UserBooking;
40
41
  ticket: OrganizationEventTicket;
42
+ token: UserToken;
43
+ useCount: number;
44
+ };
45
+ type UserBooking = Base & {
46
+ tickets: UserBookingTicket;
41
47
  order: Order;
48
+ user: User;
42
49
  };
43
50
  type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>;
44
51
 
52
+ type UserToken = {
53
+ type: UserTokenType;
54
+ value: string;
55
+ createdAt: Date;
56
+ expiresAt: Date;
57
+ user?: User;
58
+ identifier?: string;
59
+ };
60
+ declare enum UserTokenType {
61
+ Authentication = "authentication",
62
+ OrganizationInvite = "organization_invite",
63
+ PasswordRecovery = "password_recovery",
64
+ EmailValidation = "email_validation",
65
+ PhoneValidation = "phone_validation"
66
+ }
67
+
45
68
  type User = Base & {
46
69
  identifier: UserIdentifier;
47
70
  password: string;
@@ -297,22 +320,6 @@ declare class UpdateOrganizationMemberDto {
297
320
  role: OrganizationMemberRole;
298
321
  }
299
322
 
300
- type UserToken = {
301
- type: UserTokenType;
302
- value: string;
303
- createdAt: Date;
304
- expiresAt: Date;
305
- user?: User;
306
- identifier?: string;
307
- };
308
- declare enum UserTokenType {
309
- Authentication = "authentication",
310
- OrganizationInvite = "organization_invite",
311
- PasswordRecovery = "password_recovery",
312
- EmailValidation = "email_validation",
313
- PhoneValidation = "phone_validation"
314
- }
315
-
316
323
  type OrganizationMember = Base & {
317
324
  organization: Organization;
318
325
  role: OrganizationMemberRole;
@@ -901,4 +908,4 @@ declare class TonightPass {
901
908
 
902
909
  declare const isBrowser: boolean;
903
910
 
904
- 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 CareersCategory, type CareersEmploymentType, type CareersEndpoints, 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 NotificationsEndpoints, 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 UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
911
+ 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 CareersCategory, type CareersEmploymentType, type CareersEndpoints, 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 NotificationsEndpoints, 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, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
 
11
11
  var Et__default = /*#__PURE__*/_interopDefault(Et);
12
12
 
13
- var rt=Object.defineProperty;var o=(e,t)=>rt(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 v(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(v,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var M=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};v([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),S("design:type",String)],M.prototype,"organizationSlug",void 0);v([classValidator.IsObject(),S("design:type",typeof x>"u"?Object:x)],M.prototype,"identity",void 0);v([classValidator.IsArray(),S("design:type",Array)],M.prototype,"members",void 0);v([classValidator.IsOptional(),classValidator.IsObject(),S("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var x=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),S("design:type",String)],x.prototype,"displayName",void 0);v([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),S("design:type",String)],x.prototype,"description",void 0);v([classValidator.IsUrl({protocols:["http","https"]}),S("design:type",String)],x.prototype,"avatarUrl",void 0);v([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),S("design:type",String)],x.prototype,"bannerUrl",void 0);v([classValidator.IsOptional(),classValidator.IsArray(),S("design:type",Array)],x.prototype,"socialLinks",void 0);function R(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(R,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(j,"_ts_metadata");var B=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),j("design:type",String)],B.prototype,"slug",void 0);R([classValidator.IsObject(),classValidator.IsOptional(),j("design:type",typeof w>"u"?Object:w)],B.prototype,"identity",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),j("design:type",Array)],B.prototype,"members",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),j("design:type",typeof Location>"u"?Object:Location)],B.prototype,"location",void 0);var w=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};R([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),j("design:type",String)],w.prototype,"displayName",void 0);R([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),j("design:type",String)],w.prototype,"description",void 0);R([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),j("design:type",String)],w.prototype,"avatarUrl",void 0);R([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),j("design:type",String)],w.prototype,"bannerUrl",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),j("design:type",Array)],w.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 io=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}({}),H=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var mo=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),L=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var go=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var xo=function(e){return e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var So=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),P=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({});var jo=function(e){return e.User="user",e.Organization="organization",e}({});var J=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Io=function(e){return e.FR="fr",e.EN="en",e}({});function u(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}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(J),g("design:type",typeof J>"u"?Object:J)],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 D(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(D,"_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};D([classValidator.IsString(),classValidator.Length(1,64),U("design:type",String)],y.prototype,"title",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.SLUG),U("design:type",String)],y.prototype,"slug",void 0);D([classValidator.IsString(),classValidator.Length(16,2048),U("design:type",String)],y.prototype,"description",void 0);D([classValidator.IsEnum(V),U("design:type",typeof V>"u"?Object:V)],y.prototype,"type",void 0);D([classValidator.IsEnum(H),U("design:type",typeof H>"u"?Object:H)],y.prototype,"visibility",void 0);D([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);D([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);var Ee=class extends y{static{o(this,"UpdateOrganizationEventDto");}};function De(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(De,"_ts_decorate");function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ue,"_ts_metadata");var Y=class{static{o(this,"CreateOrganizationMemberDto");}user;role};De([classValidator.IsString(),classValidator.IsNotEmpty(),Ue("design:type",String)],Y.prototype,"user",void 0);De([classValidator.IsEnum(L),classValidator.IsNotEmpty(),Ue("design:type",typeof L>"u"?Object:L)],Y.prototype,"role",void 0);function ut(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(ut,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(gt,"_ts_metadata");var ie=class{static{o(this,"UpdateOrganizationMemberDto");}role};ut([classValidator.IsEnum(L),classValidator.IsNotEmpty(),gt("design:type",typeof L>"u"?Object:L)],ie.prototype,"role",void 0);function I(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(I,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var pe=class{static{o(this,"CreateUserDto");}identifier;identity;password};I([classValidator.IsString(),classValidator.Matches(m.PASSWORD,{message:"Password must be secure."}),_("design:type",String)],pe.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),_("design:type",String)],fe.prototype,"email",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),_("design:type",String)],fe.prototype,"phoneNumber",void 0);I([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),_("design:type",String)],fe.prototype,"username",void 0);var O=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),_("design:type",String)],O.prototype,"firstName",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),_("design:type",String)],O.prototype,"lastName",void 0);I([classValidator.IsEnum(P),_("design:type",typeof P>"u"?Object:P)],O.prototype,"gender",void 0);I([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),_("design:type",String)],O.prototype,"avatarUrl",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),_("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,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}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 W=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>F),l("design:type",typeof F>"u"?Object:F)],W.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),l("design:type",typeof h>"u"?Object:h)],W.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],W.prototype,"password",void 0);var F=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],F.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],F.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),l("design:type",String)],F.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(P),l("design:type",typeof P>"u"?Object:P)],h.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],h.prototype,"birthDate",void 0);var b=typeof window<"u";var Dt=Et__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!b&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:b}),qe=o(async(e,t)=>Dt(e,{...t}).then(n=>n).catch(n=>{throw n.data||console.error(n),n.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,n)=>{let i=this.options.baseURL||de;return pathcat.pathcat(i,r,n)};}setOptions(t){this.options=t;}async get(t,r,n){return this.requester("GET",t,void 0,r,n)}async post(t,r,n,i){return this.requester("POST",t,r,n,i)}async put(t,r,n,i){return this.requester("PUT",t,r,n,i)}async patch(t,r,n,i){return this.requester("PATCH",t,r,n,i)}async delete(t,r,n,i){return this.requester("DELETE",t,r,n,i)}async requester(t,r,n,i={},s={}){let p=this.url(r,i);if(n!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await qe(p,{method:t,data:n,...s}),Q=a.data;if(!Q.success)throw new le(a,Q);return Q.data}};function N(e){return e}o(N,"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(b)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(b)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(b)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var ke=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 $e=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 Xe=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ze=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(b)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(b)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 Ve=o(e=>({create:o(async(t,r,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",n,{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,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:n}),"get"),create:o(async(t,r,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",n,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,n,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:n}),"update"),delete:o(async(t,r,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:n}),"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,n)=>e.put("/organizations/:organizationSlug/events/:eventSlug",n,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Ve(e),styles:He(e),tickets:Je(e)}),"organizationsEvents");var Ce=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 Ke=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:Ze(e),events:Ye(e),members:Ce(e)});var Qe=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")});var Te=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Qe(e)});var et=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")});var tt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var ot=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=ke(this.client),this.health=$e(this.client),this.orders=Xe(this.client),this.organizations=Ke(this.client),this.profiles=Te(this.client),this.users=et(this.client),this.notifications=tt(this.client);}};
13
+ var rt=Object.defineProperty;var o=(e,t)=>rt(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 v(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(v,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var M=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};v([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),S("design:type",String)],M.prototype,"organizationSlug",void 0);v([classValidator.IsObject(),S("design:type",typeof x>"u"?Object:x)],M.prototype,"identity",void 0);v([classValidator.IsArray(),S("design:type",Array)],M.prototype,"members",void 0);v([classValidator.IsOptional(),classValidator.IsObject(),S("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var x=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};v([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),S("design:type",String)],x.prototype,"displayName",void 0);v([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),S("design:type",String)],x.prototype,"description",void 0);v([classValidator.IsUrl({protocols:["http","https"]}),S("design:type",String)],x.prototype,"avatarUrl",void 0);v([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),S("design:type",String)],x.prototype,"bannerUrl",void 0);v([classValidator.IsOptional(),classValidator.IsArray(),S("design:type",Array)],x.prototype,"socialLinks",void 0);function R(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(R,"_ts_decorate");function j(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(j,"_ts_metadata");var B=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),j("design:type",String)],B.prototype,"slug",void 0);R([classValidator.IsObject(),classValidator.IsOptional(),j("design:type",typeof w>"u"?Object:w)],B.prototype,"identity",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),j("design:type",Array)],B.prototype,"members",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),j("design:type",typeof Location>"u"?Object:Location)],B.prototype,"location",void 0);var w=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};R([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),j("design:type",String)],w.prototype,"displayName",void 0);R([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),j("design:type",String)],w.prototype,"description",void 0);R([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),j("design:type",String)],w.prototype,"avatarUrl",void 0);R([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),j("design:type",String)],w.prototype,"bannerUrl",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),j("design:type",Array)],w.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 io=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}({}),H=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var mo=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),L=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var go=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var xo=function(e){return e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var So=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),P=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({});var Ao=function(e){return e.User="user",e.Organization="organization",e}({});var J=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),_o=function(e){return e.FR="fr",e.EN="en",e}({});function u(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}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(J),g("design:type",typeof J>"u"?Object:J)],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 D(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(D,"_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};D([classValidator.IsString(),classValidator.Length(1,64),U("design:type",String)],y.prototype,"title",void 0);D([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.SLUG),U("design:type",String)],y.prototype,"slug",void 0);D([classValidator.IsString(),classValidator.Length(16,2048),U("design:type",String)],y.prototype,"description",void 0);D([classValidator.IsEnum(V),U("design:type",typeof V>"u"?Object:V)],y.prototype,"type",void 0);D([classValidator.IsEnum(H),U("design:type",typeof H>"u"?Object:H)],y.prototype,"visibility",void 0);D([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);D([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);var Ee=class extends y{static{o(this,"UpdateOrganizationEventDto");}};function De(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(De,"_ts_decorate");function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ue,"_ts_metadata");var Y=class{static{o(this,"CreateOrganizationMemberDto");}user;role};De([classValidator.IsString(),classValidator.IsNotEmpty(),Ue("design:type",String)],Y.prototype,"user",void 0);De([classValidator.IsEnum(L),classValidator.IsNotEmpty(),Ue("design:type",typeof L>"u"?Object:L)],Y.prototype,"role",void 0);function ut(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(ut,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(gt,"_ts_metadata");var ie=class{static{o(this,"UpdateOrganizationMemberDto");}role};ut([classValidator.IsEnum(L),classValidator.IsNotEmpty(),gt("design:type",typeof L>"u"?Object:L)],ie.prototype,"role",void 0);function I(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}o(I,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var pe=class{static{o(this,"CreateUserDto");}identifier;identity;password};I([classValidator.IsString(),classValidator.Matches(m.PASSWORD,{message:"Password must be secure."}),_("design:type",String)],pe.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),_("design:type",String)],fe.prototype,"email",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),_("design:type",String)],fe.prototype,"phoneNumber",void 0);I([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),_("design:type",String)],fe.prototype,"username",void 0);var O=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),_("design:type",String)],O.prototype,"firstName",void 0);I([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),_("design:type",String)],O.prototype,"lastName",void 0);I([classValidator.IsEnum(P),_("design:type",typeof P>"u"?Object:P)],O.prototype,"gender",void 0);I([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),_("design:type",String)],O.prototype,"avatarUrl",void 0);I([classValidator.IsOptional(),classValidator.IsDateString(),_("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,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(s=(i<3?p(s):i>3?p(t,r,s):p(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}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 W=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>F),l("design:type",typeof F>"u"?Object:F)],W.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),l("design:type",typeof h>"u"?Object:h)],W.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],W.prototype,"password",void 0);var F=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],F.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],F.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),l("design:type",String)],F.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(P),l("design:type",typeof P>"u"?Object:P)],h.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],h.prototype,"birthDate",void 0);var b=typeof window<"u";var Dt=Et__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!b&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:b}),qe=o(async(e,t)=>Dt(e,{...t}).then(n=>n).catch(n=>{throw n.data||console.error(n),n.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,n)=>{let i=this.options.baseURL||de;return pathcat.pathcat(i,r,n)};}setOptions(t){this.options=t;}async get(t,r,n){return this.requester("GET",t,void 0,r,n)}async post(t,r,n,i){return this.requester("POST",t,r,n,i)}async put(t,r,n,i){return this.requester("PUT",t,r,n,i)}async patch(t,r,n,i){return this.requester("PATCH",t,r,n,i)}async delete(t,r,n,i){return this.requester("DELETE",t,r,n,i)}async requester(t,r,n,i={},s={}){let p=this.url(r,i);if(n!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await qe(p,{method:t,data:n,...s}),Q=a.data;if(!Q.success)throw new le(a,Q);return Q.data}};function N(e){return e}o(N,"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(b)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(b)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(b)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var ke=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 $e=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 Xe=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ze=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(b)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(b)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 Ve=o(e=>({create:o(async(t,r,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",n,{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,n)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:n}),"get"),create:o(async(t,r,n)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",n,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,n,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:n}),"update"),delete:o(async(t,r,n)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:n}),"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,n)=>e.put("/organizations/:organizationSlug/events/:eventSlug",n,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Ve(e),styles:He(e),tickets:Je(e)}),"organizationsEvents");var Ce=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 Ke=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:Ze(e),events:Ye(e),members:Ce(e)});var Qe=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")});var Te=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Qe(e)});var et=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")});var tt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var ot=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=ke(this.client),this.health=$e(this.client),this.orders=Xe(this.client),this.organizations=Ke(this.client),this.profiles=Te(this.client),this.users=et(this.client),this.notifications=tt(this.client);}};
14
14
 
15
15
  exports.Client = K;
16
16
  exports.CreateOrganizationDto = M;
@@ -24,7 +24,7 @@ exports.CreateUserDto = pe;
24
24
  exports.CreateUserIdentityDto = O;
25
25
  exports.Currency = J;
26
26
  exports.DEFAULT_API_URL = de;
27
- exports.Language = Io;
27
+ exports.Language = _o;
28
28
  exports.OrganizationEventStyleType = io;
29
29
  exports.OrganizationEventTicketCategory = Z;
30
30
  exports.OrganizationEventTicketType = X;
@@ -33,7 +33,7 @@ exports.OrganizationEventVisibilityType = H;
33
33
  exports.OrganizationMemberRole = L;
34
34
  exports.OrganizationMemberStatus = mo;
35
35
  exports.OrganizationSocialType = go;
36
- exports.ProfileType = jo;
36
+ exports.ProfileType = Ao;
37
37
  exports.REGEX = m;
38
38
  exports.SignInUserDto = Oe;
39
39
  exports.TonightPass = ot;