Added: SubLevel constant
This commit is contained in:
@@ -40,17 +40,19 @@ const CustomAttributeTypes = [
|
|||||||
"Enumerable",
|
"Enumerable",
|
||||||
];
|
];
|
||||||
|
|
||||||
const AUTHENTICATION_FAILURE_ERROR_MESSAGE =
|
const AUTHENTICATION_FAILURE_ERROR_MESSAGE = "Authentication Failed!";
|
||||||
"Authentication Failed!";
|
|
||||||
const AUTHORIZATION_FAILURE_ERROR_MESSAGE =
|
const AUTHORIZATION_FAILURE_ERROR_MESSAGE =
|
||||||
"User not permitted due to lack of access!";
|
"User not permitted due to lack of access!";
|
||||||
|
|
||||||
|
const SubLevelTypes = ["POSITION", "BIN", "PALLET"];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
UserActions,
|
UserActions,
|
||||||
InventoryScopes,
|
InventoryScopes,
|
||||||
WarehouseScopes,
|
WarehouseScopes,
|
||||||
InventoryTypes,
|
InventoryTypes,
|
||||||
CustomAttributeTypes,
|
CustomAttributeTypes,
|
||||||
|
SubLevelTypes,
|
||||||
SUPER_ADMIN_ROLE: "super-admin",
|
SUPER_ADMIN_ROLE: "super-admin",
|
||||||
COMPANY_ADMIN_ROLE: "company-admin",
|
COMPANY_ADMIN_ROLE: "company-admin",
|
||||||
WAREHOUSE_ADMIN_ROLE: "warehouse-admin",
|
WAREHOUSE_ADMIN_ROLE: "warehouse-admin",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
const mongoose = require("mongoose");
|
const mongoose = require("mongoose");
|
||||||
|
const { SubLevelTypes } = require("../config/constants");
|
||||||
|
|
||||||
const schema = new mongoose.Schema(
|
const schema = new mongoose.Schema(
|
||||||
{
|
{
|
||||||
@@ -26,7 +27,7 @@ const schema = new mongoose.Schema(
|
|||||||
type: {
|
type: {
|
||||||
required: true,
|
required: true,
|
||||||
type: String,
|
type: String,
|
||||||
enum: ["POSITION", "BIN", "PALLET"], // TODO: Add to constant file
|
enum: SubLevelTypes
|
||||||
},
|
},
|
||||||
depth: {
|
depth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
const mongoose = require("mongoose");
|
const mongoose = require("mongoose");
|
||||||
|
const { SubLevelTypes } = require("../config/constants");
|
||||||
|
|
||||||
const schema = new mongoose.Schema(
|
const schema = new mongoose.Schema(
|
||||||
{
|
{
|
||||||
@@ -10,7 +11,7 @@ const schema = new mongoose.Schema(
|
|||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
enum: ["POSITION", "BIN", "PALLET"], // TODO: Add to constant file
|
enum: SubLevelTypes
|
||||||
},
|
},
|
||||||
specs: {
|
specs: {
|
||||||
// TBD
|
// TBD
|
||||||
@@ -36,7 +37,7 @@ const schema = new mongoose.Schema(
|
|||||||
type: {
|
type: {
|
||||||
required: true,
|
required: true,
|
||||||
type: String,
|
type: String,
|
||||||
enum: ["POSITION", "BIN", "PALLET"],
|
enum: SubLevelTypes,
|
||||||
},
|
},
|
||||||
depth: {
|
depth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user