@timardex/cluemart-shared 2.0.3 → 2.0.5
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-tNoTBv3n.d.mts → ad-CS9kB0uq.d.mts} +2 -2
- package/dist/{ad-C7jlZyUd.d.ts → ad-Cb1iks0S.d.ts} +2 -2
- package/dist/{affiliate-BL1ZN-4t.d.mts → affiliate-D32uc3FU.d.mts} +2 -2
- package/dist/{affiliate-DStyY84o.d.ts → affiliate-DzW8tu7g.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-YFIMGYQF.mjs → chunk-5KOHAP3V.mjs} +13 -7
- package/dist/chunk-5KOHAP3V.mjs.map +1 -0
- package/dist/{chunk-XED54CPG.mjs → chunk-LMFBXRR7.mjs} +2 -2
- package/dist/{chunk-D45RNLV2.mjs → chunk-UUIAJ2D6.mjs} +1 -1
- package/dist/chunk-UUIAJ2D6.mjs.map +1 -0
- package/dist/{contactUs-BYm-iDIH.d.mts → contactUs-Ckb_NJzK.d.mts} +1 -1
- package/dist/{contactUs-_BHRXUrv.d.ts → contactUs-DlwlgW_8.d.ts} +1 -1
- package/dist/formFields/index.cjs.map +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-D_et_d2Y.d.ts → global-1ZTs16b3.d.ts} +15 -6
- package/dist/{global-C7-KDYqg.d.mts → global-YviDTeKy.d.mts} +15 -6
- package/dist/graphql/index.cjs +12 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +7 -7
- package/dist/graphql/index.d.ts +7 -7
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -8
- package/dist/index.d.ts +17 -8
- package/dist/index.mjs +12 -6
- 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-BW648M1v.d.ts → resourceActivities-BQXx5sHH.d.ts} +1 -1
- package/dist/{resourceActivities-BJAI4jf-.d.mts → resourceActivities-DNB89XsU.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-nHjaLZoG.d.ts → user-BvRHKJSv.d.ts} +1 -1
- package/dist/{user-BA7TT2yB.d.mts → user-k5tvjAHO.d.mts} +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-D45RNLV2.mjs.map +0 -1
- package/dist/chunk-YFIMGYQF.mjs.map +0 -1
- /package/dist/{chunk-XED54CPG.mjs.map → chunk-LMFBXRR7.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-YviDTeKy.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-1ZTs16b3.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-LMFBXRR7.mjs";
|
|
50
50
|
import "../chunk-YRO6KEZG.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-UUIAJ2D6.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-7DQBUZXY.mjs";
|
|
@@ -565,15 +565,23 @@ type VendorInfoFormData = {
|
|
|
565
565
|
vendorId: string;
|
|
566
566
|
};
|
|
567
567
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
568
|
+
type VendorAvailability = {
|
|
569
|
+
school: boolean;
|
|
570
|
+
private: boolean;
|
|
571
|
+
corporate: boolean;
|
|
572
|
+
};
|
|
573
|
+
type DowngradeSnapshot = {
|
|
574
|
+
availability: VendorAvailability;
|
|
575
|
+
calendarActive: boolean;
|
|
576
|
+
productsActive: boolean;
|
|
577
|
+
};
|
|
568
578
|
interface VendorType extends BaseResourceType {
|
|
569
|
-
availability?:
|
|
570
|
-
school: boolean;
|
|
571
|
-
private: boolean;
|
|
572
|
-
corporate: boolean;
|
|
573
|
-
};
|
|
579
|
+
availability?: VendorAvailability;
|
|
574
580
|
claimed: boolean;
|
|
575
581
|
calendar: VendorFormData["calendar"] | null;
|
|
576
582
|
categories: VendorFormData["categories"];
|
|
583
|
+
/** Only used (for now) in `downgradeVendorProFeatures`. */
|
|
584
|
+
downgradeSnapshot?: DowngradeSnapshot | null;
|
|
577
585
|
foodTruck: boolean;
|
|
578
586
|
products: VendorFormData["products"] | null;
|
|
579
587
|
vendorInfoId: string;
|
|
@@ -822,6 +830,7 @@ interface PaginationOptions {
|
|
|
822
830
|
}
|
|
823
831
|
interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
824
832
|
onlyClaimed?: boolean;
|
|
833
|
+
skip?: boolean;
|
|
825
834
|
}
|
|
826
835
|
|
|
827
|
-
export { type CouponPurchaseOption as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketPassportOption as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponVendorProduct 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,
|
|
836
|
+
export { type CouponPurchaseOption as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketPassportOption as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, gameTypeToDisplayName as a$, type CouponVendorProduct 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, type DowngradeSnapshot as a7, EnumCouponListType as a8, EnumCouponQualificationType as a9, type PostContentVideo as aA, type PostFileInput as aB, type PostResource as aC, type ProductCoupon as aD, type PromoCodeType as aE, type PuzzleAnswer as aF, type PuzzleAnsweredQuestion as aG, type PuzzleBaseGame as aH, type PuzzleGameData as aI, type PuzzleQuestion as aJ, type RelatedPostType as aK, type RelationDate as aL, type RelationInputType as aM, type ResourceContactDetailsType as aN, type ResourceDetails as aO, type ResourceImageType as aP, type SocialMediaType as aQ, type SocialShareResourceType as aR, type Subcategory as aS, type SubcategoryItems as aT, type TermsAgreement as aU, type UnregisteredVendorInvitationType as aV, type VendorAttributes as aW, type VendorAvailability as aX, type VendorCalendarData as aY, type VendorProductList as aZ, gameScreenIdentifierList as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventStatusType as ae, type GameDate as af, type GameHistory as ag, type GamePlacement as ah, type GamePlacementClue as ai, type GameType as aj, type GeocodeLocation as ak, type GlobalGameData as al, type ImageObjectType as am, type LocationGeoType as an, type Nullable as ao, type OwnerType as ap, PROMO_CODE_PREFIX as aq, type PaginationOptions as ar, type PaymentInfoType as as, type PostContentData as at, type PostContentFormData as au, type PostContentGame as av, type PostContentImage as aw, type PostContentList as ax, type PostContentTextarea as ay, type PostContentType 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, type GameLeaderboard as m, type CouponType as n, type CouponTypeList as o, type VendorFormData as p, type CreateVendorFormData as q, type VendorInfoFormData as r, type CreateVendorInfoFormData as s, type UnregisteredVendorFormData as t, type CreateUnregisteredVendorFormData as u, type EventFormData as v, type CreateEventFormData as w, type EventInfoFormData as x, type CreateEventInfoFormData as y, type PostFormData as z };
|
|
@@ -565,15 +565,23 @@ type VendorInfoFormData = {
|
|
|
565
565
|
vendorId: string;
|
|
566
566
|
};
|
|
567
567
|
type CreateVendorInfoFormData = CreateFormData<VendorInfoFormData>;
|
|
568
|
+
type VendorAvailability = {
|
|
569
|
+
school: boolean;
|
|
570
|
+
private: boolean;
|
|
571
|
+
corporate: boolean;
|
|
572
|
+
};
|
|
573
|
+
type DowngradeSnapshot = {
|
|
574
|
+
availability: VendorAvailability;
|
|
575
|
+
calendarActive: boolean;
|
|
576
|
+
productsActive: boolean;
|
|
577
|
+
};
|
|
568
578
|
interface VendorType extends BaseResourceType {
|
|
569
|
-
availability?:
|
|
570
|
-
school: boolean;
|
|
571
|
-
private: boolean;
|
|
572
|
-
corporate: boolean;
|
|
573
|
-
};
|
|
579
|
+
availability?: VendorAvailability;
|
|
574
580
|
claimed: boolean;
|
|
575
581
|
calendar: VendorFormData["calendar"] | null;
|
|
576
582
|
categories: VendorFormData["categories"];
|
|
583
|
+
/** Only used (for now) in `downgradeVendorProFeatures`. */
|
|
584
|
+
downgradeSnapshot?: DowngradeSnapshot | null;
|
|
577
585
|
foodTruck: boolean;
|
|
578
586
|
products: VendorFormData["products"] | null;
|
|
579
587
|
vendorInfoId: string;
|
|
@@ -822,6 +830,7 @@ interface PaginationOptions {
|
|
|
822
830
|
}
|
|
823
831
|
interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
824
832
|
onlyClaimed?: boolean;
|
|
833
|
+
skip?: boolean;
|
|
825
834
|
}
|
|
826
835
|
|
|
827
|
-
export { type CouponPurchaseOption as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketPassportOption as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, type CouponVendorProduct 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,
|
|
836
|
+
export { type CouponPurchaseOption as $, type CreatePostFormData as A, type BaseResourceTypeFormData as B, type Category as C, type CouponDefaultsFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateCouponFormData as H, type Region as I, type BaseGameMap as J, type BaseGameType as K, type LocationType as L, type MutationResponse as M, type BaseResourceType as N, type OptionItem as O, type PosterUsageType as P, type CouponCodeType as Q, type RefundPolicy as R, type StallType as S, type CouponDataProductsType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponDataType as W, type CouponMarketPassportOption as X, type CouponMarketVisitOption as Y, type CouponOption as Z, type CouponParticipantUserType as _, type FormDateField as a, gameTypeToDisplayName as a$, type CouponVendorProduct 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, type DowngradeSnapshot as a7, EnumCouponListType as a8, EnumCouponQualificationType as a9, type PostContentVideo as aA, type PostFileInput as aB, type PostResource as aC, type ProductCoupon as aD, type PromoCodeType as aE, type PuzzleAnswer as aF, type PuzzleAnsweredQuestion as aG, type PuzzleBaseGame as aH, type PuzzleGameData as aI, type PuzzleQuestion as aJ, type RelatedPostType as aK, type RelationDate as aL, type RelationInputType as aM, type ResourceContactDetailsType as aN, type ResourceDetails as aO, type ResourceImageType as aP, type SocialMediaType as aQ, type SocialShareResourceType as aR, type Subcategory as aS, type SubcategoryItems as aT, type TermsAgreement as aU, type UnregisteredVendorInvitationType as aV, type VendorAttributes as aW, type VendorAvailability as aX, type VendorCalendarData as aY, type VendorProductList as aZ, gameScreenIdentifierList as a_, EnumGameStatus as aa, EnumGameType as ab, EnumPostContentType as ac, EnumPostType as ad, type EventStatusType as ae, type GameDate as af, type GameHistory as ag, type GamePlacement as ah, type GamePlacementClue as ai, type GameType as aj, type GeocodeLocation as ak, type GlobalGameData as al, type ImageObjectType as am, type LocationGeoType as an, type Nullable as ao, type OwnerType as ap, PROMO_CODE_PREFIX as aq, type PaginationOptions as ar, type PaymentInfoType as as, type PostContentData as at, type PostContentFormData as au, type PostContentGame as av, type PostContentImage as aw, type PostContentList as ax, type PostContentTextarea as ay, type PostContentType 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, type GameLeaderboard as m, type CouponType as n, type CouponTypeList as o, type VendorFormData as p, type CreateVendorFormData as q, type VendorInfoFormData as r, type CreateVendorInfoFormData as s, type UnregisteredVendorFormData as t, type CreateUnregisteredVendorFormData as u, type EventFormData as v, type CreateEventFormData as w, type EventInfoFormData as x, type CreateEventInfoFormData as y, type PostFormData as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -2396,15 +2396,17 @@ var useGetEventByPlaceId = (googlePlaceId) => {
|
|
|
2396
2396
|
return { error, eventByPlaceId, loading, refetch };
|
|
2397
2397
|
};
|
|
2398
2398
|
var useGetEventsByRegion = (region, options, dateStatus, tags) => {
|
|
2399
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
2400
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
2399
2401
|
const variables = {
|
|
2400
2402
|
dateStatus,
|
|
2401
|
-
options,
|
|
2403
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
2402
2404
|
region,
|
|
2403
2405
|
tags: (tags ?? []).filter(Boolean)
|
|
2404
2406
|
};
|
|
2405
2407
|
const { loading, error, data, refetch, fetchMore } = (0, import_client25.useQuery)(GET_EVENTS_BY_REGION, {
|
|
2406
2408
|
fetchPolicy: "network-only",
|
|
2407
|
-
skip: !region || region === "",
|
|
2409
|
+
skip: skip || !region || region === "",
|
|
2408
2410
|
variables
|
|
2409
2411
|
});
|
|
2410
2412
|
const eventsByRegion = data?.eventsByRegion || [];
|
|
@@ -3051,9 +3053,11 @@ var useGetVendor = (_id) => {
|
|
|
3051
3053
|
const vendor = data?.vendor || null;
|
|
3052
3054
|
return { error, loading, refetch, vendor };
|
|
3053
3055
|
};
|
|
3054
|
-
var useGetVendorsByRegion = (region, options
|
|
3056
|
+
var useGetVendorsByRegion = (region, options) => {
|
|
3057
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
3058
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
3055
3059
|
const variables = {
|
|
3056
|
-
options,
|
|
3060
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
3057
3061
|
region
|
|
3058
3062
|
};
|
|
3059
3063
|
const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
|
|
@@ -3962,9 +3966,11 @@ var useGetPartner = (_id) => {
|
|
|
3962
3966
|
const partner = data?.partner;
|
|
3963
3967
|
return { error, loading, partner, refetch };
|
|
3964
3968
|
};
|
|
3965
|
-
var useGetPartnersByRegion = (region, options
|
|
3969
|
+
var useGetPartnersByRegion = (region, options) => {
|
|
3970
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
3971
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
3966
3972
|
const variables = {
|
|
3967
|
-
options,
|
|
3973
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
3968
3974
|
region
|
|
3969
3975
|
};
|
|
3970
3976
|
const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
|