@reviza/api-client 1.0.0-SNAPSHOT-88f46678 → 1.0.0-SNAPSHOT-97ddde7f

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.
@@ -16,7 +16,7 @@ export type CategoryNotificationPayload = {
16
16
  export type NotificationData = {
17
17
  user: UserData;
18
18
  type: string;
19
- data: Array<any>;
19
+ data: Record<string, any>;
20
20
  created_at: string | null;
21
21
  updated_at: string | null;
22
22
  read_at: string | null;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type AxiosInstance, type AxiosRequestConfig } from "axios";
5
5
  import { AuthController, CategoryController, ConfigController, DashboardController, DemoRequestController, FacilityController, FacilityDocumentController, FrontendErrorController, FrontendRouteController, MapController, MeController, NotificationSettingsController, OrganizationController, PermissionController, RelatedFacilityController, RevisionController, RevisionDocumentController, RevisionIssueController, SearchController, UserController } from "./controllers";
6
- import { ActionLogController, MapController as SystemMapController, OrganizationController as SystemOrganizationController, PermissionController as SystemPermissionController, UserController as SystemUserController } from "./controllers/System/index.js";
6
+ import { ActionLogController, MapController as SystemMapController, NotificationController, OrganizationController as SystemOrganizationController, PermissionController as SystemPermissionController, UserController as SystemUserController } from "./controllers/System/index.js";
7
7
  /**
8
8
  * Convert a typed payload that contains `File` / `Blob` fields into a
9
9
  * `FormData` object ready for multipart upload.
@@ -132,6 +132,9 @@ export declare function createRevizaApi(http?: AxiosInstance): {
132
132
  download(category: number, facility: number, revision: number, document: number, preview: boolean, config?: AxiosRequestConfig): Promise<FacilityDocumentController.download.Response>;
133
133
  };
134
134
  system: {
135
+ notifications: {
136
+ index(config?: AxiosRequestConfig): Promise<NotificationController.index.Response>;
137
+ };
135
138
  actionLog: {
136
139
  index(config?: AxiosRequestConfig): Promise<ActionLogController.index.Response>;
137
140
  show(transaction: number | string, config?: AxiosRequestConfig): Promise<ActionLogController.show.Response>;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import axios, { isAxiosError } from "axios";
5
5
  import { AuthController, CategoryController, ConfigController, DashboardController, DemoRequestController, FacilityController, FacilityDocumentController, FrontendErrorController, FrontendRouteController, MapController, MeController, NotificationSettingsController, OrganizationController, PermissionController, RelatedFacilityController, RevisionController, RevisionDocumentController, RevisionIssueController, SearchController, UserController, } from "./controllers";
6
- import { ActionLogController, MapController as SystemMapController, OrganizationController as SystemOrganizationController, PermissionController as SystemPermissionController, UserController as SystemUserController, } from "./controllers/System/index.js";
6
+ import { ActionLogController, MapController as SystemMapController, NotificationController, OrganizationController as SystemOrganizationController, PermissionController as SystemPermissionController, UserController as SystemUserController, } from "./controllers/System/index.js";
7
7
  // ── helpers ───────────────────────────────────────────────────────────────────
8
8
  /**
9
9
  * Convert a typed payload that contains `File` / `Blob` fields into a
@@ -365,6 +365,11 @@ export function createRevizaApi(http = axios) {
365
365
  },
366
366
  // ── System (admin) endpoints ───────────────────────────────────────────
367
367
  system: {
368
+ notifications: {
369
+ index(config) {
370
+ return request(NotificationController.index(), undefined, config);
371
+ },
372
+ },
368
373
  actionLog: {
369
374
  index(config) {
370
375
  return request(ActionLogController.index(), undefined, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reviza/api-client",
3
- "version": "1.0.0-SNAPSHOT-88f46678",
3
+ "version": "1.0.0-SNAPSHOT-97ddde7f",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",