@timardex/cluemart-shared 1.5.832 → 1.5.833
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-Cu-M8Xzf.d.mts → ad-BPb9_tSM.d.mts} +2 -69
- package/dist/{ad-DfqgAPOk.d.ts → ad-_mwYq2Z9.d.ts} +2 -69
- package/dist/affiliate-Dn50VDpB.d.ts +72 -0
- package/dist/affiliate-XW8pxlOC.d.mts +72 -0
- package/dist/{chunk-YKJUZUAP.mjs → chunk-MLNJAQVM.mjs} +39 -1
- package/dist/{chunk-YKJUZUAP.mjs.map → chunk-MLNJAQVM.mjs.map} +1 -1
- package/dist/{chunk-G3CMTXQV.mjs → chunk-SP36N6U6.mjs} +64 -2
- package/dist/{chunk-G3CMTXQV.mjs.map → chunk-SP36N6U6.mjs.map} +1 -1
- package/dist/formFields/index.cjs +26 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/graphql/index.cjs +64 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +13 -2
- package/dist/graphql/index.d.ts +13 -2
- package/dist/graphql/index.mjs +5 -1
- package/dist/hooks/index.cjs +58 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +104 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.mjs +100 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/utils/index.cjs +40 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +39 -1
- package/dist/utils/index.d.ts +39 -1
- package/dist/utils/index.mjs +5 -1
- package/package.json +1 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EnumResourceType, EnumOSPlatform } from '../enums/index.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthPayloadType, r 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, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PosterInputType, R as RefreshTokenPayloadType, x as RegisterFormData, y as RequestPasswordResetFormData, z as ResetPasswordFormData, B as SchoolCampaignType, n as SchoolFormData, D as SchoolRegisteredUserType, S as SchoolReturnType, c as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-BPb9_tSM.mjs';
|
|
3
3
|
export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-BDIjVrI4.mjs';
|
|
4
4
|
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-09e9ThN0.mjs';
|
|
5
5
|
import { c as EventListItemType } from '../global-BHwZPjT8.mjs';
|
|
6
6
|
export { y as BaseGameMap, z as BaseGameType, A as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, D as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, H as DailyClueBaseGame, I as DailyClueGameData, J as DateTimeType, K as DateTimeWithPriceType, M as DeviceInfo, N as EnumGameStatus, Q as EnumGameType, T as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, W as EventStatusType, E as EventType, a as FormDateField, F as FormField, X as GameDate, G as GameDocType, Y as GameHistory, k as GameLeaderboard, Z as GamePlacement, _ as GamePlacementClue, $ as GameType, a0 as GeocodeLocation, a1 as GlobalGameData, a2 as ImageObjectType, a3 as LocationGeoType, L as LocationType, a4 as Nullable, O as OptionItem, a5 as OwnerType, a6 as PROMO_CODE_PREFIX, a7 as PaymentInfoType, a8 as PostContentData, a9 as PostContentFormData, aa as PostContentGame, ab as PostContentImage, ac as PostContentList, ad as PostContentTextarea, ae as PostContentType, af as PostContentVideo, ag as PostFileInput, v as PostFormData, ah as PostResource, P as PostType, ai as PosterUsageType, aj as PromoCodeType, ak as PuzzleAnswer, al as PuzzleAnsweredQuestion, am as PuzzleBaseGame, an as PuzzleGameData, ao as PuzzleQuestion, R as RefundPolicy, x as Region, ap as RelatedPostType, aq as RelationDate, ar as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, as as ResourceContactDetailsType, at as ResourceDetails, au as ResourceImageType, av as SocialMediaType, aw as SocialShareResourceType, S as StallType, ax as Subcategory, ay as SubcategoryItems, az as TermsAgreement, p as UnregisteredVendorFormData, aA as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aB as VendorAttributes, aC as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aD as VendorProductList, V as VendorType, aE as gameScreenIdentifierList, aF as gameTypeToDisplayName } from '../global-BHwZPjT8.mjs';
|
|
7
7
|
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardResponse, f as RedeemedReward, b as ResourceByUser, S as SafeUserType, g as StripeSubscription, h as SubscriptionPlanData, c as SubscriptionPlansResponse, i as SubscriptionPricingData, d as SubscriptionStatusData, j as UserActivity, k as UserActivityEvent, U as UserFormData, l as UserType } from '../user-Bhkd3l06.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 { 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-XW8pxlOC.mjs';
|
|
9
10
|
import '../images/index.mjs';
|
|
10
11
|
import 'react-hook-form';
|
|
11
12
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { EnumResourceType, EnumOSPlatform } from '../enums/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthPayloadType, r 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, s as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, u as EnumAdType, v as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, w as PosterInputType, R as RefreshTokenPayloadType, x as RegisterFormData, y as RequestPasswordResetFormData, z as ResetPasswordFormData, B as SchoolCampaignType, n as SchoolFormData, D as SchoolRegisteredUserType, S as SchoolReturnType, c as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-_mwYq2Z9.js';
|
|
3
3
|
export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-JNcJxpTh.js';
|
|
4
4
|
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DI70VJ9T.js';
|
|
5
5
|
import { c as EventListItemType } from '../global--iSLy2cE.js';
|
|
6
6
|
export { y as BaseGameMap, z as BaseGameType, A as BaseResourceType, B as BaseResourceTypeFormData, C as Category, s as CreateEventFormData, u as CreateEventInfoFormData, D as CreateFormData, w as CreatePostFormData, q as CreateUnregisteredVendorFormData, m as CreateVendorFormData, o as CreateVendorInfoFormData, H as DailyClueBaseGame, I as DailyClueGameData, J as DateTimeType, K as DateTimeWithPriceType, M as DeviceInfo, N as EnumGameStatus, Q as EnumGameType, T as EnumPostContentType, j as EnumPostType, r as EventFormData, t as EventInfoFormData, d as EventInfoType, W as EventStatusType, E as EventType, a as FormDateField, F as FormField, X as GameDate, G as GameDocType, Y as GameHistory, k as GameLeaderboard, Z as GamePlacement, _ as GamePlacementClue, $ as GameType, a0 as GeocodeLocation, a1 as GlobalGameData, a2 as ImageObjectType, a3 as LocationGeoType, L as LocationType, a4 as Nullable, O as OptionItem, a5 as OwnerType, a6 as PROMO_CODE_PREFIX, a7 as PaymentInfoType, a8 as PostContentData, a9 as PostContentFormData, aa as PostContentGame, ab as PostContentImage, ac as PostContentList, ad as PostContentTextarea, ae as PostContentType, af as PostContentVideo, ag as PostFileInput, v as PostFormData, ah as PostResource, P as PostType, ai as PosterUsageType, aj as PromoCodeType, ak as PuzzleAnswer, al as PuzzleAnsweredQuestion, am as PuzzleBaseGame, an as PuzzleGameData, ao as PuzzleQuestion, R as RefundPolicy, x as Region, ap as RelatedPostType, aq as RelationDate, ar as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, as as ResourceContactDetailsType, at as ResourceDetails, au as ResourceImageType, av as SocialMediaType, aw as SocialShareResourceType, S as StallType, ax as Subcategory, ay as SubcategoryItems, az as TermsAgreement, p as UnregisteredVendorFormData, aA as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aB as VendorAttributes, aC as VendorCalendarData, l as VendorFormData, n as VendorInfoFormData, h as VendorInfoType, aD as VendorProductList, V as VendorType, aE as gameScreenIdentifierList, aF as gameTypeToDisplayName } from '../global--iSLy2cE.js';
|
|
7
7
|
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardResponse, f as RedeemedReward, b as ResourceByUser, S as SafeUserType, g as StripeSubscription, h as SubscriptionPlanData, c as SubscriptionPlansResponse, i as SubscriptionPricingData, d as SubscriptionStatusData, j as UserActivity, k as UserActivityEvent, U as UserFormData, l as UserType } from '../user-C_kCo0Fm.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 { 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-Dn50VDpB.js';
|
|
9
10
|
import '../images/index.js';
|
|
10
11
|
import 'react-hook-form';
|
|
11
12
|
|
package/dist/utils/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var utils_exports = {};
|
|
32
32
|
__export(utils_exports, {
|
|
33
33
|
AFFILIATE_PARTICIPANT_TYPE_LABELS: () => AFFILIATE_PARTICIPANT_TYPE_LABELS,
|
|
34
|
+
AFFILIATE_REWARDS: () => AFFILIATE_REWARDS,
|
|
34
35
|
ANDROID_URL: () => ANDROID_URL,
|
|
35
36
|
CLUEMART_MAIN_DOMAIN_URL: () => CLUEMART_MAIN_DOMAIN_URL,
|
|
36
37
|
CM_AFFILIATE_PROMO_CODE: () => CM_AFFILIATE_PROMO_CODE,
|
|
@@ -53,6 +54,7 @@ __export(utils_exports, {
|
|
|
53
54
|
collectStallholderStartDates: () => collectStallholderStartDates,
|
|
54
55
|
collectVendorEventRelationDateTimes: () => collectVendorEventRelationDateTimes,
|
|
55
56
|
computeDailyClueState: () => computeDailyClueState,
|
|
57
|
+
createAffiliateReward: () => createAffiliateReward,
|
|
56
58
|
dateFormat: () => dateFormat,
|
|
57
59
|
eventHasSelectedDate: () => eventHasSelectedDate,
|
|
58
60
|
eventMatchesDateStatusPeriod: () => eventMatchesDateStatusPeriod,
|
|
@@ -1894,6 +1896,42 @@ var AFFILIATE_PARTICIPANT_TYPE_LABELS = {
|
|
|
1894
1896
|
["SOLE_TRADER" /* SOLE_TRADER */]: "Sole Trader",
|
|
1895
1897
|
["COMPANY" /* COMPANY */]: "Company"
|
|
1896
1898
|
};
|
|
1899
|
+
var AFFILIATE_REWARDS = {
|
|
1900
|
+
["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
|
|
1901
|
+
description: "10 points for new event registration (one-time reward)",
|
|
1902
|
+
value: 10
|
|
1903
|
+
},
|
|
1904
|
+
["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
|
|
1905
|
+
description: "5 points for new vendor registration (one-time reward)",
|
|
1906
|
+
value: 5
|
|
1907
|
+
},
|
|
1908
|
+
["ACTIVE_VENDOR_PRO_SUBSCRIPTION" /* ACTIVE_VENDOR_PRO_SUBSCRIPTION */]: {
|
|
1909
|
+
description: "3 points for active vendor pro subscription (monthly reward)",
|
|
1910
|
+
value: 3
|
|
1911
|
+
},
|
|
1912
|
+
["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION" /* ACTIVE_VENDOR_STANDARD_SUBSCRIPTION */]: {
|
|
1913
|
+
description: "1 point for active vendor standard subscription (monthly reward)",
|
|
1914
|
+
value: 1
|
|
1915
|
+
},
|
|
1916
|
+
["ACTIVE_VENDOR_BONUS_REWARD" /* ACTIVE_VENDOR_BONUS_REWARD */]: {
|
|
1917
|
+
description: "5 bonus points for every 10th active vendor (one-time reward)",
|
|
1918
|
+
value: 5
|
|
1919
|
+
},
|
|
1920
|
+
["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
|
|
1921
|
+
description: "40 points for active event with vendor registrations (one-time reward)",
|
|
1922
|
+
value: 40
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
function createAffiliateReward(rewardType, createdAt) {
|
|
1926
|
+
const reward = AFFILIATE_REWARDS[rewardType];
|
|
1927
|
+
return {
|
|
1928
|
+
createdAt,
|
|
1929
|
+
redeemedAt: null,
|
|
1930
|
+
rewardDescription: reward.description,
|
|
1931
|
+
rewardType,
|
|
1932
|
+
rewardValue: reward.value
|
|
1933
|
+
};
|
|
1934
|
+
}
|
|
1897
1935
|
|
|
1898
1936
|
// src/utils/irdNumber.ts
|
|
1899
1937
|
var PRIMARY_WEIGHTS = [3, 2, 7, 6, 5, 4, 3, 2];
|
|
@@ -2023,6 +2061,7 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
|
|
|
2023
2061
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2024
2062
|
0 && (module.exports = {
|
|
2025
2063
|
AFFILIATE_PARTICIPANT_TYPE_LABELS,
|
|
2064
|
+
AFFILIATE_REWARDS,
|
|
2026
2065
|
ANDROID_URL,
|
|
2027
2066
|
CLUEMART_MAIN_DOMAIN_URL,
|
|
2028
2067
|
CM_AFFILIATE_PROMO_CODE,
|
|
@@ -2045,6 +2084,7 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
|
|
|
2045
2084
|
collectStallholderStartDates,
|
|
2046
2085
|
collectVendorEventRelationDateTimes,
|
|
2047
2086
|
computeDailyClueState,
|
|
2087
|
+
createAffiliateReward,
|
|
2048
2088
|
dateFormat,
|
|
2049
2089
|
eventHasSelectedDate,
|
|
2050
2090
|
eventMatchesDateStatusPeriod,
|