@timardex/cluemart-shared 1.4.64 → 1.4.65

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 (49) hide show
  1. package/dist/{auth-tx3-QbA9.d.mts → auth-DP4rp8kt.d.mts} +1 -1
  2. package/dist/{auth-n3P2BSCb.d.ts → auth-x87uDA8A.d.ts} +1 -1
  3. package/dist/{chunk-END7A5PN.mjs → chunk-D4QRASAQ.mjs} +1 -1
  4. package/dist/chunk-D4QRASAQ.mjs.map +1 -0
  5. package/dist/{chunk-IN5G5WAE.mjs → chunk-DY47LWPZ.mjs} +2 -2
  6. package/dist/{chunk-ONMJIUN6.mjs → chunk-NBMLTBYC.mjs} +10 -14
  7. package/dist/{chunk-ONMJIUN6.mjs.map → chunk-NBMLTBYC.mjs.map} +1 -1
  8. package/dist/{chunk-5V6JNIPQ.mjs → chunk-WKBWAH6Y.mjs} +3 -3
  9. package/dist/{chunk-5V6JNIPQ.mjs.map → chunk-WKBWAH6Y.mjs.map} +1 -1
  10. package/dist/formFields/index.cjs +2 -2
  11. package/dist/formFields/index.cjs.map +1 -1
  12. package/dist/formFields/index.d.mts +1 -1
  13. package/dist/formFields/index.d.ts +1 -1
  14. package/dist/formFields/index.mjs +2 -2
  15. package/dist/{global-DVDoQmBT.d.ts → global-Cdcu76UE.d.ts} +1 -1
  16. package/dist/{global-BCvKcmiT.d.mts → global-GMlnFp7I.d.mts} +1 -1
  17. package/dist/graphql/index.cjs +9 -13
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +3 -3
  20. package/dist/graphql/index.d.ts +3 -3
  21. package/dist/graphql/index.mjs +1 -1
  22. package/dist/hooks/index.cjs +54 -102
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.d.mts +3 -3
  25. package/dist/hooks/index.d.ts +3 -3
  26. package/dist/hooks/index.mjs +33 -77
  27. package/dist/hooks/index.mjs.map +1 -1
  28. package/dist/index.cjs +54 -102
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +12 -13
  31. package/dist/index.d.ts +12 -13
  32. package/dist/index.mjs +54 -102
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/{post-CvS5wUjm.d.mts → post-CP-lCMe6.d.mts} +13 -14
  35. package/dist/{post-ByxIVi36.d.ts → post-LlElRzUr.d.ts} +13 -14
  36. package/dist/{resourceActivities-UOB8Bo7j.d.ts → resourceActivities-Qpi5PTJD.d.ts} +1 -1
  37. package/dist/{resourceActivities-BKd6q2ey.d.mts → resourceActivities-sdIDFwub.d.mts} +1 -1
  38. package/dist/types/index.cjs.map +1 -1
  39. package/dist/types/index.d.mts +5 -5
  40. package/dist/types/index.d.ts +5 -5
  41. package/dist/types/index.mjs +1 -1
  42. package/dist/utils/index.cjs +2 -2
  43. package/dist/utils/index.cjs.map +1 -1
  44. package/dist/utils/index.d.mts +1 -1
  45. package/dist/utils/index.d.ts +1 -1
  46. package/dist/utils/index.mjs +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunk-END7A5PN.mjs.map +0 -1
  49. /package/dist/{chunk-IN5G5WAE.mjs.map → chunk-DY47LWPZ.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { u as CreateFormData, Y as TermsAgreement } from './global-BCvKcmiT.mjs';
1
+ import { u as CreateFormData, Y as TermsAgreement } from './global-GMlnFp7I.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { u as CreateFormData, Y as TermsAgreement } from './global-DVDoQmBT.js';
1
+ import { u as CreateFormData, Y as TermsAgreement } from './global-Cdcu76UE.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -65,4 +65,4 @@ export {
65
65
  EnumPostType,
66
66
  EnumPostContentType
67
67
  };
68
- //# sourceMappingURL=chunk-END7A5PN.mjs.map
68
+ //# sourceMappingURL=chunk-D4QRASAQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/types/auth.ts","../src/types/ad.ts","../src/types/resourceActivities.ts","../src/types/post.ts"],"sourcesContent":["import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string;\n adImage: string;\n adStyle: EnumAdStyle;\n adTitle: string;\n adType: EnumAdType;\n resourceId: string;\n resourceType: EnumResourceType;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, ResourceImageType } from \"./global\";\n\nexport enum EnumPostType {\n DAILY_MEETS = \"daily_meets\",\n DAILY_TIPS = \"daily_tips\",\n DAILY_POLL = \"daily_poll\",\n}\n\nexport enum EnumPostContentType {\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentData =\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: {\n resourceId: string;\n resourceType: EnumResourceType;\n } | null;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\" | \"coverUpload\"> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";AAEO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACEL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;;;ACJL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,gBAAa;AAHH,SAAAA;AAAA,GAAA;AAML,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AAJE,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapArrayToOptions
3
- } from "./chunk-5V6JNIPQ.mjs";
3
+ } from "./chunk-WKBWAH6Y.mjs";
4
4
  import {
5
5
  EnumFoodFlavor
6
6
  } from "./chunk-LDO4DRWY.mjs";
@@ -1939,4 +1939,4 @@ export {
1939
1939
  contactUsFields,
1940
1940
  partnerBasicInfoFields
1941
1941
  };
1942
- //# sourceMappingURL=chunk-IN5G5WAE.mjs.map
1942
+ //# sourceMappingURL=chunk-DY47LWPZ.mjs.map
@@ -2682,29 +2682,25 @@ var AD_FIELDS_FRAGMENT = gql22`
2682
2682
  fragment AdFields on AdType {
2683
2683
  _id
2684
2684
  active
2685
- adStyle
2686
- adType
2687
2685
  clicks
2688
2686
  createdAt
2689
2687
  end
2690
2688
  impressions
2691
- resourceCover
2692
- resourceDescription
2693
- resourceId
2694
- resourceLogo
2695
- resourceName
2696
- resourceRegion
2697
- resourceType
2698
- showOn
2699
- socialMedia {
2700
- ...SocialMediaFields
2689
+ resource {
2690
+ adDescription
2691
+ adImage
2692
+ adStyle
2693
+ adTitle
2694
+ adType
2695
+ resourceId
2696
+ resourceType
2701
2697
  }
2698
+ showOn
2702
2699
  start
2703
2700
  status
2704
2701
  targetRegion
2705
2702
  updatedAt
2706
2703
  }
2707
- ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2708
2704
  `;
2709
2705
  var GET_ADS = gql22`
2710
2706
  query getAds {
@@ -3536,4 +3532,4 @@ export {
3536
3532
  useUpdateGoogleImportedMarkets,
3537
3533
  useGetAppSettings
3538
3534
  };
3539
- //# sourceMappingURL=chunk-ONMJIUN6.mjs.map
3535
+ //# sourceMappingURL=chunk-NBMLTBYC.mjs.map