@timardex/cluemart-shared 2.3.10 → 2.4.0
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-Drhn_Azy.d.mts → ad-BSyVGv8q.d.mts} +18 -25
- package/dist/{ad-CdehhMyb.d.ts → ad-DRI2CIzV.d.ts} +18 -25
- package/dist/{affiliate-Cd78p2Fz.d.mts → affiliate-DJhVZJ2h.d.mts} +2 -2
- package/dist/{affiliate-CdIL0r2o.d.ts → affiliate-DuDoOxK_.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-UWMZ6VLV.mjs → chunk-2RHUGVV3.mjs} +137 -126
- package/dist/chunk-2RHUGVV3.mjs.map +1 -0
- package/dist/{chunk-HKTBJOB7.mjs → chunk-J72IMZ6E.mjs} +13 -1
- package/dist/chunk-J72IMZ6E.mjs.map +1 -0
- package/dist/{chunk-PBW5K54C.mjs → chunk-LEAXY4DI.mjs} +2 -2
- package/dist/{chunk-KMS64DE2.mjs → chunk-LHKJJ7SO.mjs} +2 -2
- package/dist/{chunk-5AAYX364.mjs → chunk-WWAHS5R2.mjs} +1 -10
- package/dist/chunk-WWAHS5R2.mjs.map +1 -0
- package/dist/{chunk-DV3K3JDE.mjs → chunk-ZECVZFK3.mjs} +7 -6
- package/dist/chunk-ZECVZFK3.mjs.map +1 -0
- package/dist/{contactUs-ITiB1XV4.d.ts → contactUs-6b5g9DV-.d.ts} +1 -1
- package/dist/{contactUs-BJPQ5nKc.d.mts → contactUs-BDJutwcx.d.mts} +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 +4 -4
- package/dist/{global-XUBcgjNc.d.mts → global-EGbrTMk6.d.mts} +5 -1
- package/dist/{global-DlC7W4p7.d.ts → global-LtQJ2t6c.d.ts} +5 -1
- package/dist/graphql/index.cjs +145 -133
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +29 -12
- package/dist/graphql/index.d.ts +29 -12
- package/dist/graphql/index.mjs +7 -5
- package/dist/hooks/index.cjs +48 -55
- 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 +6 -6
- package/dist/index.cjs +164 -146
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +58 -29
- package/dist/index.d.ts +58 -29
- package/dist/index.mjs +145 -131
- 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/region/index.d.mts +1 -1
- package/dist/region/index.d.ts +1 -1
- package/dist/{resourceActivities-Ci12UkJU.d.mts → resourceActivities-BytCHUvO.d.mts} +1 -1
- package/dist/{resourceActivities-C8eIfpKl.d.ts → resourceActivities-DlUEbCkT.d.ts} +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/types/index.cjs +0 -10
- 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 -3
- package/dist/{user-BSFExFvl.d.ts → user-GnrqZmZP.d.ts} +1 -1
- package/dist/{user-D31zAVuz.d.mts → user-Znc91Cw5.d.mts} +1 -1
- package/dist/utils/index.cjs +19 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +19 -4
- package/dist/utils/index.d.ts +19 -4
- package/dist/utils/index.mjs +11 -3
- package/package.json +1 -1
- package/dist/chunk-5AAYX364.mjs.map +0 -1
- package/dist/chunk-DV3K3JDE.mjs.map +0 -1
- package/dist/chunk-HKTBJOB7.mjs.map +0 -1
- package/dist/chunk-UWMZ6VLV.mjs.map +0 -1
- /package/dist/{chunk-PBW5K54C.mjs.map → chunk-LEAXY4DI.mjs.map} +0 -0
- /package/dist/{chunk-KMS64DE2.mjs.map → chunk-LHKJJ7SO.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, c as CategoryColorType } 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, c as CategoryColorType } from '../global-EGbrTMk6.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, c as CategoryColorType } 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, c as CategoryColorType } from '../global-LtQJ2t6c.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -42,14 +42,14 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-LEAXY4DI.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-ZECVZFK3.mjs";
|
|
50
50
|
import "../chunk-RE4NZPYY.mjs";
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-J72IMZ6E.mjs";
|
|
52
|
+
import "../chunk-WWAHS5R2.mjs";
|
|
53
53
|
import "../chunk-RAYUJODN.mjs";
|
|
54
54
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
55
55
|
import "../chunk-7DQBUZXY.mjs";
|
|
@@ -33,6 +33,10 @@ type ResourceRelationField = {
|
|
|
33
33
|
relationId: string;
|
|
34
34
|
relationDates: RelationDate[];
|
|
35
35
|
};
|
|
36
|
+
interface RelationHistoryType extends RelationType {
|
|
37
|
+
vendorName: string;
|
|
38
|
+
eventName: string;
|
|
39
|
+
}
|
|
36
40
|
|
|
37
41
|
type StallType = {
|
|
38
42
|
label: string;
|
|
@@ -899,4 +903,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
|
899
903
|
skip?: boolean;
|
|
900
904
|
}
|
|
901
905
|
|
|
902
|
-
export { type
|
|
906
|
+
export { type CouponOption as $, type CreateEventInfoFormData as A, type BaseResourceTypeFormData as B, type Category as C, type PostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreatePostFormData as H, type CouponDefaultsFormData as I, type CreateCouponFormData as J, type Region as K, type LocationType as L, type MutationResponse as M, type BaseGameMap as N, type OptionItem as O, type PosterUsageType as P, type BaseGameType as Q, type RefundPolicy as R, type StallType as S, type BaseResourceType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponCodeType as W, type CouponDataProductsType as X, type CouponDataType as Y, type CouponMarketPassportOption as Z, type CouponMarketVisitOption as _, type FormDateField as a, type TermsAgreement as a$, type CouponParticipantUserType as a0, type CouponPurchaseOption as a1, type CouponVendorProduct as a2, type CreateFormData as a3, type DailyClueBaseGame as a4, type DailyClueGameData as a5, type DateTimeFormValue as a6, type DateTimeType as a7, type DateTimeWithPriceFormValue as a8, type DateTimeWithPriceType as a9, type PostContentGame as aA, type PostContentImage as aB, type PostContentList as aC, type PostContentTextarea as aD, type PostContentType as aE, type PostContentVideo as aF, type PostFileInput as aG, type PostListFilter as aH, type PostResource as aI, type ProductCoupon 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 ResourceRelationField as aW, type SocialMediaType as aX, type SocialShareResourceType as aY, type Subcategory as aZ, type SubcategoryItems as a_, type DeviceInfo as aa, EnumCouponListType as ab, EnumCouponQualificationType as ac, EnumGameStatus as ad, EnumGameType as ae, EnumPostContentType as af, EnumPostType as ag, type EventListFilter as ah, type EventStatusType as ai, type GameDate as aj, type GameHistory as ak, type GamePlacement as al, type GamePlacementClue as am, type GameType as an, type GeocodeLocation as ao, type GlobalGameData as ap, type ImageObjectType as aq, type LocationGeoType as ar, type Nullable as as, type OwnerType as at, PROMO_CODE_PREFIX as au, type PaginationOptions as av, type PartnerListFilter as aw, type PaymentInfoType as ax, type PostContentData as ay, type PostContentFormData as az, type Requirement as b, type UnregisteredVendorInvitationType as b0, type UserListFilter as b1, type VendorAttributes as b2, type VendorAvailability as b3, type VendorCalendarData as b4, type VendorDowngradeSnapshot as b5, type VendorListFilter as b6, type VendorProductList as b7, gameScreenIdentifierList as b8, gameTypeToDisplayName as b9, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type RelationHistoryType as g, type ResourceConnectionsType as h, type UnregisteredVendorType as i, type VendorType as j, type VendorInfoType as k, type MyPendingVendorClaim as l, type UserLicenceType as m, type PostType as n, type GameLeaderboard as o, type CouponType as p, type CouponTypeList as q, type VendorFormData as r, type CreateVendorFormData as s, type VendorInfoFormData as t, type CreateVendorInfoFormData as u, type UnregisteredVendorFormData as v, type CreateUnregisteredVendorFormData as w, type EventFormData as x, type CreateEventFormData as y, type EventInfoFormData as z };
|
|
@@ -33,6 +33,10 @@ type ResourceRelationField = {
|
|
|
33
33
|
relationId: string;
|
|
34
34
|
relationDates: RelationDate[];
|
|
35
35
|
};
|
|
36
|
+
interface RelationHistoryType extends RelationType {
|
|
37
|
+
vendorName: string;
|
|
38
|
+
eventName: string;
|
|
39
|
+
}
|
|
36
40
|
|
|
37
41
|
type StallType = {
|
|
38
42
|
label: string;
|
|
@@ -899,4 +903,4 @@ interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
|
899
903
|
skip?: boolean;
|
|
900
904
|
}
|
|
901
905
|
|
|
902
|
-
export { type
|
|
906
|
+
export { type CouponOption as $, type CreateEventInfoFormData as A, type BaseResourceTypeFormData as B, type Category as C, type PostFormData as D, type EventType as E, type FormField as F, type GameDocType as G, type CreatePostFormData as H, type CouponDefaultsFormData as I, type CreateCouponFormData as J, type Region as K, type LocationType as L, type MutationResponse as M, type BaseGameMap as N, type OptionItem as O, type PosterUsageType as P, type BaseGameType as Q, type RefundPolicy as R, type StallType as S, type BaseResourceType as T, type UseGetResourcesByRegionOptions as U, type VendorClaimTokenValidation as V, type CouponCodeType as W, type CouponDataProductsType as X, type CouponDataType as Y, type CouponMarketPassportOption as Z, type CouponMarketVisitOption as _, type FormDateField as a, type TermsAgreement as a$, type CouponParticipantUserType as a0, type CouponPurchaseOption as a1, type CouponVendorProduct as a2, type CreateFormData as a3, type DailyClueBaseGame as a4, type DailyClueGameData as a5, type DateTimeFormValue as a6, type DateTimeType as a7, type DateTimeWithPriceFormValue as a8, type DateTimeWithPriceType as a9, type PostContentGame as aA, type PostContentImage as aB, type PostContentList as aC, type PostContentTextarea as aD, type PostContentType as aE, type PostContentVideo as aF, type PostFileInput as aG, type PostListFilter as aH, type PostResource as aI, type ProductCoupon 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 ResourceRelationField as aW, type SocialMediaType as aX, type SocialShareResourceType as aY, type Subcategory as aZ, type SubcategoryItems as a_, type DeviceInfo as aa, EnumCouponListType as ab, EnumCouponQualificationType as ac, EnumGameStatus as ad, EnumGameType as ae, EnumPostContentType as af, EnumPostType as ag, type EventListFilter as ah, type EventStatusType as ai, type GameDate as aj, type GameHistory as ak, type GamePlacement as al, type GamePlacementClue as am, type GameType as an, type GeocodeLocation as ao, type GlobalGameData as ap, type ImageObjectType as aq, type LocationGeoType as ar, type Nullable as as, type OwnerType as at, PROMO_CODE_PREFIX as au, type PaginationOptions as av, type PartnerListFilter as aw, type PaymentInfoType as ax, type PostContentData as ay, type PostContentFormData as az, type Requirement as b, type UnregisteredVendorInvitationType as b0, type UserListFilter as b1, type VendorAttributes as b2, type VendorAvailability as b3, type VendorCalendarData as b4, type VendorDowngradeSnapshot as b5, type VendorListFilter as b6, type VendorProductList as b7, gameScreenIdentifierList as b8, gameTypeToDisplayName as b9, type CategoryColorType as c, type EventListItemType as d, type EventInfoType as e, type RelationType as f, type RelationHistoryType as g, type ResourceConnectionsType as h, type UnregisteredVendorType as i, type VendorType as j, type VendorInfoType as k, type MyPendingVendorClaim as l, type UserLicenceType as m, type PostType as n, type GameLeaderboard as o, type CouponType as p, type CouponTypeList as q, type VendorFormData as r, type CreateVendorFormData as s, type VendorInfoFormData as t, type CreateVendorInfoFormData as u, type UnregisteredVendorFormData as v, type CreateUnregisteredVendorFormData as w, type EventFormData as x, type CreateEventFormData as y, type EventInfoFormData as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -23,11 +23,9 @@ __export(graphql_exports, {
|
|
|
23
23
|
ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
24
24
|
AD_BOOKING_FIELDS_FRAGMENT: () => AD_BOOKING_FIELDS_FRAGMENT,
|
|
25
25
|
APPROVE_AD_BOOKING_MUTATION: () => APPROVE_AD_BOOKING_MUTATION,
|
|
26
|
-
CLAIM_RESERVED_AD_DAY_MUTATION: () => CLAIM_RESERVED_AD_DAY_MUTATION,
|
|
27
26
|
CREATE_AD_CHECKOUT_MUTATION: () => CREATE_AD_CHECKOUT_MUTATION,
|
|
28
27
|
GET_AD_BOOKING: () => GET_AD_BOOKING,
|
|
29
28
|
GET_AD_DAILY_PRICES: () => GET_AD_DAILY_PRICES,
|
|
30
|
-
GET_AD_DAY_AVAILABILITY: () => GET_AD_DAY_AVAILABILITY,
|
|
31
29
|
GET_AD_SETTINGS: () => GET_AD_SETTINGS,
|
|
32
30
|
GET_EVENT: () => GET_EVENT,
|
|
33
31
|
GET_EVENTS: () => GET_EVENTS,
|
|
@@ -50,6 +48,7 @@ __export(graphql_exports, {
|
|
|
50
48
|
GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
|
|
51
49
|
GET_VENDOR_INFO: () => GET_VENDOR_INFO,
|
|
52
50
|
MY_PENDING_VENDOR_CLAIM: () => MY_PENDING_VENDOR_CLAIM,
|
|
51
|
+
RECORD_AD_CLICK_MUTATION: () => RECORD_AD_CLICK_MUTATION,
|
|
53
52
|
RECORD_AD_IMPRESSION_MUTATION: () => RECORD_AD_IMPRESSION_MUTATION,
|
|
54
53
|
UPDATE_AD_DAILY_PRICE_MUTATION: () => UPDATE_AD_DAILY_PRICE_MUTATION,
|
|
55
54
|
UPDATE_AD_SETTINGS_MUTATION: () => UPDATE_AD_SETTINGS_MUTATION,
|
|
@@ -167,6 +166,8 @@ __export(graphql_exports, {
|
|
|
167
166
|
useMarkNotificationRead: () => useMarkNotificationRead,
|
|
168
167
|
useMyPendingVendorClaim: () => useMyPendingVendorClaim,
|
|
169
168
|
usePaginatedList: () => usePaginatedList,
|
|
169
|
+
useRecordAdClick: () => useRecordAdClick,
|
|
170
|
+
useRecordAdImpression: () => useRecordAdImpression,
|
|
170
171
|
useRedeemAffiliateReward: () => useRedeemAffiliateReward,
|
|
171
172
|
useRedeemReward: () => useRedeemReward,
|
|
172
173
|
useRefreshImpersonation: () => useRefreshImpersonation,
|
|
@@ -1614,6 +1615,25 @@ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
|
|
|
1614
1615
|
}
|
|
1615
1616
|
${RELATION_DATES_FRAGMENT}
|
|
1616
1617
|
`;
|
|
1618
|
+
var RELATION_HISTORY_FIELDS_FRAGMENT = import_client11.gql`
|
|
1619
|
+
fragment RelationHistoryFields on RelationHistoryType {
|
|
1620
|
+
_id
|
|
1621
|
+
active
|
|
1622
|
+
chatId
|
|
1623
|
+
createdAt
|
|
1624
|
+
eventId
|
|
1625
|
+
eventName
|
|
1626
|
+
lastUpdateBy
|
|
1627
|
+
relationDates {
|
|
1628
|
+
...RelationDates
|
|
1629
|
+
}
|
|
1630
|
+
relationType
|
|
1631
|
+
updatedAt
|
|
1632
|
+
vendorId
|
|
1633
|
+
vendorName
|
|
1634
|
+
}
|
|
1635
|
+
${RELATION_DATES_FRAGMENT}
|
|
1636
|
+
`;
|
|
1617
1637
|
var GET_RELATION = import_client11.gql`
|
|
1618
1638
|
query getRelation($_id: ID!) {
|
|
1619
1639
|
relation(_id: $_id) {
|
|
@@ -1625,10 +1645,10 @@ var GET_RELATION = import_client11.gql`
|
|
|
1625
1645
|
var GET_RELATION_HISTORY = import_client11.gql`
|
|
1626
1646
|
query getRelationHistory($_id: ID!) {
|
|
1627
1647
|
relationHistory(_id: $_id) {
|
|
1628
|
-
...
|
|
1648
|
+
...RelationHistoryFields
|
|
1629
1649
|
}
|
|
1630
1650
|
}
|
|
1631
|
-
${
|
|
1651
|
+
${RELATION_HISTORY_FIELDS_FRAGMENT}
|
|
1632
1652
|
`;
|
|
1633
1653
|
var GET_RELATION_HISTORIES = import_client11.gql`
|
|
1634
1654
|
query getRelationHistories(
|
|
@@ -1636,10 +1656,10 @@ var GET_RELATION_HISTORIES = import_client11.gql`
|
|
|
1636
1656
|
$resourceType: ResourceTypeEnum!
|
|
1637
1657
|
) {
|
|
1638
1658
|
relationHistories(resourceId: $resourceId, resourceType: $resourceType) {
|
|
1639
|
-
...
|
|
1659
|
+
...RelationHistoryFields
|
|
1640
1660
|
}
|
|
1641
1661
|
}
|
|
1642
|
-
${
|
|
1662
|
+
${RELATION_HISTORY_FIELDS_FRAGMENT}
|
|
1643
1663
|
`;
|
|
1644
1664
|
var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
|
|
1645
1665
|
query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
|
|
@@ -3624,7 +3644,7 @@ var useGetUsersByPromoCode = (promoCode, options) => {
|
|
|
3624
3644
|
};
|
|
3625
3645
|
|
|
3626
3646
|
// src/graphql/hooks/ad/hooksMutation.ts
|
|
3627
|
-
var
|
|
3647
|
+
var import_client48 = require("@apollo/client");
|
|
3628
3648
|
|
|
3629
3649
|
// src/graphql/mutations/ad.ts
|
|
3630
3650
|
var import_client45 = require("@apollo/client");
|
|
@@ -3635,10 +3655,8 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
|
|
|
3635
3655
|
fragment AdFields on AdType {
|
|
3636
3656
|
_id
|
|
3637
3657
|
active
|
|
3638
|
-
clicks
|
|
3639
3658
|
createdAt
|
|
3640
3659
|
end
|
|
3641
|
-
impressions
|
|
3642
3660
|
resource {
|
|
3643
3661
|
adDescription
|
|
3644
3662
|
adImage
|
|
@@ -3719,87 +3737,12 @@ var DELETE_AD_MUTATION = import_client45.gql`
|
|
|
3719
3737
|
}
|
|
3720
3738
|
`;
|
|
3721
3739
|
|
|
3722
|
-
// src/graphql/
|
|
3723
|
-
var useCreateAd = () => {
|
|
3724
|
-
const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
|
|
3725
|
-
awaitRefetchQueries: true,
|
|
3726
|
-
refetchQueries: [{ query: GET_ADS }]
|
|
3727
|
-
});
|
|
3728
|
-
return {
|
|
3729
|
-
createAd,
|
|
3730
|
-
error,
|
|
3731
|
-
loading
|
|
3732
|
-
};
|
|
3733
|
-
};
|
|
3734
|
-
var useUpdateAd = () => {
|
|
3735
|
-
const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
|
|
3736
|
-
awaitRefetchQueries: true,
|
|
3737
|
-
refetchQueries: [{ query: GET_ADS }]
|
|
3738
|
-
});
|
|
3739
|
-
return {
|
|
3740
|
-
error,
|
|
3741
|
-
loading,
|
|
3742
|
-
updateAd
|
|
3743
|
-
};
|
|
3744
|
-
};
|
|
3745
|
-
var useDeleteAd = () => {
|
|
3746
|
-
const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
|
|
3747
|
-
awaitRefetchQueries: true,
|
|
3748
|
-
refetchQueries: [{ query: GET_ADS }]
|
|
3749
|
-
});
|
|
3750
|
-
return {
|
|
3751
|
-
deleteAd,
|
|
3752
|
-
error,
|
|
3753
|
-
loading
|
|
3754
|
-
};
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
// src/graphql/hooks/ad/hooksQuery.ts
|
|
3740
|
+
// src/graphql/mutations/adBooking.ts
|
|
3758
3741
|
var import_client47 = require("@apollo/client");
|
|
3759
|
-
var useGetAds = () => {
|
|
3760
|
-
const { data, loading, error, refetch } = (0, import_client47.useQuery)(
|
|
3761
|
-
GET_ADS,
|
|
3762
|
-
{
|
|
3763
|
-
fetchPolicy: "no-cache"
|
|
3764
|
-
}
|
|
3765
|
-
);
|
|
3766
|
-
return {
|
|
3767
|
-
ads: data?.ads || [],
|
|
3768
|
-
error,
|
|
3769
|
-
loading,
|
|
3770
|
-
refetch
|
|
3771
|
-
};
|
|
3772
|
-
};
|
|
3773
|
-
var useGetAd = (_id) => {
|
|
3774
|
-
const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
|
|
3775
|
-
fetchPolicy: "no-cache",
|
|
3776
|
-
skip: !_id || _id === "",
|
|
3777
|
-
variables: { _id }
|
|
3778
|
-
});
|
|
3779
|
-
return {
|
|
3780
|
-
ad: data?.ad,
|
|
3781
|
-
error,
|
|
3782
|
-
loading,
|
|
3783
|
-
refetch
|
|
3784
|
-
};
|
|
3785
|
-
};
|
|
3786
|
-
var useGetAdsByRegion = (region, platform, showOn) => {
|
|
3787
|
-
const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
|
|
3788
|
-
fetchPolicy: "no-cache",
|
|
3789
|
-
skip: !region || region === "",
|
|
3790
|
-
variables: { platform, region, showOn }
|
|
3791
|
-
});
|
|
3792
|
-
return {
|
|
3793
|
-
adsByRegion: data?.adsByRegion || [],
|
|
3794
|
-
error,
|
|
3795
|
-
loading,
|
|
3796
|
-
refetch
|
|
3797
|
-
};
|
|
3798
|
-
};
|
|
3799
3742
|
|
|
3800
3743
|
// src/graphql/queries/adBooking.ts
|
|
3801
|
-
var
|
|
3802
|
-
var AD_BOOKING_FIELDS_FRAGMENT =
|
|
3744
|
+
var import_client46 = require("@apollo/client");
|
|
3745
|
+
var AD_BOOKING_FIELDS_FRAGMENT = import_client46.gql`
|
|
3803
3746
|
fragment AdBookingFields on AdBookingGraphQLType {
|
|
3804
3747
|
_id
|
|
3805
3748
|
adId
|
|
@@ -3825,21 +3768,7 @@ var AD_BOOKING_FIELDS_FRAGMENT = import_client48.gql`
|
|
|
3825
3768
|
unitAmount
|
|
3826
3769
|
}
|
|
3827
3770
|
`;
|
|
3828
|
-
var
|
|
3829
|
-
query getAdDayAvailability(
|
|
3830
|
-
$region: String!
|
|
3831
|
-
$dayKey: String!
|
|
3832
|
-
$placement: AdShowOnEnum!
|
|
3833
|
-
) {
|
|
3834
|
-
adDayAvailability(region: $region, dayKey: $dayKey, placement: $placement) {
|
|
3835
|
-
currency
|
|
3836
|
-
paidAvailable
|
|
3837
|
-
reservedAvailable
|
|
3838
|
-
unitAmount
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
`;
|
|
3842
|
-
var GET_MY_AD_BOOKINGS = import_client48.gql`
|
|
3771
|
+
var GET_MY_AD_BOOKINGS = import_client46.gql`
|
|
3843
3772
|
query getMyAdBookings {
|
|
3844
3773
|
myAdBookings {
|
|
3845
3774
|
...AdBookingFields
|
|
@@ -3847,7 +3776,7 @@ var GET_MY_AD_BOOKINGS = import_client48.gql`
|
|
|
3847
3776
|
}
|
|
3848
3777
|
${AD_BOOKING_FIELDS_FRAGMENT}
|
|
3849
3778
|
`;
|
|
3850
|
-
var GET_AD_BOOKING =
|
|
3779
|
+
var GET_AD_BOOKING = import_client46.gql`
|
|
3851
3780
|
query getAdBooking($id: ID!) {
|
|
3852
3781
|
adBooking(id: $id) {
|
|
3853
3782
|
...AdBookingFields
|
|
@@ -3855,7 +3784,7 @@ var GET_AD_BOOKING = import_client48.gql`
|
|
|
3855
3784
|
}
|
|
3856
3785
|
${AD_BOOKING_FIELDS_FRAGMENT}
|
|
3857
3786
|
`;
|
|
3858
|
-
var GET_PENDING_AD_BOOKINGS =
|
|
3787
|
+
var GET_PENDING_AD_BOOKINGS = import_client46.gql`
|
|
3859
3788
|
query getPendingAdBookings {
|
|
3860
3789
|
pendingAdBookings {
|
|
3861
3790
|
...AdBookingFields
|
|
@@ -3863,7 +3792,7 @@ var GET_PENDING_AD_BOOKINGS = import_client48.gql`
|
|
|
3863
3792
|
}
|
|
3864
3793
|
${AD_BOOKING_FIELDS_FRAGMENT}
|
|
3865
3794
|
`;
|
|
3866
|
-
var GET_AD_DAILY_PRICES =
|
|
3795
|
+
var GET_AD_DAILY_PRICES = import_client46.gql`
|
|
3867
3796
|
query getAdDailyPrices {
|
|
3868
3797
|
adDailyPrices {
|
|
3869
3798
|
active
|
|
@@ -3874,21 +3803,16 @@ var GET_AD_DAILY_PRICES = import_client48.gql`
|
|
|
3874
3803
|
}
|
|
3875
3804
|
}
|
|
3876
3805
|
`;
|
|
3877
|
-
var GET_AD_SETTINGS =
|
|
3806
|
+
var GET_AD_SETTINGS = import_client46.gql`
|
|
3878
3807
|
query getAdSettings {
|
|
3879
3808
|
adSettings {
|
|
3880
3809
|
approvalRequired
|
|
3881
|
-
minAppearancesPerHour
|
|
3882
|
-
paidSlotsPerPlacement
|
|
3883
|
-
reservedSlotsPerPlacement
|
|
3884
|
-
rotationSeconds
|
|
3885
3810
|
}
|
|
3886
3811
|
}
|
|
3887
3812
|
`;
|
|
3888
3813
|
|
|
3889
3814
|
// src/graphql/mutations/adBooking.ts
|
|
3890
|
-
var
|
|
3891
|
-
var CREATE_AD_CHECKOUT_MUTATION = import_client49.gql`
|
|
3815
|
+
var CREATE_AD_CHECKOUT_MUTATION = import_client47.gql`
|
|
3892
3816
|
mutation createAdCheckout($input: CreateAdCheckoutInputGraphQLType!) {
|
|
3893
3817
|
createAdCheckout(input: $input) {
|
|
3894
3818
|
data {
|
|
@@ -3900,18 +3824,7 @@ var CREATE_AD_CHECKOUT_MUTATION = import_client49.gql`
|
|
|
3900
3824
|
}
|
|
3901
3825
|
}
|
|
3902
3826
|
`;
|
|
3903
|
-
var
|
|
3904
|
-
mutation claimReservedAdDay($input: ClaimReservedAdDayInputType!) {
|
|
3905
|
-
claimReservedAdDay(input: $input) {
|
|
3906
|
-
data {
|
|
3907
|
-
...AdBookingFields
|
|
3908
|
-
}
|
|
3909
|
-
message
|
|
3910
|
-
}
|
|
3911
|
-
}
|
|
3912
|
-
${AD_BOOKING_FIELDS_FRAGMENT}
|
|
3913
|
-
`;
|
|
3914
|
-
var APPROVE_AD_BOOKING_MUTATION = import_client49.gql`
|
|
3827
|
+
var APPROVE_AD_BOOKING_MUTATION = import_client47.gql`
|
|
3915
3828
|
mutation approveAdBooking($bookingId: ID!, $approved: Boolean!) {
|
|
3916
3829
|
approveAdBooking(bookingId: $bookingId, approved: $approved) {
|
|
3917
3830
|
data {
|
|
@@ -3922,7 +3835,7 @@ var APPROVE_AD_BOOKING_MUTATION = import_client49.gql`
|
|
|
3922
3835
|
}
|
|
3923
3836
|
${AD_BOOKING_FIELDS_FRAGMENT}
|
|
3924
3837
|
`;
|
|
3925
|
-
var UPDATE_AD_DAILY_PRICE_MUTATION =
|
|
3838
|
+
var UPDATE_AD_DAILY_PRICE_MUTATION = import_client47.gql`
|
|
3926
3839
|
mutation updateAdDailyPrice($input: UpdateAdDailyPriceInputGraphQLType!) {
|
|
3927
3840
|
updateAdDailyPrice(input: $input) {
|
|
3928
3841
|
data {
|
|
@@ -3936,21 +3849,17 @@ var UPDATE_AD_DAILY_PRICE_MUTATION = import_client49.gql`
|
|
|
3936
3849
|
}
|
|
3937
3850
|
}
|
|
3938
3851
|
`;
|
|
3939
|
-
var UPDATE_AD_SETTINGS_MUTATION =
|
|
3852
|
+
var UPDATE_AD_SETTINGS_MUTATION = import_client47.gql`
|
|
3940
3853
|
mutation updateAdSettings($input: UpdateAdSettingsInputGraphQLType!) {
|
|
3941
3854
|
updateAdSettings(input: $input) {
|
|
3942
3855
|
data {
|
|
3943
3856
|
approvalRequired
|
|
3944
|
-
minAppearancesPerHour
|
|
3945
|
-
paidSlotsPerPlacement
|
|
3946
|
-
reservedSlotsPerPlacement
|
|
3947
|
-
rotationSeconds
|
|
3948
3857
|
}
|
|
3949
3858
|
message
|
|
3950
3859
|
}
|
|
3951
3860
|
}
|
|
3952
3861
|
`;
|
|
3953
|
-
var RECORD_AD_IMPRESSION_MUTATION =
|
|
3862
|
+
var RECORD_AD_IMPRESSION_MUTATION = import_client47.gql`
|
|
3954
3863
|
mutation recordAdImpression($input: RecordAdImpressionInputGraphQLType!) {
|
|
3955
3864
|
recordAdImpression(input: $input) {
|
|
3956
3865
|
data
|
|
@@ -3958,6 +3867,108 @@ var RECORD_AD_IMPRESSION_MUTATION = import_client49.gql`
|
|
|
3958
3867
|
}
|
|
3959
3868
|
}
|
|
3960
3869
|
`;
|
|
3870
|
+
var RECORD_AD_CLICK_MUTATION = import_client47.gql`
|
|
3871
|
+
mutation recordAdClick($input: RecordAdClickInputGraphQLType!) {
|
|
3872
|
+
recordAdClick(input: $input) {
|
|
3873
|
+
data
|
|
3874
|
+
message
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
`;
|
|
3878
|
+
|
|
3879
|
+
// src/graphql/hooks/ad/hooksMutation.ts
|
|
3880
|
+
var useCreateAd = () => {
|
|
3881
|
+
const [createAd, { loading, error }] = (0, import_client48.useMutation)(CREATE_AD_MUTATION, {
|
|
3882
|
+
awaitRefetchQueries: true,
|
|
3883
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
3884
|
+
});
|
|
3885
|
+
return {
|
|
3886
|
+
createAd,
|
|
3887
|
+
error,
|
|
3888
|
+
loading
|
|
3889
|
+
};
|
|
3890
|
+
};
|
|
3891
|
+
var useUpdateAd = () => {
|
|
3892
|
+
const [updateAd, { loading, error }] = (0, import_client48.useMutation)(UPDATE_AD_MUTATION, {
|
|
3893
|
+
awaitRefetchQueries: true,
|
|
3894
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
3895
|
+
});
|
|
3896
|
+
return {
|
|
3897
|
+
error,
|
|
3898
|
+
loading,
|
|
3899
|
+
updateAd
|
|
3900
|
+
};
|
|
3901
|
+
};
|
|
3902
|
+
var useDeleteAd = () => {
|
|
3903
|
+
const [deleteAd, { loading, error }] = (0, import_client48.useMutation)(DELETE_AD_MUTATION, {
|
|
3904
|
+
awaitRefetchQueries: true,
|
|
3905
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
3906
|
+
});
|
|
3907
|
+
return {
|
|
3908
|
+
deleteAd,
|
|
3909
|
+
error,
|
|
3910
|
+
loading
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
var useRecordAdImpression = () => {
|
|
3914
|
+
const [recordAdImpression, { loading, error }] = (0, import_client48.useMutation)(RECORD_AD_IMPRESSION_MUTATION);
|
|
3915
|
+
return {
|
|
3916
|
+
error,
|
|
3917
|
+
loading,
|
|
3918
|
+
recordAdImpression
|
|
3919
|
+
};
|
|
3920
|
+
};
|
|
3921
|
+
var useRecordAdClick = () => {
|
|
3922
|
+
const [recordAdClick, { loading, error }] = (0, import_client48.useMutation)(RECORD_AD_CLICK_MUTATION);
|
|
3923
|
+
return {
|
|
3924
|
+
error,
|
|
3925
|
+
loading,
|
|
3926
|
+
recordAdClick
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3929
|
+
|
|
3930
|
+
// src/graphql/hooks/ad/hooksQuery.ts
|
|
3931
|
+
var import_client49 = require("@apollo/client");
|
|
3932
|
+
var useGetAds = () => {
|
|
3933
|
+
const { data, loading, error, refetch } = (0, import_client49.useQuery)(
|
|
3934
|
+
GET_ADS,
|
|
3935
|
+
{
|
|
3936
|
+
fetchPolicy: "no-cache"
|
|
3937
|
+
}
|
|
3938
|
+
);
|
|
3939
|
+
return {
|
|
3940
|
+
ads: data?.ads || [],
|
|
3941
|
+
error,
|
|
3942
|
+
loading,
|
|
3943
|
+
refetch
|
|
3944
|
+
};
|
|
3945
|
+
};
|
|
3946
|
+
var useGetAd = (_id) => {
|
|
3947
|
+
const { data, loading, error, refetch } = (0, import_client49.useQuery)(GET_AD, {
|
|
3948
|
+
fetchPolicy: "no-cache",
|
|
3949
|
+
skip: !_id || _id === "",
|
|
3950
|
+
variables: { _id }
|
|
3951
|
+
});
|
|
3952
|
+
return {
|
|
3953
|
+
ad: data?.ad,
|
|
3954
|
+
error,
|
|
3955
|
+
loading,
|
|
3956
|
+
refetch
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
var useGetAdsByRegion = (region, platform, showOn) => {
|
|
3960
|
+
const { data, loading, error, refetch } = (0, import_client49.useQuery)(GET_ADS_BY_REGION, {
|
|
3961
|
+
fetchPolicy: "no-cache",
|
|
3962
|
+
skip: !region || region === "",
|
|
3963
|
+
variables: { platform, region, showOn }
|
|
3964
|
+
});
|
|
3965
|
+
return {
|
|
3966
|
+
adsByRegion: data?.adsByRegion || [],
|
|
3967
|
+
error,
|
|
3968
|
+
loading,
|
|
3969
|
+
refetch
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3961
3972
|
|
|
3962
3973
|
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
3963
3974
|
var import_client51 = require("@apollo/client");
|
|
@@ -5702,11 +5713,9 @@ function usePaginatedList({
|
|
|
5702
5713
|
ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
5703
5714
|
AD_BOOKING_FIELDS_FRAGMENT,
|
|
5704
5715
|
APPROVE_AD_BOOKING_MUTATION,
|
|
5705
|
-
CLAIM_RESERVED_AD_DAY_MUTATION,
|
|
5706
5716
|
CREATE_AD_CHECKOUT_MUTATION,
|
|
5707
5717
|
GET_AD_BOOKING,
|
|
5708
5718
|
GET_AD_DAILY_PRICES,
|
|
5709
|
-
GET_AD_DAY_AVAILABILITY,
|
|
5710
5719
|
GET_AD_SETTINGS,
|
|
5711
5720
|
GET_EVENT,
|
|
5712
5721
|
GET_EVENTS,
|
|
@@ -5729,6 +5738,7 @@ function usePaginatedList({
|
|
|
5729
5738
|
GET_VENDOR_BY_SLUG,
|
|
5730
5739
|
GET_VENDOR_INFO,
|
|
5731
5740
|
MY_PENDING_VENDOR_CLAIM,
|
|
5741
|
+
RECORD_AD_CLICK_MUTATION,
|
|
5732
5742
|
RECORD_AD_IMPRESSION_MUTATION,
|
|
5733
5743
|
UPDATE_AD_DAILY_PRICE_MUTATION,
|
|
5734
5744
|
UPDATE_AD_SETTINGS_MUTATION,
|
|
@@ -5846,6 +5856,8 @@ function usePaginatedList({
|
|
|
5846
5856
|
useMarkNotificationRead,
|
|
5847
5857
|
useMyPendingVendorClaim,
|
|
5848
5858
|
usePaginatedList,
|
|
5859
|
+
useRecordAdClick,
|
|
5860
|
+
useRecordAdImpression,
|
|
5849
5861
|
useRedeemAffiliateReward,
|
|
5850
5862
|
useRedeemReward,
|
|
5851
5863
|
useRefreshImpersonation,
|