sigo-entities 1.2.552 → 1.2.554
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +8 -0
- package/REPORTE_ESTRUCTURA_2026-08-31.md +215 -215
- package/dist/index.d.mts +36 -17
- package/dist/index.d.ts +36 -17
- package/dist/index.js +282 -206
- package/dist/index.mjs +243 -160
- package/package.json +2 -2
- package/__tests__/datos-transportista.test.mjs +0 -34
package/dist/index.mjs
CHANGED
|
@@ -55199,11 +55199,8 @@ import { Expose as Expose823, Type as Type508 } from "class-transformer";
|
|
|
55199
55199
|
import { IsArray as IsArray260, IsDate as IsDate197, IsDefined as IsDefined310, IsIn as IsIn9, IsInt, IsNumber as IsNumber538, IsOptional as IsOptional84, IsString as IsString680, Max as Max17, MaxLength as MaxLength10, Min as Min355, ValidateNested as ValidateNested438 } from "class-validator";
|
|
55200
55200
|
import "reflect-metadata";
|
|
55201
55201
|
var PASOS_WORKFLOW_VEREDA = {
|
|
55202
|
-
|
|
55203
|
-
|
|
55204
|
-
LLEGADA_A_SITIO: { paso: "LLEGADA_A_SITIO", orden: 3 },
|
|
55205
|
-
INICIO_DE_TRABAJO: { paso: "INICIO_DE_TRABAJO", orden: 4 },
|
|
55206
|
-
CERRADO: { paso: "CERRADO", orden: 5 }
|
|
55202
|
+
INICIO_DE_TRABAJO: { paso: "INICIO_DE_TRABAJO", orden: 1 },
|
|
55203
|
+
CERRADO: { paso: "CERRADO", orden: 2 }
|
|
55207
55204
|
};
|
|
55208
55205
|
var PASOS = Object.values(PASOS_WORKFLOW_VEREDA).map((item) => item.paso);
|
|
55209
55206
|
var DECIMALES_2 = { maxDecimalPlaces: 2 };
|
|
@@ -55231,7 +55228,7 @@ __decorateClass([
|
|
|
55231
55228
|
IsDefined310(),
|
|
55232
55229
|
IsInt(),
|
|
55233
55230
|
Min355(1),
|
|
55234
|
-
Max17(
|
|
55231
|
+
Max17(2)
|
|
55235
55232
|
], WorkflowPasoVeredaDTO.prototype, "orden", 2);
|
|
55236
55233
|
__decorateClass([
|
|
55237
55234
|
Expose823(),
|
|
@@ -58039,26 +58036,109 @@ __decorateClass([
|
|
|
58039
58036
|
Expose877()
|
|
58040
58037
|
], SearchDateRangeDto.prototype, "to", 2);
|
|
58041
58038
|
|
|
58042
|
-
// src/v2/
|
|
58039
|
+
// src/v2/dtos/ReportAutoInventory.ts
|
|
58040
|
+
import { Expose as Expose878, Type as Type534 } from "class-transformer";
|
|
58041
|
+
import {
|
|
58042
|
+
ArrayMinSize as ArrayMinSize9,
|
|
58043
|
+
IsArray as IsArray283,
|
|
58044
|
+
IsDefined as IsDefined358,
|
|
58045
|
+
IsInt as IsInt9,
|
|
58046
|
+
IsNumber as IsNumber552,
|
|
58047
|
+
IsString as IsString725,
|
|
58048
|
+
MaxLength as MaxLength18,
|
|
58049
|
+
Min as Min366,
|
|
58050
|
+
ValidateNested as ValidateNested460
|
|
58051
|
+
} from "class-validator";
|
|
58052
|
+
var ReportAutoInventoryLineDto = class {
|
|
58053
|
+
ID_StockPersonal;
|
|
58054
|
+
Cantidad;
|
|
58055
|
+
Observacion = "";
|
|
58056
|
+
Equipos = [];
|
|
58057
|
+
Files = [];
|
|
58058
|
+
};
|
|
58059
|
+
__decorateClass([
|
|
58060
|
+
IsDefined358({ message: "La l\xEDnea de stock es requerida" }),
|
|
58061
|
+
Type534(() => Number),
|
|
58062
|
+
IsInt9({ message: "La l\xEDnea de stock no es v\xE1lida" }),
|
|
58063
|
+
Min366(1, { message: "La l\xEDnea de stock no es v\xE1lida" }),
|
|
58064
|
+
Expose878()
|
|
58065
|
+
], ReportAutoInventoryLineDto.prototype, "ID_StockPersonal", 2);
|
|
58066
|
+
__decorateClass([
|
|
58067
|
+
IsDefined358({ message: "La cantidad es requerida" }),
|
|
58068
|
+
Type534(() => Number),
|
|
58069
|
+
IsNumber552({ maxDecimalPlaces: 2 }, { message: "La cantidad admite hasta 2 decimales" }),
|
|
58070
|
+
Min366(0, { message: "Ingrese una cantidad mayor o igual a 0" }),
|
|
58071
|
+
Expose878()
|
|
58072
|
+
], ReportAutoInventoryLineDto.prototype, "Cantidad", 2);
|
|
58073
|
+
__decorateClass([
|
|
58074
|
+
IsString725({ message: "La observaci\xF3n debe ser texto" }),
|
|
58075
|
+
MaxLength18(200, { message: "La observaci\xF3n admite hasta 200 caracteres" }),
|
|
58076
|
+
Expose878()
|
|
58077
|
+
], ReportAutoInventoryLineDto.prototype, "Observacion", 2);
|
|
58078
|
+
__decorateClass([
|
|
58079
|
+
IsArray283(),
|
|
58080
|
+
ValidateNested460({ each: true }),
|
|
58081
|
+
Type534(() => EquiposAIDTO),
|
|
58082
|
+
Expose878()
|
|
58083
|
+
], ReportAutoInventoryLineDto.prototype, "Equipos", 2);
|
|
58084
|
+
__decorateClass([
|
|
58085
|
+
IsArray283(),
|
|
58086
|
+
ValidateNested460({ each: true }),
|
|
58087
|
+
Type534(() => FilesDocDTO),
|
|
58088
|
+
Expose878()
|
|
58089
|
+
], ReportAutoInventoryLineDto.prototype, "Files", 2);
|
|
58090
|
+
var ReportAutoInventoryDto = class {
|
|
58091
|
+
Lineas = [];
|
|
58092
|
+
};
|
|
58093
|
+
__decorateClass([
|
|
58094
|
+
IsArray283(),
|
|
58095
|
+
ArrayMinSize9(1, { message: "No hay l\xEDneas para reportar" }),
|
|
58096
|
+
ValidateNested460({ each: true }),
|
|
58097
|
+
Type534(() => ReportAutoInventoryLineDto),
|
|
58098
|
+
Expose878()
|
|
58099
|
+
], ReportAutoInventoryDto.prototype, "Lineas", 2);
|
|
58100
|
+
|
|
58101
|
+
// src/v2/dtos/AutoInventoryStatus.ts
|
|
58043
58102
|
import { Expose as Expose879 } from "class-transformer";
|
|
58044
|
-
|
|
58103
|
+
var AutoInventoryStatusDto = class {
|
|
58104
|
+
KeyFecha;
|
|
58105
|
+
mustReport;
|
|
58106
|
+
inSchedule;
|
|
58107
|
+
schedule;
|
|
58108
|
+
};
|
|
58109
|
+
__decorateClass([
|
|
58110
|
+
Expose879()
|
|
58111
|
+
], AutoInventoryStatusDto.prototype, "KeyFecha", 2);
|
|
58112
|
+
__decorateClass([
|
|
58113
|
+
Expose879()
|
|
58114
|
+
], AutoInventoryStatusDto.prototype, "mustReport", 2);
|
|
58115
|
+
__decorateClass([
|
|
58116
|
+
Expose879()
|
|
58117
|
+
], AutoInventoryStatusDto.prototype, "inSchedule", 2);
|
|
58118
|
+
__decorateClass([
|
|
58119
|
+
Expose879()
|
|
58120
|
+
], AutoInventoryStatusDto.prototype, "schedule", 2);
|
|
58121
|
+
|
|
58122
|
+
// src/v2/entities/Delegation.ts
|
|
58123
|
+
import { Expose as Expose881 } from "class-transformer";
|
|
58124
|
+
import { IsDefined as IsDefined360, IsNotEmpty as IsNotEmpty489, IsString as IsString726, IsUUID as IsUUID42 } from "class-validator";
|
|
58045
58125
|
|
|
58046
58126
|
// src/v2/entities/Base.ts
|
|
58047
|
-
import { Expose as
|
|
58048
|
-
import { IsBoolean as IsBoolean89, IsDefined as
|
|
58127
|
+
import { Expose as Expose880 } from "class-transformer";
|
|
58128
|
+
import { IsBoolean as IsBoolean89, IsDefined as IsDefined359, IsUUID as IsUUID41 } from "class-validator";
|
|
58049
58129
|
var BaseEntity = class {
|
|
58050
58130
|
_id;
|
|
58051
58131
|
active;
|
|
58052
58132
|
};
|
|
58053
58133
|
__decorateClass([
|
|
58054
|
-
|
|
58134
|
+
IsDefined359({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
58055
58135
|
IsUUID41("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
58056
|
-
|
|
58136
|
+
Expose880()
|
|
58057
58137
|
], BaseEntity.prototype, "_id", 2);
|
|
58058
58138
|
__decorateClass([
|
|
58059
|
-
|
|
58139
|
+
IsDefined359({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
58060
58140
|
IsBoolean89({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
58061
|
-
|
|
58141
|
+
Expose880()
|
|
58062
58142
|
], BaseEntity.prototype, "active", 2);
|
|
58063
58143
|
|
|
58064
58144
|
// src/v2/entities/Delegation.ts
|
|
@@ -58068,26 +58148,26 @@ var DelegationEntity = class extends BaseEntity {
|
|
|
58068
58148
|
name;
|
|
58069
58149
|
};
|
|
58070
58150
|
__decorateClass([
|
|
58071
|
-
|
|
58151
|
+
IsDefined360({ message: "El campo pais es obligatorio" }),
|
|
58072
58152
|
IsUUID42("4", { message: "El campo pais debe ser un UUID v4 v\xE1lido." }),
|
|
58073
|
-
|
|
58153
|
+
Expose881()
|
|
58074
58154
|
], DelegationEntity.prototype, "countryId", 2);
|
|
58075
58155
|
__decorateClass([
|
|
58076
|
-
|
|
58077
|
-
|
|
58156
|
+
IsDefined360({ message: "El campo c\xF3digo es obligatorio." }),
|
|
58157
|
+
IsString726({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
58078
58158
|
IsNotEmpty489({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
58079
|
-
|
|
58159
|
+
Expose881()
|
|
58080
58160
|
], DelegationEntity.prototype, "code", 2);
|
|
58081
58161
|
__decorateClass([
|
|
58082
|
-
|
|
58083
|
-
|
|
58162
|
+
IsDefined360({ message: "El campo nombre es obligatorio." }),
|
|
58163
|
+
IsString726({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
58084
58164
|
IsNotEmpty489({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
58085
|
-
|
|
58165
|
+
Expose881()
|
|
58086
58166
|
], DelegationEntity.prototype, "name", 2);
|
|
58087
58167
|
|
|
58088
58168
|
// src/v2/entities/User.ts
|
|
58089
|
-
import { IsArray as
|
|
58090
|
-
import { Expose as
|
|
58169
|
+
import { IsArray as IsArray284, IsBoolean as IsBoolean90, IsDefined as IsDefined361, IsEmail as IsEmail14, IsString as IsString727, IsUUID as IsUUID43, ValidateNested as ValidateNested461 } from "class-validator";
|
|
58170
|
+
import { Expose as Expose882, Transform as Transform141, Type as Type535 } from "class-transformer";
|
|
58091
58171
|
var UserEntity = class extends BaseEntity {
|
|
58092
58172
|
email;
|
|
58093
58173
|
password;
|
|
@@ -58102,126 +58182,126 @@ var UserEntity = class extends BaseEntity {
|
|
|
58102
58182
|
resourceSystem;
|
|
58103
58183
|
};
|
|
58104
58184
|
__decorateClass([
|
|
58105
|
-
|
|
58185
|
+
IsDefined361({ message: "El correo es requerido" }),
|
|
58106
58186
|
IsEmail14({}, { message: "El correo es invalido" }),
|
|
58107
58187
|
Transform141(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
58108
|
-
|
|
58188
|
+
Expose882()
|
|
58109
58189
|
], UserEntity.prototype, "email", 2);
|
|
58110
58190
|
__decorateClass([
|
|
58111
58191
|
Transform141(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58112
|
-
|
|
58113
|
-
|
|
58114
|
-
|
|
58192
|
+
IsDefined361({ message: "La contrase\xF1a es requerida" }),
|
|
58193
|
+
IsString727({ message: "La contrase\xF1a debe ser una cadena de texto" }),
|
|
58194
|
+
Expose882()
|
|
58115
58195
|
], UserEntity.prototype, "password", 2);
|
|
58116
58196
|
__decorateClass([
|
|
58117
58197
|
Transform141(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58118
|
-
|
|
58119
|
-
|
|
58120
|
-
|
|
58198
|
+
IsDefined361({ message: "El apellido paterno es requerido" }),
|
|
58199
|
+
IsString727({ message: "El apellido paterno debe ser una cadena de texto" }),
|
|
58200
|
+
Expose882()
|
|
58121
58201
|
], UserEntity.prototype, "paternalLastName", 2);
|
|
58122
58202
|
__decorateClass([
|
|
58123
58203
|
Transform141(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58124
|
-
|
|
58125
|
-
|
|
58126
|
-
|
|
58204
|
+
IsDefined361({ message: "El apellido materno es requerido" }),
|
|
58205
|
+
IsString727({ message: "El apellido materno debe ser una cadena de texto" }),
|
|
58206
|
+
Expose882()
|
|
58127
58207
|
], UserEntity.prototype, "maternalLastName", 2);
|
|
58128
58208
|
__decorateClass([
|
|
58129
58209
|
Transform141(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58130
|
-
|
|
58131
|
-
|
|
58132
|
-
|
|
58210
|
+
IsDefined361({ message: "El nombre es requerido" }),
|
|
58211
|
+
IsString727({ message: "El nombre debe ser una cadena de texto" }),
|
|
58212
|
+
Expose882()
|
|
58133
58213
|
], UserEntity.prototype, "firstNames", 2);
|
|
58134
58214
|
__decorateClass([
|
|
58135
58215
|
Transform141(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58136
|
-
|
|
58137
|
-
|
|
58138
|
-
|
|
58216
|
+
IsDefined361({ message: "El n\xFAmero de identificaci\xF3n es requerido" }),
|
|
58217
|
+
IsString727({ message: "El n\xFAmero de identificaci\xF3n debe ser una cadena de texto" }),
|
|
58218
|
+
Expose882()
|
|
58139
58219
|
], UserEntity.prototype, "identification", 2);
|
|
58140
58220
|
__decorateClass([
|
|
58141
|
-
|
|
58142
|
-
|
|
58143
|
-
|
|
58144
|
-
|
|
58145
|
-
|
|
58221
|
+
IsDefined361({ message: "El campo empresas es requerido" }),
|
|
58222
|
+
IsArray284({ message: "El campo empresas debe ser un array" }),
|
|
58223
|
+
Type535(() => CompanyDto),
|
|
58224
|
+
ValidateNested461({ each: true }),
|
|
58225
|
+
Expose882()
|
|
58146
58226
|
], UserEntity.prototype, "companies", 2);
|
|
58147
58227
|
__decorateClass([
|
|
58148
|
-
|
|
58149
|
-
|
|
58228
|
+
IsDefined361({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
58229
|
+
IsArray284({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
58150
58230
|
IsUUID43("4", { each: true, message: "El campo delegaci\xF3n debe ser un UUID v4 v\xE1lido." }),
|
|
58151
|
-
|
|
58231
|
+
Expose882()
|
|
58152
58232
|
], UserEntity.prototype, "delegationIds", 2);
|
|
58153
58233
|
__decorateClass([
|
|
58154
|
-
|
|
58234
|
+
IsDefined361({ message: 'La propiedad "root" es obligatoria.' }),
|
|
58155
58235
|
IsBoolean90({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
58156
|
-
|
|
58236
|
+
Expose882()
|
|
58157
58237
|
], UserEntity.prototype, "root", 2);
|
|
58158
58238
|
__decorateClass([
|
|
58159
|
-
|
|
58160
|
-
|
|
58239
|
+
IsDefined361({ message: "El campo Perfiles es obligatorio" }),
|
|
58240
|
+
IsArray284({ message: "El campo Perfiles debe ser un array" }),
|
|
58161
58241
|
IsUUID43("4", { each: true, message: "Cada perfil debe ser un UUID v4 v\xE1lido." }),
|
|
58162
|
-
|
|
58242
|
+
Expose882()
|
|
58163
58243
|
], UserEntity.prototype, "profileIds", 2);
|
|
58164
58244
|
__decorateClass([
|
|
58165
|
-
|
|
58166
|
-
|
|
58167
|
-
|
|
58168
|
-
|
|
58169
|
-
|
|
58245
|
+
IsDefined361({ message: "Resurso sistema es obligatoria" }),
|
|
58246
|
+
Type535(() => ResourceSystemDto),
|
|
58247
|
+
ValidateNested461({ each: true }),
|
|
58248
|
+
IsArray284({ message: "Recurso sistema debe ser un array" }),
|
|
58249
|
+
Expose882()
|
|
58170
58250
|
], UserEntity.prototype, "resourceSystem", 2);
|
|
58171
58251
|
|
|
58172
58252
|
// src/v2/entities/Profile.ts
|
|
58173
|
-
import { Expose as
|
|
58174
|
-
import { IsArray as
|
|
58253
|
+
import { Expose as Expose883, Transform as Transform142 } from "class-transformer";
|
|
58254
|
+
import { IsArray as IsArray285, IsDefined as IsDefined362, IsString as IsString728, Length as Length355, MinLength as MinLength65 } from "class-validator";
|
|
58175
58255
|
var ProfileEntity = class extends BaseEntity {
|
|
58176
58256
|
name;
|
|
58177
58257
|
description;
|
|
58178
58258
|
systemOptions;
|
|
58179
58259
|
};
|
|
58180
58260
|
__decorateClass([
|
|
58181
|
-
|
|
58261
|
+
IsDefined362({ message: "El campo nombre es requerido" }),
|
|
58182
58262
|
Transform142(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58183
|
-
|
|
58263
|
+
IsString728({ message: "debe ser una cadena de texto" }),
|
|
58184
58264
|
Length355(4, 50, { message: "Nombre de perfil debe tener entre 4 y 50 caracteres." }),
|
|
58185
|
-
|
|
58265
|
+
Expose883()
|
|
58186
58266
|
], ProfileEntity.prototype, "name", 2);
|
|
58187
58267
|
__decorateClass([
|
|
58188
|
-
|
|
58268
|
+
IsDefined362({ message: "El campo descripci\xF3n es requerido" }),
|
|
58189
58269
|
Transform142(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
58190
|
-
|
|
58270
|
+
IsString728({ message: "debe ser una cadena de texto" }),
|
|
58191
58271
|
Length355(4, 50, { message: "Descripci\xF3n de perfil debe tener entre 4 y 50 caracteres." }),
|
|
58192
|
-
|
|
58272
|
+
Expose883()
|
|
58193
58273
|
], ProfileEntity.prototype, "description", 2);
|
|
58194
58274
|
__decorateClass([
|
|
58195
|
-
|
|
58196
|
-
|
|
58197
|
-
|
|
58275
|
+
IsDefined362({ message: "El campo opciones de sistema es requerido" }),
|
|
58276
|
+
IsArray285({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
58277
|
+
IsString728({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
58198
58278
|
MinLength65(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
58199
|
-
|
|
58279
|
+
Expose883()
|
|
58200
58280
|
], ProfileEntity.prototype, "systemOptions", 2);
|
|
58201
58281
|
|
|
58202
58282
|
// src/v2/entities/Country.ts
|
|
58203
|
-
import { Expose as
|
|
58204
|
-
import { IsDefined as
|
|
58283
|
+
import { Expose as Expose884 } from "class-transformer";
|
|
58284
|
+
import { IsDefined as IsDefined363, IsNotEmpty as IsNotEmpty490, IsString as IsString729 } from "class-validator";
|
|
58205
58285
|
var CountryEntity = class extends BaseEntity {
|
|
58206
58286
|
code;
|
|
58207
58287
|
name;
|
|
58208
58288
|
};
|
|
58209
58289
|
__decorateClass([
|
|
58210
|
-
|
|
58211
|
-
|
|
58290
|
+
IsDefined363({ message: "El campo c\xF3digo es obligatorio." }),
|
|
58291
|
+
IsString729({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
58212
58292
|
IsNotEmpty490({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
58213
|
-
|
|
58293
|
+
Expose884()
|
|
58214
58294
|
], CountryEntity.prototype, "code", 2);
|
|
58215
58295
|
__decorateClass([
|
|
58216
|
-
|
|
58217
|
-
|
|
58296
|
+
IsDefined363({ message: "El campo nombre es obligatorio." }),
|
|
58297
|
+
IsString729({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
58218
58298
|
IsNotEmpty490({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
58219
|
-
|
|
58299
|
+
Expose884()
|
|
58220
58300
|
], CountryEntity.prototype, "name", 2);
|
|
58221
58301
|
|
|
58222
58302
|
// src/v2/entities/Company.ts
|
|
58223
|
-
import { Expose as
|
|
58224
|
-
import { IsArray as
|
|
58303
|
+
import { Expose as Expose885 } from "class-transformer";
|
|
58304
|
+
import { IsArray as IsArray286, IsBoolean as IsBoolean91, IsDefined as IsDefined364, IsEmail as IsEmail15, IsEnum as IsEnum68, IsNotEmpty as IsNotEmpty491, IsString as IsString730, IsUUID as IsUUID44 } from "class-validator";
|
|
58225
58305
|
var CompanyEntity = class extends BaseEntity {
|
|
58226
58306
|
companyType;
|
|
58227
58307
|
identification;
|
|
@@ -58235,87 +58315,87 @@ var CompanyEntity = class extends BaseEntity {
|
|
|
58235
58315
|
countryId;
|
|
58236
58316
|
};
|
|
58237
58317
|
__decorateClass([
|
|
58238
|
-
|
|
58318
|
+
IsDefined364({ message: "El tipo de empresa es requerido" }),
|
|
58239
58319
|
IsEnum68(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
58240
|
-
|
|
58320
|
+
Expose885()
|
|
58241
58321
|
], CompanyEntity.prototype, "companyType", 2);
|
|
58242
58322
|
__decorateClass([
|
|
58243
|
-
|
|
58244
|
-
|
|
58323
|
+
IsDefined364({ message: "La identificaci\xF3n es requerida" }),
|
|
58324
|
+
IsString730({ message: "La identificaci\xF3n debe ser una cadena de texto" }),
|
|
58245
58325
|
IsNotEmpty491({ message: "La identificaci\xF3n no debe estar vac\xEDa" }),
|
|
58246
|
-
|
|
58326
|
+
Expose885()
|
|
58247
58327
|
], CompanyEntity.prototype, "identification", 2);
|
|
58248
58328
|
__decorateClass([
|
|
58249
|
-
|
|
58250
|
-
|
|
58329
|
+
IsDefined364({ message: "El c\xF3digo es requerido" }),
|
|
58330
|
+
IsString730({ message: "El c\xF3digo debe ser una cadena de texto" }),
|
|
58251
58331
|
IsNotEmpty491({ message: "El c\xF3digo no debe estar vac\xEDo" }),
|
|
58252
|
-
|
|
58332
|
+
Expose885()
|
|
58253
58333
|
], CompanyEntity.prototype, "code", 2);
|
|
58254
58334
|
__decorateClass([
|
|
58255
|
-
|
|
58256
|
-
|
|
58335
|
+
IsDefined364({ message: "El nombre legal es requerido" }),
|
|
58336
|
+
IsString730({ message: "El nombre legal debe ser una cadena de texto" }),
|
|
58257
58337
|
IsNotEmpty491({ message: "El nombre legal no debe estar vac\xEDo" }),
|
|
58258
|
-
|
|
58338
|
+
Expose885()
|
|
58259
58339
|
], CompanyEntity.prototype, "legalName", 2);
|
|
58260
58340
|
__decorateClass([
|
|
58261
|
-
|
|
58262
|
-
|
|
58341
|
+
IsDefined364({ message: "El nombre comercial es requerido" }),
|
|
58342
|
+
IsString730({ message: "El nombre comercial debe ser una cadena de texto" }),
|
|
58263
58343
|
IsNotEmpty491({ message: "El nombre comercial no debe estar vac\xEDo" }),
|
|
58264
|
-
|
|
58344
|
+
Expose885()
|
|
58265
58345
|
], CompanyEntity.prototype, "tradeName", 2);
|
|
58266
58346
|
__decorateClass([
|
|
58267
|
-
|
|
58347
|
+
IsDefined364({ message: "La propiedad es propia es requerida" }),
|
|
58268
58348
|
IsBoolean91({ message: "La propiedad es propia debe ser un booleano" }),
|
|
58269
|
-
|
|
58349
|
+
Expose885()
|
|
58270
58350
|
], CompanyEntity.prototype, "isOwn", 2);
|
|
58271
58351
|
__decorateClass([
|
|
58272
|
-
|
|
58273
|
-
|
|
58352
|
+
IsDefined364({ message: "La direcci\xF3n es requerida" }),
|
|
58353
|
+
IsString730({ message: "La direcci\xF3n debe ser una cadena de texto" }),
|
|
58274
58354
|
IsNotEmpty491({ message: "La direcci\xF3n no debe estar vac\xEDa" }),
|
|
58275
|
-
|
|
58355
|
+
Expose885()
|
|
58276
58356
|
], CompanyEntity.prototype, "address", 2);
|
|
58277
58357
|
__decorateClass([
|
|
58278
|
-
|
|
58279
|
-
|
|
58358
|
+
IsDefined364({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
58359
|
+
IsArray286({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
58280
58360
|
IsEmail15({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
58281
|
-
|
|
58361
|
+
Expose885()
|
|
58282
58362
|
], CompanyEntity.prototype, "emails", 2);
|
|
58283
58363
|
__decorateClass([
|
|
58284
|
-
|
|
58285
|
-
|
|
58286
|
-
|
|
58364
|
+
IsDefined364({ message: "El campo tel\xE9fonos es requeridos" }),
|
|
58365
|
+
IsArray286({ message: "El campo tel\xE9fonos debe ser un arreglo" }),
|
|
58366
|
+
IsString730({ each: true, message: "Cada tel\xE9fono debe ser una cadena de texto" }),
|
|
58287
58367
|
IsNotEmpty491({ each: true, message: "Cada tel\xE9fono no debe estar vac\xEDo" }),
|
|
58288
|
-
|
|
58368
|
+
Expose885()
|
|
58289
58369
|
], CompanyEntity.prototype, "phones", 2);
|
|
58290
58370
|
__decorateClass([
|
|
58291
|
-
|
|
58371
|
+
IsDefined364({ message: "El campo pa\xEDs es requerido" }),
|
|
58292
58372
|
IsUUID44("4", { message: "El campo pa\xEDs debe ser un UUID" }),
|
|
58293
|
-
|
|
58373
|
+
Expose885()
|
|
58294
58374
|
], CompanyEntity.prototype, "countryId", 2);
|
|
58295
58375
|
|
|
58296
58376
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
58297
|
-
import { Expose as
|
|
58298
|
-
import { IsNumber as
|
|
58377
|
+
import { Expose as Expose887, Type as Type536 } from "class-transformer";
|
|
58378
|
+
import { IsNumber as IsNumber553, IsString as IsString732, ValidateNested as ValidateNested462, IsArray as IsArray287 } from "class-validator";
|
|
58299
58379
|
|
|
58300
58380
|
// src/v2/shared-dto/ThemeCountryManualDTO.ts
|
|
58301
|
-
import { Expose as
|
|
58302
|
-
import { IsString as
|
|
58381
|
+
import { Expose as Expose886 } from "class-transformer";
|
|
58382
|
+
import { IsString as IsString731 } from "class-validator";
|
|
58303
58383
|
var ThemeCountryManualDTO2 = class {
|
|
58304
58384
|
Codigo = "";
|
|
58305
58385
|
Delegacion = "";
|
|
58306
58386
|
Ruta = "";
|
|
58307
58387
|
};
|
|
58308
58388
|
__decorateClass([
|
|
58309
|
-
|
|
58310
|
-
|
|
58389
|
+
IsString731(),
|
|
58390
|
+
Expose886()
|
|
58311
58391
|
], ThemeCountryManualDTO2.prototype, "Codigo", 2);
|
|
58312
58392
|
__decorateClass([
|
|
58313
|
-
|
|
58314
|
-
|
|
58393
|
+
IsString731(),
|
|
58394
|
+
Expose886()
|
|
58315
58395
|
], ThemeCountryManualDTO2.prototype, "Delegacion", 2);
|
|
58316
58396
|
__decorateClass([
|
|
58317
|
-
|
|
58318
|
-
|
|
58397
|
+
IsString731(),
|
|
58398
|
+
Expose886()
|
|
58319
58399
|
], ThemeCountryManualDTO2.prototype, "Ruta", 2);
|
|
58320
58400
|
|
|
58321
58401
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
@@ -58330,46 +58410,46 @@ var ThemeConfigCountryEntity = class extends BaseEntity {
|
|
|
58330
58410
|
Pais = new CodigoNombreDTO4();
|
|
58331
58411
|
};
|
|
58332
58412
|
__decorateClass([
|
|
58333
|
-
|
|
58334
|
-
|
|
58413
|
+
IsNumber553(),
|
|
58414
|
+
Expose887()
|
|
58335
58415
|
], ThemeConfigCountryEntity.prototype, "ID_TemeCountry", 2);
|
|
58336
58416
|
__decorateClass([
|
|
58337
|
-
|
|
58338
|
-
|
|
58417
|
+
IsString732(),
|
|
58418
|
+
Expose887()
|
|
58339
58419
|
], ThemeConfigCountryEntity.prototype, "Color", 2);
|
|
58340
58420
|
__decorateClass([
|
|
58341
|
-
|
|
58342
|
-
|
|
58421
|
+
IsString732(),
|
|
58422
|
+
Expose887()
|
|
58343
58423
|
], ThemeConfigCountryEntity.prototype, "TextFooterLeft", 2);
|
|
58344
58424
|
__decorateClass([
|
|
58345
|
-
|
|
58346
|
-
|
|
58425
|
+
IsString732(),
|
|
58426
|
+
Expose887()
|
|
58347
58427
|
], ThemeConfigCountryEntity.prototype, "TextFooterRight", 2);
|
|
58348
58428
|
__decorateClass([
|
|
58349
|
-
|
|
58350
|
-
|
|
58351
|
-
|
|
58429
|
+
ValidateNested462(),
|
|
58430
|
+
Type536(() => ImgLogoNavBarDTO2),
|
|
58431
|
+
Expose887()
|
|
58352
58432
|
], ThemeConfigCountryEntity.prototype, "ImgLogoNavBar", 2);
|
|
58353
58433
|
__decorateClass([
|
|
58354
|
-
|
|
58355
|
-
|
|
58356
|
-
|
|
58357
|
-
|
|
58434
|
+
IsArray287(),
|
|
58435
|
+
Type536(() => ThemeCountryManualDTO2),
|
|
58436
|
+
ValidateNested462({ each: true }),
|
|
58437
|
+
Expose887()
|
|
58358
58438
|
], ThemeConfigCountryEntity.prototype, "Manuales", 2);
|
|
58359
58439
|
__decorateClass([
|
|
58360
|
-
|
|
58361
|
-
|
|
58362
|
-
|
|
58440
|
+
ValidateNested462(),
|
|
58441
|
+
Type536(() => EstadoDTO2),
|
|
58442
|
+
Expose887()
|
|
58363
58443
|
], ThemeConfigCountryEntity.prototype, "Estado", 2);
|
|
58364
58444
|
__decorateClass([
|
|
58365
|
-
|
|
58366
|
-
|
|
58367
|
-
|
|
58445
|
+
ValidateNested462(),
|
|
58446
|
+
Type536(() => CodigoNombreDTO4),
|
|
58447
|
+
Expose887()
|
|
58368
58448
|
], ThemeConfigCountryEntity.prototype, "Pais", 2);
|
|
58369
58449
|
|
|
58370
58450
|
// src/v2/entities/ThemeConfigUser.ts
|
|
58371
|
-
import { Expose as
|
|
58372
|
-
import { IsNumber as
|
|
58451
|
+
import { Expose as Expose888, Type as Type537 } from "class-transformer";
|
|
58452
|
+
import { IsNumber as IsNumber554, IsString as IsString733, ValidateNested as ValidateNested463, IsArray as IsArray288, IsOptional as IsOptional101, IsDefined as IsDefined365, IsBoolean as IsBoolean92 } from "class-validator";
|
|
58373
58453
|
var ThemeConfigUserEntity = class {
|
|
58374
58454
|
_id;
|
|
58375
58455
|
active = true;
|
|
@@ -58382,41 +58462,41 @@ var ThemeConfigUserEntity = class {
|
|
|
58382
58462
|
};
|
|
58383
58463
|
__decorateClass([
|
|
58384
58464
|
IsOptional101(),
|
|
58385
|
-
|
|
58465
|
+
Expose888()
|
|
58386
58466
|
], ThemeConfigUserEntity.prototype, "_id", 2);
|
|
58387
58467
|
__decorateClass([
|
|
58388
|
-
|
|
58468
|
+
IsDefined365({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
58389
58469
|
IsBoolean92({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
58390
|
-
|
|
58470
|
+
Expose888()
|
|
58391
58471
|
], ThemeConfigUserEntity.prototype, "active", 2);
|
|
58392
58472
|
__decorateClass([
|
|
58393
|
-
|
|
58394
|
-
|
|
58473
|
+
IsNumber554(),
|
|
58474
|
+
Expose888()
|
|
58395
58475
|
], ThemeConfigUserEntity.prototype, "ID_Theme", 2);
|
|
58396
58476
|
__decorateClass([
|
|
58397
|
-
|
|
58398
|
-
|
|
58477
|
+
IsString733(),
|
|
58478
|
+
Expose888()
|
|
58399
58479
|
], ThemeConfigUserEntity.prototype, "Identificacion", 2);
|
|
58400
58480
|
__decorateClass([
|
|
58401
|
-
|
|
58402
|
-
|
|
58481
|
+
IsString733(),
|
|
58482
|
+
Expose888()
|
|
58403
58483
|
], ThemeConfigUserEntity.prototype, "Color", 2);
|
|
58404
58484
|
__decorateClass([
|
|
58405
58485
|
IsOptional101(),
|
|
58406
|
-
|
|
58407
|
-
|
|
58486
|
+
IsString733(),
|
|
58487
|
+
Expose888()
|
|
58408
58488
|
], ThemeConfigUserEntity.prototype, "Language", 2);
|
|
58409
58489
|
__decorateClass([
|
|
58410
|
-
|
|
58411
|
-
|
|
58412
|
-
|
|
58490
|
+
ValidateNested463(),
|
|
58491
|
+
Type537(() => EstadoDTO2),
|
|
58492
|
+
Expose888()
|
|
58413
58493
|
], ThemeConfigUserEntity.prototype, "Estado", 2);
|
|
58414
58494
|
__decorateClass([
|
|
58415
58495
|
IsOptional101(),
|
|
58416
|
-
|
|
58417
|
-
|
|
58418
|
-
|
|
58419
|
-
|
|
58496
|
+
IsArray288(),
|
|
58497
|
+
ValidateNested463({ each: true }),
|
|
58498
|
+
Type537(() => FavoritoDTO2),
|
|
58499
|
+
Expose888()
|
|
58420
58500
|
], ThemeConfigUserEntity.prototype, "Favoritos", 2);
|
|
58421
58501
|
|
|
58422
58502
|
// src/v2/utils/validateCustom.ts
|
|
@@ -58558,6 +58638,7 @@ export {
|
|
|
58558
58638
|
AttendanceStatus,
|
|
58559
58639
|
AuthUserDto,
|
|
58560
58640
|
AutoInventarioENTITY,
|
|
58641
|
+
AutoInventoryStatusDto,
|
|
58561
58642
|
BAREMO_SUBCONTRATA_TYPES,
|
|
58562
58643
|
BankVendorDto,
|
|
58563
58644
|
BantelENTITY,
|
|
@@ -59203,6 +59284,8 @@ export {
|
|
|
59203
59284
|
ReplanteoGomRequestBodyDTO,
|
|
59204
59285
|
ReplanteoGuardarRequestBodyDTO,
|
|
59205
59286
|
ReplanteoReservasDTO,
|
|
59287
|
+
ReportAutoInventoryDto,
|
|
59288
|
+
ReportAutoInventoryLineDto,
|
|
59206
59289
|
RepresentanteLegalDTO,
|
|
59207
59290
|
RequeridoEnum,
|
|
59208
59291
|
RequerimientoDto,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sigo-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.554",
|
|
4
4
|
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"overrides": {
|
|
39
39
|
"esbuild": "^0.28.0"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|