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