Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.9/policy/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.9/policy/locationSchedule.js

/**
 * @swagger
 * components:
 *   schemas:
 *     LocationSchedule:
 *       type: object
 *       properties:
 *         location:
 *           type: string
 *         location_type:
 *           type: boolean
 *         street_address:
 *           type: boolean
 *         address_line:
 *           type: string
 *         city:
 *           type: string
 *         province:
 *           type: string
 *         county:
 *           type: string
 *         zip_code:
 *           type: number
 *         country:
 *           type: string
 *         tax_code:
 *           type: string
 *         town_code:
 *           type: string
 *         description_of_operation:
 *           type: string
 *         type_of_business:
 *           type: string
 *         building_interest:
 *           type: string
 *         sublocation:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               sub_location_no:
 *                 type: string
 *               sub_location_type_code:
 *                 type: string
 *               sqft:
 *                 type: string
 *               address_line:
 *                 type: string
 *               city:
 *                 type: string
 *               province:
 *                 type: string
 *               county:
 *                 type: string
 *               zip_code:
 *                 type: number
 *               country:
 *                 type: string
 *               phone_no:
 *                 type: string
 *               latitude:
 *                 type: string
 *               longitude:
 *                 type: string
 *               range:
 *                 type: string
 *               horizon_code_ref_system_code:
 *                 type: string
 *               no_of_mortgagees:
 *                 type: string
 *               sub_location_description:
 *                 type: string
 *         policy_id:
 *           type: string
 *           format: objectId
 *       example:
 *         location: "Main Office"
 *         location_type: false
 *         street_address: false
 *         address_line: "123 Main St"
 *         city: "New York"
 *         province: "NY"
 *         county: "Kings"
 *         zip_code: 10001
 *         country: "USA"
 *         tax_code: "TX123"
 *         town_code: "TN001"
 *         description_of_operation: "Headquarters"
 *         type_of_business: "Corporate Office"
 *         building_interest: "Owned"
 *         sublocation:
 *           - sub_location_no: "001"
 *             sub_location_type_code: "TYPE001"
 *             sqft: "5000"
 *             address_line: "456 Side St"
 *             city: "Brooklyn"
 *             province: "NY"
 *             county: "Kings"
 *             zip_code: 11201
 *             country: "USA"
 *             phone_no: "123-456-7890"
 *             latitude: "40.7128"
 *             longitude: "-74.0060"
 *             range: "5 miles"
 *             horizon_code_ref_system_code: "HZ001"
 *             no_of_mortgagees: "2"
 *             sub_location_description: "Warehouse"
 *         policy_id: "605c72ef8f1b2e478c5e841e"
 */

/**
 * @swagger
 * /location-schedule/list:
 *   get:
 *     summary: Returns the list of location schedules
 *     tags: [LocationSchedule]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: policy_id
 *         schema:
 *           type: string
 *         required: true
 *         description: ID of the policy
 *     responses:
 *       200:
 *         description: The list of location schedules
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/LocationSchedule'
 */

/**
 * @swagger
 * /location-schedule/add:
 *   post:
 *     summary: Create a new location schedule entry
 *     tags: [LocationSchedule]
 *     security:
 *       - bearerAuth: []
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/LocationSchedule'
 *     responses:
 *       201:
 *         description: The location schedule entry was successfully created
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/LocationSchedule'
 */

/**
 * @swagger
 * /location-schedule/edit/{id}:
 *   put:
 *     summary: Update the location schedule entry by ID
 *     tags: [LocationSchedule]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the location schedule entry
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/LocationSchedule'
 *     responses:
 *       200:
 *         description: The location schedule entry was successfully updated
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/LocationSchedule'
 */

/**
 * @swagger
 * /location-schedule/delete/{id}:
 *   delete:
 *     summary: Delete the location schedule entry by ID
 *     tags: [LocationSchedule]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the location schedule entry
 *     responses:
 *       200:
 *         description: The location schedule entry was successfully deleted
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/DeleteResponse'
 */
"use strict";

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists