@silexpert/core 0.4.202 → 0.4.203

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.
@@ -1,3 +1,4 @@
1
+ import { AccountingJournal } from '../../../..';
1
2
  export declare class QueryRevisionSearchEntries {
2
3
  idSociety: number;
3
4
  startDate: Date;
@@ -9,6 +10,13 @@ export declare class QueryRevisionSearchEntries {
9
10
  startAccountNumber?: string;
10
11
  endAccountNumber?: string;
11
12
  idAccountingJournal?: number;
13
+ minimumAmount?: number;
14
+ maximumAmount?: number;
15
+ idsAccountingJournal?: Array<AccountingJournal>;
16
+ type?: number;
17
+ isRevised?: boolean;
18
+ orderBy?: 'date' | 'accountNumber';
19
+ descending?: boolean;
12
20
  limit?: number;
13
21
  page?: number;
14
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionSearchEntries.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"names":[],"mappings":"AAMA,qBAAa,0BAA0B;IAIrC,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAK7B,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
1
+ {"version":3,"file":"QueryRevisionSearchEntries.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAI7D,qBAAa,0BAA0B;IAIrC,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAM7B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,oBAAoB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAKhD,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,SAAS,CAAC,EAAE,OAAO,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;IAMnC,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
@@ -7,9 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsDate, IsEnum, IsNumber, IsOptional, IsString, } from 'class-validator';
10
+ import { IsArray, IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString, } from 'class-validator';
11
11
  import { AccountingJournal, ApiProperty } from '../../../..';
12
12
  import { ApiPropertyOptional } from '../../../../utils';
13
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
14
  export class QueryRevisionSearchEntries {
14
15
  constructor() {
15
16
  // Interface paginate
@@ -74,6 +75,50 @@ __decorate([
74
75
  IsOptional(),
75
76
  __metadata("design:type", Number)
76
77
  ], QueryRevisionSearchEntries.prototype, "idAccountingJournal", void 0);
78
+ __decorate([
79
+ ApiPropertyOptional(),
80
+ IsNumber(),
81
+ IsOptional(),
82
+ __metadata("design:type", Number)
83
+ ], QueryRevisionSearchEntries.prototype, "minimumAmount", void 0);
84
+ __decorate([
85
+ ApiPropertyOptional(),
86
+ IsNumber(),
87
+ IsOptional(),
88
+ __metadata("design:type", Number)
89
+ ], QueryRevisionSearchEntries.prototype, "maximumAmount", void 0);
90
+ __decorate([
91
+ ApiPropertyOptional(),
92
+ IsArray({ each: true }),
93
+ IsOptional(),
94
+ __metadata("design:type", Array)
95
+ ], QueryRevisionSearchEntries.prototype, "idsAccountingJournal", void 0);
96
+ __decorate([
97
+ ApiPropertyOptional(),
98
+ IsNumber(),
99
+ IsOptional(),
100
+ __metadata("design:type", Number)
101
+ ], QueryRevisionSearchEntries.prototype, "type", void 0);
102
+ __decorate([
103
+ ApiPropertyOptional(),
104
+ IsBoolean(),
105
+ ToBoolean(),
106
+ IsOptional(),
107
+ __metadata("design:type", Boolean)
108
+ ], QueryRevisionSearchEntries.prototype, "isRevised", void 0);
109
+ __decorate([
110
+ ApiPropertyOptional({ default: 'date' }),
111
+ IsString(),
112
+ IsOptional(),
113
+ __metadata("design:type", String)
114
+ ], QueryRevisionSearchEntries.prototype, "orderBy", void 0);
115
+ __decorate([
116
+ ApiPropertyOptional(),
117
+ IsBoolean(),
118
+ ToBoolean(),
119
+ IsOptional(),
120
+ __metadata("design:type", Boolean)
121
+ ], QueryRevisionSearchEntries.prototype, "descending", void 0);
77
122
  __decorate([
78
123
  ApiProperty({ default: 25 }),
79
124
  IsNumber(),
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionSearchEntries.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MA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ional, IsString,\n} from 'class-validator';\nimport { AccountingJournal, ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsEnum(AccountingJournal)\n @IsOptional()\n idAccountingJournal?: number;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
1
+ {"version":3,"file":"QueryRevisionSearchEntries.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EACP,SAAS,EACT,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC/C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,0BAA0B;IAAvC;QAwFE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY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AE;;2DACsB;AAMnC;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;8DACQ;AAKrB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;yDACS;AAIpB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;wDACO","sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsEnum, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { AccountingJournal, ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsEnum(AccountingJournal)\n @IsOptional()\n idAccountingJournal?: number;\n\n // advanced search\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsArray({ each: true })\n @IsOptional()\n idsAccountingJournal?: Array<AccountingJournal>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRevised?: boolean;\n\n @ApiPropertyOptional({ default: 'date' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'accountNumber';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
@@ -11,6 +11,8 @@ var _ = require("../../../..");
11
11
 
12
12
  var _utils = require("../../../../utils");
13
13
 
14
+ var _boolean = require("../../../../utils/transforms/boolean.transform");
15
+
14
16
  var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15
17
  var c = arguments.length,
16
18
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -54,6 +56,24 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(),
54
56
 
55
57
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsEnum)(_.AccountingJournal), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryRevisionSearchEntries.prototype, "idAccountingJournal", void 0);
56
58
 
59
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryRevisionSearchEntries.prototype, "minimumAmount", void 0);
60
+
61
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryRevisionSearchEntries.prototype, "maximumAmount", void 0);
62
+
63
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsArray)({
64
+ each: true
65
+ }), (0, _classValidator.IsOptional)(), __metadata("design:type", Array)], QueryRevisionSearchEntries.prototype, "idsAccountingJournal", void 0);
66
+
67
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryRevisionSearchEntries.prototype, "type", void 0);
68
+
69
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionSearchEntries.prototype, "isRevised", void 0);
70
+
71
+ __decorate([(0, _utils.ApiPropertyOptional)({
72
+ default: 'date'
73
+ }), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevisionSearchEntries.prototype, "orderBy", void 0);
74
+
75
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionSearchEntries.prototype, "descending", void 0);
76
+
57
77
  __decorate([(0, _.ApiProperty)({
58
78
  default: 25
59
79
  }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionSearchEntries.prototype, "limit", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAkDE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AA1DsC;;QAA1BD,0B,GAAAA,0B;;AAIXE,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAMAD,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,4BAAOE,mBAAP,CAED,EADC,iCACD;;AAKAF,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAH,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionSearchEntries","constructor","__decorate","Date","AccountingJournal","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsDate, IsEnum, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { AccountingJournal, ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsEnum(AccountingJournal)\n @IsOptional()\n idAccountingJournal?: number;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
1
+ {"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAwFE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AAhGsC;;QAA1BD,0B,GAAAA,0B;;AAIXE,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAMAD,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,4BAAOE,mBAAP,CAED,EADC,iCACD;;AAMAF,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,6BAAQ;EAAEG,IAAI,EAAE;AAAR,CAAR,CAED,EADC,iCACD,4BAAuBC,MAAvB;;AAKAJ,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,gCAAoB;EAAEK,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAL,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEK,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAL,YAFC,mBAAY;EAAEK,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionSearchEntries","constructor","__decorate","Date","AccountingJournal","each","Array","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsEnum, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { AccountingJournal, ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsEnum(AccountingJournal)\n @IsOptional()\n idAccountingJournal?: number;\n\n // advanced search\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsArray({ each: true })\n @IsOptional()\n idsAccountingJournal?: Array<AccountingJournal>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRevised?: boolean;\n\n @ApiPropertyOptional({ default: 'date' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'accountNumber';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.202",
3
+ "version": "0.4.203",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -1,8 +1,11 @@
1
1
  import {
2
+ IsArray,
3
+ IsBoolean,
2
4
  IsDate, IsEnum, IsNumber, IsOptional, IsString,
3
5
  } from 'class-validator';
4
6
  import { AccountingJournal, ApiProperty } from '../../../..';
5
7
  import { ApiPropertyOptional } from '../../../../utils';
8
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
9
 
7
10
  export class QueryRevisionSearchEntries {
8
11
  // Mandatory
@@ -54,6 +57,44 @@ export class QueryRevisionSearchEntries {
54
57
  @IsOptional()
55
58
  idAccountingJournal?: number;
56
59
 
60
+ // advanced search
61
+ @ApiPropertyOptional()
62
+ @IsNumber()
63
+ @IsOptional()
64
+ minimumAmount?: number;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsNumber()
68
+ @IsOptional()
69
+ maximumAmount?: number;
70
+
71
+ @ApiPropertyOptional()
72
+ @IsArray({ each: true })
73
+ @IsOptional()
74
+ idsAccountingJournal?: Array<AccountingJournal>;
75
+
76
+ @ApiPropertyOptional()
77
+ @IsNumber()
78
+ @IsOptional()
79
+ type?: number;
80
+
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ isRevised?: boolean;
86
+
87
+ @ApiPropertyOptional({ default: 'date' })
88
+ @IsString()
89
+ @IsOptional()
90
+ orderBy?: 'date' | 'accountNumber';
91
+
92
+ @ApiPropertyOptional()
93
+ @IsBoolean()
94
+ @ToBoolean()
95
+ @IsOptional()
96
+ descending?: boolean;
97
+
57
98
  // Interface paginate
58
99
  @ApiProperty({ default: 25 })
59
100
  @IsNumber()