@timardex/cluemart-shared 1.7.26 → 1.7.29
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-xMotoDzt.d.ts → ad-CQrQILqt.d.ts} +2 -2
- package/dist/{ad-BNumAVY7.d.mts → ad-DaMV_FdN.d.mts} +2 -2
- package/dist/{coupon-CqCTYMW1.d.ts → affiliate-BjNe7vrz.d.ts} +3 -47
- package/dist/{coupon-O__x-VRW.d.mts → affiliate-CRzUWMPv.d.mts} +3 -47
- package/dist/auth/index.cjs +118 -26
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-336EZBSA.mjs → chunk-2KVUR42L.mjs} +9 -85
- package/dist/chunk-2KVUR42L.mjs.map +1 -0
- package/dist/{chunk-4G4OFSBZ.mjs → chunk-PACEDU64.mjs} +11 -6
- package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-PACEDU64.mjs.map} +1 -1
- package/dist/{chunk-WPBHYGXW.mjs → chunk-PFY3LS6P.mjs} +120 -26
- package/dist/chunk-PFY3LS6P.mjs.map +1 -0
- package/dist/{contactUs-BJiiMuGX.d.ts → contactUs-BCkSecPW.d.ts} +1 -1
- package/dist/{contactUs-5t9rb3U4.d.mts → contactUs-ryrB_j4c.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/{global-B6VyEshc.d.ts → global-CF8hwvkc.d.ts} +51 -1
- package/dist/{global-BKGlrm75.d.mts → global-Ch11tfC6.d.mts} +51 -1
- package/dist/graphql/index.cjs +499 -485
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +353 -339
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +8 -8
- package/dist/hooks/index.d.ts +8 -8
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +510 -491
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +53 -46
- package/dist/index.d.ts +53 -46
- package/dist/index.mjs +326 -307
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-HkorPbJU.d.ts → resourceActivities-2SjrHpuU.d.ts} +1 -1
- package/dist/{resourceActivities-l4Q014eT.d.mts → resourceActivities-isol6rr_.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/{user-Cg80mIww.d.ts → user-BdvV_3eW.d.ts} +2 -1
- package/dist/{user-go-eqanx.d.mts → user-CFVqH8Xk.d.mts} +2 -1
- package/dist/utils/index.cjs +11 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-336EZBSA.mjs.map +0 -1
- package/dist/chunk-WPBHYGXW.mjs.map +0 -1
package/dist/map/index.d.mts
CHANGED
package/dist/map/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumResourceType, EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { af as LocationGeoType } from './global-CF8hwvkc.js';
|
|
3
3
|
|
|
4
4
|
interface AdminUpdateResourceType {
|
|
5
5
|
active: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumResourceType, EnumChatType, EnumChatReportReason, EnumNotificationType, EnumNotificationResourceType, EnumEventDateStatus, EnumOSPlatform } from './enums/index.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { af as LocationGeoType } from './global-Ch11tfC6.mjs';
|
|
3
3
|
|
|
4
4
|
interface AdminUpdateResourceType {
|
|
5
5
|
active: boolean;
|
package/dist/sharing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EventType,
|
|
1
|
+
import { E as EventType, x as EventInfoFormData, h as VendorType, r as VendorInfoFormData, S as StallType, C as Category } from '../global-Ch11tfC6.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
package/dist/sharing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EventType,
|
|
1
|
+
import { E as EventType, x as EventInfoFormData, h as VendorType, r as VendorInfoFormData, S as StallType, C as Category } from '../global-CF8hwvkc.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
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-
|
|
3
|
-
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
4
|
-
import { c as EventListItemType } from '../global-
|
|
5
|
-
export {
|
|
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-
|
|
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-isol6rr_.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-DaMV_FdN.mjs';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-ryrB_j4c.mjs';
|
|
4
|
+
import { c as EventListItemType } from '../global-Ch11tfC6.mjs';
|
|
5
|
+
export { J as BaseGameMap, K as BaseGameType, N as BaseResourceType, B as BaseResourceTypeFormData, C as Category, Q as CouponCodeType, T as CouponDataType, D as CouponDefaultsFormData, W as CouponParticipantUserType, o as CouponType, X as CouponTypeOption, Y as CreateCouponDefaults, H as CreateCouponFormData, w as CreateEventFormData, y as CreateEventInfoFormData, Z as CreateFormData, A as CreatePostFormData, u as CreateUnregisteredVendorFormData, q as CreateVendorFormData, s as CreateVendorInfoFormData, _ as DailyClueBaseGame, $ as DailyClueGameData, a0 as DateTimeType, a1 as DateTimeWithPriceType, a2 as DeviceInfo, a3 as EnumGameStatus, a4 as EnumGameType, a5 as EnumPostContentType, m as EnumPostType, v as EventFormData, x as EventInfoFormData, d as EventInfoType, a6 as EventStatusType, E as EventType, a as FormDateField, F as FormField, a7 as GameDate, G as GameDocType, a8 as GameHistory, n as GameLeaderboard, a9 as GamePlacement, aa as GamePlacementClue, ab as GameType, ac as GeocodeLocation, ad as GlobalGameData, ae as ImageObjectType, af as LocationGeoType, L as LocationType, M as MutationResponse, j as MyPendingVendorClaim, ag as Nullable, O as OptionItem, ah as OwnerType, ai as PROMO_CODE_PREFIX, aj as PaymentInfoType, ak as PostContentData, al as PostContentFormData, am as PostContentGame, an as PostContentImage, ao as PostContentList, ap as PostContentTextarea, aq as PostContentType, ar as PostContentVideo, as as PostFileInput, z as PostFormData, at as PostResource, l as PostType, P as PosterUsageType, au as ProductCoupon, av as PromoCodeType, aw as PuzzleAnswer, ax as PuzzleAnsweredQuestion, ay as PuzzleBaseGame, az as PuzzleGameData, aA as PuzzleQuestion, R as RefundPolicy, I as Region, aB as RelatedPostType, aC as RelationDate, aD as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, aE as ResourceContactDetailsType, aF as ResourceDetails, aG as ResourceImageType, aH as SocialMediaType, aI as SocialShareResourceType, S as StallType, aJ as Subcategory, aK as SubcategoryItems, aL as TermsAgreement, t as UnregisteredVendorFormData, aM as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, k as UserLicenceType, aN as VendorAttributes, aO as VendorCalendarData, V as VendorClaimTokenValidation, p as VendorFormData, r as VendorInfoFormData, i as VendorInfoType, aP as VendorProductList, h as VendorType, aQ as gameScreenIdentifierList, aR as gameTypeToDisplayName } from '../global-Ch11tfC6.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-CFVqH8Xk.mjs';
|
|
7
7
|
import { EnumOSPlatform } from '../enums/index.mjs';
|
|
8
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 {
|
|
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-CRzUWMPv.mjs';
|
|
10
10
|
import '../images/index.mjs';
|
|
11
11
|
import 'react-hook-form';
|
|
12
12
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
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-
|
|
3
|
-
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
4
|
-
import { c as EventListItemType } from '../global-
|
|
5
|
-
export {
|
|
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-
|
|
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-2SjrHpuU.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-CQrQILqt.js';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-BCkSecPW.js';
|
|
4
|
+
import { c as EventListItemType } from '../global-CF8hwvkc.js';
|
|
5
|
+
export { J as BaseGameMap, K as BaseGameType, N as BaseResourceType, B as BaseResourceTypeFormData, C as Category, Q as CouponCodeType, T as CouponDataType, D as CouponDefaultsFormData, W as CouponParticipantUserType, o as CouponType, X as CouponTypeOption, Y as CreateCouponDefaults, H as CreateCouponFormData, w as CreateEventFormData, y as CreateEventInfoFormData, Z as CreateFormData, A as CreatePostFormData, u as CreateUnregisteredVendorFormData, q as CreateVendorFormData, s as CreateVendorInfoFormData, _ as DailyClueBaseGame, $ as DailyClueGameData, a0 as DateTimeType, a1 as DateTimeWithPriceType, a2 as DeviceInfo, a3 as EnumGameStatus, a4 as EnumGameType, a5 as EnumPostContentType, m as EnumPostType, v as EventFormData, x as EventInfoFormData, d as EventInfoType, a6 as EventStatusType, E as EventType, a as FormDateField, F as FormField, a7 as GameDate, G as GameDocType, a8 as GameHistory, n as GameLeaderboard, a9 as GamePlacement, aa as GamePlacementClue, ab as GameType, ac as GeocodeLocation, ad as GlobalGameData, ae as ImageObjectType, af as LocationGeoType, L as LocationType, M as MutationResponse, j as MyPendingVendorClaim, ag as Nullable, O as OptionItem, ah as OwnerType, ai as PROMO_CODE_PREFIX, aj as PaymentInfoType, ak as PostContentData, al as PostContentFormData, am as PostContentGame, an as PostContentImage, ao as PostContentList, ap as PostContentTextarea, aq as PostContentType, ar as PostContentVideo, as as PostFileInput, z as PostFormData, at as PostResource, l as PostType, P as PosterUsageType, au as ProductCoupon, av as PromoCodeType, aw as PuzzleAnswer, ax as PuzzleAnsweredQuestion, ay as PuzzleBaseGame, az as PuzzleGameData, aA as PuzzleQuestion, R as RefundPolicy, I as Region, aB as RelatedPostType, aC as RelationDate, aD as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, aE as ResourceContactDetailsType, aF as ResourceDetails, aG as ResourceImageType, aH as SocialMediaType, aI as SocialShareResourceType, S as StallType, aJ as Subcategory, aK as SubcategoryItems, aL as TermsAgreement, t as UnregisteredVendorFormData, aM as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, k as UserLicenceType, aN as VendorAttributes, aO as VendorCalendarData, V as VendorClaimTokenValidation, p as VendorFormData, r as VendorInfoFormData, i as VendorInfoType, aP as VendorProductList, h as VendorType, aQ as gameScreenIdentifierList, aR as gameTypeToDisplayName } from '../global-CF8hwvkc.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-BdvV_3eW.js';
|
|
7
7
|
import { EnumOSPlatform } from '../enums/index.js';
|
|
8
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 {
|
|
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-BjNe7vrz.js';
|
|
10
10
|
import '../images/index.js';
|
|
11
11
|
import 'react-hook-form';
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumReward, EnumUserRole, EnumUserLicence, EnumSubscriptionStatus, EnumNotificationResourceType, EnumResourceType } from './enums/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { aG as ResourceImageType, L as LocationType, aL as TermsAgreement, k as UserLicenceType, av as PromoCodeType, a0 as DateTimeType, M as MutationResponse, Z as CreateFormData } from './global-CF8hwvkc.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
@@ -102,6 +102,7 @@ type RedeemedReward = {
|
|
|
102
102
|
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
103
103
|
_id: string;
|
|
104
104
|
affiliate?: string | null;
|
|
105
|
+
coupon?: string | null;
|
|
105
106
|
createdAt: Date;
|
|
106
107
|
deletedAt: Date | null;
|
|
107
108
|
events: string[] | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumReward, EnumUserRole, EnumUserLicence, EnumSubscriptionStatus, EnumNotificationResourceType, EnumResourceType } from './enums/index.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { aG as ResourceImageType, L as LocationType, aL as TermsAgreement, k as UserLicenceType, av as PromoCodeType, a0 as DateTimeType, M as MutationResponse, Z as CreateFormData } from './global-Ch11tfC6.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
@@ -102,6 +102,7 @@ type RedeemedReward = {
|
|
|
102
102
|
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
103
103
|
_id: string;
|
|
104
104
|
affiliate?: string | null;
|
|
105
|
+
coupon?: string | null;
|
|
105
106
|
createdAt: Date;
|
|
106
107
|
deletedAt: Date | null;
|
|
107
108
|
events: string[] | null;
|
package/dist/utils/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ __export(utils_exports, {
|
|
|
55
55
|
collectVendorEventRelationDateTimes: () => collectVendorEventRelationDateTimes,
|
|
56
56
|
computeDailyClueState: () => computeDailyClueState,
|
|
57
57
|
createAffiliateReward: () => createAffiliateReward,
|
|
58
|
-
|
|
58
|
+
createCouponDefaults: () => createCouponDefaults,
|
|
59
59
|
dateFormat: () => dateFormat,
|
|
60
60
|
eventHasSelectedDate: () => eventHasSelectedDate,
|
|
61
61
|
eventMatchesDateStatusPeriod: () => eventMatchesDateStatusPeriod,
|
|
@@ -2061,14 +2061,16 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
2063
|
// src/utils/coupon.ts
|
|
2064
|
-
function
|
|
2064
|
+
function createCouponDefaults({
|
|
2065
2065
|
couponCode,
|
|
2066
2066
|
couponDescription,
|
|
2067
2067
|
couponOption,
|
|
2068
2068
|
createdAt,
|
|
2069
2069
|
endDate,
|
|
2070
|
-
|
|
2071
|
-
startDate
|
|
2070
|
+
participantProductId,
|
|
2071
|
+
startDate,
|
|
2072
|
+
resourceId,
|
|
2073
|
+
resourceType
|
|
2072
2074
|
}) {
|
|
2073
2075
|
return {
|
|
2074
2076
|
active: true,
|
|
@@ -2077,7 +2079,10 @@ function createCouponTypeOption({
|
|
|
2077
2079
|
couponOption,
|
|
2078
2080
|
createdAt,
|
|
2079
2081
|
endDate,
|
|
2080
|
-
|
|
2082
|
+
participantProductId,
|
|
2083
|
+
participantUsers: null,
|
|
2084
|
+
resourceId,
|
|
2085
|
+
resourceType,
|
|
2081
2086
|
startDate,
|
|
2082
2087
|
updatedAt: null
|
|
2083
2088
|
};
|
|
@@ -2109,7 +2114,7 @@ function createCouponTypeOption({
|
|
|
2109
2114
|
collectVendorEventRelationDateTimes,
|
|
2110
2115
|
computeDailyClueState,
|
|
2111
2116
|
createAffiliateReward,
|
|
2112
|
-
|
|
2117
|
+
createCouponDefaults,
|
|
2113
2118
|
dateFormat,
|
|
2114
2119
|
eventHasSelectedDate,
|
|
2115
2120
|
eventMatchesDateStatusPeriod,
|