@timardex/cluemart-shared 1.2.17 → 1.2.19

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.
@@ -62,28 +62,30 @@ type CreateBulkNotificationInput = {
62
62
  data: NotificationDataType | null;
63
63
  };
64
64
 
65
- type ResourceViewEntry = {
65
+ declare enum EnumActivity {
66
+ VIEW = "VIEW",
67
+ GOING = "GOING",
68
+ INTERESTED = "INTERESTED"
69
+ }
70
+ type ResourceActivityEntry = {
71
+ activityType: EnumActivity;
66
72
  location: {
67
73
  type: "Point";
68
74
  coordinates: number[];
69
75
  } | null;
70
76
  userAgent: EnumOSPlatform;
71
- viewedAt: Date;
77
+ timestamp: Date;
72
78
  };
73
- type ResourceViewsType = {
79
+ type ResourceActivityType = {
74
80
  _id: string;
75
81
  resourceType: EnumResourceType;
76
82
  resourceId: string;
77
- views: ResourceViewEntry[];
83
+ activity: ResourceActivityEntry[];
78
84
  };
79
- type ResourceViewInputType = {
85
+ type ResourceActivityInputType = {
80
86
  resourceId: string;
81
87
  resourceType: string;
82
- views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
83
- location: {
84
- coordinates: number[];
85
- } | null;
86
- };
88
+ activity: Omit<ResourceActivityEntry, "timestamp">;
87
89
  };
88
90
 
89
- export type { ChatType as C, NotificationType as N, ParticipantType as P, ResourceViewsType as R, NotificationCount as a, ChatMessageInput as b, ChatMessageType as c, NotificationDataType as d, CreateBulkNotificationInput as e, ResourceViewEntry as f, ResourceViewInputType as g };
91
+ export { type ChatType as C, EnumActivity as E, type NotificationType as N, type ParticipantType as P, type ResourceActivityType as R, type NotificationCount as a, type ChatMessageInput as b, type ChatMessageType as c, type NotificationDataType as d, type CreateBulkNotificationInput as e, type ResourceActivityEntry as f, type ResourceActivityInputType as g };
@@ -62,28 +62,30 @@ type CreateBulkNotificationInput = {
62
62
  data: NotificationDataType | null;
63
63
  };
64
64
 
65
- type ResourceViewEntry = {
65
+ declare enum EnumActivity {
66
+ VIEW = "VIEW",
67
+ GOING = "GOING",
68
+ INTERESTED = "INTERESTED"
69
+ }
70
+ type ResourceActivityEntry = {
71
+ activityType: EnumActivity;
66
72
  location: {
67
73
  type: "Point";
68
74
  coordinates: number[];
69
75
  } | null;
70
76
  userAgent: EnumOSPlatform;
71
- viewedAt: Date;
77
+ timestamp: Date;
72
78
  };
73
- type ResourceViewsType = {
79
+ type ResourceActivityType = {
74
80
  _id: string;
75
81
  resourceType: EnumResourceType;
76
82
  resourceId: string;
77
- views: ResourceViewEntry[];
83
+ activity: ResourceActivityEntry[];
78
84
  };
79
- type ResourceViewInputType = {
85
+ type ResourceActivityInputType = {
80
86
  resourceId: string;
81
87
  resourceType: string;
82
- views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
83
- location: {
84
- coordinates: number[];
85
- } | null;
86
- };
88
+ activity: Omit<ResourceActivityEntry, "timestamp">;
87
89
  };
88
90
 
89
- export type { ChatType as C, NotificationType as N, ParticipantType as P, ResourceViewsType as R, NotificationCount as a, ChatMessageInput as b, ChatMessageType as c, NotificationDataType as d, CreateBulkNotificationInput as e, ResourceViewEntry as f, ResourceViewInputType as g };
91
+ export { type ChatType as C, EnumActivity as E, type NotificationType as N, type ParticipantType as P, type ResourceActivityType as R, type NotificationCount as a, type ChatMessageInput as b, type ChatMessageType as c, type NotificationDataType as d, type CreateBulkNotificationInput as e, type ResourceActivityEntry as f, type ResourceActivityInputType as g };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/types/index.ts
21
21
  var types_exports = {};
22
22
  __export(types_exports, {
23
+ EnumActivity: () => EnumActivity,
23
24
  EnumAdShowOn: () => EnumAdShowOn,
24
25
  EnumAdStatus: () => EnumAdStatus,
25
26
  EnumAdStyle: () => EnumAdStyle,
@@ -50,8 +51,17 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
50
51
  EnumAdStyle2["RISE"] = "Rise";
51
52
  return EnumAdStyle2;
52
53
  })(EnumAdStyle || {});
54
+
55
+ // src/types/resourceActivities.ts
56
+ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
57
+ EnumActivity2["VIEW"] = "VIEW";
58
+ EnumActivity2["GOING"] = "GOING";
59
+ EnumActivity2["INTERESTED"] = "INTERESTED";
60
+ return EnumActivity2;
61
+ })(EnumActivity || {});
53
62
  // Annotate the CommonJS export names for ESM import in node:
54
63
  0 && (module.exports = {
64
+ EnumActivity,
55
65
  EnumAdShowOn,
56
66
  EnumAdStatus,
57
67
  EnumAdStyle,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/ad.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 \"./resourceViews\";\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n FRONT_PAGE = \"Front_page\",\n EVENTS_PAGE = \"Events_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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,kBAAe;AAHL,SAAAA;AAAA,GAAA;AAML,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;","names":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle"]}
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\";\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdShowOn {\n FRONT_PAGE = \"Front_page\",\n EVENTS_PAGE = \"Events_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 { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nexport enum EnumActivity {\n VIEW = \"VIEW\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | null;\n userAgent: EnumOSPlatform;\n timestamp: Date;\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,gBAAa;AACb,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,kBAAe;AAHL,SAAAA;AAAA,GAAA;AAML,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;;;ACnBL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,UAAO;AACP,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AAHH,SAAAA;AAAA,GAAA;","names":["EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity"]}
@@ -1,8 +1,8 @@
1
1
  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-BVGs-5Vm.mjs';
3
- export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceViewEntry, g as ResourceViewInputType, R as ResourceViewsType } from '../resourceViews-B-u5nH1M.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-BjdUNSMJ.mjs';
4
4
  export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, x as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, t as DateTimeType, y 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, P as PartnerType, z as PaymentInfoType, r as PosterUsageType, u as Region, A as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, w as Subcategory, v 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-BEqzo5Z2.mjs';
5
- export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, g as EnumAdShowOn, E as EnumAdStatus, i as EnumAdStyle, h as EnumAdType, T as TesterType, b as TestersFormData, f as UserActivity, a as UserFormData, U as UserType } from '../ad-BozU03cK.mjs';
5
+ export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, g as EnumAdShowOn, E as EnumAdStatus, i as EnumAdStyle, h as EnumAdType, T as TesterType, b as TestersFormData, f as UserActivity, a as UserFormData, U as UserType } from '../ad-CMPlGS2z.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
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-BhUIvvZ2.js';
3
- export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType, f as ResourceViewEntry, g as ResourceViewInputType, R as ResourceViewsType } from '../resourceViews-BZZt3kvl.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-CHncRJrn.js';
4
4
  export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, k as CreateEventFormData, m as CreateEventInfoFormData, x as CreateFormData, g as CreateVendorFormData, i as CreateVendorInfoFormData, t as DateTimeType, y 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, P as PartnerType, z as PaymentInfoType, r as PosterUsageType, u as Region, A as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, n as ResourceContactDetailsType, o as ResourceImageType, p as SocialMediaType, S as StallType, w as Subcategory, v 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-BA84KF8J.js';
5
- export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, g as EnumAdShowOn, E as EnumAdStatus, i as EnumAdStyle, h as EnumAdType, T as TesterType, b as TestersFormData, f as UserActivity, a as UserFormData, U as UserType } from '../ad-0fMmeab1.js';
5
+ export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, g as EnumAdShowOn, E as EnumAdStatus, i as EnumAdStyle, h as EnumAdType, T as TesterType, b as TestersFormData, f as UserActivity, a as UserFormData, U as UserType } from '../ad-CbnwOWnz.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -4,7 +4,16 @@ import {
4
4
  EnumAdStyle,
5
5
  EnumAdType
6
6
  } from "../chunk-XXZPSRMS.mjs";
7
+
8
+ // src/types/resourceActivities.ts
9
+ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
10
+ EnumActivity2["VIEW"] = "VIEW";
11
+ EnumActivity2["GOING"] = "GOING";
12
+ EnumActivity2["INTERESTED"] = "INTERESTED";
13
+ return EnumActivity2;
14
+ })(EnumActivity || {});
7
15
  export {
16
+ EnumActivity,
8
17
  EnumAdShowOn,
9
18
  EnumAdStatus,
10
19
  EnumAdStyle,
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nexport enum EnumActivity {\n VIEW = \"VIEW\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: {\n type: \"Point\";\n coordinates: number[]; // [longitude, latitude]\n } | null;\n userAgent: EnumOSPlatform;\n timestamp: Date;\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":";;;;;;;;AAEO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,UAAO;AACP,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AAHH,SAAAA;AAAA,GAAA;","names":["EnumActivity"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",