@nebutra/contracts 0.1.0 → 0.1.2
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/.turbo/turbo-build.log +37 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -676
- package/dist/billing.d.ts +59 -0
- package/dist/billing.js +13 -0
- package/dist/billing.js.map +1 -0
- package/dist/chunk-2NXI4PJM.js +21 -0
- package/dist/chunk-2NXI4PJM.js.map +1 -0
- package/dist/chunk-5JNQ2KAT.js +63 -0
- package/dist/chunk-5JNQ2KAT.js.map +1 -0
- package/dist/chunk-F4BR76CX.js +85 -0
- package/dist/chunk-F4BR76CX.js.map +1 -0
- package/dist/chunk-NFJTVIKD.js +48 -0
- package/dist/chunk-NFJTVIKD.js.map +1 -0
- package/dist/events.d.ts +26 -0
- package/dist/events.js +9 -0
- package/dist/events.js.map +1 -0
- package/dist/identity.d.ts +113 -0
- package/dist/identity.js +23 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +65 -0
- package/dist/index.js.map +1 -0
- package/dist/notifications.d.ts +144 -0
- package/dist/notifications.js +29 -0
- package/dist/notifications.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const NotificationChannelContractSchema: z.ZodEnum<{
|
|
4
|
+
email: "email";
|
|
5
|
+
in_app: "in_app";
|
|
6
|
+
push: "push";
|
|
7
|
+
sms: "sms";
|
|
8
|
+
chat: "chat";
|
|
9
|
+
}>;
|
|
10
|
+
type NotificationChannelContract = z.infer<typeof NotificationChannelContractSchema>;
|
|
11
|
+
declare const NotificationFrequencyContractSchema: z.ZodEnum<{
|
|
12
|
+
never: "never";
|
|
13
|
+
immediate: "immediate";
|
|
14
|
+
daily: "daily";
|
|
15
|
+
weekly: "weekly";
|
|
16
|
+
}>;
|
|
17
|
+
type NotificationFrequencyContract = z.infer<typeof NotificationFrequencyContractSchema>;
|
|
18
|
+
declare const NotificationRuntimeStatusContractSchema: z.ZodObject<{
|
|
19
|
+
provider: z.ZodEnum<{
|
|
20
|
+
novu: "novu";
|
|
21
|
+
direct: "direct";
|
|
22
|
+
}>;
|
|
23
|
+
providerLabel: z.ZodString;
|
|
24
|
+
mode: z.ZodEnum<{
|
|
25
|
+
managed: "managed";
|
|
26
|
+
self_hosted: "self_hosted";
|
|
27
|
+
preview: "preview";
|
|
28
|
+
degraded: "degraded";
|
|
29
|
+
}>;
|
|
30
|
+
canManagePreferences: z.ZodBoolean;
|
|
31
|
+
canViewInbox: z.ZodBoolean;
|
|
32
|
+
canMarkInboxRead: z.ZodBoolean;
|
|
33
|
+
summary: z.ZodString;
|
|
34
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
35
|
+
missing: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
type NotificationRuntimeStatusContract = z.infer<typeof NotificationRuntimeStatusContractSchema>;
|
|
38
|
+
declare const NotificationPreferenceContractSchema: z.ZodObject<{
|
|
39
|
+
userId: z.ZodString;
|
|
40
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
channel: z.ZodEnum<{
|
|
42
|
+
email: "email";
|
|
43
|
+
in_app: "in_app";
|
|
44
|
+
push: "push";
|
|
45
|
+
sms: "sms";
|
|
46
|
+
chat: "chat";
|
|
47
|
+
}>;
|
|
48
|
+
enabled: z.ZodBoolean;
|
|
49
|
+
disabledCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
frequency: z.ZodEnum<{
|
|
51
|
+
never: "never";
|
|
52
|
+
immediate: "immediate";
|
|
53
|
+
daily: "daily";
|
|
54
|
+
weekly: "weekly";
|
|
55
|
+
}>;
|
|
56
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
type NotificationPreferenceContract = z.infer<typeof NotificationPreferenceContractSchema>;
|
|
59
|
+
declare const NotificationItemContractSchema: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
userId: z.ZodString;
|
|
62
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
type: z.ZodString;
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
body: z.ZodString;
|
|
66
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
+
read: z.ZodBoolean;
|
|
68
|
+
createdAt: z.ZodString;
|
|
69
|
+
updatedAt: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type NotificationItemContract = z.infer<typeof NotificationItemContractSchema>;
|
|
72
|
+
declare const NotificationListQueryContractSchema: z.ZodObject<{
|
|
73
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
74
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
75
|
+
unreadOnly: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
type NotificationListQueryContract = z.infer<typeof NotificationListQueryContractSchema>;
|
|
78
|
+
declare const NotificationListResponseContractSchema: z.ZodObject<{
|
|
79
|
+
items: z.ZodArray<z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
userId: z.ZodString;
|
|
82
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
type: z.ZodString;
|
|
84
|
+
title: z.ZodString;
|
|
85
|
+
body: z.ZodString;
|
|
86
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
87
|
+
read: z.ZodBoolean;
|
|
88
|
+
createdAt: z.ZodString;
|
|
89
|
+
updatedAt: z.ZodString;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
total: z.ZodNumber;
|
|
92
|
+
unreadCount: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
type NotificationListResponseContract = z.infer<typeof NotificationListResponseContractSchema>;
|
|
95
|
+
declare const NotificationUnreadCountResponseContractSchema: z.ZodObject<{
|
|
96
|
+
count: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
type NotificationUnreadCountResponseContract = z.infer<typeof NotificationUnreadCountResponseContractSchema>;
|
|
99
|
+
declare const NotificationMarkReadRequestContractSchema: z.ZodObject<{
|
|
100
|
+
ids: z.ZodArray<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
type NotificationMarkReadRequestContract = z.infer<typeof NotificationMarkReadRequestContractSchema>;
|
|
103
|
+
declare const NotificationMutationCountResponseContractSchema: z.ZodObject<{
|
|
104
|
+
count: z.ZodNumber;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
type NotificationMutationCountResponseContract = z.infer<typeof NotificationMutationCountResponseContractSchema>;
|
|
107
|
+
declare const NotificationSettingsUpdateRequestContractSchema: z.ZodObject<{
|
|
108
|
+
type: z.ZodString;
|
|
109
|
+
channel: z.ZodEnum<{
|
|
110
|
+
email: "email";
|
|
111
|
+
in_app: "in_app";
|
|
112
|
+
push: "push";
|
|
113
|
+
sms: "sms";
|
|
114
|
+
chat: "chat";
|
|
115
|
+
}>;
|
|
116
|
+
enabled: z.ZodBoolean;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
type NotificationSettingsUpdateRequestContract = z.infer<typeof NotificationSettingsUpdateRequestContractSchema>;
|
|
119
|
+
declare const NotificationSettingsUpdateResponseContractSchema: z.ZodObject<{
|
|
120
|
+
ok: z.ZodLiteral<true>;
|
|
121
|
+
preference: z.ZodObject<{
|
|
122
|
+
userId: z.ZodString;
|
|
123
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
124
|
+
channel: z.ZodEnum<{
|
|
125
|
+
email: "email";
|
|
126
|
+
in_app: "in_app";
|
|
127
|
+
push: "push";
|
|
128
|
+
sms: "sms";
|
|
129
|
+
chat: "chat";
|
|
130
|
+
}>;
|
|
131
|
+
enabled: z.ZodBoolean;
|
|
132
|
+
disabledCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
|
+
frequency: z.ZodEnum<{
|
|
134
|
+
never: "never";
|
|
135
|
+
immediate: "immediate";
|
|
136
|
+
daily: "daily";
|
|
137
|
+
weekly: "weekly";
|
|
138
|
+
}>;
|
|
139
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
type NotificationSettingsUpdateResponseContract = z.infer<typeof NotificationSettingsUpdateResponseContractSchema>;
|
|
143
|
+
|
|
144
|
+
export { type NotificationChannelContract, NotificationChannelContractSchema, type NotificationFrequencyContract, NotificationFrequencyContractSchema, type NotificationItemContract, NotificationItemContractSchema, type NotificationListQueryContract, NotificationListQueryContractSchema, type NotificationListResponseContract, NotificationListResponseContractSchema, type NotificationMarkReadRequestContract, NotificationMarkReadRequestContractSchema, type NotificationMutationCountResponseContract, NotificationMutationCountResponseContractSchema, type NotificationPreferenceContract, NotificationPreferenceContractSchema, type NotificationRuntimeStatusContract, NotificationRuntimeStatusContractSchema, type NotificationSettingsUpdateRequestContract, NotificationSettingsUpdateRequestContractSchema, type NotificationSettingsUpdateResponseContract, NotificationSettingsUpdateResponseContractSchema, type NotificationUnreadCountResponseContract, NotificationUnreadCountResponseContractSchema };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NotificationChannelContractSchema,
|
|
3
|
+
NotificationFrequencyContractSchema,
|
|
4
|
+
NotificationItemContractSchema,
|
|
5
|
+
NotificationListQueryContractSchema,
|
|
6
|
+
NotificationListResponseContractSchema,
|
|
7
|
+
NotificationMarkReadRequestContractSchema,
|
|
8
|
+
NotificationMutationCountResponseContractSchema,
|
|
9
|
+
NotificationPreferenceContractSchema,
|
|
10
|
+
NotificationRuntimeStatusContractSchema,
|
|
11
|
+
NotificationSettingsUpdateRequestContractSchema,
|
|
12
|
+
NotificationSettingsUpdateResponseContractSchema,
|
|
13
|
+
NotificationUnreadCountResponseContractSchema
|
|
14
|
+
} from "./chunk-F4BR76CX.js";
|
|
15
|
+
export {
|
|
16
|
+
NotificationChannelContractSchema,
|
|
17
|
+
NotificationFrequencyContractSchema,
|
|
18
|
+
NotificationItemContractSchema,
|
|
19
|
+
NotificationListQueryContractSchema,
|
|
20
|
+
NotificationListResponseContractSchema,
|
|
21
|
+
NotificationMarkReadRequestContractSchema,
|
|
22
|
+
NotificationMutationCountResponseContractSchema,
|
|
23
|
+
NotificationPreferenceContractSchema,
|
|
24
|
+
NotificationRuntimeStatusContractSchema,
|
|
25
|
+
NotificationSettingsUpdateRequestContractSchema,
|
|
26
|
+
NotificationSettingsUpdateResponseContractSchema,
|
|
27
|
+
NotificationUnreadCountResponseContractSchema
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebutra/contracts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Canonical API/event/domain contracts for Nebutra superstarter",
|
|
5
5
|
"private": false,
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|