@timardex/cluemart-shared 1.7.32 → 1.7.35
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-FrGeJoW6.d.ts → ad-DHN0IudM.d.ts} +2 -2
- package/dist/{ad-BsAes_WS.d.mts → ad-QDSgLYQe.d.mts} +2 -2
- package/dist/{affiliate-2h_y0IL4.d.ts → affiliate-CI_khNgq.d.ts} +2 -2
- package/dist/{affiliate-KR-MNBCC.d.mts → affiliate-kR3czfpb.d.mts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-3UYXNSNB.mjs → chunk-IH3BEKPK.mjs} +2 -2
- package/dist/{chunk-UV5GH6NI.mjs → chunk-OH7ZORGB.mjs} +1 -1
- package/dist/{chunk-UV5GH6NI.mjs.map → chunk-OH7ZORGB.mjs.map} +1 -1
- package/dist/{chunk-BGTWSB5L.mjs → chunk-QOPOOOS7.mjs} +13 -5
- package/dist/{chunk-BGTWSB5L.mjs.map → chunk-QOPOOOS7.mjs.map} +1 -1
- package/dist/{contactUs-CQqOcQk_.d.ts → contactUs-Dpf4Wtf0.d.ts} +1 -1
- package/dist/{contactUs-DOI78kmJ.d.mts → contactUs-KdCU5i-u.d.mts} +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/graphql/index.cjs +12 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +32 -5
- 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 +23 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -4
- 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-CoCW9VLu.d.mts → resourceActivities-CLvYtSbH.d.mts} +1 -1
- package/dist/{resourceActivities-DMEtduFL.d.ts → resourceActivities-E1zbLLJN.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-Bynr8XGA.d.ts → user-BgSYnv1D.d.ts} +1 -1
- package/dist/{user-0qKK4juO.d.mts → user-DcXGRyeL.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-3UYXNSNB.mjs.map → chunk-IH3BEKPK.mjs.map} +0 -0
- package/dist/{global-C7xIDkiQ.d.mts → global-cOd88aj7.d.mts} +2 -2
- package/dist/{global-D-034Xws.d.ts → global-iWgXdLj8.d.ts} +2 -2
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CLvYtSbH.mjs';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-cOd88aj7.mjs';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-QDSgLYQe.mjs';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-DcXGRyeL.mjs';
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-kR3czfpb.mjs';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.mjs';
|
|
11
11
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-E1zbLLJN.js';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-iWgXdLj8.js';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-DHN0IudM.js';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../affiliate-
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-BgSYnv1D.js';
|
|
8
|
+
import { A as AffiliateType } from '../affiliate-CI_khNgq.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.js';
|
|
11
11
|
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -5678,8 +5678,16 @@ var CREATE_COUPON_MUTATION = import_client79.gql`
|
|
|
5678
5678
|
${COUPON}
|
|
5679
5679
|
`;
|
|
5680
5680
|
var UPDATE_COUPON_MUTATION = import_client79.gql`
|
|
5681
|
-
mutation updateCoupon(
|
|
5682
|
-
|
|
5681
|
+
mutation updateCoupon(
|
|
5682
|
+
$couponDocumentId: ID!
|
|
5683
|
+
$couponId: ID!
|
|
5684
|
+
$input: CouponInputType!
|
|
5685
|
+
) {
|
|
5686
|
+
updateCoupon(
|
|
5687
|
+
couponDocumentId: $couponDocumentId
|
|
5688
|
+
couponId: $couponId
|
|
5689
|
+
input: $input
|
|
5690
|
+
) {
|
|
5683
5691
|
data {
|
|
5684
5692
|
...CouponFields
|
|
5685
5693
|
}
|
|
@@ -5689,8 +5697,8 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
|
|
|
5689
5697
|
${COUPON}
|
|
5690
5698
|
`;
|
|
5691
5699
|
var DELETE_COUPON_MUTATION = import_client79.gql`
|
|
5692
|
-
mutation deleteCoupon($
|
|
5693
|
-
deleteCoupon(
|
|
5700
|
+
mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
|
|
5701
|
+
deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
|
|
5694
5702
|
data
|
|
5695
5703
|
message
|
|
5696
5704
|
}
|
|
@@ -5975,6 +5983,11 @@ var couponSchema = yup10.object().shape({
|
|
|
5975
5983
|
}
|
|
5976
5984
|
)
|
|
5977
5985
|
}),
|
|
5986
|
+
resourceId: yup10.string().label("Resource ID").trim().required("Resource ID is required"),
|
|
5987
|
+
resourceType: yup10.mixed().oneOf(
|
|
5988
|
+
Object.values(EnumResourceType),
|
|
5989
|
+
"Resource type must be a valid EnumResourceType"
|
|
5990
|
+
).required("Resource type is required"),
|
|
5978
5991
|
startDate: yup10.date().label("Start Date").typeError("Start date is required").required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
|
|
5979
5992
|
if (!value) return false;
|
|
5980
5993
|
return new Date(value) > /* @__PURE__ */ new Date();
|
|
@@ -7368,6 +7381,8 @@ var defaultValues11 = {
|
|
|
7368
7381
|
},
|
|
7369
7382
|
couponRewards: [],
|
|
7370
7383
|
endDate: /* @__PURE__ */ new Date(),
|
|
7384
|
+
resourceId: "",
|
|
7385
|
+
resourceType: "",
|
|
7371
7386
|
startDate: /* @__PURE__ */ new Date()
|
|
7372
7387
|
};
|
|
7373
7388
|
function useCouponForm(data) {
|
|
@@ -7390,13 +7405,23 @@ function useCouponForm(data) {
|
|
|
7390
7405
|
couponOption: data.couponOption,
|
|
7391
7406
|
couponRewards: data.couponRewards,
|
|
7392
7407
|
endDate: data.endDate,
|
|
7408
|
+
resourceId: data.resourceId,
|
|
7409
|
+
resourceType: data.resourceType,
|
|
7393
7410
|
startDate: data.startDate
|
|
7394
7411
|
});
|
|
7395
7412
|
} else {
|
|
7396
7413
|
reset(defaultValues11);
|
|
7397
7414
|
}
|
|
7398
7415
|
}, [data]);
|
|
7399
|
-
const {
|
|
7416
|
+
const {
|
|
7417
|
+
couponDescription,
|
|
7418
|
+
couponOption,
|
|
7419
|
+
couponRewards,
|
|
7420
|
+
endDate,
|
|
7421
|
+
resourceId,
|
|
7422
|
+
resourceType,
|
|
7423
|
+
startDate
|
|
7424
|
+
} = getValues();
|
|
7400
7425
|
return {
|
|
7401
7426
|
control,
|
|
7402
7427
|
fields: {
|
|
@@ -7404,6 +7429,8 @@ function useCouponForm(data) {
|
|
|
7404
7429
|
couponOption,
|
|
7405
7430
|
couponRewards,
|
|
7406
7431
|
endDate,
|
|
7432
|
+
resourceId,
|
|
7433
|
+
resourceType,
|
|
7407
7434
|
startDate
|
|
7408
7435
|
},
|
|
7409
7436
|
formState,
|