@timardex/cluemart-shared 2.1.0 → 2.1.1
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/auth/index.mjs +1 -1
- package/dist/{chunk-ZUXHEXJU.mjs → chunk-6ZH75TAT.mjs} +3 -3
- package/dist/{chunk-3DYFIY72.mjs → chunk-7TZDJXYL.mjs} +1 -2
- package/dist/chunk-7TZDJXYL.mjs.map +1 -0
- package/dist/{chunk-UH6POK3Y.mjs → chunk-7XIDMA4Z.mjs} +2 -2
- package/dist/{chunk-YPT2VOTM.mjs → chunk-UHZHNJHO.mjs} +3 -3
- package/dist/{chunk-KUC252SN.mjs → chunk-YMLEIEZD.mjs} +5 -27
- package/dist/chunk-YMLEIEZD.mjs.map +1 -0
- package/dist/{chunk-PNKTKJ47.mjs → chunk-Z4FML4VL.mjs} +2 -2
- package/dist/enums/index.cjs +0 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -2
- package/dist/enums/index.d.ts +1 -2
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +4 -4
- package/dist/graphql/index.cjs +4 -27
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -9
- package/dist/graphql/index.d.ts +1 -9
- package/dist/graphql/index.mjs +2 -4
- package/dist/hooks/index.cjs +0 -8
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +6 -6
- package/dist/index.cjs +4 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -11
- package/dist/index.d.ts +2 -11
- package/dist/index.mjs +4 -27
- package/dist/index.mjs.map +1 -1
- package/dist/region/index.cjs.map +1 -1
- package/dist/region/index.mjs +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-3DYFIY72.mjs.map +0 -1
- package/dist/chunk-KUC252SN.mjs.map +0 -1
- /package/dist/{chunk-ZUXHEXJU.mjs.map → chunk-6ZH75TAT.mjs.map} +0 -0
- /package/dist/{chunk-UH6POK3Y.mjs.map → chunk-7XIDMA4Z.mjs.map} +0 -0
- /package/dist/{chunk-YPT2VOTM.mjs.map → chunk-UHZHNJHO.mjs.map} +0 -0
- /package/dist/{chunk-PNKTKJ47.mjs.map → chunk-Z4FML4VL.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-Z4FML4VL.mjs";
|
|
2
2
|
import "../chunk-VA5YN2K3.mjs";
|
|
3
3
|
import "../chunk-VPANTTZI.mjs";
|
|
4
4
|
import "../chunk-DWO35OY4.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-6ZH75TAT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-UHZHNJHO.mjs";
|
|
11
11
|
import "../chunk-RE4NZPYY.mjs";
|
|
12
12
|
import {
|
|
13
13
|
dateFormat,
|
|
14
14
|
timeFormat
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-7XIDMA4Z.mjs";
|
|
16
16
|
import {
|
|
17
17
|
EnumAdShowOn,
|
|
18
18
|
EnumAdStatus,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "../chunk-PIEXGXTD.mjs";
|
|
25
25
|
import "../chunk-RAYUJODN.mjs";
|
|
26
26
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-YMLEIEZD.mjs";
|
|
28
28
|
import "../chunk-ZSSVU6GY.mjs";
|
|
29
29
|
import "../chunk-7DQBUZXY.mjs";
|
|
30
30
|
import {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
EnumResourceType,
|
|
37
37
|
EnumSocialMedia,
|
|
38
38
|
EnumVendorType
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-7TZDJXYL.mjs";
|
|
40
40
|
import "../chunk-NPFJ2CN2.mjs";
|
|
41
41
|
|
|
42
42
|
// src/hooks/useLocationSearch.ts
|
package/dist/index.cjs
CHANGED
|
@@ -438,7 +438,6 @@ __export(index_exports, {
|
|
|
438
438
|
useGetPrivateChats: () => useGetPrivateChats,
|
|
439
439
|
useGetRelation: () => useGetRelation,
|
|
440
440
|
useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
|
|
441
|
-
useGetRelationChats: () => useGetRelationChats,
|
|
442
441
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
443
442
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
444
443
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
@@ -558,7 +557,6 @@ var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason2) => {
|
|
|
558
557
|
var EnumChatType = /* @__PURE__ */ ((EnumChatType2) => {
|
|
559
558
|
EnumChatType2["GROUP"] = "group";
|
|
560
559
|
EnumChatType2["PRIVATE"] = "private";
|
|
561
|
-
EnumChatType2["RELATION"] = "relation";
|
|
562
560
|
return EnumChatType2;
|
|
563
561
|
})(EnumChatType || {});
|
|
564
562
|
var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
|
|
@@ -5812,14 +5810,6 @@ var PRIVATE_CHATS = import_client16.gql`
|
|
|
5812
5810
|
}
|
|
5813
5811
|
${CHAT_FIELDS_FRAGMENT}
|
|
5814
5812
|
`;
|
|
5815
|
-
var RELATION_CHATS = import_client16.gql`
|
|
5816
|
-
query relationChats {
|
|
5817
|
-
relationChats {
|
|
5818
|
-
...ChatFields
|
|
5819
|
-
}
|
|
5820
|
-
}
|
|
5821
|
-
${CHAT_FIELDS_FRAGMENT}
|
|
5822
|
-
`;
|
|
5823
5813
|
var GET_CHATS_BY_REGION = import_client16.gql`
|
|
5824
5814
|
query getChatsByRegion($region: String!) {
|
|
5825
5815
|
chatsByRegion(region: $region) {
|
|
@@ -5965,7 +5955,7 @@ var useSendChatMessage = () => {
|
|
|
5965
5955
|
var useDeleteChat = () => {
|
|
5966
5956
|
const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
|
|
5967
5957
|
awaitRefetchQueries: true,
|
|
5968
|
-
refetchQueries: [{ query: PRIVATE_CHATS }
|
|
5958
|
+
refetchQueries: [{ query: PRIVATE_CHATS }]
|
|
5969
5959
|
});
|
|
5970
5960
|
return { deleteChat, error, loading };
|
|
5971
5961
|
};
|
|
@@ -5981,9 +5971,6 @@ var useAddParticipantToChat = () => {
|
|
|
5981
5971
|
},
|
|
5982
5972
|
{
|
|
5983
5973
|
query: PRIVATE_CHATS
|
|
5984
|
-
},
|
|
5985
|
-
{
|
|
5986
|
-
query: RELATION_CHATS
|
|
5987
5974
|
}
|
|
5988
5975
|
];
|
|
5989
5976
|
}
|
|
@@ -5995,10 +5982,7 @@ var useRemoveParticipantFromChat = () => {
|
|
|
5995
5982
|
awaitRefetchQueries: true,
|
|
5996
5983
|
refetchQueries: (mutationResult) => {
|
|
5997
5984
|
const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
|
|
5998
|
-
const queries = [
|
|
5999
|
-
{ query: PRIVATE_CHATS },
|
|
6000
|
-
{ query: RELATION_CHATS }
|
|
6001
|
-
];
|
|
5985
|
+
const queries = [{ query: PRIVATE_CHATS }];
|
|
6002
5986
|
if (region && region.trim() !== "") {
|
|
6003
5987
|
queries.push({
|
|
6004
5988
|
query: GET_CHATS_BY_REGION,
|
|
@@ -6076,13 +6060,6 @@ var useGetPrivateChats = () => {
|
|
|
6076
6060
|
const privateChats = data?.privateChats || [];
|
|
6077
6061
|
return { error, loading, privateChats, refetch };
|
|
6078
6062
|
};
|
|
6079
|
-
var useGetRelationChats = () => {
|
|
6080
|
-
const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
|
|
6081
|
-
fetchPolicy: "network-only"
|
|
6082
|
-
});
|
|
6083
|
-
const relationChats = data?.relationChats || [];
|
|
6084
|
-
return { error, loading, refetch, relationChats };
|
|
6085
|
-
};
|
|
6086
6063
|
var useGetChatSubscription = () => {
|
|
6087
6064
|
const { data, loading, error } = (0, import_client20.useSubscription)(
|
|
6088
6065
|
GET_CHAT_MESSAGE
|
|
@@ -6713,7 +6690,7 @@ var useCreateRelation = () => {
|
|
|
6713
6690
|
variables: { resourceId, resourceType }
|
|
6714
6691
|
},
|
|
6715
6692
|
{
|
|
6716
|
-
query:
|
|
6693
|
+
query: PRIVATE_CHATS
|
|
6717
6694
|
}
|
|
6718
6695
|
];
|
|
6719
6696
|
}
|
|
@@ -6794,7 +6771,7 @@ var useDeleteRelation = () => {
|
|
|
6794
6771
|
variables: { resourceId, resourceType }
|
|
6795
6772
|
},
|
|
6796
6773
|
{
|
|
6797
|
-
query:
|
|
6774
|
+
query: PRIVATE_CHATS
|
|
6798
6775
|
}
|
|
6799
6776
|
];
|
|
6800
6777
|
}
|
|
@@ -10407,7 +10384,6 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10407
10384
|
useGetPrivateChats,
|
|
10408
10385
|
useGetRelation,
|
|
10409
10386
|
useGetRelationByEventAndVendor,
|
|
10410
|
-
useGetRelationChats,
|
|
10411
10387
|
useGetReportedChatUsers,
|
|
10412
10388
|
useGetResourceActivity,
|
|
10413
10389
|
useGetResourceConnections,
|