@timardex/cluemart-shared 1.2.22 → 1.2.23
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.
- package/dist/{ad-CMPlGS2z.d.mts → ad-BsEtu052.d.mts} +6 -0
- package/dist/{ad-CbnwOWnz.d.ts → ad-Dg1bpjxd.d.ts} +6 -0
- package/dist/graphql/index.cjs +72 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +16 -3
- package/dist/graphql/index.d.ts +16 -3
- package/dist/graphql/index.mjs +70 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +75 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.mjs +73 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-C9cWAM6L.d.mts → resourceActivities-DDe473dL.d.mts} +3 -2
- package/dist/{resourceActivities-C04G4vFP.d.ts → resourceActivities-N7iowh1a.d.ts} +3 -2
- package/dist/types/index.cjs +3 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +3 -2
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -63,10 +63,11 @@ type CreateBulkNotificationInput = {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
declare enum EnumActivity {
|
|
66
|
-
|
|
66
|
+
FAVORITE = "FAVORITE",
|
|
67
67
|
GOING = "GOING",
|
|
68
68
|
INTERESTED = "INTERESTED",
|
|
69
|
-
|
|
69
|
+
PRESENT = "PRESENT",
|
|
70
|
+
VIEW = "VIEW"
|
|
70
71
|
}
|
|
71
72
|
type ResourceActivityEntry = {
|
|
72
73
|
activityType: EnumActivity;
|
|
@@ -63,10 +63,11 @@ type CreateBulkNotificationInput = {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
declare enum EnumActivity {
|
|
66
|
-
|
|
66
|
+
FAVORITE = "FAVORITE",
|
|
67
67
|
GOING = "GOING",
|
|
68
68
|
INTERESTED = "INTERESTED",
|
|
69
|
-
|
|
69
|
+
PRESENT = "PRESENT",
|
|
70
|
+
VIEW = "VIEW"
|
|
70
71
|
}
|
|
71
72
|
type ResourceActivityEntry = {
|
|
72
73
|
activityType: EnumActivity;
|
package/dist/types/index.cjs
CHANGED
|
@@ -54,10 +54,11 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
|
54
54
|
|
|
55
55
|
// src/types/resourceActivities.ts
|
|
56
56
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
57
|
-
EnumActivity2["
|
|
57
|
+
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
58
58
|
EnumActivity2["GOING"] = "GOING";
|
|
59
59
|
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
60
|
-
EnumActivity2["
|
|
60
|
+
EnumActivity2["PRESENT"] = "PRESENT";
|
|
61
|
+
EnumActivity2["VIEW"] = "VIEW";
|
|
61
62
|
return EnumActivity2;
|
|
62
63
|
})(EnumActivity || {});
|
|
63
64
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -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\";\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
|
|
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 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 startDate?: 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,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,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"]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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, 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-
|
|
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-DDe473dL.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-
|
|
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-BsEtu052.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface AdminUpdateResourceType {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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, 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-
|
|
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-N7iowh1a.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-
|
|
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-Dg1bpjxd.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
interface AdminUpdateResourceType {
|
package/dist/types/index.mjs
CHANGED
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// src/types/resourceActivities.ts
|
|
9
9
|
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
10
|
-
EnumActivity2["
|
|
10
|
+
EnumActivity2["FAVORITE"] = "FAVORITE";
|
|
11
11
|
EnumActivity2["GOING"] = "GOING";
|
|
12
12
|
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
13
|
-
EnumActivity2["
|
|
13
|
+
EnumActivity2["PRESENT"] = "PRESENT";
|
|
14
|
+
EnumActivity2["VIEW"] = "VIEW";
|
|
14
15
|
return EnumActivity2;
|
|
15
16
|
})(EnumActivity || {});
|
|
16
17
|
export {
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } from \"src/enums\";\n\nexport enum EnumActivity {\n
|
|
1
|
+
{"version":3,"sources":["../../src/types/resourceActivities.ts"],"sourcesContent":["import { EnumOSPlatform, EnumResourceType } 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 startDate?: 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":";;;;;;;;AAEO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,UAAO;AALG,SAAAA;AAAA,GAAA;","names":["EnumActivity"]}
|