rh-transformer
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    transformOut

    Specify schema transformations with JSON. Transform in both directions. Transform and check for updates then patch locally.

    var transformations = { Persons:{ local:'Deal', remote: 'Persons', fields: [ {local: 'pipedrive.person_id', remote:'id', policy: 'remote', isId:true}, //to pipedrive {local: 'name', remote:'name', policy: 'local'}, {local: 'phone', remote:'phone', policy: 'local', createOnly:true}, {local: 'email', remote:'email', policy: 'local', createOnly:true}, {local: 'pipedrive.deal_owner_id', remote:'owner_id', policy: 'local', createOnly:true}, {local: 'pipedrive.followers', remote: 'followers', policy: 'local', createOnly:true } ] },

    transformOut

    var transport = transportOut(transformations.Persons.fields, localDeal, {}); });

    transformIn

    var transport = transportIn(model.Persons.fields, pdDeal, {});

    Rhases - Encontre, compare contrate o melhor plano de saúde pra você

    Keywords

    none

    Install

    npm i rh-transformer

    DownloadsWeekly Downloads

    15

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    33.7 kB

    Total Files

    30

    Last publish

    Collaborators

    • gabrielsr