tonightpass 0.0.250 → 0.0.252
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/dist/index.d.mts +99 -35
- package/dist/index.d.ts +99 -35
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -107,7 +107,14 @@ type UserPostRepost = Base & {
|
|
|
107
107
|
};
|
|
108
108
|
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
|
|
109
109
|
|
|
110
|
-
type
|
|
110
|
+
type UserPostViewOptions = {
|
|
111
|
+
posts: string | string[];
|
|
112
|
+
};
|
|
113
|
+
type UserPostViewResult = {
|
|
114
|
+
postId: string;
|
|
115
|
+
viewsCount: number;
|
|
116
|
+
};
|
|
117
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
|
|
111
118
|
|
|
112
119
|
declare enum UserPostVisibility {
|
|
113
120
|
Public = "public",
|
|
@@ -130,8 +137,26 @@ type UserPost = Base & {
|
|
|
130
137
|
};
|
|
131
138
|
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
132
139
|
|
|
140
|
+
type OrderItem = {
|
|
141
|
+
ticketId: string;
|
|
142
|
+
ticketName: string;
|
|
143
|
+
quantity: number;
|
|
144
|
+
unitAmount: number;
|
|
145
|
+
totalAmount: number;
|
|
146
|
+
};
|
|
147
|
+
declare enum OrderTransferStatus {
|
|
148
|
+
Completed = "completed",
|
|
149
|
+
Pending = "pending",
|
|
150
|
+
Transferred = "transferred"
|
|
151
|
+
}
|
|
133
152
|
type Order = Base & {
|
|
134
|
-
|
|
153
|
+
paymentIntent: Stripe__default.PaymentIntent;
|
|
154
|
+
items: OrderItem[];
|
|
155
|
+
currency: string;
|
|
156
|
+
subtotal: number;
|
|
157
|
+
fee: number;
|
|
158
|
+
total: number;
|
|
159
|
+
transferStatus: OrderTransferStatus;
|
|
135
160
|
user: UserProfile;
|
|
136
161
|
};
|
|
137
162
|
type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
|
|
@@ -360,17 +385,31 @@ type CareersOffice = {
|
|
|
360
385
|
city: string | null;
|
|
361
386
|
countryIso: string | null;
|
|
362
387
|
};
|
|
388
|
+
declare enum CareersJobStatus {
|
|
389
|
+
All = "ALL",
|
|
390
|
+
Online = "ONLINE",
|
|
391
|
+
Archived = "ARCHIVED"
|
|
392
|
+
}
|
|
393
|
+
declare enum CareersWorkplaceType {
|
|
394
|
+
Onsite = "ONSITE",
|
|
395
|
+
Remote = "REMOTE",
|
|
396
|
+
Hybrid = "HYBRID"
|
|
397
|
+
}
|
|
398
|
+
declare enum CareersRemoteType {
|
|
399
|
+
Anywhere = "ANYWHERE",
|
|
400
|
+
Country = "COUNTRY"
|
|
401
|
+
}
|
|
363
402
|
type CareersJob = {
|
|
364
403
|
id: number;
|
|
365
404
|
createdAt: string;
|
|
366
405
|
lastUpdatedAt: string;
|
|
367
406
|
externalId: null | string;
|
|
368
407
|
title: string;
|
|
369
|
-
status:
|
|
408
|
+
status: CareersJobStatus;
|
|
370
409
|
remote: boolean;
|
|
371
410
|
office: CareersOffice;
|
|
372
|
-
workplaceType:
|
|
373
|
-
remoteType?:
|
|
411
|
+
workplaceType: CareersWorkplaceType;
|
|
412
|
+
remoteType?: CareersRemoteType;
|
|
374
413
|
description?: string;
|
|
375
414
|
categoryId?: number;
|
|
376
415
|
employmentTypeId?: number;
|
|
@@ -387,30 +426,30 @@ type CareersEmploymentType = {
|
|
|
387
426
|
name: string;
|
|
388
427
|
slug: string;
|
|
389
428
|
};
|
|
390
|
-
type
|
|
391
|
-
|
|
392
|
-
}> | Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
393
|
-
language?: string;
|
|
394
|
-
}> | Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
395
|
-
page?: number;
|
|
396
|
-
pageSize?: number;
|
|
397
|
-
createdAtGte: string;
|
|
429
|
+
type CareersJobsOptions = ArrayOptions<CareersJob> & {
|
|
430
|
+
createdAtGte?: string;
|
|
398
431
|
createdAtLt?: string;
|
|
399
432
|
updatedAtGte?: string;
|
|
400
433
|
updatedAtLt?: string;
|
|
401
|
-
status?:
|
|
434
|
+
status?: CareersJobStatus;
|
|
402
435
|
content?: boolean;
|
|
403
436
|
titleLike?: string;
|
|
404
437
|
countryCode?: string;
|
|
405
438
|
externalId?: string;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
}> | Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
409
|
-
page?: number;
|
|
410
|
-
pageSize?: number;
|
|
439
|
+
};
|
|
440
|
+
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
411
441
|
countryCode?: string;
|
|
412
442
|
cityNameLike?: string;
|
|
413
|
-
}
|
|
443
|
+
};
|
|
444
|
+
type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
|
|
445
|
+
language?: string;
|
|
446
|
+
};
|
|
447
|
+
type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
|
|
448
|
+
language?: string;
|
|
449
|
+
};
|
|
450
|
+
type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
|
|
451
|
+
jobId: number;
|
|
452
|
+
}> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
|
|
414
453
|
|
|
415
454
|
declare enum ChannelMessageReportReason {
|
|
416
455
|
Dislike = "dislike",
|
|
@@ -714,7 +753,7 @@ declare enum OrganizationEventStyleType {
|
|
|
714
753
|
Food = "food",
|
|
715
754
|
Art = "art"
|
|
716
755
|
}
|
|
717
|
-
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle
|
|
756
|
+
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
|
|
718
757
|
|
|
719
758
|
type OrganizationEventViewOptions = {
|
|
720
759
|
events: string | string[];
|
|
@@ -954,6 +993,27 @@ type OrganizationBilling = {
|
|
|
954
993
|
vatRate: number;
|
|
955
994
|
};
|
|
956
995
|
type OrganizationBillingAccount = Stripe__default.Account;
|
|
996
|
+
type OrganizationBillingBalance = {
|
|
997
|
+
balance: {
|
|
998
|
+
amount: number;
|
|
999
|
+
currency: string;
|
|
1000
|
+
}[];
|
|
1001
|
+
pending: {
|
|
1002
|
+
amount: number;
|
|
1003
|
+
currency: string;
|
|
1004
|
+
}[];
|
|
1005
|
+
payouts: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
amount: number;
|
|
1008
|
+
currency: string;
|
|
1009
|
+
status: string;
|
|
1010
|
+
arrival_date: number;
|
|
1011
|
+
}[];
|
|
1012
|
+
};
|
|
1013
|
+
type OrganizationBillingPendingRevenue = {
|
|
1014
|
+
amount: number;
|
|
1015
|
+
count: number;
|
|
1016
|
+
};
|
|
957
1017
|
type OrganizationIdentity = OrganizationProfile;
|
|
958
1018
|
declare enum OrganizationFileType {
|
|
959
1019
|
Avatar = "avatar",
|
|
@@ -962,7 +1022,7 @@ declare enum OrganizationFileType {
|
|
|
962
1022
|
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
963
1023
|
q: string;
|
|
964
1024
|
limit?: number;
|
|
965
|
-
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
1025
|
+
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
966
1026
|
|
|
967
1027
|
type PlaceCountry = Base & {
|
|
968
1028
|
geonameId: number;
|
|
@@ -1633,17 +1693,17 @@ declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
|
1633
1693
|
|
|
1634
1694
|
declare const careers: (client: Client) => {
|
|
1635
1695
|
categories: {
|
|
1636
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<CareersCategory
|
|
1696
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<ArrayResult<CareersCategory>>;
|
|
1637
1697
|
};
|
|
1638
1698
|
employmentTypes: {
|
|
1639
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType
|
|
1699
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<ArrayResult<CareersEmploymentType>>;
|
|
1640
1700
|
};
|
|
1641
1701
|
jobs: {
|
|
1642
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<CareersJob
|
|
1702
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<ArrayResult<CareersJob>>;
|
|
1643
1703
|
get: (jobId: number) => Promise<CareersJob>;
|
|
1644
1704
|
};
|
|
1645
1705
|
offices: {
|
|
1646
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<CareersOffice
|
|
1706
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<ArrayResult<CareersOffice>>;
|
|
1647
1707
|
};
|
|
1648
1708
|
};
|
|
1649
1709
|
|
|
@@ -1753,6 +1813,8 @@ declare const organizations: (client: Client) => {
|
|
|
1753
1813
|
billing: {
|
|
1754
1814
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1755
1815
|
link: (organizationSlug: string) => void;
|
|
1816
|
+
balance: (organizationSlug: string) => Promise<OrganizationBillingBalance>;
|
|
1817
|
+
pending: (organizationSlug: string) => Promise<OrganizationBillingPendingRevenue>;
|
|
1756
1818
|
dashboard: (organizationSlug: string) => void;
|
|
1757
1819
|
};
|
|
1758
1820
|
events: {
|
|
@@ -1772,11 +1834,11 @@ declare const organizations: (client: Client) => {
|
|
|
1772
1834
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1773
1835
|
};
|
|
1774
1836
|
styles: {
|
|
1775
|
-
getAll: () => Promise<OrganizationEventStyle
|
|
1837
|
+
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
1776
1838
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
1777
1839
|
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
1778
1840
|
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
1779
|
-
delete: (styleSlug: string) => Promise<OrganizationEventStyle
|
|
1841
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
1780
1842
|
};
|
|
1781
1843
|
tickets: {
|
|
1782
1844
|
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
@@ -1936,17 +1998,17 @@ declare class TonightPass {
|
|
|
1936
1998
|
};
|
|
1937
1999
|
readonly careers: {
|
|
1938
2000
|
categories: {
|
|
1939
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory
|
|
2001
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<ArrayResult<CareersCategory>>;
|
|
1940
2002
|
};
|
|
1941
2003
|
employmentTypes: {
|
|
1942
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType
|
|
2004
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<ArrayResult<CareersEmploymentType>>;
|
|
1943
2005
|
};
|
|
1944
2006
|
jobs: {
|
|
1945
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob
|
|
2007
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<ArrayResult<CareersJob>>;
|
|
1946
2008
|
get: (jobId: number) => Promise<CareersJob>;
|
|
1947
2009
|
};
|
|
1948
2010
|
offices: {
|
|
1949
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice
|
|
2011
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<ArrayResult<CareersOffice>>;
|
|
1950
2012
|
};
|
|
1951
2013
|
};
|
|
1952
2014
|
readonly channels: {
|
|
@@ -2022,6 +2084,8 @@ declare class TonightPass {
|
|
|
2022
2084
|
billing: {
|
|
2023
2085
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
2024
2086
|
link: (organizationSlug: string) => void;
|
|
2087
|
+
balance: (organizationSlug: string) => Promise<OrganizationBillingBalance>;
|
|
2088
|
+
pending: (organizationSlug: string) => Promise<OrganizationBillingPendingRevenue>;
|
|
2025
2089
|
dashboard: (organizationSlug: string) => void;
|
|
2026
2090
|
};
|
|
2027
2091
|
events: {
|
|
@@ -2041,11 +2105,11 @@ declare class TonightPass {
|
|
|
2041
2105
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
2042
2106
|
};
|
|
2043
2107
|
styles: {
|
|
2044
|
-
getAll: () => Promise<OrganizationEventStyle
|
|
2108
|
+
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
2045
2109
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
2046
2110
|
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
2047
2111
|
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
2048
|
-
delete: (styleSlug: string) => Promise<OrganizationEventStyle
|
|
2112
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
2049
2113
|
};
|
|
2050
2114
|
tickets: {
|
|
2051
2115
|
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
@@ -2333,4 +2397,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2333
2397
|
client: ChannelWebSocketClient;
|
|
2334
2398
|
};
|
|
2335
2399
|
|
|
2336
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, ContentOrAttachmentsConstraint, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type Location$1 as Location, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, users };
|
|
2400
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, type CareerEndpoints, type CareersCategoriesOptions, type CareersCategory, type CareersEmploymentType, type CareersEmploymentTypesOptions, type CareersJob, CareersJobStatus, type CareersJobsOptions, type CareersOffice, type CareersOfficesOptions, CareersRemoteType, CareersWorkplaceType, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, ContentOrAttachmentsConstraint, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type Location$1 as Location, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type OrderItem, OrderTransferStatus, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationBillingBalance, type OrganizationBillingPendingRevenue, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, type UserPostViewOptions, type UserPostViewResult, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,14 @@ type UserPostRepost = Base & {
|
|
|
107
107
|
};
|
|
108
108
|
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
|
|
109
109
|
|
|
110
|
-
type
|
|
110
|
+
type UserPostViewOptions = {
|
|
111
|
+
posts: string | string[];
|
|
112
|
+
};
|
|
113
|
+
type UserPostViewResult = {
|
|
114
|
+
postId: string;
|
|
115
|
+
viewsCount: number;
|
|
116
|
+
};
|
|
117
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
|
|
111
118
|
|
|
112
119
|
declare enum UserPostVisibility {
|
|
113
120
|
Public = "public",
|
|
@@ -130,8 +137,26 @@ type UserPost = Base & {
|
|
|
130
137
|
};
|
|
131
138
|
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
132
139
|
|
|
140
|
+
type OrderItem = {
|
|
141
|
+
ticketId: string;
|
|
142
|
+
ticketName: string;
|
|
143
|
+
quantity: number;
|
|
144
|
+
unitAmount: number;
|
|
145
|
+
totalAmount: number;
|
|
146
|
+
};
|
|
147
|
+
declare enum OrderTransferStatus {
|
|
148
|
+
Completed = "completed",
|
|
149
|
+
Pending = "pending",
|
|
150
|
+
Transferred = "transferred"
|
|
151
|
+
}
|
|
133
152
|
type Order = Base & {
|
|
134
|
-
|
|
153
|
+
paymentIntent: Stripe__default.PaymentIntent;
|
|
154
|
+
items: OrderItem[];
|
|
155
|
+
currency: string;
|
|
156
|
+
subtotal: number;
|
|
157
|
+
fee: number;
|
|
158
|
+
total: number;
|
|
159
|
+
transferStatus: OrderTransferStatus;
|
|
135
160
|
user: UserProfile;
|
|
136
161
|
};
|
|
137
162
|
type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
|
|
@@ -360,17 +385,31 @@ type CareersOffice = {
|
|
|
360
385
|
city: string | null;
|
|
361
386
|
countryIso: string | null;
|
|
362
387
|
};
|
|
388
|
+
declare enum CareersJobStatus {
|
|
389
|
+
All = "ALL",
|
|
390
|
+
Online = "ONLINE",
|
|
391
|
+
Archived = "ARCHIVED"
|
|
392
|
+
}
|
|
393
|
+
declare enum CareersWorkplaceType {
|
|
394
|
+
Onsite = "ONSITE",
|
|
395
|
+
Remote = "REMOTE",
|
|
396
|
+
Hybrid = "HYBRID"
|
|
397
|
+
}
|
|
398
|
+
declare enum CareersRemoteType {
|
|
399
|
+
Anywhere = "ANYWHERE",
|
|
400
|
+
Country = "COUNTRY"
|
|
401
|
+
}
|
|
363
402
|
type CareersJob = {
|
|
364
403
|
id: number;
|
|
365
404
|
createdAt: string;
|
|
366
405
|
lastUpdatedAt: string;
|
|
367
406
|
externalId: null | string;
|
|
368
407
|
title: string;
|
|
369
|
-
status:
|
|
408
|
+
status: CareersJobStatus;
|
|
370
409
|
remote: boolean;
|
|
371
410
|
office: CareersOffice;
|
|
372
|
-
workplaceType:
|
|
373
|
-
remoteType?:
|
|
411
|
+
workplaceType: CareersWorkplaceType;
|
|
412
|
+
remoteType?: CareersRemoteType;
|
|
374
413
|
description?: string;
|
|
375
414
|
categoryId?: number;
|
|
376
415
|
employmentTypeId?: number;
|
|
@@ -387,30 +426,30 @@ type CareersEmploymentType = {
|
|
|
387
426
|
name: string;
|
|
388
427
|
slug: string;
|
|
389
428
|
};
|
|
390
|
-
type
|
|
391
|
-
|
|
392
|
-
}> | Endpoint<"GET", "/careers/employmentTypes", CareersEmploymentType[], {
|
|
393
|
-
language?: string;
|
|
394
|
-
}> | Endpoint<"GET", "/careers/jobs", CareersJob[], {
|
|
395
|
-
page?: number;
|
|
396
|
-
pageSize?: number;
|
|
397
|
-
createdAtGte: string;
|
|
429
|
+
type CareersJobsOptions = ArrayOptions<CareersJob> & {
|
|
430
|
+
createdAtGte?: string;
|
|
398
431
|
createdAtLt?: string;
|
|
399
432
|
updatedAtGte?: string;
|
|
400
433
|
updatedAtLt?: string;
|
|
401
|
-
status?:
|
|
434
|
+
status?: CareersJobStatus;
|
|
402
435
|
content?: boolean;
|
|
403
436
|
titleLike?: string;
|
|
404
437
|
countryCode?: string;
|
|
405
438
|
externalId?: string;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
}> | Endpoint<"GET", "/careers/offices", CareersOffice[], {
|
|
409
|
-
page?: number;
|
|
410
|
-
pageSize?: number;
|
|
439
|
+
};
|
|
440
|
+
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
411
441
|
countryCode?: string;
|
|
412
442
|
cityNameLike?: string;
|
|
413
|
-
}
|
|
443
|
+
};
|
|
444
|
+
type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
|
|
445
|
+
language?: string;
|
|
446
|
+
};
|
|
447
|
+
type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
|
|
448
|
+
language?: string;
|
|
449
|
+
};
|
|
450
|
+
type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
|
|
451
|
+
jobId: number;
|
|
452
|
+
}> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
|
|
414
453
|
|
|
415
454
|
declare enum ChannelMessageReportReason {
|
|
416
455
|
Dislike = "dislike",
|
|
@@ -714,7 +753,7 @@ declare enum OrganizationEventStyleType {
|
|
|
714
753
|
Food = "food",
|
|
715
754
|
Art = "art"
|
|
716
755
|
}
|
|
717
|
-
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", OrganizationEventStyle
|
|
756
|
+
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
|
|
718
757
|
|
|
719
758
|
type OrganizationEventViewOptions = {
|
|
720
759
|
events: string | string[];
|
|
@@ -954,6 +993,27 @@ type OrganizationBilling = {
|
|
|
954
993
|
vatRate: number;
|
|
955
994
|
};
|
|
956
995
|
type OrganizationBillingAccount = Stripe__default.Account;
|
|
996
|
+
type OrganizationBillingBalance = {
|
|
997
|
+
balance: {
|
|
998
|
+
amount: number;
|
|
999
|
+
currency: string;
|
|
1000
|
+
}[];
|
|
1001
|
+
pending: {
|
|
1002
|
+
amount: number;
|
|
1003
|
+
currency: string;
|
|
1004
|
+
}[];
|
|
1005
|
+
payouts: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
amount: number;
|
|
1008
|
+
currency: string;
|
|
1009
|
+
status: string;
|
|
1010
|
+
arrival_date: number;
|
|
1011
|
+
}[];
|
|
1012
|
+
};
|
|
1013
|
+
type OrganizationBillingPendingRevenue = {
|
|
1014
|
+
amount: number;
|
|
1015
|
+
count: number;
|
|
1016
|
+
};
|
|
957
1017
|
type OrganizationIdentity = OrganizationProfile;
|
|
958
1018
|
declare enum OrganizationFileType {
|
|
959
1019
|
Avatar = "avatar",
|
|
@@ -962,7 +1022,7 @@ declare enum OrganizationFileType {
|
|
|
962
1022
|
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
963
1023
|
q: string;
|
|
964
1024
|
limit?: number;
|
|
965
|
-
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
1025
|
+
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationOrdersEndpoints;
|
|
966
1026
|
|
|
967
1027
|
type PlaceCountry = Base & {
|
|
968
1028
|
geonameId: number;
|
|
@@ -1633,17 +1693,17 @@ declare function sdk<T>(builder: (client: Client) => T): (client: Client) => T;
|
|
|
1633
1693
|
|
|
1634
1694
|
declare const careers: (client: Client) => {
|
|
1635
1695
|
categories: {
|
|
1636
|
-
getAll: (query?: Query<"/careers/categories">) => Promise<CareersCategory
|
|
1696
|
+
getAll: (query?: Query<"/careers/categories">) => Promise<ArrayResult<CareersCategory>>;
|
|
1637
1697
|
};
|
|
1638
1698
|
employmentTypes: {
|
|
1639
|
-
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType
|
|
1699
|
+
getAll: (query?: Query<"/careers/employmentTypes">) => Promise<ArrayResult<CareersEmploymentType>>;
|
|
1640
1700
|
};
|
|
1641
1701
|
jobs: {
|
|
1642
|
-
getAll: (query?: Query<"/careers/jobs">) => Promise<CareersJob
|
|
1702
|
+
getAll: (query?: Query<"/careers/jobs">) => Promise<ArrayResult<CareersJob>>;
|
|
1643
1703
|
get: (jobId: number) => Promise<CareersJob>;
|
|
1644
1704
|
};
|
|
1645
1705
|
offices: {
|
|
1646
|
-
getAll: (query?: Query<"/careers/offices">) => Promise<CareersOffice
|
|
1706
|
+
getAll: (query?: Query<"/careers/offices">) => Promise<ArrayResult<CareersOffice>>;
|
|
1647
1707
|
};
|
|
1648
1708
|
};
|
|
1649
1709
|
|
|
@@ -1753,6 +1813,8 @@ declare const organizations: (client: Client) => {
|
|
|
1753
1813
|
billing: {
|
|
1754
1814
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
1755
1815
|
link: (organizationSlug: string) => void;
|
|
1816
|
+
balance: (organizationSlug: string) => Promise<OrganizationBillingBalance>;
|
|
1817
|
+
pending: (organizationSlug: string) => Promise<OrganizationBillingPendingRevenue>;
|
|
1756
1818
|
dashboard: (organizationSlug: string) => void;
|
|
1757
1819
|
};
|
|
1758
1820
|
events: {
|
|
@@ -1772,11 +1834,11 @@ declare const organizations: (client: Client) => {
|
|
|
1772
1834
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1773
1835
|
};
|
|
1774
1836
|
styles: {
|
|
1775
|
-
getAll: () => Promise<OrganizationEventStyle
|
|
1837
|
+
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
1776
1838
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
1777
1839
|
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
1778
1840
|
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
1779
|
-
delete: (styleSlug: string) => Promise<OrganizationEventStyle
|
|
1841
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
1780
1842
|
};
|
|
1781
1843
|
tickets: {
|
|
1782
1844
|
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
@@ -1936,17 +1998,17 @@ declare class TonightPass {
|
|
|
1936
1998
|
};
|
|
1937
1999
|
readonly careers: {
|
|
1938
2000
|
categories: {
|
|
1939
|
-
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<CareersCategory
|
|
2001
|
+
getAll: (query?: pathcat.Query<"/careers/categories">) => Promise<ArrayResult<CareersCategory>>;
|
|
1940
2002
|
};
|
|
1941
2003
|
employmentTypes: {
|
|
1942
|
-
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<CareersEmploymentType
|
|
2004
|
+
getAll: (query?: pathcat.Query<"/careers/employmentTypes">) => Promise<ArrayResult<CareersEmploymentType>>;
|
|
1943
2005
|
};
|
|
1944
2006
|
jobs: {
|
|
1945
|
-
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<CareersJob
|
|
2007
|
+
getAll: (query?: pathcat.Query<"/careers/jobs">) => Promise<ArrayResult<CareersJob>>;
|
|
1946
2008
|
get: (jobId: number) => Promise<CareersJob>;
|
|
1947
2009
|
};
|
|
1948
2010
|
offices: {
|
|
1949
|
-
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<CareersOffice
|
|
2011
|
+
getAll: (query?: pathcat.Query<"/careers/offices">) => Promise<ArrayResult<CareersOffice>>;
|
|
1950
2012
|
};
|
|
1951
2013
|
};
|
|
1952
2014
|
readonly channels: {
|
|
@@ -2022,6 +2084,8 @@ declare class TonightPass {
|
|
|
2022
2084
|
billing: {
|
|
2023
2085
|
account: (organizationSlug: string) => Promise<Stripe.Stripe.Account>;
|
|
2024
2086
|
link: (organizationSlug: string) => void;
|
|
2087
|
+
balance: (organizationSlug: string) => Promise<OrganizationBillingBalance>;
|
|
2088
|
+
pending: (organizationSlug: string) => Promise<OrganizationBillingPendingRevenue>;
|
|
2025
2089
|
dashboard: (organizationSlug: string) => void;
|
|
2026
2090
|
};
|
|
2027
2091
|
events: {
|
|
@@ -2041,11 +2105,11 @@ declare class TonightPass {
|
|
|
2041
2105
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
2042
2106
|
};
|
|
2043
2107
|
styles: {
|
|
2044
|
-
getAll: () => Promise<OrganizationEventStyle
|
|
2108
|
+
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
2045
2109
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
2046
2110
|
create: (data: CreateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
2047
2111
|
update: (styleSlug: string, data: UpdateOrganizationEventStyleDto) => Promise<OrganizationEventStyle>;
|
|
2048
|
-
delete: (styleSlug: string) => Promise<OrganizationEventStyle
|
|
2112
|
+
delete: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
2049
2113
|
};
|
|
2050
2114
|
tickets: {
|
|
2051
2115
|
getAll: (organizationSlug: string, eventSlug: string) => Promise<OrganizationEventTicket[]>;
|
|
@@ -2333,4 +2397,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2333
2397
|
client: ChannelWebSocketClient;
|
|
2334
2398
|
};
|
|
2335
2399
|
|
|
2336
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, type CareerEndpoints, type CareersCategory, type CareersEmploymentType, type CareersJob, type CareersOffice, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, ContentOrAttachmentsConstraint, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type Location$1 as Location, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, users };
|
|
2400
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AddRoadmapReactionBody, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, ApiKeyType, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, AuthFlow, type AuthMethod, type AuthResponse, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, type CacheStore, type CareerEndpoints, type CareersCategoriesOptions, type CareersCategory, type CareersEmploymentType, type CareersEmploymentTypesOptions, type CareersJob, CareersJobStatus, type CareersJobsOptions, type CareersOffice, type CareersOfficesOptions, CareersRemoteType, CareersWorkplaceType, type Channel, type ChannelDeleteEvent, type ChannelEndpoints, type ChannelMember, type ChannelMemberJoinEvent, type ChannelMemberLeaveEvent, ChannelMemberRole, type ChannelMessage, type ChannelMessageCreateEvent, type ChannelMessageDeleteEvent, type ChannelMessageEndpoints, type ChannelMessageReaction, type ChannelMessageReadByEntry, ChannelMessageReportReason, type ChannelMessageUpdateEvent, type ChannelParticipant, ChannelStatus, ChannelType, type ChannelUpdateEvent, ChannelWebSocketClient, type ChannelWebSocketEvent, Client, type ClientOptions, ContentOrAttachmentsConstraint, CreateApiKeyDto, CreateChannelDto, CreateChannelMessageDto, CreateLocationDto, CreateOrganizationDto, CreateOrganizationEventDto, type CreateOrganizationEventInput, CreateOrganizationEventOrderDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, type DeepPartial, type Distance, type Endpoint, type Endpoints, ErrorType, type ErroredAPIResponse, type EventAnalyticsOptions, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type Location$1 as Location, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type OrderItem, OrderTransferStatus, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationBillingBalance, type OrganizationBillingPendingRevenue, type OrganizationCustomer, type OrganizationCustomerMetadata, type OrganizationCustomersEndpoints, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, type OrganizationEventViewEndpoints, type OrganizationEventViewOptions, type OrganizationEventViewResult, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberRolePower, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationOrder, type OrganizationOrdersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type ProxyEndpoints, type ProxyMediaOptions, type ProxyMediaResponse, type QueryParams, REGEX, ROADMAP_REACTIONS, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchOrganizationEventsOptions, type SearchPlacesOptions, type SearchProfilesOptions, SignInUserDto, type SitemapCounts, type SitemapEndpoints, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventStyleDto, UpdateOrganizationEventTicketDto, UpdateOrganizationIdentityDto, UpdateOrganizationMemberDto, UpdateUserDto, UpdateUserPostCommentDto, UpdateUserPostDto, type User, type UserBooking, type UserBookingEndpoints, type UserBookingTicket, type UserBookingTicketEndpoints, type UserBookingWithoutTickets, type UserChannelCountOptions, type UserConnection, type UserConnectionClient, type UserConnectionDevice, type UserConnectionOS, type UserCustomer, type UserCustomerMetadata, type UserEndpoints, UserFileType, type UserIdentifier, type UserIdentity, UserIdentityGender, type UserNotification, type UserNotificationBase, type UserNotificationEndpoints, type UserNotificationFollow, UserNotificationType, type UserOAuthProvider, type UserPost, type UserPostComment, type UserPostCommentEndpoints, type UserPostEndpoints, type UserPostMedia, type UserPostMediaEndpoints, UserPostMediaType, type UserPostRepost, type UserPostRepostEndpoints, type UserPostViewEndpoints, type UserPostViewOptions, type UserPostViewResult, UserPostVisibility, type UserPreferences, type UserProfile, type UserProfileMetadata, UserRole, UserRolePower, type UserToken, UserTokenType, VerifyEmailConfirmDto, type VerifyEmailResponse, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, apiKeys, auth, buildFileFormData, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, users };
|