@timardex/cluemart-shared 1.5.787 → 1.5.789
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/{affiliate-DOhfbYFj.d.mts → affiliate-Dw6otGha.d.mts} +3 -2
- package/dist/{affiliate-BEePbi9S.d.ts → affiliate-VNlbrvgi.d.ts} +3 -2
- package/dist/{chunk-E4KHWSQE.mjs → chunk-63F5FP5R.mjs} +1 -1
- package/dist/{chunk-E4KHWSQE.mjs.map → chunk-63F5FP5R.mjs.map} +1 -1
- package/dist/{chunk-RTF7BGNH.mjs → chunk-G4LVRM53.mjs} +2 -2
- package/dist/{chunk-JP76OR4F.mjs → chunk-JVBD55SQ.mjs} +30 -1
- package/dist/{chunk-JP76OR4F.mjs.map → chunk-JVBD55SQ.mjs.map} +1 -1
- package/dist/{chunk-RUM5PJHN.mjs → chunk-UGA3F23W.mjs} +2 -2
- package/dist/{chunk-QFGYDBE7.mjs → chunk-ZZBBANGP.mjs} +2 -2
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +30 -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 +3 -1
- package/dist/hooks/index.cjs +25 -19
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +16 -24
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.mjs +29 -0
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-RTF7BGNH.mjs.map → chunk-G4LVRM53.mjs.map} +0 -0
- /package/dist/{chunk-RUM5PJHN.mjs.map → chunk-UGA3F23W.mjs.map} +0 -0
- /package/dist/{chunk-QFGYDBE7.mjs.map → chunk-ZZBBANGP.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -328,6 +328,7 @@ __export(index_exports, {
|
|
|
328
328
|
useGetAds: () => useGetAds,
|
|
329
329
|
useGetAdsByRegion: () => useGetAdsByRegion,
|
|
330
330
|
useGetAffiliate: () => useGetAffiliate,
|
|
331
|
+
useGetAffiliateResourceByAffiliateIdAndResourceId: () => useGetAffiliateResourceByAffiliateIdAndResourceId,
|
|
331
332
|
useGetAffiliates: () => useGetAffiliates,
|
|
332
333
|
useGetAppSettings: () => useGetAppSettings,
|
|
333
334
|
useGetChat: () => useGetChat,
|
|
@@ -8533,6 +8534,20 @@ var GET_AFFILIATES = import_client74.gql`
|
|
|
8533
8534
|
}
|
|
8534
8535
|
${AFFILIATE_FIELDS_FRAGMENT}
|
|
8535
8536
|
`;
|
|
8537
|
+
var GET_AFFILIATE_RESOURCE_BY_AFFILIATE_ID_AND_RESOURCE_ID = import_client74.gql`
|
|
8538
|
+
query getAffiliateResourceByAffiliateIdAndResourceId(
|
|
8539
|
+
$affiliateId: ID!
|
|
8540
|
+
$resourceId: ID!
|
|
8541
|
+
) {
|
|
8542
|
+
affiliateResourceByAffiliateIdAndResourceId(
|
|
8543
|
+
affiliateId: $affiliateId
|
|
8544
|
+
resourceId: $resourceId
|
|
8545
|
+
) {
|
|
8546
|
+
...AffiliateResourceFields
|
|
8547
|
+
}
|
|
8548
|
+
}
|
|
8549
|
+
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
8550
|
+
`;
|
|
8536
8551
|
|
|
8537
8552
|
// src/graphql/hooks/affiliate/hooksQuery.ts
|
|
8538
8553
|
var useGetAffiliate = (_id) => {
|
|
@@ -8561,6 +8576,20 @@ var useGetAffiliates = () => {
|
|
|
8561
8576
|
refetch
|
|
8562
8577
|
};
|
|
8563
8578
|
};
|
|
8579
|
+
var useGetAffiliateResourceByAffiliateIdAndResourceId = (affiliateId, resourceId) => {
|
|
8580
|
+
const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE_RESOURCE_BY_AFFILIATE_ID_AND_RESOURCE_ID, {
|
|
8581
|
+
fetchPolicy: "network-only",
|
|
8582
|
+
skip: !affiliateId || affiliateId === "" || !resourceId || resourceId === "",
|
|
8583
|
+
variables: { affiliateId, resourceId }
|
|
8584
|
+
});
|
|
8585
|
+
const affiliateResource = data?.affiliateResourceByAffiliateIdAndResourceId;
|
|
8586
|
+
return {
|
|
8587
|
+
affiliateResource,
|
|
8588
|
+
error,
|
|
8589
|
+
loading,
|
|
8590
|
+
refetch
|
|
8591
|
+
};
|
|
8592
|
+
};
|
|
8564
8593
|
|
|
8565
8594
|
// src/graphql/hooks/affiliate/hooksMutation.ts
|
|
8566
8595
|
var import_client77 = require("@apollo/client");
|
|
@@ -9341,6 +9370,7 @@ var fonts = {
|
|
|
9341
9370
|
useGetAds,
|
|
9342
9371
|
useGetAdsByRegion,
|
|
9343
9372
|
useGetAffiliate,
|
|
9373
|
+
useGetAffiliateResourceByAffiliateIdAndResourceId,
|
|
9344
9374
|
useGetAffiliates,
|
|
9345
9375
|
useGetAppSettings,
|
|
9346
9376
|
useGetChat,
|