@timardex/cluemart-shared 1.2.17 → 1.2.18
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/graphql/index.cjs +30 -27
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -6
- package/dist/graphql/index.d.ts +6 -6
- package/dist/graphql/index.mjs +28 -25
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +30 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +28 -25
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceViews-B-u5nH1M.d.mts → resourceActivities-Cs8a9DgE.d.mts} +6 -6
- package/dist/{resourceViews-BZZt3kvl.d.ts → resourceActivities-eZ2Rycy_.d.ts} +6 -6
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ type CreateBulkNotificationInput = {
|
|
|
62
62
|
data: NotificationDataType | null;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
type
|
|
65
|
+
type ResourceActivityEntry = {
|
|
66
66
|
location: {
|
|
67
67
|
type: "Point";
|
|
68
68
|
coordinates: number[];
|
|
@@ -70,20 +70,20 @@ type ResourceViewEntry = {
|
|
|
70
70
|
userAgent: EnumOSPlatform;
|
|
71
71
|
viewedAt: Date;
|
|
72
72
|
};
|
|
73
|
-
type
|
|
73
|
+
type ResourceActivityType = {
|
|
74
74
|
_id: string;
|
|
75
75
|
resourceType: EnumResourceType;
|
|
76
76
|
resourceId: string;
|
|
77
|
-
views:
|
|
77
|
+
views: ResourceActivityEntry[];
|
|
78
78
|
};
|
|
79
|
-
type
|
|
79
|
+
type ResourceActivityInputType = {
|
|
80
80
|
resourceId: string;
|
|
81
81
|
resourceType: string;
|
|
82
|
-
views: Omit<
|
|
82
|
+
views: Omit<ResourceActivityEntry, "viewedAt" | "location"> & {
|
|
83
83
|
location: {
|
|
84
84
|
coordinates: number[];
|
|
85
85
|
} | null;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
export type { ChatType as C, NotificationType as N, ParticipantType as P,
|
|
89
|
+
export type { ChatType as C, NotificationType as N, ParticipantType as P, ResourceActivityType as R, NotificationCount as a, ChatMessageInput as b, ChatMessageType as c, NotificationDataType as d, CreateBulkNotificationInput as e, ResourceActivityEntry as f, ResourceActivityInputType as g };
|
|
@@ -62,7 +62,7 @@ type CreateBulkNotificationInput = {
|
|
|
62
62
|
data: NotificationDataType | null;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
type
|
|
65
|
+
type ResourceActivityEntry = {
|
|
66
66
|
location: {
|
|
67
67
|
type: "Point";
|
|
68
68
|
coordinates: number[];
|
|
@@ -70,20 +70,20 @@ type ResourceViewEntry = {
|
|
|
70
70
|
userAgent: EnumOSPlatform;
|
|
71
71
|
viewedAt: Date;
|
|
72
72
|
};
|
|
73
|
-
type
|
|
73
|
+
type ResourceActivityType = {
|
|
74
74
|
_id: string;
|
|
75
75
|
resourceType: EnumResourceType;
|
|
76
76
|
resourceId: string;
|
|
77
|
-
views:
|
|
77
|
+
views: ResourceActivityEntry[];
|
|
78
78
|
};
|
|
79
|
-
type
|
|
79
|
+
type ResourceActivityInputType = {
|
|
80
80
|
resourceId: string;
|
|
81
81
|
resourceType: string;
|
|
82
|
-
views: Omit<
|
|
82
|
+
views: Omit<ResourceActivityEntry, "viewedAt" | "location"> & {
|
|
83
83
|
location: {
|
|
84
84
|
coordinates: number[];
|
|
85
85
|
} | null;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
export type { ChatType as C, NotificationType as N, ParticipantType as P,
|
|
89
|
+
export type { ChatType as C, NotificationType as N, ParticipantType as P, ResourceActivityType as R, NotificationCount as a, ChatMessageInput as b, ChatMessageType as c, NotificationDataType as d, CreateBulkNotificationInput as e, ResourceActivityEntry as f, ResourceActivityInputType as g };
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -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 \"./
|
|
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 \"./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"],"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"]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-Cs8a9DgE.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
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';
|
|
6
6
|
import 'react-hook-form';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 ResourceActivityEntry, g as ResourceActivityInputType, R as ResourceActivityType } from '../resourceActivities-eZ2Rycy_.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
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';
|
|
6
6
|
import 'react-hook-form';
|