@silexpert/core 1.1.342 → 1.1.343

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 (76) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +2 -1
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +3 -0
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/Log.d.ts +2 -1
  6. package/dist/cjs/api/resources/Log.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Log.js +3 -0
  8. package/dist/cjs/api/resources/Log.js.map +1 -1
  9. package/dist/cjs/api/resources/Subscription.d.ts +2 -2
  10. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Subscription.js +2 -2
  12. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  13. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BalanceSheet.js +5 -3
  15. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  16. package/dist/cjs/types/Enum/Log.d.ts +229 -1
  17. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/Log.js +228 -0
  19. package/dist/cjs/types/Enum/Log.js.map +1 -1
  20. package/dist/cjs/types/Enum/TimeSlot.js +3 -3
  21. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +8 -0
  23. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +40 -1
  25. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/log/QueryLogPagination.d.ts +9 -0
  27. package/dist/cjs/types/Interface/api/log/QueryLogPagination.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/log/QueryLogPagination.js +56 -6
  29. package/dist/cjs/types/Interface/api/log/QueryLogPagination.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +3 -0
  31. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/stripe/Create.js +10 -1
  33. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  34. package/dist/mjs/api/resources/Card.d.ts +2 -1
  35. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  36. package/dist/mjs/api/resources/Card.js +6 -0
  37. package/dist/mjs/api/resources/Card.js.map +1 -1
  38. package/dist/mjs/api/resources/Log.d.ts +2 -1
  39. package/dist/mjs/api/resources/Log.d.ts.map +1 -1
  40. package/dist/mjs/api/resources/Log.js +3 -0
  41. package/dist/mjs/api/resources/Log.js.map +1 -1
  42. package/dist/mjs/api/resources/Subscription.d.ts +2 -2
  43. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  44. package/dist/mjs/api/resources/Subscription.js +2 -2
  45. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  46. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  47. package/dist/mjs/types/Enum/BalanceSheet.js +5 -3
  48. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  49. package/dist/mjs/types/Enum/Log.d.ts +229 -1
  50. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  51. package/dist/mjs/types/Enum/Log.js +228 -0
  52. package/dist/mjs/types/Enum/Log.js.map +1 -1
  53. package/dist/mjs/types/Enum/TimeSlot.js +3 -3
  54. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  55. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +8 -0
  56. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +38 -0
  58. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  59. package/dist/mjs/types/Interface/api/log/QueryLogPagination.d.ts +9 -0
  60. package/dist/mjs/types/Interface/api/log/QueryLogPagination.d.ts.map +1 -1
  61. package/dist/mjs/types/Interface/api/log/QueryLogPagination.js +57 -5
  62. package/dist/mjs/types/Interface/api/log/QueryLogPagination.js.map +1 -1
  63. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +3 -0
  64. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/stripe/Create.js +11 -2
  66. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  67. package/package.json +1 -1
  68. package/ts/api/resources/Card.ts +8 -1
  69. package/ts/api/resources/Log.ts +5 -0
  70. package/ts/api/resources/Subscription.ts +3 -3
  71. package/ts/types/Enum/BalanceSheet.ts +5 -3
  72. package/ts/types/Enum/Log.ts +228 -0
  73. package/ts/types/Enum/TimeSlot.ts +3 -3
  74. package/ts/types/Interface/api/card/QueryUserCards.ts +31 -0
  75. package/ts/types/Interface/api/log/QueryLogPagination.ts +40 -1
  76. package/ts/types/Interface/api/stripe/Create.ts +10 -2
@@ -1 +1 @@
1
- {"version":3,"file":"QueryUserCards.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBAAa,cAAc;IAGjB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B"}
1
+ {"version":3,"file":"QueryUserCards.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBAAa,cAAc;IAGjB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B;AACD,qBAAa,mBAAmB;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B"}
@@ -45,4 +45,42 @@ __decorate([
45
45
  IsEnum(CardState),
46
46
  __metadata("design:type", Number)
47
47
  ], QueryUserCards.prototype, "state", void 0);
48
+ export class QueryUserCardsAdmin {
49
+ }
50
+ __decorate([
51
+ ApiPropertyOptional(),
52
+ IsOptional(),
53
+ IsInt(),
54
+ __metadata("design:type", Number)
55
+ ], QueryUserCardsAdmin.prototype, "idUser", void 0);
56
+ __decorate([
57
+ ApiPropertyOptional(),
58
+ IsOptional(),
59
+ IsDate(),
60
+ __metadata("design:type", Date)
61
+ ], QueryUserCardsAdmin.prototype, "startDate", void 0);
62
+ __decorate([
63
+ ApiPropertyOptional(),
64
+ IsOptional(),
65
+ IsDate(),
66
+ __metadata("design:type", Date)
67
+ ], QueryUserCardsAdmin.prototype, "endDate", void 0);
68
+ __decorate([
69
+ ApiPropertyOptional(),
70
+ IsOptional(),
71
+ IsString(),
72
+ __metadata("design:type", String)
73
+ ], QueryUserCardsAdmin.prototype, "search", void 0);
74
+ __decorate([
75
+ ApiPropertyOptional(),
76
+ IsOptional(),
77
+ IsArray(),
78
+ __metadata("design:type", Array)
79
+ ], QueryUserCardsAdmin.prototype, "types", void 0);
80
+ __decorate([
81
+ ApiPropertyOptional(),
82
+ IsOptional(),
83
+ IsEnum(CardState),
84
+ __metadata("design:type", Number)
85
+ ], QueryUserCardsAdmin.prototype, "state", void 0);
48
86
  //# sourceMappingURL=QueryUserCards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryUserCards.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAY,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,OAAO,cAAc;CA2B1B;AAxBS;IAFP,WAAW,EAAE;IACb,KAAK,EAAE;;8CACe;AAIf;IAFP,WAAW,EAAE;IACb,MAAM,EAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,WAAW,EAAE;IACb,MAAM,EAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACa;AAKhB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;6CACiB;AAKnB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC;;6CACQ","sourcesContent":["import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CardType, CardState } from '../../../Enum/Card';\n\nexport class QueryUserCards {\n @ApiProperty()\n @IsInt()\n declare idUser: number;\n\n @ApiProperty()\n @IsDate()\n declare startDate: Date;\n\n @ApiProperty()\n @IsDate()\n declare endDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}"]}
1
+ {"version":3,"file":"QueryUserCards.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAY,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,OAAO,cAAc;CA2B1B;AAxBS;IAFP,WAAW,EAAE;IACb,KAAK,EAAE;;8CACe;AAIf;IAFP,WAAW,EAAE;IACb,MAAM,EAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,WAAW,EAAE;IACb,MAAM,EAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACa;AAKhB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;6CACiB;AAKnB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC;;6CACQ;AAE5B,MAAM,OAAO,mBAAmB;CA8B/B;AA1BS;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;mDACgB;AAKhB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACW,IAAI;sDAAC;AAKjB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACS,IAAI;oDAAC;AAKf;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACa;AAKhB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;kDACiB;AAKnB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC;;kDACQ","sourcesContent":["import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CardType, CardState } from '../../../Enum/Card';\n\nexport class QueryUserCards {\n @ApiProperty()\n @IsInt()\n declare idUser: number;\n\n @ApiProperty()\n @IsDate()\n declare startDate: Date;\n\n @ApiProperty()\n @IsDate()\n declare endDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}\nexport class QueryUserCardsAdmin {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n declare idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n declare startDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n declare endDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}"]}
@@ -1,4 +1,13 @@
1
1
  export declare class QueryLogPagination {
2
+ limit?: number;
3
+ page?: number;
4
+ dateStart?: Date;
5
+ dateEnd?: Date;
6
+ idTypeLog: number;
7
+ idSociety?: number;
8
+ idUser?: number;
9
+ }
10
+ export declare class QueryLogPaginationByUser {
2
11
  limit?: number;
3
12
  page?: number;
4
13
  idLogType: number;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLogPagination.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":"AAMA,qBAAa,kBAAkB;IAI3B,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAQ;CAC3B"}
1
+ {"version":3,"file":"QueryLogPagination.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":"AAOA,qBAAa,kBAAkB;IAI3B,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAMf,SAAS,EAAE,MAAM,CAAC;IAKlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,wBAAwB;IAIjC,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAQ;CAC3B"}
@@ -7,10 +7,62 @@ 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 { IsEnum, IsInt, IsOptional, IsString, } from 'class-validator';
10
+ import { IsDate, IsEnum, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  import { LogType } from '../../../Enum/Log';
13
13
  export class QueryLogPagination {
14
+ limit = 25;
15
+ page = 1;
16
+ dateStart;
17
+ dateEnd;
18
+ idTypeLog;
19
+ idSociety;
20
+ idUser;
21
+ }
22
+ __decorate([
23
+ ApiPropertyOptional(),
24
+ IsOptional(),
25
+ IsNumber(),
26
+ __metadata("design:type", Number)
27
+ ], QueryLogPagination.prototype, "limit", void 0);
28
+ __decorate([
29
+ ApiPropertyOptional(),
30
+ IsOptional(),
31
+ IsNumber(),
32
+ __metadata("design:type", Number)
33
+ ], QueryLogPagination.prototype, "page", void 0);
34
+ __decorate([
35
+ ApiPropertyOptional(),
36
+ IsOptional(),
37
+ IsDate(),
38
+ __metadata("design:type", Date)
39
+ ], QueryLogPagination.prototype, "dateStart", void 0);
40
+ __decorate([
41
+ ApiPropertyOptional(),
42
+ IsOptional(),
43
+ IsDate(),
44
+ __metadata("design:type", Date)
45
+ ], QueryLogPagination.prototype, "dateEnd", void 0);
46
+ __decorate([
47
+ ApiPropertyOptional(),
48
+ IsOptional(),
49
+ IsNumber(),
50
+ IsEnum(LogType),
51
+ __metadata("design:type", Number)
52
+ ], QueryLogPagination.prototype, "idTypeLog", void 0);
53
+ __decorate([
54
+ ApiPropertyOptional(),
55
+ IsOptional(),
56
+ IsNumber(),
57
+ __metadata("design:type", Number)
58
+ ], QueryLogPagination.prototype, "idSociety", void 0);
59
+ __decorate([
60
+ ApiPropertyOptional(),
61
+ IsOptional(),
62
+ IsNumber(),
63
+ __metadata("design:type", Number)
64
+ ], QueryLogPagination.prototype, "idUser", void 0);
65
+ export class QueryLogPaginationByUser {
14
66
  limit = 25;
15
67
  page = 1;
16
68
  idLogType;
@@ -21,23 +73,23 @@ __decorate([
21
73
  IsOptional(),
22
74
  IsInt(),
23
75
  __metadata("design:type", Number)
24
- ], QueryLogPagination.prototype, "limit", void 0);
76
+ ], QueryLogPaginationByUser.prototype, "limit", void 0);
25
77
  __decorate([
26
78
  ApiPropertyOptional(),
27
79
  IsOptional(),
28
80
  IsInt(),
29
81
  __metadata("design:type", Number)
30
- ], QueryLogPagination.prototype, "page", void 0);
82
+ ], QueryLogPaginationByUser.prototype, "page", void 0);
31
83
  __decorate([
32
84
  ApiProperty(),
33
85
  IsInt(),
34
86
  IsEnum(LogType),
35
87
  __metadata("design:type", Number)
36
- ], QueryLogPagination.prototype, "idLogType", void 0);
88
+ ], QueryLogPaginationByUser.prototype, "idLogType", void 0);
37
89
  __decorate([
38
90
  ApiPropertyOptional(),
39
91
  IsOptional(),
40
92
  IsString(),
41
93
  __metadata("design:type", String)
42
- ], QueryLogPagination.prototype, "orderBy", void 0);
94
+ ], QueryLogPaginationByUser.prototype, "orderBy", void 0);
43
95
  //# sourceMappingURL=QueryLogPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLogPagination.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAkB;IAI3B,KAAK,GAAY,EAAE,CAAC;IAKpB,IAAI,GAAY,CAAC,CAAC;IAKlB,SAAS,CAAS;IAKlB,OAAO,GAAY,IAAI,CAAC;CAC3B;AAhBG;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;iDACc;AAKpB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;gDACY;AAKlB;IAHD,WAAW,EAAE;IACb,KAAK,EAAE;IACP,MAAM,CAAC,OAAO,CAAC;;qDACI;AAKlB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACe","sourcesContent":["import {\n IsEnum, IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { LogType } from '../../../Enum/Log';\n\nexport class QueryLogPagination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number = 1;\n\n @ApiProperty()\n @IsInt()\n @IsEnum(LogType)\n idLogType: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string = 'id';\n}\n"]}
1
+ {"version":3,"file":"QueryLogPagination.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC9C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAkB;IAI3B,KAAK,GAAY,EAAE,CAAC;IAKpB,IAAI,GAAY,CAAC,CAAC;IAKlB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;IAMf,SAAS,CAAS;IAKlB,SAAS,CAAU;IAKnB,MAAM,CAAU;CACnB;AAhCG;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;iDACW;AAKpB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACS;AAKlB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACK,IAAI;qDAAC;AAKjB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACG,IAAI;mDAAC;AAMf;IAJD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,MAAM,CAAC,OAAO,CAAC;;qDACI;AAKlB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACU;AAKnB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACO;AAGpB,MAAM,OAAO,wBAAwB;IAIjC,KAAK,GAAY,EAAE,CAAC;IAKpB,IAAI,GAAY,CAAC,CAAC;IAKlB,SAAS,CAAS;IAKlB,OAAO,GAAY,IAAI,CAAC;CAC3B;AAhBG;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uDACc;AAKpB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;sDACY;AAKlB;IAHD,WAAW,EAAE;IACb,KAAK,EAAE;IACP,MAAM,CAAC,OAAO,CAAC;;2DACI;AAKlB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;yDACe","sourcesContent":["import {\n IsDate,\n IsEnum, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { LogType } from '../../../Enum/Log';\n\nexport class QueryLogPagination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n page?: number = 1;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n dateStart?: Date;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n dateEnd?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @IsEnum(LogType)\n idTypeLog: number;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idUser?: number;\n}\n\nexport class QueryLogPaginationByUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number = 1;\n\n @ApiProperty()\n @IsInt()\n @IsEnum(LogType)\n idLogType: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string = 'id';\n}\n"]}
@@ -1,4 +1,7 @@
1
1
  export declare class CreateStripeConnection {
2
2
  code: string;
3
3
  }
4
+ export declare class CreateStripePortals {
5
+ stripeCustomerId?: string;
6
+ }
4
7
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,IAAI,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,mBAAmB;IAI5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAE7B"}
@@ -7,8 +7,8 @@ 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 { IsString } from 'class-validator';
11
- import { ApiProperty } from '../../../../utils';
10
+ import { IsOptional, IsString } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  export class CreateStripeConnection {
13
13
  code;
14
14
  }
@@ -17,4 +17,13 @@ __decorate([
17
17
  IsString(),
18
18
  __metadata("design:type", String)
19
19
  ], CreateStripeConnection.prototype, "code", void 0);
20
+ export class CreateStripePortals {
21
+ stripeCustomerId;
22
+ }
23
+ __decorate([
24
+ ApiPropertyOptional(),
25
+ IsString(),
26
+ IsOptional(),
27
+ __metadata("design:type", String)
28
+ ], CreateStripePortals.prototype, "stripeCustomerId", void 0);
20
29
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,sBAAsB;IAG/B,IAAI,CAAS;CAChB;AADG;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACI","sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAG/B,IAAI,CAAS;CAChB;AADG;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACI;AAGjB,MAAM,OAAO,mBAAmB;IAI5B,gBAAgB,CAAU;CAE7B;AAFG;IAHD,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACe","sourcesContent":["import { IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n stripeCustomerId?: string;\n\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.342",
3
+ "version": "1.1.343",
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": "dist/cjs/index.js",
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { ICard, QueryUserCards, QueryUserCardsStats, UserCardsStatsGroup, UpdateCard, CardDetail } from '../../types';
2
+ import { ICard, QueryUserCards, QueryUserCardsAdmin, QueryUserCardsStats, UserCardsStatsGroup, UpdateCard, CardDetail } from '../../types';
3
3
 
4
4
  export class Card extends Resource {
5
5
  getById(id: number, signal?: AbortSignal): Promise<CardDetail> {
@@ -15,6 +15,13 @@ export class Card extends Resource {
15
15
  });
16
16
  }
17
17
 
18
+ getAllAdmin(params: QueryUserCardsAdmin, signal?: AbortSignal): Promise<ICard[]> {
19
+ return this.axios.$get('/cards/admin', {
20
+ ...(signal ? { signal } : {}),
21
+ params,
22
+ });
23
+ }
24
+
18
25
  getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<UserCardsStatsGroup[]> {
19
26
  return this.axios.$get('/cards/stats', {
20
27
  ...(signal ? { signal } : {}),
@@ -4,6 +4,7 @@ import {
4
4
  CreateLog,
5
5
  ILog,
6
6
  LogType,
7
+ QueryLogPagination,
7
8
  } from '../../types';
8
9
 
9
10
  export class Log extends Resource {
@@ -16,6 +17,10 @@ export class Log extends Resource {
16
17
  return this.axios.$post('/log', payload);
17
18
  }
18
19
 
20
+ getPaginated(params: QueryLogPagination, signal?: AbortSignal): Promise<BasePaginate<ILog>> {
21
+ return this.axios.$get('/logs/paginated', { ...(signal ? { signal } : {}), params });
22
+ }
23
+
19
24
  getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {
20
25
  return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });
21
26
  }
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession } from '../../types';
2
+ import { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession, CreateStripePortals } from '../../types';
3
3
  import Stripe from 'stripe';
4
4
 
5
5
  export class Subscription extends Resource {
@@ -15,7 +15,7 @@ export class Subscription extends Resource {
15
15
  return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
16
16
  }
17
17
 
18
- createPortalSession(idUser: number): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {
19
- return this.axios.$post(`/subscriptions/users/${idUser}/portals`);
18
+ createPortalSession(idUser: number, body: CreateStripePortals): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {
19
+ return this.axios.$post(`/subscriptions/users/${idUser}/portals`, body);
20
20
  }
21
21
  }
@@ -457,11 +457,12 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
457
457
  accounts: ['411', '413', '416', '418'],
458
458
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.PLUS],
459
459
  accountsDeducted: ['491'],
460
+ type: 'active',
460
461
  },
461
462
  {
462
463
  // autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
463
464
  name: 'Autres',
464
- accounts: ['401', '4096', '4097', '4098', '42', '43', '44', '451', '452', '453', '454', '455', '4561', '4563', '4564', '4565', '4566', '4567', '4568', '4569', '457', '458', '459', '46', '471', '472', '48'],
465
+ accounts: ['401', '408', '4096', '4097', '4098', '42', '43', '44', '451', '452', '453', '454', '455', '4561', '4563', '4564', '4565', '4566', '4567', '4568', '4569', '457', '458', '459', '46', '471', '472', '481'],
465
466
  idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.PLUS],
466
467
  accountsDeducted: ['495', '496'], // Actif : On compte dedans que ceux qui sont positifs que 4
467
468
  type: 'active',
@@ -700,7 +701,8 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
700
701
  {
701
702
  name: 'Emprunts et dettes financières diverses (2)',
702
703
  key: 'loans',
703
- accounts: ['165', '166', '167', '168', '16885', '16886', '16887', '16888', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
704
+ // accounts: ['165', '166', '167', '168', '16885', '16886', '16887', '16888', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
705
+ accounts: ['165', '166', '167', '168', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
704
706
  isSubcategory: true,
705
707
  total: 0,
706
708
  type: 'passive',
@@ -742,7 +744,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
742
744
  {
743
745
  name: 'Autres dettes',
744
746
  key: 'OtherDebts',
745
- accounts: ['411', '4196', '4197', '4198', '464', '467', '4686', '471', '472', '478', '509'],
747
+ accounts: ['411', '418', '4196', '4197', '4198', '464', '467', '4686', '471', '472', '478', '509'],
746
748
  // PASSIF Autres = lorsque l'entreprise doit de l'argent au client = somme débit > crédit (modifié)
747
749
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.LESS],
748
750
  isSubcategory: true,