@bash-app/bash-common 30.176.0 → 30.181.0
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/definitions.d.ts +9 -0
- package/dist/definitions.d.ts.map +1 -1
- package/dist/definitions.js +9 -0
- package/dist/definitions.js.map +1 -1
- package/dist/extendedSchemas.d.ts +458 -4
- package/dist/extendedSchemas.d.ts.map +1 -1
- package/dist/extendedSchemas.js +5 -1
- package/dist/extendedSchemas.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/birthdayExperienceQuality.test.d.ts +2 -0
- package/dist/utils/__tests__/birthdayExperienceQuality.test.d.ts.map +1 -0
- package/dist/utils/__tests__/birthdayExperienceQuality.test.js +22 -0
- package/dist/utils/__tests__/birthdayExperienceQuality.test.js.map +1 -0
- package/dist/utils/birthdayExperienceQuality.d.ts +21 -0
- package/dist/utils/birthdayExperienceQuality.d.ts.map +1 -0
- package/dist/utils/birthdayExperienceQuality.js +33 -0
- package/dist/utils/birthdayExperienceQuality.js.map +1 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +20 -0
- package/src/definitions.ts +13 -0
- package/src/extendedSchemas.ts +16 -6
- package/src/index.ts +1 -0
- package/src/utils/__tests__/birthdayExperienceQuality.test.ts +34 -0
- package/src/utils/birthdayExperienceQuality.ts +49 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AmountOfGuests, AssociatedBash, AssociatedService, BashComment, BashEvent, BashEventPromoCode, BlogCategory, BlogComment, BlogPost, BlogTag, Checkout, Competition, CompetitionParticipant, CompetitionVote, Contact, Coordinates, Demerit, EntertainmentService, EventService, EventTask, Exhibitor, IdeaConfiguration, IdeaInterest, IdeaInterestResponse, Invitation, Link, Media, Notification, Organization, Prize, Recurrence, Reminder, Review, Service, ServiceAddon, TaskComment, ServiceBooking, ServiceBookingAddOn, ServiceBookingCheckout, ServiceBookingDay, ServiceBookingFee, ServiceBookingPackage, ServiceBookingPriceBreakdown, ServiceDailyRates, ServiceFormatOption, ServiceLink, ServicePackage, ServiceRange, ServiceRate, ServiceRatesAssociation, ServiceSpecialRates, ServiceSubscriptionCounts, SocialMediaPlatform, SocialMediaProfile, Sponsor, SponsoredEvent, StripeAccount, TargetAudience, Ticket, TicketMetadata, TicketTier, TicketTransfer, User, UserPreferences, UserStats, UserSubscription, Vendor, VendorSpaceRequirements, VendorInsurance, VendorPermit, VendorPreferences, VendorSocialMediaExpectation, Venue, VolunteerService } from "@prisma/client";
|
|
1
|
+
import { AmountOfGuests, AssociatedBash, AssociatedService, BashComment, BashEvent, BashEventPromoCode, BlogCategory, BlogComment, BlogPost, BlogTag, Checkout, Competition, CompetitionParticipant, CompetitionVote, Contact, Coordinates, Demerit, EntertainmentService, EventService, EventTask, Exhibitor, IdeaConfiguration, IdeaInterest, IdeaInterestResponse, Invitation, Link, Media, Notification, Organization, Prisma, Prize, Recurrence, Reminder, Review, Service, ServiceAddon, TaskComment, ServiceBooking, ServiceBookingAddOn, ServiceBookingCheckout, ServiceBookingDay, ServiceBookingFee, ServiceBookingPackage, ServiceBookingPriceBreakdown, ServiceDailyRates, ServiceFormatOption, ServiceLink, ServicePackage, ServiceRange, ServiceRate, ServiceRatesAssociation, ServiceSpecialRates, ServiceSubscriptionCounts, SocialMediaPlatform, SocialMediaProfile, Sponsor, SponsoredEvent, StripeAccount, TargetAudience, Ticket, TicketMetadata, TicketTier, TicketTransfer, User, UserPreferences, UserStats, UserSubscription, Vendor, VendorSpaceRequirements, VendorInsurance, VendorPermit, VendorPreferences, VendorSocialMediaExpectation, Venue, VolunteerService } from "@prisma/client";
|
|
2
2
|
import { BlogStatus } from "./definitions.js";
|
|
3
3
|
import { DeepPartial, Override, RemoveCommonProperties, UnionFromArray } from "./utils/typeUtils.js";
|
|
4
4
|
export interface ApiResponse<T> {
|
|
@@ -12,6 +12,10 @@ export declare const PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT: {
|
|
|
12
12
|
subscriptionCount: true;
|
|
13
13
|
listedCount: true;
|
|
14
14
|
};
|
|
15
|
+
/** Shape of `User.userSubscription` when selected via `PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT` (e.g. on `PublicUser`). */
|
|
16
|
+
export type PublicUserSubscription = Prisma.UserSubscriptionGetPayload<{
|
|
17
|
+
select: typeof PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT;
|
|
18
|
+
}>;
|
|
15
19
|
export declare const PRIVATE_USER_SUBSCRIPTION_DATA_TO_SELECT: {
|
|
16
20
|
stripeAccountId: true;
|
|
17
21
|
stripeCheckoutSessionId: true;
|
|
@@ -71,6 +75,16 @@ export declare const FRONT_END_USER_DATA_TO_SELECT: {
|
|
|
71
75
|
hostRating: true;
|
|
72
76
|
totalRatings: true;
|
|
73
77
|
totalEventsHosted: true;
|
|
78
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
79
|
+
userSubscription: {
|
|
80
|
+
select: {
|
|
81
|
+
type: true;
|
|
82
|
+
status: true;
|
|
83
|
+
ownerId: true;
|
|
84
|
+
subscriptionCount: true;
|
|
85
|
+
listedCount: true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
74
88
|
};
|
|
75
89
|
export declare const PRIVATE_USER_ACCOUNT_TO_SELECT: {
|
|
76
90
|
street: true;
|
|
@@ -258,6 +272,16 @@ export declare const BASH_EVENT_DATA_TO_INCLUDE: {
|
|
|
258
272
|
hostRating: true;
|
|
259
273
|
totalRatings: true;
|
|
260
274
|
totalEventsHosted: true;
|
|
275
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
276
|
+
userSubscription: {
|
|
277
|
+
select: {
|
|
278
|
+
type: true;
|
|
279
|
+
status: true;
|
|
280
|
+
ownerId: true;
|
|
281
|
+
subscriptionCount: true;
|
|
282
|
+
listedCount: true;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
261
285
|
};
|
|
262
286
|
};
|
|
263
287
|
payoutUser: {
|
|
@@ -319,6 +343,16 @@ export declare const BASH_EVENT_DATA_TO_INCLUDE: {
|
|
|
319
343
|
hostRating: true;
|
|
320
344
|
totalRatings: true;
|
|
321
345
|
totalEventsHosted: true;
|
|
346
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
347
|
+
userSubscription: {
|
|
348
|
+
select: {
|
|
349
|
+
type: true;
|
|
350
|
+
status: true;
|
|
351
|
+
ownerId: true;
|
|
352
|
+
subscriptionCount: true;
|
|
353
|
+
listedCount: true;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
322
356
|
};
|
|
323
357
|
};
|
|
324
358
|
};
|
|
@@ -366,6 +400,16 @@ export declare const BASH_EVENT_DATA_TO_INCLUDE: {
|
|
|
366
400
|
hostRating: true;
|
|
367
401
|
totalRatings: true;
|
|
368
402
|
totalEventsHosted: true;
|
|
403
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
404
|
+
userSubscription: {
|
|
405
|
+
select: {
|
|
406
|
+
type: true;
|
|
407
|
+
status: true;
|
|
408
|
+
ownerId: true;
|
|
409
|
+
subscriptionCount: true;
|
|
410
|
+
listedCount: true;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
369
413
|
};
|
|
370
414
|
};
|
|
371
415
|
};
|
|
@@ -425,12 +469,20 @@ export declare const STRIPE_ACCOUNT_DATA_TO_INCLUDE: {
|
|
|
425
469
|
hostRating: true;
|
|
426
470
|
totalRatings: true;
|
|
427
471
|
totalEventsHosted: true;
|
|
472
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
473
|
+
userSubscription: {
|
|
474
|
+
select: {
|
|
475
|
+
type: true;
|
|
476
|
+
status: true;
|
|
477
|
+
ownerId: true;
|
|
478
|
+
subscriptionCount: true;
|
|
479
|
+
listedCount: true;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
428
482
|
};
|
|
429
483
|
};
|
|
430
484
|
userSubscription: {
|
|
431
485
|
select: {
|
|
432
|
-
stripeAccountId: true;
|
|
433
|
-
stripeCheckoutSessionId: true;
|
|
434
486
|
type: true;
|
|
435
487
|
status: true;
|
|
436
488
|
ownerId: true;
|
|
@@ -609,6 +661,16 @@ export declare const SERVICE_DATA_TO_INCLUDE: {
|
|
|
609
661
|
hostRating: true;
|
|
610
662
|
totalRatings: true;
|
|
611
663
|
totalEventsHosted: true;
|
|
664
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
665
|
+
userSubscription: {
|
|
666
|
+
select: {
|
|
667
|
+
type: true;
|
|
668
|
+
status: true;
|
|
669
|
+
ownerId: true;
|
|
670
|
+
subscriptionCount: true;
|
|
671
|
+
listedCount: true;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
612
674
|
};
|
|
613
675
|
};
|
|
614
676
|
owner: {
|
|
@@ -652,6 +714,16 @@ export declare const SERVICE_DATA_TO_INCLUDE: {
|
|
|
652
714
|
hostRating: true;
|
|
653
715
|
totalRatings: true;
|
|
654
716
|
totalEventsHosted: true;
|
|
717
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
718
|
+
userSubscription: {
|
|
719
|
+
select: {
|
|
720
|
+
type: true;
|
|
721
|
+
status: true;
|
|
722
|
+
ownerId: true;
|
|
723
|
+
subscriptionCount: true;
|
|
724
|
+
listedCount: true;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
655
727
|
};
|
|
656
728
|
};
|
|
657
729
|
targetAudience: true;
|
|
@@ -734,6 +806,16 @@ export declare const SERVICE_DATA_TO_INCLUDE: {
|
|
|
734
806
|
hostRating: true;
|
|
735
807
|
totalRatings: true;
|
|
736
808
|
totalEventsHosted: true;
|
|
809
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
810
|
+
userSubscription: {
|
|
811
|
+
select: {
|
|
812
|
+
type: true;
|
|
813
|
+
status: true;
|
|
814
|
+
ownerId: true;
|
|
815
|
+
subscriptionCount: true;
|
|
816
|
+
listedCount: true;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
737
819
|
};
|
|
738
820
|
};
|
|
739
821
|
payoutUser: {
|
|
@@ -795,6 +877,16 @@ export declare const SERVICE_DATA_TO_INCLUDE: {
|
|
|
795
877
|
hostRating: true;
|
|
796
878
|
totalRatings: true;
|
|
797
879
|
totalEventsHosted: true;
|
|
880
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
881
|
+
userSubscription: {
|
|
882
|
+
select: {
|
|
883
|
+
type: true;
|
|
884
|
+
status: true;
|
|
885
|
+
ownerId: true;
|
|
886
|
+
subscriptionCount: true;
|
|
887
|
+
listedCount: true;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
798
890
|
};
|
|
799
891
|
};
|
|
800
892
|
};
|
|
@@ -842,6 +934,16 @@ export declare const SERVICE_DATA_TO_INCLUDE: {
|
|
|
842
934
|
hostRating: true;
|
|
843
935
|
totalRatings: true;
|
|
844
936
|
totalEventsHosted: true;
|
|
937
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
938
|
+
userSubscription: {
|
|
939
|
+
select: {
|
|
940
|
+
type: true;
|
|
941
|
+
status: true;
|
|
942
|
+
ownerId: true;
|
|
943
|
+
subscriptionCount: true;
|
|
944
|
+
listedCount: true;
|
|
945
|
+
};
|
|
946
|
+
};
|
|
845
947
|
};
|
|
846
948
|
};
|
|
847
949
|
};
|
|
@@ -1013,6 +1115,16 @@ export declare const SERVICE_BOOKING_CHECKOUT_DATA_TO_INCLUDE: {
|
|
|
1013
1115
|
hostRating: true;
|
|
1014
1116
|
totalRatings: true;
|
|
1015
1117
|
totalEventsHosted: true;
|
|
1118
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1119
|
+
userSubscription: {
|
|
1120
|
+
select: {
|
|
1121
|
+
type: true;
|
|
1122
|
+
status: true;
|
|
1123
|
+
ownerId: true;
|
|
1124
|
+
subscriptionCount: true;
|
|
1125
|
+
listedCount: true;
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1016
1128
|
};
|
|
1017
1129
|
};
|
|
1018
1130
|
};
|
|
@@ -1060,6 +1172,16 @@ export declare const FRONT_END_SERVICE_BOOKING_CHECKOUT_DATA_SELECT: {
|
|
|
1060
1172
|
hostRating: true;
|
|
1061
1173
|
totalRatings: true;
|
|
1062
1174
|
totalEventsHosted: true;
|
|
1175
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1176
|
+
userSubscription: {
|
|
1177
|
+
select: {
|
|
1178
|
+
type: true;
|
|
1179
|
+
status: true;
|
|
1180
|
+
ownerId: true;
|
|
1181
|
+
subscriptionCount: true;
|
|
1182
|
+
listedCount: true;
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1063
1185
|
};
|
|
1064
1186
|
};
|
|
1065
1187
|
checkoutDateTime: true;
|
|
@@ -1133,6 +1255,16 @@ export declare const SERVICE_BOOKING_PUBLIC_DATA_TO_INCLUDE: {
|
|
|
1133
1255
|
hostRating: true;
|
|
1134
1256
|
totalRatings: true;
|
|
1135
1257
|
totalEventsHosted: true;
|
|
1258
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1259
|
+
userSubscription: {
|
|
1260
|
+
select: {
|
|
1261
|
+
type: true;
|
|
1262
|
+
status: true;
|
|
1263
|
+
ownerId: true;
|
|
1264
|
+
subscriptionCount: true;
|
|
1265
|
+
listedCount: true;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1136
1268
|
};
|
|
1137
1269
|
};
|
|
1138
1270
|
owner: {
|
|
@@ -1176,6 +1308,16 @@ export declare const SERVICE_BOOKING_PUBLIC_DATA_TO_INCLUDE: {
|
|
|
1176
1308
|
hostRating: true;
|
|
1177
1309
|
totalRatings: true;
|
|
1178
1310
|
totalEventsHosted: true;
|
|
1311
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1312
|
+
userSubscription: {
|
|
1313
|
+
select: {
|
|
1314
|
+
type: true;
|
|
1315
|
+
status: true;
|
|
1316
|
+
ownerId: true;
|
|
1317
|
+
subscriptionCount: true;
|
|
1318
|
+
listedCount: true;
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1179
1321
|
};
|
|
1180
1322
|
};
|
|
1181
1323
|
targetAudience: true;
|
|
@@ -1330,6 +1472,16 @@ export declare const SERVICE_BOOKING_PRIVATE_DATA_TO_INCLUDE: {
|
|
|
1330
1472
|
hostRating: true;
|
|
1331
1473
|
totalRatings: true;
|
|
1332
1474
|
totalEventsHosted: true;
|
|
1475
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1476
|
+
userSubscription: {
|
|
1477
|
+
select: {
|
|
1478
|
+
type: true;
|
|
1479
|
+
status: true;
|
|
1480
|
+
ownerId: true;
|
|
1481
|
+
subscriptionCount: true;
|
|
1482
|
+
listedCount: true;
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1333
1485
|
};
|
|
1334
1486
|
};
|
|
1335
1487
|
checkoutDateTime: true;
|
|
@@ -1380,6 +1532,16 @@ export declare const SERVICE_BOOKING_PRIVATE_DATA_TO_INCLUDE: {
|
|
|
1380
1532
|
hostRating: true;
|
|
1381
1533
|
totalRatings: true;
|
|
1382
1534
|
totalEventsHosted: true;
|
|
1535
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1536
|
+
userSubscription: {
|
|
1537
|
+
select: {
|
|
1538
|
+
type: true;
|
|
1539
|
+
status: true;
|
|
1540
|
+
ownerId: true;
|
|
1541
|
+
subscriptionCount: true;
|
|
1542
|
+
listedCount: true;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1383
1545
|
};
|
|
1384
1546
|
};
|
|
1385
1547
|
forUser: {
|
|
@@ -1423,6 +1585,16 @@ export declare const SERVICE_BOOKING_PRIVATE_DATA_TO_INCLUDE: {
|
|
|
1423
1585
|
hostRating: true;
|
|
1424
1586
|
totalRatings: true;
|
|
1425
1587
|
totalEventsHosted: true;
|
|
1588
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1589
|
+
userSubscription: {
|
|
1590
|
+
select: {
|
|
1591
|
+
type: true;
|
|
1592
|
+
status: true;
|
|
1593
|
+
ownerId: true;
|
|
1594
|
+
subscriptionCount: true;
|
|
1595
|
+
listedCount: true;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1426
1598
|
};
|
|
1427
1599
|
};
|
|
1428
1600
|
bookedDays: {
|
|
@@ -1489,6 +1661,16 @@ export declare const SERVICE_BOOKING_PRIVATE_DATA_TO_INCLUDE: {
|
|
|
1489
1661
|
hostRating: true;
|
|
1490
1662
|
totalRatings: true;
|
|
1491
1663
|
totalEventsHosted: true;
|
|
1664
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1665
|
+
userSubscription: {
|
|
1666
|
+
select: {
|
|
1667
|
+
type: true;
|
|
1668
|
+
status: true;
|
|
1669
|
+
ownerId: true;
|
|
1670
|
+
subscriptionCount: true;
|
|
1671
|
+
listedCount: true;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1492
1674
|
};
|
|
1493
1675
|
};
|
|
1494
1676
|
owner: {
|
|
@@ -1532,6 +1714,16 @@ export declare const SERVICE_BOOKING_PRIVATE_DATA_TO_INCLUDE: {
|
|
|
1532
1714
|
hostRating: true;
|
|
1533
1715
|
totalRatings: true;
|
|
1534
1716
|
totalEventsHosted: true;
|
|
1717
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
1718
|
+
userSubscription: {
|
|
1719
|
+
select: {
|
|
1720
|
+
type: true;
|
|
1721
|
+
status: true;
|
|
1722
|
+
ownerId: true;
|
|
1723
|
+
subscriptionCount: true;
|
|
1724
|
+
listedCount: true;
|
|
1725
|
+
};
|
|
1726
|
+
};
|
|
1535
1727
|
};
|
|
1536
1728
|
};
|
|
1537
1729
|
targetAudience: true;
|
|
@@ -1823,6 +2015,16 @@ export declare const BASH_NOTIFICATION_DATA_TO_INCLUDE: {
|
|
|
1823
2015
|
hostRating: true;
|
|
1824
2016
|
totalRatings: true;
|
|
1825
2017
|
totalEventsHosted: true;
|
|
2018
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2019
|
+
userSubscription: {
|
|
2020
|
+
select: {
|
|
2021
|
+
type: true;
|
|
2022
|
+
status: true;
|
|
2023
|
+
ownerId: true;
|
|
2024
|
+
subscriptionCount: true;
|
|
2025
|
+
listedCount: true;
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
1826
2028
|
};
|
|
1827
2029
|
};
|
|
1828
2030
|
owner: {
|
|
@@ -1866,6 +2068,16 @@ export declare const BASH_NOTIFICATION_DATA_TO_INCLUDE: {
|
|
|
1866
2068
|
hostRating: true;
|
|
1867
2069
|
totalRatings: true;
|
|
1868
2070
|
totalEventsHosted: true;
|
|
2071
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2072
|
+
userSubscription: {
|
|
2073
|
+
select: {
|
|
2074
|
+
type: true;
|
|
2075
|
+
status: true;
|
|
2076
|
+
ownerId: true;
|
|
2077
|
+
subscriptionCount: true;
|
|
2078
|
+
listedCount: true;
|
|
2079
|
+
};
|
|
2080
|
+
};
|
|
1869
2081
|
};
|
|
1870
2082
|
};
|
|
1871
2083
|
targetAudience: true;
|
|
@@ -2016,6 +2228,16 @@ export declare const BASH_NOTIFICATION_DATA_TO_INCLUDE: {
|
|
|
2016
2228
|
hostRating: true;
|
|
2017
2229
|
totalRatings: true;
|
|
2018
2230
|
totalEventsHosted: true;
|
|
2231
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2232
|
+
userSubscription: {
|
|
2233
|
+
select: {
|
|
2234
|
+
type: true;
|
|
2235
|
+
status: true;
|
|
2236
|
+
ownerId: true;
|
|
2237
|
+
subscriptionCount: true;
|
|
2238
|
+
listedCount: true;
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2019
2241
|
};
|
|
2020
2242
|
};
|
|
2021
2243
|
owner: {
|
|
@@ -2059,6 +2281,16 @@ export declare const BASH_NOTIFICATION_DATA_TO_INCLUDE: {
|
|
|
2059
2281
|
hostRating: true;
|
|
2060
2282
|
totalRatings: true;
|
|
2061
2283
|
totalEventsHosted: true;
|
|
2284
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2285
|
+
userSubscription: {
|
|
2286
|
+
select: {
|
|
2287
|
+
type: true;
|
|
2288
|
+
status: true;
|
|
2289
|
+
ownerId: true;
|
|
2290
|
+
subscriptionCount: true;
|
|
2291
|
+
listedCount: true;
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2062
2294
|
};
|
|
2063
2295
|
};
|
|
2064
2296
|
targetAudience: true;
|
|
@@ -2214,6 +2446,16 @@ export declare const TASK_COMMENT_DATA_TO_INCLUDE: {
|
|
|
2214
2446
|
hostRating: true;
|
|
2215
2447
|
totalRatings: true;
|
|
2216
2448
|
totalEventsHosted: true;
|
|
2449
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2450
|
+
userSubscription: {
|
|
2451
|
+
select: {
|
|
2452
|
+
type: true;
|
|
2453
|
+
status: true;
|
|
2454
|
+
ownerId: true;
|
|
2455
|
+
subscriptionCount: true;
|
|
2456
|
+
listedCount: true;
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2217
2459
|
};
|
|
2218
2460
|
};
|
|
2219
2461
|
};
|
|
@@ -2264,6 +2506,16 @@ export declare const EVENT_TASK_DATA_TO_INCLUDE: {
|
|
|
2264
2506
|
hostRating: true;
|
|
2265
2507
|
totalRatings: true;
|
|
2266
2508
|
totalEventsHosted: true;
|
|
2509
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2510
|
+
userSubscription: {
|
|
2511
|
+
select: {
|
|
2512
|
+
type: true;
|
|
2513
|
+
status: true;
|
|
2514
|
+
ownerId: true;
|
|
2515
|
+
subscriptionCount: true;
|
|
2516
|
+
listedCount: true;
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2267
2519
|
};
|
|
2268
2520
|
};
|
|
2269
2521
|
assignedTo: {
|
|
@@ -2307,6 +2559,16 @@ export declare const EVENT_TASK_DATA_TO_INCLUDE: {
|
|
|
2307
2559
|
hostRating: true;
|
|
2308
2560
|
totalRatings: true;
|
|
2309
2561
|
totalEventsHosted: true;
|
|
2562
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2563
|
+
userSubscription: {
|
|
2564
|
+
select: {
|
|
2565
|
+
type: true;
|
|
2566
|
+
status: true;
|
|
2567
|
+
ownerId: true;
|
|
2568
|
+
subscriptionCount: true;
|
|
2569
|
+
listedCount: true;
|
|
2570
|
+
};
|
|
2571
|
+
};
|
|
2310
2572
|
};
|
|
2311
2573
|
};
|
|
2312
2574
|
comments: {
|
|
@@ -2352,6 +2614,16 @@ export declare const EVENT_TASK_DATA_TO_INCLUDE: {
|
|
|
2352
2614
|
hostRating: true;
|
|
2353
2615
|
totalRatings: true;
|
|
2354
2616
|
totalEventsHosted: true;
|
|
2617
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2618
|
+
userSubscription: {
|
|
2619
|
+
select: {
|
|
2620
|
+
type: true;
|
|
2621
|
+
status: true;
|
|
2622
|
+
ownerId: true;
|
|
2623
|
+
subscriptionCount: true;
|
|
2624
|
+
listedCount: true;
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2355
2627
|
};
|
|
2356
2628
|
};
|
|
2357
2629
|
};
|
|
@@ -2408,6 +2680,16 @@ export declare const INVITATION_DATA_TO_INCLUDE: {
|
|
|
2408
2680
|
hostRating: true;
|
|
2409
2681
|
totalRatings: true;
|
|
2410
2682
|
totalEventsHosted: true;
|
|
2683
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2684
|
+
userSubscription: {
|
|
2685
|
+
select: {
|
|
2686
|
+
type: true;
|
|
2687
|
+
status: true;
|
|
2688
|
+
ownerId: true;
|
|
2689
|
+
subscriptionCount: true;
|
|
2690
|
+
listedCount: true;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2411
2693
|
};
|
|
2412
2694
|
};
|
|
2413
2695
|
sentTo: {
|
|
@@ -2451,6 +2733,16 @@ export declare const INVITATION_DATA_TO_INCLUDE: {
|
|
|
2451
2733
|
hostRating: true;
|
|
2452
2734
|
totalRatings: true;
|
|
2453
2735
|
totalEventsHosted: true;
|
|
2736
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2737
|
+
userSubscription: {
|
|
2738
|
+
select: {
|
|
2739
|
+
type: true;
|
|
2740
|
+
status: true;
|
|
2741
|
+
ownerId: true;
|
|
2742
|
+
subscriptionCount: true;
|
|
2743
|
+
listedCount: true;
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2454
2746
|
};
|
|
2455
2747
|
};
|
|
2456
2748
|
tickets: true;
|
|
@@ -2514,6 +2806,16 @@ export declare const ASSOCIATED_BASH_DATA_TO_INCLUDE: {
|
|
|
2514
2806
|
hostRating: true;
|
|
2515
2807
|
totalRatings: true;
|
|
2516
2808
|
totalEventsHosted: true;
|
|
2809
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2810
|
+
userSubscription: {
|
|
2811
|
+
select: {
|
|
2812
|
+
type: true;
|
|
2813
|
+
status: true;
|
|
2814
|
+
ownerId: true;
|
|
2815
|
+
subscriptionCount: true;
|
|
2816
|
+
listedCount: true;
|
|
2817
|
+
};
|
|
2818
|
+
};
|
|
2517
2819
|
};
|
|
2518
2820
|
};
|
|
2519
2821
|
payoutUser: {
|
|
@@ -2575,6 +2877,16 @@ export declare const ASSOCIATED_BASH_DATA_TO_INCLUDE: {
|
|
|
2575
2877
|
hostRating: true;
|
|
2576
2878
|
totalRatings: true;
|
|
2577
2879
|
totalEventsHosted: true;
|
|
2880
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2881
|
+
userSubscription: {
|
|
2882
|
+
select: {
|
|
2883
|
+
type: true;
|
|
2884
|
+
status: true;
|
|
2885
|
+
ownerId: true;
|
|
2886
|
+
subscriptionCount: true;
|
|
2887
|
+
listedCount: true;
|
|
2888
|
+
};
|
|
2889
|
+
};
|
|
2578
2890
|
};
|
|
2579
2891
|
};
|
|
2580
2892
|
};
|
|
@@ -2622,6 +2934,16 @@ export declare const ASSOCIATED_BASH_DATA_TO_INCLUDE: {
|
|
|
2622
2934
|
hostRating: true;
|
|
2623
2935
|
totalRatings: true;
|
|
2624
2936
|
totalEventsHosted: true;
|
|
2937
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2938
|
+
userSubscription: {
|
|
2939
|
+
select: {
|
|
2940
|
+
type: true;
|
|
2941
|
+
status: true;
|
|
2942
|
+
ownerId: true;
|
|
2943
|
+
subscriptionCount: true;
|
|
2944
|
+
listedCount: true;
|
|
2945
|
+
};
|
|
2946
|
+
};
|
|
2625
2947
|
};
|
|
2626
2948
|
};
|
|
2627
2949
|
};
|
|
@@ -2673,6 +2995,16 @@ export declare const ASSOCIATED_BASH_DATA_TO_INCLUDE: {
|
|
|
2673
2995
|
hostRating: true;
|
|
2674
2996
|
totalRatings: true;
|
|
2675
2997
|
totalEventsHosted: true;
|
|
2998
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
2999
|
+
userSubscription: {
|
|
3000
|
+
select: {
|
|
3001
|
+
type: true;
|
|
3002
|
+
status: true;
|
|
3003
|
+
ownerId: true;
|
|
3004
|
+
subscriptionCount: true;
|
|
3005
|
+
listedCount: true;
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
2676
3008
|
};
|
|
2677
3009
|
};
|
|
2678
3010
|
sentTo: {
|
|
@@ -2716,6 +3048,16 @@ export declare const ASSOCIATED_BASH_DATA_TO_INCLUDE: {
|
|
|
2716
3048
|
hostRating: true;
|
|
2717
3049
|
totalRatings: true;
|
|
2718
3050
|
totalEventsHosted: true;
|
|
3051
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3052
|
+
userSubscription: {
|
|
3053
|
+
select: {
|
|
3054
|
+
type: true;
|
|
3055
|
+
status: true;
|
|
3056
|
+
ownerId: true;
|
|
3057
|
+
subscriptionCount: true;
|
|
3058
|
+
listedCount: true;
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
2719
3061
|
};
|
|
2720
3062
|
};
|
|
2721
3063
|
tickets: true;
|
|
@@ -2766,6 +3108,16 @@ export declare const ASSOCIATED_SERVICE_DATA_TO_INCLUDE: {
|
|
|
2766
3108
|
hostRating: true;
|
|
2767
3109
|
totalRatings: true;
|
|
2768
3110
|
totalEventsHosted: true;
|
|
3111
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3112
|
+
userSubscription: {
|
|
3113
|
+
select: {
|
|
3114
|
+
type: true;
|
|
3115
|
+
status: true;
|
|
3116
|
+
ownerId: true;
|
|
3117
|
+
subscriptionCount: true;
|
|
3118
|
+
listedCount: true;
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
2769
3121
|
};
|
|
2770
3122
|
};
|
|
2771
3123
|
owner: {
|
|
@@ -2809,6 +3161,16 @@ export declare const ASSOCIATED_SERVICE_DATA_TO_INCLUDE: {
|
|
|
2809
3161
|
hostRating: true;
|
|
2810
3162
|
totalRatings: true;
|
|
2811
3163
|
totalEventsHosted: true;
|
|
3164
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3165
|
+
userSubscription: {
|
|
3166
|
+
select: {
|
|
3167
|
+
type: true;
|
|
3168
|
+
status: true;
|
|
3169
|
+
ownerId: true;
|
|
3170
|
+
subscriptionCount: true;
|
|
3171
|
+
listedCount: true;
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
2812
3174
|
};
|
|
2813
3175
|
};
|
|
2814
3176
|
targetAudience: true;
|
|
@@ -2891,6 +3253,16 @@ export declare const ASSOCIATED_SERVICE_DATA_TO_INCLUDE: {
|
|
|
2891
3253
|
hostRating: true;
|
|
2892
3254
|
totalRatings: true;
|
|
2893
3255
|
totalEventsHosted: true;
|
|
3256
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3257
|
+
userSubscription: {
|
|
3258
|
+
select: {
|
|
3259
|
+
type: true;
|
|
3260
|
+
status: true;
|
|
3261
|
+
ownerId: true;
|
|
3262
|
+
subscriptionCount: true;
|
|
3263
|
+
listedCount: true;
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
2894
3266
|
};
|
|
2895
3267
|
};
|
|
2896
3268
|
payoutUser: {
|
|
@@ -2952,6 +3324,16 @@ export declare const ASSOCIATED_SERVICE_DATA_TO_INCLUDE: {
|
|
|
2952
3324
|
hostRating: true;
|
|
2953
3325
|
totalRatings: true;
|
|
2954
3326
|
totalEventsHosted: true;
|
|
3327
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3328
|
+
userSubscription: {
|
|
3329
|
+
select: {
|
|
3330
|
+
type: true;
|
|
3331
|
+
status: true;
|
|
3332
|
+
ownerId: true;
|
|
3333
|
+
subscriptionCount: true;
|
|
3334
|
+
listedCount: true;
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
2955
3337
|
};
|
|
2956
3338
|
};
|
|
2957
3339
|
};
|
|
@@ -2999,6 +3381,16 @@ export declare const ASSOCIATED_SERVICE_DATA_TO_INCLUDE: {
|
|
|
2999
3381
|
hostRating: true;
|
|
3000
3382
|
totalRatings: true;
|
|
3001
3383
|
totalEventsHosted: true;
|
|
3384
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3385
|
+
userSubscription: {
|
|
3386
|
+
select: {
|
|
3387
|
+
type: true;
|
|
3388
|
+
status: true;
|
|
3389
|
+
ownerId: true;
|
|
3390
|
+
subscriptionCount: true;
|
|
3391
|
+
listedCount: true;
|
|
3392
|
+
};
|
|
3393
|
+
};
|
|
3002
3394
|
};
|
|
3003
3395
|
};
|
|
3004
3396
|
};
|
|
@@ -3111,6 +3503,16 @@ export declare const CHECKOUT_DATA_TO_INCLUDE: {
|
|
|
3111
3503
|
hostRating: true;
|
|
3112
3504
|
totalRatings: true;
|
|
3113
3505
|
totalEventsHosted: true;
|
|
3506
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3507
|
+
userSubscription: {
|
|
3508
|
+
select: {
|
|
3509
|
+
type: true;
|
|
3510
|
+
status: true;
|
|
3511
|
+
ownerId: true;
|
|
3512
|
+
subscriptionCount: true;
|
|
3513
|
+
listedCount: true;
|
|
3514
|
+
};
|
|
3515
|
+
};
|
|
3114
3516
|
};
|
|
3115
3517
|
};
|
|
3116
3518
|
tickets: {
|
|
@@ -3164,6 +3566,16 @@ export declare const CONTACT_DATA_TO_INCLUDE: {
|
|
|
3164
3566
|
hostRating: true;
|
|
3165
3567
|
totalRatings: true;
|
|
3166
3568
|
totalEventsHosted: true;
|
|
3569
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3570
|
+
userSubscription: {
|
|
3571
|
+
select: {
|
|
3572
|
+
type: true;
|
|
3573
|
+
status: true;
|
|
3574
|
+
ownerId: true;
|
|
3575
|
+
subscriptionCount: true;
|
|
3576
|
+
listedCount: true;
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3167
3579
|
};
|
|
3168
3580
|
};
|
|
3169
3581
|
};
|
|
@@ -3204,7 +3616,9 @@ export declare const USER_DATA_SELECT_REVIEWS_COMMENTS: {
|
|
|
3204
3616
|
};
|
|
3205
3617
|
};
|
|
3206
3618
|
};
|
|
3207
|
-
export type PublicUser = Pick<UserExt, keyof typeof FRONT_END_USER_DATA_TO_SELECT> &
|
|
3619
|
+
export type PublicUser = Omit<Pick<UserExt, keyof typeof FRONT_END_USER_DATA_TO_SELECT>, "userSubscription"> & {
|
|
3620
|
+
userSubscription?: PublicUserSubscription | null;
|
|
3621
|
+
} & Partial<Pick<UserExt, keyof typeof USER_DATA_SELECT_REVIEWS_COMMENTS>>;
|
|
3208
3622
|
export type PublicStripeAccount = Pick<StripeAccountExt, keyof typeof PUBLIC_STRIPE_ACCOUNT_DATA_TO_SELECT>;
|
|
3209
3623
|
export declare const BLOG_POST_DATA_TO_INCLUDE: {
|
|
3210
3624
|
author: {
|
|
@@ -3248,6 +3662,16 @@ export declare const BLOG_POST_DATA_TO_INCLUDE: {
|
|
|
3248
3662
|
hostRating: true;
|
|
3249
3663
|
totalRatings: true;
|
|
3250
3664
|
totalEventsHosted: true;
|
|
3665
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3666
|
+
userSubscription: {
|
|
3667
|
+
select: {
|
|
3668
|
+
type: true;
|
|
3669
|
+
status: true;
|
|
3670
|
+
ownerId: true;
|
|
3671
|
+
subscriptionCount: true;
|
|
3672
|
+
listedCount: true;
|
|
3673
|
+
};
|
|
3674
|
+
};
|
|
3251
3675
|
};
|
|
3252
3676
|
};
|
|
3253
3677
|
category: true;
|
|
@@ -3295,6 +3719,16 @@ export declare const BLOG_POST_DATA_TO_INCLUDE: {
|
|
|
3295
3719
|
hostRating: true;
|
|
3296
3720
|
totalRatings: true;
|
|
3297
3721
|
totalEventsHosted: true;
|
|
3722
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3723
|
+
userSubscription: {
|
|
3724
|
+
select: {
|
|
3725
|
+
type: true;
|
|
3726
|
+
status: true;
|
|
3727
|
+
ownerId: true;
|
|
3728
|
+
subscriptionCount: true;
|
|
3729
|
+
listedCount: true;
|
|
3730
|
+
};
|
|
3731
|
+
};
|
|
3298
3732
|
};
|
|
3299
3733
|
};
|
|
3300
3734
|
replies: {
|
|
@@ -3340,6 +3774,16 @@ export declare const BLOG_POST_DATA_TO_INCLUDE: {
|
|
|
3340
3774
|
hostRating: true;
|
|
3341
3775
|
totalRatings: true;
|
|
3342
3776
|
totalEventsHosted: true;
|
|
3777
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3778
|
+
userSubscription: {
|
|
3779
|
+
select: {
|
|
3780
|
+
type: true;
|
|
3781
|
+
status: true;
|
|
3782
|
+
ownerId: true;
|
|
3783
|
+
subscriptionCount: true;
|
|
3784
|
+
listedCount: true;
|
|
3785
|
+
};
|
|
3786
|
+
};
|
|
3343
3787
|
};
|
|
3344
3788
|
};
|
|
3345
3789
|
};
|
|
@@ -3395,6 +3839,16 @@ export declare const BLOG_POST_PREVIEW_DATA_TO_INCLUDE: {
|
|
|
3395
3839
|
hostRating: true;
|
|
3396
3840
|
totalRatings: true;
|
|
3397
3841
|
totalEventsHosted: true;
|
|
3842
|
+
/** Subscription summary for public surfaces — omit Stripe linkage fields (see PUBLIC_USER_SUBSCRIPTION_DATA_TO_SELECT). */
|
|
3843
|
+
userSubscription: {
|
|
3844
|
+
select: {
|
|
3845
|
+
type: true;
|
|
3846
|
+
status: true;
|
|
3847
|
+
ownerId: true;
|
|
3848
|
+
subscriptionCount: true;
|
|
3849
|
+
listedCount: true;
|
|
3850
|
+
};
|
|
3851
|
+
};
|
|
3398
3852
|
};
|
|
3399
3853
|
};
|
|
3400
3854
|
category: true;
|