tonightpass 0.0.253 → 0.0.254
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 +121 -2
- package/dist/index.d.ts +121 -2
- 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
|
@@ -182,6 +182,30 @@ type CurrencyConversionResult = {
|
|
|
182
182
|
};
|
|
183
183
|
type CurrenciesEndpoints = Endpoint<"GET", "/currencies/rates", ExchangeRates> | Endpoint<"POST", "/currencies/convert", CurrencyConversionResult, CurrencyConversion>;
|
|
184
184
|
|
|
185
|
+
type OrganizationEventPromoCode = Base & {
|
|
186
|
+
code: string;
|
|
187
|
+
type: OrganizationEventPromoCodeType;
|
|
188
|
+
value: number;
|
|
189
|
+
maxUses?: number;
|
|
190
|
+
usedCount: number;
|
|
191
|
+
isActive: boolean;
|
|
192
|
+
minCartAmount?: number;
|
|
193
|
+
expiresAt?: Date;
|
|
194
|
+
ticketIds?: string[];
|
|
195
|
+
};
|
|
196
|
+
declare enum OrganizationEventPromoCodeType {
|
|
197
|
+
Percentage = "percentage",
|
|
198
|
+
Fixed = "fixed"
|
|
199
|
+
}
|
|
200
|
+
type OrganizationEventPromoCodeValidation = {
|
|
201
|
+
valid: boolean;
|
|
202
|
+
promoCode?: OrganizationEventPromoCode;
|
|
203
|
+
message?: string;
|
|
204
|
+
};
|
|
205
|
+
type OrganizationEventPromoCodeEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes", ArrayResult<OrganizationEventPromoCode>, ArrayOptions<OrganizationEventPromoCode>> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes", OrganizationEventPromoCode, CreateOrganizationEventPromoCodeDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId", OrganizationEventPromoCode, UpdateOrganizationEventPromoCodeDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId", OrganizationEventPromoCode, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/validate", OrganizationEventPromoCodeValidation, {
|
|
206
|
+
code: string;
|
|
207
|
+
}>;
|
|
208
|
+
|
|
185
209
|
type OrderItem = {
|
|
186
210
|
ticketId: string;
|
|
187
211
|
ticketName: string;
|
|
@@ -194,11 +218,18 @@ declare enum OrderTransferStatus {
|
|
|
194
218
|
Pending = "pending",
|
|
195
219
|
Transferred = "transferred"
|
|
196
220
|
}
|
|
221
|
+
type OrderDiscount = {
|
|
222
|
+
code: string;
|
|
223
|
+
type: OrganizationEventPromoCodeType;
|
|
224
|
+
value: number;
|
|
225
|
+
amount: number;
|
|
226
|
+
};
|
|
197
227
|
type Order = Base & {
|
|
198
228
|
paymentIntent: Stripe__default.PaymentIntent;
|
|
199
229
|
items: OrderItem[];
|
|
200
230
|
currency: Currency;
|
|
201
231
|
subtotal: number;
|
|
232
|
+
discount?: OrderDiscount;
|
|
202
233
|
fee: number;
|
|
203
234
|
total: number;
|
|
204
235
|
transferStatus: OrderTransferStatus;
|
|
@@ -895,7 +926,7 @@ type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
|
895
926
|
type OrganizationEventCalendar = {
|
|
896
927
|
[date: string]: OrganizationEvent[];
|
|
897
928
|
};
|
|
898
|
-
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | OrganizationEventOrderEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
929
|
+
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | OrganizationEventOrderEndpoints | OrganizationEventPromoCodeEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
899
930
|
|
|
900
931
|
type OrganizationAnalyticsOverview = {
|
|
901
932
|
metrics: {
|
|
@@ -1402,6 +1433,29 @@ declare class CreateOrganizationEventDto extends BaseOrganizationEventDto implem
|
|
|
1402
1433
|
|
|
1403
1434
|
declare class CreateOrganizationEventOrderDto {
|
|
1404
1435
|
cart: string[];
|
|
1436
|
+
promoCode?: string;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
declare class CreateOrganizationEventPromoCodeDto {
|
|
1440
|
+
code: string;
|
|
1441
|
+
type: OrganizationEventPromoCodeType;
|
|
1442
|
+
value: number;
|
|
1443
|
+
maxUses?: number;
|
|
1444
|
+
isActive?: boolean;
|
|
1445
|
+
minCartAmount?: number;
|
|
1446
|
+
expiresAt?: Date;
|
|
1447
|
+
ticketIds?: string[];
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
declare class UpdateOrganizationEventPromoCodeDto {
|
|
1451
|
+
code?: string;
|
|
1452
|
+
type?: OrganizationEventPromoCodeType;
|
|
1453
|
+
value?: number;
|
|
1454
|
+
maxUses?: number;
|
|
1455
|
+
isActive?: boolean;
|
|
1456
|
+
minCartAmount?: number;
|
|
1457
|
+
expiresAt?: Date;
|
|
1458
|
+
ticketIds?: string[];
|
|
1405
1459
|
}
|
|
1406
1460
|
|
|
1407
1461
|
declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
|
|
@@ -1786,7 +1840,57 @@ declare const orders: (client: Client) => {
|
|
|
1786
1840
|
get: (orderId: string) => Promise<Order>;
|
|
1787
1841
|
};
|
|
1788
1842
|
|
|
1843
|
+
type StripeFees = {
|
|
1844
|
+
transactionFee: number;
|
|
1845
|
+
europeRate: number;
|
|
1846
|
+
nonEuropeRate: number;
|
|
1847
|
+
connectRate: number;
|
|
1848
|
+
};
|
|
1849
|
+
type TonightPassFees = {
|
|
1850
|
+
percentage: number;
|
|
1851
|
+
minimumCommission: number;
|
|
1852
|
+
};
|
|
1853
|
+
declare enum BillingLocality {
|
|
1854
|
+
Europe = "Europe",
|
|
1855
|
+
NonEurope = "Non Europe"
|
|
1856
|
+
}
|
|
1857
|
+
type BillingParameters = {
|
|
1858
|
+
locality: BillingLocality;
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Minimum commission TonightPass charges per ticket (in euros).
|
|
1862
|
+
*/
|
|
1863
|
+
declare const MINIMUM_COMMISSION = 0.95;
|
|
1864
|
+
/**
|
|
1865
|
+
* Minimum amount (in cents) that can be charged via Stripe.
|
|
1866
|
+
* Below this threshold, the order total is rounded up to this value
|
|
1867
|
+
* so the platform fee is always covered.
|
|
1868
|
+
* Derived from MINIMUM_COMMISSION.
|
|
1869
|
+
*/
|
|
1870
|
+
declare const MINIMUM_CHARGEABLE_AMOUNT: number;
|
|
1871
|
+
declare const DEFAULT_STRIPE_FEES: StripeFees;
|
|
1872
|
+
declare const DEFAULT_TONIGHTPASS_FEES: TonightPassFees;
|
|
1873
|
+
declare const DEFAULT_BILLING_PARAMETERS: BillingParameters;
|
|
1874
|
+
/**
|
|
1875
|
+
* Calculate the platform fee for a ticket (in cents).
|
|
1876
|
+
* @param ticketPrice - Ticket price in cents
|
|
1877
|
+
* @param isFeesIncluded - Whether fees are included in the ticket price
|
|
1878
|
+
* @param stripeFees - Stripe fee configuration
|
|
1879
|
+
* @param tonightPassFees - TonightPass fee configuration
|
|
1880
|
+
* @param params - Billing parameters (locality)
|
|
1881
|
+
* @returns Fee amount in cents
|
|
1882
|
+
*/
|
|
1883
|
+
declare function calculateTicketFee(ticketPrice: number, isFeesIncluded: boolean, stripeFees?: StripeFees, tonightPassFees?: TonightPassFees, params?: BillingParameters): number;
|
|
1884
|
+
/**
|
|
1885
|
+
* Applies the minimum chargeable amount rule after a discount.
|
|
1886
|
+
* - If total is 0 → stays 0 (free order)
|
|
1887
|
+
* - If total is between 1 and MINIMUM_CHARGEABLE_AMOUNT-1 → rounds up to MINIMUM_CHARGEABLE_AMOUNT
|
|
1888
|
+
* - Otherwise → unchanged
|
|
1889
|
+
*/
|
|
1890
|
+
declare function applyMinimumChargeableAmount(total: number): number;
|
|
1891
|
+
|
|
1789
1892
|
declare const isBrowser: boolean;
|
|
1893
|
+
|
|
1790
1894
|
/**
|
|
1791
1895
|
* File object with uri/name/type structure
|
|
1792
1896
|
*/
|
|
@@ -1802,6 +1906,7 @@ type FileObject = {
|
|
|
1802
1906
|
* @returns FormData object with the file(s) appended
|
|
1803
1907
|
*/
|
|
1804
1908
|
declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
|
|
1909
|
+
|
|
1805
1910
|
/**
|
|
1806
1911
|
* Check if a member role has at least the specified minimum role level
|
|
1807
1912
|
* @param memberRole - The member's current role
|
|
@@ -1841,6 +1946,13 @@ declare const organizations: (client: Client) => {
|
|
|
1841
1946
|
orders: {
|
|
1842
1947
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1843
1948
|
};
|
|
1949
|
+
promoCodes: {
|
|
1950
|
+
getAll: (organizationSlug: string, eventSlug: string, options?: ArrayOptions<OrganizationEventPromoCode>) => Promise<ArrayResult<OrganizationEventPromoCode>>;
|
|
1951
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
1952
|
+
update: (organizationSlug: string, eventSlug: string, promoCodeId: string, data: UpdateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
1953
|
+
delete: (organizationSlug: string, eventSlug: string, promoCodeId: string) => Promise<OrganizationEventPromoCode>;
|
|
1954
|
+
validate: (organizationSlug: string, eventSlug: string, code: string) => Promise<OrganizationEventPromoCodeValidation>;
|
|
1955
|
+
};
|
|
1844
1956
|
styles: {
|
|
1845
1957
|
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
1846
1958
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -2112,6 +2224,13 @@ declare class TonightPass {
|
|
|
2112
2224
|
orders: {
|
|
2113
2225
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
2114
2226
|
};
|
|
2227
|
+
promoCodes: {
|
|
2228
|
+
getAll: (organizationSlug: string, eventSlug: string, options?: ArrayOptions<OrganizationEventPromoCode>) => Promise<ArrayResult<OrganizationEventPromoCode>>;
|
|
2229
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
2230
|
+
update: (organizationSlug: string, eventSlug: string, promoCodeId: string, data: UpdateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
2231
|
+
delete: (organizationSlug: string, eventSlug: string, promoCodeId: string) => Promise<OrganizationEventPromoCode>;
|
|
2232
|
+
validate: (organizationSlug: string, eventSlug: string, code: string) => Promise<OrganizationEventPromoCodeValidation>;
|
|
2233
|
+
};
|
|
2115
2234
|
styles: {
|
|
2116
2235
|
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
2117
2236
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -2405,4 +2524,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2405
2524
|
client: ChannelWebSocketClient;
|
|
2406
2525
|
};
|
|
2407
2526
|
|
|
2408
|
-
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, OrganizationPayoutStatus, 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 };
|
|
2527
|
+
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, BillingLocality, type BillingParameters, 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, CreateOrganizationEventPromoCodeDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, DEFAULT_BILLING_PARAMETERS, DEFAULT_STRIPE_FEES, DEFAULT_TONIGHTPASS_FEES, 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, MINIMUM_CHARGEABLE_AMOUNT, MINIMUM_COMMISSION, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderDiscount, 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 OrganizationEventPromoCode, type OrganizationEventPromoCodeEndpoints, OrganizationEventPromoCodeType, type OrganizationEventPromoCodeValidation, 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, OrganizationPayoutStatus, 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 StripeFees, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TonightPassFees, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventPromoCodeDto, 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, applyMinimumChargeableAmount, auth, buildFileFormData, calculateTicketFee, 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
|
@@ -182,6 +182,30 @@ type CurrencyConversionResult = {
|
|
|
182
182
|
};
|
|
183
183
|
type CurrenciesEndpoints = Endpoint<"GET", "/currencies/rates", ExchangeRates> | Endpoint<"POST", "/currencies/convert", CurrencyConversionResult, CurrencyConversion>;
|
|
184
184
|
|
|
185
|
+
type OrganizationEventPromoCode = Base & {
|
|
186
|
+
code: string;
|
|
187
|
+
type: OrganizationEventPromoCodeType;
|
|
188
|
+
value: number;
|
|
189
|
+
maxUses?: number;
|
|
190
|
+
usedCount: number;
|
|
191
|
+
isActive: boolean;
|
|
192
|
+
minCartAmount?: number;
|
|
193
|
+
expiresAt?: Date;
|
|
194
|
+
ticketIds?: string[];
|
|
195
|
+
};
|
|
196
|
+
declare enum OrganizationEventPromoCodeType {
|
|
197
|
+
Percentage = "percentage",
|
|
198
|
+
Fixed = "fixed"
|
|
199
|
+
}
|
|
200
|
+
type OrganizationEventPromoCodeValidation = {
|
|
201
|
+
valid: boolean;
|
|
202
|
+
promoCode?: OrganizationEventPromoCode;
|
|
203
|
+
message?: string;
|
|
204
|
+
};
|
|
205
|
+
type OrganizationEventPromoCodeEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes", ArrayResult<OrganizationEventPromoCode>, ArrayOptions<OrganizationEventPromoCode>> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes", OrganizationEventPromoCode, CreateOrganizationEventPromoCodeDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId", OrganizationEventPromoCode, UpdateOrganizationEventPromoCodeDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/:promoCodeId", OrganizationEventPromoCode, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/promo-codes/validate", OrganizationEventPromoCodeValidation, {
|
|
206
|
+
code: string;
|
|
207
|
+
}>;
|
|
208
|
+
|
|
185
209
|
type OrderItem = {
|
|
186
210
|
ticketId: string;
|
|
187
211
|
ticketName: string;
|
|
@@ -194,11 +218,18 @@ declare enum OrderTransferStatus {
|
|
|
194
218
|
Pending = "pending",
|
|
195
219
|
Transferred = "transferred"
|
|
196
220
|
}
|
|
221
|
+
type OrderDiscount = {
|
|
222
|
+
code: string;
|
|
223
|
+
type: OrganizationEventPromoCodeType;
|
|
224
|
+
value: number;
|
|
225
|
+
amount: number;
|
|
226
|
+
};
|
|
197
227
|
type Order = Base & {
|
|
198
228
|
paymentIntent: Stripe__default.PaymentIntent;
|
|
199
229
|
items: OrderItem[];
|
|
200
230
|
currency: Currency;
|
|
201
231
|
subtotal: number;
|
|
232
|
+
discount?: OrderDiscount;
|
|
202
233
|
fee: number;
|
|
203
234
|
total: number;
|
|
204
235
|
transferStatus: OrderTransferStatus;
|
|
@@ -895,7 +926,7 @@ type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
|
895
926
|
type OrganizationEventCalendar = {
|
|
896
927
|
[date: string]: OrganizationEvent[];
|
|
897
928
|
};
|
|
898
|
-
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | OrganizationEventOrderEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
929
|
+
type OrganizationEventEndpoints = Endpoint<"GET", "/organizations/events/search", ArrayResult<OrganizationEvent>, SearchOrganizationEventsOptions> | Endpoint<"GET", "/organizations/events/calendar/:year/:month", OrganizationEventCalendar> | Endpoint<"GET", "/organizations/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/events/suggestions", ArrayResult<OrganizationEvent>, ArrayOptions<OrganizationEvent>> | Endpoint<"GET", "/organizations/events/nearby", ArrayResult<OrganizationEvent>, OrganizationEventNearbyOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events", ArrayResult<OrganizationEvent>, OrganizationEventArrayOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent> | Endpoint<"POST", "/organizations/@:organizationSlug/events", OrganizationEvent, CreateOrganizationEventDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, UpdateOrganizationEventDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug", OrganizationEvent, null> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/files/:eventFileType", string, FormData> | Endpoint<"POST", "/events/files/:eventFileType", string, FormData> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/request", OrganizationEventRequestResponse> | OrganizationEventOrderEndpoints | OrganizationEventPromoCodeEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
899
930
|
|
|
900
931
|
type OrganizationAnalyticsOverview = {
|
|
901
932
|
metrics: {
|
|
@@ -1402,6 +1433,29 @@ declare class CreateOrganizationEventDto extends BaseOrganizationEventDto implem
|
|
|
1402
1433
|
|
|
1403
1434
|
declare class CreateOrganizationEventOrderDto {
|
|
1404
1435
|
cart: string[];
|
|
1436
|
+
promoCode?: string;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
declare class CreateOrganizationEventPromoCodeDto {
|
|
1440
|
+
code: string;
|
|
1441
|
+
type: OrganizationEventPromoCodeType;
|
|
1442
|
+
value: number;
|
|
1443
|
+
maxUses?: number;
|
|
1444
|
+
isActive?: boolean;
|
|
1445
|
+
minCartAmount?: number;
|
|
1446
|
+
expiresAt?: Date;
|
|
1447
|
+
ticketIds?: string[];
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
declare class UpdateOrganizationEventPromoCodeDto {
|
|
1451
|
+
code?: string;
|
|
1452
|
+
type?: OrganizationEventPromoCodeType;
|
|
1453
|
+
value?: number;
|
|
1454
|
+
maxUses?: number;
|
|
1455
|
+
isActive?: boolean;
|
|
1456
|
+
minCartAmount?: number;
|
|
1457
|
+
expiresAt?: Date;
|
|
1458
|
+
ticketIds?: string[];
|
|
1405
1459
|
}
|
|
1406
1460
|
|
|
1407
1461
|
declare class AtLeastOneMediaOnUpdateConstraint implements ValidatorConstraintInterface {
|
|
@@ -1786,7 +1840,57 @@ declare const orders: (client: Client) => {
|
|
|
1786
1840
|
get: (orderId: string) => Promise<Order>;
|
|
1787
1841
|
};
|
|
1788
1842
|
|
|
1843
|
+
type StripeFees = {
|
|
1844
|
+
transactionFee: number;
|
|
1845
|
+
europeRate: number;
|
|
1846
|
+
nonEuropeRate: number;
|
|
1847
|
+
connectRate: number;
|
|
1848
|
+
};
|
|
1849
|
+
type TonightPassFees = {
|
|
1850
|
+
percentage: number;
|
|
1851
|
+
minimumCommission: number;
|
|
1852
|
+
};
|
|
1853
|
+
declare enum BillingLocality {
|
|
1854
|
+
Europe = "Europe",
|
|
1855
|
+
NonEurope = "Non Europe"
|
|
1856
|
+
}
|
|
1857
|
+
type BillingParameters = {
|
|
1858
|
+
locality: BillingLocality;
|
|
1859
|
+
};
|
|
1860
|
+
/**
|
|
1861
|
+
* Minimum commission TonightPass charges per ticket (in euros).
|
|
1862
|
+
*/
|
|
1863
|
+
declare const MINIMUM_COMMISSION = 0.95;
|
|
1864
|
+
/**
|
|
1865
|
+
* Minimum amount (in cents) that can be charged via Stripe.
|
|
1866
|
+
* Below this threshold, the order total is rounded up to this value
|
|
1867
|
+
* so the platform fee is always covered.
|
|
1868
|
+
* Derived from MINIMUM_COMMISSION.
|
|
1869
|
+
*/
|
|
1870
|
+
declare const MINIMUM_CHARGEABLE_AMOUNT: number;
|
|
1871
|
+
declare const DEFAULT_STRIPE_FEES: StripeFees;
|
|
1872
|
+
declare const DEFAULT_TONIGHTPASS_FEES: TonightPassFees;
|
|
1873
|
+
declare const DEFAULT_BILLING_PARAMETERS: BillingParameters;
|
|
1874
|
+
/**
|
|
1875
|
+
* Calculate the platform fee for a ticket (in cents).
|
|
1876
|
+
* @param ticketPrice - Ticket price in cents
|
|
1877
|
+
* @param isFeesIncluded - Whether fees are included in the ticket price
|
|
1878
|
+
* @param stripeFees - Stripe fee configuration
|
|
1879
|
+
* @param tonightPassFees - TonightPass fee configuration
|
|
1880
|
+
* @param params - Billing parameters (locality)
|
|
1881
|
+
* @returns Fee amount in cents
|
|
1882
|
+
*/
|
|
1883
|
+
declare function calculateTicketFee(ticketPrice: number, isFeesIncluded: boolean, stripeFees?: StripeFees, tonightPassFees?: TonightPassFees, params?: BillingParameters): number;
|
|
1884
|
+
/**
|
|
1885
|
+
* Applies the minimum chargeable amount rule after a discount.
|
|
1886
|
+
* - If total is 0 → stays 0 (free order)
|
|
1887
|
+
* - If total is between 1 and MINIMUM_CHARGEABLE_AMOUNT-1 → rounds up to MINIMUM_CHARGEABLE_AMOUNT
|
|
1888
|
+
* - Otherwise → unchanged
|
|
1889
|
+
*/
|
|
1890
|
+
declare function applyMinimumChargeableAmount(total: number): number;
|
|
1891
|
+
|
|
1789
1892
|
declare const isBrowser: boolean;
|
|
1893
|
+
|
|
1790
1894
|
/**
|
|
1791
1895
|
* File object with uri/name/type structure
|
|
1792
1896
|
*/
|
|
@@ -1802,6 +1906,7 @@ type FileObject = {
|
|
|
1802
1906
|
* @returns FormData object with the file(s) appended
|
|
1803
1907
|
*/
|
|
1804
1908
|
declare function buildFileFormData(key: string, files: File | File[] | FileList | FileObject | FileObject[]): FormData;
|
|
1909
|
+
|
|
1805
1910
|
/**
|
|
1806
1911
|
* Check if a member role has at least the specified minimum role level
|
|
1807
1912
|
* @param memberRole - The member's current role
|
|
@@ -1841,6 +1946,13 @@ declare const organizations: (client: Client) => {
|
|
|
1841
1946
|
orders: {
|
|
1842
1947
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
1843
1948
|
};
|
|
1949
|
+
promoCodes: {
|
|
1950
|
+
getAll: (organizationSlug: string, eventSlug: string, options?: ArrayOptions<OrganizationEventPromoCode>) => Promise<ArrayResult<OrganizationEventPromoCode>>;
|
|
1951
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
1952
|
+
update: (organizationSlug: string, eventSlug: string, promoCodeId: string, data: UpdateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
1953
|
+
delete: (organizationSlug: string, eventSlug: string, promoCodeId: string) => Promise<OrganizationEventPromoCode>;
|
|
1954
|
+
validate: (organizationSlug: string, eventSlug: string, code: string) => Promise<OrganizationEventPromoCodeValidation>;
|
|
1955
|
+
};
|
|
1844
1956
|
styles: {
|
|
1845
1957
|
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
1846
1958
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -2112,6 +2224,13 @@ declare class TonightPass {
|
|
|
2112
2224
|
orders: {
|
|
2113
2225
|
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventOrderDto) => Promise<Order>;
|
|
2114
2226
|
};
|
|
2227
|
+
promoCodes: {
|
|
2228
|
+
getAll: (organizationSlug: string, eventSlug: string, options?: ArrayOptions<OrganizationEventPromoCode>) => Promise<ArrayResult<OrganizationEventPromoCode>>;
|
|
2229
|
+
create: (organizationSlug: string, eventSlug: string, data: CreateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
2230
|
+
update: (organizationSlug: string, eventSlug: string, promoCodeId: string, data: UpdateOrganizationEventPromoCodeDto) => Promise<OrganizationEventPromoCode>;
|
|
2231
|
+
delete: (organizationSlug: string, eventSlug: string, promoCodeId: string) => Promise<OrganizationEventPromoCode>;
|
|
2232
|
+
validate: (organizationSlug: string, eventSlug: string, code: string) => Promise<OrganizationEventPromoCodeValidation>;
|
|
2233
|
+
};
|
|
2115
2234
|
styles: {
|
|
2116
2235
|
getAll: (query?: pathcat.Query<"/organizations/events/styles">) => Promise<ArrayResult<OrganizationEventStyle>>;
|
|
2117
2236
|
get: (styleSlug: string) => Promise<OrganizationEventStyle>;
|
|
@@ -2405,4 +2524,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2405
2524
|
client: ChannelWebSocketClient;
|
|
2406
2525
|
};
|
|
2407
2526
|
|
|
2408
|
-
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, OrganizationPayoutStatus, 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 };
|
|
2527
|
+
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, BillingLocality, type BillingParameters, 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, CreateOrganizationEventPromoCodeDto, CreateOrganizationEventStyleDto, CreateOrganizationEventTicketDto, type CreateOrganizationEventTicketInput, CreateOrganizationIdentityDto, CreateOrganizationMemberDto, CreateOrganizationMemberInvitationLinkDto, CreateUserDto, CreateUserIdentityDto, CreateUserPostCommentDto, CreateUserPostDto, CreateUserPostRepostDto, type CurrenciesEndpoints, Currency, type CurrencyConversion, type CurrencyConversionResult, DEFAULT_API_URL, DEFAULT_BILLING_PARAMETERS, DEFAULT_STRIPE_FEES, DEFAULT_TONIGHTPASS_FEES, 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, MINIMUM_CHARGEABLE_AMOUNT, MINIMUM_COMMISSION, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderDiscount, 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 OrganizationEventPromoCode, type OrganizationEventPromoCodeEndpoints, OrganizationEventPromoCodeType, type OrganizationEventPromoCodeValidation, 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, OrganizationPayoutStatus, 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 StripeFees, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TonightPassFees, type TypingStartEvent, type TypingStopEvent, UpdateApiKeyDto, UpdateChannelDto, UpdateChannelMessageDto, UpdateLocationDto, UpdateOrganizationDto, UpdateOrganizationEventDto, UpdateOrganizationEventPromoCodeDto, 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, applyMinimumChargeableAmount, auth, buildFileFormData, calculateTicketFee, careers, channels, channelsWS, currencies, feed, health, isBrowser, isMemberRoleAtLeast, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, users };
|