@timardex/cluemart-shared 1.0.85 → 1.0.87

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.
@@ -46,16 +46,13 @@ type NotificationCount = {
46
46
  total: number;
47
47
  unread: number;
48
48
  };
49
- type CreateNotificationInput = {
50
- userId: string;
49
+ type CreateBulkNotificationInput = {
50
+ userIds: string[];
51
51
  title: string;
52
52
  message: string;
53
53
  type?: EnumNotificationType;
54
54
  data?: Record<string, unknown>;
55
55
  };
56
- type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
57
- userIds: string[];
58
- };
59
56
  type MarkNotificationReadInput = {
60
57
  notificationIds: string[];
61
58
  };
@@ -63,4 +60,4 @@ type MarkAllNotificationsReadInput = {
63
60
  userId: string;
64
61
  };
65
62
 
66
- export { type ChatType as C, EnumNotificationType as E, type MarkNotificationReadInput as M, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateNotificationInput as e, type CreateBulkNotificationInput as f, type MarkAllNotificationsReadInput as g };
63
+ export { type ChatType as C, EnumNotificationType as E, type MarkNotificationReadInput as M, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateBulkNotificationInput as e, type MarkAllNotificationsReadInput as f };
@@ -46,16 +46,13 @@ type NotificationCount = {
46
46
  total: number;
47
47
  unread: number;
48
48
  };
49
- type CreateNotificationInput = {
50
- userId: string;
49
+ type CreateBulkNotificationInput = {
50
+ userIds: string[];
51
51
  title: string;
52
52
  message: string;
53
53
  type?: EnumNotificationType;
54
54
  data?: Record<string, unknown>;
55
55
  };
56
- type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
57
- userIds: string[];
58
- };
59
56
  type MarkNotificationReadInput = {
60
57
  notificationIds: string[];
61
58
  };
@@ -63,4 +60,4 @@ type MarkAllNotificationsReadInput = {
63
60
  userId: string;
64
61
  };
65
62
 
66
- export { type ChatType as C, EnumNotificationType as E, type MarkNotificationReadInput as M, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateNotificationInput as e, type CreateBulkNotificationInput as f, type MarkAllNotificationsReadInput as g };
63
+ export { type ChatType as C, EnumNotificationType as E, type MarkNotificationReadInput as M, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateBulkNotificationInput as e, type MarkAllNotificationsReadInput as f };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts","../../src/types/notification.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","import { EnumResourceType } from \"src/enums\";\n\nexport enum EnumNotificationType {\n MARKET = EnumResourceType.MARKET,\n STALLHOLDER = EnumResourceType.STALLHOLDER,\n RELATION = \"relation\",\n CHAT = \"chat\",\n SYSTEM = \"system\",\n}\n\nexport type NotificationType = {\n _id: string;\n userId: string;\n title: string;\n message: string;\n type: EnumNotificationType;\n isRead: boolean;\n data?: Record<string, unknown>;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type NotificationCount = {\n total: number;\n unread: number;\n};\n\nexport type CreateNotificationInput = {\n userId: string;\n title: string;\n message: string;\n type?: EnumNotificationType;\n data?: Record<string, unknown>;\n};\n\nexport type CreateBulkNotificationInput = Omit<\n CreateNotificationInput,\n \"userId\"\n> & {\n userIds: string[];\n};\n\nexport type MarkNotificationReadInput = {\n notificationIds: string[];\n};\n\nexport type MarkAllNotificationsReadInput = {\n userId: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,wBAAL,CAAKA,0BAAL;AACL,EAAAA,4CAAA;AACA,EAAAA,4CAAA;AACA,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,UAAO;AACP,EAAAA,sBAAA,YAAS;AALC,SAAAA;AAAA,GAAA;","names":["EnumNotificationType"]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/notification.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","import { EnumResourceType } from \"src/enums\";\n\nexport enum EnumNotificationType {\n MARKET = EnumResourceType.MARKET,\n STALLHOLDER = EnumResourceType.STALLHOLDER,\n RELATION = \"relation\",\n CHAT = \"chat\",\n SYSTEM = \"system\",\n}\n\nexport type NotificationType = {\n _id: string;\n userId: string;\n title: string;\n message: string;\n type: EnumNotificationType;\n isRead: boolean;\n data?: Record<string, unknown>;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type NotificationCount = {\n total: number;\n unread: number;\n};\n\nexport type CreateBulkNotificationInput = {\n userIds: string[];\n title: string;\n message: string;\n type?: EnumNotificationType;\n data?: Record<string, unknown>;\n};\n\nexport type MarkNotificationReadInput = {\n notificationIds: string[];\n};\n\nexport type MarkAllNotificationsReadInput = {\n userId: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAK,wBAAL,CAAKA,0BAAL;AACL,EAAAA,4CAAA;AACA,EAAAA,4CAAA;AACA,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,UAAO;AACP,EAAAA,sBAAA,YAAS;AALC,SAAAA;AAAA,GAAA;","names":["EnumNotificationType"]}
@@ -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 '../contactUs-CQ9xTjlE.mjs';
3
- export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, f as CreateBulkNotificationInput, e as CreateNotificationInput, E as EnumNotificationType, g as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, a as NotificationCount, N as NotificationType } from '../notification-DDVH6HnE.mjs';
3
+ export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumNotificationType, f as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, a as NotificationCount, N as NotificationType } from '../notification-CmjfP3gD.mjs';
4
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';
@@ -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 '../contactUs-CQ9xTjlE.js';
3
- export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, f as CreateBulkNotificationInput, e as CreateNotificationInput, E as EnumNotificationType, g as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, a as NotificationCount, N as NotificationType } from '../notification-DDVH6HnE.js';
3
+ export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumNotificationType, f as MarkAllNotificationsReadInput, M as MarkNotificationReadInput, a as NotificationCount, N as NotificationType } from '../notification-CmjfP3gD.js';
4
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';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/notification.ts"],"sourcesContent":["import { EnumResourceType } from \"src/enums\";\n\nexport enum EnumNotificationType {\n MARKET = EnumResourceType.MARKET,\n STALLHOLDER = EnumResourceType.STALLHOLDER,\n RELATION = \"relation\",\n CHAT = \"chat\",\n SYSTEM = \"system\",\n}\n\nexport type NotificationType = {\n _id: string;\n userId: string;\n title: string;\n message: string;\n type: EnumNotificationType;\n isRead: boolean;\n data?: Record<string, unknown>;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type NotificationCount = {\n total: number;\n unread: number;\n};\n\nexport type CreateNotificationInput = {\n userId: string;\n title: string;\n message: string;\n type?: EnumNotificationType;\n data?: Record<string, unknown>;\n};\n\nexport type CreateBulkNotificationInput = Omit<\n CreateNotificationInput,\n \"userId\"\n> & {\n userIds: string[];\n};\n\nexport type MarkNotificationReadInput = {\n notificationIds: string[];\n};\n\nexport type MarkAllNotificationsReadInput = {\n userId: string;\n};\n"],"mappings":";;;AAEO,IAAK,wBAAL,CAAKA,0BAAL;AACL,EAAAA,4CAAA;AACA,EAAAA,4CAAA;AACA,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,UAAO;AACP,EAAAA,sBAAA,YAAS;AALC,SAAAA;AAAA,GAAA;","names":["EnumNotificationType"]}
1
+ {"version":3,"sources":["../../src/types/notification.ts"],"sourcesContent":["import { EnumResourceType } from \"src/enums\";\n\nexport enum EnumNotificationType {\n MARKET = EnumResourceType.MARKET,\n STALLHOLDER = EnumResourceType.STALLHOLDER,\n RELATION = \"relation\",\n CHAT = \"chat\",\n SYSTEM = \"system\",\n}\n\nexport type NotificationType = {\n _id: string;\n userId: string;\n title: string;\n message: string;\n type: EnumNotificationType;\n isRead: boolean;\n data?: Record<string, unknown>;\n createdAt: string;\n updatedAt: string;\n};\n\nexport type NotificationCount = {\n total: number;\n unread: number;\n};\n\nexport type CreateBulkNotificationInput = {\n userIds: string[];\n title: string;\n message: string;\n type?: EnumNotificationType;\n data?: Record<string, unknown>;\n};\n\nexport type MarkNotificationReadInput = {\n notificationIds: string[];\n};\n\nexport type MarkAllNotificationsReadInput = {\n userId: string;\n};\n"],"mappings":";;;AAEO,IAAK,wBAAL,CAAKA,0BAAL;AACL,EAAAA,4CAAA;AACA,EAAAA,4CAAA;AACA,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,UAAO;AACP,EAAAA,sBAAA,YAAS;AALC,SAAAA;AAAA,GAAA;","names":["EnumNotificationType"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",