Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "controllers/apiSyncController"

Index

Variables

Const env

env: keyof object = process.env.APP_ENV || 'development'

Const jobName

jobName: object = wfxJobName[env]

Type declaration

  • [key: string]: any

Functions

Const bomLibrary

  • bomLibrary(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/bom-library, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const colorCards

  • colorCards(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/color-cards, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const division

  • division(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/division, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const fabricColors

  • fabricColors(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/fabric-colors, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const fabricLibrary

  • fabricLibrary(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/fabric-library, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const materialMasterComposition

  • materialMasterComposition(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/material-master-composition, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const materialMasterContents

  • materialMasterContents(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/material-master-contents, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const materialProductGroup

  • materialProductGroup(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/material-product-group, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const materialProductSubCategory

  • materialProductSubCategory(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/material-product-sub-category, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const printsColors

  • printsColors(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/prints-colors, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const printsLibrary

  • printsLibrary(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/prints-library, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const styleLibrary

  • styleLibrary(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/style-library, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const trimsColors

  • trimsColors(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/trims-colors, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Const trimsLibrary

  • trimsLibrary(req: Request, res: Response, next: NextFunction): Promise<void>
  • If someone try to access /api/sync/trims-library, that request will be processed in here.

    Parameters

    • req: Request

      If someone access with values like JSON data, that will be here.

    • res: Response

      When we have to return status and data, use this param.

    • next: NextFunction

      This is for passing data to the next middleware.

    Returns Promise<void>

Generated using TypeDoc