tonightpass 0.0.42 → 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 +14 -0
- package/dist/index.d.mts +53 -50
- package/dist/index.d.ts +53 -50
- package/dist/index.js +36 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- 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 +40 -2
- package/src/rest/types/organizations/events/index.ts +9 -5
- package/src/rest/types/organizations/events/tickets/index.ts +6 -3
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
18
18
|
DTS Build start
|
|
19
|
-
DTS ⚡️ Build success in
|
|
20
|
-
DTS dist/index.d.ts 36.
|
|
21
|
-
DTS dist/index.d.mts 36.
|
|
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,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 0.0.43
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`667bfd2`](https://github.com/tonightpass/tonightpass/commit/667bfd22d3267bd147f8878947d52ee2a4344281) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add class validation to Organization Event Ticket
|
|
16
|
+
|
|
3
17
|
## 0.0.42
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -225,10 +225,13 @@ type OrganizationEventTicket = Base & {
|
|
|
225
225
|
externalId?: string;
|
|
226
226
|
isVisible: boolean;
|
|
227
227
|
isFeesIncluded: boolean;
|
|
228
|
-
startAt
|
|
229
|
-
endAt
|
|
228
|
+
startAt?: Date;
|
|
229
|
+
endAt?: Date;
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
declare enum OrganizationEventTicketType {
|
|
232
|
+
ETicket = "e-ticket",
|
|
233
|
+
Other = "other"
|
|
234
|
+
}
|
|
232
235
|
declare enum OrganizationEventTicketCategory {
|
|
233
236
|
Entry = "entry",
|
|
234
237
|
Package = "package",
|
|
@@ -285,7 +288,7 @@ declare enum OrganizationEventVisibilityType {
|
|
|
285
288
|
Unlisted = "unlisted",
|
|
286
289
|
Private = "private"
|
|
287
290
|
}
|
|
288
|
-
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;
|
|
289
292
|
|
|
290
293
|
declare class UpdateOrganizationMemberDto {
|
|
291
294
|
role: OrganizationMemberRole;
|
|
@@ -476,8 +479,8 @@ declare class CreateOrganizationEventTicketDto {
|
|
|
476
479
|
currency: Currency;
|
|
477
480
|
isVisible: boolean;
|
|
478
481
|
isFeesIncluded: boolean;
|
|
479
|
-
startAt
|
|
480
|
-
endAt
|
|
482
|
+
startAt?: Date;
|
|
483
|
+
endAt?: Date;
|
|
481
484
|
}
|
|
482
485
|
|
|
483
486
|
declare class UpdateOrganizationEventTicketDto extends CreateOrganizationEventTicketDto {
|
|
@@ -595,27 +598,27 @@ declare class Client {
|
|
|
595
598
|
path: Path;
|
|
596
599
|
method: "GET";
|
|
597
600
|
}> | Extract<Endpoint<"GET", "/careers/categories", CareersCategory[], {
|
|
598
|
-
language?: string
|
|
601
|
+
language?: string;
|
|
599
602
|
}>, {
|
|
600
603
|
path: Path;
|
|
601
604
|
method: "GET";
|
|
602
605
|
}> | Extract<Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
603
|
-
language?: string
|
|
606
|
+
language?: string;
|
|
604
607
|
}>, {
|
|
605
608
|
path: Path;
|
|
606
609
|
method: "GET";
|
|
607
610
|
}> | Extract<Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
608
|
-
page?: number
|
|
609
|
-
pageSize?: number
|
|
611
|
+
page?: number;
|
|
612
|
+
pageSize?: number;
|
|
610
613
|
createdAtGte: string;
|
|
611
|
-
createdAtLt?: string
|
|
612
|
-
updatedAtGte?: string
|
|
613
|
-
updatedAtLt?: string
|
|
614
|
-
status?: "ALL" | "ONLINE" | "ARCHIVED"
|
|
615
|
-
content?: boolean
|
|
616
|
-
titleLike?: string
|
|
617
|
-
countryCode?: string
|
|
618
|
-
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;
|
|
619
622
|
}>, {
|
|
620
623
|
path: Path;
|
|
621
624
|
method: "GET";
|
|
@@ -625,10 +628,10 @@ declare class Client {
|
|
|
625
628
|
path: Path;
|
|
626
629
|
method: "GET";
|
|
627
630
|
}> | Extract<Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
628
|
-
page?: number
|
|
629
|
-
pageSize?: number
|
|
630
|
-
countryCode?: string
|
|
631
|
-
cityNameLike?: string
|
|
631
|
+
page?: number;
|
|
632
|
+
pageSize?: number;
|
|
633
|
+
countryCode?: string;
|
|
634
|
+
cityNameLike?: string;
|
|
632
635
|
}>, {
|
|
633
636
|
path: Path;
|
|
634
637
|
method: "GET";
|
|
@@ -656,10 +659,10 @@ declare class Client {
|
|
|
656
659
|
}> | Extract<Endpoint<"GET", "/organizations/:slug/billing/dashboard", void>, {
|
|
657
660
|
path: Path;
|
|
658
661
|
method: "GET";
|
|
659
|
-
}> | Extract<Endpoint<"GET", "/organizations/:slug/events",
|
|
662
|
+
}> | Extract<Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]>, {
|
|
660
663
|
path: Path;
|
|
661
664
|
method: "GET";
|
|
662
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug",
|
|
665
|
+
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent>, {
|
|
663
666
|
path: Path;
|
|
664
667
|
method: "GET";
|
|
665
668
|
}> | Extract<Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]>, {
|
|
@@ -697,10 +700,10 @@ declare class Client {
|
|
|
697
700
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
698
701
|
exists: boolean;
|
|
699
702
|
identifier: UserIdentifier;
|
|
700
|
-
suggestions?: string[]
|
|
703
|
+
suggestions?: string[];
|
|
701
704
|
}, {
|
|
702
705
|
identifier: boolean;
|
|
703
|
-
suggestions?: boolean
|
|
706
|
+
suggestions?: boolean;
|
|
704
707
|
}>, {
|
|
705
708
|
path: Path;
|
|
706
709
|
method: "GET";
|
|
@@ -725,7 +728,7 @@ declare class Client {
|
|
|
725
728
|
}> | Extract<Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>, {
|
|
726
729
|
path: Path;
|
|
727
730
|
method: "POST";
|
|
728
|
-
}> | Extract<Endpoint<"POST", "/organizations/:slug/events",
|
|
731
|
+
}> | Extract<Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto>, {
|
|
729
732
|
path: Path;
|
|
730
733
|
method: "POST";
|
|
731
734
|
}> | Extract<Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto>, {
|
|
@@ -746,7 +749,7 @@ declare class Client {
|
|
|
746
749
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"PUT", "/organizations/:slug", Organization, UpdateOrganizationDto>, {
|
|
747
750
|
path: Path;
|
|
748
751
|
method: "PUT";
|
|
749
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug",
|
|
752
|
+
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto>, {
|
|
750
753
|
path: Path;
|
|
751
754
|
method: "PUT";
|
|
752
755
|
}> | Extract<Endpoint<"PUT", "/organizations/events/styles/:slug", OrganizationEventStyle, UpdateOrganizationEventStyleDto>, {
|
|
@@ -776,7 +779,7 @@ declare class Client {
|
|
|
776
779
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"DELETE", "/organizations/:slug", Organization, null>, {
|
|
777
780
|
path: Path;
|
|
778
781
|
method: "DELETE";
|
|
779
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug",
|
|
782
|
+
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null>, {
|
|
780
783
|
path: Path;
|
|
781
784
|
method: "DELETE";
|
|
782
785
|
}> | Extract<Endpoint<"DELETE", "/organizations/events/styles/:slug", OrganizationEventStyle[], null>, {
|
|
@@ -849,11 +852,11 @@ declare const organizations: (client: Client) => {
|
|
|
849
852
|
dashboard: (slug: string) => void;
|
|
850
853
|
};
|
|
851
854
|
events: {
|
|
852
|
-
getAll: (slug: string) => Promise<
|
|
853
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
854
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
855
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
856
|
-
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>;
|
|
857
860
|
styles: {
|
|
858
861
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
859
862
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -886,7 +889,7 @@ declare const users: (client: Client) => {
|
|
|
886
889
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
887
890
|
exists: boolean;
|
|
888
891
|
identifier: UserIdentifier;
|
|
889
|
-
suggestions?: string[]
|
|
892
|
+
suggestions?: string[];
|
|
890
893
|
}>;
|
|
891
894
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
892
895
|
};
|
|
@@ -900,29 +903,29 @@ declare class TonightPass {
|
|
|
900
903
|
refreshToken: () => Promise<null>;
|
|
901
904
|
oauth2: {
|
|
902
905
|
google: {
|
|
903
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
906
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
904
907
|
};
|
|
905
908
|
twitter: {
|
|
906
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
909
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
907
910
|
};
|
|
908
911
|
facebook: {
|
|
909
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
912
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
910
913
|
};
|
|
911
914
|
};
|
|
912
915
|
};
|
|
913
916
|
readonly careers: {
|
|
914
917
|
categories: {
|
|
915
|
-
getAll: (query?: pathcat.Query<"/careers/categories">
|
|
918
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
916
919
|
};
|
|
917
920
|
employmentTypes: {
|
|
918
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">
|
|
921
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
919
922
|
};
|
|
920
923
|
jobs: {
|
|
921
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">
|
|
924
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
922
925
|
get: (id: number) => Promise<CareersJob>;
|
|
923
926
|
};
|
|
924
927
|
offices: {
|
|
925
|
-
getAll: (query?: pathcat.Query<"/careers/offices">
|
|
928
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
926
929
|
};
|
|
927
930
|
};
|
|
928
931
|
readonly health: {
|
|
@@ -942,11 +945,11 @@ declare class TonightPass {
|
|
|
942
945
|
dashboard: (slug: string) => void;
|
|
943
946
|
};
|
|
944
947
|
events: {
|
|
945
|
-
getAll: (slug: string) => Promise<
|
|
946
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
947
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
948
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
949
|
-
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>;
|
|
950
953
|
styles: {
|
|
951
954
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
952
955
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -974,10 +977,10 @@ declare class TonightPass {
|
|
|
974
977
|
getAll: () => Promise<User[]>;
|
|
975
978
|
get: (id: string) => Promise<User[]>;
|
|
976
979
|
me: () => Promise<User>;
|
|
977
|
-
check: (identifier: string, suggestions?: boolean
|
|
980
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
978
981
|
exists: boolean;
|
|
979
982
|
identifier: UserIdentifier;
|
|
980
|
-
suggestions?: string[]
|
|
983
|
+
suggestions?: string[];
|
|
981
984
|
}>;
|
|
982
985
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
983
986
|
};
|
|
@@ -986,4 +989,4 @@ declare class TonightPass {
|
|
|
986
989
|
|
|
987
990
|
declare const isBrowser: boolean;
|
|
988
991
|
|
|
989
|
-
export { type APIRequestOptions, type APIResponse, type AuthEndpoints, BCRYPT_HASH, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, Currency, DEFAULT_API_URL, EMAIL_REGEX, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, IMAGE_URL_REGEX, Language, type Location$1 as Location, NAME_REGEX, type Order, type OrderItem, OrderStatus, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints,
|
|
992
|
+
export { type APIRequestOptions, type APIResponse, type AuthEndpoints, BCRYPT_HASH, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, Currency, DEFAULT_API_URL, EMAIL_REGEX, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, IMAGE_URL_REGEX, Language, type Location$1 as Location, NAME_REGEX, type Order, type OrderItem, OrderStatus, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationSocialLink, OrganizationSocialType, PASSWORD_REGEX, PHONE_NUMBER_REGEX, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, type PromoCode, SLUG_REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, type UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, auth, careers, health, isBrowser, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -225,10 +225,13 @@ type OrganizationEventTicket = Base & {
|
|
|
225
225
|
externalId?: string;
|
|
226
226
|
isVisible: boolean;
|
|
227
227
|
isFeesIncluded: boolean;
|
|
228
|
-
startAt
|
|
229
|
-
endAt
|
|
228
|
+
startAt?: Date;
|
|
229
|
+
endAt?: Date;
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
declare enum OrganizationEventTicketType {
|
|
232
|
+
ETicket = "e-ticket",
|
|
233
|
+
Other = "other"
|
|
234
|
+
}
|
|
232
235
|
declare enum OrganizationEventTicketCategory {
|
|
233
236
|
Entry = "entry",
|
|
234
237
|
Package = "package",
|
|
@@ -285,7 +288,7 @@ declare enum OrganizationEventVisibilityType {
|
|
|
285
288
|
Unlisted = "unlisted",
|
|
286
289
|
Private = "private"
|
|
287
290
|
}
|
|
288
|
-
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;
|
|
289
292
|
|
|
290
293
|
declare class UpdateOrganizationMemberDto {
|
|
291
294
|
role: OrganizationMemberRole;
|
|
@@ -476,8 +479,8 @@ declare class CreateOrganizationEventTicketDto {
|
|
|
476
479
|
currency: Currency;
|
|
477
480
|
isVisible: boolean;
|
|
478
481
|
isFeesIncluded: boolean;
|
|
479
|
-
startAt
|
|
480
|
-
endAt
|
|
482
|
+
startAt?: Date;
|
|
483
|
+
endAt?: Date;
|
|
481
484
|
}
|
|
482
485
|
|
|
483
486
|
declare class UpdateOrganizationEventTicketDto extends CreateOrganizationEventTicketDto {
|
|
@@ -595,27 +598,27 @@ declare class Client {
|
|
|
595
598
|
path: Path;
|
|
596
599
|
method: "GET";
|
|
597
600
|
}> | Extract<Endpoint<"GET", "/careers/categories", CareersCategory[], {
|
|
598
|
-
language?: string
|
|
601
|
+
language?: string;
|
|
599
602
|
}>, {
|
|
600
603
|
path: Path;
|
|
601
604
|
method: "GET";
|
|
602
605
|
}> | Extract<Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
603
|
-
language?: string
|
|
606
|
+
language?: string;
|
|
604
607
|
}>, {
|
|
605
608
|
path: Path;
|
|
606
609
|
method: "GET";
|
|
607
610
|
}> | Extract<Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
608
|
-
page?: number
|
|
609
|
-
pageSize?: number
|
|
611
|
+
page?: number;
|
|
612
|
+
pageSize?: number;
|
|
610
613
|
createdAtGte: string;
|
|
611
|
-
createdAtLt?: string
|
|
612
|
-
updatedAtGte?: string
|
|
613
|
-
updatedAtLt?: string
|
|
614
|
-
status?: "ALL" | "ONLINE" | "ARCHIVED"
|
|
615
|
-
content?: boolean
|
|
616
|
-
titleLike?: string
|
|
617
|
-
countryCode?: string
|
|
618
|
-
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;
|
|
619
622
|
}>, {
|
|
620
623
|
path: Path;
|
|
621
624
|
method: "GET";
|
|
@@ -625,10 +628,10 @@ declare class Client {
|
|
|
625
628
|
path: Path;
|
|
626
629
|
method: "GET";
|
|
627
630
|
}> | Extract<Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
628
|
-
page?: number
|
|
629
|
-
pageSize?: number
|
|
630
|
-
countryCode?: string
|
|
631
|
-
cityNameLike?: string
|
|
631
|
+
page?: number;
|
|
632
|
+
pageSize?: number;
|
|
633
|
+
countryCode?: string;
|
|
634
|
+
cityNameLike?: string;
|
|
632
635
|
}>, {
|
|
633
636
|
path: Path;
|
|
634
637
|
method: "GET";
|
|
@@ -656,10 +659,10 @@ declare class Client {
|
|
|
656
659
|
}> | Extract<Endpoint<"GET", "/organizations/:slug/billing/dashboard", void>, {
|
|
657
660
|
path: Path;
|
|
658
661
|
method: "GET";
|
|
659
|
-
}> | Extract<Endpoint<"GET", "/organizations/:slug/events",
|
|
662
|
+
}> | Extract<Endpoint<"GET", "/organizations/:slug/events", OrganizationEvent[]>, {
|
|
660
663
|
path: Path;
|
|
661
664
|
method: "GET";
|
|
662
|
-
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug",
|
|
665
|
+
}> | Extract<Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent>, {
|
|
663
666
|
path: Path;
|
|
664
667
|
method: "GET";
|
|
665
668
|
}> | Extract<Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle[]>, {
|
|
@@ -697,10 +700,10 @@ declare class Client {
|
|
|
697
700
|
}> | Extract<Endpoint<"GET", "/users/check/:identifier", {
|
|
698
701
|
exists: boolean;
|
|
699
702
|
identifier: UserIdentifier;
|
|
700
|
-
suggestions?: string[]
|
|
703
|
+
suggestions?: string[];
|
|
701
704
|
}, {
|
|
702
705
|
identifier: boolean;
|
|
703
|
-
suggestions?: boolean
|
|
706
|
+
suggestions?: boolean;
|
|
704
707
|
}>, {
|
|
705
708
|
path: Path;
|
|
706
709
|
method: "GET";
|
|
@@ -725,7 +728,7 @@ declare class Client {
|
|
|
725
728
|
}> | Extract<Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto>, {
|
|
726
729
|
path: Path;
|
|
727
730
|
method: "POST";
|
|
728
|
-
}> | Extract<Endpoint<"POST", "/organizations/:slug/events",
|
|
731
|
+
}> | Extract<Endpoint<"POST", "/organizations/:slug/events", OrganizationEvent, CreateOrganizationEventDto>, {
|
|
729
732
|
path: Path;
|
|
730
733
|
method: "POST";
|
|
731
734
|
}> | Extract<Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto>, {
|
|
@@ -746,7 +749,7 @@ declare class Client {
|
|
|
746
749
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"PUT", "/organizations/:slug", Organization, UpdateOrganizationDto>, {
|
|
747
750
|
path: Path;
|
|
748
751
|
method: "PUT";
|
|
749
|
-
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug",
|
|
752
|
+
}> | Extract<Endpoint<"PUT", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto>, {
|
|
750
753
|
path: Path;
|
|
751
754
|
method: "PUT";
|
|
752
755
|
}> | Extract<Endpoint<"PUT", "/organizations/events/styles/:slug", OrganizationEventStyle, UpdateOrganizationEventStyleDto>, {
|
|
@@ -776,7 +779,7 @@ declare class Client {
|
|
|
776
779
|
}>["body"], query?: Query<Path>, options?: APIRequestOptions): Promise<(Extract<Endpoint<"DELETE", "/organizations/:slug", Organization, null>, {
|
|
777
780
|
path: Path;
|
|
778
781
|
method: "DELETE";
|
|
779
|
-
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug",
|
|
782
|
+
}> | Extract<Endpoint<"DELETE", "/organizations/:organizationSlug/events/:eventSlug", OrganizationEvent, null>, {
|
|
780
783
|
path: Path;
|
|
781
784
|
method: "DELETE";
|
|
782
785
|
}> | Extract<Endpoint<"DELETE", "/organizations/events/styles/:slug", OrganizationEventStyle[], null>, {
|
|
@@ -849,11 +852,11 @@ declare const organizations: (client: Client) => {
|
|
|
849
852
|
dashboard: (slug: string) => void;
|
|
850
853
|
};
|
|
851
854
|
events: {
|
|
852
|
-
getAll: (slug: string) => Promise<
|
|
853
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
854
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
855
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
856
|
-
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>;
|
|
857
860
|
styles: {
|
|
858
861
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
859
862
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -886,7 +889,7 @@ declare const users: (client: Client) => {
|
|
|
886
889
|
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
887
890
|
exists: boolean;
|
|
888
891
|
identifier: UserIdentifier;
|
|
889
|
-
suggestions?: string[]
|
|
892
|
+
suggestions?: string[];
|
|
890
893
|
}>;
|
|
891
894
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
892
895
|
};
|
|
@@ -900,29 +903,29 @@ declare class TonightPass {
|
|
|
900
903
|
refreshToken: () => Promise<null>;
|
|
901
904
|
oauth2: {
|
|
902
905
|
google: {
|
|
903
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
906
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
904
907
|
};
|
|
905
908
|
twitter: {
|
|
906
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
909
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
907
910
|
};
|
|
908
911
|
facebook: {
|
|
909
|
-
connect: (params?: Record<string, pathcat.ParamValue>
|
|
912
|
+
connect: (params?: Record<string, pathcat.ParamValue>) => void;
|
|
910
913
|
};
|
|
911
914
|
};
|
|
912
915
|
};
|
|
913
916
|
readonly careers: {
|
|
914
917
|
categories: {
|
|
915
|
-
getAll: (query?: pathcat.Query<"/careers/categories">
|
|
918
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory[]>;
|
|
916
919
|
};
|
|
917
920
|
employmentTypes: {
|
|
918
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">
|
|
921
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType[]>;
|
|
919
922
|
};
|
|
920
923
|
jobs: {
|
|
921
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">
|
|
924
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob[]>;
|
|
922
925
|
get: (id: number) => Promise<CareersJob>;
|
|
923
926
|
};
|
|
924
927
|
offices: {
|
|
925
|
-
getAll: (query?: pathcat.Query<"/careers/offices">
|
|
928
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice[]>;
|
|
926
929
|
};
|
|
927
930
|
};
|
|
928
931
|
readonly health: {
|
|
@@ -942,11 +945,11 @@ declare class TonightPass {
|
|
|
942
945
|
dashboard: (slug: string) => void;
|
|
943
946
|
};
|
|
944
947
|
events: {
|
|
945
|
-
getAll: (slug: string) => Promise<
|
|
946
|
-
get: (organizationSlug: string, eventSlug: string) => Promise<
|
|
947
|
-
create: (slug: string, data: CreateOrganizationEventDto) => Promise<
|
|
948
|
-
update: (organizationSlug: string, eventSlug: string, data: UpdateOrganizationEventDto) => Promise<
|
|
949
|
-
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>;
|
|
950
953
|
styles: {
|
|
951
954
|
getAll: () => Promise<OrganizationEventStyle[]>;
|
|
952
955
|
get: (slug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -974,10 +977,10 @@ declare class TonightPass {
|
|
|
974
977
|
getAll: () => Promise<User[]>;
|
|
975
978
|
get: (id: string) => Promise<User[]>;
|
|
976
979
|
me: () => Promise<User>;
|
|
977
|
-
check: (identifier: string, suggestions?: boolean
|
|
980
|
+
check: (identifier: string, suggestions?: boolean) => Promise<{
|
|
978
981
|
exists: boolean;
|
|
979
982
|
identifier: UserIdentifier;
|
|
980
|
-
suggestions?: string[]
|
|
983
|
+
suggestions?: string[];
|
|
981
984
|
}>;
|
|
982
985
|
update: (id: string, data: UpdateUserDto) => Promise<User>;
|
|
983
986
|
};
|
|
@@ -986,4 +989,4 @@ declare class TonightPass {
|
|
|
986
989
|
|
|
987
990
|
declare const isBrowser: boolean;
|
|
988
991
|
|
|
989
|
-
export { type APIRequestOptions, type APIResponse, type AuthEndpoints, BCRYPT_HASH, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, Currency, DEFAULT_API_URL, EMAIL_REGEX, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, IMAGE_URL_REGEX, Language, type Location$1 as Location, NAME_REGEX, type Order, type OrderItem, OrderStatus, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints,
|
|
992
|
+
export { type APIRequestOptions, type APIResponse, type AuthEndpoints, BCRYPT_HASH, type Base, type CareersCategory, type CareersEmploymentType, type CareersEndpoints, type CareersJob, type CareersOffice, Client, type ClientOptions, CreateOrganizationDto, CreateOrganizationEventDto, CreateOrganizationEventTicketDto, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateUserDto, Currency, DEFAULT_API_URL, EMAIL_REGEX, type Endpoint, type Endpoints, type ErroredAPIResponse, type ExcludeBase, type Health, type HealthEndpoints, IMAGE_URL_REGEX, Language, type Location$1 as Location, NAME_REGEX, type Order, type OrderItem, OrderStatus, type Organization, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventEndpoints, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationSocialLink, OrganizationSocialType, PASSWORD_REGEX, PHONE_NUMBER_REGEX, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, type PromisedAPIResponse, type PromoCode, SLUG_REGEX, SignInUserDto, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, type User, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserEndpoints, type UserIdentifier, type UserIdentity, type UserIdentityGender, type UserPreferences, UserRole, type UserToken, UserTokenType, auth, careers, health, isBrowser, organizations, profiles, request, sdk, users };
|