@silexpert/core 1.3.205-4 → 1.3.205-6
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.
- package/dist/cjs/types/Enum/UsersHistory.d.ts +2 -1
- package/dist/cjs/types/Enum/UsersHistory.d.ts.map +1 -1
- package/dist/cjs/types/Enum/UsersHistory.js +3 -0
- package/dist/cjs/types/Enum/UsersHistory.js.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.js +5 -0
- package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +1 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Update.js +5 -0
- package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js +10 -5
- package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts +2 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.js.map +1 -1
- package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/cjs/utils/societyApproval.js +9 -2
- package/dist/cjs/utils/societyApproval.js.map +1 -1
- package/dist/mjs/types/Enum/UsersHistory.d.ts +2 -1
- package/dist/mjs/types/Enum/UsersHistory.d.ts.map +1 -1
- package/dist/mjs/types/Enum/UsersHistory.js +3 -0
- package/dist/mjs/types/Enum/UsersHistory.js.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.js +6 -0
- package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +1 -0
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Update.js +6 -0
- package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js +12 -7
- package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts +2 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.js.map +1 -1
- package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/mjs/utils/societyApproval.js +10 -1
- package/dist/mjs/utils/societyApproval.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/UsersHistory.ts +4 -0
- package/ts/types/Interface/api/usersHistory/Create.ts +4 -2
- package/ts/types/Interface/api/usersHistory/Update.ts +4 -0
- package/ts/types/Interface/api/webex/GetWebinarsParams.ts +12 -7
- package/ts/types/Interface/models/IUsersHistory.ts +2 -1
- package/ts/utils/societyApproval.ts +10 -1
|
@@ -10,7 +10,8 @@ export declare enum TypeUserHistory {
|
|
|
10
10
|
EQUIPMENT_BROKEN = 9,
|
|
11
11
|
EQUIPMENT_RETURN = 10,
|
|
12
12
|
EQUIPMENT_LOST = 11,
|
|
13
|
-
MAIL_SENT_TO_TS = 12
|
|
13
|
+
MAIL_SENT_TO_TS = 12,// Mail envoyé à TS
|
|
14
|
+
TEAM_MOUVEMENT = 13
|
|
14
15
|
}
|
|
15
16
|
export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
|
|
16
17
|
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IAGX,WAAW,IAAI,CAAE,UAAU;IAC3B,WAAW,IAAI,CAAE,UAAU;IAG3B,eAAe,IAAI;IAGnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,gBAAgB,KAAK;IACrB,cAAc,KAAK;IAGnB,eAAe,KAAK;
|
|
1
|
+
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IAGX,WAAW,IAAI,CAAE,UAAU;IAC3B,WAAW,IAAI,CAAE,UAAU;IAG3B,eAAe,IAAI;IAGnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,gBAAgB,KAAK;IACrB,cAAc,KAAK;IAGnB,eAAe,KAAK,CAAE,mBAAmB;IAGzC,cAAc,KAAK;CACpB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAcjE,CAAC"}
|
|
@@ -20,6 +20,8 @@ var TypeUserHistory;
|
|
|
20
20
|
TypeUserHistory[TypeUserHistory["EQUIPMENT_LOST"] = 11] = "EQUIPMENT_LOST";
|
|
21
21
|
// Communication
|
|
22
22
|
TypeUserHistory[TypeUserHistory["MAIL_SENT_TO_TS"] = 12] = "MAIL_SENT_TO_TS";
|
|
23
|
+
//Equipe
|
|
24
|
+
TypeUserHistory[TypeUserHistory["TEAM_MOUVEMENT"] = 13] = "TEAM_MOUVEMENT";
|
|
23
25
|
})(TypeUserHistory || (exports.TypeUserHistory = TypeUserHistory = {}));
|
|
24
26
|
exports.TypeUserHistoryLabels = {
|
|
25
27
|
[TypeUserHistory.CREATE]: 'Création',
|
|
@@ -34,5 +36,6 @@ exports.TypeUserHistoryLabels = {
|
|
|
34
36
|
[TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
|
|
35
37
|
[TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
|
|
36
38
|
[TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
|
|
39
|
+
[TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\'équipe',
|
|
37
40
|
};
|
|
38
41
|
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAyBX;AAzBD,WAAY,eAAe;IACzB,sBAAsB;IACtB,yDAAU,CAAA;IACV,yDAAU,CAAA;IACV,yDAAU,CAAA;IACV,2DAAW,CAAA;IAEX,yCAAyC;IACzC,mEAAe,CAAA;IACf,mEAAe,CAAA;IAEf,WAAW;IACX,2EAAmB,CAAA;IAEnB,mBAAmB;IACnB,6EAAoB,CAAA;IACpB,6EAAoB,CAAA;IACpB,8EAAqB,CAAA;IACrB,0EAAmB,CAAA;IAEnB,gBAAgB;IAChB,4EAAoB,CAAA;IAEpB,QAAQ;IACR,0EAAmB,CAAA;AACrB,CAAC,EAzBW,eAAe,+BAAf,eAAe,QAyB1B;AAEY,QAAA,qBAAqB,GAAoC;IACpE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU;IACpC,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,aAAa;IACvC,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,aAAa;IACvC,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc;IACzC,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,kBAAkB;IACjD,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,kBAAkB;IACjD,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,yBAAyB;IAC5D,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,sBAAsB;IAC1D,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,gBAAgB;IACpD,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,iBAAiB;IACrD,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,gBAAgB;IAClD,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,kBAAkB;IACrD,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,sBAAsB;CACzD,CAAC","sourcesContent":["export enum TypeUserHistory {\n // Cycle de vie Compte\n CREATE = 1,\n UPDATE = 2,\n DELETE = 3,\n RESTORE = 4,\n\n // Validation & Modifications Spécifiques\n INFO_UPDATE = 5, // Info ok\n ROLE_UPDATE = 6, // Role ok\n\n // Sécurité\n PASSWORD_UPDATE = 7,\n\n // Gestion Matériel\n EQUIPMENT_ASSIGN = 8,\n EQUIPMENT_BROKEN = 9,\n EQUIPMENT_RETURN = 10,\n EQUIPMENT_LOST = 11,\n\n // Communication\n MAIL_SENT_TO_TS = 12, // Mail envoyé à TS\n\n //Equipe\n TEAM_MOUVEMENT = 13,\n}\n\nexport const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {\n [TypeUserHistory.CREATE]: 'Création',\n [TypeUserHistory.UPDATE]: 'Mise à jour',\n [TypeUserHistory.DELETE]: 'Suppression',\n [TypeUserHistory.RESTORE]: 'Restauration',\n [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',\n [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',\n [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',\n [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',\n [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',\n [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',\n [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',\n [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',\n [TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\\'équipe',\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IAG3G,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IAG3G,MAAM,EAAE,MAAM,CAAC;IAKf,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,EAAE,eAAe,CAAC;IAI5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -32,4 +32,9 @@ __decorate([
|
|
|
32
32
|
(0, class_validator_1.IsEnum)(UsersHistory_1.TypeUserHistory),
|
|
33
33
|
__metadata("design:type", Number)
|
|
34
34
|
], CreateUsersHistory.prototype, "actionType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, decorators_1.ApiPropertyOptional)({ type: 'object' }),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], CreateUsersHistory.prototype, "metadata", void 0);
|
|
35
40
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6DAAgF;AAChF,6DAA6D;AAG7D,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6DAAgF;AAChF,6DAA6D;AAG7D,MAAa,kBAAkB;CAiB9B;AAjBD,gDAiBC;AAdC;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;kDACO;AAKf;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAIjB;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,8BAAe,CAAC;;sDACI;AAI5B;IAFC,IAAA,gCAAmB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;oDACsB","sourcesContent":["import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\nexport class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiProperty()\n @IsEnum(TypeUserHistory)\n actionType: TypeUserHistory;\n\n @ApiPropertyOptional({ type: 'object' })\n @IsOptional()\n metadata?: Record<string, unknown>;\n}"]}
|
|
@@ -3,5 +3,6 @@ import { IUsersHistory } from '../../models/IUsersHistory';
|
|
|
3
3
|
export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {
|
|
4
4
|
comment?: string;
|
|
5
5
|
actionType?: TypeUserHistory;
|
|
6
|
+
metadata?: Record<string, unknown>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAInG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAInG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;IAI7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -28,4 +28,9 @@ __decorate([
|
|
|
28
28
|
(0, class_validator_1.IsEnum)(UsersHistory_1.TypeUserHistory),
|
|
29
29
|
__metadata("design:type", Number)
|
|
30
30
|
], UpdateUsersHistory.prototype, "actionType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, decorators_1.ApiPropertyOptional)({ type: 'object' }),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], UpdateUsersHistory.prototype, "metadata", void 0);
|
|
31
36
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAmE;AACnE,6DAA6D;AAI7D,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,6DAAmE;AACnE,6DAA6D;AAI7D,MAAa,kBAAkB;CAc9B;AAdD,gDAcC;AAVC;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAKjB;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,8BAAe,CAAC;;sDACK;AAI7B;IAFC,IAAA,gCAAmB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;oDACsB","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\n\nexport class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(TypeUserHistory)\n actionType?: TypeUserHistory;\n\n @ApiPropertyOptional({ type: 'object' })\n @IsOptional()\n metadata?: Record<string, unknown>;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetWebinarsParams.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"GetWebinarsParams.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;IAI5B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,EAAE,CAAC,EAAE,MAAM,CAAC;IAKZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -16,27 +16,32 @@ class GetWebinarsParams {
|
|
|
16
16
|
}
|
|
17
17
|
exports.GetWebinarsParams = GetWebinarsParams;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, utils_1.
|
|
19
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
21
|
(0, class_validator_1.IsString)(),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
23
|
], GetWebinarsParams.prototype, "from", void 0);
|
|
23
24
|
__decorate([
|
|
24
|
-
(0, utils_1.
|
|
25
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
27
|
(0, class_validator_1.IsString)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
29
|
], GetWebinarsParams.prototype, "to", void 0);
|
|
28
30
|
__decorate([
|
|
29
|
-
(0, utils_1.
|
|
31
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
33
|
(0, class_validator_1.IsInt)(),
|
|
31
34
|
__metadata("design:type", Number)
|
|
32
35
|
], GetWebinarsParams.prototype, "limit", void 0);
|
|
33
36
|
__decorate([
|
|
34
|
-
(0, utils_1.
|
|
37
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
39
|
(0, class_validator_1.IsInt)(),
|
|
36
40
|
__metadata("design:type", Number)
|
|
37
41
|
], GetWebinarsParams.prototype, "skip", void 0);
|
|
38
42
|
__decorate([
|
|
39
|
-
(0, utils_1.
|
|
43
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
45
|
(0, class_validator_1.IsString)(),
|
|
41
46
|
__metadata("design:type", String)
|
|
42
47
|
], GetWebinarsParams.prototype, "meetingSeriesId", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetWebinarsParams.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"GetWebinarsParams.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,6CAAwD;AAExD,MAAa,iBAAiB;CAyB7B;AAzBD,8CAyBC;AArBC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACC;AAKZ;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;gDACO;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+CACM;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACc","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class GetWebinarsParams {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n from?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n to?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n skip?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n meetingSeriesId?: string;\n}\n"]}
|
|
@@ -3,9 +3,10 @@ import { TypeUserHistory } from '../../Enum/UsersHistory';
|
|
|
3
3
|
export interface IUsersHistory {
|
|
4
4
|
id?: number;
|
|
5
5
|
idUser: number;
|
|
6
|
-
idAuthor
|
|
6
|
+
idAuthor: number;
|
|
7
7
|
comment?: string | null;
|
|
8
8
|
actionType: TypeUserHistory;
|
|
9
|
+
metadata?: Record<string, unknown> | null;
|
|
9
10
|
createdAt?: Date | null;
|
|
10
11
|
updatedAt?: Date | null;
|
|
11
12
|
user?: IUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUsersHistory.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"IUsersHistory.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAIxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUsersHistory.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { TypeUserHistory } from '../../Enum/UsersHistory';\n\nexport interface IUsersHistory {\n id?: number;\n idUser: number;\n idAuthor
|
|
1
|
+
{"version":3,"file":"IUsersHistory.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { TypeUserHistory } from '../../Enum/UsersHistory';\n\nexport interface IUsersHistory {\n id?: number;\n idUser: number;\n idAuthor: number;\n comment?: string | null;\n actionType: TypeUserHistory;\n metadata?: Record<string, unknown> | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n\n // Relations\n user?: IUser;\n author?: IUser;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAQ9E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,CAE9F;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,GAC7B,6BAA6B,GAAG,SAAS,CAE3C;AAED;;;;;GAKG;AAEH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAQ9E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,CAE9F;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,GAC7B,6BAA6B,GAAG,SAAS,CAE3C;AAED;;;;;GAKG;AAEH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAyEhH"}
|
|
@@ -80,7 +80,14 @@ function buildApprovalTemplateData(existingApproval, style) {
|
|
|
80
80
|
const brand = (0, brands_1.getBrand)();
|
|
81
81
|
return Object.assign(Object.assign({
|
|
82
82
|
// Variables globales
|
|
83
|
-
|
|
83
|
+
rates: {
|
|
84
|
+
flatTax: 0.314,
|
|
85
|
+
flatLevy: 0.128, //prelevement forfaitaire
|
|
86
|
+
csg: 0.106,
|
|
87
|
+
solidarity: 0.075,
|
|
88
|
+
crds: 0.005,
|
|
89
|
+
socialSecurityContributions: 0.186, //= csg + solidarity + crds
|
|
90
|
+
}, style,
|
|
84
91
|
yearInText,
|
|
85
92
|
dayAndMonthInText, date: dayjs().locale('fr').format('DD MMMM YYYY'), companyInformation: {
|
|
86
93
|
rcs: (_d = brand === null || brand === void 0 ? void 0 : brand.companyInformation) === null || _d === void 0 ? void 0 : _d.rcs,
|
|
@@ -107,7 +114,7 @@ function buildApprovalTemplateData(existingApproval, style) {
|
|
|
107
114
|
.format('DD MMMM YYYY'),
|
|
108
115
|
}
|
|
109
116
|
: {})), exercice: Object.assign(Object.assign({}, existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice), { society: Object.assign(Object.assign({}, (_3 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _3 === void 0 ? void 0 : _3.society), { cityOfGreffe: getCityOfGreffeName((_5 = (_4 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _4 === void 0 ? void 0 : _4.society) === null || _5 === void 0 ? void 0 : _5.idCityOfGreffe).toUpperCase(), siren: ((_7 = (_6 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _6 === void 0 ? void 0 : _6.society) === null || _7 === void 0 ? void 0 : _7.siret)
|
|
110
|
-
? (_9 = (_8 = (0, siretValidation_1.siretToSiren)(existingApproval.exercice.society.siret)) === null || _8 === void 0 ? void 0 : _8.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3')) !== null && _9 !== void 0 ? _9 : null
|
|
117
|
+
? ((_9 = (_8 = (0, siretValidation_1.siretToSiren)(existingApproval.exercice.society.siret)) === null || _8 === void 0 ? void 0 : _8.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3')) !== null && _9 !== void 0 ? _9 : null)
|
|
111
118
|
: null }), endDate: dayjs((_10 = existingApproval === null || existingApproval === void 0 ? void 0 : existingApproval.exercice) === null || _10 === void 0 ? void 0 : _10.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase() }) });
|
|
112
119
|
}
|
|
113
120
|
//# sourceMappingURL=societyApproval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":";;AAqBA,4CAEC;AAOD,0EAIC;AASD,0EAOC;AAkBD,4DAMC;AAQD,8DAgEC;AAlJD,uDAAuE;AACvE,mEAKuC;AAEvC,mDAAoD;AACpD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AAE,QAAQ,0CAAE,OAAO,0CAAE,KAAK;oBAC/C,CAAC,CAAC,MAAA,MAAA,IAAA,8BAAY,EAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,0CAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC,mCAAI,IAAI;oBAC7G,CAAC,CAAC,IAAI,KAEV,OAAO,EAAE,KAAK,CAAC,OAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,4CAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE,OAEvG;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(\n +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),\n ).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(\n existingApproval?.generatingDatas?.approvalDate || null,\n )\n .locale('fr')\n .format('MMMM')\n .toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\\d{3})(\\d{3})(\\d{3})/, '$1 $2 $3') ?? null\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLower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1B;YACH,CAAC,CAAC,EAAE,CAAC,GAET,QAAQ,kCACH,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,KAC7B,OAAO,kCACF,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,KACtC,YAAY,EAAE,mBAAmB,CAAC,MAAA,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,cAAc,CAAC,CAAC,WAAW,EAAE,EACpG,KAAK,EAAE,CAAA,MAAA,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,0CAAE,OAAO,0CAAE,KAAK;oBAC/C,CAAC,CAAC,CAAC,MAAA,MAAA,IAAA,8BAAY,EAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,0CAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC,mCACpG,IAAI,CAAC;oBACP,CAAC,CAAC,IAAI,KAEV,OAAO,EAAE,KAAK,CAAC,OAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,4CAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE,OAEvG;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(\n +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),\n ).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(\n existingApproval?.generatingDatas?.approvalDate || null,\n )\n .locale('fr')\n .format('MMMM')\n .toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n rates: {\n flatTax: 0.314,\n flatLevy: 0.128, //prelevement forfaitaire\n csg: 0.106,\n solidarity: 0.075,\n crds: 0.005,\n socialSecurityContributions: 0.186, //= csg + solidarity + crds\n },\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? (siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\\d{3})(\\d{3})(\\d{3})/, '$1 $2 $3') ??\n null)\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
|
@@ -10,7 +10,8 @@ export declare enum TypeUserHistory {
|
|
|
10
10
|
EQUIPMENT_BROKEN = 9,
|
|
11
11
|
EQUIPMENT_RETURN = 10,
|
|
12
12
|
EQUIPMENT_LOST = 11,
|
|
13
|
-
MAIL_SENT_TO_TS = 12
|
|
13
|
+
MAIL_SENT_TO_TS = 12,// Mail envoyé à TS
|
|
14
|
+
TEAM_MOUVEMENT = 13
|
|
14
15
|
}
|
|
15
16
|
export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
|
|
16
17
|
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IAGX,WAAW,IAAI,CAAE,UAAU;IAC3B,WAAW,IAAI,CAAE,UAAU;IAG3B,eAAe,IAAI;IAGnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,gBAAgB,KAAK;IACrB,cAAc,KAAK;IAGnB,eAAe,KAAK;
|
|
1
|
+
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IAGX,WAAW,IAAI,CAAE,UAAU;IAC3B,WAAW,IAAI,CAAE,UAAU;IAG3B,eAAe,IAAI;IAGnB,gBAAgB,IAAI;IACpB,gBAAgB,IAAI;IACpB,gBAAgB,KAAK;IACrB,cAAc,KAAK;IAGnB,eAAe,KAAK,CAAE,mBAAmB;IAGzC,cAAc,KAAK;CACpB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAcjE,CAAC"}
|
|
@@ -17,6 +17,8 @@ export var TypeUserHistory;
|
|
|
17
17
|
TypeUserHistory[TypeUserHistory["EQUIPMENT_LOST"] = 11] = "EQUIPMENT_LOST";
|
|
18
18
|
// Communication
|
|
19
19
|
TypeUserHistory[TypeUserHistory["MAIL_SENT_TO_TS"] = 12] = "MAIL_SENT_TO_TS";
|
|
20
|
+
//Equipe
|
|
21
|
+
TypeUserHistory[TypeUserHistory["TEAM_MOUVEMENT"] = 13] = "TEAM_MOUVEMENT";
|
|
20
22
|
})(TypeUserHistory || (TypeUserHistory = {}));
|
|
21
23
|
export const TypeUserHistoryLabels = {
|
|
22
24
|
[TypeUserHistory.CREATE]: 'Création',
|
|
@@ -31,5 +33,6 @@ export const TypeUserHistoryLabels = {
|
|
|
31
33
|
[TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
|
|
32
34
|
[TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
|
|
33
35
|
[TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
|
|
36
|
+
[TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\'équipe',
|
|
34
37
|
};
|
|
35
38
|
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/types/Enum/UsersHistory.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAyBX;AAzBD,WAAY,eAAe;IACzB,sBAAsB;IACtB,yDAAU,CAAA;IACV,yDAAU,CAAA;IACV,yDAAU,CAAA;IACV,2DAAW,CAAA;IAEX,yCAAyC;IACzC,mEAAe,CAAA;IACf,mEAAe,CAAA;IAEf,WAAW;IACX,2EAAmB,CAAA;IAEnB,mBAAmB;IACnB,6EAAoB,CAAA;IACpB,6EAAoB,CAAA;IACpB,8EAAqB,CAAA;IACrB,0EAAmB,CAAA;IAEnB,gBAAgB;IAChB,4EAAoB,CAAA;IAEpB,QAAQ;IACR,0EAAmB,CAAA;AACrB,CAAC,EAzBW,eAAe,KAAf,eAAe,QAyB1B;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAoC;IACpE,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU;IACpC,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,aAAa;IACvC,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,aAAa;IACvC,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc;IACzC,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,kBAAkB;IACjD,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,kBAAkB;IACjD,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,yBAAyB;IAC5D,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,sBAAsB;IAC1D,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,gBAAgB;IACpD,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAE,iBAAiB;IACrD,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,gBAAgB;IAClD,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,kBAAkB;IACrD,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,sBAAsB;CACzD,CAAC","sourcesContent":["export enum TypeUserHistory {\n // Cycle de vie Compte\n CREATE = 1,\n UPDATE = 2,\n DELETE = 3,\n RESTORE = 4,\n\n // Validation & Modifications Spécifiques\n INFO_UPDATE = 5, // Info ok\n ROLE_UPDATE = 6, // Role ok\n\n // Sécurité\n PASSWORD_UPDATE = 7,\n\n // Gestion Matériel\n EQUIPMENT_ASSIGN = 8,\n EQUIPMENT_BROKEN = 9,\n EQUIPMENT_RETURN = 10,\n EQUIPMENT_LOST = 11,\n\n // Communication\n MAIL_SENT_TO_TS = 12, // Mail envoyé à TS\n\n //Equipe\n TEAM_MOUVEMENT = 13,\n}\n\nexport const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {\n [TypeUserHistory.CREATE]: 'Création',\n [TypeUserHistory.UPDATE]: 'Mise à jour',\n [TypeUserHistory.DELETE]: 'Suppression',\n [TypeUserHistory.RESTORE]: 'Restauration',\n [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',\n [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',\n [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',\n [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',\n [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',\n [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',\n [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',\n [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',\n [TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\\'équipe',\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IAG3G,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;IAG3G,MAAM,EAAE,MAAM,CAAC;IAKf,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,EAAE,eAAe,CAAC;IAI5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -14,6 +14,7 @@ export class CreateUsersHistory {
|
|
|
14
14
|
idUser;
|
|
15
15
|
comment;
|
|
16
16
|
actionType;
|
|
17
|
+
metadata;
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
19
20
|
ApiProperty(),
|
|
@@ -31,4 +32,9 @@ __decorate([
|
|
|
31
32
|
IsEnum(TypeUserHistory),
|
|
32
33
|
__metadata("design:type", Number)
|
|
33
34
|
], CreateUsersHistory.prototype, "actionType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ApiPropertyOptional({ type: 'object' }),
|
|
37
|
+
IsOptional(),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], CreateUsersHistory.prototype, "metadata", void 0);
|
|
34
40
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,MAAM,OAAO,kBAAkB;IAG7B,MAAM,CAAS;
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,MAAM,OAAO,kBAAkB;IAG7B,MAAM,CAAS;IAKf,OAAO,CAAU;IAIjB,UAAU,CAAkB;IAI5B,QAAQ,CAA2B;CACpC;AAdC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;kDACO;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACM;AAIjB;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,eAAe,CAAC;;sDACI;AAI5B;IAFC,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACvC,UAAU,EAAE;;oDACsB","sourcesContent":["import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\nexport class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiProperty()\n @IsEnum(TypeUserHistory)\n actionType: TypeUserHistory;\n\n @ApiPropertyOptional({ type: 'object' })\n @IsOptional()\n metadata?: Record<string, unknown>;\n}"]}
|
|
@@ -3,5 +3,6 @@ import { IUsersHistory } from '../../models/IUsersHistory';
|
|
|
3
3
|
export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {
|
|
4
4
|
comment?: string;
|
|
5
5
|
actionType?: TypeUserHistory;
|
|
6
|
+
metadata?: Record<string, unknown>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAInG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAInG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;IAI7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -13,6 +13,7 @@ import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
|
13
13
|
export class UpdateUsersHistory {
|
|
14
14
|
comment;
|
|
15
15
|
actionType;
|
|
16
|
+
metadata;
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
19
|
ApiPropertyOptional(),
|
|
@@ -26,4 +27,9 @@ __decorate([
|
|
|
26
27
|
IsEnum(TypeUserHistory),
|
|
27
28
|
__metadata("design:type", Number)
|
|
28
29
|
], UpdateUsersHistory.prototype, "actionType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
ApiPropertyOptional({ type: 'object' }),
|
|
32
|
+
IsOptional(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], UpdateUsersHistory.prototype, "metadata", void 0);
|
|
29
35
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7D,MAAM,OAAO,kBAAkB;IAI7B,OAAO,CAAU;IAKjB,UAAU,CAAmB;
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/usersHistory/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7D,MAAM,OAAO,kBAAkB;IAI7B,OAAO,CAAU;IAKjB,UAAU,CAAmB;IAI7B,QAAQ,CAA2B;CACpC;AAVC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,eAAe,CAAC;;sDACK;AAI7B;IAFC,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACvC,UAAU,EAAE;;oDACsB","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\n\nexport class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(TypeUserHistory)\n actionType?: TypeUserHistory;\n\n @ApiPropertyOptional({ type: 'object' })\n @IsOptional()\n metadata?: Record<string, unknown>;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetWebinarsParams.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"GetWebinarsParams.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;IAI5B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,EAAE,CAAC,EAAE,MAAM,CAAC;IAKZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -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 { IsInt, IsString } from 'class-validator';
|
|
11
|
-
import {
|
|
10
|
+
import { IsInt, IsOptional, IsString } from 'class-validator';
|
|
11
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
export class GetWebinarsParams {
|
|
13
13
|
from;
|
|
14
14
|
to;
|
|
@@ -17,27 +17,32 @@ export class GetWebinarsParams {
|
|
|
17
17
|
meetingSeriesId;
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
|
|
20
|
+
ApiPropertyOptional(),
|
|
21
|
+
IsOptional(),
|
|
21
22
|
IsString(),
|
|
22
23
|
__metadata("design:type", String)
|
|
23
24
|
], GetWebinarsParams.prototype, "from", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
|
|
26
|
+
ApiPropertyOptional(),
|
|
27
|
+
IsOptional(),
|
|
26
28
|
IsString(),
|
|
27
29
|
__metadata("design:type", String)
|
|
28
30
|
], GetWebinarsParams.prototype, "to", void 0);
|
|
29
31
|
__decorate([
|
|
30
|
-
|
|
32
|
+
ApiPropertyOptional(),
|
|
33
|
+
IsOptional(),
|
|
31
34
|
IsInt(),
|
|
32
35
|
__metadata("design:type", Number)
|
|
33
36
|
], GetWebinarsParams.prototype, "limit", void 0);
|
|
34
37
|
__decorate([
|
|
35
|
-
|
|
38
|
+
ApiPropertyOptional(),
|
|
39
|
+
IsOptional(),
|
|
36
40
|
IsInt(),
|
|
37
41
|
__metadata("design:type", Number)
|
|
38
42
|
], GetWebinarsParams.prototype, "skip", void 0);
|
|
39
43
|
__decorate([
|
|
40
|
-
|
|
44
|
+
ApiPropertyOptional(),
|
|
45
|
+
IsOptional(),
|
|
41
46
|
IsString(),
|
|
42
47
|
__metadata("design:type", String)
|
|
43
48
|
], GetWebinarsParams.prototype, "meetingSeriesId", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetWebinarsParams.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetWebinarsParams.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/webex/GetWebinarsParams.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,iBAAiB;IAI5B,IAAI,CAAU;IAKd,EAAE,CAAU;IAKZ,KAAK,CAAU;IAKf,IAAI,CAAU;IAKd,eAAe,CAAU;CAC1B;AArBC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+CACG;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACC;AAKZ;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;gDACO;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;+CACM;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;0DACc","sourcesContent":["import { IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class GetWebinarsParams {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n from?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n to?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n skip?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n meetingSeriesId?: string;\n}\n"]}
|
|
@@ -3,9 +3,10 @@ import { TypeUserHistory } from '../../Enum/UsersHistory';
|
|
|
3
3
|
export interface IUsersHistory {
|
|
4
4
|
id?: number;
|
|
5
5
|
idUser: number;
|
|
6
|
-
idAuthor
|
|
6
|
+
idAuthor: number;
|
|
7
7
|
comment?: string | null;
|
|
8
8
|
actionType: TypeUserHistory;
|
|
9
|
+
metadata?: Record<string, unknown> | null;
|
|
9
10
|
createdAt?: Date | null;
|
|
10
11
|
updatedAt?: Date | null;
|
|
11
12
|
user?: IUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUsersHistory.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"IUsersHistory.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAIxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IUsersHistory.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { TypeUserHistory } from '../../Enum/UsersHistory';\n\nexport interface IUsersHistory {\n id?: number;\n idUser: number;\n idAuthor
|
|
1
|
+
{"version":3,"file":"IUsersHistory.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IUsersHistory.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { TypeUserHistory } from '../../Enum/UsersHistory';\n\nexport interface IUsersHistory {\n id?: number;\n idUser: number;\n idAuthor: number;\n comment?: string | null;\n actionType: TypeUserHistory;\n metadata?: Record<string, unknown> | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n\n // Relations\n user?: IUser;\n author?: IUser;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE7B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,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C,MAAM,GAAG,SAAS,CAIpB;AAYD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,+BAA+B,GAAG,SAAS,CAG7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAyEhH"}
|
|
@@ -70,6 +70,14 @@ export function buildApprovalTemplateData(existingApproval, style) {
|
|
|
70
70
|
const brand = getBrand();
|
|
71
71
|
return {
|
|
72
72
|
// Variables globales
|
|
73
|
+
rates: {
|
|
74
|
+
flatTax: 0.314,
|
|
75
|
+
flatLevy: 0.128, //prelevement forfaitaire
|
|
76
|
+
csg: 0.106,
|
|
77
|
+
solidarity: 0.075,
|
|
78
|
+
crds: 0.005,
|
|
79
|
+
socialSecurityContributions: 0.186, //= csg + solidarity + crds
|
|
80
|
+
},
|
|
73
81
|
style,
|
|
74
82
|
yearInText,
|
|
75
83
|
dayAndMonthInText,
|
|
@@ -113,7 +121,8 @@ export function buildApprovalTemplateData(existingApproval, style) {
|
|
|
113
121
|
...existingApproval?.exercice?.society,
|
|
114
122
|
cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
|
|
115
123
|
siren: existingApproval?.exercice?.society?.siret
|
|
116
|
-
? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ??
|
|
124
|
+
? (siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ??
|
|
125
|
+
null)
|
|
117
126
|
: null,
|
|
118
127
|
},
|
|
119
128
|
endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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C,IAAI,CAAC;yBACZ,MAAM,CAAC,cAAc,CAAC;yBACtB,WAAW,EAAE;iBACjB;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,gBAAgB,EAAE,eAAe,EAAE,4BAA4B;gBACjE,CAAC,CAAC;oBACE,4BAA4B,EAAE,KAAK,CAAC,gBAAgB,EAAE,eAAe,EAAE,4BAA4B,CAAC;yBACjG,MAAM,CAAC,IAAI,CAAC;yBACZ,MAAM,CAAC,cAAc,CAAC;iBAC1B;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;QACD,QAAQ,EAAE;YACR,GAAG,gBAAgB,EAAE,QAAQ;YAC7B,OAAO,EAAE;gBACP,GAAG,gBAAgB,EAAE,QAAQ,EAAE,OAAO;gBACtC,YAAY,EAAE,mBAAmB,CAAC,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,WAAW,EAAE;gBACpG,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK;oBAC/C,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC,IAAI,IAAI;oBAC7G,CAAC,CAAC,IAAI;aACT;YACD,OAAO,EAAE,KAAK,CAAC,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE;SACtG;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(\n +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),\n ).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(\n existingApproval?.generatingDatas?.approvalDate || null,\n )\n .locale('fr')\n .format('MMMM')\n .toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\\d{3})(\\d{3})(\\d{3})/, '$1 $2 $3') ?? null\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAGL,mCAAmC,GAEpC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAA8B,EAAE,WAAmB,EAAE;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAA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gB,EAAE,QAAQ,EAAE,OAAO;gBACtC,YAAY,EAAE,mBAAmB,CAAC,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,WAAW,EAAE;gBACpG,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK;oBAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,CAAC;wBACpG,IAAI,CAAC;oBACP,CAAC,CAAC,IAAI;aACT;YACD,OAAO,EAAE,KAAK,CAAC,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE;SACtG;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { LegalForm, LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n SocietyApprovalDocumentTemplate,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\nimport { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';\nimport { siretToSiren } from './siretValidation';\n\n/**\n * Récupère le nom de la forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param fallback - Valeur par défaut si non trouvée\n * @returns Le nom de la forme juridique\n */\nexport function getLegalFormName(idLegalForm: LegalFormTypeEnum, fallback: string = ''): string {\n return Object.values(LegalForm).find((lf) => lf.id === idLegalForm)?.name ?? fallback;\n}\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\n//@deprecated use getApprovalDocumentInfos instead\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Récupère le texte de la ville du greffe\n * @param idCityOfGreffe - L'identifiant de la ville du greffe\n * @returns Le texte de la ville ou une chaîne vide\n */\nfunction getCityOfGreffeName(idCityOfGreffe: number | null | undefined): string {\n if (!idCityOfGreffe) return '';\n return CityOfGreffeDetail.find((c) => c.id === idCityOfGreffe)?.text ?? '';\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentInfos(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): SocietyApprovalDocumentTemplate | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(\n +dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('YYYY'),\n ).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs(existingApproval?.generatingDatas?.approvalDate || null).format('D'))} ${dayjs(\n existingApproval?.generatingDatas?.approvalDate || null,\n )\n .locale('fr')\n .format('MMMM')\n .toLowerCase()}`;\n const brand = getBrand();\n return {\n // Variables globales\n rates: {\n flatTax: 0.314,\n flatLevy: 0.128, //prelevement forfaitaire\n csg: 0.106,\n solidarity: 0.075,\n crds: 0.005,\n socialSecurityContributions: 0.186, //= csg + solidarity + crds\n },\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: brand?.companyInformation?.rcs,\n nomRaisonSociale: brand?.companyInformation?.nomRaisonSociale,\n city: brand?.companyInformation?.city,\n postalAddress: brand?.companyInformation?.postalAddress,\n montantCapital: brand?.companyInformation?.montantCapital,\n statut: brand?.companyInformation?.statut,\n ECOrderCity: brand?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate\n ? {\n approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)\n .locale('fr')\n .format('DD MMMM YYYY'),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n society: {\n ...existingApproval?.exercice?.society,\n cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),\n siren: existingApproval?.exercice?.society?.siret\n ? (siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\\d{3})(\\d{3})(\\d{3})/, '$1 $2 $3') ??\n null)\n : null,\n },\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.205-
|
|
3
|
+
"version": "1.3.205-6",
|
|
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",
|
|
@@ -20,6 +20,9 @@ export enum TypeUserHistory {
|
|
|
20
20
|
|
|
21
21
|
// Communication
|
|
22
22
|
MAIL_SENT_TO_TS = 12, // Mail envoyé à TS
|
|
23
|
+
|
|
24
|
+
//Equipe
|
|
25
|
+
TEAM_MOUVEMENT = 13,
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {
|
|
@@ -35,4 +38,5 @@ export const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {
|
|
|
35
38
|
[TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
|
|
36
39
|
[TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
|
|
37
40
|
[TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
|
|
41
|
+
[TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\'équipe',
|
|
38
42
|
};
|
|
@@ -8,8 +8,6 @@ export class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt
|
|
|
8
8
|
@IsInt()
|
|
9
9
|
idUser: number;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
11
|
@ApiPropertyOptional()
|
|
14
12
|
@IsOptional()
|
|
15
13
|
@IsString()
|
|
@@ -18,4 +16,8 @@ export class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt
|
|
|
18
16
|
@ApiProperty()
|
|
19
17
|
@IsEnum(TypeUserHistory)
|
|
20
18
|
actionType: TypeUserHistory;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional({ type: 'object' })
|
|
21
|
+
@IsOptional()
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
21
23
|
}
|
|
@@ -14,4 +14,8 @@ export class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'i
|
|
|
14
14
|
@IsOptional()
|
|
15
15
|
@IsEnum(TypeUserHistory)
|
|
16
16
|
actionType?: TypeUserHistory;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional({ type: 'object' })
|
|
19
|
+
@IsOptional()
|
|
20
|
+
metadata?: Record<string, unknown>;
|
|
17
21
|
}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { IsInt, IsString } from 'class-validator';
|
|
2
|
-
import {
|
|
1
|
+
import { IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
|
|
4
4
|
export class GetWebinarsParams {
|
|
5
|
-
@
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
6
7
|
@IsString()
|
|
7
8
|
from?: string;
|
|
8
9
|
|
|
9
|
-
@
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
10
12
|
@IsString()
|
|
11
13
|
to?: string;
|
|
12
14
|
|
|
13
|
-
@
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
14
17
|
@IsInt()
|
|
15
18
|
limit?: number;
|
|
16
19
|
|
|
17
|
-
@
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
18
22
|
@IsInt()
|
|
19
23
|
skip?: number;
|
|
20
24
|
|
|
21
|
-
@
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsOptional()
|
|
22
27
|
@IsString()
|
|
23
28
|
meetingSeriesId?: string;
|
|
24
29
|
}
|
|
@@ -4,9 +4,10 @@ import { TypeUserHistory } from '../../Enum/UsersHistory';
|
|
|
4
4
|
export interface IUsersHistory {
|
|
5
5
|
id?: number;
|
|
6
6
|
idUser: number;
|
|
7
|
-
idAuthor
|
|
7
|
+
idAuthor: number;
|
|
8
8
|
comment?: string | null;
|
|
9
9
|
actionType: TypeUserHistory;
|
|
10
|
+
metadata?: Record<string, unknown> | null;
|
|
10
11
|
createdAt?: Date | null;
|
|
11
12
|
updatedAt?: Date | null;
|
|
12
13
|
|
|
@@ -93,6 +93,14 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
|
|
|
93
93
|
const brand = getBrand();
|
|
94
94
|
return {
|
|
95
95
|
// Variables globales
|
|
96
|
+
rates: {
|
|
97
|
+
flatTax: 0.314,
|
|
98
|
+
flatLevy: 0.128, //prelevement forfaitaire
|
|
99
|
+
csg: 0.106,
|
|
100
|
+
solidarity: 0.075,
|
|
101
|
+
crds: 0.005,
|
|
102
|
+
socialSecurityContributions: 0.186, //= csg + solidarity + crds
|
|
103
|
+
},
|
|
96
104
|
style,
|
|
97
105
|
yearInText,
|
|
98
106
|
dayAndMonthInText,
|
|
@@ -138,7 +146,8 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
|
|
|
138
146
|
...existingApproval?.exercice?.society,
|
|
139
147
|
cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
|
|
140
148
|
siren: existingApproval?.exercice?.society?.siret
|
|
141
|
-
? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ??
|
|
149
|
+
? (siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ??
|
|
150
|
+
null)
|
|
142
151
|
: null,
|
|
143
152
|
},
|
|
144
153
|
endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
|