Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs/
Upload File :
Current File : /home/infinitibizsol/.trash/docs/additonalContact.js

/**
 * @swagger
 * components:
 *   schemas:
 *     AdditionalContact:
 *       type: object
 *       required:
 *         - business_owner
 *         - residency_type
 *         - comments
 *         - contact
 *         - relationship
 *         - contact_address
 *         - contact_details
 *         - contact_id
 *       properties:
 *         business_owner:
 *           type: boolean
 *           description: Indicates if the individual is a business owner
 *         residency_type:
 *           type: string
 *           description: The type of residency
 *         comments:
 *           type: string
 *           description: Any additional comments
 *         contact:
 *           type: object
 *           properties:
 *             situation:
 *               type: string
 *               description: The situation of the contact
 *             nickname:
 *               type: string
 *               description: The nickname of the contact
 *             first_name:
 *               type: string
 *               description: The first name of the contact
 *             middle_name:
 *               type: string
 *               description: The middle name of the contact
 *             last_name:
 *               type: string
 *               description: The last name of the contact
 *         relationship:
 *           type: object
 *           properties:
 *             relationship_type:
 *               type: string
 *               description: The type of relationship with the primary individual
 *             relationship_to_primary:
 *               type: string
 *               description: The nature of the relationship to the primary individual
 *         contact_address:
 *           type: object
 *           properties:
 *             street:
 *               type: string
 *               description: The street address
 *             apt_or_suite:
 *               type: string
 *               description: The apartment or suite number, if any
 *             city:
 *               type: string
 *               description: The city of the contact
 *             state_or_province:
 *               type: string
 *               description: The state or province of the contact
 *             country:
 *               type: string
 *               description: The country of the contact
 *             zip_code:
 *               type: string
 *               description: The ZIP code or postal code
 *         contact_details:
 *           type: object
 *           properties:
 *             data_of_birth:
 *               type: string
 *               description: The date of birth
 *             marital_status:
 *               type: string
 *               description: The marital status
 *             gender:
 *               type: string
 *               description: The gender
 *             social_security:
 *               type: string
 *               description: The social security number
 *             driver_license_number:
 *               type: string
 *               description: The driver's license number
 *             contact_web_page:
 *               type: string
 *               description: The contact's web page
 *             industry:
 *               type: string
 *               description: The industry of employment
 *             occupation:
 *               type: string
 *               description: The occupation
 *             preferred_language:
 *               type: string
 *               description: The preferred language
 *             add_number:
 *               type: object
 *               properties:
 *                 value:
 *                   type: string
 *                   description: The contact number
 *                 type:
 *                   type: string
 *                   description: The type of contact number (e.g., mobile, home, office)
 *             add_email:
 *               type: object
 *               properties:
 *                 value:
 *                   type: string
 *                   description: The email address
 *                 type:
 *                   type: string
 *                   description: The type of email (e.g., personal, work)
 *         contact_id:
 *           type: string
 *           description: The ID of the associated contact
 *       example:
 *         business_owner: true
 *         residency_type: "string_value"
 *         comments: "string_value"
 *         contact:
 *           situation: "string_value"
 *           nickname: "string_value"
 *           first_name: "string_value"
 *           middle_name: "string_value"
 *           last_name: "string_value"
 *         relationship:
 *           relationship_type: "string_value"
 *           relationship_to_primary: "string_value"
 *         contact_address:
 *           street: "string_value"
 *           apt_or_suite: "string_value"
 *           city: "string_value"
 *           state_or_province: "string_value"
 *           country: "string_value"
 *           zip_code: "string_value"
 *         contact_details:
 *           data_of_birth: "string_value"
 *           marital_status: "string_value"
 *           gender: "string_value"
 *           social_security: "string_value"
 *           driver_license_number: "string_value"
 *           contact_web_page: "string_value"
 *           industry: "string_value"
 *           occupation: "string_value"
 *           preferred_language: "string_value"
 *           add_number:
 *             value: "string_value"
 *             type: "string_value"
 *           add_email:
 *             value: "string_value"
 *             type: "string_value"
 *         contact_id: "6679d98f6bc36cd891ccab49"
 *     UpdateResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Data updated successfully"
 *     DeleteResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "entry_name and related data deleted successfully"
 *   securitySchemes:
 *     bearerAuth:
 *       type: http
 *       scheme: bearer
 *       bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: AdditionalContact
 *     description: Operations related to additional contacts
 */

/**
 * @swagger
 * /additional-contact/list:
 *   get:
 *     summary: Returns the list of additional contacts
 *     tags: [AdditionalContact]
 *     security:
 *       - bearerAuth: []
 *     responses:
 *       200:
 *         description: The list of additional contacts
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/AdditionalContact'
 */

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

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

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

 */

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