Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/sync/syncData"

Index

Functions

Const bulkSyncData

  • bulkSyncData(wfx: Record<string, string>, model: any, jobName: string, callback: any, foreignTable?: any, foreignPK?: undefined | string): Promise<object>
  • Sync bulk data between WFX and W2PS. The reason why we sync data as a bulk is because to follow WFX logic.

    Parameters

    • wfx: Record<string, string>

      WFX Information

    • model: any

      Model to sync

    • jobName: string

      Job Name from WFX

    • callback: any

      Function to do

    • Optional foreignTable: any

      Table to join if you need

    • Optional foreignPK: undefined | string

      Join table PK

    Returns Promise<object>

Const syncData

  • syncData(wfx: Record<string, string>, model: any, jobName: string, callback: any, foreignTable?: any, foreignPK?: undefined | string): Promise<object>
  • Sync data between WFX and W2PS.

    Parameters

    • wfx: Record<string, string>

      WFX Information

    • model: any

      Model to sync

    • jobName: string

      Job Name from WFX

    • callback: any

      Function to do

    • Optional foreignTable: any

      Table to join if you need

    • Optional foreignPK: undefined | string

      Join table PK

    Returns Promise<object>

Generated using TypeDoc