@krak-stack/registry 0.1.26 → 0.1.28
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/components/ui/data-table.js +34 -28
- package/dist/lib/query.d.ts +16 -6
- package/dist/lib/query.js +10 -1
- package/dist/services/notification/channels/ses/index.d.ts +2 -2
- package/dist/services/notification/persistence/drizzle.d.ts +868 -0
- package/dist/services/notification/persistence/index.d.ts +2 -0
- package/dist/services/notification/persistence/schema.d.ts +143 -0
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Krak Consultants
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -42,6 +42,11 @@ import {
|
|
|
42
42
|
import { NotificationService } from "@krak-stack/registry/service-notification";
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
`@krak-stack/registry/service-notification` is the source-compatible direct
|
|
46
|
+
dispatcher. Use the separate `@krak-stack/notifications` package for a durable
|
|
47
|
+
inbox, package-owned migrations, persisted delivery jobs, retries, workers, and
|
|
48
|
+
one-shot reminders.
|
|
49
|
+
|
|
45
50
|
Create a configured SEO helper once with site-wide defaults, then use it for each page:
|
|
46
51
|
|
|
47
52
|
```tsx
|
|
@@ -2876,7 +2876,7 @@ var TableDataRow = ({
|
|
|
2876
2876
|
})
|
|
2877
2877
|
}) : null,
|
|
2878
2878
|
model.visibleColumns.map((column) => /* @__PURE__ */ jsx17(TableCell, {
|
|
2879
|
-
className: cn("min-w-24 overflow-hidden", column.colDef.truncate ? "whitespace-nowrap" : "whitespace-normal"),
|
|
2879
|
+
className: cn("min-w-24 overflow-hidden has-[[data-slot=data-table-relationship-cell]]:relative has-[[data-slot=data-table-relationship-cell]]:p-0", column.colDef.truncate ? "whitespace-nowrap" : "whitespace-normal"),
|
|
2880
2880
|
style: { width: column.width },
|
|
2881
2881
|
children: /* @__PURE__ */ jsx17("div", {
|
|
2882
2882
|
className: cn("min-w-0", column.colDef.truncate && "truncate"),
|
|
@@ -3582,33 +3582,39 @@ var DataTableRelationshipCell = ({
|
|
|
3582
3582
|
const [selected, setSelected] = useState([...value]);
|
|
3583
3583
|
useLayoutEffect(() => setSelected([...value]), [value]);
|
|
3584
3584
|
const selectedValues = new Set(selected.map((item) => item.value));
|
|
3585
|
-
return /* @__PURE__ */ jsx17(
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3585
|
+
return /* @__PURE__ */ jsx17("div", {
|
|
3586
|
+
"data-slot": "data-table-relationship-cell",
|
|
3587
|
+
className: "h-full in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0",
|
|
3588
|
+
onClick: (event) => event.stopPropagation(),
|
|
3589
|
+
onPointerDown: (event) => event.stopPropagation(),
|
|
3590
|
+
children: /* @__PURE__ */ jsx17(VirtualizedCombobox, {
|
|
3591
|
+
ariaLabel: manageLabel,
|
|
3592
|
+
emptyLabel,
|
|
3593
|
+
items: [...options].sort((left, right) => Number(selectedValues.has(right.value)) - Number(selectedValues.has(left.value))),
|
|
3594
|
+
messages: { search: manageLabel },
|
|
3595
|
+
multiple: true,
|
|
3596
|
+
onValueChange: (next) => {
|
|
3597
|
+
const nextValues = new Set(next.map((item) => item.value));
|
|
3598
|
+
selected.forEach((item) => !nextValues.has(item.value) && onRemove?.(item.value));
|
|
3599
|
+
next.forEach((item) => !selectedValues.has(item.value) && onAdd?.(item.value));
|
|
3600
|
+
setSelected(next);
|
|
3601
|
+
},
|
|
3602
|
+
placeholder: emptyLabel,
|
|
3603
|
+
trigger: /* @__PURE__ */ jsxs9(Button, {
|
|
3604
|
+
className: "h-full min-h-16 w-full justify-between rounded-none",
|
|
3605
|
+
variant: "ghost",
|
|
3606
|
+
children: [
|
|
3607
|
+
/* @__PURE__ */ jsx17(DataTableListSummary, {
|
|
3608
|
+
emptyLabel,
|
|
3609
|
+
expandable: false,
|
|
3610
|
+
items: selected,
|
|
3611
|
+
variant: selected.some((item) => item.icon) ? "icon" : "text"
|
|
3612
|
+
}),
|
|
3613
|
+
/* @__PURE__ */ jsx17(ChevronDown, {})
|
|
3614
|
+
]
|
|
3615
|
+
}),
|
|
3616
|
+
value: selected
|
|
3617
|
+
})
|
|
3612
3618
|
});
|
|
3613
3619
|
};
|
|
3614
3620
|
var DataTableListSummary = ({
|
package/dist/lib/query.d.ts
CHANGED
|
@@ -21,14 +21,24 @@ export declare const SortParamsFromString: Schema.decodeTo<Schema.$Array<Schema.
|
|
|
21
21
|
readonly id: Schema.NonEmptyString;
|
|
22
22
|
readonly direction: Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>;
|
|
23
23
|
}>>, Schema.String, never, never>;
|
|
24
|
+
export declare const SortParams: Schema.declare<readonly {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly direction: "asc" | "desc";
|
|
27
|
+
}[], readonly {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly direction: "asc" | "desc";
|
|
30
|
+
}[]>;
|
|
24
31
|
export declare const Query: Schema.Struct<{
|
|
25
32
|
readonly page: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
26
33
|
readonly pageSize: Schema.withDecodingDefaultKey<Schema.Int, never>;
|
|
27
34
|
readonly globalFilter: Schema.optional<Schema.String>;
|
|
28
|
-
readonly sort: Schema.optional<Schema
|
|
29
|
-
readonly id:
|
|
30
|
-
readonly direction:
|
|
31
|
-
}
|
|
35
|
+
readonly sort: Schema.optional<Schema.declare<readonly {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly direction: "asc" | "desc";
|
|
38
|
+
}[], readonly {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly direction: "asc" | "desc";
|
|
41
|
+
}[]>>;
|
|
32
42
|
}>;
|
|
33
43
|
export type QueryType = typeof Query.Type;
|
|
34
44
|
export type QueryEncoded = typeof Query.Encoded;
|
|
@@ -40,8 +50,8 @@ export declare const PaginationMeta: Schema.Struct<{
|
|
|
40
50
|
readonly pageCount: Schema.Int;
|
|
41
51
|
}>;
|
|
42
52
|
export type PaginationMetaType = typeof PaginationMeta.Type;
|
|
43
|
-
export declare const PaginatedResponse: <A>(items:
|
|
44
|
-
readonly data: Schema.$Array<
|
|
53
|
+
export declare const PaginatedResponse: <A extends Schema.Top>(items: A) => Schema.Struct<{
|
|
54
|
+
readonly data: Schema.$Array<A>;
|
|
45
55
|
readonly meta: Schema.Struct<{
|
|
46
56
|
readonly page: Schema.Int;
|
|
47
57
|
readonly pageSize: Schema.Int;
|
package/dist/lib/query.js
CHANGED
|
@@ -42,6 +42,8 @@ var SortParamFromString = Schema.String.pipe(Schema.decodeTo(SortParam, SchemaTr
|
|
|
42
42
|
}));
|
|
43
43
|
var SortParamsFromString = Schema.String.pipe(Schema.decodeTo(Schema.Array(SortParam), SchemaTransformation.transformOrFail({
|
|
44
44
|
decode: (sort) => {
|
|
45
|
+
if (sort === "")
|
|
46
|
+
return Effect.succeed([]);
|
|
45
47
|
const parts = sort.split(",");
|
|
46
48
|
const sortParams = [];
|
|
47
49
|
for (const part of parts) {
|
|
@@ -65,11 +67,17 @@ var SortParamsFromString = Schema.String.pipe(Schema.decodeTo(Schema.Array(SortP
|
|
|
65
67
|
]
|
|
66
68
|
]
|
|
67
69
|
}));
|
|
70
|
+
var SortParamsArray = Schema.Array(SortParam);
|
|
71
|
+
var SortParams = Schema.declare(Schema.is(SortParamsArray), {
|
|
72
|
+
identifier: "SortParams",
|
|
73
|
+
toCodec: () => Schema.link()(SortParamsArray, SchemaTransformation.passthrough()),
|
|
74
|
+
toCodecStringTree: () => Schema.link()(SortParamsFromString, SchemaTransformation.passthrough())
|
|
75
|
+
});
|
|
68
76
|
var Query = Schema.Struct({
|
|
69
77
|
page: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)).pipe(Schema.withDecodingDefaultKey(Effect.succeed(0))),
|
|
70
78
|
pageSize: Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 100 })).pipe(Schema.withDecodingDefaultKey(Effect.succeed(10))),
|
|
71
79
|
globalFilter: Schema.optional(Schema.String),
|
|
72
|
-
sort: Schema.optional(
|
|
80
|
+
sort: Schema.optional(SortParams)
|
|
73
81
|
}).annotate({
|
|
74
82
|
identifier: "Query",
|
|
75
83
|
title: "Query",
|
|
@@ -110,5 +118,6 @@ export {
|
|
|
110
118
|
SortDirection,
|
|
111
119
|
SortParam,
|
|
112
120
|
SortParamFromString,
|
|
121
|
+
SortParams,
|
|
113
122
|
SortParamsFromString
|
|
114
123
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config, Context, Effect, Layer, Redacted } from "effect";
|
|
2
|
-
import { type NotificationChannel } from "
|
|
2
|
+
import { type NotificationChannel } from "../index.js";
|
|
3
3
|
import { SesEmailNotification } from "./schema.js";
|
|
4
|
-
declare module "
|
|
4
|
+
declare module "../index.js" {
|
|
5
5
|
interface NotificationChannels {
|
|
6
6
|
readonly email: SesEmailNotification;
|
|
7
7
|
}
|
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import type { Json } from "effect/Schema";
|
|
2
|
+
export declare const notifications: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3
|
+
name: "notifications";
|
|
4
|
+
schema: undefined;
|
|
5
|
+
columns: {
|
|
6
|
+
id: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
7
|
+
name: string;
|
|
8
|
+
tableName: "notifications";
|
|
9
|
+
dataType: "string uuid";
|
|
10
|
+
data: string;
|
|
11
|
+
driverParam: string;
|
|
12
|
+
notNull: true;
|
|
13
|
+
hasDefault: true;
|
|
14
|
+
isPrimaryKey: false;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
17
|
+
enumValues: undefined;
|
|
18
|
+
identity: undefined;
|
|
19
|
+
generated: undefined;
|
|
20
|
+
}>;
|
|
21
|
+
idempotencyKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
22
|
+
name: string;
|
|
23
|
+
tableName: "notifications";
|
|
24
|
+
dataType: "string";
|
|
25
|
+
data: string;
|
|
26
|
+
driverParam: string;
|
|
27
|
+
notNull: true;
|
|
28
|
+
hasDefault: false;
|
|
29
|
+
isPrimaryKey: false;
|
|
30
|
+
isAutoincrement: false;
|
|
31
|
+
hasRuntimeDefault: false;
|
|
32
|
+
enumValues: undefined;
|
|
33
|
+
identity: undefined;
|
|
34
|
+
generated: undefined;
|
|
35
|
+
}>;
|
|
36
|
+
recipientUserId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
37
|
+
name: string;
|
|
38
|
+
tableName: "notifications";
|
|
39
|
+
dataType: "string";
|
|
40
|
+
data: string;
|
|
41
|
+
driverParam: string;
|
|
42
|
+
notNull: true;
|
|
43
|
+
hasDefault: false;
|
|
44
|
+
isPrimaryKey: false;
|
|
45
|
+
isAutoincrement: false;
|
|
46
|
+
hasRuntimeDefault: false;
|
|
47
|
+
enumValues: undefined;
|
|
48
|
+
identity: undefined;
|
|
49
|
+
generated: undefined;
|
|
50
|
+
}>;
|
|
51
|
+
organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
52
|
+
name: string;
|
|
53
|
+
tableName: "notifications";
|
|
54
|
+
dataType: "string";
|
|
55
|
+
data: string;
|
|
56
|
+
driverParam: string;
|
|
57
|
+
notNull: false;
|
|
58
|
+
hasDefault: false;
|
|
59
|
+
isPrimaryKey: false;
|
|
60
|
+
isAutoincrement: false;
|
|
61
|
+
hasRuntimeDefault: false;
|
|
62
|
+
enumValues: undefined;
|
|
63
|
+
identity: undefined;
|
|
64
|
+
generated: undefined;
|
|
65
|
+
}>;
|
|
66
|
+
workspaceId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
67
|
+
name: string;
|
|
68
|
+
tableName: "notifications";
|
|
69
|
+
dataType: "string";
|
|
70
|
+
data: string;
|
|
71
|
+
driverParam: string;
|
|
72
|
+
notNull: false;
|
|
73
|
+
hasDefault: false;
|
|
74
|
+
isPrimaryKey: false;
|
|
75
|
+
isAutoincrement: false;
|
|
76
|
+
hasRuntimeDefault: false;
|
|
77
|
+
enumValues: undefined;
|
|
78
|
+
identity: undefined;
|
|
79
|
+
generated: undefined;
|
|
80
|
+
}>;
|
|
81
|
+
eventKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
82
|
+
name: string;
|
|
83
|
+
tableName: "notifications";
|
|
84
|
+
dataType: "string";
|
|
85
|
+
data: string;
|
|
86
|
+
driverParam: string;
|
|
87
|
+
notNull: true;
|
|
88
|
+
hasDefault: false;
|
|
89
|
+
isPrimaryKey: false;
|
|
90
|
+
isAutoincrement: false;
|
|
91
|
+
hasRuntimeDefault: false;
|
|
92
|
+
enumValues: undefined;
|
|
93
|
+
identity: undefined;
|
|
94
|
+
generated: undefined;
|
|
95
|
+
}>;
|
|
96
|
+
eventVersion: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
|
|
97
|
+
name: string;
|
|
98
|
+
tableName: "notifications";
|
|
99
|
+
dataType: "number int32";
|
|
100
|
+
data: number;
|
|
101
|
+
driverParam: string | number;
|
|
102
|
+
notNull: true;
|
|
103
|
+
hasDefault: true;
|
|
104
|
+
isPrimaryKey: false;
|
|
105
|
+
isAutoincrement: false;
|
|
106
|
+
hasRuntimeDefault: false;
|
|
107
|
+
enumValues: undefined;
|
|
108
|
+
identity: undefined;
|
|
109
|
+
generated: undefined;
|
|
110
|
+
}>;
|
|
111
|
+
locale: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
112
|
+
name: string;
|
|
113
|
+
tableName: "notifications";
|
|
114
|
+
dataType: "string";
|
|
115
|
+
data: string;
|
|
116
|
+
driverParam: string;
|
|
117
|
+
notNull: true;
|
|
118
|
+
hasDefault: false;
|
|
119
|
+
isPrimaryKey: false;
|
|
120
|
+
isAutoincrement: false;
|
|
121
|
+
hasRuntimeDefault: false;
|
|
122
|
+
enumValues: undefined;
|
|
123
|
+
identity: undefined;
|
|
124
|
+
generated: undefined;
|
|
125
|
+
}>;
|
|
126
|
+
title: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
127
|
+
name: string;
|
|
128
|
+
tableName: "notifications";
|
|
129
|
+
dataType: "string";
|
|
130
|
+
data: string;
|
|
131
|
+
driverParam: string;
|
|
132
|
+
notNull: true;
|
|
133
|
+
hasDefault: false;
|
|
134
|
+
isPrimaryKey: false;
|
|
135
|
+
isAutoincrement: false;
|
|
136
|
+
hasRuntimeDefault: false;
|
|
137
|
+
enumValues: undefined;
|
|
138
|
+
identity: undefined;
|
|
139
|
+
generated: undefined;
|
|
140
|
+
}>;
|
|
141
|
+
description: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
142
|
+
name: string;
|
|
143
|
+
tableName: "notifications";
|
|
144
|
+
dataType: "string";
|
|
145
|
+
data: string;
|
|
146
|
+
driverParam: string;
|
|
147
|
+
notNull: false;
|
|
148
|
+
hasDefault: false;
|
|
149
|
+
isPrimaryKey: false;
|
|
150
|
+
isAutoincrement: false;
|
|
151
|
+
hasRuntimeDefault: false;
|
|
152
|
+
enumValues: undefined;
|
|
153
|
+
identity: undefined;
|
|
154
|
+
generated: undefined;
|
|
155
|
+
}>;
|
|
156
|
+
href: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
157
|
+
name: string;
|
|
158
|
+
tableName: "notifications";
|
|
159
|
+
dataType: "string";
|
|
160
|
+
data: string;
|
|
161
|
+
driverParam: string;
|
|
162
|
+
notNull: false;
|
|
163
|
+
hasDefault: false;
|
|
164
|
+
isPrimaryKey: false;
|
|
165
|
+
isAutoincrement: false;
|
|
166
|
+
hasRuntimeDefault: false;
|
|
167
|
+
enumValues: undefined;
|
|
168
|
+
identity: undefined;
|
|
169
|
+
generated: undefined;
|
|
170
|
+
}>;
|
|
171
|
+
metadata: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Json>>>, {
|
|
172
|
+
name: string;
|
|
173
|
+
tableName: "notifications";
|
|
174
|
+
dataType: "object json";
|
|
175
|
+
data: Json;
|
|
176
|
+
driverParam: unknown;
|
|
177
|
+
notNull: true;
|
|
178
|
+
hasDefault: true;
|
|
179
|
+
isPrimaryKey: false;
|
|
180
|
+
isAutoincrement: false;
|
|
181
|
+
hasRuntimeDefault: false;
|
|
182
|
+
enumValues: undefined;
|
|
183
|
+
identity: undefined;
|
|
184
|
+
generated: undefined;
|
|
185
|
+
}>;
|
|
186
|
+
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
187
|
+
name: string;
|
|
188
|
+
tableName: "notifications";
|
|
189
|
+
dataType: "object date";
|
|
190
|
+
data: Date;
|
|
191
|
+
driverParam: string;
|
|
192
|
+
notNull: true;
|
|
193
|
+
hasDefault: true;
|
|
194
|
+
isPrimaryKey: false;
|
|
195
|
+
isAutoincrement: false;
|
|
196
|
+
hasRuntimeDefault: false;
|
|
197
|
+
enumValues: undefined;
|
|
198
|
+
identity: undefined;
|
|
199
|
+
generated: undefined;
|
|
200
|
+
}>;
|
|
201
|
+
readAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
202
|
+
name: string;
|
|
203
|
+
tableName: "notifications";
|
|
204
|
+
dataType: "object date";
|
|
205
|
+
data: Date;
|
|
206
|
+
driverParam: string;
|
|
207
|
+
notNull: false;
|
|
208
|
+
hasDefault: false;
|
|
209
|
+
isPrimaryKey: false;
|
|
210
|
+
isAutoincrement: false;
|
|
211
|
+
hasRuntimeDefault: false;
|
|
212
|
+
enumValues: undefined;
|
|
213
|
+
identity: undefined;
|
|
214
|
+
generated: undefined;
|
|
215
|
+
}>;
|
|
216
|
+
archivedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
217
|
+
name: string;
|
|
218
|
+
tableName: "notifications";
|
|
219
|
+
dataType: "object date";
|
|
220
|
+
data: Date;
|
|
221
|
+
driverParam: string;
|
|
222
|
+
notNull: false;
|
|
223
|
+
hasDefault: false;
|
|
224
|
+
isPrimaryKey: false;
|
|
225
|
+
isAutoincrement: false;
|
|
226
|
+
hasRuntimeDefault: false;
|
|
227
|
+
enumValues: undefined;
|
|
228
|
+
identity: undefined;
|
|
229
|
+
generated: undefined;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
232
|
+
dialect: 'pg';
|
|
233
|
+
}>;
|
|
234
|
+
export declare const notificationSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
235
|
+
name: "notification_settings";
|
|
236
|
+
schema: undefined;
|
|
237
|
+
columns: {
|
|
238
|
+
id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
239
|
+
name: string;
|
|
240
|
+
tableName: "notification_settings";
|
|
241
|
+
dataType: "string uuid";
|
|
242
|
+
data: string;
|
|
243
|
+
driverParam: string;
|
|
244
|
+
notNull: true;
|
|
245
|
+
hasDefault: true;
|
|
246
|
+
isPrimaryKey: false;
|
|
247
|
+
isAutoincrement: false;
|
|
248
|
+
hasRuntimeDefault: false;
|
|
249
|
+
enumValues: undefined;
|
|
250
|
+
identity: undefined;
|
|
251
|
+
generated: undefined;
|
|
252
|
+
}>;
|
|
253
|
+
recipientUserId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
254
|
+
name: string;
|
|
255
|
+
tableName: "notification_settings";
|
|
256
|
+
dataType: "string";
|
|
257
|
+
data: string;
|
|
258
|
+
driverParam: string;
|
|
259
|
+
notNull: true;
|
|
260
|
+
hasDefault: false;
|
|
261
|
+
isPrimaryKey: false;
|
|
262
|
+
isAutoincrement: false;
|
|
263
|
+
hasRuntimeDefault: false;
|
|
264
|
+
enumValues: undefined;
|
|
265
|
+
identity: undefined;
|
|
266
|
+
generated: undefined;
|
|
267
|
+
}>;
|
|
268
|
+
organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
269
|
+
name: string;
|
|
270
|
+
tableName: "notification_settings";
|
|
271
|
+
dataType: "string";
|
|
272
|
+
data: string;
|
|
273
|
+
driverParam: string;
|
|
274
|
+
notNull: false;
|
|
275
|
+
hasDefault: false;
|
|
276
|
+
isPrimaryKey: false;
|
|
277
|
+
isAutoincrement: false;
|
|
278
|
+
hasRuntimeDefault: false;
|
|
279
|
+
enumValues: undefined;
|
|
280
|
+
identity: undefined;
|
|
281
|
+
generated: undefined;
|
|
282
|
+
}>;
|
|
283
|
+
workspaceId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
284
|
+
name: string;
|
|
285
|
+
tableName: "notification_settings";
|
|
286
|
+
dataType: "string";
|
|
287
|
+
data: string;
|
|
288
|
+
driverParam: string;
|
|
289
|
+
notNull: false;
|
|
290
|
+
hasDefault: false;
|
|
291
|
+
isPrimaryKey: false;
|
|
292
|
+
isAutoincrement: false;
|
|
293
|
+
hasRuntimeDefault: false;
|
|
294
|
+
enumValues: undefined;
|
|
295
|
+
identity: undefined;
|
|
296
|
+
generated: undefined;
|
|
297
|
+
}>;
|
|
298
|
+
eventKey: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
299
|
+
name: string;
|
|
300
|
+
tableName: "notification_settings";
|
|
301
|
+
dataType: "string";
|
|
302
|
+
data: string;
|
|
303
|
+
driverParam: string;
|
|
304
|
+
notNull: false;
|
|
305
|
+
hasDefault: false;
|
|
306
|
+
isPrimaryKey: false;
|
|
307
|
+
isAutoincrement: false;
|
|
308
|
+
hasRuntimeDefault: false;
|
|
309
|
+
enumValues: undefined;
|
|
310
|
+
identity: undefined;
|
|
311
|
+
generated: undefined;
|
|
312
|
+
}>;
|
|
313
|
+
channel: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
314
|
+
name: string;
|
|
315
|
+
tableName: "notification_settings";
|
|
316
|
+
dataType: "string";
|
|
317
|
+
data: string;
|
|
318
|
+
driverParam: string;
|
|
319
|
+
notNull: true;
|
|
320
|
+
hasDefault: false;
|
|
321
|
+
isPrimaryKey: false;
|
|
322
|
+
isAutoincrement: false;
|
|
323
|
+
hasRuntimeDefault: false;
|
|
324
|
+
enumValues: undefined;
|
|
325
|
+
identity: undefined;
|
|
326
|
+
generated: undefined;
|
|
327
|
+
}>;
|
|
328
|
+
enabled: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
|
|
329
|
+
name: string;
|
|
330
|
+
tableName: "notification_settings";
|
|
331
|
+
dataType: "boolean";
|
|
332
|
+
data: boolean;
|
|
333
|
+
driverParam: boolean;
|
|
334
|
+
notNull: true;
|
|
335
|
+
hasDefault: true;
|
|
336
|
+
isPrimaryKey: false;
|
|
337
|
+
isAutoincrement: false;
|
|
338
|
+
hasRuntimeDefault: false;
|
|
339
|
+
enumValues: undefined;
|
|
340
|
+
identity: undefined;
|
|
341
|
+
generated: undefined;
|
|
342
|
+
}>;
|
|
343
|
+
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
344
|
+
name: string;
|
|
345
|
+
tableName: "notification_settings";
|
|
346
|
+
dataType: "object date";
|
|
347
|
+
data: Date;
|
|
348
|
+
driverParam: string;
|
|
349
|
+
notNull: true;
|
|
350
|
+
hasDefault: true;
|
|
351
|
+
isPrimaryKey: false;
|
|
352
|
+
isAutoincrement: false;
|
|
353
|
+
hasRuntimeDefault: false;
|
|
354
|
+
enumValues: undefined;
|
|
355
|
+
identity: undefined;
|
|
356
|
+
generated: undefined;
|
|
357
|
+
}>;
|
|
358
|
+
updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_settings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
359
|
+
name: string;
|
|
360
|
+
tableName: "notification_settings";
|
|
361
|
+
dataType: "object date";
|
|
362
|
+
data: Date;
|
|
363
|
+
driverParam: string;
|
|
364
|
+
notNull: true;
|
|
365
|
+
hasDefault: true;
|
|
366
|
+
isPrimaryKey: false;
|
|
367
|
+
isAutoincrement: false;
|
|
368
|
+
hasRuntimeDefault: false;
|
|
369
|
+
enumValues: undefined;
|
|
370
|
+
identity: undefined;
|
|
371
|
+
generated: undefined;
|
|
372
|
+
}>;
|
|
373
|
+
};
|
|
374
|
+
dialect: 'pg';
|
|
375
|
+
}>;
|
|
376
|
+
export declare const notificationDeliveries: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
377
|
+
name: "notification_deliveries";
|
|
378
|
+
schema: undefined;
|
|
379
|
+
columns: {
|
|
380
|
+
id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
381
|
+
name: string;
|
|
382
|
+
tableName: "notification_deliveries";
|
|
383
|
+
dataType: "string uuid";
|
|
384
|
+
data: string;
|
|
385
|
+
driverParam: string;
|
|
386
|
+
notNull: true;
|
|
387
|
+
hasDefault: true;
|
|
388
|
+
isPrimaryKey: false;
|
|
389
|
+
isAutoincrement: false;
|
|
390
|
+
hasRuntimeDefault: false;
|
|
391
|
+
enumValues: undefined;
|
|
392
|
+
identity: undefined;
|
|
393
|
+
generated: undefined;
|
|
394
|
+
}>;
|
|
395
|
+
notificationId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgUUIDBuilder, {
|
|
396
|
+
name: string;
|
|
397
|
+
tableName: "notification_deliveries";
|
|
398
|
+
dataType: "string uuid";
|
|
399
|
+
data: string;
|
|
400
|
+
driverParam: string;
|
|
401
|
+
notNull: false;
|
|
402
|
+
hasDefault: false;
|
|
403
|
+
isPrimaryKey: false;
|
|
404
|
+
isAutoincrement: false;
|
|
405
|
+
hasRuntimeDefault: false;
|
|
406
|
+
enumValues: undefined;
|
|
407
|
+
identity: undefined;
|
|
408
|
+
generated: undefined;
|
|
409
|
+
}>;
|
|
410
|
+
idempotencyKey: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
411
|
+
name: string;
|
|
412
|
+
tableName: "notification_deliveries";
|
|
413
|
+
dataType: "string";
|
|
414
|
+
data: string;
|
|
415
|
+
driverParam: string;
|
|
416
|
+
notNull: true;
|
|
417
|
+
hasDefault: false;
|
|
418
|
+
isPrimaryKey: false;
|
|
419
|
+
isAutoincrement: false;
|
|
420
|
+
hasRuntimeDefault: false;
|
|
421
|
+
enumValues: undefined;
|
|
422
|
+
identity: undefined;
|
|
423
|
+
generated: undefined;
|
|
424
|
+
}>;
|
|
425
|
+
recipientUserId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
426
|
+
name: string;
|
|
427
|
+
tableName: "notification_deliveries";
|
|
428
|
+
dataType: "string";
|
|
429
|
+
data: string;
|
|
430
|
+
driverParam: string;
|
|
431
|
+
notNull: false;
|
|
432
|
+
hasDefault: false;
|
|
433
|
+
isPrimaryKey: false;
|
|
434
|
+
isAutoincrement: false;
|
|
435
|
+
hasRuntimeDefault: false;
|
|
436
|
+
enumValues: undefined;
|
|
437
|
+
identity: undefined;
|
|
438
|
+
generated: undefined;
|
|
439
|
+
}>;
|
|
440
|
+
organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
441
|
+
name: string;
|
|
442
|
+
tableName: "notification_deliveries";
|
|
443
|
+
dataType: "string";
|
|
444
|
+
data: string;
|
|
445
|
+
driverParam: string;
|
|
446
|
+
notNull: false;
|
|
447
|
+
hasDefault: false;
|
|
448
|
+
isPrimaryKey: false;
|
|
449
|
+
isAutoincrement: false;
|
|
450
|
+
hasRuntimeDefault: false;
|
|
451
|
+
enumValues: undefined;
|
|
452
|
+
identity: undefined;
|
|
453
|
+
generated: undefined;
|
|
454
|
+
}>;
|
|
455
|
+
workspaceId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
456
|
+
name: string;
|
|
457
|
+
tableName: "notification_deliveries";
|
|
458
|
+
dataType: "string";
|
|
459
|
+
data: string;
|
|
460
|
+
driverParam: string;
|
|
461
|
+
notNull: false;
|
|
462
|
+
hasDefault: false;
|
|
463
|
+
isPrimaryKey: false;
|
|
464
|
+
isAutoincrement: false;
|
|
465
|
+
hasRuntimeDefault: false;
|
|
466
|
+
enumValues: undefined;
|
|
467
|
+
identity: undefined;
|
|
468
|
+
generated: undefined;
|
|
469
|
+
}>;
|
|
470
|
+
eventKey: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
471
|
+
name: string;
|
|
472
|
+
tableName: "notification_deliveries";
|
|
473
|
+
dataType: "string";
|
|
474
|
+
data: string;
|
|
475
|
+
driverParam: string;
|
|
476
|
+
notNull: true;
|
|
477
|
+
hasDefault: false;
|
|
478
|
+
isPrimaryKey: false;
|
|
479
|
+
isAutoincrement: false;
|
|
480
|
+
hasRuntimeDefault: false;
|
|
481
|
+
enumValues: undefined;
|
|
482
|
+
identity: undefined;
|
|
483
|
+
generated: undefined;
|
|
484
|
+
}>;
|
|
485
|
+
eventVersion: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
|
|
486
|
+
name: string;
|
|
487
|
+
tableName: "notification_deliveries";
|
|
488
|
+
dataType: "number int32";
|
|
489
|
+
data: number;
|
|
490
|
+
driverParam: string | number;
|
|
491
|
+
notNull: true;
|
|
492
|
+
hasDefault: true;
|
|
493
|
+
isPrimaryKey: false;
|
|
494
|
+
isAutoincrement: false;
|
|
495
|
+
hasRuntimeDefault: false;
|
|
496
|
+
enumValues: undefined;
|
|
497
|
+
identity: undefined;
|
|
498
|
+
generated: undefined;
|
|
499
|
+
}>;
|
|
500
|
+
channel: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
501
|
+
name: string;
|
|
502
|
+
tableName: "notification_deliveries";
|
|
503
|
+
dataType: "string";
|
|
504
|
+
data: string;
|
|
505
|
+
driverParam: string;
|
|
506
|
+
notNull: true;
|
|
507
|
+
hasDefault: false;
|
|
508
|
+
isPrimaryKey: false;
|
|
509
|
+
isAutoincrement: false;
|
|
510
|
+
hasRuntimeDefault: false;
|
|
511
|
+
enumValues: undefined;
|
|
512
|
+
identity: undefined;
|
|
513
|
+
generated: undefined;
|
|
514
|
+
}>;
|
|
515
|
+
purpose: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
516
|
+
name: string;
|
|
517
|
+
tableName: "notification_deliveries";
|
|
518
|
+
dataType: "string";
|
|
519
|
+
data: string;
|
|
520
|
+
driverParam: string;
|
|
521
|
+
notNull: true;
|
|
522
|
+
hasDefault: false;
|
|
523
|
+
isPrimaryKey: false;
|
|
524
|
+
isAutoincrement: false;
|
|
525
|
+
hasRuntimeDefault: false;
|
|
526
|
+
enumValues: undefined;
|
|
527
|
+
identity: undefined;
|
|
528
|
+
generated: undefined;
|
|
529
|
+
}>;
|
|
530
|
+
template: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
531
|
+
name: string;
|
|
532
|
+
tableName: "notification_deliveries";
|
|
533
|
+
dataType: "string";
|
|
534
|
+
data: string;
|
|
535
|
+
driverParam: string;
|
|
536
|
+
notNull: false;
|
|
537
|
+
hasDefault: false;
|
|
538
|
+
isPrimaryKey: false;
|
|
539
|
+
isAutoincrement: false;
|
|
540
|
+
hasRuntimeDefault: false;
|
|
541
|
+
enumValues: undefined;
|
|
542
|
+
identity: undefined;
|
|
543
|
+
generated: undefined;
|
|
544
|
+
}>;
|
|
545
|
+
recipientAddress: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
546
|
+
name: string;
|
|
547
|
+
tableName: "notification_deliveries";
|
|
548
|
+
dataType: "string";
|
|
549
|
+
data: string;
|
|
550
|
+
driverParam: string;
|
|
551
|
+
notNull: true;
|
|
552
|
+
hasDefault: false;
|
|
553
|
+
isPrimaryKey: false;
|
|
554
|
+
isAutoincrement: false;
|
|
555
|
+
hasRuntimeDefault: false;
|
|
556
|
+
enumValues: undefined;
|
|
557
|
+
identity: undefined;
|
|
558
|
+
generated: undefined;
|
|
559
|
+
}>;
|
|
560
|
+
recipientName: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
561
|
+
name: string;
|
|
562
|
+
tableName: "notification_deliveries";
|
|
563
|
+
dataType: "string";
|
|
564
|
+
data: string;
|
|
565
|
+
driverParam: string;
|
|
566
|
+
notNull: false;
|
|
567
|
+
hasDefault: false;
|
|
568
|
+
isPrimaryKey: false;
|
|
569
|
+
isAutoincrement: false;
|
|
570
|
+
hasRuntimeDefault: false;
|
|
571
|
+
enumValues: undefined;
|
|
572
|
+
identity: undefined;
|
|
573
|
+
generated: undefined;
|
|
574
|
+
}>;
|
|
575
|
+
payloadVersion: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
|
|
576
|
+
name: string;
|
|
577
|
+
tableName: "notification_deliveries";
|
|
578
|
+
dataType: "number int32";
|
|
579
|
+
data: number;
|
|
580
|
+
driverParam: string | number;
|
|
581
|
+
notNull: true;
|
|
582
|
+
hasDefault: true;
|
|
583
|
+
isPrimaryKey: false;
|
|
584
|
+
isAutoincrement: false;
|
|
585
|
+
hasRuntimeDefault: false;
|
|
586
|
+
enumValues: undefined;
|
|
587
|
+
identity: undefined;
|
|
588
|
+
generated: undefined;
|
|
589
|
+
}>;
|
|
590
|
+
payload: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Json>>, {
|
|
591
|
+
name: string;
|
|
592
|
+
tableName: "notification_deliveries";
|
|
593
|
+
dataType: "object json";
|
|
594
|
+
data: Json;
|
|
595
|
+
driverParam: unknown;
|
|
596
|
+
notNull: true;
|
|
597
|
+
hasDefault: false;
|
|
598
|
+
isPrimaryKey: false;
|
|
599
|
+
isAutoincrement: false;
|
|
600
|
+
hasRuntimeDefault: false;
|
|
601
|
+
enumValues: undefined;
|
|
602
|
+
identity: undefined;
|
|
603
|
+
generated: undefined;
|
|
604
|
+
}>;
|
|
605
|
+
status: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
|
|
606
|
+
name: string;
|
|
607
|
+
tableName: "notification_deliveries";
|
|
608
|
+
dataType: "string";
|
|
609
|
+
data: string;
|
|
610
|
+
driverParam: string;
|
|
611
|
+
notNull: true;
|
|
612
|
+
hasDefault: true;
|
|
613
|
+
isPrimaryKey: false;
|
|
614
|
+
isAutoincrement: false;
|
|
615
|
+
hasRuntimeDefault: false;
|
|
616
|
+
enumValues: undefined;
|
|
617
|
+
identity: undefined;
|
|
618
|
+
generated: undefined;
|
|
619
|
+
}>;
|
|
620
|
+
attempts: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
|
|
621
|
+
name: string;
|
|
622
|
+
tableName: "notification_deliveries";
|
|
623
|
+
dataType: "number int32";
|
|
624
|
+
data: number;
|
|
625
|
+
driverParam: string | number;
|
|
626
|
+
notNull: true;
|
|
627
|
+
hasDefault: true;
|
|
628
|
+
isPrimaryKey: false;
|
|
629
|
+
isAutoincrement: false;
|
|
630
|
+
hasRuntimeDefault: false;
|
|
631
|
+
enumValues: undefined;
|
|
632
|
+
identity: undefined;
|
|
633
|
+
generated: undefined;
|
|
634
|
+
}>;
|
|
635
|
+
maxAttempts: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
|
|
636
|
+
name: string;
|
|
637
|
+
tableName: "notification_deliveries";
|
|
638
|
+
dataType: "number int32";
|
|
639
|
+
data: number;
|
|
640
|
+
driverParam: string | number;
|
|
641
|
+
notNull: true;
|
|
642
|
+
hasDefault: true;
|
|
643
|
+
isPrimaryKey: false;
|
|
644
|
+
isAutoincrement: false;
|
|
645
|
+
hasRuntimeDefault: false;
|
|
646
|
+
enumValues: undefined;
|
|
647
|
+
identity: undefined;
|
|
648
|
+
generated: undefined;
|
|
649
|
+
}>;
|
|
650
|
+
provider: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
651
|
+
name: string;
|
|
652
|
+
tableName: "notification_deliveries";
|
|
653
|
+
dataType: "string";
|
|
654
|
+
data: string;
|
|
655
|
+
driverParam: string;
|
|
656
|
+
notNull: false;
|
|
657
|
+
hasDefault: false;
|
|
658
|
+
isPrimaryKey: false;
|
|
659
|
+
isAutoincrement: false;
|
|
660
|
+
hasRuntimeDefault: false;
|
|
661
|
+
enumValues: undefined;
|
|
662
|
+
identity: undefined;
|
|
663
|
+
generated: undefined;
|
|
664
|
+
}>;
|
|
665
|
+
providerMessageId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
666
|
+
name: string;
|
|
667
|
+
tableName: "notification_deliveries";
|
|
668
|
+
dataType: "string";
|
|
669
|
+
data: string;
|
|
670
|
+
driverParam: string;
|
|
671
|
+
notNull: false;
|
|
672
|
+
hasDefault: false;
|
|
673
|
+
isPrimaryKey: false;
|
|
674
|
+
isAutoincrement: false;
|
|
675
|
+
hasRuntimeDefault: false;
|
|
676
|
+
enumValues: undefined;
|
|
677
|
+
identity: undefined;
|
|
678
|
+
generated: undefined;
|
|
679
|
+
}>;
|
|
680
|
+
errorMessage: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
681
|
+
name: string;
|
|
682
|
+
tableName: "notification_deliveries";
|
|
683
|
+
dataType: "string";
|
|
684
|
+
data: string;
|
|
685
|
+
driverParam: string;
|
|
686
|
+
notNull: false;
|
|
687
|
+
hasDefault: false;
|
|
688
|
+
isPrimaryKey: false;
|
|
689
|
+
isAutoincrement: false;
|
|
690
|
+
hasRuntimeDefault: false;
|
|
691
|
+
enumValues: undefined;
|
|
692
|
+
identity: undefined;
|
|
693
|
+
generated: undefined;
|
|
694
|
+
}>;
|
|
695
|
+
scheduledFor: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
696
|
+
name: string;
|
|
697
|
+
tableName: "notification_deliveries";
|
|
698
|
+
dataType: "object date";
|
|
699
|
+
data: Date;
|
|
700
|
+
driverParam: string;
|
|
701
|
+
notNull: true;
|
|
702
|
+
hasDefault: true;
|
|
703
|
+
isPrimaryKey: false;
|
|
704
|
+
isAutoincrement: false;
|
|
705
|
+
hasRuntimeDefault: false;
|
|
706
|
+
enumValues: undefined;
|
|
707
|
+
identity: undefined;
|
|
708
|
+
generated: undefined;
|
|
709
|
+
}>;
|
|
710
|
+
processingAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
711
|
+
name: string;
|
|
712
|
+
tableName: "notification_deliveries";
|
|
713
|
+
dataType: "object date";
|
|
714
|
+
data: Date;
|
|
715
|
+
driverParam: string;
|
|
716
|
+
notNull: false;
|
|
717
|
+
hasDefault: false;
|
|
718
|
+
isPrimaryKey: false;
|
|
719
|
+
isAutoincrement: false;
|
|
720
|
+
hasRuntimeDefault: false;
|
|
721
|
+
enumValues: undefined;
|
|
722
|
+
identity: undefined;
|
|
723
|
+
generated: undefined;
|
|
724
|
+
}>;
|
|
725
|
+
lastAttemptAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
726
|
+
name: string;
|
|
727
|
+
tableName: "notification_deliveries";
|
|
728
|
+
dataType: "object date";
|
|
729
|
+
data: Date;
|
|
730
|
+
driverParam: string;
|
|
731
|
+
notNull: false;
|
|
732
|
+
hasDefault: false;
|
|
733
|
+
isPrimaryKey: false;
|
|
734
|
+
isAutoincrement: false;
|
|
735
|
+
hasRuntimeDefault: false;
|
|
736
|
+
enumValues: undefined;
|
|
737
|
+
identity: undefined;
|
|
738
|
+
generated: undefined;
|
|
739
|
+
}>;
|
|
740
|
+
leaseExpiresAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
741
|
+
name: string;
|
|
742
|
+
tableName: "notification_deliveries";
|
|
743
|
+
dataType: "object date";
|
|
744
|
+
data: Date;
|
|
745
|
+
driverParam: string;
|
|
746
|
+
notNull: false;
|
|
747
|
+
hasDefault: false;
|
|
748
|
+
isPrimaryKey: false;
|
|
749
|
+
isAutoincrement: false;
|
|
750
|
+
hasRuntimeDefault: false;
|
|
751
|
+
enumValues: undefined;
|
|
752
|
+
identity: undefined;
|
|
753
|
+
generated: undefined;
|
|
754
|
+
}>;
|
|
755
|
+
claimedBy: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
756
|
+
name: string;
|
|
757
|
+
tableName: "notification_deliveries";
|
|
758
|
+
dataType: "string";
|
|
759
|
+
data: string;
|
|
760
|
+
driverParam: string;
|
|
761
|
+
notNull: false;
|
|
762
|
+
hasDefault: false;
|
|
763
|
+
isPrimaryKey: false;
|
|
764
|
+
isAutoincrement: false;
|
|
765
|
+
hasRuntimeDefault: false;
|
|
766
|
+
enumValues: undefined;
|
|
767
|
+
identity: undefined;
|
|
768
|
+
generated: undefined;
|
|
769
|
+
}>;
|
|
770
|
+
sentAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
771
|
+
name: string;
|
|
772
|
+
tableName: "notification_deliveries";
|
|
773
|
+
dataType: "object date";
|
|
774
|
+
data: Date;
|
|
775
|
+
driverParam: string;
|
|
776
|
+
notNull: false;
|
|
777
|
+
hasDefault: false;
|
|
778
|
+
isPrimaryKey: false;
|
|
779
|
+
isAutoincrement: false;
|
|
780
|
+
hasRuntimeDefault: false;
|
|
781
|
+
enumValues: undefined;
|
|
782
|
+
identity: undefined;
|
|
783
|
+
generated: undefined;
|
|
784
|
+
}>;
|
|
785
|
+
failedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
786
|
+
name: string;
|
|
787
|
+
tableName: "notification_deliveries";
|
|
788
|
+
dataType: "object date";
|
|
789
|
+
data: Date;
|
|
790
|
+
driverParam: string;
|
|
791
|
+
notNull: false;
|
|
792
|
+
hasDefault: false;
|
|
793
|
+
isPrimaryKey: false;
|
|
794
|
+
isAutoincrement: false;
|
|
795
|
+
hasRuntimeDefault: false;
|
|
796
|
+
enumValues: undefined;
|
|
797
|
+
identity: undefined;
|
|
798
|
+
generated: undefined;
|
|
799
|
+
}>;
|
|
800
|
+
suppressedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
801
|
+
name: string;
|
|
802
|
+
tableName: "notification_deliveries";
|
|
803
|
+
dataType: "object date";
|
|
804
|
+
data: Date;
|
|
805
|
+
driverParam: string;
|
|
806
|
+
notNull: false;
|
|
807
|
+
hasDefault: false;
|
|
808
|
+
isPrimaryKey: false;
|
|
809
|
+
isAutoincrement: false;
|
|
810
|
+
hasRuntimeDefault: false;
|
|
811
|
+
enumValues: undefined;
|
|
812
|
+
identity: undefined;
|
|
813
|
+
generated: undefined;
|
|
814
|
+
}>;
|
|
815
|
+
cancelledAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").PgTimestampBuilder, {
|
|
816
|
+
name: string;
|
|
817
|
+
tableName: "notification_deliveries";
|
|
818
|
+
dataType: "object date";
|
|
819
|
+
data: Date;
|
|
820
|
+
driverParam: string;
|
|
821
|
+
notNull: false;
|
|
822
|
+
hasDefault: false;
|
|
823
|
+
isPrimaryKey: false;
|
|
824
|
+
isAutoincrement: false;
|
|
825
|
+
hasRuntimeDefault: false;
|
|
826
|
+
enumValues: undefined;
|
|
827
|
+
identity: undefined;
|
|
828
|
+
generated: undefined;
|
|
829
|
+
}>;
|
|
830
|
+
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
831
|
+
name: string;
|
|
832
|
+
tableName: "notification_deliveries";
|
|
833
|
+
dataType: "object date";
|
|
834
|
+
data: Date;
|
|
835
|
+
driverParam: string;
|
|
836
|
+
notNull: true;
|
|
837
|
+
hasDefault: true;
|
|
838
|
+
isPrimaryKey: false;
|
|
839
|
+
isAutoincrement: false;
|
|
840
|
+
hasRuntimeDefault: false;
|
|
841
|
+
enumValues: undefined;
|
|
842
|
+
identity: undefined;
|
|
843
|
+
generated: undefined;
|
|
844
|
+
}>;
|
|
845
|
+
updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_deliveries", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
846
|
+
name: string;
|
|
847
|
+
tableName: "notification_deliveries";
|
|
848
|
+
dataType: "object date";
|
|
849
|
+
data: Date;
|
|
850
|
+
driverParam: string;
|
|
851
|
+
notNull: true;
|
|
852
|
+
hasDefault: true;
|
|
853
|
+
isPrimaryKey: false;
|
|
854
|
+
isAutoincrement: false;
|
|
855
|
+
hasRuntimeDefault: false;
|
|
856
|
+
enumValues: undefined;
|
|
857
|
+
identity: undefined;
|
|
858
|
+
generated: undefined;
|
|
859
|
+
}>;
|
|
860
|
+
};
|
|
861
|
+
dialect: 'pg';
|
|
862
|
+
}>;
|
|
863
|
+
export type NotificationRow = typeof notifications.$inferSelect;
|
|
864
|
+
export type NewNotificationRow = typeof notifications.$inferInsert;
|
|
865
|
+
export type NotificationSettingRow = typeof notificationSettings.$inferSelect;
|
|
866
|
+
export type NewNotificationSettingRow = typeof notificationSettings.$inferInsert;
|
|
867
|
+
export type NotificationDeliveryRow = typeof notificationDeliveries.$inferSelect;
|
|
868
|
+
export type NewNotificationDeliveryRow = typeof notificationDeliveries.$inferInsert;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const NOTIFICATION_DELIVERY_PURPOSES: readonly ["transactional", "notification"];
|
|
3
|
+
export declare const NOTIFICATION_DELIVERY_STATUSES: readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"];
|
|
4
|
+
export declare const NotificationDeliveryPurpose: Schema.Literals<readonly ["transactional", "notification"]>;
|
|
5
|
+
export declare const NotificationDeliveryStatus: Schema.Literals<readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"]>;
|
|
6
|
+
export declare const NotificationId: Schema.brand<Schema.String, "NotificationId">;
|
|
7
|
+
export declare const NotificationSettingId: Schema.brand<Schema.String, "NotificationSettingId">;
|
|
8
|
+
export declare const NotificationDeliveryId: Schema.brand<Schema.String, "NotificationDeliveryId">;
|
|
9
|
+
export declare const InboxNotificationSchema: Schema.Struct<{
|
|
10
|
+
readonly id: Schema.brand<Schema.String, "NotificationId">;
|
|
11
|
+
readonly idempotencyKey: Schema.NonEmptyString;
|
|
12
|
+
readonly recipientUserId: Schema.NonEmptyString;
|
|
13
|
+
readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
|
|
14
|
+
readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
|
|
15
|
+
readonly eventKey: Schema.NonEmptyString;
|
|
16
|
+
readonly eventVersion: Schema.Int;
|
|
17
|
+
readonly locale: Schema.NonEmptyString;
|
|
18
|
+
readonly title: Schema.NonEmptyString;
|
|
19
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
20
|
+
readonly href: Schema.NullOr<Schema.String>;
|
|
21
|
+
readonly metadata: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
22
|
+
readonly createdAt: Schema.Date;
|
|
23
|
+
readonly readAt: Schema.NullOr<Schema.Date>;
|
|
24
|
+
readonly archivedAt: Schema.NullOr<Schema.Date>;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const NotificationSettingSchema: Schema.Struct<{
|
|
27
|
+
readonly id: Schema.brand<Schema.String, "NotificationSettingId">;
|
|
28
|
+
readonly recipientUserId: Schema.NonEmptyString;
|
|
29
|
+
readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
|
|
30
|
+
readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
|
|
31
|
+
readonly eventKey: Schema.NullOr<Schema.NonEmptyString>;
|
|
32
|
+
readonly channel: Schema.NonEmptyString;
|
|
33
|
+
readonly enabled: Schema.Boolean;
|
|
34
|
+
readonly createdAt: Schema.Date;
|
|
35
|
+
readonly updatedAt: Schema.Date;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const NotificationDeliverySchema: Schema.Struct<{
|
|
38
|
+
readonly id: Schema.brand<Schema.String, "NotificationDeliveryId">;
|
|
39
|
+
readonly notificationId: Schema.NullOr<Schema.brand<Schema.String, "NotificationId">>;
|
|
40
|
+
readonly idempotencyKey: Schema.NonEmptyString;
|
|
41
|
+
readonly recipientUserId: Schema.NullOr<Schema.NonEmptyString>;
|
|
42
|
+
readonly organizationId: Schema.NullOr<Schema.NonEmptyString>;
|
|
43
|
+
readonly workspaceId: Schema.NullOr<Schema.NonEmptyString>;
|
|
44
|
+
readonly eventKey: Schema.NonEmptyString;
|
|
45
|
+
readonly eventVersion: Schema.Int;
|
|
46
|
+
readonly channel: Schema.NonEmptyString;
|
|
47
|
+
readonly purpose: Schema.Literals<readonly ["transactional", "notification"]>;
|
|
48
|
+
readonly template: Schema.NullOr<Schema.NonEmptyString>;
|
|
49
|
+
readonly recipientAddress: Schema.NonEmptyString;
|
|
50
|
+
readonly recipientName: Schema.NullOr<Schema.NonEmptyString>;
|
|
51
|
+
readonly payloadVersion: Schema.Int;
|
|
52
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
53
|
+
readonly status: Schema.Literals<readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"]>;
|
|
54
|
+
readonly attempts: Schema.Int;
|
|
55
|
+
readonly maxAttempts: Schema.Int;
|
|
56
|
+
readonly provider: Schema.NullOr<Schema.NonEmptyString>;
|
|
57
|
+
readonly providerMessageId: Schema.NullOr<Schema.NonEmptyString>;
|
|
58
|
+
readonly errorMessage: Schema.NullOr<Schema.String>;
|
|
59
|
+
readonly scheduledFor: Schema.Date;
|
|
60
|
+
readonly processingAt: Schema.NullOr<Schema.Date>;
|
|
61
|
+
readonly lastAttemptAt: Schema.NullOr<Schema.Date>;
|
|
62
|
+
readonly leaseExpiresAt: Schema.NullOr<Schema.Date>;
|
|
63
|
+
readonly claimedBy: Schema.NullOr<Schema.NonEmptyString>;
|
|
64
|
+
readonly sentAt: Schema.NullOr<Schema.Date>;
|
|
65
|
+
readonly failedAt: Schema.NullOr<Schema.Date>;
|
|
66
|
+
readonly suppressedAt: Schema.NullOr<Schema.Date>;
|
|
67
|
+
readonly cancelledAt: Schema.NullOr<Schema.Date>;
|
|
68
|
+
readonly createdAt: Schema.Date;
|
|
69
|
+
readonly updatedAt: Schema.Date;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const EmailDeliveryPayloadV1: Schema.refine<{
|
|
72
|
+
readonly from?: string | undefined;
|
|
73
|
+
readonly to: string | readonly [string, ...string[]];
|
|
74
|
+
readonly cc?: readonly string[] | undefined;
|
|
75
|
+
readonly bcc?: readonly string[] | undefined;
|
|
76
|
+
readonly replyTo?: readonly string[] | undefined;
|
|
77
|
+
readonly subject: string;
|
|
78
|
+
readonly text?: string | undefined;
|
|
79
|
+
readonly html?: string | undefined;
|
|
80
|
+
} & ({
|
|
81
|
+
readonly text: string;
|
|
82
|
+
} | {
|
|
83
|
+
readonly html: string;
|
|
84
|
+
}), Schema.Struct<{
|
|
85
|
+
readonly from: Schema.optional<Schema.NonEmptyString>;
|
|
86
|
+
readonly to: Schema.Union<readonly [Schema.NonEmptyString, Schema.NonEmptyArray<Schema.NonEmptyString>]>;
|
|
87
|
+
readonly cc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
88
|
+
readonly bcc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
89
|
+
readonly replyTo: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
90
|
+
readonly subject: Schema.NonEmptyString;
|
|
91
|
+
readonly text: Schema.optional<Schema.NonEmptyString>;
|
|
92
|
+
readonly html: Schema.optional<Schema.NonEmptyString>;
|
|
93
|
+
}>>;
|
|
94
|
+
export declare const PersistedNotificationDeliveryPayload: Schema.Union<readonly [Schema.Struct<{
|
|
95
|
+
readonly channel: Schema.Literal<"email">;
|
|
96
|
+
readonly payloadVersion: Schema.Literal<1>;
|
|
97
|
+
readonly payload: Schema.refine<{
|
|
98
|
+
readonly from?: string | undefined;
|
|
99
|
+
readonly to: string | readonly [string, ...string[]];
|
|
100
|
+
readonly cc?: readonly string[] | undefined;
|
|
101
|
+
readonly bcc?: readonly string[] | undefined;
|
|
102
|
+
readonly replyTo?: readonly string[] | undefined;
|
|
103
|
+
readonly subject: string;
|
|
104
|
+
readonly text?: string | undefined;
|
|
105
|
+
readonly html?: string | undefined;
|
|
106
|
+
} & ({
|
|
107
|
+
readonly text: string;
|
|
108
|
+
} | {
|
|
109
|
+
readonly html: string;
|
|
110
|
+
}), Schema.Struct<{
|
|
111
|
+
readonly from: Schema.optional<Schema.NonEmptyString>;
|
|
112
|
+
readonly to: Schema.Union<readonly [Schema.NonEmptyString, Schema.NonEmptyArray<Schema.NonEmptyString>]>;
|
|
113
|
+
readonly cc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
114
|
+
readonly bcc: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
115
|
+
readonly replyTo: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
116
|
+
readonly subject: Schema.NonEmptyString;
|
|
117
|
+
readonly text: Schema.optional<Schema.NonEmptyString>;
|
|
118
|
+
readonly html: Schema.optional<Schema.NonEmptyString>;
|
|
119
|
+
}>>;
|
|
120
|
+
}>]>;
|
|
121
|
+
export declare const decodeNotificationDeliveryPayload: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
|
122
|
+
readonly channel: "email";
|
|
123
|
+
readonly payloadVersion: 1;
|
|
124
|
+
readonly payload: {
|
|
125
|
+
readonly from?: string | undefined;
|
|
126
|
+
readonly to: string | readonly [string, ...string[]];
|
|
127
|
+
readonly cc?: readonly string[] | undefined;
|
|
128
|
+
readonly bcc?: readonly string[] | undefined;
|
|
129
|
+
readonly replyTo?: readonly string[] | undefined;
|
|
130
|
+
readonly subject: string;
|
|
131
|
+
readonly text?: string | undefined;
|
|
132
|
+
readonly html?: string | undefined;
|
|
133
|
+
} & ({
|
|
134
|
+
readonly text: string;
|
|
135
|
+
} | {
|
|
136
|
+
readonly html: string;
|
|
137
|
+
});
|
|
138
|
+
}, Schema.SchemaError, never>;
|
|
139
|
+
export type InboxNotification = typeof InboxNotificationSchema.Type;
|
|
140
|
+
export type NotificationSetting = typeof NotificationSettingSchema.Type;
|
|
141
|
+
export type NotificationDelivery = typeof NotificationDeliverySchema.Type;
|
|
142
|
+
export type EmailDeliveryPayloadV1 = typeof EmailDeliveryPayloadV1.Type;
|
|
143
|
+
export type PersistedNotificationDeliveryPayload = typeof PersistedNotificationDeliveryPayload.Type;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/krakcons/krakstack
|
|
8
|
+
"url": "git+https://github.com/krakcons/krakstack.git",
|
|
9
9
|
"directory": "packages/registry"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|