All Verbs | /Utilidades/Formas/GuardarDatos |
---|
export class NovedadesCarga
{
public Fila?: number;
public Columna?: number;
public TipoError?: string;
public Novedad?: string;
public constructor(init?: Partial<NovedadesCarga>) { (Object as any).assign(this, init); }
}
export class GuardarDatosFormaDetalleRS
{
public IDDetalle?: number;
public Novedades?: NovedadesCarga[];
public constructor(init?: Partial<GuardarDatosFormaDetalleRS>) { (Object as any).assign(this, init); }
}
export class GeneralRS
{
/**
* Id del código de respuesta 1: Correcto, -1: Error
*/
// @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
public Codigo: number;
/**
* Mensaje que se envía al ejecutar el servicio
*/
// @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
public Mensaje?: string;
public constructor(init?: Partial<GeneralRS>) { (Object as any).assign(this, init); }
}
export class ExecuteDBFunctionRS extends GeneralRS
{
public Respuesta?: Object;
public IDEjecucion?: number;
public URLArchivo?: string;
public TipoRespuesta?: string;
public Background?: boolean;
public TiempoRespuestaBD?: number;
public TiempoRespuestaTotal?: number;
public constructor(init?: Partial<ExecuteDBFunctionRS>) { super(init); (Object as any).assign(this, init); }
}
export class GuardarDatosFormaRS
{
public Success?: boolean;
public Error?: string;
public DatosLlaveMaestro?: { [index: string]: Object; };
public NovedadesDetalles?: GuardarDatosFormaDetalleRS[];
public RespuestaProcAlmacenado?: ExecuteDBFunctionRS;
public constructor(init?: Partial<GuardarDatosFormaRS>) { (Object as any).assign(this, init); }
}
export enum OperacionDatos
{
INSERT = 'INSERT',
UPDATE = 'UPDATE',
DELETE = 'DELETE',
}
export class GuardarDatosDetalle
{
public IDDetalle?: number;
public DatosInsert?: { [index:string]: Object; }[];
public DatosUpdate?: { [index:string]: Object; }[];
public DatosDelete?: { [index:string]: Object; }[];
public NombreArchivo?: string;
public constructor(init?: Partial<GuardarDatosDetalle>) { (Object as any).assign(this, init); }
}
export class GuardarDatosFormaRQ
{
public IDForma?: number;
public Operacion?: OperacionDatos;
public DatosMaestro?: { [index: string]: Object; };
public DatosDetalle?: GuardarDatosDetalle[];
public FormasDep?: GuardarDatosFormaRQ[];
public TokenCargaArchivos?: string;
public constructor(init?: Partial<GuardarDatosFormaRQ>) { (Object as any).assign(this, init); }
}
TypeScript GuardarDatosFormaRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Formas/GuardarDatos HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":[{"IDForma":0,"Operacion":"INSERT","DatosMaestro":{"String":{}},"DatosDetalle":[{"IDDetalle":0,"DatosInsert":[{"String":{}}],"DatosUpdate":[{"String":{}}],"DatosDelete":[{"String":{}}],"NombreArchivo":"String"}],"FormasDep":null,"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}],"TokenCargaArchivos":"String"}
HTTP/1.1 200 OK Content-Type: text/csv 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"}}