|
|
|
@ -177,7 +177,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for creating a new Team Member Account",
|
|
|
|
|
summary: "This is for creating a new Ream Member Account",
|
|
|
|
|
summary: "This is for creating a new Team Member Account",
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
//required: ["phone", "username", "password", "role"], // Add role to required fields
|
|
|
|
@ -200,6 +200,10 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
lastName: { type: "string" },
|
|
|
|
|
reportingManager: { type: "string" },
|
|
|
|
|
email: { type: "string" },
|
|
|
|
|
personal_city: { type: "string"},
|
|
|
|
|
officeName: { type: "string"},
|
|
|
|
|
reportingManager_mobile_number: { type: "string"},
|
|
|
|
|
reportingManager_email: { type: "string"},
|
|
|
|
|
location: {
|
|
|
|
|
type: "array",
|
|
|
|
|
items: { type: "string" },
|
|
|
|
@ -359,6 +363,10 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
departmentName: { type: "string" },
|
|
|
|
|
firstName: { type: "string" },
|
|
|
|
|
lastName: { type: "string" },
|
|
|
|
|
personal_city: { type: "string"},
|
|
|
|
|
officeName: { type: "string"},
|
|
|
|
|
reportingManager_mobile_number: { type: "string"},
|
|
|
|
|
reportingManager_email: { type: "string"},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|