identity-admin 1.28.2 → 1.28.4
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/README.md +294 -294
- package/lib/Dashboard.d.ts +14 -14
- package/lib/Dashboard.js +95 -95
- package/lib/container/helpers/HelperInversify.d.ts +6 -6
- package/lib/container/helpers/HelperInversify.js +10 -10
- package/lib/container/helpers/HelperTypes.d.ts +5 -5
- package/lib/container/helpers/HelperTypes.js +7 -7
- package/lib/container/index.d.ts +1 -1
- package/lib/container/index.js +14 -14
- package/lib/container/repositories/RepositoryInversify.d.ts +4 -4
- package/lib/container/repositories/RepositoryInversify.js +13 -13
- package/lib/container/repositories/RepositoryTypes.d.ts +4 -4
- package/lib/container/repositories/RepositoryTypes.js +6 -6
- package/lib/container/types.d.ts +8 -8
- package/lib/container/types.js +9 -9
- package/lib/controllers/ActionController.d.ts +8 -8
- package/lib/controllers/ActionController.js +96 -96
- package/lib/controllers/AdminNotificationController.d.ts +8 -8
- package/lib/controllers/AdminNotificationController.js +69 -69
- package/lib/controllers/DashboardController.d.ts +44 -44
- package/lib/controllers/DashboardController.js +787 -787
- package/lib/controllers/ResourceController.d.ts +15 -15
- package/lib/controllers/ResourceController.js +135 -135
- package/lib/helpers/ActionsGenerator.d.ts +11 -11
- package/lib/helpers/ActionsGenerator.js +179 -179
- package/lib/helpers/AdminNotifications/AdminNotificationCreation.d.ts +49 -49
- package/lib/helpers/AdminNotifications/AdminNotificationCreation.js +66 -66
- package/lib/helpers/AdminNotifications/AdminNotificationFetcher.d.ts +51 -51
- package/lib/helpers/AdminNotifications/AdminNotificationFetcher.js +39 -39
- package/lib/helpers/FilterQueryHelper.d.ts +9 -9
- package/lib/helpers/FilterQueryHelper.js +83 -83
- package/lib/helpers/FiltersHelper.d.ts +9 -9
- package/lib/helpers/FiltersHelper.js +126 -126
- package/lib/helpers/LocalesHelper.d.ts +4 -4
- package/lib/helpers/LocalesHelper.js +73 -73
- package/lib/helpers/LocalizedStringHelper.d.ts +11 -11
- package/lib/helpers/LocalizedStringHelper.js +74 -74
- package/lib/helpers/Permissions/PermissionFetcher.d.ts +8 -8
- package/lib/helpers/Permissions/PermissionFetcher.js +95 -95
- package/lib/helpers/Permissions/PermissionLabel.d.ts +2 -2
- package/lib/helpers/Permissions/PermissionLabel.js +42 -42
- package/lib/helpers/Permissions/PermissionMapper.d.ts +13 -13
- package/lib/helpers/Permissions/PermissionMapper.js +35 -35
- package/lib/helpers/Permissions/PermissionResource.d.ts +6 -6
- package/lib/helpers/Permissions/PermissionResource.js +62 -62
- package/lib/helpers/Permissions/PermissionSavingService.d.ts +13 -13
- package/lib/helpers/Permissions/PermissionSavingService.js +32 -32
- package/lib/helpers/Permissions/SavePermissionGroup.d.ts +6 -6
- package/lib/helpers/Permissions/SavePermissionGroup.js +32 -32
- package/lib/helpers/Permissions/UpdatePermissionGroup.d.ts +6 -6
- package/lib/helpers/Permissions/UpdatePermissionGroup.js +50 -50
- package/lib/helpers/Permissions/types.d.ts +17 -17
- package/lib/helpers/Permissions/types.js +2 -2
- package/lib/helpers/PopulationHelper.d.ts +12 -12
- package/lib/helpers/PopulationHelper.js +50 -50
- package/lib/helpers/RecordsCounter.d.ts +10 -10
- package/lib/helpers/RecordsCounter.js +33 -33
- package/lib/helpers/ReportsGenerator.d.ts +26 -26
- package/lib/helpers/ReportsGenerator.js +162 -162
- package/lib/helpers/ResourceGenerator.d.ts +9 -9
- package/lib/helpers/ResourceGenerator.js +172 -172
- package/lib/helpers/ResourceHelper.d.ts +28 -28
- package/lib/helpers/ResourceHelper.js +395 -395
- package/lib/helpers/RportsGenerator.d.ts +10 -10
- package/lib/helpers/RportsGenerator.js +21 -21
- package/lib/helpers/SchemaGenerator.d.ts +7 -7
- package/lib/helpers/SchemaGenerator.js +130 -130
- package/lib/helpers/SchemaHelper.d.ts +5 -5
- package/lib/helpers/SchemaHelper.js +21 -21
- package/lib/helpers/UserActionsLog/UserActionsLogHelper.d.ts +2 -2
- package/lib/helpers/UserActionsLog/UserActionsLogHelper.js +49 -49
- package/lib/locales/en.json +53 -53
- package/lib/middlewares/cache/decorator.d.ts +3 -3
- package/lib/middlewares/cache/decorator.js +60 -60
- package/lib/middlewares/cache/deletionMethods.d.ts +3 -3
- package/lib/middlewares/cache/deletionMethods.js +23 -23
- package/lib/middlewares/isAuth.d.ts +13 -13
- package/lib/middlewares/isAuth.js +43 -43
- package/lib/models/ModelNames.d.ts +9 -9
- package/lib/models/ModelNames.js +12 -12
- package/lib/models/adminNotification/AdminNotification.d.ts +5 -5
- package/lib/models/adminNotification/AdminNotification.js +53 -53
- package/lib/models/adminNotification/IAdminNotification.d.ts +30 -30
- package/lib/models/adminNotification/IAdminNotification.js +15 -15
- package/lib/models/adminpermission/AdminPermission.d.ts +11 -11
- package/lib/models/adminpermission/AdminPermission.js +23 -23
- package/lib/models/adminpermission/IAdminPermission.d.ts +13 -13
- package/lib/models/adminpermission/IAdminPermission.js +2 -2
- package/lib/models/customPage/CustomPage.d.ts +2 -2
- package/lib/models/customPage/CustomPage.js +38 -38
- package/lib/models/customPage/ICustomPage.d.ts +17 -17
- package/lib/models/customPage/ICustomPage.js +2 -2
- package/lib/models/file/File.d.ts +2 -2
- package/lib/models/file/File.js +23 -23
- package/lib/models/file/IFile.d.ts +15 -15
- package/lib/models/file/IFile.js +2 -2
- package/lib/models/location/ILocation.d.ts +14 -14
- package/lib/models/location/ILocation.js +2 -2
- package/lib/models/location/Location.d.ts +2 -2
- package/lib/models/location/Location.js +21 -21
- package/lib/models/modelConfiguration/IModelConfigurations.d.ts +29 -29
- package/lib/models/modelConfiguration/IModelConfigurations.js +2 -2
- package/lib/models/modelConfiguration/ModelConfiguration.d.ts +13 -13
- package/lib/models/modelConfiguration/ModelConfiguration.js +95 -95
- package/lib/models/permission/IPermission.d.ts +14 -14
- package/lib/models/permission/IPermission.js +2 -2
- package/lib/models/permission/Permission.d.ts +2 -2
- package/lib/models/permission/Permission.js +21 -21
- package/lib/models/request-log/IRequestLog.d.ts +22 -22
- package/lib/models/request-log/IRequestLog.js +2 -2
- package/lib/models/request-log/RequestLog.d.ts +3 -3
- package/lib/models/request-log/RequestLog.js +51 -51
- package/lib/models/userActionsLog/IUserActionsLog.d.ts +26 -26
- package/lib/models/userActionsLog/IUserActionsLog.js +11 -11
- package/lib/models/userActionsLog/UserActionsLog.d.ts +3 -3
- package/lib/models/userActionsLog/UserActionsLog.js +41 -41
- package/lib/pdf/ReportTemplate.d.ts +71 -71
- package/lib/pdf/ReportTemplate.js +94 -94
- package/lib/repositories/AdminNotificationRepository.d.ts +7 -7
- package/lib/repositories/AdminNotificationRepository.js +23 -23
- package/lib/repositories/DashboardRepository.d.ts +5 -5
- package/lib/repositories/DashboardRepository.js +12 -12
- package/lib/repositories/Repository.d.ts +68 -68
- package/lib/repositories/Repository.js +215 -215
- package/lib/repositories/RequestLogRepository.d.ts +10 -10
- package/lib/repositories/RequestLogRepository.js +54 -54
- package/lib/repositories/SaveResult.d.ts +14 -14
- package/lib/repositories/SaveResult.js +18 -18
- package/lib/resources/AdminNotificationsResource.d.ts +3 -3
- package/lib/resources/AdminNotificationsResource.js +23 -23
- package/lib/resources/parents.d.ts +4 -4
- package/lib/resources/parents.js +7 -7
- package/lib/router/index.d.ts +8 -8
- package/lib/router/index.js +104 -104
- package/lib/types/DashbordConfig.d.ts +21 -21
- package/lib/types/DashbordConfig.js +2 -2
- package/lib/types/IConfigurationFile.d.ts +11 -11
- package/lib/types/IConfigurationFile.js +2 -2
- package/lib/types/IResourceFile.d.ts +705 -701
- package/lib/types/IResourceFile.js +2 -2
- package/lib/types/IResourceResponse.d.ts +95 -95
- package/lib/types/IResourceResponse.js +2 -2
- package/lib/types/helpers.d.ts +66 -66
- package/lib/types/helpers.js +77 -77
- package/lib/utils/DateUtils.d.ts +7 -7
- package/lib/utils/DateUtils.js +45 -45
- package/lib/utils/ResourceUtils.d.ts +2 -2
- package/lib/utils/ResourceUtils.js +7 -7
- package/lib/utils/ResponseUtils.d.ts +11 -11
- package/lib/utils/ResponseUtils.js +41 -41
- package/lib/utils/StringUtils.d.ts +9 -9
- package/lib/utils/StringUtils.js +46 -46
- package/lib/view/asset-manifest.json +18 -18
- package/lib/view/assets/icons/delete_icon.svg +3 -3
- package/lib/view/assets/icons/flags/ic_flag_cn.svg +9 -9
- package/lib/view/assets/icons/flags/ic_flag_sa.svg +9 -9
- package/lib/view/assets/icons/flags/ic_flag_vn.svg +9 -9
- package/lib/view/assets/icons/info_icon.svg +3 -3
- package/lib/view/assets/icons/navbar/ic_banking.svg +5 -5
- package/lib/view/assets/icons/navbar/ic_invoice.svg +4 -4
- package/lib/view/assets/icons/navbar/ic_kanban.svg +7 -7
- package/lib/view/assets/icons/navbar/ic_menu_item.svg +8 -8
- package/lib/view/assets/icons/small_info_icon.svg +3 -3
- package/lib/view/assets/illustrations/Group 16.svg +4 -4
- package/lib/view/assets/illustrations/logo.svg +5 -5
- package/lib/view/favicon/browserconfig.xml +9 -9
- package/lib/view/favicon/safari-pinned-tab.svg +182 -182
- package/lib/view/favicon/site.webmanifest +19 -19
- package/lib/view/fonts/index.css +18 -18
- package/lib/view/index.html +52 -52
- package/lib/view/manifest.json +20 -20
- package/lib/view/robots.txt +3 -3
- package/lib/view/static/css/main.54de06ef.css +1 -1
- package/lib/view/static/js/574.778b5963.chunk.js +1 -1
- package/lib/view/static/js/678.521704a3.chunk.js +1 -1
- package/lib/view/static/js/798.54856416.chunk.js +1 -1
- package/lib/view/static/js/main.4687f255.js +2 -2
- package/lib/view/static/js/main.4687f255.js.LICENSE.txt +214 -214
- package/package.json +63 -63
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { ActionTypes } from "./helpers";
|
|
2
|
-
export default interface IResourceResponse {
|
|
3
|
-
filterProperties: string[];
|
|
4
|
-
formProperties: string[];
|
|
5
|
-
listProperties: IProperty[];
|
|
6
|
-
showProperties: IProperty[];
|
|
7
|
-
properties: IMainProperty;
|
|
8
|
-
}
|
|
9
|
-
interface IProperty {
|
|
10
|
-
key: string;
|
|
11
|
-
value: string;
|
|
12
|
-
path?: string;
|
|
13
|
-
}
|
|
14
|
-
interface IMainProperty {
|
|
15
|
-
title: string;
|
|
16
|
-
path: string;
|
|
17
|
-
name: string;
|
|
18
|
-
modelName: string;
|
|
19
|
-
parent: IParent;
|
|
20
|
-
defaultOrder: orderTypes;
|
|
21
|
-
defaultOrderBy: string;
|
|
22
|
-
defaultrowsPerPage: number;
|
|
23
|
-
filters: IFilter;
|
|
24
|
-
actions: IAction;
|
|
25
|
-
model: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
disableNextPreviousButtonsInShowPage?: boolean;
|
|
29
|
-
disableNextPreviousButtonsInEditPage?: boolean;
|
|
30
|
-
displayEditPageInShowPage?: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface IParent {
|
|
33
|
-
icon: string;
|
|
34
|
-
name: string;
|
|
35
|
-
value: string;
|
|
36
|
-
}
|
|
37
|
-
interface IFilter {
|
|
38
|
-
scopes: {
|
|
39
|
-
isAccessible: boolean;
|
|
40
|
-
options?: {
|
|
41
|
-
key: string;
|
|
42
|
-
value: string;
|
|
43
|
-
}[];
|
|
44
|
-
manual?: {
|
|
45
|
-
options: string[];
|
|
46
|
-
};
|
|
47
|
-
auto?: {
|
|
48
|
-
key: string;
|
|
49
|
-
options: string[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
searchBar: {
|
|
53
|
-
isAccessible: boolean;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
interface IAction {
|
|
57
|
-
bulkDelete: IDeleteActionMin;
|
|
58
|
-
delete: IDeleteActionMin;
|
|
59
|
-
edit: IActionMin;
|
|
60
|
-
new: IActionMin;
|
|
61
|
-
show: IActionMin;
|
|
62
|
-
extras?: IExtras;
|
|
63
|
-
}
|
|
64
|
-
interface IExtras {
|
|
65
|
-
record: {
|
|
66
|
-
[key: string]: IExtarAction;
|
|
67
|
-
};
|
|
68
|
-
resource: {
|
|
69
|
-
[key: string]: IExtarAction;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
interface IExtarAction {
|
|
73
|
-
actionType: ActionTypes;
|
|
74
|
-
guard?: string;
|
|
75
|
-
icon: string;
|
|
76
|
-
key: string;
|
|
77
|
-
keys?: string[];
|
|
78
|
-
name: string;
|
|
79
|
-
severity?: Severity;
|
|
80
|
-
message?: string;
|
|
81
|
-
guardTitle?: string;
|
|
82
|
-
}
|
|
83
|
-
interface IActionMin {
|
|
84
|
-
isAccessible: boolean;
|
|
85
|
-
value?: string;
|
|
86
|
-
}
|
|
87
|
-
interface IDeleteActionMin extends IActionMin {
|
|
88
|
-
cancelDeleteOption: string;
|
|
89
|
-
confirmDeleteOption: string;
|
|
90
|
-
confirmationMessageBody: string;
|
|
91
|
-
confirmationMessageTitle: string;
|
|
92
|
-
}
|
|
93
|
-
declare type orderTypes = "asc" | "desc";
|
|
94
|
-
declare type Severity = "success" | "info" | "warning" | "error";
|
|
95
|
-
export {};
|
|
1
|
+
import { ActionTypes } from "./helpers";
|
|
2
|
+
export default interface IResourceResponse {
|
|
3
|
+
filterProperties: string[];
|
|
4
|
+
formProperties: string[];
|
|
5
|
+
listProperties: IProperty[];
|
|
6
|
+
showProperties: IProperty[];
|
|
7
|
+
properties: IMainProperty;
|
|
8
|
+
}
|
|
9
|
+
interface IProperty {
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
path?: string;
|
|
13
|
+
}
|
|
14
|
+
interface IMainProperty {
|
|
15
|
+
title: string;
|
|
16
|
+
path: string;
|
|
17
|
+
name: string;
|
|
18
|
+
modelName: string;
|
|
19
|
+
parent: IParent;
|
|
20
|
+
defaultOrder: orderTypes;
|
|
21
|
+
defaultOrderBy: string;
|
|
22
|
+
defaultrowsPerPage: number;
|
|
23
|
+
filters: IFilter;
|
|
24
|
+
actions: IAction;
|
|
25
|
+
model: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
disableNextPreviousButtonsInShowPage?: boolean;
|
|
29
|
+
disableNextPreviousButtonsInEditPage?: boolean;
|
|
30
|
+
displayEditPageInShowPage?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface IParent {
|
|
33
|
+
icon: string;
|
|
34
|
+
name: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
interface IFilter {
|
|
38
|
+
scopes: {
|
|
39
|
+
isAccessible: boolean;
|
|
40
|
+
options?: {
|
|
41
|
+
key: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
44
|
+
manual?: {
|
|
45
|
+
options: string[];
|
|
46
|
+
};
|
|
47
|
+
auto?: {
|
|
48
|
+
key: string;
|
|
49
|
+
options: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
searchBar: {
|
|
53
|
+
isAccessible: boolean;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
interface IAction {
|
|
57
|
+
bulkDelete: IDeleteActionMin;
|
|
58
|
+
delete: IDeleteActionMin;
|
|
59
|
+
edit: IActionMin;
|
|
60
|
+
new: IActionMin;
|
|
61
|
+
show: IActionMin;
|
|
62
|
+
extras?: IExtras;
|
|
63
|
+
}
|
|
64
|
+
interface IExtras {
|
|
65
|
+
record: {
|
|
66
|
+
[key: string]: IExtarAction;
|
|
67
|
+
};
|
|
68
|
+
resource: {
|
|
69
|
+
[key: string]: IExtarAction;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
interface IExtarAction {
|
|
73
|
+
actionType: ActionTypes;
|
|
74
|
+
guard?: string;
|
|
75
|
+
icon: string;
|
|
76
|
+
key: string;
|
|
77
|
+
keys?: string[];
|
|
78
|
+
name: string;
|
|
79
|
+
severity?: Severity;
|
|
80
|
+
message?: string;
|
|
81
|
+
guardTitle?: string;
|
|
82
|
+
}
|
|
83
|
+
interface IActionMin {
|
|
84
|
+
isAccessible: boolean;
|
|
85
|
+
value?: string;
|
|
86
|
+
}
|
|
87
|
+
interface IDeleteActionMin extends IActionMin {
|
|
88
|
+
cancelDeleteOption: string;
|
|
89
|
+
confirmDeleteOption: string;
|
|
90
|
+
confirmationMessageBody: string;
|
|
91
|
+
confirmationMessageTitle: string;
|
|
92
|
+
}
|
|
93
|
+
declare type orderTypes = "asc" | "desc";
|
|
94
|
+
declare type Severity = "success" | "info" | "warning" | "error";
|
|
95
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/types/helpers.d.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
export declare enum Virtuals {
|
|
2
|
-
SHOW = "SHOW",
|
|
3
|
-
LIST = "LIST",
|
|
4
|
-
FORM = "FORM",
|
|
5
|
-
FILTER = "FILTER"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ActionNames {
|
|
8
|
-
SHOW = "SHOW",
|
|
9
|
-
LIST = "LIST",
|
|
10
|
-
NEW = "NEW",
|
|
11
|
-
EDIT = "EDIT"
|
|
12
|
-
}
|
|
13
|
-
export declare enum ActionTypes {
|
|
14
|
-
RECORD = "record",
|
|
15
|
-
Resource = "resource"
|
|
16
|
-
}
|
|
17
|
-
export declare enum FieldTypes {
|
|
18
|
-
STRING = "String",
|
|
19
|
-
NUMBER = "Number",
|
|
20
|
-
ENUM = "enum",
|
|
21
|
-
REFERENCE = "ref",
|
|
22
|
-
DATE = "Date",
|
|
23
|
-
PASSWORD = "password",
|
|
24
|
-
BOOLEAN = "Boolean",
|
|
25
|
-
OBJECTID = "ObjectID",
|
|
26
|
-
NESTEDSCHEMA = "nestedSchema",
|
|
27
|
-
ARRAY = "Array",
|
|
28
|
-
IMAGE = "image",
|
|
29
|
-
LOCALIZEDSTRING = "localizedString",
|
|
30
|
-
PHONENUMBER = "phoneNumber",
|
|
31
|
-
COLOR = "color",
|
|
32
|
-
TIMEPICKER = "timePicker",
|
|
33
|
-
FILE = "File",
|
|
34
|
-
LOCATION = "LOCATION",
|
|
35
|
-
HTML = "HTML",
|
|
36
|
-
RICH_TEXT_I = "RICH_TEXT_I",
|
|
37
|
-
RICH_TEXT_II = "RICH_TEXT_II",
|
|
38
|
-
EXTERNAL_LINK = "EXTERNAL_LINK",
|
|
39
|
-
MULTIPLE_TEXT = "MULTIPLE_TEXT"
|
|
40
|
-
}
|
|
41
|
-
export declare enum FileTypes {
|
|
42
|
-
ALL = "ALL",
|
|
43
|
-
IMAGE = "IMAGE",
|
|
44
|
-
_3D = "3D",
|
|
45
|
-
PDF = "PDF",
|
|
46
|
-
EXCEL = "EXCEL",
|
|
47
|
-
WORD = "WORD",
|
|
48
|
-
VIDEO = "VIDEO",
|
|
49
|
-
TEXT = "TEXT",
|
|
50
|
-
ZIP = "ZIP",
|
|
51
|
-
POWER_POINT = "POWER_POINT",
|
|
52
|
-
AUDIO = "AUDIO"
|
|
53
|
-
}
|
|
54
|
-
export declare enum HandlerStrategy {
|
|
55
|
-
NORMAL = "NORMAL",
|
|
56
|
-
FILE_DOWNLOAD = "FILE_DOWNLOAD",
|
|
57
|
-
CUSTOM_COMPONENT = "CUSTOM_COMPONENT"
|
|
58
|
-
}
|
|
59
|
-
export declare enum NeighborTypes {
|
|
60
|
-
NEXT = "NEXT",
|
|
61
|
-
PREVIOUS = "PREVIOUS"
|
|
62
|
-
}
|
|
63
|
-
export declare enum ImageOptimizingCategories {
|
|
64
|
-
NORMAL = "NORMAL",
|
|
65
|
-
BANNERS = "BANNERS"
|
|
66
|
-
}
|
|
1
|
+
export declare enum Virtuals {
|
|
2
|
+
SHOW = "SHOW",
|
|
3
|
+
LIST = "LIST",
|
|
4
|
+
FORM = "FORM",
|
|
5
|
+
FILTER = "FILTER"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ActionNames {
|
|
8
|
+
SHOW = "SHOW",
|
|
9
|
+
LIST = "LIST",
|
|
10
|
+
NEW = "NEW",
|
|
11
|
+
EDIT = "EDIT"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ActionTypes {
|
|
14
|
+
RECORD = "record",
|
|
15
|
+
Resource = "resource"
|
|
16
|
+
}
|
|
17
|
+
export declare enum FieldTypes {
|
|
18
|
+
STRING = "String",
|
|
19
|
+
NUMBER = "Number",
|
|
20
|
+
ENUM = "enum",
|
|
21
|
+
REFERENCE = "ref",
|
|
22
|
+
DATE = "Date",
|
|
23
|
+
PASSWORD = "password",
|
|
24
|
+
BOOLEAN = "Boolean",
|
|
25
|
+
OBJECTID = "ObjectID",
|
|
26
|
+
NESTEDSCHEMA = "nestedSchema",
|
|
27
|
+
ARRAY = "Array",
|
|
28
|
+
IMAGE = "image",
|
|
29
|
+
LOCALIZEDSTRING = "localizedString",
|
|
30
|
+
PHONENUMBER = "phoneNumber",
|
|
31
|
+
COLOR = "color",
|
|
32
|
+
TIMEPICKER = "timePicker",
|
|
33
|
+
FILE = "File",
|
|
34
|
+
LOCATION = "LOCATION",
|
|
35
|
+
HTML = "HTML",
|
|
36
|
+
RICH_TEXT_I = "RICH_TEXT_I",
|
|
37
|
+
RICH_TEXT_II = "RICH_TEXT_II",
|
|
38
|
+
EXTERNAL_LINK = "EXTERNAL_LINK",
|
|
39
|
+
MULTIPLE_TEXT = "MULTIPLE_TEXT"
|
|
40
|
+
}
|
|
41
|
+
export declare enum FileTypes {
|
|
42
|
+
ALL = "ALL",
|
|
43
|
+
IMAGE = "IMAGE",
|
|
44
|
+
_3D = "3D",
|
|
45
|
+
PDF = "PDF",
|
|
46
|
+
EXCEL = "EXCEL",
|
|
47
|
+
WORD = "WORD",
|
|
48
|
+
VIDEO = "VIDEO",
|
|
49
|
+
TEXT = "TEXT",
|
|
50
|
+
ZIP = "ZIP",
|
|
51
|
+
POWER_POINT = "POWER_POINT",
|
|
52
|
+
AUDIO = "AUDIO"
|
|
53
|
+
}
|
|
54
|
+
export declare enum HandlerStrategy {
|
|
55
|
+
NORMAL = "NORMAL",
|
|
56
|
+
FILE_DOWNLOAD = "FILE_DOWNLOAD",
|
|
57
|
+
CUSTOM_COMPONENT = "CUSTOM_COMPONENT"
|
|
58
|
+
}
|
|
59
|
+
export declare enum NeighborTypes {
|
|
60
|
+
NEXT = "NEXT",
|
|
61
|
+
PREVIOUS = "PREVIOUS"
|
|
62
|
+
}
|
|
63
|
+
export declare enum ImageOptimizingCategories {
|
|
64
|
+
NORMAL = "NORMAL",
|
|
65
|
+
BANNERS = "BANNERS"
|
|
66
|
+
}
|
package/lib/types/helpers.js
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageOptimizingCategories = exports.NeighborTypes = exports.HandlerStrategy = exports.FileTypes = exports.FieldTypes = exports.ActionTypes = exports.ActionNames = exports.Virtuals = void 0;
|
|
4
|
-
var Virtuals;
|
|
5
|
-
(function (Virtuals) {
|
|
6
|
-
Virtuals["SHOW"] = "SHOW";
|
|
7
|
-
Virtuals["LIST"] = "LIST";
|
|
8
|
-
Virtuals["FORM"] = "FORM";
|
|
9
|
-
Virtuals["FILTER"] = "FILTER";
|
|
10
|
-
})(Virtuals = exports.Virtuals || (exports.Virtuals = {}));
|
|
11
|
-
var ActionNames;
|
|
12
|
-
(function (ActionNames) {
|
|
13
|
-
ActionNames["SHOW"] = "SHOW";
|
|
14
|
-
ActionNames["LIST"] = "LIST";
|
|
15
|
-
ActionNames["NEW"] = "NEW";
|
|
16
|
-
ActionNames["EDIT"] = "EDIT";
|
|
17
|
-
})(ActionNames = exports.ActionNames || (exports.ActionNames = {}));
|
|
18
|
-
var ActionTypes;
|
|
19
|
-
(function (ActionTypes) {
|
|
20
|
-
ActionTypes["RECORD"] = "record";
|
|
21
|
-
ActionTypes["Resource"] = "resource";
|
|
22
|
-
})(ActionTypes = exports.ActionTypes || (exports.ActionTypes = {}));
|
|
23
|
-
var FieldTypes;
|
|
24
|
-
(function (FieldTypes) {
|
|
25
|
-
FieldTypes["STRING"] = "String";
|
|
26
|
-
FieldTypes["NUMBER"] = "Number";
|
|
27
|
-
FieldTypes["ENUM"] = "enum";
|
|
28
|
-
FieldTypes["REFERENCE"] = "ref";
|
|
29
|
-
FieldTypes["DATE"] = "Date";
|
|
30
|
-
FieldTypes["PASSWORD"] = "password";
|
|
31
|
-
FieldTypes["BOOLEAN"] = "Boolean";
|
|
32
|
-
FieldTypes["OBJECTID"] = "ObjectID";
|
|
33
|
-
FieldTypes["NESTEDSCHEMA"] = "nestedSchema";
|
|
34
|
-
FieldTypes["ARRAY"] = "Array";
|
|
35
|
-
FieldTypes["IMAGE"] = "image";
|
|
36
|
-
FieldTypes["LOCALIZEDSTRING"] = "localizedString";
|
|
37
|
-
FieldTypes["PHONENUMBER"] = "phoneNumber";
|
|
38
|
-
FieldTypes["COLOR"] = "color";
|
|
39
|
-
FieldTypes["TIMEPICKER"] = "timePicker";
|
|
40
|
-
FieldTypes["FILE"] = "File";
|
|
41
|
-
FieldTypes["LOCATION"] = "LOCATION";
|
|
42
|
-
FieldTypes["HTML"] = "HTML";
|
|
43
|
-
FieldTypes["RICH_TEXT_I"] = "RICH_TEXT_I";
|
|
44
|
-
FieldTypes["RICH_TEXT_II"] = "RICH_TEXT_II";
|
|
45
|
-
FieldTypes["EXTERNAL_LINK"] = "EXTERNAL_LINK";
|
|
46
|
-
FieldTypes["MULTIPLE_TEXT"] = "MULTIPLE_TEXT";
|
|
47
|
-
})(FieldTypes = exports.FieldTypes || (exports.FieldTypes = {}));
|
|
48
|
-
var FileTypes;
|
|
49
|
-
(function (FileTypes) {
|
|
50
|
-
FileTypes["ALL"] = "ALL";
|
|
51
|
-
FileTypes["IMAGE"] = "IMAGE";
|
|
52
|
-
FileTypes["_3D"] = "3D";
|
|
53
|
-
FileTypes["PDF"] = "PDF";
|
|
54
|
-
FileTypes["EXCEL"] = "EXCEL";
|
|
55
|
-
FileTypes["WORD"] = "WORD";
|
|
56
|
-
FileTypes["VIDEO"] = "VIDEO";
|
|
57
|
-
FileTypes["TEXT"] = "TEXT";
|
|
58
|
-
FileTypes["ZIP"] = "ZIP";
|
|
59
|
-
FileTypes["POWER_POINT"] = "POWER_POINT";
|
|
60
|
-
FileTypes["AUDIO"] = "AUDIO";
|
|
61
|
-
})(FileTypes = exports.FileTypes || (exports.FileTypes = {}));
|
|
62
|
-
var HandlerStrategy;
|
|
63
|
-
(function (HandlerStrategy) {
|
|
64
|
-
HandlerStrategy["NORMAL"] = "NORMAL";
|
|
65
|
-
HandlerStrategy["FILE_DOWNLOAD"] = "FILE_DOWNLOAD";
|
|
66
|
-
HandlerStrategy["CUSTOM_COMPONENT"] = "CUSTOM_COMPONENT";
|
|
67
|
-
})(HandlerStrategy = exports.HandlerStrategy || (exports.HandlerStrategy = {}));
|
|
68
|
-
var NeighborTypes;
|
|
69
|
-
(function (NeighborTypes) {
|
|
70
|
-
NeighborTypes["NEXT"] = "NEXT";
|
|
71
|
-
NeighborTypes["PREVIOUS"] = "PREVIOUS";
|
|
72
|
-
})(NeighborTypes = exports.NeighborTypes || (exports.NeighborTypes = {}));
|
|
73
|
-
var ImageOptimizingCategories;
|
|
74
|
-
(function (ImageOptimizingCategories) {
|
|
75
|
-
ImageOptimizingCategories["NORMAL"] = "NORMAL";
|
|
76
|
-
ImageOptimizingCategories["BANNERS"] = "BANNERS";
|
|
77
|
-
})(ImageOptimizingCategories = exports.ImageOptimizingCategories || (exports.ImageOptimizingCategories = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageOptimizingCategories = exports.NeighborTypes = exports.HandlerStrategy = exports.FileTypes = exports.FieldTypes = exports.ActionTypes = exports.ActionNames = exports.Virtuals = void 0;
|
|
4
|
+
var Virtuals;
|
|
5
|
+
(function (Virtuals) {
|
|
6
|
+
Virtuals["SHOW"] = "SHOW";
|
|
7
|
+
Virtuals["LIST"] = "LIST";
|
|
8
|
+
Virtuals["FORM"] = "FORM";
|
|
9
|
+
Virtuals["FILTER"] = "FILTER";
|
|
10
|
+
})(Virtuals = exports.Virtuals || (exports.Virtuals = {}));
|
|
11
|
+
var ActionNames;
|
|
12
|
+
(function (ActionNames) {
|
|
13
|
+
ActionNames["SHOW"] = "SHOW";
|
|
14
|
+
ActionNames["LIST"] = "LIST";
|
|
15
|
+
ActionNames["NEW"] = "NEW";
|
|
16
|
+
ActionNames["EDIT"] = "EDIT";
|
|
17
|
+
})(ActionNames = exports.ActionNames || (exports.ActionNames = {}));
|
|
18
|
+
var ActionTypes;
|
|
19
|
+
(function (ActionTypes) {
|
|
20
|
+
ActionTypes["RECORD"] = "record";
|
|
21
|
+
ActionTypes["Resource"] = "resource";
|
|
22
|
+
})(ActionTypes = exports.ActionTypes || (exports.ActionTypes = {}));
|
|
23
|
+
var FieldTypes;
|
|
24
|
+
(function (FieldTypes) {
|
|
25
|
+
FieldTypes["STRING"] = "String";
|
|
26
|
+
FieldTypes["NUMBER"] = "Number";
|
|
27
|
+
FieldTypes["ENUM"] = "enum";
|
|
28
|
+
FieldTypes["REFERENCE"] = "ref";
|
|
29
|
+
FieldTypes["DATE"] = "Date";
|
|
30
|
+
FieldTypes["PASSWORD"] = "password";
|
|
31
|
+
FieldTypes["BOOLEAN"] = "Boolean";
|
|
32
|
+
FieldTypes["OBJECTID"] = "ObjectID";
|
|
33
|
+
FieldTypes["NESTEDSCHEMA"] = "nestedSchema";
|
|
34
|
+
FieldTypes["ARRAY"] = "Array";
|
|
35
|
+
FieldTypes["IMAGE"] = "image";
|
|
36
|
+
FieldTypes["LOCALIZEDSTRING"] = "localizedString";
|
|
37
|
+
FieldTypes["PHONENUMBER"] = "phoneNumber";
|
|
38
|
+
FieldTypes["COLOR"] = "color";
|
|
39
|
+
FieldTypes["TIMEPICKER"] = "timePicker";
|
|
40
|
+
FieldTypes["FILE"] = "File";
|
|
41
|
+
FieldTypes["LOCATION"] = "LOCATION";
|
|
42
|
+
FieldTypes["HTML"] = "HTML";
|
|
43
|
+
FieldTypes["RICH_TEXT_I"] = "RICH_TEXT_I";
|
|
44
|
+
FieldTypes["RICH_TEXT_II"] = "RICH_TEXT_II";
|
|
45
|
+
FieldTypes["EXTERNAL_LINK"] = "EXTERNAL_LINK";
|
|
46
|
+
FieldTypes["MULTIPLE_TEXT"] = "MULTIPLE_TEXT";
|
|
47
|
+
})(FieldTypes = exports.FieldTypes || (exports.FieldTypes = {}));
|
|
48
|
+
var FileTypes;
|
|
49
|
+
(function (FileTypes) {
|
|
50
|
+
FileTypes["ALL"] = "ALL";
|
|
51
|
+
FileTypes["IMAGE"] = "IMAGE";
|
|
52
|
+
FileTypes["_3D"] = "3D";
|
|
53
|
+
FileTypes["PDF"] = "PDF";
|
|
54
|
+
FileTypes["EXCEL"] = "EXCEL";
|
|
55
|
+
FileTypes["WORD"] = "WORD";
|
|
56
|
+
FileTypes["VIDEO"] = "VIDEO";
|
|
57
|
+
FileTypes["TEXT"] = "TEXT";
|
|
58
|
+
FileTypes["ZIP"] = "ZIP";
|
|
59
|
+
FileTypes["POWER_POINT"] = "POWER_POINT";
|
|
60
|
+
FileTypes["AUDIO"] = "AUDIO";
|
|
61
|
+
})(FileTypes = exports.FileTypes || (exports.FileTypes = {}));
|
|
62
|
+
var HandlerStrategy;
|
|
63
|
+
(function (HandlerStrategy) {
|
|
64
|
+
HandlerStrategy["NORMAL"] = "NORMAL";
|
|
65
|
+
HandlerStrategy["FILE_DOWNLOAD"] = "FILE_DOWNLOAD";
|
|
66
|
+
HandlerStrategy["CUSTOM_COMPONENT"] = "CUSTOM_COMPONENT";
|
|
67
|
+
})(HandlerStrategy = exports.HandlerStrategy || (exports.HandlerStrategy = {}));
|
|
68
|
+
var NeighborTypes;
|
|
69
|
+
(function (NeighborTypes) {
|
|
70
|
+
NeighborTypes["NEXT"] = "NEXT";
|
|
71
|
+
NeighborTypes["PREVIOUS"] = "PREVIOUS";
|
|
72
|
+
})(NeighborTypes = exports.NeighborTypes || (exports.NeighborTypes = {}));
|
|
73
|
+
var ImageOptimizingCategories;
|
|
74
|
+
(function (ImageOptimizingCategories) {
|
|
75
|
+
ImageOptimizingCategories["NORMAL"] = "NORMAL";
|
|
76
|
+
ImageOptimizingCategories["BANNERS"] = "BANNERS";
|
|
77
|
+
})(ImageOptimizingCategories = exports.ImageOptimizingCategories || (exports.ImageOptimizingCategories = {}));
|
package/lib/utils/DateUtils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Languages } from '../helpers/ReportsGenerator';
|
|
2
|
-
export declare class DateUtils {
|
|
3
|
-
static addBegginingZero(value: number): string;
|
|
4
|
-
static localizingToArabicAMPM(amOrPm: string): "صباحاً" | "مساءاً";
|
|
5
|
-
static formatAMPM(date: Date, language: Languages): string;
|
|
6
|
-
static getIsoDate(date: Date | string, withTime: boolean): string;
|
|
7
|
-
}
|
|
1
|
+
import { Languages } from '../helpers/ReportsGenerator';
|
|
2
|
+
export declare class DateUtils {
|
|
3
|
+
static addBegginingZero(value: number): string;
|
|
4
|
+
static localizingToArabicAMPM(amOrPm: string): "صباحاً" | "مساءاً";
|
|
5
|
+
static formatAMPM(date: Date, language: Languages): string;
|
|
6
|
+
static getIsoDate(date: Date | string, withTime: boolean): string;
|
|
7
|
+
}
|
package/lib/utils/DateUtils.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DateUtils = void 0;
|
|
4
|
-
const ReportsGenerator_1 = require("../helpers/ReportsGenerator");
|
|
5
|
-
class DateUtils {
|
|
6
|
-
static addBegginingZero(value) {
|
|
7
|
-
return value % 10 === value ? `0${value.toString()}` : value.toString();
|
|
8
|
-
}
|
|
9
|
-
static localizingToArabicAMPM(amOrPm) {
|
|
10
|
-
switch (amOrPm) {
|
|
11
|
-
case 'am':
|
|
12
|
-
return 'صباحاً';
|
|
13
|
-
case 'pm':
|
|
14
|
-
return 'مساءاً';
|
|
15
|
-
default:
|
|
16
|
-
return 'صباحاً';
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
static formatAMPM(date, language) {
|
|
20
|
-
var hours = date.getHours();
|
|
21
|
-
var minutes = date.getMinutes();
|
|
22
|
-
var ampm = hours >= 12 ? 'pm' : 'am';
|
|
23
|
-
if (language === ReportsGenerator_1.Languages.ARABIC) {
|
|
24
|
-
ampm = this.localizingToArabicAMPM(ampm);
|
|
25
|
-
}
|
|
26
|
-
hours = hours % 12;
|
|
27
|
-
hours = hours ? hours : 12;
|
|
28
|
-
minutes = minutes < 10 ? '0' + minutes : minutes;
|
|
29
|
-
var strTime = hours + ':' + minutes + ' ' + ampm;
|
|
30
|
-
return strTime;
|
|
31
|
-
}
|
|
32
|
-
static getIsoDate(date, withTime) {
|
|
33
|
-
date = new Date(date);
|
|
34
|
-
const month = date.getMonth() + 1;
|
|
35
|
-
const day = date.getDate();
|
|
36
|
-
const mappedMonth = this.addBegginingZero(month);
|
|
37
|
-
const mappedDay = this.addBegginingZero(day);
|
|
38
|
-
var isoDate = date.getFullYear() + '-' + mappedMonth + '-' + mappedDay;
|
|
39
|
-
if (withTime) {
|
|
40
|
-
isoDate = isoDate + ' ' + this.formatAMPM(date, ReportsGenerator_1.Languages.ENGLISH);
|
|
41
|
-
}
|
|
42
|
-
return isoDate;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.DateUtils = DateUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateUtils = void 0;
|
|
4
|
+
const ReportsGenerator_1 = require("../helpers/ReportsGenerator");
|
|
5
|
+
class DateUtils {
|
|
6
|
+
static addBegginingZero(value) {
|
|
7
|
+
return value % 10 === value ? `0${value.toString()}` : value.toString();
|
|
8
|
+
}
|
|
9
|
+
static localizingToArabicAMPM(amOrPm) {
|
|
10
|
+
switch (amOrPm) {
|
|
11
|
+
case 'am':
|
|
12
|
+
return 'صباحاً';
|
|
13
|
+
case 'pm':
|
|
14
|
+
return 'مساءاً';
|
|
15
|
+
default:
|
|
16
|
+
return 'صباحاً';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static formatAMPM(date, language) {
|
|
20
|
+
var hours = date.getHours();
|
|
21
|
+
var minutes = date.getMinutes();
|
|
22
|
+
var ampm = hours >= 12 ? 'pm' : 'am';
|
|
23
|
+
if (language === ReportsGenerator_1.Languages.ARABIC) {
|
|
24
|
+
ampm = this.localizingToArabicAMPM(ampm);
|
|
25
|
+
}
|
|
26
|
+
hours = hours % 12;
|
|
27
|
+
hours = hours ? hours : 12;
|
|
28
|
+
minutes = minutes < 10 ? '0' + minutes : minutes;
|
|
29
|
+
var strTime = hours + ':' + minutes + ' ' + ampm;
|
|
30
|
+
return strTime;
|
|
31
|
+
}
|
|
32
|
+
static getIsoDate(date, withTime) {
|
|
33
|
+
date = new Date(date);
|
|
34
|
+
const month = date.getMonth() + 1;
|
|
35
|
+
const day = date.getDate();
|
|
36
|
+
const mappedMonth = this.addBegginingZero(month);
|
|
37
|
+
const mappedDay = this.addBegginingZero(day);
|
|
38
|
+
var isoDate = date.getFullYear() + '-' + mappedMonth + '-' + mappedDay;
|
|
39
|
+
if (withTime) {
|
|
40
|
+
isoDate = isoDate + ' ' + this.formatAMPM(date, ReportsGenerator_1.Languages.ENGLISH);
|
|
41
|
+
}
|
|
42
|
+
return isoDate;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DateUtils = DateUtils;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IResourceFile } from "../types/IResourceFile";
|
|
2
|
-
export declare const getResource: (modelName: string, resources: IResourceFile[]) => IResourceFile | undefined;
|
|
1
|
+
import { IResourceFile } from "../types/IResourceFile";
|
|
2
|
+
export declare const getResource: (modelName: string, resources: IResourceFile[]) => IResourceFile | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResource = void 0;
|
|
4
|
-
const getResource = (modelName, resources) => {
|
|
5
|
-
return resources.find(resource => resource.properties.modelName === modelName);
|
|
6
|
-
};
|
|
7
|
-
exports.getResource = getResource;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getResource = void 0;
|
|
4
|
+
const getResource = (modelName, resources) => {
|
|
5
|
+
return resources.find(resource => resource.properties.modelName === modelName);
|
|
6
|
+
};
|
|
7
|
+
exports.getResource = getResource;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ISaveError } from '../repositories/SaveResult';
|
|
2
|
-
import { Response } from 'express';
|
|
3
|
-
export default class ResponseUtils {
|
|
4
|
-
static send(res: Response, status: number, message: string, data?: object, errors?: ISaveError[]): Response<any, Record<string, any>>;
|
|
5
|
-
static created(res: Response, data: object): void;
|
|
6
|
-
static ok(res: Response, data: object): void;
|
|
7
|
-
static unauthorized(res: Response): void;
|
|
8
|
-
static forbidden(res: Response): void;
|
|
9
|
-
static unprocessable(res: Response, message: string, errors: ISaveError[]): void;
|
|
10
|
-
static notFound(res: Response, message: string, errors: ISaveError[]): void;
|
|
11
|
-
}
|
|
1
|
+
import { ISaveError } from '../repositories/SaveResult';
|
|
2
|
+
import { Response } from 'express';
|
|
3
|
+
export default class ResponseUtils {
|
|
4
|
+
static send(res: Response, status: number, message: string, data?: object, errors?: ISaveError[]): Response<any, Record<string, any>>;
|
|
5
|
+
static created(res: Response, data: object): void;
|
|
6
|
+
static ok(res: Response, data: object): void;
|
|
7
|
+
static unauthorized(res: Response): void;
|
|
8
|
+
static forbidden(res: Response): void;
|
|
9
|
+
static unprocessable(res: Response, message: string, errors: ISaveError[]): void;
|
|
10
|
+
static notFound(res: Response, message: string, errors: ISaveError[]): void;
|
|
11
|
+
}
|