├── .gitignore ├── controllers ├── admin-controller.js ├── collection-controller.js ├── student-controller.js └── super-admin-controller.js ├── index.js ├── middlewares ├── isAdmin.js ├── isExisted.js ├── isSuperAdmin.js ├── uploadAudio.js └── uploadImage.js ├── models ├── admin-model.js ├── collection-model.js ├── student-model.js └── super-admin-model.js ├── package-lock.json ├── package.json ├── routes ├── admin-routes.js ├── collection-routes.js ├── student-routes.js └── super-admin-routes.js └── swagger.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | uploads 4 | -------------------------------------------------------------------------------- /controllers/admin-controller.js: -------------------------------------------------------------------------------- 1 | import bcrypt from "bcrypt"; 2 | import jwt from "jsonwebtoken"; 3 | import Admin from "../models/admin-model.js"; 4 | 5 | export const register = async (req, res) => { 6 | const { firstName, phoneNumber, password } = req.body; 7 | 8 | try { 9 | const existingUser = await Admin.findOne({ phoneNumber }); 10 | if (existingUser) 11 | return res.status(400).json({ message: "Phone number already exists" }); 12 | 13 | const salt = await bcrypt.genSalt(10); 14 | const hashedPassword = await bcrypt.hash(password, salt); 15 | 16 | const newAdmin = new Admin({ 17 | firstName, 18 | phoneNumber, 19 | password: hashedPassword, 20 | }); 21 | await newAdmin.save(); 22 | 23 | res.status(201).json({ message: "Admin registered successfully" }); 24 | } catch (error) { 25 | res.status(500).json({ message: error.message }); 26 | } 27 | }; 28 | 29 | export const login = async (req, res) => { 30 | const { phoneNumber, password } = req.body; 31 | 32 | try { 33 | const admin = await Admin.findOne({ phoneNumber }); 34 | if (!admin) return res.status(404).json({ message: "Admin not found" }); 35 | 36 | const isMatch = await bcrypt.compare(password, admin.password); 37 | if (!isMatch) 38 | return res.status(400).json({ message: "Invalid credentials" }); 39 | 40 | const token = jwt.sign( 41 | { id: admin._id, role: admin.role }, 42 | process.env.JWT_SECRET, 43 | { expiresIn: "30d" } 44 | ); 45 | 46 | res.json({ token, admin }); 47 | } catch (error) { 48 | res.status(500).json({ message: error.message }); 49 | } 50 | }; 51 | 52 | export const getAllAdmins = async (_, res) => { 53 | try { 54 | // const admins = await Admin.find().select("-password"); 55 | const admins = await Admin.find(); 56 | res.json(admins); 57 | } catch (error) { 58 | res.status(500).json({ message: error.message }); 59 | } 60 | }; 61 | 62 | export const getAdmin = async (req, res) => { 63 | try { 64 | const admin = await Admin.findById(req.params.id).select("-password"); 65 | if (!admin) return res.status(404).json({ message: "Admin not found" }); 66 | 67 | res.json(admin); 68 | } catch (error) { 69 | res.status(500).json({ message: error.message }); 70 | } 71 | }; 72 | 73 | export const updateAdmin = async (req, res) => { 74 | try { 75 | const updatedAdmin = await Admin.findByIdAndUpdate( 76 | req.params.id, 77 | req.body, 78 | { new: true } 79 | ).select("-password"); 80 | res.json(updatedAdmin); 81 | } catch (error) { 82 | res.status(500).json({ message: error.message }); 83 | } 84 | }; 85 | 86 | export const deleteAdmin = async (req, res) => { 87 | try { 88 | await Admin.findByIdAndDelete(req.params.id); 89 | res.json({ message: "Admin deleted" }); 90 | } catch (error) { 91 | res.status(500).json({ message: error.message }); 92 | } 93 | }; 94 | 95 | 96 | export const GetMe = async (req, res) => { 97 | try { 98 | const foundAdmin = await Admin.findById(req.userInfo.userId); 99 | if (!foundAdmin) 100 | return res.status(404).json({ message: "Admin topilmadi." }); 101 | return res.status(200).json({ data: foundAdmin }); 102 | } catch (error) { 103 | res.status(500).json({ error: error.message }); 104 | } 105 | }; -------------------------------------------------------------------------------- /controllers/collection-controller.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose"; 2 | import collectionModel from "../models/collection-model.js"; 3 | 4 | export const getAllCollections = async (_, res) => { 5 | try { 6 | const collections = await collectionModel.find(); 7 | res.status(200).json({ data: collections }); 8 | } catch (error) { 9 | res.status(500).json({ message: error.message }); 10 | } 11 | }; 12 | 13 | export const getCollectionByName = async (req, res) => { 14 | try { 15 | const { collectionName } = req.params; 16 | const collectionNameRegExp = new RegExp(collectionName, "i"); 17 | 18 | const book = await collectionModel.findOne({ 19 | collectionName: collectionNameRegExp, 20 | }); 21 | 22 | if (!book) { 23 | return res.status(404).json({ message: "Book not found!" }); 24 | } 25 | 26 | res.status(200).json({ data: book }); 27 | } catch (error) { 28 | res.status(500).json({ message: error.message }); 29 | } 30 | }; 31 | 32 | export const getBookByName = async (req, res) => { 33 | try { 34 | const { collectionName, bookName } = req.params; 35 | 36 | const collection = await collectionModel.findOne( 37 | { 38 | collectionName: new RegExp(`^${collectionName}$`, "i"), 39 | books: { $elemMatch: { name: new RegExp(`^${bookName}$`, "i") } }, 40 | }, 41 | { "books.$": 1 } 42 | ); 43 | 44 | if (!collection) { 45 | return res.status(404).json({ message: "Collection or book not found!" }); 46 | } 47 | 48 | res.status(200).json({ data: collection.books[0] }); 49 | } catch (error) { 50 | res.status(500).json({ message: error.message }); 51 | } 52 | }; 53 | 54 | export const getUnits = async (req, res) => { 55 | try { 56 | const { collectionName, bookName, level } = req.params; 57 | 58 | const collectionNameRegExp = new RegExp(collectionName, "i"); 59 | 60 | const foundCollection = await collectionModel.findOne({ 61 | collectionName: collectionNameRegExp, 62 | }); 63 | 64 | if (!foundCollection) { 65 | return res.status(404).json({ message: "Collection not found!" }); 66 | } 67 | 68 | const foundBook = foundCollection.books.find( 69 | (book) => book.name.toLowerCase() === bookName.toLowerCase() 70 | ); 71 | 72 | if (!foundBook) { 73 | return res.status(404).json({ message: "Book not found!" }); 74 | } 75 | 76 | const foundLevel = foundBook.levels.find( 77 | (lvl) => lvl.level.toLowerCase() === level.toLowerCase() 78 | ); 79 | 80 | if (!foundLevel) { 81 | return res.status(404).json({ message: "Level not found!" }); 82 | } 83 | 84 | res.status(200).json({ data: foundLevel.units }); 85 | } catch (error) { 86 | res.status(500).json({ message: error.message }); 87 | } 88 | }; 89 | 90 | export const getOneUnit = async (req, res) => { 91 | try { 92 | const { collectionName, bookName, level, unitId } = req.params; 93 | 94 | const collectionNameRegExp = new RegExp(`^${collectionName}$`, "i"); 95 | const unitIdRegExp = new RegExp(`^${unitId}$`, "i"); 96 | 97 | const foundCollection = await collectionModel.findOne({ 98 | collectionName: collectionNameRegExp, 99 | }); 100 | 101 | if (!foundCollection) { 102 | return res.status(404).json({ message: "Collection not found!" }); 103 | } 104 | 105 | const foundBook = foundCollection.books.find( 106 | (book) => book.name.toLowerCase() === bookName.toLowerCase() 107 | ); 108 | 109 | if (!foundBook) { 110 | return res.status(404).json({ message: "Book not found!" }); 111 | } 112 | 113 | const foundLevel = foundBook.levels.find( 114 | (lvl) => lvl.level.toLowerCase() === level.toLowerCase() 115 | ); 116 | 117 | if (!foundLevel) { 118 | return res.status(404).json({ message: "Level not found!" }); 119 | } 120 | 121 | const unit = foundLevel.units.find((u) => unitIdRegExp.test(u._id)); 122 | 123 | if (!unit) { 124 | return res.status(404).json({ message: "Unit not found!" }); 125 | } 126 | 127 | res.status(200).json({ data: unit }); 128 | } catch (error) { 129 | res.status(500).json({ message: error.message }); 130 | } 131 | }; 132 | 133 | export const createCollection = async (req, res) => { 134 | const { collectionName, books } = req.body; 135 | 136 | try { 137 | const newCollection = await collectionModel.create({ 138 | collectionName, 139 | collectionImage: req.uploadedImage, 140 | books: books ? JSON.parse(books) : [], 141 | }); 142 | 143 | return res 144 | .status(200) 145 | .json({ message: "New Book created successfully", data: newCollection }); 146 | } catch (error) { 147 | return res.status(500).json({ message: error.message }); 148 | } 149 | }; 150 | 151 | export const createBook = async (req, res) => { 152 | const { name, collectionId } = req.body; 153 | 154 | try { 155 | const collection = await collectionModel.findById(collectionId); 156 | collection.books.push({ 157 | name, 158 | }); 159 | collection.save(); 160 | res.status(200).json({ data: collection }); 161 | } catch (error) { 162 | return res.status(500).json({ message: error.message }); 163 | } 164 | }; 165 | 166 | export const createLevel = async (req, res) => { 167 | const { level, collectionName, bookId } = req.body; 168 | 169 | try { 170 | const collection = await collectionModel.findOne({ collectionName }); 171 | if (!collection) { 172 | return res.status(404).json({ message: "Collection not found" }); 173 | } 174 | 175 | const book = collection.books.find((bt) => bt._id.equals(bookId)); 176 | if (!book) { 177 | return res.status(404).json({ message: "Book not found" }); 178 | } 179 | 180 | if (book.levels.some((lvl) => lvl.level === level)) { 181 | return res.status(409).json({ message: "Level already exists!" }); 182 | } 183 | 184 | book.levels.push({ level, units: [] }); 185 | 186 | await collection.save(); 187 | 188 | res.status(200).json({ message: "Level added successfully" }); 189 | } catch (error) { 190 | console.error(error); 191 | res.status(500).json({ message: "Internal server error" }); 192 | } 193 | }; 194 | 195 | export const editCollection = async (req, res) => { 196 | try { 197 | const { id } = req.params; 198 | const editedCollection = await collectionModel.findByIdAndUpdate( 199 | id, 200 | req.body, 201 | { 202 | new: true, 203 | } 204 | ); 205 | res.status(200).json({ 206 | message: "Collection edited succesfully", 207 | data: editedCollection, 208 | }); 209 | } catch (error) { 210 | res.status(500).json({ message: error.message }); 211 | } 212 | }; 213 | 214 | export const editBook = async (req, res) => { 215 | try { 216 | const { collectionId, bookId, editedBookName } = req.body; 217 | 218 | const collection = await collectionModel.findOneAndUpdate( 219 | { _id: collectionId, "books._id": bookId }, 220 | { $set: { "books.$.name": editedBookName } }, 221 | { new: true } 222 | ); 223 | 224 | if (!collection) { 225 | return res.status(404).json({ message: "Collection or Book not found" }); 226 | } 227 | 228 | res.status(200).json({ message: "Book name updated successfully" }); 229 | } catch (error) { 230 | console.error("Error updating book name:", error); 231 | res.status(500).json({ error: "Internal server error" }); 232 | } 233 | }; 234 | 235 | export const deleteCollection = async (req, res) => { 236 | try { 237 | const { id } = req.params; 238 | const collection = await collectionModel.findById(id); 239 | if (!collection) { 240 | return res.status(404).json({ message: "Collection not found!" }); 241 | } 242 | const deletedCollection = await collectionModel.findByIdAndDelete(id); 243 | res 244 | .status(200) 245 | .json({ message: "Collection deleted succesfully", deletedCollection }); 246 | } catch (error) { 247 | res.status(500).json({ message: error.message }); 248 | } 249 | }; 250 | 251 | export const deleteBook = async (req, res) => { 252 | try { 253 | const { collectionName, bookId } = req.params; 254 | 255 | const updatedCollection = await collectionModel.findOne({ 256 | collectionName, 257 | }); 258 | 259 | if (!updatedCollection) { 260 | return res.status(404).json({ message: "Collection not found!" }); 261 | } 262 | 263 | updatedCollection.books.pull({ _id: bookId }); 264 | 265 | updatedCollection.save(); 266 | return res.status(200).json({ 267 | message: "Book deleted successfully!", 268 | updatedCollection, 269 | }); 270 | } catch (error) { 271 | res.status(500).json({ message: error.message }); 272 | } 273 | }; 274 | 275 | export const addUnit = async (req, res) => { 276 | try { 277 | const { collectionName, bookName, levelId } = req.params; 278 | 279 | const { title } = req.body; 280 | 281 | const collection = await collectionModel.findOne({ collectionName }); 282 | 283 | if (!collection) { 284 | return res.status(404).json({ message: "Collection not found!" }); 285 | } 286 | 287 | const book = collection.books.find((b) => b.name.toString() === bookName); 288 | if (!book) { 289 | return res.status(404).json({ message: "Book not found!" }); 290 | } 291 | 292 | const level = book.levels.find((l) => l._id.toString() === levelId); 293 | if (!level) { 294 | return res.status(404).json({ message: "Level not found!" }); 295 | } 296 | 297 | const newUnit = { 298 | title, 299 | audios: [], 300 | }; 301 | 302 | level.units.push(newUnit); 303 | await collection.save(); 304 | return res 305 | .status(201) 306 | .json({ message: "Unit added successfully!", newUnit }); 307 | } catch (error) { 308 | console.error("Error adding unit:", error); 309 | return res.status(500).json({ message: "Server error!" }); 310 | } 311 | }; 312 | 313 | export const addAudio = async (req, res) => { 314 | try { 315 | const { collectionName, bookName, level, unitId } = req.params; 316 | const { label } = req.body; 317 | 318 | if (!req.uploadedAudio) { 319 | return res.status(400).json({ message: "Audio upload failed" }); 320 | } 321 | 322 | const collection = await collectionModel.findOne({ collectionName }); 323 | 324 | if (!collection) { 325 | return res.status(404).json({ message: "Collection not found" }); 326 | } 327 | 328 | const book = collection.books.find((b) => b.name === bookName); 329 | if (!book) { 330 | return res.status(404).json({ message: "Book not found" }); 331 | } 332 | 333 | const levelObj = book.levels.find((l) => l.level === level); 334 | if (!levelObj) { 335 | return res.status(404).json({ message: "Level not found" }); 336 | } 337 | 338 | const unitObjectId = new mongoose.Types.ObjectId(unitId); 339 | const unit = levelObj.units.find((u) => 340 | new mongoose.Types.ObjectId(u._id).equals(unitObjectId) 341 | ); 342 | 343 | if (!unit) { 344 | return res.status(404).json({ message: "Unit not found" }); 345 | } 346 | 347 | unit.audios = [...(unit.audios || []), { label, file: req.uploadedAudio }]; 348 | 349 | await collection.save(); 350 | 351 | return res.status(200).json({ 352 | message: "Audio files added successfully", 353 | }); 354 | } catch (error) { 355 | console.error("Error adding unit:", error); 356 | return res.status(500).json({ message: "Server error!" }); 357 | } 358 | }; 359 | -------------------------------------------------------------------------------- /controllers/student-controller.js: -------------------------------------------------------------------------------- 1 | import bcrypt from "bcrypt"; 2 | import jwt from "jsonwebtoken"; 3 | import StudentModel from "../models/student-model.js"; 4 | 5 | export const register = async (req, res) => { 6 | const { firstName, lastName, phoneNumber, password } = req.body; 7 | 8 | try { 9 | const existingUser = await StudentModel.findOne({ phoneNumber }); 10 | if (existingUser) 11 | return res.status(400).json({ message: "Phone number already exists" }); 12 | 13 | const salt = await bcrypt.genSalt(10); 14 | const hashedPassword = await bcrypt.hash(password, salt); 15 | 16 | const newStudent = new StudentModel({ 17 | firstName, 18 | lastName, 19 | phoneNumber, 20 | password: hashedPassword, 21 | }); 22 | await newStudent.save(); 23 | 24 | res.status(201).json({ message: "Student registered successfully" }); 25 | } catch (error) { 26 | res.status(500).json({ message: error.message }); 27 | } 28 | }; 29 | 30 | export const login = async (req, res) => { 31 | const { phoneNumber, password } = req.body; 32 | 33 | try { 34 | const student = await StudentModel.findOne({ phoneNumber }); 35 | if (!student) return res.status(404).json({ message: "Student not found" }); 36 | 37 | const isMatch = await bcrypt.compare(password, student.password); 38 | if (!isMatch) 39 | return res.status(400).json({ message: "Invalid credentials" }); 40 | 41 | const token = jwt.sign( 42 | { id: student._id, role: student.role }, 43 | process.env.JWT_SECRET, 44 | { expiresIn: "30d" } 45 | ); 46 | 47 | res.json({ token, student }); 48 | } catch (error) { 49 | res.status(500).json({ message: error.message }); 50 | } 51 | }; 52 | 53 | export const getAllStudentModels = async (req, res) => { 54 | try { 55 | const students = await StudentModel.find().select("-password"); 56 | res.json(students); 57 | } catch (error) { 58 | res.status(500).json({ message: error.message }); 59 | } 60 | }; 61 | 62 | export const getStudentModel = async (req, res) => { 63 | try { 64 | const student = await StudentModel.findById(req.params.id).select( 65 | "-password" 66 | ); 67 | if (!student) return res.status(404).json({ message: "Student not found" }); 68 | 69 | res.json(student); 70 | } catch (error) { 71 | res.status(500).json({ message: error.message }); 72 | } 73 | }; 74 | 75 | export const updateStudentModel = async (req, res) => { 76 | try { 77 | const updatedStudent = await StudentModel.findByIdAndUpdate( 78 | req.params.id, 79 | req.body, 80 | { new: true } 81 | ).select("-password"); 82 | res.json(updatedStudent); 83 | } catch (error) { 84 | res.status(500).json({ message: error.message }); 85 | } 86 | }; 87 | 88 | export const deleteStudentModel = async (req, res) => { 89 | try { 90 | await StudentModel.findByIdAndDelete(req.params.id); 91 | res.json({ message: "Student deleted" }); 92 | } catch (error) { 93 | res.status(500).json({ message: error.message }); 94 | } 95 | }; 96 | 97 | export const GetMe = async (req, res) => { 98 | try { 99 | const foundAdmin = await StudentModel.findById(req.userInfo.userId); 100 | if (!foundAdmin) 101 | return res.status(404).json({ message: "Student topilmadi." }); 102 | return res.status(200).json({ data: foundAdmin }); 103 | } catch (error) { 104 | res.status(500).json({ error: error.message }); 105 | } 106 | }; 107 | 108 | export const Verify = async (req,res) => { 109 | try { 110 | const { id } = req.params 111 | const user = await StudentModel.findById(id) 112 | if(user.payment.status === false){ 113 | user.payment.status = true, 114 | user.payment.lastPaidDate = Date.now() 115 | user.payment.paymentHistory.push(user.payment.lastPaidDate) 116 | user.save() 117 | res.status(200).json(user) 118 | }else{ 119 | res.status(400).json({message:"User already paid"}) 120 | } 121 | } catch (error) { 122 | res.status(500).json({ error: error.message }); 123 | } 124 | } -------------------------------------------------------------------------------- /controllers/super-admin-controller.js: -------------------------------------------------------------------------------- 1 | import bcrypt from "bcrypt"; 2 | import jwt from "jsonwebtoken"; 3 | import SuperAdmin from "../models/super-admin-model.js"; 4 | 5 | export const register = async (req, res) => { 6 | const { firstName, lastName, phoneNumber, password } = req.body; 7 | 8 | try { 9 | const existingUser = await SuperAdmin.findOne({ phoneNumber }); 10 | if (existingUser) 11 | return res.status(400).json({ message: "Phone number already exists" }); 12 | 13 | const salt = await bcrypt.genSalt(10); 14 | const hashedPassword = await bcrypt.hash(password, salt); 15 | 16 | const newAdmin = new SuperAdmin({ 17 | firstName, 18 | lastName, 19 | phoneNumber, 20 | password: hashedPassword, 21 | }); 22 | await newAdmin.save(); 23 | 24 | res.status(201).json({ message: "SuperAdmin registered successfully" }); 25 | } catch (error) { 26 | res.status(500).json({ message: error.message }); 27 | } 28 | }; 29 | 30 | export const login = async (req, res) => { 31 | const { phoneNumber, password } = req.body; 32 | 33 | try { 34 | const admin = await SuperAdmin.findOne({ phoneNumber }); 35 | if (!admin) 36 | return res.status(404).json({ message: "SuperAdmin not found" }); 37 | 38 | const isMatch = await bcrypt.compare(password, admin.password); 39 | if (!isMatch) 40 | return res.status(400).json({ message: "Invalid credentials" }); 41 | 42 | const token = jwt.sign( 43 | { id: admin._id, role: admin.role }, 44 | process.env.JWT_SECRET, 45 | { expiresIn: "30d" } 46 | ); 47 | 48 | res.json({ token, admin }); 49 | } catch (error) { 50 | res.status(500).json({ message: error.message }); 51 | } 52 | }; 53 | 54 | export const getAllSuperAdmins = async (req, res) => { 55 | try { 56 | const admins = await SuperAdmin.find().select("-password"); 57 | res.json(admins); 58 | } catch (error) { 59 | res.status(500).json({ message: error.message }); 60 | } 61 | }; 62 | 63 | export const getSuperAdmin = async (req, res) => { 64 | try { 65 | const admin = await SuperAdmin.findById(req.params.id).select("-password"); 66 | if (!admin) 67 | return res.status(404).json({ message: "SuperAdmin not found" }); 68 | 69 | res.json(admin); 70 | } catch (error) { 71 | res.status(500).json({ message: error.message }); 72 | } 73 | }; 74 | 75 | export const updateSuperAdmin = async (req, res) => { 76 | try { 77 | const updatedAdmin = await SuperAdmin.findByIdAndUpdate( 78 | req.params.id, 79 | req.body, 80 | { new: true } 81 | ).select("-password"); 82 | res.json(updatedAdmin); 83 | } catch (error) { 84 | res.status(500).json({ message: error.message }); 85 | } 86 | }; 87 | 88 | export const deleteSuperAdmin = async (req, res) => { 89 | try { 90 | await SuperAdmin.findByIdAndDelete(req.params.id); 91 | res.json({ message: "SuperAdmin deleted" }); 92 | } catch (error) { 93 | res.status(500).json({ message: error.message }); 94 | } 95 | }; 96 | 97 | export const GetMe = async (req, res) => { 98 | try { 99 | const foundAdmin = await SuperAdmin.findById(req.userInfo.userId); 100 | if (!foundAdmin) 101 | return res.status(404).json({ message: "Super Admin topilmadi." }); 102 | return res.status(200).json({ data: foundAdmin }); 103 | } catch (error) { 104 | res.status(500).json({ error: error.message }); 105 | } 106 | }; 107 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import mongoose from "mongoose"; 3 | import dotenv from "dotenv"; 4 | import cors from "cors"; 5 | import SuperAdminRoutes from "./routes/super-admin-routes.js"; 6 | import AdminRoutes from "./routes/admin-routes.js"; 7 | import CollectionRoutes from "./routes/collection-routes.js"; 8 | import StudentRoutes from "./routes/student-routes.js"; 9 | import { setupSwagger } from "./swagger.js"; 10 | 11 | dotenv.config(); 12 | const app = express(); 13 | const PORT = process.env.PORT || 8000; 14 | 15 | app.use(cors()); 16 | app.use(express.json()); 17 | setupSwagger(app); 18 | 19 | app.use("/uploads", express.static("uploads")); 20 | app.use("/uploads/audios", express.static("uploads/audios")); 21 | app.use("/uploads/images", express.static("uploads/images")); 22 | 23 | app.get("/", (_, res) => res.send("Hello world")); 24 | 25 | app.use("/api/super-admin", SuperAdminRoutes); 26 | app.use("/api/admin", AdminRoutes); 27 | app.use("/api/collection", CollectionRoutes); 28 | app.use("/api/student", StudentRoutes); 29 | 30 | mongoose 31 | .connect(process.env.MONGO_URI) 32 | .then(() => 33 | app.listen(PORT, () => { 34 | console.log(`Server running on port ${PORT}`); 35 | console.log( 36 | `Swagger Docs available at http://localhost:${PORT}/api-docs` 37 | ); 38 | }) 39 | ) 40 | .catch((err) => console.log(err)); 41 | -------------------------------------------------------------------------------- /middlewares/isAdmin.js: -------------------------------------------------------------------------------- 1 | const sendErrorResponse = (res, statusCode, message) => { 2 | return res.status(statusCode).json({ message }); 3 | }; 4 | 5 | export default function (req, res, next) { 6 | const { role } = req.userInfo; 7 | if (!role) { 8 | return sendErrorResponse(res, 409, "Access not allowed!⛔"); 9 | } 10 | if (role !== "admin" || role !== "super-admin") { 11 | return sendErrorResponse(res, 409, "Access not allowed!⛔"); 12 | } 13 | next(); 14 | } 15 | -------------------------------------------------------------------------------- /middlewares/isExisted.js: -------------------------------------------------------------------------------- 1 | import jwt from "jsonwebtoken"; 2 | 3 | const sendErrorResponse = (res, statusCode, message) => { 4 | return res.status(statusCode).json({ message }); 5 | }; 6 | 7 | export default function (req, res, next) { 8 | const token = (req.headers.authorization || "").replace(/Bearer\s?/, ""); 9 | if (!token) return sendErrorResponse(res, 409, "Access not allowed!⛔"); 10 | const { id, role } = jwt.verify(token, process.env.JWT_SECRET); 11 | req.userInfo = { userId: id, role }; 12 | next(); 13 | } -------------------------------------------------------------------------------- /middlewares/isSuperAdmin.js: -------------------------------------------------------------------------------- 1 | const sendErrorResponse = (res, statusCode, message) => { 2 | return res.status(statusCode).json({ message }); 3 | }; 4 | 5 | export default function (req, res, next) { 6 | const { role } = req.userInfo; 7 | if (!role) { 8 | return sendErrorResponse(res, 409, "Access not allowed!⛔"); 9 | } 10 | if (role !== "super-admin") { 11 | return sendErrorResponse(res, 409, "Access not allowed!⛔"); 12 | } 13 | next(); 14 | } -------------------------------------------------------------------------------- /middlewares/uploadAudio.js: -------------------------------------------------------------------------------- 1 | import multer from "multer"; 2 | import crypto from "crypto"; 3 | import path from "path"; 4 | 5 | const storage = multer.diskStorage({ 6 | destination: (_, __, cb) => { 7 | cb(null, "uploads/audios"); 8 | }, 9 | filename: (_, file, cb) => { 10 | const hash = crypto.randomBytes(16).toString("hex"); 11 | const ext = path.extname(file.originalname); 12 | cb(null, `${hash}${ext}`); 13 | }, 14 | }); 15 | 16 | const upload = multer({ 17 | storage, 18 | fileFilter: (_, file, cb) => { 19 | if (!file.mimetype.startsWith("audio/")) { 20 | return cb(new Error("Only audio files are allowed!"), false); 21 | } 22 | cb(null, true); 23 | }, 24 | }); 25 | 26 | export default function (req, res, next) { 27 | upload.single("audio")(req, res, (err) => { 28 | if (err) { 29 | return res.status(400).json({ message: err.message }); 30 | } 31 | if (!req.file) { 32 | return res.status(400).json({ message: "No audio file uploaded!" }); 33 | } 34 | 35 | req.uploadedAudio = `${req.protocol}://${req.get("host")}/uploads/audios/${ 36 | req.file.filename 37 | }`; 38 | next(); 39 | }); 40 | } 41 | -------------------------------------------------------------------------------- /middlewares/uploadImage.js: -------------------------------------------------------------------------------- 1 | import multer from "multer"; 2 | import crypto from "crypto"; 3 | import path from "path"; 4 | 5 | const storage = multer.diskStorage({ 6 | destination: (_, __, cb) => { 7 | cb(null, "uploads/images"); 8 | }, 9 | filename: (_, file, cb) => { 10 | const hash = crypto.randomBytes(16).toString("hex"); 11 | const ext = path.extname(file.originalname); 12 | cb(null, `${hash}${ext}`); 13 | }, 14 | }); 15 | 16 | const upload = multer({ 17 | storage, 18 | limits: { fileSize: 5 * 1024 * 1024 }, 19 | fileFilter: (_, file, cb) => { 20 | if (!file.mimetype.startsWith("image/")) { 21 | return cb(new Error("Only image files are allowed!"), false); 22 | } 23 | cb(null, true); 24 | }, 25 | }); 26 | 27 | export default function (req, res, next) { 28 | upload.single("photo")(req, res, (err) => { 29 | if (err) { 30 | return res.status(400).json({ message: err.message }); 31 | } 32 | if (req.file) { 33 | req.uploadedImage = `${req.protocol}://${req.get( 34 | "host" 35 | )}/uploads/images/${req.file.filename}`; 36 | } 37 | next(); 38 | }); 39 | } 40 | -------------------------------------------------------------------------------- /models/admin-model.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose"; 2 | 3 | const AdminSchema = new mongoose.Schema( 4 | { 5 | firstName: { type: String, required: true }, 6 | phoneNumber: { type: String, required: true, unique: true }, 7 | password: { type: String, required: true }, 8 | role: { type: String, default: "admin" }, 9 | }, 10 | { timestamps: true } 11 | ); 12 | 13 | export default mongoose.model("Admin", AdminSchema); 14 | -------------------------------------------------------------------------------- /models/collection-model.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose"; 2 | 3 | const AudioSchema = new mongoose.Schema({ 4 | file: { type: String }, 5 | label: { type: String }, 6 | }); 7 | 8 | const UnitSchema = new mongoose.Schema({ 9 | title: { type: String }, 10 | audios: [AudioSchema], 11 | }); 12 | 13 | const BookSchema = new mongoose.Schema({ 14 | level: { type: String }, 15 | units: [UnitSchema], 16 | }); 17 | 18 | const collectionSchema = new mongoose.Schema( 19 | { 20 | collectionImage: { type: String, required: true }, 21 | collectionName: { type: String, required: true }, 22 | books: [ 23 | { 24 | name: { type: String }, 25 | levels: [BookSchema], 26 | }, 27 | ], 28 | }, 29 | { timestamps: true } 30 | ); 31 | 32 | export default mongoose.model("Collection", collectionSchema); 33 | -------------------------------------------------------------------------------- /models/student-model.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose"; 2 | 3 | const StudentSchema = new mongoose.Schema( 4 | { 5 | firstName: { type: String, required: true }, 6 | lastName: { type: String, required: true }, 7 | phoneNumber: { type: String, required: true, unique: true }, 8 | password: { type: String, required: true }, 9 | role: { type: String, default: "student" }, 10 | payment: { 11 | paymentHistory: [{ type: Date }], 12 | lastPaidDate: { type: Date, default: Date.now }, 13 | status: { type: Boolean, default: true }, 14 | }, 15 | }, 16 | { timestamps: true } 17 | ); 18 | 19 | export default mongoose.model("Student", StudentSchema); 20 | -------------------------------------------------------------------------------- /models/super-admin-model.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose"; 2 | 3 | const SuperAdminSchema = new mongoose.Schema( 4 | { 5 | firstName: { type: String, required: true }, 6 | lastName: { type: String, required: true }, 7 | phoneNumber: { type: String, required: true, unique: true }, 8 | password: { type: String, required: true }, 9 | role: { type: String, default: "super-admin" }, 10 | }, 11 | { timestamps: true } 12 | ); 13 | 14 | export default mongoose.model("SuperAdmin", SuperAdminSchema); 15 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "server", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "server", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "bcrypt": "^5.1.1", 13 | "cors": "^2.8.5", 14 | "dotenv": "^16.4.7", 15 | "express": "^4.21.2", 16 | "jsonwebtoken": "^9.0.2", 17 | "mongoose": "^8.9.5", 18 | "multer": "^1.4.5-lts.1", 19 | "swagger-jsdoc": "^6.2.8", 20 | "swagger-ui-express": "^5.0.1" 21 | }, 22 | "devDependencies": { 23 | "nodemon": "^3.1.9" 24 | } 25 | }, 26 | "node_modules/@apidevtools/json-schema-ref-parser": { 27 | "version": "9.1.2", 28 | "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", 29 | "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", 30 | "license": "MIT", 31 | "dependencies": { 32 | "@jsdevtools/ono": "^7.1.3", 33 | "@types/json-schema": "^7.0.6", 34 | "call-me-maybe": "^1.0.1", 35 | "js-yaml": "^4.1.0" 36 | } 37 | }, 38 | "node_modules/@apidevtools/openapi-schemas": { 39 | "version": "2.1.0", 40 | "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", 41 | "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", 42 | "license": "MIT", 43 | "engines": { 44 | "node": ">=10" 45 | } 46 | }, 47 | "node_modules/@apidevtools/swagger-methods": { 48 | "version": "3.0.2", 49 | "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", 50 | "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", 51 | "license": "MIT" 52 | }, 53 | "node_modules/@apidevtools/swagger-parser": { 54 | "version": "10.0.3", 55 | "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.3.tgz", 56 | "integrity": "sha512-sNiLY51vZOmSPFZA5TF35KZ2HbgYklQnTSDnkghamzLb3EkNtcQnrBQEj5AOCxHpTtXpqMCRM1CrmV2rG6nw4g==", 57 | "license": "MIT", 58 | "dependencies": { 59 | "@apidevtools/json-schema-ref-parser": "^9.0.6", 60 | "@apidevtools/openapi-schemas": "^2.0.4", 61 | "@apidevtools/swagger-methods": "^3.0.2", 62 | "@jsdevtools/ono": "^7.1.3", 63 | "call-me-maybe": "^1.0.1", 64 | "z-schema": "^5.0.1" 65 | }, 66 | "peerDependencies": { 67 | "openapi-types": ">=7" 68 | } 69 | }, 70 | "node_modules/@jsdevtools/ono": { 71 | "version": "7.1.3", 72 | "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", 73 | "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", 74 | "license": "MIT" 75 | }, 76 | "node_modules/@mapbox/node-pre-gyp": { 77 | "version": "1.0.11", 78 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", 79 | "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", 80 | "license": "BSD-3-Clause", 81 | "dependencies": { 82 | "detect-libc": "^2.0.0", 83 | "https-proxy-agent": "^5.0.0", 84 | "make-dir": "^3.1.0", 85 | "node-fetch": "^2.6.7", 86 | "nopt": "^5.0.0", 87 | "npmlog": "^5.0.1", 88 | "rimraf": "^3.0.2", 89 | "semver": "^7.3.5", 90 | "tar": "^6.1.11" 91 | }, 92 | "bin": { 93 | "node-pre-gyp": "bin/node-pre-gyp" 94 | } 95 | }, 96 | "node_modules/@mongodb-js/saslprep": { 97 | "version": "1.1.9", 98 | "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz", 99 | "integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==", 100 | "license": "MIT", 101 | "dependencies": { 102 | "sparse-bitfield": "^3.0.3" 103 | } 104 | }, 105 | "node_modules/@scarf/scarf": { 106 | "version": "1.4.0", 107 | "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", 108 | "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", 109 | "hasInstallScript": true, 110 | "license": "Apache-2.0" 111 | }, 112 | "node_modules/@types/json-schema": { 113 | "version": "7.0.15", 114 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 115 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 116 | "license": "MIT" 117 | }, 118 | "node_modules/@types/webidl-conversions": { 119 | "version": "7.0.3", 120 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", 121 | "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", 122 | "license": "MIT" 123 | }, 124 | "node_modules/@types/whatwg-url": { 125 | "version": "11.0.5", 126 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", 127 | "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==", 128 | "license": "MIT", 129 | "dependencies": { 130 | "@types/webidl-conversions": "*" 131 | } 132 | }, 133 | "node_modules/abbrev": { 134 | "version": "1.1.1", 135 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 136 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 137 | "license": "ISC" 138 | }, 139 | "node_modules/accepts": { 140 | "version": "1.3.8", 141 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 142 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 143 | "license": "MIT", 144 | "dependencies": { 145 | "mime-types": "~2.1.34", 146 | "negotiator": "0.6.3" 147 | }, 148 | "engines": { 149 | "node": ">= 0.6" 150 | } 151 | }, 152 | "node_modules/agent-base": { 153 | "version": "6.0.2", 154 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 155 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 156 | "license": "MIT", 157 | "dependencies": { 158 | "debug": "4" 159 | }, 160 | "engines": { 161 | "node": ">= 6.0.0" 162 | } 163 | }, 164 | "node_modules/agent-base/node_modules/debug": { 165 | "version": "4.4.0", 166 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 167 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 168 | "license": "MIT", 169 | "dependencies": { 170 | "ms": "^2.1.3" 171 | }, 172 | "engines": { 173 | "node": ">=6.0" 174 | }, 175 | "peerDependenciesMeta": { 176 | "supports-color": { 177 | "optional": true 178 | } 179 | } 180 | }, 181 | "node_modules/agent-base/node_modules/ms": { 182 | "version": "2.1.3", 183 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 184 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 185 | "license": "MIT" 186 | }, 187 | "node_modules/ansi-regex": { 188 | "version": "5.0.1", 189 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 190 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 191 | "license": "MIT", 192 | "engines": { 193 | "node": ">=8" 194 | } 195 | }, 196 | "node_modules/anymatch": { 197 | "version": "3.1.3", 198 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 199 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 200 | "dev": true, 201 | "license": "ISC", 202 | "dependencies": { 203 | "normalize-path": "^3.0.0", 204 | "picomatch": "^2.0.4" 205 | }, 206 | "engines": { 207 | "node": ">= 8" 208 | } 209 | }, 210 | "node_modules/append-field": { 211 | "version": "1.0.0", 212 | "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", 213 | "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", 214 | "license": "MIT" 215 | }, 216 | "node_modules/aproba": { 217 | "version": "2.0.0", 218 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", 219 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", 220 | "license": "ISC" 221 | }, 222 | "node_modules/are-we-there-yet": { 223 | "version": "2.0.0", 224 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", 225 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", 226 | "deprecated": "This package is no longer supported.", 227 | "license": "ISC", 228 | "dependencies": { 229 | "delegates": "^1.0.0", 230 | "readable-stream": "^3.6.0" 231 | }, 232 | "engines": { 233 | "node": ">=10" 234 | } 235 | }, 236 | "node_modules/argparse": { 237 | "version": "2.0.1", 238 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 239 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 240 | "license": "Python-2.0" 241 | }, 242 | "node_modules/array-flatten": { 243 | "version": "1.1.1", 244 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 245 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", 246 | "license": "MIT" 247 | }, 248 | "node_modules/balanced-match": { 249 | "version": "1.0.2", 250 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 251 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 252 | "license": "MIT" 253 | }, 254 | "node_modules/bcrypt": { 255 | "version": "5.1.1", 256 | "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz", 257 | "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", 258 | "hasInstallScript": true, 259 | "license": "MIT", 260 | "dependencies": { 261 | "@mapbox/node-pre-gyp": "^1.0.11", 262 | "node-addon-api": "^5.0.0" 263 | }, 264 | "engines": { 265 | "node": ">= 10.0.0" 266 | } 267 | }, 268 | "node_modules/binary-extensions": { 269 | "version": "2.3.0", 270 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 271 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 272 | "dev": true, 273 | "license": "MIT", 274 | "engines": { 275 | "node": ">=8" 276 | }, 277 | "funding": { 278 | "url": "https://github.com/sponsors/sindresorhus" 279 | } 280 | }, 281 | "node_modules/body-parser": { 282 | "version": "1.20.3", 283 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", 284 | "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", 285 | "license": "MIT", 286 | "dependencies": { 287 | "bytes": "3.1.2", 288 | "content-type": "~1.0.5", 289 | "debug": "2.6.9", 290 | "depd": "2.0.0", 291 | "destroy": "1.2.0", 292 | "http-errors": "2.0.0", 293 | "iconv-lite": "0.4.24", 294 | "on-finished": "2.4.1", 295 | "qs": "6.13.0", 296 | "raw-body": "2.5.2", 297 | "type-is": "~1.6.18", 298 | "unpipe": "1.0.0" 299 | }, 300 | "engines": { 301 | "node": ">= 0.8", 302 | "npm": "1.2.8000 || >= 1.4.16" 303 | } 304 | }, 305 | "node_modules/brace-expansion": { 306 | "version": "1.1.11", 307 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 308 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 309 | "license": "MIT", 310 | "dependencies": { 311 | "balanced-match": "^1.0.0", 312 | "concat-map": "0.0.1" 313 | } 314 | }, 315 | "node_modules/braces": { 316 | "version": "3.0.3", 317 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 318 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 319 | "dev": true, 320 | "license": "MIT", 321 | "dependencies": { 322 | "fill-range": "^7.1.1" 323 | }, 324 | "engines": { 325 | "node": ">=8" 326 | } 327 | }, 328 | "node_modules/bson": { 329 | "version": "6.10.1", 330 | "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.1.tgz", 331 | "integrity": "sha512-P92xmHDQjSKPLHqFxefqMxASNq/aWJMEZugpCjf+AF/pgcUpMMQCg7t7+ewko0/u8AapvF3luf/FoehddEK+sA==", 332 | "license": "Apache-2.0", 333 | "engines": { 334 | "node": ">=16.20.1" 335 | } 336 | }, 337 | "node_modules/buffer-equal-constant-time": { 338 | "version": "1.0.1", 339 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 340 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", 341 | "license": "BSD-3-Clause" 342 | }, 343 | "node_modules/buffer-from": { 344 | "version": "1.1.2", 345 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 346 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 347 | "license": "MIT" 348 | }, 349 | "node_modules/busboy": { 350 | "version": "1.6.0", 351 | "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", 352 | "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", 353 | "dependencies": { 354 | "streamsearch": "^1.1.0" 355 | }, 356 | "engines": { 357 | "node": ">=10.16.0" 358 | } 359 | }, 360 | "node_modules/bytes": { 361 | "version": "3.1.2", 362 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 363 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 364 | "license": "MIT", 365 | "engines": { 366 | "node": ">= 0.8" 367 | } 368 | }, 369 | "node_modules/call-bind-apply-helpers": { 370 | "version": "1.0.1", 371 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", 372 | "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", 373 | "license": "MIT", 374 | "dependencies": { 375 | "es-errors": "^1.3.0", 376 | "function-bind": "^1.1.2" 377 | }, 378 | "engines": { 379 | "node": ">= 0.4" 380 | } 381 | }, 382 | "node_modules/call-bound": { 383 | "version": "1.0.3", 384 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", 385 | "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", 386 | "license": "MIT", 387 | "dependencies": { 388 | "call-bind-apply-helpers": "^1.0.1", 389 | "get-intrinsic": "^1.2.6" 390 | }, 391 | "engines": { 392 | "node": ">= 0.4" 393 | }, 394 | "funding": { 395 | "url": "https://github.com/sponsors/ljharb" 396 | } 397 | }, 398 | "node_modules/call-me-maybe": { 399 | "version": "1.0.2", 400 | "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", 401 | "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", 402 | "license": "MIT" 403 | }, 404 | "node_modules/chokidar": { 405 | "version": "3.6.0", 406 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 407 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 408 | "dev": true, 409 | "license": "MIT", 410 | "dependencies": { 411 | "anymatch": "~3.1.2", 412 | "braces": "~3.0.2", 413 | "glob-parent": "~5.1.2", 414 | "is-binary-path": "~2.1.0", 415 | "is-glob": "~4.0.1", 416 | "normalize-path": "~3.0.0", 417 | "readdirp": "~3.6.0" 418 | }, 419 | "engines": { 420 | "node": ">= 8.10.0" 421 | }, 422 | "funding": { 423 | "url": "https://paulmillr.com/funding/" 424 | }, 425 | "optionalDependencies": { 426 | "fsevents": "~2.3.2" 427 | } 428 | }, 429 | "node_modules/chownr": { 430 | "version": "2.0.0", 431 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", 432 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", 433 | "license": "ISC", 434 | "engines": { 435 | "node": ">=10" 436 | } 437 | }, 438 | "node_modules/color-support": { 439 | "version": "1.1.3", 440 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", 441 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", 442 | "license": "ISC", 443 | "bin": { 444 | "color-support": "bin.js" 445 | } 446 | }, 447 | "node_modules/commander": { 448 | "version": "6.2.0", 449 | "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz", 450 | "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==", 451 | "license": "MIT", 452 | "engines": { 453 | "node": ">= 6" 454 | } 455 | }, 456 | "node_modules/concat-map": { 457 | "version": "0.0.1", 458 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 459 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 460 | "license": "MIT" 461 | }, 462 | "node_modules/concat-stream": { 463 | "version": "1.6.2", 464 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 465 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 466 | "engines": [ 467 | "node >= 0.8" 468 | ], 469 | "license": "MIT", 470 | "dependencies": { 471 | "buffer-from": "^1.0.0", 472 | "inherits": "^2.0.3", 473 | "readable-stream": "^2.2.2", 474 | "typedarray": "^0.0.6" 475 | } 476 | }, 477 | "node_modules/concat-stream/node_modules/readable-stream": { 478 | "version": "2.3.8", 479 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", 480 | "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", 481 | "license": "MIT", 482 | "dependencies": { 483 | "core-util-is": "~1.0.0", 484 | "inherits": "~2.0.3", 485 | "isarray": "~1.0.0", 486 | "process-nextick-args": "~2.0.0", 487 | "safe-buffer": "~5.1.1", 488 | "string_decoder": "~1.1.1", 489 | "util-deprecate": "~1.0.1" 490 | } 491 | }, 492 | "node_modules/concat-stream/node_modules/safe-buffer": { 493 | "version": "5.1.2", 494 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 495 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 496 | "license": "MIT" 497 | }, 498 | "node_modules/concat-stream/node_modules/string_decoder": { 499 | "version": "1.1.1", 500 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 501 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 502 | "license": "MIT", 503 | "dependencies": { 504 | "safe-buffer": "~5.1.0" 505 | } 506 | }, 507 | "node_modules/console-control-strings": { 508 | "version": "1.1.0", 509 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 510 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", 511 | "license": "ISC" 512 | }, 513 | "node_modules/content-disposition": { 514 | "version": "0.5.4", 515 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 516 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 517 | "license": "MIT", 518 | "dependencies": { 519 | "safe-buffer": "5.2.1" 520 | }, 521 | "engines": { 522 | "node": ">= 0.6" 523 | } 524 | }, 525 | "node_modules/content-type": { 526 | "version": "1.0.5", 527 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 528 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 529 | "license": "MIT", 530 | "engines": { 531 | "node": ">= 0.6" 532 | } 533 | }, 534 | "node_modules/cookie": { 535 | "version": "0.7.1", 536 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 537 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 538 | "license": "MIT", 539 | "engines": { 540 | "node": ">= 0.6" 541 | } 542 | }, 543 | "node_modules/cookie-signature": { 544 | "version": "1.0.6", 545 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 546 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", 547 | "license": "MIT" 548 | }, 549 | "node_modules/core-util-is": { 550 | "version": "1.0.3", 551 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 552 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", 553 | "license": "MIT" 554 | }, 555 | "node_modules/cors": { 556 | "version": "2.8.5", 557 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 558 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 559 | "license": "MIT", 560 | "dependencies": { 561 | "object-assign": "^4", 562 | "vary": "^1" 563 | }, 564 | "engines": { 565 | "node": ">= 0.10" 566 | } 567 | }, 568 | "node_modules/debug": { 569 | "version": "2.6.9", 570 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 571 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 572 | "license": "MIT", 573 | "dependencies": { 574 | "ms": "2.0.0" 575 | } 576 | }, 577 | "node_modules/delegates": { 578 | "version": "1.0.0", 579 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 580 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", 581 | "license": "MIT" 582 | }, 583 | "node_modules/depd": { 584 | "version": "2.0.0", 585 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 586 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 587 | "license": "MIT", 588 | "engines": { 589 | "node": ">= 0.8" 590 | } 591 | }, 592 | "node_modules/destroy": { 593 | "version": "1.2.0", 594 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 595 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 596 | "license": "MIT", 597 | "engines": { 598 | "node": ">= 0.8", 599 | "npm": "1.2.8000 || >= 1.4.16" 600 | } 601 | }, 602 | "node_modules/detect-libc": { 603 | "version": "2.0.3", 604 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", 605 | "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", 606 | "license": "Apache-2.0", 607 | "engines": { 608 | "node": ">=8" 609 | } 610 | }, 611 | "node_modules/doctrine": { 612 | "version": "3.0.0", 613 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 614 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 615 | "license": "Apache-2.0", 616 | "dependencies": { 617 | "esutils": "^2.0.2" 618 | }, 619 | "engines": { 620 | "node": ">=6.0.0" 621 | } 622 | }, 623 | "node_modules/dotenv": { 624 | "version": "16.4.7", 625 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", 626 | "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", 627 | "license": "BSD-2-Clause", 628 | "engines": { 629 | "node": ">=12" 630 | }, 631 | "funding": { 632 | "url": "https://dotenvx.com" 633 | } 634 | }, 635 | "node_modules/dunder-proto": { 636 | "version": "1.0.1", 637 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 638 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 639 | "license": "MIT", 640 | "dependencies": { 641 | "call-bind-apply-helpers": "^1.0.1", 642 | "es-errors": "^1.3.0", 643 | "gopd": "^1.2.0" 644 | }, 645 | "engines": { 646 | "node": ">= 0.4" 647 | } 648 | }, 649 | "node_modules/ecdsa-sig-formatter": { 650 | "version": "1.0.11", 651 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 652 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 653 | "license": "Apache-2.0", 654 | "dependencies": { 655 | "safe-buffer": "^5.0.1" 656 | } 657 | }, 658 | "node_modules/ee-first": { 659 | "version": "1.1.1", 660 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 661 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", 662 | "license": "MIT" 663 | }, 664 | "node_modules/emoji-regex": { 665 | "version": "8.0.0", 666 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 667 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 668 | "license": "MIT" 669 | }, 670 | "node_modules/encodeurl": { 671 | "version": "2.0.0", 672 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 673 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 674 | "license": "MIT", 675 | "engines": { 676 | "node": ">= 0.8" 677 | } 678 | }, 679 | "node_modules/es-define-property": { 680 | "version": "1.0.1", 681 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 682 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 683 | "license": "MIT", 684 | "engines": { 685 | "node": ">= 0.4" 686 | } 687 | }, 688 | "node_modules/es-errors": { 689 | "version": "1.3.0", 690 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 691 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 692 | "license": "MIT", 693 | "engines": { 694 | "node": ">= 0.4" 695 | } 696 | }, 697 | "node_modules/es-object-atoms": { 698 | "version": "1.1.1", 699 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 700 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 701 | "license": "MIT", 702 | "dependencies": { 703 | "es-errors": "^1.3.0" 704 | }, 705 | "engines": { 706 | "node": ">= 0.4" 707 | } 708 | }, 709 | "node_modules/escape-html": { 710 | "version": "1.0.3", 711 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 712 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", 713 | "license": "MIT" 714 | }, 715 | "node_modules/esutils": { 716 | "version": "2.0.3", 717 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 718 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 719 | "license": "BSD-2-Clause", 720 | "engines": { 721 | "node": ">=0.10.0" 722 | } 723 | }, 724 | "node_modules/etag": { 725 | "version": "1.8.1", 726 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 727 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 728 | "license": "MIT", 729 | "engines": { 730 | "node": ">= 0.6" 731 | } 732 | }, 733 | "node_modules/express": { 734 | "version": "4.21.2", 735 | "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", 736 | "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", 737 | "license": "MIT", 738 | "dependencies": { 739 | "accepts": "~1.3.8", 740 | "array-flatten": "1.1.1", 741 | "body-parser": "1.20.3", 742 | "content-disposition": "0.5.4", 743 | "content-type": "~1.0.4", 744 | "cookie": "0.7.1", 745 | "cookie-signature": "1.0.6", 746 | "debug": "2.6.9", 747 | "depd": "2.0.0", 748 | "encodeurl": "~2.0.0", 749 | "escape-html": "~1.0.3", 750 | "etag": "~1.8.1", 751 | "finalhandler": "1.3.1", 752 | "fresh": "0.5.2", 753 | "http-errors": "2.0.0", 754 | "merge-descriptors": "1.0.3", 755 | "methods": "~1.1.2", 756 | "on-finished": "2.4.1", 757 | "parseurl": "~1.3.3", 758 | "path-to-regexp": "0.1.12", 759 | "proxy-addr": "~2.0.7", 760 | "qs": "6.13.0", 761 | "range-parser": "~1.2.1", 762 | "safe-buffer": "5.2.1", 763 | "send": "0.19.0", 764 | "serve-static": "1.16.2", 765 | "setprototypeof": "1.2.0", 766 | "statuses": "2.0.1", 767 | "type-is": "~1.6.18", 768 | "utils-merge": "1.0.1", 769 | "vary": "~1.1.2" 770 | }, 771 | "engines": { 772 | "node": ">= 0.10.0" 773 | }, 774 | "funding": { 775 | "type": "opencollective", 776 | "url": "https://opencollective.com/express" 777 | } 778 | }, 779 | "node_modules/fill-range": { 780 | "version": "7.1.1", 781 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 782 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 783 | "dev": true, 784 | "license": "MIT", 785 | "dependencies": { 786 | "to-regex-range": "^5.0.1" 787 | }, 788 | "engines": { 789 | "node": ">=8" 790 | } 791 | }, 792 | "node_modules/finalhandler": { 793 | "version": "1.3.1", 794 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", 795 | "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", 796 | "license": "MIT", 797 | "dependencies": { 798 | "debug": "2.6.9", 799 | "encodeurl": "~2.0.0", 800 | "escape-html": "~1.0.3", 801 | "on-finished": "2.4.1", 802 | "parseurl": "~1.3.3", 803 | "statuses": "2.0.1", 804 | "unpipe": "~1.0.0" 805 | }, 806 | "engines": { 807 | "node": ">= 0.8" 808 | } 809 | }, 810 | "node_modules/forwarded": { 811 | "version": "0.2.0", 812 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 813 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 814 | "license": "MIT", 815 | "engines": { 816 | "node": ">= 0.6" 817 | } 818 | }, 819 | "node_modules/fresh": { 820 | "version": "0.5.2", 821 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 822 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 823 | "license": "MIT", 824 | "engines": { 825 | "node": ">= 0.6" 826 | } 827 | }, 828 | "node_modules/fs-minipass": { 829 | "version": "2.1.0", 830 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", 831 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", 832 | "license": "ISC", 833 | "dependencies": { 834 | "minipass": "^3.0.0" 835 | }, 836 | "engines": { 837 | "node": ">= 8" 838 | } 839 | }, 840 | "node_modules/fs-minipass/node_modules/minipass": { 841 | "version": "3.3.6", 842 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", 843 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", 844 | "license": "ISC", 845 | "dependencies": { 846 | "yallist": "^4.0.0" 847 | }, 848 | "engines": { 849 | "node": ">=8" 850 | } 851 | }, 852 | "node_modules/fs.realpath": { 853 | "version": "1.0.0", 854 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 855 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 856 | "license": "ISC" 857 | }, 858 | "node_modules/fsevents": { 859 | "version": "2.3.3", 860 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 861 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 862 | "dev": true, 863 | "hasInstallScript": true, 864 | "license": "MIT", 865 | "optional": true, 866 | "os": [ 867 | "darwin" 868 | ], 869 | "engines": { 870 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 871 | } 872 | }, 873 | "node_modules/function-bind": { 874 | "version": "1.1.2", 875 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 876 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 877 | "license": "MIT", 878 | "funding": { 879 | "url": "https://github.com/sponsors/ljharb" 880 | } 881 | }, 882 | "node_modules/gauge": { 883 | "version": "3.0.2", 884 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", 885 | "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", 886 | "deprecated": "This package is no longer supported.", 887 | "license": "ISC", 888 | "dependencies": { 889 | "aproba": "^1.0.3 || ^2.0.0", 890 | "color-support": "^1.1.2", 891 | "console-control-strings": "^1.0.0", 892 | "has-unicode": "^2.0.1", 893 | "object-assign": "^4.1.1", 894 | "signal-exit": "^3.0.0", 895 | "string-width": "^4.2.3", 896 | "strip-ansi": "^6.0.1", 897 | "wide-align": "^1.1.2" 898 | }, 899 | "engines": { 900 | "node": ">=10" 901 | } 902 | }, 903 | "node_modules/get-intrinsic": { 904 | "version": "1.2.7", 905 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", 906 | "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", 907 | "license": "MIT", 908 | "dependencies": { 909 | "call-bind-apply-helpers": "^1.0.1", 910 | "es-define-property": "^1.0.1", 911 | "es-errors": "^1.3.0", 912 | "es-object-atoms": "^1.0.0", 913 | "function-bind": "^1.1.2", 914 | "get-proto": "^1.0.0", 915 | "gopd": "^1.2.0", 916 | "has-symbols": "^1.1.0", 917 | "hasown": "^2.0.2", 918 | "math-intrinsics": "^1.1.0" 919 | }, 920 | "engines": { 921 | "node": ">= 0.4" 922 | }, 923 | "funding": { 924 | "url": "https://github.com/sponsors/ljharb" 925 | } 926 | }, 927 | "node_modules/get-proto": { 928 | "version": "1.0.1", 929 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 930 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 931 | "license": "MIT", 932 | "dependencies": { 933 | "dunder-proto": "^1.0.1", 934 | "es-object-atoms": "^1.0.0" 935 | }, 936 | "engines": { 937 | "node": ">= 0.4" 938 | } 939 | }, 940 | "node_modules/glob": { 941 | "version": "7.2.3", 942 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 943 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 944 | "deprecated": "Glob versions prior to v9 are no longer supported", 945 | "license": "ISC", 946 | "dependencies": { 947 | "fs.realpath": "^1.0.0", 948 | "inflight": "^1.0.4", 949 | "inherits": "2", 950 | "minimatch": "^3.1.1", 951 | "once": "^1.3.0", 952 | "path-is-absolute": "^1.0.0" 953 | }, 954 | "engines": { 955 | "node": "*" 956 | }, 957 | "funding": { 958 | "url": "https://github.com/sponsors/isaacs" 959 | } 960 | }, 961 | "node_modules/glob-parent": { 962 | "version": "5.1.2", 963 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 964 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 965 | "dev": true, 966 | "license": "ISC", 967 | "dependencies": { 968 | "is-glob": "^4.0.1" 969 | }, 970 | "engines": { 971 | "node": ">= 6" 972 | } 973 | }, 974 | "node_modules/gopd": { 975 | "version": "1.2.0", 976 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 977 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 978 | "license": "MIT", 979 | "engines": { 980 | "node": ">= 0.4" 981 | }, 982 | "funding": { 983 | "url": "https://github.com/sponsors/ljharb" 984 | } 985 | }, 986 | "node_modules/has-flag": { 987 | "version": "3.0.0", 988 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 989 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 990 | "dev": true, 991 | "license": "MIT", 992 | "engines": { 993 | "node": ">=4" 994 | } 995 | }, 996 | "node_modules/has-symbols": { 997 | "version": "1.1.0", 998 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 999 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 1000 | "license": "MIT", 1001 | "engines": { 1002 | "node": ">= 0.4" 1003 | }, 1004 | "funding": { 1005 | "url": "https://github.com/sponsors/ljharb" 1006 | } 1007 | }, 1008 | "node_modules/has-unicode": { 1009 | "version": "2.0.1", 1010 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 1011 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", 1012 | "license": "ISC" 1013 | }, 1014 | "node_modules/hasown": { 1015 | "version": "2.0.2", 1016 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1017 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1018 | "license": "MIT", 1019 | "dependencies": { 1020 | "function-bind": "^1.1.2" 1021 | }, 1022 | "engines": { 1023 | "node": ">= 0.4" 1024 | } 1025 | }, 1026 | "node_modules/http-errors": { 1027 | "version": "2.0.0", 1028 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 1029 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 1030 | "license": "MIT", 1031 | "dependencies": { 1032 | "depd": "2.0.0", 1033 | "inherits": "2.0.4", 1034 | "setprototypeof": "1.2.0", 1035 | "statuses": "2.0.1", 1036 | "toidentifier": "1.0.1" 1037 | }, 1038 | "engines": { 1039 | "node": ">= 0.8" 1040 | } 1041 | }, 1042 | "node_modules/https-proxy-agent": { 1043 | "version": "5.0.1", 1044 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", 1045 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", 1046 | "license": "MIT", 1047 | "dependencies": { 1048 | "agent-base": "6", 1049 | "debug": "4" 1050 | }, 1051 | "engines": { 1052 | "node": ">= 6" 1053 | } 1054 | }, 1055 | "node_modules/https-proxy-agent/node_modules/debug": { 1056 | "version": "4.4.0", 1057 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1058 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1059 | "license": "MIT", 1060 | "dependencies": { 1061 | "ms": "^2.1.3" 1062 | }, 1063 | "engines": { 1064 | "node": ">=6.0" 1065 | }, 1066 | "peerDependenciesMeta": { 1067 | "supports-color": { 1068 | "optional": true 1069 | } 1070 | } 1071 | }, 1072 | "node_modules/https-proxy-agent/node_modules/ms": { 1073 | "version": "2.1.3", 1074 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1075 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1076 | "license": "MIT" 1077 | }, 1078 | "node_modules/iconv-lite": { 1079 | "version": "0.4.24", 1080 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1081 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1082 | "license": "MIT", 1083 | "dependencies": { 1084 | "safer-buffer": ">= 2.1.2 < 3" 1085 | }, 1086 | "engines": { 1087 | "node": ">=0.10.0" 1088 | } 1089 | }, 1090 | "node_modules/ignore-by-default": { 1091 | "version": "1.0.1", 1092 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 1093 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 1094 | "dev": true, 1095 | "license": "ISC" 1096 | }, 1097 | "node_modules/inflight": { 1098 | "version": "1.0.6", 1099 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1100 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1101 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 1102 | "license": "ISC", 1103 | "dependencies": { 1104 | "once": "^1.3.0", 1105 | "wrappy": "1" 1106 | } 1107 | }, 1108 | "node_modules/inherits": { 1109 | "version": "2.0.4", 1110 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1111 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1112 | "license": "ISC" 1113 | }, 1114 | "node_modules/ipaddr.js": { 1115 | "version": "1.9.1", 1116 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1117 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 1118 | "license": "MIT", 1119 | "engines": { 1120 | "node": ">= 0.10" 1121 | } 1122 | }, 1123 | "node_modules/is-binary-path": { 1124 | "version": "2.1.0", 1125 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1126 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1127 | "dev": true, 1128 | "license": "MIT", 1129 | "dependencies": { 1130 | "binary-extensions": "^2.0.0" 1131 | }, 1132 | "engines": { 1133 | "node": ">=8" 1134 | } 1135 | }, 1136 | "node_modules/is-extglob": { 1137 | "version": "2.1.1", 1138 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1139 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1140 | "dev": true, 1141 | "license": "MIT", 1142 | "engines": { 1143 | "node": ">=0.10.0" 1144 | } 1145 | }, 1146 | "node_modules/is-fullwidth-code-point": { 1147 | "version": "3.0.0", 1148 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1149 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1150 | "license": "MIT", 1151 | "engines": { 1152 | "node": ">=8" 1153 | } 1154 | }, 1155 | "node_modules/is-glob": { 1156 | "version": "4.0.3", 1157 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1158 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1159 | "dev": true, 1160 | "license": "MIT", 1161 | "dependencies": { 1162 | "is-extglob": "^2.1.1" 1163 | }, 1164 | "engines": { 1165 | "node": ">=0.10.0" 1166 | } 1167 | }, 1168 | "node_modules/is-number": { 1169 | "version": "7.0.0", 1170 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1171 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1172 | "dev": true, 1173 | "license": "MIT", 1174 | "engines": { 1175 | "node": ">=0.12.0" 1176 | } 1177 | }, 1178 | "node_modules/isarray": { 1179 | "version": "1.0.0", 1180 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1181 | "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", 1182 | "license": "MIT" 1183 | }, 1184 | "node_modules/js-yaml": { 1185 | "version": "4.1.0", 1186 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1187 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1188 | "license": "MIT", 1189 | "dependencies": { 1190 | "argparse": "^2.0.1" 1191 | }, 1192 | "bin": { 1193 | "js-yaml": "bin/js-yaml.js" 1194 | } 1195 | }, 1196 | "node_modules/jsonwebtoken": { 1197 | "version": "9.0.2", 1198 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", 1199 | "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", 1200 | "license": "MIT", 1201 | "dependencies": { 1202 | "jws": "^3.2.2", 1203 | "lodash.includes": "^4.3.0", 1204 | "lodash.isboolean": "^3.0.3", 1205 | "lodash.isinteger": "^4.0.4", 1206 | "lodash.isnumber": "^3.0.3", 1207 | "lodash.isplainobject": "^4.0.6", 1208 | "lodash.isstring": "^4.0.1", 1209 | "lodash.once": "^4.0.0", 1210 | "ms": "^2.1.1", 1211 | "semver": "^7.5.4" 1212 | }, 1213 | "engines": { 1214 | "node": ">=12", 1215 | "npm": ">=6" 1216 | } 1217 | }, 1218 | "node_modules/jsonwebtoken/node_modules/ms": { 1219 | "version": "2.1.3", 1220 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1221 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1222 | "license": "MIT" 1223 | }, 1224 | "node_modules/jwa": { 1225 | "version": "1.4.1", 1226 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 1227 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 1228 | "license": "MIT", 1229 | "dependencies": { 1230 | "buffer-equal-constant-time": "1.0.1", 1231 | "ecdsa-sig-formatter": "1.0.11", 1232 | "safe-buffer": "^5.0.1" 1233 | } 1234 | }, 1235 | "node_modules/jws": { 1236 | "version": "3.2.2", 1237 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 1238 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 1239 | "license": "MIT", 1240 | "dependencies": { 1241 | "jwa": "^1.4.1", 1242 | "safe-buffer": "^5.0.1" 1243 | } 1244 | }, 1245 | "node_modules/kareem": { 1246 | "version": "2.6.3", 1247 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.6.3.tgz", 1248 | "integrity": "sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q==", 1249 | "license": "Apache-2.0", 1250 | "engines": { 1251 | "node": ">=12.0.0" 1252 | } 1253 | }, 1254 | "node_modules/lodash.get": { 1255 | "version": "4.4.2", 1256 | "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", 1257 | "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", 1258 | "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.", 1259 | "license": "MIT" 1260 | }, 1261 | "node_modules/lodash.includes": { 1262 | "version": "4.3.0", 1263 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 1264 | "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", 1265 | "license": "MIT" 1266 | }, 1267 | "node_modules/lodash.isboolean": { 1268 | "version": "3.0.3", 1269 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 1270 | "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", 1271 | "license": "MIT" 1272 | }, 1273 | "node_modules/lodash.isequal": { 1274 | "version": "4.5.0", 1275 | "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", 1276 | "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", 1277 | "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.", 1278 | "license": "MIT" 1279 | }, 1280 | "node_modules/lodash.isinteger": { 1281 | "version": "4.0.4", 1282 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 1283 | "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", 1284 | "license": "MIT" 1285 | }, 1286 | "node_modules/lodash.isnumber": { 1287 | "version": "3.0.3", 1288 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 1289 | "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", 1290 | "license": "MIT" 1291 | }, 1292 | "node_modules/lodash.isplainobject": { 1293 | "version": "4.0.6", 1294 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 1295 | "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", 1296 | "license": "MIT" 1297 | }, 1298 | "node_modules/lodash.isstring": { 1299 | "version": "4.0.1", 1300 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 1301 | "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", 1302 | "license": "MIT" 1303 | }, 1304 | "node_modules/lodash.mergewith": { 1305 | "version": "4.6.2", 1306 | "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", 1307 | "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", 1308 | "license": "MIT" 1309 | }, 1310 | "node_modules/lodash.once": { 1311 | "version": "4.1.1", 1312 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 1313 | "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", 1314 | "license": "MIT" 1315 | }, 1316 | "node_modules/make-dir": { 1317 | "version": "3.1.0", 1318 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 1319 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 1320 | "license": "MIT", 1321 | "dependencies": { 1322 | "semver": "^6.0.0" 1323 | }, 1324 | "engines": { 1325 | "node": ">=8" 1326 | }, 1327 | "funding": { 1328 | "url": "https://github.com/sponsors/sindresorhus" 1329 | } 1330 | }, 1331 | "node_modules/make-dir/node_modules/semver": { 1332 | "version": "6.3.1", 1333 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", 1334 | "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", 1335 | "license": "ISC", 1336 | "bin": { 1337 | "semver": "bin/semver.js" 1338 | } 1339 | }, 1340 | "node_modules/math-intrinsics": { 1341 | "version": "1.1.0", 1342 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 1343 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 1344 | "license": "MIT", 1345 | "engines": { 1346 | "node": ">= 0.4" 1347 | } 1348 | }, 1349 | "node_modules/media-typer": { 1350 | "version": "0.3.0", 1351 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1352 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1353 | "license": "MIT", 1354 | "engines": { 1355 | "node": ">= 0.6" 1356 | } 1357 | }, 1358 | "node_modules/memory-pager": { 1359 | "version": "1.5.0", 1360 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 1361 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 1362 | "license": "MIT" 1363 | }, 1364 | "node_modules/merge-descriptors": { 1365 | "version": "1.0.3", 1366 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", 1367 | "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", 1368 | "license": "MIT", 1369 | "funding": { 1370 | "url": "https://github.com/sponsors/sindresorhus" 1371 | } 1372 | }, 1373 | "node_modules/methods": { 1374 | "version": "1.1.2", 1375 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1376 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1377 | "license": "MIT", 1378 | "engines": { 1379 | "node": ">= 0.6" 1380 | } 1381 | }, 1382 | "node_modules/mime": { 1383 | "version": "1.6.0", 1384 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1385 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1386 | "license": "MIT", 1387 | "bin": { 1388 | "mime": "cli.js" 1389 | }, 1390 | "engines": { 1391 | "node": ">=4" 1392 | } 1393 | }, 1394 | "node_modules/mime-db": { 1395 | "version": "1.52.0", 1396 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1397 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1398 | "license": "MIT", 1399 | "engines": { 1400 | "node": ">= 0.6" 1401 | } 1402 | }, 1403 | "node_modules/mime-types": { 1404 | "version": "2.1.35", 1405 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1406 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1407 | "license": "MIT", 1408 | "dependencies": { 1409 | "mime-db": "1.52.0" 1410 | }, 1411 | "engines": { 1412 | "node": ">= 0.6" 1413 | } 1414 | }, 1415 | "node_modules/minimatch": { 1416 | "version": "3.1.2", 1417 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1418 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1419 | "license": "ISC", 1420 | "dependencies": { 1421 | "brace-expansion": "^1.1.7" 1422 | }, 1423 | "engines": { 1424 | "node": "*" 1425 | } 1426 | }, 1427 | "node_modules/minimist": { 1428 | "version": "1.2.8", 1429 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 1430 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 1431 | "license": "MIT", 1432 | "funding": { 1433 | "url": "https://github.com/sponsors/ljharb" 1434 | } 1435 | }, 1436 | "node_modules/minipass": { 1437 | "version": "5.0.0", 1438 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", 1439 | "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", 1440 | "license": "ISC", 1441 | "engines": { 1442 | "node": ">=8" 1443 | } 1444 | }, 1445 | "node_modules/minizlib": { 1446 | "version": "2.1.2", 1447 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", 1448 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", 1449 | "license": "MIT", 1450 | "dependencies": { 1451 | "minipass": "^3.0.0", 1452 | "yallist": "^4.0.0" 1453 | }, 1454 | "engines": { 1455 | "node": ">= 8" 1456 | } 1457 | }, 1458 | "node_modules/minizlib/node_modules/minipass": { 1459 | "version": "3.3.6", 1460 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", 1461 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", 1462 | "license": "ISC", 1463 | "dependencies": { 1464 | "yallist": "^4.0.0" 1465 | }, 1466 | "engines": { 1467 | "node": ">=8" 1468 | } 1469 | }, 1470 | "node_modules/mkdirp": { 1471 | "version": "1.0.4", 1472 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", 1473 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", 1474 | "license": "MIT", 1475 | "bin": { 1476 | "mkdirp": "bin/cmd.js" 1477 | }, 1478 | "engines": { 1479 | "node": ">=10" 1480 | } 1481 | }, 1482 | "node_modules/mongodb": { 1483 | "version": "6.12.0", 1484 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.12.0.tgz", 1485 | "integrity": "sha512-RM7AHlvYfS7jv7+BXund/kR64DryVI+cHbVAy9P61fnb1RcWZqOW1/Wj2YhqMCx+MuYhqTRGv7AwHBzmsCKBfA==", 1486 | "license": "Apache-2.0", 1487 | "dependencies": { 1488 | "@mongodb-js/saslprep": "^1.1.9", 1489 | "bson": "^6.10.1", 1490 | "mongodb-connection-string-url": "^3.0.0" 1491 | }, 1492 | "engines": { 1493 | "node": ">=16.20.1" 1494 | }, 1495 | "peerDependencies": { 1496 | "@aws-sdk/credential-providers": "^3.188.0", 1497 | "@mongodb-js/zstd": "^1.1.0 || ^2.0.0", 1498 | "gcp-metadata": "^5.2.0", 1499 | "kerberos": "^2.0.1", 1500 | "mongodb-client-encryption": ">=6.0.0 <7", 1501 | "snappy": "^7.2.2", 1502 | "socks": "^2.7.1" 1503 | }, 1504 | "peerDependenciesMeta": { 1505 | "@aws-sdk/credential-providers": { 1506 | "optional": true 1507 | }, 1508 | "@mongodb-js/zstd": { 1509 | "optional": true 1510 | }, 1511 | "gcp-metadata": { 1512 | "optional": true 1513 | }, 1514 | "kerberos": { 1515 | "optional": true 1516 | }, 1517 | "mongodb-client-encryption": { 1518 | "optional": true 1519 | }, 1520 | "snappy": { 1521 | "optional": true 1522 | }, 1523 | "socks": { 1524 | "optional": true 1525 | } 1526 | } 1527 | }, 1528 | "node_modules/mongodb-connection-string-url": { 1529 | "version": "3.0.2", 1530 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz", 1531 | "integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==", 1532 | "license": "Apache-2.0", 1533 | "dependencies": { 1534 | "@types/whatwg-url": "^11.0.2", 1535 | "whatwg-url": "^14.1.0 || ^13.0.0" 1536 | } 1537 | }, 1538 | "node_modules/mongoose": { 1539 | "version": "8.9.5", 1540 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.9.5.tgz", 1541 | "integrity": "sha512-SPhOrgBm0nKV3b+IIHGqpUTOmgVL5Z3OO9AwkFEmvOZznXTvplbomstCnPOGAyungtRXE5pJTgKpKcZTdjeESg==", 1542 | "license": "MIT", 1543 | "dependencies": { 1544 | "bson": "^6.10.1", 1545 | "kareem": "2.6.3", 1546 | "mongodb": "~6.12.0", 1547 | "mpath": "0.9.0", 1548 | "mquery": "5.0.0", 1549 | "ms": "2.1.3", 1550 | "sift": "17.1.3" 1551 | }, 1552 | "engines": { 1553 | "node": ">=16.20.1" 1554 | }, 1555 | "funding": { 1556 | "type": "opencollective", 1557 | "url": "https://opencollective.com/mongoose" 1558 | } 1559 | }, 1560 | "node_modules/mongoose/node_modules/ms": { 1561 | "version": "2.1.3", 1562 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1563 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1564 | "license": "MIT" 1565 | }, 1566 | "node_modules/mpath": { 1567 | "version": "0.9.0", 1568 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", 1569 | "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", 1570 | "license": "MIT", 1571 | "engines": { 1572 | "node": ">=4.0.0" 1573 | } 1574 | }, 1575 | "node_modules/mquery": { 1576 | "version": "5.0.0", 1577 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", 1578 | "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", 1579 | "license": "MIT", 1580 | "dependencies": { 1581 | "debug": "4.x" 1582 | }, 1583 | "engines": { 1584 | "node": ">=14.0.0" 1585 | } 1586 | }, 1587 | "node_modules/mquery/node_modules/debug": { 1588 | "version": "4.4.0", 1589 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1590 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1591 | "license": "MIT", 1592 | "dependencies": { 1593 | "ms": "^2.1.3" 1594 | }, 1595 | "engines": { 1596 | "node": ">=6.0" 1597 | }, 1598 | "peerDependenciesMeta": { 1599 | "supports-color": { 1600 | "optional": true 1601 | } 1602 | } 1603 | }, 1604 | "node_modules/mquery/node_modules/ms": { 1605 | "version": "2.1.3", 1606 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1607 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1608 | "license": "MIT" 1609 | }, 1610 | "node_modules/ms": { 1611 | "version": "2.0.0", 1612 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1613 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1614 | "license": "MIT" 1615 | }, 1616 | "node_modules/multer": { 1617 | "version": "1.4.5-lts.1", 1618 | "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", 1619 | "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", 1620 | "license": "MIT", 1621 | "dependencies": { 1622 | "append-field": "^1.0.0", 1623 | "busboy": "^1.0.0", 1624 | "concat-stream": "^1.5.2", 1625 | "mkdirp": "^0.5.4", 1626 | "object-assign": "^4.1.1", 1627 | "type-is": "^1.6.4", 1628 | "xtend": "^4.0.0" 1629 | }, 1630 | "engines": { 1631 | "node": ">= 6.0.0" 1632 | } 1633 | }, 1634 | "node_modules/multer/node_modules/mkdirp": { 1635 | "version": "0.5.6", 1636 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 1637 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 1638 | "license": "MIT", 1639 | "dependencies": { 1640 | "minimist": "^1.2.6" 1641 | }, 1642 | "bin": { 1643 | "mkdirp": "bin/cmd.js" 1644 | } 1645 | }, 1646 | "node_modules/negotiator": { 1647 | "version": "0.6.3", 1648 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1649 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1650 | "license": "MIT", 1651 | "engines": { 1652 | "node": ">= 0.6" 1653 | } 1654 | }, 1655 | "node_modules/node-addon-api": { 1656 | "version": "5.1.0", 1657 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", 1658 | "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", 1659 | "license": "MIT" 1660 | }, 1661 | "node_modules/node-fetch": { 1662 | "version": "2.7.0", 1663 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", 1664 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", 1665 | "license": "MIT", 1666 | "dependencies": { 1667 | "whatwg-url": "^5.0.0" 1668 | }, 1669 | "engines": { 1670 | "node": "4.x || >=6.0.0" 1671 | }, 1672 | "peerDependencies": { 1673 | "encoding": "^0.1.0" 1674 | }, 1675 | "peerDependenciesMeta": { 1676 | "encoding": { 1677 | "optional": true 1678 | } 1679 | } 1680 | }, 1681 | "node_modules/node-fetch/node_modules/tr46": { 1682 | "version": "0.0.3", 1683 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 1684 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", 1685 | "license": "MIT" 1686 | }, 1687 | "node_modules/node-fetch/node_modules/webidl-conversions": { 1688 | "version": "3.0.1", 1689 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 1690 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", 1691 | "license": "BSD-2-Clause" 1692 | }, 1693 | "node_modules/node-fetch/node_modules/whatwg-url": { 1694 | "version": "5.0.0", 1695 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 1696 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 1697 | "license": "MIT", 1698 | "dependencies": { 1699 | "tr46": "~0.0.3", 1700 | "webidl-conversions": "^3.0.0" 1701 | } 1702 | }, 1703 | "node_modules/nodemon": { 1704 | "version": "3.1.9", 1705 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.9.tgz", 1706 | "integrity": "sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==", 1707 | "dev": true, 1708 | "license": "MIT", 1709 | "dependencies": { 1710 | "chokidar": "^3.5.2", 1711 | "debug": "^4", 1712 | "ignore-by-default": "^1.0.1", 1713 | "minimatch": "^3.1.2", 1714 | "pstree.remy": "^1.1.8", 1715 | "semver": "^7.5.3", 1716 | "simple-update-notifier": "^2.0.0", 1717 | "supports-color": "^5.5.0", 1718 | "touch": "^3.1.0", 1719 | "undefsafe": "^2.0.5" 1720 | }, 1721 | "bin": { 1722 | "nodemon": "bin/nodemon.js" 1723 | }, 1724 | "engines": { 1725 | "node": ">=10" 1726 | }, 1727 | "funding": { 1728 | "type": "opencollective", 1729 | "url": "https://opencollective.com/nodemon" 1730 | } 1731 | }, 1732 | "node_modules/nodemon/node_modules/debug": { 1733 | "version": "4.4.0", 1734 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1735 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1736 | "dev": true, 1737 | "license": "MIT", 1738 | "dependencies": { 1739 | "ms": "^2.1.3" 1740 | }, 1741 | "engines": { 1742 | "node": ">=6.0" 1743 | }, 1744 | "peerDependenciesMeta": { 1745 | "supports-color": { 1746 | "optional": true 1747 | } 1748 | } 1749 | }, 1750 | "node_modules/nodemon/node_modules/ms": { 1751 | "version": "2.1.3", 1752 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1753 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1754 | "dev": true, 1755 | "license": "MIT" 1756 | }, 1757 | "node_modules/nopt": { 1758 | "version": "5.0.0", 1759 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", 1760 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", 1761 | "license": "ISC", 1762 | "dependencies": { 1763 | "abbrev": "1" 1764 | }, 1765 | "bin": { 1766 | "nopt": "bin/nopt.js" 1767 | }, 1768 | "engines": { 1769 | "node": ">=6" 1770 | } 1771 | }, 1772 | "node_modules/normalize-path": { 1773 | "version": "3.0.0", 1774 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1775 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1776 | "dev": true, 1777 | "license": "MIT", 1778 | "engines": { 1779 | "node": ">=0.10.0" 1780 | } 1781 | }, 1782 | "node_modules/npmlog": { 1783 | "version": "5.0.1", 1784 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", 1785 | "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", 1786 | "deprecated": "This package is no longer supported.", 1787 | "license": "ISC", 1788 | "dependencies": { 1789 | "are-we-there-yet": "^2.0.0", 1790 | "console-control-strings": "^1.1.0", 1791 | "gauge": "^3.0.0", 1792 | "set-blocking": "^2.0.0" 1793 | } 1794 | }, 1795 | "node_modules/object-assign": { 1796 | "version": "4.1.1", 1797 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1798 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1799 | "license": "MIT", 1800 | "engines": { 1801 | "node": ">=0.10.0" 1802 | } 1803 | }, 1804 | "node_modules/object-inspect": { 1805 | "version": "1.13.3", 1806 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", 1807 | "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", 1808 | "license": "MIT", 1809 | "engines": { 1810 | "node": ">= 0.4" 1811 | }, 1812 | "funding": { 1813 | "url": "https://github.com/sponsors/ljharb" 1814 | } 1815 | }, 1816 | "node_modules/on-finished": { 1817 | "version": "2.4.1", 1818 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1819 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1820 | "license": "MIT", 1821 | "dependencies": { 1822 | "ee-first": "1.1.1" 1823 | }, 1824 | "engines": { 1825 | "node": ">= 0.8" 1826 | } 1827 | }, 1828 | "node_modules/once": { 1829 | "version": "1.4.0", 1830 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1831 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1832 | "license": "ISC", 1833 | "dependencies": { 1834 | "wrappy": "1" 1835 | } 1836 | }, 1837 | "node_modules/openapi-types": { 1838 | "version": "12.1.3", 1839 | "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", 1840 | "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", 1841 | "license": "MIT", 1842 | "peer": true 1843 | }, 1844 | "node_modules/parseurl": { 1845 | "version": "1.3.3", 1846 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1847 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1848 | "license": "MIT", 1849 | "engines": { 1850 | "node": ">= 0.8" 1851 | } 1852 | }, 1853 | "node_modules/path-is-absolute": { 1854 | "version": "1.0.1", 1855 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1856 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1857 | "license": "MIT", 1858 | "engines": { 1859 | "node": ">=0.10.0" 1860 | } 1861 | }, 1862 | "node_modules/path-to-regexp": { 1863 | "version": "0.1.12", 1864 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", 1865 | "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", 1866 | "license": "MIT" 1867 | }, 1868 | "node_modules/picomatch": { 1869 | "version": "2.3.1", 1870 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1871 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1872 | "dev": true, 1873 | "license": "MIT", 1874 | "engines": { 1875 | "node": ">=8.6" 1876 | }, 1877 | "funding": { 1878 | "url": "https://github.com/sponsors/jonschlinkert" 1879 | } 1880 | }, 1881 | "node_modules/process-nextick-args": { 1882 | "version": "2.0.1", 1883 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1884 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1885 | "license": "MIT" 1886 | }, 1887 | "node_modules/proxy-addr": { 1888 | "version": "2.0.7", 1889 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1890 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1891 | "license": "MIT", 1892 | "dependencies": { 1893 | "forwarded": "0.2.0", 1894 | "ipaddr.js": "1.9.1" 1895 | }, 1896 | "engines": { 1897 | "node": ">= 0.10" 1898 | } 1899 | }, 1900 | "node_modules/pstree.remy": { 1901 | "version": "1.1.8", 1902 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1903 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1904 | "dev": true, 1905 | "license": "MIT" 1906 | }, 1907 | "node_modules/punycode": { 1908 | "version": "2.3.1", 1909 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1910 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1911 | "license": "MIT", 1912 | "engines": { 1913 | "node": ">=6" 1914 | } 1915 | }, 1916 | "node_modules/qs": { 1917 | "version": "6.13.0", 1918 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 1919 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 1920 | "license": "BSD-3-Clause", 1921 | "dependencies": { 1922 | "side-channel": "^1.0.6" 1923 | }, 1924 | "engines": { 1925 | "node": ">=0.6" 1926 | }, 1927 | "funding": { 1928 | "url": "https://github.com/sponsors/ljharb" 1929 | } 1930 | }, 1931 | "node_modules/range-parser": { 1932 | "version": "1.2.1", 1933 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1934 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1935 | "license": "MIT", 1936 | "engines": { 1937 | "node": ">= 0.6" 1938 | } 1939 | }, 1940 | "node_modules/raw-body": { 1941 | "version": "2.5.2", 1942 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 1943 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 1944 | "license": "MIT", 1945 | "dependencies": { 1946 | "bytes": "3.1.2", 1947 | "http-errors": "2.0.0", 1948 | "iconv-lite": "0.4.24", 1949 | "unpipe": "1.0.0" 1950 | }, 1951 | "engines": { 1952 | "node": ">= 0.8" 1953 | } 1954 | }, 1955 | "node_modules/readable-stream": { 1956 | "version": "3.6.2", 1957 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", 1958 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", 1959 | "license": "MIT", 1960 | "dependencies": { 1961 | "inherits": "^2.0.3", 1962 | "string_decoder": "^1.1.1", 1963 | "util-deprecate": "^1.0.1" 1964 | }, 1965 | "engines": { 1966 | "node": ">= 6" 1967 | } 1968 | }, 1969 | "node_modules/readdirp": { 1970 | "version": "3.6.0", 1971 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1972 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1973 | "dev": true, 1974 | "license": "MIT", 1975 | "dependencies": { 1976 | "picomatch": "^2.2.1" 1977 | }, 1978 | "engines": { 1979 | "node": ">=8.10.0" 1980 | } 1981 | }, 1982 | "node_modules/rimraf": { 1983 | "version": "3.0.2", 1984 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1985 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1986 | "deprecated": "Rimraf versions prior to v4 are no longer supported", 1987 | "license": "ISC", 1988 | "dependencies": { 1989 | "glob": "^7.1.3" 1990 | }, 1991 | "bin": { 1992 | "rimraf": "bin.js" 1993 | }, 1994 | "funding": { 1995 | "url": "https://github.com/sponsors/isaacs" 1996 | } 1997 | }, 1998 | "node_modules/safe-buffer": { 1999 | "version": "5.2.1", 2000 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2001 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2002 | "funding": [ 2003 | { 2004 | "type": "github", 2005 | "url": "https://github.com/sponsors/feross" 2006 | }, 2007 | { 2008 | "type": "patreon", 2009 | "url": "https://www.patreon.com/feross" 2010 | }, 2011 | { 2012 | "type": "consulting", 2013 | "url": "https://feross.org/support" 2014 | } 2015 | ], 2016 | "license": "MIT" 2017 | }, 2018 | "node_modules/safer-buffer": { 2019 | "version": "2.1.2", 2020 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2021 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 2022 | "license": "MIT" 2023 | }, 2024 | "node_modules/semver": { 2025 | "version": "7.6.3", 2026 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", 2027 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 2028 | "license": "ISC", 2029 | "bin": { 2030 | "semver": "bin/semver.js" 2031 | }, 2032 | "engines": { 2033 | "node": ">=10" 2034 | } 2035 | }, 2036 | "node_modules/send": { 2037 | "version": "0.19.0", 2038 | "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", 2039 | "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", 2040 | "license": "MIT", 2041 | "dependencies": { 2042 | "debug": "2.6.9", 2043 | "depd": "2.0.0", 2044 | "destroy": "1.2.0", 2045 | "encodeurl": "~1.0.2", 2046 | "escape-html": "~1.0.3", 2047 | "etag": "~1.8.1", 2048 | "fresh": "0.5.2", 2049 | "http-errors": "2.0.0", 2050 | "mime": "1.6.0", 2051 | "ms": "2.1.3", 2052 | "on-finished": "2.4.1", 2053 | "range-parser": "~1.2.1", 2054 | "statuses": "2.0.1" 2055 | }, 2056 | "engines": { 2057 | "node": ">= 0.8.0" 2058 | } 2059 | }, 2060 | "node_modules/send/node_modules/encodeurl": { 2061 | "version": "1.0.2", 2062 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 2063 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 2064 | "license": "MIT", 2065 | "engines": { 2066 | "node": ">= 0.8" 2067 | } 2068 | }, 2069 | "node_modules/send/node_modules/ms": { 2070 | "version": "2.1.3", 2071 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2072 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2073 | "license": "MIT" 2074 | }, 2075 | "node_modules/serve-static": { 2076 | "version": "1.16.2", 2077 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", 2078 | "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", 2079 | "license": "MIT", 2080 | "dependencies": { 2081 | "encodeurl": "~2.0.0", 2082 | "escape-html": "~1.0.3", 2083 | "parseurl": "~1.3.3", 2084 | "send": "0.19.0" 2085 | }, 2086 | "engines": { 2087 | "node": ">= 0.8.0" 2088 | } 2089 | }, 2090 | "node_modules/set-blocking": { 2091 | "version": "2.0.0", 2092 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2093 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", 2094 | "license": "ISC" 2095 | }, 2096 | "node_modules/setprototypeof": { 2097 | "version": "1.2.0", 2098 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 2099 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 2100 | "license": "ISC" 2101 | }, 2102 | "node_modules/side-channel": { 2103 | "version": "1.1.0", 2104 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 2105 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 2106 | "license": "MIT", 2107 | "dependencies": { 2108 | "es-errors": "^1.3.0", 2109 | "object-inspect": "^1.13.3", 2110 | "side-channel-list": "^1.0.0", 2111 | "side-channel-map": "^1.0.1", 2112 | "side-channel-weakmap": "^1.0.2" 2113 | }, 2114 | "engines": { 2115 | "node": ">= 0.4" 2116 | }, 2117 | "funding": { 2118 | "url": "https://github.com/sponsors/ljharb" 2119 | } 2120 | }, 2121 | "node_modules/side-channel-list": { 2122 | "version": "1.0.0", 2123 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 2124 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 2125 | "license": "MIT", 2126 | "dependencies": { 2127 | "es-errors": "^1.3.0", 2128 | "object-inspect": "^1.13.3" 2129 | }, 2130 | "engines": { 2131 | "node": ">= 0.4" 2132 | }, 2133 | "funding": { 2134 | "url": "https://github.com/sponsors/ljharb" 2135 | } 2136 | }, 2137 | "node_modules/side-channel-map": { 2138 | "version": "1.0.1", 2139 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 2140 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 2141 | "license": "MIT", 2142 | "dependencies": { 2143 | "call-bound": "^1.0.2", 2144 | "es-errors": "^1.3.0", 2145 | "get-intrinsic": "^1.2.5", 2146 | "object-inspect": "^1.13.3" 2147 | }, 2148 | "engines": { 2149 | "node": ">= 0.4" 2150 | }, 2151 | "funding": { 2152 | "url": "https://github.com/sponsors/ljharb" 2153 | } 2154 | }, 2155 | "node_modules/side-channel-weakmap": { 2156 | "version": "1.0.2", 2157 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 2158 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 2159 | "license": "MIT", 2160 | "dependencies": { 2161 | "call-bound": "^1.0.2", 2162 | "es-errors": "^1.3.0", 2163 | "get-intrinsic": "^1.2.5", 2164 | "object-inspect": "^1.13.3", 2165 | "side-channel-map": "^1.0.1" 2166 | }, 2167 | "engines": { 2168 | "node": ">= 0.4" 2169 | }, 2170 | "funding": { 2171 | "url": "https://github.com/sponsors/ljharb" 2172 | } 2173 | }, 2174 | "node_modules/sift": { 2175 | "version": "17.1.3", 2176 | "resolved": "https://registry.npmjs.org/sift/-/sift-17.1.3.tgz", 2177 | "integrity": "sha512-Rtlj66/b0ICeFzYTuNvX/EF1igRbbnGSvEyT79McoZa/DeGhMyC5pWKOEsZKnpkqtSeovd5FL/bjHWC3CIIvCQ==", 2178 | "license": "MIT" 2179 | }, 2180 | "node_modules/signal-exit": { 2181 | "version": "3.0.7", 2182 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", 2183 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", 2184 | "license": "ISC" 2185 | }, 2186 | "node_modules/simple-update-notifier": { 2187 | "version": "2.0.0", 2188 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", 2189 | "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", 2190 | "dev": true, 2191 | "license": "MIT", 2192 | "dependencies": { 2193 | "semver": "^7.5.3" 2194 | }, 2195 | "engines": { 2196 | "node": ">=10" 2197 | } 2198 | }, 2199 | "node_modules/sparse-bitfield": { 2200 | "version": "3.0.3", 2201 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 2202 | "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", 2203 | "license": "MIT", 2204 | "dependencies": { 2205 | "memory-pager": "^1.0.2" 2206 | } 2207 | }, 2208 | "node_modules/statuses": { 2209 | "version": "2.0.1", 2210 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 2211 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 2212 | "license": "MIT", 2213 | "engines": { 2214 | "node": ">= 0.8" 2215 | } 2216 | }, 2217 | "node_modules/streamsearch": { 2218 | "version": "1.1.0", 2219 | "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", 2220 | "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", 2221 | "engines": { 2222 | "node": ">=10.0.0" 2223 | } 2224 | }, 2225 | "node_modules/string_decoder": { 2226 | "version": "1.3.0", 2227 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2228 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2229 | "license": "MIT", 2230 | "dependencies": { 2231 | "safe-buffer": "~5.2.0" 2232 | } 2233 | }, 2234 | "node_modules/string-width": { 2235 | "version": "4.2.3", 2236 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2237 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2238 | "license": "MIT", 2239 | "dependencies": { 2240 | "emoji-regex": "^8.0.0", 2241 | "is-fullwidth-code-point": "^3.0.0", 2242 | "strip-ansi": "^6.0.1" 2243 | }, 2244 | "engines": { 2245 | "node": ">=8" 2246 | } 2247 | }, 2248 | "node_modules/strip-ansi": { 2249 | "version": "6.0.1", 2250 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2251 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2252 | "license": "MIT", 2253 | "dependencies": { 2254 | "ansi-regex": "^5.0.1" 2255 | }, 2256 | "engines": { 2257 | "node": ">=8" 2258 | } 2259 | }, 2260 | "node_modules/supports-color": { 2261 | "version": "5.5.0", 2262 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2263 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2264 | "dev": true, 2265 | "license": "MIT", 2266 | "dependencies": { 2267 | "has-flag": "^3.0.0" 2268 | }, 2269 | "engines": { 2270 | "node": ">=4" 2271 | } 2272 | }, 2273 | "node_modules/swagger-jsdoc": { 2274 | "version": "6.2.8", 2275 | "resolved": "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.8.tgz", 2276 | "integrity": "sha512-VPvil1+JRpmJ55CgAtn8DIcpBs0bL5L3q5bVQvF4tAW/k/9JYSj7dCpaYCAv5rufe0vcCbBRQXGvzpkWjvLklQ==", 2277 | "license": "MIT", 2278 | "dependencies": { 2279 | "commander": "6.2.0", 2280 | "doctrine": "3.0.0", 2281 | "glob": "7.1.6", 2282 | "lodash.mergewith": "^4.6.2", 2283 | "swagger-parser": "^10.0.3", 2284 | "yaml": "2.0.0-1" 2285 | }, 2286 | "bin": { 2287 | "swagger-jsdoc": "bin/swagger-jsdoc.js" 2288 | }, 2289 | "engines": { 2290 | "node": ">=12.0.0" 2291 | } 2292 | }, 2293 | "node_modules/swagger-jsdoc/node_modules/glob": { 2294 | "version": "7.1.6", 2295 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 2296 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 2297 | "deprecated": "Glob versions prior to v9 are no longer supported", 2298 | "license": "ISC", 2299 | "dependencies": { 2300 | "fs.realpath": "^1.0.0", 2301 | "inflight": "^1.0.4", 2302 | "inherits": "2", 2303 | "minimatch": "^3.0.4", 2304 | "once": "^1.3.0", 2305 | "path-is-absolute": "^1.0.0" 2306 | }, 2307 | "engines": { 2308 | "node": "*" 2309 | }, 2310 | "funding": { 2311 | "url": "https://github.com/sponsors/isaacs" 2312 | } 2313 | }, 2314 | "node_modules/swagger-parser": { 2315 | "version": "10.0.3", 2316 | "resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.3.tgz", 2317 | "integrity": "sha512-nF7oMeL4KypldrQhac8RyHerJeGPD1p2xDh900GPvc+Nk7nWP6jX2FcC7WmkinMoAmoO774+AFXcWsW8gMWEIg==", 2318 | "license": "MIT", 2319 | "dependencies": { 2320 | "@apidevtools/swagger-parser": "10.0.3" 2321 | }, 2322 | "engines": { 2323 | "node": ">=10" 2324 | } 2325 | }, 2326 | "node_modules/swagger-ui-dist": { 2327 | "version": "5.18.3", 2328 | "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-5.18.3.tgz", 2329 | "integrity": "sha512-G33HFW0iFNStfY2x6QXO2JYVMrFruc8AZRX0U/L71aA7WeWfX2E5Nm8E/tsipSZJeIZZbSjUDeynLK/wcuNWIw==", 2330 | "license": "Apache-2.0", 2331 | "dependencies": { 2332 | "@scarf/scarf": "=1.4.0" 2333 | } 2334 | }, 2335 | "node_modules/swagger-ui-express": { 2336 | "version": "5.0.1", 2337 | "resolved": "https://registry.npmjs.org/swagger-ui-express/-/swagger-ui-express-5.0.1.tgz", 2338 | "integrity": "sha512-SrNU3RiBGTLLmFU8GIJdOdanJTl4TOmT27tt3bWWHppqYmAZ6IDuEuBvMU6nZq0zLEe6b/1rACXCgLZqO6ZfrA==", 2339 | "license": "MIT", 2340 | "dependencies": { 2341 | "swagger-ui-dist": ">=5.0.0" 2342 | }, 2343 | "engines": { 2344 | "node": ">= v0.10.32" 2345 | }, 2346 | "peerDependencies": { 2347 | "express": ">=4.0.0 || >=5.0.0-beta" 2348 | } 2349 | }, 2350 | "node_modules/tar": { 2351 | "version": "6.2.1", 2352 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", 2353 | "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", 2354 | "license": "ISC", 2355 | "dependencies": { 2356 | "chownr": "^2.0.0", 2357 | "fs-minipass": "^2.0.0", 2358 | "minipass": "^5.0.0", 2359 | "minizlib": "^2.1.1", 2360 | "mkdirp": "^1.0.3", 2361 | "yallist": "^4.0.0" 2362 | }, 2363 | "engines": { 2364 | "node": ">=10" 2365 | } 2366 | }, 2367 | "node_modules/to-regex-range": { 2368 | "version": "5.0.1", 2369 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2370 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2371 | "dev": true, 2372 | "license": "MIT", 2373 | "dependencies": { 2374 | "is-number": "^7.0.0" 2375 | }, 2376 | "engines": { 2377 | "node": ">=8.0" 2378 | } 2379 | }, 2380 | "node_modules/toidentifier": { 2381 | "version": "1.0.1", 2382 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 2383 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 2384 | "license": "MIT", 2385 | "engines": { 2386 | "node": ">=0.6" 2387 | } 2388 | }, 2389 | "node_modules/touch": { 2390 | "version": "3.1.1", 2391 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", 2392 | "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", 2393 | "dev": true, 2394 | "license": "ISC", 2395 | "bin": { 2396 | "nodetouch": "bin/nodetouch.js" 2397 | } 2398 | }, 2399 | "node_modules/tr46": { 2400 | "version": "5.0.0", 2401 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz", 2402 | "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==", 2403 | "license": "MIT", 2404 | "dependencies": { 2405 | "punycode": "^2.3.1" 2406 | }, 2407 | "engines": { 2408 | "node": ">=18" 2409 | } 2410 | }, 2411 | "node_modules/type-is": { 2412 | "version": "1.6.18", 2413 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2414 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2415 | "license": "MIT", 2416 | "dependencies": { 2417 | "media-typer": "0.3.0", 2418 | "mime-types": "~2.1.24" 2419 | }, 2420 | "engines": { 2421 | "node": ">= 0.6" 2422 | } 2423 | }, 2424 | "node_modules/typedarray": { 2425 | "version": "0.0.6", 2426 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 2427 | "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", 2428 | "license": "MIT" 2429 | }, 2430 | "node_modules/undefsafe": { 2431 | "version": "2.0.5", 2432 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 2433 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 2434 | "dev": true, 2435 | "license": "MIT" 2436 | }, 2437 | "node_modules/unpipe": { 2438 | "version": "1.0.0", 2439 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2440 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 2441 | "license": "MIT", 2442 | "engines": { 2443 | "node": ">= 0.8" 2444 | } 2445 | }, 2446 | "node_modules/util-deprecate": { 2447 | "version": "1.0.2", 2448 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2449 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 2450 | "license": "MIT" 2451 | }, 2452 | "node_modules/utils-merge": { 2453 | "version": "1.0.1", 2454 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2455 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 2456 | "license": "MIT", 2457 | "engines": { 2458 | "node": ">= 0.4.0" 2459 | } 2460 | }, 2461 | "node_modules/validator": { 2462 | "version": "13.12.0", 2463 | "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", 2464 | "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", 2465 | "license": "MIT", 2466 | "engines": { 2467 | "node": ">= 0.10" 2468 | } 2469 | }, 2470 | "node_modules/vary": { 2471 | "version": "1.1.2", 2472 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2473 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 2474 | "license": "MIT", 2475 | "engines": { 2476 | "node": ">= 0.8" 2477 | } 2478 | }, 2479 | "node_modules/webidl-conversions": { 2480 | "version": "7.0.0", 2481 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", 2482 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", 2483 | "license": "BSD-2-Clause", 2484 | "engines": { 2485 | "node": ">=12" 2486 | } 2487 | }, 2488 | "node_modules/whatwg-url": { 2489 | "version": "14.1.0", 2490 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.1.0.tgz", 2491 | "integrity": "sha512-jlf/foYIKywAt3x/XWKZ/3rz8OSJPiWktjmk891alJUEjiVxKX9LEO92qH3hv4aJ0mN3MWPvGMCy8jQi95xK4w==", 2492 | "license": "MIT", 2493 | "dependencies": { 2494 | "tr46": "^5.0.0", 2495 | "webidl-conversions": "^7.0.0" 2496 | }, 2497 | "engines": { 2498 | "node": ">=18" 2499 | } 2500 | }, 2501 | "node_modules/wide-align": { 2502 | "version": "1.1.5", 2503 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", 2504 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", 2505 | "license": "ISC", 2506 | "dependencies": { 2507 | "string-width": "^1.0.2 || 2 || 3 || 4" 2508 | } 2509 | }, 2510 | "node_modules/wrappy": { 2511 | "version": "1.0.2", 2512 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2513 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2514 | "license": "ISC" 2515 | }, 2516 | "node_modules/xtend": { 2517 | "version": "4.0.2", 2518 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 2519 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", 2520 | "license": "MIT", 2521 | "engines": { 2522 | "node": ">=0.4" 2523 | } 2524 | }, 2525 | "node_modules/yallist": { 2526 | "version": "4.0.0", 2527 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2528 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2529 | "license": "ISC" 2530 | }, 2531 | "node_modules/yaml": { 2532 | "version": "2.0.0-1", 2533 | "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz", 2534 | "integrity": "sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ==", 2535 | "license": "ISC", 2536 | "engines": { 2537 | "node": ">= 6" 2538 | } 2539 | }, 2540 | "node_modules/z-schema": { 2541 | "version": "5.0.5", 2542 | "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz", 2543 | "integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==", 2544 | "license": "MIT", 2545 | "dependencies": { 2546 | "lodash.get": "^4.4.2", 2547 | "lodash.isequal": "^4.5.0", 2548 | "validator": "^13.7.0" 2549 | }, 2550 | "bin": { 2551 | "z-schema": "bin/z-schema" 2552 | }, 2553 | "engines": { 2554 | "node": ">=8.0.0" 2555 | }, 2556 | "optionalDependencies": { 2557 | "commander": "^9.4.1" 2558 | } 2559 | }, 2560 | "node_modules/z-schema/node_modules/commander": { 2561 | "version": "9.5.0", 2562 | "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", 2563 | "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", 2564 | "license": "MIT", 2565 | "optional": true, 2566 | "engines": { 2567 | "node": "^12.20.0 || >=14" 2568 | } 2569 | } 2570 | } 2571 | } 2572 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "server", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "nodemon index.js" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "description": "", 13 | "dependencies": { 14 | "bcrypt": "^5.1.1", 15 | "cors": "^2.8.5", 16 | "dotenv": "^16.4.7", 17 | "express": "^4.21.2", 18 | "jsonwebtoken": "^9.0.2", 19 | "mongoose": "^8.9.5", 20 | "multer": "^1.4.5-lts.1", 21 | "swagger-jsdoc": "^6.2.8", 22 | "swagger-ui-express": "^5.0.1" 23 | }, 24 | "devDependencies": { 25 | "nodemon": "^3.1.9" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /routes/admin-routes.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import { 3 | deleteAdmin, 4 | getAdmin, 5 | getAllAdmins, 6 | login, 7 | register, 8 | updateAdmin, 9 | GetMe, 10 | } from "../controllers/admin-controller.js"; 11 | // import isSuperAdmin from "../middlewares/isSuperAdmin.js"; 12 | import isExisted from "../middlewares/isExisted.js"; 13 | 14 | const router = express.Router(); 15 | 16 | /** 17 | * @swagger 18 | * components: 19 | * schemas: 20 | * Admin: 21 | * type: object 22 | * required: 23 | * - firstName 24 | * - phoneNumber 25 | * - password 26 | * properties: 27 | * firstName: 28 | * type: string 29 | * description: Foydalanuvchining ismi 30 | * phoneNumber: 31 | * type: string 32 | * description: Telefon raqami 33 | * password: 34 | * type: string 35 | * description: Parol 36 | * role: 37 | * type: string 38 | * description: Roli (admin yoki superadmin) 39 | * example: 40 | * firstName: "Folonchi" 41 | * phoneNumber: "+998901234567" 42 | * password: "12345" 43 | * role: "admin" 44 | */ 45 | 46 | /** 47 | * @swagger 48 | * /api/admin/register: 49 | * post: 50 | * summary: Yangi foydalanuvchini ro'yxatdan o'tkazish 51 | * tags: [Admin] 52 | * requestBody: 53 | * required: true 54 | * content: 55 | * application/json: 56 | * schema: 57 | * $ref: '#/components/schemas/Admin' 58 | * responses: 59 | * 201: 60 | * description: Foydalanuvchi muvaffaqiyatli yaratildi 61 | * 400: 62 | * description: Xato yoki noto'g'ri token 63 | * 500: 64 | * description: Server xatosi 65 | */ 66 | router.post("/register", register); 67 | 68 | /** 69 | * @swagger 70 | * /api/admin/login: 71 | * post: 72 | * summary: Admin login qilish 73 | * tags: [Admin] 74 | * requestBody: 75 | * required: true 76 | * content: 77 | * application/json: 78 | * schema: 79 | * $ref: '#/components/schemas/Admin' 80 | * responses: 81 | * 200: 82 | * description: Login muvaffaqiyatli 83 | * 400: 84 | * description: Xato yoki noto'g'ri token 85 | * 500: 86 | * description: Server xatosi 87 | */ 88 | router.post("/login", login); 89 | 90 | /** 91 | * @swagger 92 | * /api/admin/me: 93 | * get: 94 | * summary: Admin ma'lumotlarini olish 95 | * tags: [Admin] 96 | * security: 97 | * - BearerAuth: [] 98 | * responses: 99 | * 200: 100 | * description: Ma'lumotlar qaytarildi 101 | * 400: 102 | * description: Xato yoki noto'g'ri token 103 | * 500: 104 | * description: Server xatosi 105 | */ 106 | router.get("/me", isExisted, GetMe); 107 | 108 | /** 109 | * @swagger 110 | * /api/admin: 111 | * get: 112 | * summary: Barcha adminlarni olish 113 | * tags: [Admin] 114 | * responses: 115 | * 200: 116 | * description: Muvaffaqiyatli olindi 117 | */ 118 | router.get("/", getAllAdmins); 119 | 120 | /** 121 | * @swagger 122 | * /api/admin/{id}: 123 | * get: 124 | * summary: Bitta adminni olish 125 | * tags: [Admin] 126 | * parameters: 127 | * - in: path 128 | * name: id 129 | * required: true 130 | * schema: 131 | * type: string 132 | * description: Admin ID 133 | * responses: 134 | * 200: 135 | * description: Admin topildi 136 | */ 137 | router.get("/:id", getAdmin); 138 | 139 | /** 140 | * @swagger 141 | * /api/admin/{id}: 142 | * put: 143 | * summary: Adminni yangilash 144 | * tags: [Admin] 145 | * parameters: 146 | * - in: path 147 | * name: id 148 | * required: true 149 | * schema: 150 | * type: string 151 | * description: Admin ID 152 | * responses: 153 | * 200: 154 | * description: Muvaffaqiyatli yangilandi 155 | */ 156 | router.put("/:id", updateAdmin); 157 | 158 | /** 159 | * @swagger 160 | * /api/admin/{id}: 161 | * delete: 162 | * summary: Adminni o'chirish 163 | * tags: [Admin] 164 | * parameters: 165 | * - in: path 166 | * name: id 167 | * required: true 168 | * schema: 169 | * type: string 170 | * description: Admin ID 171 | * responses: 172 | * 200: 173 | * description: Muvaffaqiyatli o'chirildi 174 | */ 175 | router.delete("/:id", deleteAdmin); 176 | 177 | export default router; 178 | -------------------------------------------------------------------------------- /routes/collection-routes.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import { 3 | addAudio, 4 | addUnit, 5 | createBook, 6 | createCollection, 7 | createLevel, 8 | deleteBook, 9 | deleteCollection, 10 | editBook, 11 | editCollection, 12 | getAllCollections, 13 | getBookByName, 14 | getCollectionByName, 15 | getOneUnit, 16 | getUnits, 17 | } from "../controllers/collection-controller.js"; 18 | import uploadImage from "../middlewares/uploadImage.js"; 19 | import uploadAudio from "../middlewares/uploadAudio.js"; 20 | 21 | const router = express.Router(); 22 | 23 | router.get("/", getAllCollections); 24 | router.get("/:collectionName", getCollectionByName); 25 | router.get("/:collectionName/:bookName", getBookByName); 26 | router.get("/:collectionName/:bookName/:level", getUnits); 27 | router.get("/:collectionName/:bookName/:level/:unitId", getOneUnit); 28 | 29 | router.post("/createNewCollection", uploadImage, createCollection); 30 | router.post("/createNewBook", createBook); 31 | router.post("/newLevel", createLevel); 32 | router.post("/addUnit/:collectionName/:bookName/:levelId", addUnit); 33 | 34 | router.post( 35 | "/addAudio/:collectionName/:bookName/:level/:unitId", 36 | uploadAudio, 37 | addAudio 38 | ); 39 | 40 | router.put("/editCollection/:id", editCollection); 41 | router.put("/editBook", editBook); 42 | 43 | router.delete("/deleteCollection/:id", deleteCollection); 44 | router.delete("/deleteBook/:collectionName/:bookId", deleteBook); 45 | 46 | export default router; 47 | -------------------------------------------------------------------------------- /routes/student-routes.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import { 3 | register, 4 | login, 5 | getAllStudentModels, 6 | getStudentModel, 7 | updateStudentModel, 8 | deleteStudentModel, 9 | GetMe, 10 | Verify, 11 | } from "../controllers/student-controller.js"; 12 | import isExisted from "../middlewares/isExisted.js"; 13 | // import isAdmin from "../middlewares/isAdmin.js"; 14 | 15 | const router = express.Router(); 16 | /** 17 | * @swagger 18 | * components: 19 | * schemas: 20 | * Student: 21 | * type: object 22 | * required: 23 | * - firstName 24 | * - lastName 25 | * - phoneNumber 26 | * - password 27 | * properties: 28 | * firstName: 29 | * type: string 30 | * description: Foydalanuvchining ismi 31 | * lastName: 32 | * type: string 33 | * description: Foydalanuvchining familiyasi 34 | * phoneNumber: 35 | * type: string 36 | * description: Telefon raqami 37 | * password: 38 | * type: string 39 | * description: Paroli 40 | * role: 41 | * type: string 42 | * description: Roli 43 | * default: "student" 44 | * payment: 45 | * type: object 46 | * description: To'lov ma'lumotlari 47 | * properties: 48 | * paymentHistory: 49 | * type: array 50 | * items: 51 | * type: string 52 | * format: date 53 | * description: To'lovlar tarixi 54 | * lastPaidDate: 55 | * type: string 56 | * format: date 57 | * description: Oxirgi to'lov sanasi 58 | * status: 59 | * type: boolean 60 | * description: To'lov holati 61 | * example: 62 | * firstName: "Ali" 63 | * lastName: "Valiyev" 64 | * phoneNumber: "+998901234567" 65 | * password: "12345" 66 | * role: "student" 67 | * payment: 68 | * paymentHistory: ["2024-01-01", "2024-02-01"] 69 | * lastPaidDate: "2024-02-01" 70 | * status: true 71 | */ 72 | 73 | /** 74 | * @swagger 75 | * /api/student/register: 76 | * post: 77 | * summary: Yangi studentni ro'yxatdan o'tkazish 78 | * tags: [Student] 79 | * requestBody: 80 | * required: true 81 | * content: 82 | * application/json: 83 | * schema: 84 | * $ref: '#/components/schemas/Student' 85 | * responses: 86 | * 201: 87 | * description: Student muvaffaqiyatli yaratildi 88 | * 400: 89 | * description: Validation errors or invalid token 90 | * 500: 91 | * description: Server error 92 | */ 93 | 94 | /** 95 | * @swagger 96 | * /api/student/login: 97 | * post: 98 | * summary: Student login qilish 99 | * tags: [Student] 100 | * requestBody: 101 | * required: true 102 | * content: 103 | * application/json: 104 | * schema: 105 | * $ref: '#/components/schemas/Student' 106 | * responses: 107 | * 201: 108 | * description: Student muvaffaqiyatli login bo'ldi 109 | * 400: 110 | * description: Validation errors or invalid token 111 | * 500: 112 | * description: Server error 113 | */ 114 | 115 | /** 116 | * @swagger 117 | * /api/student: 118 | * get: 119 | * summary: Barcha studentlarni olish 120 | * tags: [Student] 121 | * responses: 122 | * 200: 123 | * description: Barcha studentlar muvaffaqiyatli olindi 124 | * 500: 125 | * description: Server error 126 | */ 127 | 128 | /** 129 | * @swagger 130 | * /api/student/{id}: 131 | * get: 132 | * summary: Bitta studentni olish 133 | * tags: [Student] 134 | * parameters: 135 | * - in: path 136 | * name: id 137 | * required: true 138 | * schema: 139 | * type: string 140 | * description: Studentning ID-si 141 | * responses: 142 | * 200: 143 | * description: Student muvaffaqiyatli olindi 144 | * 404: 145 | * description: Student topilmadi 146 | * 500: 147 | * description: Server error 148 | */ 149 | 150 | /** 151 | * @swagger 152 | * /api/student/{id}: 153 | * put: 154 | * summary: Studentni yangilash 155 | * tags: [Student] 156 | * parameters: 157 | * - in: path 158 | * name: id 159 | * required: true 160 | * schema: 161 | * type: string 162 | * description: Studentning ID-si 163 | * requestBody: 164 | * required: true 165 | * content: 166 | * application/json: 167 | * schema: 168 | * $ref: '#/components/schemas/Student' 169 | * responses: 170 | * 200: 171 | * description: Student muvaffaqiyatli yangilandi 172 | * 400: 173 | * description: Validation errors or invalid token 174 | * 404: 175 | * description: Student topilmadi 176 | * 500: 177 | * description: Server error 178 | */ 179 | 180 | /** 181 | * @swagger 182 | * /api/student/{id}: 183 | * delete: 184 | * summary: Studentni o'chirish 185 | * tags: [Student] 186 | * parameters: 187 | * - in: path 188 | * name: id 189 | * required: true 190 | * schema: 191 | * type: string 192 | * description: Studentning ID-si 193 | * responses: 194 | * 200: 195 | * description: Student muvaffaqiyatli o'chirildi 196 | * 404: 197 | * description: Student topilmadi 198 | * 500: 199 | * description: Server error 200 | */ 201 | 202 | router.post("/register", register); 203 | router.post("/login", login); 204 | 205 | router.get("/", getAllStudentModels); 206 | router.get("/me", isExisted, GetMe); 207 | router.get("/:id", getStudentModel); 208 | router.put("/:id", updateStudentModel); 209 | router.get("/verify/:id", Verify); 210 | router.delete("/:id", deleteStudentModel); 211 | 212 | export default router; 213 | -------------------------------------------------------------------------------- /routes/super-admin-routes.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import { 3 | register, 4 | login, 5 | getAllSuperAdmins, 6 | getSuperAdmin, 7 | updateSuperAdmin, 8 | deleteSuperAdmin, 9 | GetMe, 10 | } from "../controllers/super-admin-controller.js"; 11 | import isExisted from "../middlewares/isExisted.js"; 12 | 13 | const router = express.Router(); 14 | 15 | /** 16 | * @swagger 17 | * components: 18 | * schemas: 19 | * SuperAdmin: 20 | * type: object 21 | * required: 22 | * - firstName 23 | * - lastName 24 | * - phoneNumber 25 | * - password 26 | * properties: 27 | * firstName: 28 | * type: string 29 | * description: Super-adminning ismi 30 | * lastName: 31 | * type: string 32 | * description: Super-adminning familiyasi 33 | * phoneNumber: 34 | * type: string 35 | * description: Telefon raqami 36 | * password: 37 | * type: string 38 | * description: Paroli 39 | * role: 40 | * type: string 41 | * description: Roli 42 | * default: "super-admin" 43 | * example: 44 | * firstName: "Ali" 45 | * lastName: "Valiyev" 46 | * phoneNumber: "+998901234567" 47 | * password: "12345" 48 | * role: "super-admin" 49 | */ 50 | 51 | /** 52 | * @swagger 53 | * /api/super-admin/register: 54 | * post: 55 | * summary: Yangi super-adminni ro'yxatdan o'tkazish 56 | * tags: [SuperAdmin] 57 | * requestBody: 58 | * required: true 59 | * content: 60 | * application/json: 61 | * schema: 62 | * $ref: '#/components/schemas/SuperAdmin' 63 | * responses: 64 | * 201: 65 | * description: Super-admin muvaffaqiyatli yaratildi 66 | * 400: 67 | * description: Validation errors or invalid token 68 | * 500: 69 | * description: Server error 70 | */ 71 | 72 | /** 73 | * @swagger 74 | * /api/super-admin/login: 75 | * post: 76 | * summary: Super-admin login qilish 77 | * tags: [SuperAdmin] 78 | * requestBody: 79 | * required: true 80 | * content: 81 | * application/json: 82 | * schema: 83 | * $ref: '#/components/schemas/SuperAdmin' 84 | * responses: 85 | * 201: 86 | * description: Super-admin muvaffaqiyatli login bo'ldi 87 | * 400: 88 | * description: Validation errors or invalid token 89 | * 500: 90 | * description: Server error 91 | */ 92 | 93 | /** 94 | * @swagger 95 | * /api/super-admin: 96 | * get: 97 | * summary: Barcha super-adminlarni olish 98 | * tags: [SuperAdmin] 99 | * responses: 100 | * 200: 101 | * description: Barcha super-adminlar muvaffaqiyatli olindi 102 | * 500: 103 | * description: Server error 104 | */ 105 | 106 | /** 107 | * @swagger 108 | * /api/super-admin/me: 109 | * get: 110 | * summary: Joriy login bo'lgan super-adminni olish 111 | * tags: [SuperAdmin] 112 | * responses: 113 | * 200: 114 | * description: Super-admin muvaffaqiyatli olindi 115 | * 404: 116 | * description: Super-admin topilmadi 117 | * 500: 118 | * description: Server error 119 | */ 120 | 121 | /** 122 | * @swagger 123 | * /api/super-admin/{id}: 124 | * get: 125 | * summary: Bitta super-adminni olish 126 | * tags: [SuperAdmin] 127 | * parameters: 128 | * - in: path 129 | * name: id 130 | * required: true 131 | * schema: 132 | * type: string 133 | * description: Super-adminning ID-si 134 | * responses: 135 | * 200: 136 | * description: Super-admin muvaffaqiyatli olindi 137 | * 404: 138 | * description: Super-admin topilmadi 139 | * 500: 140 | * description: Server error 141 | */ 142 | 143 | /** 144 | * @swagger 145 | * /api/super-admin/{id}: 146 | * put: 147 | * summary: Super-adminni yangilash 148 | * tags: [SuperAdmin] 149 | * parameters: 150 | * - in: path 151 | * name: id 152 | * required: true 153 | * schema: 154 | * type: string 155 | * description: Super-adminning ID-si 156 | * requestBody: 157 | * required: true 158 | * content: 159 | * application/json: 160 | * schema: 161 | * $ref: '#/components/schemas/SuperAdmin' 162 | * responses: 163 | * 200: 164 | * description: Super-admin muvaffaqiyatli yangilandi 165 | * 400: 166 | * description: Validation errors or invalid token 167 | * 404: 168 | * description: Super-admin topilmadi 169 | * 500: 170 | * description: Server error 171 | */ 172 | 173 | /** 174 | * @swagger 175 | * /api/super-admin/{id}: 176 | * delete: 177 | * summary: Super-adminni o'chirish 178 | * tags: [SuperAdmin] 179 | * parameters: 180 | * - in: path 181 | * name: id 182 | * required: true 183 | * schema: 184 | * type: string 185 | * description: Super-adminning ID-si 186 | * responses: 187 | * 200: 188 | * description: Super-admin muvaffaqiyatli o'chirildi 189 | * 404: 190 | * description: Super-admin topilmadi 191 | * 500: 192 | * description: Server error 193 | */ 194 | 195 | router.post("/register", register); 196 | router.post("/login", login); 197 | 198 | router.get("/", getAllSuperAdmins); 199 | router.get("/me", isExisted, GetMe); 200 | router.get("/:id", getSuperAdmin); 201 | router.put("/:id", updateSuperAdmin); 202 | router.delete("/:id", deleteSuperAdmin); 203 | 204 | export default router; 205 | -------------------------------------------------------------------------------- /swagger.js: -------------------------------------------------------------------------------- 1 | import swaggerJSDoc from "swagger-jsdoc"; 2 | import swaggerUi from "swagger-ui-express"; 3 | 4 | const options = { 5 | definition: { 6 | openapi: "3.0.0", 7 | info: { 8 | title: "Listening app API", 9 | version: "1.0.0", 10 | description: "Endpoints", 11 | }, 12 | servers: [ 13 | { 14 | url: "https://ula-backend.onrender.com", 15 | }, 16 | ], 17 | }, 18 | apis: ["./routes/*.js"], 19 | }; 20 | 21 | const swaggerSpec = swaggerJSDoc(options); 22 | 23 | export function setupSwagger(app) { 24 | app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerSpec)); 25 | } 26 | --------------------------------------------------------------------------------