@sarys.inc/developers v1.0.14
SDK Developer
You will be able to interact with the developers module of sarys.inc, visualize the microservices, assigned components. You will have real-time connection available to interact with events that happen on the platform
This is sponsored, supported, and affiliated with SARyS Inc.
visit our Documetation for developers
Installation
npm install --save @sarys.inc/developers
yarn add --save @sarys.inc/developers
pnpm install @sarys.inc/developers
API Example
Change the password
To change your password as developers it is necessary to have the permissiondevelopers:developers:registry:changePassword
import SARyS from '@sarys.inc/developers';
async function main () {
try {
const sarys = new SARyS();
sarys.setConfig({ timeout: 15000 })
const auth = sarys.Auth();
await auth.singIn({ username: "sarys.inc", password: "5s41f56a1s56d" });
const result = await auth.changePassword({ new: "1s56d4f56s15a1", old: '5s41f56a1s56d' });
console.log(result)
}
catch (error) {
console.log(error)
}
}
Eliminar tu cuenta como desarrollador
Para eliminar un usuario developers es necesario tener el permiso developers:developers:registry:delete
import SARyS from '@sarys.inc/developers';
const DeleteDevelopers = async () => {
try {
const sarys = new SARyS();
sarys.setConfig({ timeout: 15000 })
await sarys.Auth().singIn({ username: "sarys.inc", password: "5s41f56a1s56d" });
const accouts = sarys.Accounts();
const result = await accouts.delete({ password: "5s41f56a1s56d" })
console.log(result)
} catch (error) {
console.log(error)
}
}
Conexión en tiempo real
Damos soporte a comunicación en tiempo real para informar cambios internos en la plataforma tambien se entrega un listado de los endpoint que se pueden utilizar y room para escuchar notificaciones
const { socket } = require('@sarys.inc/developers');
const main = () => {
try {
socket.auth = { username: "sarys.inc", password: "5s41f56a1s56d" };
socket.on("connect_error", result => console.log(result.toString()));
} catch (error) { console.log(error) }
}
main()
Endpoint utilizables
'req:developers:projects:registry:count',
'res:developers:projects:registry:count',
'error:developers:projects:registry:count',
'req:developers:projects:registry:view',
'res:developers:projects:registry:view',
'error:developers:projects:registry:view',
'req:developers:projects:registry:find:one',
'res:developers:projects:registry:find:one',
'error:developers:projects:registry:find:one',
'req:developers:projects:link-project:count',
'res:developers:projects:link-project:count',
'error:developers:projects:link-project:count',
'req:developers:projects:link-project:view',
'res:developers:projects:link-project:view',
'error:developers:projects:link-project:view',
'req:developers:projects:link-project:is-maintainer',
'res:developers:projects:link-project:is-maintainer',
'error:developers:projects:link-project:is-maintainer',
'req:developers:developers:registry:count',
'res:developers:developers:registry:count',
'error:developers:developers:registry:count',
'req:developers:developers:registry:view',
'res:developers:developers:registry:view',
'error:developers:developers:registry:view',
'req:developers:developers:registry:create',
'res:developers:developers:registry:create',
'error:developers:developers:registry:create',
'req:developers:developers:registry:update',
'res:developers:developers:registry:update',
'error:developers:developers:registry:update',
'req:developers:developers:registry:delete',
'res:developers:developers:registry:delete',
'error:developers:developers:registry:delete',
'req:developers:developers:registry:delete-is-staff',
'res:developers:developers:registry:delete-is-staff',
'error:developers:developers:registry:delete-is-staff',
'req:developers:developers:registry:search',
'res:developers:developers:registry:search',
'error:developers:developers:registry:search',
'req:developers:authentication:change-password',
'res:developers:authentication:change-password',
'error:developers:authentication:change-password',
'req:developers:authentication:singin',
'res:developers:authentication:singin',
'error:developers:authentication:singin',
'req:developers:authentication:singin-token',
'res:developers:authentication:singin-token',
'error:developers:authentication:singin-token',
'req:developers:developers:permissions:view',
'res:developers:developers:permissions:view',
'error:developers:developers:permissions:view',
'req:developers:developers:permissions:create',
'res:developers:developers:permissions:create',
'error:developers:developers:permissions:create',
'req:developers:developers:permissions:delete',
'res:developers:developers:permissions:delete',
'error:developers:developers:permissions:delete',
'req:developers:developers:permissions:preview-list',
'res:developers:developers:permissions:preview-list',
'error:developers:developers:permissions:preview-list',
Maintainers
Javier Avila |
---|
![]() |
@njavilas2015 |
Open Collective Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Copyright (c) 2022 SARyS Inc.