tonightpass 0.0.108 → 0.0.109
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 +6 -0
- package/dist/index.d.mts +64 -9
- package/dist/index.d.ts +64 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/rest/dtos/index.ts +1 -0
- package/src/rest/dtos/locations/create-location.dto.ts +68 -0
- package/src/rest/dtos/locations/index.ts +2 -0
- package/src/rest/dtos/locations/update-location.dto.ts +37 -0
- package/src/rest/dtos/organizations/events/create-organization-event.dto.ts +52 -5
- package/src/rest/dtos/organizations/events/tickets/create-organization-event-ticket.dto.ts +12 -1
- package/src/rest/dtos/organizations/events/tickets/update-organization-event-ticket.dto.ts +69 -2
- package/src/rest/dtos/organizations/events/update-organization-event.dto.ts +87 -2
- package/src/rest/dtos/users/create-user.dto.ts +6 -0
- package/src/rest/dtos/users/sign-in-user.dto.ts +7 -0
- package/src/rest/types/index.ts +4 -0
- package/src/rest/types/organizations/events/index.ts +0 -4
- package/tests/dtos/index.ts +157 -0
- package/tests/index.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.109 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[
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m36.28 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m115.69 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 1015ms
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m31.85 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m115.44 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 1015ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 4538ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m40.51 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m40.51 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.109
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e28d776`](https://github.com/tonightpass/tonightpass/commit/e28d776f24a1a30a1e40dd7bf256e4c647c973c2) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update OrganizationEvent DTOs with strict rules
|
|
8
|
+
|
|
3
9
|
## 0.0.108
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -329,9 +329,6 @@ type OrganizationEvent = Base & {
|
|
|
329
329
|
startAt: Date;
|
|
330
330
|
endAt: Date;
|
|
331
331
|
};
|
|
332
|
-
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
333
|
-
distance: number;
|
|
334
|
-
};
|
|
335
332
|
declare enum OrganizationEventType {
|
|
336
333
|
Clubbing = "clubbing",
|
|
337
334
|
Concert = "concert",
|
|
@@ -475,6 +472,9 @@ type Base = {
|
|
|
475
472
|
updatedAt: Date;
|
|
476
473
|
};
|
|
477
474
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
475
|
+
type DeepPartial<T> = {
|
|
476
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
477
|
+
};
|
|
478
478
|
declare enum Currency {
|
|
479
479
|
EUR = "EUR",
|
|
480
480
|
USD = "USD",
|
|
@@ -530,6 +530,30 @@ type ArrayResult<T> = {
|
|
|
530
530
|
limit: number;
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
+
declare class GeoPointDto implements GeoPoint {
|
|
534
|
+
type: "Point";
|
|
535
|
+
coordinates: [number, number];
|
|
536
|
+
constructor();
|
|
537
|
+
validate(): boolean;
|
|
538
|
+
}
|
|
539
|
+
declare class CreateLocationDto implements Location$1 {
|
|
540
|
+
name?: string;
|
|
541
|
+
address: string;
|
|
542
|
+
zipCode: string;
|
|
543
|
+
city: string;
|
|
544
|
+
country: string;
|
|
545
|
+
geometry: GeoPointDto;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class UpdateLocationDto implements Partial<Location$1> {
|
|
549
|
+
name?: string;
|
|
550
|
+
address?: string;
|
|
551
|
+
zipCode?: string;
|
|
552
|
+
city?: string;
|
|
553
|
+
country?: string;
|
|
554
|
+
geometry?: GeoPointDto;
|
|
555
|
+
}
|
|
556
|
+
|
|
533
557
|
declare class CreateOrganizationMemberDto {
|
|
534
558
|
user: string;
|
|
535
559
|
role: OrganizationMemberRole;
|
|
@@ -553,7 +577,10 @@ declare class CreateOrganizationEventOrderDto {
|
|
|
553
577
|
cart: string[];
|
|
554
578
|
}
|
|
555
579
|
|
|
556
|
-
|
|
580
|
+
type CreateOrganizationEventTicketInput = Omit<ExcludeBase<OrganizationEventTicket>, "price" | "product" | "event" | "fee"> & {
|
|
581
|
+
price: number;
|
|
582
|
+
};
|
|
583
|
+
declare class CreateOrganizationEventTicketDto implements CreateOrganizationEventTicketInput {
|
|
557
584
|
name: string;
|
|
558
585
|
description?: string;
|
|
559
586
|
price: number;
|
|
@@ -567,10 +594,26 @@ declare class CreateOrganizationEventTicketDto {
|
|
|
567
594
|
endAt?: Date;
|
|
568
595
|
}
|
|
569
596
|
|
|
570
|
-
declare class UpdateOrganizationEventTicketDto
|
|
597
|
+
declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrganizationEventTicketInput> {
|
|
598
|
+
name?: string;
|
|
599
|
+
description?: string;
|
|
600
|
+
price?: number;
|
|
601
|
+
quantity?: number;
|
|
602
|
+
type?: OrganizationEventTicketType;
|
|
603
|
+
category?: OrganizationEventTicketCategory;
|
|
604
|
+
currency?: Currency;
|
|
605
|
+
isVisible?: boolean;
|
|
606
|
+
isFeesIncluded?: boolean;
|
|
607
|
+
startAt?: Date;
|
|
608
|
+
endAt?: Date;
|
|
571
609
|
}
|
|
572
610
|
|
|
573
|
-
|
|
611
|
+
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization"> & {
|
|
612
|
+
slug?: string;
|
|
613
|
+
styles: string[];
|
|
614
|
+
tickets: CreateOrganizationEventTicketInput[];
|
|
615
|
+
};
|
|
616
|
+
declare class CreateOrganizationEventDto implements CreateOrganizationEventInput {
|
|
574
617
|
title: string;
|
|
575
618
|
slug?: string;
|
|
576
619
|
description: string;
|
|
@@ -578,14 +621,26 @@ declare class CreateOrganizationEventDto {
|
|
|
578
621
|
visibility: OrganizationEventVisibilityType;
|
|
579
622
|
flyers: string[];
|
|
580
623
|
trailers: string[];
|
|
581
|
-
location:
|
|
624
|
+
location: CreateLocationDto;
|
|
582
625
|
tickets: CreateOrganizationEventTicketDto[];
|
|
583
626
|
styles: string[];
|
|
584
627
|
startAt: Date;
|
|
585
628
|
endAt: Date;
|
|
586
629
|
}
|
|
587
630
|
|
|
588
|
-
declare class UpdateOrganizationEventDto
|
|
631
|
+
declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
|
|
632
|
+
title?: string;
|
|
633
|
+
slug?: string;
|
|
634
|
+
description?: string;
|
|
635
|
+
type?: OrganizationEventType;
|
|
636
|
+
visibility?: OrganizationEventVisibilityType;
|
|
637
|
+
flyers?: string[];
|
|
638
|
+
trailers?: string[];
|
|
639
|
+
location?: UpdateLocationDto;
|
|
640
|
+
tickets?: UpdateOrganizationEventTicketDto[];
|
|
641
|
+
styles?: string[];
|
|
642
|
+
startAt?: Date;
|
|
643
|
+
endAt?: Date;
|
|
589
644
|
}
|
|
590
645
|
|
|
591
646
|
declare class UpdateOrganizationDto {
|
|
@@ -976,4 +1031,4 @@ declare class TonightPass {
|
|
|
976
1031
|
declare const isBrowser: boolean;
|
|
977
1032
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
978
1033
|
|
|
979
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Distance, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type
|
|
1034
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -329,9 +329,6 @@ type OrganizationEvent = Base & {
|
|
|
329
329
|
startAt: Date;
|
|
330
330
|
endAt: Date;
|
|
331
331
|
};
|
|
332
|
-
type OrganizationEventWithDistance = OrganizationEvent & {
|
|
333
|
-
distance: number;
|
|
334
|
-
};
|
|
335
332
|
declare enum OrganizationEventType {
|
|
336
333
|
Clubbing = "clubbing",
|
|
337
334
|
Concert = "concert",
|
|
@@ -475,6 +472,9 @@ type Base = {
|
|
|
475
472
|
updatedAt: Date;
|
|
476
473
|
};
|
|
477
474
|
type ExcludeBase<T> = Omit<T, keyof Base>;
|
|
475
|
+
type DeepPartial<T> = {
|
|
476
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
477
|
+
};
|
|
478
478
|
declare enum Currency {
|
|
479
479
|
EUR = "EUR",
|
|
480
480
|
USD = "USD",
|
|
@@ -530,6 +530,30 @@ type ArrayResult<T> = {
|
|
|
530
530
|
limit: number;
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
+
declare class GeoPointDto implements GeoPoint {
|
|
534
|
+
type: "Point";
|
|
535
|
+
coordinates: [number, number];
|
|
536
|
+
constructor();
|
|
537
|
+
validate(): boolean;
|
|
538
|
+
}
|
|
539
|
+
declare class CreateLocationDto implements Location$1 {
|
|
540
|
+
name?: string;
|
|
541
|
+
address: string;
|
|
542
|
+
zipCode: string;
|
|
543
|
+
city: string;
|
|
544
|
+
country: string;
|
|
545
|
+
geometry: GeoPointDto;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class UpdateLocationDto implements Partial<Location$1> {
|
|
549
|
+
name?: string;
|
|
550
|
+
address?: string;
|
|
551
|
+
zipCode?: string;
|
|
552
|
+
city?: string;
|
|
553
|
+
country?: string;
|
|
554
|
+
geometry?: GeoPointDto;
|
|
555
|
+
}
|
|
556
|
+
|
|
533
557
|
declare class CreateOrganizationMemberDto {
|
|
534
558
|
user: string;
|
|
535
559
|
role: OrganizationMemberRole;
|
|
@@ -553,7 +577,10 @@ declare class CreateOrganizationEventOrderDto {
|
|
|
553
577
|
cart: string[];
|
|
554
578
|
}
|
|
555
579
|
|
|
556
|
-
|
|
580
|
+
type CreateOrganizationEventTicketInput = Omit<ExcludeBase<OrganizationEventTicket>, "price" | "product" | "event" | "fee"> & {
|
|
581
|
+
price: number;
|
|
582
|
+
};
|
|
583
|
+
declare class CreateOrganizationEventTicketDto implements CreateOrganizationEventTicketInput {
|
|
557
584
|
name: string;
|
|
558
585
|
description?: string;
|
|
559
586
|
price: number;
|
|
@@ -567,10 +594,26 @@ declare class CreateOrganizationEventTicketDto {
|
|
|
567
594
|
endAt?: Date;
|
|
568
595
|
}
|
|
569
596
|
|
|
570
|
-
declare class UpdateOrganizationEventTicketDto
|
|
597
|
+
declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrganizationEventTicketInput> {
|
|
598
|
+
name?: string;
|
|
599
|
+
description?: string;
|
|
600
|
+
price?: number;
|
|
601
|
+
quantity?: number;
|
|
602
|
+
type?: OrganizationEventTicketType;
|
|
603
|
+
category?: OrganizationEventTicketCategory;
|
|
604
|
+
currency?: Currency;
|
|
605
|
+
isVisible?: boolean;
|
|
606
|
+
isFeesIncluded?: boolean;
|
|
607
|
+
startAt?: Date;
|
|
608
|
+
endAt?: Date;
|
|
571
609
|
}
|
|
572
610
|
|
|
573
|
-
|
|
611
|
+
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "organization"> & {
|
|
612
|
+
slug?: string;
|
|
613
|
+
styles: string[];
|
|
614
|
+
tickets: CreateOrganizationEventTicketInput[];
|
|
615
|
+
};
|
|
616
|
+
declare class CreateOrganizationEventDto implements CreateOrganizationEventInput {
|
|
574
617
|
title: string;
|
|
575
618
|
slug?: string;
|
|
576
619
|
description: string;
|
|
@@ -578,14 +621,26 @@ declare class CreateOrganizationEventDto {
|
|
|
578
621
|
visibility: OrganizationEventVisibilityType;
|
|
579
622
|
flyers: string[];
|
|
580
623
|
trailers: string[];
|
|
581
|
-
location:
|
|
624
|
+
location: CreateLocationDto;
|
|
582
625
|
tickets: CreateOrganizationEventTicketDto[];
|
|
583
626
|
styles: string[];
|
|
584
627
|
startAt: Date;
|
|
585
628
|
endAt: Date;
|
|
586
629
|
}
|
|
587
630
|
|
|
588
|
-
declare class UpdateOrganizationEventDto
|
|
631
|
+
declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
|
|
632
|
+
title?: string;
|
|
633
|
+
slug?: string;
|
|
634
|
+
description?: string;
|
|
635
|
+
type?: OrganizationEventType;
|
|
636
|
+
visibility?: OrganizationEventVisibilityType;
|
|
637
|
+
flyers?: string[];
|
|
638
|
+
trailers?: string[];
|
|
639
|
+
location?: UpdateLocationDto;
|
|
640
|
+
tickets?: UpdateOrganizationEventTicketDto[];
|
|
641
|
+
styles?: string[];
|
|
642
|
+
startAt?: Date;
|
|
643
|
+
endAt?: Date;
|
|
589
644
|
}
|
|
590
645
|
|
|
591
646
|
declare class UpdateOrganizationDto {
|
|
@@ -976,4 +1031,4 @@ declare class TonightPass {
|
|
|
976
1031
|
declare const isBrowser: boolean;
|
|
977
1032
|
declare function buildFileFormData(key: string, files: File | File[] | FileList): FormData;
|
|
978
1033
|
|
|
979
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Distance, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type
|
|
1034
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, buildFileFormData, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';require('reflect-metadata');var classValidator=require('class-validator'),classTransformer=require('class-transformer'),zt=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var zt__default=/*#__PURE__*/_interopDefault(zt);var it=Object.defineProperty;var o=(e,t)=>it(e,"name",{value:t,configurable:!0});var de="https://api.tonightpass.com";var m={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function S(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(S,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var F=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};S([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),w("design:type",String)],F.prototype,"organizationSlug",void 0);S([classValidator.IsObject(),w("design:type",typeof v>"u"?Object:v)],F.prototype,"identity",void 0);S([classValidator.IsArray(),w("design:type",Array)],F.prototype,"members",void 0);S([classValidator.IsOptional(),classValidator.IsObject(),w("design:type",typeof Location>"u"?Object:Location)],F.prototype,"location",void 0);var v=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};S([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],v.prototype,"displayName",void 0);S([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),w("design:type",String)],v.prototype,"description",void 0);S([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"avatarUrl",void 0);S([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),w("design:type",String)],v.prototype,"bannerUrl",void 0);S([classValidator.IsOptional(),classValidator.IsArray(),w("design:type",Array)],v.prototype,"socialLinks",void 0);function j(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function A(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(A,"_ts_metadata");var M=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};j([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),A("design:type",String)],M.prototype,"slug",void 0);j([classValidator.IsObject(),classValidator.IsOptional(),A("design:type",typeof R>"u"?Object:R)],M.prototype,"identity",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],M.prototype,"members",void 0);j([classValidator.IsOptional(),classValidator.IsObject(),A("design:type",typeof Location>"u"?Object:Location)],M.prototype,"location",void 0);var R=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};j([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),A("design:type",String)],R.prototype,"displayName",void 0);j([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),A("design:type",String)],R.prototype,"description",void 0);j([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),A("design:type",String)],R.prototype,"avatarUrl",void 0);j([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),A("design:type",String)],R.prototype,"bannerUrl",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),A("design:type",Array)],R.prototype,"socialLinks",void 0);var xe=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var $=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var ve=class extends ${static{o(this,"UpdateOrganizationEventStyleDto");}};var X=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),Z=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var fo=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var V=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),C=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var yo=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),D=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var bo=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var wo=function(e){return e.Follow="follow",e}({});var jo=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var Io=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),E=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),_o=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var Po=function(e){return e.User="user",e.Organization="organization",e}({});var H=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),zo=function(e){return e.FR="fr",e.EN="en",e}({});function u(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function g(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(g,"_ts_metadata");var f=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};u([classValidator.IsString(),classValidator.Length(1,128),g("design:type",String)],f.prototype,"name",void 0);u([classValidator.IsString(),classValidator.Length(1,1024),g("design:type",String)],f.prototype,"description",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"price",void 0);u([classValidator.IsNumber(),classValidator.Min(0),g("design:type",Number)],f.prototype,"quantity",void 0);u([classValidator.IsEnum(X),g("design:type",typeof X>"u"?Object:X)],f.prototype,"type",void 0);u([classValidator.IsEnum(Z),g("design:type",typeof Z>"u"?Object:Z)],f.prototype,"category",void 0);u([classValidator.IsEnum(H),g("design:type",typeof H>"u"?Object:H)],f.prototype,"currency",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isVisible",void 0);u([classValidator.IsBoolean(),g("design:type",Boolean)],f.prototype,"isFeesIncluded",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"startAt",void 0);u([classValidator.IsDateString(),classValidator.IsOptional(),g("design:type",typeof Date>"u"?Object:Date)],f.prototype,"endAt",void 0);var Ne=class extends f{static{o(this,"UpdateOrganizationEventTicketDto");}};function P(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(P,"_ts_decorate");function U(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(U,"_ts_metadata");var y=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};P([classValidator.IsString(),classValidator.Length(1,64),U("design:type",String)],y.prototype,"title",void 0);P([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.SLUG),U("design:type",String)],y.prototype,"slug",void 0);P([classValidator.IsString(),classValidator.Length(16,2048),U("design:type",String)],y.prototype,"description",void 0);P([classValidator.IsEnum(V),U("design:type",typeof V>"u"?Object:V)],y.prototype,"type",void 0);P([classValidator.IsEnum(C),U("design:type",typeof C>"u"?Object:C)],y.prototype,"visibility",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);P([classValidator.IsDateString(),U("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);var Le=class extends y{static{o(this,"UpdateOrganizationEventDto");}};function Pe(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(Pe,"_ts_decorate");function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(Ue,"_ts_metadata");var J=class{static{o(this,"CreateOrganizationMemberDto");}user;role};Pe([classValidator.IsString(),classValidator.IsNotEmpty(),Ue("design:type",String)],J.prototype,"user",void 0);Pe([classValidator.IsEnum(D),classValidator.IsNotEmpty(),Ue("design:type",typeof D>"u"?Object:D)],J.prototype,"role",void 0);function ht(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(ht,"_ts_decorate");function bt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(bt,"_ts_metadata");var ie=class{static{o(this,"UpdateOrganizationMemberDto");}role};ht([classValidator.IsEnum(D),classValidator.IsNotEmpty(),bt("design:type",typeof D>"u"?Object:D)],ie.prototype,"role",void 0);function _(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(_,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var pe=class{static{o(this,"CreateUserDto");}identifier;identity;password};_([classValidator.IsString(),classValidator.Matches(m.PASSWORD,{message:"Password must be secure."}),N("design:type",String)],pe.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),N("design:type",String)],fe.prototype,"email",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),N("design:type",String)],fe.prototype,"phoneNumber",void 0);_([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),N("design:type",String)],fe.prototype,"username",void 0);var O=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),N("design:type",String)],O.prototype,"firstName",void 0);_([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),N("design:type",String)],O.prototype,"lastName",void 0);_([classValidator.IsEnum(E),N("design:type",typeof E>"u"?Object:E)],O.prototype,"gender",void 0);_([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),N("design:type",String)],O.prototype,"avatarUrl",void 0);_([classValidator.IsOptional(),classValidator.IsDateString(),N("design:type",typeof Date>"u"?Object:Date)],O.prototype,"birthDate",void 0);var Oe=class{static{o(this,"SignInUserDto");}identifier;password};function c(e,t,r,s){var i=arguments.length,n=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}o(c,"_ts_decorate");function l(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(l,"_ts_metadata");var q=class{static{o(this,"UpdateUserDto");}identifier;identity;password};c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>k),l("design:type",typeof k>"u"?Object:k)],q.prototype,"identifier",void 0);c([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>h),l("design:type",typeof h>"u"?Object:h)],q.prototype,"identity",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),l("design:type",String)],q.prototype,"password",void 0);var k=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),l("design:type",String)],k.prototype,"email",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),l("design:type",String)],k.prototype,"phoneNumber",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(m.USERNAME),l("design:type",String)],k.prototype,"username",void 0);var h=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"First name must be composed of letters only"}),l("design:type",String)],h.prototype,"firstName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(m.NAME,{message:"Last name must be composed of letters only"}),l("design:type",String)],h.prototype,"lastName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),l("design:type",String)],h.prototype,"displayName",void 0);c([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),l("design:type",String)],h.prototype,"description",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"avatarUrl",void 0);c([classValidator.IsOptional(),classValidator.IsUrl(),l("design:type",Object)],h.prototype,"bannerUrl",void 0);c([classValidator.IsOptional(),classValidator.IsEnum(E),l("design:type",typeof E>"u"?Object:E)],h.prototype,"gender",void 0);c([classValidator.IsOptional(),classValidator.IsDateString(),l("design:type",typeof Date>"u"?Object:Date)],h.prototype,"birthDate",void 0);var x=typeof window<"u";function Ge(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(s=>r.append(e,s)):t.forEach(s=>r.append(e,s)),r}o(Ge,"buildFileFormData");var Ot=zt__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!x&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:x}),qe=o(async(e,t)=>Ot(e,{...t}).then(s=>s).catch(s=>{throw s.data||console.error(s),s.data}),"request");var le=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},K=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,s)=>{let i=this.options.baseURL||de;return pathcat.pathcat(i,r,s)};}setOptions(t){this.options=t;}async get(t,r,s){return this.requester("GET",t,void 0,r,s)}async post(t,r,s,i){return this.requester("POST",t,r,s,i)}async put(t,r,s,i){return this.requester("PUT",t,r,s,i)}async patch(t,r,s,i){return this.requester("PATCH",t,r,s,i)}async delete(t,r,s,i){return this.requester("DELETE",t,r,s,i)}async requester(t,r,s,i={},n={}){let p=this.url(r,i);if(s!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await qe(p,{method:t,data:s,...n}),Q=a.data;if(!Q.success)throw new le(a,Q);return Q.data}};function b(e){return e}o(b,"sdk");var We=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(t=>{if(x)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(x)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(x)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var $e=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Xe=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Ze=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Ve=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(x)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(x)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var Ce=o(e=>({create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",s,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var He=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Je=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,s)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:s}),"get"),create:o(async(t,r,s)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",s,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,s,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",i,{organizationSlug:t,eventSlug:r,ticketId:s}),"update"),delete:o(async(t,r,s)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:s}),"delete")}),"organizationsEventsTickets");var Ye=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug",s,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Ce(e),styles:He(e),tickets:Je(e)}),"organizationsEvents");var Ke=o(e=>({getAll:o(async()=>e.get("/organizations/members"),"getAll"),delete:o(async t=>e.delete("/organizations/members/:memberId",null,{memberId:t}),"delete")}),"organizationsMembers");var Qe=e=>({getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Ve(e),events:Ye(e),members:Ke(e)});var Te=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,r)=>e.get("/profiles/:username/relationships/followers",{username:t,...r}),"getFollowers")});var et=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Te(e)});var tt=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var ot=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var rt=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update"),uploadFile:o(async(t,r,s)=>e.post("/users/:userId/files/:userFileType",Ge("file",s),{userId:t,userFileType:r}),"uploadFile"),bookings:tt(e),notifications:ot(e)});var st=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var nt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new K(t),this.auth=We(this.client),this.careers=$e(this.client),this.health=Xe(this.client),this.orders=Ze(this.client),this.organizations=Qe(this.client),this.profiles=et(this.client),this.users=rt(this.client),this.notifications=st(this.client);}};
|
|
2
|
-
exports.Client=
|
|
1
|
+
'use strict';require('reflect-metadata');var classTransformer=require('class-transformer'),classValidator=require('class-validator'),Mo=require('redaxios'),pathcat=require('pathcat');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Mo__default=/*#__PURE__*/_interopDefault(Mo);var Qt=Object.defineProperty;var o=(e,t)=>Qt(e,"name",{value:t,configurable:!0});var qe="https://api.tonightpass.com";var f={EMAIL:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i,NAME:/^[a-zA-Z0-9 ]+$/,SLUG:/^[a-z0-9_.]+$/,USERNAME:/^(?!\.)(?!.*\.\.)(?!.*\.$)[a-z0-9_.]{3,48}$/,PHONE:/^\+(?:[0-9] ?){6,14}[0-9]$/,PASSWORD:/^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d\W]).{8,}$/,PASSWORD_MIN_LENGTH:/^.{8,}$/,PASSWORD_UPPERCASE:/^(?=.*[A-Z])/,PASSWORD_LOWERCASE:/^(?=.*[a-z])/,PASSWORD_NUMBER_SPECIAL:/^(?=.*[\d\W])/,IMAGE_URL:/^(https:\/\/|http:\/\/)(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)$/i};function M(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(M,"_ts_decorate");function w(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(w,"_ts_metadata");var h=class{static{o(this,"GeoPointDto");}type;coordinates;constructor(){this.type="Point";}validate(){let[t,r]=this.coordinates;return r>=-90&&r<=90&&t>=-180&&t<=180}};M([classValidator.IsString(),classValidator.IsNotEmpty(),w("design:type",String)],h.prototype,"type",void 0);M([classValidator.IsArray(),classValidator.IsNotEmpty(),classValidator.Length(2,2),classValidator.IsNumber({},{each:!0}),w("design:type",Array)],h.prototype,"coordinates",void 0);M([classValidator.ValidateNested(),w("design:type",Function),w("design:paramtypes",[]),w("design:returntype",Boolean)],h.prototype,"validate",null);var b=class{static{o(this,"CreateLocationDto");}name;address;zipCode;city;country;geometry};M([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"name",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,256),w("design:type",String)],b.prototype,"address",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),w("design:type",String)],b.prototype,"zipCode",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"city",void 0);M([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,128),w("design:type",String)],b.prototype,"country",void 0);M([classValidator.ValidateNested(),classTransformer.Type(()=>h),classValidator.IsNotEmpty(),w("design:type",typeof h>"u"?Object:h)],b.prototype,"geometry",void 0);function ne(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(ne,"_ts_decorate");function ie(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(ie,"_ts_metadata");var v=class{static{o(this,"UpdateLocationDto");}name;address;zipCode;city;country;geometry};ne([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),ie("design:type",String)],v.prototype,"name",void 0);ne([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,256),ie("design:type",String)],v.prototype,"address",void 0);ne([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),ie("design:type",String)],v.prototype,"zipCode",void 0);ne([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),ie("design:type",String)],v.prototype,"city",void 0);ne([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),ie("design:type",String)],v.prototype,"country",void 0);ne([classValidator.IsOptional(),classValidator.ValidateNested(),classTransformer.Type(()=>h),ie("design:type",typeof h>"u"?Object:h)],v.prototype,"geometry",void 0);function G(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(G,"_ts_decorate");function q(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(q,"_ts_metadata");var pe=class{static{o(this,"CreateOrganizationDto");}organizationSlug;identity;members;location};G([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(1,48),q("design:type",String)],pe.prototype,"organizationSlug",void 0);G([classValidator.IsObject(),q("design:type",typeof B>"u"?Object:B)],pe.prototype,"identity",void 0);G([classValidator.IsArray(),q("design:type",Array)],pe.prototype,"members",void 0);G([classValidator.IsOptional(),classValidator.IsObject(),q("design:type",typeof Location>"u"?Object:Location)],pe.prototype,"location",void 0);var B=class{static{o(this,"CreateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};G([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),q("design:type",String)],B.prototype,"displayName",void 0);G([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),q("design:type",String)],B.prototype,"description",void 0);G([classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"avatarUrl",void 0);G([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"],host_whitelist:["cdn.tonightpass.com","cdn.staging.tonightpass.com"]}),q("design:type",String)],B.prototype,"bannerUrl",void 0);G([classValidator.IsOptional(),classValidator.IsArray(),q("design:type",Array)],B.prototype,"socialLinks",void 0);function W(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(W,"_ts_decorate");function $(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o($,"_ts_metadata");var ae=class{static{o(this,"UpdateOrganizationDto");}slug;identity;members;location};W([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(f.USERNAME),$("design:type",String)],ae.prototype,"slug",void 0);W([classValidator.IsObject(),classValidator.IsOptional(),$("design:type",typeof V>"u"?Object:V)],ae.prototype,"identity",void 0);W([classValidator.IsOptional(),classValidator.IsArray(),$("design:type",Array)],ae.prototype,"members",void 0);W([classValidator.IsOptional(),classValidator.IsObject(),$("design:type",typeof Location>"u"?Object:Location)],ae.prototype,"location",void 0);var V=class{static{o(this,"UpdateOrganizationIdentityDto");}displayName;description;avatarUrl;bannerUrl;socialLinks};W([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,32),classValidator.IsOptional(),$("design:type",String)],V.prototype,"displayName",void 0);W([classValidator.IsString(),classValidator.Length(16,1024),classValidator.IsOptional(),$("design:type",String)],V.prototype,"description",void 0);W([classValidator.IsUrl({protocols:["http","https"]}),classValidator.IsOptional(),$("design:type",String)],V.prototype,"avatarUrl",void 0);W([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),$("design:type",String)],V.prototype,"bannerUrl",void 0);W([classValidator.IsOptional(),classValidator.IsArray(),$("design:type",Array)],V.prototype,"socialLinks",void 0);var He=class{static{o(this,"CreateOrganizationEventOrderDto");}cart};var be=class{static{o(this,"CreateOrganizationEventStyleDto");}type;emoji;name};var Je=class extends be{static{o(this,"UpdateOrganizationEventStyleDto");}};var k=function(e){return e.ETicket="e-ticket",e.Other="other",e}({}),Z=function(e){return e.Entry="entry",e.Package="package",e.Meal="meal",e.Drink="drink",e.Parking="parking",e.Accommodation="accommodation",e.Camping="camping",e.Locker="locker",e.Shuttle="shuttle",e.Other="other",e}({});var Ir=function(e){return e.Music="music",e.Dress="dress",e.Sport="sport",e.Food="food",e.Art="art",e}({});var H=function(e){return e.Clubbing="clubbing",e.Concert="concert",e.Afterwork="afterwork",e.DancingLunch="dancing_lunch",e.Diner="diner",e.Garden="garden",e.AfterBeach="after_beach",e.Festival="festival",e.Spectacle="spectacle",e.Cruise="cruise",e.OutsideAnimation="outside_animation",e.Sport="sport",e.Match="match",e.Seminar="seminar",e.Conference="conference",e.WellnessDay="wellness_day",e.Workshop="workshop",e.TradeFair="trade_fair",e.ConsumerShow="consumer_show",e.Membership="membership",e}({}),J=function(e){return e.Public="public",e.Unlisted="unlisted",e.Private="private",e}({});var Dr=function(e){return e.Pending="pending",e.Accepted="accepted",e.Rejected="rejected",e}({}),Y=function(e){return e.Member="member",e.Manager="manager",e.Admin="admin",e.Owner="owner",e}({});var Pr=function(e){return e.Facebook="facebook",e.Twitter="twitter",e.Instagram="instagram",e.Linkedin="linkedin",e.Youtube="youtube",e.Website="website",e}({});var Fr=function(e){return e.Follow="follow",e}({});var Br=function(e){return e.Authentication="authentication",e.BookingTicket="booking_ticket",e.OrganizationInvite="organization_invite",e.PasswordRecovery="password_recovery",e.EmailValidation="email_validation",e.PhoneValidation="phone_validation",e}({});var qr=function(e){return e.User="user",e.Developer="developer",e.Admin="admin",e}({}),K=function(e){return e.Male="male",e.Female="female",e.NonBinary="non-binary",e}({}),Vr=function(e){return e.Avatar="avatar",e.Banner="banner",e}({});var kr=function(e){return e.User="user",e.Organization="organization",e}({});var Q=function(e){return e.EUR="EUR",e.USD="USD",e.GBP="GBP",e}({}),Hr=function(e){return e.FR="fr",e.EN="en",e}({});function A(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(A,"_ts_decorate");function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(_,"_ts_metadata");var c=class{static{o(this,"CreateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};A([classValidator.IsString(),classValidator.Length(1,128),_("design:type",String)],c.prototype,"name",void 0);A([classValidator.IsString(),classValidator.Length(1,1024),_("design:type",String)],c.prototype,"description",void 0);A([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"price",void 0);A([classValidator.IsNumber(),classValidator.Min(0),_("design:type",Number)],c.prototype,"quantity",void 0);A([classValidator.IsEnum(k),_("design:type",typeof k>"u"?Object:k)],c.prototype,"type",void 0);A([classValidator.IsEnum(Z),_("design:type",typeof Z>"u"?Object:Z)],c.prototype,"category",void 0);A([classValidator.IsEnum(Q),_("design:type",typeof Q>"u"?Object:Q)],c.prototype,"currency",void 0);A([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isVisible",void 0);A([classValidator.IsBoolean(),_("design:type",Boolean)],c.prototype,"isFeesIncluded",void 0);A([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"startAt",void 0);A([classValidator.IsDateString(),classValidator.IsOptional(),_("design:type",typeof Date>"u"?Object:Date)],c.prototype,"endAt",void 0);function O(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(O,"_ts_decorate");function N(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(N,"_ts_metadata");var d=class{static{o(this,"UpdateOrganizationEventTicketDto");}name;description;price;quantity;type;category;currency;isVisible;isFeesIncluded;startAt;endAt};O([classValidator.IsString(),classValidator.Length(1,128),classValidator.IsOptional(),N("design:type",String)],d.prototype,"name",void 0);O([classValidator.IsString(),classValidator.Length(1,1024),classValidator.IsOptional(),N("design:type",String)],d.prototype,"description",void 0);O([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],d.prototype,"price",void 0);O([classValidator.IsNumber(),classValidator.Min(0),classValidator.IsOptional(),N("design:type",Number)],d.prototype,"quantity",void 0);O([classValidator.IsEnum(k),classValidator.IsOptional(),N("design:type",typeof k>"u"?Object:k)],d.prototype,"type",void 0);O([classValidator.IsEnum(Z),classValidator.IsOptional(),N("design:type",typeof Z>"u"?Object:Z)],d.prototype,"category",void 0);O([classValidator.IsEnum(Q),classValidator.IsOptional(),N("design:type",typeof Q>"u"?Object:Q)],d.prototype,"currency",void 0);O([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],d.prototype,"isVisible",void 0);O([classValidator.IsBoolean(),classValidator.IsOptional(),N("design:type",Boolean)],d.prototype,"isFeesIncluded",void 0);O([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"startAt",void 0);O([classValidator.IsDateString(),classValidator.IsOptional(),N("design:type",typeof Date>"u"?Object:Date)],d.prototype,"endAt",void 0);function x(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(x,"_ts_decorate");function S(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(S,"_ts_metadata");var l=class{static{o(this,"CreateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(1,64),S("design:type",String)],l.prototype,"title",void 0);x([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(f.SLUG),S("design:type",String)],l.prototype,"slug",void 0);x([classValidator.IsString(),classValidator.IsNotEmpty(),classValidator.Length(16,2048),S("design:type",String)],l.prototype,"description",void 0);x([classValidator.IsEnum(H),classValidator.IsNotEmpty(),S("design:type",typeof H>"u"?Object:H)],l.prototype,"type",void 0);x([classValidator.IsEnum(J),classValidator.IsNotEmpty(),S("design:type",typeof J>"u"?Object:J)],l.prototype,"visibility",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"flyers",void 0);x([classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),S("design:type",Array)],l.prototype,"trailers",void 0);x([classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>b),classValidator.IsNotEmpty(),S("design:type",typeof b>"u"?Object:b)],l.prototype,"location",void 0);x([classValidator.IsArray(),classValidator.ValidateNested({each:!0}),classTransformer.Type(()=>c),classValidator.IsNotEmpty(),S("design:type",Array)],l.prototype,"tickets",void 0);x([classValidator.IsArray(),classValidator.IsString({each:!0}),classValidator.IsNotEmpty(),S("design:type",Array)],l.prototype,"styles",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"startAt",void 0);x([classValidator.IsDateString(),classValidator.IsNotEmpty(),S("design:type",typeof Date>"u"?Object:Date)],l.prototype,"endAt",void 0);function j(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(j,"_ts_decorate");function R(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(R,"_ts_metadata");var y=class{static{o(this,"UpdateOrganizationEventDto");}title;slug;description;type;visibility;flyers;trailers;location;tickets;styles;startAt;endAt};j([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,64),R("design:type",String)],y.prototype,"title",void 0);j([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(f.SLUG),R("design:type",String)],y.prototype,"slug",void 0);j([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(16,2048),R("design:type",String)],y.prototype,"description",void 0);j([classValidator.IsOptional(),classValidator.IsEnum(H),R("design:type",typeof H>"u"?Object:H)],y.prototype,"type",void 0);j([classValidator.IsOptional(),classValidator.IsEnum(J),R("design:type",typeof J>"u"?Object:J)],y.prototype,"visibility",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"flyers",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsUrl({},{each:!0}),R("design:type",Array)],y.prototype,"trailers",void 0);j([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>v),R("design:type",typeof v>"u"?Object:v)],y.prototype,"location",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),classValidator.ValidateNested({each:!0}),classTransformer.Type(()=>d),R("design:type",Array)],y.prototype,"tickets",void 0);j([classValidator.IsOptional(),classValidator.IsArray(),classValidator.IsString({each:!0}),R("design:type",Array)],y.prototype,"styles",void 0);j([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"startAt",void 0);j([classValidator.IsOptional(),classValidator.IsDateString(),R("design:type",typeof Date>"u"?Object:Date)],y.prototype,"endAt",void 0);function vt(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(vt,"_ts_decorate");function xt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(xt,"_ts_metadata");var Re=class{static{o(this,"CreateOrganizationMemberDto");}user;role};vt([classValidator.IsString(),classValidator.IsNotEmpty(),xt("design:type",String)],Re.prototype,"user",void 0);vt([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),xt("design:type",typeof Y>"u"?Object:Y)],Re.prototype,"role",void 0);function xo(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(xo,"_ts_decorate");function So(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(So,"_ts_metadata");var Fe=class{static{o(this,"UpdateOrganizationMemberDto");}role};xo([classValidator.IsEnum(Y),classValidator.IsNotEmpty(),So("design:type",typeof Y>"u"?Object:Y)],Fe.prototype,"role",void 0);function E(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(E,"_ts_decorate");function P(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(P,"_ts_metadata");var me=class{static{o(this,"CreateUserDto");}identifier;identity;password};E([classValidator.ValidateNested(),classTransformer.Type(()=>fe),P("design:type",typeof fe>"u"?Object:fe)],me.prototype,"identifier",void 0);E([classValidator.ValidateNested(),classTransformer.Type(()=>z),P("design:type",typeof z>"u"?Object:z)],me.prototype,"identity",void 0);E([classValidator.IsString(),classValidator.Matches(f.PASSWORD,{message:"Password must be secure."}),P("design:type",String)],me.prototype,"password",void 0);var fe=class{static{o(this,"CreateUserIdentifierDto");}email;phoneNumber;username};E([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),P("design:type",String)],fe.prototype,"email",void 0);E([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),P("design:type",String)],fe.prototype,"phoneNumber",void 0);E([classValidator.IsString(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(f.USERNAME),P("design:type",String)],fe.prototype,"username",void 0);var z=class{static{o(this,"CreateUserIdentityDto");}firstName;lastName;gender;avatarUrl;birthDate};E([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(f.NAME,{message:"First name must be composed of letters only"}),P("design:type",String)],z.prototype,"firstName",void 0);E([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(f.NAME,{message:"Last name must be composed of letters only"}),P("design:type",String)],z.prototype,"lastName",void 0);E([classValidator.IsEnum(K),P("design:type",typeof K>"u"?Object:K)],z.prototype,"gender",void 0);E([classValidator.IsOptional(),classValidator.IsUrl({protocols:["http","https"]}),P("design:type",String)],z.prototype,"avatarUrl",void 0);E([classValidator.IsOptional(),classValidator.IsDateString(),P("design:type",typeof Date>"u"?Object:Date)],z.prototype,"birthDate",void 0);function It(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(It,"_ts_decorate");function wt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(wt,"_ts_metadata");var we=class{static{o(this,"SignInUserDto");}identifier;password};It([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"identifier",void 0);It([classValidator.IsNotEmpty(),classValidator.IsString(),wt("design:type",String)],we.prototype,"password",void 0);function u(e,t,r,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(n=(s<3?p(n):s>3?p(t,r,n):p(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}o(u,"_ts_decorate");function m(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}o(m,"_ts_metadata");var ge=class{static{o(this,"UpdateUserDto");}identifier;identity;password};u([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>de),m("design:type",typeof de>"u"?Object:de)],ge.prototype,"identifier",void 0);u([classValidator.IsOptional(),classValidator.IsObject(),classValidator.ValidateNested(),classTransformer.Type(()=>L),m("design:type",typeof L>"u"?Object:L)],ge.prototype,"identity",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.MinLength(8),classValidator.MaxLength(128),m("design:type",String)],ge.prototype,"password",void 0);var de=class{static{o(this,"UpdateUserIdentifierDto");}email;phoneNumber;username};u([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsEmail(),m("design:type",String)],de.prototype,"email",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsPhoneNumber(),m("design:type",String)],de.prototype,"phoneNumber",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.IsLowercase(),classValidator.Length(3,48),classValidator.Matches(f.USERNAME),m("design:type",String)],de.prototype,"username",void 0);var L=class{static{o(this,"UpdateUserIdentityDto");}firstName;lastName;displayName;description;avatarUrl;bannerUrl;gender;birthDate};u([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(f.NAME,{message:"First name must be composed of letters only"}),m("design:type",String)],L.prototype,"firstName",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(2,32),classValidator.Matches(f.NAME,{message:"Last name must be composed of letters only"}),m("design:type",String)],L.prototype,"lastName",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,32),m("design:type",String)],L.prototype,"displayName",void 0);u([classValidator.IsOptional(),classValidator.IsString(),classValidator.Length(1,128),m("design:type",String)],L.prototype,"description",void 0);u([classValidator.IsOptional(),classValidator.IsUrl(),m("design:type",Object)],L.prototype,"avatarUrl",void 0);u([classValidator.IsOptional(),classValidator.IsUrl(),m("design:type",Object)],L.prototype,"bannerUrl",void 0);u([classValidator.IsOptional(),classValidator.IsEnum(K),m("design:type",typeof K>"u"?Object:K)],L.prototype,"gender",void 0);u([classValidator.IsOptional(),classValidator.IsDateString(),m("design:type",typeof Date>"u"?Object:Date)],L.prototype,"birthDate",void 0);var F=typeof window<"u";function Pt(e,t){let r=new FormData;return t instanceof File?r.append(e,t):t instanceof FileList?Array.from(t).forEach(i=>r.append(e,i)):t.forEach(i=>r.append(e,i)),r}o(Pt,"buildFileFormData");var Bo=Mo__default.default.create({headers:{"Content-Type":"application/json",Accept:"application/json",...!F&&{"User-Agent":"tonightpass-api-client"}},responseType:"json",transformRequest:[function(e,t){return e instanceof FormData?(t&&typeof t=="object"&&"Content-Type"in t&&delete t["Content-Type"],e):(t&&(t["Content-Type"]="application/json"),JSON.stringify(e))}],withCredentials:F}),Lt=o(async(e,t)=>Bo(e,{...t}).then(i=>i).catch(i=>{throw i.data||console.error(i),i.data}),"request");var Ge=class extends Error{static{o(this,"TonightPassAPIError");}response;data;status;constructor(t,r){super(r.message),this.response=t,this.data=r,this.status=t.status;}},Ae=class{static{o(this,"Client");}options;url;constructor(t){this.options=t,this.url=(r,i)=>{let s=this.options.baseURL||qe;return pathcat.pathcat(s,r,i)};}setOptions(t){this.options=t;}async get(t,r,i){return this.requester("GET",t,void 0,r,i)}async post(t,r,i,s){return this.requester("POST",t,r,i,s)}async put(t,r,i,s){return this.requester("PUT",t,r,i,s)}async patch(t,r,i,s){return this.requester("PATCH",t,r,i,s)}async delete(t,r,i,s){return this.requester("DELETE",t,r,i,s)}async requester(t,r,i,s={},n={}){let p=this.url(r,s);if(i!==void 0&&t==="GET")throw new Error("Cannot send a GET request with a body");let a=await Lt(p,{method:t,data:i,...n}),_e=a.data;if(!_e.success)throw new Ge(a,_e);return _e.data}};function U(e){return e}o(U,"sdk");var Ut=e=>({signIn:o(async t=>e.post("/auth/sign-in",t),"signIn"),signUp:o(async t=>e.post("/auth/sign-up",t),"signUp"),signOut:o(async()=>e.post("/auth/sign-out",null),"signOut"),refreshToken:o(async()=>e.post("/auth/refresh-token",null),"refreshToken"),oauth2:{google:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/google",t||{});else throw new Error("Google OAuth2 is only available in the browser")},"connect")},twitter:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/twitter",t||{});else throw new Error("Twitter OAuth2 is only available in the browser")},"connect")},facebook:{connect:o(t=>{if(F)window.location.href=e.url("/oauth2/facebook",t||{});else throw new Error("Facebook OAuth2 is only available in the browser")},"connect")}}});var zt=e=>({categories:{getAll:o(async t=>e.get("/careers/categories",t),"getAll")},employmentTypes:{getAll:o(async t=>e.get("/careers/employmentTypes",t),"getAll")},jobs:{getAll:o(async t=>e.get("/careers/jobs",t),"getAll"),get:o(async t=>e.get("/careers/jobs/:jobId",{jobId:t}),"get")},offices:{getAll:o(async t=>e.get("/careers/offices",t),"getAll")}});var Ft=e=>({getAll:o(async()=>e.get("/health"),"getAll"),database:o(async()=>e.get("/health/database"),"database"),api:o(async()=>e.get("/health/api"),"api"),app:o(async()=>e.get("/health/app"),"app")});var Mt=e=>({getAll:o(async t=>e.get("/orders",t),"getAll"),get:o(async t=>e.get("/orders/:orderId",{orderId:t}),"get")});var Bt=o(e=>({account:o(async t=>e.get("/organizations/:organizationSlug/billing/account",{organizationSlug:t}),"account"),link:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/link",{organizationSlug:t});else throw new Error("Billing link is only available in the browser")},"link"),dashboard:o(t=>{if(F)window.location.href=e.url("/organizations/:organizationSlug/billing/dashboard",{organizationSlug:t});else throw new Error("Billing dashboard is only available in the browser")},"dashboard")}),"organizationsBilling");var Gt=o(e=>({create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/orders",i,{organizationSlug:t,eventSlug:r}),"create")}),"organizationsEventsOrders");var qt=o(e=>({getAll:o(async()=>e.get("/organizations/events/styles"),"getAll"),get:o(async t=>e.get("/organizations/events/styles/:styleSlug",{styleSlug:t}),"get"),create:o(async t=>e.post("/organizations/events/styles",t),"create"),update:o(async(t,r)=>e.put("/organizations/events/styles/:styleSlug",r,{styleSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/events/styles/:styleSlug",null,{styleSlug:t}),"delete")}),"organizationsEventsStyles");var Vt=o(e=>({getAll:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets",{organizationSlug:t,eventSlug:r}),"getAll"),get:o(async(t,r,i)=>e.get("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",{organizationSlug:t,eventSlug:r,ticketId:i}),"get"),create:o(async(t,r,i)=>e.post("/organizations/:organizationSlug/events/:eventSlug/tickets",i,{organizationSlug:t,eventSlug:r}),"create"),update:o(async(t,r,i,s)=>e.put("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",s,{organizationSlug:t,eventSlug:r,ticketId:i}),"update"),delete:o(async(t,r,i)=>e.delete("/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId",null,{organizationSlug:t,eventSlug:r,ticketId:i}),"delete")}),"organizationsEventsTickets");var Wt=o(e=>({getAll:o(async(t,r)=>t?e.get("/organizations/:organizationSlug/events",{organizationSlug:t,...r}):e.get("/organizations/events",r),"getAll"),getSuggestions:o(async t=>e.get("/organizations/events/suggestions",t),"getSuggestions"),getNearby:o(async t=>e.get("/organizations/events/nearby",t),"getNearby"),get:o(async(t,r)=>e.get("/organizations/:organizationSlug/events/:eventSlug",{organizationSlug:t,eventSlug:r}),"get"),create:o(async(t,r)=>e.post("/organizations/:organizationSlug/events",r,{organizationSlug:t}),"create"),update:o(async(t,r,i)=>e.put("/organizations/:organizationSlug/events/:eventSlug",i,{organizationSlug:t,eventSlug:r}),"update"),delete:o(async(t,r)=>e.delete("/organizations/:organizationSlug/events/:eventSlug",null,{organizationSlug:t,eventSlug:r}),"delete"),orders:Gt(e),styles:qt(e),tickets:Vt(e)}),"organizationsEvents");var $t=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 Ct=e=>({getAll:o(async()=>e.get("/organizations"),"getAll"),get:o(async t=>e.get("/organizations/:organizationSlug",{organizationSlug:t}),"get"),create:o(async t=>e.post("/organizations",t),"create"),update:o(async(t,r)=>e.put("/organizations/:organizationSlug",r,{organizationSlug:t}),"update"),delete:o(async t=>e.delete("/organizations/:organizationSlug",null,{organizationSlug:t}),"delete"),billing:Bt(e),events:Wt(e),members:$t(e)});var Xt=e=>({follow:o(async t=>e.post("/profiles/:username/relationships/follow",null,{username:t}),"follow"),unfollow:o(async t=>e.post("/profiles/:username/relationships/unfollow",null,{username:t}),"unfollow"),getSuggestions:o(async t=>e.get("/profiles/@me/relationships/suggestions",t),"getSuggestions"),getFollowers:o(async(t,r)=>e.get("/profiles/:username/relationships/followers",{username:t,...r}),"getFollowers")});var kt=e=>({get:o(async t=>e.get("/profiles/:username",{username:t}),"get"),relationships:Xt(e)});var Zt=e=>({getAll:o(async()=>e.get("/users/bookings"),"getAll"),get:o(async t=>e.get("/users/bookings/:bookingId",{bookingId:t}),"get"),me:o(async()=>e.get("/users/@me/bookings"),"me")});var Ht=e=>({me:o(async()=>e.get("/users/@me/notifications"),"me"),count:o(async t=>e.get("/users/@me/notifications/count",t),"count")});var Jt=e=>({getAll:o(async()=>e.get("/users"),"getAll"),get:o(async t=>e.get("/users/:userId",{userId:t}),"get"),me:o(async()=>e.get("/users/@me"),"me"),check:o(async(t,r)=>e.get("/users/check/:identifier",{identifier:t,suggestions:r}),"check"),update:o(async(t,r)=>e.put("/users/:userId",r,{userId:t}),"update"),uploadFile:o(async(t,r,i)=>e.post("/users/:userId/files/:userFileType",Pt("file",i),{userId:t,userFileType:r}),"uploadFile"),bookings:Zt(e),notifications:Ht(e)});var Yt=e=>({registerToBeta:o(async t=>e.post("/notifications/subscribe/beta",{email:t}),"registerToBeta")});var Kt=class{static{o(this,"TonightPass");}client;auth;careers;health;orders;organizations;profiles;users;notifications;constructor(t){this.client=new Ae(t),this.auth=Ut(this.client),this.careers=zt(this.client),this.health=Ft(this.client),this.orders=Mt(this.client),this.organizations=Ct(this.client),this.profiles=kt(this.client),this.users=Jt(this.client),this.notifications=Yt(this.client);}};
|
|
2
|
+
exports.Client=Ae;exports.CreateLocationDto=b;exports.CreateOrganizationDto=pe;exports.CreateOrganizationEventDto=l;exports.CreateOrganizationEventOrderDto=He;exports.CreateOrganizationEventStyleDto=be;exports.CreateOrganizationEventTicketDto=c;exports.CreateOrganizationIdentityDto=B;exports.CreateOrganizationMemberDto=Re;exports.CreateUserDto=me;exports.CreateUserIdentityDto=z;exports.Currency=Q;exports.DEFAULT_API_URL=qe;exports.GeoPointDto=h;exports.Language=Hr;exports.OrganizationEventStyleType=Ir;exports.OrganizationEventTicketCategory=Z;exports.OrganizationEventTicketType=k;exports.OrganizationEventType=H;exports.OrganizationEventVisibilityType=J;exports.OrganizationMemberRole=Y;exports.OrganizationMemberStatus=Dr;exports.OrganizationSocialType=Pr;exports.ProfileType=kr;exports.REGEX=f;exports.SignInUserDto=we;exports.TonightPass=Kt;exports.TonightPassAPIError=Ge;exports.UpdateLocationDto=v;exports.UpdateOrganizationDto=ae;exports.UpdateOrganizationEventDto=y;exports.UpdateOrganizationEventStyleDto=Je;exports.UpdateOrganizationEventTicketDto=d;exports.UpdateOrganizationIdentityDto=V;exports.UpdateOrganizationMemberDto=Fe;exports.UpdateUserDto=ge;exports.UserFileType=Vr;exports.UserIdentityGender=K;exports.UserNotificationType=Fr;exports.UserRole=qr;exports.UserTokenType=Br;exports.auth=Ut;exports.buildFileFormData=Pt;exports.careers=zt;exports.health=Ft;exports.isBrowser=F;exports.notifications=Yt;exports.orders=Mt;exports.organizations=Ct;exports.profiles=kt;exports.request=Lt;exports.sdk=U;exports.users=Jt;//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|