@timardex/cluemart-shared 1.6.130 → 1.7.1
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/ad-BUYzE6zx.d.ts +181 -0
- package/dist/ad-BhLoEul3.d.mts +181 -0
- package/dist/affiliate-BbtjeUP4.d.mts +73 -0
- package/dist/affiliate-C51nzKsw.d.ts +73 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +951 -2546
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +30 -28
- package/dist/auth/index.d.ts +30 -28
- package/dist/auth/index.mjs +25 -24
- package/dist/auth/index.mjs.map +1 -1
- package/dist/chunk-32MKHJTX.mjs +1207 -0
- package/dist/chunk-32MKHJTX.mjs.map +1 -0
- package/dist/chunk-AYO3E4DM.mjs +224 -0
- package/dist/chunk-AYO3E4DM.mjs.map +1 -0
- package/dist/chunk-BIJ5NDXW.mjs +962 -0
- package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/chunk-ILILH7E2.mjs +219 -0
- package/dist/chunk-ILILH7E2.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-LBEJECG3.mjs} +64 -71
- package/dist/chunk-LBEJECG3.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-R6PCFOYO.mjs +3650 -0
- package/dist/chunk-R6PCFOYO.mjs.map +1 -0
- package/dist/{chunk-NWWKI4PJ.mjs → chunk-SD42WIMV.mjs} +5 -5
- package/dist/chunk-SD42WIMV.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/{chunk-DATBGC2K.mjs → chunk-VPANTTZI.mjs} +23 -108
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/chunk-X3OLM35T.mjs +278 -0
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/contactUs--NoohZBu.d.ts +11 -0
- package/dist/contactUs-CBWzefUS.d.mts +11 -0
- package/dist/enums/index.cjs +229 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +170 -5
- package/dist/enums/index.d.ts +170 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +112 -284
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -4
- package/dist/formFields/index.d.ts +2 -4
- package/dist/formFields/index.mjs +50 -919
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-CUYYxpy2.d.ts +699 -0
- package/dist/global-DePDtOFt.d.mts +699 -0
- package/dist/graphql/index.cjs +2304 -2872
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +469 -422
- package/dist/graphql/index.d.ts +469 -422
- package/dist/graphql/index.mjs +160 -2547
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3869 -534
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +9 -10
- package/dist/hooks/index.d.ts +9 -10
- package/dist/hooks/index.mjs +72 -54
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4477 -5723
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1679 -2539
- package/dist/index.d.ts +1679 -2539
- package/dist/index.mjs +4453 -5682
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +2 -3
- package/dist/map/index.d.ts +2 -3
- package/dist/resourceActivities-CMUcn2P7.d.ts +130 -0
- package/dist/resourceActivities-CwbJFGIp.d.mts +130 -0
- package/dist/sharing/index.cjs +19 -23
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +3 -16
- package/dist/sharing/index.d.ts +3 -16
- package/dist/sharing/index.mjs +29 -183
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +123 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +15 -234
- package/dist/types/index.d.ts +15 -234
- package/dist/types/index.mjs +31 -61
- package/dist/user-D47MLFyH.d.ts +134 -0
- package/dist/user-DE8edl3u.d.mts +134 -0
- package/dist/utils/index.cjs +117 -292
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +23 -25
- package/dist/utils/index.d.ts +23 -25
- package/dist/utils/index.mjs +5 -6
- package/package.json +3 -10
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
package/dist/types/index.d.mts
CHANGED
|
@@ -1,219 +1,23 @@
|
|
|
1
|
-
export { A as AdminUpdateResourceType, C as CreateBulkNotificationInput,
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
5
|
-
export { A as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
import
|
|
11
|
-
export { t as AdResource, t as AdResourceType, $ as AdType, a0 as AffiliateBankAccountDetailsType, a1 as AffiliateContactDetailsType, a2 as AffiliateDetailsType, a3 as AffiliateResourceType, a4 as AffiliateRewardType, z as AffiliateType, k as AuthPayloadType, B as BaseGameType, a5 as ChatMessageInputType, a6 as ChatMessageReactionType, a7 as ChatMessageReplyPreviewType, a8 as ChatMessageSeenType, a9 as ChatMessageType, aa as ChatParticipantType, ab as ChatType, ac as DailyClueBaseGameType, ad as DailyClueGameDataType, ae as DailyClueLetterType, af as GameDataType, ag as GameDateType, ah as GameDocType, ai as GameHistoryType, aj as GameLeaderboardType, ak as GameType, r as LocationGeoType, L as LocationType, al as MarketingMaterialRequestInputType, am as PostContentType, y as PostResource, y as PostResourceType, an as PostType, ao as PuzzleAnswerType, ap as PuzzleAnsweredQuestionType, aq as PuzzleBaseGameType, ar as PuzzleGameDataType, as as PuzzleQuestionType, at as RedeemHistoryType, au as RedeemRewardInput, au as RedeemRewardInputType, i as RedeemRewardResponseType, av as RedeemedRewardType, l as RefreshTokenPayloadType, aw as ReportChatUserType, ax as ResourceByUser, R as ResourceImageType, ay as SchoolCampaignType, az as SchoolRegisteredUserType, aA as SchoolReturnType, aB as StripeSubscriptionType, aC as SubscriptionPlanData, aC as SubscriptionPlanType, aD as SubscriptionPlansResponse, aD as SubscriptionPlansResponseType, aE as SubscriptionPricingData, aE as SubscriptionPricingType, aF as UnregisteredVendorInvitationType, aG as UserActivityType, ax as UserResource, V as VendorProductList, V as VendorProductListType } from '../graphql-CcvzTs9k.mjs';
|
|
12
|
-
import { PosterAssetId } from '../images/index.mjs';
|
|
13
|
-
import { V as VendorCalendarData, U as UnregisteredVendorFormData, a as VendorInfoFormData, b as VendorFormData } from '../vendor-DmMi2qmx.mjs';
|
|
14
|
-
export { C as CreateUnregisteredVendorFormData, c as CreateVendorFormData, d as CreateVendorInfoFormData, e as VendorAttributes } from '../vendor-DmMi2qmx.mjs';
|
|
15
|
-
import { P as Permission } from '../subscription-Cj_qBA7u.mjs';
|
|
16
|
-
export { b as TIERS_BY_PRIORITY, c as TIER_DISPLAY_LABELS, d as TIER_FROM_LICENCE, T as Tier } from '../subscription-Cj_qBA7u.mjs';
|
|
17
|
-
export { D as DailyClueGameData, G as GamePlacement, a as GamePlacementClue, g as gameScreenIdentifierList } from '../dailyClue-C6WXY73z.mjs';
|
|
18
|
-
export { a as AffiliateBankAccountDetailsForm, b as AffiliateContactDetails, A as AffiliateFormData, c as AffiliateRewardWriteType, C as CreateAffiliateFormData } from '../affiliate-Bqqlffw8.mjs';
|
|
1
|
+
export { A as AdminUpdateResourceType, c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, i as NotificationDataType, N as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CwbJFGIp.mjs';
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthMutationResponse, r as AuthPayloadType, s as CreateAdFormData, j as CreateAdFormState, m as CreateAppSettingsFormData, C as CreateLoginFormData, k as CreatePartnerFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, g as CreateResetPasswordFormData, o as CreateSchoolFormData, f as CreateValidateVerificationTokenFormData, t as EnumAdShowOn, E as EnumAdStatus, u as EnumAdStyle, v as EnumAdType, w as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, x as PosterInputType, R as RefreshTokenMutationResponse, y as RefreshTokenPayloadType, z as RegisterFormData, B as RequestPasswordResetFormData, D as ResetPasswordFormData, F as SchoolCampaignType, n as SchoolFormData, G as SchoolRegisteredUserType, c as SchoolReturnType, S as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-BhLoEul3.mjs';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-CBWzefUS.mjs';
|
|
4
|
+
import { c as EventListItemType } from '../global-DePDtOFt.mjs';
|
|
5
|
+
export { z as BaseGameMap, A as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, t as CreateEventFormData, v as CreateEventInfoFormData, H as CreateFormData, x as CreatePostFormData, r as CreateUnregisteredVendorFormData, n as CreateVendorFormData, p as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, N as DateTimeWithPriceType, Q as DeviceInfo, T as EnumGameStatus, W as EnumGameType, X as EnumPostContentType, k as EnumPostType, s as EventFormData, u as EventInfoFormData, d as EventInfoType, Y as EventStatusType, E as EventType, a as FormDateField, F as FormField, Z as GameDate, G as GameDocType, _ as GameHistory, l as GameLeaderboard, $ as GamePlacement, a0 as GamePlacementClue, a1 as GameType, a2 as GeocodeLocation, a3 as GlobalGameData, a4 as ImageObjectType, a5 as LocationGeoType, L as LocationType, M as MutationResponse, a6 as Nullable, O as OptionItem, a7 as OwnerType, a8 as PROMO_CODE_PREFIX, a9 as PaymentInfoType, aa as PostContentData, ab as PostContentFormData, ac as PostContentGame, ad as PostContentImage, ae as PostContentList, af as PostContentTextarea, ag as PostContentType, ah as PostContentVideo, ai as PostFileInput, w as PostFormData, aj as PostResource, j as PostType, P as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, y as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, q as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, m as VendorFormData, o as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-DePDtOFt.mjs';
|
|
6
|
+
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardMutationResponse, f as RedeemRewardResponse, g as RedeemedReward, b as ResourceByUser, S as SafeUserType, h as StripeSubscription, i as SubscriptionPlanData, c as SubscriptionPlansResponse, j as SubscriptionPricingData, d as SubscriptionStatusData, k as UserActivity, l as UserActivityEvent, U as UserFormData, m as UserType } from '../user-DE8edl3u.mjs';
|
|
7
|
+
import { EnumOSPlatform } from '../enums/index.mjs';
|
|
8
|
+
export { a as TIERS_BY_PRIORITY, b as TIER_DISPLAY_LABELS, c as TIER_FROM_LICENCE, T as Tier } from '../subscription-bmAdrnfi.mjs';
|
|
9
|
+
export { b as AffiliateBankAccountDetailsType, c as AffiliateContactDetails, d as AffiliateDetailsType, a as AffiliateFormData, e as AffiliateResourceType, f as AffiliateRewardType, A as AffiliateType, g as AffiliateUserDefaultFields, C as CreateAffiliateFormData, E as EnumAffiliateParticipantType, h as EnumAffiliateRewardType, R as RedeemHistoryType } from '../affiliate-BbtjeUP4.mjs';
|
|
10
|
+
import '../images/index.mjs';
|
|
19
11
|
import 'react-hook-form';
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
* Adapters between generated GraphQL Event entity types and form/UI shapes.
|
|
23
|
-
*
|
|
24
|
-
* GraphQL entities are not form state — these converters make the differences
|
|
25
|
-
* explicit (null vs undefined, required vs draft-optional social fields,
|
|
26
|
-
* string categories vs form unions, EventType vs EventListItemType).
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* GraphQL SocialMediaType requires name+link once stored.
|
|
31
|
-
* Form SocialMediaType keeps both optional so drafts can leave rows blank.
|
|
32
|
-
*/
|
|
33
|
-
declare function toFormSocialMedia(socialMedia: ReadonlyArray<SocialMediaType> | null | undefined): SocialMediaType$1[] | null;
|
|
34
|
-
declare function toFormRequirement(item: RequirementType): Requirement;
|
|
35
|
-
declare function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy;
|
|
36
|
-
/**
|
|
37
|
-
* Project a full EventType onto EventListItemType fields.
|
|
38
|
-
* Needed because the two GraphQL object types are distinct (__typename) even
|
|
39
|
-
* when the list-item fields are a subset of the full event.
|
|
40
|
-
*/
|
|
41
|
-
declare function eventToEventListItem(event: EventType): EventListItemType;
|
|
42
|
-
/**
|
|
43
|
-
* Convert a stored Event entity into EventFormData for create/edit forms.
|
|
44
|
-
* Maps GraphQL nullability (undefined / Maybe) onto form null defaults and
|
|
45
|
-
* converts GraphQL social media into draft-optional form rows.
|
|
46
|
-
*/
|
|
47
|
-
declare function eventToFormData(event: EventType): EventFormData;
|
|
48
|
-
type EventInfoToFormDataOptions = {
|
|
49
|
-
/** Default checkbox rows merged in when editing so unchecked options remain visible. */
|
|
50
|
-
defaultRefundPolicy?: RefundPolicy[];
|
|
51
|
-
defaultRequirements?: Requirement[];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Convert EventInfoType into EventInfoFormData, optionally merging default
|
|
55
|
-
* requirement/refund checkbox options that are not yet saved on the server.
|
|
56
|
-
*/
|
|
57
|
-
declare function eventInfoToFormData(eventInfo: EventInfoType, options?: EventInfoToFormDataOptions): EventInfoFormData;
|
|
58
|
-
/**
|
|
59
|
-
* Build EventInfoFormData when no EventInfo exists yet, seeding date rows
|
|
60
|
-
* from the parent Event's dateTime (empty stallTypes).
|
|
61
|
-
*/
|
|
62
|
-
declare function eventToNewEventInfoFormData(event: EventType, options: {
|
|
63
|
-
defaultRefundPolicy: RefundPolicy[];
|
|
64
|
-
defaultRequirements: Requirement[];
|
|
65
|
-
}): EventInfoFormData;
|
|
66
|
-
/**
|
|
67
|
-
* Ad picker needs a non-null description string even when EventListItemType
|
|
68
|
-
* omits description (list query field is optional in the schema).
|
|
69
|
-
*/
|
|
70
|
-
declare function eventListItemToAdSelectableResource(event: EventListItemType): {
|
|
71
|
-
_id: string;
|
|
72
|
-
cover: NonNullable<EventListItemType["cover"]>;
|
|
73
|
-
description: string;
|
|
74
|
-
images?: EventListItemType["images"];
|
|
75
|
-
logo?: EventListItemType["logo"];
|
|
76
|
-
name: string;
|
|
77
|
-
region: string;
|
|
78
|
-
slug: string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Map a list-item event into ResourceDetails for mobile action sheets.
|
|
82
|
-
* Coerces GraphQL `description?: string | null` to `string | null`.
|
|
83
|
-
*/
|
|
84
|
-
declare function eventListItemToResourceDetails(item: EventListItemType, resourceType: ResourceTypeEnum): ResourceDetails;
|
|
85
|
-
/**
|
|
86
|
-
* Seed create-event form fields from a Google-place EventListItem match.
|
|
87
|
-
* Merges onto caller-supplied defaults (does not invent missing form fields).
|
|
88
|
-
*/
|
|
89
|
-
declare function eventListItemToCreateEventFormSeed(item: EventListItemType, defaults: EventFormData): EventFormData;
|
|
90
|
-
/**
|
|
91
|
-
* Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that
|
|
92
|
-
* only need schedule fields (e.g. JSON-LD enrichment).
|
|
93
|
-
*/
|
|
94
|
-
declare function eventInfoDateTimeToDateTime(rows: EventInfoType["dateTime"]): DateTimeType[];
|
|
95
|
-
|
|
96
|
-
interface PosterInputType {
|
|
97
|
-
description: string;
|
|
98
|
-
posterName: PosterAssetId;
|
|
99
|
-
resourceId: string;
|
|
100
|
-
resourceType: ResourceTypeEnum;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* GraphQL CategoryType omits form-only color/description and has optional
|
|
105
|
-
* subcategory trees; form Category requires a subcategories array.
|
|
106
|
-
*/
|
|
107
|
-
declare function toFormCategory(category: CategoryType): Category;
|
|
108
|
-
/**
|
|
109
|
-
* GraphQL VendorLocationsType is a thin calendar row (date/location/description).
|
|
110
|
-
* Form VendorCalendarData extends ResourceDetails-like fields used by the
|
|
111
|
-
* calendar UI — fill resource* fields with empty defaults when hydrating.
|
|
112
|
-
*/
|
|
113
|
-
declare function toFormVendorCalendarData(row: VendorLocationsType): VendorCalendarData;
|
|
114
|
-
/**
|
|
115
|
-
* Convert a stored Vendor entity into VendorFormData for create/edit forms.
|
|
116
|
-
*/
|
|
117
|
-
declare function vendorToFormData(vendor: VendorType): VendorFormData;
|
|
118
|
-
/**
|
|
119
|
-
* Convert VendorInfoType into VendorInfoFormData.
|
|
120
|
-
* Documents/product arrays are normalized; requirements are optional on GraphQL.
|
|
121
|
-
*/
|
|
122
|
-
declare function vendorInfoToFormData(vendorInfo: VendorInfoType): VendorInfoFormData;
|
|
123
|
-
/**
|
|
124
|
-
* UnregisteredVendor is not a BaseResourceType subset — independent adapter.
|
|
125
|
-
* Form create/edit uses top-level dateTime + inviterId; entity stores invitations[].
|
|
126
|
-
* When hydrating an existing entity for a single-invitation edit flow, prefer
|
|
127
|
-
* the first invitation (call sites that need a specific inviter should filter).
|
|
128
|
-
*/
|
|
129
|
-
declare function unregisteredVendorToFormData(vendor: UnregisteredVendorType, options?: {
|
|
130
|
-
inviterId?: string;
|
|
131
|
-
}): UnregisteredVendorFormData;
|
|
132
|
-
/**
|
|
133
|
-
* Ad picker selectable resource projection for Vendor.
|
|
134
|
-
*/
|
|
135
|
-
declare function vendorToAdSelectableResource(vendor: VendorType): {
|
|
136
|
-
_id: string;
|
|
137
|
-
cover: VendorType["cover"];
|
|
138
|
-
description: string;
|
|
139
|
-
images?: VendorType["images"];
|
|
140
|
-
logo?: VendorType["logo"];
|
|
141
|
-
name: string;
|
|
142
|
-
region: string;
|
|
143
|
-
slug: string;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Adapters between generated GraphQL User/Auth entity types and form/UI shapes.
|
|
148
|
-
*
|
|
149
|
-
* GraphQL UserType is already the redacted client shape (no password /
|
|
150
|
-
* refreshToken). These converters make remaining differences explicit:
|
|
151
|
-
* branded promo codes, draft-optional terms, permission string → Permission,
|
|
152
|
-
* and entity-to-form bridging (password fields stay empty — never round-trip).
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
declare function toUserPermissions(permissions: ReadonlyArray<string>): Permission[];
|
|
156
|
-
declare function toUserPromoCodes(codes: ReadonlyArray<string> | null | undefined): PromoCodeType[] | null;
|
|
157
|
-
/**
|
|
158
|
-
* Convert a stored GraphQL UserType into UserFormData for profile edit forms.
|
|
159
|
-
*
|
|
160
|
-
* Password / confirmPassword are never populated from the entity (GraphQL
|
|
161
|
-
* UserType does not include them). avatarUpload is a local draft field.
|
|
162
|
-
* termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL
|
|
163
|
-
* TermsAgreementType — same fields, kept explicit like other resources).
|
|
164
|
-
*/
|
|
165
|
-
declare function userToFormData(user: UserType): UserFormData;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Adapters between generated GraphQL Partner entity types and form/UI shapes.
|
|
169
|
-
*
|
|
170
|
-
* GraphQL entities are not form state — these converters make the differences
|
|
171
|
-
* explicit (null vs undefined, required vs draft-optional social fields,
|
|
172
|
-
* promo-code branding).
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Convert a stored Partner entity into PartnerFormData for create/edit forms.
|
|
177
|
-
* Maps GraphQL nullability onto form null defaults and converts GraphQL
|
|
178
|
-
* social media into draft-optional form rows (same dual-shape as Event).
|
|
179
|
-
*/
|
|
180
|
-
declare function partnerToFormData(partner: PartnerType): PartnerFormData;
|
|
181
|
-
/**
|
|
182
|
-
* Ad picker needs the same selectable shape Event uses. Partner already has
|
|
183
|
-
* required description + cover in the schema; this still normalizes optional
|
|
184
|
-
* images/logo for the shared ad form builder.
|
|
185
|
-
*/
|
|
186
|
-
declare function partnerToAdSelectableResource(partner: PartnerType): {
|
|
187
|
-
_id: string;
|
|
188
|
-
cover: PartnerType["cover"];
|
|
189
|
-
description: string;
|
|
190
|
-
images?: PartnerType["images"];
|
|
191
|
-
logo?: PartnerType["logo"];
|
|
192
|
-
name: string;
|
|
193
|
-
region: string;
|
|
194
|
-
slug: string;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
declare const gameTypeToDisplayName: Record<GameTypeEnumType, string>;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Client-side push-token *document* shape (local/DB modelling).
|
|
201
|
-
*
|
|
202
|
-
* Not the GraphQL schema type: schema `PushTokenType` is the createPushToken
|
|
203
|
-
* mutation payload `{ success: boolean }` (see src/generated/graphql.ts).
|
|
204
|
-
* Renamed to avoid that collision.
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
type PushTokenDocument = {
|
|
13
|
+
type PushTokenType = {
|
|
208
14
|
_id: string;
|
|
209
|
-
createdAt:
|
|
210
|
-
platform:
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
platform: EnumOSPlatform;
|
|
211
17
|
token: string;
|
|
212
|
-
updatedAt:
|
|
18
|
+
updatedAt: Date;
|
|
213
19
|
userId: string;
|
|
214
20
|
};
|
|
215
|
-
/** @deprecated Use PushTokenDocument — name collided with GraphQL PushTokenType. */
|
|
216
|
-
type PushTokenType = PushTokenDocument;
|
|
217
21
|
|
|
218
22
|
type GoogleAddressComponent = {
|
|
219
23
|
longName?: string;
|
|
@@ -234,27 +38,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
234
38
|
website?: string;
|
|
235
39
|
}
|
|
236
40
|
|
|
237
|
-
|
|
238
|
-
* Adapters between generated GraphQL School entity types and form/UI shapes.
|
|
239
|
-
*
|
|
240
|
-
* GraphQL entities are not form state — these converters make differences
|
|
241
|
-
* explicit (null vs undefined, required vs draft-optional social fields).
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
declare function toSchoolCode(code: string): PromoCodeType;
|
|
245
|
-
/**
|
|
246
|
-
* GraphQL SchoolCampaignType dates are ISO strings (Date scalar serialize).
|
|
247
|
-
* Countdown UI / period helpers historically used JS Date — convert explicitly.
|
|
248
|
-
*/
|
|
249
|
-
declare function schoolCampaignDatesToJsDates(campaign: {
|
|
250
|
-
endDate: string;
|
|
251
|
-
name: string;
|
|
252
|
-
startDate: string;
|
|
253
|
-
}): {
|
|
254
|
-
endDate: Date;
|
|
255
|
-
name: string;
|
|
256
|
-
startDate: Date;
|
|
257
|
-
};
|
|
258
|
-
declare function schoolToFormData(school: SchoolType): SchoolFormData;
|
|
259
|
-
|
|
260
|
-
export { Category, DateTimeType, EventFormData, EventInfoFormData, type EventInfoToFormDataOptions, EventInfoType, EventListItemType, EventType, type GoogleAddressComponent, type GoogleImportedMarket, PartnerFormData, PartnerType, type PosterInputType, PromoCodeType, type PushTokenDocument, type PushTokenType, RefundPolicy, Requirement, ResourceDetails, UserType as SafeUserType, SchoolFormData, SchoolType, SocialMediaType$1 as SocialMediaType, UnregisteredVendorFormData, UnregisteredVendorType, UserFormData, UserType, VendorCalendarData, VendorFormData, VendorInfoFormData, VendorInfoType, VendorType, eventInfoDateTimeToDateTime, eventInfoToFormData, eventListItemToAdSelectableResource, eventListItemToCreateEventFormSeed, eventListItemToResourceDetails, eventToEventListItem, eventToFormData, eventToNewEventInfoFormData, gameTypeToDisplayName, partnerToAdSelectableResource, partnerToFormData, schoolCampaignDatesToJsDates, schoolToFormData, toFormCategory, toFormRefundPolicy, toFormRequirement, toFormSocialMedia, toFormVendorCalendarData, toSchoolCode, toUserPermissions, toUserPromoCodes, unregisteredVendorToFormData, userToFormData, vendorInfoToFormData, vendorToAdSelectableResource, vendorToFormData };
|
|
41
|
+
export { EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,219 +1,23 @@
|
|
|
1
|
-
export { A as AdminUpdateResourceType, C as CreateBulkNotificationInput,
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
5
|
-
export { A as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
import
|
|
11
|
-
export { t as AdResource, t as AdResourceType, $ as AdType, a0 as AffiliateBankAccountDetailsType, a1 as AffiliateContactDetailsType, a2 as AffiliateDetailsType, a3 as AffiliateResourceType, a4 as AffiliateRewardType, z as AffiliateType, k as AuthPayloadType, B as BaseGameType, a5 as ChatMessageInputType, a6 as ChatMessageReactionType, a7 as ChatMessageReplyPreviewType, a8 as ChatMessageSeenType, a9 as ChatMessageType, aa as ChatParticipantType, ab as ChatType, ac as DailyClueBaseGameType, ad as DailyClueGameDataType, ae as DailyClueLetterType, af as GameDataType, ag as GameDateType, ah as GameDocType, ai as GameHistoryType, aj as GameLeaderboardType, ak as GameType, r as LocationGeoType, L as LocationType, al as MarketingMaterialRequestInputType, am as PostContentType, y as PostResource, y as PostResourceType, an as PostType, ao as PuzzleAnswerType, ap as PuzzleAnsweredQuestionType, aq as PuzzleBaseGameType, ar as PuzzleGameDataType, as as PuzzleQuestionType, at as RedeemHistoryType, au as RedeemRewardInput, au as RedeemRewardInputType, i as RedeemRewardResponseType, av as RedeemedRewardType, l as RefreshTokenPayloadType, aw as ReportChatUserType, ax as ResourceByUser, R as ResourceImageType, ay as SchoolCampaignType, az as SchoolRegisteredUserType, aA as SchoolReturnType, aB as StripeSubscriptionType, aC as SubscriptionPlanData, aC as SubscriptionPlanType, aD as SubscriptionPlansResponse, aD as SubscriptionPlansResponseType, aE as SubscriptionPricingData, aE as SubscriptionPricingType, aF as UnregisteredVendorInvitationType, aG as UserActivityType, ax as UserResource, V as VendorProductList, V as VendorProductListType } from '../graphql-CDOfA79A.js';
|
|
12
|
-
import { PosterAssetId } from '../images/index.js';
|
|
13
|
-
import { V as VendorCalendarData, U as UnregisteredVendorFormData, a as VendorInfoFormData, b as VendorFormData } from '../vendor-M9hVZlni.js';
|
|
14
|
-
export { C as CreateUnregisteredVendorFormData, c as CreateVendorFormData, d as CreateVendorInfoFormData, e as VendorAttributes } from '../vendor-M9hVZlni.js';
|
|
15
|
-
import { P as Permission } from '../subscription-OiJ50uJb.js';
|
|
16
|
-
export { b as TIERS_BY_PRIORITY, c as TIER_DISPLAY_LABELS, d as TIER_FROM_LICENCE, T as Tier } from '../subscription-OiJ50uJb.js';
|
|
17
|
-
export { D as DailyClueGameData, G as GamePlacement, a as GamePlacementClue, g as gameScreenIdentifierList } from '../dailyClue-C6WXY73z.js';
|
|
18
|
-
export { a as AffiliateBankAccountDetailsForm, b as AffiliateContactDetails, A as AffiliateFormData, c as AffiliateRewardWriteType, C as CreateAffiliateFormData } from '../affiliate-Btlp5XUp.js';
|
|
1
|
+
export { A as AdminUpdateResourceType, c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, i as NotificationDataType, N as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CMUcn2P7.js';
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthMutationResponse, r as AuthPayloadType, s as CreateAdFormData, j as CreateAdFormState, m as CreateAppSettingsFormData, C as CreateLoginFormData, k as CreatePartnerFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, g as CreateResetPasswordFormData, o as CreateSchoolFormData, f as CreateValidateVerificationTokenFormData, t as EnumAdShowOn, E as EnumAdStatus, u as EnumAdStyle, v as EnumAdType, w as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, x as PosterInputType, R as RefreshTokenMutationResponse, y as RefreshTokenPayloadType, z as RegisterFormData, B as RequestPasswordResetFormData, D as ResetPasswordFormData, F as SchoolCampaignType, n as SchoolFormData, G as SchoolRegisteredUserType, c as SchoolReturnType, S as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-BUYzE6zx.js';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs--NoohZBu.js';
|
|
4
|
+
import { c as EventListItemType } from '../global-CUYYxpy2.js';
|
|
5
|
+
export { z as BaseGameMap, A as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, t as CreateEventFormData, v as CreateEventInfoFormData, H as CreateFormData, x as CreatePostFormData, r as CreateUnregisteredVendorFormData, n as CreateVendorFormData, p as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, N as DateTimeWithPriceType, Q as DeviceInfo, T as EnumGameStatus, W as EnumGameType, X as EnumPostContentType, k as EnumPostType, s as EventFormData, u as EventInfoFormData, d as EventInfoType, Y as EventStatusType, E as EventType, a as FormDateField, F as FormField, Z as GameDate, G as GameDocType, _ as GameHistory, l as GameLeaderboard, $ as GamePlacement, a0 as GamePlacementClue, a1 as GameType, a2 as GeocodeLocation, a3 as GlobalGameData, a4 as ImageObjectType, a5 as LocationGeoType, L as LocationType, M as MutationResponse, a6 as Nullable, O as OptionItem, a7 as OwnerType, a8 as PROMO_CODE_PREFIX, a9 as PaymentInfoType, aa as PostContentData, ab as PostContentFormData, ac as PostContentGame, ad as PostContentImage, ae as PostContentList, af as PostContentTextarea, ag as PostContentType, ah as PostContentVideo, ai as PostFileInput, w as PostFormData, aj as PostResource, j as PostType, P as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, y as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, q as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, m as VendorFormData, o as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-CUYYxpy2.js';
|
|
6
|
+
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardMutationResponse, f as RedeemRewardResponse, g as RedeemedReward, b as ResourceByUser, S as SafeUserType, h as StripeSubscription, i as SubscriptionPlanData, c as SubscriptionPlansResponse, j as SubscriptionPricingData, d as SubscriptionStatusData, k as UserActivity, l as UserActivityEvent, U as UserFormData, m as UserType } from '../user-D47MLFyH.js';
|
|
7
|
+
import { EnumOSPlatform } from '../enums/index.js';
|
|
8
|
+
export { a as TIERS_BY_PRIORITY, b as TIER_DISPLAY_LABELS, c as TIER_FROM_LICENCE, T as Tier } from '../subscription-BU8GvH2K.js';
|
|
9
|
+
export { b as AffiliateBankAccountDetailsType, c as AffiliateContactDetails, d as AffiliateDetailsType, a as AffiliateFormData, e as AffiliateResourceType, f as AffiliateRewardType, A as AffiliateType, g as AffiliateUserDefaultFields, C as CreateAffiliateFormData, E as EnumAffiliateParticipantType, h as EnumAffiliateRewardType, R as RedeemHistoryType } from '../affiliate-C51nzKsw.js';
|
|
10
|
+
import '../images/index.js';
|
|
19
11
|
import 'react-hook-form';
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
* Adapters between generated GraphQL Event entity types and form/UI shapes.
|
|
23
|
-
*
|
|
24
|
-
* GraphQL entities are not form state — these converters make the differences
|
|
25
|
-
* explicit (null vs undefined, required vs draft-optional social fields,
|
|
26
|
-
* string categories vs form unions, EventType vs EventListItemType).
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* GraphQL SocialMediaType requires name+link once stored.
|
|
31
|
-
* Form SocialMediaType keeps both optional so drafts can leave rows blank.
|
|
32
|
-
*/
|
|
33
|
-
declare function toFormSocialMedia(socialMedia: ReadonlyArray<SocialMediaType> | null | undefined): SocialMediaType$1[] | null;
|
|
34
|
-
declare function toFormRequirement(item: RequirementType): Requirement;
|
|
35
|
-
declare function toFormRefundPolicy(item: RefundPolicyType): RefundPolicy;
|
|
36
|
-
/**
|
|
37
|
-
* Project a full EventType onto EventListItemType fields.
|
|
38
|
-
* Needed because the two GraphQL object types are distinct (__typename) even
|
|
39
|
-
* when the list-item fields are a subset of the full event.
|
|
40
|
-
*/
|
|
41
|
-
declare function eventToEventListItem(event: EventType): EventListItemType;
|
|
42
|
-
/**
|
|
43
|
-
* Convert a stored Event entity into EventFormData for create/edit forms.
|
|
44
|
-
* Maps GraphQL nullability (undefined / Maybe) onto form null defaults and
|
|
45
|
-
* converts GraphQL social media into draft-optional form rows.
|
|
46
|
-
*/
|
|
47
|
-
declare function eventToFormData(event: EventType): EventFormData;
|
|
48
|
-
type EventInfoToFormDataOptions = {
|
|
49
|
-
/** Default checkbox rows merged in when editing so unchecked options remain visible. */
|
|
50
|
-
defaultRefundPolicy?: RefundPolicy[];
|
|
51
|
-
defaultRequirements?: Requirement[];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Convert EventInfoType into EventInfoFormData, optionally merging default
|
|
55
|
-
* requirement/refund checkbox options that are not yet saved on the server.
|
|
56
|
-
*/
|
|
57
|
-
declare function eventInfoToFormData(eventInfo: EventInfoType, options?: EventInfoToFormDataOptions): EventInfoFormData;
|
|
58
|
-
/**
|
|
59
|
-
* Build EventInfoFormData when no EventInfo exists yet, seeding date rows
|
|
60
|
-
* from the parent Event's dateTime (empty stallTypes).
|
|
61
|
-
*/
|
|
62
|
-
declare function eventToNewEventInfoFormData(event: EventType, options: {
|
|
63
|
-
defaultRefundPolicy: RefundPolicy[];
|
|
64
|
-
defaultRequirements: Requirement[];
|
|
65
|
-
}): EventInfoFormData;
|
|
66
|
-
/**
|
|
67
|
-
* Ad picker needs a non-null description string even when EventListItemType
|
|
68
|
-
* omits description (list query field is optional in the schema).
|
|
69
|
-
*/
|
|
70
|
-
declare function eventListItemToAdSelectableResource(event: EventListItemType): {
|
|
71
|
-
_id: string;
|
|
72
|
-
cover: NonNullable<EventListItemType["cover"]>;
|
|
73
|
-
description: string;
|
|
74
|
-
images?: EventListItemType["images"];
|
|
75
|
-
logo?: EventListItemType["logo"];
|
|
76
|
-
name: string;
|
|
77
|
-
region: string;
|
|
78
|
-
slug: string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Map a list-item event into ResourceDetails for mobile action sheets.
|
|
82
|
-
* Coerces GraphQL `description?: string | null` to `string | null`.
|
|
83
|
-
*/
|
|
84
|
-
declare function eventListItemToResourceDetails(item: EventListItemType, resourceType: ResourceTypeEnum): ResourceDetails;
|
|
85
|
-
/**
|
|
86
|
-
* Seed create-event form fields from a Google-place EventListItem match.
|
|
87
|
-
* Merges onto caller-supplied defaults (does not invent missing form fields).
|
|
88
|
-
*/
|
|
89
|
-
declare function eventListItemToCreateEventFormSeed(item: EventListItemType, defaults: EventFormData): EventFormData;
|
|
90
|
-
/**
|
|
91
|
-
* Narrow EventDateTimeWithPriceType rows to DateTimeType for consumers that
|
|
92
|
-
* only need schedule fields (e.g. JSON-LD enrichment).
|
|
93
|
-
*/
|
|
94
|
-
declare function eventInfoDateTimeToDateTime(rows: EventInfoType["dateTime"]): DateTimeType[];
|
|
95
|
-
|
|
96
|
-
interface PosterInputType {
|
|
97
|
-
description: string;
|
|
98
|
-
posterName: PosterAssetId;
|
|
99
|
-
resourceId: string;
|
|
100
|
-
resourceType: ResourceTypeEnum;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* GraphQL CategoryType omits form-only color/description and has optional
|
|
105
|
-
* subcategory trees; form Category requires a subcategories array.
|
|
106
|
-
*/
|
|
107
|
-
declare function toFormCategory(category: CategoryType): Category;
|
|
108
|
-
/**
|
|
109
|
-
* GraphQL VendorLocationsType is a thin calendar row (date/location/description).
|
|
110
|
-
* Form VendorCalendarData extends ResourceDetails-like fields used by the
|
|
111
|
-
* calendar UI — fill resource* fields with empty defaults when hydrating.
|
|
112
|
-
*/
|
|
113
|
-
declare function toFormVendorCalendarData(row: VendorLocationsType): VendorCalendarData;
|
|
114
|
-
/**
|
|
115
|
-
* Convert a stored Vendor entity into VendorFormData for create/edit forms.
|
|
116
|
-
*/
|
|
117
|
-
declare function vendorToFormData(vendor: VendorType): VendorFormData;
|
|
118
|
-
/**
|
|
119
|
-
* Convert VendorInfoType into VendorInfoFormData.
|
|
120
|
-
* Documents/product arrays are normalized; requirements are optional on GraphQL.
|
|
121
|
-
*/
|
|
122
|
-
declare function vendorInfoToFormData(vendorInfo: VendorInfoType): VendorInfoFormData;
|
|
123
|
-
/**
|
|
124
|
-
* UnregisteredVendor is not a BaseResourceType subset — independent adapter.
|
|
125
|
-
* Form create/edit uses top-level dateTime + inviterId; entity stores invitations[].
|
|
126
|
-
* When hydrating an existing entity for a single-invitation edit flow, prefer
|
|
127
|
-
* the first invitation (call sites that need a specific inviter should filter).
|
|
128
|
-
*/
|
|
129
|
-
declare function unregisteredVendorToFormData(vendor: UnregisteredVendorType, options?: {
|
|
130
|
-
inviterId?: string;
|
|
131
|
-
}): UnregisteredVendorFormData;
|
|
132
|
-
/**
|
|
133
|
-
* Ad picker selectable resource projection for Vendor.
|
|
134
|
-
*/
|
|
135
|
-
declare function vendorToAdSelectableResource(vendor: VendorType): {
|
|
136
|
-
_id: string;
|
|
137
|
-
cover: VendorType["cover"];
|
|
138
|
-
description: string;
|
|
139
|
-
images?: VendorType["images"];
|
|
140
|
-
logo?: VendorType["logo"];
|
|
141
|
-
name: string;
|
|
142
|
-
region: string;
|
|
143
|
-
slug: string;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Adapters between generated GraphQL User/Auth entity types and form/UI shapes.
|
|
148
|
-
*
|
|
149
|
-
* GraphQL UserType is already the redacted client shape (no password /
|
|
150
|
-
* refreshToken). These converters make remaining differences explicit:
|
|
151
|
-
* branded promo codes, draft-optional terms, permission string → Permission,
|
|
152
|
-
* and entity-to-form bridging (password fields stay empty — never round-trip).
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
declare function toUserPermissions(permissions: ReadonlyArray<string>): Permission[];
|
|
156
|
-
declare function toUserPromoCodes(codes: ReadonlyArray<string> | null | undefined): PromoCodeType[] | null;
|
|
157
|
-
/**
|
|
158
|
-
* Convert a stored GraphQL UserType into UserFormData for profile edit forms.
|
|
159
|
-
*
|
|
160
|
-
* Password / confirmPassword are never populated from the entity (GraphQL
|
|
161
|
-
* UserType does not include them). avatarUpload is a local draft field.
|
|
162
|
-
* termsAgreement is copied field-by-field (form TermsAgreement vs GraphQL
|
|
163
|
-
* TermsAgreementType — same fields, kept explicit like other resources).
|
|
164
|
-
*/
|
|
165
|
-
declare function userToFormData(user: UserType): UserFormData;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Adapters between generated GraphQL Partner entity types and form/UI shapes.
|
|
169
|
-
*
|
|
170
|
-
* GraphQL entities are not form state — these converters make the differences
|
|
171
|
-
* explicit (null vs undefined, required vs draft-optional social fields,
|
|
172
|
-
* promo-code branding).
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Convert a stored Partner entity into PartnerFormData for create/edit forms.
|
|
177
|
-
* Maps GraphQL nullability onto form null defaults and converts GraphQL
|
|
178
|
-
* social media into draft-optional form rows (same dual-shape as Event).
|
|
179
|
-
*/
|
|
180
|
-
declare function partnerToFormData(partner: PartnerType): PartnerFormData;
|
|
181
|
-
/**
|
|
182
|
-
* Ad picker needs the same selectable shape Event uses. Partner already has
|
|
183
|
-
* required description + cover in the schema; this still normalizes optional
|
|
184
|
-
* images/logo for the shared ad form builder.
|
|
185
|
-
*/
|
|
186
|
-
declare function partnerToAdSelectableResource(partner: PartnerType): {
|
|
187
|
-
_id: string;
|
|
188
|
-
cover: PartnerType["cover"];
|
|
189
|
-
description: string;
|
|
190
|
-
images?: PartnerType["images"];
|
|
191
|
-
logo?: PartnerType["logo"];
|
|
192
|
-
name: string;
|
|
193
|
-
region: string;
|
|
194
|
-
slug: string;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
declare const gameTypeToDisplayName: Record<GameTypeEnumType, string>;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Client-side push-token *document* shape (local/DB modelling).
|
|
201
|
-
*
|
|
202
|
-
* Not the GraphQL schema type: schema `PushTokenType` is the createPushToken
|
|
203
|
-
* mutation payload `{ success: boolean }` (see src/generated/graphql.ts).
|
|
204
|
-
* Renamed to avoid that collision.
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
type PushTokenDocument = {
|
|
13
|
+
type PushTokenType = {
|
|
208
14
|
_id: string;
|
|
209
|
-
createdAt:
|
|
210
|
-
platform:
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
platform: EnumOSPlatform;
|
|
211
17
|
token: string;
|
|
212
|
-
updatedAt:
|
|
18
|
+
updatedAt: Date;
|
|
213
19
|
userId: string;
|
|
214
20
|
};
|
|
215
|
-
/** @deprecated Use PushTokenDocument — name collided with GraphQL PushTokenType. */
|
|
216
|
-
type PushTokenType = PushTokenDocument;
|
|
217
21
|
|
|
218
22
|
type GoogleAddressComponent = {
|
|
219
23
|
longName?: string;
|
|
@@ -234,27 +38,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
234
38
|
website?: string;
|
|
235
39
|
}
|
|
236
40
|
|
|
237
|
-
|
|
238
|
-
* Adapters between generated GraphQL School entity types and form/UI shapes.
|
|
239
|
-
*
|
|
240
|
-
* GraphQL entities are not form state — these converters make differences
|
|
241
|
-
* explicit (null vs undefined, required vs draft-optional social fields).
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
declare function toSchoolCode(code: string): PromoCodeType;
|
|
245
|
-
/**
|
|
246
|
-
* GraphQL SchoolCampaignType dates are ISO strings (Date scalar serialize).
|
|
247
|
-
* Countdown UI / period helpers historically used JS Date — convert explicitly.
|
|
248
|
-
*/
|
|
249
|
-
declare function schoolCampaignDatesToJsDates(campaign: {
|
|
250
|
-
endDate: string;
|
|
251
|
-
name: string;
|
|
252
|
-
startDate: string;
|
|
253
|
-
}): {
|
|
254
|
-
endDate: Date;
|
|
255
|
-
name: string;
|
|
256
|
-
startDate: Date;
|
|
257
|
-
};
|
|
258
|
-
declare function schoolToFormData(school: SchoolType): SchoolFormData;
|
|
259
|
-
|
|
260
|
-
export { Category, DateTimeType, EventFormData, EventInfoFormData, type EventInfoToFormDataOptions, EventInfoType, EventListItemType, EventType, type GoogleAddressComponent, type GoogleImportedMarket, PartnerFormData, PartnerType, type PosterInputType, PromoCodeType, type PushTokenDocument, type PushTokenType, RefundPolicy, Requirement, ResourceDetails, UserType as SafeUserType, SchoolFormData, SchoolType, SocialMediaType$1 as SocialMediaType, UnregisteredVendorFormData, UnregisteredVendorType, UserFormData, UserType, VendorCalendarData, VendorFormData, VendorInfoFormData, VendorInfoType, VendorType, eventInfoDateTimeToDateTime, eventInfoToFormData, eventListItemToAdSelectableResource, eventListItemToCreateEventFormSeed, eventListItemToResourceDetails, eventToEventListItem, eventToFormData, eventToNewEventInfoFormData, gameTypeToDisplayName, partnerToAdSelectableResource, partnerToFormData, schoolCampaignDatesToJsDates, schoolToFormData, toFormCategory, toFormRefundPolicy, toFormRequirement, toFormSocialMedia, toFormVendorCalendarData, toSchoolCode, toUserPermissions, toUserPromoCodes, unregisteredVendorToFormData, userToFormData, vendorInfoToFormData, vendorToAdSelectableResource, vendorToFormData };
|
|
41
|
+
export { EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType };
|