@krak-stack/notifications-admin 0.0.0-stage → 0.2.0
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/CHANGELOG.md +15 -0
- package/README.md +94 -2
- package/dist/atoms.d.ts +10 -0
- package/dist/atoms.js +328 -0
- package/dist/campaign.atom.d.ts +281 -0
- package/dist/campaigns.d.ts +51 -0
- package/dist/campaigns.js +8 -0
- package/dist/chunk-28xppc9m.js +404 -0
- package/dist/chunk-aqmv7g24.js +29 -0
- package/dist/chunk-dxjvd9tb.js +419 -0
- package/dist/chunk-t0qhq7pj.js +272 -0
- package/dist/chunk-tck9drx2.js +134 -0
- package/dist/chunk-wkxc1y7w.js +704 -0
- package/dist/contact.atom.d.ts +96 -0
- package/dist/contacts.d.ts +67 -0
- package/dist/contacts.js +11 -0
- package/dist/deliveries.d.ts +42 -0
- package/dist/deliveries.js +8 -0
- package/dist/delivery.atom.d.ts +196 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +29 -0
- package/dist/operations.atom.d.ts +244 -0
- package/dist/operations.d.ts +106 -0
- package/dist/operations.js +13 -0
- package/dist/presentation.d.ts +15 -0
- package/dist/presentation.js +10 -0
- package/package.json +80 -4
- package/tailwind.css +2 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { Atom, AsyncResult } from "effect/reactivity";
|
|
3
|
+
import * as S from "@krak-stack/notifications/admin/operations.schema";
|
|
4
|
+
export declare const OperationsQueryKey: Schema.Struct<{
|
|
5
|
+
readonly view: Schema.Literals<readonly ["overview", "activity", "feedback", "suppressions", "audit", "recipients"]>;
|
|
6
|
+
readonly filters: Schema.Struct<{
|
|
7
|
+
readonly since: Schema.optional<Schema.Union<readonly [Schema.Date, Schema.DateFromString]>>;
|
|
8
|
+
readonly until: Schema.optional<Schema.Union<readonly [Schema.Date, Schema.DateFromString]>>;
|
|
9
|
+
readonly search: Schema.optional<Schema.Trim>;
|
|
10
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["queued", "processing", "sent", "retrying", "failed", "suppressed", "cancelled"]>>;
|
|
11
|
+
readonly campaignId: Schema.optional<Schema.String>;
|
|
12
|
+
readonly contactId: Schema.optional<Schema.String>;
|
|
13
|
+
readonly deliveryId: Schema.optional<Schema.String>;
|
|
14
|
+
readonly kind: Schema.optional<Schema.Literals<readonly ["bounces", "delivered", "hard_bounce", "soft_bounce", "complaint"]>>;
|
|
15
|
+
readonly correlation: Schema.optional<Schema.Literals<readonly ["pending", "applied"]>>;
|
|
16
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["active", "expired", "all"]>>;
|
|
17
|
+
readonly recipientStatus: Schema.optional<Schema.Literals<readonly ["pending", "queued", "skipped"]>>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly table: Schema.Struct<{
|
|
20
|
+
readonly page: Schema.Int;
|
|
21
|
+
readonly pageSize: Schema.Int;
|
|
22
|
+
readonly globalFilter: Schema.optional<Schema.String>;
|
|
23
|
+
readonly filters: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
24
|
+
readonly id: Schema.NonEmptyString;
|
|
25
|
+
readonly kind: Schema.Literal<"text">;
|
|
26
|
+
readonly operator: Schema.Literals<readonly ["contains", "equals", "startsWith", "endsWith"]>;
|
|
27
|
+
readonly value: Schema.NonEmptyString;
|
|
28
|
+
}>, Schema.Struct<{
|
|
29
|
+
readonly id: Schema.NonEmptyString;
|
|
30
|
+
readonly kind: Schema.Literal<"values">;
|
|
31
|
+
readonly values: Schema.NonEmptyArray<Schema.String>;
|
|
32
|
+
}>, Schema.Struct<{
|
|
33
|
+
readonly id: Schema.NonEmptyString;
|
|
34
|
+
readonly kind: Schema.Literal<"boolean">;
|
|
35
|
+
readonly value: Schema.Boolean;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly id: Schema.NonEmptyString;
|
|
38
|
+
readonly kind: Schema.Literal<"number">;
|
|
39
|
+
readonly min: Schema.optional<Schema.Finite>;
|
|
40
|
+
readonly max: Schema.optional<Schema.Finite>;
|
|
41
|
+
}>, Schema.Struct<{
|
|
42
|
+
readonly id: Schema.NonEmptyString;
|
|
43
|
+
readonly kind: Schema.Literal<"date">;
|
|
44
|
+
readonly from: Schema.optional<Schema.String>;
|
|
45
|
+
readonly to: Schema.optional<Schema.String>;
|
|
46
|
+
}>]>>>;
|
|
47
|
+
readonly sort: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
48
|
+
readonly id: Schema.NonEmptyString;
|
|
49
|
+
readonly direction: Schema.Literals<readonly ["asc", "desc"]>;
|
|
50
|
+
}>>>;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const operationsQueryKey: (input: {
|
|
54
|
+
readonly view: "activity" | "audit" | "feedback" | "overview" | "recipients" | "suppressions";
|
|
55
|
+
readonly filters: {
|
|
56
|
+
readonly since?: Date | undefined;
|
|
57
|
+
readonly until?: Date | undefined;
|
|
58
|
+
readonly search?: string | undefined;
|
|
59
|
+
readonly status?: "cancelled" | "failed" | "processing" | "queued" | "retrying" | "sent" | "suppressed" | undefined;
|
|
60
|
+
readonly campaignId?: string | undefined;
|
|
61
|
+
readonly contactId?: string | undefined;
|
|
62
|
+
readonly deliveryId?: string | undefined;
|
|
63
|
+
readonly kind?: "bounces" | "complaint" | "delivered" | "hard_bounce" | "soft_bounce" | undefined;
|
|
64
|
+
readonly correlation?: "applied" | "pending" | undefined;
|
|
65
|
+
readonly state?: "active" | "all" | "expired" | undefined;
|
|
66
|
+
readonly recipientStatus?: "pending" | "queued" | "skipped" | undefined;
|
|
67
|
+
};
|
|
68
|
+
readonly table: {
|
|
69
|
+
readonly page: number;
|
|
70
|
+
readonly pageSize: number;
|
|
71
|
+
readonly globalFilter?: string | undefined;
|
|
72
|
+
readonly filters?: readonly ({
|
|
73
|
+
readonly id: string;
|
|
74
|
+
readonly kind: "text";
|
|
75
|
+
readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
|
|
76
|
+
readonly value: string;
|
|
77
|
+
} | {
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly kind: "values";
|
|
80
|
+
readonly values: readonly [string, ...string[]];
|
|
81
|
+
} | {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly kind: "boolean";
|
|
84
|
+
readonly value: boolean;
|
|
85
|
+
} | {
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly kind: "number";
|
|
88
|
+
readonly min?: number | undefined;
|
|
89
|
+
readonly max?: number | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly kind: "date";
|
|
93
|
+
readonly from?: string | undefined;
|
|
94
|
+
readonly to?: string | undefined;
|
|
95
|
+
})[] | undefined;
|
|
96
|
+
readonly sort?: readonly {
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly direction: "asc" | "desc";
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
};
|
|
101
|
+
}, options?: import("effect/SchemaAST").ParseOptions) => string;
|
|
102
|
+
export interface OperationsData {
|
|
103
|
+
readonly total?: number;
|
|
104
|
+
readonly overview?: typeof S.SendingOverview.Type;
|
|
105
|
+
readonly activity?: typeof S.ActivityPage.Type;
|
|
106
|
+
readonly feedback?: typeof S.FeedbackPage.Type;
|
|
107
|
+
readonly suppressions?: typeof S.SuppressionPage.Type;
|
|
108
|
+
readonly audit?: typeof S.SuppressionAuditPage.Type;
|
|
109
|
+
readonly recipients?: typeof S.RecipientPage.Type;
|
|
110
|
+
}
|
|
111
|
+
interface Resource {
|
|
112
|
+
readonly atom: Atom.Atom<AsyncResult.AsyncResult<OperationsData, unknown>>;
|
|
113
|
+
readonly refresh: Atom.Atom<unknown>;
|
|
114
|
+
}
|
|
115
|
+
export declare const makeSendOperationsAtoms: (baseUrl: string) => {
|
|
116
|
+
query: (arg: string) => Resource;
|
|
117
|
+
inspection: (arg: string) => Atom.Writable<AsyncResult.AsyncResult<{
|
|
118
|
+
readonly delivery: {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly contactId: string;
|
|
121
|
+
readonly email: string;
|
|
122
|
+
readonly name: string;
|
|
123
|
+
readonly campaignId: string | null;
|
|
124
|
+
readonly campaignName: string | null;
|
|
125
|
+
readonly purpose: string;
|
|
126
|
+
readonly eventKey: string;
|
|
127
|
+
readonly subject: string | null;
|
|
128
|
+
readonly status: "cancelled" | "failed" | "processing" | "queued" | "retrying" | "sent" | "suppressed";
|
|
129
|
+
readonly attempts: number;
|
|
130
|
+
readonly maxAttempts: number;
|
|
131
|
+
readonly provider: string | null;
|
|
132
|
+
readonly providerMessageId: string | null;
|
|
133
|
+
readonly errorMessage: string | null;
|
|
134
|
+
readonly createdAt: Date;
|
|
135
|
+
readonly scheduledFor: Date;
|
|
136
|
+
readonly updatedAt: Date;
|
|
137
|
+
readonly sentAt: Date | null;
|
|
138
|
+
readonly confirmed: boolean;
|
|
139
|
+
readonly hardBounced: boolean;
|
|
140
|
+
readonly softBounced: boolean;
|
|
141
|
+
readonly complained: boolean;
|
|
142
|
+
};
|
|
143
|
+
readonly attempts: readonly {
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly deliveryId: string;
|
|
146
|
+
readonly jobId: string;
|
|
147
|
+
readonly generation: number;
|
|
148
|
+
readonly attempt: number;
|
|
149
|
+
readonly outcome: {
|
|
150
|
+
readonly _tag: "Sent";
|
|
151
|
+
readonly provider: string;
|
|
152
|
+
readonly providerMessageId: string | null;
|
|
153
|
+
} | {
|
|
154
|
+
readonly _tag: "RetryableFailure";
|
|
155
|
+
readonly message: string;
|
|
156
|
+
readonly retryAfter: Date | null;
|
|
157
|
+
} | {
|
|
158
|
+
readonly _tag: "PermanentFailure";
|
|
159
|
+
readonly message: string;
|
|
160
|
+
} | {
|
|
161
|
+
readonly _tag: "Unavailable";
|
|
162
|
+
readonly message: string;
|
|
163
|
+
readonly retryAfter: Date | null;
|
|
164
|
+
} | {
|
|
165
|
+
readonly _tag: "Skipped";
|
|
166
|
+
readonly reason: "cancelled" | "deferred" | "expired" | "stale" | "suppressed" | "terminal";
|
|
167
|
+
} | null;
|
|
168
|
+
readonly queuedAt: Date;
|
|
169
|
+
readonly startedAt: Date | null;
|
|
170
|
+
readonly completedAt: Date | null;
|
|
171
|
+
readonly createdAt: Date;
|
|
172
|
+
}[];
|
|
173
|
+
}, import("effect/http-api/HttpApiError").Forbidden | import("effect/http-api/HttpApiError").InternalServerError | import("@krak-stack/notifications/admin/schema").SendConflict | import("@krak-stack/notifications/admin/schema").SendNotFound | import("@krak-stack/notifications/admin/schema").SendValidationError | import("effect/http-api/HttpApiError").Unauthorized>, Atom.Atom<AsyncResult.AsyncResult<AsyncResult.AsyncResult<{
|
|
174
|
+
readonly delivery: {
|
|
175
|
+
readonly id: string;
|
|
176
|
+
readonly contactId: string;
|
|
177
|
+
readonly email: string;
|
|
178
|
+
readonly name: string;
|
|
179
|
+
readonly campaignId: string | null;
|
|
180
|
+
readonly campaignName: string | null;
|
|
181
|
+
readonly purpose: string;
|
|
182
|
+
readonly eventKey: string;
|
|
183
|
+
readonly subject: string | null;
|
|
184
|
+
readonly status: "cancelled" | "failed" | "processing" | "queued" | "retrying" | "sent" | "suppressed";
|
|
185
|
+
readonly attempts: number;
|
|
186
|
+
readonly maxAttempts: number;
|
|
187
|
+
readonly provider: string | null;
|
|
188
|
+
readonly providerMessageId: string | null;
|
|
189
|
+
readonly errorMessage: string | null;
|
|
190
|
+
readonly createdAt: Date;
|
|
191
|
+
readonly scheduledFor: Date;
|
|
192
|
+
readonly updatedAt: Date;
|
|
193
|
+
readonly sentAt: Date | null;
|
|
194
|
+
readonly confirmed: boolean;
|
|
195
|
+
readonly hardBounced: boolean;
|
|
196
|
+
readonly softBounced: boolean;
|
|
197
|
+
readonly complained: boolean;
|
|
198
|
+
};
|
|
199
|
+
readonly attempts: readonly {
|
|
200
|
+
readonly id: string;
|
|
201
|
+
readonly deliveryId: string;
|
|
202
|
+
readonly jobId: string;
|
|
203
|
+
readonly generation: number;
|
|
204
|
+
readonly attempt: number;
|
|
205
|
+
readonly outcome: {
|
|
206
|
+
readonly _tag: "Sent";
|
|
207
|
+
readonly provider: string;
|
|
208
|
+
readonly providerMessageId: string | null;
|
|
209
|
+
} | {
|
|
210
|
+
readonly _tag: "RetryableFailure";
|
|
211
|
+
readonly message: string;
|
|
212
|
+
readonly retryAfter: Date | null;
|
|
213
|
+
} | {
|
|
214
|
+
readonly _tag: "PermanentFailure";
|
|
215
|
+
readonly message: string;
|
|
216
|
+
} | {
|
|
217
|
+
readonly _tag: "Unavailable";
|
|
218
|
+
readonly message: string;
|
|
219
|
+
readonly retryAfter: Date | null;
|
|
220
|
+
} | {
|
|
221
|
+
readonly _tag: "Skipped";
|
|
222
|
+
readonly reason: "cancelled" | "deferred" | "expired" | "stale" | "suppressed" | "terminal";
|
|
223
|
+
} | null;
|
|
224
|
+
readonly queuedAt: Date;
|
|
225
|
+
readonly startedAt: Date | null;
|
|
226
|
+
readonly completedAt: Date | null;
|
|
227
|
+
readonly createdAt: Date;
|
|
228
|
+
}[];
|
|
229
|
+
}, import("effect/http-api/HttpApiError").Forbidden | import("effect/http-api/HttpApiError").InternalServerError | import("@krak-stack/notifications/admin/schema").SendConflict | import("@krak-stack/notifications/admin/schema").SendNotFound | import("@krak-stack/notifications/admin/schema").SendValidationError | import("effect/http-api/HttpApiError").Unauthorized>, unknown>>>;
|
|
230
|
+
add: Atom.AtomResultFn<{
|
|
231
|
+
readonly requestId: string;
|
|
232
|
+
readonly email: string;
|
|
233
|
+
readonly reason: string;
|
|
234
|
+
}, {
|
|
235
|
+
readonly suppressionId: string;
|
|
236
|
+
}, import("effect/http-api/HttpApiError").Forbidden | import("effect/http-api/HttpApiError").InternalServerError | import("@krak-stack/notifications/admin/schema").SendConflict | import("@krak-stack/notifications/admin/schema").SendNotFound | import("@krak-stack/notifications/admin/schema").SendValidationError | import("effect/http-api/HttpApiError").Unauthorized>;
|
|
237
|
+
remove: Atom.AtomResultFn<{
|
|
238
|
+
id: string;
|
|
239
|
+
payload: typeof S.RemoveSuppression.Type;
|
|
240
|
+
}, {
|
|
241
|
+
readonly suppressionId: string;
|
|
242
|
+
}, import("effect/http-api/HttpApiError").Forbidden | import("effect/http-api/HttpApiError").InternalServerError | import("@krak-stack/notifications/admin/schema").SendConflict | import("@krak-stack/notifications/admin/schema").SendNotFound | import("@krak-stack/notifications/admin/schema").SendValidationError | import("effect/http-api/HttpApiError").Unauthorized>;
|
|
243
|
+
};
|
|
244
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export { NotificationDeliveries } from "./deliveries.js";
|
|
2
|
+
export type { NotificationDeliveriesProps, NotificationDeliveryMessages, } from "./deliveries.js";
|
|
3
|
+
import * as S from "@krak-stack/notifications/admin/operations.schema";
|
|
4
|
+
import type { DataTablePublicState } from "@krak-stack/registry/data-table";
|
|
5
|
+
export { SendOperationsAdmin as NotificationOperations };
|
|
6
|
+
export type { SendOperationsProps as NotificationOperationsProps, SendOperationsMessages as NotificationOperationsMessages, };
|
|
7
|
+
type View = typeof S.OperationsView.Type;
|
|
8
|
+
type Filters = typeof S.OperationsFilters.Type;
|
|
9
|
+
export interface SendOperationsMessages {
|
|
10
|
+
readonly title: string;
|
|
11
|
+
readonly description: string;
|
|
12
|
+
readonly refresh: string;
|
|
13
|
+
readonly loading: string;
|
|
14
|
+
readonly failed: string;
|
|
15
|
+
readonly empty: string;
|
|
16
|
+
readonly views: Readonly<Record<View, string>>;
|
|
17
|
+
readonly metrics: Readonly<Record<keyof typeof S.SendingOverview.Type, string>>;
|
|
18
|
+
readonly statuses: Readonly<Record<(typeof S.DeliveryActivity.Type)["status"], string>>;
|
|
19
|
+
readonly kinds: Readonly<Record<(typeof S.FeedbackRecord.Type)["kind"] | "bounces", string>>;
|
|
20
|
+
readonly outcomes: Readonly<Record<NonNullable<(typeof S.DeliveryInspection.Type)["attempts"][number]["outcome"]>["_tag"], string>>;
|
|
21
|
+
readonly search: string;
|
|
22
|
+
readonly since: string;
|
|
23
|
+
readonly until: string;
|
|
24
|
+
readonly apply: string;
|
|
25
|
+
readonly all: string;
|
|
26
|
+
readonly status: string;
|
|
27
|
+
readonly campaign: string;
|
|
28
|
+
readonly campaignId: string;
|
|
29
|
+
readonly email: string;
|
|
30
|
+
readonly subject: string;
|
|
31
|
+
readonly provider: string;
|
|
32
|
+
readonly providerMessageId: string;
|
|
33
|
+
readonly attempts: string;
|
|
34
|
+
readonly created: string;
|
|
35
|
+
readonly scheduled: string;
|
|
36
|
+
readonly updated: string;
|
|
37
|
+
readonly accepted: string;
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
readonly inspect: string;
|
|
40
|
+
readonly close: string;
|
|
41
|
+
readonly previous: string;
|
|
42
|
+
readonly next: string;
|
|
43
|
+
readonly correlation: string;
|
|
44
|
+
readonly pending: string;
|
|
45
|
+
readonly applied: string;
|
|
46
|
+
readonly occurred: string;
|
|
47
|
+
readonly received: string;
|
|
48
|
+
readonly checked: string;
|
|
49
|
+
readonly eventId: string;
|
|
50
|
+
readonly deliveryId: string;
|
|
51
|
+
readonly contactId: string;
|
|
52
|
+
readonly addSuppression: string;
|
|
53
|
+
readonly removeSuppression: string;
|
|
54
|
+
readonly suppressionWarning: string;
|
|
55
|
+
readonly confirm: string;
|
|
56
|
+
readonly active: string;
|
|
57
|
+
readonly expired: string;
|
|
58
|
+
readonly expires: string;
|
|
59
|
+
readonly never: string;
|
|
60
|
+
readonly purpose: string;
|
|
61
|
+
readonly actor: string;
|
|
62
|
+
readonly action: string;
|
|
63
|
+
readonly add: string;
|
|
64
|
+
readonly remove: string;
|
|
65
|
+
readonly previousReason: string;
|
|
66
|
+
readonly requestId: string;
|
|
67
|
+
readonly recipientsHint: string;
|
|
68
|
+
readonly recipientStatuses: Readonly<Record<(typeof S.CampaignRecipient.Type)["status"], string>>;
|
|
69
|
+
readonly generation: string;
|
|
70
|
+
readonly outcome: string;
|
|
71
|
+
readonly started: string;
|
|
72
|
+
readonly completed: string;
|
|
73
|
+
readonly id: string;
|
|
74
|
+
}
|
|
75
|
+
export interface SendOperationsProps {
|
|
76
|
+
readonly tableState?: DataTablePublicState;
|
|
77
|
+
readonly onTableStateChange?: (state: DataTablePublicState) => void;
|
|
78
|
+
readonly total?: number;
|
|
79
|
+
readonly view: View;
|
|
80
|
+
readonly filters: Filters;
|
|
81
|
+
readonly messages: SendOperationsMessages;
|
|
82
|
+
readonly overview?: typeof S.SendingOverview.Type;
|
|
83
|
+
readonly activity?: typeof S.ActivityPage.Type;
|
|
84
|
+
readonly feedback?: typeof S.FeedbackPage.Type;
|
|
85
|
+
readonly suppressions?: typeof S.SuppressionPage.Type;
|
|
86
|
+
readonly audit?: typeof S.SuppressionAuditPage.Type;
|
|
87
|
+
readonly recipients?: typeof S.RecipientPage.Type;
|
|
88
|
+
readonly inspection?: typeof S.DeliveryInspection.Type;
|
|
89
|
+
readonly inspecting?: boolean;
|
|
90
|
+
readonly pending?: boolean;
|
|
91
|
+
readonly error?: string;
|
|
92
|
+
readonly onView: (view: View) => void;
|
|
93
|
+
readonly onFilters: (filters: Filters) => void;
|
|
94
|
+
readonly onRefresh: () => void;
|
|
95
|
+
readonly onInspect: (id: string) => void;
|
|
96
|
+
readonly onCloseInspection: () => void;
|
|
97
|
+
readonly onDeliveryFeedback: (id: string) => void;
|
|
98
|
+
readonly onCampaign?: (id: string) => void;
|
|
99
|
+
readonly onContact?: (id: string) => void;
|
|
100
|
+
readonly onAddSuppression: (input: typeof S.AddSuppression.Type) => Promise<typeof S.SuppressionChange.Type | void>;
|
|
101
|
+
readonly onRemoveSuppression: (input: {
|
|
102
|
+
id: string;
|
|
103
|
+
payload: typeof S.RemoveSuppression.Type;
|
|
104
|
+
}) => Promise<typeof S.SuppressionChange.Type | void>;
|
|
105
|
+
}
|
|
106
|
+
export declare const SendOperationsAdmin: (p: SendOperationsProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SendOperationsAdmin2
|
|
3
|
+
} from "./chunk-wkxc1y7w.js";
|
|
4
|
+
import {
|
|
5
|
+
NotificationDeliveries2
|
|
6
|
+
} from "./chunk-28xppc9m.js";
|
|
7
|
+
import"./chunk-tck9drx2.js";
|
|
8
|
+
import"./chunk-aqmv7g24.js";
|
|
9
|
+
export {
|
|
10
|
+
NotificationDeliveries2 as NotificationDeliveries,
|
|
11
|
+
SendOperationsAdmin2 as NotificationOperations,
|
|
12
|
+
SendOperationsAdmin2 as SendOperationsAdmin
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { DataTable } from "@krak-stack/registry/data-table";
|
|
3
|
+
export interface NotificationPresentation {
|
|
4
|
+
readonly Table: typeof DataTable;
|
|
5
|
+
readonly renderReference?: (kind: string, id: string) => ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/** Host-owned appearance and identity labels; never supplies authorization. */
|
|
8
|
+
export declare const NotificationPresentationProvider: ({ children, ...presentation }: NotificationPresentation & {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => import("react").JSX.Element;
|
|
11
|
+
export declare const NotificationTable: typeof DataTable;
|
|
12
|
+
export declare const NotificationReference: ({ kind, id, }: {
|
|
13
|
+
kind: string;
|
|
14
|
+
id: string | null | undefined;
|
|
15
|
+
}) => ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NotificationPresentationProvider2,
|
|
3
|
+
NotificationTable2,
|
|
4
|
+
NotificationReference2
|
|
5
|
+
} from "./chunk-aqmv7g24.js";
|
|
6
|
+
export {
|
|
7
|
+
NotificationPresentationProvider2 as NotificationPresentationProvider,
|
|
8
|
+
NotificationReference2 as NotificationReference,
|
|
9
|
+
NotificationTable2 as NotificationTable
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/notifications-admin",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Optional React administration screens and Effect Atom helpers for KrakStack notifications.",
|
|
5
|
+
"homepage": "https://krakstack.net/docs/notifications",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/krakcons/krakstack.git",
|
|
10
|
+
"directory": "packages/notifications-admin"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"tailwind.css",
|
|
15
|
+
"README.md",
|
|
16
|
+
"CHANGELOG.md"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"./tailwind.css"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./presentation": {
|
|
24
|
+
"types": "./dist/presentation.d.ts",
|
|
25
|
+
"import": "./dist/presentation.js"
|
|
26
|
+
},
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./contacts": {
|
|
32
|
+
"types": "./dist/contacts.d.ts",
|
|
33
|
+
"import": "./dist/contacts.js"
|
|
34
|
+
},
|
|
35
|
+
"./campaigns": {
|
|
36
|
+
"types": "./dist/campaigns.d.ts",
|
|
37
|
+
"import": "./dist/campaigns.js"
|
|
38
|
+
},
|
|
39
|
+
"./operations": {
|
|
40
|
+
"types": "./dist/operations.d.ts",
|
|
41
|
+
"import": "./dist/operations.js"
|
|
42
|
+
},
|
|
43
|
+
"./deliveries": {
|
|
44
|
+
"types": "./dist/deliveries.d.ts",
|
|
45
|
+
"import": "./dist/deliveries.js"
|
|
46
|
+
},
|
|
47
|
+
"./atoms": {
|
|
48
|
+
"types": "./dist/atoms.d.ts",
|
|
49
|
+
"import": "./dist/atoms.js"
|
|
50
|
+
},
|
|
51
|
+
"./tailwind.css": "./tailwind.css",
|
|
52
|
+
"./package.json": "./package.json"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "NODE_ENV=production bun run build.ts",
|
|
59
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"check:release": "bun run build && bun run test",
|
|
62
|
+
"prepack": "bun run check:release"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"class-variance-authority": "^0.7.1",
|
|
66
|
+
"cn": "^0.3.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@base-ui/react": "^1.5.0",
|
|
70
|
+
"@effect/atom-react": "^4.1.0",
|
|
71
|
+
"@effect/platform-browser": "^4.1.0",
|
|
72
|
+
"@krak-stack/notifications": "^0.3.0",
|
|
73
|
+
"@krak-stack/registry": "^0.2.2",
|
|
74
|
+
"@tanstack/react-form": "^1.33.0",
|
|
75
|
+
"@tanstack/react-router": "^1.170.15",
|
|
76
|
+
"@tanstack/react-virtual": "^3.14.5",
|
|
77
|
+
"effect": "^4.1.0",
|
|
78
|
+
"lucide-react": "^1.18.0",
|
|
79
|
+
"react": "^19.2.0",
|
|
80
|
+
"react-dom": "^19.2.0"
|
|
81
|
+
}
|
|
82
|
+
}
|
package/tailwind.css
ADDED