@timardex/cluemart-shared 1.0.82 → 1.0.83
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 +260 -300
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +42 -30
- package/dist/graphql/index.d.ts +42 -30
- package/dist/graphql/index.mjs +254 -299
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +272 -300
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +62 -48
- package/dist/index.d.ts +62 -48
- package/dist/index.mjs +265 -299
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-P3Vnadx_.d.mts → notification-Dy46qobo.d.mts} +22 -20
- package/dist/{notification-P3Vnadx_.d.ts → notification-Dy46qobo.d.ts} +22 -20
- package/dist/types/index.cjs +21 -0
- 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/dist/types/index.mjs +14 -0
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -24,41 +24,43 @@ interface ChatType {
|
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
declare enum EnumNotificationType {
|
|
28
|
+
MARKET = "market",
|
|
29
|
+
STALLHOLDER = "stallholder",
|
|
30
|
+
RELATION = "relation",
|
|
31
|
+
CHAT = "chat",
|
|
32
|
+
SYSTEM = "system"
|
|
33
|
+
}
|
|
34
|
+
type NotificationType = {
|
|
29
35
|
id: string;
|
|
30
36
|
userId: string;
|
|
31
37
|
title: string;
|
|
32
38
|
message: string;
|
|
33
|
-
type:
|
|
39
|
+
type: EnumNotificationType;
|
|
34
40
|
isRead: boolean;
|
|
35
41
|
data?: Record<string, unknown>;
|
|
36
42
|
createdAt: string;
|
|
37
43
|
updatedAt: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
44
|
+
};
|
|
45
|
+
type NotificationCount = {
|
|
40
46
|
total: number;
|
|
41
47
|
unread: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
48
|
+
};
|
|
49
|
+
type CreateNotificationInput = {
|
|
44
50
|
userId: string;
|
|
45
51
|
title: string;
|
|
46
52
|
message: string;
|
|
47
|
-
type?:
|
|
53
|
+
type?: EnumNotificationType;
|
|
48
54
|
data?: Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
|
|
55
|
+
};
|
|
56
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
51
57
|
userIds: string[];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
type?: NotificationTypeMap;
|
|
55
|
-
data?: Record<string, unknown>;
|
|
56
|
-
}
|
|
57
|
-
interface MarkNotificationReadInput {
|
|
58
|
+
};
|
|
59
|
+
type MarkNotificationReadInput = {
|
|
58
60
|
notificationIds: string[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
+
};
|
|
62
|
+
type MarkAllNotificationsReadInput = {
|
|
61
63
|
userId: string;
|
|
62
|
-
}
|
|
64
|
+
};
|
|
63
65
|
|
|
64
|
-
export type
|
|
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 };
|
|
@@ -24,41 +24,43 @@ interface ChatType {
|
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
declare enum EnumNotificationType {
|
|
28
|
+
MARKET = "market",
|
|
29
|
+
STALLHOLDER = "stallholder",
|
|
30
|
+
RELATION = "relation",
|
|
31
|
+
CHAT = "chat",
|
|
32
|
+
SYSTEM = "system"
|
|
33
|
+
}
|
|
34
|
+
type NotificationType = {
|
|
29
35
|
id: string;
|
|
30
36
|
userId: string;
|
|
31
37
|
title: string;
|
|
32
38
|
message: string;
|
|
33
|
-
type:
|
|
39
|
+
type: EnumNotificationType;
|
|
34
40
|
isRead: boolean;
|
|
35
41
|
data?: Record<string, unknown>;
|
|
36
42
|
createdAt: string;
|
|
37
43
|
updatedAt: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
44
|
+
};
|
|
45
|
+
type NotificationCount = {
|
|
40
46
|
total: number;
|
|
41
47
|
unread: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
48
|
+
};
|
|
49
|
+
type CreateNotificationInput = {
|
|
44
50
|
userId: string;
|
|
45
51
|
title: string;
|
|
46
52
|
message: string;
|
|
47
|
-
type?:
|
|
53
|
+
type?: EnumNotificationType;
|
|
48
54
|
data?: Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
|
|
55
|
+
};
|
|
56
|
+
type CreateBulkNotificationInput = Omit<CreateNotificationInput, "userId"> & {
|
|
51
57
|
userIds: string[];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
type?: NotificationTypeMap;
|
|
55
|
-
data?: Record<string, unknown>;
|
|
56
|
-
}
|
|
57
|
-
interface MarkNotificationReadInput {
|
|
58
|
+
};
|
|
59
|
+
type MarkNotificationReadInput = {
|
|
58
60
|
notificationIds: string[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
+
};
|
|
62
|
+
type MarkAllNotificationsReadInput = {
|
|
61
63
|
userId: string;
|
|
62
|
-
}
|
|
64
|
+
};
|
|
63
65
|
|
|
64
|
-
export type
|
|
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 };
|
package/dist/types/index.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,5 +19,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/types/index.ts
|
|
17
21
|
var types_exports = {};
|
|
22
|
+
__export(types_exports, {
|
|
23
|
+
EnumNotificationType: () => EnumNotificationType
|
|
24
|
+
});
|
|
18
25
|
module.exports = __toCommonJS(types_exports);
|
|
26
|
+
|
|
27
|
+
// src/types/notification.ts
|
|
28
|
+
var EnumNotificationType = ((EnumNotificationType2) => {
|
|
29
|
+
EnumNotificationType2[EnumNotificationType2["MARKET"] = "market" /* MARKET */] = "MARKET";
|
|
30
|
+
EnumNotificationType2[EnumNotificationType2["STALLHOLDER"] = "stallholder" /* STALLHOLDER */] = "STALLHOLDER";
|
|
31
|
+
EnumNotificationType2["RELATION"] = "relation";
|
|
32
|
+
EnumNotificationType2["CHAT"] = "chat";
|
|
33
|
+
EnumNotificationType2["SYSTEM"] = "system";
|
|
34
|
+
return EnumNotificationType2;
|
|
35
|
+
})(EnumNotificationType || {});
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
EnumNotificationType
|
|
39
|
+
});
|
|
19
40
|
//# sourceMappingURL=index.cjs.map
|
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 \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./stallholder\";\nexport * from \"./testers\";\nexport * from \"./user\";\n"],"mappings":"
|
|
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"]}
|
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 '../contactUs-CQ9xTjlE.mjs';
|
|
3
|
-
export {
|
|
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-Dy46qobo.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';
|
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 '../contactUs-CQ9xTjlE.js';
|
|
3
|
-
export {
|
|
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-Dy46qobo.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';
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
+
import "../chunk-3LHMZDI4.mjs";
|
|
2
|
+
|
|
3
|
+
// src/types/notification.ts
|
|
4
|
+
var EnumNotificationType = ((EnumNotificationType2) => {
|
|
5
|
+
EnumNotificationType2[EnumNotificationType2["MARKET"] = "market" /* MARKET */] = "MARKET";
|
|
6
|
+
EnumNotificationType2[EnumNotificationType2["STALLHOLDER"] = "stallholder" /* STALLHOLDER */] = "STALLHOLDER";
|
|
7
|
+
EnumNotificationType2["RELATION"] = "relation";
|
|
8
|
+
EnumNotificationType2["CHAT"] = "chat";
|
|
9
|
+
EnumNotificationType2["SYSTEM"] = "system";
|
|
10
|
+
return EnumNotificationType2;
|
|
11
|
+
})(EnumNotificationType || {});
|
|
12
|
+
export {
|
|
13
|
+
EnumNotificationType
|
|
14
|
+
};
|
|
1
15
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
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"]}
|