@arqel-dev/types 0.17.0 → 0.18.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ActionColor, ActionFormField, ActionMethod, ActionSchema, ActionType, ActionVariant, ConfirmationColor, ConfirmationConfig, ModalSize, ResourceActions } from './actions.js';
2
2
  export { BelongsToFieldProps, BelongsToFieldSchema, BooleanFieldProps, BooleanFieldSchema, ColorFieldProps, ColorFieldSchema, ColorFormat, CurrencyFieldProps, CurrencyFieldSchema, DateFieldProps, DateFieldSchema, DateTimeFieldProps, DateTimeFieldSchema, EmailFieldSchema, FieldSchema, FieldType, FieldValidation, FieldVisibility, FileFieldProps, FileFieldSchema, HasManyFieldProps, HasManyFieldSchema, HiddenFieldSchema, ImageFieldProps, ImageFieldSchema, MultiSelectFieldProps, MultiSelectFieldSchema, NumberFieldProps, NumberFieldSchema, PasswordFieldSchema, RadioFieldProps, RadioFieldSchema, SelectFieldProps, SelectFieldSchema, SelectOption, SlugFieldProps, SlugFieldSchema, TextFieldProps, TextFieldSchema, TextareaFieldSchema, ToggleFieldProps, ToggleFieldSchema, UrlFieldSchema, isFieldType } from './fields.js';
3
3
  export { ColumnsEntry, ColumnsProps, FieldEntry, FieldsetEntry, FieldsetProps, FormSchema, GridEntry, GridProps, GroupEntry, GroupOrientation, GroupProps, LayoutEntry, LayoutType, SchemaEntry, SectionEntry, SectionProps, TabEntry, TabProps, TabsEntry, TabsOrientation, TabsProps, isFieldEntry, isLayoutEntry, resolveFieldEntry } from './forms.js';
4
- export { ArqelMeta, ArqelPageProps, AuthPayload, AuthUserPayload, FlashPayload, PanelPayload, SharedProps } from './inertia.js';
4
+ export { ArqelMeta, ArqelPageProps, AuthPayload, AuthUserPayload, FlashPayload, NotificationItem, NotificationPayload, PanelPayload, SharedProps } from './inertia.js';
5
5
  export { RelationManagerAbilities, RelationManagerProps } from './relations.js';
6
6
  export { PaginationMeta, PlainResourceIndexProps, RecordType, ResourceCreateProps, ResourceDetailProps, ResourceEditProps, ResourceIndexProps, ResourceMeta } from './resources.js';
7
7
  export { BadgeColumnProps, BadgeColumnSchema, BadgeOption, BooleanColumnProps, BooleanColumnSchema, ColumnAlign, ColumnSchema, ColumnType, ComputedColumnProps, ComputedColumnSchema, DateColumnMode, DateColumnProps, DateColumnSchema, DateRangeFilterProps, DateRangeFilterSchema, FilterSchema, FilterType, IconColumnProps, IconColumnSchema, ImageColumnProps, ImageColumnSchema, ImageColumnShape, MultiSelectFilterSchema, NumberColumnProps, NumberColumnSchema, RelationshipColumnProps, RelationshipColumnSchema, ScopeFilterSchema, SelectFilterProps, SelectFilterSchema, SortDirection, TableSort, TernaryFilterProps, TernaryFilterSchema, TernaryState, TextColumnProps, TextColumnSchema, TextFilterSchema } from './tables.js';
package/dist/inertia.d.ts CHANGED
@@ -31,6 +31,17 @@ interface FlashPayload {
31
31
  info: string | null;
32
32
  warning: string | null;
33
33
  }
34
+ interface NotificationItem {
35
+ id: string;
36
+ type: string;
37
+ data: Record<string, unknown>;
38
+ read_at: string | null;
39
+ created_at: string;
40
+ }
41
+ interface NotificationPayload {
42
+ unread_count: number;
43
+ recent: NotificationItem[];
44
+ }
34
45
  interface ArqelMeta {
35
46
  version: string;
36
47
  }
@@ -46,6 +57,7 @@ interface SharedProps {
46
57
  /** Translation map under the `arqel::*` namespace. */
47
58
  translations: Record<string, unknown>;
48
59
  arqel: ArqelMeta;
60
+ notifications: NotificationPayload | null;
49
61
  }
50
62
  /**
51
63
  * Convenience alias for Inertia v3 `usePage<T>()`. Apps with extra
@@ -53,4 +65,4 @@ interface SharedProps {
53
65
  */
54
66
  type ArqelPageProps = SharedProps;
55
67
 
56
- export type { ArqelMeta, ArqelPageProps, AuthPayload, AuthUserPayload, FlashPayload, PanelPayload, SharedProps };
68
+ export type { ArqelMeta, ArqelPageProps, AuthPayload, AuthUserPayload, FlashPayload, NotificationItem, NotificationPayload, PanelPayload, SharedProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arqel-dev/types",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Shared TypeScript types for Arqel — fields, resources, tables, forms, actions, and Inertia shared props.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://arqel.dev",