@timardex/cluemart-shared 2.0.8 → 2.0.9
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-5VWHW2EM.mjs → chunk-ZEFKXKEO.mjs} +23 -1
- package/dist/chunk-ZEFKXKEO.mjs.map +1 -0
- package/dist/graphql/index.cjs +23 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -2
- package/dist/graphql/index.d.ts +11 -2
- package/dist/graphql/index.mjs +3 -1
- package/dist/hooks/index.cjs +13 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5VWHW2EM.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "../chunk-L45XTF3X.mjs";
|
|
24
24
|
import "../chunk-RAYUJODN.mjs";
|
|
25
25
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-ZEFKXKEO.mjs";
|
|
27
27
|
import "../chunk-JOA6W4SP.mjs";
|
|
28
28
|
import "../chunk-7DQBUZXY.mjs";
|
|
29
29
|
import {
|
package/dist/index.cjs
CHANGED
|
@@ -363,6 +363,7 @@ __export(index_exports, {
|
|
|
363
363
|
useAdminPermanentlyDeleteResource: () => useAdminPermanentlyDeleteResource,
|
|
364
364
|
useAdminResendUserVerificationEmail: () => useAdminResendUserVerificationEmail,
|
|
365
365
|
useAdminUpdateResourceType: () => useAdminUpdateResourceType,
|
|
366
|
+
useAdminUpdateUserVendorLicense: () => useAdminUpdateUserVendorLicense,
|
|
366
367
|
useAssignAffiliateBonusReward: () => useAssignAffiliateBonusReward,
|
|
367
368
|
useAssignAffiliateResourceReward: () => useAssignAffiliateResourceReward,
|
|
368
369
|
useCancelSubscription: () => useCancelSubscription,
|
|
@@ -5468,6 +5469,19 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client12.gql`
|
|
|
5468
5469
|
}
|
|
5469
5470
|
}
|
|
5470
5471
|
`;
|
|
5472
|
+
var ADMIN_UPDATE_USER_VENDOR_LICENSE_MUTATION = import_client12.gql`
|
|
5473
|
+
mutation adminUpdateUserVendorLicense(
|
|
5474
|
+
$input: AdminUpdateUserVendorLicenseInputType!
|
|
5475
|
+
) {
|
|
5476
|
+
adminUpdateUserVendorLicense(input: $input) {
|
|
5477
|
+
data {
|
|
5478
|
+
...UserFields
|
|
5479
|
+
}
|
|
5480
|
+
message
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
${USER_FIELDS_FRAGMENT}
|
|
5484
|
+
`;
|
|
5471
5485
|
|
|
5472
5486
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
5473
5487
|
var useAdminUpdateResourceType = () => {
|
|
@@ -5509,6 +5523,14 @@ var useAdminPermanentlyDeleteResource = () => {
|
|
|
5509
5523
|
loading
|
|
5510
5524
|
};
|
|
5511
5525
|
};
|
|
5526
|
+
var useAdminUpdateUserVendorLicense = () => {
|
|
5527
|
+
const [adminUpdateUserVendorLicense, { loading, error }] = (0, import_client13.useMutation)(ADMIN_UPDATE_USER_VENDOR_LICENSE_MUTATION);
|
|
5528
|
+
return {
|
|
5529
|
+
adminUpdateUserVendorLicense,
|
|
5530
|
+
error,
|
|
5531
|
+
loading
|
|
5532
|
+
};
|
|
5533
|
+
};
|
|
5512
5534
|
|
|
5513
5535
|
// src/graphql/hooks/auth.ts
|
|
5514
5536
|
var import_client15 = require("@apollo/client");
|
|
@@ -10207,6 +10229,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
10207
10229
|
useAdminPermanentlyDeleteResource,
|
|
10208
10230
|
useAdminResendUserVerificationEmail,
|
|
10209
10231
|
useAdminUpdateResourceType,
|
|
10232
|
+
useAdminUpdateUserVendorLicense,
|
|
10210
10233
|
useAssignAffiliateBonusReward,
|
|
10211
10234
|
useAssignAffiliateResourceReward,
|
|
10212
10235
|
useCancelSubscription,
|