Last active
November 5, 2020 07:57
-
-
Save agusmakmun/aa71dc2c6572b3de8d895ba1853943da to your computer and use it in GitHub Desktop.
can be partial & FE doesn't need to send the "description" field because it read-only fields. Note: this valid format focused on "generalPermissions".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dashboard": { | |
"generalPermissions": [] | |
}, | |
"scheduler": { | |
"generalPermissions": [ | |
{ | |
"code": "scheduler.add_plantrip", | |
"description": "Can add plan trip" | |
}, | |
{ | |
"code": "scheduler.change_plantrip", | |
"description": "Can change plan trip" | |
}, | |
{ | |
"code": "scheduler.delete_plantrip", | |
"description": "Can delete plan trip" | |
}, | |
{ | |
"code": "scheduler.view_plantrip", | |
"description": "Can view plan trip" | |
} | |
] | |
}, | |
"standingOrder": { | |
"generalPermissions": [ | |
{ | |
"code": "purchase_order.add_purchaseorder", | |
"description": "Can add purchase order" | |
}, | |
{ | |
"code": "purchase_order.admin_purchaseorder", | |
"description": "Admin Purchase Order" | |
}, | |
{ | |
"code": "purchase_order.change_purchaseorder", | |
"description": "Can change purchase order" | |
}, | |
{ | |
"code": "purchase_order.delete_purchaseorder", | |
"description": "Can delete purchase order" | |
}, | |
{ | |
"code": "purchase_order.view_purchaseorder", | |
"description": "Can view purchase order" | |
} | |
], | |
"permissionFilter": { | |
"jobCategories": [] | |
}, | |
"commentPermissions": [], | |
"attachmentPermissions": [] | |
}, | |
"jobOrder": { | |
"generalPermissions": [ | |
{ | |
"code": "job_order.add_joborder", | |
"description": "Can add job order" | |
}, | |
{ | |
"code": "job_order.admin_joborder", | |
"description": "Access to manage job order object permission" | |
}, | |
{ | |
"code": "job_order.change_joborder", | |
"description": "Can change job order" | |
}, | |
{ | |
"code": "job_order.delete_joborder", | |
"description": "Can delete job order" | |
}, | |
{ | |
"code": "job_order.view_joborder", | |
"description": "Can view job order" | |
} | |
], | |
"permissionFilter": { | |
"jobCategories": [] | |
}, | |
"commentPermissions": [], | |
"attachmentPermissions": [] | |
}, | |
"network": { | |
"generalPermissions": [ | |
{ | |
"code": "organization.add_haulieruser", | |
"description": "Can add Haulier User" | |
}, | |
{ | |
"code": "organization.admin_haulieruser", | |
"description": "Admin Haulier User" | |
}, | |
{ | |
"code": "organization.change_haulieruser", | |
"description": "Can change Haulier User" | |
}, | |
{ | |
"code": "organization.delete_haulieruser", | |
"description": "Can delete Haulier User" | |
}, | |
{ | |
"code": "organization.view_haulieruser", | |
"description": "Can view Haulier User" | |
} | |
] | |
}, | |
"humanResource": { | |
"generalPermissions": [ | |
{ | |
"code": "human_resource.add_driver", | |
"description": "Can add driver" | |
}, | |
{ | |
"code": "human_resource.change_driver", | |
"description": "Can change driver" | |
}, | |
{ | |
"code": "human_resource.delete_driver", | |
"description": "Can delete driver" | |
}, | |
{ | |
"code": "human_resource.view_driver", | |
"description": "Can view driver" | |
} | |
] | |
}, | |
"assetManagement": { | |
"generalPermissions": [ | |
{ | |
"code": "company_assets.add_vehicle", | |
"description": "Can add vehicle" | |
}, | |
{ | |
"code": "company_assets.change_vehicle", | |
"description": "Can change vehicle" | |
}, | |
{ | |
"code": "company_assets.delete_vehicle", | |
"description": "Can delete vehicle" | |
}, | |
{ | |
"code": "company_assets.view_vehicle", | |
"description": "Can view vehicle" | |
} | |
] | |
}, | |
"organizationType": "haulier" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dashboard": { | |
"generalPermissions": [] | |
}, | |
"scheduler": { | |
"generalPermissions": [ | |
{ | |
"code": "scheduler.add_plantrip", | |
"description": "Can add plan trip" | |
}, | |
{ | |
"code": "scheduler.change_plantrip", | |
"description": "Can change plan trip" | |
}, | |
{ | |
"code": "scheduler.delete_plantrip", | |
"description": "Can delete plan trip" | |
}, | |
{ | |
"code": "scheduler.view_plantrip", | |
"description": "Can view plan trip" | |
} | |
] | |
}, | |
"standingOrder": { | |
"generalPermissions": [ | |
{ | |
"code": "purchase_order.add_purchaseorder", | |
"description": "Can add purchase order" | |
}, | |
{ | |
"code": "purchase_order.admin_purchaseorder", | |
"description": "Admin Purchase Order" | |
}, | |
{ | |
"code": "purchase_order.change_purchaseorder", | |
"description": "Can change purchase order" | |
}, | |
{ | |
"code": "purchase_order.delete_purchaseorder", | |
"description": "Can delete purchase order" | |
}, | |
{ | |
"code": "purchase_order.view_purchaseorder", | |
"description": "Can view purchase order" | |
} | |
], | |
"permissionFilter": { | |
"jobCategories": [] | |
}, | |
"commentPermissions": [], | |
"attachmentPermissions": [] | |
}, | |
"jobOrder": { | |
"generalPermissions": [ | |
{ | |
"code": "job_order.add_joborder", | |
"description": "Can add job order" | |
}, | |
{ | |
"code": "job_order.admin_joborder", | |
"description": "Access to manage job order object permission" | |
}, | |
{ | |
"code": "job_order.change_joborder", | |
"description": "Can change job order" | |
}, | |
{ | |
"code": "job_order.delete_joborder", | |
"description": "Can delete job order" | |
}, | |
{ | |
"code": "job_order.view_joborder", | |
"description": "Can view job order" | |
} | |
], | |
"permissionFilter": { | |
"jobCategories": [] | |
}, | |
"commentPermissions": [], | |
"attachmentPermissions": [] | |
}, | |
"network": { | |
"generalPermissions": [ | |
{ | |
"code": "organization.add_customeruser", | |
"description": "Can add Customer User" | |
}, | |
{ | |
"code": "organization.admin_customeruser", | |
"description": "Admin Customer User" | |
}, | |
{ | |
"code": "organization.change_customeruser", | |
"description": "Can change Customer User" | |
}, | |
{ | |
"code": "organization.delete_customeruser", | |
"description": "Can delete Customer User" | |
}, | |
{ | |
"code": "organization.view_customeruser", | |
"description": "Can view Customer User" | |
} | |
] | |
}, | |
"humanResource": { | |
"generalPermissions": [ | |
{ | |
"code": "human_resource.add_driver", | |
"description": "Can add driver" | |
}, | |
{ | |
"code": "human_resource.change_driver", | |
"description": "Can change driver" | |
}, | |
{ | |
"code": "human_resource.delete_driver", | |
"description": "Can delete driver" | |
}, | |
{ | |
"code": "human_resource.view_driver", | |
"description": "Can view driver" | |
} | |
] | |
}, | |
"assetManagement": { | |
"generalPermissions": [ | |
{ | |
"code": "company_assets.add_vehicle", | |
"description": "Can add vehicle" | |
}, | |
{ | |
"code": "company_assets.change_vehicle", | |
"description": "Can change vehicle" | |
}, | |
{ | |
"code": "company_assets.delete_vehicle", | |
"description": "Can delete vehicle" | |
}, | |
{ | |
"code": "company_assets.view_vehicle", | |
"description": "Can view vehicle" | |
} | |
] | |
}, | |
"organizationType": "haulier" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment