@timardex/cluemart-shared 1.0.79 → 1.0.80
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/chunk-SCXVJDGI.mjs +114 -0
- package/dist/chunk-SCXVJDGI.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-Drk9CYfv.d.ts → global-Bieh1fh8.d.mts} +2 -10
- package/dist/{global-2TLPFthS.d.mts → global-By7aHQ1y.d.ts} +2 -10
- package/dist/graphql/index.cjs +152 -104
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -13
- package/dist/graphql/index.d.ts +11 -13
- package/dist/graphql/index.mjs +32 -84
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +202 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +26 -3
- package/dist/hooks/index.d.ts +26 -3
- package/dist/hooks/index.mjs +104 -0
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +248 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -20
- package/dist/index.d.ts +69 -20
- package/dist/index.mjs +220 -82
- package/dist/index.mjs.map +1 -1
- package/dist/{contactUs-CQ9xTjlE.d.mts → notification-H4hE5cdq.d.mts} +38 -1
- package/dist/{contactUs-CQ9xTjlE.d.ts → notification-H4hE5cdq.d.ts} +38 -1
- 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/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -98,4 +98,41 @@ interface CreateContactUsFormData {
|
|
|
98
98
|
watch: UseFormWatch<ContactUsFormData>;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
type NotificationType = "market" | "stallholder" | "relation" | "chat" | "system";
|
|
102
|
+
interface Notification {
|
|
103
|
+
id: string;
|
|
104
|
+
userId: string;
|
|
105
|
+
title: string;
|
|
106
|
+
message: string;
|
|
107
|
+
type: NotificationType;
|
|
108
|
+
isRead: boolean;
|
|
109
|
+
data?: Record<string, unknown>;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
}
|
|
113
|
+
interface NotificationCount {
|
|
114
|
+
total: number;
|
|
115
|
+
unread: number;
|
|
116
|
+
}
|
|
117
|
+
interface CreateNotificationInput {
|
|
118
|
+
userId: string;
|
|
119
|
+
title: string;
|
|
120
|
+
message: string;
|
|
121
|
+
type?: NotificationType;
|
|
122
|
+
data?: Record<string, unknown>;
|
|
123
|
+
}
|
|
124
|
+
interface CreateBulkNotificationInput {
|
|
125
|
+
userIds: string[];
|
|
126
|
+
title: string;
|
|
127
|
+
message: string;
|
|
128
|
+
type?: NotificationType;
|
|
129
|
+
data?: Record<string, unknown>;
|
|
130
|
+
}
|
|
131
|
+
interface MarkNotificationReadInput {
|
|
132
|
+
notificationIds: string[];
|
|
133
|
+
}
|
|
134
|
+
interface MarkAllNotificationsReadInput {
|
|
135
|
+
userId: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type { CreateLoginFormData as C, LoginFormData as L, MarkNotificationReadInput as M, NotificationType as N, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, CreateNotificationInput as g, CreateBulkNotificationInput as h, MarkAllNotificationsReadInput as i, RequestPasswordResetFormData as j, ResetPasswordFormData as k, Notification as l, NotificationCount as m };
|
|
@@ -98,4 +98,41 @@ interface CreateContactUsFormData {
|
|
|
98
98
|
watch: UseFormWatch<ContactUsFormData>;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
type NotificationType = "market" | "stallholder" | "relation" | "chat" | "system";
|
|
102
|
+
interface Notification {
|
|
103
|
+
id: string;
|
|
104
|
+
userId: string;
|
|
105
|
+
title: string;
|
|
106
|
+
message: string;
|
|
107
|
+
type: NotificationType;
|
|
108
|
+
isRead: boolean;
|
|
109
|
+
data?: Record<string, unknown>;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
}
|
|
113
|
+
interface NotificationCount {
|
|
114
|
+
total: number;
|
|
115
|
+
unread: number;
|
|
116
|
+
}
|
|
117
|
+
interface CreateNotificationInput {
|
|
118
|
+
userId: string;
|
|
119
|
+
title: string;
|
|
120
|
+
message: string;
|
|
121
|
+
type?: NotificationType;
|
|
122
|
+
data?: Record<string, unknown>;
|
|
123
|
+
}
|
|
124
|
+
interface CreateBulkNotificationInput {
|
|
125
|
+
userIds: string[];
|
|
126
|
+
title: string;
|
|
127
|
+
message: string;
|
|
128
|
+
type?: NotificationType;
|
|
129
|
+
data?: Record<string, unknown>;
|
|
130
|
+
}
|
|
131
|
+
interface MarkNotificationReadInput {
|
|
132
|
+
notificationIds: string[];
|
|
133
|
+
}
|
|
134
|
+
interface MarkAllNotificationsReadInput {
|
|
135
|
+
userId: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type { CreateLoginFormData as C, LoginFormData as L, MarkNotificationReadInput as M, NotificationType as N, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, CreateNotificationInput as g, CreateBulkNotificationInput as h, MarkAllNotificationsReadInput as i, RequestPasswordResetFormData as j, ResetPasswordFormData as k, Notification as l, NotificationCount as m };
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./market\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./stallholder\";\nexport * from \"./testers\";\nexport * from \"./user\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./market\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./stallholder\";\nexport * from \"./testers\";\nexport * from \"./user\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
2
|
+
export { e as ContactUsFormData, h as CreateBulkNotificationInput, f as CreateContactUsFormData, C as CreateLoginFormData, g as CreateNotificationInput, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, i as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, l as Notification, m as NotificationCount, N as NotificationType, R as RegisterFormData, j as RequestPasswordResetFormData, k as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../notification-H4hE5cdq.mjs';
|
|
3
3
|
export { a as ChatInput, b as ChatMessageInput, c as ChatMessageType, C as ChatType } from '../chat-BUVCf9Tu.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, p as CreateUserFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, u as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, P as PaymentInfoType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceImageType, H as SatllholderWithConnectionDatesType, r as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, w as Subcategory, v as SubcategoryItems, o as UserFormData, U as UserType } from '../global-Bieh1fh8.mjs';
|
|
5
5
|
export { C as CreateTestersFormData, T as TesterType, a as TestersFormData } from '../testers-74J9OA2P.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
2
|
+
export { e as ContactUsFormData, h as CreateBulkNotificationInput, f as CreateContactUsFormData, C as CreateLoginFormData, g as CreateNotificationInput, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, i as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, l as Notification, m as NotificationCount, N as NotificationType, R as RegisterFormData, j as RequestPasswordResetFormData, k as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../notification-H4hE5cdq.js';
|
|
3
3
|
export { a as ChatInput, b as ChatMessageInput, c as ChatMessageType, C as ChatType } from '../chat-BUVCf9Tu.js';
|
|
4
|
-
export {
|
|
4
|
+
export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, p as CreateUserFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, u as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, P as PaymentInfoType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceImageType, H as SatllholderWithConnectionDatesType, r as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, w as Subcategory, v as SubcategoryItems, o as UserFormData, U as UserType } from '../global-By7aHQ1y.js';
|
|
5
5
|
export { C as CreateTestersFormData, T as TesterType, a as TestersFormData } from '../testers-CqYqJvlZ.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { t as Region, O as OptionItem } from '../global-Bieh1fh8.mjs';
|
|
3
3
|
import 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
declare const dateFormat = "DD-MM-YYYY";
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumInviteStatus, EnumRegions } from '../enums/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { t as Region, O as OptionItem } from '../global-By7aHQ1y.js';
|
|
3
3
|
import 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
declare const dateFormat = "DD-MM-YYYY";
|