@pksep/zod-shared 0.0.568 → 0.0.569
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/excel-export/excel-export.dto.d.ts +6384 -1778
- package/dist/excel-export/excel-export.dto.js +229 -3
- package/dist/excel-export/index.d.ts +4 -0
- package/dist/excel-export/index.js +4 -0
- package/dist/excel-export/online-board-excel-export.d.ts +47 -0
- package/dist/excel-export/production-page-excel-export.d.ts +857 -0
- package/dist/excel-export/production-page-excel-export.js +201 -0
- package/dist/excel-export/production-task-excel-export.d.ts +50 -0
- package/dist/excel-export/warehouse-excel-export.d.ts +269 -0
- package/dist/excel-export/warehouse-excel-export.js +76 -0
- package/package.json +1 -1
- package/dist/document/types/uploaded-file-map.type.d.ts +0 -5
- package/dist/production-tasks/dto/repair-production-task-priority.dto.d.ts +0 -30
- package/dist/production-tasks/dto/repair-production-task-priority.dto.js +0 -18
- package/dist/role/constants/permission.constants.d.ts +0 -9
- package/dist/role/constants/permission.constants.js +0 -13
- package/dist/role/dto/update-role-permissions.dto.d.ts +0 -15
- package/dist/role/dto/update-role-permissions.dto.js +0 -9
- package/dist/role/enums/permission.enum.d.ts +0 -116
- package/dist/role/enums/permission.enum.js +0 -123
- package/dist/role/schemas/permission.schema.d.ts +0 -169
- package/dist/role/schemas/permission.schema.js +0 -44
- package/dist/role/types/permission.types.d.ts +0 -38
- package/dist/stock-order/dto/get-stock-order-items-by-entity.dto.d.ts +0 -19
- package/dist/stock-order/dto/get-stock-order-items-by-entity.dto.js +0 -11
- package/dist/tech-process/types/tech-process-load-options.d.ts +0 -3
- package/dist/tech-process/types/tech-process-load-options.js +0 -2
- /package/dist/{document/types/uploaded-file-map.type.js → excel-export/online-board-excel-export.js} +0 -0
- /package/dist/{role/types/permission.types.js → excel-export/production-task-excel-export.js} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Пользовательские названия действий разрешений. */
|
|
2
|
-
export declare const PERMISSION_ACTION_TITLES: {
|
|
3
|
-
readonly view: "просмотр";
|
|
4
|
-
readonly create: "создание";
|
|
5
|
-
readonly update: "обновление";
|
|
6
|
-
readonly archive: "архивирование";
|
|
7
|
-
readonly attach: "прикрепление";
|
|
8
|
-
readonly detach: "открепление";
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PERMISSION_ACTION_TITLES = void 0;
|
|
4
|
-
const permission_enum_1 = require("../enums/permission.enum");
|
|
5
|
-
/** Пользовательские названия действий разрешений. */
|
|
6
|
-
exports.PERMISSION_ACTION_TITLES = {
|
|
7
|
-
[permission_enum_1.PermissionActionEnum.View]: 'просмотр',
|
|
8
|
-
[permission_enum_1.PermissionActionEnum.Create]: 'создание',
|
|
9
|
-
[permission_enum_1.PermissionActionEnum.Update]: 'обновление',
|
|
10
|
-
[permission_enum_1.PermissionActionEnum.Archive]: 'архивирование',
|
|
11
|
-
[permission_enum_1.PermissionActionEnum.Attach]: 'прикрепление',
|
|
12
|
-
[permission_enum_1.PermissionActionEnum.Detach]: 'открепление'
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const UpdateRolePermissionsDtoZod: z.ZodObject<{
|
|
3
|
-
roleId: z.ZodNumber;
|
|
4
|
-
permissionIds: z.ZodArray<z.ZodNumber, "many">;
|
|
5
|
-
permissionsVersion: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
roleId: number;
|
|
8
|
-
permissionsVersion: number;
|
|
9
|
-
permissionIds: number[];
|
|
10
|
-
}, {
|
|
11
|
-
roleId: number;
|
|
12
|
-
permissionsVersion: number;
|
|
13
|
-
permissionIds: number[];
|
|
14
|
-
}>;
|
|
15
|
-
export type UpdateRolePermissionsDtoZodType = z.infer<typeof UpdateRolePermissionsDtoZod>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateRolePermissionsDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.UpdateRolePermissionsDtoZod = zod_1.z.object({
|
|
6
|
-
roleId: zod_1.z.number().int().positive(),
|
|
7
|
-
permissionIds: zod_1.z.array(zod_1.z.number().int().positive()).max(10000),
|
|
8
|
-
permissionsVersion: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/** Действия, поддерживаемые системой ролевых разрешений. */
|
|
2
|
-
export declare enum PermissionActionEnum {
|
|
3
|
-
View = "view",
|
|
4
|
-
Create = "create",
|
|
5
|
-
Update = "update",
|
|
6
|
-
Archive = "archive",
|
|
7
|
-
Attach = "attach",
|
|
8
|
-
Detach = "detach"
|
|
9
|
-
}
|
|
10
|
-
/** Код ошибки, возвращаемой при отказе ролевой авторизации. */
|
|
11
|
-
export declare enum PermissionErrorCodeEnum {
|
|
12
|
-
Denied = "PERMISSION_DENIED"
|
|
13
|
-
}
|
|
14
|
-
/** Способ применения перечисленных в ответе обязательных разрешений. */
|
|
15
|
-
export declare enum PermissionRequirementModeEnum {
|
|
16
|
-
AnyOf = "anyOf",
|
|
17
|
-
AllOf = "allOf"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Стабильные коды ресурсов системы разрешений.
|
|
21
|
-
* Значения enum совпадают с кодами в authorization_resources.
|
|
22
|
-
*/
|
|
23
|
-
export declare enum PermissionResource {
|
|
24
|
-
General = "general",
|
|
25
|
-
GeneralHome = "general.home",
|
|
26
|
-
GeneralWorkResults = "general.work-results",
|
|
27
|
-
GeneralProjects = "general.projects",
|
|
28
|
-
GeneralCalendar = "general.calendar",
|
|
29
|
-
Account = "account",
|
|
30
|
-
AccountProfile = "account.profile",
|
|
31
|
-
Catalog = "catalog",
|
|
32
|
-
CatalogProducts = "catalog.products",
|
|
33
|
-
CatalogCbeds = "catalog.cbeds",
|
|
34
|
-
CatalogDetals = "catalog.detals",
|
|
35
|
-
CatalogMaterials = "catalog.materials",
|
|
36
|
-
CatalogTools = "catalog.tools",
|
|
37
|
-
CatalogEquipment = "catalog.equipment",
|
|
38
|
-
CatalogInventory = "catalog.inventory",
|
|
39
|
-
CatalogContacts = "catalog.contacts",
|
|
40
|
-
CatalogCompanies = "catalog.companies",
|
|
41
|
-
Files = "files",
|
|
42
|
-
FilesLibrary = "files.library",
|
|
43
|
-
FilesAttachments = "files.attachments",
|
|
44
|
-
FilesAttachmentsProduct = "files.attachments.product",
|
|
45
|
-
FilesAttachmentsCbed = "files.attachments.cbed",
|
|
46
|
-
FilesAttachmentsDetal = "files.attachments.detal",
|
|
47
|
-
FilesAttachmentsMaterial = "files.attachments.material",
|
|
48
|
-
FilesAttachmentsProvider = "files.attachments.provider",
|
|
49
|
-
FilesAttachmentsCompany = "files.attachments.company",
|
|
50
|
-
FilesAttachmentsEquipment = "files.attachments.equipment",
|
|
51
|
-
FilesAttachmentsInstrument = "files.attachments.instrument",
|
|
52
|
-
FilesAttachmentsInventory = "files.attachments.inventory",
|
|
53
|
-
FilesAttachmentsUser = "files.attachments.user",
|
|
54
|
-
FilesAttachmentsWaybill = "files.attachments.waybill",
|
|
55
|
-
FilesAttachmentsDelivery = "files.attachments.delivery",
|
|
56
|
-
FilesAttachmentsShipment = "files.attachments.shipment",
|
|
57
|
-
FilesAttachmentsOperation = "files.attachments.operation",
|
|
58
|
-
FilesAttachmentsTechProcess = "files.attachments.tech-process",
|
|
59
|
-
FilesAttachmentsAssembleKit = "files.attachments.assemble-kit",
|
|
60
|
-
FilesAttachmentsMoving = "files.attachments.moving",
|
|
61
|
-
FilesAttachmentsShipmentCompletion = "files.attachments.shipment-completion",
|
|
62
|
-
Shipping = "shipping",
|
|
63
|
-
ShippingTasks = "shipping.tasks",
|
|
64
|
-
Warehouse = "warehouse",
|
|
65
|
-
WarehouseOverview = "warehouse.overview",
|
|
66
|
-
WarehouseReceipts = "warehouse.receipts",
|
|
67
|
-
WarehouseConsumption = "warehouse.consumption",
|
|
68
|
-
WarehouseCompletedKits = "warehouse.completed-kits",
|
|
69
|
-
WarehouseProductResiduals = "warehouse.product-residuals",
|
|
70
|
-
WarehouseOrderedInTransit = "warehouse.ordered-in-transit",
|
|
71
|
-
WarehouseShippingTasks = "warehouse.shipping-tasks",
|
|
72
|
-
WarehouseCbedCompletion = "warehouse.cbed-completion",
|
|
73
|
-
WarehouseProductCompletion = "warehouse.product-completion",
|
|
74
|
-
WarehouseSupplierOrders = "warehouse.supplier-orders",
|
|
75
|
-
WarehouseCbedDeficit = "warehouse.cbed-deficit",
|
|
76
|
-
WarehouseProductDeficit = "warehouse.product-deficit",
|
|
77
|
-
WarehouseMaterialDeficit = "warehouse.material-deficit",
|
|
78
|
-
WarehouseDetalDeficit = "warehouse.detal-deficit",
|
|
79
|
-
WarehouseShippedOrders = "warehouse.shipped-orders",
|
|
80
|
-
WarehouseRevision = "warehouse.revision",
|
|
81
|
-
WarehouseMovement = "warehouse.movement",
|
|
82
|
-
WarehouseMetalworkingOrders = "warehouse.metalworking-orders",
|
|
83
|
-
WarehouseAssemblyOrders = "warehouse.assembly-orders",
|
|
84
|
-
WarehouseRacks = "warehouse.racks",
|
|
85
|
-
Production = "production",
|
|
86
|
-
ProductionOverview = "production.overview",
|
|
87
|
-
ProductionTasks = "production.tasks",
|
|
88
|
-
ProductionMetalworking = "production.metalworking",
|
|
89
|
-
ProductionAssembly = "production.assembly",
|
|
90
|
-
ProductionOperationMetalworking = "production.operation-metalworking",
|
|
91
|
-
ProductionOperationAssembly = "production.operation-assembly",
|
|
92
|
-
ProductionBoard = "production.board",
|
|
93
|
-
ProductionBoardMetalworking = "production.board-metalworking",
|
|
94
|
-
ProductionOnlineBoard = "production.online-board",
|
|
95
|
-
Control = "control",
|
|
96
|
-
ControlArchive = "control.archive",
|
|
97
|
-
ControlActions = "control.actions",
|
|
98
|
-
ControlMarks = "control.marks",
|
|
99
|
-
Settings = "settings",
|
|
100
|
-
SettingsOverview = "settings.overview",
|
|
101
|
-
SettingsEmployees = "settings.employees",
|
|
102
|
-
SettingsUnits = "settings.units",
|
|
103
|
-
SettingsMaterials = "settings.materials",
|
|
104
|
-
SettingsOperations = "settings.operations",
|
|
105
|
-
SettingsTools = "settings.tools",
|
|
106
|
-
SettingsEquipment = "settings.equipment",
|
|
107
|
-
SettingsInventory = "settings.inventory",
|
|
108
|
-
SettingsDeficit = "settings.deficit",
|
|
109
|
-
SettingsTimeTracking = "settings.time-tracking",
|
|
110
|
-
SettingsRoles = "settings.roles",
|
|
111
|
-
SettingsPositions = "settings.positions",
|
|
112
|
-
SettingsNormHours = "settings.norm-hours",
|
|
113
|
-
SettingsBackups = "settings.backups",
|
|
114
|
-
SettingsNotifications = "settings.notifications",
|
|
115
|
-
SettingsExclusions = "settings.exclusions"
|
|
116
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionResource = exports.PermissionRequirementModeEnum = exports.PermissionErrorCodeEnum = exports.PermissionActionEnum = void 0;
|
|
4
|
-
/** Действия, поддерживаемые системой ролевых разрешений. */
|
|
5
|
-
var PermissionActionEnum;
|
|
6
|
-
(function (PermissionActionEnum) {
|
|
7
|
-
PermissionActionEnum["View"] = "view";
|
|
8
|
-
PermissionActionEnum["Create"] = "create";
|
|
9
|
-
PermissionActionEnum["Update"] = "update";
|
|
10
|
-
PermissionActionEnum["Archive"] = "archive";
|
|
11
|
-
PermissionActionEnum["Attach"] = "attach";
|
|
12
|
-
PermissionActionEnum["Detach"] = "detach";
|
|
13
|
-
})(PermissionActionEnum || (exports.PermissionActionEnum = PermissionActionEnum = {}));
|
|
14
|
-
/** Код ошибки, возвращаемой при отказе ролевой авторизации. */
|
|
15
|
-
var PermissionErrorCodeEnum;
|
|
16
|
-
(function (PermissionErrorCodeEnum) {
|
|
17
|
-
PermissionErrorCodeEnum["Denied"] = "PERMISSION_DENIED";
|
|
18
|
-
})(PermissionErrorCodeEnum || (exports.PermissionErrorCodeEnum = PermissionErrorCodeEnum = {}));
|
|
19
|
-
/** Способ применения перечисленных в ответе обязательных разрешений. */
|
|
20
|
-
var PermissionRequirementModeEnum;
|
|
21
|
-
(function (PermissionRequirementModeEnum) {
|
|
22
|
-
PermissionRequirementModeEnum["AnyOf"] = "anyOf";
|
|
23
|
-
PermissionRequirementModeEnum["AllOf"] = "allOf";
|
|
24
|
-
})(PermissionRequirementModeEnum || (exports.PermissionRequirementModeEnum = PermissionRequirementModeEnum = {}));
|
|
25
|
-
/**
|
|
26
|
-
* Стабильные коды ресурсов системы разрешений.
|
|
27
|
-
* Значения enum совпадают с кодами в authorization_resources.
|
|
28
|
-
*/
|
|
29
|
-
var PermissionResource;
|
|
30
|
-
(function (PermissionResource) {
|
|
31
|
-
PermissionResource["General"] = "general";
|
|
32
|
-
PermissionResource["GeneralHome"] = "general.home";
|
|
33
|
-
PermissionResource["GeneralWorkResults"] = "general.work-results";
|
|
34
|
-
PermissionResource["GeneralProjects"] = "general.projects";
|
|
35
|
-
PermissionResource["GeneralCalendar"] = "general.calendar";
|
|
36
|
-
PermissionResource["Account"] = "account";
|
|
37
|
-
PermissionResource["AccountProfile"] = "account.profile";
|
|
38
|
-
PermissionResource["Catalog"] = "catalog";
|
|
39
|
-
PermissionResource["CatalogProducts"] = "catalog.products";
|
|
40
|
-
PermissionResource["CatalogCbeds"] = "catalog.cbeds";
|
|
41
|
-
PermissionResource["CatalogDetals"] = "catalog.detals";
|
|
42
|
-
PermissionResource["CatalogMaterials"] = "catalog.materials";
|
|
43
|
-
PermissionResource["CatalogTools"] = "catalog.tools";
|
|
44
|
-
PermissionResource["CatalogEquipment"] = "catalog.equipment";
|
|
45
|
-
PermissionResource["CatalogInventory"] = "catalog.inventory";
|
|
46
|
-
PermissionResource["CatalogContacts"] = "catalog.contacts";
|
|
47
|
-
PermissionResource["CatalogCompanies"] = "catalog.companies";
|
|
48
|
-
PermissionResource["Files"] = "files";
|
|
49
|
-
PermissionResource["FilesLibrary"] = "files.library";
|
|
50
|
-
PermissionResource["FilesAttachments"] = "files.attachments";
|
|
51
|
-
PermissionResource["FilesAttachmentsProduct"] = "files.attachments.product";
|
|
52
|
-
PermissionResource["FilesAttachmentsCbed"] = "files.attachments.cbed";
|
|
53
|
-
PermissionResource["FilesAttachmentsDetal"] = "files.attachments.detal";
|
|
54
|
-
PermissionResource["FilesAttachmentsMaterial"] = "files.attachments.material";
|
|
55
|
-
PermissionResource["FilesAttachmentsProvider"] = "files.attachments.provider";
|
|
56
|
-
PermissionResource["FilesAttachmentsCompany"] = "files.attachments.company";
|
|
57
|
-
PermissionResource["FilesAttachmentsEquipment"] = "files.attachments.equipment";
|
|
58
|
-
PermissionResource["FilesAttachmentsInstrument"] = "files.attachments.instrument";
|
|
59
|
-
PermissionResource["FilesAttachmentsInventory"] = "files.attachments.inventory";
|
|
60
|
-
PermissionResource["FilesAttachmentsUser"] = "files.attachments.user";
|
|
61
|
-
PermissionResource["FilesAttachmentsWaybill"] = "files.attachments.waybill";
|
|
62
|
-
PermissionResource["FilesAttachmentsDelivery"] = "files.attachments.delivery";
|
|
63
|
-
PermissionResource["FilesAttachmentsShipment"] = "files.attachments.shipment";
|
|
64
|
-
PermissionResource["FilesAttachmentsOperation"] = "files.attachments.operation";
|
|
65
|
-
PermissionResource["FilesAttachmentsTechProcess"] = "files.attachments.tech-process";
|
|
66
|
-
PermissionResource["FilesAttachmentsAssembleKit"] = "files.attachments.assemble-kit";
|
|
67
|
-
PermissionResource["FilesAttachmentsMoving"] = "files.attachments.moving";
|
|
68
|
-
PermissionResource["FilesAttachmentsShipmentCompletion"] = "files.attachments.shipment-completion";
|
|
69
|
-
PermissionResource["Shipping"] = "shipping";
|
|
70
|
-
PermissionResource["ShippingTasks"] = "shipping.tasks";
|
|
71
|
-
PermissionResource["Warehouse"] = "warehouse";
|
|
72
|
-
PermissionResource["WarehouseOverview"] = "warehouse.overview";
|
|
73
|
-
PermissionResource["WarehouseReceipts"] = "warehouse.receipts";
|
|
74
|
-
PermissionResource["WarehouseConsumption"] = "warehouse.consumption";
|
|
75
|
-
PermissionResource["WarehouseCompletedKits"] = "warehouse.completed-kits";
|
|
76
|
-
PermissionResource["WarehouseProductResiduals"] = "warehouse.product-residuals";
|
|
77
|
-
PermissionResource["WarehouseOrderedInTransit"] = "warehouse.ordered-in-transit";
|
|
78
|
-
PermissionResource["WarehouseShippingTasks"] = "warehouse.shipping-tasks";
|
|
79
|
-
PermissionResource["WarehouseCbedCompletion"] = "warehouse.cbed-completion";
|
|
80
|
-
PermissionResource["WarehouseProductCompletion"] = "warehouse.product-completion";
|
|
81
|
-
PermissionResource["WarehouseSupplierOrders"] = "warehouse.supplier-orders";
|
|
82
|
-
PermissionResource["WarehouseCbedDeficit"] = "warehouse.cbed-deficit";
|
|
83
|
-
PermissionResource["WarehouseProductDeficit"] = "warehouse.product-deficit";
|
|
84
|
-
PermissionResource["WarehouseMaterialDeficit"] = "warehouse.material-deficit";
|
|
85
|
-
PermissionResource["WarehouseDetalDeficit"] = "warehouse.detal-deficit";
|
|
86
|
-
PermissionResource["WarehouseShippedOrders"] = "warehouse.shipped-orders";
|
|
87
|
-
PermissionResource["WarehouseRevision"] = "warehouse.revision";
|
|
88
|
-
PermissionResource["WarehouseMovement"] = "warehouse.movement";
|
|
89
|
-
PermissionResource["WarehouseMetalworkingOrders"] = "warehouse.metalworking-orders";
|
|
90
|
-
PermissionResource["WarehouseAssemblyOrders"] = "warehouse.assembly-orders";
|
|
91
|
-
PermissionResource["WarehouseRacks"] = "warehouse.racks";
|
|
92
|
-
PermissionResource["Production"] = "production";
|
|
93
|
-
PermissionResource["ProductionOverview"] = "production.overview";
|
|
94
|
-
PermissionResource["ProductionTasks"] = "production.tasks";
|
|
95
|
-
PermissionResource["ProductionMetalworking"] = "production.metalworking";
|
|
96
|
-
PermissionResource["ProductionAssembly"] = "production.assembly";
|
|
97
|
-
PermissionResource["ProductionOperationMetalworking"] = "production.operation-metalworking";
|
|
98
|
-
PermissionResource["ProductionOperationAssembly"] = "production.operation-assembly";
|
|
99
|
-
PermissionResource["ProductionBoard"] = "production.board";
|
|
100
|
-
PermissionResource["ProductionBoardMetalworking"] = "production.board-metalworking";
|
|
101
|
-
PermissionResource["ProductionOnlineBoard"] = "production.online-board";
|
|
102
|
-
PermissionResource["Control"] = "control";
|
|
103
|
-
PermissionResource["ControlArchive"] = "control.archive";
|
|
104
|
-
PermissionResource["ControlActions"] = "control.actions";
|
|
105
|
-
PermissionResource["ControlMarks"] = "control.marks";
|
|
106
|
-
PermissionResource["Settings"] = "settings";
|
|
107
|
-
PermissionResource["SettingsOverview"] = "settings.overview";
|
|
108
|
-
PermissionResource["SettingsEmployees"] = "settings.employees";
|
|
109
|
-
PermissionResource["SettingsUnits"] = "settings.units";
|
|
110
|
-
PermissionResource["SettingsMaterials"] = "settings.materials";
|
|
111
|
-
PermissionResource["SettingsOperations"] = "settings.operations";
|
|
112
|
-
PermissionResource["SettingsTools"] = "settings.tools";
|
|
113
|
-
PermissionResource["SettingsEquipment"] = "settings.equipment";
|
|
114
|
-
PermissionResource["SettingsInventory"] = "settings.inventory";
|
|
115
|
-
PermissionResource["SettingsDeficit"] = "settings.deficit";
|
|
116
|
-
PermissionResource["SettingsTimeTracking"] = "settings.time-tracking";
|
|
117
|
-
PermissionResource["SettingsRoles"] = "settings.roles";
|
|
118
|
-
PermissionResource["SettingsPositions"] = "settings.positions";
|
|
119
|
-
PermissionResource["SettingsNormHours"] = "settings.norm-hours";
|
|
120
|
-
PermissionResource["SettingsBackups"] = "settings.backups";
|
|
121
|
-
PermissionResource["SettingsNotifications"] = "settings.notifications";
|
|
122
|
-
PermissionResource["SettingsExclusions"] = "settings.exclusions";
|
|
123
|
-
})(PermissionResource || (exports.PermissionResource = PermissionResource = {}));
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PermissionActionSchema: z.ZodEnum<["archive" | "create" | "view" | "update" | "attach" | "detach", ...("archive" | "create" | "view" | "update" | "attach" | "detach")[]]>;
|
|
3
|
-
export declare const PermissionResourceCodeSchema: z.ZodEnum<["files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions", ...("files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions")[]]>;
|
|
4
|
-
export declare const AuthorizationResourceSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
code: z.ZodEnum<["files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions", ...("files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions")[]]>;
|
|
7
|
-
parent_id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
-
title: z.ZodString;
|
|
9
|
-
description: z.ZodDefault<z.ZodString>;
|
|
10
|
-
sort_order: z.ZodDefault<z.ZodNumber>;
|
|
11
|
-
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
14
|
-
description: string;
|
|
15
|
-
id: number;
|
|
16
|
-
title: string;
|
|
17
|
-
parent_id: number | null;
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
sort_order: number;
|
|
20
|
-
}, {
|
|
21
|
-
code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
22
|
-
id: number;
|
|
23
|
-
title: string;
|
|
24
|
-
parent_id: number | null;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
is_active?: boolean | undefined;
|
|
27
|
-
sort_order?: number | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const AuthorizationPermissionSchema: z.ZodObject<{
|
|
30
|
-
id: z.ZodNumber;
|
|
31
|
-
resource_id: z.ZodNumber;
|
|
32
|
-
action: z.ZodEnum<["archive" | "create" | "view" | "update" | "attach" | "detach", ...("archive" | "create" | "view" | "update" | "attach" | "detach")[]]>;
|
|
33
|
-
description: z.ZodDefault<z.ZodString>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
description: string;
|
|
36
|
-
id: number;
|
|
37
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
38
|
-
resource_id: number;
|
|
39
|
-
}, {
|
|
40
|
-
id: number;
|
|
41
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
42
|
-
resource_id: number;
|
|
43
|
-
description?: string | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
export declare const EffectivePermissionSchema: z.ZodObject<{
|
|
46
|
-
permission_id: z.ZodNumber;
|
|
47
|
-
resource_code: z.ZodEnum<["files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions", ...("files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions")[]]>;
|
|
48
|
-
action: z.ZodEnum<["archive" | "create" | "view" | "update" | "attach" | "detach", ...("archive" | "create" | "view" | "update" | "attach" | "detach")[]]>;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
51
|
-
permission_id: number;
|
|
52
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
53
|
-
}, {
|
|
54
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
55
|
-
permission_id: number;
|
|
56
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
57
|
-
}>;
|
|
58
|
-
export declare const PermissionCatalogItemSchema: z.ZodObject<{
|
|
59
|
-
id: z.ZodNumber;
|
|
60
|
-
code: z.ZodEnum<["files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions", ...("files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions")[]]>;
|
|
61
|
-
parent_id: z.ZodNullable<z.ZodNumber>;
|
|
62
|
-
title: z.ZodString;
|
|
63
|
-
description: z.ZodDefault<z.ZodString>;
|
|
64
|
-
sort_order: z.ZodDefault<z.ZodNumber>;
|
|
65
|
-
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
-
} & {
|
|
67
|
-
permissions: z.ZodArray<z.ZodObject<{
|
|
68
|
-
id: z.ZodNumber;
|
|
69
|
-
resource_id: z.ZodNumber;
|
|
70
|
-
action: z.ZodEnum<["archive" | "create" | "view" | "update" | "attach" | "detach", ...("archive" | "create" | "view" | "update" | "attach" | "detach")[]]>;
|
|
71
|
-
description: z.ZodDefault<z.ZodString>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
description: string;
|
|
74
|
-
id: number;
|
|
75
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
76
|
-
resource_id: number;
|
|
77
|
-
}, {
|
|
78
|
-
id: number;
|
|
79
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
80
|
-
resource_id: number;
|
|
81
|
-
description?: string | undefined;
|
|
82
|
-
}>, "many">;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
85
|
-
description: string;
|
|
86
|
-
id: number;
|
|
87
|
-
title: string;
|
|
88
|
-
parent_id: number | null;
|
|
89
|
-
is_active: boolean;
|
|
90
|
-
sort_order: number;
|
|
91
|
-
permissions: {
|
|
92
|
-
description: string;
|
|
93
|
-
id: number;
|
|
94
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
95
|
-
resource_id: number;
|
|
96
|
-
}[];
|
|
97
|
-
}, {
|
|
98
|
-
code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
99
|
-
id: number;
|
|
100
|
-
title: string;
|
|
101
|
-
parent_id: number | null;
|
|
102
|
-
permissions: {
|
|
103
|
-
id: number;
|
|
104
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
105
|
-
resource_id: number;
|
|
106
|
-
description?: string | undefined;
|
|
107
|
-
}[];
|
|
108
|
-
description?: string | undefined;
|
|
109
|
-
is_active?: boolean | undefined;
|
|
110
|
-
sort_order?: number | undefined;
|
|
111
|
-
}>;
|
|
112
|
-
export declare const EffectiveRolePermissionsSchema: z.ZodObject<{
|
|
113
|
-
roleId: z.ZodNumber;
|
|
114
|
-
permissionsVersion: z.ZodNumber;
|
|
115
|
-
permissions: z.ZodArray<z.ZodObject<{
|
|
116
|
-
permission_id: z.ZodNumber;
|
|
117
|
-
resource_code: z.ZodEnum<["files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions", ...("files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions")[]]>;
|
|
118
|
-
action: z.ZodEnum<["archive" | "create" | "view" | "update" | "attach" | "detach", ...("archive" | "create" | "view" | "update" | "attach" | "detach")[]]>;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
121
|
-
permission_id: number;
|
|
122
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
123
|
-
}, {
|
|
124
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
125
|
-
permission_id: number;
|
|
126
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
127
|
-
}>, "many">;
|
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
roleId: number;
|
|
130
|
-
permissions: {
|
|
131
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
132
|
-
permission_id: number;
|
|
133
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
134
|
-
}[];
|
|
135
|
-
permissionsVersion: number;
|
|
136
|
-
}, {
|
|
137
|
-
roleId: number;
|
|
138
|
-
permissions: {
|
|
139
|
-
action: "archive" | "create" | "view" | "update" | "attach" | "detach";
|
|
140
|
-
permission_id: number;
|
|
141
|
-
resource_code: "files" | "general" | "general.home" | "general.work-results" | "general.projects" | "general.calendar" | "account" | "account.profile" | "catalog" | "catalog.products" | "catalog.cbeds" | "catalog.detals" | "catalog.materials" | "catalog.tools" | "catalog.equipment" | "catalog.inventory" | "catalog.contacts" | "catalog.companies" | "files.library" | "files.attachments" | "files.attachments.product" | "files.attachments.cbed" | "files.attachments.detal" | "files.attachments.material" | "files.attachments.provider" | "files.attachments.company" | "files.attachments.equipment" | "files.attachments.instrument" | "files.attachments.inventory" | "files.attachments.user" | "files.attachments.waybill" | "files.attachments.delivery" | "files.attachments.shipment" | "files.attachments.operation" | "files.attachments.tech-process" | "files.attachments.assemble-kit" | "files.attachments.moving" | "files.attachments.shipment-completion" | "shipping" | "shipping.tasks" | "warehouse" | "warehouse.overview" | "warehouse.receipts" | "warehouse.consumption" | "warehouse.completed-kits" | "warehouse.product-residuals" | "warehouse.ordered-in-transit" | "warehouse.shipping-tasks" | "warehouse.cbed-completion" | "warehouse.product-completion" | "warehouse.supplier-orders" | "warehouse.cbed-deficit" | "warehouse.product-deficit" | "warehouse.material-deficit" | "warehouse.detal-deficit" | "warehouse.shipped-orders" | "warehouse.revision" | "warehouse.movement" | "warehouse.metalworking-orders" | "warehouse.assembly-orders" | "warehouse.racks" | "production" | "production.overview" | "production.tasks" | "production.metalworking" | "production.assembly" | "production.operation-metalworking" | "production.operation-assembly" | "production.board" | "production.board-metalworking" | "production.online-board" | "control" | "control.archive" | "control.actions" | "control.marks" | "settings" | "settings.overview" | "settings.employees" | "settings.units" | "settings.materials" | "settings.operations" | "settings.tools" | "settings.equipment" | "settings.inventory" | "settings.deficit" | "settings.time-tracking" | "settings.roles" | "settings.positions" | "settings.norm-hours" | "settings.backups" | "settings.notifications" | "settings.exclusions";
|
|
142
|
-
}[];
|
|
143
|
-
permissionsVersion: number;
|
|
144
|
-
}>;
|
|
145
|
-
export declare const RolePermissionSelectionSchema: z.ZodObject<{
|
|
146
|
-
roleId: z.ZodNumber;
|
|
147
|
-
roleName: z.ZodString;
|
|
148
|
-
isSystem: z.ZodBoolean;
|
|
149
|
-
permissionsVersion: z.ZodNumber;
|
|
150
|
-
permissionIds: z.ZodArray<z.ZodNumber, "many">;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
roleId: number;
|
|
153
|
-
permissionsVersion: number;
|
|
154
|
-
roleName: string;
|
|
155
|
-
isSystem: boolean;
|
|
156
|
-
permissionIds: number[];
|
|
157
|
-
}, {
|
|
158
|
-
roleId: number;
|
|
159
|
-
permissionsVersion: number;
|
|
160
|
-
roleName: string;
|
|
161
|
-
isSystem: boolean;
|
|
162
|
-
permissionIds: number[];
|
|
163
|
-
}>;
|
|
164
|
-
export type AuthorizationResourceType = z.infer<typeof AuthorizationResourceSchema>;
|
|
165
|
-
export type AuthorizationPermissionType = z.infer<typeof AuthorizationPermissionSchema>;
|
|
166
|
-
export type EffectivePermissionType = z.infer<typeof EffectivePermissionSchema>;
|
|
167
|
-
export type PermissionCatalogItemType = z.infer<typeof PermissionCatalogItemSchema>;
|
|
168
|
-
export type EffectiveRolePermissionsType = z.infer<typeof EffectiveRolePermissionsSchema>;
|
|
169
|
-
export type RolePermissionSelectionType = z.infer<typeof RolePermissionSelectionSchema>;
|