@timardex/cluemart-shared 2.0.14 → 2.0.16
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-C6QfVk6L.d.ts → ad-B4Acy8eW.d.ts} +5 -1
- package/dist/{ad-Dm8ht5tc.d.mts → ad-D_5m292R.d.mts} +5 -1
- package/dist/{chunk-VHYU2BPC.mjs → chunk-E23D3LUI.mjs} +2 -2
- package/dist/{chunk-BO7IQ33V.mjs → chunk-PSP5KDHQ.mjs} +9 -5
- package/dist/chunk-PSP5KDHQ.mjs.map +1 -0
- package/dist/{chunk-XU65BXAM.mjs → chunk-TJJ6XKJY.mjs} +7 -1
- package/dist/chunk-TJJ6XKJY.mjs.map +1 -0
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +8 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +6 -2
- 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 +3 -3
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +7 -0
- 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 +3 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-BO7IQ33V.mjs.map +0 -1
- package/dist/chunk-XU65BXAM.mjs.map +0 -1
- /package/dist/{chunk-VHYU2BPC.mjs.map → chunk-E23D3LUI.mjs.map} +0 -0
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LocationType, p as VendorFormData, q as CreateVendorFormData, r as VendorInfoFormData, s as CreateVendorInfoFormData, t as UnregisteredVendorFormData, u as CreateUnregisteredVendorFormData, v as EventFormData, w as CreateEventFormData, x as EventInfoFormData, y as CreateEventInfoFormData, B as BaseResourceTypeFormData, z as PostFormData, A as CreatePostFormData, D as CouponDefaultsFormData, H as CreateCouponFormData } from '../global-DwPcHR4_.mjs';
|
|
2
2
|
import { e as UserFormData, C as CreateUserFormData } from '../user-Ml-C8k8S.mjs';
|
|
3
|
-
import { C as CreateLoginFormData,
|
|
3
|
+
import { C as CreateLoginFormData, e as CreateRegisterFormData, f as CreateRequestPasswordResetFormData, g as CreateValidateVerificationTokenFormData, h as CreateResetPasswordFormData, i as PartnerFormData, j as AdFormData, k as CreateAdFormState, l as CreatePartnerFormData, m as AppSettingsFormData, n as CreateAppSettingsFormData, o as SchoolFormData, p as CreateSchoolFormData } from '../ad-D_5m292R.mjs';
|
|
4
4
|
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-6NsbC06m.mjs';
|
|
5
5
|
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DcSnfzb5.mjs';
|
|
6
6
|
import 'react-hook-form';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LocationType, p as VendorFormData, q as CreateVendorFormData, r as VendorInfoFormData, s as CreateVendorInfoFormData, t as UnregisteredVendorFormData, u as CreateUnregisteredVendorFormData, v as EventFormData, w as CreateEventFormData, x as EventInfoFormData, y as CreateEventInfoFormData, B as BaseResourceTypeFormData, z as PostFormData, A as CreatePostFormData, D as CouponDefaultsFormData, H as CreateCouponFormData } from '../global-s3frnbGC.js';
|
|
2
2
|
import { e as UserFormData, C as CreateUserFormData } from '../user-CteW0WdG.js';
|
|
3
|
-
import { C as CreateLoginFormData,
|
|
3
|
+
import { C as CreateLoginFormData, e as CreateRegisterFormData, f as CreateRequestPasswordResetFormData, g as CreateValidateVerificationTokenFormData, h as CreateResetPasswordFormData, i as PartnerFormData, j as AdFormData, k as CreateAdFormState, l as CreatePartnerFormData, m as AppSettingsFormData, n as CreateAppSettingsFormData, o as SchoolFormData, p as CreateSchoolFormData } from '../ad-B4Acy8eW.js';
|
|
4
4
|
import { a as AffiliateFormData, A as AffiliateType, C as CreateAffiliateFormData } from '../affiliate-CYnVduRf.js';
|
|
5
5
|
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DYgB9q7k.js';
|
|
6
6
|
import 'react-hook-form';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
8
8
|
isValidIrdNumber,
|
|
9
9
|
normalizeUrl
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-E23D3LUI.mjs";
|
|
11
11
|
import {
|
|
12
12
|
dateFormat,
|
|
13
13
|
timeFormat
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
EnumAffiliateParticipantType,
|
|
21
21
|
EnumPostContentType,
|
|
22
22
|
EnumPostType
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-TJJ6XKJY.mjs";
|
|
24
24
|
import "../chunk-RAYUJODN.mjs";
|
|
25
25
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-PSP5KDHQ.mjs";
|
|
27
27
|
import "../chunk-ZSSVU6GY.mjs";
|
|
28
28
|
import "../chunk-7DQBUZXY.mjs";
|
|
29
29
|
import {
|
package/dist/index.cjs
CHANGED
|
@@ -58,6 +58,7 @@ __export(index_exports, {
|
|
|
58
58
|
EnumAdBookingState: () => EnumAdBookingState,
|
|
59
59
|
EnumAdEntitlementSource: () => EnumAdEntitlementSource,
|
|
60
60
|
EnumAdPaymentStatus: () => EnumAdPaymentStatus,
|
|
61
|
+
EnumAdPlatform: () => EnumAdPlatform,
|
|
61
62
|
EnumAdShowOn: () => EnumAdShowOn,
|
|
62
63
|
EnumAdStatus: () => EnumAdStatus,
|
|
63
64
|
EnumAdStyle: () => EnumAdStyle,
|
|
@@ -1480,6 +1481,11 @@ var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
|
1480
1481
|
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
1481
1482
|
return EnumAdShowOn2;
|
|
1482
1483
|
})(EnumAdShowOn || {});
|
|
1484
|
+
var EnumAdPlatform = /* @__PURE__ */ ((EnumAdPlatform2) => {
|
|
1485
|
+
EnumAdPlatform2["MOBILE"] = "mobile";
|
|
1486
|
+
EnumAdPlatform2["WEB"] = "web";
|
|
1487
|
+
return EnumAdPlatform2;
|
|
1488
|
+
})(EnumAdPlatform || {});
|
|
1483
1489
|
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
1484
1490
|
EnumAdStatus2["ACTIVE"] = "Active";
|
|
1485
1491
|
EnumAdStatus2["PAUSED"] = "Paused";
|
|
@@ -7371,8 +7377,12 @@ var GET_AD = import_client44.gql`
|
|
|
7371
7377
|
${AD_FIELDS_FRAGMENT}
|
|
7372
7378
|
`;
|
|
7373
7379
|
var GET_ADS_BY_REGION = import_client44.gql`
|
|
7374
|
-
query getAdsByRegion(
|
|
7375
|
-
|
|
7380
|
+
query getAdsByRegion(
|
|
7381
|
+
$region: String!
|
|
7382
|
+
$platform: AdPlatformEnum!
|
|
7383
|
+
$status: AdStatusTypeEnum
|
|
7384
|
+
) {
|
|
7385
|
+
adsByRegion(region: $region, platform: $platform, status: $status) {
|
|
7376
7386
|
...AdFields
|
|
7377
7387
|
}
|
|
7378
7388
|
}
|
|
@@ -7475,11 +7485,11 @@ var useGetAd = (_id) => {
|
|
|
7475
7485
|
refetch
|
|
7476
7486
|
};
|
|
7477
7487
|
};
|
|
7478
|
-
var useGetAdsByRegion = (region, status) => {
|
|
7488
|
+
var useGetAdsByRegion = (region, platform, status) => {
|
|
7479
7489
|
const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
|
|
7480
7490
|
fetchPolicy: "no-cache",
|
|
7481
7491
|
skip: !region || region === "",
|
|
7482
|
-
variables: { region, status }
|
|
7492
|
+
variables: { platform, region, status }
|
|
7483
7493
|
});
|
|
7484
7494
|
return {
|
|
7485
7495
|
adsByRegion: data?.adsByRegion || [],
|
|
@@ -9947,6 +9957,7 @@ function canAccessAdminPath(roles, pathname) {
|
|
|
9947
9957
|
EnumAdBookingState,
|
|
9948
9958
|
EnumAdEntitlementSource,
|
|
9949
9959
|
EnumAdPaymentStatus,
|
|
9960
|
+
EnumAdPlatform,
|
|
9950
9961
|
EnumAdShowOn,
|
|
9951
9962
|
EnumAdStatus,
|
|
9952
9963
|
EnumAdStyle,
|