@timardex/cluemart-shared 1.7.57 → 1.7.59
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-wW8fzT4I.d.ts → ad-BXYzElOY.d.ts} +2 -8
- package/dist/{ad-CCuXkAAt.d.mts → ad-CaNdaVzA.d.mts} +2 -8
- package/dist/{affiliate-BSWxq9Uv.d.ts → affiliate-C4kUR-RF.d.ts} +1 -1
- package/dist/{affiliate-CaP_IFPL.d.mts → affiliate-KIMlFQc0.d.mts} +1 -1
- package/dist/auth/index.cjs +1 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-VBQ5RF7L.mjs → chunk-6ALUN6LP.mjs} +2 -1
- package/dist/chunk-6ALUN6LP.mjs.map +1 -0
- package/dist/{chunk-FSS2CZPR.mjs → chunk-CRUKJX54.mjs} +15 -1
- package/dist/{chunk-FSS2CZPR.mjs.map → chunk-CRUKJX54.mjs.map} +1 -1
- package/dist/{chunk-5D2JVHC2.mjs → chunk-GZZMH35Y.mjs} +1 -1
- package/dist/chunk-GZZMH35Y.mjs.map +1 -0
- package/dist/{chunk-MGSDQSWS.mjs → chunk-HBW4LTNY.mjs} +25 -2
- package/dist/{chunk-MGSDQSWS.mjs.map → chunk-HBW4LTNY.mjs.map} +1 -1
- package/dist/{chunk-P4JLZCWZ.mjs → chunk-TRWMYXB7.mjs} +2 -2
- package/dist/formFields/index.cjs +14 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +25 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +13 -4
- package/dist/graphql/index.d.ts +13 -4
- package/dist/graphql/index.mjs +4 -2
- package/dist/hooks/index.cjs +35 -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 +14 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +39 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.mjs +38 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.mjs +1 -1
- package/dist/{user-Cz3XuyJU.d.mts → user-IkpoJkZz.d.mts} +1 -0
- package/dist/{user-B6RYIUjX.d.ts → user-J01cQFJ6.d.ts} +1 -0
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-5D2JVHC2.mjs.map +0 -1
- package/dist/chunk-VBQ5RF7L.mjs.map +0 -1
- /package/dist/{chunk-P4JLZCWZ.mjs.map → chunk-TRWMYXB7.mjs.map} +0 -0
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-CRUKJX54.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-TRWMYXB7.mjs";
|
|
50
50
|
import "../chunk-SD42WIMV.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-GZZMH35Y.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-X3OLM35T.mjs";
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(graphql_exports, {
|
|
|
49
49
|
useContactUs: () => useContactUs,
|
|
50
50
|
useCrawlGoogleMarkets: () => useCrawlGoogleMarkets,
|
|
51
51
|
useCreateAd: () => useCreateAd,
|
|
52
|
+
useCreateAffiliate: () => useCreateAffiliate,
|
|
52
53
|
useCreateBulkNotifications: () => useCreateBulkNotifications,
|
|
53
54
|
useCreateCheckoutSession: () => useCreateCheckoutSession,
|
|
54
55
|
useCreateCoupon: () => useCreateCoupon,
|
|
@@ -361,6 +362,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
361
362
|
game
|
|
362
363
|
isTester
|
|
363
364
|
lastName
|
|
365
|
+
nickName
|
|
364
366
|
licences {
|
|
365
367
|
...LicenceFields
|
|
366
368
|
}
|
|
@@ -4746,6 +4748,17 @@ var import_client77 = require("@apollo/client");
|
|
|
4746
4748
|
|
|
4747
4749
|
// src/graphql/mutations/affiliate.ts
|
|
4748
4750
|
var import_client76 = require("@apollo/client");
|
|
4751
|
+
var CREATE_AFFILIATE_MUTATION = import_client76.gql`
|
|
4752
|
+
mutation createAffiliate($input: AffiliateDetailsInputType!) {
|
|
4753
|
+
createAffiliate(input: $input) {
|
|
4754
|
+
data {
|
|
4755
|
+
...AffiliateFields
|
|
4756
|
+
}
|
|
4757
|
+
message
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
${AFFILIATE_FIELDS_FRAGMENT}
|
|
4761
|
+
`;
|
|
4749
4762
|
var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
|
|
4750
4763
|
mutation updateAffiliateDetails(
|
|
4751
4764
|
$input: AffiliateDetailsInputType!
|
|
@@ -4819,6 +4832,17 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
|
|
|
4819
4832
|
`;
|
|
4820
4833
|
|
|
4821
4834
|
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
4835
|
+
var useCreateAffiliate = () => {
|
|
4836
|
+
const [createAffiliate, { loading, error }] = (0, import_client77.useMutation)(CREATE_AFFILIATE_MUTATION, {
|
|
4837
|
+
awaitRefetchQueries: true,
|
|
4838
|
+
refetchQueries: (mutationResult) => {
|
|
4839
|
+
const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
|
|
4840
|
+
if (!affiliateId) return [];
|
|
4841
|
+
return [{ query: GET_AFFILIATE, variables: { _id: affiliateId } }];
|
|
4842
|
+
}
|
|
4843
|
+
});
|
|
4844
|
+
return { createAffiliate, error, loading };
|
|
4845
|
+
};
|
|
4822
4846
|
var useUpdateAffiliateDetails = () => {
|
|
4823
4847
|
const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
|
|
4824
4848
|
awaitRefetchQueries: true,
|
|
@@ -5149,6 +5173,7 @@ var useGetCoupon = (_id) => {
|
|
|
5149
5173
|
useContactUs,
|
|
5150
5174
|
useCrawlGoogleMarkets,
|
|
5151
5175
|
useCreateAd,
|
|
5176
|
+
useCreateAffiliate,
|
|
5152
5177
|
useCreateBulkNotifications,
|
|
5153
5178
|
useCreateCheckoutSession,
|
|
5154
5179
|
useCreateCoupon,
|