@timardex/cluemart-shared 1.7.42 → 1.7.44
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-Bt_sGCF4.d.mts → ad-CfOLvXyB.d.mts} +2 -3
- package/dist/{ad-CN-rx1Bk.d.ts → ad-CxABR6sX.d.ts} +2 -3
- package/dist/{affiliate-D8EGH7DV.d.ts → affiliate-CJMP_HcA.d.ts} +2 -2
- package/dist/{affiliate-DViK7wMv.d.mts → affiliate-MosCEdnO.d.mts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-3HRC67D3.mjs → chunk-Q3X2EHHF.mjs} +1 -1
- package/dist/chunk-Q3X2EHHF.mjs.map +1 -0
- package/dist/{chunk-E7KKXQDI.mjs → chunk-UGWEWOUM.mjs} +2 -2
- package/dist/{chunk-RYNABE5C.mjs → chunk-ZJ5ZNUEB.mjs} +5 -20
- package/dist/{chunk-RYNABE5C.mjs.map → chunk-ZJ5ZNUEB.mjs.map} +1 -1
- package/dist/{contactUs-CEgN7JpA.d.ts → contactUs-B5ivc7fv.d.ts} +1 -1
- package/dist/{contactUs-B6PFYhXK.d.mts → contactUs-xtO8TiMI.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 +2 -2
- package/dist/{global-CMEGXjEc.d.mts → global-B9wsUE0s.d.mts} +2 -2
- package/dist/{global-D4-azlbv.d.ts → global-BnYAMxH5.d.ts} +2 -2
- package/dist/graphql/index.cjs +3 -19
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -14
- package/dist/graphql/index.d.ts +6 -14
- package/dist/graphql/index.mjs +1 -3
- package/dist/hooks/index.cjs +50 -37
- 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 +50 -32
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +3 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -12
- package/dist/index.d.ts +3 -12
- package/dist/index.mjs +3 -18
- 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-BE17ZA4_.d.mts → resourceActivities-C7CUBA6k.d.mts} +1 -1
- package/dist/{resourceActivities-DVhCwyJg.d.ts → resourceActivities-D7fXh5KQ.d.ts} +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-Dmj7a7v6.d.ts → user-B7SZZ3EF.d.ts} +1 -1
- package/dist/{user-Di2FizRz.d.mts → user-n3xcmWry.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-3HRC67D3.mjs.map +0 -1
- /package/dist/{chunk-E7KKXQDI.mjs.map → chunk-UGWEWOUM.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -402,7 +402,6 @@ __export(index_exports, {
|
|
|
402
402
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
403
403
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
404
404
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
405
|
-
useGetResourceCoupons: () => useGetResourceCoupons,
|
|
406
405
|
useGetSchool: () => useGetSchool,
|
|
407
406
|
useGetSchools: () => useGetSchools,
|
|
408
407
|
useGetSubscriptionPlans: () => useGetSubscriptionPlans,
|
|
@@ -8492,6 +8491,9 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
|
|
|
8492
8491
|
qrCode {
|
|
8493
8492
|
...ResourceImageFields
|
|
8494
8493
|
}
|
|
8494
|
+
shareableQrCode {
|
|
8495
|
+
...ResourceImageFields
|
|
8496
|
+
}
|
|
8495
8497
|
}
|
|
8496
8498
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
8497
8499
|
`;
|
|
@@ -8618,14 +8620,6 @@ var GET_COUPON = import_client78.gql`
|
|
|
8618
8620
|
}
|
|
8619
8621
|
${COUPON}
|
|
8620
8622
|
`;
|
|
8621
|
-
var GET_RESOURCE_COUPONS = import_client78.gql`
|
|
8622
|
-
query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
8623
|
-
resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
|
|
8624
|
-
...CouponFields
|
|
8625
|
-
}
|
|
8626
|
-
}
|
|
8627
|
-
${COUPON}
|
|
8628
|
-
`;
|
|
8629
8623
|
|
|
8630
8624
|
// src/graphql/mutations/coupon.ts
|
|
8631
8625
|
var CREATE_COUPON_MUTATION = import_client79.gql`
|
|
@@ -8712,15 +8706,6 @@ var useGetCoupon = (_id) => {
|
|
|
8712
8706
|
const coupon = data?.coupon || null;
|
|
8713
8707
|
return { coupon, error, loading, refetch };
|
|
8714
8708
|
};
|
|
8715
|
-
var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
8716
|
-
const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_RESOURCE_COUPONS, {
|
|
8717
|
-
fetchPolicy: "network-only",
|
|
8718
|
-
skip: !resourceId || resourceId === "" || !resourceType,
|
|
8719
|
-
variables: { resourceId, resourceType }
|
|
8720
|
-
});
|
|
8721
|
-
const resourceCoupons = data?.resourceCoupons || [];
|
|
8722
|
-
return { error, loading, refetch, resourceCoupons };
|
|
8723
|
-
};
|
|
8724
8709
|
|
|
8725
8710
|
// src/images/index.ts
|
|
8726
8711
|
var PKG = "@timardex/cluemart-shared";
|
|
@@ -9649,7 +9634,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9649
9634
|
useGetReportedChatUsers,
|
|
9650
9635
|
useGetResourceActivity,
|
|
9651
9636
|
useGetResourceConnections,
|
|
9652
|
-
useGetResourceCoupons,
|
|
9653
9637
|
useGetSchool,
|
|
9654
9638
|
useGetSchools,
|
|
9655
9639
|
useGetSubscriptionPlans,
|