tonightpass 0.0.43 → 0.0.44
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 +8 -0
- package/dist/index.d.mts +44 -44
- package/dist/index.d.ts +44 -44
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/rest/dtos/organizations/events/tickets/create-organization-event-ticket.dto.ts +2 -1
- package/src/rest/types/organizations/events/index.ts +9 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.44 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -9,13 +9,13 @@ CLI Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/node/t
|
|
|
9
9
|
CLI Target: esnext
|
|
10
10
|
CJS Build start
|
|
11
11
|
ESM Build start
|
|
12
|
+
ESM dist/index.mjs 19.52 KB
|
|
13
|
+
ESM dist/index.mjs.map 49.06 KB
|
|
14
|
+
ESM ⚡️ Build success in 459ms
|
|
15
|
+
CJS dist/index.js 22.81 KB
|
|
16
|
+
CJS dist/index.js.map 49.06 KB
|
|
17
|
+
CJS ⚡️ Build success in 460ms
|
|
12
18
|
DTS Build start
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
ESM dist/index.mjs 19.44 KB
|
|
17
|
-
ESM dist/index.mjs.map 48.94 KB
|
|
18
|
-
ESM ⚡️ Build success in 489ms
|
|
19
|
-
DTS ⚡️ Build success in 3727ms
|
|
20
|
-
DTS dist/index.d.ts 36.58 KB
|
|
21
|
-
DTS dist/index.d.mts 36.58 KB
|
|
19
|
+
DTS ⚡️ Build success in 3746ms
|
|
20
|
+
DTS dist/index.d.ts 36.49 KB
|
|
21
|
+
DTS dist/index.d.mts 36.49 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802) Thanks [@AntoineKM](https://github.com/AntoineKM)! - uUpdate Create Organization Event Ticket dto description lenght
|
|
8
|
+
|
|
9
|
+
- [`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update Organization Event types
|
|
10
|
+
|
|
3
11
|
## 0.0.43
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -288,7 +288,7 @@ declare enum OrganizationEventVisibilityType {
|
|
|
288
288
|
Unlisted = "unlisted",
|
|
289
289
|
Private = "private"
|
|
290
290
|
}
|
|
291
|
-
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/:slug/events",
|
|
291
|
+
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]> | Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null> | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints;
|
|
292
292
|
|
|
293
293
|
declare class UpdateOrganizationMemberDto {
|
|
294
294
|
role: OrganizationMemberRole;
|
|
@@ -598,27 +598,27 @@ declare class Client {
|
|
|
598
598
|
path: Path;
|
|
599
599
|
method: "GET";
|
|
600
600
|
}> | Extract<Endpoint<"GET", "/careers/categories", CareersCategory[], {
|
|
601
|
-
language?: string
|
|
601
|
+
language?: string;
|
|
602
602
|
}>, {
|
|
603
603
|
path: Path;
|
|
604
604
|
method: "GET";
|
|
605
605
|
}> | Extract<Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
606
|
-
language?: string
|
|
606
|
+
language?: string;
|
|
607
607
|
}>, {
|
|
608
608
|
path: Path;
|
|
609
609
|
method: "GET";
|
|
610
610
|
}> | Extract<Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
611
|
-
page?: number
|
|
612
|
-
pageSize?: number
|
|
611
|
+
page?: number;
|
|
612
|
+
pageSize?: number;
|
|
613
613
|
createdAtGte: string;
|
|
614
|
-
createdAtLt?: string
|
|
615
|
-
updatedAtGte?: string
|
|
616
|
-
updatedAtLt?: string
|
|
617
|
-
status?: "ALL" | "ONLINE" | "ARCHIVED"
|
|
618
|
-
content?: boolean
|
|
619
|
-
titleLike?: string
|
|
620
|
-
countryCode?: string
|
|
621
|
-
externalId?: string
|
|
614
|
+
createdAtLt?: string;
|
|
615
|
+
updatedAtGte?: string;
|
|
616
|
+
updatedAtLt?: string;
|
|
617
|
+
status?: "ALL" | "ONLINE" | "ARCHIVED";
|
|
618
|
+
content?: boolean;
|
|
619
|
+
titleLike?: string;
|
|
620
|
+
countryCode?: string;
|
|
621
|
+
externalId?: string;
|
|
622
622
|
}>, {
|
|
623
623
|
path: Path;
|
|
624
624
|
method: "GET";
|
|
@@ -628,10 +628,10 @@ declare class Client {
|
|
|
628
628
|
path: Path;
|
|
629
629
|
method: "GET";
|
|
630
630
|
}> | Extract<Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
631
|
-
page?: number
|
|
632
|
-
pageSize?: number
|
|
633
|
-
countryCode?: string
|
|
634
|
-
cityNameLike?: string
|
|
631
|
+
page?: number;
|
|
632
|
+
pageSize?: number;
|
|
633
|
+
countryCode?: string;
|
|
634
|
+
cityNameLike?: string;
|
|
635
635
|
}>, {
|
|
636
636
|
path: Path;
|
|
637
637
|
method: "GET";
|
|
@@ -659,10 +659,10 @@ declare class Client {
|
|
|
659
659
|
}> | Extract<Endpoint<"GET", "/organizations/:slug/billing/dashboard", void>, {
|
|
660
660
|
path: Path;
|
|
661
661
|
method: "GET";
|
|
662
|
-
}> | Extract<Endpoint<"GET", "/organizations/:slug/events",
|
|
662
|
+
}> | Extract<Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]>, {
|
|
663
663
|
path: Path;
|
|
664
664
|
method: "GET";
|
|
665
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug",
|
|
665
|
+
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent>, {
|
|
666
666
|
path: Path;
|
|
667
667
|
method: "GET";
|
|
668
668
|
}> | Extract<Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]>, {
|
|
@@ -700,10 +700,10 @@ declare class Client {
|
|
|
700
700
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
701
701
|
exists: boolean;
|
|
702
702
|
identifier: UserIdentifier;
|
|
703
|
-
suggestions?: string[]
|
|
703
|
+
suggestions?: string[];
|
|
704
704
|
}, {
|
|
705
705
|
identifier: boolean;
|
|
706
|
-
suggestions?: boolean
|
|
706
|
+
suggestions?: boolean;
|
|
707
707
|
}>, {
|
|
708
708
|
path: Path;
|
|
709
709
|
method: "GET";
|
|
@@ -728,7 +728,7 @@ declare class Client {
|
|
|
728
728
|
}> | Extract<Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>, {
|
|
729
729
|
path: Path;
|
|
730
730
|
method: "POST";
|
|
731
|
-
}> | Extract<Endpoint<"POST", "/organizations/:slug/events",
|
|
731
|
+
}> | Extract<Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto>, {
|
|
732
732
|
path: Path;
|
|
733
733
|
method: "POST";
|
|
734
734
|
}> | Extract<Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto>, {
|
|
@@ -749,7 +749,7 @@ declare class Client {
|
|
|
749
749
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"PUT", "/organizations/:slug", Organization, UpdateOrganizationDto>, {
|
|
750
750
|
path: Path;
|
|
751
751
|
method: "PUT";
|
|
752
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug",
|
|
752
|
+
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto>, {
|
|
753
753
|
path: Path;
|
|
754
754
|
method: "PUT";
|
|
755
755
|
}> | Extract<Endpoint<"PUT", "/organizations/events/styles/:slug", OrganizationEventStyle, UpdateOrganizationEventStyleDto>, {
|
|
@@ -779,7 +779,7 @@ declare class Client {
|
|
|
779
779
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"DELETE", "/organizations/:slug", Organization, null>, {
|
|
780
780
|
path: Path;
|
|
781
781
|
method: "DELETE";
|
|
782
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug",
|
|
782
|
+
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null>, {
|
|
783
783
|
path: Path;
|
|
784
784
|
method: "DELETE";
|
|
785
785
|
}> | Extract<Endpoint<"DELETE", "/organizations/events/styles/:slug", OrganizationEventStyle[], null>, {
|
|
@@ -852,11 +852,11 @@ declare const organizations: (client: Client) => {
|
|
|
852
852
|
dashboard: (slug: string) => void;
|
|
853
853
|
};
|
|
854
854
|
events: {
|
|
855
|
-
getAll: (slug: string) => Promise<
|
|
856
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
857
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
858
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
859
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
855
|
+
getAll: (slug: string) => Promise<OrganizationEvent[]>;
|
|
856
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
857
|
+
create: (slug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
858
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
859
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
860
860
|
styles: {
|
|
861
861
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
862
862
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -889,7 +889,7 @@ declare const users: (client: Client) => {
|
|
|
889
889
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
890
890
|
exists: boolean;
|
|
891
891
|
identifier: UserIdentifier;
|
|
892
|
-
suggestions?: string[]
|
|
892
|
+
suggestions?: string[];
|
|
893
893
|
}>;
|
|
894
894
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
895
895
|
};
|
|
@@ -903,29 +903,29 @@ declare class TonightPass {
|
|
|
903
903
|
refreshToken: () => Promise<null>;
|
|
904
904
|
oauth2: {
|
|
905
905
|
google: {
|
|
906
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
906
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
907
907
|
};
|
|
908
908
|
twitter: {
|
|
909
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
909
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
910
910
|
};
|
|
911
911
|
facebook: {
|
|
912
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
912
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
913
913
|
};
|
|
914
914
|
};
|
|
915
915
|
};
|
|
916
916
|
readonly careers: {
|
|
917
917
|
categories: {
|
|
918
|
-
getAll: (query?: pathcat.Query<"/careers/categories">
|
|
918
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
919
919
|
};
|
|
920
920
|
employmentTypes: {
|
|
921
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">
|
|
921
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
922
922
|
};
|
|
923
923
|
jobs: {
|
|
924
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">
|
|
924
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
925
925
|
get: (id: number) => Promise<CareersJob>;
|
|
926
926
|
};
|
|
927
927
|
offices: {
|
|
928
|
-
getAll: (query?: pathcat.Query<"/careers/offices">
|
|
928
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
929
929
|
};
|
|
930
930
|
};
|
|
931
931
|
readonly health: {
|
|
@@ -945,11 +945,11 @@ declare class TonightPass {
|
|
|
945
945
|
dashboard: (slug: string) => void;
|
|
946
946
|
};
|
|
947
947
|
events: {
|
|
948
|
-
getAll: (slug: string) => Promise<
|
|
949
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
950
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
951
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
952
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
948
|
+
getAll: (slug: string) => Promise<OrganizationEvent[]>;
|
|
949
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
950
|
+
create: (slug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
951
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
952
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
953
953
|
styles: {
|
|
954
954
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
955
955
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -977,10 +977,10 @@ declare class TonightPass {
|
|
|
977
977
|
getAll: () => Promise<User[]>;
|
|
978
978
|
get: (id: string) => Promise<User[]>;
|
|
979
979
|
me: () => Promise<User>;
|
|
980
|
-
check: (identifier: string, suggestions?: boolean
|
|
980
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
981
981
|
exists: boolean;
|
|
982
982
|
identifier: UserIdentifier;
|
|
983
|
-
suggestions?: string[]
|
|
983
|
+
suggestions?: string[];
|
|
984
984
|
}>;
|
|
985
985
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
986
986
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ declare enum OrganizationEventVisibilityType {
|
|
|
288
288
|
Unlisted = "unlisted",
|
|
289
289
|
Private = "private"
|
|
290
290
|
}
|
|
291
|
-
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/:slug/events",
|
|
291
|
+
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]> | Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null> | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints;
|
|
292
292
|
|
|
293
293
|
declare class UpdateOrganizationMemberDto {
|
|
294
294
|
role: OrganizationMemberRole;
|
|
@@ -598,27 +598,27 @@ declare class Client {
|
|
|
598
598
|
path: Path;
|
|
599
599
|
method: "GET";
|
|
600
600
|
}> | Extract<Endpoint<"GET", "/careers/categories", CareersCategory[], {
|
|
601
|
-
language?: string
|
|
601
|
+
language?: string;
|
|
602
602
|
}>, {
|
|
603
603
|
path: Path;
|
|
604
604
|
method: "GET";
|
|
605
605
|
}> | Extract<Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
606
|
-
language?: string
|
|
606
|
+
language?: string;
|
|
607
607
|
}>, {
|
|
608
608
|
path: Path;
|
|
609
609
|
method: "GET";
|
|
610
610
|
}> | Extract<Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
611
|
-
page?: number
|
|
612
|
-
pageSize?: number
|
|
611
|
+
page?: number;
|
|
612
|
+
pageSize?: number;
|
|
613
613
|
createdAtGte: string;
|
|
614
|
-
createdAtLt?: string
|
|
615
|
-
updatedAtGte?: string
|
|
616
|
-
updatedAtLt?: string
|
|
617
|
-
status?: "ALL" | "ONLINE" | "ARCHIVED"
|
|
618
|
-
content?: boolean
|
|
619
|
-
titleLike?: string
|
|
620
|
-
countryCode?: string
|
|
621
|
-
externalId?: string
|
|
614
|
+
createdAtLt?: string;
|
|
615
|
+
updatedAtGte?: string;
|
|
616
|
+
updatedAtLt?: string;
|
|
617
|
+
status?: "ALL" | "ONLINE" | "ARCHIVED";
|
|
618
|
+
content?: boolean;
|
|
619
|
+
titleLike?: string;
|
|
620
|
+
countryCode?: string;
|
|
621
|
+
externalId?: string;
|
|
622
622
|
}>, {
|
|
623
623
|
path: Path;
|
|
624
624
|
method: "GET";
|
|
@@ -628,10 +628,10 @@ declare class Client {
|
|
|
628
628
|
path: Path;
|
|
629
629
|
method: "GET";
|
|
630
630
|
}> | Extract<Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
631
|
-
page?: number
|
|
632
|
-
pageSize?: number
|
|
633
|
-
countryCode?: string
|
|
634
|
-
cityNameLike?: string
|
|
631
|
+
page?: number;
|
|
632
|
+
pageSize?: number;
|
|
633
|
+
countryCode?: string;
|
|
634
|
+
cityNameLike?: string;
|
|
635
635
|
}>, {
|
|
636
636
|
path: Path;
|
|
637
637
|
method: "GET";
|
|
@@ -659,10 +659,10 @@ declare class Client {
|
|
|
659
659
|
}> | Extract<Endpoint<"GET", "/organizations/:slug/billing/dashboard", void>, {
|
|
660
660
|
path: Path;
|
|
661
661
|
method: "GET";
|
|
662
|
-
}> | Extract<Endpoint<"GET", "/organizations/:slug/events",
|
|
662
|
+
}> | Extract<Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]>, {
|
|
663
663
|
path: Path;
|
|
664
664
|
method: "GET";
|
|
665
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug",
|
|
665
|
+
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent>, {
|
|
666
666
|
path: Path;
|
|
667
667
|
method: "GET";
|
|
668
668
|
}> | Extract<Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]>, {
|
|
@@ -700,10 +700,10 @@ declare class Client {
|
|
|
700
700
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
701
701
|
exists: boolean;
|
|
702
702
|
identifier: UserIdentifier;
|
|
703
|
-
suggestions?: string[]
|
|
703
|
+
suggestions?: string[];
|
|
704
704
|
}, {
|
|
705
705
|
identifier: boolean;
|
|
706
|
-
suggestions?: boolean
|
|
706
|
+
suggestions?: boolean;
|
|
707
707
|
}>, {
|
|
708
708
|
path: Path;
|
|
709
709
|
method: "GET";
|
|
@@ -728,7 +728,7 @@ declare class Client {
|
|
|
728
728
|
}> | Extract<Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>, {
|
|
729
729
|
path: Path;
|
|
730
730
|
method: "POST";
|
|
731
|
-
}> | Extract<Endpoint<"POST", "/organizations/:slug/events",
|
|
731
|
+
}> | Extract<Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto>, {
|
|
732
732
|
path: Path;
|
|
733
733
|
method: "POST";
|
|
734
734
|
}> | Extract<Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto>, {
|
|
@@ -749,7 +749,7 @@ declare class Client {
|
|
|
749
749
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"PUT", "/organizations/:slug", Organization, UpdateOrganizationDto>, {
|
|
750
750
|
path: Path;
|
|
751
751
|
method: "PUT";
|
|
752
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug",
|
|
752
|
+
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto>, {
|
|
753
753
|
path: Path;
|
|
754
754
|
method: "PUT";
|
|
755
755
|
}> | Extract<Endpoint<"PUT", "/organizations/events/styles/:slug", OrganizationEventStyle, UpdateOrganizationEventStyleDto>, {
|
|
@@ -779,7 +779,7 @@ declare class Client {
|
|
|
779
779
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"DELETE", "/organizations/:slug", Organization, null>, {
|
|
780
780
|
path: Path;
|
|
781
781
|
method: "DELETE";
|
|
782
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug",
|
|
782
|
+
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null>, {
|
|
783
783
|
path: Path;
|
|
784
784
|
method: "DELETE";
|
|
785
785
|
}> | Extract<Endpoint<"DELETE", "/organizations/events/styles/:slug", OrganizationEventStyle[], null>, {
|
|
@@ -852,11 +852,11 @@ declare const organizations: (client: Client) => {
|
|
|
852
852
|
dashboard: (slug: string) => void;
|
|
853
853
|
};
|
|
854
854
|
events: {
|
|
855
|
-
getAll: (slug: string) => Promise<
|
|
856
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
857
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
858
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
859
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
855
|
+
getAll: (slug: string) => Promise<OrganizationEvent[]>;
|
|
856
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
857
|
+
create: (slug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
858
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
859
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
860
860
|
styles: {
|
|
861
861
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
862
862
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -889,7 +889,7 @@ declare const users: (client: Client) => {
|
|
|
889
889
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
890
890
|
exists: boolean;
|
|
891
891
|
identifier: UserIdentifier;
|
|
892
|
-
suggestions?: string[]
|
|
892
|
+
suggestions?: string[];
|
|
893
893
|
}>;
|
|
894
894
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
895
895
|
};
|
|
@@ -903,29 +903,29 @@ declare class TonightPass {
|
|
|
903
903
|
refreshToken: () => Promise<null>;
|
|
904
904
|
oauth2: {
|
|
905
905
|
google: {
|
|
906
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
906
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
907
907
|
};
|
|
908
908
|
twitter: {
|
|
909
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
909
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
910
910
|
};
|
|
911
911
|
facebook: {
|
|
912
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
912
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
913
913
|
};
|
|
914
914
|
};
|
|
915
915
|
};
|
|
916
916
|
readonly careers: {
|
|
917
917
|
categories: {
|
|
918
|
-
getAll: (query?: pathcat.Query<"/careers/categories">
|
|
918
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
919
919
|
};
|
|
920
920
|
employmentTypes: {
|
|
921
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">
|
|
921
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
922
922
|
};
|
|
923
923
|
jobs: {
|
|
924
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">
|
|
924
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
925
925
|
get: (id: number) => Promise<CareersJob>;
|
|
926
926
|
};
|
|
927
927
|
offices: {
|
|
928
|
-
getAll: (query?: pathcat.Query<"/careers/offices">
|
|
928
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
929
929
|
};
|
|
930
930
|
};
|
|
931
931
|
readonly health: {
|
|
@@ -945,11 +945,11 @@ declare class TonightPass {
|
|
|
945
945
|
dashboard: (slug: string) => void;
|
|
946
946
|
};
|
|
947
947
|
events: {
|
|
948
|
-
getAll: (slug: string) => Promise<
|
|
949
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
950
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
951
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
952
|
-
delete: (organizationSlug: string, eventSlug: string) => Promise<
|
|
948
|
+
getAll: (slug: string) => Promise<OrganizationEvent[]>;
|
|
949
|
+
get: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
950
|
+
create: (slug: string, data: CreateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
951
|
+
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<OrganizationEvent>;
|
|
952
|
+
delete: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEvent>;
|
|
953
953
|
styles: {
|
|
954
954
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
955
955
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -977,10 +977,10 @@ declare class TonightPass {
|
|
|
977
977
|
getAll: () => Promise<User[]>;
|
|
978
978
|
get: (id: string) => Promise<User[]>;
|
|
979
979
|
me: () => Promise<User>;
|
|
980
|
-
check: (identifier: string, suggestions?: boolean
|
|
980
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
981
981
|
exists: boolean;
|
|
982
982
|
identifier: UserIdentifier;
|
|
983
|
-
suggestions?: string[]
|
|
983
|
+
suggestions?: string[];
|
|
984
984
|
}>;
|
|
985
985
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
986
986
|
};
|