All Verbs | /admin/crearusuario |
---|
"use strict";
export class NovedadesCarga {
/** @param {{Fila?:number,Columna?:number,TipoError?:string,Novedad?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Fila;
/** @type {number} */
Columna;
/** @type {string} */
TipoError;
/** @type {string} */
Novedad;
}
export class GuardarDatosFormaDetalleRS {
/** @param {{IDDetalle?:number,Novedades?:NovedadesCarga[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
IDDetalle;
/** @type {NovedadesCarga[]} */
Novedades;
}
export class GeneralRS {
/** @param {{Codigo?:number,Mensaje?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description Id del código de respuesta 1: Correcto, -1: Error */
Codigo;
/**
* @type {string}
* @description Mensaje que se envía al ejecutar el servicio */
Mensaje;
}
export class ExecuteDBFunctionRS extends GeneralRS {
/** @param {{Respuesta?:Object,IDEjecucion?:number,URLArchivo?:string,TipoRespuesta?:string,Background?:boolean,TiempoRespuestaBD?:number,TiempoRespuestaTotal?:number,Codigo?:number,Mensaje?:string,Codigo?:number,Mensaje?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {Object} */
Respuesta;
/** @type {number} */
IDEjecucion;
/** @type {string} */
URLArchivo;
/** @type {string} */
TipoRespuesta;
/** @type {boolean} */
Background;
/** @type {number} */
TiempoRespuestaBD;
/** @type {number} */
TiempoRespuestaTotal;
/**
* @type {number}
* @description Id del código de respuesta 1: Correcto, -1: Error */
Codigo;
/**
* @type {string}
* @description Mensaje que se envía al ejecutar el servicio */
Mensaje;
}
export class GuardarDatosFormaRS {
/** @param {{Success?:boolean,Error?:string,DatosLlaveMaestro?:{ [index: string]: Object; },NovedadesDetalles?:GuardarDatosFormaDetalleRS[],RespuestaProcAlmacenado?:ExecuteDBFunctionRS}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
Success;
/** @type {string} */
Error;
/** @type {{ [index: string]: Object; }} */
DatosLlaveMaestro;
/** @type {GuardarDatosFormaDetalleRS[]} */
NovedadesDetalles;
/** @type {ExecuteDBFunctionRS} */
RespuestaProcAlmacenado;
}
export class CreateUserAdm extends GuardarDatosFormaRS {
/** @param {{Identificacion?:string,Nombres?:string,Direccion?:string,Telefonos?:string,Email?:string,UsuarioCreo?:string,Estado?:string,LoginAdicional?:string,ID?:number,CodSistema?:number,CodEmpresa?:number,Success?:boolean,Error?:string,DatosLlaveMaestro?:{ [index: string]: Object; },NovedadesDetalles?:GuardarDatosFormaDetalleRS[],RespuestaProcAlmacenado?:ExecuteDBFunctionRS,Success?:boolean,Error?:string,DatosLlaveMaestro?:{ [index: string]: Object; },NovedadesDetalles?:GuardarDatosFormaDetalleRS[],RespuestaProcAlmacenado?:ExecuteDBFunctionRS}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Identificacion;
/** @type {string} */
Nombres;
/** @type {string} */
Direccion;
/** @type {string} */
Telefonos;
/** @type {string} */
Email;
/** @type {string} */
UsuarioCreo;
/** @type {string} */
Estado;
/** @type {string} */
LoginAdicional;
/** @type {number} */
ID;
/** @type {number} */
CodSistema;
/** @type {number} */
CodEmpresa;
/** @type {boolean} */
Success;
/** @type {string} */
Error;
/** @type {{ [index: string]: Object; }} */
DatosLlaveMaestro;
/** @type {GuardarDatosFormaDetalleRS[]} */
NovedadesDetalles;
/** @type {ExecuteDBFunctionRS} */
RespuestaProcAlmacenado;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /admin/crearusuario HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Identificacion: String,
Nombres: String,
Direccion: String,
Telefonos: String,
Email: String,
UsuarioCreo: String,
Estado: String,
LoginAdicional: String,
ID: 0,
CodSistema: 0,
CodEmpresa: 0,
Success: False,
Error: String,
DatosLlaveMaestro:
{
String: {}
},
NovedadesDetalles:
[
{
IDDetalle: 0,
Novedades:
[
{
Fila: 0,
Columna: 0,
TipoError: String,
Novedad: String
}
]
}
],
RespuestaProcAlmacenado:
{
Respuesta: {},
IDEjecucion: 0,
URLArchivo: String,
TipoRespuesta: String,
Background: False,
TiempoRespuestaBD: 0,
TiempoRespuestaTotal: 0,
Codigo: 0,
Mensaje: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Success: False, Error: String, DatosLlaveMaestro: { String: {} }, NovedadesDetalles: [ { IDDetalle: 0, Novedades: [ { Fila: 0, Columna: 0, TipoError: String, Novedad: String } ] } ], RespuestaProcAlmacenado: { Respuesta: {}, IDEjecucion: 0, URLArchivo: String, TipoRespuesta: String, Background: False, TiempoRespuestaBD: 0, TiempoRespuestaTotal: 0, Codigo: 0, Mensaje: String } }