@timardex/cluemart-shared 1.7.45 → 1.7.46
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-CxABR6sX.d.ts → ad-2AW1JD8A.d.ts} +2 -2
- package/dist/{ad-CfOLvXyB.d.mts → ad-DFY6URsw.d.mts} +2 -2
- package/dist/{affiliate-MosCEdnO.d.mts → affiliate-Buu_lbqm.d.mts} +2 -2
- package/dist/{affiliate-CJMP_HcA.d.ts → affiliate-DqEAKmqT.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-Q3X2EHHF.mjs → chunk-NCMKTUWS.mjs} +1 -1
- package/dist/{chunk-Q3X2EHHF.mjs.map → chunk-NCMKTUWS.mjs.map} +1 -1
- package/dist/{chunk-UGWEWOUM.mjs → chunk-YVEXOCXF.mjs} +3 -32
- package/dist/chunk-YVEXOCXF.mjs.map +1 -0
- package/dist/{contactUs-B5ivc7fv.d.ts → contactUs-B-m0Wu7K.d.ts} +1 -1
- package/dist/{contactUs-xtO8TiMI.d.mts → contactUs-jOb2jnih.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 +2 -2
- package/dist/{global-B9wsUE0s.d.mts → global-BlbbSNzX.d.mts} +1 -2
- package/dist/{global-BnYAMxH5.d.ts → global-Vq3BudHa.d.ts} +1 -2
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +0 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.mjs +0 -29
- 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-D7fXh5KQ.d.ts → resourceActivities-B2TH_bYa.d.ts} +1 -1
- package/dist/{resourceActivities-C7CUBA6k.d.mts → resourceActivities-CoXFG4sD.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +1 -1
- package/dist/{user-n3xcmWry.d.mts → user-BnZtK7GF.d.mts} +1 -1
- package/dist/{user-B7SZZ3EF.d.ts → user-DMKMDVAN.d.ts} +1 -1
- package/dist/utils/index.cjs +0 -30
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -6
- package/dist/utils/index.d.ts +4 -6
- package/dist/utils/index.mjs +2 -4
- package/package.json +1 -1
- package/dist/chunk-UGWEWOUM.mjs.map +0 -1
|
@@ -442,7 +442,6 @@ type CouponDataType = CouponDefaultsFormData & {
|
|
|
442
442
|
products?: CouponDataProductsType | null;
|
|
443
443
|
updatedAt: Date | null;
|
|
444
444
|
};
|
|
445
|
-
type CreateCouponDefaults = Omit<CouponDataType, "_id">;
|
|
446
445
|
interface CouponType {
|
|
447
446
|
_id: string;
|
|
448
447
|
active: boolean;
|
|
@@ -799,4 +798,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
799
798
|
offset?: number;
|
|
800
799
|
}
|
|
801
800
|
|
|
802
|
-
export { type CouponPurchaseOption as $, type PostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CreatePostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CouponDefaultsFormData as H, type CreateCouponFormData as I, type Region as J, type BaseGameMap as K, type LocationType as L, type MutationResponse as M, type BaseGameType as N, type OptionItem as O, type PosterUsageType as P, type BaseResourceType as Q, type RefundPolicy as R, type StallType as S, type CouponCodeType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataProductsType as W, type CouponDataType as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponReward as a0, type
|
|
801
|
+
export { type CouponPurchaseOption as $, type PostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CreatePostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CouponDefaultsFormData as H, type CreateCouponFormData as I, type Region as J, type BaseGameMap as K, type LocationType as L, type MutationResponse as M, type BaseGameType as N, type OptionItem as O, type PosterUsageType as P, type BaseResourceType as Q, type RefundPolicy as R, type StallType as S, type CouponCodeType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataProductsType as W, type CouponDataType as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponReward as a0, type CreateFormData as a1, type DailyClueBaseGame as a2, type DailyClueGameData as a3, type DateTimeType as a4, type DateTimeWithPriceType as a5, type DeviceInfo as a6, EnumCouponListType as a7, EnumCouponQualificationType as a8, EnumGameStatus as a9, type ProductCoupon as aA, type PromoCodeType as aB, type PuzzleAnswer as aC, type PuzzleAnsweredQuestion as aD, type PuzzleBaseGame as aE, type PuzzleGameData as aF, type PuzzleQuestion as aG, type RelatedPostType as aH, type RelationDate as aI, type RelationInputType as aJ, type ResourceContactDetailsType as aK, type ResourceDetails as aL, type ResourceImageType as aM, type SocialMediaType as aN, type SocialShareResourceType as aO, type Subcategory as aP, type SubcategoryItems as aQ, type TermsAgreement as aR, type UnregisteredVendorInvitationType as aS, type VendorAttributes as aT, type VendorCalendarData as aU, type VendorProductList as aV, gameScreenIdentifierList as aW, gameTypeToDisplayName as aX, EnumGameType as aa, EnumPostContentType as ab, type EventStatusType as ac, type GameDate as ad, type GameHistory as ae, type GamePlacement as af, type GamePlacementClue as ag, type GameType as ah, type GeocodeLocation as ai, type GlobalGameData as aj, type ImageObjectType as ak, type LocationGeoType as al, type Nullable as am, type OwnerType as an, PROMO_CODE_PREFIX as ao, type PaymentInfoType as ap, type PostContentData as aq, type PostContentFormData as ar, type PostContentGame as as, type PostContentImage as at, type PostContentList as au, type PostContentTextarea as av, type PostContentType as aw, type PostContentVideo as ax, type PostFileInput as ay, type PostResource as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorType as h, type VendorInfoType as i, type MyPendingVendorClaim as j, type UserLicenceType as k, type PostType as l, EnumPostType as m, type GameLeaderboard as n, type CouponType as o, type CouponTypeList as p, type VendorFormData as q, type CreateVendorFormData as r, type VendorInfoFormData as s, type CreateVendorInfoFormData as t, type UnregisteredVendorFormData as u, type CreateUnregisteredVendorFormData as v, type EventFormData as w, type CreateEventFormData as x, type EventInfoFormData as y, type CreateEventInfoFormData as z };
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CoXFG4sD.mjs';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-BlbbSNzX.mjs';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-DFY6URsw.mjs';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-BnZtK7GF.mjs';
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-Buu_lbqm.mjs';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.mjs';
|
|
11
11
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-B2TH_bYa.js';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-Vq3BudHa.js';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-2AW1JD8A.js';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-DMKMDVAN.js';
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-DqEAKmqT.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.js';
|
|
11
11
|
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-
|
|
2
|
-
import { U as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-BlbbSNzX.mjs';
|
|
2
|
+
import { U as UserFormData, C as CreateUserFormData } from '../user-BnZtK7GF.mjs';
|
|
3
|
+
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-DFY6URsw.mjs';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-Buu_lbqm.mjs';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-jOb2jnih.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.mjs';
|
|
8
8
|
import '../images/index.mjs';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-
|
|
2
|
-
import { U as UserFormData, C as CreateUserFormData } from '../user-
|
|
3
|
-
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-
|
|
4
|
-
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-
|
|
5
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, q as VendorFormData, r as CreateVendorFormData, s as VendorInfoFormData, t as CreateVendorInfoFormData, u as UnregisteredVendorFormData, v as CreateUnregisteredVendorFormData, w as EventFormData, x as CreateEventFormData, y as EventInfoFormData, z as CreateEventInfoFormData, B as BaseResourceTypeFormData, A as PostFormData, D as CreatePostFormData, H as CouponDefaultsFormData, I as CreateCouponFormData } from '../global-Vq3BudHa.js';
|
|
2
|
+
import { U as UserFormData, C as CreateUserFormData } from '../user-DMKMDVAN.js';
|
|
3
|
+
import { C as CreateLoginFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, f as CreateValidateVerificationTokenFormData, g as CreateResetPasswordFormData, h as PartnerFormData, i as AdFormData, j as CreateAdFormState, k as CreatePartnerFormData, l as AppSettingsFormData, m as CreateAppSettingsFormData, n as SchoolFormData, o as CreateSchoolFormData } from '../ad-2AW1JD8A.js';
|
|
4
|
+
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-DqEAKmqT.js';
|
|
5
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-B-m0Wu7K.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../enums/index.js';
|
|
8
8
|
import '../images/index.js';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-YVEXOCXF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
dateFormat,
|
|
13
13
|
timeFormat
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
EnumAffiliateParticipantType,
|
|
21
21
|
EnumPostContentType,
|
|
22
22
|
EnumPostType
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-NCMKTUWS.mjs";
|
|
24
24
|
import "../chunk-RAYUJODN.mjs";
|
|
25
25
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
26
26
|
import "../chunk-CT2SGB4K.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -178,7 +178,6 @@ __export(index_exports, {
|
|
|
178
178
|
computeDailyClueState: () => computeDailyClueState,
|
|
179
179
|
contactUsFields: () => contactUsFields,
|
|
180
180
|
createAffiliateReward: () => createAffiliateReward,
|
|
181
|
-
createCouponDefaults: () => createCouponDefaults,
|
|
182
181
|
darkColors: () => darkColors,
|
|
183
182
|
dateFormat: () => dateFormat,
|
|
184
183
|
emailField: () => emailField,
|
|
@@ -3063,34 +3062,6 @@ function getErrorMessage(error, fallback = DEFAULT_USER_FACING_ERROR) {
|
|
|
3063
3062
|
return toUserFacingErrorMessage(raw, fallback);
|
|
3064
3063
|
}
|
|
3065
3064
|
|
|
3066
|
-
// src/utils/coupon.ts
|
|
3067
|
-
function createCouponDefaults({
|
|
3068
|
-
couponCode,
|
|
3069
|
-
couponDescription,
|
|
3070
|
-
couponOption,
|
|
3071
|
-
couponRewards,
|
|
3072
|
-
createdAt,
|
|
3073
|
-
endDate,
|
|
3074
|
-
startDate,
|
|
3075
|
-
resourceId,
|
|
3076
|
-
resourceType
|
|
3077
|
-
}) {
|
|
3078
|
-
return {
|
|
3079
|
-
active: true,
|
|
3080
|
-
couponCode,
|
|
3081
|
-
couponDescription,
|
|
3082
|
-
couponOption,
|
|
3083
|
-
couponRewards,
|
|
3084
|
-
createdAt,
|
|
3085
|
-
endDate,
|
|
3086
|
-
participantUsers: null,
|
|
3087
|
-
resourceId,
|
|
3088
|
-
resourceType,
|
|
3089
|
-
startDate,
|
|
3090
|
-
updatedAt: null
|
|
3091
|
-
};
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
3065
|
// src/formFields/vendor/vendorInfo.ts
|
|
3095
3066
|
var vendorElectricity = {
|
|
3096
3067
|
details: {
|
|
@@ -9423,7 +9394,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9423
9394
|
computeDailyClueState,
|
|
9424
9395
|
contactUsFields,
|
|
9425
9396
|
createAffiliateReward,
|
|
9426
|
-
createCouponDefaults,
|
|
9427
9397
|
darkColors,
|
|
9428
9398
|
dateFormat,
|
|
9429
9399
|
emailField,
|