@timardex/cluemart-shared 1.5.802 → 1.5.804
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/{chunk-E7ZEBZ3O.mjs → chunk-4TP57ZL7.mjs} +2 -2
- package/dist/{chunk-E7ZEBZ3O.mjs.map → chunk-4TP57ZL7.mjs.map} +1 -1
- package/dist/{chunk-3NDZHCTN.mjs → chunk-G76ILLVZ.mjs} +25 -2
- package/dist/{chunk-3NDZHCTN.mjs.map → chunk-G76ILLVZ.mjs.map} +1 -1
- package/dist/{chunk-VGOXRE34.mjs → chunk-GJO7X2Y4.mjs} +2 -2
- package/dist/{chunk-6633VMDB.mjs → chunk-RITKFYRI.mjs} +2 -2
- package/dist/{chunk-JD7CKX4S.mjs → chunk-VKOL5CVW.mjs} +2 -2
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +24 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -1
- package/dist/graphql/index.d.ts +6 -1
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +8 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.mjs +24 -1
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +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/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-VGOXRE34.mjs.map → chunk-GJO7X2Y4.mjs.map} +0 -0
- /package/dist/{chunk-6633VMDB.mjs.map → chunk-RITKFYRI.mjs.map} +0 -0
- /package/dist/{chunk-JD7CKX4S.mjs.map → chunk-VKOL5CVW.mjs.map} +0 -0
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-GJO7X2Y4.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-RITKFYRI.mjs";
|
|
50
50
|
import "../chunk-YVIZ4AWF.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-4TP57ZL7.mjs";
|
|
52
52
|
import "../chunk-LETM2YHF.mjs";
|
|
53
53
|
export {
|
|
54
54
|
availableCategories,
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -134,6 +134,7 @@ __export(graphql_exports, {
|
|
|
134
134
|
useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
|
|
135
135
|
useMarkChatMessagesSeen: () => useMarkChatMessagesSeen,
|
|
136
136
|
useMarkNotificationRead: () => useMarkNotificationRead,
|
|
137
|
+
useRedeemAffiliateReward: () => useRedeemAffiliateReward,
|
|
137
138
|
useRedeemReward: () => useRedeemReward,
|
|
138
139
|
useRefreshToken: () => useRefreshToken,
|
|
139
140
|
useRegister: () => useRegister,
|
|
@@ -5394,6 +5395,14 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
|
|
|
5394
5395
|
deleteAffiliate(_id: $_id)
|
|
5395
5396
|
}
|
|
5396
5397
|
`;
|
|
5398
|
+
var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
|
|
5399
|
+
mutation redeemAffiliateReward($affiliateId: ID!) {
|
|
5400
|
+
redeemAffiliateReward(affiliateId: $affiliateId) {
|
|
5401
|
+
...AffiliateFields
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5405
|
+
`;
|
|
5397
5406
|
|
|
5398
5407
|
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
5399
5408
|
var useUpdateAffiliateDetails = () => {
|
|
@@ -5420,6 +5429,20 @@ var useDeleteAffiliate = () => {
|
|
|
5420
5429
|
);
|
|
5421
5430
|
return { deleteAffiliate, error, loading };
|
|
5422
5431
|
};
|
|
5432
|
+
var useRedeemAffiliateReward = () => {
|
|
5433
|
+
const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(
|
|
5434
|
+
REDEEM_AFFILIATE_REWARD_MUTATION,
|
|
5435
|
+
{
|
|
5436
|
+
awaitRefetchQueries: true,
|
|
5437
|
+
refetchQueries: (mutationResult) => {
|
|
5438
|
+
const affiliateId = mutationResult?.data?.redeemAffiliateReward?._id;
|
|
5439
|
+
if (!affiliateId) return [];
|
|
5440
|
+
return [{ query: GET_AFFILIATE, variables: { _id: affiliateId } }];
|
|
5441
|
+
}
|
|
5442
|
+
}
|
|
5443
|
+
);
|
|
5444
|
+
return { error, loading, redeemAffiliateReward };
|
|
5445
|
+
};
|
|
5423
5446
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5424
5447
|
0 && (module.exports = {
|
|
5425
5448
|
GET_EVENT,
|
|
@@ -5536,6 +5559,7 @@ var useDeleteAffiliate = () => {
|
|
|
5536
5559
|
useMarkAllNotificationsRead,
|
|
5537
5560
|
useMarkChatMessagesSeen,
|
|
5538
5561
|
useMarkNotificationRead,
|
|
5562
|
+
useRedeemAffiliateReward,
|
|
5539
5563
|
useRedeemReward,
|
|
5540
5564
|
useRefreshToken,
|
|
5541
5565
|
useRegister,
|