@timardex/cluemart-shared 2.2.41 → 2.3.10
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/{chunk-VHNCSCQU.mjs → chunk-DV3K3JDE.mjs} +2 -2
- package/dist/{chunk-PJY7OAQ2.mjs → chunk-HKTBJOB7.mjs} +27 -11
- package/dist/chunk-HKTBJOB7.mjs.map +1 -0
- package/dist/{chunk-QIF4ZGMY.mjs → chunk-KMS64DE2.mjs} +2 -2
- package/dist/{chunk-2GUAD63W.mjs → chunk-PBW5K54C.mjs} +2 -2
- package/dist/{chunk-MKHXXZWF.mjs → chunk-UWMZ6VLV.mjs} +45 -2
- package/dist/chunk-UWMZ6VLV.mjs.map +1 -0
- package/dist/formFields/index.cjs +10 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +46 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +25 -1
- package/dist/graphql/index.d.ts +25 -1
- package/dist/graphql/index.mjs +5 -1
- package/dist/hooks/index.cjs +25 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +73 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.mjs +70 -11
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +6 -0
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/utils/index.cjs +27 -10
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +9 -1
- package/dist/utils/index.d.ts +9 -1
- package/dist/utils/index.mjs +4 -2
- package/package.json +1 -1
- package/dist/chunk-MKHXXZWF.mjs.map +0 -1
- package/dist/chunk-PJY7OAQ2.mjs.map +0 -1
- /package/dist/{chunk-VHNCSCQU.mjs.map → chunk-DV3K3JDE.mjs.map} +0 -0
- /package/dist/{chunk-QIF4ZGMY.mjs.map → chunk-KMS64DE2.mjs.map} +0 -0
- /package/dist/{chunk-2GUAD63W.mjs.map → chunk-PBW5K54C.mjs.map} +0 -0
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-PBW5K54C.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-DV3K3JDE.mjs";
|
|
50
50
|
import "../chunk-RE4NZPYY.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-HKTBJOB7.mjs";
|
|
52
52
|
import "../chunk-5AAYX364.mjs";
|
|
53
53
|
import "../chunk-RAYUJODN.mjs";
|
|
54
54
|
import "../chunk-DQ7ZHIXW.mjs";
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -134,6 +134,8 @@ __export(graphql_exports, {
|
|
|
134
134
|
useGetPrivateChats: () => useGetPrivateChats,
|
|
135
135
|
useGetRelation: () => useGetRelation,
|
|
136
136
|
useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
|
|
137
|
+
useGetRelationHistories: () => useGetRelationHistories,
|
|
138
|
+
useGetRelationHistory: () => useGetRelationHistory,
|
|
137
139
|
useGetReportedChatUsers: () => useGetReportedChatUsers,
|
|
138
140
|
useGetResourceActivity: () => useGetResourceActivity,
|
|
139
141
|
useGetResourceConnections: () => useGetResourceConnections,
|
|
@@ -1620,6 +1622,25 @@ var GET_RELATION = import_client11.gql`
|
|
|
1620
1622
|
}
|
|
1621
1623
|
${RELATION_FIELDS_FRAGMENT}
|
|
1622
1624
|
`;
|
|
1625
|
+
var GET_RELATION_HISTORY = import_client11.gql`
|
|
1626
|
+
query getRelationHistory($_id: ID!) {
|
|
1627
|
+
relationHistory(_id: $_id) {
|
|
1628
|
+
...RelationFields
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
1632
|
+
`;
|
|
1633
|
+
var GET_RELATION_HISTORIES = import_client11.gql`
|
|
1634
|
+
query getRelationHistories(
|
|
1635
|
+
$resourceId: ID!
|
|
1636
|
+
$resourceType: ResourceTypeEnum!
|
|
1637
|
+
) {
|
|
1638
|
+
relationHistories(resourceId: $resourceId, resourceType: $resourceType) {
|
|
1639
|
+
...RelationFields
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
${RELATION_FIELDS_FRAGMENT}
|
|
1643
|
+
`;
|
|
1623
1644
|
var GET_RELATION_BY_EVENT_AND_VENDOR = import_client11.gql`
|
|
1624
1645
|
query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
|
|
1625
1646
|
relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
|
|
@@ -2991,13 +3012,35 @@ var useDeleteRelation = () => {
|
|
|
2991
3012
|
var import_client38 = require("@apollo/client");
|
|
2992
3013
|
var useGetRelation = (_id) => {
|
|
2993
3014
|
const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION, {
|
|
2994
|
-
|
|
3015
|
+
// `relation` returns only upcoming dates, which is a projection of
|
|
3016
|
+
// RelationType rather than the stored document. Keep it out of the
|
|
3017
|
+
// normalized cache so it cannot overwrite `relationDates` of the same
|
|
3018
|
+
// entity id for other readers.
|
|
3019
|
+
fetchPolicy: "no-cache",
|
|
2995
3020
|
skip: !_id,
|
|
2996
3021
|
variables: _id ? { _id } : void 0
|
|
2997
3022
|
});
|
|
2998
3023
|
const relation = data?.relation;
|
|
2999
3024
|
return { error, loading, refetch, relation };
|
|
3000
3025
|
};
|
|
3026
|
+
var useGetRelationHistory = (_id) => {
|
|
3027
|
+
const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_HISTORY, {
|
|
3028
|
+
fetchPolicy: "no-cache",
|
|
3029
|
+
skip: !_id,
|
|
3030
|
+
variables: _id ? { _id } : void 0
|
|
3031
|
+
});
|
|
3032
|
+
const relationHistory = data?.relationHistory;
|
|
3033
|
+
return { error, loading, refetch, relationHistory };
|
|
3034
|
+
};
|
|
3035
|
+
var useGetRelationHistories = (resourceId, resourceType) => {
|
|
3036
|
+
const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_HISTORIES, {
|
|
3037
|
+
fetchPolicy: "no-cache",
|
|
3038
|
+
skip: !resourceId || !resourceType,
|
|
3039
|
+
variables: { resourceId, resourceType }
|
|
3040
|
+
});
|
|
3041
|
+
const relationHistories = data?.relationHistories || [];
|
|
3042
|
+
return { error, loading, refetch, relationHistories };
|
|
3043
|
+
};
|
|
3001
3044
|
var useGetRelationByEventAndVendor = (eventId, vendorId) => {
|
|
3002
3045
|
const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_RELATION_BY_EVENT_AND_VENDOR, {
|
|
3003
3046
|
fetchPolicy: "network-only",
|
|
@@ -5770,6 +5813,8 @@ function usePaginatedList({
|
|
|
5770
5813
|
useGetPrivateChats,
|
|
5771
5814
|
useGetRelation,
|
|
5772
5815
|
useGetRelationByEventAndVendor,
|
|
5816
|
+
useGetRelationHistories,
|
|
5817
|
+
useGetRelationHistory,
|
|
5773
5818
|
useGetReportedChatUsers,
|
|
5774
5819
|
useGetResourceActivity,
|
|
5775
5820
|
useGetResourceConnections,
|