tonightpass 0.0.217 → 0.0.218
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 +63 -48
- package/dist/index.d.ts +63 -48
- 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
|
@@ -455,6 +455,68 @@ type UserBooking = Base & {
|
|
|
455
455
|
};
|
|
456
456
|
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/@me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
|
|
457
457
|
|
|
458
|
+
declare enum ProfileType {
|
|
459
|
+
User = "user",
|
|
460
|
+
Organization = "organization"
|
|
461
|
+
}
|
|
462
|
+
type BaseProfile = {
|
|
463
|
+
type: ProfileType;
|
|
464
|
+
slug: string;
|
|
465
|
+
displayName: string;
|
|
466
|
+
description?: string;
|
|
467
|
+
avatarUrl?: string;
|
|
468
|
+
bannerUrl?: string;
|
|
469
|
+
links: string[];
|
|
470
|
+
metadata: ProfileMetadata;
|
|
471
|
+
createdAt: Date;
|
|
472
|
+
};
|
|
473
|
+
type UserProfile = BaseProfile & {
|
|
474
|
+
type: ProfileType.User;
|
|
475
|
+
metadata: UserProfileMetadata;
|
|
476
|
+
};
|
|
477
|
+
type OrganizationProfile = BaseProfile & {
|
|
478
|
+
type: ProfileType.Organization;
|
|
479
|
+
metadata: OrganizationProfileMetadata;
|
|
480
|
+
};
|
|
481
|
+
type Profile = UserProfile | OrganizationProfile;
|
|
482
|
+
type BaseProfileMetadata = {
|
|
483
|
+
followersCount: number;
|
|
484
|
+
isFollower: boolean;
|
|
485
|
+
isFollowing: boolean;
|
|
486
|
+
isBlocked: boolean;
|
|
487
|
+
hasBlocked: boolean;
|
|
488
|
+
canDM: boolean;
|
|
489
|
+
isOfficial: boolean;
|
|
490
|
+
};
|
|
491
|
+
type UserProfileMetadata = BaseProfileMetadata & {
|
|
492
|
+
hasPassPlus: boolean;
|
|
493
|
+
};
|
|
494
|
+
type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
495
|
+
eventsCount: number;
|
|
496
|
+
viewsCount: number;
|
|
497
|
+
membersCount: number;
|
|
498
|
+
};
|
|
499
|
+
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
500
|
+
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
501
|
+
q: string;
|
|
502
|
+
};
|
|
503
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
504
|
+
|
|
505
|
+
type UserCustomer = UserProfile & {
|
|
506
|
+
email?: string;
|
|
507
|
+
phoneNumber?: string;
|
|
508
|
+
firstName: string;
|
|
509
|
+
lastName: string;
|
|
510
|
+
fullName: string;
|
|
511
|
+
metadata: UserCustomerMetadata;
|
|
512
|
+
};
|
|
513
|
+
type UserCustomerMetadata = UserProfileMetadata & {
|
|
514
|
+
bookingsCount: number;
|
|
515
|
+
eventsAttendedCount: number;
|
|
516
|
+
totalSpent: number;
|
|
517
|
+
lastBookingAt?: Date;
|
|
518
|
+
};
|
|
519
|
+
|
|
458
520
|
type UserToken = Omit<Base, "updatedAt"> & {
|
|
459
521
|
type: UserTokenType;
|
|
460
522
|
value: string;
|
|
@@ -1126,53 +1188,6 @@ type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organizati
|
|
|
1126
1188
|
limit?: number;
|
|
1127
1189
|
}> | 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, null> | 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;
|
|
1128
1190
|
|
|
1129
|
-
declare enum ProfileType {
|
|
1130
|
-
User = "user",
|
|
1131
|
-
Organization = "organization"
|
|
1132
|
-
}
|
|
1133
|
-
type BaseProfile = {
|
|
1134
|
-
type: ProfileType;
|
|
1135
|
-
slug: string;
|
|
1136
|
-
displayName: string;
|
|
1137
|
-
description?: string;
|
|
1138
|
-
avatarUrl?: string;
|
|
1139
|
-
bannerUrl?: string;
|
|
1140
|
-
links: string[];
|
|
1141
|
-
metadata: ProfileMetadata;
|
|
1142
|
-
createdAt: Date;
|
|
1143
|
-
};
|
|
1144
|
-
type UserProfile = BaseProfile & {
|
|
1145
|
-
type: ProfileType.User;
|
|
1146
|
-
metadata: UserProfileMetadata;
|
|
1147
|
-
};
|
|
1148
|
-
type OrganizationProfile = BaseProfile & {
|
|
1149
|
-
type: ProfileType.Organization;
|
|
1150
|
-
metadata: OrganizationProfileMetadata;
|
|
1151
|
-
};
|
|
1152
|
-
type Profile = UserProfile | OrganizationProfile;
|
|
1153
|
-
type BaseProfileMetadata = {
|
|
1154
|
-
followersCount: number;
|
|
1155
|
-
isFollower: boolean;
|
|
1156
|
-
isFollowing: boolean;
|
|
1157
|
-
isBlocked: boolean;
|
|
1158
|
-
hasBlocked: boolean;
|
|
1159
|
-
canDM: boolean;
|
|
1160
|
-
isOfficial: boolean;
|
|
1161
|
-
};
|
|
1162
|
-
type UserProfileMetadata = BaseProfileMetadata & {
|
|
1163
|
-
hasPassPlus: boolean;
|
|
1164
|
-
};
|
|
1165
|
-
type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
1166
|
-
eventsCount: number;
|
|
1167
|
-
viewsCount: number;
|
|
1168
|
-
membersCount: number;
|
|
1169
|
-
};
|
|
1170
|
-
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
1171
|
-
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
1172
|
-
q: string;
|
|
1173
|
-
};
|
|
1174
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
1175
|
-
|
|
1176
1191
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
1177
1192
|
|
|
1178
1193
|
type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
@@ -1957,4 +1972,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
1957
1972
|
client: ChannelWebSocketClient;
|
|
1958
1973
|
};
|
|
1959
1974
|
|
|
1960
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, 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, type 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 FeedEndpoints, type FeedPost, FeedType, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type 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 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, type UserToken, UserTokenType, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1975
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, 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, type 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 FeedEndpoints, type FeedPost, FeedType, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type 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, type UserToken, UserTokenType, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
package/dist/index.d.ts
CHANGED
|
@@ -455,6 +455,68 @@ type UserBooking = Base & {
|
|
|
455
455
|
};
|
|
456
456
|
type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/@me/bookings/:bookingId", UserBooking> | UserBookingTicketEndpoints;
|
|
457
457
|
|
|
458
|
+
declare enum ProfileType {
|
|
459
|
+
User = "user",
|
|
460
|
+
Organization = "organization"
|
|
461
|
+
}
|
|
462
|
+
type BaseProfile = {
|
|
463
|
+
type: ProfileType;
|
|
464
|
+
slug: string;
|
|
465
|
+
displayName: string;
|
|
466
|
+
description?: string;
|
|
467
|
+
avatarUrl?: string;
|
|
468
|
+
bannerUrl?: string;
|
|
469
|
+
links: string[];
|
|
470
|
+
metadata: ProfileMetadata;
|
|
471
|
+
createdAt: Date;
|
|
472
|
+
};
|
|
473
|
+
type UserProfile = BaseProfile & {
|
|
474
|
+
type: ProfileType.User;
|
|
475
|
+
metadata: UserProfileMetadata;
|
|
476
|
+
};
|
|
477
|
+
type OrganizationProfile = BaseProfile & {
|
|
478
|
+
type: ProfileType.Organization;
|
|
479
|
+
metadata: OrganizationProfileMetadata;
|
|
480
|
+
};
|
|
481
|
+
type Profile = UserProfile | OrganizationProfile;
|
|
482
|
+
type BaseProfileMetadata = {
|
|
483
|
+
followersCount: number;
|
|
484
|
+
isFollower: boolean;
|
|
485
|
+
isFollowing: boolean;
|
|
486
|
+
isBlocked: boolean;
|
|
487
|
+
hasBlocked: boolean;
|
|
488
|
+
canDM: boolean;
|
|
489
|
+
isOfficial: boolean;
|
|
490
|
+
};
|
|
491
|
+
type UserProfileMetadata = BaseProfileMetadata & {
|
|
492
|
+
hasPassPlus: boolean;
|
|
493
|
+
};
|
|
494
|
+
type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
495
|
+
eventsCount: number;
|
|
496
|
+
viewsCount: number;
|
|
497
|
+
membersCount: number;
|
|
498
|
+
};
|
|
499
|
+
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
500
|
+
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
501
|
+
q: string;
|
|
502
|
+
};
|
|
503
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
504
|
+
|
|
505
|
+
type UserCustomer = UserProfile & {
|
|
506
|
+
email?: string;
|
|
507
|
+
phoneNumber?: string;
|
|
508
|
+
firstName: string;
|
|
509
|
+
lastName: string;
|
|
510
|
+
fullName: string;
|
|
511
|
+
metadata: UserCustomerMetadata;
|
|
512
|
+
};
|
|
513
|
+
type UserCustomerMetadata = UserProfileMetadata & {
|
|
514
|
+
bookingsCount: number;
|
|
515
|
+
eventsAttendedCount: number;
|
|
516
|
+
totalSpent: number;
|
|
517
|
+
lastBookingAt?: Date;
|
|
518
|
+
};
|
|
519
|
+
|
|
458
520
|
type UserToken = Omit<Base, "updatedAt"> & {
|
|
459
521
|
type: UserTokenType;
|
|
460
522
|
value: string;
|
|
@@ -1126,53 +1188,6 @@ type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organizati
|
|
|
1126
1188
|
limit?: number;
|
|
1127
1189
|
}> | 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, null> | 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;
|
|
1128
1190
|
|
|
1129
|
-
declare enum ProfileType {
|
|
1130
|
-
User = "user",
|
|
1131
|
-
Organization = "organization"
|
|
1132
|
-
}
|
|
1133
|
-
type BaseProfile = {
|
|
1134
|
-
type: ProfileType;
|
|
1135
|
-
slug: string;
|
|
1136
|
-
displayName: string;
|
|
1137
|
-
description?: string;
|
|
1138
|
-
avatarUrl?: string;
|
|
1139
|
-
bannerUrl?: string;
|
|
1140
|
-
links: string[];
|
|
1141
|
-
metadata: ProfileMetadata;
|
|
1142
|
-
createdAt: Date;
|
|
1143
|
-
};
|
|
1144
|
-
type UserProfile = BaseProfile & {
|
|
1145
|
-
type: ProfileType.User;
|
|
1146
|
-
metadata: UserProfileMetadata;
|
|
1147
|
-
};
|
|
1148
|
-
type OrganizationProfile = BaseProfile & {
|
|
1149
|
-
type: ProfileType.Organization;
|
|
1150
|
-
metadata: OrganizationProfileMetadata;
|
|
1151
|
-
};
|
|
1152
|
-
type Profile = UserProfile | OrganizationProfile;
|
|
1153
|
-
type BaseProfileMetadata = {
|
|
1154
|
-
followersCount: number;
|
|
1155
|
-
isFollower: boolean;
|
|
1156
|
-
isFollowing: boolean;
|
|
1157
|
-
isBlocked: boolean;
|
|
1158
|
-
hasBlocked: boolean;
|
|
1159
|
-
canDM: boolean;
|
|
1160
|
-
isOfficial: boolean;
|
|
1161
|
-
};
|
|
1162
|
-
type UserProfileMetadata = BaseProfileMetadata & {
|
|
1163
|
-
hasPassPlus: boolean;
|
|
1164
|
-
};
|
|
1165
|
-
type OrganizationProfileMetadata = BaseProfileMetadata & {
|
|
1166
|
-
eventsCount: number;
|
|
1167
|
-
viewsCount: number;
|
|
1168
|
-
membersCount: number;
|
|
1169
|
-
};
|
|
1170
|
-
type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
|
|
1171
|
-
type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
1172
|
-
q: string;
|
|
1173
|
-
};
|
|
1174
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles", ArrayResult<Profile>, ArrayOptions<Profile>> | Endpoint<"GET", "/profiles/search", ArrayResult<Profile>, SearchProfilesOptions> | Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
|
|
1175
|
-
|
|
1176
1191
|
type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
|
|
1177
1192
|
|
|
1178
1193
|
type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
@@ -1957,4 +1972,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
1957
1972
|
client: ChannelWebSocketClient;
|
|
1958
1973
|
};
|
|
1959
1974
|
|
|
1960
|
-
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, 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, type 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 FeedEndpoints, type FeedPost, FeedType, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type 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 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, type UserToken, UserTokenType, 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, notifications, orders, organizations, profiles, request, sdk, users };
|
|
1975
|
+
export { type APIRequestOptions, type APIResponse, AcceptOrganizationMemberInvitationDto, AddParticipantDto, AddReactionDto, type AnalyticsOptions, type ApiKey, type ApiKeyEndpoints, ApiKeyTier, type ArrayFilterOptions, type ArrayOptions, type ArrayPaginationOptions, type ArrayResult, type ArraySortOptions, AtLeastOneMedia, AtLeastOneMediaConstraint, AtLeastOneMediaOnUpdate, AtLeastOneMediaOnUpdateConstraint, type AuthEndpoints, type AuthMethod, type Base, BaseOrganizationEventDto, type BaseProfile, type BaseProfileMetadata, type Body, type CacheEntry, CacheManager, type CacheOptions, 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, type 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 FeedEndpoints, type FeedPost, FeedType, type GeoPoint, GeoPointDto, type GeoSearchAggregation, GoogleOneTapDto, type Health, type HealthEndpoints, Language, type Location$1 as Location, type NotificationEndpoints, OAuth2Provider, type Order, type OrderEndpoints, type Organization, type OrganizationAnalyticsEndpoints, type OrganizationAnalyticsOverview, type OrganizationBilling, type OrganizationBillingAccount, type OrganizationEndpoints, type OrganizationEvent, type OrganizationEventAnalytics, type OrganizationEventArrayOptions, type OrganizationEventCalendar, type OrganizationEventEndpoints, OrganizationEventFileType, type OrganizationEventOrderEndpoints, OrganizationEventStatus, type OrganizationEventStyle, type OrganizationEventStyleEndpoints, OrganizationEventStyleType, type OrganizationEventTicket, OrganizationEventTicketCategory, type OrganizationEventTicketEndpoints, OrganizationEventTicketType, OrganizationEventType, OrganizationEventVisibilityType, OrganizationFileType, type OrganizationIdentity, type OrganizationMember, OrganizationMemberRole, OrganizationMemberStatus, type OrganizationMembersEndpoints, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type Profile, type ProfileEndpoints, type ProfileMetadata, ProfileType, type PromisedAPIResponse, type PromisedResponse, type QueryParams, REGEX, RecoveryDto, RecoveryResetDto, type RecoveryResponse, ReportChannelMessageDto, type Response, type ResponseFor, type SearchOrganizationEventsOptions, type SearchProfilesOptions, SignInUserDto, type StringifiedQuery, type StringifiedQueryValue, type SuccessfulAPIResponse, TonightPass, TonightPassAPIError, type TypingStartEvent, type TypingStopEvent, type 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, type UserToken, UserTokenType, 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, notifications, orders, organizations, profiles, request, sdk, users };
|