@timardex/cluemart-shared 1.7.68 → 1.7.70
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-C8D-sSzF.d.ts → ad-Diu-U5pX.d.ts} +2 -2
- package/dist/{ad-DBlMup1m.d.mts → ad-qYFQNWmk.d.mts} +2 -2
- package/dist/{affiliate-DpjRNToN.d.mts → affiliate-BFiXC5wR.d.mts} +2 -2
- package/dist/{affiliate-B4dKY4oC.d.ts → affiliate-CELcBsj1.d.ts} +2 -2
- package/dist/auth/index.cjs +12 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-LZG5WM4M.mjs → chunk-5K35SL2Z.mjs} +3 -6
- package/dist/{chunk-LZG5WM4M.mjs.map → chunk-5K35SL2Z.mjs.map} +1 -1
- package/dist/{chunk-WS47NSTO.mjs → chunk-GWBDLKQC.mjs} +28 -18
- package/dist/{chunk-WS47NSTO.mjs.map → chunk-GWBDLKQC.mjs.map} +1 -1
- package/dist/{chunk-G5T3Z6WT.mjs → chunk-OYRT6IXI.mjs} +2 -2
- package/dist/{chunk-LMWIDQZ6.mjs → chunk-ZLSM7HEU.mjs} +24 -2
- package/dist/{chunk-LMWIDQZ6.mjs.map → chunk-ZLSM7HEU.mjs.map} +1 -1
- package/dist/{contactUs-Bm9Nx5L6.d.ts → contactUs-Btb-up0h.d.ts} +1 -1
- package/dist/{contactUs-w465ljSW.d.mts → contactUs-CUDo3Q-a.d.mts} +1 -1
- package/dist/formFields/index.cjs +27 -17
- 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-B6l7Xvrj.d.ts → global-BjtC8RIp.d.ts} +23 -15
- package/dist/{global-Da36L_p3.d.mts → global-CG2xlh2k.d.mts} +23 -15
- package/dist/graphql/index.cjs +24 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +14 -6
- package/dist/graphql/index.d.ts +14 -6
- package/dist/graphql/index.mjs +4 -2
- package/dist/hooks/index.cjs +39 -17
- 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 +4 -4
- package/dist/index.cjs +51 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +37 -16
- package/dist/index.d.ts +37 -16
- package/dist/index.mjs +50 -21
- 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-B3G__Pqn.d.ts → resourceActivities-B2EqmRwK.d.ts} +1 -1
- package/dist/{resourceActivities-BqxMTeyA.d.mts → resourceActivities-kmePhBMr.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs +27 -17
- 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-S2zwTsVK.d.ts → user-BtuhHFYm.d.ts} +7 -2
- package/dist/{user-B8jYxHQ8.d.mts → user-C-CD89aZ.d.mts} +7 -2
- package/dist/utils/index.cjs +27 -17
- 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-G5T3Z6WT.mjs.map → chunk-OYRT6IXI.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-CG2xlh2k.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-BjtC8RIp.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-OYRT6IXI.mjs";
|
|
50
50
|
import "../chunk-SD42WIMV.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-GWBDLKQC.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-X3OLM35T.mjs";
|
|
@@ -117,17 +117,13 @@ type GlobalGameData = {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
declare const gameScreenIdentifierList: readonly [{
|
|
120
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
121
|
-
readonly id: "activities";
|
|
122
|
-
readonly match: "/profile/account/favourites";
|
|
123
|
-
}, {
|
|
124
120
|
readonly clue: "Where conversations happen without speaking.";
|
|
125
121
|
readonly id: "chat";
|
|
126
122
|
readonly match: "/chat";
|
|
127
123
|
}, {
|
|
128
|
-
readonly clue: "
|
|
129
|
-
readonly id: "
|
|
130
|
-
readonly match: "/
|
|
124
|
+
readonly clue: "Where you can find your loyalties.";
|
|
125
|
+
readonly id: "coupons";
|
|
126
|
+
readonly match: "/coupons";
|
|
131
127
|
}, {
|
|
132
128
|
readonly clue: "A single moment worth showing up for.";
|
|
133
129
|
readonly id: "single-event";
|
|
@@ -155,15 +151,11 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
155
151
|
}, {
|
|
156
152
|
readonly clue: "Your starting point for everything.";
|
|
157
153
|
readonly id: "home";
|
|
158
|
-
readonly match: "/";
|
|
154
|
+
readonly match: "/home";
|
|
159
155
|
}, {
|
|
160
156
|
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
161
157
|
readonly id: "notifications";
|
|
162
158
|
readonly match: "/notifications";
|
|
163
|
-
}, {
|
|
164
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
165
|
-
readonly id: "options";
|
|
166
|
-
readonly match: "/options";
|
|
167
159
|
}, {
|
|
168
160
|
readonly clue: "An organisation or creator supporting the community.";
|
|
169
161
|
readonly id: "single-partner";
|
|
@@ -173,13 +165,25 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
173
165
|
readonly id: "partners";
|
|
174
166
|
readonly match: "/partners";
|
|
175
167
|
}, {
|
|
176
|
-
readonly clue: "
|
|
177
|
-
readonly id: "
|
|
178
|
-
readonly match:
|
|
168
|
+
readonly clue: "Where your actions turn into a timeline.";
|
|
169
|
+
readonly id: "activities";
|
|
170
|
+
readonly match: "/profile/account/favourites";
|
|
171
|
+
}, {
|
|
172
|
+
readonly clue: "The place to redefine who you are.";
|
|
173
|
+
readonly id: "edit-profile";
|
|
174
|
+
readonly match: "/profile/account";
|
|
179
175
|
}, {
|
|
180
176
|
readonly clue: "Your identity, on display.";
|
|
181
177
|
readonly id: "profile";
|
|
182
178
|
readonly match: "/profile";
|
|
179
|
+
}, {
|
|
180
|
+
readonly clue: "Where you can redeem your rewards.";
|
|
181
|
+
readonly id: "rewards";
|
|
182
|
+
readonly match: "/profile/account/rewards";
|
|
183
|
+
}, {
|
|
184
|
+
readonly clue: "A single published post in full view.";
|
|
185
|
+
readonly id: "single-visitor-post";
|
|
186
|
+
readonly match: RegExp;
|
|
183
187
|
}, {
|
|
184
188
|
readonly clue: "One stallholder offering something valuable.";
|
|
185
189
|
readonly id: "single-vendor";
|
|
@@ -192,6 +196,10 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
192
196
|
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
193
197
|
readonly id: "visitors";
|
|
194
198
|
readonly match: "/visitors";
|
|
199
|
+
}, {
|
|
200
|
+
readonly clue: "Where you fine-tune your experience.";
|
|
201
|
+
readonly id: "options";
|
|
202
|
+
readonly match: "/options";
|
|
195
203
|
}];
|
|
196
204
|
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
197
205
|
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
@@ -117,17 +117,13 @@ type GlobalGameData = {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
declare const gameScreenIdentifierList: readonly [{
|
|
120
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
121
|
-
readonly id: "activities";
|
|
122
|
-
readonly match: "/profile/account/favourites";
|
|
123
|
-
}, {
|
|
124
120
|
readonly clue: "Where conversations happen without speaking.";
|
|
125
121
|
readonly id: "chat";
|
|
126
122
|
readonly match: "/chat";
|
|
127
123
|
}, {
|
|
128
|
-
readonly clue: "
|
|
129
|
-
readonly id: "
|
|
130
|
-
readonly match: "/
|
|
124
|
+
readonly clue: "Where you can find your loyalties.";
|
|
125
|
+
readonly id: "coupons";
|
|
126
|
+
readonly match: "/coupons";
|
|
131
127
|
}, {
|
|
132
128
|
readonly clue: "A single moment worth showing up for.";
|
|
133
129
|
readonly id: "single-event";
|
|
@@ -155,15 +151,11 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
155
151
|
}, {
|
|
156
152
|
readonly clue: "Your starting point for everything.";
|
|
157
153
|
readonly id: "home";
|
|
158
|
-
readonly match: "/";
|
|
154
|
+
readonly match: "/home";
|
|
159
155
|
}, {
|
|
160
156
|
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
161
157
|
readonly id: "notifications";
|
|
162
158
|
readonly match: "/notifications";
|
|
163
|
-
}, {
|
|
164
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
165
|
-
readonly id: "options";
|
|
166
|
-
readonly match: "/options";
|
|
167
159
|
}, {
|
|
168
160
|
readonly clue: "An organisation or creator supporting the community.";
|
|
169
161
|
readonly id: "single-partner";
|
|
@@ -173,13 +165,25 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
173
165
|
readonly id: "partners";
|
|
174
166
|
readonly match: "/partners";
|
|
175
167
|
}, {
|
|
176
|
-
readonly clue: "
|
|
177
|
-
readonly id: "
|
|
178
|
-
readonly match:
|
|
168
|
+
readonly clue: "Where your actions turn into a timeline.";
|
|
169
|
+
readonly id: "activities";
|
|
170
|
+
readonly match: "/profile/account/favourites";
|
|
171
|
+
}, {
|
|
172
|
+
readonly clue: "The place to redefine who you are.";
|
|
173
|
+
readonly id: "edit-profile";
|
|
174
|
+
readonly match: "/profile/account";
|
|
179
175
|
}, {
|
|
180
176
|
readonly clue: "Your identity, on display.";
|
|
181
177
|
readonly id: "profile";
|
|
182
178
|
readonly match: "/profile";
|
|
179
|
+
}, {
|
|
180
|
+
readonly clue: "Where you can redeem your rewards.";
|
|
181
|
+
readonly id: "rewards";
|
|
182
|
+
readonly match: "/profile/account/rewards";
|
|
183
|
+
}, {
|
|
184
|
+
readonly clue: "A single published post in full view.";
|
|
185
|
+
readonly id: "single-visitor-post";
|
|
186
|
+
readonly match: RegExp;
|
|
183
187
|
}, {
|
|
184
188
|
readonly clue: "One stallholder offering something valuable.";
|
|
185
189
|
readonly id: "single-vendor";
|
|
@@ -192,6 +196,10 @@ declare const gameScreenIdentifierList: readonly [{
|
|
|
192
196
|
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
193
197
|
readonly id: "visitors";
|
|
194
198
|
readonly match: "/visitors";
|
|
199
|
+
}, {
|
|
200
|
+
readonly clue: "Where you fine-tune your experience.";
|
|
201
|
+
readonly id: "options";
|
|
202
|
+
readonly match: "/options";
|
|
195
203
|
}];
|
|
196
204
|
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
197
205
|
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -134,6 +134,7 @@ __export(graphql_exports, {
|
|
|
134
134
|
useGetUserResources: () => useGetUserResources,
|
|
135
135
|
useGetUserVendors: () => useGetUserVendors,
|
|
136
136
|
useGetUsers: () => useGetUsers,
|
|
137
|
+
useGetUsersByPromoCode: () => useGetUsersByPromoCode,
|
|
137
138
|
useGetVendor: () => useGetVendor,
|
|
138
139
|
useGetVendorInfo: () => useGetVendorInfo,
|
|
139
140
|
useGetVendorRelations: () => useGetVendorRelations,
|
|
@@ -2240,6 +2241,18 @@ var GET_USER_RESOURCES = import_client23.gql`
|
|
|
2240
2241
|
}
|
|
2241
2242
|
}
|
|
2242
2243
|
`;
|
|
2244
|
+
var GET_USERS_BY_PROMO_CODE = import_client23.gql`
|
|
2245
|
+
query getUsersByPromoCode($promoCode: String!) {
|
|
2246
|
+
usersByPromoCode(promoCode: $promoCode) {
|
|
2247
|
+
avatar {
|
|
2248
|
+
...ResourceImageFields
|
|
2249
|
+
}
|
|
2250
|
+
userId
|
|
2251
|
+
nickName
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
2255
|
+
`;
|
|
2243
2256
|
|
|
2244
2257
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
2245
2258
|
var useCreateEvent = () => {
|
|
@@ -3447,6 +3460,15 @@ var useGetUserResources = (userId) => {
|
|
|
3447
3460
|
const userResources = data?.userResources.resources || [];
|
|
3448
3461
|
return { error, loading, refetch, userResources };
|
|
3449
3462
|
};
|
|
3463
|
+
var useGetUsersByPromoCode = (promoCode) => {
|
|
3464
|
+
const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USERS_BY_PROMO_CODE, {
|
|
3465
|
+
fetchPolicy: "network-only",
|
|
3466
|
+
skip: !promoCode || promoCode === "",
|
|
3467
|
+
variables: { promoCode }
|
|
3468
|
+
});
|
|
3469
|
+
const usersByPromoCode = data?.usersByPromoCode || [];
|
|
3470
|
+
return { error, loading, refetch, usersByPromoCode };
|
|
3471
|
+
};
|
|
3450
3472
|
|
|
3451
3473
|
// src/graphql/hooks/ad/hooksMutation.ts
|
|
3452
3474
|
var import_client46 = require("@apollo/client");
|
|
@@ -5136,10 +5158,7 @@ var useDeleteCoupon = () => {
|
|
|
5136
5158
|
return { deleteCoupon, error, loading };
|
|
5137
5159
|
};
|
|
5138
5160
|
var useScanCoupon = () => {
|
|
5139
|
-
const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION
|
|
5140
|
-
awaitRefetchQueries: true,
|
|
5141
|
-
refetchQueries: [GET_COUPONS]
|
|
5142
|
-
});
|
|
5161
|
+
const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
|
|
5143
5162
|
return { error, loading, scanCoupon };
|
|
5144
5163
|
};
|
|
5145
5164
|
var useRewardCoupon = () => {
|
|
@@ -5289,6 +5308,7 @@ var useGetCoupon = (_id) => {
|
|
|
5289
5308
|
useGetUserResources,
|
|
5290
5309
|
useGetUserVendors,
|
|
5291
5310
|
useGetUsers,
|
|
5311
|
+
useGetUsersByPromoCode,
|
|
5292
5312
|
useGetVendor,
|
|
5293
5313
|
useGetVendorInfo,
|
|
5294
5314
|
useGetVendorRelations,
|