@silexpert/core 1.3.160-3 → 1.3.160-4

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 (25) hide show
  1. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
  2. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  3. package/dist/cjs/types/Interface/api/revenueMovement.js +39 -39
  4. package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  6. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +3 -4
  7. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  8. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  9. package/dist/cjs/utils/prestation.js +9 -4
  10. package/dist/cjs/utils/prestation.js.map +1 -1
  11. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
  12. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  13. package/dist/mjs/types/Interface/api/revenueMovement.js +1 -1
  14. package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
  15. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  16. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +3 -4
  17. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  18. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  19. package/dist/mjs/utils/prestation.js +3 -1
  20. package/dist/mjs/utils/prestation.js.map +1 -1
  21. package/package.json +1 -1
  22. package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
  23. package/ts/types/Interface/api/revenueMovement.ts +1 -1
  24. package/ts/types/Interface/api/revenueSnapshotGenerate.ts +3 -4
  25. package/ts/utils/prestation.ts +3 -1
@@ -10,74 +10,74 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmailSendOptionsDto = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
13
+ const utils_1 = require("../../../../utils");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class EmailSendOptionsDto {
16
16
  }
17
17
  exports.EmailSendOptionsDto = EmailSendOptionsDto;
18
18
  __decorate([
19
- (0, swagger_1.ApiProperty)({ description: 'Recipient email address' }),
19
+ (0, utils_1.ApiProperty)({ description: 'Recipient email address' }),
20
20
  (0, class_validator_1.IsEmail)(),
21
21
  __metadata("design:type", String)
22
22
  ], EmailSendOptionsDto.prototype, "to", void 0);
23
23
  __decorate([
24
- (0, swagger_1.ApiPropertyOptional)({ description: 'Email subject' }),
24
+ (0, utils_1.ApiPropertyOptional)({ description: 'Email subject' }),
25
25
  (0, class_validator_1.IsString)(),
26
26
  (0, class_validator_1.IsOptional)(),
27
27
  __metadata("design:type", String)
28
28
  ], EmailSendOptionsDto.prototype, "subject", void 0);
29
29
  __decorate([
30
- (0, swagger_1.ApiPropertyOptional)({ description: 'Sender email address' }),
30
+ (0, utils_1.ApiPropertyOptional)({ description: 'Sender email address' }),
31
31
  (0, class_validator_1.IsOptional)(),
32
32
  (0, class_validator_1.IsEmail)(),
33
33
  __metadata("design:type", String)
34
34
  ], EmailSendOptionsDto.prototype, "from", void 0);
35
35
  __decorate([
36
- (0, swagger_1.ApiPropertyOptional)({ description: 'Sender name' }),
36
+ (0, utils_1.ApiPropertyOptional)({ description: 'Sender name' }),
37
37
  (0, class_validator_1.IsOptional)(),
38
38
  (0, class_validator_1.IsString)(),
39
39
  __metadata("design:type", String)
40
40
  ], EmailSendOptionsDto.prototype, "fromName", void 0);
41
41
  __decorate([
42
- (0, swagger_1.ApiPropertyOptional)({ description: 'Reply-to email address' }),
42
+ (0, utils_1.ApiPropertyOptional)({ description: 'Reply-to email address' }),
43
43
  (0, class_validator_1.IsOptional)(),
44
44
  (0, class_validator_1.IsEmail)(),
45
45
  __metadata("design:type", String)
46
46
  ], EmailSendOptionsDto.prototype, "replyTo", void 0);
47
47
  __decorate([
48
- (0, swagger_1.ApiPropertyOptional)({ description: 'CC email address' }),
48
+ (0, utils_1.ApiPropertyOptional)({ description: 'CC email address' }),
49
49
  (0, class_validator_1.IsOptional)(),
50
50
  (0, class_validator_1.IsEmail)(),
51
51
  __metadata("design:type", String)
52
52
  ], EmailSendOptionsDto.prototype, "cc", void 0);
53
53
  __decorate([
54
- (0, swagger_1.ApiPropertyOptional)({ description: 'BCC email address' }),
54
+ (0, utils_1.ApiPropertyOptional)({ description: 'BCC email address' }),
55
55
  (0, class_validator_1.IsOptional)(),
56
56
  (0, class_validator_1.IsEmail)(),
57
57
  __metadata("design:type", String)
58
58
  ], EmailSendOptionsDto.prototype, "bcc", void 0);
59
59
  __decorate([
60
- (0, swagger_1.ApiPropertyOptional)({ description: 'Custom ID for tracking' }),
60
+ (0, utils_1.ApiPropertyOptional)({ description: 'Custom ID for tracking' }),
61
61
  (0, class_validator_1.IsOptional)(),
62
62
  (0, class_validator_1.IsString)(),
63
63
  __metadata("design:type", String)
64
64
  ], EmailSendOptionsDto.prototype, "customId", void 0);
65
65
  __decorate([
66
- (0, swagger_1.ApiPropertyOptional)({ description: 'HTML content for the email' }),
66
+ (0, utils_1.ApiPropertyOptional)({ description: 'HTML content for the email' }),
67
67
  (0, class_validator_1.IsOptional)(),
68
68
  (0, class_validator_1.IsString)(),
69
69
  (0, class_validator_1.ValidateIf)((o) => !o.templateId),
70
70
  __metadata("design:type", String)
71
71
  ], EmailSendOptionsDto.prototype, "htmlContent", void 0);
72
72
  __decorate([
73
- (0, swagger_1.ApiPropertyOptional)({ description: 'Brevo template ID' }),
73
+ (0, utils_1.ApiPropertyOptional)({ description: 'Brevo template ID' }),
74
74
  (0, class_validator_1.IsOptional)(),
75
75
  (0, class_validator_1.IsNumber)(),
76
76
  (0, class_validator_1.ValidateIf)((o) => !o.htmlContent),
77
77
  __metadata("design:type", Number)
78
78
  ], EmailSendOptionsDto.prototype, "templateId", void 0);
79
79
  __decorate([
80
- (0, swagger_1.ApiPropertyOptional)({ description: 'Template variables' }),
80
+ (0, utils_1.ApiPropertyOptional)({ description: 'Template variables' }),
81
81
  (0, class_validator_1.IsOptional)(),
82
82
  (0, class_validator_1.IsObject)(),
83
83
  (0, class_validator_1.ValidateIf)((o) => !!o.templateId),
@@ -1 +1 @@
1
- {"version":3,"file":"EmailSendOptions.dto.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/EmailSendOptions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAgG;AAEhG,MAAa,mBAAmB;CAyD/B;AAzDD,kDAyDC;AAtDC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACvD,IAAA,yBAAO,GAAE;;+CACC;AAKX;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACrD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAKjB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAKd;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAKlB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;oDACO;AAKjB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACxD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACE;AAKZ;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACzD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;gDACG;AAKb;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAMlB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAClE,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;;wDACZ;AAMrB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACzD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;;uDACd;AAMpB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;;sDACF","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';\n\nexport class EmailSendOptionsDto {\n @ApiProperty({ description: 'Recipient email address' })\n @IsEmail()\n to: string;\n\n @ApiPropertyOptional({ description: 'Email subject' })\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional({ description: 'Sender email address' })\n @IsOptional()\n @IsEmail()\n from?: string;\n\n @ApiPropertyOptional({ description: 'Sender name' })\n @IsOptional()\n @IsString()\n fromName?: string;\n\n @ApiPropertyOptional({ description: 'Reply-to email address' })\n @IsOptional()\n @IsEmail()\n replyTo?: string;\n\n @ApiPropertyOptional({ description: 'CC email address' })\n @IsOptional()\n @IsEmail()\n cc?: string;\n\n @ApiPropertyOptional({ description: 'BCC email address' })\n @IsOptional()\n @IsEmail()\n bcc?: string;\n\n @ApiPropertyOptional({ description: 'Custom ID for tracking' })\n @IsOptional()\n @IsString()\n customId?: string;\n\n @ApiPropertyOptional({ description: 'HTML content for the email' })\n @IsOptional()\n @IsString()\n @ValidateIf((o) => !o.templateId)\n htmlContent?: string;\n\n @ApiPropertyOptional({ description: 'Brevo template ID' })\n @IsOptional()\n @IsNumber()\n @ValidateIf((o) => !o.htmlContent)\n templateId?: number;\n\n @ApiPropertyOptional({ description: 'Template variables' })\n @IsOptional()\n @IsObject()\n @ValidateIf((o) => !!o.templateId)\n variables?: Record<string, any>;\n}\n"]}
1
+ {"version":3,"file":"EmailSendOptions.dto.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/EmailSendOptions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,qDAAgG;AAEhG,MAAa,mBAAmB;CAyD/B;AAzDD,kDAyDC;AAtDC;IAFC,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACvD,IAAA,yBAAO,GAAE;;+CACC;AAKX;IAHC,IAAA,2BAAmB,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACrD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAKjB;IAHC,IAAA,2BAAmB,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAKd;IAHC,IAAA,2BAAmB,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;IAC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PropertyOptional } from '../../../../utils';\nimport { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';\n\nexport class EmailSendOptionsDto {\n @ApiProperty({ description: 'Recipient email address' })\n @IsEmail()\n to: string;\n\n @ApiPropertyOptional({ description: 'Email subject' })\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional({ description: 'Sender email address' })\n @IsOptional()\n @IsEmail()\n from?: string;\n\n @ApiPropertyOptional({ description: 'Sender name' })\n @IsOptional()\n @IsString()\n fromName?: string;\n\n @ApiPropertyOptional({ description: 'Reply-to email address' })\n @IsOptional()\n @IsEmail()\n replyTo?: string;\n\n @ApiPropertyOptional({ description: 'CC email address' })\n @IsOptional()\n @IsEmail()\n cc?: string;\n\n @ApiPropertyOptional({ description: 'BCC email address' })\n @IsOptional()\n @IsEmail()\n bcc?: string;\n\n @ApiPropertyOptional({ description: 'Custom ID for tracking' })\n @IsOptional()\n @IsString()\n customId?: string;\n\n @ApiPropertyOptional({ description: 'HTML content for the email' })\n @IsOptional()\n @IsString()\n @ValidateIf((o) => !o.templateId)\n htmlContent?: string;\n\n @ApiPropertyOptional({ description: 'Brevo template ID' })\n @IsOptional()\n @IsNumber()\n @ValidateIf((o) => !o.htmlContent)\n templateId?: number;\n\n @ApiPropertyOptional({ description: 'Template variables' })\n @IsOptional()\n @IsObject()\n @ValidateIf((o) => !!o.templateId)\n variables?: Record<string, any>;\n}\n"]}
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IManageRetroactivityRequest = exports.IGenerateAllSnapshotsRequest = exports.IGenerateSnapshotRequest = exports.IGetRevenueMovementsRequest = exports.IUpdateRevenueMovementRequest = exports.ICreateRevenueMovementRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const Revenue_1 = require("../../Enum/Revenue");
15
- const swagger_1 = require("@nestjs/swagger");
15
+ const utils_1 = require("../../../utils");
16
16
  /**
17
17
  * DTO pour créer un mouvement de revenu
18
18
  */
@@ -20,67 +20,67 @@ class ICreateRevenueMovementRequest {
20
20
  }
21
21
  exports.ICreateRevenueMovementRequest = ICreateRevenueMovementRequest;
22
22
  __decorate([
23
- (0, swagger_1.ApiProperty)(),
23
+ (0, utils_1.ApiProperty)(),
24
24
  (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
25
25
  __metadata("design:type", Number)
26
26
  ], ICreateRevenueMovementRequest.prototype, "type", void 0);
27
27
  __decorate([
28
- (0, swagger_1.ApiProperty)(),
28
+ (0, utils_1.ApiProperty)(),
29
29
  (0, class_validator_1.IsInt)(),
30
30
  __metadata("design:type", Number)
31
31
  ], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
32
32
  __decorate([
33
- (0, swagger_1.ApiPropertyOptional)(),
33
+ (0, utils_1.ApiPropertyOptional)(),
34
34
  (0, class_validator_1.IsOptional)(),
35
35
  (0, class_validator_1.IsInt)(),
36
36
  __metadata("design:type", Number)
37
37
  ], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
38
38
  __decorate([
39
- (0, swagger_1.ApiPropertyOptional)(),
39
+ (0, utils_1.ApiPropertyOptional)(),
40
40
  (0, class_validator_1.IsOptional)(),
41
41
  (0, class_validator_1.IsInt)(),
42
42
  __metadata("design:type", Number)
43
43
  ], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
44
44
  __decorate([
45
- (0, swagger_1.ApiPropertyOptional)(),
45
+ (0, utils_1.ApiPropertyOptional)(),
46
46
  (0, class_validator_1.IsOptional)(),
47
47
  (0, class_validator_1.IsInt)(),
48
48
  __metadata("design:type", Number)
49
49
  ], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
50
50
  __decorate([
51
- (0, swagger_1.ApiPropertyOptional)(),
51
+ (0, utils_1.ApiPropertyOptional)(),
52
52
  (0, class_validator_1.IsOptional)(),
53
53
  (0, class_validator_1.IsInt)(),
54
54
  __metadata("design:type", Number)
55
55
  ], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
56
56
  __decorate([
57
- (0, swagger_1.ApiProperty)(),
57
+ (0, utils_1.ApiProperty)(),
58
58
  (0, class_validator_1.IsInt)(),
59
59
  __metadata("design:type", Number)
60
60
  ], ICreateRevenueMovementRequest.prototype, "amount", void 0);
61
61
  __decorate([
62
- (0, swagger_1.ApiProperty)(),
62
+ (0, utils_1.ApiProperty)(),
63
63
  (0, class_validator_1.IsInt)(),
64
64
  __metadata("design:type", Number)
65
65
  ], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
66
66
  __decorate([
67
- (0, swagger_1.ApiProperty)(),
67
+ (0, utils_1.ApiProperty)(),
68
68
  (0, class_validator_1.IsInt)(),
69
69
  __metadata("design:type", Number)
70
70
  ], ICreateRevenueMovementRequest.prototype, "arr", void 0);
71
71
  __decorate([
72
- (0, swagger_1.ApiProperty)(),
72
+ (0, utils_1.ApiProperty)(),
73
73
  (0, class_validator_1.IsDate)(),
74
74
  __metadata("design:type", Date)
75
75
  ], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
76
76
  __decorate([
77
- (0, swagger_1.ApiPropertyOptional)(),
77
+ (0, utils_1.ApiPropertyOptional)(),
78
78
  (0, class_validator_1.IsOptional)(),
79
79
  (0, class_validator_1.IsString)(),
80
80
  __metadata("design:type", String)
81
81
  ], ICreateRevenueMovementRequest.prototype, "description", void 0);
82
82
  __decorate([
83
- (0, swagger_1.ApiPropertyOptional)(),
83
+ (0, utils_1.ApiPropertyOptional)(),
84
84
  (0, class_validator_1.IsOptional)(),
85
85
  (0, class_validator_1.IsObject)(),
86
86
  __metadata("design:type", Object)
@@ -92,55 +92,55 @@ class IUpdateRevenueMovementRequest {
92
92
  }
93
93
  exports.IUpdateRevenueMovementRequest = IUpdateRevenueMovementRequest;
94
94
  __decorate([
95
- (0, swagger_1.ApiPropertyOptional)(),
95
+ (0, utils_1.ApiPropertyOptional)(),
96
96
  (0, class_validator_1.IsOptional)(),
97
97
  (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
98
98
  __metadata("design:type", Number)
99
99
  ], IUpdateRevenueMovementRequest.prototype, "type", void 0);
100
100
  __decorate([
101
- (0, swagger_1.ApiPropertyOptional)(),
101
+ (0, utils_1.ApiPropertyOptional)(),
102
102
  (0, class_validator_1.IsOptional)(),
103
103
  (0, class_validator_1.IsInt)(),
104
104
  __metadata("design:type", Number)
105
105
  ], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
106
106
  __decorate([
107
- (0, swagger_1.ApiPropertyOptional)(),
107
+ (0, utils_1.ApiPropertyOptional)(),
108
108
  (0, class_validator_1.IsOptional)(),
109
109
  (0, class_validator_1.IsInt)(),
110
110
  __metadata("design:type", Number)
111
111
  ], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
112
112
  __decorate([
113
- (0, swagger_1.ApiPropertyOptional)(),
113
+ (0, utils_1.ApiPropertyOptional)(),
114
114
  (0, class_validator_1.IsOptional)(),
115
115
  (0, class_validator_1.IsNumber)(),
116
116
  __metadata("design:type", Number)
117
117
  ], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
118
118
  __decorate([
119
- (0, swagger_1.ApiPropertyOptional)(),
119
+ (0, utils_1.ApiPropertyOptional)(),
120
120
  (0, class_validator_1.IsOptional)(),
121
121
  (0, class_validator_1.IsInt)(),
122
122
  __metadata("design:type", Number)
123
123
  ], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
124
124
  __decorate([
125
- (0, swagger_1.ApiPropertyOptional)(),
125
+ (0, utils_1.ApiPropertyOptional)(),
126
126
  (0, class_validator_1.IsOptional)(),
127
127
  (0, class_validator_1.IsInt)(),
128
128
  __metadata("design:type", Number)
129
129
  ], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
130
130
  __decorate([
131
- (0, swagger_1.ApiPropertyOptional)(),
131
+ (0, utils_1.ApiPropertyOptional)(),
132
132
  (0, class_validator_1.IsOptional)(),
133
133
  (0, class_validator_1.IsDate)(),
134
134
  __metadata("design:type", Object)
135
135
  ], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
136
136
  __decorate([
137
- (0, swagger_1.ApiPropertyOptional)(),
137
+ (0, utils_1.ApiPropertyOptional)(),
138
138
  (0, class_validator_1.IsOptional)(),
139
139
  (0, class_validator_1.IsString)(),
140
140
  __metadata("design:type", String)
141
141
  ], IUpdateRevenueMovementRequest.prototype, "description", void 0);
142
142
  __decorate([
143
- (0, swagger_1.ApiPropertyOptional)(),
143
+ (0, utils_1.ApiPropertyOptional)(),
144
144
  (0, class_validator_1.IsOptional)(),
145
145
  (0, class_validator_1.IsObject)(),
146
146
  __metadata("design:type", Object)
@@ -152,62 +152,62 @@ class IGetRevenueMovementsRequest {
152
152
  }
153
153
  exports.IGetRevenueMovementsRequest = IGetRevenueMovementsRequest;
154
154
  __decorate([
155
- (0, swagger_1.ApiPropertyOptional)(),
155
+ (0, utils_1.ApiPropertyOptional)(),
156
156
  (0, class_validator_1.IsOptional)(),
157
157
  (0, class_validator_1.IsInt)(),
158
158
  __metadata("design:type", Number)
159
159
  ], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
160
160
  __decorate([
161
- (0, swagger_1.ApiPropertyOptional)(),
161
+ (0, utils_1.ApiPropertyOptional)(),
162
162
  (0, class_validator_1.IsOptional)(),
163
163
  (0, class_validator_1.IsInt)(),
164
164
  __metadata("design:type", Number)
165
165
  ], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
166
166
  __decorate([
167
- (0, swagger_1.ApiPropertyOptional)(),
167
+ (0, utils_1.ApiPropertyOptional)(),
168
168
  (0, class_validator_1.IsOptional)(),
169
169
  (0, class_validator_1.IsInt)(),
170
170
  __metadata("design:type", Number)
171
171
  ], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
172
172
  __decorate([
173
- (0, swagger_1.ApiPropertyOptional)(),
173
+ (0, utils_1.ApiPropertyOptional)(),
174
174
  (0, class_validator_1.IsOptional)(),
175
175
  (0, class_validator_1.IsInt)(),
176
176
  __metadata("design:type", Number)
177
177
  ], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
178
178
  __decorate([
179
- (0, swagger_1.ApiPropertyOptional)(),
179
+ (0, utils_1.ApiPropertyOptional)(),
180
180
  (0, class_validator_1.IsOptional)(),
181
181
  (0, class_validator_1.IsInt)(),
182
182
  __metadata("design:type", Number)
183
183
  ], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
184
184
  __decorate([
185
- (0, swagger_1.ApiPropertyOptional)(),
185
+ (0, utils_1.ApiPropertyOptional)(),
186
186
  (0, class_validator_1.IsOptional)(),
187
187
  (0, class_validator_1.IsArray)(),
188
188
  (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType, { each: true }),
189
189
  __metadata("design:type", Array)
190
190
  ], IGetRevenueMovementsRequest.prototype, "type", void 0);
191
191
  __decorate([
192
- (0, swagger_1.ApiPropertyOptional)(),
192
+ (0, utils_1.ApiPropertyOptional)(),
193
193
  (0, class_validator_1.IsOptional)(),
194
194
  (0, class_validator_1.IsDate)(),
195
195
  __metadata("design:type", Object)
196
196
  ], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
197
197
  __decorate([
198
- (0, swagger_1.ApiPropertyOptional)(),
198
+ (0, utils_1.ApiPropertyOptional)(),
199
199
  (0, class_validator_1.IsOptional)(),
200
200
  (0, class_validator_1.IsDate)(),
201
201
  __metadata("design:type", Object)
202
202
  ], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
203
203
  __decorate([
204
- (0, swagger_1.ApiPropertyOptional)(),
204
+ (0, utils_1.ApiPropertyOptional)(),
205
205
  (0, class_validator_1.IsOptional)(),
206
206
  (0, class_validator_1.IsInt)(),
207
207
  __metadata("design:type", Number)
208
208
  ], IGetRevenueMovementsRequest.prototype, "page", void 0);
209
209
  __decorate([
210
- (0, swagger_1.ApiPropertyOptional)(),
210
+ (0, utils_1.ApiPropertyOptional)(),
211
211
  (0, class_validator_1.IsOptional)(),
212
212
  (0, class_validator_1.IsInt)(),
213
213
  __metadata("design:type", Number)
@@ -219,19 +219,19 @@ class IGenerateSnapshotRequest {
219
219
  }
220
220
  exports.IGenerateSnapshotRequest = IGenerateSnapshotRequest;
221
221
  __decorate([
222
- (0, swagger_1.ApiPropertyOptional)(),
222
+ (0, utils_1.ApiPropertyOptional)(),
223
223
  (0, class_validator_1.IsOptional)(),
224
224
  (0, class_validator_1.IsDate)(),
225
225
  __metadata("design:type", String)
226
226
  ], IGenerateSnapshotRequest.prototype, "date", void 0);
227
227
  __decorate([
228
- (0, swagger_1.ApiPropertyOptional)(),
228
+ (0, utils_1.ApiPropertyOptional)(),
229
229
  (0, class_validator_1.IsOptional)(),
230
230
  (0, class_validator_1.IsInt)(),
231
231
  __metadata("design:type", Number)
232
232
  ], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
233
233
  __decorate([
234
- (0, swagger_1.ApiPropertyOptional)(),
234
+ (0, utils_1.ApiPropertyOptional)(),
235
235
  (0, class_validator_1.IsOptional)(),
236
236
  (0, class_validator_1.IsInt)(),
237
237
  __metadata("design:type", Number)
@@ -243,7 +243,7 @@ class IGenerateAllSnapshotsRequest {
243
243
  }
244
244
  exports.IGenerateAllSnapshotsRequest = IGenerateAllSnapshotsRequest;
245
245
  __decorate([
246
- (0, swagger_1.ApiPropertyOptional)(),
246
+ (0, utils_1.ApiPropertyOptional)(),
247
247
  (0, class_validator_1.IsOptional)(),
248
248
  (0, class_validator_1.IsDate)(),
249
249
  __metadata("design:type", String)
@@ -255,19 +255,19 @@ class IManageRetroactivityRequest {
255
255
  }
256
256
  exports.IManageRetroactivityRequest = IManageRetroactivityRequest;
257
257
  __decorate([
258
- (0, swagger_1.ApiPropertyOptional)(),
258
+ (0, utils_1.ApiPropertyOptional)(),
259
259
  (0, class_validator_1.IsOptional)(),
260
260
  (0, class_validator_1.IsInt)(),
261
261
  __metadata("design:type", Number)
262
262
  ], IManageRetroactivityRequest.prototype, "idSociety", void 0);
263
263
  __decorate([
264
- (0, swagger_1.ApiPropertyOptional)(),
264
+ (0, utils_1.ApiPropertyOptional)(),
265
265
  (0, class_validator_1.IsOptional)(),
266
266
  (0, class_validator_1.IsInt)(),
267
267
  __metadata("design:type", Number)
268
268
  ], IManageRetroactivityRequest.prototype, "idExercice", void 0);
269
269
  __decorate([
270
- (0, swagger_1.ApiPropertyOptional)(),
270
+ (0, utils_1.ApiPropertyOptional)(),
271
271
  (0, class_validator_1.IsOptional)(),
272
272
  (0, class_validator_1.IsDate)(),
273
273
  __metadata("design:type", Date)
@@ -1 +1 @@
1
- {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2G;AAC3G,gDAAyD;AACzD,6CAAmE;AAEnE;;GAEG;AACH,MAAa,6BAA6B;CAsDzC;AAtDD,sEAsDC;AAnDC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,6BAAmB,CAAC;;2DACF;AAI1B;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;gEACU;AAKlB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iEACY;AAKpB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mEACc;AAKtB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;wEACmB;AAK3B;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEACiB;AAIzB;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;6DACO;AAIf;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IA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GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4DACY;AAGtB;;GAEG;AACH,MAAa,4BAA4B;CAKxC;AALD,oEAKC;AADC;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACK;AAGhB;;GAEG;AACH,MAAa,2BAA2B;CAevC;AAfD,kEAeC;AAXC;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8DACU;AAKlB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+DACY;AAKpB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACF,IAAI;yDAAC","sourcesContent":["import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
1
+ {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2G;AAC3G,gDAAyD;AACzD,0CAAkE;AAElE;;GAEG;AACH,MAAa,6BAA6B;CAsDzC;AAtDD,sEAsDC;AAnDC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,6BAA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sNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '../../../utils';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAIA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -10,7 +10,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ManageRetroactivity = exports.GenerateAllSnapshots = exports.GenerateSnapshot = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
14
13
  const utils_1 = require("../../../utils");
15
14
  const class_validator_1 = require("class-validator");
16
15
  class GenerateSnapshot {
@@ -39,7 +38,7 @@ __decorate([
39
38
  __decorate([
40
39
  (0, utils_1.ApiProperty)({
41
40
  required: false,
42
- description: "ID de l'exercice",
41
+ description: 'ID de l\'exercice',
43
42
  example: 123456,
44
43
  }),
45
44
  (0, class_validator_1.IsOptional)(),
@@ -63,9 +62,9 @@ class ManageRetroactivity {
63
62
  }
64
63
  exports.ManageRetroactivity = ManageRetroactivity;
65
64
  __decorate([
66
- (0, swagger_1.ApiPropertyOptional)({
65
+ (0, utils_1.ApiPropertyOptional)({
67
66
  required: false,
68
- description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
67
+ description: 'ID de l\'exercice (si non fourni, utilise l\'exercice courant)',
69
68
  example: 123456,
70
69
  }),
71
70
  (0, class_validator_1.IsOptional)(),
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,0CAA6C;AAC7C,qDAAwE;AAExE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AADC;IAPC,IAAA,6BAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACY","sourcesContent":["import { ApiPropertyOptional } from '@nestjs/swagger';\nimport { ApiProperty } from '../../../utils';\nimport { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n // @ApiProperty({\n // required: true,\n // description: 'ID de la société',\n // example: 60170,\n // })\n // @IsInt()\n // idSociety: number;\n\n @ApiPropertyOptional({\n required: false,\n description: \"ID de l'exercice (si non fourni, utilise l'exercice courant)\",\n example: 123456,\n })\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n"]}
1
+ {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkE;AAClE,qDAAwE;AAExE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AADC;IAPC,IAAA,2BAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACY","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../utils';\nimport { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: 'ID de l\\'exercice',\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n // @ApiProperty({\n // required: true,\n // description: 'ID de la société',\n // example: 60170,\n // })\n // @IsInt()\n // idSociety: number;\n\n @ApiPropertyOptional({\n required: false,\n description: 'ID de l\\'exercice (si non fourni, utilise l\\'exercice courant)',\n example: 123456,\n })\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAInE,OAAO,EAGL,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gCAAgC,CAAC;AAexF,KAAK,SAAS,GAAG;IACf,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,EAAE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ports.idPrestationListToOfferType = exports.getApplicationFeesAmount = exports.calculatePrestationPriceWithPriceGrid = exports.isAbleToUpdatePrice = exports.getPrestationOptions = exports.calculatePrestationPrice = exports.calculateScoringOfPrestation = exports.isSoftwarePrestation = exports.isConsultingHour = exports.isExpress = exports.isFromStatutsExpress = exports.isCreation = exports.isOnlyJuridic = exports.isOnlySocial = exports.isOnlyPrevi = exports.isOtherSocialMission = exports.isAdditionalPresta = exports.isOtherJuridicalMissions = exports.isOtherAccountingMissions = exports.getPriceGrid = exports.calculateMonthlyAmount = void 0;
4
4
  const Vat_1 = require("../types/Enum/Vat");
5
+ const ReasonTerminationType_1 = require("../types/Enum/ReasonTerminationType");
5
6
  const utils_1 = require("./vat/utils");
6
7
  const noLodash_1 = require("./noLodash");
7
8
  const PrestationType_1 = require("../types/Enum/PrestationType");
@@ -66,10 +67,14 @@ idPrestationList.length === 1 */ // Commenté car si un client résilie un softw
66
67
  exports.isSoftwarePrestation = isSoftwarePrestation;
67
68
  const calculateScoringOfPrestation = (idPrestationType, prestations, currentIdPrestation) => {
68
69
  var _a, _b, _c, _d, _e;
69
- const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid &&
70
- prestation.signed &&
71
- prestation.terminationList === null &&
72
- prestation.id !== currentIdPrestation);
70
+ const prestationsSignedPaid = prestations.filter((prestation) => {
71
+ var _a, _b;
72
+ return prestation.paid &&
73
+ prestation.signed &&
74
+ (prestation.terminationList === null ||
75
+ ((_b = (_a = prestation.terminationList) === null || _a === void 0 ? void 0 : _a.idReasonTermination) === null || _b === void 0 ? void 0 : _b.includes(ReasonTerminationType_1.ReasonTerminationType.CHANGES_NEW_OFFERS))) &&
76
+ prestation.id !== currentIdPrestation;
77
+ });
73
78
  const currentPrestation = prestations.find((el) => el.idPrestationList === idPrestationType && el.terminationList === null);
74
79
  // SPECIAL CASE:
75
80
  // If current prestation is a software prestation