@timardex/cluemart-shared 1.4.5 → 1.4.6
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/graphql/index.cjs +20 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -2
- package/dist/graphql/index.d.ts +10 -2
- package/dist/graphql/index.mjs +19 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +20 -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 +19 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-CXYei0J1.d.ts → resourceActivities-BBmklkJb.d.ts} +1 -0
- package/dist/{resourceActivities-CC2ho1hD.d.mts → resourceActivities-DRMRA617.d.mts} +1 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -176,6 +176,7 @@ __export(index_exports, {
|
|
|
176
176
|
useGetAppSettings: () => useGetAppSettings,
|
|
177
177
|
useGetChat: () => useGetChat,
|
|
178
178
|
useGetChatSubscription: () => useGetChatSubscription,
|
|
179
|
+
useGetChatsByRegion: () => useGetChatsByRegion,
|
|
179
180
|
useGetEvent: () => useGetEvent,
|
|
180
181
|
useGetEventByPlaceId: () => useGetEventByPlaceId,
|
|
181
182
|
useGetEventInfo: () => useGetEventInfo,
|
|
@@ -3535,6 +3536,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
|
|
|
3535
3536
|
participants {
|
|
3536
3537
|
...ChatParticipantFields
|
|
3537
3538
|
}
|
|
3539
|
+
region
|
|
3538
3540
|
updatedAt
|
|
3539
3541
|
}
|
|
3540
3542
|
${CHAT_MESSAGE_FIELDS_FRAGMENT}
|
|
@@ -3556,6 +3558,14 @@ var USER_CHATS = import_client9.gql`
|
|
|
3556
3558
|
}
|
|
3557
3559
|
${CHAT_FIELDS_FRAGMENT}
|
|
3558
3560
|
`;
|
|
3561
|
+
var GET_CHATS_BY_REGION = import_client9.gql`
|
|
3562
|
+
query getChatsByRegion($region: String!) {
|
|
3563
|
+
chatsByRegion(region: $region) {
|
|
3564
|
+
...ChatFields
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
3568
|
+
`;
|
|
3559
3569
|
|
|
3560
3570
|
// src/graphql/mutations/chat.ts
|
|
3561
3571
|
var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
|
|
@@ -3724,6 +3734,15 @@ var useGetChatSubscription = () => {
|
|
|
3724
3734
|
const chat = data?.getChat;
|
|
3725
3735
|
return { chat, error, loading };
|
|
3726
3736
|
};
|
|
3737
|
+
var useGetChatsByRegion = (region) => {
|
|
3738
|
+
const { loading, error, data, refetch } = (0, import_client13.useQuery)(GET_CHATS_BY_REGION, {
|
|
3739
|
+
fetchPolicy: "network-only",
|
|
3740
|
+
skip: !region,
|
|
3741
|
+
variables: { region }
|
|
3742
|
+
});
|
|
3743
|
+
const chatsByRegion = data?.chatsByRegion || [];
|
|
3744
|
+
return { chatsByRegion, error, loading, refetch };
|
|
3745
|
+
};
|
|
3727
3746
|
|
|
3728
3747
|
// src/graphql/hooks/contactUs.ts
|
|
3729
3748
|
var import_client15 = require("@apollo/client");
|
|
@@ -8116,6 +8135,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
8116
8135
|
useGetAppSettings,
|
|
8117
8136
|
useGetChat,
|
|
8118
8137
|
useGetChatSubscription,
|
|
8138
|
+
useGetChatsByRegion,
|
|
8119
8139
|
useGetEvent,
|
|
8120
8140
|
useGetEventByPlaceId,
|
|
8121
8141
|
useGetEventInfo,
|