@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
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryUserCards = void 0;
12
+ exports.QueryUserCardsAdmin = exports.QueryUserCards = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const Card_1 = require("../../../Enum/Card");
@@ -49,4 +49,43 @@ __decorate([
49
49
  (0, class_validator_1.IsEnum)(Card_1.CardState),
50
50
  __metadata("design:type", Number)
51
51
  ], QueryUserCards.prototype, "state", void 0);
52
+ class QueryUserCardsAdmin {
53
+ }
54
+ exports.QueryUserCardsAdmin = QueryUserCardsAdmin;
55
+ __decorate([
56
+ (0, utils_1.ApiPropertyOptional)(),
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsInt)(),
59
+ __metadata("design:type", Number)
60
+ ], QueryUserCardsAdmin.prototype, "idUser", void 0);
61
+ __decorate([
62
+ (0, utils_1.ApiPropertyOptional)(),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsDate)(),
65
+ __metadata("design:type", Date)
66
+ ], QueryUserCardsAdmin.prototype, "startDate", void 0);
67
+ __decorate([
68
+ (0, utils_1.ApiPropertyOptional)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsDate)(),
71
+ __metadata("design:type", Date)
72
+ ], QueryUserCardsAdmin.prototype, "endDate", void 0);
73
+ __decorate([
74
+ (0, utils_1.ApiPropertyOptional)(),
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.IsString)(),
77
+ __metadata("design:type", String)
78
+ ], QueryUserCardsAdmin.prototype, "search", void 0);
79
+ __decorate([
80
+ (0, utils_1.ApiPropertyOptional)(),
81
+ (0, class_validator_1.IsOptional)(),
82
+ (0, class_validator_1.IsArray)(),
83
+ __metadata("design:type", Array)
84
+ ], QueryUserCardsAdmin.prototype, "types", void 0);
85
+ __decorate([
86
+ (0, utils_1.ApiPropertyOptional)(),
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.IsEnum)(Card_1.CardState),
89
+ __metadata("design:type", Number)
90
+ ], QueryUserCardsAdmin.prototype, "state", void 0);
52
91
  //# sourceMappingURL=QueryUserCards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryUserCards.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,6CAAqE;AACrE,6CAAyD;AAEzD,MAAa,cAAc;CA2B1B;AA3BD,wCA2BC;AAxBS;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACe;AAIf;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,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,qDAAuF;AACvF,6CAAqE;AACrE,6CAAyD;AAEzD,MAAa,cAAc;CA2B1B;AA3BD,wCA2BC;AAxBS;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACe;AAIf;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,CAAC;;6CACQ;AAE5B,MAAa,mBAAmB;CA8B/B;AA9BD,kDA8BC;AA1BS;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mDACgB;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACW,IAAI;sDAAC;AAKjB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACS,IAAI;oDAAC;AAKf;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;kDACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,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"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryLogPagination = void 0;
12
+ exports.QueryLogPaginationByUser = exports.QueryLogPagination = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const Log_1 = require("../../../Enum/Log");
@@ -17,32 +17,82 @@ class QueryLogPagination {
17
17
  constructor() {
18
18
  this.limit = 25;
19
19
  this.page = 1;
20
- this.orderBy = 'id';
21
20
  }
22
21
  }
23
22
  exports.QueryLogPagination = QueryLogPagination;
24
23
  __decorate([
25
24
  (0, utils_1.ApiPropertyOptional)(),
26
25
  (0, class_validator_1.IsOptional)(),
27
- (0, class_validator_1.IsInt)(),
26
+ (0, class_validator_1.IsNumber)(),
28
27
  __metadata("design:type", Number)
29
28
  ], QueryLogPagination.prototype, "limit", void 0);
30
29
  __decorate([
31
30
  (0, utils_1.ApiPropertyOptional)(),
32
31
  (0, class_validator_1.IsOptional)(),
33
- (0, class_validator_1.IsInt)(),
32
+ (0, class_validator_1.IsNumber)(),
34
33
  __metadata("design:type", Number)
35
34
  ], QueryLogPagination.prototype, "page", void 0);
35
+ __decorate([
36
+ (0, utils_1.ApiPropertyOptional)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsDate)(),
39
+ __metadata("design:type", Date)
40
+ ], QueryLogPagination.prototype, "dateStart", void 0);
41
+ __decorate([
42
+ (0, utils_1.ApiPropertyOptional)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsDate)(),
45
+ __metadata("design:type", Date)
46
+ ], QueryLogPagination.prototype, "dateEnd", void 0);
47
+ __decorate([
48
+ (0, utils_1.ApiPropertyOptional)(),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsNumber)(),
51
+ (0, class_validator_1.IsEnum)(Log_1.LogType),
52
+ __metadata("design:type", Number)
53
+ ], QueryLogPagination.prototype, "idTypeLog", void 0);
54
+ __decorate([
55
+ (0, utils_1.ApiPropertyOptional)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsNumber)(),
58
+ __metadata("design:type", Number)
59
+ ], QueryLogPagination.prototype, "idSociety", void 0);
60
+ __decorate([
61
+ (0, utils_1.ApiPropertyOptional)(),
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsNumber)(),
64
+ __metadata("design:type", Number)
65
+ ], QueryLogPagination.prototype, "idUser", void 0);
66
+ class QueryLogPaginationByUser {
67
+ constructor() {
68
+ this.limit = 25;
69
+ this.page = 1;
70
+ this.orderBy = 'id';
71
+ }
72
+ }
73
+ exports.QueryLogPaginationByUser = QueryLogPaginationByUser;
74
+ __decorate([
75
+ (0, utils_1.ApiPropertyOptional)(),
76
+ (0, class_validator_1.IsOptional)(),
77
+ (0, class_validator_1.IsInt)(),
78
+ __metadata("design:type", Number)
79
+ ], QueryLogPaginationByUser.prototype, "limit", void 0);
80
+ __decorate([
81
+ (0, utils_1.ApiPropertyOptional)(),
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_validator_1.IsInt)(),
84
+ __metadata("design:type", Number)
85
+ ], QueryLogPaginationByUser.prototype, "page", void 0);
36
86
  __decorate([
37
87
  (0, utils_1.ApiProperty)(),
38
88
  (0, class_validator_1.IsInt)(),
39
89
  (0, class_validator_1.IsEnum)(Log_1.LogType),
40
90
  __metadata("design:type", Number)
41
- ], QueryLogPagination.prototype, "idLogType", void 0);
91
+ ], QueryLogPaginationByUser.prototype, "idLogType", void 0);
42
92
  __decorate([
43
93
  (0, utils_1.ApiPropertyOptional)(),
44
94
  (0, class_validator_1.IsOptional)(),
45
95
  (0, class_validator_1.IsString)(),
46
96
  __metadata("design:type", String)
47
- ], QueryLogPagination.prototype, "orderBy", void 0);
97
+ ], QueryLogPaginationByUser.prototype, "orderBy", void 0);
48
98
  //# sourceMappingURL=QueryLogPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLogPagination.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6CAAqE;AACrE,2CAA4C;AAE5C,MAAa,kBAAkB;IAA/B;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;QAUlB,YAAO,GAAY,IAAI,CAAC;IAC5B,CAAC;CAAA;AApBD,gDAoBC;AAhBG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACc;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;gDACY;AAKlB;IAHD,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,aAAO,CAAC;;qDACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;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,qDAGyB;AACzB,6CAAqE;AACrE,2CAA4C;AAE5C,MAAa,kBAAkB;IAA/B;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;IA2BtB,CAAC;CAAA;AApCD,gDAoCC;AAhCG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACW;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACK,IAAI;qDAAC;AAKjB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACG,IAAI;mDAAC;AAMf;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,aAAO,CAAC;;qDACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAKnB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACO;AAGpB,MAAa,wBAAwB;IAArC;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;QAUlB,YAAO,GAAY,IAAI,CAAC;IAC5B,CAAC;CAAA;AApBD,4DAoBC;AAhBG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACc;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACY;AAKlB;IAHD,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,aAAO,CAAC;;2DACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;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"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateStripeConnection = void 0;
12
+ exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  class CreateStripeConnection {
@@ -20,4 +20,13 @@ __decorate([
20
20
  (0, class_validator_1.IsString)(),
21
21
  __metadata("design:type", String)
22
22
  ], CreateStripeConnection.prototype, "code", void 0);
23
+ class CreateStripePortals {
24
+ }
25
+ exports.CreateStripePortals = CreateStripePortals;
26
+ __decorate([
27
+ (0, utils_1.ApiPropertyOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], CreateStripePortals.prototype, "stripeCustomerId", void 0);
23
32
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6CAAgD;AAEhD,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;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,qDAAuD;AACvD,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACI;AAGjB,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAFG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;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}"]}
@@ -1,8 +1,9 @@
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
  export declare class Card extends Resource {
4
4
  getById(id: number, signal?: AbortSignal): Promise<CardDetail>;
5
5
  getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
6
+ getAllAdmin(params: QueryUserCardsAdmin, signal?: AbortSignal): Promise<ICard[]>;
6
7
  getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<UserCardsStatsGroup[]>;
7
8
  update(id: number, data: UpdateCard): Promise<ICard>;
8
9
  delete(id: number): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtH,qBAAa,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAM9D,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAOtE,QAAQ,CAAC,MAAM,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAO3F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAIlC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE3I,qBAAa,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAM9D,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAOtE,WAAW,CAAC,MAAM,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAOhF,QAAQ,CAAC,MAAM,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAO3F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAIlC"}
@@ -11,6 +11,12 @@ export class Card extends Resource {
11
11
  params,
12
12
  });
13
13
  }
14
+ getAllAdmin(params, signal) {
15
+ return this.axios.$get('/cards/admin', {
16
+ ...(signal ? { signal } : {}),
17
+ params,
18
+ });
19
+ }
14
20
  getStats(params, signal) {
15
21
  return this.axios.$get('/cards/stats', {
16
22
  ...(signal ? { signal } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,EAAU,EAAE,MAAoB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE;YACrC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAsB,EAAE,MAAoB;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC/B,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,MAA2B,EAAE,MAAoB;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAgB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;CAEF","sourcesContent":["import { Resource } from '../Resource';\nimport { ICard, QueryUserCards, QueryUserCardsStats, UserCardsStatsGroup, UpdateCard, CardDetail } from '../../types';\n\nexport class Card extends Resource {\n getById(id: number, signal?: AbortSignal): Promise<CardDetail> {\n return this.axios.$get(`/cards/${id}`, {\n ...(signal ? { signal } : {}),\n });\n }\n\n getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', { \n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<UserCardsStatsGroup[]> {\n return this.axios.$get('/cards/stats', { \n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n update(id: number, data: UpdateCard): Promise<ICard> {\n return this.axios.$put(`/cards/${id}`, data);\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/cards/${id}`);\n }\n \n}"]}
1
+ {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C,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;CAEF","sourcesContent":["import { Resource } from '../Resource';\nimport { ICard, QueryUserCards, QueryUserCardsAdmin, QueryUserCardsStats, UserCardsStatsGroup, UpdateCard, CardDetail } from '../../types';\n\nexport class Card extends Resource {\n getById(id: number, signal?: AbortSignal): Promise<CardDetail> {\n return this.axios.$get(`/cards/${id}`, {\n ...(signal ? { signal } : {}),\n });\n }\n\n getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', { \n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getAllAdmin(params: QueryUserCardsAdmin, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards/admin', { \n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<UserCardsStatsGroup[]> {\n return this.axios.$get('/cards/stats', { \n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n update(id: number, data: UpdateCard): Promise<ICard> {\n return this.axios.$put(`/cards/${id}`, data);\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/cards/${id}`);\n }\n \n}"]}
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { BasePaginate, CreateLog, ILog } from '../../types';
2
+ import { BasePaginate, CreateLog, ILog, QueryLogPagination } from '../../types';
3
3
  export declare class Log extends Resource {
4
4
  /**
5
5
  * création d'un enregistrement dans la table logs
@@ -7,6 +7,7 @@ export declare class Log extends Resource {
7
7
  * @returns { ILog }
8
8
  */
9
9
  create(payload: CreateLog): Promise<ILog>;
10
+ getPaginated(params: QueryLogPagination, signal?: AbortSignal): Promise<BasePaginate<ILog>>;
10
11
  getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>>;
11
12
  /**
12
13
  * Get des enregistrement de la table log
@@ -1 +1 @@
1
- {"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,SAAS,EACT,IAAI,EAEL,MAAM,aAAa,CAAC;AAErB,qBAAa,GAAI,SAAQ,QAAQ;IAC/B;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAIhE;;;;OAIG;IACH,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG7C"}
1
+ {"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,SAAS,EACT,IAAI,EAEJ,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,GAAI,SAAQ,QAAQ;IAC/B;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAI3F,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAIhE;;;;OAIG;IACH,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG7C"}
@@ -9,6 +9,9 @@ export class Log extends Resource {
9
9
  create(payload) {
10
10
  return this.axios.$post('/log', payload);
11
11
  }
12
+ getPaginated(params, signal) {
13
+ return this.axios.$get('/logs/paginated', { ...(signal ? { signal } : {}), params });
14
+ }
12
15
  getLastIpsPaginated(idUser) {
13
16
  return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });
14
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Log.js","sourceRoot":"","sources":["../../../../ts/api/resources/Log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAIL,OAAO,GACR,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,GAAI,SAAQ,QAAQ;IAC/B;;;;OAIG;IACH,MAAM,CAAC,OAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,mBAAmB,CAAC,MAAc;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,MAAM,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;IAClH,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,OAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateLog,\n ILog,\n LogType,\n} from '../../types';\n\nexport class Log extends Resource {\n /**\n * création d'un enregistrement dans la table logs\n * @param { CreateLog } payload\n * @returns { ILog }\n */\n create(payload: CreateLog): Promise<ILog> {\n return this.axios.$post('/log', payload);\n }\n\n getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {\n return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });\n }\n\n /**\n * Get des enregistrement de la table log\n * @param { CreateLog } payload\n * @returns { ILog[] }\n */\n get(payload: Partial<ILog>): Promise<ILog[]> {\n return this.axios.$get('/logs', { params: payload });\n }\n}"]}
1
+ {"version":3,"file":"Log.js","sourceRoot":"","sources":["../../../../ts/api/resources/Log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAIL,OAAO,GAER,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,GAAI,SAAQ,QAAQ;IAC/B;;;;OAIG;IACH,MAAM,CAAC,OAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CAAC,MAA0B,EAAE,MAAoB;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,mBAAmB,CAAC,MAAc;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,MAAM,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;IAClH,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,OAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateLog,\n ILog,\n LogType,\n QueryLogPagination,\n} from '../../types';\n\nexport class Log extends Resource {\n /**\n * création d'un enregistrement dans la table logs\n * @param { CreateLog } payload\n * @returns { ILog }\n */\n create(payload: CreateLog): Promise<ILog> {\n return this.axios.$post('/log', payload);\n }\n\n getPaginated(params: QueryLogPagination, signal?: AbortSignal): Promise<BasePaginate<ILog>> {\n return this.axios.$get('/logs/paginated', { ...(signal ? { signal } : {}), params });\n }\n\n getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {\n return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });\n }\n\n /**\n * Get des enregistrement de la table log\n * @param { CreateLog } payload\n * @returns { ILog[] }\n */\n get(payload: Partial<ILog>): Promise<ILog[]> {\n return this.axios.$get('/logs', { params: payload });\n }\n}"]}
@@ -258,12 +258,12 @@
258
258
  /// <reference types="stripe/types/lib" />
259
259
  /// <reference types="stripe/types/net/net" />
260
260
  import { Resource } from '../Resource';
261
- import { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession } from '../../types';
261
+ import { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession, CreateStripePortals } from '../../types';
262
262
  import Stripe from 'stripe';
263
263
  export declare class Subscription extends Resource {
264
264
  retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice>;
265
265
  getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null>;
266
266
  createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
267
- createPortalSession(idUser: number): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
267
+ createPortalSession(idUser: number, body: CreateStripePortals): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
268
268
  }
269
269
  //# sourceMappingURL=Subscription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC1H,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAIrF,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAI7G,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;CAGvH"}
@@ -9,8 +9,8 @@ export class Subscription extends Resource {
9
9
  createSession(idSociety, body) {
10
10
  return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
11
11
  }
12
- createPortalSession(idUser) {
13
- return this.axios.$post(`/subscriptions/users/${idUser}/portals`);
12
+ createPortalSession(idUser, body) {
13
+ return this.axios.$post(`/subscriptions/users/${idUser}/portals`, body);
14
14
  }
15
15
  }
16
16
  //# sourceMappingURL=Subscription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,IAAwB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB,CAAC,MAAc;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,MAAM,UAAU,CAAC,CAAC;IACpE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession } from '../../types';\nimport Stripe from 'stripe';\n\nexport class Subscription extends Resource {\n retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {\n return this.axios.$get('/subscription/next-invoice', { params });\n }\n\n getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null> {\n return this.axios.$get(`/societies/${idSociety}/subscriptions`);\n }\n\n createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);\n }\n\n createPortalSession(idUser: number): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {\n return this.axios.$post(`/subscriptions/users/${idUser}/portals`);\n }\n}\n"]}
1
+ {"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,IAAwB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB,CAAC,MAAc,EAAE,IAAyB;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,MAAM,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession, CreateStripePortals } from '../../types';\nimport Stripe from 'stripe';\n\nexport class Subscription extends Resource {\n retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {\n return this.axios.$get('/subscription/next-invoice', { params });\n }\n\n getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null> {\n return this.axios.$get(`/societies/${idSociety}/subscriptions`);\n }\n\n createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);\n }\n\n createPortalSession(idUser: number, body: CreateStripePortals): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {\n return this.axios.$post(`/subscriptions/users/${idUser}/portals`, body);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/BalanceSheet.ts"],"names":[],"mappings":"AAAA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,EAAE,gBA6RvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,gBA8OxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,iBAAiB,EAajE,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;EAyB1B,CAAC"}
@@ -428,11 +428,12 @@ export const BALANCE_SHEET_LIST_ACTIVE = [
428
428
  accounts: ['411', '413', '416', '418'],
429
429
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.PLUS],
430
430
  accountsDeducted: ['491'],
431
+ type: 'active',
431
432
  },
432
433
  {
433
434
  // autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
434
435
  name: 'Autres',
435
- 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'],
436
+ 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'],
436
437
  idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.PLUS],
437
438
  accountsDeducted: ['495', '496'], // Actif : On compte dedans que ceux qui sont positifs que 4
438
439
  type: 'active',
@@ -670,7 +671,8 @@ export const BALANCE_SHEET_LIST_PASSIVE = [
670
671
  {
671
672
  name: 'Emprunts et dettes financières diverses (2)',
672
673
  key: 'loans',
673
- accounts: ['165', '166', '167', '168', '16885', '16886', '16887', '16888', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
674
+ // accounts: ['165', '166', '167', '168', '16885', '16886', '16887', '16888', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
675
+ accounts: ['165', '166', '167', '168', '17', '426', '451', '455', '4563', '4564', '4567', '457', '458'],
674
676
  isSubcategory: true,
675
677
  total: 0,
676
678
  type: 'passive',
@@ -712,7 +714,7 @@ export const BALANCE_SHEET_LIST_PASSIVE = [
712
714
  {
713
715
  name: 'Autres dettes',
714
716
  key: 'OtherDebts',
715
- accounts: ['411', '4196', '4197', '4198', '464', '467', '4686', '471', '472', '478', '509'],
717
+ accounts: ['411', '418', '4196', '4197', '4198', '464', '467', '4686', '471', '472', '478', '509'],
716
718
  // PASSIF Autres = lorsque l'entreprise doit de l'argent au client = somme débit > crédit (modifié)
717
719
  idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.LESS],
718
720
  isSubcategory: true,