emilsoftware-utilities 2.0.0-dev.20 → 2.0.0-dev.22
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.
|
@@ -29,6 +29,7 @@ __decorate([
|
|
|
29
29
|
description: 'Progressivo identificativo del filtro',
|
|
30
30
|
example: 1,
|
|
31
31
|
}),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
33
|
(0, class_validator_1.IsInt)({ message: 'Il progressivo deve essere un numero intero.' }),
|
|
33
34
|
(0, class_validator_1.Min)(1, { message: 'Il progressivo deve essere maggiore di 0.' }),
|
|
34
35
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FiltriUtente.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/FiltriUtente.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"FiltriUtente.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/FiltriUtente.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAAqG;AACrG,iDAA8C;AAE9C,MAAa,YAAY;CA4FxB;AA5FD,oCA4FC;AAtFC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qBAAqB;QAClC,OAAO,EAAE,CAAC;KACX,CAAC;;4CACa;AASf;IAPC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,CAAC;KACX,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;IAClE,IAAA,qBAAG,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;iDAC5C;AAQrB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,8BAA8B;QAC3C,OAA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EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;CAChD,CAAC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsInt, IsNumber, IsOptional, IsPort, IsString, Min, ValidateNested } from 'class-validator';\nimport { BaseResponse } from './BaseResponse';\n\nexport class FiltriUtente {\n\n @ApiProperty({\n description: 'Codice dell\\'utente',\n example: 1\n })\n codUte!: number\n\n @ApiPropertyOptional({\n description: 'Progressivo identificativo del filtro',\n example: 1,\n })\n @IsOptional()\n @IsInt({ message: 'Il progressivo deve essere un numero intero.' })\n @Min(1, { message: 'Il progressivo deve essere maggiore di 0.' })\n progressivo?: number;\n\n @ApiPropertyOptional({\n description: 'Numero del reparto associato',\n example: 1002,\n })\n @IsInt({ message: 'Il numero del reparto deve essere un numero intero.' })\n @IsOptional()\n numRep?: number;\n\n @ApiPropertyOptional({\n description: 'Idx personale',\n example: 15,\n })\n @IsInt({ message: \"L'indice personale deve essere un numero intero.\" })\n @IsOptional()\n idxPers?: number;\n\n @ApiPropertyOptional({\n description: 'Codice Cliente padre (codcli di esgest)',\n example: 1,\n })\n @IsNumber()\n @IsOptional()\n codCliSuper?: number;\n\n @ApiPropertyOptional({\n description: 'Codice dell\\'agente associato',\n example: 1\n })\n @IsNumber()\n @IsOptional()\n codAge?: number;\n\n @ApiPropertyOptional({\n description: 'Codice del cliente collegato',\n example: 1,\n })\n @IsNumber()\n @IsOptional()\n codCliCol?: number;\n\n @ApiPropertyOptional({\n description: 'Lista di codici clienti separati da virgola',\n example: '123,456,789',\n })\n @IsString()\n @IsOptional()\n codClienti?: string;\n\n @ApiPropertyOptional({\n description: 'Tipo di filtro applicato',\n example: 99,\n })\n @IsNumber()\n @IsOptional()\n tipFil?: number;\n\n @ApiPropertyOptional({\n description: 'idx della postazione nella tabella ANTENNE_POS di PROLAV',\n example: 12,\n })\n idxPos?: number;\n\n @ApiPropertyOptional({\n description: 'Codice dipendente di esgest',\n example: 12\n })\n @IsNumber()\n @IsOptional()\n codDip?: number\n\n @ApiPropertyOptional({\n description: 'Codice del vettore',\n example: 12\n })\n codVet?: number\n}\n\nexport class GetFiltriUtenteResponse extends BaseResponse {\n @ApiProperty({ type: FiltriUtente })\n @ValidateNested({ each: true })\n @Type(() => FiltriUtente)\n Result!: FiltriUtente[]\n}\n\nexport class GetFiltriUtenteRequest {\n @ApiPropertyOptional({\n description: 'Codice utente',\n })\n @IsNumber()\n @IsOptional()\n codUte?: number\n}\n\nexport const FILTRI_UTENTE_DB_MAPPING = {\n progressivo: { dbField: 'PROG', numeric: true },\n numRep: { dbField: 'NUMREP', numeric: true },\n idxPers: { dbField: 'IDXPERS', numeric: true },\n codCliSuper: { dbField: 'CODCLISUPER', numeric: true },\n codAge: { dbField: 'CODAGE', numeric: true },\n codCliCol: { dbField: 'CODCLICOL', numeric: true },\n codClienti: { dbField: 'CODCLIENTI', numeric: false },\n tipFil: { dbField: 'TIPFIL', numeric: true },\n idxPos: { dbField: 'IDXPOS', numeric: true },\n codDip: { dbField: 'CODDIP', numeric: true },\n codVet: { dbField: 'CODVET', numeric: true },\n} as const;\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|