- `npm install` - **Dev**: `npm start` - **Prod**: `npm run build`
npm install
npm start
npm run build
Gaia/src/web/
Gaia/src/web/vendor.json
ingaia-chat.min.css from vendor.json)
javascript
window.inGaiaChat_API.inviteToChat(
{
id: 123,
name: 'User Name',
productTag: 'valuegaia',
role: '',
status: 3,
company: { id: 123, name: 'inGaia' },
},
{
message: 'Teste message',
productTag: -1,
origin: 'radar-clientes',
}
);
`
`javascript
window.inGaiaChat_API.start(data);
`
!Image 4
- To start a chat between two users with a property subject
- property object should looks like:
`json
{
"reference": "AP2566",
"neighborhood": "Jardim América",
"city": "São José dos Campos",
"smallpicture": "http://..."
}
`
`javascript
window.inGaiaChat_API.inviteToChat(data.user, property);
`
- Updating package (after publishing on npm)
- Change package version, correspondig to the last published version, inside package.json
"ingaia-chat": "x.x.x"
- Then you need to run npm update ingaia-chat
Publishing via NPM
- link https://www.npmjs.com/package/ingaia-chat
- Change package.json version
- Build project with npm run build and publishthe new version on npm publish` (need npm permission on https://www.npmjs.com/package/ingaia-chat)