tonightpass 0.0.81 → 0.0.83
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 +8 -8
- package/CHANGELOG.md +14 -0
- package/dist/index.d.mts +151 -397
- package/dist/index.d.ts +151 -397
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/rest/client.ts +90 -27
- package/src/rest/endpoints.ts +0 -17
- package/src/rest/request/request.ts +1 -1
- package/src/rest/types/organizations/members/index.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as pathcat from 'pathcat';
|
|
2
2
|
import { ParamValue, Query } from 'pathcat';
|
|
3
3
|
export * from 'pathcat';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { Options, Response } from 'redaxios';
|
|
4
|
+
import Stripe from 'stripe';
|
|
5
|
+
import { Options, Response as Response$1 } from 'redaxios';
|
|
7
6
|
|
|
8
7
|
declare const DEFAULT_API_URL = "https://api.tonightpass.com";
|
|
9
8
|
|
|
@@ -21,19 +20,6 @@ declare const REGEX: {
|
|
|
21
20
|
IMAGE_URL: RegExp;
|
|
22
21
|
};
|
|
23
22
|
|
|
24
|
-
type SuccessfulAPIResponse<T> = {
|
|
25
|
-
success: true;
|
|
26
|
-
data: T;
|
|
27
|
-
};
|
|
28
|
-
type ErroredAPIResponse = {
|
|
29
|
-
success: false;
|
|
30
|
-
message: string;
|
|
31
|
-
errors?: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
|
36
|
-
type PromisedAPIResponse<T> = Promise<APIResponse<T>>;
|
|
37
23
|
type Endpoint<M extends Options["method"], Path extends string, Res, Body = undefined> = {
|
|
38
24
|
method: M;
|
|
39
25
|
path: Path;
|
|
@@ -43,7 +29,7 @@ type Endpoint<M extends Options["method"], Path extends string, Res, Body = unde
|
|
|
43
29
|
type Endpoints = AuthEndpoints | CareersEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | ProfileEndpoints | UserEndpoints | WebhookEndpoints | NotificationsEndpoints;
|
|
44
30
|
|
|
45
31
|
type Order = Base & {
|
|
46
|
-
invoice:
|
|
32
|
+
invoice: Stripe.Invoice;
|
|
47
33
|
user: User;
|
|
48
34
|
};
|
|
49
35
|
type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
|
|
@@ -232,8 +218,8 @@ type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/st
|
|
|
232
218
|
type OrganizationEventTicket = Base & {
|
|
233
219
|
name: string;
|
|
234
220
|
description?: string;
|
|
235
|
-
price:
|
|
236
|
-
product:
|
|
221
|
+
price: Stripe.Price;
|
|
222
|
+
product: Stripe.Product;
|
|
237
223
|
fee: number;
|
|
238
224
|
quantity: number;
|
|
239
225
|
type: OrganizationEventTicketType;
|
|
@@ -349,7 +335,7 @@ declare enum OrganizationMemberRole {
|
|
|
349
335
|
Admin = "admin",
|
|
350
336
|
Owner = "owner"
|
|
351
337
|
}
|
|
352
|
-
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"GET", "/organizations/@me
|
|
338
|
+
type OrganizationMembersEndpoints = Endpoint<"GET", "/organizations/members", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"GET", "/organizations/members/@me", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"DELETE", "/organizations/members/:memberId", OrganizationMember[], null> | Endpoint<"GET", "/organizations/:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<OrganizationMember>> | Endpoint<"POST", "/organizations/:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto> | Endpoint<"PUT", "/organizations/:organizationSlug/members/:userId", OrganizationMember, UpdateOrganizationMemberDto> | Endpoint<"DELETE", "/organizations/:organizationSlug/members/:userId", OrganizationMember[], null>;
|
|
353
339
|
|
|
354
340
|
type Organization = Base & {
|
|
355
341
|
slug: string;
|
|
@@ -364,7 +350,7 @@ type Organization = Base & {
|
|
|
364
350
|
type OrganizationBilling = {
|
|
365
351
|
account: string;
|
|
366
352
|
};
|
|
367
|
-
type OrganizationBillingAccount =
|
|
353
|
+
type OrganizationBillingAccount = Stripe.Account;
|
|
368
354
|
type OrganizationIdentity = OrganizationProfile & {
|
|
369
355
|
socialLinks: OrganizationSocialLink[];
|
|
370
356
|
};
|
|
@@ -424,7 +410,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
|
424
410
|
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
425
411
|
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
426
412
|
|
|
427
|
-
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean,
|
|
413
|
+
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe.Event>;
|
|
428
414
|
|
|
429
415
|
type NotificationsEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
430
416
|
email: string;
|
|
@@ -623,18 +609,47 @@ declare class UpdateUserIdentityDto implements Partial<Pick<UserIdentity, "first
|
|
|
623
609
|
birthDate?: Date;
|
|
624
610
|
}
|
|
625
611
|
|
|
626
|
-
interface APIRequestOptions extends Options {
|
|
627
|
-
}
|
|
628
|
-
declare const request: <T>(url: string, options?: Options) => Promise<Response<APIResponse<T>>>;
|
|
629
|
-
|
|
630
612
|
type PathsFor<M extends Options["method"]> = Extract<Endpoints, {
|
|
631
613
|
method: M;
|
|
632
614
|
}>["path"];
|
|
615
|
+
type SuccessfulAPIResponse<T> = {
|
|
616
|
+
success: true;
|
|
617
|
+
data: T;
|
|
618
|
+
};
|
|
619
|
+
type ErroredAPIResponse = {
|
|
620
|
+
success: false;
|
|
621
|
+
message: string;
|
|
622
|
+
errors?: {
|
|
623
|
+
[key: string]: string;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
|
627
|
+
type PromisedAPIResponse<T> = Promise<APIResponse<T>>;
|
|
628
|
+
type Response<M extends Options["method"], P extends PathsFor<M>> = APIResponse<Extract<Endpoints, {
|
|
629
|
+
method: M;
|
|
630
|
+
path: P;
|
|
631
|
+
}>["res"]>;
|
|
632
|
+
type PromisedResponse<M extends Options["method"], P extends PathsFor<M>> = PromisedAPIResponse<Extract<Endpoints, {
|
|
633
|
+
method: M;
|
|
634
|
+
path: P;
|
|
635
|
+
}>["res"]>;
|
|
636
|
+
type Body<M extends Options["method"], P extends PathsFor<M>> = Extract<Endpoints, {
|
|
637
|
+
method: M;
|
|
638
|
+
path: P;
|
|
639
|
+
}>["body"];
|
|
640
|
+
type StringifiedQueryValue = string | string[];
|
|
641
|
+
type StringifiedQuery<T> = {
|
|
642
|
+
[K in keyof T]: StringifiedQueryValue;
|
|
643
|
+
};
|
|
644
|
+
type QueryParams<M extends Options["method"], P extends PathsFor<M>> = StringifiedQuery<Extract<Endpoints, {
|
|
645
|
+
method: M;
|
|
646
|
+
path: P;
|
|
647
|
+
}>["body"]>;
|
|
633
648
|
declare class TonightPassAPIError<T> extends Error {
|
|
634
|
-
readonly response: Response<APIResponse<T>>;
|
|
649
|
+
readonly response: Response$1<APIResponse<T>>;
|
|
635
650
|
readonly data: ErroredAPIResponse;
|
|
636
651
|
readonly status: number;
|
|
637
|
-
constructor(response: Response<APIResponse<T>>, data: ErroredAPIResponse);
|
|
652
|
+
constructor(response: Response$1<APIResponse<T>>, data: ErroredAPIResponse);
|
|
638
653
|
}
|
|
639
654
|
interface ClientOptions {
|
|
640
655
|
readonly baseURL: string;
|
|
@@ -644,276 +659,23 @@ declare class Client {
|
|
|
644
659
|
readonly url: (path: string, params: Record<string, ParamValue>) => string;
|
|
645
660
|
constructor(options: ClientOptions);
|
|
646
661
|
setOptions(options: ClientOptions): void;
|
|
647
|
-
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
method: "GET";
|
|
653
|
-
}> | Extract<Endpoint<"GET", "/oauth2/facebook", void>, {
|
|
654
|
-
path: Path;
|
|
655
|
-
method: "GET";
|
|
656
|
-
}> | Extract<Endpoint<"GET", "/oauth2/facebook/callback", void>, {
|
|
657
|
-
path: Path;
|
|
658
|
-
method: "GET";
|
|
659
|
-
}> | Extract<Endpoint<"GET", "/oauth2/twitter", void>, {
|
|
660
|
-
path: Path;
|
|
661
|
-
method: "GET";
|
|
662
|
-
}> | Extract<Endpoint<"GET", "/oauth2/twitter/callback", void>, {
|
|
663
|
-
path: Path;
|
|
664
|
-
method: "GET";
|
|
665
|
-
}> | Extract<Endpoint<"GET", "/careers/categories", CareersCategory[], {
|
|
666
|
-
language?: string;
|
|
667
|
-
}>, {
|
|
668
|
-
path: Path;
|
|
669
|
-
method: "GET";
|
|
670
|
-
}> | Extract<Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
671
|
-
language?: string;
|
|
672
|
-
}>, {
|
|
673
|
-
path: Path;
|
|
674
|
-
method: "GET";
|
|
675
|
-
}> | Extract<Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
676
|
-
page?: number;
|
|
677
|
-
pageSize?: number;
|
|
678
|
-
createdAtGte: string;
|
|
679
|
-
createdAtLt?: string;
|
|
680
|
-
updatedAtGte?: string;
|
|
681
|
-
updatedAtLt?: string;
|
|
682
|
-
status?: "ALL" | "ONLINE" | "ARCHIVED";
|
|
683
|
-
content?: boolean;
|
|
684
|
-
titleLike?: string;
|
|
685
|
-
countryCode?: string;
|
|
686
|
-
externalId?: string;
|
|
687
|
-
}>, {
|
|
688
|
-
path: Path;
|
|
689
|
-
method: "GET";
|
|
690
|
-
}> | Extract<Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
|
|
691
|
-
jobId: number;
|
|
692
|
-
}>, {
|
|
693
|
-
path: Path;
|
|
694
|
-
method: "GET";
|
|
695
|
-
}> | Extract<Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
696
|
-
page?: number;
|
|
697
|
-
pageSize?: number;
|
|
698
|
-
countryCode?: string;
|
|
699
|
-
cityNameLike?: string;
|
|
700
|
-
}>, {
|
|
701
|
-
path: Path;
|
|
702
|
-
method: "GET";
|
|
703
|
-
}> | Extract<Endpoint<"GET", "/health", [Health<"app">, Health<"database">]>, {
|
|
704
|
-
path: Path;
|
|
705
|
-
method: "GET";
|
|
706
|
-
}> | Extract<Endpoint<"GET", "/health/database", Health<"database">>, {
|
|
707
|
-
path: Path;
|
|
708
|
-
method: "GET";
|
|
709
|
-
}> | Extract<Endpoint<"GET", "/health/http", Health<"app">>, {
|
|
710
|
-
path: Path;
|
|
711
|
-
method: "GET";
|
|
712
|
-
}> | Extract<Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<T>>, {
|
|
713
|
-
path: Path;
|
|
714
|
-
method: "GET";
|
|
715
|
-
}> | Extract<Endpoint<"GET", "/orders/:orderId", Order>, {
|
|
716
|
-
path: Path;
|
|
717
|
-
method: "GET";
|
|
718
|
-
}> | Extract<Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<T>>, {
|
|
719
|
-
path: Path;
|
|
720
|
-
method: "GET";
|
|
721
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug", Organization>, {
|
|
722
|
-
path: Path;
|
|
723
|
-
method: "GET";
|
|
724
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/billing/account", Stripe.Stripe.Account>, {
|
|
725
|
-
path: Path;
|
|
726
|
-
method: "GET";
|
|
727
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/billing/link", void>, {
|
|
728
|
-
path: Path;
|
|
729
|
-
method: "GET";
|
|
730
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/billing/dashboard", void>, {
|
|
731
|
-
path: Path;
|
|
732
|
-
method: "GET";
|
|
733
|
-
}> | Extract<Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, ArrayOptions<T>>, {
|
|
734
|
-
path: Path;
|
|
735
|
-
method: "GET";
|
|
736
|
-
}> | Extract<Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<T>>, {
|
|
737
|
-
path: Path;
|
|
738
|
-
method: "GET";
|
|
739
|
-
}> | Extract<Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, {
|
|
740
|
-
populate?: string[];
|
|
741
|
-
} & ArrayPaginationOptions & {
|
|
742
|
-
latitude: number;
|
|
743
|
-
longitude: number;
|
|
744
|
-
radius?: number;
|
|
745
|
-
}>, {
|
|
746
|
-
path: Path;
|
|
747
|
-
method: "GET";
|
|
748
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events", ArrayResult<OrganizationEvent>, ArrayOptions<T>>, {
|
|
749
|
-
path: Path;
|
|
750
|
-
method: "GET";
|
|
751
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent>, {
|
|
752
|
-
path: Path;
|
|
753
|
-
method: "GET";
|
|
754
|
-
}> | Extract<Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]>, {
|
|
755
|
-
path: Path;
|
|
756
|
-
method: "GET";
|
|
757
|
-
}> | Extract<Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>, {
|
|
758
|
-
path: Path;
|
|
759
|
-
method: "GET";
|
|
760
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]>, {
|
|
761
|
-
path: Path;
|
|
762
|
-
method: "GET";
|
|
763
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket>, {
|
|
764
|
-
path: Path;
|
|
765
|
-
method: "GET";
|
|
766
|
-
}> | Extract<Endpoint<"GET", "/organizations/members", ArrayResult<OrganizationMember>, ArrayOptions<T>>, {
|
|
767
|
-
path: Path;
|
|
768
|
-
method: "GET";
|
|
769
|
-
}> | Extract<Endpoint<"GET", "/organizations/@me/members", ArrayResult<OrganizationMember>, ArrayOptions<T>>, {
|
|
770
|
-
path: Path;
|
|
771
|
-
method: "GET";
|
|
772
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/members", ArrayResult<OrganizationMember>, ArrayOptions<T>>, {
|
|
773
|
-
path: Path;
|
|
774
|
-
method: "GET";
|
|
775
|
-
}> | Extract<Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>, {
|
|
776
|
-
path: Path;
|
|
777
|
-
method: "GET";
|
|
778
|
-
}> | Extract<Endpoint<"GET", "/users", User[]>, {
|
|
779
|
-
path: Path;
|
|
780
|
-
method: "GET";
|
|
781
|
-
}> | Extract<Endpoint<"GET", "/users/:userId", User>, {
|
|
782
|
-
path: Path;
|
|
783
|
-
method: "GET";
|
|
784
|
-
}> | Extract<Endpoint<"GET", "/users/@me", User>, {
|
|
785
|
-
path: Path;
|
|
786
|
-
method: "GET";
|
|
787
|
-
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
788
|
-
exists: boolean;
|
|
789
|
-
identifier: Partial<UserIdentifier>;
|
|
790
|
-
suggestions?: string[];
|
|
791
|
-
}, {
|
|
792
|
-
identifier: boolean;
|
|
793
|
-
suggestions?: boolean;
|
|
794
|
-
}>, {
|
|
795
|
-
path: Path;
|
|
796
|
-
method: "GET";
|
|
797
|
-
}> | Extract<Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<T>>, {
|
|
798
|
-
path: Path;
|
|
799
|
-
method: "GET";
|
|
800
|
-
}> | Extract<Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<T>>, {
|
|
801
|
-
path: Path;
|
|
802
|
-
method: "GET";
|
|
803
|
-
}> | Extract<Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>, {
|
|
804
|
-
path: Path;
|
|
805
|
-
method: "GET";
|
|
806
|
-
}>)["res"]>;
|
|
807
|
-
post<Path extends Extract<Endpoints, {
|
|
808
|
-
method: "POST";
|
|
809
|
-
}>["path"]>(path: Path, body: Extract<Endpoints, {
|
|
810
|
-
path: Path;
|
|
811
|
-
method: "POST";
|
|
812
|
-
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"POST", "/auth/sign-up", User, CreateUserDto>, {
|
|
813
|
-
path: Path;
|
|
814
|
-
method: "POST";
|
|
815
|
-
}> | Extract<Endpoint<"POST", "/auth/sign-in", User, SignInUserDto>, {
|
|
816
|
-
path: Path;
|
|
817
|
-
method: "POST";
|
|
818
|
-
}> | Extract<Endpoint<"POST", "/auth/sign-out", null, null>, {
|
|
819
|
-
path: Path;
|
|
820
|
-
method: "POST";
|
|
821
|
-
}> | Extract<Endpoint<"POST", "/auth/refresh-token", null, null>, {
|
|
822
|
-
path: Path;
|
|
823
|
-
method: "POST";
|
|
824
|
-
}> | Extract<Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>, {
|
|
825
|
-
path: Path;
|
|
826
|
-
method: "POST";
|
|
827
|
-
}> | Extract<Endpoint<"POST", "/organizations/:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto>, {
|
|
828
|
-
path: Path;
|
|
829
|
-
method: "POST";
|
|
830
|
-
}> | Extract<OrganizationEventOrderEndpoints, {
|
|
831
|
-
path: Path;
|
|
832
|
-
method: "POST";
|
|
833
|
-
}> | Extract<Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto>, {
|
|
834
|
-
path: Path;
|
|
835
|
-
method: "POST";
|
|
836
|
-
}> | Extract<Endpoint<"POST", "/organizations/:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto>, {
|
|
837
|
-
path: Path;
|
|
838
|
-
method: "POST";
|
|
839
|
-
}> | Extract<Endpoint<"POST", "/organizations/:organizationSlug/members", OrganizationMember, CreateOrganizationMemberDto>, {
|
|
840
|
-
path: Path;
|
|
841
|
-
method: "POST";
|
|
842
|
-
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null>, {
|
|
843
|
-
path: Path;
|
|
844
|
-
method: "POST";
|
|
845
|
-
}> | Extract<Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>, {
|
|
846
|
-
path: Path;
|
|
847
|
-
method: "POST";
|
|
848
|
-
}> | Extract<WebhookEndpoints, {
|
|
849
|
-
path: Path;
|
|
850
|
-
method: "POST";
|
|
851
|
-
}> | Extract<NotificationsEndpoints, {
|
|
852
|
-
path: Path;
|
|
853
|
-
method: "POST";
|
|
854
|
-
}>)["res"]>;
|
|
855
|
-
put<Path extends Extract<Endpoints, {
|
|
856
|
-
method: "PUT";
|
|
857
|
-
}>["path"]>(path: Path, body: Extract<Endpoints, {
|
|
858
|
-
path: Path;
|
|
859
|
-
method: "PUT";
|
|
860
|
-
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"PUT", "/organizations/:organizationSlug", Organization, UpdateOrganizationDto>, {
|
|
861
|
-
path: Path;
|
|
862
|
-
method: "PUT";
|
|
863
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto>, {
|
|
864
|
-
path: Path;
|
|
865
|
-
method: "PUT";
|
|
866
|
-
}> | Extract<Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto>, {
|
|
867
|
-
path: Path;
|
|
868
|
-
method: "PUT";
|
|
869
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto>, {
|
|
870
|
-
path: Path;
|
|
871
|
-
method: "PUT";
|
|
872
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/members/:userId", OrganizationMember, UpdateOrganizationMemberDto>, {
|
|
873
|
-
path: Path;
|
|
874
|
-
method: "PUT";
|
|
875
|
-
}> | Extract<Endpoint<"PUT", "/users/:userId", User, UpdateUserDto>, {
|
|
876
|
-
path: Path;
|
|
877
|
-
method: "PUT";
|
|
878
|
-
}>)["res"]>;
|
|
879
|
-
patch<Path extends Extract<Endpoints, {
|
|
880
|
-
method: "PATCH";
|
|
881
|
-
}>["path"]>(path: Path, body: Extract<Endpoints, {
|
|
882
|
-
path: Path;
|
|
883
|
-
method: "PATCH";
|
|
884
|
-
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<never>;
|
|
885
|
-
delete<Path extends Extract<Endpoints, {
|
|
886
|
-
method: "DELETE";
|
|
887
|
-
}>["path"]>(path: Path, body: Extract<Endpoints, {
|
|
888
|
-
path: Path;
|
|
889
|
-
method: "DELETE";
|
|
890
|
-
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"DELETE", "/organizations/:organizationSlug", Organization, null>, {
|
|
891
|
-
path: Path;
|
|
892
|
-
method: "DELETE";
|
|
893
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null>, {
|
|
894
|
-
path: Path;
|
|
895
|
-
method: "DELETE";
|
|
896
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle[], null>, {
|
|
897
|
-
path: Path;
|
|
898
|
-
method: "DELETE";
|
|
899
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>, {
|
|
900
|
-
path: Path;
|
|
901
|
-
method: "DELETE";
|
|
902
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/members/:memberId", OrganizationMember[], null>, {
|
|
903
|
-
path: Path;
|
|
904
|
-
method: "DELETE";
|
|
905
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/members/:userId", OrganizationMember[], null>, {
|
|
906
|
-
path: Path;
|
|
907
|
-
method: "DELETE";
|
|
908
|
-
}>)["res"]>;
|
|
662
|
+
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"GET", Path>>;
|
|
663
|
+
post<Path extends PathsFor<"POST">>(path: Path, body: Body<"POST", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"POST", Path>>;
|
|
664
|
+
put<Path extends PathsFor<"PUT">>(path: Path, body: Body<"PUT", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"PUT", Path>>;
|
|
665
|
+
patch<Path extends PathsFor<"PATCH">>(path: Path, body: Body<"PATCH", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"PATCH", Path>>;
|
|
666
|
+
delete<Path extends PathsFor<"DELETE">>(path: Path, body: Body<"DELETE", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"DELETE", Path>>;
|
|
909
667
|
private requester;
|
|
910
668
|
}
|
|
911
669
|
|
|
670
|
+
interface APIRequestOptions extends Options {
|
|
671
|
+
}
|
|
672
|
+
declare const request: <T>(url: string, options?: Options) => Promise<Response$1<APIResponse<T>>>;
|
|
673
|
+
|
|
912
674
|
declare const auth: (client: Client) => {
|
|
913
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
914
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
915
|
-
signOut: () => Promise<
|
|
916
|
-
refreshToken: () => Promise<
|
|
675
|
+
signIn: (data: SignInUserDto) => Promise<Response<"POST", "/auth/sign-in">>;
|
|
676
|
+
signUp: (data: CreateUserDto) => Promise<Response<"POST", "/auth/sign-up">>;
|
|
677
|
+
signOut: () => Promise<Response<"POST", "/auth/sign-out">>;
|
|
678
|
+
refreshToken: () => Promise<Response<"POST", "/auth/refresh-token">>;
|
|
917
679
|
oauth2: {
|
|
918
680
|
google: {
|
|
919
681
|
connect: (params?: Record<string, ParamValue>) => void;
|
|
@@ -929,111 +691,107 @@ declare const auth: (client: Client) => {
|
|
|
929
691
|
|
|
930
692
|
declare const careers: (client: Client) => {
|
|
931
693
|
categories: {
|
|
932
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<
|
|
694
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<Response<"GET", "/careers/categories">>;
|
|
933
695
|
};
|
|
934
696
|
employmentTypes: {
|
|
935
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<
|
|
697
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<Response<"GET", "/careers/employmentTypes">>;
|
|
936
698
|
};
|
|
937
699
|
jobs: {
|
|
938
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<
|
|
939
|
-
get: (jobId: number) => Promise<
|
|
700
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<Response<"GET", "/careers/jobs">>;
|
|
701
|
+
get: (jobId: number) => Promise<Response<"GET", "/careers/jobs/:jobId">>;
|
|
940
702
|
};
|
|
941
703
|
offices: {
|
|
942
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<
|
|
704
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<Response<"GET", "/careers/offices">>;
|
|
943
705
|
};
|
|
944
706
|
};
|
|
945
707
|
|
|
946
708
|
declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
947
709
|
|
|
948
710
|
declare const health: (client: Client) => {
|
|
949
|
-
getAll: () => Promise<
|
|
950
|
-
database: () => Promise<
|
|
951
|
-
http: () => Promise<
|
|
711
|
+
getAll: () => Promise<Response<"GET", "/health">>;
|
|
712
|
+
database: () => Promise<Response<"GET", "/health/database">>;
|
|
713
|
+
http: () => Promise<Response<"GET", "/health/http">>;
|
|
952
714
|
};
|
|
953
715
|
|
|
954
716
|
declare const orders: (client: Client) => {
|
|
955
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
956
|
-
get: (orderId: string) => Promise<
|
|
717
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<Response<"GET", "/orders">>;
|
|
718
|
+
get: (orderId: string) => Promise<Response<"GET", "/orders/:orderId">>;
|
|
957
719
|
};
|
|
958
720
|
|
|
959
721
|
declare const organizations: (client: Client) => {
|
|
960
|
-
getAll: () => Promise<
|
|
961
|
-
get: (organizationSlug: string) => Promise<
|
|
962
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
963
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
964
|
-
delete: (organizationSlug: string) => Promise<
|
|
722
|
+
getAll: () => Promise<Response<"GET", "/organizations">>;
|
|
723
|
+
get: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug">>;
|
|
724
|
+
create: (data: CreateOrganizationDto) => Promise<Response<"POST", "/organizations">>;
|
|
725
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Response<"PUT", "/organizations/:organizationSlug">>;
|
|
726
|
+
delete: (organizationSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug">>;
|
|
965
727
|
billing: {
|
|
966
|
-
account: (organizationSlug: string) => Promise<
|
|
728
|
+
account: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/billing/account">>;
|
|
967
729
|
link: (organizationSlug: string) => void;
|
|
968
730
|
dashboard: (organizationSlug: string) => void;
|
|
969
731
|
};
|
|
970
732
|
events: {
|
|
971
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent
|
|
972
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
733
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ErroredAPIResponse | SuccessfulAPIResponse<ArrayResult<OrganizationEvent>>>;
|
|
734
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<Response<"GET", "/organizations/events/suggestions">>;
|
|
973
735
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
974
736
|
latitude: number;
|
|
975
737
|
longitude: number;
|
|
976
738
|
radius?: number;
|
|
977
|
-
}) => Promise<
|
|
978
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
979
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
980
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
981
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
739
|
+
}) => Promise<Response<"GET", "/organizations/events/nearby">>;
|
|
740
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
741
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events">>;
|
|
742
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
743
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
982
744
|
orders: {
|
|
983
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
745
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders">>;
|
|
984
746
|
};
|
|
985
747
|
styles: {
|
|
986
|
-
getAll: () => Promise<
|
|
987
|
-
get: (styleSlug: string) => Promise<
|
|
988
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
989
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
990
|
-
delete: (styleSlug: string) => Promise<
|
|
748
|
+
getAll: () => Promise<Response<"GET", "/organizations/events/styles">>;
|
|
749
|
+
get: (styleSlug: string) => Promise<Response<"GET", "/organizations/events/styles/:styleSlug">>;
|
|
750
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<Response<"POST", "/organizations/events/styles">>;
|
|
751
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<Response<"PUT", "/organizations/events/styles/:styleSlug">>;
|
|
752
|
+
delete: (styleSlug: string) => Promise<Response<"DELETE", "/organizations/events/styles/:styleSlug">>;
|
|
991
753
|
};
|
|
992
754
|
tickets: {
|
|
993
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
994
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
995
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
996
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
997
|
-
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
755
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
756
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
757
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
758
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
759
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
998
760
|
};
|
|
999
761
|
};
|
|
1000
762
|
members: {
|
|
1001
|
-
getAll: () => Promise<
|
|
1002
|
-
delete: (memberId: string) => Promise<
|
|
763
|
+
getAll: () => Promise<Response<"GET", "/organizations/members">>;
|
|
764
|
+
delete: (memberId: string) => Promise<Response<"DELETE", "/organizations/members/:memberId">>;
|
|
1003
765
|
};
|
|
1004
766
|
};
|
|
1005
767
|
|
|
1006
768
|
declare const profiles: (client: Client) => {
|
|
1007
|
-
get: (username: string) => Promise<
|
|
769
|
+
get: (username: string) => Promise<Response<"GET", "/profiles/:username">>;
|
|
1008
770
|
relationships: {
|
|
1009
|
-
follow: (username: string) => Promise<
|
|
1010
|
-
unfollow: (username: string) => Promise<
|
|
771
|
+
follow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/follow">>;
|
|
772
|
+
unfollow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/unfollow">>;
|
|
1011
773
|
};
|
|
1012
774
|
};
|
|
1013
775
|
|
|
1014
776
|
declare const users: (client: Client) => {
|
|
1015
|
-
getAll: () => Promise<
|
|
1016
|
-
get: (userId: string) => Promise<
|
|
1017
|
-
me: () => Promise<
|
|
1018
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
1019
|
-
|
|
1020
|
-
identifier: Partial<UserIdentifier>;
|
|
1021
|
-
suggestions?: string[];
|
|
1022
|
-
}>;
|
|
1023
|
-
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
777
|
+
getAll: () => Promise<Response<"GET", "/users">>;
|
|
778
|
+
get: (userId: string) => Promise<Response<"GET", "/users/:userId">>;
|
|
779
|
+
me: () => Promise<Response<"GET", "/users/@me">>;
|
|
780
|
+
check: (identifier: string, suggestions?: boolean) => Promise<Response<"GET", "/users/check/:identifier">>;
|
|
781
|
+
update: (userId: string, data: UpdateUserDto) => Promise<Response<"PUT", "/users/:userId">>;
|
|
1024
782
|
};
|
|
1025
783
|
|
|
1026
784
|
declare const notifications: (client: Client) => {
|
|
1027
|
-
registerToBeta: (email: string) => Promise<
|
|
785
|
+
registerToBeta: (email: string) => Promise<Response<"POST", "/notifications/subscribe/beta">>;
|
|
1028
786
|
};
|
|
1029
787
|
|
|
1030
788
|
declare class TonightPass {
|
|
1031
789
|
readonly client: Client;
|
|
1032
790
|
readonly auth: {
|
|
1033
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1034
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1035
|
-
signOut: () => Promise<
|
|
1036
|
-
refreshToken: () => Promise<
|
|
791
|
+
signIn: (data: SignInUserDto) => Promise<Response<"POST", "/auth/sign-in">>;
|
|
792
|
+
signUp: (data: CreateUserDto) => Promise<Response<"POST", "/auth/sign-up">>;
|
|
793
|
+
signOut: () => Promise<Response<"POST", "/auth/sign-out">>;
|
|
794
|
+
refreshToken: () => Promise<Response<"POST", "/auth/refresh-token">>;
|
|
1037
795
|
oauth2: {
|
|
1038
796
|
google: {
|
|
1039
797
|
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
@@ -1048,98 +806,94 @@ declare class TonightPass {
|
|
|
1048
806
|
};
|
|
1049
807
|
readonly careers: {
|
|
1050
808
|
categories: {
|
|
1051
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<
|
|
809
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<Response<"GET", "/careers/categories">>;
|
|
1052
810
|
};
|
|
1053
811
|
employmentTypes: {
|
|
1054
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<
|
|
812
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<Response<"GET", "/careers/employmentTypes">>;
|
|
1055
813
|
};
|
|
1056
814
|
jobs: {
|
|
1057
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<
|
|
1058
|
-
get: (jobId: number) => Promise<
|
|
815
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<Response<"GET", "/careers/jobs">>;
|
|
816
|
+
get: (jobId: number) => Promise<Response<"GET", "/careers/jobs/:jobId">>;
|
|
1059
817
|
};
|
|
1060
818
|
offices: {
|
|
1061
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<
|
|
819
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<Response<"GET", "/careers/offices">>;
|
|
1062
820
|
};
|
|
1063
821
|
};
|
|
1064
822
|
readonly health: {
|
|
1065
|
-
getAll: () => Promise<
|
|
1066
|
-
database: () => Promise<
|
|
1067
|
-
http: () => Promise<
|
|
823
|
+
getAll: () => Promise<Response<"GET", "/health">>;
|
|
824
|
+
database: () => Promise<Response<"GET", "/health/database">>;
|
|
825
|
+
http: () => Promise<Response<"GET", "/health/http">>;
|
|
1068
826
|
};
|
|
1069
827
|
readonly orders: {
|
|
1070
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
1071
|
-
get: (orderId: string) => Promise<
|
|
828
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<Response<"GET", "/orders">>;
|
|
829
|
+
get: (orderId: string) => Promise<Response<"GET", "/orders/:orderId">>;
|
|
1072
830
|
};
|
|
1073
831
|
readonly organizations: {
|
|
1074
|
-
getAll: () => Promise<
|
|
1075
|
-
get: (organizationSlug: string) => Promise<
|
|
1076
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
1077
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
1078
|
-
delete: (organizationSlug: string) => Promise<
|
|
832
|
+
getAll: () => Promise<Response<"GET", "/organizations">>;
|
|
833
|
+
get: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug">>;
|
|
834
|
+
create: (data: CreateOrganizationDto) => Promise<Response<"POST", "/organizations">>;
|
|
835
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Response<"PUT", "/organizations/:organizationSlug">>;
|
|
836
|
+
delete: (organizationSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug">>;
|
|
1079
837
|
billing: {
|
|
1080
|
-
account: (organizationSlug: string) => Promise<
|
|
838
|
+
account: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/billing/account">>;
|
|
1081
839
|
link: (organizationSlug: string) => void;
|
|
1082
840
|
dashboard: (organizationSlug: string) => void;
|
|
1083
841
|
};
|
|
1084
842
|
events: {
|
|
1085
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent
|
|
1086
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
843
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ErroredAPIResponse | SuccessfulAPIResponse<ArrayResult<OrganizationEvent>>>;
|
|
844
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<Response<"GET", "/organizations/events/suggestions">>;
|
|
1087
845
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
1088
846
|
latitude: number;
|
|
1089
847
|
longitude: number;
|
|
1090
848
|
radius?: number;
|
|
1091
|
-
}) => Promise<
|
|
1092
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
1093
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
1094
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
1095
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
849
|
+
}) => Promise<Response<"GET", "/organizations/events/nearby">>;
|
|
850
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
851
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events">>;
|
|
852
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
853
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
1096
854
|
orders: {
|
|
1097
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
855
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders">>;
|
|
1098
856
|
};
|
|
1099
857
|
styles: {
|
|
1100
|
-
getAll: () => Promise<
|
|
1101
|
-
get: (styleSlug: string) => Promise<
|
|
1102
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
1103
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
1104
|
-
delete: (styleSlug: string) => Promise<
|
|
858
|
+
getAll: () => Promise<Response<"GET", "/organizations/events/styles">>;
|
|
859
|
+
get: (styleSlug: string) => Promise<Response<"GET", "/organizations/events/styles/:styleSlug">>;
|
|
860
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<Response<"POST", "/organizations/events/styles">>;
|
|
861
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<Response<"PUT", "/organizations/events/styles/:styleSlug">>;
|
|
862
|
+
delete: (styleSlug: string) => Promise<Response<"DELETE", "/organizations/events/styles/:styleSlug">>;
|
|
1105
863
|
};
|
|
1106
864
|
tickets: {
|
|
1107
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
1108
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
1109
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
1110
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
1111
|
-
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
865
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
866
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
867
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
868
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
869
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
1112
870
|
};
|
|
1113
871
|
};
|
|
1114
872
|
members: {
|
|
1115
|
-
getAll: () => Promise<
|
|
1116
|
-
delete: (memberId: string) => Promise<
|
|
873
|
+
getAll: () => Promise<Response<"GET", "/organizations/members">>;
|
|
874
|
+
delete: (memberId: string) => Promise<Response<"DELETE", "/organizations/members/:memberId">>;
|
|
1117
875
|
};
|
|
1118
876
|
};
|
|
1119
877
|
readonly profiles: {
|
|
1120
|
-
get: (username: string) => Promise<
|
|
878
|
+
get: (username: string) => Promise<Response<"GET", "/profiles/:username">>;
|
|
1121
879
|
relationships: {
|
|
1122
|
-
follow: (username: string) => Promise<
|
|
1123
|
-
unfollow: (username: string) => Promise<
|
|
880
|
+
follow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/follow">>;
|
|
881
|
+
unfollow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/unfollow">>;
|
|
1124
882
|
};
|
|
1125
883
|
};
|
|
1126
884
|
readonly users: {
|
|
1127
|
-
getAll: () => Promise<
|
|
1128
|
-
get: (userId: string) => Promise<
|
|
1129
|
-
me: () => Promise<
|
|
1130
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
1131
|
-
|
|
1132
|
-
identifier: Partial<UserIdentifier>;
|
|
1133
|
-
suggestions?: string[];
|
|
1134
|
-
}>;
|
|
1135
|
-
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
885
|
+
getAll: () => Promise<Response<"GET", "/users">>;
|
|
886
|
+
get: (userId: string) => Promise<Response<"GET", "/users/:userId">>;
|
|
887
|
+
me: () => Promise<Response<"GET", "/users/@me">>;
|
|
888
|
+
check: (identifier: string, suggestions?: boolean) => Promise<Response<"GET", "/users/check/:identifier">>;
|
|
889
|
+
update: (userId: string, data: UpdateUserDto) => Promise<Response<"PUT", "/users/:userId">>;
|
|
1136
890
|
};
|
|
1137
891
|
readonly notifications: {
|
|
1138
|
-
registerToBeta: (email: string) => Promise<
|
|
892
|
+
registerToBeta: (email: string) => Promise<Response<"POST", "/notifications/subscribe/beta">>;
|
|
1139
893
|
};
|
|
1140
894
|
constructor(options: ClientOptions);
|
|
1141
895
|
}
|
|
1142
896
|
|
|
1143
897
|
declare const isBrowser: boolean;
|
|
1144
898
|
|
|
1145
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationsEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
899
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationsEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|