@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-B9wsUE0s.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-BnYAMxH5.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-UGWEWOUM.mjs";
|
|
50
50
|
import "../chunk-SD42WIMV.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-Q3X2EHHF.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-X3OLM35T.mjs";
|
|
@@ -93,7 +93,6 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
-
sharePublic?: SocialShareResourceType | null;
|
|
97
96
|
shareRelation?: SocialShareResourceType | null;
|
|
98
97
|
}
|
|
99
98
|
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
@@ -428,6 +427,7 @@ type CouponParticipantUserType = {
|
|
|
428
427
|
type CouponCodeType = {
|
|
429
428
|
code: string;
|
|
430
429
|
qrCode: ResourceImageType;
|
|
430
|
+
shareableQrCode: ResourceImageType;
|
|
431
431
|
};
|
|
432
432
|
type CouponDataProductsType = VendorType["products"] & {
|
|
433
433
|
vendorLogo: ResourceImageType | null;
|
|
@@ -560,7 +560,6 @@ interface VendorType extends BaseResourceType {
|
|
|
560
560
|
relationId: string | null;
|
|
561
561
|
relationDates: RelationDate[] | null;
|
|
562
562
|
}[] | null;
|
|
563
|
-
sharePublic?: SocialShareResourceType | null;
|
|
564
563
|
shareRelation?: SocialShareResourceType | null;
|
|
565
564
|
unregisteredVendorId?: string | null;
|
|
566
565
|
}
|
|
@@ -691,6 +690,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
691
690
|
rating?: number | null;
|
|
692
691
|
relatedPost?: RelatedPostType | null;
|
|
693
692
|
reviewCount?: number | null;
|
|
693
|
+
sharePublic?: SocialShareResourceType | null;
|
|
694
694
|
slug: string;
|
|
695
695
|
updatedAt: Date | null;
|
|
696
696
|
};
|
|
@@ -93,7 +93,6 @@ interface EventType extends BaseResourceType {
|
|
|
93
93
|
relationId: string | null;
|
|
94
94
|
relationDates: RelationDate[] | null;
|
|
95
95
|
}[] | null;
|
|
96
|
-
sharePublic?: SocialShareResourceType | null;
|
|
97
96
|
shareRelation?: SocialShareResourceType | null;
|
|
98
97
|
}
|
|
99
98
|
type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
|
|
@@ -428,6 +427,7 @@ type CouponParticipantUserType = {
|
|
|
428
427
|
type CouponCodeType = {
|
|
429
428
|
code: string;
|
|
430
429
|
qrCode: ResourceImageType;
|
|
430
|
+
shareableQrCode: ResourceImageType;
|
|
431
431
|
};
|
|
432
432
|
type CouponDataProductsType = VendorType["products"] & {
|
|
433
433
|
vendorLogo: ResourceImageType | null;
|
|
@@ -560,7 +560,6 @@ interface VendorType extends BaseResourceType {
|
|
|
560
560
|
relationId: string | null;
|
|
561
561
|
relationDates: RelationDate[] | null;
|
|
562
562
|
}[] | null;
|
|
563
|
-
sharePublic?: SocialShareResourceType | null;
|
|
564
563
|
shareRelation?: SocialShareResourceType | null;
|
|
565
564
|
unregisteredVendorId?: string | null;
|
|
566
565
|
}
|
|
@@ -691,6 +690,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
691
690
|
rating?: number | null;
|
|
692
691
|
relatedPost?: RelatedPostType | null;
|
|
693
692
|
reviewCount?: number | null;
|
|
693
|
+
sharePublic?: SocialShareResourceType | null;
|
|
694
694
|
slug: string;
|
|
695
695
|
updatedAt: Date | null;
|
|
696
696
|
};
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -117,7 +117,6 @@ __export(graphql_exports, {
|
|
|
117
117
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
118
118
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
119
119
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
120
|
-
useGetResourceCoupons: () => useGetResourceCoupons,
|
|
121
120
|
useGetSchool: () => useGetSchool,
|
|
122
121
|
useGetSchools: () => useGetSchools,
|
|
123
122
|
useGetSubscriptionPlans: () => useGetSubscriptionPlans,
|
|
@@ -4885,6 +4884,9 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
|
|
|
4885
4884
|
qrCode {
|
|
4886
4885
|
...ResourceImageFields
|
|
4887
4886
|
}
|
|
4887
|
+
shareableQrCode {
|
|
4888
|
+
...ResourceImageFields
|
|
4889
|
+
}
|
|
4888
4890
|
}
|
|
4889
4891
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
4890
4892
|
`;
|
|
@@ -5011,14 +5013,6 @@ var GET_COUPON = import_client78.gql`
|
|
|
5011
5013
|
}
|
|
5012
5014
|
${COUPON}
|
|
5013
5015
|
`;
|
|
5014
|
-
var GET_RESOURCE_COUPONS = import_client78.gql`
|
|
5015
|
-
query getResourceCoupons($resourceId: ID!, $resourceType: ResourceTypeEnum!) {
|
|
5016
|
-
resourceCoupons(resourceId: $resourceId, resourceType: $resourceType) {
|
|
5017
|
-
...CouponFields
|
|
5018
|
-
}
|
|
5019
|
-
}
|
|
5020
|
-
${COUPON}
|
|
5021
|
-
`;
|
|
5022
5016
|
|
|
5023
5017
|
// src/graphql/mutations/coupon.ts
|
|
5024
5018
|
var CREATE_COUPON_MUTATION = import_client79.gql`
|
|
@@ -5105,15 +5099,6 @@ var useGetCoupon = (_id) => {
|
|
|
5105
5099
|
const coupon = data?.coupon || null;
|
|
5106
5100
|
return { coupon, error, loading, refetch };
|
|
5107
5101
|
};
|
|
5108
|
-
var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
5109
|
-
const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_RESOURCE_COUPONS, {
|
|
5110
|
-
fetchPolicy: "network-only",
|
|
5111
|
-
skip: !resourceId || resourceId === "" || !resourceType,
|
|
5112
|
-
variables: { resourceId, resourceType }
|
|
5113
|
-
});
|
|
5114
|
-
const resourceCoupons = data?.resourceCoupons || [];
|
|
5115
|
-
return { error, loading, refetch, resourceCoupons };
|
|
5116
|
-
};
|
|
5117
5102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5118
5103
|
0 && (module.exports = {
|
|
5119
5104
|
ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
@@ -5213,7 +5198,6 @@ var useGetResourceCoupons = (resourceId, resourceType) => {
|
|
|
5213
5198
|
useGetReportedChatUsers,
|
|
5214
5199
|
useGetResourceActivity,
|
|
5215
5200
|
useGetResourceConnections,
|
|
5216
|
-
useGetResourceCoupons,
|
|
5217
5201
|
useGetSchool,
|
|
5218
5202
|
useGetSchools,
|
|
5219
5203
|
useGetSubscriptionPlans,
|