@reviza/api-client 1.0.0-SNAPSHOT-97ddde7f → 1.0.0-SNAPSHOT-4067e38f
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/App/Data/Notification/index.d.ts +0 -9
- package/dist/App/Enum/index.d.ts +1 -0
- package/dist/App/Enum/index.js +1 -0
- package/dist/controllers/System/index.d.ts +0 -16
- package/dist/controllers/System/index.js +0 -5
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -6
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CategoryNotificationEnum, OrganizationNotificationEnum } from "../../Enum/Notifications";
|
|
2
|
-
import { UserData } from "../User";
|
|
3
2
|
export type CategoryNotificationData = {
|
|
4
3
|
id: number;
|
|
5
4
|
name: string;
|
|
@@ -13,14 +12,6 @@ export type CategoryNotificationPayload = {
|
|
|
13
12
|
notifications: CategoryNotificationEnum[];
|
|
14
13
|
categories: CategoryNotificationPayload[] | null;
|
|
15
14
|
};
|
|
16
|
-
export type NotificationData = {
|
|
17
|
-
user: UserData;
|
|
18
|
-
type: string;
|
|
19
|
-
data: Record<string, any>;
|
|
20
|
-
created_at: string | null;
|
|
21
|
-
updated_at: string | null;
|
|
22
|
-
read_at: string | null;
|
|
23
|
-
};
|
|
24
15
|
export type NotificationSettingsData = {
|
|
25
16
|
organizations: OrganizationNotificationData[];
|
|
26
17
|
};
|
package/dist/App/Enum/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare enum RevisionTypeEnum {
|
|
|
42
42
|
CONTROL_TEST = "CONTROL_TEST",
|
|
43
43
|
OPERATIONAL_VERIFICATION = "OPERATIONAL_VERIFICATION",
|
|
44
44
|
INTERIM_INSPECTION = "INTERIM_INSPECTION",
|
|
45
|
+
INSPECTION_AND_CLEANING = "INSPECTION_AND_CLEANING",
|
|
45
46
|
CUSTOM = "CUSTOM"
|
|
46
47
|
}
|
|
47
48
|
export declare enum SubscriptionPlanEnum {
|
package/dist/App/Enum/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export var RevisionTypeEnum;
|
|
|
47
47
|
RevisionTypeEnum["CONTROL_TEST"] = "CONTROL_TEST";
|
|
48
48
|
RevisionTypeEnum["OPERATIONAL_VERIFICATION"] = "OPERATIONAL_VERIFICATION";
|
|
49
49
|
RevisionTypeEnum["INTERIM_INSPECTION"] = "INTERIM_INSPECTION";
|
|
50
|
+
RevisionTypeEnum["INSPECTION_AND_CLEANING"] = "INSPECTION_AND_CLEANING";
|
|
50
51
|
RevisionTypeEnum["CUSTOM"] = "CUSTOM";
|
|
51
52
|
})(RevisionTypeEnum || (RevisionTypeEnum = {}));
|
|
52
53
|
export var SubscriptionPlanEnum;
|
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
import { OrganizationCreatePayload, OrganizationData } from "../../App/Data/Organization";
|
|
7
6
|
import { SubscriptionCreatePayload, SubscriptionData } from "../../App/Data/Subscription";
|
|
8
7
|
import { UserPermissionData, UserPermissionPayload } from "../../App/Data/Permission";
|
|
@@ -98,21 +97,6 @@ export declare namespace MapController {
|
|
|
98
97
|
type Response = RevizaResponseData<null>;
|
|
99
98
|
}
|
|
100
99
|
}
|
|
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
|
-
}
|
|
116
100
|
export declare const OrganizationController: {
|
|
117
101
|
readonly store: ((options?: import("../").RouteOptions) => import("../").RouteDefinition & {
|
|
118
102
|
url: string;
|
|
@@ -13,11 +13,6 @@ 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
|
-
};
|
|
21
16
|
export const OrganizationController = {
|
|
22
17
|
store: createActionWithMethods([
|
|
23
18
|
{ method: "post", url: "api/v1/system/organizations" },
|
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,
|
|
6
|
+
import { ActionLogController, MapController as SystemMapController, 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,9 +132,6 @@ 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
|
-
};
|
|
138
135
|
actionLog: {
|
|
139
136
|
index(config?: AxiosRequestConfig): Promise<ActionLogController.index.Response>;
|
|
140
137
|
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,
|
|
6
|
+
import { ActionLogController, MapController as SystemMapController, 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,11 +365,6 @@ 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
|
-
},
|
|
373
368
|
actionLog: {
|
|
374
369
|
index(config) {
|
|
375
370
|
return request(ActionLogController.index(), undefined, config);
|