tonightpass 0.0.263 → 0.0.265
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 +921 -805
- package/dist/index.d.ts +921 -805
- 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.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as pathcat from 'pathcat';
|
|
|
2
2
|
import { Query, ParamValue } from 'pathcat';
|
|
3
3
|
export * from 'pathcat';
|
|
4
4
|
import { Options, Response as Response$1 } from 'redaxios';
|
|
5
|
-
import { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator';
|
|
6
5
|
import * as Stripe from 'stripe';
|
|
7
6
|
import Stripe__default from 'stripe';
|
|
8
7
|
import { HealthCheckResult, HealthIndicatorResult } from '@nestjs/terminus';
|
|
@@ -116,111 +115,6 @@ type ArtistEndpoints = Endpoint<"GET", "/artists/top", ArrayResult<Artist>, List
|
|
|
116
115
|
isFollowing: boolean;
|
|
117
116
|
}> | Endpoint<"GET", "/artists/:idOrPermalink/events", ArrayResult<OrganizationEvent>, ListArtistEventsOptions>;
|
|
118
117
|
|
|
119
|
-
declare enum UserNotificationType {
|
|
120
|
-
Follow = "follow"
|
|
121
|
-
}
|
|
122
|
-
type UserNotificationBase = Base & {
|
|
123
|
-
type: UserNotificationType.Follow;
|
|
124
|
-
isSeen: boolean;
|
|
125
|
-
};
|
|
126
|
-
type UserNotificationFollow = UserNotificationBase & {
|
|
127
|
-
type: UserNotificationType.Follow;
|
|
128
|
-
follower: UserProfile;
|
|
129
|
-
};
|
|
130
|
-
type UserNotification = UserNotificationFollow;
|
|
131
|
-
type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
|
|
132
|
-
unseen?: boolean;
|
|
133
|
-
}> | Endpoint<"PUT", "/users/~me/notifications/read", void, undefined>;
|
|
134
|
-
|
|
135
|
-
declare class CreateUserPostCommentDto {
|
|
136
|
-
content: string;
|
|
137
|
-
replyToId?: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
declare class UpdateUserPostCommentDto {
|
|
141
|
-
content: string;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
declare class CreateUserPostDto {
|
|
145
|
-
content?: string;
|
|
146
|
-
mediaUrls: string[];
|
|
147
|
-
visibility?: UserPostVisibility;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
declare class CreateUserPostRepostDto {
|
|
151
|
-
comment?: string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
declare class UpdateUserPostDto {
|
|
155
|
-
content?: string;
|
|
156
|
-
visibility?: UserPostVisibility;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
type UserPostComment = Base & {
|
|
160
|
-
post: UserPost;
|
|
161
|
-
author: UserProfile;
|
|
162
|
-
content: string;
|
|
163
|
-
replyTo?: UserPostComment;
|
|
164
|
-
isEdited: boolean;
|
|
165
|
-
editedAt?: Date;
|
|
166
|
-
};
|
|
167
|
-
type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void, null>;
|
|
168
|
-
|
|
169
|
-
declare enum UserPostMediaType {
|
|
170
|
-
Image = "image",
|
|
171
|
-
Video = "video"
|
|
172
|
-
}
|
|
173
|
-
type UserPostMedia = {
|
|
174
|
-
url: string;
|
|
175
|
-
type: UserPostMediaType;
|
|
176
|
-
width: number;
|
|
177
|
-
height: number;
|
|
178
|
-
description?: string;
|
|
179
|
-
isNSFW: boolean;
|
|
180
|
-
thumbnailUrl?: string;
|
|
181
|
-
duration?: number;
|
|
182
|
-
};
|
|
183
|
-
type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
|
|
184
|
-
|
|
185
|
-
type UserPostRepost = Base & {
|
|
186
|
-
originalPost: UserPost;
|
|
187
|
-
author: UserProfile;
|
|
188
|
-
comment?: string;
|
|
189
|
-
};
|
|
190
|
-
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
|
|
191
|
-
|
|
192
|
-
type UserPostViewOptions = {
|
|
193
|
-
posts: string | string[];
|
|
194
|
-
};
|
|
195
|
-
type UserPostViewResult = {
|
|
196
|
-
postId: string;
|
|
197
|
-
visitsCount: number;
|
|
198
|
-
};
|
|
199
|
-
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
|
|
200
|
-
|
|
201
|
-
declare enum UserPostVisibility {
|
|
202
|
-
Public = "public",
|
|
203
|
-
Followers = "followers",
|
|
204
|
-
Private = "private"
|
|
205
|
-
}
|
|
206
|
-
type UserPost = Base & {
|
|
207
|
-
author: UserProfile;
|
|
208
|
-
content?: string;
|
|
209
|
-
media: UserPostMedia[];
|
|
210
|
-
visibility: UserPostVisibility;
|
|
211
|
-
metrics: {
|
|
212
|
-
reposts: number;
|
|
213
|
-
comments: number;
|
|
214
|
-
views: number;
|
|
215
|
-
visits: number;
|
|
216
|
-
visitors: number;
|
|
217
|
-
};
|
|
218
|
-
isReposted?: boolean;
|
|
219
|
-
isEdited: boolean;
|
|
220
|
-
editedAt?: Date;
|
|
221
|
-
};
|
|
222
|
-
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
223
|
-
|
|
224
118
|
/**
|
|
225
119
|
* All currencies supported by Stripe for card payments.
|
|
226
120
|
* Source: https://docs.stripe.com/currencies#presentment-currencies
|
|
@@ -427,7 +321,14 @@ type OrderItem = {
|
|
|
427
321
|
declare enum OrderTransferStatus {
|
|
428
322
|
Completed = "completed",
|
|
429
323
|
Pending = "pending",
|
|
430
|
-
Transferred = "transferred"
|
|
324
|
+
Transferred = "transferred",
|
|
325
|
+
Cancelled = "cancelled"
|
|
326
|
+
}
|
|
327
|
+
declare enum OrderRefundStatus {
|
|
328
|
+
Pending = "pending",
|
|
329
|
+
Succeeded = "succeeded",
|
|
330
|
+
Failed = "failed",
|
|
331
|
+
RequiresAction = "requires_action"
|
|
431
332
|
}
|
|
432
333
|
type OrderDiscount = {
|
|
433
334
|
code: string;
|
|
@@ -444,32 +345,67 @@ type Order = Base & {
|
|
|
444
345
|
fee: number;
|
|
445
346
|
total: number;
|
|
446
347
|
transferStatus: OrderTransferStatus;
|
|
348
|
+
transferReversed?: boolean;
|
|
349
|
+
refundId?: string;
|
|
350
|
+
refundedAt?: Date;
|
|
351
|
+
refundAmount?: number;
|
|
352
|
+
refundedFeeAmount?: number;
|
|
353
|
+
refundStatus?: OrderRefundStatus;
|
|
354
|
+
refundFailureReason?: string;
|
|
355
|
+
/** Number of times the refund cron has attempted this order. Defaults to 0. */
|
|
356
|
+
refundRetryCount?: number;
|
|
357
|
+
refundLastAttemptAt?: Date;
|
|
447
358
|
user: UserProfile;
|
|
448
359
|
};
|
|
449
360
|
type OrderEndpoints = Endpoint<"GET", "/orders", ArrayResult<Order>, ArrayOptions<Order>> | Endpoint<"GET", "/orders/:orderId", Order>;
|
|
450
361
|
|
|
451
|
-
type
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
362
|
+
type OrganizationAnalyticsOverview = {
|
|
363
|
+
metrics: {
|
|
364
|
+
totalRevenue: {
|
|
365
|
+
current: number;
|
|
366
|
+
previous: number;
|
|
367
|
+
percentageChange: number;
|
|
368
|
+
};
|
|
369
|
+
totalOrders: {
|
|
370
|
+
current: number;
|
|
371
|
+
previous: number;
|
|
372
|
+
percentageChange: number;
|
|
373
|
+
};
|
|
374
|
+
totalTicketsSold: {
|
|
375
|
+
current: number;
|
|
376
|
+
previous: number;
|
|
377
|
+
percentageChange: number;
|
|
378
|
+
};
|
|
379
|
+
activeEvents: number;
|
|
380
|
+
};
|
|
381
|
+
chartData: {
|
|
382
|
+
date: string;
|
|
383
|
+
revenues: number;
|
|
384
|
+
orders: number;
|
|
385
|
+
ticketsSold: number;
|
|
386
|
+
events: number;
|
|
387
|
+
}[];
|
|
456
388
|
};
|
|
457
|
-
type
|
|
458
|
-
tokenId: string;
|
|
459
|
-
tokenValue: string;
|
|
460
|
-
}> | Endpoint<"PUT", "/users/bookings/tickets/:ticketId/use", UserBookingTicket, {
|
|
461
|
-
tokenId: string;
|
|
462
|
-
tokenValue: string;
|
|
463
|
-
}>;
|
|
464
|
-
|
|
465
|
-
type UserBookingWithoutTickets = Omit<UserBooking, "tickets">;
|
|
466
|
-
type UserBooking = Base & {
|
|
467
|
-
tickets: UserBookingTicket[];
|
|
468
|
-
order: Order;
|
|
469
|
-
customer: OrganizationCustomer;
|
|
389
|
+
type OrganizationEventAnalytics = {
|
|
470
390
|
event: OrganizationEvent;
|
|
391
|
+
metrics: {
|
|
392
|
+
views: number;
|
|
393
|
+
visits: number;
|
|
394
|
+
visitors: number;
|
|
395
|
+
totalRevenue: number;
|
|
396
|
+
totalOrders: number;
|
|
397
|
+
totalTicketsSold: number;
|
|
398
|
+
};
|
|
471
399
|
};
|
|
472
|
-
type
|
|
400
|
+
type AnalyticsOptions = {
|
|
401
|
+
period?: "7d" | "30d" | "90d" | "12m";
|
|
402
|
+
startDate?: string;
|
|
403
|
+
endDate?: string;
|
|
404
|
+
};
|
|
405
|
+
type EventAnalyticsOptions = AnalyticsOptions & {
|
|
406
|
+
status?: "upcoming" | "past" | "all";
|
|
407
|
+
};
|
|
408
|
+
type OrganizationAnalyticsEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/analytics/overview", OrganizationAnalyticsOverview, AnalyticsOptions> | Endpoint<"GET", "/organizations/@:organizationSlug/analytics/events", ArrayResult<OrganizationEventAnalytics>, ArrayOptions<OrganizationEventAnalytics> & EventAnalyticsOptions>;
|
|
473
409
|
|
|
474
410
|
declare enum ProfileType {
|
|
475
411
|
User = "user",
|
|
@@ -520,527 +456,234 @@ type SearchProfilesOptions = ArrayOptions<Profile> & {
|
|
|
520
456
|
};
|
|
521
457
|
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, undefined> | Endpoint<"POST", "/profiles/@:username/relationships/unfollow", boolean, undefined>;
|
|
522
458
|
|
|
523
|
-
type
|
|
459
|
+
type OrganizationCustomer = UserProfile & {
|
|
524
460
|
email?: string;
|
|
525
461
|
phoneNumber?: string;
|
|
526
462
|
firstName: string;
|
|
527
463
|
lastName: string;
|
|
528
464
|
fullName: string;
|
|
529
|
-
|
|
465
|
+
birthDate: Date;
|
|
466
|
+
metadata: OrganizationCustomerMetadata;
|
|
530
467
|
};
|
|
531
|
-
type
|
|
468
|
+
type OrganizationCustomerMetadata = UserProfileMetadata & {
|
|
532
469
|
bookingsCount: number;
|
|
533
470
|
eventsAttendedCount: number;
|
|
534
471
|
totalSpent: number;
|
|
535
472
|
lastBookingAt?: Date;
|
|
536
473
|
};
|
|
474
|
+
type OrganizationCustomersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/customers", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/customers/:username", OrganizationCustomer>;
|
|
537
475
|
|
|
538
|
-
type
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
476
|
+
type OrganizationEventTicket = Base & {
|
|
477
|
+
name: string;
|
|
478
|
+
description?: string;
|
|
479
|
+
price: Stripe__default.Price;
|
|
480
|
+
product: Stripe__default.Product;
|
|
481
|
+
fee: number;
|
|
482
|
+
quantity: number;
|
|
483
|
+
type: OrganizationEventTicketType;
|
|
484
|
+
category: OrganizationEventTicketCategory;
|
|
485
|
+
externalId?: string;
|
|
486
|
+
isVisible: boolean;
|
|
487
|
+
isFeesIncluded: boolean;
|
|
488
|
+
startAt?: Date;
|
|
489
|
+
endAt?: Date;
|
|
490
|
+
event: OrganizationEvent;
|
|
544
491
|
};
|
|
545
|
-
declare enum
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
OrganizationInvite = "organization_invite",
|
|
549
|
-
PasswordRecovery = "password_recovery",
|
|
550
|
-
EmailValidation = "email_validation",
|
|
551
|
-
PhoneValidation = "phone_validation"
|
|
492
|
+
declare enum OrganizationEventTicketType {
|
|
493
|
+
ETicket = "e-ticket",
|
|
494
|
+
Other = "other"
|
|
552
495
|
}
|
|
496
|
+
declare enum OrganizationEventTicketCategory {
|
|
497
|
+
Entry = "entry",
|
|
498
|
+
Package = "package",
|
|
499
|
+
Meal = "meal",
|
|
500
|
+
Drink = "drink",
|
|
501
|
+
Parking = "parking",
|
|
502
|
+
Accommodation = "accommodation",
|
|
503
|
+
Camping = "camping",
|
|
504
|
+
Locker = "locker",
|
|
505
|
+
Shuttle = "shuttle",
|
|
506
|
+
Other = "other"
|
|
507
|
+
}
|
|
508
|
+
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
|
|
553
509
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
510
|
+
declare enum OrganizationNotificationType {
|
|
511
|
+
OrganizationCreated = "organization_created",
|
|
512
|
+
Follow = "follow",
|
|
513
|
+
OrganizationMemberInvited = "organization_member_invited",
|
|
514
|
+
OrganizationMemberJoined = "organization_member_joined",
|
|
515
|
+
OrganizationMemberLeft = "organization_member_left",
|
|
516
|
+
OrganizationMemberRoleUpdated = "organization_member_role_updated",
|
|
517
|
+
OrganizationEventCreated = "organization_event_created",
|
|
518
|
+
OrganizationEventUpdated = "organization_event_updated",
|
|
519
|
+
OrganizationEventCancelled = "organization_event_cancelled",
|
|
520
|
+
OrganizationEventPostponed = "organization_event_postponed",
|
|
521
|
+
OrganizationEventRescheduled = "organization_event_rescheduled",
|
|
522
|
+
OrganizationEventCancelRefundsCompleted = "organization_event_cancel_refunds_completed",
|
|
523
|
+
OrganizationEventCancelRefundsPartial = "organization_event_cancel_refunds_partial",
|
|
524
|
+
OrganizationEventMilestone = "organization_event_milestone",
|
|
525
|
+
OrderReceived = "order_received",
|
|
526
|
+
PayoutCompleted = "payout_completed",
|
|
527
|
+
BillingAccountConnected = "billing_account_connected"
|
|
528
|
+
}
|
|
529
|
+
type OrganizationNotificationBase = Base & {
|
|
530
|
+
type: OrganizationNotificationType;
|
|
531
|
+
isSeen: boolean;
|
|
532
|
+
message?: string;
|
|
533
|
+
metadata?: Record<string, unknown>;
|
|
565
534
|
};
|
|
566
|
-
type
|
|
567
|
-
|
|
568
|
-
emailVerified?: boolean;
|
|
569
|
-
phoneNumber?: string;
|
|
570
|
-
phoneNumberVerified?: boolean;
|
|
571
|
-
username: string;
|
|
535
|
+
type OrganizationNotificationWithActor = OrganizationNotificationBase & {
|
|
536
|
+
actor?: UserProfile;
|
|
572
537
|
};
|
|
573
|
-
type
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
538
|
+
type OrganizationNotification = OrganizationNotificationWithActor;
|
|
539
|
+
type OrganizationNotificationEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/notifications", ArrayResult<OrganizationNotification>, ArrayOptions<OrganizationNotification>> | Endpoint<"GET", "/organizations/@:organizationSlug/notifications/count", number, {
|
|
540
|
+
unseen?: boolean;
|
|
541
|
+
}> | Endpoint<"PUT", "/organizations/@:organizationSlug/notifications/read", void, undefined>;
|
|
542
|
+
|
|
543
|
+
type UserBookingTicket = Base & {
|
|
544
|
+
booking: UserBookingWithoutTickets;
|
|
545
|
+
ticket: OrganizationEventTicket;
|
|
546
|
+
token: UserToken;
|
|
547
|
+
useCount: number;
|
|
580
548
|
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
message: boolean;
|
|
598
|
-
};
|
|
599
|
-
push: {
|
|
600
|
-
message: boolean;
|
|
601
|
-
};
|
|
602
|
-
};
|
|
549
|
+
type UserBookingTicketEndpoints = Endpoint<"GET", "/users/bookings/tickets/:ticketId", UserBookingTicket, {
|
|
550
|
+
tokenId: string;
|
|
551
|
+
tokenValue: string;
|
|
552
|
+
}> | Endpoint<"PUT", "/users/bookings/tickets/:ticketId/use", UserBookingTicket, {
|
|
553
|
+
tokenId: string;
|
|
554
|
+
tokenValue: string;
|
|
555
|
+
}>;
|
|
556
|
+
|
|
557
|
+
type UserBookingWithoutTickets = Omit<UserBooking, "tickets">;
|
|
558
|
+
type UserBooking = Base & {
|
|
559
|
+
tickets: UserBookingTicket[];
|
|
560
|
+
order: Order;
|
|
561
|
+
customer: OrganizationCustomer;
|
|
562
|
+
event: OrganizationEvent;
|
|
563
|
+
cancelledAt?: Date;
|
|
564
|
+
cancellationReason?: string;
|
|
603
565
|
};
|
|
604
|
-
type
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
client: UserConnectionClient;
|
|
609
|
-
updatedAt: Date;
|
|
610
|
-
createdAt: Date;
|
|
566
|
+
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;
|
|
567
|
+
|
|
568
|
+
type OrganizationOrder = Omit<Order, "user"> & {
|
|
569
|
+
customer: OrganizationCustomer;
|
|
611
570
|
};
|
|
612
|
-
type
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
571
|
+
type OrganizationOrdersEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/orders/:orderId", OrganizationOrder> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders", ArrayResult<OrganizationOrder>, ArrayOptions<OrganizationOrder>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants", ArrayResult<OrganizationCustomer>, ArrayOptions<OrganizationCustomer>> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/orders/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/bookings/export", string> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/participants/export", string>;
|
|
572
|
+
|
|
573
|
+
type OrganizationToken = Omit<Base, "updatedAt"> & {
|
|
574
|
+
type: OrganizationTokenType;
|
|
575
|
+
value: string;
|
|
576
|
+
expiresAt: Date;
|
|
577
|
+
organization?: Organization;
|
|
578
|
+
role?: OrganizationMemberRole;
|
|
620
579
|
};
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
580
|
+
declare enum OrganizationTokenType {
|
|
581
|
+
InvitationLink = "invitation_link"
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
type Organization = Base & {
|
|
585
|
+
slug: string;
|
|
586
|
+
identity: OrganizationIdentity;
|
|
587
|
+
members: OrganizationMember[];
|
|
588
|
+
location?: Location$1;
|
|
589
|
+
events: OrganizationEvent[];
|
|
590
|
+
savedTickets: OrganizationEventTicket[];
|
|
591
|
+
verified: boolean;
|
|
592
|
+
billing: OrganizationBilling;
|
|
624
593
|
};
|
|
625
|
-
type
|
|
626
|
-
|
|
627
|
-
|
|
594
|
+
type OrganizationBilling = {
|
|
595
|
+
account: string;
|
|
596
|
+
isPayoutsEnabled: boolean;
|
|
597
|
+
vatRate: number;
|
|
628
598
|
};
|
|
629
|
-
type
|
|
630
|
-
|
|
631
|
-
|
|
599
|
+
type OrganizationBillingAccount = Stripe__default.Account;
|
|
600
|
+
declare enum OrganizationPayoutStatus {
|
|
601
|
+
Paid = "paid",
|
|
602
|
+
Pending = "pending",
|
|
603
|
+
InTransit = "in_transit",
|
|
604
|
+
Failed = "failed",
|
|
605
|
+
Canceled = "canceled"
|
|
606
|
+
}
|
|
607
|
+
type OrganizationBillingBalance = {
|
|
608
|
+
balance: {
|
|
609
|
+
amount: number;
|
|
610
|
+
currency: Currency;
|
|
611
|
+
}[];
|
|
612
|
+
pending: {
|
|
613
|
+
amount: number;
|
|
614
|
+
currency: Currency;
|
|
615
|
+
}[];
|
|
616
|
+
payouts: {
|
|
617
|
+
id: string;
|
|
618
|
+
amount: number;
|
|
619
|
+
currency: Currency;
|
|
620
|
+
status: OrganizationPayoutStatus;
|
|
621
|
+
arrival_date: number;
|
|
622
|
+
}[];
|
|
632
623
|
};
|
|
633
|
-
|
|
624
|
+
type OrganizationBillingPendingRevenue = {
|
|
625
|
+
amount: number;
|
|
626
|
+
count: number;
|
|
627
|
+
currency: Currency;
|
|
628
|
+
}[];
|
|
629
|
+
type OrganizationIdentity = OrganizationProfile;
|
|
630
|
+
declare enum OrganizationFileType {
|
|
634
631
|
Avatar = "avatar",
|
|
635
632
|
Banner = "banner"
|
|
636
633
|
}
|
|
637
|
-
type
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}, {
|
|
642
|
-
identifier: boolean;
|
|
643
|
-
suggestions?: boolean;
|
|
644
|
-
}> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
|
|
634
|
+
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
635
|
+
q: string;
|
|
636
|
+
limit?: number;
|
|
637
|
+
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationNotificationEndpoints | OrganizationOrdersEndpoints;
|
|
645
638
|
|
|
646
|
-
|
|
647
|
-
Google = "google",
|
|
648
|
-
Facebook = "facebook",
|
|
649
|
-
Twitter = "twitter"
|
|
650
|
-
}
|
|
651
|
-
type AuthMethod = OAuth2Provider | "password";
|
|
652
|
-
declare enum AuthFlow {
|
|
653
|
-
SignUp = "signup",
|
|
654
|
-
SignIn = "signin"
|
|
655
|
-
}
|
|
656
|
-
type RecoveryResponse = {
|
|
657
|
-
to: string;
|
|
658
|
-
};
|
|
659
|
-
type VerifyEmailResponse = {
|
|
660
|
-
to: string;
|
|
661
|
-
};
|
|
662
|
-
type AuthResponse = {
|
|
663
|
-
user: User;
|
|
664
|
-
accessToken: string;
|
|
665
|
-
refreshToken: string;
|
|
666
|
-
flow: AuthFlow;
|
|
667
|
-
};
|
|
668
|
-
type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, undefined> | Endpoint<"POST", "/auth/refresh-token", AuthResponse, undefined> | Endpoint<"POST", "/auth/recovery", RecoveryResponse, RecoveryDto> | Endpoint<"POST", "/auth/recovery/reset", null, RecoveryResetDto> | Endpoint<"GET", "/oauth2/:provider", void> | Endpoint<"GET", "/oauth2/:provider/callback", void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}/callback`, void> | Endpoint<"POST", `/oauth2/${OAuth2Provider.Google}/one-tap`, AuthResponse, GoogleOneTapDto> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}/callback`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}/callback`, void> | Endpoint<"DELETE", "/oauth2/:provider", void, undefined> | Endpoint<"POST", "/auth/verify/email/send", VerifyEmailResponse, undefined> | Endpoint<"POST", "/auth/verify/email/confirm", null, VerifyEmailConfirmDto>;
|
|
639
|
+
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
669
640
|
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
name: string
|
|
674
|
-
city: string | null;
|
|
675
|
-
countryIso: string | null;
|
|
676
|
-
};
|
|
677
|
-
declare enum CareersJobStatus {
|
|
678
|
-
All = "ALL",
|
|
679
|
-
Online = "ONLINE",
|
|
680
|
-
Archived = "ARCHIVED"
|
|
681
|
-
}
|
|
682
|
-
declare enum CareersWorkplaceType {
|
|
683
|
-
Onsite = "ONSITE",
|
|
684
|
-
Remote = "REMOTE",
|
|
685
|
-
Hybrid = "HYBRID"
|
|
641
|
+
declare class CreateOrganizationEventStyleDto {
|
|
642
|
+
type: OrganizationEventStyleType;
|
|
643
|
+
emoji: string;
|
|
644
|
+
name: string;
|
|
686
645
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
Country = "COUNTRY"
|
|
646
|
+
|
|
647
|
+
declare class UpdateOrganizationEventStyleDto extends CreateOrganizationEventStyleDto {
|
|
690
648
|
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
externalId: null | string;
|
|
696
|
-
title: string;
|
|
697
|
-
status: CareersJobStatus;
|
|
698
|
-
remote: boolean;
|
|
699
|
-
office: CareersOffice;
|
|
700
|
-
workplaceType: CareersWorkplaceType;
|
|
701
|
-
remoteType?: CareersRemoteType;
|
|
702
|
-
description?: string;
|
|
703
|
-
categoryId?: number;
|
|
704
|
-
employmentTypeId?: number;
|
|
705
|
-
};
|
|
706
|
-
type CareersCategory = {
|
|
707
|
-
slug: string;
|
|
708
|
-
name: string;
|
|
709
|
-
subCategories?: (CareersCategory & {
|
|
710
|
-
id: number;
|
|
711
|
-
})[];
|
|
712
|
-
};
|
|
713
|
-
type CareersEmploymentType = {
|
|
714
|
-
id: number;
|
|
649
|
+
|
|
650
|
+
type OrganizationEventStyle = Base & {
|
|
651
|
+
type: OrganizationEventStyleType;
|
|
652
|
+
emoji: string;
|
|
715
653
|
name: string;
|
|
716
654
|
slug: string;
|
|
717
655
|
};
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
730
|
-
countryCode?: string;
|
|
731
|
-
cityNameLike?: string;
|
|
656
|
+
declare enum OrganizationEventStyleType {
|
|
657
|
+
Music = "music",
|
|
658
|
+
Dress = "dress",
|
|
659
|
+
Sport = "sport",
|
|
660
|
+
Food = "food",
|
|
661
|
+
Art = "art"
|
|
662
|
+
}
|
|
663
|
+
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
|
|
664
|
+
|
|
665
|
+
type OrganizationEventViewOptions = {
|
|
666
|
+
events: string | string[];
|
|
732
667
|
};
|
|
733
|
-
type
|
|
734
|
-
|
|
668
|
+
type OrganizationEventViewResult = {
|
|
669
|
+
eventId: string;
|
|
670
|
+
visitsCount: number;
|
|
735
671
|
};
|
|
736
|
-
type
|
|
737
|
-
|
|
672
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
|
|
673
|
+
|
|
674
|
+
type OrganizationEventStatusInput = {
|
|
675
|
+
lifecycleStatus?: OrganizationEventLifecycleStatus | null;
|
|
676
|
+
startAt: Date | string;
|
|
677
|
+
endAt: Date | string;
|
|
738
678
|
};
|
|
739
|
-
type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
|
|
740
|
-
jobId: number;
|
|
741
|
-
}> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
|
|
742
|
-
|
|
743
|
-
declare enum ChannelMessageReportReason {
|
|
744
|
-
Dislike = "dislike",
|
|
745
|
-
HarassmentSelf = "harassment_self",
|
|
746
|
-
HarassmentOther = "harassment_other",
|
|
747
|
-
SexualHarassmentSelf = "sexual_harassment_self",
|
|
748
|
-
NudesSelf = "nudes_self",
|
|
749
|
-
SexualContent = "sexual_content",
|
|
750
|
-
ChildInvolved = "child_involved",
|
|
751
|
-
ThreatTarget = "threat_target",
|
|
752
|
-
ViolentContent = "violent_content",
|
|
753
|
-
HateSpeech = "hate_speech",
|
|
754
|
-
Terrorism = "terrorism",
|
|
755
|
-
DrugSale = "drug_sale",
|
|
756
|
-
WeaponSale = "weapon_sale",
|
|
757
|
-
SelfHarmConcern = "self_harm_concern",
|
|
758
|
-
SelfHarmPromotion = "self_harm_promotion",
|
|
759
|
-
Other = "other"
|
|
760
|
-
}
|
|
761
|
-
type ChannelMessageReadByEntry = {
|
|
762
|
-
participant: ChannelParticipant;
|
|
763
|
-
readAt: Date;
|
|
764
|
-
};
|
|
765
|
-
type ChannelMessageReaction = {
|
|
766
|
-
emoji: string;
|
|
767
|
-
participants: ChannelParticipant[];
|
|
768
|
-
};
|
|
769
|
-
type ChannelMessage = Base & {
|
|
770
|
-
channel: Channel;
|
|
771
|
-
sender: ChannelParticipant;
|
|
772
|
-
content?: string;
|
|
773
|
-
attachments: string[];
|
|
774
|
-
isSent: boolean;
|
|
775
|
-
isDelivered: boolean;
|
|
776
|
-
isRead: boolean;
|
|
777
|
-
readBy?: ChannelMessageReadByEntry[];
|
|
778
|
-
isEdited: boolean;
|
|
779
|
-
editedAt?: Date;
|
|
780
|
-
replyTo?: ChannelMessage;
|
|
781
|
-
reactions?: ChannelMessageReaction[];
|
|
782
|
-
};
|
|
783
|
-
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
784
|
-
|
|
785
|
-
declare enum ChannelType {
|
|
786
|
-
Private = "private",
|
|
787
|
-
Group = "group"
|
|
788
|
-
}
|
|
789
|
-
declare enum ChannelMemberRole {
|
|
790
|
-
Member = "member",
|
|
791
|
-
Admin = "admin"
|
|
792
|
-
}
|
|
793
|
-
type ChannelParticipant = Profile;
|
|
794
|
-
declare enum ChannelStatus {
|
|
795
|
-
Sent = "sent",
|
|
796
|
-
Delivered = "delivered",
|
|
797
|
-
Read = "read",
|
|
798
|
-
Received = "received",
|
|
799
|
-
Opened = "opened"
|
|
800
|
-
}
|
|
801
|
-
type Channel = Base & {
|
|
802
|
-
type: ChannelType;
|
|
803
|
-
participants: ChannelParticipant[];
|
|
804
|
-
name?: string;
|
|
805
|
-
lastMessageAt?: Date;
|
|
806
|
-
status?: ChannelStatus;
|
|
807
|
-
unreadCount?: number;
|
|
808
|
-
};
|
|
809
|
-
type ChannelMember = {
|
|
810
|
-
participant: ChannelParticipant;
|
|
811
|
-
joinedAt: Date;
|
|
812
|
-
role?: ChannelMemberRole;
|
|
813
|
-
lastReadAt?: Date;
|
|
814
|
-
};
|
|
815
|
-
type UserChannelCountOptions = {
|
|
816
|
-
unseen?: boolean;
|
|
817
|
-
};
|
|
818
|
-
type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
|
|
819
|
-
|
|
820
|
-
declare enum ErrorType {
|
|
821
|
-
AuthEmailAlreadyExists = "auth.email-already-exists",
|
|
822
|
-
AuthUsernameAlreadyExists = "auth.username-already-exists",
|
|
823
|
-
AuthPhoneNumberAlreadyExists = "auth.phone-number-already-exists",
|
|
824
|
-
AuthInvalidCredentials = "auth.invalid-credentials",
|
|
825
|
-
AuthUserNotFound = "auth.user-not-found",
|
|
826
|
-
AuthInvalidToken = "auth.invalid-token",
|
|
827
|
-
AuthTokenExpired = "auth.token-expired",
|
|
828
|
-
AuthUnauthorized = "auth.unauthorized",
|
|
829
|
-
AuthPasswordMismatch = "auth.password-mismatch",
|
|
830
|
-
AuthInvalidOAuth2Provider = "auth.invalid-oauth2-provider",
|
|
831
|
-
AuthOAuth2Error = "auth.oauth2-error",
|
|
832
|
-
UserNotFound = "user.not-found",
|
|
833
|
-
UserInvalidUsername = "user.invalid-username",
|
|
834
|
-
UserInvalidEmail = "user.invalid-email",
|
|
835
|
-
UserInvalidPhoneNumber = "user.invalid-phone-number",
|
|
836
|
-
UserInvalidPassword = "user.invalid-password",
|
|
837
|
-
UserInvalidBirthDate = "user.invalid-birth-date",
|
|
838
|
-
UserInvalidGender = "user.invalid-gender",
|
|
839
|
-
UserInvalidRole = "user.invalid-role",
|
|
840
|
-
UserInvalidPreferences = "user.invalid-preferences",
|
|
841
|
-
UserInvalidLocation = "user.invalid-location",
|
|
842
|
-
UserInvalidFile = "user.invalid-file",
|
|
843
|
-
UserFileTooLarge = "user.file-too-large",
|
|
844
|
-
UserUnsupportedFileType = "user.unsupported-file-type",
|
|
845
|
-
OrganizationNotFound = "organization.not-found",
|
|
846
|
-
OrganizationInvalidSlug = "organization.invalid-slug",
|
|
847
|
-
OrganizationInvalidName = "organization.invalid-name",
|
|
848
|
-
OrganizationInvalidDescription = "organization.invalid-description",
|
|
849
|
-
OrganizationInvalidLocation = "organization.invalid-location",
|
|
850
|
-
OrganizationInvalidSocialLink = "organization.invalid-social-link",
|
|
851
|
-
OrganizationAlreadyExists = "organization.already-exists",
|
|
852
|
-
OrganizationUnauthorized = "organization.unauthorized",
|
|
853
|
-
OrganizationMemberNotFound = "organization.member-not-found",
|
|
854
|
-
OrganizationMemberInvalidRole = "organization.member-invalid-role",
|
|
855
|
-
OrganizationMemberAlreadyExists = "organization.member-already-exists",
|
|
856
|
-
EventNotFound = "event.not-found",
|
|
857
|
-
EventInvalidTitle = "event.invalid-title",
|
|
858
|
-
EventInvalidDescription = "event.invalid-description",
|
|
859
|
-
EventInvalidLocation = "event.invalid-location",
|
|
860
|
-
EventInvalidDates = "event.invalid-dates",
|
|
861
|
-
EventInvalidTickets = "event.invalid-tickets",
|
|
862
|
-
EventInvalidStyles = "event.invalid-styles",
|
|
863
|
-
EventInvalidType = "event.invalid-type",
|
|
864
|
-
EventInvalidVisibility = "event.invalid-visibility",
|
|
865
|
-
EventUnavailable = "event.unavailable",
|
|
866
|
-
EventTicketNotFound = "event.ticket-not-found",
|
|
867
|
-
EventTicketUnavailable = "event.ticket-unavailable",
|
|
868
|
-
EventTicketInvalidQuantity = "event.ticket-invalid-quantity",
|
|
869
|
-
OrderNotFound = "order.not-found",
|
|
870
|
-
OrderInvalidStatus = "order.invalid-status",
|
|
871
|
-
OrderInvalidPayment = "order.invalid-payment",
|
|
872
|
-
OrderPaymentFailed = "order.payment-failed",
|
|
873
|
-
OrderAlreadyPaid = "order.already-paid",
|
|
874
|
-
OrderCancelled = "order.cancelled",
|
|
875
|
-
OrderRefunded = "order.refunded",
|
|
876
|
-
OrderExpired = "order.expired",
|
|
877
|
-
BookingNotFound = "booking.not-found",
|
|
878
|
-
BookingInvalidStatus = "booking.invalid-status",
|
|
879
|
-
BookingInvalidTickets = "booking.invalid-tickets",
|
|
880
|
-
BookingTicketNotFound = "booking.ticket-not-found",
|
|
881
|
-
BookingTicketInvalidToken = "booking.ticket-invalid-token",
|
|
882
|
-
BookingTicketExpired = "booking.ticket-expired",
|
|
883
|
-
BookingTicketUsed = "booking.ticket-used",
|
|
884
|
-
FileNotFound = "file.not-found",
|
|
885
|
-
FileInvalidType = "file.invalid-type",
|
|
886
|
-
FileTooLarge = "file.too-large",
|
|
887
|
-
FileUploadFailed = "file.upload-failed",
|
|
888
|
-
ValidationError = "validation.error",
|
|
889
|
-
DatabaseError = "database.error",
|
|
890
|
-
InternalServerError = "server.internal-error",
|
|
891
|
-
NotFound = "not-found",
|
|
892
|
-
BadRequest = "bad-request",
|
|
893
|
-
Unauthorized = "unauthorized",
|
|
894
|
-
Forbidden = "forbidden",
|
|
895
|
-
TooManyRequests = "too-many-requests",
|
|
896
|
-
ServiceUnavailable = "service-unavailable",
|
|
897
|
-
TooManyRequestsAuth = "rate-limit.auth",
|
|
898
|
-
TooManyRequestsApi = "rate-limit.api",
|
|
899
|
-
WebhookInvalidSignature = "webhook.invalid-signature",
|
|
900
|
-
WebhookInvalidEvent = "webhook.invalid-event",
|
|
901
|
-
WebhookProcessingFailed = "webhook.processing-failed",
|
|
902
|
-
PaymentRequired = "payment.required",
|
|
903
|
-
PaymentMethodRequired = "payment.method-required",
|
|
904
|
-
PaymentFailed = "payment.failed",
|
|
905
|
-
PaymentCancelled = "payment.cancelled",
|
|
906
|
-
PaymentRefunded = "payment.refunded",
|
|
907
|
-
BillingInvalidAccount = "billing.invalid-account",
|
|
908
|
-
BillingAccountRequired = "billing.account-required",
|
|
909
|
-
NotificationInvalidType = "notification.invalid-type",
|
|
910
|
-
NotificationSendingFailed = "notification.sending-failed",
|
|
911
|
-
CacheError = "cache.error",
|
|
912
|
-
CacheMiss = "cache.miss",
|
|
913
|
-
ExternalServiceError = "external-service.error",
|
|
914
|
-
ExternalServiceTimeout = "external-service.timeout",
|
|
915
|
-
ExternalServiceUnavailable = "external-service.unavailable"
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
declare enum FeedType {
|
|
919
|
-
Following = "following",
|
|
920
|
-
Discover = "discover"
|
|
921
|
-
}
|
|
922
|
-
type FeedPost = UserPost | OrganizationEvent[];
|
|
923
|
-
type FeedEndpoints = Endpoint<"GET", "/feed/following", ArrayResult<FeedPost>, ArrayOptions<FeedPost>> | Endpoint<"GET", "/feed/discover", ArrayResult<FeedPost>, ArrayOptions<FeedPost>>;
|
|
924
|
-
|
|
925
|
-
interface Health<T extends string = string> extends HealthCheckResult {
|
|
926
|
-
info?: Record<T, HealthIndicatorResult[T]>;
|
|
927
|
-
error?: Record<T, HealthIndicatorResult[T]>;
|
|
928
|
-
details: Record<T, HealthIndicatorResult[T]>;
|
|
929
|
-
}
|
|
930
|
-
type MemorySnapshot = {
|
|
931
|
-
heapUsed: number;
|
|
932
|
-
heapTotal: number;
|
|
933
|
-
rss: number;
|
|
934
|
-
external: number;
|
|
935
|
-
};
|
|
936
|
-
type HealthMemory = {
|
|
937
|
-
before: MemorySnapshot;
|
|
938
|
-
afterGc: MemorySnapshot;
|
|
939
|
-
};
|
|
940
|
-
type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">> | Endpoint<"GET", "/health/memory", HealthMemory>;
|
|
941
|
-
|
|
942
679
|
/**
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
type GeoPoint = {
|
|
951
|
-
type: "Point";
|
|
952
|
-
coordinates: [number, number];
|
|
953
|
-
};
|
|
954
|
-
type Location$1 = {
|
|
955
|
-
name?: string;
|
|
956
|
-
address: string;
|
|
957
|
-
zipCode: string;
|
|
958
|
-
city: string;
|
|
959
|
-
country: string;
|
|
960
|
-
geometry: GeoPoint;
|
|
961
|
-
};
|
|
962
|
-
type GeoSearchAggregation<T> = {
|
|
963
|
-
metadata: {
|
|
964
|
-
total: number;
|
|
965
|
-
}[];
|
|
966
|
-
data: T[];
|
|
967
|
-
};
|
|
968
|
-
type Distance<T> = T & {
|
|
969
|
-
distance: number;
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
973
|
-
email: string;
|
|
974
|
-
}>;
|
|
975
|
-
|
|
976
|
-
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
977
|
-
|
|
978
|
-
declare class CreateOrganizationEventStyleDto {
|
|
979
|
-
type: OrganizationEventStyleType;
|
|
980
|
-
emoji: string;
|
|
981
|
-
name: string;
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
declare class UpdateOrganizationEventStyleDto extends CreateOrganizationEventStyleDto {
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
type OrganizationEventStyle = Base & {
|
|
988
|
-
type: OrganizationEventStyleType;
|
|
989
|
-
emoji: string;
|
|
990
|
-
name: string;
|
|
991
|
-
slug: string;
|
|
992
|
-
};
|
|
993
|
-
declare enum OrganizationEventStyleType {
|
|
994
|
-
Music = "music",
|
|
995
|
-
Dress = "dress",
|
|
996
|
-
Sport = "sport",
|
|
997
|
-
Food = "food",
|
|
998
|
-
Art = "art"
|
|
999
|
-
}
|
|
1000
|
-
type OrganizationEventStyleEndpoints = Endpoint<"GET", "/organizations/events/styles", ArrayResult<OrganizationEventStyle>, ArrayOptions<OrganizationEventStyle>> | Endpoint<"GET", "/organizations/events/styles/:styleSlug", OrganizationEventStyle> | Endpoint<"POST", "/organizations/events/styles", OrganizationEventStyle, CreateOrganizationEventStyleDto> | Endpoint<"PUT", "/organizations/events/styles/:styleSlug", OrganizationEventStyle, UpdateOrganizationEventStyleDto> | Endpoint<"DELETE", "/organizations/events/styles/:styleSlug", OrganizationEventStyle>;
|
|
1001
|
-
|
|
1002
|
-
type OrganizationEventViewOptions = {
|
|
1003
|
-
events: string | string[];
|
|
1004
|
-
};
|
|
1005
|
-
type OrganizationEventViewResult = {
|
|
1006
|
-
eventId: string;
|
|
1007
|
-
visitsCount: number;
|
|
1008
|
-
};
|
|
1009
|
-
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
|
|
1010
|
-
|
|
1011
|
-
type OrganizationEventTicket = Base & {
|
|
1012
|
-
name: string;
|
|
1013
|
-
description?: string;
|
|
1014
|
-
price: Stripe__default.Price;
|
|
1015
|
-
product: Stripe__default.Product;
|
|
1016
|
-
fee: number;
|
|
1017
|
-
quantity: number;
|
|
1018
|
-
type: OrganizationEventTicketType;
|
|
1019
|
-
category: OrganizationEventTicketCategory;
|
|
1020
|
-
externalId?: string;
|
|
1021
|
-
isVisible: boolean;
|
|
1022
|
-
isFeesIncluded: boolean;
|
|
1023
|
-
startAt?: Date;
|
|
1024
|
-
endAt?: Date;
|
|
1025
|
-
event: OrganizationEvent;
|
|
1026
|
-
};
|
|
1027
|
-
declare enum OrganizationEventTicketType {
|
|
1028
|
-
ETicket = "e-ticket",
|
|
1029
|
-
Other = "other"
|
|
1030
|
-
}
|
|
1031
|
-
declare enum OrganizationEventTicketCategory {
|
|
1032
|
-
Entry = "entry",
|
|
1033
|
-
Package = "package",
|
|
1034
|
-
Meal = "meal",
|
|
1035
|
-
Drink = "drink",
|
|
1036
|
-
Parking = "parking",
|
|
1037
|
-
Accommodation = "accommodation",
|
|
1038
|
-
Camping = "camping",
|
|
1039
|
-
Locker = "locker",
|
|
1040
|
-
Shuttle = "shuttle",
|
|
1041
|
-
Other = "other"
|
|
1042
|
-
}
|
|
1043
|
-
type OrganizationEventTicketEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket[]> | Endpoint<"GET", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/tickets", OrganizationEventTicket, CreateOrganizationEventTicketDto> | Endpoint<"PUT", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket, UpdateOrganizationEventTicketDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug/events/:eventSlug/tickets/:ticketId", OrganizationEventTicket[], null>;
|
|
680
|
+
* Resolves the canonical {@link OrganizationEventStatus} for an event.
|
|
681
|
+
*
|
|
682
|
+
* Priority: a sticky lifecycle status (cancelled/postponed) overrides time-based
|
|
683
|
+
* resolution. A rescheduled event falls back to temporal status once its new
|
|
684
|
+
* startAt passes, so it can transition into Ongoing/Ended naturally.
|
|
685
|
+
*/
|
|
686
|
+
declare function computeOrganizationEventStatus(event: OrganizationEventStatusInput, now?: Date): OrganizationEventStatus;
|
|
1044
687
|
|
|
1045
688
|
type OrganizationEvent = Base & {
|
|
1046
689
|
title: string;
|
|
@@ -1057,6 +700,16 @@ type OrganizationEvent = Base & {
|
|
|
1057
700
|
styles: OrganizationEventStyle[];
|
|
1058
701
|
artists: EventArtistRef[];
|
|
1059
702
|
status: OrganizationEventStatus;
|
|
703
|
+
lifecycleStatus?: OrganizationEventLifecycleStatus;
|
|
704
|
+
cancelledAt?: Date;
|
|
705
|
+
cancelledReason?: string;
|
|
706
|
+
cancelledBy?: OrganizationEventCancelledBy;
|
|
707
|
+
postponedAt?: Date;
|
|
708
|
+
postponedReason?: string;
|
|
709
|
+
rescheduledFromAt?: Date;
|
|
710
|
+
rescheduledFromEndAt?: Date;
|
|
711
|
+
rescheduledAt?: Date;
|
|
712
|
+
rescheduledReason?: string;
|
|
1060
713
|
viewsCount: number;
|
|
1061
714
|
visitsCount: number;
|
|
1062
715
|
visitorsCount: number;
|
|
@@ -1099,215 +752,645 @@ declare enum OrganizationEventVisibilityType {
|
|
|
1099
752
|
Unlisted = "unlisted",
|
|
1100
753
|
Private = "private"
|
|
1101
754
|
}
|
|
1102
|
-
declare enum OrganizationEventFileType {
|
|
1103
|
-
Flyer = "flyer",
|
|
1104
|
-
Trailer = "trailer"
|
|
755
|
+
declare enum OrganizationEventFileType {
|
|
756
|
+
Flyer = "flyer",
|
|
757
|
+
Trailer = "trailer"
|
|
758
|
+
}
|
|
759
|
+
declare enum OrganizationEventStatus {
|
|
760
|
+
Upcoming = "upcoming",
|
|
761
|
+
Ongoing = "ongoing",
|
|
762
|
+
Ended = "ended",
|
|
763
|
+
Cancelled = "cancelled",
|
|
764
|
+
Postponed = "postponed",
|
|
765
|
+
Rescheduled = "rescheduled"
|
|
766
|
+
}
|
|
767
|
+
declare enum OrganizationEventLifecycleStatus {
|
|
768
|
+
Cancelled = "cancelled",
|
|
769
|
+
Postponed = "postponed",
|
|
770
|
+
Rescheduled = "rescheduled"
|
|
771
|
+
}
|
|
772
|
+
declare enum OrganizationEventCancelledBy {
|
|
773
|
+
Organizer = "organizer",
|
|
774
|
+
Support = "support",
|
|
775
|
+
ExternalSource = "external_source"
|
|
776
|
+
}
|
|
777
|
+
type ExternalOffer = {
|
|
778
|
+
name: string;
|
|
779
|
+
description?: string;
|
|
780
|
+
price: number;
|
|
781
|
+
available: boolean;
|
|
782
|
+
};
|
|
783
|
+
type ExternalContact = {
|
|
784
|
+
type: "phone" | "email" | "website";
|
|
785
|
+
value: string;
|
|
786
|
+
};
|
|
787
|
+
type ExternalSource = {
|
|
788
|
+
organizerName: string;
|
|
789
|
+
contacts: ExternalContact[];
|
|
790
|
+
offers: ExternalOffer[];
|
|
791
|
+
};
|
|
792
|
+
type OrganizationEventRequestResponse = {
|
|
793
|
+
contacts: ExternalContact[];
|
|
794
|
+
};
|
|
795
|
+
type OrganizationEventNearbyOptions = ArrayOptions<OrganizationEvent> & {
|
|
796
|
+
latitude: number;
|
|
797
|
+
longitude: number;
|
|
798
|
+
radius?: number;
|
|
799
|
+
};
|
|
800
|
+
type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
|
|
801
|
+
status?: OrganizationEventStatus | OrganizationEventStatus[];
|
|
802
|
+
types?: OrganizationEventType | OrganizationEventType[];
|
|
803
|
+
styles?: string | string[];
|
|
804
|
+
city?: string;
|
|
805
|
+
country?: string;
|
|
806
|
+
};
|
|
807
|
+
type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
808
|
+
q: string;
|
|
809
|
+
};
|
|
810
|
+
type OrganizationEventCalendar = {
|
|
811
|
+
[date: string]: OrganizationEvent[];
|
|
812
|
+
};
|
|
813
|
+
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> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/cancel", OrganizationEvent, CancelOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/postpone", OrganizationEvent, PostponeOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/reschedule", OrganizationEvent, RescheduleOrganizationEventDto> | Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/reactivate", OrganizationEvent, undefined> | OrganizationEventOrderEndpoints | OrganizationEventPromoCodeEndpoints | OrganizationEventStyleEndpoints | OrganizationEventTicketEndpoints | OrganizationEventViewEndpoints;
|
|
814
|
+
|
|
815
|
+
declare enum UserNotificationType {
|
|
816
|
+
Follow = "follow",
|
|
817
|
+
OrganizationEventCancelled = "organization_event_cancelled",
|
|
818
|
+
OrganizationEventPostponed = "organization_event_postponed",
|
|
819
|
+
OrganizationEventRescheduled = "organization_event_rescheduled"
|
|
820
|
+
}
|
|
821
|
+
type UserNotificationBase = Base & {
|
|
822
|
+
type: UserNotificationType;
|
|
823
|
+
isSeen: boolean;
|
|
824
|
+
};
|
|
825
|
+
type UserNotificationFollow = UserNotificationBase & {
|
|
826
|
+
type: UserNotificationType.Follow;
|
|
827
|
+
follower: UserProfile;
|
|
828
|
+
};
|
|
829
|
+
type UserNotificationOrganizationEventCancelled = UserNotificationBase & {
|
|
830
|
+
type: UserNotificationType.OrganizationEventCancelled;
|
|
831
|
+
event: OrganizationEvent;
|
|
832
|
+
reason?: string;
|
|
833
|
+
refundAmount?: number;
|
|
834
|
+
refundStatus?: OrderRefundStatus;
|
|
835
|
+
};
|
|
836
|
+
type UserNotificationOrganizationEventPostponed = UserNotificationBase & {
|
|
837
|
+
type: UserNotificationType.OrganizationEventPostponed;
|
|
838
|
+
event: OrganizationEvent;
|
|
839
|
+
reason?: string;
|
|
840
|
+
};
|
|
841
|
+
type UserNotificationOrganizationEventRescheduled = UserNotificationBase & {
|
|
842
|
+
type: UserNotificationType.OrganizationEventRescheduled;
|
|
843
|
+
event: OrganizationEvent;
|
|
844
|
+
reason?: string;
|
|
845
|
+
previousStartAt: Date;
|
|
846
|
+
previousEndAt: Date;
|
|
847
|
+
};
|
|
848
|
+
type UserNotification = UserNotificationFollow | UserNotificationOrganizationEventCancelled | UserNotificationOrganizationEventPostponed | UserNotificationOrganizationEventRescheduled;
|
|
849
|
+
type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
|
|
850
|
+
unseen?: boolean;
|
|
851
|
+
}> | Endpoint<"PUT", "/users/~me/notifications/read", void, undefined>;
|
|
852
|
+
|
|
853
|
+
declare class CreateUserPostCommentDto {
|
|
854
|
+
content: string;
|
|
855
|
+
replyToId?: string;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
declare class UpdateUserPostCommentDto {
|
|
859
|
+
content: string;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
declare class CreateUserPostDto {
|
|
863
|
+
content?: string;
|
|
864
|
+
mediaUrls: string[];
|
|
865
|
+
visibility?: UserPostVisibility;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare class CreateUserPostRepostDto {
|
|
869
|
+
comment?: string;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
declare class UpdateUserPostDto {
|
|
873
|
+
content?: string;
|
|
874
|
+
visibility?: UserPostVisibility;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
type UserPostComment = Base & {
|
|
878
|
+
post: UserPost;
|
|
879
|
+
author: UserProfile;
|
|
880
|
+
content: string;
|
|
881
|
+
replyTo?: UserPostComment;
|
|
882
|
+
isEdited: boolean;
|
|
883
|
+
editedAt?: Date;
|
|
884
|
+
};
|
|
885
|
+
type UserPostCommentEndpoints = Endpoint<"GET", "/users/@:username/posts/:postId/comments", ArrayResult<UserPostComment>, ArrayOptions<UserPostComment>> | Endpoint<"POST", "/users/~me/posts/:postId/comments", UserPostComment, CreateUserPostCommentDto> | Endpoint<"PUT", "/users/~me/posts/:postId/comments/:commentId", UserPostComment, UpdateUserPostCommentDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/comments/:commentId", void, null>;
|
|
886
|
+
|
|
887
|
+
declare enum UserPostMediaType {
|
|
888
|
+
Image = "image",
|
|
889
|
+
Video = "video"
|
|
890
|
+
}
|
|
891
|
+
type UserPostMedia = {
|
|
892
|
+
url: string;
|
|
893
|
+
type: UserPostMediaType;
|
|
894
|
+
width: number;
|
|
895
|
+
height: number;
|
|
896
|
+
description?: string;
|
|
897
|
+
isNSFW: boolean;
|
|
898
|
+
thumbnailUrl?: string;
|
|
899
|
+
duration?: number;
|
|
900
|
+
};
|
|
901
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
|
|
902
|
+
|
|
903
|
+
type UserPostRepost = Base & {
|
|
904
|
+
originalPost: UserPost;
|
|
905
|
+
author: UserProfile;
|
|
906
|
+
comment?: string;
|
|
907
|
+
};
|
|
908
|
+
type UserPostRepostEndpoints = Endpoint<"GET", "/users/@:username/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"GET", "/users/@:username/posts/:postId/reposts", ArrayResult<UserPostRepost>, ArrayOptions<UserPostRepost>> | Endpoint<"POST", "/users/~me/posts/:postId/reposts", UserPostRepost, CreateUserPostRepostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId/reposts", void, undefined>;
|
|
909
|
+
|
|
910
|
+
type UserPostViewOptions = {
|
|
911
|
+
posts: string | string[];
|
|
912
|
+
};
|
|
913
|
+
type UserPostViewResult = {
|
|
914
|
+
postId: string;
|
|
915
|
+
visitsCount: number;
|
|
916
|
+
};
|
|
917
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
|
|
918
|
+
|
|
919
|
+
declare enum UserPostVisibility {
|
|
920
|
+
Public = "public",
|
|
921
|
+
Followers = "followers",
|
|
922
|
+
Private = "private"
|
|
923
|
+
}
|
|
924
|
+
type UserPost = Base & {
|
|
925
|
+
author: UserProfile;
|
|
926
|
+
content?: string;
|
|
927
|
+
media: UserPostMedia[];
|
|
928
|
+
visibility: UserPostVisibility;
|
|
929
|
+
metrics: {
|
|
930
|
+
reposts: number;
|
|
931
|
+
comments: number;
|
|
932
|
+
views: number;
|
|
933
|
+
visits: number;
|
|
934
|
+
visitors: number;
|
|
935
|
+
};
|
|
936
|
+
isReposted?: boolean;
|
|
937
|
+
isEdited: boolean;
|
|
938
|
+
editedAt?: Date;
|
|
939
|
+
};
|
|
940
|
+
type UserPostEndpoints = Endpoint<"GET", "/users/@:username/posts", ArrayResult<UserPost>, ArrayOptions<UserPost>> | Endpoint<"GET", "/users/@:username/posts/:postId", UserPost> | Endpoint<"POST", "/users/~me/posts", UserPost, CreateUserPostDto> | Endpoint<"PUT", "/users/~me/posts/:postId", UserPost, UpdateUserPostDto> | Endpoint<"DELETE", "/users/~me/posts/:postId", void, undefined> | UserPostCommentEndpoints | UserPostRepostEndpoints | UserPostViewEndpoints | UserPostMediaEndpoints;
|
|
941
|
+
|
|
942
|
+
type UserCustomer = UserProfile & {
|
|
943
|
+
email?: string;
|
|
944
|
+
phoneNumber?: string;
|
|
945
|
+
firstName: string;
|
|
946
|
+
lastName: string;
|
|
947
|
+
fullName: string;
|
|
948
|
+
metadata: UserCustomerMetadata;
|
|
949
|
+
};
|
|
950
|
+
type UserCustomerMetadata = UserProfileMetadata & {
|
|
951
|
+
bookingsCount: number;
|
|
952
|
+
eventsAttendedCount: number;
|
|
953
|
+
totalSpent: number;
|
|
954
|
+
lastBookingAt?: Date;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
type UserToken = Omit<Base, "updatedAt"> & {
|
|
958
|
+
type: UserTokenType;
|
|
959
|
+
value: string;
|
|
960
|
+
expiresAt: Date;
|
|
961
|
+
user?: User;
|
|
962
|
+
identifier?: string;
|
|
963
|
+
};
|
|
964
|
+
declare enum UserTokenType {
|
|
965
|
+
Authentication = "authentication",
|
|
966
|
+
BookingTicket = "booking_ticket",
|
|
967
|
+
OrganizationInvite = "organization_invite",
|
|
968
|
+
PasswordRecovery = "password_recovery",
|
|
969
|
+
EmailValidation = "email_validation",
|
|
970
|
+
PhoneValidation = "phone_validation"
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type User = Base & {
|
|
974
|
+
identifier: UserIdentifier;
|
|
975
|
+
password?: string;
|
|
976
|
+
identity: UserIdentity;
|
|
977
|
+
role: UserRole;
|
|
978
|
+
addresses: Location$1[];
|
|
979
|
+
preferences: UserPreferences;
|
|
980
|
+
connections: UserConnection[];
|
|
981
|
+
oauthProviders: UserOAuthProvider[];
|
|
982
|
+
isVerified: boolean;
|
|
983
|
+
isOfficial: boolean;
|
|
984
|
+
};
|
|
985
|
+
type UserIdentifier = {
|
|
986
|
+
email?: string;
|
|
987
|
+
emailVerified?: boolean;
|
|
988
|
+
phoneNumber?: string;
|
|
989
|
+
phoneNumberVerified?: boolean;
|
|
990
|
+
username: string;
|
|
991
|
+
};
|
|
992
|
+
type UserIdentity = UserProfile & {
|
|
993
|
+
firstName: string;
|
|
994
|
+
lastName: string;
|
|
995
|
+
fullName: string;
|
|
996
|
+
gender: UserIdentityGender;
|
|
997
|
+
birthDate: Date;
|
|
998
|
+
birthDateLastUpdatedAt?: Date;
|
|
999
|
+
};
|
|
1000
|
+
declare enum UserRole {
|
|
1001
|
+
User = "user",
|
|
1002
|
+
Developer = "developer",
|
|
1003
|
+
Admin = "admin"
|
|
1004
|
+
}
|
|
1005
|
+
declare enum UserIdentityGender {
|
|
1006
|
+
Male = "male",
|
|
1007
|
+
Female = "female",
|
|
1008
|
+
NonBinary = "non-binary"
|
|
1009
|
+
}
|
|
1010
|
+
type UserPreferences = {
|
|
1011
|
+
language: Language;
|
|
1012
|
+
currency: Currency;
|
|
1013
|
+
notifications: {
|
|
1014
|
+
email: {
|
|
1015
|
+
newsletter: boolean;
|
|
1016
|
+
message: boolean;
|
|
1017
|
+
};
|
|
1018
|
+
push: {
|
|
1019
|
+
message: boolean;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
type UserConnection = {
|
|
1024
|
+
ip: string;
|
|
1025
|
+
os: UserConnectionOS;
|
|
1026
|
+
device: UserConnectionDevice;
|
|
1027
|
+
client: UserConnectionClient;
|
|
1028
|
+
updatedAt: Date;
|
|
1029
|
+
createdAt: Date;
|
|
1030
|
+
};
|
|
1031
|
+
type UserOAuthProvider = Base & {
|
|
1032
|
+
provider: OAuth2Provider;
|
|
1033
|
+
providerId: string;
|
|
1034
|
+
displayName?: string;
|
|
1035
|
+
username?: string;
|
|
1036
|
+
email?: string;
|
|
1037
|
+
emailVerified: boolean;
|
|
1038
|
+
lastUsedAt?: Date;
|
|
1039
|
+
};
|
|
1040
|
+
type UserConnectionOS = {
|
|
1041
|
+
name: string;
|
|
1042
|
+
version: string;
|
|
1043
|
+
};
|
|
1044
|
+
type UserConnectionDevice = {
|
|
1045
|
+
type: string;
|
|
1046
|
+
brand: string;
|
|
1047
|
+
};
|
|
1048
|
+
type UserConnectionClient = {
|
|
1049
|
+
name: string;
|
|
1050
|
+
version: string;
|
|
1051
|
+
};
|
|
1052
|
+
declare enum UserFileType {
|
|
1053
|
+
Avatar = "avatar",
|
|
1054
|
+
Banner = "banner"
|
|
1055
|
+
}
|
|
1056
|
+
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
1057
|
+
exists: boolean;
|
|
1058
|
+
identifier: Partial<UserIdentifier>;
|
|
1059
|
+
suggestions?: string[];
|
|
1060
|
+
}, {
|
|
1061
|
+
identifier: boolean;
|
|
1062
|
+
suggestions?: boolean;
|
|
1063
|
+
}> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
|
|
1064
|
+
|
|
1065
|
+
declare enum OAuth2Provider {
|
|
1066
|
+
Google = "google",
|
|
1067
|
+
Facebook = "facebook",
|
|
1068
|
+
Twitter = "twitter"
|
|
1105
1069
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1070
|
+
type AuthMethod = OAuth2Provider | "password";
|
|
1071
|
+
declare enum AuthFlow {
|
|
1072
|
+
SignUp = "signup",
|
|
1073
|
+
SignIn = "signin"
|
|
1110
1074
|
}
|
|
1111
|
-
type
|
|
1112
|
-
|
|
1113
|
-
description?: string;
|
|
1114
|
-
price: number;
|
|
1115
|
-
available: boolean;
|
|
1116
|
-
};
|
|
1117
|
-
type ExternalContact = {
|
|
1118
|
-
type: "phone" | "email" | "website";
|
|
1119
|
-
value: string;
|
|
1075
|
+
type RecoveryResponse = {
|
|
1076
|
+
to: string;
|
|
1120
1077
|
};
|
|
1121
|
-
type
|
|
1122
|
-
|
|
1123
|
-
contacts: ExternalContact[];
|
|
1124
|
-
offers: ExternalOffer[];
|
|
1078
|
+
type VerifyEmailResponse = {
|
|
1079
|
+
to: string;
|
|
1125
1080
|
};
|
|
1126
|
-
type
|
|
1127
|
-
|
|
1081
|
+
type AuthResponse = {
|
|
1082
|
+
user: User;
|
|
1083
|
+
accessToken: string;
|
|
1084
|
+
refreshToken: string;
|
|
1085
|
+
flow: AuthFlow;
|
|
1128
1086
|
};
|
|
1129
|
-
type
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1087
|
+
type AuthEndpoints = Endpoint<"POST", "/auth/sign-up", AuthResponse, CreateUserDto> | Endpoint<"POST", "/auth/sign-in", AuthResponse, SignInUserDto> | Endpoint<"POST", "/auth/sign-out", null, undefined> | Endpoint<"POST", "/auth/refresh-token", AuthResponse, undefined> | Endpoint<"POST", "/auth/recovery", RecoveryResponse, RecoveryDto> | Endpoint<"POST", "/auth/recovery/reset", null, RecoveryResetDto> | Endpoint<"GET", "/oauth2/:provider", void> | Endpoint<"GET", "/oauth2/:provider/callback", void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Google}/callback`, void> | Endpoint<"POST", `/oauth2/${OAuth2Provider.Google}/one-tap`, AuthResponse, GoogleOneTapDto> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Facebook}/callback`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}`, void> | Endpoint<"GET", `/oauth2/${OAuth2Provider.Twitter}/callback`, void> | Endpoint<"DELETE", "/oauth2/:provider", void, undefined> | Endpoint<"POST", "/auth/verify/email/send", VerifyEmailResponse, undefined> | Endpoint<"POST", "/auth/verify/email/confirm", null, VerifyEmailConfirmDto>;
|
|
1088
|
+
|
|
1089
|
+
type CareersOffice = {
|
|
1090
|
+
id: number | null;
|
|
1091
|
+
isDefault: boolean | null;
|
|
1092
|
+
name: string | null;
|
|
1093
|
+
city: string | null;
|
|
1094
|
+
countryIso: string | null;
|
|
1133
1095
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1096
|
+
declare enum CareersJobStatus {
|
|
1097
|
+
All = "ALL",
|
|
1098
|
+
Online = "ONLINE",
|
|
1099
|
+
Archived = "ARCHIVED"
|
|
1100
|
+
}
|
|
1101
|
+
declare enum CareersWorkplaceType {
|
|
1102
|
+
Onsite = "ONSITE",
|
|
1103
|
+
Remote = "REMOTE",
|
|
1104
|
+
Hybrid = "HYBRID"
|
|
1105
|
+
}
|
|
1106
|
+
declare enum CareersRemoteType {
|
|
1107
|
+
Anywhere = "ANYWHERE",
|
|
1108
|
+
Country = "COUNTRY"
|
|
1109
|
+
}
|
|
1110
|
+
type CareersJob = {
|
|
1111
|
+
id: number;
|
|
1112
|
+
createdAt: string;
|
|
1113
|
+
lastUpdatedAt: string;
|
|
1114
|
+
externalId: null | string;
|
|
1115
|
+
title: string;
|
|
1116
|
+
status: CareersJobStatus;
|
|
1117
|
+
remote: boolean;
|
|
1118
|
+
office: CareersOffice;
|
|
1119
|
+
workplaceType: CareersWorkplaceType;
|
|
1120
|
+
remoteType?: CareersRemoteType;
|
|
1121
|
+
description?: string;
|
|
1122
|
+
categoryId?: number;
|
|
1123
|
+
employmentTypeId?: number;
|
|
1140
1124
|
};
|
|
1141
|
-
type
|
|
1142
|
-
|
|
1125
|
+
type CareersCategory = {
|
|
1126
|
+
slug: string;
|
|
1127
|
+
name: string;
|
|
1128
|
+
subCategories?: (CareersCategory & {
|
|
1129
|
+
id: number;
|
|
1130
|
+
})[];
|
|
1143
1131
|
};
|
|
1144
|
-
type
|
|
1145
|
-
|
|
1132
|
+
type CareersEmploymentType = {
|
|
1133
|
+
id: number;
|
|
1134
|
+
name: string;
|
|
1135
|
+
slug: string;
|
|
1146
1136
|
};
|
|
1147
|
-
type
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
current: number;
|
|
1158
|
-
previous: number;
|
|
1159
|
-
percentageChange: number;
|
|
1160
|
-
};
|
|
1161
|
-
totalTicketsSold: {
|
|
1162
|
-
current: number;
|
|
1163
|
-
previous: number;
|
|
1164
|
-
percentageChange: number;
|
|
1165
|
-
};
|
|
1166
|
-
activeEvents: number;
|
|
1167
|
-
};
|
|
1168
|
-
chartData: {
|
|
1169
|
-
date: string;
|
|
1170
|
-
revenues: number;
|
|
1171
|
-
orders: number;
|
|
1172
|
-
ticketsSold: number;
|
|
1173
|
-
events: number;
|
|
1174
|
-
}[];
|
|
1137
|
+
type CareersJobsOptions = ArrayOptions<CareersJob> & {
|
|
1138
|
+
createdAtGte?: string;
|
|
1139
|
+
createdAtLt?: string;
|
|
1140
|
+
updatedAtGte?: string;
|
|
1141
|
+
updatedAtLt?: string;
|
|
1142
|
+
status?: CareersJobStatus;
|
|
1143
|
+
content?: boolean;
|
|
1144
|
+
titleLike?: string;
|
|
1145
|
+
countryCode?: string;
|
|
1146
|
+
externalId?: string;
|
|
1175
1147
|
};
|
|
1176
|
-
type
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
views: number;
|
|
1180
|
-
visits: number;
|
|
1181
|
-
visitors: number;
|
|
1182
|
-
totalRevenue: number;
|
|
1183
|
-
totalOrders: number;
|
|
1184
|
-
totalTicketsSold: number;
|
|
1185
|
-
};
|
|
1148
|
+
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
1149
|
+
countryCode?: string;
|
|
1150
|
+
cityNameLike?: string;
|
|
1186
1151
|
};
|
|
1187
|
-
type
|
|
1188
|
-
|
|
1189
|
-
startDate?: string;
|
|
1190
|
-
endDate?: string;
|
|
1152
|
+
type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
|
|
1153
|
+
language?: string;
|
|
1191
1154
|
};
|
|
1192
|
-
type
|
|
1193
|
-
|
|
1155
|
+
type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
|
|
1156
|
+
language?: string;
|
|
1194
1157
|
};
|
|
1195
|
-
type
|
|
1158
|
+
type CareerEndpoints = Endpoint<"GET", "/careers/categories", ArrayResult<CareersCategory>, CareersCategoriesOptions> | Endpoint<"GET", "/careers/employmentTypes", ArrayResult<CareersEmploymentType>, CareersEmploymentTypesOptions> | Endpoint<"GET", "/careers/jobs", ArrayResult<CareersJob>, CareersJobsOptions> | Endpoint<"GET", "/careers/jobs/:jobId", CareersJob, {
|
|
1159
|
+
jobId: number;
|
|
1160
|
+
}> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
|
|
1196
1161
|
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1162
|
+
declare enum ChannelMessageReportReason {
|
|
1163
|
+
Dislike = "dislike",
|
|
1164
|
+
HarassmentSelf = "harassment_self",
|
|
1165
|
+
HarassmentOther = "harassment_other",
|
|
1166
|
+
SexualHarassmentSelf = "sexual_harassment_self",
|
|
1167
|
+
NudesSelf = "nudes_self",
|
|
1168
|
+
SexualContent = "sexual_content",
|
|
1169
|
+
ChildInvolved = "child_involved",
|
|
1170
|
+
ThreatTarget = "threat_target",
|
|
1171
|
+
ViolentContent = "violent_content",
|
|
1172
|
+
HateSpeech = "hate_speech",
|
|
1173
|
+
Terrorism = "terrorism",
|
|
1174
|
+
DrugSale = "drug_sale",
|
|
1175
|
+
WeaponSale = "weapon_sale",
|
|
1176
|
+
SelfHarmConcern = "self_harm_concern",
|
|
1177
|
+
SelfHarmPromotion = "self_harm_promotion",
|
|
1178
|
+
Other = "other"
|
|
1179
|
+
}
|
|
1180
|
+
type ChannelMessageReadByEntry = {
|
|
1181
|
+
participant: ChannelParticipant;
|
|
1182
|
+
readAt: Date;
|
|
1205
1183
|
};
|
|
1206
|
-
type
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
totalSpent: number;
|
|
1210
|
-
lastBookingAt?: Date;
|
|
1184
|
+
type ChannelMessageReaction = {
|
|
1185
|
+
emoji: string;
|
|
1186
|
+
participants: ChannelParticipant[];
|
|
1211
1187
|
};
|
|
1212
|
-
type
|
|
1188
|
+
type ChannelMessage = Base & {
|
|
1189
|
+
channel: Channel;
|
|
1190
|
+
sender: ChannelParticipant;
|
|
1191
|
+
content?: string;
|
|
1192
|
+
attachments: string[];
|
|
1193
|
+
isSent: boolean;
|
|
1194
|
+
isDelivered: boolean;
|
|
1195
|
+
isRead: boolean;
|
|
1196
|
+
readBy?: ChannelMessageReadByEntry[];
|
|
1197
|
+
isEdited: boolean;
|
|
1198
|
+
editedAt?: Date;
|
|
1199
|
+
replyTo?: ChannelMessage;
|
|
1200
|
+
reactions?: ChannelMessageReaction[];
|
|
1201
|
+
};
|
|
1202
|
+
type ChannelMessageEndpoints = Endpoint<"GET", "/channels/~me/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages", ArrayResult<ChannelMessage>, ArrayOptions<ChannelMessage>> | Endpoint<"GET", "/channels/~me/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage> | Endpoint<"POST", "/channels/~me/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages", ChannelMessage, CreateChannelMessageDto> | Endpoint<"PUT", "/channels/~me/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId/messages/:messageId", ChannelMessage, UpdateChannelMessageDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions", void, AddReactionDto> | Endpoint<"DELETE", "/channels/~me/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/messages/:messageId/reactions/:emoji", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/read", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/files", string, FormData> | Endpoint<"POST", "/channels/~me/:channelId/messages/:messageId/report", void, ReportChannelMessageDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/messages/:messageId/report", void, ReportChannelMessageDto>;
|
|
1213
1203
|
|
|
1214
|
-
declare enum
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1204
|
+
declare enum ChannelType {
|
|
1205
|
+
Private = "private",
|
|
1206
|
+
Group = "group"
|
|
1207
|
+
}
|
|
1208
|
+
declare enum ChannelMemberRole {
|
|
1209
|
+
Member = "member",
|
|
1210
|
+
Admin = "admin"
|
|
1211
|
+
}
|
|
1212
|
+
type ChannelParticipant = Profile;
|
|
1213
|
+
declare enum ChannelStatus {
|
|
1214
|
+
Sent = "sent",
|
|
1215
|
+
Delivered = "delivered",
|
|
1216
|
+
Read = "read",
|
|
1217
|
+
Received = "received",
|
|
1218
|
+
Opened = "opened"
|
|
1227
1219
|
}
|
|
1228
|
-
type
|
|
1229
|
-
type:
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1220
|
+
type Channel = Base & {
|
|
1221
|
+
type: ChannelType;
|
|
1222
|
+
participants: ChannelParticipant[];
|
|
1223
|
+
name?: string;
|
|
1224
|
+
lastMessageAt?: Date;
|
|
1225
|
+
status?: ChannelStatus;
|
|
1226
|
+
unreadCount?: number;
|
|
1233
1227
|
};
|
|
1234
|
-
type
|
|
1235
|
-
|
|
1228
|
+
type ChannelMember = {
|
|
1229
|
+
participant: ChannelParticipant;
|
|
1230
|
+
joinedAt: Date;
|
|
1231
|
+
role?: ChannelMemberRole;
|
|
1232
|
+
lastReadAt?: Date;
|
|
1236
1233
|
};
|
|
1237
|
-
type
|
|
1238
|
-
type OrganizationNotificationEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/notifications", ArrayResult<OrganizationNotification>, ArrayOptions<OrganizationNotification>> | Endpoint<"GET", "/organizations/@:organizationSlug/notifications/count", number, {
|
|
1234
|
+
type UserChannelCountOptions = {
|
|
1239
1235
|
unseen?: boolean;
|
|
1240
|
-
}> | Endpoint<"PUT", "/organizations/@:organizationSlug/notifications/read", void, undefined>;
|
|
1241
|
-
|
|
1242
|
-
type OrganizationOrder = Omit<Order, "user"> & {
|
|
1243
|
-
customer: OrganizationCustomer;
|
|
1244
1236
|
};
|
|
1245
|
-
type
|
|
1237
|
+
type ChannelEndpoints = Endpoint<"GET", "/channels/~me", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/channels/:organizationSlug", ArrayResult<Channel>, ArrayOptions<Channel>> | Endpoint<"GET", "/users/~me/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/users/@:organizationSlug/channels/count", number, UserChannelCountOptions> | Endpoint<"GET", "/channels/~me/:channelId", Channel> | Endpoint<"GET", "/channels/:organizationSlug/:channelId", Channel> | Endpoint<"POST", "/channels/~me", Channel, CreateChannelDto> | Endpoint<"POST", "/channels/:organizationSlug", Channel, CreateChannelDto> | Endpoint<"PUT", "/channels/~me/:channelId", Channel, UpdateChannelDto> | Endpoint<"PUT", "/channels/:organizationSlug/:channelId", Channel, UpdateChannelDto> | Endpoint<"DELETE", "/channels/~me/:channelId", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId", void, undefined> | Endpoint<"POST", "/channels/~me/:channelId/participants", void, AddParticipantDto> | Endpoint<"POST", "/channels/:organizationSlug/:channelId/participants", void, AddParticipantDto> | Endpoint<"DELETE", "/channels/~me/:channelId/participants/:username", void, undefined> | Endpoint<"DELETE", "/channels/:organizationSlug/:channelId/participants/:username", void, undefined> | Endpoint<"GET", "/channels/~me/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>> | Endpoint<"GET", "/channels/:organizationSlug/:channelId/members", ArrayResult<ChannelMember>, ArrayOptions<ChannelMember>>;
|
|
1246
1238
|
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1239
|
+
declare enum ErrorType {
|
|
1240
|
+
AuthEmailAlreadyExists = "auth.email-already-exists",
|
|
1241
|
+
AuthUsernameAlreadyExists = "auth.username-already-exists",
|
|
1242
|
+
AuthPhoneNumberAlreadyExists = "auth.phone-number-already-exists",
|
|
1243
|
+
AuthInvalidCredentials = "auth.invalid-credentials",
|
|
1244
|
+
AuthUserNotFound = "auth.user-not-found",
|
|
1245
|
+
AuthInvalidToken = "auth.invalid-token",
|
|
1246
|
+
AuthTokenExpired = "auth.token-expired",
|
|
1247
|
+
AuthUnauthorized = "auth.unauthorized",
|
|
1248
|
+
AuthPasswordMismatch = "auth.password-mismatch",
|
|
1249
|
+
AuthInvalidOAuth2Provider = "auth.invalid-oauth2-provider",
|
|
1250
|
+
AuthOAuth2Error = "auth.oauth2-error",
|
|
1251
|
+
UserNotFound = "user.not-found",
|
|
1252
|
+
UserInvalidUsername = "user.invalid-username",
|
|
1253
|
+
UserInvalidEmail = "user.invalid-email",
|
|
1254
|
+
UserInvalidPhoneNumber = "user.invalid-phone-number",
|
|
1255
|
+
UserInvalidPassword = "user.invalid-password",
|
|
1256
|
+
UserInvalidBirthDate = "user.invalid-birth-date",
|
|
1257
|
+
UserInvalidGender = "user.invalid-gender",
|
|
1258
|
+
UserInvalidRole = "user.invalid-role",
|
|
1259
|
+
UserInvalidPreferences = "user.invalid-preferences",
|
|
1260
|
+
UserInvalidLocation = "user.invalid-location",
|
|
1261
|
+
UserInvalidFile = "user.invalid-file",
|
|
1262
|
+
UserFileTooLarge = "user.file-too-large",
|
|
1263
|
+
UserUnsupportedFileType = "user.unsupported-file-type",
|
|
1264
|
+
OrganizationNotFound = "organization.not-found",
|
|
1265
|
+
OrganizationInvalidSlug = "organization.invalid-slug",
|
|
1266
|
+
OrganizationInvalidName = "organization.invalid-name",
|
|
1267
|
+
OrganizationInvalidDescription = "organization.invalid-description",
|
|
1268
|
+
OrganizationInvalidLocation = "organization.invalid-location",
|
|
1269
|
+
OrganizationInvalidSocialLink = "organization.invalid-social-link",
|
|
1270
|
+
OrganizationAlreadyExists = "organization.already-exists",
|
|
1271
|
+
OrganizationUnauthorized = "organization.unauthorized",
|
|
1272
|
+
OrganizationMemberNotFound = "organization.member-not-found",
|
|
1273
|
+
OrganizationMemberInvalidRole = "organization.member-invalid-role",
|
|
1274
|
+
OrganizationMemberAlreadyExists = "organization.member-already-exists",
|
|
1275
|
+
EventNotFound = "event.not-found",
|
|
1276
|
+
EventInvalidTitle = "event.invalid-title",
|
|
1277
|
+
EventInvalidDescription = "event.invalid-description",
|
|
1278
|
+
EventInvalidLocation = "event.invalid-location",
|
|
1279
|
+
EventInvalidDates = "event.invalid-dates",
|
|
1280
|
+
EventInvalidTickets = "event.invalid-tickets",
|
|
1281
|
+
EventInvalidStyles = "event.invalid-styles",
|
|
1282
|
+
EventInvalidType = "event.invalid-type",
|
|
1283
|
+
EventInvalidVisibility = "event.invalid-visibility",
|
|
1284
|
+
EventUnavailable = "event.unavailable",
|
|
1285
|
+
EventTicketNotFound = "event.ticket-not-found",
|
|
1286
|
+
EventTicketUnavailable = "event.ticket-unavailable",
|
|
1287
|
+
EventTicketInvalidQuantity = "event.ticket-invalid-quantity",
|
|
1288
|
+
OrderNotFound = "order.not-found",
|
|
1289
|
+
OrderInvalidStatus = "order.invalid-status",
|
|
1290
|
+
OrderInvalidPayment = "order.invalid-payment",
|
|
1291
|
+
OrderPaymentFailed = "order.payment-failed",
|
|
1292
|
+
OrderAlreadyPaid = "order.already-paid",
|
|
1293
|
+
OrderCancelled = "order.cancelled",
|
|
1294
|
+
OrderRefunded = "order.refunded",
|
|
1295
|
+
OrderExpired = "order.expired",
|
|
1296
|
+
BookingNotFound = "booking.not-found",
|
|
1297
|
+
BookingInvalidStatus = "booking.invalid-status",
|
|
1298
|
+
BookingInvalidTickets = "booking.invalid-tickets",
|
|
1299
|
+
BookingTicketNotFound = "booking.ticket-not-found",
|
|
1300
|
+
BookingTicketInvalidToken = "booking.ticket-invalid-token",
|
|
1301
|
+
BookingTicketExpired = "booking.ticket-expired",
|
|
1302
|
+
BookingTicketUsed = "booking.ticket-used",
|
|
1303
|
+
FileNotFound = "file.not-found",
|
|
1304
|
+
FileInvalidType = "file.invalid-type",
|
|
1305
|
+
FileTooLarge = "file.too-large",
|
|
1306
|
+
FileUploadFailed = "file.upload-failed",
|
|
1307
|
+
ValidationError = "validation.error",
|
|
1308
|
+
DatabaseError = "database.error",
|
|
1309
|
+
InternalServerError = "server.internal-error",
|
|
1310
|
+
NotFound = "not-found",
|
|
1311
|
+
BadRequest = "bad-request",
|
|
1312
|
+
Unauthorized = "unauthorized",
|
|
1313
|
+
Forbidden = "forbidden",
|
|
1314
|
+
TooManyRequests = "too-many-requests",
|
|
1315
|
+
ServiceUnavailable = "service-unavailable",
|
|
1316
|
+
TooManyRequestsAuth = "rate-limit.auth",
|
|
1317
|
+
TooManyRequestsApi = "rate-limit.api",
|
|
1318
|
+
WebhookInvalidSignature = "webhook.invalid-signature",
|
|
1319
|
+
WebhookInvalidEvent = "webhook.invalid-event",
|
|
1320
|
+
WebhookProcessingFailed = "webhook.processing-failed",
|
|
1321
|
+
PaymentRequired = "payment.required",
|
|
1322
|
+
PaymentMethodRequired = "payment.method-required",
|
|
1323
|
+
PaymentFailed = "payment.failed",
|
|
1324
|
+
PaymentCancelled = "payment.cancelled",
|
|
1325
|
+
PaymentRefunded = "payment.refunded",
|
|
1326
|
+
BillingInvalidAccount = "billing.invalid-account",
|
|
1327
|
+
BillingAccountRequired = "billing.account-required",
|
|
1328
|
+
NotificationInvalidType = "notification.invalid-type",
|
|
1329
|
+
NotificationSendingFailed = "notification.sending-failed",
|
|
1330
|
+
CacheError = "cache.error",
|
|
1331
|
+
CacheMiss = "cache.miss",
|
|
1332
|
+
ExternalServiceError = "external-service.error",
|
|
1333
|
+
ExternalServiceTimeout = "external-service.timeout",
|
|
1334
|
+
ExternalServiceUnavailable = "external-service.unavailable"
|
|
1256
1335
|
}
|
|
1257
1336
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1337
|
+
declare enum FeedType {
|
|
1338
|
+
Following = "following",
|
|
1339
|
+
Discover = "discover"
|
|
1340
|
+
}
|
|
1341
|
+
type FeedPost = UserPost | OrganizationEvent[];
|
|
1342
|
+
type FeedEndpoints = Endpoint<"GET", "/feed/following", ArrayResult<FeedPost>, ArrayOptions<FeedPost>> | Endpoint<"GET", "/feed/discover", ArrayResult<FeedPost>, ArrayOptions<FeedPost>>;
|
|
1343
|
+
|
|
1344
|
+
interface Health<T extends string = string> extends HealthCheckResult {
|
|
1345
|
+
info?: Record<T, HealthIndicatorResult[T]>;
|
|
1346
|
+
error?: Record<T, HealthIndicatorResult[T]>;
|
|
1347
|
+
details: Record<T, HealthIndicatorResult[T]>;
|
|
1348
|
+
}
|
|
1349
|
+
type MemorySnapshot = {
|
|
1350
|
+
heapUsed: number;
|
|
1351
|
+
heapTotal: number;
|
|
1352
|
+
rss: number;
|
|
1353
|
+
external: number;
|
|
1267
1354
|
};
|
|
1268
|
-
type
|
|
1269
|
-
|
|
1270
|
-
|
|
1355
|
+
type HealthMemory = {
|
|
1356
|
+
before: MemorySnapshot;
|
|
1357
|
+
afterGc: MemorySnapshot;
|
|
1271
1358
|
};
|
|
1272
|
-
type
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1359
|
+
type HealthEndpoints = Endpoint<"GET", "/health", Health<"database" | "app" | "api" | "database">> | Endpoint<"GET", "/health/database", Health<"database">> | Endpoint<"GET", "/health/api", Health<"api">> | Endpoint<"GET", "/health/app", Health<"app">> | Endpoint<"GET", "/health/memory", HealthMemory>;
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Represents a GeoJSON point with specific geographic coordinates.
|
|
1363
|
+
*
|
|
1364
|
+
* @see https://geojson.org/geojson-spec.html#point
|
|
1365
|
+
*
|
|
1366
|
+
* @property {"Point"} type - The type of the geometry, which is always "Point" for a GeoJSON point.
|
|
1367
|
+
* @property {[number, number]} coordinates - The coordinates of the point, represented as [longitude, latitude].
|
|
1368
|
+
*/
|
|
1369
|
+
type GeoPoint = {
|
|
1370
|
+
type: "Point";
|
|
1371
|
+
coordinates: [number, number];
|
|
1372
|
+
};
|
|
1373
|
+
type Location$1 = {
|
|
1374
|
+
name?: string;
|
|
1375
|
+
address: string;
|
|
1376
|
+
zipCode: string;
|
|
1377
|
+
city: string;
|
|
1378
|
+
country: string;
|
|
1379
|
+
geometry: GeoPoint;
|
|
1380
|
+
};
|
|
1381
|
+
type GeoSearchAggregation<T> = {
|
|
1382
|
+
metadata: {
|
|
1383
|
+
total: number;
|
|
1295
1384
|
}[];
|
|
1385
|
+
data: T[];
|
|
1296
1386
|
};
|
|
1297
|
-
type
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
Avatar = "avatar",
|
|
1305
|
-
Banner = "banner"
|
|
1306
|
-
}
|
|
1307
|
-
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
1308
|
-
q: string;
|
|
1309
|
-
limit?: number;
|
|
1310
|
-
}> | Endpoint<"GET", "/organizations", ArrayResult<Organization>, ArrayOptions<Organization>> | Endpoint<"GET", "/organizations/@:organizationSlug", Organization> | Endpoint<"POST", "/organizations", Organization, CreateOrganizationDto> | Endpoint<"PUT", "/organizations/@:organizationSlug", Organization, UpdateOrganizationDto> | Endpoint<"DELETE", "/organizations/@:organizationSlug", Organization, undefined> | Endpoint<"POST", "/organizations/@:organizationSlug/files/:organizationFileType", string, FormData> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/account", OrganizationBillingAccount> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/link", void> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/balance", OrganizationBillingBalance> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/pending", OrganizationBillingPendingRevenue> | Endpoint<"GET", "/organizations/@:organizationSlug/billing/dashboard", void> | OrganizationEventEndpoints | OrganizationMembersEndpoints | OrganizationAnalyticsEndpoints | OrganizationCustomersEndpoints | OrganizationNotificationEndpoints | OrganizationOrdersEndpoints;
|
|
1387
|
+
type Distance<T> = T & {
|
|
1388
|
+
distance: number;
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
1392
|
+
email: string;
|
|
1393
|
+
}>;
|
|
1311
1394
|
|
|
1312
1395
|
type PlaceCountry = Base & {
|
|
1313
1396
|
geonameId: number;
|
|
@@ -1552,10 +1635,6 @@ declare class AddReactionDto {
|
|
|
1552
1635
|
emoji: string;
|
|
1553
1636
|
}
|
|
1554
1637
|
|
|
1555
|
-
declare class ContentOrAttachmentsConstraint implements ValidatorConstraintInterface {
|
|
1556
|
-
validate(_value: unknown, args: ValidationArguments): boolean;
|
|
1557
|
-
defaultMessage(_args: ValidationArguments): string;
|
|
1558
|
-
}
|
|
1559
1638
|
declare class CreateChannelMessageDto {
|
|
1560
1639
|
content?: string;
|
|
1561
1640
|
attachments?: string[];
|
|
@@ -1634,6 +1713,13 @@ declare class CreateOrganizationIdentityDto {
|
|
|
1634
1713
|
links?: string[];
|
|
1635
1714
|
}
|
|
1636
1715
|
|
|
1716
|
+
declare class CancelOrganizationEventDto {
|
|
1717
|
+
reason?: string;
|
|
1718
|
+
refundOrders?: boolean;
|
|
1719
|
+
notifyHolders?: boolean;
|
|
1720
|
+
allowEndedCancel?: boolean;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1637
1723
|
declare class EventArtistDto implements EventArtistRef {
|
|
1638
1724
|
id: string;
|
|
1639
1725
|
permalink: string;
|
|
@@ -1670,11 +1756,6 @@ declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrga
|
|
|
1670
1756
|
endAt?: Date;
|
|
1671
1757
|
}
|
|
1672
1758
|
|
|
1673
|
-
declare class AtLeastOneMediaConstraint implements ValidatorConstraintInterface {
|
|
1674
|
-
validate(_value: unknown, args: ValidationArguments): boolean;
|
|
1675
|
-
defaultMessage(): string;
|
|
1676
|
-
}
|
|
1677
|
-
declare function AtLeastOneMedia(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
|
|
1678
1759
|
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "visitsCount" | "visitorsCount" | "bouncesCount" | "totalDurationSeconds" | "averageViewsPerVisitorCount" | "bounceRate" | "averageVisitDurationSeconds" | "hypeCount" | "minPrice"> & {
|
|
1679
1760
|
slug?: string;
|
|
1680
1761
|
styles: string[];
|
|
@@ -1705,6 +1786,11 @@ declare class CreateOrganizationEventOrderDto {
|
|
|
1705
1786
|
promoCode?: string;
|
|
1706
1787
|
}
|
|
1707
1788
|
|
|
1789
|
+
declare class PostponeOrganizationEventDto {
|
|
1790
|
+
reason?: string;
|
|
1791
|
+
notifyHolders?: boolean;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1708
1794
|
declare class CreateOrganizationEventPromoCodeDto {
|
|
1709
1795
|
code: string;
|
|
1710
1796
|
type: OrganizationEventPromoCodeType;
|
|
@@ -1727,11 +1813,13 @@ declare class UpdateOrganizationEventPromoCodeDto {
|
|
|
1727
1813
|
ticketIds?: string[];
|
|
1728
1814
|
}
|
|
1729
1815
|
|
|
1730
|
-
declare class
|
|
1731
|
-
|
|
1732
|
-
|
|
1816
|
+
declare class RescheduleOrganizationEventDto {
|
|
1817
|
+
startAt: Date;
|
|
1818
|
+
endAt: Date;
|
|
1819
|
+
reason?: string;
|
|
1820
|
+
notifyHolders?: boolean;
|
|
1733
1821
|
}
|
|
1734
|
-
|
|
1822
|
+
|
|
1735
1823
|
declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
|
|
1736
1824
|
title?: string;
|
|
1737
1825
|
slug?: string;
|
|
@@ -2140,6 +2228,34 @@ declare function toSmallestUnit(amount: number, currency: Currency): number;
|
|
|
2140
2228
|
* For JPY: 500 → 500
|
|
2141
2229
|
*/
|
|
2142
2230
|
declare function fromSmallestUnit(amount: number, currency: Currency): number;
|
|
2231
|
+
/**
|
|
2232
|
+
* Resolve the narrow currency symbol for a currency code. Falls back to the
|
|
2233
|
+
* ISO code itself when the Intl runtime does not know the currency.
|
|
2234
|
+
* Examples: `getCurrencySymbol(Currency.EUR)` → `"€"`, `Currency.JPY` → `"¥"`.
|
|
2235
|
+
*/
|
|
2236
|
+
declare function getCurrencySymbol(currency: Currency): string;
|
|
2237
|
+
/**
|
|
2238
|
+
* Format a currency code with its symbol: `"USD ($)"`, `"EUR (€)"`, `"JPY (¥)"`.
|
|
2239
|
+
* Falls back to just the ISO code when the runtime resolves the symbol to the
|
|
2240
|
+
* same code (e.g. `"AWG"`).
|
|
2241
|
+
*/
|
|
2242
|
+
declare function formatCurrencyLabel(currency: Currency): string;
|
|
2243
|
+
type FormatPriceOptions = {
|
|
2244
|
+
/** Returned when `amount` is `null` / `undefined`. Default: `"--.-- <symbol>"`. */
|
|
2245
|
+
emptyPlaceholder?: string;
|
|
2246
|
+
/** Returned when `amount === 0`. Default: `"Free"`. */
|
|
2247
|
+
freeLabel?: string;
|
|
2248
|
+
};
|
|
2249
|
+
/**
|
|
2250
|
+
* Format a price expressed in the smallest currency unit as a `"<amount> <symbol>"`
|
|
2251
|
+
* string. Honours zero-decimal currencies (JPY, KRW, …) — they render without
|
|
2252
|
+
* decimals. Examples:
|
|
2253
|
+
* `formatPrice(258800, Currency.EUR)` → `"2588.00 €"`
|
|
2254
|
+
* `formatPrice(500, Currency.JPY)` → `"500 ¥"`
|
|
2255
|
+
* `formatPrice(null, Currency.EUR)` → `"--.-- €"`
|
|
2256
|
+
* `formatPrice(0, Currency.EUR)` → `"Free"`
|
|
2257
|
+
*/
|
|
2258
|
+
declare function formatPrice(amount: number | null | undefined, currency: Currency, options?: FormatPriceOptions): string;
|
|
2143
2259
|
type StripeFees = {
|
|
2144
2260
|
transactionFee: number;
|
|
2145
2261
|
europeRate: number;
|
|
@@ -2400,7 +2516,7 @@ declare const users: (client: Client) => {
|
|
|
2400
2516
|
};
|
|
2401
2517
|
};
|
|
2402
2518
|
notifications: {
|
|
2403
|
-
me: () => Promise<ArrayResult<
|
|
2519
|
+
me: () => Promise<ArrayResult<UserNotification>>;
|
|
2404
2520
|
count: (options: {
|
|
2405
2521
|
unseen?: boolean;
|
|
2406
2522
|
}) => Promise<number>;
|
|
@@ -2687,7 +2803,7 @@ declare class TonightPass {
|
|
|
2687
2803
|
};
|
|
2688
2804
|
};
|
|
2689
2805
|
notifications: {
|
|
2690
|
-
me: () => Promise<ArrayResult<
|
|
2806
|
+
me: () => Promise<ArrayResult<UserNotification>>;
|
|
2691
2807
|
count: (options: {
|
|
2692
2808
|
unseen?: boolean;
|
|
2693
2809
|
}) => Promise<number>;
|
|
@@ -2879,4 +2995,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2879
2995
|
client: ChannelWebSocketClient;
|
|
2880
2996
|
};
|
|
2881
2997
|
|
|
2882
|
-
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, type Artist, type ArtistEndpoints, type ArtistSoundcloudBadges, type ArtistSoundcloudData, type ArtistSoundcloudWebProfile, type ArtistTonightPassData, type ArtistTrack, type ArtistWithTracks,
|
|
2998
|
+
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, type Artist, type ArtistEndpoints, type ArtistSoundcloudBadges, type ArtistSoundcloudData, type ArtistSoundcloudWebProfile, type ArtistTonightPassData, type ArtistTrack, type ArtistWithTracks, 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, CancelOrganizationEventDto, type CareerEndpoints, type CareersCategoriesOptions, type CareersCategory, type CareersEmploymentType, type CareersEmploymentTypesOptions, type CareersJob, CareersJobStatus, type CareersJobsOptions, type CareersOffice, type CareersOfficesOptions, CareersRemoteType, CareersWorkplaceType, type CartTicket, 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, 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, EventArtistDto, type EventArtistRef, type ExchangeRates, type ExcludeBase, type ExternalContact, type ExternalOffer, type ExternalSource, type FeedEndpoints, type FeedPost, FeedType, type FileObject, type FormatPriceOptions, type GeoPoint, GeoPointDto, type GeoSearchAggregation, type GetArtistOptions, GoogleOneTapDto, type Health, type HealthEndpoints, type HealthMemory, Language, type ListArtistEventsOptions, type ListPlaceCountriesOptions, type ListTopArtistsOptions, type Location$1 as Location, MINIMUM_CHARGEABLE_AMOUNT, MINIMUM_CHARGE_AMOUNTS, MINIMUM_COMMISSION, MemoryCacheStore, type MemorySnapshot, type NearbyCitiesOptions, type NotificationEndpoints, OAuth2Provider, type Order, type OrderDiscount, type OrderEndpoints, type OrderItem, OrderRefundStatus, type OrderTotals, 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, OrganizationEventCancelledBy, type OrganizationEventEndpoints, OrganizationEventFileType, OrganizationEventLifecycleStatus, type OrganizationEventNearbyOptions, type OrganizationEventOrderEndpoints, type OrganizationEventPromoCode, type OrganizationEventPromoCodeEndpoints, OrganizationEventPromoCodeType, type OrganizationEventPromoCodeValidation, type OrganizationEventRequestResponse, OrganizationEventStatus, type OrganizationEventStatusInput, 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 OrganizationNotification, type OrganizationNotificationBase, type OrganizationNotificationEndpoints, OrganizationNotificationType, type OrganizationNotificationWithActor, type OrganizationOrder, type OrganizationOrdersEndpoints, OrganizationPayoutStatus, type OrganizationProfile, type OrganizationProfileMetadata, type OrganizationToken, OrganizationTokenType, type PathsFor, type PlaceCity, type PlaceCountry, type PlaceEndpoints, PostponeOrganizationEventDto, 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, RescheduleOrganizationEventDto, type Response, type ResponseFor, type RoadmapEndpoints, type RoadmapFeature, RoadmapFeatureStatus, type RoadmapReaction, type RoadmapReactionCounts, type SSEEndpoints, type SearchArtistsOptions, 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, type UserNotificationOrganizationEventCancelled, type UserNotificationOrganizationEventPostponed, type UserNotificationOrganizationEventRescheduled, 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, type WeatherEndpoints, type WeatherForecast, WebSocketClient, type WebSocketClientOptions, type WebSocketConnectOptions, type WebSocketEndpoint, type WebSocketEndpoints, type WebSocketEvent, type WebSocketEventHandler, type WebSocketOptionsFor, type WebSocketPath, type WebSocketPaths, type WebSocketPathsFor, type WebhookEndpoints, ZERO_DECIMAL_CURRENCIES, apiKeys, applyMinimumChargeableAmount, artists, auth, buildFileFormData, calculateOrderTotal, calculateTicketFee, calculateTicketFeeWithCurrency, careers, channels, channelsWS, computeOrganizationEventStatus, currencies, feed, formatCurrencyLabel, formatPrice, fromSmallestUnit, getCurrencySymbol, getMinimumChargeableAmount, health, isBrowser, isMemberRoleAtLeast, isZeroDecimalCurrency, normalizeAddress, notifications, orders, organizations, places, profiles, request, roadmap, sdk, sitemaps, toSmallestUnit, users };
|