tonightpass 0.0.81 → 0.0.82
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 +9 -9
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +143 -397
- package/dist/index.d.ts +143 -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 +79 -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,39 @@ 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"];
|
|
633
640
|
declare class TonightPassAPIError<T> extends Error {
|
|
634
|
-
readonly response: Response<APIResponse<T>>;
|
|
641
|
+
readonly response: Response$1<APIResponse<T>>;
|
|
635
642
|
readonly data: ErroredAPIResponse;
|
|
636
643
|
readonly status: number;
|
|
637
|
-
constructor(response: Response<APIResponse<T>>, data: ErroredAPIResponse);
|
|
644
|
+
constructor(response: Response$1<APIResponse<T>>, data: ErroredAPIResponse);
|
|
638
645
|
}
|
|
639
646
|
interface ClientOptions {
|
|
640
647
|
readonly baseURL: string;
|
|
@@ -644,276 +651,23 @@ declare class Client {
|
|
|
644
651
|
readonly url: (path: string, params: Record<string, ParamValue>) => string;
|
|
645
652
|
constructor(options: ClientOptions);
|
|
646
653
|
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"]>;
|
|
654
|
+
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"GET", Path>>;
|
|
655
|
+
post<Path extends PathsFor<"POST">>(path: Path, body: Body<"POST", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"POST", Path>>;
|
|
656
|
+
put<Path extends PathsFor<"PUT">>(path: Path, body: Body<"PUT", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"PUT", Path>>;
|
|
657
|
+
patch<Path extends PathsFor<"PATCH">>(path: Path, body: Body<"PATCH", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"PATCH", Path>>;
|
|
658
|
+
delete<Path extends PathsFor<"DELETE">>(path: Path, body: Body<"DELETE", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<Response<"DELETE", Path>>;
|
|
909
659
|
private requester;
|
|
910
660
|
}
|
|
911
661
|
|
|
662
|
+
interface APIRequestOptions extends Options {
|
|
663
|
+
}
|
|
664
|
+
declare const request: <T>(url: string, options?: Options) => Promise<Response$1<APIResponse<T>>>;
|
|
665
|
+
|
|
912
666
|
declare const auth: (client: Client) => {
|
|
913
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
914
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
915
|
-
signOut: () => Promise<
|
|
916
|
-
refreshToken: () => Promise<
|
|
667
|
+
signIn: (data: SignInUserDto) => Promise<Response<"POST", "/auth/sign-in">>;
|
|
668
|
+
signUp: (data: CreateUserDto) => Promise<Response<"POST", "/auth/sign-up">>;
|
|
669
|
+
signOut: () => Promise<Response<"POST", "/auth/sign-out">>;
|
|
670
|
+
refreshToken: () => Promise<Response<"POST", "/auth/refresh-token">>;
|
|
917
671
|
oauth2: {
|
|
918
672
|
google: {
|
|
919
673
|
connect: (params?: Record<string, ParamValue>) => void;
|
|
@@ -929,111 +683,107 @@ declare const auth: (client: Client) => {
|
|
|
929
683
|
|
|
930
684
|
declare const careers: (client: Client) => {
|
|
931
685
|
categories: {
|
|
932
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<
|
|
686
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<Response<"GET", "/careers/categories">>;
|
|
933
687
|
};
|
|
934
688
|
employmentTypes: {
|
|
935
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<
|
|
689
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<Response<"GET", "/careers/employmentTypes">>;
|
|
936
690
|
};
|
|
937
691
|
jobs: {
|
|
938
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<
|
|
939
|
-
get: (jobId: number) => Promise<
|
|
692
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<Response<"GET", "/careers/jobs">>;
|
|
693
|
+
get: (jobId: number) => Promise<Response<"GET", "/careers/jobs/:jobId">>;
|
|
940
694
|
};
|
|
941
695
|
offices: {
|
|
942
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<
|
|
696
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<Response<"GET", "/careers/offices">>;
|
|
943
697
|
};
|
|
944
698
|
};
|
|
945
699
|
|
|
946
700
|
declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
947
701
|
|
|
948
702
|
declare const health: (client: Client) => {
|
|
949
|
-
getAll: () => Promise<
|
|
950
|
-
database: () => Promise<
|
|
951
|
-
http: () => Promise<
|
|
703
|
+
getAll: () => Promise<Response<"GET", "/health">>;
|
|
704
|
+
database: () => Promise<Response<"GET", "/health/database">>;
|
|
705
|
+
http: () => Promise<Response<"GET", "/health/http">>;
|
|
952
706
|
};
|
|
953
707
|
|
|
954
708
|
declare const orders: (client: Client) => {
|
|
955
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
956
|
-
get: (orderId: string) => Promise<
|
|
709
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<Response<"GET", "/orders">>;
|
|
710
|
+
get: (orderId: string) => Promise<Response<"GET", "/orders/:orderId">>;
|
|
957
711
|
};
|
|
958
712
|
|
|
959
713
|
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<
|
|
714
|
+
getAll: () => Promise<Response<"GET", "/organizations">>;
|
|
715
|
+
get: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug">>;
|
|
716
|
+
create: (data: CreateOrganizationDto) => Promise<Response<"POST", "/organizations">>;
|
|
717
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Response<"PUT", "/organizations/:organizationSlug">>;
|
|
718
|
+
delete: (organizationSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug">>;
|
|
965
719
|
billing: {
|
|
966
|
-
account: (organizationSlug: string) => Promise<
|
|
720
|
+
account: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/billing/account">>;
|
|
967
721
|
link: (organizationSlug: string) => void;
|
|
968
722
|
dashboard: (organizationSlug: string) => void;
|
|
969
723
|
};
|
|
970
724
|
events: {
|
|
971
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent
|
|
972
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
725
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ErroredAPIResponse | SuccessfulAPIResponse<ArrayResult<OrganizationEvent>>>;
|
|
726
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<Response<"GET", "/organizations/events/suggestions">>;
|
|
973
727
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
974
728
|
latitude: number;
|
|
975
729
|
longitude: number;
|
|
976
730
|
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<
|
|
731
|
+
}) => Promise<Response<"GET", "/organizations/events/nearby">>;
|
|
732
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
733
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events">>;
|
|
734
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
735
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
982
736
|
orders: {
|
|
983
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
737
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders">>;
|
|
984
738
|
};
|
|
985
739
|
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<
|
|
740
|
+
getAll: () => Promise<Response<"GET", "/organizations/events/styles">>;
|
|
741
|
+
get: (styleSlug: string) => Promise<Response<"GET", "/organizations/events/styles/:styleSlug">>;
|
|
742
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<Response<"POST", "/organizations/events/styles">>;
|
|
743
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<Response<"PUT", "/organizations/events/styles/:styleSlug">>;
|
|
744
|
+
delete: (styleSlug: string) => Promise<Response<"DELETE", "/organizations/events/styles/:styleSlug">>;
|
|
991
745
|
};
|
|
992
746
|
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<
|
|
747
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
748
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
749
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
750
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
751
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
998
752
|
};
|
|
999
753
|
};
|
|
1000
754
|
members: {
|
|
1001
|
-
getAll: () => Promise<
|
|
1002
|
-
delete: (memberId: string) => Promise<
|
|
755
|
+
getAll: () => Promise<Response<"GET", "/organizations/members">>;
|
|
756
|
+
delete: (memberId: string) => Promise<Response<"DELETE", "/organizations/members/:memberId">>;
|
|
1003
757
|
};
|
|
1004
758
|
};
|
|
1005
759
|
|
|
1006
760
|
declare const profiles: (client: Client) => {
|
|
1007
|
-
get: (username: string) => Promise<
|
|
761
|
+
get: (username: string) => Promise<Response<"GET", "/profiles/:username">>;
|
|
1008
762
|
relationships: {
|
|
1009
|
-
follow: (username: string) => Promise<
|
|
1010
|
-
unfollow: (username: string) => Promise<
|
|
763
|
+
follow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/follow">>;
|
|
764
|
+
unfollow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/unfollow">>;
|
|
1011
765
|
};
|
|
1012
766
|
};
|
|
1013
767
|
|
|
1014
768
|
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>;
|
|
769
|
+
getAll: () => Promise<Response<"GET", "/users">>;
|
|
770
|
+
get: (userId: string) => Promise<Response<"GET", "/users/:userId">>;
|
|
771
|
+
me: () => Promise<Response<"GET", "/users/@me">>;
|
|
772
|
+
check: (identifier: string, suggestions?: boolean) => Promise<Response<"GET", "/users/check/:identifier">>;
|
|
773
|
+
update: (userId: string, data: UpdateUserDto) => Promise<Response<"PUT", "/users/:userId">>;
|
|
1024
774
|
};
|
|
1025
775
|
|
|
1026
776
|
declare const notifications: (client: Client) => {
|
|
1027
|
-
registerToBeta: (email: string) => Promise<
|
|
777
|
+
registerToBeta: (email: string) => Promise<Response<"POST", "/notifications/subscribe/beta">>;
|
|
1028
778
|
};
|
|
1029
779
|
|
|
1030
780
|
declare class TonightPass {
|
|
1031
781
|
readonly client: Client;
|
|
1032
782
|
readonly auth: {
|
|
1033
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
1034
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
1035
|
-
signOut: () => Promise<
|
|
1036
|
-
refreshToken: () => Promise<
|
|
783
|
+
signIn: (data: SignInUserDto) => Promise<Response<"POST", "/auth/sign-in">>;
|
|
784
|
+
signUp: (data: CreateUserDto) => Promise<Response<"POST", "/auth/sign-up">>;
|
|
785
|
+
signOut: () => Promise<Response<"POST", "/auth/sign-out">>;
|
|
786
|
+
refreshToken: () => Promise<Response<"POST", "/auth/refresh-token">>;
|
|
1037
787
|
oauth2: {
|
|
1038
788
|
google: {
|
|
1039
789
|
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
@@ -1048,98 +798,94 @@ declare class TonightPass {
|
|
|
1048
798
|
};
|
|
1049
799
|
readonly careers: {
|
|
1050
800
|
categories: {
|
|
1051
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<
|
|
801
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<Response<"GET", "/careers/categories">>;
|
|
1052
802
|
};
|
|
1053
803
|
employmentTypes: {
|
|
1054
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<
|
|
804
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<Response<"GET", "/careers/employmentTypes">>;
|
|
1055
805
|
};
|
|
1056
806
|
jobs: {
|
|
1057
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<
|
|
1058
|
-
get: (jobId: number) => Promise<
|
|
807
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<Response<"GET", "/careers/jobs">>;
|
|
808
|
+
get: (jobId: number) => Promise<Response<"GET", "/careers/jobs/:jobId">>;
|
|
1059
809
|
};
|
|
1060
810
|
offices: {
|
|
1061
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<
|
|
811
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<Response<"GET", "/careers/offices">>;
|
|
1062
812
|
};
|
|
1063
813
|
};
|
|
1064
814
|
readonly health: {
|
|
1065
|
-
getAll: () => Promise<
|
|
1066
|
-
database: () => Promise<
|
|
1067
|
-
http: () => Promise<
|
|
815
|
+
getAll: () => Promise<Response<"GET", "/health">>;
|
|
816
|
+
database: () => Promise<Response<"GET", "/health/database">>;
|
|
817
|
+
http: () => Promise<Response<"GET", "/health/http">>;
|
|
1068
818
|
};
|
|
1069
819
|
readonly orders: {
|
|
1070
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
1071
|
-
get: (orderId: string) => Promise<
|
|
820
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<Response<"GET", "/orders">>;
|
|
821
|
+
get: (orderId: string) => Promise<Response<"GET", "/orders/:orderId">>;
|
|
1072
822
|
};
|
|
1073
823
|
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<
|
|
824
|
+
getAll: () => Promise<Response<"GET", "/organizations">>;
|
|
825
|
+
get: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug">>;
|
|
826
|
+
create: (data: CreateOrganizationDto) => Promise<Response<"POST", "/organizations">>;
|
|
827
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Response<"PUT", "/organizations/:organizationSlug">>;
|
|
828
|
+
delete: (organizationSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug">>;
|
|
1079
829
|
billing: {
|
|
1080
|
-
account: (organizationSlug: string) => Promise<
|
|
830
|
+
account: (organizationSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/billing/account">>;
|
|
1081
831
|
link: (organizationSlug: string) => void;
|
|
1082
832
|
dashboard: (organizationSlug: string) => void;
|
|
1083
833
|
};
|
|
1084
834
|
events: {
|
|
1085
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent
|
|
1086
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
835
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ErroredAPIResponse | SuccessfulAPIResponse<ArrayResult<OrganizationEvent>>>;
|
|
836
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<Response<"GET", "/organizations/events/suggestions">>;
|
|
1087
837
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
1088
838
|
latitude: number;
|
|
1089
839
|
longitude: number;
|
|
1090
840
|
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<
|
|
841
|
+
}) => Promise<Response<"GET", "/organizations/events/nearby">>;
|
|
842
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
843
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events">>;
|
|
844
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
845
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug">>;
|
|
1096
846
|
orders: {
|
|
1097
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
847
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/orders">>;
|
|
1098
848
|
};
|
|
1099
849
|
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<
|
|
850
|
+
getAll: () => Promise<Response<"GET", "/organizations/events/styles">>;
|
|
851
|
+
get: (styleSlug: string) => Promise<Response<"GET", "/organizations/events/styles/:styleSlug">>;
|
|
852
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<Response<"POST", "/organizations/events/styles">>;
|
|
853
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<Response<"PUT", "/organizations/events/styles/:styleSlug">>;
|
|
854
|
+
delete: (styleSlug: string) => Promise<Response<"DELETE", "/organizations/events/styles/:styleSlug">>;
|
|
1105
855
|
};
|
|
1106
856
|
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<
|
|
857
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
858
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
859
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<Response<"POST", "/organizations/:organizationSlug/events/:eventSlug/tickets">>;
|
|
860
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<Response<"PUT", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
861
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<Response<"DELETE", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId">>;
|
|
1112
862
|
};
|
|
1113
863
|
};
|
|
1114
864
|
members: {
|
|
1115
|
-
getAll: () => Promise<
|
|
1116
|
-
delete: (memberId: string) => Promise<
|
|
865
|
+
getAll: () => Promise<Response<"GET", "/organizations/members">>;
|
|
866
|
+
delete: (memberId: string) => Promise<Response<"DELETE", "/organizations/members/:memberId">>;
|
|
1117
867
|
};
|
|
1118
868
|
};
|
|
1119
869
|
readonly profiles: {
|
|
1120
|
-
get: (username: string) => Promise<
|
|
870
|
+
get: (username: string) => Promise<Response<"GET", "/profiles/:username">>;
|
|
1121
871
|
relationships: {
|
|
1122
|
-
follow: (username: string) => Promise<
|
|
1123
|
-
unfollow: (username: string) => Promise<
|
|
872
|
+
follow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/follow">>;
|
|
873
|
+
unfollow: (username: string) => Promise<Response<"POST", "/profiles/:username/relationships/unfollow">>;
|
|
1124
874
|
};
|
|
1125
875
|
};
|
|
1126
876
|
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>;
|
|
877
|
+
getAll: () => Promise<Response<"GET", "/users">>;
|
|
878
|
+
get: (userId: string) => Promise<Response<"GET", "/users/:userId">>;
|
|
879
|
+
me: () => Promise<Response<"GET", "/users/@me">>;
|
|
880
|
+
check: (identifier: string, suggestions?: boolean) => Promise<Response<"GET", "/users/check/:identifier">>;
|
|
881
|
+
update: (userId: string, data: UpdateUserDto) => Promise<Response<"PUT", "/users/:userId">>;
|
|
1136
882
|
};
|
|
1137
883
|
readonly notifications: {
|
|
1138
|
-
registerToBeta: (email: string) => Promise<
|
|
884
|
+
registerToBeta: (email: string) => Promise<Response<"POST", "/notifications/subscribe/beta">>;
|
|
1139
885
|
};
|
|
1140
886
|
constructor(options: ClientOptions);
|
|
1141
887
|
}
|
|
1142
888
|
|
|
1143
889
|
declare const isBrowser: boolean;
|
|
1144
890
|
|
|
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 };
|
|
891
|
+
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, REGEX, type Response, 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 };
|