@timardex/cluemart-shared 1.5.770 → 1.5.772
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-6PrFQe2t.d.ts → ad-CVkVX_z5.d.ts} +3 -7
- package/dist/{ad-B8ZWiTsv.d.mts → ad-DA9ECAhK.d.mts} +3 -7
- package/dist/affiliate-1RtkLnLP.d.ts +35 -0
- package/dist/affiliate-Cos2Syz5.d.mts +35 -0
- package/dist/{chunk-VO2WRHJV.mjs → chunk-KJZFJ3LH.mjs} +95 -12
- package/dist/chunk-KJZFJ3LH.mjs.map +1 -0
- package/dist/{chunk-HASLOIIM.mjs → chunk-MVQ3CFQR.mjs} +11 -2
- package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
- package/dist/{chunk-UJ7L64JJ.mjs → chunk-RKIRWZCH.mjs} +2 -2
- package/dist/{chunk-HCOZUNCK.mjs → chunk-TAECMXM4.mjs} +37 -2
- package/dist/chunk-TAECMXM4.mjs.map +1 -0
- package/dist/{chunk-CXXQBRXS.mjs → chunk-ZZJSCYJK.mjs} +2 -2
- package/dist/formFields/index.cjs +21 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +95 -10
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +20 -2
- package/dist/graphql/index.d.ts +20 -2
- package/dist/graphql/index.mjs +5 -1
- package/dist/hooks/index.cjs +84 -10
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +143 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +78 -6
- package/dist/index.d.ts +78 -6
- package/dist/index.mjs +136 -10
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +21 -0
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs +10 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.mjs +3 -1
- package/dist/utils/index.cjs +41 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +30 -1
- package/dist/utils/index.d.ts +30 -1
- package/dist/utils/index.mjs +10 -2
- package/package.json +1 -1
- package/dist/chunk-HASLOIIM.mjs.map +0 -1
- package/dist/chunk-HCOZUNCK.mjs.map +0 -1
- package/dist/chunk-VO2WRHJV.mjs.map +0 -1
- /package/dist/{chunk-UJ7L64JJ.mjs.map → chunk-RKIRWZCH.mjs.map} +0 -0
- /package/dist/{chunk-CXXQBRXS.mjs.map → chunk-ZZJSCYJK.mjs.map} +0 -0
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
vendorStallSize,
|
|
42
42
|
vendorStartDateFields,
|
|
43
43
|
vendorTable
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-ZZJSCYJK.mjs";
|
|
45
45
|
import {
|
|
46
46
|
availableCategories,
|
|
47
47
|
categoryColors
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
48
|
+
} from "../chunk-TAECMXM4.mjs";
|
|
49
|
+
import "../chunk-MVQ3CFQR.mjs";
|
|
50
50
|
import "../chunk-KZTOISPA.mjs";
|
|
51
51
|
export {
|
|
52
52
|
availableCategories,
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -76,6 +76,8 @@ __export(graphql_exports, {
|
|
|
76
76
|
useGetAd: () => useGetAd,
|
|
77
77
|
useGetAds: () => useGetAds,
|
|
78
78
|
useGetAdsByRegion: () => useGetAdsByRegion,
|
|
79
|
+
useGetAffiliate: () => useGetAffiliate,
|
|
80
|
+
useGetAffiliates: () => useGetAffiliates,
|
|
79
81
|
useGetAppSettings: () => useGetAppSettings,
|
|
80
82
|
useGetChat: () => useGetChat,
|
|
81
83
|
useGetChatSubscription: () => useGetChatSubscription,
|
|
@@ -321,12 +323,6 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
|
|
|
321
323
|
redeemedAt
|
|
322
324
|
}
|
|
323
325
|
`;
|
|
324
|
-
var AFFILIATE_FIELDS_FRAGMENT = import_client.gql`
|
|
325
|
-
fragment AffiliateFields on AffiliateType {
|
|
326
|
-
affiliateCode
|
|
327
|
-
pointsAvailable
|
|
328
|
-
}
|
|
329
|
-
`;
|
|
330
326
|
var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
331
327
|
fragment UserFields on UserType {
|
|
332
328
|
_id
|
|
@@ -334,9 +330,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
334
330
|
associates {
|
|
335
331
|
...AssociatesFields
|
|
336
332
|
}
|
|
337
|
-
affiliate
|
|
338
|
-
...AffiliateFields
|
|
339
|
-
}
|
|
333
|
+
affiliate
|
|
340
334
|
avatar {
|
|
341
335
|
...ResourceImageFields
|
|
342
336
|
}
|
|
@@ -380,7 +374,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
|
|
|
380
374
|
${LICENCE_FIELDS_FRAGMENT}
|
|
381
375
|
${LOCATION_FIELDS_FRAGMENT}
|
|
382
376
|
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
383
|
-
${AFFILIATE_FIELDS_FRAGMENT}
|
|
384
377
|
`;
|
|
385
378
|
var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
|
|
386
379
|
fragment StallTypeFields on StallTypeType {
|
|
@@ -5248,6 +5241,96 @@ var useGetSchool = (_id) => {
|
|
|
5248
5241
|
school: data?.school || null
|
|
5249
5242
|
};
|
|
5250
5243
|
};
|
|
5244
|
+
|
|
5245
|
+
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
5246
|
+
var import_client75 = require("@apollo/client");
|
|
5247
|
+
|
|
5248
|
+
// src/graphql/queries/affiliate.ts
|
|
5249
|
+
var import_client74 = require("@apollo/client");
|
|
5250
|
+
var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
|
|
5251
|
+
fragment AffiliateRewardFields on AffiliateRewardType {
|
|
5252
|
+
createdAt
|
|
5253
|
+
deletedAt
|
|
5254
|
+
redeemedAt
|
|
5255
|
+
rewardDescription
|
|
5256
|
+
rewardType
|
|
5257
|
+
rewardValue
|
|
5258
|
+
updatedAt
|
|
5259
|
+
}
|
|
5260
|
+
`;
|
|
5261
|
+
var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
|
|
5262
|
+
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
5263
|
+
resourceActive
|
|
5264
|
+
resourceId
|
|
5265
|
+
resourceType
|
|
5266
|
+
rewards {
|
|
5267
|
+
...AffiliateRewardFields
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
5271
|
+
`;
|
|
5272
|
+
var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
|
|
5273
|
+
fragment AffiliateFields on AffiliateType {
|
|
5274
|
+
_id
|
|
5275
|
+
affiliateCode
|
|
5276
|
+
affiliateResources {
|
|
5277
|
+
...AffiliateResourceFields
|
|
5278
|
+
}
|
|
5279
|
+
createdAt
|
|
5280
|
+
deletedAt
|
|
5281
|
+
overallPoints
|
|
5282
|
+
owner {
|
|
5283
|
+
...OwnerFields
|
|
5284
|
+
}
|
|
5285
|
+
updatedAt
|
|
5286
|
+
}
|
|
5287
|
+
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
5288
|
+
${OWNER_FIELDS_FRAGMENT}
|
|
5289
|
+
`;
|
|
5290
|
+
var GET_AFFILIATE = import_client74.gql`
|
|
5291
|
+
query getAffiliate($_id: ID!) {
|
|
5292
|
+
affiliate(_id: $_id) {
|
|
5293
|
+
...AffiliateFields
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5297
|
+
`;
|
|
5298
|
+
var GET_AFFILIATES = import_client74.gql`
|
|
5299
|
+
query getAffiliates {
|
|
5300
|
+
affiliates {
|
|
5301
|
+
...AffiliateFields
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5305
|
+
`;
|
|
5306
|
+
|
|
5307
|
+
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
5308
|
+
var useGetAffiliate = (_id) => {
|
|
5309
|
+
const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
|
|
5310
|
+
fetchPolicy: "network-only",
|
|
5311
|
+
skip: !_id || _id === "",
|
|
5312
|
+
variables: { _id }
|
|
5313
|
+
});
|
|
5314
|
+
const affiliate = data?.affiliate;
|
|
5315
|
+
return {
|
|
5316
|
+
affiliate,
|
|
5317
|
+
error,
|
|
5318
|
+
loading,
|
|
5319
|
+
refetch
|
|
5320
|
+
};
|
|
5321
|
+
};
|
|
5322
|
+
var useGetAffiliates = () => {
|
|
5323
|
+
const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
|
|
5324
|
+
fetchPolicy: "network-only"
|
|
5325
|
+
});
|
|
5326
|
+
const affiliates = data?.affiliates || [];
|
|
5327
|
+
return {
|
|
5328
|
+
affiliates,
|
|
5329
|
+
error,
|
|
5330
|
+
loading,
|
|
5331
|
+
refetch
|
|
5332
|
+
};
|
|
5333
|
+
};
|
|
5251
5334
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5252
5335
|
0 && (module.exports = {
|
|
5253
5336
|
GET_EVENT,
|
|
@@ -5306,6 +5389,8 @@ var useGetSchool = (_id) => {
|
|
|
5306
5389
|
useGetAd,
|
|
5307
5390
|
useGetAds,
|
|
5308
5391
|
useGetAdsByRegion,
|
|
5392
|
+
useGetAffiliate,
|
|
5393
|
+
useGetAffiliates,
|
|
5309
5394
|
useGetAppSettings,
|
|
5310
5395
|
useGetChat,
|
|
5311
5396
|
useGetChatSubscription,
|