@timardex/cluemart-shared 1.5.640 → 1.5.701
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/{post-DNAoYkrb.d.ts → auth-Cp3BRIVM.d.ts} +64 -12
- package/dist/{post-CnUaLo8U.d.mts → auth-Dvp1IEH_.d.mts} +64 -12
- package/dist/{chunk-3NBZGJZM.mjs → chunk-BRJDMHB7.mjs} +4 -3
- package/dist/chunk-BRJDMHB7.mjs.map +1 -0
- package/dist/{chunk-Q6R4US6G.mjs → chunk-JBHXZ3PH.mjs} +15 -10
- package/dist/chunk-JBHXZ3PH.mjs.map +1 -0
- package/dist/{chunk-FGRAXDMS.mjs → chunk-NS3JTI3E.mjs} +90 -5
- package/dist/chunk-NS3JTI3E.mjs.map +1 -0
- package/dist/{chunk-UVOBCEHA.mjs → chunk-QJI4BF4B.mjs} +2 -2
- package/dist/{chunk-WVUM6765.mjs → chunk-XGX7SV5N.mjs} +1 -1
- package/dist/chunk-XGX7SV5N.mjs.map +1 -0
- package/dist/contactUs-B6lQQq-x.d.mts +11 -0
- package/dist/contactUs-DA3p41Uq.d.ts +11 -0
- 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 -3
- package/dist/{global-C0oWABvh.d.ts → global-585slmSH.d.ts} +11 -6
- package/dist/{global-DkXf399E.d.mts → global-BEUzBSyY.d.mts} +11 -6
- package/dist/graphql/index.cjs +14 -9
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +30 -18
- package/dist/graphql/index.d.ts +30 -18
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +47 -41
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.mjs +35 -39
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +53 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +191 -150
- package/dist/index.d.ts +191 -150
- package/dist/index.mjs +51 -44
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-M-23xcpt.d.mts → resourceActivities-CZqXBve8.d.mts} +7 -7
- package/dist/{resourceActivities-CpGhukwk.d.ts → resourceActivities-CjJdhVR7.d.ts} +7 -7
- package/dist/sharing/index.cjs +184 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +4 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +17 -8
- package/dist/types/index.d.ts +17 -8
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +6 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -2
- package/dist/utils/index.d.ts +4 -2
- package/dist/utils/index.mjs +15 -13
- package/package.json +1 -1
- package/dist/auth-BHqJ27id.d.ts +0 -51
- package/dist/auth-BJpF_-cS.d.mts +0 -51
- package/dist/chunk-3NBZGJZM.mjs.map +0 -1
- package/dist/chunk-FGRAXDMS.mjs.map +0 -1
- package/dist/chunk-Q6R4US6G.mjs.map +0 -1
- package/dist/chunk-WVUM6765.mjs.map +0 -1
- package/dist/chunk-X4VPNOHX.mjs +0 -88
- package/dist/chunk-X4VPNOHX.mjs.map +0 -1
- /package/dist/{chunk-UVOBCEHA.mjs.map → chunk-QJI4BF4B.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import 'react-hook-form';
|
|
3
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, P as PartnerType, a as ResourceByUser, b as AdType, E as EnumAdStatus, c as SubscriptionPlansResponse, d as SubscriptionStatusData, e as PostType, f as EnumPostType, g as AppSettingsType, G as GameDocType, h as GameLeaderboard, i as SchoolReturnType, j as SchoolType } from '../auth-Dvp1IEH_.mjs';
|
|
4
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
|
|
5
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-BEUzBSyY.mjs';
|
|
7
6
|
import '../images/index.mjs';
|
|
8
7
|
import '../dailyClue-D7Df-qCO.mjs';
|
|
8
|
+
import 'react-hook-form';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
|
11
11
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
|
|
@@ -36,12 +36,20 @@ declare const useAdminPermanentlyDeleteResource: () => {
|
|
|
36
36
|
declare const useRegister: () => {
|
|
37
37
|
error: _apollo_client.ApolloError | undefined;
|
|
38
38
|
loading: boolean;
|
|
39
|
-
register: (options?: _apollo_client.MutationFunctionOptions<
|
|
39
|
+
register: (options?: _apollo_client.MutationFunctionOptions<{
|
|
40
|
+
register: AuthPayloadType;
|
|
41
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
42
|
+
register: AuthPayloadType;
|
|
43
|
+
}>>;
|
|
40
44
|
};
|
|
41
45
|
declare const useLogin: () => {
|
|
42
46
|
error: _apollo_client.ApolloError | undefined;
|
|
43
47
|
loading: boolean;
|
|
44
|
-
login: (options?: _apollo_client.MutationFunctionOptions<
|
|
48
|
+
login: (options?: _apollo_client.MutationFunctionOptions<{
|
|
49
|
+
login: AuthPayloadType;
|
|
50
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
51
|
+
login: AuthPayloadType;
|
|
52
|
+
}>>;
|
|
45
53
|
};
|
|
46
54
|
declare const useLogout: () => {
|
|
47
55
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -51,7 +59,11 @@ declare const useLogout: () => {
|
|
|
51
59
|
declare const useRefreshToken: () => {
|
|
52
60
|
error: _apollo_client.ApolloError | undefined;
|
|
53
61
|
loading: boolean;
|
|
54
|
-
refreshToken: (options?: _apollo_client.MutationFunctionOptions<
|
|
62
|
+
refreshToken: (options?: _apollo_client.MutationFunctionOptions<{
|
|
63
|
+
refreshToken: RefreshTokenPayloadType;
|
|
64
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
65
|
+
refreshToken: RefreshTokenPayloadType;
|
|
66
|
+
}>>;
|
|
55
67
|
};
|
|
56
68
|
declare const useRequestPasswordReset: () => {
|
|
57
69
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -602,7 +614,11 @@ declare const useGetUnregisteredVendor: (_id: string) => {
|
|
|
602
614
|
};
|
|
603
615
|
|
|
604
616
|
declare const useCreateUser: () => {
|
|
605
|
-
createUser: (options?: _apollo_client.MutationFunctionOptions<
|
|
617
|
+
createUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
618
|
+
createUser: SafeUserType;
|
|
619
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
620
|
+
createUser: SafeUserType;
|
|
621
|
+
}>>;
|
|
606
622
|
error: _apollo_client.ApolloError | undefined;
|
|
607
623
|
loading: boolean;
|
|
608
624
|
};
|
|
@@ -610,13 +626,9 @@ declare const useUpdateUser: () => {
|
|
|
610
626
|
error: _apollo_client.ApolloError | undefined;
|
|
611
627
|
loading: boolean;
|
|
612
628
|
updateUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
613
|
-
updateUser:
|
|
614
|
-
_id: string;
|
|
615
|
-
};
|
|
629
|
+
updateUser: SafeUserType;
|
|
616
630
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
617
|
-
updateUser:
|
|
618
|
-
_id: string;
|
|
619
|
-
};
|
|
631
|
+
updateUser: SafeUserType;
|
|
620
632
|
}>>;
|
|
621
633
|
};
|
|
622
634
|
declare const useDeleteUser: () => {
|
|
@@ -686,17 +698,17 @@ declare const useGetUsers: () => {
|
|
|
686
698
|
error: _apollo_client.ApolloError | undefined;
|
|
687
699
|
loading: boolean;
|
|
688
700
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
689
|
-
users:
|
|
701
|
+
users: SafeUserType[];
|
|
690
702
|
}>>;
|
|
691
|
-
users:
|
|
703
|
+
users: SafeUserType[];
|
|
692
704
|
};
|
|
693
705
|
declare const useGetUser: (_id: string) => {
|
|
694
706
|
error: _apollo_client.ApolloError | undefined;
|
|
695
707
|
loading: boolean;
|
|
696
708
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
697
|
-
user:
|
|
709
|
+
user: SafeUserType;
|
|
698
710
|
}>>;
|
|
699
|
-
user:
|
|
711
|
+
user: SafeUserType | undefined;
|
|
700
712
|
};
|
|
701
713
|
declare const useGetUserEvents: () => {
|
|
702
714
|
error: _apollo_client.ApolloError | undefined;
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import 'react-hook-form';
|
|
3
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, P as PartnerType, a as ResourceByUser, b as AdType, E as EnumAdStatus, c as SubscriptionPlansResponse, d as SubscriptionStatusData, e as PostType, f as EnumPostType, g as AppSettingsType, G as GameDocType, h as GameLeaderboard, i as SchoolReturnType, j as SchoolType } from '../auth-Cp3BRIVM.js';
|
|
4
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
|
|
5
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-585slmSH.js';
|
|
7
6
|
import '../images/index.js';
|
|
8
7
|
import '../dailyClue-D7Df-qCO.js';
|
|
8
|
+
import 'react-hook-form';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
|
11
11
|
adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
|
|
@@ -36,12 +36,20 @@ declare const useAdminPermanentlyDeleteResource: () => {
|
|
|
36
36
|
declare const useRegister: () => {
|
|
37
37
|
error: _apollo_client.ApolloError | undefined;
|
|
38
38
|
loading: boolean;
|
|
39
|
-
register: (options?: _apollo_client.MutationFunctionOptions<
|
|
39
|
+
register: (options?: _apollo_client.MutationFunctionOptions<{
|
|
40
|
+
register: AuthPayloadType;
|
|
41
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
42
|
+
register: AuthPayloadType;
|
|
43
|
+
}>>;
|
|
40
44
|
};
|
|
41
45
|
declare const useLogin: () => {
|
|
42
46
|
error: _apollo_client.ApolloError | undefined;
|
|
43
47
|
loading: boolean;
|
|
44
|
-
login: (options?: _apollo_client.MutationFunctionOptions<
|
|
48
|
+
login: (options?: _apollo_client.MutationFunctionOptions<{
|
|
49
|
+
login: AuthPayloadType;
|
|
50
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
51
|
+
login: AuthPayloadType;
|
|
52
|
+
}>>;
|
|
45
53
|
};
|
|
46
54
|
declare const useLogout: () => {
|
|
47
55
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -51,7 +59,11 @@ declare const useLogout: () => {
|
|
|
51
59
|
declare const useRefreshToken: () => {
|
|
52
60
|
error: _apollo_client.ApolloError | undefined;
|
|
53
61
|
loading: boolean;
|
|
54
|
-
refreshToken: (options?: _apollo_client.MutationFunctionOptions<
|
|
62
|
+
refreshToken: (options?: _apollo_client.MutationFunctionOptions<{
|
|
63
|
+
refreshToken: RefreshTokenPayloadType;
|
|
64
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
65
|
+
refreshToken: RefreshTokenPayloadType;
|
|
66
|
+
}>>;
|
|
55
67
|
};
|
|
56
68
|
declare const useRequestPasswordReset: () => {
|
|
57
69
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -602,7 +614,11 @@ declare const useGetUnregisteredVendor: (_id: string) => {
|
|
|
602
614
|
};
|
|
603
615
|
|
|
604
616
|
declare const useCreateUser: () => {
|
|
605
|
-
createUser: (options?: _apollo_client.MutationFunctionOptions<
|
|
617
|
+
createUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
618
|
+
createUser: SafeUserType;
|
|
619
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
620
|
+
createUser: SafeUserType;
|
|
621
|
+
}>>;
|
|
606
622
|
error: _apollo_client.ApolloError | undefined;
|
|
607
623
|
loading: boolean;
|
|
608
624
|
};
|
|
@@ -610,13 +626,9 @@ declare const useUpdateUser: () => {
|
|
|
610
626
|
error: _apollo_client.ApolloError | undefined;
|
|
611
627
|
loading: boolean;
|
|
612
628
|
updateUser: (options?: _apollo_client.MutationFunctionOptions<{
|
|
613
|
-
updateUser:
|
|
614
|
-
_id: string;
|
|
615
|
-
};
|
|
629
|
+
updateUser: SafeUserType;
|
|
616
630
|
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
617
|
-
updateUser:
|
|
618
|
-
_id: string;
|
|
619
|
-
};
|
|
631
|
+
updateUser: SafeUserType;
|
|
620
632
|
}>>;
|
|
621
633
|
};
|
|
622
634
|
declare const useDeleteUser: () => {
|
|
@@ -686,17 +698,17 @@ declare const useGetUsers: () => {
|
|
|
686
698
|
error: _apollo_client.ApolloError | undefined;
|
|
687
699
|
loading: boolean;
|
|
688
700
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
689
|
-
users:
|
|
701
|
+
users: SafeUserType[];
|
|
690
702
|
}>>;
|
|
691
|
-
users:
|
|
703
|
+
users: SafeUserType[];
|
|
692
704
|
};
|
|
693
705
|
declare const useGetUser: (_id: string) => {
|
|
694
706
|
error: _apollo_client.ApolloError | undefined;
|
|
695
707
|
loading: boolean;
|
|
696
708
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
697
|
-
user:
|
|
709
|
+
user: SafeUserType;
|
|
698
710
|
}>>;
|
|
699
|
-
user:
|
|
711
|
+
user: SafeUserType | undefined;
|
|
700
712
|
};
|
|
701
713
|
declare const useGetUserEvents: () => {
|
|
702
714
|
error: _apollo_client.ApolloError | undefined;
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -443,6 +443,7 @@ var cluemartSocialMedia = [
|
|
|
443
443
|
name: "youtube" /* YOUTUBE */
|
|
444
444
|
}
|
|
445
445
|
];
|
|
446
|
+
var CLUEMART_MAIN_DOMAIN_URL = "https://cluemart.co.nz";
|
|
446
447
|
|
|
447
448
|
// src/utils/school.ts
|
|
448
449
|
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
@@ -902,12 +903,12 @@ var validateVerificationTokenSchema = yup5.object().shape({
|
|
|
902
903
|
var yup6 = __toESM(require("yup"));
|
|
903
904
|
|
|
904
905
|
// src/types/ad.ts
|
|
905
|
-
var EnumAdShowOn = /* @__PURE__ */ ((
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
return
|
|
906
|
+
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
907
|
+
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
908
|
+
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
909
|
+
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
910
|
+
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
911
|
+
return EnumAdShowOn2;
|
|
911
912
|
})(EnumAdShowOn || {});
|
|
912
913
|
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
913
914
|
EnumAdStatus2["ACTIVE"] = "Active";
|
|
@@ -928,15 +929,15 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
|
928
929
|
|
|
929
930
|
// src/yupSchema/ad.ts
|
|
930
931
|
var adResourceSchema = yup6.object({
|
|
931
|
-
adDescription: yup6.string().
|
|
932
|
-
adImage: yup6.string().
|
|
933
|
-
adStyle: yup6.mixed().
|
|
934
|
-
adTitle: yup6.string().
|
|
935
|
-
adType: yup6.mixed().
|
|
936
|
-
resourceId: yup6.string().
|
|
937
|
-
resourceName: yup6.string().
|
|
938
|
-
resourceRegion: yup6.string().
|
|
939
|
-
resourceType: yup6.mixed().
|
|
932
|
+
adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
|
|
933
|
+
adImage: yup6.string().required("Ad image is required"),
|
|
934
|
+
adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
|
|
935
|
+
adTitle: yup6.string().trim().required("Ad title is required").max(30, "Ad title must be at most 30 characters"),
|
|
936
|
+
adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
|
|
937
|
+
resourceId: yup6.string().required("Resource ID is required"),
|
|
938
|
+
resourceName: yup6.string().required("Resource name is required"),
|
|
939
|
+
resourceRegion: yup6.string().required("Resource region is required"),
|
|
940
|
+
resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource type is required")
|
|
940
941
|
});
|
|
941
942
|
var adSchema = yup6.object().shape({
|
|
942
943
|
active: yup6.boolean().required("Active status is required"),
|
|
@@ -966,7 +967,8 @@ var adSchema = yup6.object().shape({
|
|
|
966
967
|
if (!value) return false;
|
|
967
968
|
return value > /* @__PURE__ */ new Date();
|
|
968
969
|
}),
|
|
969
|
-
|
|
970
|
+
// Keep `start` optional (not null) when ACTIVE to match TS type `start?: Date`.
|
|
971
|
+
otherwise: () => yup6.date().notRequired()
|
|
970
972
|
}),
|
|
971
973
|
targetRegion: yup6.array().of(yup6.string().required()).min(1, "At least one target region is required").required("Target region is required")
|
|
972
974
|
});
|
|
@@ -2435,7 +2437,6 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2435
2437
|
platform
|
|
2436
2438
|
preferredRegion
|
|
2437
2439
|
promoCodes
|
|
2438
|
-
refreshToken
|
|
2439
2440
|
role
|
|
2440
2441
|
school
|
|
2441
2442
|
termsAgreement {
|
|
@@ -2687,7 +2688,10 @@ var GET_EVENT_BY_PLACE_ID = import_client3.gql`
|
|
|
2687
2688
|
${EVENT_LIST_ITEM}
|
|
2688
2689
|
`;
|
|
2689
2690
|
var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
2690
|
-
query getEventsByRegion(
|
|
2691
|
+
query getEventsByRegion(
|
|
2692
|
+
$region: String!
|
|
2693
|
+
$options: ResourcesByRegionOptions
|
|
2694
|
+
) {
|
|
2691
2695
|
eventsByRegion(region: $region, options: $options) {
|
|
2692
2696
|
...EventListItemFields
|
|
2693
2697
|
}
|
|
@@ -2695,7 +2699,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
|
2695
2699
|
${EVENT_LIST_ITEM}
|
|
2696
2700
|
`;
|
|
2697
2701
|
var SEARCH_EVENTS = import_client3.gql`
|
|
2698
|
-
query searchEvents($region: String, $search: String
|
|
2702
|
+
query searchEvents($region: String, $search: String, $tags: [String]) {
|
|
2699
2703
|
eventsSearch(region: $region, search: $search, tags: $tags) {
|
|
2700
2704
|
...EventListItemFields
|
|
2701
2705
|
}
|
|
@@ -2922,7 +2926,10 @@ var GET_VENDOR = import_client4.gql`
|
|
|
2922
2926
|
${VENDOR}
|
|
2923
2927
|
`;
|
|
2924
2928
|
var GET_VENDORS_BY_REGION = import_client4.gql`
|
|
2925
|
-
query getVendorsByRegion(
|
|
2929
|
+
query getVendorsByRegion(
|
|
2930
|
+
$region: String!
|
|
2931
|
+
$options: ResourcesByRegionOptions
|
|
2932
|
+
) {
|
|
2926
2933
|
vendorsByRegion(region: $region, options: $options) {
|
|
2927
2934
|
...VendorFields
|
|
2928
2935
|
}
|
|
@@ -3360,7 +3367,10 @@ var GET_PARTNER = import_client16.gql`
|
|
|
3360
3367
|
${PARTNER}
|
|
3361
3368
|
`;
|
|
3362
3369
|
var GET_PARTNERS_BY_REGION = import_client16.gql`
|
|
3363
|
-
query getPartnersByRegion(
|
|
3370
|
+
query getPartnersByRegion(
|
|
3371
|
+
$region: String!
|
|
3372
|
+
$options: ResourcesByRegionOptions
|
|
3373
|
+
) {
|
|
3364
3374
|
partnersByRegion(region: $region, options: $options) {
|
|
3365
3375
|
...PartnerFields
|
|
3366
3376
|
}
|
|
@@ -3610,7 +3620,6 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
|
|
|
3610
3620
|
fragment RelationFields on RelationType {
|
|
3611
3621
|
_id
|
|
3612
3622
|
active
|
|
3613
|
-
apiMessage
|
|
3614
3623
|
chatId
|
|
3615
3624
|
createdAt
|
|
3616
3625
|
lastUpdateBy
|
|
@@ -4791,7 +4800,7 @@ var RELATION_SHARE_INVITATION = "invitation";
|
|
|
4791
4800
|
var RELATION_SHARE_APPLICATION = "application";
|
|
4792
4801
|
|
|
4793
4802
|
// src/sharing/constants.ts
|
|
4794
|
-
var SHARE_SITE_URL =
|
|
4803
|
+
var SHARE_SITE_URL = CLUEMART_MAIN_DOMAIN_URL;
|
|
4795
4804
|
var SHARE_CALENDAR_ICON = "\u{1F4C5}";
|
|
4796
4805
|
var SHARE_MARKET_DATES_SECTION_HEADING = `${SHARE_CALENDAR_ICON} Market dates:`;
|
|
4797
4806
|
var SHARE_CHECKMARK_ICON = "\u2705";
|
|
@@ -5758,26 +5767,23 @@ var import_react2 = __toESM(require("react"));
|
|
|
5758
5767
|
var import_react_hook_form13 = require("react-hook-form");
|
|
5759
5768
|
var defaultValues8 = {
|
|
5760
5769
|
active: true,
|
|
5761
|
-
|
|
5770
|
+
// Use a future default so yup "future date" rules pass on first submit.
|
|
5771
|
+
end: new Date(Date.now() + 7 * 24 * 60 * 60 * 1e3),
|
|
5762
5772
|
resource: {
|
|
5763
|
-
adDescription:
|
|
5764
|
-
adImage:
|
|
5765
|
-
adStyle:
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
resourceRegion: null,
|
|
5773
|
-
resourceType: null
|
|
5774
|
-
// default to event
|
|
5773
|
+
adDescription: "",
|
|
5774
|
+
adImage: "",
|
|
5775
|
+
adStyle: "Bloom" /* BLOOM */,
|
|
5776
|
+
adTitle: "",
|
|
5777
|
+
adType: "Sponsored" /* SPONSORED */,
|
|
5778
|
+
resourceId: "",
|
|
5779
|
+
resourceName: "",
|
|
5780
|
+
resourceRegion: "",
|
|
5781
|
+
resourceType: "event" /* EVENT */
|
|
5775
5782
|
},
|
|
5776
|
-
showOn: [""],
|
|
5777
|
-
//
|
|
5778
|
-
start:
|
|
5779
|
-
status: "
|
|
5780
|
-
// default to paused
|
|
5783
|
+
showOn: ["Front_page" /* FRONT_PAGE */],
|
|
5784
|
+
// `start` is only required (and must be future) when status !== ACTIVE.
|
|
5785
|
+
start: void 0,
|
|
5786
|
+
status: "Active" /* ACTIVE */,
|
|
5781
5787
|
targetRegion: []
|
|
5782
5788
|
};
|
|
5783
5789
|
function useAdForm(data) {
|