@timardex/cluemart-shared 1.3.0 → 1.3.11

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 (38) hide show
  1. package/dist/{auth-DlXdCHFm.d.mts → auth-DpfaLmTU.d.mts} +1 -1
  2. package/dist/{auth-B1G5QrD2.d.ts → auth-xXqB6t_8.d.ts} +1 -1
  3. package/dist/{chunk-3ZDDQGW4.mjs → chunk-Y3MIKYGQ.mjs} +20 -2
  4. package/dist/chunk-Y3MIKYGQ.mjs.map +1 -0
  5. package/dist/formFields/index.d.mts +1 -1
  6. package/dist/formFields/index.d.ts +1 -1
  7. package/dist/{global-DabCYr5t.d.ts → global-DSwmP6sp.d.ts} +1 -3
  8. package/dist/{global-B3lGLGxH.d.mts → global-O7RsWypG.d.mts} +1 -3
  9. package/dist/graphql/index.cjs +143 -0
  10. package/dist/graphql/index.cjs.map +1 -1
  11. package/dist/graphql/index.d.mts +36 -3
  12. package/dist/graphql/index.d.ts +36 -3
  13. package/dist/graphql/index.mjs +138 -0
  14. package/dist/graphql/index.mjs.map +1 -1
  15. package/dist/hooks/index.cjs +140 -5
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.d.mts +6 -4
  18. package/dist/hooks/index.d.ts +6 -4
  19. package/dist/hooks/index.mjs +124 -6
  20. package/dist/hooks/index.mjs.map +1 -1
  21. package/dist/index.cjs +287 -5
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.mts +100 -4
  24. package/dist/index.d.ts +100 -4
  25. package/dist/index.mjs +279 -5
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/{ad-j0VWBCVE.d.ts → post-Df5kAhEE.d.ts} +65 -2
  28. package/dist/{ad-Cld9z55n.d.mts → post-tVcpbEDX.d.mts} +65 -2
  29. package/dist/types/index.cjs +20 -0
  30. package/dist/types/index.cjs.map +1 -1
  31. package/dist/types/index.d.mts +3 -3
  32. package/dist/types/index.d.ts +3 -3
  33. package/dist/types/index.mjs +5 -1
  34. package/dist/types/index.mjs.map +1 -1
  35. package/dist/utils/index.d.mts +1 -1
  36. package/dist/utils/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-3ZDDQGW4.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumPartnerType } from './enums/index.js';
2
- import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, U as UserLicenceType, T as TermsAgreement, s as DateTimeType, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-DabCYr5t.js';
2
+ import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, U as UserLicenceType, T as TermsAgreement, s as DateTimeType, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-DSwmP6sp.js';
3
3
 
4
4
  declare enum OrganizedMarketCount {
5
5
  ONE = "One",
@@ -224,4 +224,67 @@ interface AdType extends AdFormData {
224
224
  updatedAt: Date | null;
225
225
  }
226
226
 
227
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type UserFormData as a, type PartnerFormData as b, type TesterFormData as c, type CreateTesterFormData as d, type AdFormData as e, type CreateAdFormData as f, type CreatePartnerFormData as g, OrganizerMarketFrequency as h, type TesterVendor as i, type TesterEvent as j, type UserActivityEvent as k, type StripeSubscription as l, type UserActivity as m, EnumAdShowOn as n, EnumAdType as o, EnumAdStyle as p };
227
+ declare enum EnumPostType {
228
+ DAILY_MEETS = "daily_meets",
229
+ DAILY_TIPS = "daily_tips",
230
+ DAILY_POLL = "daily_poll"
231
+ }
232
+ declare enum EnumPostContentType {
233
+ COVER = "cover",
234
+ IMAGE = "image",
235
+ LIST = "list",
236
+ TEXTAREA = "textarea",
237
+ VIDEO = "video"
238
+ }
239
+ type PostContentCover = {
240
+ cover: ResourceImageType;
241
+ coverUpload?: ResourceImageType | null;
242
+ };
243
+ type PostContentTextarea = {
244
+ textarea: {
245
+ title?: string;
246
+ data: string;
247
+ };
248
+ };
249
+ type PostContentImage = {
250
+ images: ResourceImageType[] | null;
251
+ imagesUpload?: ResourceImageType[] | null;
252
+ };
253
+ type PostContentVideo = {
254
+ video: {
255
+ source: string;
256
+ title?: string;
257
+ };
258
+ };
259
+ type PostContentList = {
260
+ list: {
261
+ title?: string;
262
+ items: string[];
263
+ };
264
+ };
265
+ type PostContentData = PostContentCover | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
266
+ type PostContentFormData = {
267
+ contentData: PostContentData;
268
+ contentOrder: number;
269
+ contentType: EnumPostContentType;
270
+ };
271
+ interface PostFormData {
272
+ content: PostContentFormData[];
273
+ postType: EnumPostType;
274
+ tags?: string[] | null;
275
+ title: string;
276
+ }
277
+ type CreatePostFormData = CreateFormData<PostFormData>;
278
+ type PostContentType = Omit<PostContentFormData, "contentData"> & {
279
+ _id: string;
280
+ contentData: Omit<PostContentData, "imagesUpload" | "coverUpload">;
281
+ };
282
+ type PostType = Omit<PostFormData, "content"> & {
283
+ _id: string;
284
+ content: PostContentType;
285
+ createdAt: Date;
286
+ deletedAt: Date | null;
287
+ updatedAt: Date | null;
288
+ };
289
+
290
+ export { type AdType as A, type PostContentData as B, type CreateUserFormData as C, type PostContentFormData as D, EnumAdStatus as E, type PostContentType as F, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type PostType as a, type UserFormData as b, type PartnerFormData as c, type TesterFormData as d, type CreateTesterFormData as e, type AdFormData as f, type CreateAdFormData as g, type CreatePartnerFormData as h, type PostFormData as i, type CreatePostFormData as j, OrganizerMarketFrequency as k, type TesterVendor as l, type TesterEvent as m, type UserActivityEvent as n, type StripeSubscription as o, type UserActivity as p, EnumAdShowOn as q, EnumAdType as r, EnumAdStyle as s, EnumPostType as t, EnumPostContentType as u, type PostContentCover as v, type PostContentTextarea as w, type PostContentImage as x, type PostContentVideo as y, type PostContentList as z };
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumPartnerType } from './enums/index.mjs';
2
- import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, U as UserLicenceType, T as TermsAgreement, s as DateTimeType, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-B3lGLGxH.mjs';
2
+ import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, U as UserLicenceType, T as TermsAgreement, s as DateTimeType, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-O7RsWypG.mjs';
3
3
 
4
4
  declare enum OrganizedMarketCount {
5
5
  ONE = "One",
@@ -224,4 +224,67 @@ interface AdType extends AdFormData {
224
224
  updatedAt: Date | null;
225
225
  }
226
226
 
227
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type UserFormData as a, type PartnerFormData as b, type TesterFormData as c, type CreateTesterFormData as d, type AdFormData as e, type CreateAdFormData as f, type CreatePartnerFormData as g, OrganizerMarketFrequency as h, type TesterVendor as i, type TesterEvent as j, type UserActivityEvent as k, type StripeSubscription as l, type UserActivity as m, EnumAdShowOn as n, EnumAdType as o, EnumAdStyle as p };
227
+ declare enum EnumPostType {
228
+ DAILY_MEETS = "daily_meets",
229
+ DAILY_TIPS = "daily_tips",
230
+ DAILY_POLL = "daily_poll"
231
+ }
232
+ declare enum EnumPostContentType {
233
+ COVER = "cover",
234
+ IMAGE = "image",
235
+ LIST = "list",
236
+ TEXTAREA = "textarea",
237
+ VIDEO = "video"
238
+ }
239
+ type PostContentCover = {
240
+ cover: ResourceImageType;
241
+ coverUpload?: ResourceImageType | null;
242
+ };
243
+ type PostContentTextarea = {
244
+ textarea: {
245
+ title?: string;
246
+ data: string;
247
+ };
248
+ };
249
+ type PostContentImage = {
250
+ images: ResourceImageType[] | null;
251
+ imagesUpload?: ResourceImageType[] | null;
252
+ };
253
+ type PostContentVideo = {
254
+ video: {
255
+ source: string;
256
+ title?: string;
257
+ };
258
+ };
259
+ type PostContentList = {
260
+ list: {
261
+ title?: string;
262
+ items: string[];
263
+ };
264
+ };
265
+ type PostContentData = PostContentCover | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
266
+ type PostContentFormData = {
267
+ contentData: PostContentData;
268
+ contentOrder: number;
269
+ contentType: EnumPostContentType;
270
+ };
271
+ interface PostFormData {
272
+ content: PostContentFormData[];
273
+ postType: EnumPostType;
274
+ tags?: string[] | null;
275
+ title: string;
276
+ }
277
+ type CreatePostFormData = CreateFormData<PostFormData>;
278
+ type PostContentType = Omit<PostContentFormData, "contentData"> & {
279
+ _id: string;
280
+ contentData: Omit<PostContentData, "imagesUpload" | "coverUpload">;
281
+ };
282
+ type PostType = Omit<PostFormData, "content"> & {
283
+ _id: string;
284
+ content: PostContentType;
285
+ createdAt: Date;
286
+ deletedAt: Date | null;
287
+ updatedAt: Date | null;
288
+ };
289
+
290
+ export { type AdType as A, type PostContentData as B, type CreateUserFormData as C, type PostContentFormData as D, EnumAdStatus as E, type PostContentType as F, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type PostType as a, type UserFormData as b, type PartnerFormData as c, type TesterFormData as d, type CreateTesterFormData as e, type AdFormData as f, type CreateAdFormData as g, type CreatePartnerFormData as h, type PostFormData as i, type CreatePostFormData as j, OrganizerMarketFrequency as k, type TesterVendor as l, type TesterEvent as m, type UserActivityEvent as n, type StripeSubscription as o, type UserActivity as p, EnumAdShowOn as q, EnumAdType as r, EnumAdStyle as s, EnumPostType as t, EnumPostContentType as u, type PostContentCover as v, type PostContentTextarea as w, type PostContentImage as x, type PostContentVideo as y, type PostContentList as z };
@@ -25,6 +25,8 @@ __export(types_exports, {
25
25
  EnumAdStatus: () => EnumAdStatus,
26
26
  EnumAdStyle: () => EnumAdStyle,
27
27
  EnumAdType: () => EnumAdType,
28
+ EnumPostContentType: () => EnumPostContentType,
29
+ EnumPostType: () => EnumPostType,
28
30
  OrganizedMarketCount: () => OrganizedMarketCount,
29
31
  OrganizerMarketFrequency: () => OrganizerMarketFrequency,
30
32
  VendorSellingFrequency: () => VendorSellingFrequency
@@ -88,6 +90,22 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
88
90
  EnumActivity2["VIEW"] = "VIEW";
89
91
  return EnumActivity2;
90
92
  })(EnumActivity || {});
93
+
94
+ // src/types/post.ts
95
+ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
96
+ EnumPostType2["DAILY_MEETS"] = "daily_meets";
97
+ EnumPostType2["DAILY_TIPS"] = "daily_tips";
98
+ EnumPostType2["DAILY_POLL"] = "daily_poll";
99
+ return EnumPostType2;
100
+ })(EnumPostType || {});
101
+ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
102
+ EnumPostContentType2["COVER"] = "cover";
103
+ EnumPostContentType2["IMAGE"] = "image";
104
+ EnumPostContentType2["LIST"] = "list";
105
+ EnumPostContentType2["TEXTAREA"] = "textarea";
106
+ EnumPostContentType2["VIDEO"] = "video";
107
+ return EnumPostContentType2;
108
+ })(EnumPostContentType || {});
91
109
  // Annotate the CommonJS export names for ESM import in node:
92
110
  0 && (module.exports = {
93
111
  EnumActivity,
@@ -95,6 +113,8 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
95
113
  EnumAdStatus,
96
114
  EnumAdStyle,
97
115
  EnumAdType,
116
+ EnumPostContentType,
117
+ EnumPostType,
98
118
  OrganizedMarketCount,
99
119
  OrganizerMarketFrequency,
100
120
  VendorSellingFrequency
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/tester.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./tester\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\n","import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n dailyCoordinationNeeds?: string;\n interestedInCharityInitiative?: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n organizerExpectations?: string;\n registerMarketsFirstWeek: boolean;\n spaceForClueMart?: boolean;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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\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: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACL,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gBAAa;AAJH,SAAAA;AAAA,GAAA;AAOL,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EAAAA,0BAAA,YAAS;AACT,EAAAA,0BAAA,iBAAc;AACd,EAAAA,0BAAA,aAAU;AACV,EAAAA,0BAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACdL,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;;;AChBL,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;","names":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/tester.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./tester\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\n","import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n dailyCoordinationNeeds?: string;\n interestedInCharityInitiative?: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n organizerExpectations?: string;\n registerMarketsFirstWeek: boolean;\n spaceForClueMart?: boolean;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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\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: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { 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 COVER = \"cover\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostContentCover = {\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\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?: ResourceImageType[] | 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: string[];\n };\n};\n\nexport type PostContentData =\n | PostContentCover\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData: PostContentData;\n contentOrder: number;\n contentType: EnumPostContentType;\n};\n\nexport interface PostFormData {\n content: PostContentFormData[];\n postType: EnumPostType;\n tags?: string[] | null;\n title: string;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n _id: string;\n contentData: Omit<PostContentData, \"imagesUpload\" | \"coverUpload\">;\n};\n\nexport type PostType = Omit<PostFormData, \"content\"> & {\n _id: string;\n content: PostContentType;\n createdAt: Date;\n deletedAt: Date | null;\n updatedAt: Date | null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACL,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gBAAa;AAJH,SAAAA;AAAA,GAAA;AAOL,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EAAAA,0BAAA,YAAS;AACT,EAAAA,0BAAA,iBAAc;AACd,EAAAA,0BAAA,aAAU;AACV,EAAAA,0BAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACdL,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;;;AChBL,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,WAAQ;AACR,EAAAA,qBAAA,UAAO;AACP,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
@@ -1,8 +1,8 @@
1
1
  import { EnumResourceType } from '../enums/index.mjs';
2
- export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-DlXdCHFm.mjs';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-DpfaLmTU.mjs';
3
3
  export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
4
- export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, w as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, s as DateTimeType, x as DateTimeWithPriceType, D as DeviceInfo, j as EventFormData, l as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, q as OwnerType, y as PaymentInfoType, P as PosterUsageType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, v as Subcategory, u as SubcategoryItems, T as TermsAgreement, U as UserLicenceType, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-B3lGLGxH.mjs';
5
- export { e as AdFormData, A as AdType, f as CreateAdFormData, g as CreatePartnerFormData, d as CreateTesterFormData, C as CreateUserFormData, n as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, o as EnumAdType, O as OrganizedMarketCount, h as OrganizerMarketFrequency, b as PartnerFormData, P as PartnerType, l as StripeSubscription, S as SubscriptionStatusData, j as TesterEvent, c as TesterFormData, T as TesterType, i as TesterVendor, m as UserActivity, k as UserActivityEvent, a as UserFormData, U as UserType, V as VendorSellingFrequency } from '../ad-Cld9z55n.mjs';
4
+ export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, w as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, s as DateTimeType, x as DateTimeWithPriceType, D as DeviceInfo, j as EventFormData, l as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, q as OwnerType, y as PaymentInfoType, P as PosterUsageType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, v as Subcategory, u as SubcategoryItems, T as TermsAgreement, U as UserLicenceType, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-O7RsWypG.mjs';
5
+ export { f as AdFormData, A as AdType, g as CreateAdFormData, h as CreatePartnerFormData, j as CreatePostFormData, e as CreateTesterFormData, C as CreateUserFormData, q as EnumAdShowOn, E as EnumAdStatus, s as EnumAdStyle, r as EnumAdType, u as EnumPostContentType, t as EnumPostType, O as OrganizedMarketCount, k as OrganizerMarketFrequency, c as PartnerFormData, P as PartnerType, v as PostContentCover, B as PostContentData, D as PostContentFormData, x as PostContentImage, z as PostContentList, w as PostContentTextarea, F as PostContentType, y as PostContentVideo, i as PostFormData, a as PostType, o as StripeSubscription, S as SubscriptionStatusData, m as TesterEvent, d as TesterFormData, T as TesterType, l as TesterVendor, p as UserActivity, n as UserActivityEvent, b as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-tVcpbEDX.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -1,8 +1,8 @@
1
1
  import { EnumResourceType } from '../enums/index.js';
2
- export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-B1G5QrD2.js';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-xXqB6t_8.js';
3
3
  export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
4
- export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, w as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, s as DateTimeType, x as DateTimeWithPriceType, D as DeviceInfo, j as EventFormData, l as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, q as OwnerType, y as PaymentInfoType, P as PosterUsageType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, v as Subcategory, u as SubcategoryItems, T as TermsAgreement, U as UserLicenceType, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-DabCYr5t.js';
5
- export { e as AdFormData, A as AdType, f as CreateAdFormData, g as CreatePartnerFormData, d as CreateTesterFormData, C as CreateUserFormData, n as EnumAdShowOn, E as EnumAdStatus, p as EnumAdStyle, o as EnumAdType, O as OrganizedMarketCount, h as OrganizerMarketFrequency, b as PartnerFormData, P as PartnerType, l as StripeSubscription, S as SubscriptionStatusData, j as TesterEvent, c as TesterFormData, T as TesterType, i as TesterVendor, m as UserActivity, k as UserActivityEvent, a as UserFormData, U as UserType, V as VendorSellingFrequency } from '../ad-j0VWBCVE.js';
4
+ export { A as AssociateType, r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, w as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, s as DateTimeType, x as DateTimeWithPriceType, D as DeviceInfo, j as EventFormData, l as EventInfoFormData, b as EventInfoType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, M as MapMultiLocation, N as Nullable, O as OptionItem, q as OwnerType, y as PaymentInfoType, P as PosterUsageType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, v as Subcategory, u as SubcategoryItems, T as TermsAgreement, U as UserLicenceType, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-DSwmP6sp.js';
5
+ export { f as AdFormData, A as AdType, g as CreateAdFormData, h as CreatePartnerFormData, j as CreatePostFormData, e as CreateTesterFormData, C as CreateUserFormData, q as EnumAdShowOn, E as EnumAdStatus, s as EnumAdStyle, r as EnumAdType, u as EnumPostContentType, t as EnumPostType, O as OrganizedMarketCount, k as OrganizerMarketFrequency, c as PartnerFormData, P as PartnerType, v as PostContentCover, B as PostContentData, D as PostContentFormData, x as PostContentImage, z as PostContentList, w as PostContentTextarea, F as PostContentType, y as PostContentVideo, i as PostFormData, a as PostType, o as StripeSubscription, S as SubscriptionStatusData, m as TesterEvent, d as TesterFormData, T as TesterType, l as TesterVendor, p as UserActivity, n as UserActivityEvent, b as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-Df5kAhEE.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -3,10 +3,12 @@ import {
3
3
  EnumAdStatus,
4
4
  EnumAdStyle,
5
5
  EnumAdType,
6
+ EnumPostContentType,
7
+ EnumPostType,
6
8
  OrganizedMarketCount,
7
9
  OrganizerMarketFrequency,
8
10
  VendorSellingFrequency
9
- } from "../chunk-3ZDDQGW4.mjs";
11
+ } from "../chunk-Y3MIKYGQ.mjs";
10
12
 
11
13
  // src/types/resourceActivities.ts
12
14
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
@@ -23,6 +25,8 @@ export {
23
25
  EnumAdStatus,
24
26
  EnumAdStyle,
25
27
  EnumAdType,
28
+ EnumPostContentType,
29
+ EnumPostType,
26
30
  OrganizedMarketCount,
27
31
  OrganizerMarketFrequency,
28
32
  VendorSellingFrequency
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\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: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;AAMO,IAAK,eAAL,kBAAKA,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;","names":["EnumActivity"]}
1
+ {"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\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: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | 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: string;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n"],"mappings":";;;;;;;;;;;;;AAMO,IAAK,eAAL,kBAAKA,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;","names":["EnumActivity"]}
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
2
- import { t as Region, O as OptionItem } from '../global-B3lGLGxH.mjs';
2
+ import { t as Region, O as OptionItem } from '../global-O7RsWypG.mjs';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.js';
2
- import { t as Region, O as OptionItem } from '../global-DabCYr5t.js';
2
+ import { t as Region, O as OptionItem } from '../global-DSwmP6sp.js';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.3.0",
3
+ "version": "1.3.11",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/types/tester.ts","../src/types/ad.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nimport { Category, CreateFormData } from \"./global\";\n\nexport enum OrganizedMarketCount {\n ONE = \"One\",\n TWO_TO_THREE = \"Two_to_Three\",\n FOUR_TO_FIVE = \"Four_to_Five\",\n MORE_THAN_FIVE = \"More_than_Five\",\n}\n\nexport enum VendorSellingFrequency {\n TWICE_A_WEEK = \"Two_to_Three_times_a_week\",\n ONCE_A_WEEK = \"Once_a_week\",\n ONE_TO_TWO_TIMES_A_MONTH = \"One_to_Two_times_a_month\",\n LESS_OFTEN = \"Less_often\",\n}\n\nexport enum OrganizerMarketFrequency {\n WEEKLY = \"Weekly\",\n FORTNIGHTLY = \"Fortnightly\",\n MONTHLY = \"Monthly\",\n SEASONAL = \"Seasonal\",\n}\n\nexport type TesterVendor = {\n categories: Category[];\n marketsAttended: { name: string; city: string }[];\n productsOrServices: string;\n sellingFrequency: VendorSellingFrequency;\n yearlySellingApprox: number;\n questionary: {\n appearInVideoIntroduction?: boolean; // Q15 (Yes / No)\n applyToAtLeastOneMarket: boolean; // Q11\n completeFeedbackQuestionnaire: boolean; // Q13\n excitementAboutApp?: string; // Q17\n sendPhotoForSocialMedia?: boolean; // Q14 (Yes / No)\n socialMediaFeatureReason?: string; // Q16 (optional free text)\n testingPeriodConcerns?: string; // Q19 (optional)\n tryVisitorFeatures: boolean; // Q12\n uploadStallProfileFirstWeek: boolean; // Q10\n usefulnessExpectations?: string; // Q18\n };\n};\n\nexport type TesterEvent = {\n /** Organizer background */\n organizedMarketCount: OrganizedMarketCount;\n markets: {\n name: string;\n cityOrVenue: string;\n frequency: OrganizerMarketFrequency;\n averageStallCount: number;\n }[];\n questionary: {\n allowMarketingAppearance?: boolean;\n completeFinalQuestionnaire: boolean;\n dailyCoordinationNeeds?: string;\n interestedInCharityInitiative?: boolean;\n inviteAtLeastFiveStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n organizerExpectations?: string;\n registerMarketsFirstWeek: boolean;\n spaceForClueMart?: boolean;\n };\n};\n\nexport interface TesterFormData {\n businessName: string;\n consents: {\n privacyConsent: boolean;\n betaTestConsent: boolean;\n };\n email: string;\n event?: TesterEvent | null;\n firstName: string;\n lastName: string;\n mobilePhone: string;\n osType: EnumOSPlatform;\n region: string;\n resourceType: EnumResourceType;\n vendor?: TesterVendor | null;\n}\n\nexport type CreateTesterFormData = CreateFormData<TesterFormData>;\n\nexport interface TesterType extends TesterFormData {\n _id: string;\n active: boolean;\n approved: boolean;\n createdAt: Date;\n updatedAt: Date | null;\n}\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 interface AdFormData {\n active: boolean;\n adStyle: EnumAdStyle;\n adType: EnumAdType;\n clui?: string | null;\n end: Date; // ISO date string\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n showOn: EnumAdShowOn;\n socialMedia?: SocialMediaType[] | null;\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion?: string | null;\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"],"mappings":";AAIO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,SAAM;AACN,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,kBAAe;AACf,EAAAA,sBAAA,oBAAiB;AAJP,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACL,EAAAA,wBAAA,kBAAe;AACf,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gBAAa;AAJH,SAAAA;AAAA,GAAA;AAOL,IAAK,2BAAL,kBAAKC,8BAAL;AACL,EAAAA,0BAAA,YAAS;AACT,EAAAA,0BAAA,iBAAc;AACd,EAAAA,0BAAA,aAAU;AACV,EAAAA,0BAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACdL,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;","names":["OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}