tonightpass 0.0.84 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +129 -121
- package/dist/index.d.ts +129 -121
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/rest/client.ts +15 -10
- package/src/rest/types/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as pathcat from 'pathcat';
|
|
2
2
|
import { ParamValue, Query } from 'pathcat';
|
|
3
3
|
export * from 'pathcat';
|
|
4
|
-
import Stripe from 'stripe';
|
|
4
|
+
import * as Stripe from 'stripe';
|
|
5
|
+
import Stripe__default from 'stripe';
|
|
5
6
|
import { Options, Response as Response$1 } from 'redaxios';
|
|
6
7
|
import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
|
|
7
8
|
|
|
@@ -30,7 +31,7 @@ type Endpoint<M extends Options["method"], Path extends string, Res, Body = unde
|
|
|
30
31
|
type Endpoints = AuthEndpoints | CareersEndpoints | HealthEndpoints | OrderEndpoints | OrganizationEndpoints | ProfileEndpoints | UserEndpoints | WebhookEndpoints | NotificationsEndpoints;
|
|
31
32
|
|
|
32
33
|
type Order = Base & {
|
|
33
|
-
invoice:
|
|
34
|
+
invoice: Stripe__default.Invoice;
|
|
34
35
|
user: User;
|
|
35
36
|
};
|
|
36
37
|
type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
|
|
@@ -213,8 +214,8 @@ type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/st
|
|
|
213
214
|
type OrganizationEventTicket = Base & {
|
|
214
215
|
name: string;
|
|
215
216
|
description?: string;
|
|
216
|
-
price:
|
|
217
|
-
product:
|
|
217
|
+
price: Stripe__default.Price;
|
|
218
|
+
product: Stripe__default.Product;
|
|
218
219
|
fee: number;
|
|
219
220
|
quantity: number;
|
|
220
221
|
type: OrganizationEventTicketType;
|
|
@@ -345,7 +346,7 @@ type Organization = Base & {
|
|
|
345
346
|
type OrganizationBilling = {
|
|
346
347
|
account: string;
|
|
347
348
|
};
|
|
348
|
-
type OrganizationBillingAccount =
|
|
349
|
+
type OrganizationBillingAccount = Stripe__default.Account;
|
|
349
350
|
type OrganizationIdentity = OrganizationProfile & {
|
|
350
351
|
socialLinks: OrganizationSocialLink[];
|
|
351
352
|
};
|
|
@@ -405,7 +406,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
|
405
406
|
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
406
407
|
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
407
408
|
|
|
408
|
-
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean,
|
|
409
|
+
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
409
410
|
|
|
410
411
|
type NotificationsEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
411
412
|
email: string;
|
|
@@ -475,12 +476,7 @@ type ArrayFilterOptions = {
|
|
|
475
476
|
*/
|
|
476
477
|
operator: "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "in" | "nin";
|
|
477
478
|
};
|
|
478
|
-
type ArrayOptions<T> = {
|
|
479
|
-
/**
|
|
480
|
-
* Populate relations
|
|
481
|
-
*/
|
|
482
|
-
populate?: string[];
|
|
483
|
-
} & ArrayPaginationOptions;
|
|
479
|
+
type ArrayOptions<T> = {} & ArrayPaginationOptions;
|
|
484
480
|
type ArrayResult<T> = {
|
|
485
481
|
items: T[];
|
|
486
482
|
total: number;
|
|
@@ -604,9 +600,6 @@ declare class UpdateUserIdentityDto implements Partial<Pick<UserIdentity, "first
|
|
|
604
600
|
birthDate?: Date;
|
|
605
601
|
}
|
|
606
602
|
|
|
607
|
-
type PathsFor<M extends Options["method"]> = Extract<Endpoints, {
|
|
608
|
-
method: M;
|
|
609
|
-
}>["path"];
|
|
610
603
|
type SuccessfulAPIResponse<T> = {
|
|
611
604
|
success: true;
|
|
612
605
|
data: T;
|
|
@@ -620,6 +613,13 @@ type ErroredAPIResponse = {
|
|
|
620
613
|
};
|
|
621
614
|
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
|
622
615
|
type PromisedAPIResponse<T> = Promise<APIResponse<T>>;
|
|
616
|
+
type PathsFor<M extends Options["method"]> = Extract<Endpoints, {
|
|
617
|
+
method: M;
|
|
618
|
+
}>["path"];
|
|
619
|
+
type ResponseFor<M extends Options["method"], P extends PathsFor<M>> = Extract<Endpoints, {
|
|
620
|
+
method: M;
|
|
621
|
+
path: P;
|
|
622
|
+
}>["res"];
|
|
623
623
|
type Response<M extends Options["method"], P extends PathsFor<M>> = APIResponse<Extract<Endpoints, {
|
|
624
624
|
method: M;
|
|
625
625
|
path: P;
|
|
@@ -654,11 +654,11 @@ declare class Client {
|
|
|
654
654
|
readonly url: (path: string, params: Record<string, ParamValue>) => string;
|
|
655
655
|
constructor(options: ClientOptions);
|
|
656
656
|
setOptions(options: ClientOptions): void;
|
|
657
|
-
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
658
|
-
post<Path extends PathsFor<"POST">>(path: Path, body: Body<"POST", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
659
|
-
put<Path extends PathsFor<"PUT">>(path: Path, body: Body<"PUT", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
660
|
-
patch<Path extends PathsFor<"PATCH">>(path: Path, body: Body<"PATCH", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
661
|
-
delete<Path extends PathsFor<"DELETE">>(path: Path, body: Body<"DELETE", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
657
|
+
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<ResponseFor<"GET", Path>>;
|
|
658
|
+
post<Path extends PathsFor<"POST">>(path: Path, body: Body<"POST", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<ResponseFor<"POST", Path>>;
|
|
659
|
+
put<Path extends PathsFor<"PUT">>(path: Path, body: Body<"PUT", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<ResponseFor<"PUT", Path>>;
|
|
660
|
+
patch<Path extends PathsFor<"PATCH">>(path: Path, body: Body<"PATCH", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<never>;
|
|
661
|
+
delete<Path extends PathsFor<"DELETE">>(path: Path, body: Body<"DELETE", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<ResponseFor<"DELETE", Path>>;
|
|
662
662
|
private requester;
|
|
663
663
|
}
|
|
664
664
|
|
|
@@ -667,10 +667,10 @@ interface APIRequestOptions extends Options {
|
|
|
667
667
|
declare const request: <T>(url: string, options?: Options) => Promise<Response$1<APIResponse<T>>>;
|
|
668
668
|
|
|
669
669
|
declare const auth: (client: Client) => {
|
|
670
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
671
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
672
|
-
signOut: () => Promise<
|
|
673
|
-
refreshToken: () => Promise<
|
|
670
|
+
signIn: (data: SignInUserDto) => Promise<User>;
|
|
671
|
+
signUp: (data: CreateUserDto) => Promise<User>;
|
|
672
|
+
signOut: () => Promise<null>;
|
|
673
|
+
refreshToken: () => Promise<null>;
|
|
674
674
|
oauth2: {
|
|
675
675
|
google: {
|
|
676
676
|
connect: (params?: Record<string, ParamValue>) => void;
|
|
@@ -686,108 +686,112 @@ declare const auth: (client: Client) => {
|
|
|
686
686
|
|
|
687
687
|
declare const careers: (client: Client) => {
|
|
688
688
|
categories: {
|
|
689
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<
|
|
689
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
690
690
|
};
|
|
691
691
|
employmentTypes: {
|
|
692
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<
|
|
692
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
693
693
|
};
|
|
694
694
|
jobs: {
|
|
695
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<
|
|
696
|
-
get: (jobId: number) => Promise<
|
|
695
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
696
|
+
get: (jobId: number) => Promise<CareersJob>;
|
|
697
697
|
};
|
|
698
698
|
offices: {
|
|
699
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<
|
|
699
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
700
700
|
};
|
|
701
701
|
};
|
|
702
702
|
|
|
703
703
|
declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
704
704
|
|
|
705
705
|
declare const health: (client: Client) => {
|
|
706
|
-
getAll: () => Promise<
|
|
707
|
-
database: () => Promise<
|
|
708
|
-
api: () => Promise<
|
|
709
|
-
app: () => Promise<
|
|
706
|
+
getAll: () => Promise<Health<"database" | "app" | "api">>;
|
|
707
|
+
database: () => Promise<Health<"database">>;
|
|
708
|
+
api: () => Promise<Health<"api">>;
|
|
709
|
+
app: () => Promise<Health<"app">>;
|
|
710
710
|
};
|
|
711
711
|
|
|
712
712
|
declare const orders: (client: Client) => {
|
|
713
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
714
|
-
get: (orderId: string) => Promise<
|
|
713
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<ArrayResult<Order>>;
|
|
714
|
+
get: (orderId: string) => Promise<Order>;
|
|
715
715
|
};
|
|
716
716
|
|
|
717
717
|
declare const organizations: (client: Client) => {
|
|
718
|
-
getAll: () => Promise<
|
|
719
|
-
get: (organizationSlug: string) => Promise<
|
|
720
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
721
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
722
|
-
delete: (organizationSlug: string) => Promise<
|
|
718
|
+
getAll: () => Promise<ArrayResult<Organization>>;
|
|
719
|
+
get: (organizationSlug: string) => Promise<Organization>;
|
|
720
|
+
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
721
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
722
|
+
delete: (organizationSlug: string) => Promise<Organization>;
|
|
723
723
|
billing: {
|
|
724
|
-
account: (organizationSlug: string) => Promise<
|
|
724
|
+
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
725
725
|
link: (organizationSlug: string) => void;
|
|
726
726
|
dashboard: (organizationSlug: string) => void;
|
|
727
727
|
};
|
|
728
728
|
events: {
|
|
729
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
730
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
729
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
730
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
731
731
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
732
732
|
latitude: number;
|
|
733
733
|
longitude: number;
|
|
734
734
|
radius?: number;
|
|
735
|
-
}) => Promise<
|
|
736
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
737
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
738
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
739
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
735
|
+
}) => Promise<ArrayResult<OrganizationEvent>>;
|
|
736
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
737
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
738
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
739
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
740
740
|
orders: {
|
|
741
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
741
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
742
742
|
};
|
|
743
743
|
styles: {
|
|
744
|
-
getAll: () => Promise<
|
|
745
|
-
get: (styleSlug: string) => Promise<
|
|
746
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
747
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
748
|
-
delete: (styleSlug: string) => Promise<
|
|
744
|
+
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
745
|
+
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
746
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
747
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
748
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle[]>;
|
|
749
749
|
};
|
|
750
750
|
tickets: {
|
|
751
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
752
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
753
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
754
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
755
|
-
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
751
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
752
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<OrganizationEventTicket>;
|
|
753
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<OrganizationEventTicket>;
|
|
754
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<OrganizationEventTicket>;
|
|
755
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<OrganizationEventTicket[]>;
|
|
756
756
|
};
|
|
757
757
|
};
|
|
758
758
|
members: {
|
|
759
|
-
getAll: () => Promise<
|
|
760
|
-
delete: (memberId: string) => Promise<
|
|
759
|
+
getAll: () => Promise<ArrayResult<OrganizationMember>>;
|
|
760
|
+
delete: (memberId: string) => Promise<OrganizationMember[]>;
|
|
761
761
|
};
|
|
762
762
|
};
|
|
763
763
|
|
|
764
764
|
declare const profiles: (client: Client) => {
|
|
765
|
-
get: (username: string) => Promise<
|
|
765
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
766
766
|
relationships: {
|
|
767
|
-
follow: (username: string) => Promise<
|
|
768
|
-
unfollow: (username: string) => Promise<
|
|
767
|
+
follow: (username: string) => Promise<boolean>;
|
|
768
|
+
unfollow: (username: string) => Promise<boolean>;
|
|
769
769
|
};
|
|
770
770
|
};
|
|
771
771
|
|
|
772
772
|
declare const users: (client: Client) => {
|
|
773
|
-
getAll: () => Promise<
|
|
774
|
-
get: (userId: string) => Promise<
|
|
775
|
-
me: () => Promise<
|
|
776
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
777
|
-
|
|
773
|
+
getAll: () => Promise<User[]>;
|
|
774
|
+
get: (userId: string) => Promise<User>;
|
|
775
|
+
me: () => Promise<User>;
|
|
776
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
777
|
+
exists: boolean;
|
|
778
|
+
identifier: Partial<UserIdentifier>;
|
|
779
|
+
suggestions?: string[];
|
|
780
|
+
}>;
|
|
781
|
+
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
778
782
|
};
|
|
779
783
|
|
|
780
784
|
declare const notifications: (client: Client) => {
|
|
781
|
-
registerToBeta: (email: string) => Promise<
|
|
785
|
+
registerToBeta: (email: string) => Promise<null>;
|
|
782
786
|
};
|
|
783
787
|
|
|
784
788
|
declare class TonightPass {
|
|
785
789
|
readonly client: Client;
|
|
786
790
|
readonly auth: {
|
|
787
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
788
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
789
|
-
signOut: () => Promise<
|
|
790
|
-
refreshToken: () => Promise<
|
|
791
|
+
signIn: (data: SignInUserDto) => Promise<User>;
|
|
792
|
+
signUp: (data: CreateUserDto) => Promise<User>;
|
|
793
|
+
signOut: () => Promise<null>;
|
|
794
|
+
refreshToken: () => Promise<null>;
|
|
791
795
|
oauth2: {
|
|
792
796
|
google: {
|
|
793
797
|
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
@@ -802,95 +806,99 @@ declare class TonightPass {
|
|
|
802
806
|
};
|
|
803
807
|
readonly careers: {
|
|
804
808
|
categories: {
|
|
805
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<
|
|
809
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
806
810
|
};
|
|
807
811
|
employmentTypes: {
|
|
808
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<
|
|
812
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
809
813
|
};
|
|
810
814
|
jobs: {
|
|
811
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<
|
|
812
|
-
get: (jobId: number) => Promise<
|
|
815
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
816
|
+
get: (jobId: number) => Promise<CareersJob>;
|
|
813
817
|
};
|
|
814
818
|
offices: {
|
|
815
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<
|
|
819
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
816
820
|
};
|
|
817
821
|
};
|
|
818
822
|
readonly health: {
|
|
819
|
-
getAll: () => Promise<
|
|
820
|
-
database: () => Promise<
|
|
821
|
-
api: () => Promise<
|
|
822
|
-
app: () => Promise<
|
|
823
|
+
getAll: () => Promise<Health<"database" | "app" | "api">>;
|
|
824
|
+
database: () => Promise<Health<"database">>;
|
|
825
|
+
api: () => Promise<Health<"api">>;
|
|
826
|
+
app: () => Promise<Health<"app">>;
|
|
823
827
|
};
|
|
824
828
|
readonly orders: {
|
|
825
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
826
|
-
get: (orderId: string) => Promise<
|
|
829
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<ArrayResult<Order>>;
|
|
830
|
+
get: (orderId: string) => Promise<Order>;
|
|
827
831
|
};
|
|
828
832
|
readonly organizations: {
|
|
829
|
-
getAll: () => Promise<
|
|
830
|
-
get: (organizationSlug: string) => Promise<
|
|
831
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
832
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
833
|
-
delete: (organizationSlug: string) => Promise<
|
|
833
|
+
getAll: () => Promise<ArrayResult<Organization>>;
|
|
834
|
+
get: (organizationSlug: string) => Promise<Organization>;
|
|
835
|
+
create: (data: CreateOrganizationDto) => Promise<Organization>;
|
|
836
|
+
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<Organization>;
|
|
837
|
+
delete: (organizationSlug: string) => Promise<Organization>;
|
|
834
838
|
billing: {
|
|
835
|
-
account: (organizationSlug: string) => Promise<
|
|
839
|
+
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
836
840
|
link: (organizationSlug: string) => void;
|
|
837
841
|
dashboard: (organizationSlug: string) => void;
|
|
838
842
|
};
|
|
839
843
|
events: {
|
|
840
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
841
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
844
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
845
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
842
846
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
843
847
|
latitude: number;
|
|
844
848
|
longitude: number;
|
|
845
849
|
radius?: number;
|
|
846
|
-
}) => Promise<
|
|
847
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
848
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
849
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
850
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
850
|
+
}) => Promise<ArrayResult<OrganizationEvent>>;
|
|
851
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
852
|
+
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
853
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
854
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
851
855
|
orders: {
|
|
852
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
856
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
853
857
|
};
|
|
854
858
|
styles: {
|
|
855
|
-
getAll: () => Promise<
|
|
856
|
-
get: (styleSlug: string) => Promise<
|
|
857
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
858
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
859
|
-
delete: (styleSlug: string) => Promise<
|
|
859
|
+
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
860
|
+
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
861
|
+
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
862
|
+
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
863
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle[]>;
|
|
860
864
|
};
|
|
861
865
|
tickets: {
|
|
862
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
863
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
864
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
865
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
866
|
-
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
866
|
+
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
867
|
+
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<OrganizationEventTicket>;
|
|
868
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<OrganizationEventTicket>;
|
|
869
|
+
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<OrganizationEventTicket>;
|
|
870
|
+
delete: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<OrganizationEventTicket[]>;
|
|
867
871
|
};
|
|
868
872
|
};
|
|
869
873
|
members: {
|
|
870
|
-
getAll: () => Promise<
|
|
871
|
-
delete: (memberId: string) => Promise<
|
|
874
|
+
getAll: () => Promise<ArrayResult<OrganizationMember>>;
|
|
875
|
+
delete: (memberId: string) => Promise<OrganizationMember[]>;
|
|
872
876
|
};
|
|
873
877
|
};
|
|
874
878
|
readonly profiles: {
|
|
875
|
-
get: (username: string) => Promise<
|
|
879
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
876
880
|
relationships: {
|
|
877
|
-
follow: (username: string) => Promise<
|
|
878
|
-
unfollow: (username: string) => Promise<
|
|
881
|
+
follow: (username: string) => Promise<boolean>;
|
|
882
|
+
unfollow: (username: string) => Promise<boolean>;
|
|
879
883
|
};
|
|
880
884
|
};
|
|
881
885
|
readonly users: {
|
|
882
|
-
getAll: () => Promise<
|
|
883
|
-
get: (userId: string) => Promise<
|
|
884
|
-
me: () => Promise<
|
|
885
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
886
|
-
|
|
886
|
+
getAll: () => Promise<User[]>;
|
|
887
|
+
get: (userId: string) => Promise<User>;
|
|
888
|
+
me: () => Promise<User>;
|
|
889
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
890
|
+
exists: boolean;
|
|
891
|
+
identifier: Partial<UserIdentifier>;
|
|
892
|
+
suggestions?: string[];
|
|
893
|
+
}>;
|
|
894
|
+
update: (userId: string, data: UpdateUserDto) => Promise<User>;
|
|
887
895
|
};
|
|
888
896
|
readonly notifications: {
|
|
889
|
-
registerToBeta: (email: string) => Promise<
|
|
897
|
+
registerToBeta: (email: string) => Promise<null>;
|
|
890
898
|
};
|
|
891
899
|
constructor(options: ClientOptions);
|
|
892
900
|
}
|
|
893
901
|
|
|
894
902
|
declare const isBrowser: boolean;
|
|
895
903
|
|
|
896
|
-
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationsEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|
|
904
|
+
export { type APIRequestOptions, type APIResponse, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, type AuthEndpoints, type Base, type BaseProfile, type BaseProfileMetadata, type Body, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, CreateUserIdentityDto, Currency, DEFAULT_API_URL, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationsEndpoints, type Order, type OrderEndpoints, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventOrderEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationSocialLink, OrganizationSocialType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, type Response, type ResponseFor, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserBooking, type UserBookingEndpoints, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, type UserToken, UserTokenType, type WebhookEndpoints, auth, careers, health, isBrowser, notifications, orders, organizations, profiles, request, sdk, users };
|