tonightpass 0.0.64 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/rest/dtos/users/create-user.dto.ts +3 -4
- package/src/rest/types/users/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.66 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m41.
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m41.
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m21.43 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m73.35 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 584ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m24.91 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m73.48 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 586ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 3610ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m41.56 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m41.56 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.66
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f8d4e42`](https://github.com/tonightpass/tonightpass/commit/f8d4e422d24d540d566ff356fb7733def762fbd8) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update user check identifier response types
|
|
8
|
+
|
|
9
|
+
## 0.0.65
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`336b84e`](https://github.com/tonightpass/tonightpass/commit/336b84e188174b009ef8e8537fdfd52c2b09f2e5) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update CreateUserDto types
|
|
14
|
+
|
|
3
15
|
## 0.0.64
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -116,7 +116,7 @@ type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users
|
|
|
116
116
|
id: string;
|
|
117
117
|
}> | Endpoint<"GET", "/users/me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
118
118
|
exists: boolean;
|
|
119
|
-
identifier: UserIdentifier
|
|
119
|
+
identifier: Partial<UserIdentifier>;
|
|
120
120
|
suggestions?: string[];
|
|
121
121
|
}, {
|
|
122
122
|
identifier: boolean;
|
|
@@ -560,10 +560,9 @@ declare class UpdateOrganizationIdentityDto {
|
|
|
560
560
|
declare class CreateUserDto {
|
|
561
561
|
identifier: UserIdentifier;
|
|
562
562
|
password: string;
|
|
563
|
-
identity:
|
|
564
|
-
addresses: Location$1[];
|
|
563
|
+
identity: CreateUserIdentityDto;
|
|
565
564
|
}
|
|
566
|
-
declare class
|
|
565
|
+
declare class CreateUserIdentityDto {
|
|
567
566
|
firstName: string;
|
|
568
567
|
lastName: string;
|
|
569
568
|
gender: UserIdentityGender;
|
|
@@ -759,7 +758,7 @@ declare class Client {
|
|
|
759
758
|
method: "GET";
|
|
760
759
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
761
760
|
exists: boolean;
|
|
762
|
-
identifier: UserIdentifier
|
|
761
|
+
identifier: Partial<UserIdentifier>;
|
|
763
762
|
suggestions?: string[];
|
|
764
763
|
}, {
|
|
765
764
|
identifier: boolean;
|
|
@@ -971,7 +970,7 @@ declare const users: (client: Client) => {
|
|
|
971
970
|
me: () => Promise<User>;
|
|
972
971
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
973
972
|
exists: boolean;
|
|
974
|
-
identifier: UserIdentifier
|
|
973
|
+
identifier: Partial<UserIdentifier>;
|
|
975
974
|
suggestions?: string[];
|
|
976
975
|
}>;
|
|
977
976
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
@@ -1079,7 +1078,7 @@ declare class TonightPass {
|
|
|
1079
1078
|
me: () => Promise<User>;
|
|
1080
1079
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
1081
1080
|
exists: boolean;
|
|
1082
|
-
identifier: UserIdentifier
|
|
1081
|
+
identifier: Partial<UserIdentifier>;
|
|
1083
1082
|
suggestions?: string[];
|
|
1084
1083
|
}>;
|
|
1085
1084
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
@@ -1092,4 +1091,4 @@ declare class TonightPass {
|
|
|
1092
1091
|
|
|
1093
1092
|
declare const isBrowser: boolean;
|
|
1094
1093
|
|
|
1095
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, 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 OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1094
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, 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 OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users
|
|
|
116
116
|
id: string;
|
|
117
117
|
}> | Endpoint<"GET", "/users/me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
118
118
|
exists: boolean;
|
|
119
|
-
identifier: UserIdentifier
|
|
119
|
+
identifier: Partial<UserIdentifier>;
|
|
120
120
|
suggestions?: string[];
|
|
121
121
|
}, {
|
|
122
122
|
identifier: boolean;
|
|
@@ -560,10 +560,9 @@ declare class UpdateOrganizationIdentityDto {
|
|
|
560
560
|
declare class CreateUserDto {
|
|
561
561
|
identifier: UserIdentifier;
|
|
562
562
|
password: string;
|
|
563
|
-
identity:
|
|
564
|
-
addresses: Location$1[];
|
|
563
|
+
identity: CreateUserIdentityDto;
|
|
565
564
|
}
|
|
566
|
-
declare class
|
|
565
|
+
declare class CreateUserIdentityDto {
|
|
567
566
|
firstName: string;
|
|
568
567
|
lastName: string;
|
|
569
568
|
gender: UserIdentityGender;
|
|
@@ -759,7 +758,7 @@ declare class Client {
|
|
|
759
758
|
method: "GET";
|
|
760
759
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
761
760
|
exists: boolean;
|
|
762
|
-
identifier: UserIdentifier
|
|
761
|
+
identifier: Partial<UserIdentifier>;
|
|
763
762
|
suggestions?: string[];
|
|
764
763
|
}, {
|
|
765
764
|
identifier: boolean;
|
|
@@ -971,7 +970,7 @@ declare const users: (client: Client) => {
|
|
|
971
970
|
me: () => Promise<User>;
|
|
972
971
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
973
972
|
exists: boolean;
|
|
974
|
-
identifier: UserIdentifier
|
|
973
|
+
identifier: Partial<UserIdentifier>;
|
|
975
974
|
suggestions?: string[];
|
|
976
975
|
}>;
|
|
977
976
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
@@ -1079,7 +1078,7 @@ declare class TonightPass {
|
|
|
1079
1078
|
me: () => Promise<User>;
|
|
1080
1079
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
1081
1080
|
exists: boolean;
|
|
1082
|
-
identifier: UserIdentifier
|
|
1081
|
+
identifier: Partial<UserIdentifier>;
|
|
1083
1082
|
suggestions?: string[];
|
|
1084
1083
|
}>;
|
|
1085
1084
|
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
@@ -1092,4 +1091,4 @@ declare class TonightPass {
|
|
|
1092
1091
|
|
|
1093
1092
|
declare const isBrowser: boolean;
|
|
1094
1093
|
|
|
1095
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, 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 OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1094
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, 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 OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.js
CHANGED
|
@@ -10,39 +10,40 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
10
10
|
|
|
11
11
|
var jt__default = /*#__PURE__*/_interopDefault(jt);
|
|
12
12
|
|
|
13
|
-
var tt=Object.defineProperty;var o=(e,t)=>tt(e,"name",{value:t,configurable:!0});var oe="https://api.tonightpass.com";var C={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,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,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(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 N=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],N.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof v>"u"?Object:v)],N.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],N.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],N.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"]}),w("design:type",String)],v.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],v.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],v.prototype,"socialLinks",void 0);function R(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(R,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var D=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),A("design:type",String)],D.prototype,"slug",void 0);R([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof j>"u"?Object:j)],D.prototype,"identity",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],D.prototype,"members",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],D.prototype,"location",void 0);var j=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};R([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],j.prototype,"displayName",void 0);R([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],j.prototype,"description",void 0);R([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],j.prototype,"avatarUrl",void 0);R([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],j.prototype,"bannerUrl",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],j.prototype,"socialLinks",void 0);var ce=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var k=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var fe=class extends k{static{o(this,"UpdateOrganizationEventStyleDto");}};exports.OrganizationEventTicketType = void 0;(function(e){e.ETicket="e-ticket",e.Other="other";})(exports.OrganizationEventTicketType||(exports.OrganizationEventTicketType={}));exports.OrganizationEventTicketCategory = void 0;(function(e){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";})(exports.OrganizationEventTicketCategory||(exports.OrganizationEventTicketCategory={}));exports.OrganizationEventStyleType = void 0;(function(e){e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art";})(exports.OrganizationEventStyleType||(exports.OrganizationEventStyleType={}));exports.OrganizationEventType = void 0;(function(e){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";})(exports.OrganizationEventType||(exports.OrganizationEventType={}));exports.OrganizationEventVisibilityType = void 0;(function(e){e.Public="public",e.Unlisted="unlisted",e.Private="private";})(exports.OrganizationEventVisibilityType||(exports.OrganizationEventVisibilityType={}));exports.OrganizationMemberStatus = void 0;(function(e){e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected";})(exports.OrganizationMemberStatus||(exports.OrganizationMemberStatus={}));exports.OrganizationMemberRole = void 0;(function(e){e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner";})(exports.OrganizationMemberRole||(exports.OrganizationMemberRole={}));exports.OrganizationSocialType = void 0;(function(e){e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website";})(exports.OrganizationSocialType||(exports.OrganizationSocialType={}));exports.UserTokenType = void 0;(function(e){e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation";})(exports.UserTokenType||(exports.UserTokenType={}));exports.UserRole = void 0;(function(e){e.User="user",e.Developer="developer",e.Admin="admin";})(exports.UserRole||(exports.UserRole={}));exports.UserIdentityGender = void 0;(function(e){e.Male="male",e.Female="female",e.NonBinary="non-binary";})(exports.UserIdentityGender||(exports.UserIdentityGender={}));exports.Currency = void 0;(function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP";})(exports.Currency||(exports.Currency={}));exports.Language = void 0;(function(e){e.FR="fr",e.EN="en";})(exports.Language||(exports.Language={}));function u(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function m(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(m,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};u([classValidator.IsString(),classValidator.Length(1,128),m("design:type",String)],c.prototype,"name",void 0);u([classValidator.IsString(),classValidator.Length(1,1024),m("design:type",String)],c.prototype,"description",void 0);u([classValidator.IsNumber(),classValidator.Min(0),m("design:type",Number)],c.prototype,"price",void 0);u([classValidator.IsNumber(),classValidator.Min(0),m("design:type",Number)],c.prototype,"quantity",void 0);u([classValidator.IsEnum(exports.OrganizationEventTicketType),m("design:type",typeof exports.OrganizationEventTicketType>"u"?Object:exports.OrganizationEventTicketType)],c.prototype,"type",void 0);u([classValidator.IsEnum(exports.OrganizationEventTicketCategory),m("design:type",typeof exports.OrganizationEventTicketCategory>"u"?Object:exports.OrganizationEventTicketCategory)],c.prototype,"category",void 0);u([classValidator.IsEnum(exports.Currency),m("design:type",typeof exports.Currency>"u"?Object:exports.Currency)],c.prototype,"currency",void 0);u([classValidator.IsBoolean(),m("design:type",Boolean)],c.prototype,"isVisible",void 0);u([classValidator.IsBoolean(),m("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),m("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),m("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);var Re=class extends c{static{o(this,"UpdateOrganizationEventTicketDto");}};function L(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(L,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(z,"_ts_metadata");var g=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};L([classValidator.IsString(),classValidator.Length(1,64),z("design:type",String)],g.prototype,"title",void 0);L([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),z("design:type",String)],g.prototype,"slug",void 0);L([classValidator.IsString(),classValidator.Length(16,2048),z("design:type",String)],g.prototype,"description",void 0);L([classValidator.IsEnum(exports.OrganizationEventType),z("design:type",typeof exports.OrganizationEventType>"u"?Object:exports.OrganizationEventType)],g.prototype,"type",void 0);L([classValidator.IsEnum(exports.OrganizationEventVisibilityType),z("design:type",typeof exports.OrganizationEventVisibilityType>"u"?Object:exports.OrganizationEventVisibilityType)],g.prototype,"visibility",void 0);L([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"startAt",void 0);L([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"endAt",void 0);var _e=class extends g{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,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Pe,"_ts_decorate");function Le(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Le,"_ts_metadata");var W=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Pe([classValidator.IsString(),classValidator.IsNotEmpty(),Le("design:type",String)],W.prototype,"user",void 0);Pe([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),Le("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],W.prototype,"role",void 0);function ft(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(ft,"_ts_decorate");function lt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(lt,"_ts_metadata");var ee=class{static{o(this,"UpdateOrganizationMemberDto");}role};ft([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),lt("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],ee.prototype,"role",void 0);function mt(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(mt,"_ts_decorate");function gt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(gt,"_ts_metadata");var Ne=class{static{o(this,"CreateUserDto");}identifier;password;identity;addresses},ht=class{static{o(this,"CreateUserIdentituDto");}firstName;lastName;gender;avatarUrl;birthDate};mt([classValidator.IsEnum(exports.UserIdentityGender),gt("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],ht.prototype,"gender",void 0);var De=class{static{o(this,"SignInUserDto");}identifier;password};function f(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(f,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var F=class{static{o(this,"UpdateUserDto");}identifier;identity;password};f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>G),l("design:type",typeof G>"u"?Object:G)],F.prototype,"identifier",void 0);f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>y),l("design:type",typeof y>"u"?Object:y)],F.prototype,"identity",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],F.prototype,"password",void 0);var G=class{static{o(this,"UpdateIdentifierDto");}email;phoneNumber;username};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],G.prototype,"email",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],G.prototype,"phoneNumber",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),l("design:type",String)],G.prototype,"username",void 0);var y=class{static{o(this,"UpdateIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(C.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],y.prototype,"firstName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(C.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],y.prototype,"lastName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],y.prototype,"displayName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],y.prototype,"description",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"avatarUrl",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"bannerUrl",void 0);f([classValidator.IsOptional(),classValidator.IsEnum(exports.UserIdentityGender),l("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],y.prototype,"gender",void 0);f([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],y.prototype,"birthDate",void 0);var x=typeof window<"u";var Rt=jt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!x&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:x}),qe=o(async(e,t)=>Rt(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var te=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;}},V=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||oe;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 a=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await qe(a,{method:t,data:s,...n}),Z=p.data;if(!Z.success)throw new te(p,Z);return Z.data}};function P(e){return e}o(P,"sdk");var Fe=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 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 We=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),http:o(async()=>e.get("/health/http"),"http")});var $e=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 Ze=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var Ce=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 He=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 Xe=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:Ze(e),styles:Ce(e),tickets:He(e)}),"organizationsEvents");var Je=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 Ye=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:Xe(e),members:Je(e)});var Ke=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get")});var Qe=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users",{id: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 Te=e=>({registerToBeta:o(async()=>e.get("/notifications/subscribe/beta"),"registerToBeta")});var et=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new V(t),this.auth=Fe(this.client),this.careers=ke(this.client),this.health=We(this.client),this.orders=$e(this.client),this.organizations=Ye(this.client),this.profiles=Ke(this.client),this.users=Qe(this.client),this.notifications=Te(this.client);}};
|
|
13
|
+
var ot=Object.defineProperty;var o=(e,t)=>ot(e,"name",{value:t,configurable:!0});var re="https://api.tonightpass.com";var H={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,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,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(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 N=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],N.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof v>"u"?Object:v)],N.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],N.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],N.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"]}),w("design:type",String)],v.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),w("design:type",String)],v.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],v.prototype,"socialLinks",void 0);function R(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(R,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var O=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};R([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),A("design:type",String)],O.prototype,"slug",void 0);R([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof j>"u"?Object:j)],O.prototype,"identity",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],O.prototype,"members",void 0);R([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],O.prototype,"location",void 0);var j=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};R([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],j.prototype,"displayName",void 0);R([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],j.prototype,"description",void 0);R([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],j.prototype,"avatarUrl",void 0);R([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],j.prototype,"bannerUrl",void 0);R([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],j.prototype,"socialLinks",void 0);var fe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var k=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var le=class extends k{static{o(this,"UpdateOrganizationEventStyleDto");}};exports.OrganizationEventTicketType = void 0;(function(e){e.ETicket="e-ticket",e.Other="other";})(exports.OrganizationEventTicketType||(exports.OrganizationEventTicketType={}));exports.OrganizationEventTicketCategory = void 0;(function(e){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";})(exports.OrganizationEventTicketCategory||(exports.OrganizationEventTicketCategory={}));exports.OrganizationEventStyleType = void 0;(function(e){e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art";})(exports.OrganizationEventStyleType||(exports.OrganizationEventStyleType={}));exports.OrganizationEventType = void 0;(function(e){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";})(exports.OrganizationEventType||(exports.OrganizationEventType={}));exports.OrganizationEventVisibilityType = void 0;(function(e){e.Public="public",e.Unlisted="unlisted",e.Private="private";})(exports.OrganizationEventVisibilityType||(exports.OrganizationEventVisibilityType={}));exports.OrganizationMemberStatus = void 0;(function(e){e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected";})(exports.OrganizationMemberStatus||(exports.OrganizationMemberStatus={}));exports.OrganizationMemberRole = void 0;(function(e){e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner";})(exports.OrganizationMemberRole||(exports.OrganizationMemberRole={}));exports.OrganizationSocialType = void 0;(function(e){e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website";})(exports.OrganizationSocialType||(exports.OrganizationSocialType={}));exports.UserTokenType = void 0;(function(e){e.Authentication="authentication",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation";})(exports.UserTokenType||(exports.UserTokenType={}));exports.UserRole = void 0;(function(e){e.User="user",e.Developer="developer",e.Admin="admin";})(exports.UserRole||(exports.UserRole={}));exports.UserIdentityGender = void 0;(function(e){e.Male="male",e.Female="female",e.NonBinary="non-binary";})(exports.UserIdentityGender||(exports.UserIdentityGender={}));exports.Currency = void 0;(function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP";})(exports.Currency||(exports.Currency={}));exports.Language = void 0;(function(e){e.FR="fr",e.EN="en";})(exports.Language||(exports.Language={}));function m(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(m,"_ts_decorate");function u(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(u,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};m([classValidator.IsString(),classValidator.Length(1,128),u("design:type",String)],c.prototype,"name",void 0);m([classValidator.IsString(),classValidator.Length(1,1024),u("design:type",String)],c.prototype,"description",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],c.prototype,"price",void 0);m([classValidator.IsNumber(),classValidator.Min(0),u("design:type",Number)],c.prototype,"quantity",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketType),u("design:type",typeof exports.OrganizationEventTicketType>"u"?Object:exports.OrganizationEventTicketType)],c.prototype,"type",void 0);m([classValidator.IsEnum(exports.OrganizationEventTicketCategory),u("design:type",typeof exports.OrganizationEventTicketCategory>"u"?Object:exports.OrganizationEventTicketCategory)],c.prototype,"category",void 0);m([classValidator.IsEnum(exports.Currency),u("design:type",typeof exports.Currency>"u"?Object:exports.Currency)],c.prototype,"currency",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],c.prototype,"isVisible",void 0);m([classValidator.IsBoolean(),u("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);m([classValidator.IsDateString(),classValidator.IsOptional(),u("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);var Ae=class extends c{static{o(this,"UpdateOrganizationEventTicketDto");}};function L(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(L,"_ts_decorate");function z(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(z,"_ts_metadata");var g=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};L([classValidator.IsString(),classValidator.Length(1,64),z("design:type",String)],g.prototype,"title",void 0);L([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),z("design:type",String)],g.prototype,"slug",void 0);L([classValidator.IsString(),classValidator.Length(16,2048),z("design:type",String)],g.prototype,"description",void 0);L([classValidator.IsEnum(exports.OrganizationEventType),z("design:type",typeof exports.OrganizationEventType>"u"?Object:exports.OrganizationEventType)],g.prototype,"type",void 0);L([classValidator.IsEnum(exports.OrganizationEventVisibilityType),z("design:type",typeof exports.OrganizationEventVisibilityType>"u"?Object:exports.OrganizationEventVisibilityType)],g.prototype,"visibility",void 0);L([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"startAt",void 0);L([classValidator.IsDateString(),z("design:type",typeof Date>"u"?Object:Date)],g.prototype,"endAt",void 0);var Pe=class extends g{static{o(this,"UpdateOrganizationEventDto");}};function Le(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Le,"_ts_decorate");function ze(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ze,"_ts_metadata");var W=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Le([classValidator.IsString(),classValidator.IsNotEmpty(),ze("design:type",String)],W.prototype,"user",void 0);Le([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),ze("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],W.prototype,"role",void 0);function lt(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(lt,"_ts_decorate");function dt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(dt,"_ts_metadata");var ee=class{static{o(this,"UpdateOrganizationMemberDto");}role};lt([classValidator.IsEnum(exports.OrganizationMemberRole),classValidator.IsNotEmpty(),dt("design:type",typeof exports.OrganizationMemberRole>"u"?Object:exports.OrganizationMemberRole)],ee.prototype,"role",void 0);function gt(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(gt,"_ts_decorate");function yt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(yt,"_ts_metadata");var Oe=class{static{o(this,"CreateUserDto");}identifier;password;identity},te=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};gt([classValidator.IsEnum(exports.UserIdentityGender),yt("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],te.prototype,"gender",void 0);var De=class{static{o(this,"SignInUserDto");}identifier;password};function f(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var p=e.length-1;p>=0;p--)(a=e[p])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(f,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var F=class{static{o(this,"UpdateUserDto");}identifier;identity;password};f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>G),l("design:type",typeof G>"u"?Object:G)],F.prototype,"identifier",void 0);f([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>y),l("design:type",typeof y>"u"?Object:y)],F.prototype,"identity",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],F.prototype,"password",void 0);var G=class{static{o(this,"UpdateIdentifierDto");}email;phoneNumber;username};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],G.prototype,"email",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],G.prototype,"phoneNumber",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(3),l("design:type",String)],G.prototype,"username",void 0);var y=class{static{o(this,"UpdateIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(H.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],y.prototype,"firstName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(H.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],y.prototype,"lastName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],y.prototype,"displayName",void 0);f([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],y.prototype,"description",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"avatarUrl",void 0);f([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],y.prototype,"bannerUrl",void 0);f([classValidator.IsOptional(),classValidator.IsEnum(exports.UserIdentityGender),l("design:type",typeof exports.UserIdentityGender>"u"?Object:exports.UserIdentityGender)],y.prototype,"gender",void 0);f([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],y.prototype,"birthDate",void 0);var x=typeof window<"u";var Rt=jt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!x&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e){return JSON.stringify(e)}],withCredentials:x}),Fe=o(async(e,t)=>Rt(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var oe=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;}},V=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||re;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 a=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let p=await Fe(a,{method:t,data:s,...n}),Z=p.data;if(!Z.success)throw new oe(p,Z);return Z.data}};function P(e){return e}o(P,"sdk");var ke=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 We=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"),http:o(async()=>e.get("/health/http"),"http")});var Ve=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(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 He=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var Xe=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:He(e),styles:Xe(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=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get")});var Te=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users",{id: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 et=e=>({registerToBeta:o(async()=>e.get("/notifications/subscribe/beta"),"registerToBeta")});var tt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new V(t),this.auth=ke(this.client),this.careers=We(this.client),this.health=$e(this.client),this.orders=Ve(this.client),this.organizations=Ke(this.client),this.profiles=Qe(this.client),this.users=Te(this.client),this.notifications=et(this.client);}};
|
|
14
14
|
|
|
15
15
|
exports.Client = V;
|
|
16
16
|
exports.CreateOrganizationDto = N;
|
|
17
17
|
exports.CreateOrganizationEventDto = g;
|
|
18
|
-
exports.CreateOrganizationEventOrderDto =
|
|
18
|
+
exports.CreateOrganizationEventOrderDto = fe;
|
|
19
19
|
exports.CreateOrganizationEventStyleDto = k;
|
|
20
20
|
exports.CreateOrganizationEventTicketDto = c;
|
|
21
21
|
exports.CreateOrganizationIdentityDto = v;
|
|
22
22
|
exports.CreateOrganizationMemberDto = W;
|
|
23
|
-
exports.CreateUserDto =
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
23
|
+
exports.CreateUserDto = Oe;
|
|
24
|
+
exports.CreateUserIdentityDto = te;
|
|
25
|
+
exports.DEFAULT_API_URL = re;
|
|
26
|
+
exports.REGEX = H;
|
|
26
27
|
exports.SignInUserDto = De;
|
|
27
|
-
exports.TonightPass =
|
|
28
|
-
exports.TonightPassAPIError =
|
|
29
|
-
exports.UpdateOrganizationDto =
|
|
30
|
-
exports.UpdateOrganizationEventDto =
|
|
31
|
-
exports.UpdateOrganizationEventStyleDto =
|
|
32
|
-
exports.UpdateOrganizationEventTicketDto =
|
|
28
|
+
exports.TonightPass = tt;
|
|
29
|
+
exports.TonightPassAPIError = oe;
|
|
30
|
+
exports.UpdateOrganizationDto = O;
|
|
31
|
+
exports.UpdateOrganizationEventDto = Pe;
|
|
32
|
+
exports.UpdateOrganizationEventStyleDto = le;
|
|
33
|
+
exports.UpdateOrganizationEventTicketDto = Ae;
|
|
33
34
|
exports.UpdateOrganizationIdentityDto = j;
|
|
34
35
|
exports.UpdateOrganizationMemberDto = ee;
|
|
35
36
|
exports.UpdateUserDto = F;
|
|
36
|
-
exports.auth =
|
|
37
|
-
exports.careers =
|
|
38
|
-
exports.health =
|
|
37
|
+
exports.auth = ke;
|
|
38
|
+
exports.careers = We;
|
|
39
|
+
exports.health = $e;
|
|
39
40
|
exports.isBrowser = x;
|
|
40
|
-
exports.notifications =
|
|
41
|
-
exports.orders =
|
|
42
|
-
exports.organizations =
|
|
43
|
-
exports.profiles =
|
|
44
|
-
exports.request =
|
|
41
|
+
exports.notifications = et;
|
|
42
|
+
exports.orders = Ve;
|
|
43
|
+
exports.organizations = Ke;
|
|
44
|
+
exports.profiles = Qe;
|
|
45
|
+
exports.request = Fe;
|
|
45
46
|
exports.sdk = P;
|
|
46
|
-
exports.users =
|
|
47
|
+
exports.users = Te;
|
|
47
48
|
//# sourceMappingURL=index.js.map
|
|
48
49
|
//# sourceMappingURL=index.js.map
|