tonightpass 0.0.263 → 0.0.264
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 +920 -805
- package/dist/index.d.ts +920 -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.mts
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,233 @@ 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
|
+
vatRate: number;
|
|
628
597
|
};
|
|
629
|
-
type
|
|
630
|
-
|
|
631
|
-
|
|
598
|
+
type OrganizationBillingAccount = Stripe__default.Account;
|
|
599
|
+
declare enum OrganizationPayoutStatus {
|
|
600
|
+
Paid = "paid",
|
|
601
|
+
Pending = "pending",
|
|
602
|
+
InTransit = "in_transit",
|
|
603
|
+
Failed = "failed",
|
|
604
|
+
Canceled = "canceled"
|
|
605
|
+
}
|
|
606
|
+
type OrganizationBillingBalance = {
|
|
607
|
+
balance: {
|
|
608
|
+
amount: number;
|
|
609
|
+
currency: Currency;
|
|
610
|
+
}[];
|
|
611
|
+
pending: {
|
|
612
|
+
amount: number;
|
|
613
|
+
currency: Currency;
|
|
614
|
+
}[];
|
|
615
|
+
payouts: {
|
|
616
|
+
id: string;
|
|
617
|
+
amount: number;
|
|
618
|
+
currency: Currency;
|
|
619
|
+
status: OrganizationPayoutStatus;
|
|
620
|
+
arrival_date: number;
|
|
621
|
+
}[];
|
|
632
622
|
};
|
|
633
|
-
|
|
623
|
+
type OrganizationBillingPendingRevenue = {
|
|
624
|
+
amount: number;
|
|
625
|
+
count: number;
|
|
626
|
+
currency: Currency;
|
|
627
|
+
}[];
|
|
628
|
+
type OrganizationIdentity = OrganizationProfile;
|
|
629
|
+
declare enum OrganizationFileType {
|
|
634
630
|
Avatar = "avatar",
|
|
635
631
|
Banner = "banner"
|
|
636
632
|
}
|
|
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;
|
|
633
|
+
type OrganizationEndpoints = Endpoint<"GET", "/organizations/search", Organization[], {
|
|
634
|
+
q: string;
|
|
635
|
+
limit?: number;
|
|
636
|
+
}> | 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
637
|
|
|
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>;
|
|
638
|
+
type OrganizationEventOrderEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/orders", Order, CreateOrganizationEventOrderDto>;
|
|
669
639
|
|
|
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"
|
|
640
|
+
declare class CreateOrganizationEventStyleDto {
|
|
641
|
+
type: OrganizationEventStyleType;
|
|
642
|
+
emoji: string;
|
|
643
|
+
name: string;
|
|
686
644
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
Country = "COUNTRY"
|
|
645
|
+
|
|
646
|
+
declare class UpdateOrganizationEventStyleDto extends CreateOrganizationEventStyleDto {
|
|
690
647
|
}
|
|
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;
|
|
648
|
+
|
|
649
|
+
type OrganizationEventStyle = Base & {
|
|
650
|
+
type: OrganizationEventStyleType;
|
|
651
|
+
emoji: string;
|
|
715
652
|
name: string;
|
|
716
653
|
slug: string;
|
|
717
654
|
};
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
730
|
-
countryCode?: string;
|
|
731
|
-
cityNameLike?: string;
|
|
655
|
+
declare enum OrganizationEventStyleType {
|
|
656
|
+
Music = "music",
|
|
657
|
+
Dress = "dress",
|
|
658
|
+
Sport = "sport",
|
|
659
|
+
Food = "food",
|
|
660
|
+
Art = "art"
|
|
661
|
+
}
|
|
662
|
+
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>;
|
|
663
|
+
|
|
664
|
+
type OrganizationEventViewOptions = {
|
|
665
|
+
events: string | string[];
|
|
732
666
|
};
|
|
733
|
-
type
|
|
734
|
-
|
|
667
|
+
type OrganizationEventViewResult = {
|
|
668
|
+
eventId: string;
|
|
669
|
+
visitsCount: number;
|
|
735
670
|
};
|
|
736
|
-
type
|
|
737
|
-
|
|
671
|
+
type OrganizationEventViewEndpoints = Endpoint<"POST", "/organizations/@:organizationSlug/events/:eventSlug/views", boolean, null> | Endpoint<"GET", "/organizations/events/views/stream", ReadableStream<OrganizationEventViewResult>, OrganizationEventViewOptions>;
|
|
672
|
+
|
|
673
|
+
type OrganizationEventStatusInput = {
|
|
674
|
+
lifecycleStatus?: OrganizationEventLifecycleStatus | null;
|
|
675
|
+
startAt: Date | string;
|
|
676
|
+
endAt: Date | string;
|
|
738
677
|
};
|
|
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
678
|
/**
|
|
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>;
|
|
679
|
+
* Resolves the canonical {@link OrganizationEventStatus} for an event.
|
|
680
|
+
*
|
|
681
|
+
* Priority: a sticky lifecycle status (cancelled/postponed) overrides time-based
|
|
682
|
+
* resolution. A rescheduled event falls back to temporal status once its new
|
|
683
|
+
* startAt passes, so it can transition into Ongoing/Ended naturally.
|
|
684
|
+
*/
|
|
685
|
+
declare function computeOrganizationEventStatus(event: OrganizationEventStatusInput, now?: Date): OrganizationEventStatus;
|
|
1044
686
|
|
|
1045
687
|
type OrganizationEvent = Base & {
|
|
1046
688
|
title: string;
|
|
@@ -1057,6 +699,16 @@ type OrganizationEvent = Base & {
|
|
|
1057
699
|
styles: OrganizationEventStyle[];
|
|
1058
700
|
artists: EventArtistRef[];
|
|
1059
701
|
status: OrganizationEventStatus;
|
|
702
|
+
lifecycleStatus?: OrganizationEventLifecycleStatus;
|
|
703
|
+
cancelledAt?: Date;
|
|
704
|
+
cancelledReason?: string;
|
|
705
|
+
cancelledBy?: OrganizationEventCancelledBy;
|
|
706
|
+
postponedAt?: Date;
|
|
707
|
+
postponedReason?: string;
|
|
708
|
+
rescheduledFromAt?: Date;
|
|
709
|
+
rescheduledFromEndAt?: Date;
|
|
710
|
+
rescheduledAt?: Date;
|
|
711
|
+
rescheduledReason?: string;
|
|
1060
712
|
viewsCount: number;
|
|
1061
713
|
visitsCount: number;
|
|
1062
714
|
visitorsCount: number;
|
|
@@ -1099,215 +751,645 @@ declare enum OrganizationEventVisibilityType {
|
|
|
1099
751
|
Unlisted = "unlisted",
|
|
1100
752
|
Private = "private"
|
|
1101
753
|
}
|
|
1102
|
-
declare enum OrganizationEventFileType {
|
|
1103
|
-
Flyer = "flyer",
|
|
1104
|
-
Trailer = "trailer"
|
|
754
|
+
declare enum OrganizationEventFileType {
|
|
755
|
+
Flyer = "flyer",
|
|
756
|
+
Trailer = "trailer"
|
|
757
|
+
}
|
|
758
|
+
declare enum OrganizationEventStatus {
|
|
759
|
+
Upcoming = "upcoming",
|
|
760
|
+
Ongoing = "ongoing",
|
|
761
|
+
Ended = "ended",
|
|
762
|
+
Cancelled = "cancelled",
|
|
763
|
+
Postponed = "postponed",
|
|
764
|
+
Rescheduled = "rescheduled"
|
|
765
|
+
}
|
|
766
|
+
declare enum OrganizationEventLifecycleStatus {
|
|
767
|
+
Cancelled = "cancelled",
|
|
768
|
+
Postponed = "postponed",
|
|
769
|
+
Rescheduled = "rescheduled"
|
|
770
|
+
}
|
|
771
|
+
declare enum OrganizationEventCancelledBy {
|
|
772
|
+
Organizer = "organizer",
|
|
773
|
+
Support = "support",
|
|
774
|
+
ExternalSource = "external_source"
|
|
775
|
+
}
|
|
776
|
+
type ExternalOffer = {
|
|
777
|
+
name: string;
|
|
778
|
+
description?: string;
|
|
779
|
+
price: number;
|
|
780
|
+
available: boolean;
|
|
781
|
+
};
|
|
782
|
+
type ExternalContact = {
|
|
783
|
+
type: "phone" | "email" | "website";
|
|
784
|
+
value: string;
|
|
785
|
+
};
|
|
786
|
+
type ExternalSource = {
|
|
787
|
+
organizerName: string;
|
|
788
|
+
contacts: ExternalContact[];
|
|
789
|
+
offers: ExternalOffer[];
|
|
790
|
+
};
|
|
791
|
+
type OrganizationEventRequestResponse = {
|
|
792
|
+
contacts: ExternalContact[];
|
|
793
|
+
};
|
|
794
|
+
type OrganizationEventNearbyOptions = ArrayOptions<OrganizationEvent> & {
|
|
795
|
+
latitude: number;
|
|
796
|
+
longitude: number;
|
|
797
|
+
radius?: number;
|
|
798
|
+
};
|
|
799
|
+
type OrganizationEventArrayOptions = ArrayOptions<OrganizationEvent> & {
|
|
800
|
+
status?: OrganizationEventStatus | OrganizationEventStatus[];
|
|
801
|
+
types?: OrganizationEventType | OrganizationEventType[];
|
|
802
|
+
styles?: string | string[];
|
|
803
|
+
city?: string;
|
|
804
|
+
country?: string;
|
|
805
|
+
};
|
|
806
|
+
type SearchOrganizationEventsOptions = ArrayOptions<OrganizationEvent> & {
|
|
807
|
+
q: string;
|
|
808
|
+
};
|
|
809
|
+
type OrganizationEventCalendar = {
|
|
810
|
+
[date: string]: OrganizationEvent[];
|
|
811
|
+
};
|
|
812
|
+
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;
|
|
813
|
+
|
|
814
|
+
declare enum UserNotificationType {
|
|
815
|
+
Follow = "follow",
|
|
816
|
+
OrganizationEventCancelled = "organization_event_cancelled",
|
|
817
|
+
OrganizationEventPostponed = "organization_event_postponed",
|
|
818
|
+
OrganizationEventRescheduled = "organization_event_rescheduled"
|
|
819
|
+
}
|
|
820
|
+
type UserNotificationBase = Base & {
|
|
821
|
+
type: UserNotificationType;
|
|
822
|
+
isSeen: boolean;
|
|
823
|
+
};
|
|
824
|
+
type UserNotificationFollow = UserNotificationBase & {
|
|
825
|
+
type: UserNotificationType.Follow;
|
|
826
|
+
follower: UserProfile;
|
|
827
|
+
};
|
|
828
|
+
type UserNotificationOrganizationEventCancelled = UserNotificationBase & {
|
|
829
|
+
type: UserNotificationType.OrganizationEventCancelled;
|
|
830
|
+
event: OrganizationEvent;
|
|
831
|
+
reason?: string;
|
|
832
|
+
refundAmount?: number;
|
|
833
|
+
refundStatus?: OrderRefundStatus;
|
|
834
|
+
};
|
|
835
|
+
type UserNotificationOrganizationEventPostponed = UserNotificationBase & {
|
|
836
|
+
type: UserNotificationType.OrganizationEventPostponed;
|
|
837
|
+
event: OrganizationEvent;
|
|
838
|
+
reason?: string;
|
|
839
|
+
};
|
|
840
|
+
type UserNotificationOrganizationEventRescheduled = UserNotificationBase & {
|
|
841
|
+
type: UserNotificationType.OrganizationEventRescheduled;
|
|
842
|
+
event: OrganizationEvent;
|
|
843
|
+
reason?: string;
|
|
844
|
+
previousStartAt: Date;
|
|
845
|
+
previousEndAt: Date;
|
|
846
|
+
};
|
|
847
|
+
type UserNotification = UserNotificationFollow | UserNotificationOrganizationEventCancelled | UserNotificationOrganizationEventPostponed | UserNotificationOrganizationEventRescheduled;
|
|
848
|
+
type UserNotificationEndpoints = Endpoint<"GET", "/users/~me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/~me/notifications/count", number, {
|
|
849
|
+
unseen?: boolean;
|
|
850
|
+
}> | Endpoint<"PUT", "/users/~me/notifications/read", void, undefined>;
|
|
851
|
+
|
|
852
|
+
declare class CreateUserPostCommentDto {
|
|
853
|
+
content: string;
|
|
854
|
+
replyToId?: string;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
declare class UpdateUserPostCommentDto {
|
|
858
|
+
content: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
declare class CreateUserPostDto {
|
|
862
|
+
content?: string;
|
|
863
|
+
mediaUrls: string[];
|
|
864
|
+
visibility?: UserPostVisibility;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
declare class CreateUserPostRepostDto {
|
|
868
|
+
comment?: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
declare class UpdateUserPostDto {
|
|
872
|
+
content?: string;
|
|
873
|
+
visibility?: UserPostVisibility;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
type UserPostComment = Base & {
|
|
877
|
+
post: UserPost;
|
|
878
|
+
author: UserProfile;
|
|
879
|
+
content: string;
|
|
880
|
+
replyTo?: UserPostComment;
|
|
881
|
+
isEdited: boolean;
|
|
882
|
+
editedAt?: Date;
|
|
883
|
+
};
|
|
884
|
+
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>;
|
|
885
|
+
|
|
886
|
+
declare enum UserPostMediaType {
|
|
887
|
+
Image = "image",
|
|
888
|
+
Video = "video"
|
|
889
|
+
}
|
|
890
|
+
type UserPostMedia = {
|
|
891
|
+
url: string;
|
|
892
|
+
type: UserPostMediaType;
|
|
893
|
+
width: number;
|
|
894
|
+
height: number;
|
|
895
|
+
description?: string;
|
|
896
|
+
isNSFW: boolean;
|
|
897
|
+
thumbnailUrl?: string;
|
|
898
|
+
duration?: number;
|
|
899
|
+
};
|
|
900
|
+
type UserPostMediaEndpoints = Endpoint<"POST", "/users/~me/posts/media", string, FormData>;
|
|
901
|
+
|
|
902
|
+
type UserPostRepost = Base & {
|
|
903
|
+
originalPost: UserPost;
|
|
904
|
+
author: UserProfile;
|
|
905
|
+
comment?: string;
|
|
906
|
+
};
|
|
907
|
+
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>;
|
|
908
|
+
|
|
909
|
+
type UserPostViewOptions = {
|
|
910
|
+
posts: string | string[];
|
|
911
|
+
};
|
|
912
|
+
type UserPostViewResult = {
|
|
913
|
+
postId: string;
|
|
914
|
+
visitsCount: number;
|
|
915
|
+
};
|
|
916
|
+
type UserPostViewEndpoints = Endpoint<"POST", "/users/@:username/posts/:postId/views", boolean, null> | Endpoint<"GET", "/users/posts/views/stream", ReadableStream<UserPostViewResult>, UserPostViewOptions>;
|
|
917
|
+
|
|
918
|
+
declare enum UserPostVisibility {
|
|
919
|
+
Public = "public",
|
|
920
|
+
Followers = "followers",
|
|
921
|
+
Private = "private"
|
|
922
|
+
}
|
|
923
|
+
type UserPost = Base & {
|
|
924
|
+
author: UserProfile;
|
|
925
|
+
content?: string;
|
|
926
|
+
media: UserPostMedia[];
|
|
927
|
+
visibility: UserPostVisibility;
|
|
928
|
+
metrics: {
|
|
929
|
+
reposts: number;
|
|
930
|
+
comments: number;
|
|
931
|
+
views: number;
|
|
932
|
+
visits: number;
|
|
933
|
+
visitors: number;
|
|
934
|
+
};
|
|
935
|
+
isReposted?: boolean;
|
|
936
|
+
isEdited: boolean;
|
|
937
|
+
editedAt?: Date;
|
|
938
|
+
};
|
|
939
|
+
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;
|
|
940
|
+
|
|
941
|
+
type UserCustomer = UserProfile & {
|
|
942
|
+
email?: string;
|
|
943
|
+
phoneNumber?: string;
|
|
944
|
+
firstName: string;
|
|
945
|
+
lastName: string;
|
|
946
|
+
fullName: string;
|
|
947
|
+
metadata: UserCustomerMetadata;
|
|
948
|
+
};
|
|
949
|
+
type UserCustomerMetadata = UserProfileMetadata & {
|
|
950
|
+
bookingsCount: number;
|
|
951
|
+
eventsAttendedCount: number;
|
|
952
|
+
totalSpent: number;
|
|
953
|
+
lastBookingAt?: Date;
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
type UserToken = Omit<Base, "updatedAt"> & {
|
|
957
|
+
type: UserTokenType;
|
|
958
|
+
value: string;
|
|
959
|
+
expiresAt: Date;
|
|
960
|
+
user?: User;
|
|
961
|
+
identifier?: string;
|
|
962
|
+
};
|
|
963
|
+
declare enum UserTokenType {
|
|
964
|
+
Authentication = "authentication",
|
|
965
|
+
BookingTicket = "booking_ticket",
|
|
966
|
+
OrganizationInvite = "organization_invite",
|
|
967
|
+
PasswordRecovery = "password_recovery",
|
|
968
|
+
EmailValidation = "email_validation",
|
|
969
|
+
PhoneValidation = "phone_validation"
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
type User = Base & {
|
|
973
|
+
identifier: UserIdentifier;
|
|
974
|
+
password?: string;
|
|
975
|
+
identity: UserIdentity;
|
|
976
|
+
role: UserRole;
|
|
977
|
+
addresses: Location$1[];
|
|
978
|
+
preferences: UserPreferences;
|
|
979
|
+
connections: UserConnection[];
|
|
980
|
+
oauthProviders: UserOAuthProvider[];
|
|
981
|
+
isVerified: boolean;
|
|
982
|
+
isOfficial: boolean;
|
|
983
|
+
};
|
|
984
|
+
type UserIdentifier = {
|
|
985
|
+
email?: string;
|
|
986
|
+
emailVerified?: boolean;
|
|
987
|
+
phoneNumber?: string;
|
|
988
|
+
phoneNumberVerified?: boolean;
|
|
989
|
+
username: string;
|
|
990
|
+
};
|
|
991
|
+
type UserIdentity = UserProfile & {
|
|
992
|
+
firstName: string;
|
|
993
|
+
lastName: string;
|
|
994
|
+
fullName: string;
|
|
995
|
+
gender: UserIdentityGender;
|
|
996
|
+
birthDate: Date;
|
|
997
|
+
birthDateLastUpdatedAt?: Date;
|
|
998
|
+
};
|
|
999
|
+
declare enum UserRole {
|
|
1000
|
+
User = "user",
|
|
1001
|
+
Developer = "developer",
|
|
1002
|
+
Admin = "admin"
|
|
1003
|
+
}
|
|
1004
|
+
declare enum UserIdentityGender {
|
|
1005
|
+
Male = "male",
|
|
1006
|
+
Female = "female",
|
|
1007
|
+
NonBinary = "non-binary"
|
|
1008
|
+
}
|
|
1009
|
+
type UserPreferences = {
|
|
1010
|
+
language: Language;
|
|
1011
|
+
currency: Currency;
|
|
1012
|
+
notifications: {
|
|
1013
|
+
email: {
|
|
1014
|
+
newsletter: boolean;
|
|
1015
|
+
message: boolean;
|
|
1016
|
+
};
|
|
1017
|
+
push: {
|
|
1018
|
+
message: boolean;
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
type UserConnection = {
|
|
1023
|
+
ip: string;
|
|
1024
|
+
os: UserConnectionOS;
|
|
1025
|
+
device: UserConnectionDevice;
|
|
1026
|
+
client: UserConnectionClient;
|
|
1027
|
+
updatedAt: Date;
|
|
1028
|
+
createdAt: Date;
|
|
1029
|
+
};
|
|
1030
|
+
type UserOAuthProvider = Base & {
|
|
1031
|
+
provider: OAuth2Provider;
|
|
1032
|
+
providerId: string;
|
|
1033
|
+
displayName?: string;
|
|
1034
|
+
username?: string;
|
|
1035
|
+
email?: string;
|
|
1036
|
+
emailVerified: boolean;
|
|
1037
|
+
lastUsedAt?: Date;
|
|
1038
|
+
};
|
|
1039
|
+
type UserConnectionOS = {
|
|
1040
|
+
name: string;
|
|
1041
|
+
version: string;
|
|
1042
|
+
};
|
|
1043
|
+
type UserConnectionDevice = {
|
|
1044
|
+
type: string;
|
|
1045
|
+
brand: string;
|
|
1046
|
+
};
|
|
1047
|
+
type UserConnectionClient = {
|
|
1048
|
+
name: string;
|
|
1049
|
+
version: string;
|
|
1050
|
+
};
|
|
1051
|
+
declare enum UserFileType {
|
|
1052
|
+
Avatar = "avatar",
|
|
1053
|
+
Banner = "banner"
|
|
1054
|
+
}
|
|
1055
|
+
type UserEndpoints = Endpoint<"GET", "/users", User[]> | Endpoint<"GET", "/users/@:userId", User> | Endpoint<"GET", "/users/~me", User> | Endpoint<"GET", "/users/check/:identifier", {
|
|
1056
|
+
exists: boolean;
|
|
1057
|
+
identifier: Partial<UserIdentifier>;
|
|
1058
|
+
suggestions?: string[];
|
|
1059
|
+
}, {
|
|
1060
|
+
identifier: boolean;
|
|
1061
|
+
suggestions?: boolean;
|
|
1062
|
+
}> | Endpoint<"PUT", "/users/@:userId", User, UpdateUserDto> | Endpoint<"POST", "/users/@:userId/files/:userFileType", string, FormData> | Endpoint<"POST", "/users/files/:userFileType", string, FormData> | UserBookingEndpoints | UserNotificationEndpoints | UserPostEndpoints;
|
|
1063
|
+
|
|
1064
|
+
declare enum OAuth2Provider {
|
|
1065
|
+
Google = "google",
|
|
1066
|
+
Facebook = "facebook",
|
|
1067
|
+
Twitter = "twitter"
|
|
1105
1068
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1069
|
+
type AuthMethod = OAuth2Provider | "password";
|
|
1070
|
+
declare enum AuthFlow {
|
|
1071
|
+
SignUp = "signup",
|
|
1072
|
+
SignIn = "signin"
|
|
1110
1073
|
}
|
|
1111
|
-
type
|
|
1112
|
-
|
|
1113
|
-
description?: string;
|
|
1114
|
-
price: number;
|
|
1115
|
-
available: boolean;
|
|
1116
|
-
};
|
|
1117
|
-
type ExternalContact = {
|
|
1118
|
-
type: "phone" | "email" | "website";
|
|
1119
|
-
value: string;
|
|
1074
|
+
type RecoveryResponse = {
|
|
1075
|
+
to: string;
|
|
1120
1076
|
};
|
|
1121
|
-
type
|
|
1122
|
-
|
|
1123
|
-
contacts: ExternalContact[];
|
|
1124
|
-
offers: ExternalOffer[];
|
|
1077
|
+
type VerifyEmailResponse = {
|
|
1078
|
+
to: string;
|
|
1125
1079
|
};
|
|
1126
|
-
type
|
|
1127
|
-
|
|
1080
|
+
type AuthResponse = {
|
|
1081
|
+
user: User;
|
|
1082
|
+
accessToken: string;
|
|
1083
|
+
refreshToken: string;
|
|
1084
|
+
flow: AuthFlow;
|
|
1128
1085
|
};
|
|
1129
|
-
type
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1086
|
+
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>;
|
|
1087
|
+
|
|
1088
|
+
type CareersOffice = {
|
|
1089
|
+
id: number | null;
|
|
1090
|
+
isDefault: boolean | null;
|
|
1091
|
+
name: string | null;
|
|
1092
|
+
city: string | null;
|
|
1093
|
+
countryIso: string | null;
|
|
1133
1094
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1095
|
+
declare enum CareersJobStatus {
|
|
1096
|
+
All = "ALL",
|
|
1097
|
+
Online = "ONLINE",
|
|
1098
|
+
Archived = "ARCHIVED"
|
|
1099
|
+
}
|
|
1100
|
+
declare enum CareersWorkplaceType {
|
|
1101
|
+
Onsite = "ONSITE",
|
|
1102
|
+
Remote = "REMOTE",
|
|
1103
|
+
Hybrid = "HYBRID"
|
|
1104
|
+
}
|
|
1105
|
+
declare enum CareersRemoteType {
|
|
1106
|
+
Anywhere = "ANYWHERE",
|
|
1107
|
+
Country = "COUNTRY"
|
|
1108
|
+
}
|
|
1109
|
+
type CareersJob = {
|
|
1110
|
+
id: number;
|
|
1111
|
+
createdAt: string;
|
|
1112
|
+
lastUpdatedAt: string;
|
|
1113
|
+
externalId: null | string;
|
|
1114
|
+
title: string;
|
|
1115
|
+
status: CareersJobStatus;
|
|
1116
|
+
remote: boolean;
|
|
1117
|
+
office: CareersOffice;
|
|
1118
|
+
workplaceType: CareersWorkplaceType;
|
|
1119
|
+
remoteType?: CareersRemoteType;
|
|
1120
|
+
description?: string;
|
|
1121
|
+
categoryId?: number;
|
|
1122
|
+
employmentTypeId?: number;
|
|
1140
1123
|
};
|
|
1141
|
-
type
|
|
1142
|
-
|
|
1124
|
+
type CareersCategory = {
|
|
1125
|
+
slug: string;
|
|
1126
|
+
name: string;
|
|
1127
|
+
subCategories?: (CareersCategory & {
|
|
1128
|
+
id: number;
|
|
1129
|
+
})[];
|
|
1143
1130
|
};
|
|
1144
|
-
type
|
|
1145
|
-
|
|
1131
|
+
type CareersEmploymentType = {
|
|
1132
|
+
id: number;
|
|
1133
|
+
name: string;
|
|
1134
|
+
slug: string;
|
|
1146
1135
|
};
|
|
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
|
-
}[];
|
|
1136
|
+
type CareersJobsOptions = ArrayOptions<CareersJob> & {
|
|
1137
|
+
createdAtGte?: string;
|
|
1138
|
+
createdAtLt?: string;
|
|
1139
|
+
updatedAtGte?: string;
|
|
1140
|
+
updatedAtLt?: string;
|
|
1141
|
+
status?: CareersJobStatus;
|
|
1142
|
+
content?: boolean;
|
|
1143
|
+
titleLike?: string;
|
|
1144
|
+
countryCode?: string;
|
|
1145
|
+
externalId?: string;
|
|
1175
1146
|
};
|
|
1176
|
-
type
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
views: number;
|
|
1180
|
-
visits: number;
|
|
1181
|
-
visitors: number;
|
|
1182
|
-
totalRevenue: number;
|
|
1183
|
-
totalOrders: number;
|
|
1184
|
-
totalTicketsSold: number;
|
|
1185
|
-
};
|
|
1147
|
+
type CareersOfficesOptions = ArrayOptions<CareersOffice> & {
|
|
1148
|
+
countryCode?: string;
|
|
1149
|
+
cityNameLike?: string;
|
|
1186
1150
|
};
|
|
1187
|
-
type
|
|
1188
|
-
|
|
1189
|
-
startDate?: string;
|
|
1190
|
-
endDate?: string;
|
|
1151
|
+
type CareersCategoriesOptions = ArrayOptions<CareersCategory> & {
|
|
1152
|
+
language?: string;
|
|
1191
1153
|
};
|
|
1192
|
-
type
|
|
1193
|
-
|
|
1154
|
+
type CareersEmploymentTypesOptions = ArrayOptions<CareersEmploymentType> & {
|
|
1155
|
+
language?: string;
|
|
1194
1156
|
};
|
|
1195
|
-
type
|
|
1157
|
+
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, {
|
|
1158
|
+
jobId: number;
|
|
1159
|
+
}> | Endpoint<"GET", "/careers/offices", ArrayResult<CareersOffice>, CareersOfficesOptions>;
|
|
1196
1160
|
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1161
|
+
declare enum ChannelMessageReportReason {
|
|
1162
|
+
Dislike = "dislike",
|
|
1163
|
+
HarassmentSelf = "harassment_self",
|
|
1164
|
+
HarassmentOther = "harassment_other",
|
|
1165
|
+
SexualHarassmentSelf = "sexual_harassment_self",
|
|
1166
|
+
NudesSelf = "nudes_self",
|
|
1167
|
+
SexualContent = "sexual_content",
|
|
1168
|
+
ChildInvolved = "child_involved",
|
|
1169
|
+
ThreatTarget = "threat_target",
|
|
1170
|
+
ViolentContent = "violent_content",
|
|
1171
|
+
HateSpeech = "hate_speech",
|
|
1172
|
+
Terrorism = "terrorism",
|
|
1173
|
+
DrugSale = "drug_sale",
|
|
1174
|
+
WeaponSale = "weapon_sale",
|
|
1175
|
+
SelfHarmConcern = "self_harm_concern",
|
|
1176
|
+
SelfHarmPromotion = "self_harm_promotion",
|
|
1177
|
+
Other = "other"
|
|
1178
|
+
}
|
|
1179
|
+
type ChannelMessageReadByEntry = {
|
|
1180
|
+
participant: ChannelParticipant;
|
|
1181
|
+
readAt: Date;
|
|
1205
1182
|
};
|
|
1206
|
-
type
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
totalSpent: number;
|
|
1210
|
-
lastBookingAt?: Date;
|
|
1183
|
+
type ChannelMessageReaction = {
|
|
1184
|
+
emoji: string;
|
|
1185
|
+
participants: ChannelParticipant[];
|
|
1211
1186
|
};
|
|
1212
|
-
type
|
|
1187
|
+
type ChannelMessage = Base & {
|
|
1188
|
+
channel: Channel;
|
|
1189
|
+
sender: ChannelParticipant;
|
|
1190
|
+
content?: string;
|
|
1191
|
+
attachments: string[];
|
|
1192
|
+
isSent: boolean;
|
|
1193
|
+
isDelivered: boolean;
|
|
1194
|
+
isRead: boolean;
|
|
1195
|
+
readBy?: ChannelMessageReadByEntry[];
|
|
1196
|
+
isEdited: boolean;
|
|
1197
|
+
editedAt?: Date;
|
|
1198
|
+
replyTo?: ChannelMessage;
|
|
1199
|
+
reactions?: ChannelMessageReaction[];
|
|
1200
|
+
};
|
|
1201
|
+
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
1202
|
|
|
1214
|
-
declare enum
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1203
|
+
declare enum ChannelType {
|
|
1204
|
+
Private = "private",
|
|
1205
|
+
Group = "group"
|
|
1206
|
+
}
|
|
1207
|
+
declare enum ChannelMemberRole {
|
|
1208
|
+
Member = "member",
|
|
1209
|
+
Admin = "admin"
|
|
1210
|
+
}
|
|
1211
|
+
type ChannelParticipant = Profile;
|
|
1212
|
+
declare enum ChannelStatus {
|
|
1213
|
+
Sent = "sent",
|
|
1214
|
+
Delivered = "delivered",
|
|
1215
|
+
Read = "read",
|
|
1216
|
+
Received = "received",
|
|
1217
|
+
Opened = "opened"
|
|
1227
1218
|
}
|
|
1228
|
-
type
|
|
1229
|
-
type:
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1219
|
+
type Channel = Base & {
|
|
1220
|
+
type: ChannelType;
|
|
1221
|
+
participants: ChannelParticipant[];
|
|
1222
|
+
name?: string;
|
|
1223
|
+
lastMessageAt?: Date;
|
|
1224
|
+
status?: ChannelStatus;
|
|
1225
|
+
unreadCount?: number;
|
|
1233
1226
|
};
|
|
1234
|
-
type
|
|
1235
|
-
|
|
1227
|
+
type ChannelMember = {
|
|
1228
|
+
participant: ChannelParticipant;
|
|
1229
|
+
joinedAt: Date;
|
|
1230
|
+
role?: ChannelMemberRole;
|
|
1231
|
+
lastReadAt?: Date;
|
|
1236
1232
|
};
|
|
1237
|
-
type
|
|
1238
|
-
type OrganizationNotificationEndpoints = Endpoint<"GET", "/organizations/@:organizationSlug/notifications", ArrayResult<OrganizationNotification>, ArrayOptions<OrganizationNotification>> | Endpoint<"GET", "/organizations/@:organizationSlug/notifications/count", number, {
|
|
1233
|
+
type UserChannelCountOptions = {
|
|
1239
1234
|
unseen?: boolean;
|
|
1240
|
-
}> | Endpoint<"PUT", "/organizations/@:organizationSlug/notifications/read", void, undefined>;
|
|
1241
|
-
|
|
1242
|
-
type OrganizationOrder = Omit<Order, "user"> & {
|
|
1243
|
-
customer: OrganizationCustomer;
|
|
1244
1235
|
};
|
|
1245
|
-
type
|
|
1236
|
+
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
1237
|
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1238
|
+
declare enum ErrorType {
|
|
1239
|
+
AuthEmailAlreadyExists = "auth.email-already-exists",
|
|
1240
|
+
AuthUsernameAlreadyExists = "auth.username-already-exists",
|
|
1241
|
+
AuthPhoneNumberAlreadyExists = "auth.phone-number-already-exists",
|
|
1242
|
+
AuthInvalidCredentials = "auth.invalid-credentials",
|
|
1243
|
+
AuthUserNotFound = "auth.user-not-found",
|
|
1244
|
+
AuthInvalidToken = "auth.invalid-token",
|
|
1245
|
+
AuthTokenExpired = "auth.token-expired",
|
|
1246
|
+
AuthUnauthorized = "auth.unauthorized",
|
|
1247
|
+
AuthPasswordMismatch = "auth.password-mismatch",
|
|
1248
|
+
AuthInvalidOAuth2Provider = "auth.invalid-oauth2-provider",
|
|
1249
|
+
AuthOAuth2Error = "auth.oauth2-error",
|
|
1250
|
+
UserNotFound = "user.not-found",
|
|
1251
|
+
UserInvalidUsername = "user.invalid-username",
|
|
1252
|
+
UserInvalidEmail = "user.invalid-email",
|
|
1253
|
+
UserInvalidPhoneNumber = "user.invalid-phone-number",
|
|
1254
|
+
UserInvalidPassword = "user.invalid-password",
|
|
1255
|
+
UserInvalidBirthDate = "user.invalid-birth-date",
|
|
1256
|
+
UserInvalidGender = "user.invalid-gender",
|
|
1257
|
+
UserInvalidRole = "user.invalid-role",
|
|
1258
|
+
UserInvalidPreferences = "user.invalid-preferences",
|
|
1259
|
+
UserInvalidLocation = "user.invalid-location",
|
|
1260
|
+
UserInvalidFile = "user.invalid-file",
|
|
1261
|
+
UserFileTooLarge = "user.file-too-large",
|
|
1262
|
+
UserUnsupportedFileType = "user.unsupported-file-type",
|
|
1263
|
+
OrganizationNotFound = "organization.not-found",
|
|
1264
|
+
OrganizationInvalidSlug = "organization.invalid-slug",
|
|
1265
|
+
OrganizationInvalidName = "organization.invalid-name",
|
|
1266
|
+
OrganizationInvalidDescription = "organization.invalid-description",
|
|
1267
|
+
OrganizationInvalidLocation = "organization.invalid-location",
|
|
1268
|
+
OrganizationInvalidSocialLink = "organization.invalid-social-link",
|
|
1269
|
+
OrganizationAlreadyExists = "organization.already-exists",
|
|
1270
|
+
OrganizationUnauthorized = "organization.unauthorized",
|
|
1271
|
+
OrganizationMemberNotFound = "organization.member-not-found",
|
|
1272
|
+
OrganizationMemberInvalidRole = "organization.member-invalid-role",
|
|
1273
|
+
OrganizationMemberAlreadyExists = "organization.member-already-exists",
|
|
1274
|
+
EventNotFound = "event.not-found",
|
|
1275
|
+
EventInvalidTitle = "event.invalid-title",
|
|
1276
|
+
EventInvalidDescription = "event.invalid-description",
|
|
1277
|
+
EventInvalidLocation = "event.invalid-location",
|
|
1278
|
+
EventInvalidDates = "event.invalid-dates",
|
|
1279
|
+
EventInvalidTickets = "event.invalid-tickets",
|
|
1280
|
+
EventInvalidStyles = "event.invalid-styles",
|
|
1281
|
+
EventInvalidType = "event.invalid-type",
|
|
1282
|
+
EventInvalidVisibility = "event.invalid-visibility",
|
|
1283
|
+
EventUnavailable = "event.unavailable",
|
|
1284
|
+
EventTicketNotFound = "event.ticket-not-found",
|
|
1285
|
+
EventTicketUnavailable = "event.ticket-unavailable",
|
|
1286
|
+
EventTicketInvalidQuantity = "event.ticket-invalid-quantity",
|
|
1287
|
+
OrderNotFound = "order.not-found",
|
|
1288
|
+
OrderInvalidStatus = "order.invalid-status",
|
|
1289
|
+
OrderInvalidPayment = "order.invalid-payment",
|
|
1290
|
+
OrderPaymentFailed = "order.payment-failed",
|
|
1291
|
+
OrderAlreadyPaid = "order.already-paid",
|
|
1292
|
+
OrderCancelled = "order.cancelled",
|
|
1293
|
+
OrderRefunded = "order.refunded",
|
|
1294
|
+
OrderExpired = "order.expired",
|
|
1295
|
+
BookingNotFound = "booking.not-found",
|
|
1296
|
+
BookingInvalidStatus = "booking.invalid-status",
|
|
1297
|
+
BookingInvalidTickets = "booking.invalid-tickets",
|
|
1298
|
+
BookingTicketNotFound = "booking.ticket-not-found",
|
|
1299
|
+
BookingTicketInvalidToken = "booking.ticket-invalid-token",
|
|
1300
|
+
BookingTicketExpired = "booking.ticket-expired",
|
|
1301
|
+
BookingTicketUsed = "booking.ticket-used",
|
|
1302
|
+
FileNotFound = "file.not-found",
|
|
1303
|
+
FileInvalidType = "file.invalid-type",
|
|
1304
|
+
FileTooLarge = "file.too-large",
|
|
1305
|
+
FileUploadFailed = "file.upload-failed",
|
|
1306
|
+
ValidationError = "validation.error",
|
|
1307
|
+
DatabaseError = "database.error",
|
|
1308
|
+
InternalServerError = "server.internal-error",
|
|
1309
|
+
NotFound = "not-found",
|
|
1310
|
+
BadRequest = "bad-request",
|
|
1311
|
+
Unauthorized = "unauthorized",
|
|
1312
|
+
Forbidden = "forbidden",
|
|
1313
|
+
TooManyRequests = "too-many-requests",
|
|
1314
|
+
ServiceUnavailable = "service-unavailable",
|
|
1315
|
+
TooManyRequestsAuth = "rate-limit.auth",
|
|
1316
|
+
TooManyRequestsApi = "rate-limit.api",
|
|
1317
|
+
WebhookInvalidSignature = "webhook.invalid-signature",
|
|
1318
|
+
WebhookInvalidEvent = "webhook.invalid-event",
|
|
1319
|
+
WebhookProcessingFailed = "webhook.processing-failed",
|
|
1320
|
+
PaymentRequired = "payment.required",
|
|
1321
|
+
PaymentMethodRequired = "payment.method-required",
|
|
1322
|
+
PaymentFailed = "payment.failed",
|
|
1323
|
+
PaymentCancelled = "payment.cancelled",
|
|
1324
|
+
PaymentRefunded = "payment.refunded",
|
|
1325
|
+
BillingInvalidAccount = "billing.invalid-account",
|
|
1326
|
+
BillingAccountRequired = "billing.account-required",
|
|
1327
|
+
NotificationInvalidType = "notification.invalid-type",
|
|
1328
|
+
NotificationSendingFailed = "notification.sending-failed",
|
|
1329
|
+
CacheError = "cache.error",
|
|
1330
|
+
CacheMiss = "cache.miss",
|
|
1331
|
+
ExternalServiceError = "external-service.error",
|
|
1332
|
+
ExternalServiceTimeout = "external-service.timeout",
|
|
1333
|
+
ExternalServiceUnavailable = "external-service.unavailable"
|
|
1256
1334
|
}
|
|
1257
1335
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1336
|
+
declare enum FeedType {
|
|
1337
|
+
Following = "following",
|
|
1338
|
+
Discover = "discover"
|
|
1339
|
+
}
|
|
1340
|
+
type FeedPost = UserPost | OrganizationEvent[];
|
|
1341
|
+
type FeedEndpoints = Endpoint<"GET", "/feed/following", ArrayResult<FeedPost>, ArrayOptions<FeedPost>> | Endpoint<"GET", "/feed/discover", ArrayResult<FeedPost>, ArrayOptions<FeedPost>>;
|
|
1342
|
+
|
|
1343
|
+
interface Health<T extends string = string> extends HealthCheckResult {
|
|
1344
|
+
info?: Record<T, HealthIndicatorResult[T]>;
|
|
1345
|
+
error?: Record<T, HealthIndicatorResult[T]>;
|
|
1346
|
+
details: Record<T, HealthIndicatorResult[T]>;
|
|
1347
|
+
}
|
|
1348
|
+
type MemorySnapshot = {
|
|
1349
|
+
heapUsed: number;
|
|
1350
|
+
heapTotal: number;
|
|
1351
|
+
rss: number;
|
|
1352
|
+
external: number;
|
|
1267
1353
|
};
|
|
1268
|
-
type
|
|
1269
|
-
|
|
1270
|
-
|
|
1354
|
+
type HealthMemory = {
|
|
1355
|
+
before: MemorySnapshot;
|
|
1356
|
+
afterGc: MemorySnapshot;
|
|
1271
1357
|
};
|
|
1272
|
-
type
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1358
|
+
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>;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Represents a GeoJSON point with specific geographic coordinates.
|
|
1362
|
+
*
|
|
1363
|
+
* @see https://geojson.org/geojson-spec.html#point
|
|
1364
|
+
*
|
|
1365
|
+
* @property {"Point"} type - The type of the geometry, which is always "Point" for a GeoJSON point.
|
|
1366
|
+
* @property {[number, number]} coordinates - The coordinates of the point, represented as [longitude, latitude].
|
|
1367
|
+
*/
|
|
1368
|
+
type GeoPoint = {
|
|
1369
|
+
type: "Point";
|
|
1370
|
+
coordinates: [number, number];
|
|
1371
|
+
};
|
|
1372
|
+
type Location$1 = {
|
|
1373
|
+
name?: string;
|
|
1374
|
+
address: string;
|
|
1375
|
+
zipCode: string;
|
|
1376
|
+
city: string;
|
|
1377
|
+
country: string;
|
|
1378
|
+
geometry: GeoPoint;
|
|
1379
|
+
};
|
|
1380
|
+
type GeoSearchAggregation<T> = {
|
|
1381
|
+
metadata: {
|
|
1382
|
+
total: number;
|
|
1295
1383
|
}[];
|
|
1384
|
+
data: T[];
|
|
1296
1385
|
};
|
|
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;
|
|
1386
|
+
type Distance<T> = T & {
|
|
1387
|
+
distance: number;
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
type NotificationEndpoints = Endpoint<"POST", "/notifications/subscribe/beta", null, {
|
|
1391
|
+
email: string;
|
|
1392
|
+
}>;
|
|
1311
1393
|
|
|
1312
1394
|
type PlaceCountry = Base & {
|
|
1313
1395
|
geonameId: number;
|
|
@@ -1552,10 +1634,6 @@ declare class AddReactionDto {
|
|
|
1552
1634
|
emoji: string;
|
|
1553
1635
|
}
|
|
1554
1636
|
|
|
1555
|
-
declare class ContentOrAttachmentsConstraint implements ValidatorConstraintInterface {
|
|
1556
|
-
validate(_value: unknown, args: ValidationArguments): boolean;
|
|
1557
|
-
defaultMessage(_args: ValidationArguments): string;
|
|
1558
|
-
}
|
|
1559
1637
|
declare class CreateChannelMessageDto {
|
|
1560
1638
|
content?: string;
|
|
1561
1639
|
attachments?: string[];
|
|
@@ -1634,6 +1712,13 @@ declare class CreateOrganizationIdentityDto {
|
|
|
1634
1712
|
links?: string[];
|
|
1635
1713
|
}
|
|
1636
1714
|
|
|
1715
|
+
declare class CancelOrganizationEventDto {
|
|
1716
|
+
reason?: string;
|
|
1717
|
+
refundOrders?: boolean;
|
|
1718
|
+
notifyHolders?: boolean;
|
|
1719
|
+
allowEndedCancel?: boolean;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1637
1722
|
declare class EventArtistDto implements EventArtistRef {
|
|
1638
1723
|
id: string;
|
|
1639
1724
|
permalink: string;
|
|
@@ -1670,11 +1755,6 @@ declare class UpdateOrganizationEventTicketDto implements DeepPartial<CreateOrga
|
|
|
1670
1755
|
endAt?: Date;
|
|
1671
1756
|
}
|
|
1672
1757
|
|
|
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
1758
|
type CreateOrganizationEventInput = Omit<ExcludeBase<OrganizationEvent>, "slug" | "styles" | "tickets" | "artists" | "organization" | "status" | "viewsCount" | "visitsCount" | "visitorsCount" | "bouncesCount" | "totalDurationSeconds" | "averageViewsPerVisitorCount" | "bounceRate" | "averageVisitDurationSeconds" | "hypeCount" | "minPrice"> & {
|
|
1679
1759
|
slug?: string;
|
|
1680
1760
|
styles: string[];
|
|
@@ -1705,6 +1785,11 @@ declare class CreateOrganizationEventOrderDto {
|
|
|
1705
1785
|
promoCode?: string;
|
|
1706
1786
|
}
|
|
1707
1787
|
|
|
1788
|
+
declare class PostponeOrganizationEventDto {
|
|
1789
|
+
reason?: string;
|
|
1790
|
+
notifyHolders?: boolean;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1708
1793
|
declare class CreateOrganizationEventPromoCodeDto {
|
|
1709
1794
|
code: string;
|
|
1710
1795
|
type: OrganizationEventPromoCodeType;
|
|
@@ -1727,11 +1812,13 @@ declare class UpdateOrganizationEventPromoCodeDto {
|
|
|
1727
1812
|
ticketIds?: string[];
|
|
1728
1813
|
}
|
|
1729
1814
|
|
|
1730
|
-
declare class
|
|
1731
|
-
|
|
1732
|
-
|
|
1815
|
+
declare class RescheduleOrganizationEventDto {
|
|
1816
|
+
startAt: Date;
|
|
1817
|
+
endAt: Date;
|
|
1818
|
+
reason?: string;
|
|
1819
|
+
notifyHolders?: boolean;
|
|
1733
1820
|
}
|
|
1734
|
-
|
|
1821
|
+
|
|
1735
1822
|
declare class UpdateOrganizationEventDto implements DeepPartial<CreateOrganizationEventInput> {
|
|
1736
1823
|
title?: string;
|
|
1737
1824
|
slug?: string;
|
|
@@ -2140,6 +2227,34 @@ declare function toSmallestUnit(amount: number, currency: Currency): number;
|
|
|
2140
2227
|
* For JPY: 500 → 500
|
|
2141
2228
|
*/
|
|
2142
2229
|
declare function fromSmallestUnit(amount: number, currency: Currency): number;
|
|
2230
|
+
/**
|
|
2231
|
+
* Resolve the narrow currency symbol for a currency code. Falls back to the
|
|
2232
|
+
* ISO code itself when the Intl runtime does not know the currency.
|
|
2233
|
+
* Examples: `getCurrencySymbol(Currency.EUR)` → `"€"`, `Currency.JPY` → `"¥"`.
|
|
2234
|
+
*/
|
|
2235
|
+
declare function getCurrencySymbol(currency: Currency): string;
|
|
2236
|
+
/**
|
|
2237
|
+
* Format a currency code with its symbol: `"USD ($)"`, `"EUR (€)"`, `"JPY (¥)"`.
|
|
2238
|
+
* Falls back to just the ISO code when the runtime resolves the symbol to the
|
|
2239
|
+
* same code (e.g. `"AWG"`).
|
|
2240
|
+
*/
|
|
2241
|
+
declare function formatCurrencyLabel(currency: Currency): string;
|
|
2242
|
+
type FormatPriceOptions = {
|
|
2243
|
+
/** Returned when `amount` is `null` / `undefined`. Default: `"--.-- <symbol>"`. */
|
|
2244
|
+
emptyPlaceholder?: string;
|
|
2245
|
+
/** Returned when `amount === 0`. Default: `"Free"`. */
|
|
2246
|
+
freeLabel?: string;
|
|
2247
|
+
};
|
|
2248
|
+
/**
|
|
2249
|
+
* Format a price expressed in the smallest currency unit as a `"<amount> <symbol>"`
|
|
2250
|
+
* string. Honours zero-decimal currencies (JPY, KRW, …) — they render without
|
|
2251
|
+
* decimals. Examples:
|
|
2252
|
+
* `formatPrice(258800, Currency.EUR)` → `"2588.00 €"`
|
|
2253
|
+
* `formatPrice(500, Currency.JPY)` → `"500 ¥"`
|
|
2254
|
+
* `formatPrice(null, Currency.EUR)` → `"--.-- €"`
|
|
2255
|
+
* `formatPrice(0, Currency.EUR)` → `"Free"`
|
|
2256
|
+
*/
|
|
2257
|
+
declare function formatPrice(amount: number | null | undefined, currency: Currency, options?: FormatPriceOptions): string;
|
|
2143
2258
|
type StripeFees = {
|
|
2144
2259
|
transactionFee: number;
|
|
2145
2260
|
europeRate: number;
|
|
@@ -2400,7 +2515,7 @@ declare const users: (client: Client) => {
|
|
|
2400
2515
|
};
|
|
2401
2516
|
};
|
|
2402
2517
|
notifications: {
|
|
2403
|
-
me: () => Promise<ArrayResult<
|
|
2518
|
+
me: () => Promise<ArrayResult<UserNotification>>;
|
|
2404
2519
|
count: (options: {
|
|
2405
2520
|
unseen?: boolean;
|
|
2406
2521
|
}) => Promise<number>;
|
|
@@ -2687,7 +2802,7 @@ declare class TonightPass {
|
|
|
2687
2802
|
};
|
|
2688
2803
|
};
|
|
2689
2804
|
notifications: {
|
|
2690
|
-
me: () => Promise<ArrayResult<
|
|
2805
|
+
me: () => Promise<ArrayResult<UserNotification>>;
|
|
2691
2806
|
count: (options: {
|
|
2692
2807
|
unseen?: boolean;
|
|
2693
2808
|
}) => Promise<number>;
|
|
@@ -2879,4 +2994,4 @@ declare function channelsWS(options?: Partial<WebSocketClientOptions>): {
|
|
|
2879
2994
|
client: ChannelWebSocketClient;
|
|
2880
2995
|
};
|
|
2881
2996
|
|
|
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,
|
|
2997
|
+
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 };
|