@timardex/cluemart-shared 1.5.767 → 1.5.768
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-DCHTDsSt.d.mts → ad-8BNpjEcM.d.mts} +2 -1
- package/dist/{ad-Y0a_HMGC.d.ts → ad-DZGYiwY-.d.ts} +2 -1
- package/dist/{chunk-3U53KFHU.mjs → chunk-AKX2AGMA.mjs} +2 -2
- package/dist/{chunk-W5X2UU26.mjs → chunk-HASLOIIM.mjs} +1 -1
- package/dist/chunk-HASLOIIM.mjs.map +1 -0
- package/dist/{chunk-XYZO6N7X.mjs → chunk-HPPIA4EM.mjs} +2 -2
- package/dist/{chunk-4YP54WNB.mjs → chunk-KBWSWLL4.mjs} +37 -7
- package/dist/chunk-KBWSWLL4.mjs.map +1 -0
- package/dist/{chunk-AHL77AVZ.mjs → chunk-VQRZ4OJY.mjs} +2 -2
- package/dist/{contactUs-HfiiUgnp.d.mts → contactUs-DGrDzJaM.d.mts} +1 -1
- package/dist/{contactUs-kHUGKh4g.d.ts → contactUs-H7799pWe.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/{global-Bw5idRO_.d.mts → global-BUUfmCo7.d.mts} +15 -6
- package/dist/{global-CPlgw1lx.d.ts → global-fKbMmluy.d.ts} +15 -6
- package/dist/graphql/index.cjs +36 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +33 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +36 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.mjs +36 -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-DkHxKIvs.d.ts → resourceActivities-BL_12IAo.d.ts} +1 -1
- package/dist/{resourceActivities-BIkkzyzp.d.mts → resourceActivities-zczOntNk.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-4YP54WNB.mjs.map +0 -1
- package/dist/chunk-W5X2UU26.mjs.map +0 -1
- /package/dist/{chunk-3U53KFHU.mjs.map → chunk-AKX2AGMA.mjs.map} +0 -0
- /package/dist/{chunk-XYZO6N7X.mjs.map → chunk-HPPIA4EM.mjs.map} +0 -0
- /package/dist/{chunk-AHL77AVZ.mjs.map → chunk-VQRZ4OJY.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gameScreenIdentifierList
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HASLOIIM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
EnumEventDateStatus,
|
|
6
6
|
EnumInviteStatus,
|
|
@@ -1631,4 +1631,4 @@ export {
|
|
|
1631
1631
|
getVendorEventRelationDateOptions,
|
|
1632
1632
|
getVendorEventsEmptyMessage
|
|
1633
1633
|
};
|
|
1634
|
-
//# sourceMappingURL=chunk-
|
|
1634
|
+
//# sourceMappingURL=chunk-VQRZ4OJY.mjs.map
|
|
@@ -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-BUUfmCo7.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-fKbMmluy.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
vendorStallSize,
|
|
42
42
|
vendorStartDateFields,
|
|
43
43
|
vendorTable
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-AKX2AGMA.mjs";
|
|
45
45
|
import {
|
|
46
46
|
availableCategories,
|
|
47
47
|
categoryColors
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
48
|
+
} from "../chunk-VQRZ4OJY.mjs";
|
|
49
|
+
import "../chunk-HASLOIIM.mjs";
|
|
50
50
|
import "../chunk-4SNW63TJ.mjs";
|
|
51
51
|
export {
|
|
52
52
|
availableCategories,
|
|
@@ -93,8 +93,10 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
+
sharePublic?: SocialShareResourceType | null;
|
|
97
|
+
shareRelation?: SocialShareResourceType | null;
|
|
96
98
|
}
|
|
97
|
-
type EventListItemType =
|
|
99
|
+
type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
98
100
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
99
101
|
_id: string;
|
|
100
102
|
active?: boolean;
|
|
@@ -372,10 +374,11 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
372
374
|
type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
373
375
|
_id: string;
|
|
374
376
|
content: PostContentType[];
|
|
375
|
-
slug: string;
|
|
376
|
-
resource?: PostResource | null;
|
|
377
377
|
createdAt: Date;
|
|
378
378
|
deletedAt: Date | null;
|
|
379
|
+
resource?: PostResource | null;
|
|
380
|
+
slug: string;
|
|
381
|
+
sharePublic?: SocialShareResourceType | null;
|
|
379
382
|
updatedAt: Date | null;
|
|
380
383
|
};
|
|
381
384
|
|
|
@@ -462,6 +465,8 @@ interface VendorType extends BaseResourceType {
|
|
|
462
465
|
relationId: string | null;
|
|
463
466
|
relationDates: RelationDate[] | null;
|
|
464
467
|
}[] | null;
|
|
468
|
+
sharePublic?: SocialShareResourceType | null;
|
|
469
|
+
shareRelation?: SocialShareResourceType | null;
|
|
465
470
|
unregisteredVendorId?: string | null;
|
|
466
471
|
}
|
|
467
472
|
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
@@ -569,6 +574,10 @@ type RelatedPostType = {
|
|
|
569
574
|
postSlug: string;
|
|
570
575
|
postType: EnumPostType;
|
|
571
576
|
};
|
|
577
|
+
type SocialShareResourceType = {
|
|
578
|
+
qrCode: ResourceImageType;
|
|
579
|
+
socialImage: ResourceImageType;
|
|
580
|
+
};
|
|
572
581
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
573
582
|
_id: string;
|
|
574
583
|
adIds?: string[] | null;
|
|
@@ -576,10 +585,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
576
585
|
deletedAt: Date | null;
|
|
577
586
|
posterUsage?: PosterUsageType | null;
|
|
578
587
|
rating?: number | null;
|
|
579
|
-
reviewCount?: number | null;
|
|
580
|
-
updatedAt: Date | null;
|
|
581
588
|
relatedPost?: RelatedPostType | null;
|
|
589
|
+
reviewCount?: number | null;
|
|
582
590
|
slug: string;
|
|
591
|
+
updatedAt: Date | null;
|
|
583
592
|
};
|
|
584
593
|
type LocationGeoType = {
|
|
585
594
|
coordinates: number[];
|
|
@@ -686,4 +695,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
686
695
|
offset?: number;
|
|
687
696
|
}
|
|
688
697
|
|
|
689
|
-
export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type
|
|
698
|
+
export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems 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 VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
|
|
@@ -93,8 +93,10 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
+
sharePublic?: SocialShareResourceType | null;
|
|
97
|
+
shareRelation?: SocialShareResourceType | null;
|
|
96
98
|
}
|
|
97
|
-
type EventListItemType =
|
|
99
|
+
type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
98
100
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
99
101
|
_id: string;
|
|
100
102
|
active?: boolean;
|
|
@@ -372,10 +374,11 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
|
|
|
372
374
|
type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
|
|
373
375
|
_id: string;
|
|
374
376
|
content: PostContentType[];
|
|
375
|
-
slug: string;
|
|
376
|
-
resource?: PostResource | null;
|
|
377
377
|
createdAt: Date;
|
|
378
378
|
deletedAt: Date | null;
|
|
379
|
+
resource?: PostResource | null;
|
|
380
|
+
slug: string;
|
|
381
|
+
sharePublic?: SocialShareResourceType | null;
|
|
379
382
|
updatedAt: Date | null;
|
|
380
383
|
};
|
|
381
384
|
|
|
@@ -462,6 +465,8 @@ interface VendorType extends BaseResourceType {
|
|
|
462
465
|
relationId: string | null;
|
|
463
466
|
relationDates: RelationDate[] | null;
|
|
464
467
|
}[] | null;
|
|
468
|
+
sharePublic?: SocialShareResourceType | null;
|
|
469
|
+
shareRelation?: SocialShareResourceType | null;
|
|
465
470
|
unregisteredVendorId?: string | null;
|
|
466
471
|
}
|
|
467
472
|
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
@@ -569,6 +574,10 @@ type RelatedPostType = {
|
|
|
569
574
|
postSlug: string;
|
|
570
575
|
postType: EnumPostType;
|
|
571
576
|
};
|
|
577
|
+
type SocialShareResourceType = {
|
|
578
|
+
qrCode: ResourceImageType;
|
|
579
|
+
socialImage: ResourceImageType;
|
|
580
|
+
};
|
|
572
581
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
573
582
|
_id: string;
|
|
574
583
|
adIds?: string[] | null;
|
|
@@ -576,10 +585,10 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
576
585
|
deletedAt: Date | null;
|
|
577
586
|
posterUsage?: PosterUsageType | null;
|
|
578
587
|
rating?: number | null;
|
|
579
|
-
reviewCount?: number | null;
|
|
580
|
-
updatedAt: Date | null;
|
|
581
588
|
relatedPost?: RelatedPostType | null;
|
|
589
|
+
reviewCount?: number | null;
|
|
582
590
|
slug: string;
|
|
591
|
+
updatedAt: Date | null;
|
|
583
592
|
};
|
|
584
593
|
type LocationGeoType = {
|
|
585
594
|
coordinates: number[];
|
|
@@ -686,4 +695,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
686
695
|
offset?: number;
|
|
687
696
|
}
|
|
688
697
|
|
|
689
|
-
export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type
|
|
698
|
+
export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems 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 VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -458,6 +458,17 @@ var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
|
|
|
458
458
|
postType
|
|
459
459
|
}
|
|
460
460
|
`;
|
|
461
|
+
var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = import_client.gql`
|
|
462
|
+
fragment SocialShareResourceFields on SocialShareResourceType {
|
|
463
|
+
qrCode {
|
|
464
|
+
...ResourceImageFields
|
|
465
|
+
}
|
|
466
|
+
socialImage {
|
|
467
|
+
...ResourceImageFields
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
471
|
+
`;
|
|
461
472
|
|
|
462
473
|
// src/graphql/queries/event.ts
|
|
463
474
|
var EVENT_INFO = import_client2.gql`
|
|
@@ -555,6 +566,12 @@ var EVENT = import_client2.gql`
|
|
|
555
566
|
socialMedia {
|
|
556
567
|
...SocialMediaFields
|
|
557
568
|
}
|
|
569
|
+
sharePublic {
|
|
570
|
+
...SocialShareResourceFields
|
|
571
|
+
}
|
|
572
|
+
shareRelation {
|
|
573
|
+
...SocialShareResourceFields
|
|
574
|
+
}
|
|
558
575
|
slug
|
|
559
576
|
tags
|
|
560
577
|
termsAgreement {
|
|
@@ -573,6 +590,7 @@ var EVENT = import_client2.gql`
|
|
|
573
590
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
574
591
|
${RELATION_DATES_FRAGMENT}
|
|
575
592
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
593
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
576
594
|
`;
|
|
577
595
|
var GET_EVENTS = import_client2.gql`
|
|
578
596
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -755,6 +773,12 @@ var VENDOR = import_client3.gql`
|
|
|
755
773
|
socialMedia {
|
|
756
774
|
...SocialMediaFields
|
|
757
775
|
}
|
|
776
|
+
sharePublic {
|
|
777
|
+
...SocialShareResourceFields
|
|
778
|
+
}
|
|
779
|
+
shareRelation {
|
|
780
|
+
...SocialShareResourceFields
|
|
781
|
+
}
|
|
758
782
|
termsAgreement {
|
|
759
783
|
...TermsAgreementFields
|
|
760
784
|
}
|
|
@@ -775,6 +799,7 @@ var VENDOR = import_client3.gql`
|
|
|
775
799
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
776
800
|
${RELATION_DATES_FRAGMENT}
|
|
777
801
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
802
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
778
803
|
`;
|
|
779
804
|
var VENDOR_ATTRIBUTES_FRAGMENT = import_client3.gql`
|
|
780
805
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -965,6 +990,9 @@ var PARTNER = import_client4.gql`
|
|
|
965
990
|
...SocialMediaFields
|
|
966
991
|
}
|
|
967
992
|
slug
|
|
993
|
+
sharePublic {
|
|
994
|
+
...SocialShareResourceFields
|
|
995
|
+
}
|
|
968
996
|
termsAgreement {
|
|
969
997
|
...TermsAgreementFields
|
|
970
998
|
}
|
|
@@ -979,6 +1007,7 @@ var PARTNER = import_client4.gql`
|
|
|
979
1007
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
980
1008
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
981
1009
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
1010
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
982
1011
|
`;
|
|
983
1012
|
var GET_PARTNERS = import_client4.gql`
|
|
984
1013
|
query getPartners {
|
|
@@ -1186,11 +1215,15 @@ var POST_FIELDS_FRAGMENT = import_client7.gql`
|
|
|
1186
1215
|
tags
|
|
1187
1216
|
title
|
|
1188
1217
|
slug
|
|
1218
|
+
sharePublic {
|
|
1219
|
+
...SocialShareResourceFields
|
|
1220
|
+
}
|
|
1189
1221
|
updatedAt
|
|
1190
1222
|
}
|
|
1191
1223
|
${POST_CONTENT_FIELDS_FRAGMENT}
|
|
1192
1224
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1193
1225
|
${POST_RESOURCE_FIELDS_FRAGMENT}
|
|
1226
|
+
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
1194
1227
|
`;
|
|
1195
1228
|
var GET_POSTS = import_client7.gql`
|
|
1196
1229
|
query getPosts {
|
|
@@ -2666,7 +2699,6 @@ var useGetChatSubscription = () => {
|
|
|
2666
2699
|
var useGetChatsByRegion = (region) => {
|
|
2667
2700
|
const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_CHATS_BY_REGION, {
|
|
2668
2701
|
fetchPolicy: "network-only",
|
|
2669
|
-
skip: !region || region === "",
|
|
2670
2702
|
variables: { region }
|
|
2671
2703
|
});
|
|
2672
2704
|
const chatsByRegion = data?.chatsByRegion || [];
|
|
@@ -2969,7 +3001,7 @@ var useGetEventsByRegion = (region, options, dateStatus) => {
|
|
|
2969
3001
|
var useSearchEvents = (region, searchQuery, tags, dateStatus) => {
|
|
2970
3002
|
const normalizedSearch = searchQuery?.trim() ?? "";
|
|
2971
3003
|
const normalizedTags = (tags ?? []).filter(Boolean);
|
|
2972
|
-
const shouldRunQuery =
|
|
3004
|
+
const shouldRunQuery = normalizedSearch.length > 3 || normalizedTags.length > 0;
|
|
2973
3005
|
const { loading, error, data, refetch } = (0, import_client24.useQuery)(SEARCH_EVENTS, {
|
|
2974
3006
|
fetchPolicy: "network-only",
|
|
2975
3007
|
skip: !shouldRunQuery,
|
|
@@ -3692,7 +3724,6 @@ var useGetVendorsByRegion = (region, options) => {
|
|
|
3692
3724
|
};
|
|
3693
3725
|
const { loading, error, data, refetch, fetchMore } = (0, import_client40.useQuery)(GET_VENDORS_BY_REGION, {
|
|
3694
3726
|
fetchPolicy: "network-only",
|
|
3695
|
-
skip: !region || region === "",
|
|
3696
3727
|
variables
|
|
3697
3728
|
});
|
|
3698
3729
|
const vendorsByRegion = data?.vendorsByRegion || [];
|
|
@@ -3707,7 +3738,7 @@ var useGetVendorsByRegion = (region, options) => {
|
|
|
3707
3738
|
var useSearchVendors = (search, region) => {
|
|
3708
3739
|
const { loading, error, data, refetch } = (0, import_client40.useQuery)(SEARCH_VENDORS, {
|
|
3709
3740
|
fetchPolicy: "network-only",
|
|
3710
|
-
skip: search.length < 3
|
|
3741
|
+
skip: search.length < 3,
|
|
3711
3742
|
variables: { region, search }
|
|
3712
3743
|
});
|
|
3713
3744
|
const vendorSearch = data?.vendorSearch || [];
|
|
@@ -4584,7 +4615,6 @@ var useGetPartnersByRegion = (region, options) => {
|
|
|
4584
4615
|
};
|
|
4585
4616
|
const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
|
|
4586
4617
|
fetchPolicy: "network-only",
|
|
4587
|
-
skip: !region || region === "",
|
|
4588
4618
|
variables
|
|
4589
4619
|
});
|
|
4590
4620
|
const partnersByRegion = data?.partnersByRegion || [];
|
|
@@ -4599,7 +4629,7 @@ var useGetPartnersByRegion = (region, options) => {
|
|
|
4599
4629
|
var useSearchPartners = (search, region) => {
|
|
4600
4630
|
const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
|
|
4601
4631
|
fetchPolicy: "network-only",
|
|
4602
|
-
skip: search.length < 3
|
|
4632
|
+
skip: search.length < 3,
|
|
4603
4633
|
variables: { region, search }
|
|
4604
4634
|
});
|
|
4605
4635
|
const partnersSearch = data?.partnersSearch || [];
|