@timardex/cluemart-shared 1.7.35 → 1.7.37
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-QDSgLYQe.d.mts → ad-BErPpJ_a.d.mts} +2 -2
- package/dist/{ad-DHN0IudM.d.ts → ad-D3id4INo.d.ts} +2 -2
- package/dist/{affiliate-kR3czfpb.d.mts → affiliate-BQlRmskL.d.mts} +2 -2
- package/dist/{affiliate-CI_khNgq.d.ts → affiliate-COxz9Ycb.d.ts} +2 -2
- package/dist/auth/index.cjs +16 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +4 -4
- package/dist/auth/index.d.ts +4 -4
- package/dist/auth/index.mjs +2 -1
- package/dist/auth/index.mjs.map +1 -1
- package/dist/{chunk-P2HBORDW.mjs → chunk-DO7XC2JW.mjs} +17 -1
- package/dist/{chunk-P2HBORDW.mjs.map → chunk-DO7XC2JW.mjs.map} +1 -1
- package/dist/{chunk-QOPOOOS7.mjs → chunk-MTRHQDIZ.mjs} +14 -3
- package/dist/{chunk-QOPOOOS7.mjs.map → chunk-MTRHQDIZ.mjs.map} +1 -1
- package/dist/{chunk-OH7ZORGB.mjs → chunk-NH7MS65I.mjs} +1 -1
- package/dist/{chunk-OH7ZORGB.mjs.map → chunk-NH7MS65I.mjs.map} +1 -1
- package/dist/{chunk-IH3BEKPK.mjs → chunk-TAWBDBPX.mjs} +2 -2
- package/dist/{contactUs-KdCU5i-u.d.mts → contactUs-CuGDbQJE.d.mts} +1 -1
- package/dist/{contactUs-Dpf4Wtf0.d.ts → contactUs-X2IZ4ic_.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 +2 -2
- package/dist/{global-iWgXdLj8.d.ts → global-CZWTrBWs.d.ts} +1 -0
- package/dist/{global-cOd88aj7.d.mts → global-D9KZcIaq.d.mts} +1 -0
- package/dist/graphql/index.cjs +26 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +14 -6
- package/dist/graphql/index.d.ts +14 -6
- package/dist/graphql/index.mjs +4 -2
- package/dist/hooks/index.cjs +21 -2
- 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 +10 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +25 -0
- 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-E1zbLLJN.d.ts → resourceActivities-DKXCju5o.d.ts} +1 -1
- package/dist/{resourceActivities-CLvYtSbH.d.mts → resourceActivities-Fi9ZAmrQ.d.mts} +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-BgSYnv1D.d.ts → user-Dnigp0LK.d.ts} +1 -1
- package/dist/{user-DcXGRyeL.d.mts → user-Eczcue31.d.mts} +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-IH3BEKPK.mjs.map → chunk-TAWBDBPX.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -401,6 +401,7 @@ __export(index_exports, {
|
|
|
401
401
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
402
402
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
403
403
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
404
|
+
useGetResourceCoupons: () => useGetResourceCoupons,
|
|
404
405
|
useGetSchool: () => useGetSchool,
|
|
405
406
|
useGetSchools: () => useGetSchools,
|
|
406
407
|
useGetSubscriptionPlans: () => useGetSubscriptionPlans,
|
|
@@ -4360,6 +4361,12 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
|
|
|
4360
4361
|
participantUsers {
|
|
4361
4362
|
...CouponParticipantUserFields
|
|
4362
4363
|
}
|
|
4364
|
+
products {
|
|
4365
|
+
active
|
|
4366
|
+
productsList {
|
|
4367
|
+
...VendorProductListFields
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4363
4370
|
resourceId
|
|
4364
4371
|
resourceType
|
|
4365
4372
|
startDate
|
|
@@ -4369,6 +4376,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client3.gql`
|
|
|
4369
4376
|
${COUPON_OPTION_FIELDS_FRAGMENT}
|
|
4370
4377
|
${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
|
|
4371
4378
|
${COUPON_REWARD_FIELDS_FRAGMENT}
|
|
4379
|
+
${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
|
|
4372
4380
|
`;
|
|
4373
4381
|
var COUPON = import_client3.gql`
|
|
4374
4382
|
fragment CouponFields on CouponType {
|
|
@@ -4403,6 +4411,14 @@ var GET_COUPON = import_client3.gql`
|
|
|
4403
4411
|
}
|
|
4404
4412
|
${COUPON}
|
|
4405
4413
|
`;
|
|
4414
|
+
var GET_RESOURCE_COUPONS = import_client3.gql`
|
|
4415
|
+
query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
4416
|
+
resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
|
|
4417
|
+
...CouponFields
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
${COUPON}
|
|
4421
|
+
`;
|
|
4406
4422
|
|
|
4407
4423
|
// src/graphql/queries/vendor.ts
|
|
4408
4424
|
var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
|
|
@@ -8642,6 +8658,15 @@ var useGetCoupon = (_id) => {
|
|
|
8642
8658
|
const coupon = data?.coupon || null;
|
|
8643
8659
|
return { coupon, error, loading, refetch };
|
|
8644
8660
|
};
|
|
8661
|
+
var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
8662
|
+
const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_RESOURCE_COUPONS, {
|
|
8663
|
+
fetchPolicy: "network-only",
|
|
8664
|
+
skip: !resourceId,
|
|
8665
|
+
variables: { resourceId, resourceType }
|
|
8666
|
+
});
|
|
8667
|
+
const resourceCoupons = data?.resourceCoupons || [];
|
|
8668
|
+
return { resourceCoupons, error, loading, refetch };
|
|
8669
|
+
};
|
|
8645
8670
|
|
|
8646
8671
|
// src/images/index.ts
|
|
8647
8672
|
var PKG = "@timardex/cluemart-shared";
|
|
@@ -9569,6 +9594,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9569
9594
|
useGetReportedChatUsers,
|
|
9570
9595
|
useGetResourceActivity,
|
|
9571
9596
|
useGetResourceConnections,
|
|
9597
|
+
useGetResourceCoupons,
|
|
9572
9598
|
useGetSchool,
|
|
9573
9599
|
useGetSchools,
|
|
9574
9600
|
useGetSubscriptionPlans,
|