@timardex/cluemart-shared 1.4.41 → 1.4.42

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 (41) hide show
  1. package/dist/{auth-C4rFM8ym.d.mts → auth-CMAZK-Pw.d.mts} +1 -2
  2. package/dist/{auth-Z7ZalBiX.d.ts → auth-CYgZKLvY.d.ts} +1 -2
  3. package/dist/{chunk-JRDILNPH.mjs → chunk-CGXCKZ4G.mjs} +21 -34
  4. package/dist/chunk-CGXCKZ4G.mjs.map +1 -0
  5. package/dist/{chunk-B5HXAEH4.mjs → chunk-END7A5PN.mjs} +1 -28
  6. package/dist/chunk-END7A5PN.mjs.map +1 -0
  7. package/dist/{chunk-UCRSD3WR.mjs → chunk-NZTJYWGA.mjs} +221 -456
  8. package/dist/chunk-NZTJYWGA.mjs.map +1 -0
  9. package/dist/formFields/index.cjs +20 -34
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.d.mts +1 -3
  12. package/dist/formFields/index.d.ts +1 -3
  13. package/dist/formFields/index.mjs +1 -3
  14. package/dist/graphql/index.cjs +304 -546
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +2 -57
  17. package/dist/graphql/index.d.ts +2 -57
  18. package/dist/graphql/index.mjs +1 -15
  19. package/dist/hooks/index.cjs +275 -664
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -5
  22. package/dist/hooks/index.d.ts +3 -5
  23. package/dist/hooks/index.mjs +92 -280
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +412 -885
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +2 -149
  28. package/dist/index.d.ts +2 -149
  29. package/dist/index.mjs +328 -789
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-B0L3Oaoy.d.mts → post-CY04DycR.d.mts} +3 -90
  32. package/dist/{post-D4h3XD7G.d.ts → post-DIezKPg1.d.ts} +3 -90
  33. package/dist/types/index.cjs +2 -32
  34. package/dist/types/index.cjs.map +1 -1
  35. package/dist/types/index.d.mts +2 -2
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/index.mjs +3 -9
  38. package/package.json +1 -1
  39. package/dist/chunk-B5HXAEH4.mjs.map +0 -1
  40. package/dist/chunk-JRDILNPH.mjs.map +0 -1
  41. package/dist/chunk-UCRSD3WR.mjs.map +0 -1
@@ -1,92 +1,5 @@
1
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumSubscriptionStatus, EnumUserRole, EnumPartnerType } from './enums/index.mjs';
2
- import { C as Category, u as CreateFormData, A as AssociateType, r as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, T as SocialMediaType } from './global-BO4rXK3C.mjs';
3
-
4
- declare enum OrganizedMarketCount {
5
- ONE = "One",
6
- TWO_TO_THREE = "Two_to_Three",
7
- FOUR_TO_FIVE = "Four_to_Five",
8
- MORE_THAN_FIVE = "More_than_Five"
9
- }
10
- declare enum VendorSellingFrequency {
11
- TWICE_A_WEEK = "Two_to_Three_times_a_week",
12
- ONCE_A_WEEK = "Once_a_week",
13
- ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
14
- LESS_OFTEN = "Less_often"
15
- }
16
- declare enum OrganizerMarketFrequency {
17
- WEEKLY = "Weekly",
18
- FORTNIGHTLY = "Fortnightly",
19
- MONTHLY = "Monthly",
20
- SEASONAL = "Seasonal"
21
- }
22
- type TesterVendor = {
23
- categories: Category[];
24
- marketsAttended: {
25
- name: string;
26
- city: string;
27
- }[];
28
- productsOrServices: string;
29
- sellingFrequency: VendorSellingFrequency;
30
- yearlySellingApprox: number;
31
- questionary: {
32
- appearInVideoIntroduction?: boolean;
33
- applyToAtLeastOneMarket: boolean;
34
- completeFeedbackQuestionnaire: boolean;
35
- excitementAboutApp?: string;
36
- sendPhotoForSocialMedia?: boolean;
37
- socialMediaFeatureReason?: string;
38
- testingPeriodConcerns?: string;
39
- tryVisitorFeatures: boolean;
40
- uploadStallProfileFirstWeek: boolean;
41
- usefulnessExpectations?: string;
42
- };
43
- };
44
- type TesterEvent = {
45
- /** Organizer background */
46
- organizedMarketCount: OrganizedMarketCount;
47
- markets: {
48
- name: string;
49
- cityOrVenue: string;
50
- frequency: OrganizerMarketFrequency;
51
- averageStallCount: number;
52
- }[];
53
- questionary: {
54
- allowMarketingAppearance?: boolean;
55
- completeFinalQuestionnaire: boolean;
56
- interestedInCharityInitiative?: boolean;
57
- inviteStallholders: boolean;
58
- manageApplicationsAndCommunication: boolean;
59
- completeMarketProfileFirstWeek: boolean;
60
- spaceForClueMart?: boolean;
61
- uploadStallList: boolean;
62
- organizerExpectations?: string;
63
- dailyCoordinationNeeds?: string;
64
- };
65
- };
66
- interface TesterFormData {
67
- businessName: string;
68
- consents: {
69
- privacyConsent: boolean;
70
- betaTestConsent: boolean;
71
- };
72
- email: string;
73
- event?: TesterEvent | null;
74
- firstName: string;
75
- lastName: string;
76
- mobilePhone: string;
77
- osType: EnumOSPlatform;
78
- region: string;
79
- resourceType: EnumResourceType;
80
- vendor?: TesterVendor | null;
81
- }
82
- type CreateTesterFormData = CreateFormData<TesterFormData>;
83
- interface TesterType extends TesterFormData {
84
- _id: string;
85
- active: boolean;
86
- approved: boolean;
87
- createdAt: Date;
88
- updatedAt: Date | null;
89
- }
1
+ import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumPartnerType, EnumResourceType } from './enums/index.mjs';
2
+ import { A as AssociateType, r as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, u as CreateFormData, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, T as SocialMediaType } from './global-BO4rXK3C.mjs';
90
3
 
91
4
  type UserFormData = {
92
5
  _id?: string;
@@ -334,4 +247,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
334
247
  updatedAt: Date | null;
335
248
  };
336
249
 
337
- export { type AdType as A, type PostContentVideo as B, type CreateUserFormData as C, type PostFileInput as D, EnumAdStatus as E, type StripeSubscription as F, type SubscriptionPlanData as G, type SubscriptionPricingData as H, type TesterEvent as I, type TesterVendor as J, type UserActivity as K, type UserActivityEvent as L, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionPlansResponse as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type TesterFormData as g, type CreateTesterFormData as h, type AdFormData as i, type CreateAdFormData as j, type CreatePartnerFormData as k, type PostFormData as l, type CreatePostFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, EnumAdShowOn as p, EnumAdStyle as q, EnumAdType as r, EnumPostContentType as s, OrganizerMarketFrequency as t, type PostContentData as u, type PostContentFormData as v, type PostContentImage as w, type PostContentList as x, type PostContentTextarea as y, type PostContentType as z };
250
+ export { type AdType as A, type SubscriptionPlanData as B, type CreateUserFormData as C, type SubscriptionPricingData as D, EnumAdStatus as E, type UserActivity as F, type UserActivityEvent as G, type PartnerType as P, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, EnumAdShowOn as n, EnumAdStyle as o, EnumAdType as p, EnumPostContentType as q, type PostContentData as r, type PostContentFormData as s, type PostContentImage as t, type PostContentList as u, type PostContentTextarea as v, type PostContentType as w, type PostContentVideo as x, type PostFileInput as y, type StripeSubscription as z };
@@ -1,92 +1,5 @@
1
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumSubscriptionStatus, EnumUserRole, EnumPartnerType } from './enums/index.js';
2
- import { C as Category, u as CreateFormData, A as AssociateType, r as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, T as SocialMediaType } from './global-MrQGqCLu.js';
3
-
4
- declare enum OrganizedMarketCount {
5
- ONE = "One",
6
- TWO_TO_THREE = "Two_to_Three",
7
- FOUR_TO_FIVE = "Four_to_Five",
8
- MORE_THAN_FIVE = "More_than_Five"
9
- }
10
- declare enum VendorSellingFrequency {
11
- TWICE_A_WEEK = "Two_to_Three_times_a_week",
12
- ONCE_A_WEEK = "Once_a_week",
13
- ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
14
- LESS_OFTEN = "Less_often"
15
- }
16
- declare enum OrganizerMarketFrequency {
17
- WEEKLY = "Weekly",
18
- FORTNIGHTLY = "Fortnightly",
19
- MONTHLY = "Monthly",
20
- SEASONAL = "Seasonal"
21
- }
22
- type TesterVendor = {
23
- categories: Category[];
24
- marketsAttended: {
25
- name: string;
26
- city: string;
27
- }[];
28
- productsOrServices: string;
29
- sellingFrequency: VendorSellingFrequency;
30
- yearlySellingApprox: number;
31
- questionary: {
32
- appearInVideoIntroduction?: boolean;
33
- applyToAtLeastOneMarket: boolean;
34
- completeFeedbackQuestionnaire: boolean;
35
- excitementAboutApp?: string;
36
- sendPhotoForSocialMedia?: boolean;
37
- socialMediaFeatureReason?: string;
38
- testingPeriodConcerns?: string;
39
- tryVisitorFeatures: boolean;
40
- uploadStallProfileFirstWeek: boolean;
41
- usefulnessExpectations?: string;
42
- };
43
- };
44
- type TesterEvent = {
45
- /** Organizer background */
46
- organizedMarketCount: OrganizedMarketCount;
47
- markets: {
48
- name: string;
49
- cityOrVenue: string;
50
- frequency: OrganizerMarketFrequency;
51
- averageStallCount: number;
52
- }[];
53
- questionary: {
54
- allowMarketingAppearance?: boolean;
55
- completeFinalQuestionnaire: boolean;
56
- interestedInCharityInitiative?: boolean;
57
- inviteStallholders: boolean;
58
- manageApplicationsAndCommunication: boolean;
59
- completeMarketProfileFirstWeek: boolean;
60
- spaceForClueMart?: boolean;
61
- uploadStallList: boolean;
62
- organizerExpectations?: string;
63
- dailyCoordinationNeeds?: string;
64
- };
65
- };
66
- interface TesterFormData {
67
- businessName: string;
68
- consents: {
69
- privacyConsent: boolean;
70
- betaTestConsent: boolean;
71
- };
72
- email: string;
73
- event?: TesterEvent | null;
74
- firstName: string;
75
- lastName: string;
76
- mobilePhone: string;
77
- osType: EnumOSPlatform;
78
- region: string;
79
- resourceType: EnumResourceType;
80
- vendor?: TesterVendor | null;
81
- }
82
- type CreateTesterFormData = CreateFormData<TesterFormData>;
83
- interface TesterType extends TesterFormData {
84
- _id: string;
85
- active: boolean;
86
- approved: boolean;
87
- createdAt: Date;
88
- updatedAt: Date | null;
89
- }
1
+ import { EnumUserLicence, EnumSubscriptionStatus, EnumOSPlatform, EnumUserRole, EnumPartnerType, EnumResourceType } from './enums/index.js';
2
+ import { A as AssociateType, r as ResourceImageType, h as UserLicenceType, Y as TermsAgreement, D as DateTimeType, u as CreateFormData, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, T as SocialMediaType } from './global-MrQGqCLu.js';
90
3
 
91
4
  type UserFormData = {
92
5
  _id?: string;
@@ -334,4 +247,4 @@ type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
334
247
  updatedAt: Date | null;
335
248
  };
336
249
 
337
- export { type AdType as A, type PostContentVideo as B, type CreateUserFormData as C, type PostFileInput as D, EnumAdStatus as E, type StripeSubscription as F, type SubscriptionPlanData as G, type SubscriptionPricingData as H, type TesterEvent as I, type TesterVendor as J, type UserActivity as K, type UserActivityEvent as L, OrganizedMarketCount as O, type PartnerType as P, type SubscriptionPlansResponse as S, type TesterType as T, type UserType as U, VendorSellingFrequency as V, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type TesterFormData as g, type CreateTesterFormData as h, type AdFormData as i, type CreateAdFormData as j, type CreatePartnerFormData as k, type PostFormData as l, type CreatePostFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, EnumAdShowOn as p, EnumAdStyle as q, EnumAdType as r, EnumPostContentType as s, OrganizerMarketFrequency as t, type PostContentData as u, type PostContentFormData as v, type PostContentImage as w, type PostContentList as x, type PostContentTextarea as y, type PostContentType as z };
250
+ export { type AdType as A, type SubscriptionPlanData as B, type CreateUserFormData as C, type SubscriptionPricingData as D, EnumAdStatus as E, type UserActivity as F, type UserActivityEvent as G, type PartnerType as P, type SubscriptionPlansResponse as S, type UserType as U, type SubscriptionStatusData as a, type PostType as b, EnumPostType as c, type AppSettingsType as d, type UserFormData as e, type PartnerFormData as f, type AdFormData as g, type CreateAdFormData as h, type CreatePartnerFormData as i, type PostFormData as j, type CreatePostFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, EnumAdShowOn as n, EnumAdStyle as o, EnumAdType as p, EnumPostContentType as q, type PostContentData as r, type PostContentFormData as s, type PostContentImage as t, type PostContentList as u, type PostContentTextarea as v, type PostContentType as w, type PostContentVideo as x, type PostFileInput as y, type StripeSubscription as z };
@@ -27,10 +27,7 @@ __export(types_exports, {
27
27
  EnumAdType: () => EnumAdType,
28
28
  EnumPostContentType: () => EnumPostContentType,
29
29
  EnumPostType: () => EnumPostType,
30
- EnumVerificationType: () => EnumVerificationType,
31
- OrganizedMarketCount: () => OrganizedMarketCount,
32
- OrganizerMarketFrequency: () => OrganizerMarketFrequency,
33
- VendorSellingFrequency: () => VendorSellingFrequency
30
+ EnumVerificationType: () => EnumVerificationType
34
31
  });
35
32
  module.exports = __toCommonJS(types_exports);
36
33
 
@@ -38,33 +35,9 @@ module.exports = __toCommonJS(types_exports);
38
35
  var EnumVerificationType = /* @__PURE__ */ ((EnumVerificationType2) => {
39
36
  EnumVerificationType2["REGISTER"] = "register";
40
37
  EnumVerificationType2["RESET_PASSWORD"] = "resetPassword";
41
- EnumVerificationType2["TESTER_VALIDATION"] = "testerValidation";
42
38
  return EnumVerificationType2;
43
39
  })(EnumVerificationType || {});
44
40
 
45
- // src/types/tester.ts
46
- var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
47
- OrganizedMarketCount2["ONE"] = "One";
48
- OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
49
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
50
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
51
- return OrganizedMarketCount2;
52
- })(OrganizedMarketCount || {});
53
- var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
54
- VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
55
- VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
56
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
57
- VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
58
- return VendorSellingFrequency2;
59
- })(VendorSellingFrequency || {});
60
- var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
61
- OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
62
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
63
- OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
64
- OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
65
- return OrganizerMarketFrequency2;
66
- })(OrganizerMarketFrequency || {});
67
-
68
41
  // src/types/ad.ts
69
42
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
70
43
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
@@ -123,9 +96,6 @@ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
123
96
  EnumAdType,
124
97
  EnumPostContentType,
125
98
  EnumPostType,
126
- EnumVerificationType,
127
- OrganizedMarketCount,
128
- OrganizerMarketFrequency,
129
- VendorSellingFrequency
99
+ EnumVerificationType
130
100
  });
131
101
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.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\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\n","import { CreateFormData, EnumOSPlatform, TermsAgreement } from \"src\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n TESTER_VALIDATION = \"testerValidation\",\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 { 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 interestedInCharityInitiative?: boolean;\n inviteStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n completeMarketProfileFirstWeek: boolean;\n spaceForClueMart?: boolean;\n uploadStallList: boolean;\n organizerExpectations?: string;\n dailyCoordinationNeeds?: string;\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\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AACjB,EAAAA,sBAAA,uBAAoB;AAHV,SAAAA;AAAA,GAAA;;;ACEL,IAAK,uBAAL,kBAAKC,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;;;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","OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.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 \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\n","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 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\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,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,9 +1,9 @@
1
1
  import { EnumResourceType, EnumEventType } 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, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-C4rFM8ym.mjs';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-CMAZK-Pw.mjs';
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-YoinRpTT.mjs';
4
4
  import { r as ResourceImageType, D as DateTimeType, L as LocationType, s as RelationDate } from '../global-BO4rXK3C.mjs';
5
5
  export { A as AssociateType, t as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, u as CreateFormData, v as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, w as DateTimeWithPriceType, x as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, c as EventListItemType, y as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, z as LocationGeoType, M as MapMultiLocation, N as Nullable, O as OptionItem, H as OwnerType, P as PaymentInfoType, J as PosterUsageType, R as RefundPolicy, K as Region, e as RelationType, b as Requirement, f as ResourceConnectionsType, Q as ResourceContactDetailsType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, $ as VendorLocation, a0 as VendorMenuType, V as VendorType } from '../global-BO4rXK3C.mjs';
6
- export { i as AdFormData, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, h as CreateTesterFormData, C as CreateUserFormData, p as EnumAdShowOn, E as EnumAdStatus, q as EnumAdStyle, r as EnumAdType, s as EnumPostContentType, c as EnumPostType, O as OrganizedMarketCount, t as OrganizerMarketFrequency, f as PartnerFormData, P as PartnerType, u as PostContentData, v as PostContentFormData, w as PostContentImage, x as PostContentList, y as PostContentTextarea, z as PostContentType, B as PostContentVideo, D as PostFileInput, l as PostFormData, b as PostType, F as StripeSubscription, G as SubscriptionPlanData, S as SubscriptionPlansResponse, H as SubscriptionPricingData, a as SubscriptionStatusData, I as TesterEvent, g as TesterFormData, T as TesterType, J as TesterVendor, K as UserActivity, L as UserActivityEvent, e as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-B0L3Oaoy.mjs';
6
+ export { g as AdFormData, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, n as EnumAdShowOn, E as EnumAdStatus, o as EnumAdStyle, p as EnumAdType, q as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, r as PostContentData, s as PostContentFormData, t as PostContentImage, u as PostContentList, v as PostContentTextarea, w as PostContentType, x as PostContentVideo, y as PostFileInput, j as PostFormData, b as PostType, z as StripeSubscription, B as SubscriptionPlanData, S as SubscriptionPlansResponse, D as SubscriptionPricingData, a as SubscriptionStatusData, F as UserActivity, G as UserActivityEvent, e as UserFormData, U as UserType } from '../post-CY04DycR.mjs';
7
7
  import 'react-hook-form';
8
8
 
9
9
  interface AdminUpdateResourceType {
@@ -1,9 +1,9 @@
1
1
  import { EnumResourceType, EnumEventType } 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, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-Z7ZalBiX.js';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, E as EnumVerificationType, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-CYgZKLvY.js';
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-UOLb6lJs.js';
4
4
  import { r as ResourceImageType, D as DateTimeType, L as LocationType, s as RelationDate } from '../global-MrQGqCLu.js';
5
5
  export { A as AssociateType, t as BaseResourceType, B as BaseResourceTypeFormData, C as Category, n as CreateEventFormData, p as CreateEventInfoFormData, u as CreateFormData, v as CreateUnregisteredVendorFormData, j as CreateVendorFormData, l as CreateVendorInfoFormData, w as DateTimeWithPriceType, x as DeviceInfo, m as EventFormData, o as EventInfoFormData, d as EventInfoType, c as EventListItemType, y as EventStatusType, E as EventType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, z as LocationGeoType, M as MapMultiLocation, N as Nullable, O as OptionItem, H as OwnerType, P as PaymentInfoType, J as PosterUsageType, R as RefundPolicy, K as Region, e as RelationType, b as Requirement, f as ResourceConnectionsType, Q as ResourceContactDetailsType, T as SocialMediaType, S as StallType, W as Subcategory, X as SubcategoryItems, Y as TermsAgreement, q as UnregisteredVendorFormData, Z as UnregisteredVendorInvitationType, U as UnregisteredVendorType, h as UserLicenceType, _ as VendorAttributes, i as VendorFormData, k as VendorInfoFormData, g as VendorInfoType, $ as VendorLocation, a0 as VendorMenuType, V as VendorType } from '../global-MrQGqCLu.js';
6
- export { i as AdFormData, A as AdType, n as AppSettingsFormData, d as AppSettingsType, j as CreateAdFormData, o as CreateAppSettingsFormData, k as CreatePartnerFormData, m as CreatePostFormData, h as CreateTesterFormData, C as CreateUserFormData, p as EnumAdShowOn, E as EnumAdStatus, q as EnumAdStyle, r as EnumAdType, s as EnumPostContentType, c as EnumPostType, O as OrganizedMarketCount, t as OrganizerMarketFrequency, f as PartnerFormData, P as PartnerType, u as PostContentData, v as PostContentFormData, w as PostContentImage, x as PostContentList, y as PostContentTextarea, z as PostContentType, B as PostContentVideo, D as PostFileInput, l as PostFormData, b as PostType, F as StripeSubscription, G as SubscriptionPlanData, S as SubscriptionPlansResponse, H as SubscriptionPricingData, a as SubscriptionStatusData, I as TesterEvent, g as TesterFormData, T as TesterType, J as TesterVendor, K as UserActivity, L as UserActivityEvent, e as UserFormData, U as UserType, V as VendorSellingFrequency } from '../post-D4h3XD7G.js';
6
+ export { g as AdFormData, A as AdType, l as AppSettingsFormData, d as AppSettingsType, h as CreateAdFormData, m as CreateAppSettingsFormData, i as CreatePartnerFormData, k as CreatePostFormData, C as CreateUserFormData, n as EnumAdShowOn, E as EnumAdStatus, o as EnumAdStyle, p as EnumAdType, q as EnumPostContentType, c as EnumPostType, f as PartnerFormData, P as PartnerType, r as PostContentData, s as PostContentFormData, t as PostContentImage, u as PostContentList, v as PostContentTextarea, w as PostContentType, x as PostContentVideo, y as PostFileInput, j as PostFormData, b as PostType, z as StripeSubscription, B as SubscriptionPlanData, S as SubscriptionPlansResponse, D as SubscriptionPricingData, a as SubscriptionStatusData, F as UserActivity, G as UserActivityEvent, e as UserFormData, U as UserType } from '../post-DIezKPg1.js';
7
7
  import 'react-hook-form';
8
8
 
9
9
  interface AdminUpdateResourceType {
@@ -6,11 +6,8 @@ import {
6
6
  EnumAdType,
7
7
  EnumPostContentType,
8
8
  EnumPostType,
9
- EnumVerificationType,
10
- OrganizedMarketCount,
11
- OrganizerMarketFrequency,
12
- VendorSellingFrequency
13
- } from "../chunk-B5HXAEH4.mjs";
9
+ EnumVerificationType
10
+ } from "../chunk-END7A5PN.mjs";
14
11
  export {
15
12
  EnumActivity,
16
13
  EnumAdShowOn,
@@ -19,9 +16,6 @@ export {
19
16
  EnumAdType,
20
17
  EnumPostContentType,
21
18
  EnumPostType,
22
- EnumVerificationType,
23
- OrganizedMarketCount,
24
- OrganizerMarketFrequency,
25
- VendorSellingFrequency
19
+ EnumVerificationType
26
20
  };
27
21
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.4.41",
3
+ "version": "1.4.42",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/types/auth.ts","../src/types/tester.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 TESTER_VALIDATION = \"testerValidation\",\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 { 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 interestedInCharityInitiative?: boolean;\n inviteStallholders: boolean;\n manageApplicationsAndCommunication: boolean;\n completeMarketProfileFirstWeek: boolean;\n spaceForClueMart?: boolean;\n uploadStallList: boolean;\n organizerExpectations?: string;\n dailyCoordinationNeeds?: string;\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\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;AACjB,EAAAA,sBAAA,uBAAoB;AAHV,SAAAA;AAAA,GAAA;;;ACEL,IAAK,uBAAL,kBAAKC,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;;;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","OrganizedMarketCount","VendorSellingFrequency","OrganizerMarketFrequency","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType"]}