Sindbad~EG File Manager

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

/**
 * @swagger
 * components:
 *   schemas:
 *     PolicyInfo:
 *       type: object
 *       properties:
 *         line_business:
 *           type: string
 *           example: "Property"
 *         subline:
 *           type: string
 *           example: "Commercial Property"
 *         estimated_premium:
 *           type: string
 *           example: "1200 USD"
 *         policy_number:
 *           type: string
 *           example: "POL123456789"
 *         policy_status:
 *           type: string
 *           example: "Active"
 *         policy_version:
 *           type: string
 *           example: "1.0"
 *         net_change:
 *           type: string
 *           example: "50 USD"
 *         policy_status_last_update:
 *           type: string
 *           format: date
 *           example: "2023-01-01"
 *         term:
 *           type: string
 *           example: "12 months"
 *         effective_date:
 *           type: string
 *           format: date
 *           example: "2023-01-01"
 *         expiration_date:
 *           type: string
 *           format: date
 *           example: "2024-01-01"
 *         business_type:
 *           type: string
 *           example: "Renewal"
 *         policy_sent:
 *           type: string
 *           format: date
 *           example: "2023-01-02"
 *         discount_indicator:
 *           type: string
 *           example: "Yes"
 *         company_product_code:
 *           type: string
 *           example: "CP1234"
 *         original_policy_inception:
 *           type: string
 *           format: date
 *           example: "2015-01-01"
 *         policy_id:
 *           type: string
 *           format: objectId
 *           example: "605c72ef8f1b2e478c5e841e"
 *       example:
 *         line_business: "Property"
 *         subline: "Commercial Property"
 *         estimated_premium: "1200 USD"
 *         policy_number: "POL123456789"
 *         policy_status: "Active"
 *         policy_version: "1.0"
 *         net_change: "50 USD"
 *         policy_status_last_update: "2023-01-01"
 *         term: "12 months"
 *         effective_date: "2023-01-01"
 *         expiration_date: "2024-01-01"
 *         business_type: "Renewal"
 *         policy_sent: "2023-01-02"
 *         discount_indicator: "Yes"
 *         company_product_code: "CP1234"
 *         original_policy_inception: "2015-01-01"
 *         policy_id: "605c72ef8f1b2e478c5e841e"
 *
 *     UpdateResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Data updated successfully"
 *
 *     DeleteResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Entry and related data deleted successfully"
 *
 *     securitySchemes:
 *       bearerAuth:
 *         type: http
 *         scheme: bearer
 *         bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: PolicyInfo
 *     description: Operations related to policy information
 */

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

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

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

/**
 * @swagger
 * /policy-info/delete/{id}:
 *   delete:
 *     summary: Delete the policy information entry by ID
 *     tags: [PolicyInfo]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the policy information entry
 *     responses:
 *       200:
 *         description: The policy information 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