kcommons 15.1.0 → 15.2.1
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,5 +1,6 @@
|
|
|
1
1
|
import { EntityTypes } from "../constants/entityTypes.constants";
|
|
2
2
|
import { DOCUMENTS, PERMISSION_ACTIONS } from "../constants/permission.constants";
|
|
3
|
+
import { VENDOR_DOCUMENT, VENDOR_PERMISSION_ACTIONS } from "../constants/vendorPermission.constants";
|
|
3
4
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
5
|
import { INestedCompany } from "./company.typings";
|
|
5
6
|
import { INestedUser } from "./user.typings";
|
|
@@ -23,7 +24,8 @@ export declare enum NOTIFICAITON_CATEGORIES {
|
|
|
23
24
|
export declare enum GROUP_NOTIFICATION_TYPES {
|
|
24
25
|
ENTITY_DEPENDENT = "ENTITY_DEPENDENT",
|
|
25
26
|
PRIVILEGE_DEPENDENT = "PRIVILEGE_DEPENDENT",
|
|
26
|
-
ENTITY_PRIVILEGE_DEPENDENT = "ENTITY_PRIVILEGE_DEPENDENT"
|
|
27
|
+
ENTITY_PRIVILEGE_DEPENDENT = "ENTITY_PRIVILEGE_DEPENDENT",
|
|
28
|
+
VENDOR_PRIVILEGE_DEPENDENT = "VENDOR_PRIVILEGE_DEPENDENT"
|
|
27
29
|
}
|
|
28
30
|
export interface INotification {
|
|
29
31
|
id: string;
|
|
@@ -105,6 +107,13 @@ export interface INotifcationReqData {
|
|
|
105
107
|
export interface INotificationForTargetMonthResponse {
|
|
106
108
|
data: INotification[];
|
|
107
109
|
}
|
|
110
|
+
export interface IVendorPrivilegeDependentNotifications {
|
|
111
|
+
type: GROUP_NOTIFICATION_TYPES.VENDOR_PRIVILEGE_DEPENDENT;
|
|
112
|
+
permission_entity: VENDOR_DOCUMENT;
|
|
113
|
+
actions: VENDOR_PERMISSION_ACTIONS[];
|
|
114
|
+
vendor_id: string;
|
|
115
|
+
company_id: string;
|
|
116
|
+
}
|
|
108
117
|
/** --- START: (DEPRECATED) Notification Filters --- */
|
|
109
118
|
/** @deprecated */
|
|
110
119
|
export interface INotificationFilters {
|
|
@@ -22,5 +22,6 @@ var GROUP_NOTIFICATION_TYPES;
|
|
|
22
22
|
GROUP_NOTIFICATION_TYPES["ENTITY_DEPENDENT"] = "ENTITY_DEPENDENT";
|
|
23
23
|
GROUP_NOTIFICATION_TYPES["PRIVILEGE_DEPENDENT"] = "PRIVILEGE_DEPENDENT";
|
|
24
24
|
GROUP_NOTIFICATION_TYPES["ENTITY_PRIVILEGE_DEPENDENT"] = "ENTITY_PRIVILEGE_DEPENDENT";
|
|
25
|
+
GROUP_NOTIFICATION_TYPES["VENDOR_PRIVILEGE_DEPENDENT"] = "VENDOR_PRIVILEGE_DEPENDENT";
|
|
25
26
|
})(GROUP_NOTIFICATION_TYPES || (exports.GROUP_NOTIFICATION_TYPES = GROUP_NOTIFICATION_TYPES = {}));
|
|
26
27
|
/** --- FIN: (DEPRECATED) Notification Filters */
|