Merge branch 'dev' of https://github.com/SyncrowIOT/backend into feat/commission-device

This commit is contained in:
hannathkadher
2025-04-15 20:01:45 +04:00
9 changed files with 228 additions and 4 deletions

View File

@ -345,6 +345,9 @@ export class ControllerRoute {
static PRODUCT = class {
public static readonly ROUTE = 'products';
static ACTIONS = class {
public static readonly CREATE_PRODUCT_SUMMARY = 'Create a new product';
public static readonly CREATE_PRODUCT_DESCRIPTION =
'This endpoint allows you to create a new product in the system.';
public static readonly LIST_PRODUCT_SUMMARY = 'Retrieve all products';
public static readonly LIST_PRODUCT_DESCRIPTION =
'Fetches a list of all products along with their associated device details';

View File

@ -55,6 +55,7 @@ export const RolePermissions = {
'USER_ADD',
'SPACE_MEMBER_ADD',
'COMMISSION_DEVICE',
'PRODUCT_ADD',
],
[RoleType.ADMIN]: [
'DEVICE_SINGLE_CONTROL',
@ -110,6 +111,7 @@ export const RolePermissions = {
'USER_ADD',
'SPACE_MEMBER_ADD',
'COMMISSION_DEVICE',
'PRODUCT_ADD',
],
[RoleType.SPACE_MEMBER]: [
'DEVICE_SINGLE_CONTROL',