@silexpert/core 0.4.262 → 0.4.263

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.
Files changed (35) hide show
  1. package/es/types/Interface/api/revision/QueryRevision.d.ts +2 -0
  2. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
  3. package/es/types/Interface/api/revision/QueryRevision.js +16 -2
  4. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
  5. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
  6. package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
  7. package/es/types/Interface/api/revision/QueryRevisionAccount.js +11 -5
  8. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  9. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +2 -0
  10. package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
  11. package/es/types/Interface/api/revision/QueryRevisionPaginate.js +16 -2
  12. package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  13. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
  14. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  15. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  16. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +0 -2
  17. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
  18. package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
  19. package/es/types/Interface/models/IPartnerTransaction.d.ts +0 -1
  20. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  21. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  22. package/js/types/Interface/api/revision/QueryRevision.js +6 -0
  23. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
  24. package/js/types/Interface/api/revision/QueryRevisionAccount.js +7 -5
  25. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  26. package/js/types/Interface/api/revision/QueryRevisionPaginate.js +6 -0
  27. package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
  28. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  29. package/package.json +1 -1
  30. package/ts/types/Interface/api/revision/QueryRevision.ts +15 -2
  31. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +11 -4
  32. package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +15 -2
  33. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
  34. package/ts/types/Interface/models/IEngagementBankTransaction.ts +0 -2
  35. package/ts/types/Interface/models/IPartnerTransaction.ts +0 -1
@@ -2,6 +2,8 @@ export declare class QueryRevision {
2
2
  startDate: Date;
3
3
  endDate: Date;
4
4
  idSociety: number;
5
+ orderBy?: 'designation' | 'amount' | 'number';
6
+ descending?: boolean;
5
7
  limit?: number;
6
8
  page?: number;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevision.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":"AAKA,qBAAa,aAAa;IAGxB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
1
+ {"version":3,"file":"QueryRevision.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGxB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAM9C,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
@@ -7,8 +7,9 @@ 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, IsInt, IsNumber, } from 'class-validator';
11
- import { ApiProperty } from '../../../..';
10
+ import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
12
13
  export class QueryRevision {
13
14
  constructor() {
14
15
  // Interface paginate
@@ -31,6 +32,19 @@ __decorate([
31
32
  IsInt(),
32
33
  __metadata("design:type", Number)
33
34
  ], QueryRevision.prototype, "idSociety", void 0);
35
+ __decorate([
36
+ ApiPropertyOptional(),
37
+ IsString(),
38
+ IsOptional(),
39
+ __metadata("design:type", String)
40
+ ], QueryRevision.prototype, "orderBy", void 0);
41
+ __decorate([
42
+ ApiPropertyOptional(),
43
+ IsBoolean(),
44
+ ToBoolean(),
45
+ IsOptional(),
46
+ __metadata("design:type", Boolean)
47
+ ], QueryRevision.prototype, "descending", void 0);
34
48
  __decorate([
35
49
  ApiProperty({ default: 25 }),
36
50
  IsNumber(),
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevision.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,KAAK,EAAE,QAAQ,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,aAAa;IAA1B;QAaE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AAlBC;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;gDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;8CAAC;AAId;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;gDACU;AAKlB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;4CACS;AAIpB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;2CACO","sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: 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}"]}
1
+ {"version":3,"file":"QueryRevision.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC9C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,aAAa;IAA1B;QAwBE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AA7BC;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;gDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;8CAAC;AAId;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;gDACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACiC;AAM9C;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;iDACQ;AAKrB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;4CACS;AAIpB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;2CACO","sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\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}"]}
@@ -1,10 +1,10 @@
1
1
  import { QueryPaginate } from '../../../..';
2
2
  export declare class QueryRevisionAccount implements QueryPaginate {
3
3
  page: number;
4
- orderBy?: string;
5
4
  startDate: Date;
6
5
  endDate: Date;
7
6
  limit: number;
7
+ orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
8
8
  descending?: boolean;
9
9
  isRevised?: boolean;
10
10
  idSociety: number;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionAccount.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,aAAa,EAAE,MAAM,aAAa,CAAC;AAGzD,qBAAa,oBAAqB,YAAW,aAAa;IAGxD,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,KAAK,EAAE,MAAM,CAAC;IAGd,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"QueryRevisionAccount.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,aAAa,EAAE,MAAM,aAAa,CAAC;AAIzD,qBAAa,oBAAqB,YAAW,aAAa;IAGxD,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,KAAK,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;IAMpE,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;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, IsInt, IsNumber, } from 'class-validator';
10
+ import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
11
11
  import { ApiProperty } from '../../../..';
12
12
  import { ApiPropertyOptional } from '../../../../utils';
13
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
14
  export class QueryRevisionAccount {
14
15
  }
15
16
  __decorate([
@@ -17,10 +18,6 @@ __decorate([
17
18
  IsNumber(),
18
19
  __metadata("design:type", Number)
19
20
  ], QueryRevisionAccount.prototype, "page", void 0);
20
- __decorate([
21
- ApiPropertyOptional({ default: 'idAccount' }),
22
- __metadata("design:type", String)
23
- ], QueryRevisionAccount.prototype, "orderBy", void 0);
24
21
  __decorate([
25
22
  ApiProperty(),
26
23
  IsDate(),
@@ -36,8 +33,17 @@ __decorate([
36
33
  IsNumber(),
37
34
  __metadata("design:type", Number)
38
35
  ], QueryRevisionAccount.prototype, "limit", void 0);
36
+ __decorate([
37
+ ApiPropertyOptional({ default: 'idAccount' }),
38
+ IsString(),
39
+ IsOptional(),
40
+ __metadata("design:type", String)
41
+ ], QueryRevisionAccount.prototype, "orderBy", void 0);
39
42
  __decorate([
40
43
  ApiPropertyOptional({ default: true }),
44
+ IsBoolean(),
45
+ ToBoolean(),
46
+ IsOptional(),
41
47
  __metadata("design:type", Boolean)
42
48
  ], QueryRevisionAccount.prototype, "descending", void 0);
43
49
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionAccount.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,KAAK,EAAE,QAAQ,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAiB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,oBAAoB;CA6BhC;AA1BC;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;kDACE;AAGb;IADC,mBAAmB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;;qDAC7B;AAIjB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;uDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;qDAAC;AAId;IAFC,mBAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACpC,QAAQ,EAAE;;mDACG;AAGd;IADC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDAClB;AAGrB;IADC,mBAAmB,EAAE;;uDACF;AAIpB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACU","sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty, QueryPaginate } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryRevisionAccount implements QueryPaginate {\n @ApiProperty({ default: 1 })\n @IsNumber()\n page: number;\n\n @ApiPropertyOptional({ default: 'idAccount' })\n orderBy?: string;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional({ default: 25 })\n @IsNumber()\n limit: number;\n\n @ApiPropertyOptional({ default: true })\n descending?: boolean;\n\n @ApiPropertyOptional()\n isRevised?: boolean;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n}"]}
1
+ {"version":3,"file":"QueryRevisionAccount.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC9C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAiB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;CAkChC;AA/BC;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;kDACE;AAIb;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;uDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;qDAAC;AAId;IAFC,mBAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACpC,QAAQ,EAAE;;mDACG;AAKd;IAHC,mBAAmB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAC7C,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACuD;AAMpE;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;wDACQ;AAGrB;IADC,mBAAmB,EAAE;;uDACF;AAIpB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACU","sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, QueryPaginate } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionAccount implements QueryPaginate {\n @ApiProperty({ default: 1 })\n @IsNumber()\n page: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional({ default: 25 })\n @IsNumber()\n limit: number;\n\n @ApiPropertyOptional({ default: 'idAccount' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n isRevised?: boolean;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n}"]}
@@ -2,6 +2,8 @@ export declare class QueryRevisionPaginate {
2
2
  startDate: Date;
3
3
  endDate: Date;
4
4
  idSociety: number;
5
+ orderBy?: 'designation' | 'amount' | 'number';
6
+ descending?: boolean;
5
7
  limit?: number;
6
8
  page?: number;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionPaginate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"names":[],"mappings":"AAKA,qBAAa,qBAAqB;IAGhC,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
1
+ {"version":3,"file":"QueryRevisionPaginate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"names":[],"mappings":"AAOA,qBAAa,qBAAqB;IAGhC,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAM9C,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
@@ -7,8 +7,9 @@ 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, IsInt, IsNumber, } from 'class-validator';
11
- import { ApiProperty } from '../../../..';
10
+ import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
12
13
  export class QueryRevisionPaginate {
13
14
  constructor() {
14
15
  // Interface paginate
@@ -31,6 +32,19 @@ __decorate([
31
32
  IsInt(),
32
33
  __metadata("design:type", Number)
33
34
  ], QueryRevisionPaginate.prototype, "idSociety", void 0);
35
+ __decorate([
36
+ ApiPropertyOptional(),
37
+ IsString(),
38
+ IsOptional(),
39
+ __metadata("design:type", String)
40
+ ], QueryRevisionPaginate.prototype, "orderBy", void 0);
41
+ __decorate([
42
+ ApiPropertyOptional(),
43
+ IsBoolean(),
44
+ ToBoolean(),
45
+ IsOptional(),
46
+ __metadata("design:type", Boolean)
47
+ ], QueryRevisionPaginate.prototype, "descending", void 0);
34
48
  __decorate([
35
49
  ApiProperty({ default: 25 }),
36
50
  IsNumber(),
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionPaginate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,KAAK,EAAE,QAAQ,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,qBAAqB;IAAlC;QAaE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AAlBC;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;wDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;sDAAC;AAId;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACU;AAKlB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;oDACS;AAIpB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;mDACO","sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class QueryRevisionPaginate {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: 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}"]}
1
+ {"version":3,"file":"QueryRevisionPaginate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC9C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,qBAAqB;IAAlC;QAwBE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AA7BC;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;wDAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;sDAAC;AAId;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACiC;AAM9C;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;yDACQ;AAKrB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;oDACS;AAIpB;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;mDACO","sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionPaginate {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\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}"]}
@@ -13,7 +13,7 @@ export declare class QueryRevisionSearchEntries {
13
13
  idsAccountingJournal?: Array<number>;
14
14
  type?: number;
15
15
  isRevised?: boolean;
16
- orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate';
16
+ orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate' | 'debit' | 'credit';
17
17
  descending?: boolean;
18
18
  limit?: number;
19
19
  page?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionSearchEntries.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"names":[],"mappings":"AASA,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;IAM1B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAKrC,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,SAAS,CAAC,EAAE,OAAO,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAM1E,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,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":"AASA,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;IAM1B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAKrC,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,SAAS,CAAC,EAAE,OAAO,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAM/F,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACnB"}
@@ -1 +1 @@
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,QAAQ,EAAE,UAAU,EAAE,QAAQ,GACvC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,0BAA0B;IAAvC;QAmFE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AAvFC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACO;AAIlB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;6DAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;2DAAC;AAMd;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;gEACS;AAKtB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACG;AAKhB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACO;AAKpB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;sEACe;AAK5B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;oEACa;AAM1B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,OAAO,EAAE;IACT,UAAU,EAAE;8BACU,KAAK;wEAAS;AAKrC;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACC;AAMd;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;6DACO;AAKpB;IAHC,mBAAmB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DAC6D;AAM1E;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, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { 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 // 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()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\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' | 'amount' | 'designation' | 'vatRate';\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"]}
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,QAAQ,EAAE,UAAU,EAAE,QAAQ,GACvC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,0BAA0B;IAAvC;QAmFE,qBAAqB;QAGrB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACpB,CAAC;CAAA;AAvFC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACO;AAIlB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;6DAAC;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,EAAE;8BACA,IAAI;2DAAC;AAMd;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;gEACS;AAKtB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACG;AAKhB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACO;AAKpB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;sEACe;AAK5B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;oEACa;AAM1B;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,OAAO,EAAE;IACT,UAAU,EAAE;8BACU,KAAK;wEAAS;AAKrC;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACC;AAMd;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;6DACO;AAKpB;IAHC,mBAAmB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACxC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACkF;AAM/F;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, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { 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 // 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()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\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' | 'amount' | 'designation' | 'vatRate' | 'debit' | 'credit';\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"]}
@@ -3,7 +3,6 @@ import { IEngagementAccountingEntry } from './IEngagementAccountingEntry';
3
3
  import { IAccountingJournal } from './IAccountingJournal';
4
4
  import { IUser } from './IUser';
5
5
  import { ILettering } from './ILettering';
6
- import { IPartnerTransaction } from './IPartnerTransaction';
7
6
  export interface IEngagementBankTransaction {
8
7
  id?: number;
9
8
  migrate: boolean;
@@ -30,6 +29,5 @@ export interface IEngagementBankTransaction {
30
29
  accountingJournal: IAccountingJournal;
31
30
  user: IUser;
32
31
  lettering: ILettering;
33
- partnersTransaction: IPartnerTransaction;
34
32
  }
35
33
  //# sourceMappingURL=IEngagementBankTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IEngagementBankTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,WAAW,0BAA0B;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,WAAW,EAAE,YAAY,CAAC;IAC1B,2BAA2B,EAAE,0BAA0B,EAAE,CAAC;IAC1D,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,IAAI,EAAE,KAAK,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;IACtB,mBAAmB,EAAE,mBAAmB,CAAC;CAC1C"}
1
+ {"version":3,"file":"IEngagementBankTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,0BAA0B;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,WAAW,EAAE,YAAY,CAAC;IAC1B,2BAA2B,EAAE,0BAA0B,EAAE,CAAC;IAC1D,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,IAAI,EAAE,KAAK,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IEngagementBankTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IEngagementAccountingEntry } from './IEngagementAccountingEntry';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { IUser } from './IUser';\nimport { ILettering } from './ILettering';\nimport { IPartnerTransaction } from './IPartnerTransaction';\n\n// engagementBankTransactions\nexport interface IEngagementBankTransaction {\n id?: number;\n migrate: boolean;\n reference: string | null;\n dateValue: Date;\n dateLocked: Date | null;\n dateVerified: Date | null;\n isBlocked: boolean;\n exported: Date | null;\n noInvoice: boolean;\n isReadMobile: boolean;\n isLockedMobile: boolean;\n idBankAccount: number | null;\n idSociety: number;\n idPaymentMethod: number | null;\n idRule: number | null;\n idAccountingJournal: number;\n idLettering: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n idUser: number | null;\n\n // Associations\n bankAccount: IBankAccount;\n engagementAccountingEntries: IEngagementAccountingEntry[];\n accountingJournal: IAccountingJournal;\n user: IUser;\n lettering: ILettering;\n partnersTransaction: IPartnerTransaction;\n}\n"]}
1
+ {"version":3,"file":"IEngagementBankTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IEngagementAccountingEntry } from './IEngagementAccountingEntry';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { IUser } from './IUser';\nimport { ILettering } from './ILettering';\n\n// engagementBankTransactions\nexport interface IEngagementBankTransaction {\n id?: number;\n migrate: boolean;\n reference: string | null;\n dateValue: Date;\n dateLocked: Date | null;\n dateVerified: Date | null;\n isBlocked: boolean;\n exported: Date | null;\n noInvoice: boolean;\n isReadMobile: boolean;\n isLockedMobile: boolean;\n idBankAccount: number | null;\n idSociety: number;\n idPaymentMethod: number | null;\n idRule: number | null;\n idAccountingJournal: number;\n idLettering: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n idUser: number | null;\n\n // Associations\n bankAccount: IBankAccount;\n engagementAccountingEntries: IEngagementAccountingEntry[];\n accountingJournal: IAccountingJournal;\n user: IUser;\n lettering: ILettering;\n}\n"]}
@@ -8,7 +8,6 @@ export interface IPartnerTransaction {
8
8
  idAccountingTransaction: number | null;
9
9
  createdAt?: Date | null;
10
10
  updatedAt?: Date | null;
11
- idEngagementBankTransaction: number | null;
12
11
  typePartnerTransaction?: IPartnerTransactionType;
13
12
  }
14
13
  //# sourceMappingURL=IPartnerTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IPartnerTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3C,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CAClD"}
1
+ {"version":3,"file":"IPartnerTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"IPartnerTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { PartnerTransactionType } from '../../Enum/PartnerTransactionType';\nimport { IPartnerTransactionType } from './IPartnerTransactionType';\n\n// partnersTransactions\nexport interface IPartnerTransaction {\n id?: number;\n tokenString: string | null;\n tokenInteger: number | null;\n idTypePartnerTransaction: PartnerTransactionType;\n idAccountingTransaction: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n idEngagementBankTransaction: number | null;\n\n // Associations\n typePartnerTransaction?: IPartnerTransactionType;\n}\n"]}
1
+ {"version":3,"file":"IPartnerTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { PartnerTransactionType } from '../../Enum/PartnerTransactionType';\nimport { IPartnerTransactionType } from './IPartnerTransactionType';\n\n// partnersTransactions\nexport interface IPartnerTransaction {\n id?: number;\n tokenString: string | null;\n tokenInteger: number | null;\n idTypePartnerTransaction: PartnerTransactionType;\n idAccountingTransaction: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n typePartnerTransaction?: IPartnerTransactionType;\n}\n"]}
@@ -9,6 +9,8 @@ var _classValidator = require("class-validator");
9
9
 
10
10
  var _ = require("../../../..");
11
11
 
12
+ var _boolean = require("../../../../utils/transforms/boolean.transform");
13
+
12
14
  var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13
15
  var c = arguments.length,
14
16
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -38,6 +40,10 @@ __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("des
38
40
 
39
41
  __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryRevision.prototype, "idSociety", void 0);
40
42
 
43
+ __decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevision.prototype, "orderBy", void 0);
44
+
45
+ __decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevision.prototype, "descending", void 0);
46
+
41
47
  __decorate([(0, _.ApiProperty)({
42
48
  default: 25
43
49
  }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevision.prototype, "limit", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevision.js","mappings":";;;;;;;AAAA;;AAGA;;;;;;;;;;;;;;AAEM,MAAOA,aAAP,CAAoB;EAA1BC;IAaE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AArByB;;QAAbD,a,GAAAA,a;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevision","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: 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}"]}
1
+ {"version":3,"file":"QueryRevision.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,aAAP,CAAoB;EAA1BC;IAwBE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AAhCyB;;QAAbD,a,GAAAA,a;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAHC,4BAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,4BAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevision","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\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}"]}
@@ -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,
@@ -31,10 +33,6 @@ __decorate([(0, _.ApiProperty)({
31
33
  default: 1
32
34
  }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionAccount.prototype, "page", void 0);
33
35
 
34
- __decorate([(0, _utils.ApiPropertyOptional)({
35
- default: 'idAccount'
36
- }), __metadata("design:type", String)], QueryRevisionAccount.prototype, "orderBy", void 0);
37
-
38
36
  __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("design:type", Date)], QueryRevisionAccount.prototype, "startDate", void 0);
39
37
 
40
38
  __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("design:type", Date)], QueryRevisionAccount.prototype, "endDate", void 0);
@@ -43,9 +41,13 @@ __decorate([(0, _utils.ApiPropertyOptional)({
43
41
  default: 25
44
42
  }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionAccount.prototype, "limit", void 0);
45
43
 
44
+ __decorate([(0, _utils.ApiPropertyOptional)({
45
+ default: 'idAccount'
46
+ }), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevisionAccount.prototype, "orderBy", void 0);
47
+
46
48
  __decorate([(0, _utils.ApiPropertyOptional)({
47
49
  default: true
48
- }), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "descending", void 0);
50
+ }), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "descending", void 0);
49
51
 
50
52
  __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "isRevised", void 0);
51
53
 
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionAccount.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAGXC,YAFC,mBAAY;EAAEC,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAGAD,YADC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CACD;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAAWE,KAAX;;AAIAF,YAFC,oBAED,EADC,6BACD,4BAASE,KAAT;;AAIAF,YAFC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAED,EADC,+BACD;;AAGAD,YADC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CACD;;AAGAD,YADC,iCACD;;AAIAA,YAFC,oBAED,EADC,4BACD","names":["QueryRevisionAccount","__decorate","default","Date"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty, QueryPaginate } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryRevisionAccount implements QueryPaginate {\n @ApiProperty({ default: 1 })\n @IsNumber()\n page: number;\n\n @ApiPropertyOptional({ default: 'idAccount' })\n orderBy?: string;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional({ default: 25 })\n @IsNumber()\n limit: number;\n\n @ApiPropertyOptional({ default: true })\n descending?: boolean;\n\n @ApiPropertyOptional()\n isRevised?: boolean;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n}"]}
1
+ {"version":3,"file":"QueryRevisionAccount.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAGXC,YAFC,mBAAY;EAAEC,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAAWE,KAAX;;AAIAF,YAFC,oBAED,EADC,6BACD,4BAASE,KAAT;;AAIAF,YAFC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAED,EADC,+BACD;;AAKAD,YAHC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAD,YAJC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAGAD,YADC,iCACD;;AAIAA,YAFC,oBAED,EADC,4BACD","names":["QueryRevisionAccount","__decorate","default","Date"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, QueryPaginate } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionAccount implements QueryPaginate {\n @ApiProperty({ default: 1 })\n @IsNumber()\n page: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional({ default: 25 })\n @IsNumber()\n limit: number;\n\n @ApiPropertyOptional({ default: 'idAccount' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n isRevised?: boolean;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n}"]}
@@ -9,6 +9,8 @@ var _classValidator = require("class-validator");
9
9
 
10
10
  var _ = require("../../../..");
11
11
 
12
+ var _boolean = require("../../../../utils/transforms/boolean.transform");
13
+
12
14
  var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13
15
  var c = arguments.length,
14
16
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -38,6 +40,10 @@ __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("des
38
40
 
39
41
  __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryRevisionPaginate.prototype, "idSociety", void 0);
40
42
 
43
+ __decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevisionPaginate.prototype, "orderBy", void 0);
44
+
45
+ __decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionPaginate.prototype, "descending", void 0);
46
+
41
47
  __decorate([(0, _.ApiProperty)({
42
48
  default: 25
43
49
  }), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionPaginate.prototype, "limit", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionPaginate.js","mappings":";;;;;;;AAAA;;AAGA;;;;;;;;;;;;;;AAEM,MAAOA,qBAAP,CAA4B;EAAlCC;IAaE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AArBiC;;QAArBD,qB,GAAAA,qB;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionPaginate","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"sourcesContent":["import {\n IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class QueryRevisionPaginate {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: 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}"]}
1
+ {"version":3,"file":"QueryRevisionPaginate.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,qBAAP,CAA4B;EAAlCC;IAwBE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AAhCiC;;QAArBD,qB,GAAAA,qB;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAHC,4BAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,4BAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionPaginate","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionPaginate {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\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}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAmFE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AA3FsC;;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;;AAMAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,8BAED,EADC,iCACD,4BAAuBE,MAAvB;;AAKAF,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,gCAAoB;EAAEG,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAH,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,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","Array","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { 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 // 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()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\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' | 'amount' | 'designation' | 'vatRate';\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"]}
1
+ {"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAmFE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AA3FsC;;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;;AAMAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,8BAED,EADC,iCACD,4BAAuBE,MAAvB;;AAKAF,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,gCAAoB;EAAEG,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAH,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,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","Array","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { 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 // 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()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\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' | 'amount' | 'designation' | 'vatRate' | 'debit' | 'credit';\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.262",
3
+ "version": "0.4.263",
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,7 +1,9 @@
1
1
  import {
2
- IsDate, IsInt, IsNumber,
2
+ IsBoolean,
3
+ IsDate, IsInt, IsNumber, IsOptional, IsString,
3
4
  } from 'class-validator';
4
- import { ApiProperty } from '../../../..';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
7
 
6
8
  export class QueryRevision {
7
9
  @ApiProperty()
@@ -16,6 +18,17 @@ export class QueryRevision {
16
18
  @IsInt()
17
19
  idSociety: number;
18
20
 
21
+ @ApiPropertyOptional()
22
+ @IsString()
23
+ @IsOptional()
24
+ orderBy?: 'designation' | 'amount' | 'number';
25
+
26
+ @ApiPropertyOptional()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ @IsOptional()
30
+ descending?: boolean;
31
+
19
32
  // Interface paginate
20
33
  @ApiProperty({ default: 25 })
21
34
  @IsNumber()
@@ -1,17 +1,16 @@
1
1
  import {
2
- IsDate, IsInt, IsNumber,
2
+ IsBoolean,
3
+ IsDate, IsInt, IsNumber, IsOptional, IsString,
3
4
  } from 'class-validator';
4
5
  import { ApiProperty, QueryPaginate } from '../../../..';
5
6
  import { ApiPropertyOptional } from '../../../../utils';
7
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
8
 
7
9
  export class QueryRevisionAccount implements QueryPaginate {
8
10
  @ApiProperty({ default: 1 })
9
11
  @IsNumber()
10
12
  page: number;
11
13
 
12
- @ApiPropertyOptional({ default: 'idAccount' })
13
- orderBy?: string;
14
-
15
14
  @ApiProperty()
16
15
  @IsDate()
17
16
  startDate: Date;
@@ -24,7 +23,15 @@ export class QueryRevisionAccount implements QueryPaginate {
24
23
  @IsNumber()
25
24
  limit: number;
26
25
 
26
+ @ApiPropertyOptional({ default: 'idAccount' })
27
+ @IsString()
28
+ @IsOptional()
29
+ orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
30
+
27
31
  @ApiPropertyOptional({ default: true })
32
+ @IsBoolean()
33
+ @ToBoolean()
34
+ @IsOptional()
28
35
  descending?: boolean;
29
36
 
30
37
  @ApiPropertyOptional()
@@ -1,7 +1,9 @@
1
1
  import {
2
- IsDate, IsInt, IsNumber,
2
+ IsBoolean,
3
+ IsDate, IsInt, IsNumber, IsOptional, IsString,
3
4
  } from 'class-validator';
4
- import { ApiProperty } from '../../../..';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
7
 
6
8
  export class QueryRevisionPaginate {
7
9
  @ApiProperty()
@@ -16,6 +18,17 @@ export class QueryRevisionPaginate {
16
18
  @IsInt()
17
19
  idSociety: number;
18
20
 
21
+ @ApiPropertyOptional()
22
+ @IsString()
23
+ @IsOptional()
24
+ orderBy?: 'designation' | 'amount' | 'number';
25
+
26
+ @ApiPropertyOptional()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ @IsOptional()
30
+ descending?: boolean;
31
+
19
32
  // Interface paginate
20
33
  @ApiProperty({ default: 25 })
21
34
  @IsNumber()
@@ -82,7 +82,7 @@ export class QueryRevisionSearchEntries {
82
82
  @ApiPropertyOptional({ default: 'date' })
83
83
  @IsString()
84
84
  @IsOptional()
85
- orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate';
85
+ orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate' | 'debit' | 'credit';
86
86
 
87
87
  @ApiPropertyOptional()
88
88
  @IsBoolean()
@@ -3,7 +3,6 @@ import { IEngagementAccountingEntry } from './IEngagementAccountingEntry';
3
3
  import { IAccountingJournal } from './IAccountingJournal';
4
4
  import { IUser } from './IUser';
5
5
  import { ILettering } from './ILettering';
6
- import { IPartnerTransaction } from './IPartnerTransaction';
7
6
 
8
7
  // engagementBankTransactions
9
8
  export interface IEngagementBankTransaction {
@@ -34,5 +33,4 @@ export interface IEngagementBankTransaction {
34
33
  accountingJournal: IAccountingJournal;
35
34
  user: IUser;
36
35
  lettering: ILettering;
37
- partnersTransaction: IPartnerTransaction;
38
36
  }
@@ -10,7 +10,6 @@ export interface IPartnerTransaction {
10
10
  idAccountingTransaction: number | null;
11
11
  createdAt?: Date | null;
12
12
  updatedAt?: Date | null;
13
- idEngagementBankTransaction: number | null;
14
13
 
15
14
  // Associations
16
15
  typePartnerTransaction?: IPartnerTransactionType;