@timardex/cluemart-shared 1.7.71 → 1.7.72
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.cjs +2 -2
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-ZLSM7HEU.mjs → chunk-5MB4DIEP.mjs} +9 -5
- package/dist/{chunk-ZLSM7HEU.mjs.map → chunk-5MB4DIEP.mjs.map} +1 -1
- package/dist/{chunk-5K35SL2Z.mjs → chunk-ERNBPEQO.mjs} +2 -2
- package/dist/graphql/index.cjs +8 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -1
- package/dist/graphql/index.d.ts +4 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-5K35SL2Z.mjs.map → chunk-ERNBPEQO.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
} from "../chunk-GWBDLKQC.mjs";
|
|
24
24
|
import "../chunk-RAYUJODN.mjs";
|
|
25
25
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-ERNBPEQO.mjs";
|
|
27
|
+
import "../chunk-5MB4DIEP.mjs";
|
|
28
28
|
import {
|
|
29
29
|
EnumEventDateStatus,
|
|
30
30
|
EnumEventType,
|
package/dist/index.cjs
CHANGED
|
@@ -5847,8 +5847,8 @@ var GET_USER_RESOURCES = import_client23.gql`
|
|
|
5847
5847
|
}
|
|
5848
5848
|
`;
|
|
5849
5849
|
var GET_USERS_BY_PROMO_CODE = import_client23.gql`
|
|
5850
|
-
query getUsersByPromoCode($promoCode: String
|
|
5851
|
-
usersByPromoCode(promoCode: $promoCode) {
|
|
5850
|
+
query getUsersByPromoCode($promoCode: String!, $limit: Int, $offset: Int) {
|
|
5851
|
+
usersByPromoCode(promoCode: $promoCode, limit: $limit, offset: $offset) {
|
|
5852
5852
|
avatar {
|
|
5853
5853
|
...ResourceImageFields
|
|
5854
5854
|
}
|
|
@@ -7065,11 +7065,15 @@ var useGetUserResources = (userId) => {
|
|
|
7065
7065
|
const userResources = data?.userResources.resources || [];
|
|
7066
7066
|
return { error, loading, refetch, userResources };
|
|
7067
7067
|
};
|
|
7068
|
-
var useGetUsersByPromoCode = (promoCode) => {
|
|
7068
|
+
var useGetUsersByPromoCode = (promoCode, options) => {
|
|
7069
7069
|
const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USERS_BY_PROMO_CODE, {
|
|
7070
7070
|
fetchPolicy: "network-only",
|
|
7071
7071
|
skip: !promoCode || promoCode === "",
|
|
7072
|
-
variables: {
|
|
7072
|
+
variables: {
|
|
7073
|
+
limit: options?.limit,
|
|
7074
|
+
offset: options?.offset,
|
|
7075
|
+
promoCode
|
|
7076
|
+
}
|
|
7073
7077
|
});
|
|
7074
7078
|
const usersByPromoCode = data?.usersByPromoCode || [];
|
|
7075
7079
|
return { error, loading, refetch, usersByPromoCode };
|