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