tonightpass 0.0.85 → 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 +6 -0
- package/dist/index.d.mts +128 -115
- package/dist/index.d.ts +128 -115
- 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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.86 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
13
|
[32mESM[39m [1mdist/index.mjs [22m[32m22.96 KB[39m
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m84.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m84.94 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 631ms
|
|
16
16
|
[32mCJS[39m [1mdist/index.js [22m[32m25.47 KB[39m
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m85.09 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 633ms
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 4069ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m35.30 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m35.30 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.86
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0ffe35e`](https://github.com/tonightpass/tonightpass/commit/0ffe35e12f77eb04cb9cbd8017b9ea30d8baa47c) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add response for types
|
|
8
|
+
|
|
3
9
|
## 0.0.85
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.mts
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;
|
|
@@ -599,9 +600,6 @@ declare class UpdateUserIdentityDto implements Partial<Pick<UserIdentity, "first
|
|
|
599
600
|
birthDate?: Date;
|
|
600
601
|
}
|
|
601
602
|
|
|
602
|
-
type PathsFor<M extends Options["method"]> = Extract<Endpoints, {
|
|
603
|
-
method: M;
|
|
604
|
-
}>["path"];
|
|
605
603
|
type SuccessfulAPIResponse<T> = {
|
|
606
604
|
success: true;
|
|
607
605
|
data: T;
|
|
@@ -615,6 +613,13 @@ type ErroredAPIResponse = {
|
|
|
615
613
|
};
|
|
616
614
|
type APIResponse<T> = SuccessfulAPIResponse<T> | ErroredAPIResponse;
|
|
617
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"];
|
|
618
623
|
type Response<M extends Options["method"], P extends PathsFor<M>> = APIResponse<Extract<Endpoints, {
|
|
619
624
|
method: M;
|
|
620
625
|
path: P;
|
|
@@ -649,11 +654,11 @@ declare class Client {
|
|
|
649
654
|
readonly url: (path: string, params: Record<string, ParamValue>) => string;
|
|
650
655
|
constructor(options: ClientOptions);
|
|
651
656
|
setOptions(options: ClientOptions): void;
|
|
652
|
-
get<Path extends PathsFor<"GET">>(path: Path, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
653
|
-
post<Path extends PathsFor<"POST">>(path: Path, body: Body<"POST", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
654
|
-
put<Path extends PathsFor<"PUT">>(path: Path, body: Body<"PUT", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
655
|
-
patch<Path extends PathsFor<"PATCH">>(path: Path, body: Body<"PATCH", Path>, query?: Query<Path>, options?: APIRequestOptions): Promise<
|
|
656
|
-
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>>;
|
|
657
662
|
private requester;
|
|
658
663
|
}
|
|
659
664
|
|
|
@@ -662,10 +667,10 @@ interface APIRequestOptions extends Options {
|
|
|
662
667
|
declare const request: <T>(url: string, options?: Options) => Promise<Response$1<APIResponse<T>>>;
|
|
663
668
|
|
|
664
669
|
declare const auth: (client: Client) => {
|
|
665
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
666
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
667
|
-
signOut: () => Promise<
|
|
668
|
-
refreshToken: () => Promise<
|
|
670
|
+
signIn: (data: SignInUserDto) => Promise<User>;
|
|
671
|
+
signUp: (data: CreateUserDto) => Promise<User>;
|
|
672
|
+
signOut: () => Promise<null>;
|
|
673
|
+
refreshToken: () => Promise<null>;
|
|
669
674
|
oauth2: {
|
|
670
675
|
google: {
|
|
671
676
|
connect: (params?: Record<string, ParamValue>) => void;
|
|
@@ -681,108 +686,112 @@ declare const auth: (client: Client) => {
|
|
|
681
686
|
|
|
682
687
|
declare const careers: (client: Client) => {
|
|
683
688
|
categories: {
|
|
684
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<
|
|
689
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
685
690
|
};
|
|
686
691
|
employmentTypes: {
|
|
687
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<
|
|
692
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
688
693
|
};
|
|
689
694
|
jobs: {
|
|
690
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<
|
|
691
|
-
get: (jobId: number) => Promise<
|
|
695
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
696
|
+
get: (jobId: number) => Promise<CareersJob>;
|
|
692
697
|
};
|
|
693
698
|
offices: {
|
|
694
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<
|
|
699
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
695
700
|
};
|
|
696
701
|
};
|
|
697
702
|
|
|
698
703
|
declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
699
704
|
|
|
700
705
|
declare const health: (client: Client) => {
|
|
701
|
-
getAll: () => Promise<
|
|
702
|
-
database: () => Promise<
|
|
703
|
-
api: () => Promise<
|
|
704
|
-
app: () => Promise<
|
|
706
|
+
getAll: () => Promise<Health<"database" | "app" | "api">>;
|
|
707
|
+
database: () => Promise<Health<"database">>;
|
|
708
|
+
api: () => Promise<Health<"api">>;
|
|
709
|
+
app: () => Promise<Health<"app">>;
|
|
705
710
|
};
|
|
706
711
|
|
|
707
712
|
declare const orders: (client: Client) => {
|
|
708
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
709
|
-
get: (orderId: string) => Promise<
|
|
713
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<ArrayResult<Order>>;
|
|
714
|
+
get: (orderId: string) => Promise<Order>;
|
|
710
715
|
};
|
|
711
716
|
|
|
712
717
|
declare const organizations: (client: Client) => {
|
|
713
|
-
getAll: () => Promise<
|
|
714
|
-
get: (organizationSlug: string) => Promise<
|
|
715
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
716
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
717
|
-
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>;
|
|
718
723
|
billing: {
|
|
719
|
-
account: (organizationSlug: string) => Promise<
|
|
724
|
+
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
720
725
|
link: (organizationSlug: string) => void;
|
|
721
726
|
dashboard: (organizationSlug: string) => void;
|
|
722
727
|
};
|
|
723
728
|
events: {
|
|
724
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
725
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
729
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
730
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
726
731
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
727
732
|
latitude: number;
|
|
728
733
|
longitude: number;
|
|
729
734
|
radius?: number;
|
|
730
|
-
}) => Promise<
|
|
731
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
732
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
733
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
734
|
-
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>;
|
|
735
740
|
orders: {
|
|
736
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
741
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
737
742
|
};
|
|
738
743
|
styles: {
|
|
739
|
-
getAll: () => Promise<
|
|
740
|
-
get: (styleSlug: string) => Promise<
|
|
741
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
742
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
743
|
-
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[]>;
|
|
744
749
|
};
|
|
745
750
|
tickets: {
|
|
746
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
747
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
748
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
749
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
750
|
-
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[]>;
|
|
751
756
|
};
|
|
752
757
|
};
|
|
753
758
|
members: {
|
|
754
|
-
getAll: () => Promise<
|
|
755
|
-
delete: (memberId: string) => Promise<
|
|
759
|
+
getAll: () => Promise<ArrayResult<OrganizationMember>>;
|
|
760
|
+
delete: (memberId: string) => Promise<OrganizationMember[]>;
|
|
756
761
|
};
|
|
757
762
|
};
|
|
758
763
|
|
|
759
764
|
declare const profiles: (client: Client) => {
|
|
760
|
-
get: (username: string) => Promise<
|
|
765
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
761
766
|
relationships: {
|
|
762
|
-
follow: (username: string) => Promise<
|
|
763
|
-
unfollow: (username: string) => Promise<
|
|
767
|
+
follow: (username: string) => Promise<boolean>;
|
|
768
|
+
unfollow: (username: string) => Promise<boolean>;
|
|
764
769
|
};
|
|
765
770
|
};
|
|
766
771
|
|
|
767
772
|
declare const users: (client: Client) => {
|
|
768
|
-
getAll: () => Promise<
|
|
769
|
-
get: (userId: string) => Promise<
|
|
770
|
-
me: () => Promise<
|
|
771
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
772
|
-
|
|
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>;
|
|
773
782
|
};
|
|
774
783
|
|
|
775
784
|
declare const notifications: (client: Client) => {
|
|
776
|
-
registerToBeta: (email: string) => Promise<
|
|
785
|
+
registerToBeta: (email: string) => Promise<null>;
|
|
777
786
|
};
|
|
778
787
|
|
|
779
788
|
declare class TonightPass {
|
|
780
789
|
readonly client: Client;
|
|
781
790
|
readonly auth: {
|
|
782
|
-
signIn: (data: SignInUserDto) => Promise<
|
|
783
|
-
signUp: (data: CreateUserDto) => Promise<
|
|
784
|
-
signOut: () => Promise<
|
|
785
|
-
refreshToken: () => Promise<
|
|
791
|
+
signIn: (data: SignInUserDto) => Promise<User>;
|
|
792
|
+
signUp: (data: CreateUserDto) => Promise<User>;
|
|
793
|
+
signOut: () => Promise<null>;
|
|
794
|
+
refreshToken: () => Promise<null>;
|
|
786
795
|
oauth2: {
|
|
787
796
|
google: {
|
|
788
797
|
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
@@ -797,95 +806,99 @@ declare class TonightPass {
|
|
|
797
806
|
};
|
|
798
807
|
readonly careers: {
|
|
799
808
|
categories: {
|
|
800
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<
|
|
809
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
801
810
|
};
|
|
802
811
|
employmentTypes: {
|
|
803
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<
|
|
812
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
804
813
|
};
|
|
805
814
|
jobs: {
|
|
806
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<
|
|
807
|
-
get: (jobId: number) => Promise<
|
|
815
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
816
|
+
get: (jobId: number) => Promise<CareersJob>;
|
|
808
817
|
};
|
|
809
818
|
offices: {
|
|
810
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<
|
|
819
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
811
820
|
};
|
|
812
821
|
};
|
|
813
822
|
readonly health: {
|
|
814
|
-
getAll: () => Promise<
|
|
815
|
-
database: () => Promise<
|
|
816
|
-
api: () => Promise<
|
|
817
|
-
app: () => Promise<
|
|
823
|
+
getAll: () => Promise<Health<"database" | "app" | "api">>;
|
|
824
|
+
database: () => Promise<Health<"database">>;
|
|
825
|
+
api: () => Promise<Health<"api">>;
|
|
826
|
+
app: () => Promise<Health<"app">>;
|
|
818
827
|
};
|
|
819
828
|
readonly orders: {
|
|
820
|
-
getAll: (options?: ArrayOptions<Order>) => Promise<
|
|
821
|
-
get: (orderId: string) => Promise<
|
|
829
|
+
getAll: (options?: ArrayOptions<Order>) => Promise<ArrayResult<Order>>;
|
|
830
|
+
get: (orderId: string) => Promise<Order>;
|
|
822
831
|
};
|
|
823
832
|
readonly organizations: {
|
|
824
|
-
getAll: () => Promise<
|
|
825
|
-
get: (organizationSlug: string) => Promise<
|
|
826
|
-
create: (data: CreateOrganizationDto) => Promise<
|
|
827
|
-
update: (organizationSlug: string, data: UpdateOrganizationDto) => Promise<
|
|
828
|
-
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>;
|
|
829
838
|
billing: {
|
|
830
|
-
account: (organizationSlug: string) => Promise<
|
|
839
|
+
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
831
840
|
link: (organizationSlug: string) => void;
|
|
832
841
|
dashboard: (organizationSlug: string) => void;
|
|
833
842
|
};
|
|
834
843
|
events: {
|
|
835
|
-
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
836
|
-
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<
|
|
844
|
+
getAll: (organizationSlug?: string, options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
845
|
+
getSuggestions: (options?: ArrayOptions<OrganizationEvent>) => Promise<ArrayResult<OrganizationEvent>>;
|
|
837
846
|
getNearby: (options: ArrayOptions<OrganizationEvent> & {
|
|
838
847
|
latitude: number;
|
|
839
848
|
longitude: number;
|
|
840
849
|
radius?: number;
|
|
841
|
-
}) => Promise<
|
|
842
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
843
|
-
create: (organizationSlug: string, data: CreateOrganizationEventDto) => Promise<
|
|
844
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
845
|
-
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>;
|
|
846
855
|
orders: {
|
|
847
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<
|
|
856
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
848
857
|
};
|
|
849
858
|
styles: {
|
|
850
|
-
getAll: () => Promise<
|
|
851
|
-
get: (styleSlug: string) => Promise<
|
|
852
|
-
create: (data: CreateOrganizationEventStyleDto) => Promise<
|
|
853
|
-
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<
|
|
854
|
-
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[]>;
|
|
855
864
|
};
|
|
856
865
|
tickets: {
|
|
857
|
-
getAll: (organizationSlug: string, eventSlug: string) => Promise<
|
|
858
|
-
get: (organizationSlug: string, eventSlug: string, ticketId: string) => Promise<
|
|
859
|
-
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventTicketDto) => Promise<
|
|
860
|
-
update: (organizationSlug: string, eventSlug: string, ticketId: string, data: UpdateOrganizationEventTicketDto) => Promise<
|
|
861
|
-
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[]>;
|
|
862
871
|
};
|
|
863
872
|
};
|
|
864
873
|
members: {
|
|
865
|
-
getAll: () => Promise<
|
|
866
|
-
delete: (memberId: string) => Promise<
|
|
874
|
+
getAll: () => Promise<ArrayResult<OrganizationMember>>;
|
|
875
|
+
delete: (memberId: string) => Promise<OrganizationMember[]>;
|
|
867
876
|
};
|
|
868
877
|
};
|
|
869
878
|
readonly profiles: {
|
|
870
|
-
get: (username: string) => Promise<
|
|
879
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
871
880
|
relationships: {
|
|
872
|
-
follow: (username: string) => Promise<
|
|
873
|
-
unfollow: (username: string) => Promise<
|
|
881
|
+
follow: (username: string) => Promise<boolean>;
|
|
882
|
+
unfollow: (username: string) => Promise<boolean>;
|
|
874
883
|
};
|
|
875
884
|
};
|
|
876
885
|
readonly users: {
|
|
877
|
-
getAll: () => Promise<
|
|
878
|
-
get: (userId: string) => Promise<
|
|
879
|
-
me: () => Promise<
|
|
880
|
-
check: (identifier: string, suggestions?: boolean) => Promise<
|
|
881
|
-
|
|
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>;
|
|
882
895
|
};
|
|
883
896
|
readonly notifications: {
|
|
884
|
-
registerToBeta: (email: string) => Promise<
|
|
897
|
+
registerToBeta: (email: string) => Promise<null>;
|
|
885
898
|
};
|
|
886
899
|
constructor(options: ClientOptions);
|
|
887
900
|
}
|
|
888
901
|
|
|
889
902
|
declare const isBrowser: boolean;
|
|
890
903
|
|
|
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, 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 };
|