@reviza/api-client 1.0.0-SNAPSHOT-689473e0 → 1.0.0-SNAPSHOT-88f46678
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CategoryNotificationEnum, OrganizationNotificationEnum } from "../../Enum/Notifications";
|
|
2
|
+
import { UserData } from "../User";
|
|
2
3
|
export type CategoryNotificationData = {
|
|
3
4
|
id: number;
|
|
4
5
|
name: string;
|
|
@@ -12,6 +13,14 @@ export type CategoryNotificationPayload = {
|
|
|
12
13
|
notifications: CategoryNotificationEnum[];
|
|
13
14
|
categories: CategoryNotificationPayload[] | null;
|
|
14
15
|
};
|
|
16
|
+
export type NotificationData = {
|
|
17
|
+
user: UserData;
|
|
18
|
+
type: string;
|
|
19
|
+
data: Array<any>;
|
|
20
|
+
created_at: string | null;
|
|
21
|
+
updated_at: string | null;
|
|
22
|
+
read_at: string | null;
|
|
23
|
+
};
|
|
15
24
|
export type NotificationSettingsData = {
|
|
16
25
|
organizations: OrganizationNotificationData[];
|
|
17
26
|
};
|
|
@@ -2,6 +2,7 @@ import { RevizaResponseData } from "../../App/Data";
|
|
|
2
2
|
import { DataCollection } from "../../Spatie/LaravelData";
|
|
3
3
|
import { ActionTransactionData } from "../../App/Data/ActionLog";
|
|
4
4
|
import { MapCreatePayload, MapUpdatePayload } from "../../App/Data/Map";
|
|
5
|
+
import { NotificationData } from "../../App/Data/Notification";
|
|
5
6
|
import { OrganizationCreatePayload, OrganizationData } from "../../App/Data/Organization";
|
|
6
7
|
import { SubscriptionCreatePayload, SubscriptionData } from "../../App/Data/Subscription";
|
|
7
8
|
import { UserPermissionData, UserPermissionPayload } from "../../App/Data/Permission";
|
|
@@ -97,6 +98,21 @@ export declare namespace MapController {
|
|
|
97
98
|
type Response = RevizaResponseData<null>;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
export declare const NotificationController: {
|
|
102
|
+
readonly index: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
103
|
+
url: string;
|
|
104
|
+
}) & {
|
|
105
|
+
[x: string]: (options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
106
|
+
url: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export declare namespace NotificationController {
|
|
111
|
+
namespace index {
|
|
112
|
+
type Request = object;
|
|
113
|
+
type Response = RevizaResponseData<DataCollection<number, NotificationData>>;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
100
116
|
export declare const OrganizationController: {
|
|
101
117
|
readonly store: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
102
118
|
url: string;
|
|
@@ -13,6 +13,11 @@ export const MapController = {
|
|
|
13
13
|
update: createActionWithMethods([{ method: "patch", url: "api/v1/system/maps/{map}" }]),
|
|
14
14
|
destroy: createActionWithMethods([{ method: "delete", url: "api/v1/system/maps/{map}" }]),
|
|
15
15
|
};
|
|
16
|
+
export const NotificationController = {
|
|
17
|
+
index: createActionWithMethods([
|
|
18
|
+
{ method: "get", url: "api/v1/system/notifications" },
|
|
19
|
+
]),
|
|
20
|
+
};
|
|
16
21
|
export const OrganizationController = {
|
|
17
22
|
store: createActionWithMethods([
|
|
18
23
|
{ method: "post", url: "api/v1/system/organizations" },
|