@timardex/cluemart-shared 1.3.19 → 1.3.21

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.
@@ -236,9 +236,13 @@ declare enum EnumPostContentType {
236
236
  TEXTAREA = "textarea",
237
237
  VIDEO = "video"
238
238
  }
239
+ type PostFileInput = {
240
+ source: File;
241
+ title?: string;
242
+ };
239
243
  type PostContentCover = {
240
244
  cover: ResourceImageType;
241
- coverUpload?: ResourceImageType | null;
245
+ coverUpload?: PostFileInput | null;
242
246
  };
243
247
  type PostContentTextarea = {
244
248
  textarea: {
@@ -248,7 +252,7 @@ type PostContentTextarea = {
248
252
  };
249
253
  type PostContentImage = {
250
254
  images: ResourceImageType[] | null;
251
- imagesUpload?: ResourceImageType[] | null;
255
+ imagesUpload?: PostFileInput[] | null;
252
256
  };
253
257
  type PostContentVideo = {
254
258
  video: {
@@ -290,4 +294,4 @@ type PostType = Omit<PostFormData, "content"> & {
290
294
  updatedAt: Date | null;
291
295
  };
292
296
 
293
- 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, EnumPostType as b, type UserFormData as c, type PartnerFormData as d, type TesterFormData as e, type CreateTesterFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, OrganizerMarketFrequency as l, type TesterVendor as m, type TesterEvent as n, type UserActivityEvent as o, type StripeSubscription as p, type UserActivity as q, EnumAdShowOn as r, EnumAdType as s, EnumAdStyle 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 };
297
+ export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentData as D, EnumAdStatus as E, type PostContentFormData as F, type PostContentType as G, 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, EnumPostType as b, type UserFormData as c, type PartnerFormData as d, type TesterFormData as e, type CreateTesterFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, OrganizerMarketFrequency as l, type TesterVendor as m, type TesterEvent as n, type UserActivityEvent as o, type StripeSubscription as p, type UserActivity as q, EnumAdShowOn as r, EnumAdType as s, EnumAdStyle as t, EnumPostContentType as u, type PostFileInput as v, type PostContentCover as w, type PostContentTextarea as x, type PostContentImage as y, type PostContentVideo as z };
@@ -236,9 +236,13 @@ declare enum EnumPostContentType {
236
236
  TEXTAREA = "textarea",
237
237
  VIDEO = "video"
238
238
  }
239
+ type PostFileInput = {
240
+ source: File;
241
+ title?: string;
242
+ };
239
243
  type PostContentCover = {
240
244
  cover: ResourceImageType;
241
- coverUpload?: ResourceImageType | null;
245
+ coverUpload?: PostFileInput | null;
242
246
  };
243
247
  type PostContentTextarea = {
244
248
  textarea: {
@@ -248,7 +252,7 @@ type PostContentTextarea = {
248
252
  };
249
253
  type PostContentImage = {
250
254
  images: ResourceImageType[] | null;
251
- imagesUpload?: ResourceImageType[] | null;
255
+ imagesUpload?: PostFileInput[] | null;
252
256
  };
253
257
  type PostContentVideo = {
254
258
  video: {
@@ -290,4 +294,4 @@ type PostType = Omit<PostFormData, "content"> & {
290
294
  updatedAt: Date | null;
291
295
  };
292
296
 
293
- 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, EnumPostType as b, type UserFormData as c, type PartnerFormData as d, type TesterFormData as e, type CreateTesterFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, OrganizerMarketFrequency as l, type TesterVendor as m, type TesterEvent as n, type UserActivityEvent as o, type StripeSubscription as p, type UserActivity as q, EnumAdShowOn as r, EnumAdType as s, EnumAdStyle 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 };
297
+ export { type AdType as A, type PostContentList as B, type CreateUserFormData as C, type PostContentData as D, EnumAdStatus as E, type PostContentFormData as F, type PostContentType as G, 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, EnumPostType as b, type UserFormData as c, type PartnerFormData as d, type TesterFormData as e, type CreateTesterFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, OrganizerMarketFrequency as l, type TesterVendor as m, type TesterEvent as n, type UserActivityEvent as o, type StripeSubscription as p, type UserActivity as q, EnumAdShowOn as r, EnumAdType as s, EnumAdStyle as t, EnumPostContentType as u, type PostFileInput as v, type PostContentCover as w, type PostContentTextarea as x, type PostContentImage as y, type PostContentVideo as z };
@@ -1 +1 @@
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: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentData =\n | PostContentCover\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 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 createdA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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
+ {"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 PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentCover = {\n cover: ResourceImageType;\n coverUpload?: PostFileInput | 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?: 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 | PostContentCover\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 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;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AAO;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"]}
@@ -2,7 +2,7 @@ import { EnumResourceType } from '../enums/index.mjs';
2
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
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 { g as AdFormData, A as AdType, h as CreateAdFormData, i as CreatePartnerFormData, k as CreatePostFormData, f as CreateTesterFormData, C as CreateUserFormData, r as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, s as EnumAdType, u as EnumPostContentType, b as EnumPostType, O as OrganizedMarketCount, l as OrganizerMarketFrequency, d 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, j as PostFormData, a as PostType, p as StripeSubscription, S as SubscriptionStatusData, n as TesterEvent, e as TesterFormData, T as TesterType, m as TesterVendor, q as UserActivity, o as UserActivityEvent, c as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-Dt5sc2uk.mjs';
5
+ export { g as AdFormData, A as AdType, h as CreateAdFormData, i as CreatePartnerFormData, k as CreatePostFormData, f as CreateTesterFormData, C as CreateUserFormData, r as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, s as EnumAdType, u as EnumPostContentType, b as EnumPostType, O as OrganizedMarketCount, l as OrganizerMarketFrequency, d as PartnerFormData, P as PartnerType, w as PostContentCover, D as PostContentData, F as PostContentFormData, y as PostContentImage, B as PostContentList, x as PostContentTextarea, G as PostContentType, z as PostContentVideo, v as PostFileInput, j as PostFormData, a as PostType, p as StripeSubscription, S as SubscriptionStatusData, n as TesterEvent, e as TesterFormData, T as TesterType, m as TesterVendor, q as UserActivity, o as UserActivityEvent, c as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-Mb0KfYvb.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -2,7 +2,7 @@ import { EnumResourceType } from '../enums/index.js';
2
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
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 { g as AdFormData, A as AdType, h as CreateAdFormData, i as CreatePartnerFormData, k as CreatePostFormData, f as CreateTesterFormData, C as CreateUserFormData, r as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, s as EnumAdType, u as EnumPostContentType, b as EnumPostType, O as OrganizedMarketCount, l as OrganizerMarketFrequency, d 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, j as PostFormData, a as PostType, p as StripeSubscription, S as SubscriptionStatusData, n as TesterEvent, e as TesterFormData, T as TesterType, m as TesterVendor, q as UserActivity, o as UserActivityEvent, c as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-DaqSLLvx.js';
5
+ export { g as AdFormData, A as AdType, h as CreateAdFormData, i as CreatePartnerFormData, k as CreatePostFormData, f as CreateTesterFormData, C as CreateUserFormData, r as EnumAdShowOn, E as EnumAdStatus, t as EnumAdStyle, s as EnumAdType, u as EnumPostContentType, b as EnumPostType, O as OrganizedMarketCount, l as OrganizerMarketFrequency, d as PartnerFormData, P as PartnerType, w as PostContentCover, D as PostContentData, F as PostContentFormData, y as PostContentImage, B as PostContentList, x as PostContentTextarea, G as PostContentType, z as PostContentVideo, v as PostFileInput, j as PostFormData, a as PostType, p as StripeSubscription, S as SubscriptionStatusData, n as TesterEvent, e as TesterFormData, T as TesterType, m as TesterVendor, q as UserActivity, o as UserActivityEvent, c as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-T9rZPWzn.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -8,7 +8,7 @@ import {
8
8
  OrganizedMarketCount,
9
9
  OrganizerMarketFrequency,
10
10
  VendorSellingFrequency
11
- } from "../chunk-S7HWLLK6.mjs";
11
+ } from "../chunk-YIGSFDXQ.mjs";
12
12
 
13
13
  // src/types/resourceActivities.ts
14
14
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",