@cosmicdrift/kumiko-types 0.398.0 → 0.399.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/dist/fields.d.ts
CHANGED
|
@@ -637,6 +637,9 @@ export type FileFieldDef = {
|
|
|
637
637
|
readonly description?: string;
|
|
638
638
|
readonly required?: boolean;
|
|
639
639
|
readonly maxSize?: string;
|
|
640
|
+
/** Anonymous visitors may upload into this field as a pending upload (no entityId); the app
|
|
641
|
+
* binds the file itself. Default off. */
|
|
642
|
+
readonly anonymousUpload?: boolean;
|
|
640
643
|
readonly accept?: readonly string[];
|
|
641
644
|
readonly access?: FieldAccess;
|
|
642
645
|
} & ResolvedPiiFlags;
|
|
@@ -645,6 +648,9 @@ export type ImageFieldDef = {
|
|
|
645
648
|
readonly description?: string;
|
|
646
649
|
readonly required?: boolean;
|
|
647
650
|
readonly maxSize?: string;
|
|
651
|
+
/** Anonymous visitors may upload into this field as a pending upload (no entityId); the app
|
|
652
|
+
* binds the file itself. Default off. */
|
|
653
|
+
readonly anonymousUpload?: boolean;
|
|
648
654
|
readonly accept?: readonly string[];
|
|
649
655
|
/** Named derived versions of the uploaded image. The name is the only
|
|
650
656
|
* thing a caller may ask for — the spec lives here, never in a request,
|
|
@@ -659,6 +665,9 @@ export type FilesFieldDef = {
|
|
|
659
665
|
readonly type: "files";
|
|
660
666
|
readonly description?: string;
|
|
661
667
|
readonly maxSize?: string;
|
|
668
|
+
/** Anonymous visitors may upload into this field as a pending upload (no entityId); the app
|
|
669
|
+
* binds the file itself. Default off. */
|
|
670
|
+
readonly anonymousUpload?: boolean;
|
|
662
671
|
readonly accept?: readonly string[];
|
|
663
672
|
readonly maxCount?: number;
|
|
664
673
|
/** `"list"` (default) shows the picked files as a list with a file picker; `"dropzone"` shows a
|
|
@@ -671,6 +680,9 @@ export type ImagesFieldDef = {
|
|
|
671
680
|
readonly type: "images";
|
|
672
681
|
readonly description?: string;
|
|
673
682
|
readonly maxSize?: string;
|
|
683
|
+
/** Anonymous visitors may upload into this field as a pending upload (no entityId); the app
|
|
684
|
+
* binds the file itself. Default off. */
|
|
685
|
+
readonly anonymousUpload?: boolean;
|
|
674
686
|
readonly accept?: readonly string[];
|
|
675
687
|
readonly maxCount?: number;
|
|
676
688
|
/** `"list"` (default) shows the picked files as a list with a file picker; `"dropzone"` shows a
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const IN_APP_NOTIFICATION_FEATURE: "channel-in-app";
|
|
2
|
+
export declare const IN_APP_NOTIFICATION_QUERIES: {
|
|
3
|
+
readonly inbox: "channel-in-app:query:inbox";
|
|
4
|
+
readonly unreadCount: "channel-in-app:query:unread-count";
|
|
5
|
+
};
|
|
6
|
+
export declare const IN_APP_NOTIFICATION_WRITES: {
|
|
7
|
+
readonly markRead: "channel-in-app:write:mark-read";
|
|
8
|
+
readonly markAllRead: "channel-in-app:write:mark-all-read";
|
|
9
|
+
};
|
|
10
|
+
export declare const IN_APP_NOTIFICATION_DELIVERED_EVENT: "channel-in-app:event:delivered";
|
|
11
|
+
export type InAppNotificationTarget = {
|
|
12
|
+
readonly screenId: string;
|
|
13
|
+
readonly entityId?: string;
|
|
14
|
+
};
|
|
15
|
+
export type InAppInboxRow = {
|
|
16
|
+
readonly id: number;
|
|
17
|
+
readonly notificationType: string;
|
|
18
|
+
readonly title: string;
|
|
19
|
+
readonly body: string | null;
|
|
20
|
+
readonly isRead: boolean;
|
|
21
|
+
readonly createdAt: string;
|
|
22
|
+
readonly target: InAppNotificationTarget | null;
|
|
23
|
+
};
|
|
24
|
+
export type InAppInboxResult = {
|
|
25
|
+
readonly rows: readonly InAppInboxRow[];
|
|
26
|
+
readonly nextCursor: string | null;
|
|
27
|
+
readonly total: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Contract between the channel-in-app feature (server) and the notification bell in the
|
|
2
|
+
// renderer shell. The renderer must not import bundled-features, so both sides share this file.
|
|
3
|
+
export const IN_APP_NOTIFICATION_FEATURE = "channel-in-app";
|
|
4
|
+
export const IN_APP_NOTIFICATION_QUERIES = {
|
|
5
|
+
inbox: "channel-in-app:query:inbox",
|
|
6
|
+
unreadCount: "channel-in-app:query:unread-count",
|
|
7
|
+
};
|
|
8
|
+
export const IN_APP_NOTIFICATION_WRITES = {
|
|
9
|
+
markRead: "channel-in-app:write:mark-read",
|
|
10
|
+
markAllRead: "channel-in-app:write:mark-all-read",
|
|
11
|
+
};
|
|
12
|
+
export const IN_APP_NOTIFICATION_DELIVERED_EVENT = "channel-in-app:event:delivered";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.399.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
"types": "./dist/session-cookies.d.ts",
|
|
43
43
|
"default": "./dist/session-cookies.js"
|
|
44
44
|
},
|
|
45
|
+
"./in-app-notification-types": {
|
|
46
|
+
"types": "./dist/in-app-notification-types.d.ts",
|
|
47
|
+
"default": "./dist/in-app-notification-types.js"
|
|
48
|
+
},
|
|
45
49
|
"./target-ref": {
|
|
46
50
|
"types": "./dist/target-ref.d.ts",
|
|
47
51
|
"default": "./dist/target-ref.js"
|
|
@@ -337,6 +341,10 @@
|
|
|
337
341
|
"types": "./dist/session-cookies.d.ts",
|
|
338
342
|
"default": "./dist/session-cookies.js"
|
|
339
343
|
},
|
|
344
|
+
"./in-app-notification-types": {
|
|
345
|
+
"types": "./dist/in-app-notification-types.d.ts",
|
|
346
|
+
"default": "./dist/in-app-notification-types.js"
|
|
347
|
+
},
|
|
340
348
|
"./target-ref": {
|
|
341
349
|
"types": "./dist/target-ref.d.ts",
|
|
342
350
|
"default": "./dist/target-ref.js"
|