@timardex/cluemart-shared 1.7.0 → 1.7.2

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 (145) 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.cjs +1383 -0
  6. package/dist/apollo/index.cjs.map +1 -0
  7. package/dist/apollo/index.d.mts +323 -0
  8. package/dist/apollo/index.d.ts +323 -0
  9. package/dist/apollo/index.mjs +1295 -0
  10. package/dist/apollo/index.mjs.map +1 -0
  11. package/dist/auth/index.cjs +1727 -0
  12. package/dist/auth/index.cjs.map +1 -0
  13. package/dist/auth/index.d.mts +166 -0
  14. package/dist/auth/index.d.ts +166 -0
  15. package/dist/auth/index.mjs +380 -0
  16. package/dist/auth/index.mjs.map +1 -0
  17. package/dist/chunk-32MKHJTX.mjs +1207 -0
  18. package/dist/chunk-32MKHJTX.mjs.map +1 -0
  19. package/dist/{chunk-HZMP7GXC.mjs → chunk-447EYKHL.mjs} +1010 -2671
  20. package/dist/chunk-447EYKHL.mjs.map +1 -0
  21. package/dist/{chunk-RKIRWZCH.mjs → chunk-AYO3E4DM.mjs} +39 -183
  22. package/dist/chunk-AYO3E4DM.mjs.map +1 -0
  23. package/dist/{chunk-ZZJSCYJK.mjs → chunk-BIJ5NDXW.mjs} +46 -42
  24. package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
  25. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  26. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  27. package/dist/{chunk-MVQ3CFQR.mjs → chunk-ILILH7E2.mjs} +12 -23
  28. package/dist/chunk-ILILH7E2.mjs.map +1 -0
  29. package/dist/{chunk-TAECMXM4.mjs → chunk-LBEJECG3.mjs} +249 -219
  30. package/dist/{chunk-TAECMXM4.mjs.map → chunk-LBEJECG3.mjs.map} +1 -1
  31. package/dist/chunk-RAYUJODN.mjs +45 -0
  32. package/dist/chunk-RAYUJODN.mjs.map +1 -0
  33. package/dist/chunk-SD42WIMV.mjs +297 -0
  34. package/dist/chunk-SD42WIMV.mjs.map +1 -0
  35. package/dist/chunk-VPANTTZI.mjs +262 -0
  36. package/dist/chunk-VPANTTZI.mjs.map +1 -0
  37. package/dist/{chunk-KZTOISPA.mjs → chunk-X3OLM35T.mjs} +14 -8
  38. package/dist/chunk-X3OLM35T.mjs.map +1 -0
  39. package/dist/{contactUs-H7799pWe.d.ts → contactUs--NoohZBu.d.ts} +1 -1
  40. package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-CBWzefUS.d.mts} +1 -1
  41. package/dist/enums/index.cjs +13 -7
  42. package/dist/enums/index.cjs.map +1 -1
  43. package/dist/enums/index.d.mts +15 -9
  44. package/dist/enums/index.d.ts +15 -9
  45. package/dist/enums/index.mjs +1 -1
  46. package/dist/formFields/index.cjs +136 -73
  47. package/dist/formFields/index.cjs.map +1 -1
  48. package/dist/formFields/index.d.mts +3 -2
  49. package/dist/formFields/index.d.ts +3 -2
  50. package/dist/formFields/index.mjs +9 -4
  51. package/dist/{global-fKbMmluy.d.ts → global-CUYYxpy2.d.ts} +12 -11
  52. package/dist/{global-BUUfmCo7.d.mts → global-DePDtOFt.d.mts} +12 -11
  53. package/dist/graphql/index.cjs +734 -1271
  54. package/dist/graphql/index.cjs.map +1 -1
  55. package/dist/graphql/index.d.mts +434 -176
  56. package/dist/graphql/index.d.ts +434 -176
  57. package/dist/graphql/index.mjs +37 -23
  58. package/dist/hooks/index.cjs +947 -309
  59. package/dist/hooks/index.cjs.map +1 -1
  60. package/dist/hooks/index.d.mts +10 -4
  61. package/dist/hooks/index.d.ts +10 -4
  62. package/dist/hooks/index.mjs +170 -58
  63. package/dist/hooks/index.mjs.map +1 -1
  64. package/dist/images/apple-maps-icon.webp.d.ts +8 -1
  65. package/dist/images/banner-horizontal.webp.d.ts +8 -1
  66. package/dist/images/banner-vertical.webp.d.ts +8 -1
  67. package/dist/images/cluiTui.webp.d.ts +8 -1
  68. package/dist/images/corporate.webp.d.ts +8 -1
  69. package/dist/images/facebook.webp.d.ts +8 -1
  70. package/dist/images/gazebo-top.webp.d.ts +8 -1
  71. package/dist/images/google-maps-icon.webp.d.ts +8 -1
  72. package/dist/images/googleMaps-logo-dark.webp.d.ts +8 -1
  73. package/dist/images/googleMaps-logo-light.webp.d.ts +8 -1
  74. package/dist/images/instagram.webp.d.ts +8 -1
  75. package/dist/images/logo-atr.webp.d.ts +8 -1
  76. package/dist/images/logo-dark.webp.d.ts +8 -1
  77. package/dist/images/logo.webp.d.ts +8 -1
  78. package/dist/images/meet.webp.d.ts +8 -1
  79. package/dist/images/mini-market1.webp.d.ts +8 -1
  80. package/dist/images/mini-market2.webp.d.ts +8 -1
  81. package/dist/images/mini-market3.webp.d.ts +8 -1
  82. package/dist/images/mini-market4.webp.d.ts +8 -1
  83. package/dist/images/mini-market5.webp.d.ts +8 -1
  84. package/dist/images/poll.webp.d.ts +8 -1
  85. package/dist/images/poster1.webp.d.ts +8 -1
  86. package/dist/images/poster2.webp.d.ts +8 -1
  87. package/dist/images/poster3.webp.d.ts +8 -1
  88. package/dist/images/poster4.webp.d.ts +8 -1
  89. package/dist/images/private.webp.d.ts +8 -1
  90. package/dist/images/qr-code.webp.d.ts +8 -1
  91. package/dist/images/school.webp.d.ts +8 -1
  92. package/dist/images/sima.webp.d.ts +8 -1
  93. package/dist/images/store-android.webp.d.ts +8 -1
  94. package/dist/images/store-ios.webp.d.ts +8 -1
  95. package/dist/images/tablas.webp.d.ts +8 -1
  96. package/dist/images/telefonos.webp.d.ts +8 -1
  97. package/dist/images/tiktok.webp.d.ts +8 -1
  98. package/dist/images/tip.webp.d.ts +8 -1
  99. package/dist/images/ugralos.webp.d.ts +8 -1
  100. package/dist/images/waze-maps-icon.webp.d.ts +8 -1
  101. package/dist/images/website.webp.d.ts +8 -1
  102. package/dist/images/youtube.webp.d.ts +8 -1
  103. package/dist/index.cjs +1751 -1781
  104. package/dist/index.cjs.map +1 -1
  105. package/dist/index.d.mts +665 -243
  106. package/dist/index.d.ts +665 -243
  107. package/dist/index.mjs +1711 -1779
  108. package/dist/index.mjs.map +1 -1
  109. package/dist/map/index.cjs +14 -9
  110. package/dist/map/index.cjs.map +1 -1
  111. package/dist/map/index.d.mts +16 -13
  112. package/dist/map/index.d.ts +16 -13
  113. package/dist/map/index.mjs +14 -9
  114. package/dist/map/index.mjs.map +1 -1
  115. package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CMUcn2P7.d.ts} +9 -4
  116. package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-CwbJFGIp.d.mts} +9 -4
  117. package/dist/sharing/index.cjs +39 -1252
  118. package/dist/sharing/index.cjs.map +1 -1
  119. package/dist/sharing/index.d.mts +17 -5
  120. package/dist/sharing/index.d.ts +17 -5
  121. package/dist/sharing/index.mjs +34 -30
  122. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  123. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  124. package/dist/types/index.cjs +15 -2
  125. package/dist/types/index.cjs.map +1 -1
  126. package/dist/types/index.d.mts +10 -23
  127. package/dist/types/index.d.ts +10 -23
  128. package/dist/types/index.mjs +9 -5
  129. package/dist/user-D47MLFyH.d.ts +134 -0
  130. package/dist/user-DE8edl3u.d.mts +134 -0
  131. package/dist/utils/index.cjs +355 -136
  132. package/dist/utils/index.cjs.map +1 -1
  133. package/dist/utils/index.d.mts +87 -35
  134. package/dist/utils/index.d.ts +87 -35
  135. package/dist/utils/index.mjs +42 -15
  136. package/package.json +31 -10
  137. package/dist/ad-CVkVX_z5.d.ts +0 -296
  138. package/dist/ad-DA9ECAhK.d.mts +0 -296
  139. package/dist/affiliate-1RtkLnLP.d.ts +0 -35
  140. package/dist/affiliate-Cos2Syz5.d.mts +0 -35
  141. package/dist/chunk-HZMP7GXC.mjs.map +0 -1
  142. package/dist/chunk-KZTOISPA.mjs.map +0 -1
  143. package/dist/chunk-MVQ3CFQR.mjs.map +0 -1
  144. package/dist/chunk-RKIRWZCH.mjs.map +0 -1
  145. package/dist/chunk-ZZJSCYJK.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-BUUfmCo7.mjs';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-DePDtOFt.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -78,7 +78,8 @@ declare const contactUsFields: FormField[];
78
78
 
79
79
  declare const emailField: FormField;
80
80
  declare const companyContactFields: FormField[];
81
+ declare const bankAccountDetailsFields: FormField[];
81
82
 
82
83
  declare const partnerBasicInfoFields: FormField[];
83
84
 
84
- export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
85
+ export { availableCategories, availableTagTypes, bankAccountDetailsFields, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-fKbMmluy.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CUYYxpy2.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -78,7 +78,8 @@ declare const contactUsFields: FormField[];
78
78
 
79
79
  declare const emailField: FormField;
80
80
  declare const companyContactFields: FormField[];
81
+ declare const bankAccountDetailsFields: FormField[];
81
82
 
82
83
  declare const partnerBasicInfoFields: FormField[];
83
84
 
84
- export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
85
+ export { availableCategories, availableTagTypes, bankAccountDetailsFields, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  availableTagTypes,
3
+ bankAccountDetailsFields,
3
4
  companyContactFields,
4
5
  contactUsFields,
5
6
  emailField,
@@ -41,16 +42,20 @@ import {
41
42
  vendorStallSize,
42
43
  vendorStartDateFields,
43
44
  vendorTable
44
- } from "../chunk-ZZJSCYJK.mjs";
45
+ } from "../chunk-BIJ5NDXW.mjs";
45
46
  import {
46
47
  availableCategories,
47
48
  categoryColors
48
- } from "../chunk-TAECMXM4.mjs";
49
- import "../chunk-MVQ3CFQR.mjs";
50
- import "../chunk-KZTOISPA.mjs";
49
+ } from "../chunk-LBEJECG3.mjs";
50
+ import "../chunk-SD42WIMV.mjs";
51
+ import "../chunk-ILILH7E2.mjs";
52
+ import "../chunk-RAYUJODN.mjs";
53
+ import "../chunk-DQ7ZHIXW.mjs";
54
+ import "../chunk-X3OLM35T.mjs";
51
55
  export {
52
56
  availableCategories,
53
57
  availableTagTypes,
58
+ bankAccountDetailsFields,
54
59
  categoryColors,
55
60
  companyContactFields,
56
61
  contactUsFields,
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -96,7 +96,7 @@ interface EventType extends BaseResourceType {
96
96
  sharePublic?: SocialShareResourceType | null;
97
97
  shareRelation?: SocialShareResourceType | null;
98
98
  }
99
- type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
99
+ type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
100
100
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
101
101
  _id: string;
102
102
  active?: boolean;
@@ -373,6 +373,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
373
373
  };
374
374
  type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
375
375
  _id: string;
376
+ approvedAt?: Date | null;
376
377
  content: PostContentType[];
377
378
  createdAt: Date;
378
379
  deletedAt: Date | null;
@@ -500,6 +501,11 @@ type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
500
501
  type Nullable<T> = {
501
502
  [K in keyof T]: T[K] | null | undefined;
502
503
  };
504
+ /** Uniform mutation response envelope used across GraphQL mutations. */
505
+ type MutationResponse<T> = {
506
+ data: T | null;
507
+ message: string | null;
508
+ };
503
509
  type DeviceInfo = {
504
510
  appBuildNumber: string;
505
511
  appId: string;
@@ -536,12 +542,6 @@ type UserLicenceType = {
536
542
  licenceType: EnumUserLicence;
537
543
  prevLicenceType?: EnumUserLicence | null;
538
544
  };
539
- type AssociateType = {
540
- email: string;
541
- resourceId: string;
542
- resourceType: EnumResourceType;
543
- licence: UserLicenceType;
544
- };
545
545
  type OwnerType = {
546
546
  email: string;
547
547
  userId: string;
@@ -549,7 +549,6 @@ type OwnerType = {
549
549
  interface BaseResourceTypeFormData {
550
550
  _id?: string;
551
551
  active: boolean;
552
- associates: AssociateType[] | null;
553
552
  contactDetails: ResourceContactDetailsType | null;
554
553
  cover: ResourceImageType;
555
554
  coverUpload?: ResourceImageType | null;
@@ -559,7 +558,6 @@ interface BaseResourceTypeFormData {
559
558
  logo?: ResourceImageType | null;
560
559
  logoUpload?: ResourceImageType | null;
561
560
  name: string;
562
- owner?: OwnerType | null;
563
561
  promoCodes?: PromoCodeType[] | null;
564
562
  region: string;
565
563
  socialMedia: SocialMediaType[] | null;
@@ -570,6 +568,7 @@ type PosterUsageType = {
570
568
  count: number;
571
569
  };
572
570
  type RelatedPostType = {
571
+ postActive: boolean;
573
572
  postId: string;
574
573
  postSlug: string;
575
574
  postType: EnumPostType;
@@ -581,8 +580,10 @@ type SocialShareResourceType = {
581
580
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
582
581
  _id: string;
583
582
  adIds?: string[] | null;
583
+ approvedAt?: Date | null;
584
584
  createdAt: Date;
585
585
  deletedAt: Date | null;
586
+ owner: OwnerType;
586
587
  posterUsage?: PosterUsageType | null;
587
588
  rating?: number | null;
588
589
  relatedPost?: RelatedPostType | null;
@@ -695,4 +696,4 @@ interface UseGetResourcesByRegionOptions {
695
696
  offset?: number;
696
697
  }
697
698
 
698
- export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
699
+ export { type GamePlacement as $, type BaseGameType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type MutationResponse as M, type DateTimeWithPriceType as N, type OptionItem as O, type PosterUsageType as P, type DeviceInfo as Q, type RefundPolicy as R, type StallType as S, EnumGameStatus as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumGameType as W, EnumPostContentType as X, type EventStatusType as Y, type GameDate as Z, type GameHistory as _, type FormDateField as a, type GamePlacementClue as a0, type GameType as a1, type GeocodeLocation as a2, type GlobalGameData as a3, type ImageObjectType as a4, type LocationGeoType as a5, type Nullable as a6, type OwnerType as a7, PROMO_CODE_PREFIX as a8, type PaymentInfoType as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentData as aa, type PostContentFormData as ab, type PostContentGame as ac, type PostContentImage as ad, type PostContentList as ae, type PostContentTextarea as af, type PostContentType as ag, type PostContentVideo as ah, type PostFileInput as ai, type PostResource as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type PostType as j, EnumPostType as k, type GameLeaderboard as l, type VendorFormData as m, type CreateVendorFormData as n, type VendorInfoFormData as o, type CreateVendorInfoFormData as p, type UnregisteredVendorFormData as q, type CreateUnregisteredVendorFormData as r, type EventFormData as s, type CreateEventFormData as t, type EventInfoFormData as u, type CreateEventInfoFormData as v, type PostFormData as w, type CreatePostFormData as x, type Region as y, type BaseGameMap as z };
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -96,7 +96,7 @@ interface EventType extends BaseResourceType {
96
96
  sharePublic?: SocialShareResourceType | null;
97
97
  shareRelation?: SocialShareResourceType | null;
98
98
  }
99
- type EventListItemType = Omit<EventType, "adIds" | "associates" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
99
+ type EventListItemType = Omit<EventType, "adIds" | "contactDetails" | "eventInfoId" | "nzbn" | "owner" | "posterUsage" | "promoCodes" | "provider" | "relatedPost" | "socialMedia" | "socialShare" | "tags" | "termsAgreement">;
100
100
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
101
101
  _id: string;
102
102
  active?: boolean;
@@ -373,6 +373,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
373
373
  };
374
374
  type PostType = Omit<PostFormData, "content" | "coverUpload" | "resource"> & {
375
375
  _id: string;
376
+ approvedAt?: Date | null;
376
377
  content: PostContentType[];
377
378
  createdAt: Date;
378
379
  deletedAt: Date | null;
@@ -500,6 +501,11 @@ type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
500
501
  type Nullable<T> = {
501
502
  [K in keyof T]: T[K] | null | undefined;
502
503
  };
504
+ /** Uniform mutation response envelope used across GraphQL mutations. */
505
+ type MutationResponse<T> = {
506
+ data: T | null;
507
+ message: string | null;
508
+ };
503
509
  type DeviceInfo = {
504
510
  appBuildNumber: string;
505
511
  appId: string;
@@ -536,12 +542,6 @@ type UserLicenceType = {
536
542
  licenceType: EnumUserLicence;
537
543
  prevLicenceType?: EnumUserLicence | null;
538
544
  };
539
- type AssociateType = {
540
- email: string;
541
- resourceId: string;
542
- resourceType: EnumResourceType;
543
- licence: UserLicenceType;
544
- };
545
545
  type OwnerType = {
546
546
  email: string;
547
547
  userId: string;
@@ -549,7 +549,6 @@ type OwnerType = {
549
549
  interface BaseResourceTypeFormData {
550
550
  _id?: string;
551
551
  active: boolean;
552
- associates: AssociateType[] | null;
553
552
  contactDetails: ResourceContactDetailsType | null;
554
553
  cover: ResourceImageType;
555
554
  coverUpload?: ResourceImageType | null;
@@ -559,7 +558,6 @@ interface BaseResourceTypeFormData {
559
558
  logo?: ResourceImageType | null;
560
559
  logoUpload?: ResourceImageType | null;
561
560
  name: string;
562
- owner?: OwnerType | null;
563
561
  promoCodes?: PromoCodeType[] | null;
564
562
  region: string;
565
563
  socialMedia: SocialMediaType[] | null;
@@ -570,6 +568,7 @@ type PosterUsageType = {
570
568
  count: number;
571
569
  };
572
570
  type RelatedPostType = {
571
+ postActive: boolean;
573
572
  postId: string;
574
573
  postSlug: string;
575
574
  postType: EnumPostType;
@@ -581,8 +580,10 @@ type SocialShareResourceType = {
581
580
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
582
581
  _id: string;
583
582
  adIds?: string[] | null;
583
+ approvedAt?: Date | null;
584
584
  createdAt: Date;
585
585
  deletedAt: Date | null;
586
+ owner: OwnerType;
586
587
  posterUsage?: PosterUsageType | null;
587
588
  rating?: number | null;
588
589
  relatedPost?: RelatedPostType | null;
@@ -695,4 +696,4 @@ interface UseGetResourcesByRegionOptions {
695
696
  offset?: number;
696
697
  }
697
698
 
698
- export { type GamePlacementClue as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type DateTimeWithPriceType as M, type DeviceInfo as N, type OptionItem as O, type PostType as P, EnumGameStatus as Q, type RefundPolicy as R, type StallType as S, EnumGameType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumPostContentType as W, type EventStatusType as X, type GameDate as Y, type GameHistory as Z, type GamePlacement as _, type FormDateField as a, type GameType as a0, type GeocodeLocation as a1, type GlobalGameData as a2, type ImageObjectType as a3, type LocationGeoType as a4, type Nullable as a5, type OwnerType as a6, PROMO_CODE_PREFIX as a7, type PaymentInfoType as a8, type PostContentData as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentFormData as aa, type PostContentGame as ab, type PostContentImage as ac, type PostContentList as ad, type PostContentTextarea as ae, type PostContentType as af, type PostContentVideo as ag, type PostFileInput as ah, type PostResource as ai, type PosterUsageType as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, EnumPostType as j, type GameLeaderboard as k, type VendorFormData as l, type CreateVendorFormData as m, type VendorInfoFormData as n, type CreateVendorInfoFormData as o, type UnregisteredVendorFormData as p, type CreateUnregisteredVendorFormData as q, type EventFormData as r, type CreateEventFormData as s, type EventInfoFormData as t, type CreateEventInfoFormData as u, type PostFormData as v, type CreatePostFormData as w, type Region as x, type BaseGameMap as y, type BaseGameType as z };
699
+ export { type GamePlacement as $, type BaseGameType as A, type BaseResourceTypeFormData as B, type Category as C, type BaseResourceType as D, type EventType as E, type FormField as F, type GameDocType as G, type CreateFormData as H, type DailyClueBaseGame as I, type DailyClueGameData as J, type DateTimeType as K, type LocationType as L, type MutationResponse as M, type DateTimeWithPriceType as N, type OptionItem as O, type PosterUsageType as P, type DeviceInfo as Q, type RefundPolicy as R, type StallType as S, EnumGameStatus as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, EnumGameType as W, EnumPostContentType as X, type EventStatusType as Y, type GameDate as Z, type GameHistory as _, type FormDateField as a, type GamePlacementClue as a0, type GameType as a1, type GeocodeLocation as a2, type GlobalGameData as a3, type ImageObjectType as a4, type LocationGeoType as a5, type Nullable as a6, type OwnerType as a7, PROMO_CODE_PREFIX as a8, type PaymentInfoType as a9, type TermsAgreement as aA, type UnregisteredVendorInvitationType as aB, type VendorAttributes as aC, type VendorCalendarData as aD, type VendorProductList as aE, gameScreenIdentifierList as aF, gameTypeToDisplayName as aG, type PostContentData as aa, type PostContentFormData as ab, type PostContentGame as ac, type PostContentImage as ad, type PostContentList as ae, type PostContentTextarea as af, type PostContentType as ag, type PostContentVideo as ah, type PostFileInput as ai, type PostResource as aj, type PromoCodeType as ak, type PuzzleAnswer as al, type PuzzleAnsweredQuestion as am, type PuzzleBaseGame as an, type PuzzleGameData as ao, type PuzzleQuestion as ap, type RelatedPostType as aq, type RelationDate as ar, type RelationInputType as as, type ResourceContactDetailsType as at, type ResourceDetails as au, type ResourceImageType as av, type SocialMediaType as aw, type SocialShareResourceType as ax, type Subcategory as ay, type SubcategoryItems as az, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type PostType as j, EnumPostType as k, type GameLeaderboard as l, type VendorFormData as m, type CreateVendorFormData as n, type VendorInfoFormData as o, type CreateVendorInfoFormData as p, type UnregisteredVendorFormData as q, type CreateUnregisteredVendorFormData as r, type EventFormData as s, type CreateEventFormData as t, type EventInfoFormData as u, type CreateEventInfoFormData as v, type PostFormData as w, type CreatePostFormData as x, type Region as y, type BaseGameMap as z };