@timardex/cluemart-shared 1.6.130 → 1.7.1

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.
Files changed (129) hide show
  1. package/dist/ad-BUYzE6zx.d.ts +181 -0
  2. package/dist/ad-BhLoEul3.d.mts +181 -0
  3. package/dist/affiliate-BbtjeUP4.d.mts +73 -0
  4. package/dist/affiliate-C51nzKsw.d.ts +73 -0
  5. package/dist/apollo/index.d.mts +3 -3
  6. package/dist/apollo/index.d.ts +3 -3
  7. package/dist/auth/index.cjs +951 -2546
  8. package/dist/auth/index.cjs.map +1 -1
  9. package/dist/auth/index.d.mts +30 -28
  10. package/dist/auth/index.d.ts +30 -28
  11. package/dist/auth/index.mjs +25 -24
  12. package/dist/auth/index.mjs.map +1 -1
  13. package/dist/chunk-32MKHJTX.mjs +1207 -0
  14. package/dist/chunk-32MKHJTX.mjs.map +1 -0
  15. package/dist/chunk-AYO3E4DM.mjs +224 -0
  16. package/dist/chunk-AYO3E4DM.mjs.map +1 -0
  17. package/dist/chunk-BIJ5NDXW.mjs +962 -0
  18. package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
  19. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  20. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  21. package/dist/chunk-ILILH7E2.mjs +219 -0
  22. package/dist/chunk-ILILH7E2.mjs.map +1 -0
  23. package/dist/{chunk-OHHJ3KJJ.mjs → chunk-LBEJECG3.mjs} +64 -71
  24. package/dist/chunk-LBEJECG3.mjs.map +1 -0
  25. package/dist/chunk-NPFJ2CN2.mjs +109 -0
  26. package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
  27. package/dist/chunk-R6PCFOYO.mjs +3650 -0
  28. package/dist/chunk-R6PCFOYO.mjs.map +1 -0
  29. package/dist/{chunk-NWWKI4PJ.mjs → chunk-SD42WIMV.mjs} +5 -5
  30. package/dist/chunk-SD42WIMV.mjs.map +1 -0
  31. package/dist/chunk-VA5YN2K3.mjs +48 -0
  32. package/dist/chunk-VA5YN2K3.mjs.map +1 -0
  33. package/dist/{chunk-DATBGC2K.mjs → chunk-VPANTTZI.mjs} +23 -108
  34. package/dist/chunk-VPANTTZI.mjs.map +1 -0
  35. package/dist/chunk-X3OLM35T.mjs +278 -0
  36. package/dist/chunk-X3OLM35T.mjs.map +1 -0
  37. package/dist/contactUs--NoohZBu.d.ts +11 -0
  38. package/dist/contactUs-CBWzefUS.d.mts +11 -0
  39. package/dist/enums/index.cjs +229 -2
  40. package/dist/enums/index.cjs.map +1 -1
  41. package/dist/enums/index.d.mts +170 -5
  42. package/dist/enums/index.d.ts +170 -5
  43. package/dist/enums/index.mjs +41 -1
  44. package/dist/formFields/index.cjs +112 -284
  45. package/dist/formFields/index.cjs.map +1 -1
  46. package/dist/formFields/index.d.mts +2 -4
  47. package/dist/formFields/index.d.ts +2 -4
  48. package/dist/formFields/index.mjs +50 -919
  49. package/dist/formFields/index.mjs.map +1 -1
  50. package/dist/global-CUYYxpy2.d.ts +699 -0
  51. package/dist/global-DePDtOFt.d.mts +699 -0
  52. package/dist/graphql/index.cjs +2304 -2872
  53. package/dist/graphql/index.cjs.map +1 -1
  54. package/dist/graphql/index.d.mts +469 -422
  55. package/dist/graphql/index.d.ts +469 -422
  56. package/dist/graphql/index.mjs +160 -2547
  57. package/dist/graphql/index.mjs.map +1 -1
  58. package/dist/hooks/index.cjs +3869 -534
  59. package/dist/hooks/index.cjs.map +1 -1
  60. package/dist/hooks/index.d.mts +9 -10
  61. package/dist/hooks/index.d.ts +9 -10
  62. package/dist/hooks/index.mjs +72 -54
  63. package/dist/hooks/index.mjs.map +1 -1
  64. package/dist/images/index.mjs +21 -86
  65. package/dist/images/index.mjs.map +1 -1
  66. package/dist/index.cjs +4477 -5723
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.mts +1679 -2539
  69. package/dist/index.d.ts +1679 -2539
  70. package/dist/index.mjs +4453 -5682
  71. package/dist/index.mjs.map +1 -1
  72. package/dist/map/index.d.mts +2 -3
  73. package/dist/map/index.d.ts +2 -3
  74. package/dist/resourceActivities-CMUcn2P7.d.ts +130 -0
  75. package/dist/resourceActivities-CwbJFGIp.d.mts +130 -0
  76. package/dist/sharing/index.cjs +19 -23
  77. package/dist/sharing/index.cjs.map +1 -1
  78. package/dist/sharing/index.d.mts +3 -16
  79. package/dist/sharing/index.d.ts +3 -16
  80. package/dist/sharing/index.mjs +29 -183
  81. package/dist/sharing/index.mjs.map +1 -1
  82. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  83. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  84. package/dist/theme/index.mjs +5 -41
  85. package/dist/theme/index.mjs.map +1 -1
  86. package/dist/types/index.cjs +123 -868
  87. package/dist/types/index.cjs.map +1 -1
  88. package/dist/types/index.d.mts +15 -234
  89. package/dist/types/index.d.ts +15 -234
  90. package/dist/types/index.mjs +31 -61
  91. package/dist/user-D47MLFyH.d.ts +134 -0
  92. package/dist/user-DE8edl3u.d.mts +134 -0
  93. package/dist/utils/index.cjs +117 -292
  94. package/dist/utils/index.cjs.map +1 -1
  95. package/dist/utils/index.d.mts +23 -25
  96. package/dist/utils/index.d.ts +23 -25
  97. package/dist/utils/index.mjs +5 -6
  98. package/package.json +3 -10
  99. package/dist/affiliate-Bqqlffw8.d.mts +0 -36
  100. package/dist/affiliate-Btlp5XUp.d.ts +0 -36
  101. package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
  102. package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
  103. package/dist/auth-BOmAO53v.d.ts +0 -169
  104. package/dist/auth-CsITA95p.d.mts +0 -169
  105. package/dist/chunk-DATBGC2K.mjs.map +0 -1
  106. package/dist/chunk-DDHECBJR.mjs +0 -726
  107. package/dist/chunk-DDHECBJR.mjs.map +0 -1
  108. package/dist/chunk-INQCDU24.mjs +0 -139
  109. package/dist/chunk-INQCDU24.mjs.map +0 -1
  110. package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
  111. package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
  112. package/dist/chunk-TOEFAEF2.mjs +0 -69
  113. package/dist/chunk-TOEFAEF2.mjs.map +0 -1
  114. package/dist/chunk-UKW7NZEQ.mjs +0 -2813
  115. package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
  116. package/dist/dailyClue-C6WXY73z.d.mts +0 -105
  117. package/dist/dailyClue-C6WXY73z.d.ts +0 -105
  118. package/dist/event-C9K7CSg4.d.ts +0 -53
  119. package/dist/event-W0NhL5Cd.d.mts +0 -53
  120. package/dist/global-BbSFfYdd.d.ts +0 -181
  121. package/dist/global-C6v9tRji.d.mts +0 -181
  122. package/dist/graphql-CDOfA79A.d.ts +0 -1253
  123. package/dist/graphql-CcvzTs9k.d.mts +0 -1253
  124. package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
  125. package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
  126. package/dist/subscription-Cj_qBA7u.d.mts +0 -20
  127. package/dist/subscription-OiJ50uJb.d.ts +0 -20
  128. package/dist/vendor-DmMi2qmx.d.mts +0 -73
  129. package/dist/vendor-M9hVZlni.d.ts +0 -73
@@ -1,105 +0,0 @@
1
- declare const gameScreenIdentifierList: readonly [{
2
- readonly clue: "Where your actions turn into a timeline.";
3
- readonly id: "activities";
4
- readonly match: "/profile/activities";
5
- }, {
6
- readonly clue: "Where conversations happen without speaking.";
7
- readonly id: "chat";
8
- readonly match: "/profile/chat";
9
- }, {
10
- readonly clue: "The place to redefine who you are.";
11
- readonly id: "edit-profile";
12
- readonly match: "/profile/edit-profile";
13
- }, {
14
- readonly clue: "A single moment worth showing up for.";
15
- readonly id: "single-event";
16
- readonly match: RegExp;
17
- }, {
18
- readonly clue: "What’s happening around you, right now.";
19
- readonly id: "events-near-me";
20
- readonly match: "/events/events-near-me";
21
- }, {
22
- readonly clue: "Where events appear as pins on a map.";
23
- readonly id: "events-map";
24
- readonly match: "/events/events-map";
25
- }, {
26
- readonly clue: "A collection of events worth attending.";
27
- readonly id: "events";
28
- readonly match: "/events";
29
- }, {
30
- readonly clue: "What’s happening in a wider area — not just nearby.";
31
- readonly id: "events-region";
32
- readonly match: RegExp;
33
- }, {
34
- readonly clue: "Where fun becomes a challenge.";
35
- readonly id: "games";
36
- readonly match: "/games";
37
- }, {
38
- readonly clue: "Your starting point for everything.";
39
- readonly id: "home";
40
- readonly match: "/";
41
- }, {
42
- readonly clue: "Where the app whispers what you shouldn’t miss.";
43
- readonly id: "notifications";
44
- readonly match: "/notifications";
45
- }, {
46
- readonly clue: "Where you fine-tune your experience.";
47
- readonly id: "options";
48
- readonly match: "/options";
49
- }, {
50
- readonly clue: "An organisation or creator supporting the community.";
51
- readonly id: "single-partner";
52
- readonly match: RegExp;
53
- }, {
54
- readonly clue: "Organisations and creators supporting the community.";
55
- readonly id: "partners";
56
- readonly match: "/partners";
57
- }, {
58
- readonly clue: "A single published post in full view.";
59
- readonly id: "single-visitor-post";
60
- readonly match: RegExp;
61
- }, {
62
- readonly clue: "Your identity, on display.";
63
- readonly id: "profile";
64
- readonly match: "/profile";
65
- }, {
66
- readonly clue: "One stallholder offering something valuable.";
67
- readonly id: "single-vendor";
68
- readonly match: RegExp;
69
- }, {
70
- readonly clue: "Where every stallholder waits under the right category.";
71
- readonly id: "vendors";
72
- readonly match: "/vendors";
73
- }, {
74
- readonly clue: "Where you browse articles and posts from around the platform.";
75
- readonly id: "visitors";
76
- readonly match: "/visitors";
77
- }];
78
- type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
79
- type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
80
- /**
81
- * Runtime shape used by dailyClueGame.ts utilities.
82
- * Uses JS Date (not ISO string) because it's constructed at runtime.
83
- * Distinct from the generated DailyClueGameDataType which uses string dates.
84
- */
85
- type DailyClueGameData = {
86
- points: number;
87
- streak: number;
88
- gameFields: {
89
- gameDate: {
90
- startDate: Date;
91
- endDate: Date;
92
- };
93
- gameSolution: string;
94
- };
95
- lastFoundDate: Date | null;
96
- letterInfo: {
97
- collected: string[] | null;
98
- solutionShuffled: string[];
99
- todaysClue: GamePlacementClue | null;
100
- todaysLetter: string | null;
101
- todaysPlacement: GamePlacement | null;
102
- };
103
- };
104
-
105
- export { type DailyClueGameData as D, type GamePlacement as G, type GamePlacementClue as a, gameScreenIdentifierList as g };
@@ -1,105 +0,0 @@
1
- declare const gameScreenIdentifierList: readonly [{
2
- readonly clue: "Where your actions turn into a timeline.";
3
- readonly id: "activities";
4
- readonly match: "/profile/activities";
5
- }, {
6
- readonly clue: "Where conversations happen without speaking.";
7
- readonly id: "chat";
8
- readonly match: "/profile/chat";
9
- }, {
10
- readonly clue: "The place to redefine who you are.";
11
- readonly id: "edit-profile";
12
- readonly match: "/profile/edit-profile";
13
- }, {
14
- readonly clue: "A single moment worth showing up for.";
15
- readonly id: "single-event";
16
- readonly match: RegExp;
17
- }, {
18
- readonly clue: "What’s happening around you, right now.";
19
- readonly id: "events-near-me";
20
- readonly match: "/events/events-near-me";
21
- }, {
22
- readonly clue: "Where events appear as pins on a map.";
23
- readonly id: "events-map";
24
- readonly match: "/events/events-map";
25
- }, {
26
- readonly clue: "A collection of events worth attending.";
27
- readonly id: "events";
28
- readonly match: "/events";
29
- }, {
30
- readonly clue: "What’s happening in a wider area — not just nearby.";
31
- readonly id: "events-region";
32
- readonly match: RegExp;
33
- }, {
34
- readonly clue: "Where fun becomes a challenge.";
35
- readonly id: "games";
36
- readonly match: "/games";
37
- }, {
38
- readonly clue: "Your starting point for everything.";
39
- readonly id: "home";
40
- readonly match: "/";
41
- }, {
42
- readonly clue: "Where the app whispers what you shouldn’t miss.";
43
- readonly id: "notifications";
44
- readonly match: "/notifications";
45
- }, {
46
- readonly clue: "Where you fine-tune your experience.";
47
- readonly id: "options";
48
- readonly match: "/options";
49
- }, {
50
- readonly clue: "An organisation or creator supporting the community.";
51
- readonly id: "single-partner";
52
- readonly match: RegExp;
53
- }, {
54
- readonly clue: "Organisations and creators supporting the community.";
55
- readonly id: "partners";
56
- readonly match: "/partners";
57
- }, {
58
- readonly clue: "A single published post in full view.";
59
- readonly id: "single-visitor-post";
60
- readonly match: RegExp;
61
- }, {
62
- readonly clue: "Your identity, on display.";
63
- readonly id: "profile";
64
- readonly match: "/profile";
65
- }, {
66
- readonly clue: "One stallholder offering something valuable.";
67
- readonly id: "single-vendor";
68
- readonly match: RegExp;
69
- }, {
70
- readonly clue: "Where every stallholder waits under the right category.";
71
- readonly id: "vendors";
72
- readonly match: "/vendors";
73
- }, {
74
- readonly clue: "Where you browse articles and posts from around the platform.";
75
- readonly id: "visitors";
76
- readonly match: "/visitors";
77
- }];
78
- type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
79
- type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
80
- /**
81
- * Runtime shape used by dailyClueGame.ts utilities.
82
- * Uses JS Date (not ISO string) because it's constructed at runtime.
83
- * Distinct from the generated DailyClueGameDataType which uses string dates.
84
- */
85
- type DailyClueGameData = {
86
- points: number;
87
- streak: number;
88
- gameFields: {
89
- gameDate: {
90
- startDate: Date;
91
- endDate: Date;
92
- };
93
- gameSolution: string;
94
- };
95
- lastFoundDate: Date | null;
96
- letterInfo: {
97
- collected: string[] | null;
98
- solutionShuffled: string[];
99
- todaysClue: GamePlacementClue | null;
100
- todaysLetter: string | null;
101
- todaysPlacement: GamePlacement | null;
102
- };
103
- };
104
-
105
- export { type DailyClueGameData as D, type GamePlacement as G, type GamePlacementClue as a, gameScreenIdentifierList as g };
@@ -1,53 +0,0 @@
1
- import { D as DateTimeType, E as EventEnumType, L as LocationType, P as PaymentMethodEnumType } from './graphql-CDOfA79A.js';
2
- import { B as BaseResourceTypeFormData, a as CreateFormData } from './global-BbSFfYdd.js';
3
-
4
- type StallType = {
5
- label: string;
6
- price: number;
7
- stallCapacity: number;
8
- };
9
- interface DateTimeWithPriceType extends DateTimeType {
10
- stallTypes: StallType[];
11
- }
12
- type PaymentInfoType = {
13
- accountHolderName?: string;
14
- accountNumber?: string;
15
- link?: string;
16
- paymentMethod: PaymentMethodEnumType;
17
- };
18
- type Requirement = {
19
- category: "Food Safety" | "Environment" | "Operations" | "Legal & Safety";
20
- label: string;
21
- value: boolean;
22
- };
23
- type RefundPolicy = {
24
- category: "Cancelled by Organiser" | "Cancelled by Vendor";
25
- label: string;
26
- value: boolean;
27
- };
28
- interface EventInfoFormData {
29
- _id?: string;
30
- applicationDeadlineHours: number;
31
- dateTime: DateTimeWithPriceType[];
32
- eventId: string;
33
- packInTime: number;
34
- paymentDueHours: number;
35
- paymentInfo: PaymentInfoType[];
36
- refundPolicy: RefundPolicy[];
37
- requirements?: Requirement[];
38
- }
39
- interface EventFormData extends BaseResourceTypeFormData {
40
- claimed?: boolean;
41
- dateTime: DateTimeType[];
42
- eventType: EventEnumType;
43
- googlePlaceId?: string | null;
44
- location: LocationType;
45
- nzbn: string;
46
- provider?: string | null;
47
- rainOrShine: boolean;
48
- tags: string[];
49
- }
50
- type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
51
- type CreateEventFormData = CreateFormData<EventFormData>;
52
-
53
- export type { CreateEventFormData as C, DateTimeWithPriceType as D, EventInfoFormData as E, PaymentInfoType as P, RefundPolicy as R, StallType as S, Requirement as a, EventFormData as b, CreateEventInfoFormData as c };
@@ -1,53 +0,0 @@
1
- import { D as DateTimeType, E as EventEnumType, L as LocationType, P as PaymentMethodEnumType } from './graphql-CcvzTs9k.mjs';
2
- import { B as BaseResourceTypeFormData, a as CreateFormData } from './global-C6v9tRji.mjs';
3
-
4
- type StallType = {
5
- label: string;
6
- price: number;
7
- stallCapacity: number;
8
- };
9
- interface DateTimeWithPriceType extends DateTimeType {
10
- stallTypes: StallType[];
11
- }
12
- type PaymentInfoType = {
13
- accountHolderName?: string;
14
- accountNumber?: string;
15
- link?: string;
16
- paymentMethod: PaymentMethodEnumType;
17
- };
18
- type Requirement = {
19
- category: "Food Safety" | "Environment" | "Operations" | "Legal & Safety";
20
- label: string;
21
- value: boolean;
22
- };
23
- type RefundPolicy = {
24
- category: "Cancelled by Organiser" | "Cancelled by Vendor";
25
- label: string;
26
- value: boolean;
27
- };
28
- interface EventInfoFormData {
29
- _id?: string;
30
- applicationDeadlineHours: number;
31
- dateTime: DateTimeWithPriceType[];
32
- eventId: string;
33
- packInTime: number;
34
- paymentDueHours: number;
35
- paymentInfo: PaymentInfoType[];
36
- refundPolicy: RefundPolicy[];
37
- requirements?: Requirement[];
38
- }
39
- interface EventFormData extends BaseResourceTypeFormData {
40
- claimed?: boolean;
41
- dateTime: DateTimeType[];
42
- eventType: EventEnumType;
43
- googlePlaceId?: string | null;
44
- location: LocationType;
45
- nzbn: string;
46
- provider?: string | null;
47
- rainOrShine: boolean;
48
- tags: string[];
49
- }
50
- type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
51
- type CreateEventFormData = CreateFormData<EventFormData>;
52
-
53
- export type { CreateEventFormData as C, DateTimeWithPriceType as D, EventInfoFormData as E, PaymentInfoType as P, RefundPolicy as R, StallType as S, Requirement as a, EventFormData as b, CreateEventInfoFormData as c };
@@ -1,181 +0,0 @@
1
- import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { c as EventListItemType, d as VendorType, e as LicencesEnumType, S as SocialMediaEnumType, R as ResourceImageType, D as DateTimeType, E as EventEnumType, L as LocationType, f as ResourceTypeEnum, g as PostTypeEnum } from './graphql-CDOfA79A.js';
3
-
4
- declare const PROMO_CODE_PREFIX = "CM-";
5
- type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
6
- type Nullable<T> = {
7
- [K in keyof T]: T[K] | null | undefined;
8
- };
9
- /** Uniform mutation response envelope used across GraphQL mutations. */
10
- type MutationResponse<T> = {
11
- data: T | null;
12
- message: string | null;
13
- };
14
- type DeviceInfo = {
15
- appBuildNumber: string;
16
- appId: string;
17
- appVersion: string;
18
- brand: string;
19
- deviceName: string;
20
- installationId: string;
21
- manufacturer: string;
22
- modelName: string;
23
- osName: string;
24
- osVersion: string;
25
- timestamp: string;
26
- };
27
- type TermsAgreement = DeviceInfo & {
28
- termVersion: string;
29
- };
30
- type ResourceContactDetailsType = {
31
- email?: string | null;
32
- landlinePhone?: string | null;
33
- mobilePhone?: string | null;
34
- };
35
- /** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */
36
- type SocialMediaType = {
37
- name?: SocialMediaEnumType;
38
- link?: string;
39
- };
40
- type UserLicenceType = {
41
- expiryDate: Date;
42
- issuedDate: Date;
43
- licenceType: LicencesEnumType;
44
- prevLicenceType?: LicencesEnumType | null;
45
- };
46
- type OwnerType = {
47
- email: string;
48
- userId: string;
49
- };
50
- interface BaseResourceTypeFormData {
51
- _id?: string;
52
- active: boolean;
53
- contactDetails: ResourceContactDetailsType | null;
54
- cover: ResourceImageType;
55
- coverUpload?: ResourceImageType | null;
56
- description: string;
57
- images?: ResourceImageType[] | null;
58
- imagesUpload?: ResourceImageType[] | null;
59
- logo?: ResourceImageType | null;
60
- logoUpload?: ResourceImageType | null;
61
- name: string;
62
- promoCodes?: PromoCodeType[] | null;
63
- region: string;
64
- socialMedia: SocialMediaType[] | null;
65
- termsAgreement?: TermsAgreement | null;
66
- }
67
- type PosterUsageType = {
68
- month: string;
69
- count: number;
70
- };
71
- type RelatedPostType = {
72
- postActive: boolean;
73
- postId: string;
74
- postSlug: string;
75
- postType: PostTypeEnum;
76
- };
77
- type SocialShareResourceType = {
78
- qrCode: ResourceImageType;
79
- socialImage: ResourceImageType;
80
- };
81
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
82
- _id: string;
83
- adIds?: string[] | null;
84
- /** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */
85
- approvedAt?: string | null;
86
- createdAt: string;
87
- deletedAt: string | null;
88
- owner: OwnerType;
89
- posterUsage?: PosterUsageType | null;
90
- rating?: number | null;
91
- relatedPost?: RelatedPostType | null;
92
- reviewCount?: number | null;
93
- slug: string;
94
- updatedAt: string | null;
95
- };
96
- type Region = {
97
- latitude: number;
98
- latitudeDelta: number;
99
- longitude: number;
100
- longitudeDelta: number;
101
- };
102
- type ResourceDetails = {
103
- dateTime: DateTimeType[] | null;
104
- description: string | null;
105
- eventStatus?: EventStatusType | null;
106
- location: LocationType | null;
107
- resourceCover: ResourceImageType | null;
108
- resourceId: string;
109
- resourceLogo: ResourceImageType | null;
110
- resourceName: string;
111
- resourceType: ResourceTypeEnum;
112
- };
113
- type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
114
- type EventStatusType = {
115
- claimed: boolean;
116
- eventType: EventEnumType;
117
- googlePlaceId?: string | null;
118
- };
119
- interface FormField {
120
- disabled?: boolean;
121
- helperText?: string;
122
- isTextArea?: boolean;
123
- keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
124
- name: string;
125
- placeholder: string;
126
- required?: boolean;
127
- secureTextEntry?: boolean;
128
- }
129
- interface FormDateField {
130
- dateMode: "date" | "time";
131
- helperText?: string;
132
- name: "endDate" | "endTime" | "startDate" | "startTime";
133
- placeholder: string;
134
- }
135
- interface SubcategoryItems {
136
- id: string;
137
- name: string;
138
- description?: string | null;
139
- }
140
- interface Subcategory {
141
- id: string;
142
- name: string;
143
- items?: SubcategoryItems[] | null;
144
- }
145
- interface Category {
146
- color?: string | null;
147
- description?: string | null;
148
- id: string;
149
- name: string;
150
- subcategories: Subcategory[];
151
- }
152
- type OptionItem = {
153
- value: string;
154
- label: string;
155
- };
156
- type ImageObjectType = {
157
- uri: string;
158
- type: string;
159
- name: string;
160
- };
161
- interface ResourceConnectionsType {
162
- events: EventListItemType[] | null;
163
- vendors: VendorType[] | null;
164
- }
165
- interface CreateFormData<T extends FieldValues> {
166
- control: Control<T, any>;
167
- fields: T;
168
- formState: FormState<T>;
169
- handleSubmit: UseFormHandleSubmit<T, any>;
170
- reset: UseFormReset<T>;
171
- setValue: UseFormSetValue<T>;
172
- watch: UseFormWatch<T>;
173
- getValues: UseFormGetValues<T>;
174
- }
175
- interface UseGetResourcesByRegionOptions {
176
- onlyClaimed?: boolean;
177
- limit?: number;
178
- offset?: number;
179
- }
180
-
181
- export { type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventStatusType as E, type FormDateField as F, type GeocodeLocation as G, type ImageObjectType as I, type MutationResponse as M, type Nullable as N, type OptionItem as O, type PromoCodeType as P, type ResourceDetails as R, type SocialMediaType as S, type TermsAgreement as T, type UserLicenceType as U, type CreateFormData as a, type Region as b, type ResourceContactDetailsType as c, type BaseResourceType as d, type FormField as e, type OwnerType as f, PROMO_CODE_PREFIX as g, type PosterUsageType as h, type RelatedPostType as i, type ResourceConnectionsType as j, type SocialShareResourceType as k, type Subcategory as l, type SubcategoryItems as m, type UseGetResourcesByRegionOptions as n };
@@ -1,181 +0,0 @@
1
- import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { c as EventListItemType, d as VendorType, e as LicencesEnumType, S as SocialMediaEnumType, R as ResourceImageType, D as DateTimeType, E as EventEnumType, L as LocationType, f as ResourceTypeEnum, g as PostTypeEnum } from './graphql-CcvzTs9k.mjs';
3
-
4
- declare const PROMO_CODE_PREFIX = "CM-";
5
- type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
6
- type Nullable<T> = {
7
- [K in keyof T]: T[K] | null | undefined;
8
- };
9
- /** Uniform mutation response envelope used across GraphQL mutations. */
10
- type MutationResponse<T> = {
11
- data: T | null;
12
- message: string | null;
13
- };
14
- type DeviceInfo = {
15
- appBuildNumber: string;
16
- appId: string;
17
- appVersion: string;
18
- brand: string;
19
- deviceName: string;
20
- installationId: string;
21
- manufacturer: string;
22
- modelName: string;
23
- osName: string;
24
- osVersion: string;
25
- timestamp: string;
26
- };
27
- type TermsAgreement = DeviceInfo & {
28
- termVersion: string;
29
- };
30
- type ResourceContactDetailsType = {
31
- email?: string | null;
32
- landlinePhone?: string | null;
33
- mobilePhone?: string | null;
34
- };
35
- /** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */
36
- type SocialMediaType = {
37
- name?: SocialMediaEnumType;
38
- link?: string;
39
- };
40
- type UserLicenceType = {
41
- expiryDate: Date;
42
- issuedDate: Date;
43
- licenceType: LicencesEnumType;
44
- prevLicenceType?: LicencesEnumType | null;
45
- };
46
- type OwnerType = {
47
- email: string;
48
- userId: string;
49
- };
50
- interface BaseResourceTypeFormData {
51
- _id?: string;
52
- active: boolean;
53
- contactDetails: ResourceContactDetailsType | null;
54
- cover: ResourceImageType;
55
- coverUpload?: ResourceImageType | null;
56
- description: string;
57
- images?: ResourceImageType[] | null;
58
- imagesUpload?: ResourceImageType[] | null;
59
- logo?: ResourceImageType | null;
60
- logoUpload?: ResourceImageType | null;
61
- name: string;
62
- promoCodes?: PromoCodeType[] | null;
63
- region: string;
64
- socialMedia: SocialMediaType[] | null;
65
- termsAgreement?: TermsAgreement | null;
66
- }
67
- type PosterUsageType = {
68
- month: string;
69
- count: number;
70
- };
71
- type RelatedPostType = {
72
- postActive: boolean;
73
- postId: string;
74
- postSlug: string;
75
- postType: PostTypeEnum;
76
- };
77
- type SocialShareResourceType = {
78
- qrCode: ResourceImageType;
79
- socialImage: ResourceImageType;
80
- };
81
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
82
- _id: string;
83
- adIds?: string[] | null;
84
- /** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */
85
- approvedAt?: string | null;
86
- createdAt: string;
87
- deletedAt: string | null;
88
- owner: OwnerType;
89
- posterUsage?: PosterUsageType | null;
90
- rating?: number | null;
91
- relatedPost?: RelatedPostType | null;
92
- reviewCount?: number | null;
93
- slug: string;
94
- updatedAt: string | null;
95
- };
96
- type Region = {
97
- latitude: number;
98
- latitudeDelta: number;
99
- longitude: number;
100
- longitudeDelta: number;
101
- };
102
- type ResourceDetails = {
103
- dateTime: DateTimeType[] | null;
104
- description: string | null;
105
- eventStatus?: EventStatusType | null;
106
- location: LocationType | null;
107
- resourceCover: ResourceImageType | null;
108
- resourceId: string;
109
- resourceLogo: ResourceImageType | null;
110
- resourceName: string;
111
- resourceType: ResourceTypeEnum;
112
- };
113
- type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
114
- type EventStatusType = {
115
- claimed: boolean;
116
- eventType: EventEnumType;
117
- googlePlaceId?: string | null;
118
- };
119
- interface FormField {
120
- disabled?: boolean;
121
- helperText?: string;
122
- isTextArea?: boolean;
123
- keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
124
- name: string;
125
- placeholder: string;
126
- required?: boolean;
127
- secureTextEntry?: boolean;
128
- }
129
- interface FormDateField {
130
- dateMode: "date" | "time";
131
- helperText?: string;
132
- name: "endDate" | "endTime" | "startDate" | "startTime";
133
- placeholder: string;
134
- }
135
- interface SubcategoryItems {
136
- id: string;
137
- name: string;
138
- description?: string | null;
139
- }
140
- interface Subcategory {
141
- id: string;
142
- name: string;
143
- items?: SubcategoryItems[] | null;
144
- }
145
- interface Category {
146
- color?: string | null;
147
- description?: string | null;
148
- id: string;
149
- name: string;
150
- subcategories: Subcategory[];
151
- }
152
- type OptionItem = {
153
- value: string;
154
- label: string;
155
- };
156
- type ImageObjectType = {
157
- uri: string;
158
- type: string;
159
- name: string;
160
- };
161
- interface ResourceConnectionsType {
162
- events: EventListItemType[] | null;
163
- vendors: VendorType[] | null;
164
- }
165
- interface CreateFormData<T extends FieldValues> {
166
- control: Control<T, any>;
167
- fields: T;
168
- formState: FormState<T>;
169
- handleSubmit: UseFormHandleSubmit<T, any>;
170
- reset: UseFormReset<T>;
171
- setValue: UseFormSetValue<T>;
172
- watch: UseFormWatch<T>;
173
- getValues: UseFormGetValues<T>;
174
- }
175
- interface UseGetResourcesByRegionOptions {
176
- onlyClaimed?: boolean;
177
- limit?: number;
178
- offset?: number;
179
- }
180
-
181
- export { type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventStatusType as E, type FormDateField as F, type GeocodeLocation as G, type ImageObjectType as I, type MutationResponse as M, type Nullable as N, type OptionItem as O, type PromoCodeType as P, type ResourceDetails as R, type SocialMediaType as S, type TermsAgreement as T, type UserLicenceType as U, type CreateFormData as a, type Region as b, type ResourceContactDetailsType as c, type BaseResourceType as d, type FormField as e, type OwnerType as f, PROMO_CODE_PREFIX as g, type PosterUsageType as h, type RelatedPostType as i, type ResourceConnectionsType as j, type SocialShareResourceType as k, type Subcategory as l, type SubcategoryItems as m, type UseGetResourcesByRegionOptions as n };