@timardex/cluemart-shared 1.2.65 → 1.2.68

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 (43) hide show
  1. package/dist/ad--4RgHfBN.d.ts +83 -0
  2. package/dist/ad-ByXz9Km3.d.mts +83 -0
  3. package/dist/{auth-BwtjPUgO.d.ts → auth-ChIm_Rn9.d.ts} +1 -1
  4. package/dist/{auth-DaiySFU6.d.mts → auth-gyDaskvq.d.mts} +1 -1
  5. package/dist/{chunk-N625BZKR.mjs → chunk-ILRVLTWY.mjs} +1 -1
  6. package/dist/{chunk-N625BZKR.mjs.map → chunk-ILRVLTWY.mjs.map} +1 -1
  7. package/dist/formFields/index.cjs +2 -0
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +3 -2
  10. package/dist/formFields/index.d.ts +3 -2
  11. package/dist/formFields/index.mjs +1 -0
  12. package/dist/formFields/index.mjs.map +1 -1
  13. package/dist/{global-CKf55A-q.d.mts → global-Q8FB4ZfD.d.mts} +97 -7
  14. package/dist/{global-BY8seqWN.d.ts → global-X7Gs8dR2.d.ts} +97 -7
  15. package/dist/graphql/index.cjs +8 -7
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +3 -3
  18. package/dist/graphql/index.d.ts +3 -3
  19. package/dist/graphql/index.mjs +8 -7
  20. package/dist/graphql/index.mjs.map +1 -1
  21. package/dist/hooks/index.cjs +15 -10
  22. package/dist/hooks/index.cjs.map +1 -1
  23. package/dist/hooks/index.d.mts +5 -5
  24. package/dist/hooks/index.d.ts +5 -5
  25. package/dist/hooks/index.mjs +15 -10
  26. package/dist/hooks/index.mjs.map +1 -1
  27. package/dist/index.cjs +25 -17
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +108 -100
  30. package/dist/index.d.ts +108 -100
  31. package/dist/index.mjs +23 -16
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{resourceActivities-DO97TmNs.d.mts → resourceActivities-DB-fx51l.d.mts} +3 -3
  34. package/dist/{resourceActivities-BkGGnxjl.d.ts → resourceActivities-Ezt7CDPH.d.ts} +3 -3
  35. package/dist/types/index.cjs.map +1 -1
  36. package/dist/types/index.d.mts +4 -4
  37. package/dist/types/index.d.ts +4 -4
  38. package/dist/types/index.mjs +1 -1
  39. package/dist/utils/index.d.mts +1 -1
  40. package/dist/utils/index.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/ad-CogBHjto.d.ts +0 -166
  43. package/dist/ad-VhDIYwfz.d.mts +0 -166
@@ -23,7 +23,7 @@ interface ChatType {
23
23
  active: boolean;
24
24
  chatType: EnumChatType;
25
25
  chatName: string;
26
- createdAt: string;
26
+ createdAt: Date;
27
27
  messages: ChatMessageType[];
28
28
  participants: ParticipantType[];
29
29
  resourceInfo: {
@@ -31,8 +31,8 @@ interface ChatType {
31
31
  partnerId: string | null;
32
32
  vendorId: string | null;
33
33
  } | null;
34
- updatedAt: string;
35
- deletedAt: string | null;
34
+ updatedAt: Date | null;
35
+ deletedAt: Date | null;
36
36
  }
37
37
 
38
38
  interface NotificationDataType {
@@ -23,7 +23,7 @@ interface ChatType {
23
23
  active: boolean;
24
24
  chatType: EnumChatType;
25
25
  chatName: string;
26
- createdAt: string;
26
+ createdAt: Date;
27
27
  messages: ChatMessageType[];
28
28
  participants: ParticipantType[];
29
29
  resourceInfo: {
@@ -31,8 +31,8 @@ interface ChatType {
31
31
  partnerId: string | null;
32
32
  vendorId: string | null;
33
33
  } | null;
34
- updatedAt: string;
35
- deletedAt: string | null;
34
+ updatedAt: Date | null;
35
+ deletedAt: Date | null;
36
36
  }
37
37
 
38
38
  interface NotificationDataType {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.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 \"./testers\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\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;\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;;;ACIO,IAAK,eAAL,kBAAKA,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":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity"]}
1
+ {"version":3,"sources":["../../src/types/index.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 { 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;;;ACIO,IAAK,eAAL,kBAAKA,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":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity"]}
@@ -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-DaiySFU6.mjs';
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-DO97TmNs.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, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-CKf55A-q.mjs';
5
- export { e as AdFormData, A as AdType, f as CreateAdFormData, g as CreatePartnerFormData, d as CreateTestersFormData, C as CreateUserFormData, l as EnumAdShowOn, E as EnumAdStatus, n as EnumAdStyle, m as EnumAdType, b as PartnerFormData, P as PartnerType, i as StripeSubscription, S as SubscriptionStatusData, T as TesterType, c as TestersFormData, j as UserActivity, h as UserActivityEvent, a as UserFormData, k as UserLicenceType, U as UserType } from '../ad-VhDIYwfz.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-gyDaskvq.mjs';
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-DB-fx51l.mjs';
4
+ export { A as AssociateType, t as AssociateTypeFormData, v as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateEventFormData, n as CreateEventInfoFormData, H as CreateFormData, p as CreateUserFormData, h as CreateVendorFormData, j as CreateVendorInfoFormData, w as DateTimeType, J as DateTimeWithPriceType, D as DeviceInfo, k as EventFormData, m 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, u as OwnerType, K as PaymentInfoType, P as PosterUsageType, x as Region, Q as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceContactDetailsType, r as ResourceImageType, s as SocialMediaType, S as StallType, _ as StripeSubscription, z as Subcategory, y as SubcategoryItems, f as SubscriptionStatusData, T as TermsAgreement, $ as UserActivity, Z as UserActivityEvent, o as UserFormData, a0 as UserLicenceType, U as UserType, Y as VendorAttributes, g as VendorFormData, i as VendorInfoFormData, e as VendorInfoType, W as VendorLocation, X as VendorMenuType, V as VendorType } from '../global-Q8FB4ZfD.mjs';
5
+ export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData, f as EnumAdShowOn, E as EnumAdStatus, h as EnumAdStyle, g as EnumAdType, a as PartnerFormData, P as PartnerType, b as TesterFormData, T as TesterType } from '../ad-ByXz9Km3.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-BwtjPUgO.js';
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-BkGGnxjl.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, K as VendorAttributes, f as VendorFormData, h as VendorInfoFormData, e as VendorInfoType, H as VendorLocation, J as VendorMenuType, V as VendorType } from '../global-BY8seqWN.js';
5
- export { e as AdFormData, A as AdType, f as CreateAdFormData, g as CreatePartnerFormData, d as CreateTestersFormData, C as CreateUserFormData, l as EnumAdShowOn, E as EnumAdStatus, n as EnumAdStyle, m as EnumAdType, b as PartnerFormData, P as PartnerType, i as StripeSubscription, S as SubscriptionStatusData, T as TesterType, c as TestersFormData, j as UserActivity, h as UserActivityEvent, a as UserFormData, k as UserLicenceType, U as UserType } from '../ad-CogBHjto.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-ChIm_Rn9.js';
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-Ezt7CDPH.js';
4
+ export { A as AssociateType, t as AssociateTypeFormData, v as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateEventFormData, n as CreateEventInfoFormData, H as CreateFormData, p as CreateUserFormData, h as CreateVendorFormData, j as CreateVendorInfoFormData, w as DateTimeType, J as DateTimeWithPriceType, D as DeviceInfo, k as EventFormData, m 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, u as OwnerType, K as PaymentInfoType, P as PosterUsageType, x as Region, Q as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceContactDetailsType, r as ResourceImageType, s as SocialMediaType, S as StallType, _ as StripeSubscription, z as Subcategory, y as SubcategoryItems, f as SubscriptionStatusData, T as TermsAgreement, $ as UserActivity, Z as UserActivityEvent, o as UserFormData, a0 as UserLicenceType, U as UserType, Y as VendorAttributes, g as VendorFormData, i as VendorInfoFormData, e as VendorInfoType, W as VendorLocation, X as VendorMenuType, V as VendorType } from '../global-X7Gs8dR2.js';
5
+ export { c as AdFormData, A as AdType, d as CreateAdFormData, e as CreatePartnerFormData, C as CreateTesterFormData, f as EnumAdShowOn, E as EnumAdStatus, h as EnumAdStyle, g as EnumAdType, a as PartnerFormData, P as PartnerType, b as TesterFormData, T as TesterType } from '../ad--4RgHfBN.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -3,7 +3,7 @@ import {
3
3
  EnumAdStatus,
4
4
  EnumAdStyle,
5
5
  EnumAdType
6
- } from "../chunk-N625BZKR.mjs";
6
+ } from "../chunk-ILRVLTWY.mjs";
7
7
 
8
8
  // src/types/resourceActivities.ts
9
9
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
2
- import { t as Region, O as OptionItem } from '../global-CKf55A-q.mjs';
2
+ import { x as Region, O as OptionItem } from '../global-Q8FB4ZfD.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-BY8seqWN.js';
2
+ import { x as Region, O as OptionItem } from '../global-X7Gs8dR2.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.2.65",
3
+ "version": "1.2.68",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1,166 +0,0 @@
1
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole, EnumSubscriptionStatus, EnumEventDateStatus, EnumPartnerType } from './enums/index.js';
2
- import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, T as TermsAgreement, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-BY8seqWN.js';
3
-
4
- interface TestersFormData {
5
- categories?: Category[] | null;
6
- companyName: string;
7
- email: string;
8
- firstName: string;
9
- lastName: string;
10
- osType: EnumOSPlatform;
11
- region: string;
12
- resourceType: EnumResourceType;
13
- }
14
- type CreateTestersFormData = CreateFormData<TestersFormData>;
15
- interface TesterType extends TestersFormData {
16
- _id: string;
17
- active: boolean;
18
- createdAt: string;
19
- updatedAt: string;
20
- }
21
-
22
- type UserFormData = {
23
- _id?: string;
24
- active: boolean;
25
- avatar?: ResourceImageType | null;
26
- avatarUpload?: ResourceImageType | null;
27
- confirmPassword?: string | null;
28
- email: string;
29
- firstName: string;
30
- isTester: boolean;
31
- lastName: string;
32
- password?: string | null;
33
- platform?: EnumOSPlatform;
34
- preferredRegion: string;
35
- role: EnumUserRole;
36
- termsAgreement?: TermsAgreement | null;
37
- };
38
- type CreateUserFormData = CreateFormData<UserFormData>;
39
- type UserActivityEvent = {
40
- dateStatus: EnumEventDateStatus;
41
- resourceId: string;
42
- startDate: string;
43
- startTime: string;
44
- };
45
- type StripeSubscription = {
46
- customerId?: string;
47
- subscriptionId?: string;
48
- status?: EnumSubscriptionStatus;
49
- currentPlan?: EnumUserLicence;
50
- startDate?: string;
51
- endDate?: string;
52
- };
53
- type SubscriptionStatusData = {
54
- subscriptionId: string | null;
55
- status: EnumSubscriptionStatus;
56
- priceId: string | null;
57
- currentPlan: EnumUserLicence | null;
58
- };
59
- type UserActivity = {
60
- favourites: {
61
- events: string[];
62
- vendors: string[];
63
- partners: string[];
64
- };
65
- going: {
66
- events: UserActivityEvent[];
67
- };
68
- interested: {
69
- events: UserActivityEvent[];
70
- };
71
- present: {
72
- events: UserActivityEvent[];
73
- };
74
- };
75
- type UserLicenceType = {
76
- expiryDate: string | null;
77
- issuedDate: string | null;
78
- licenceType: EnumUserLicence;
79
- };
80
- interface UserType {
81
- _id: string;
82
- active: boolean;
83
- associates?: AssociateType[] | null;
84
- avatar: ResourceImageType | null;
85
- createdAt: string;
86
- deletedAt: string | null;
87
- email: string;
88
- events: string[] | null;
89
- firstName: string;
90
- isTester: boolean;
91
- lastName: string;
92
- licences: UserLicenceType[] | null;
93
- partner: string | null;
94
- password: string;
95
- platform: EnumOSPlatform | null;
96
- preferredRegion: string;
97
- refreshToken: string | null;
98
- role: EnumUserRole;
99
- stripe?: StripeSubscription;
100
- termsAgreement?: TermsAgreement | null;
101
- updatedAt: string;
102
- userActivity: UserActivity | null;
103
- vendor: string | null;
104
- }
105
-
106
- interface PartnerFormData extends BaseResourceTypeFormData {
107
- location: LocationType;
108
- nzbn: string;
109
- partnerType: EnumPartnerType;
110
- }
111
- type CreatePartnerFormData = CreateFormData<PartnerFormData>;
112
- interface PartnerType extends BaseResourceType {
113
- location: LocationType;
114
- nzbn: string;
115
- partnerType: EnumPartnerType;
116
- }
117
-
118
- declare enum EnumAdShowOn {
119
- EVENTS_PAGE = "Events_page",
120
- FRONT_PAGE = "Front_page",
121
- PARTNERS_PAGE = "Partners_page",
122
- VENDORS_PAGE = "Vendors_page"
123
- }
124
- declare enum EnumAdStatus {
125
- ACTIVE = "Active",
126
- PAUSED = "Paused",
127
- EXPIRED = "Expired"
128
- }
129
- declare enum EnumAdType {
130
- SPONSORED = "Sponsored",
131
- FREE = "Free"
132
- }
133
- declare enum EnumAdStyle {
134
- BLOOM = "Bloom",
135
- RISE = "Rise"
136
- }
137
- interface AdFormData {
138
- active: boolean;
139
- adStyle: EnumAdStyle;
140
- adType: EnumAdType;
141
- clui?: string | null;
142
- end: Date;
143
- resourceCover: string;
144
- resourceDescription: string;
145
- resourceId: string;
146
- resourceLogo?: string | null;
147
- resourceName: string;
148
- resourceRegion: string;
149
- resourceType: EnumResourceType;
150
- showOn: EnumAdShowOn;
151
- socialMedia?: SocialMediaType[] | null;
152
- start?: Date;
153
- status: EnumAdStatus;
154
- targetRegion?: string | null;
155
- }
156
- type CreateAdFormData = CreateFormData<AdFormData>;
157
- interface AdType extends AdFormData {
158
- _id: string;
159
- clicks?: number;
160
- createdAt: Date;
161
- impressions?: number;
162
- start: Date;
163
- updatedAt: Date;
164
- }
165
-
166
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, type UserFormData as a, type PartnerFormData as b, type TestersFormData as c, type CreateTestersFormData as d, type AdFormData as e, type CreateAdFormData as f, type CreatePartnerFormData as g, type UserActivityEvent as h, type StripeSubscription as i, type UserActivity as j, type UserLicenceType as k, EnumAdShowOn as l, EnumAdType as m, EnumAdStyle as n };
@@ -1,166 +0,0 @@
1
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole, EnumSubscriptionStatus, EnumEventDateStatus, EnumPartnerType } from './enums/index.mjs';
2
- import { C as Category, w as CreateFormData, A as AssociateType, o as ResourceImageType, T as TermsAgreement, r as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, p as SocialMediaType } from './global-CKf55A-q.mjs';
3
-
4
- interface TestersFormData {
5
- categories?: Category[] | null;
6
- companyName: string;
7
- email: string;
8
- firstName: string;
9
- lastName: string;
10
- osType: EnumOSPlatform;
11
- region: string;
12
- resourceType: EnumResourceType;
13
- }
14
- type CreateTestersFormData = CreateFormData<TestersFormData>;
15
- interface TesterType extends TestersFormData {
16
- _id: string;
17
- active: boolean;
18
- createdAt: string;
19
- updatedAt: string;
20
- }
21
-
22
- type UserFormData = {
23
- _id?: string;
24
- active: boolean;
25
- avatar?: ResourceImageType | null;
26
- avatarUpload?: ResourceImageType | null;
27
- confirmPassword?: string | null;
28
- email: string;
29
- firstName: string;
30
- isTester: boolean;
31
- lastName: string;
32
- password?: string | null;
33
- platform?: EnumOSPlatform;
34
- preferredRegion: string;
35
- role: EnumUserRole;
36
- termsAgreement?: TermsAgreement | null;
37
- };
38
- type CreateUserFormData = CreateFormData<UserFormData>;
39
- type UserActivityEvent = {
40
- dateStatus: EnumEventDateStatus;
41
- resourceId: string;
42
- startDate: string;
43
- startTime: string;
44
- };
45
- type StripeSubscription = {
46
- customerId?: string;
47
- subscriptionId?: string;
48
- status?: EnumSubscriptionStatus;
49
- currentPlan?: EnumUserLicence;
50
- startDate?: string;
51
- endDate?: string;
52
- };
53
- type SubscriptionStatusData = {
54
- subscriptionId: string | null;
55
- status: EnumSubscriptionStatus;
56
- priceId: string | null;
57
- currentPlan: EnumUserLicence | null;
58
- };
59
- type UserActivity = {
60
- favourites: {
61
- events: string[];
62
- vendors: string[];
63
- partners: string[];
64
- };
65
- going: {
66
- events: UserActivityEvent[];
67
- };
68
- interested: {
69
- events: UserActivityEvent[];
70
- };
71
- present: {
72
- events: UserActivityEvent[];
73
- };
74
- };
75
- type UserLicenceType = {
76
- expiryDate: string | null;
77
- issuedDate: string | null;
78
- licenceType: EnumUserLicence;
79
- };
80
- interface UserType {
81
- _id: string;
82
- active: boolean;
83
- associates?: AssociateType[] | null;
84
- avatar: ResourceImageType | null;
85
- createdAt: string;
86
- deletedAt: string | null;
87
- email: string;
88
- events: string[] | null;
89
- firstName: string;
90
- isTester: boolean;
91
- lastName: string;
92
- licences: UserLicenceType[] | null;
93
- partner: string | null;
94
- password: string;
95
- platform: EnumOSPlatform | null;
96
- preferredRegion: string;
97
- refreshToken: string | null;
98
- role: EnumUserRole;
99
- stripe?: StripeSubscription;
100
- termsAgreement?: TermsAgreement | null;
101
- updatedAt: string;
102
- userActivity: UserActivity | null;
103
- vendor: string | null;
104
- }
105
-
106
- interface PartnerFormData extends BaseResourceTypeFormData {
107
- location: LocationType;
108
- nzbn: string;
109
- partnerType: EnumPartnerType;
110
- }
111
- type CreatePartnerFormData = CreateFormData<PartnerFormData>;
112
- interface PartnerType extends BaseResourceType {
113
- location: LocationType;
114
- nzbn: string;
115
- partnerType: EnumPartnerType;
116
- }
117
-
118
- declare enum EnumAdShowOn {
119
- EVENTS_PAGE = "Events_page",
120
- FRONT_PAGE = "Front_page",
121
- PARTNERS_PAGE = "Partners_page",
122
- VENDORS_PAGE = "Vendors_page"
123
- }
124
- declare enum EnumAdStatus {
125
- ACTIVE = "Active",
126
- PAUSED = "Paused",
127
- EXPIRED = "Expired"
128
- }
129
- declare enum EnumAdType {
130
- SPONSORED = "Sponsored",
131
- FREE = "Free"
132
- }
133
- declare enum EnumAdStyle {
134
- BLOOM = "Bloom",
135
- RISE = "Rise"
136
- }
137
- interface AdFormData {
138
- active: boolean;
139
- adStyle: EnumAdStyle;
140
- adType: EnumAdType;
141
- clui?: string | null;
142
- end: Date;
143
- resourceCover: string;
144
- resourceDescription: string;
145
- resourceId: string;
146
- resourceLogo?: string | null;
147
- resourceName: string;
148
- resourceRegion: string;
149
- resourceType: EnumResourceType;
150
- showOn: EnumAdShowOn;
151
- socialMedia?: SocialMediaType[] | null;
152
- start?: Date;
153
- status: EnumAdStatus;
154
- targetRegion?: string | null;
155
- }
156
- type CreateAdFormData = CreateFormData<AdFormData>;
157
- interface AdType extends AdFormData {
158
- _id: string;
159
- clicks?: number;
160
- createdAt: Date;
161
- impressions?: number;
162
- start: Date;
163
- updatedAt: Date;
164
- }
165
-
166
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type PartnerType as P, type SubscriptionStatusData as S, type TesterType as T, type UserType as U, type UserFormData as a, type PartnerFormData as b, type TestersFormData as c, type CreateTestersFormData as d, type AdFormData as e, type CreateAdFormData as f, type CreatePartnerFormData as g, type UserActivityEvent as h, type StripeSubscription as i, type UserActivity as j, type UserLicenceType as k, EnumAdShowOn as l, EnumAdType as m, EnumAdStyle as n };