@silexpert/core 1.3.205-5 → 1.3.205-7
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/api/resources/User.js.map +1 -1
- 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/team/UpdateTeamsForUser.d.ts +1 -1
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js +5 -4
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.js +6 -0
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +2 -1
- 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 +2 -1
- 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 +7 -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/api/resources/User.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/team/UpdateTeamsForUser.d.ts +1 -1
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js +7 -6
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.js +7 -0
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +2 -1
- 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 +2 -1
- 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 +7 -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/api/resources/User.ts +2 -2
- package/ts/types/Enum/UsersHistory.ts +4 -0
- package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +5 -4
- package/ts/types/Interface/api/user/UpdateCoworker.ts +5 -0
- package/ts/types/Interface/api/usersHistory/Create.ts +5 -3
- package/ts/types/Interface/api/usersHistory/Update.ts +5 -1
- package/ts/types/Interface/api/webex/GetWebinarsParams.ts +12 -7
- package/ts/types/Interface/models/IUsersHistory.ts +7 -1
- package/ts/utils/societyApproval.ts +10 -1
|
@@ -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":"UpdateTeamsForUser.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/team/UpdateTeamsForUser.ts"],"names":[],"mappings":"AAIA,qBAAa,kBAAkB;IAI7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,OAAO,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UpdateTeamsForUser.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/team/UpdateTeamsForUser.ts"],"names":[],"mappings":"AAIA,qBAAa,kBAAkB;IAI7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAMlB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CAEvB"}
|
|
@@ -7,13 +7,13 @@ 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 { IsArray, IsBoolean, IsInt,
|
|
10
|
+
import { IsArray, IsBoolean, IsInt, IsOptional } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
13
|
export class UpdateTeamsForUser {
|
|
14
14
|
teamIds;
|
|
15
15
|
replace;
|
|
16
|
-
|
|
16
|
+
oldTeamIds;
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
ApiProperty({ description: 'Array of team IDs to assign to the user', type: [Number] }),
|
|
@@ -29,9 +29,10 @@ __decorate([
|
|
|
29
29
|
__metadata("design:type", Boolean)
|
|
30
30
|
], UpdateTeamsForUser.prototype, "replace", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
ApiPropertyOptional(),
|
|
32
|
+
ApiPropertyOptional({ type: [Number] }),
|
|
33
33
|
IsOptional(),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
IsArray(),
|
|
35
|
+
IsInt({ each: true }),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], UpdateTeamsForUser.prototype, "oldTeamIds", void 0);
|
|
37
38
|
//# sourceMappingURL=UpdateTeamsForUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateTeamsForUser.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/team/UpdateTeamsForUser.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"UpdateTeamsForUser.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/team/UpdateTeamsForUser.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,kBAAkB;IAI7B,OAAO,CAAW;IAMlB,OAAO,CAAW;IAMlB,UAAU,CAAY;CAEvB;AAdC;IAHC,WAAW,CAAC,EAAE,WAAW,EAAE,yCAAyC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IACvF,OAAO,EAAE;IACT,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAMlB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;mDACM;AAMlB;IAJC,mBAAmB,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IACvC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sDACA","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateTeamsForUser {\n @ApiProperty({ description: 'Array of team IDs to assign to the user', type: [Number] })\n @IsArray()\n @IsInt({ each: true })\n teamIds: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n replace?: boolean;\n\n @ApiPropertyOptional({ type: [Number] })\n @IsOptional()\n @IsArray()\n @IsInt({ each: true })\n oldTeamIds?: number[];\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCoworker.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/UpdateCoworker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIrE,qBAAa,eAAgB,YAAW,KAAK;IAI3C,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,SAAS,CAA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f,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAMvB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,WAAW,CAAC,EAAE,IAAI,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IAIH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IAGpC,IAAI,CAAC,EAAE,KAAK,CAAC;IAKb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAKtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAKnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAKzB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B"}
|
|
@@ -34,6 +34,7 @@ export class UpdateCorworker {
|
|
|
34
34
|
idCommercialGrade;
|
|
35
35
|
file;
|
|
36
36
|
idRoles;
|
|
37
|
+
idOldRoles;
|
|
37
38
|
idTeams;
|
|
38
39
|
idUsersBrands;
|
|
39
40
|
idBusinessLines;
|
|
@@ -154,6 +155,12 @@ __decorate([
|
|
|
154
155
|
IsArray(),
|
|
155
156
|
__metadata("design:type", Array)
|
|
156
157
|
], UpdateCorworker.prototype, "idRoles", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
ApiPropertyOptional(),
|
|
160
|
+
IsOptional(),
|
|
161
|
+
IsArray(),
|
|
162
|
+
__metadata("design:type", Array)
|
|
163
|
+
], UpdateCorworker.prototype, "idOldRoles", void 0);
|
|
157
164
|
__decorate([
|
|
158
165
|
ApiPropertyOptional(),
|
|
159
166
|
IsOptional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCoworker.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/UpdateCoworker.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,eAAe,EAAE,UAAU,EAAgB,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,eAAe;IAI1B,UAAU,CAAU;IAKpB,SAAS,CAAU;IAKnB,QAAQ,CAAU;IAKlB,KAAK,CAAU;IAKf,KAAK,CAAU;IAKf,QAAQ,CAAU;IAKlB,QAAQ,CAAU;IAMlB,MAAM,CAAW;IAMjB,SAAS,CAAW;IAMpB,WAAW,CAAW;IAKtB,aAAa,CAAU;IAMvB,UAAU,CAAW;IAKrB,SAAS,CAAQ;IAKjB,WAAW,CAAQ;IAKnB,QAAQ,CAAU;IAKlB,MAAM,CAAc;IAEpB;;OAEG;IAIH,iBAAiB,CAAmB;IAGpC,IAAI,CAAS;IAKb,OAAO,CAAY;IAKnB,OAAO,CAAY;IAKnB,aAAa,CAAY;IAKzB,eAAe,CAAY;CAC5B;
|
|
1
|
+
{"version":3,"file":"UpdateCoworker.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/UpdateCoworker.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,eAAe,EAAE,UA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MjB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAMpB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;oDACU;AAKtB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACY;AAMvB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;mDACS;AAKrB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACG,IAAI;kDAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACK,IAAI;oDAAC;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;iDACO;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,UAAU,CAAC;;+CACC;AAQpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,eAAe,CAAC;;0DACY;AAGpC;IADC,mBAAmB,EAAE;;6CACT;AAKb;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;gDACS;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;mDACY;AAKtB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;gDACS;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;sDACe;AAKzB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;wDACiB","sourcesContent":["import { IsOptional, IsString, IsPhoneNumber, IsNumber, IsBoolean, IsDate, IsArray, IsEnum } from 'class-validator';\nimport { CommercialGrade, EntityType, IUser, TFile } from '../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateCorworker implements IUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idCivility?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n firstname?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsPhoneNumber('FR')\n phone?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n email?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n username?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n password?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n active?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n flexitime?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n longAbsence?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n positionLabel?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n apprentice?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n birthdate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n arrivalDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idOffice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EntityType)\n entity?: EntityType;\n\n /**\n * @deprecated\n */\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CommercialGrade)\n idCommercialGrade?: CommercialGrade;\n\n @ApiPropertyOptional()\n file?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idRoles?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idOldRoles?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idTeams?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idUsersBrands?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idBusinessLines?: number[];\n}\n"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IUsersHistory } from '../../models/IUsersHistory';
|
|
2
|
+
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
3
3
|
export declare class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {
|
|
4
4
|
idUser: number;
|
|
5
5
|
comment?: string;
|
|
6
6
|
actionType: TypeUserHistory;
|
|
7
|
+
metadata?: IMetadata;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -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;
|
|
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,SAAS,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,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,SAAS,CAAC;CACtB"}
|
|
@@ -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,CAAa;CACtB;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;;oDACQ","sourcesContent":["import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IMetadata, 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?: IMetadata;\n}"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IUsersHistory } from '../../models/IUsersHistory';
|
|
2
|
+
import { IMetadata, 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?: IMetadata;
|
|
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;
|
|
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,SAAS,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGtE,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,SAAS,CAAC;CACtB"}
|
|
@@ -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,CAAa;CACtB;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;;oDACQ","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IMetadata, 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?: IMetadata;\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,12 +3,18 @@ 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?: IMetadata | null;
|
|
9
10
|
createdAt?: Date | null;
|
|
10
11
|
updatedAt?: Date | null;
|
|
11
12
|
user?: IUser;
|
|
12
13
|
author?: IUser;
|
|
13
14
|
}
|
|
15
|
+
export interface IMetadata {
|
|
16
|
+
leaveId: number[];
|
|
17
|
+
joinId: number[];
|
|
18
|
+
stayId: number[];
|
|
19
|
+
}
|
|
14
20
|
//# sourceMappingURL=IUsersHistory.d.ts.map
|
|
@@ -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,SAAS,GAAG,IAAI,CAAC;IAC5B,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;AACD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -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?: IMetadata | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n\n // Relations\n user?: IUser;\n author?: IUser;\n}\nexport interface IMetadata {\n leaveId: number[];\n joinId: number[];\n stayId: number[];\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"}
|
|
@@ -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":"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,CA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ACpG,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"]}
|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, 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-7",
|
|
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",
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -55,7 +55,7 @@ export class User extends Resource {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
if (file){
|
|
58
|
+
if (file) {
|
|
59
59
|
formData.append('file', file);
|
|
60
60
|
}
|
|
61
61
|
return this.axios.$post('user/coworker/complete', formData, {
|
|
@@ -93,7 +93,7 @@ export class User extends Resource {
|
|
|
93
93
|
else formData.append(key, `${value}`);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
if (file){
|
|
96
|
+
if (file) {
|
|
97
97
|
formData.append('file', file);
|
|
98
98
|
}
|
|
99
99
|
return this.axios.$put(`/user/coworker/complete/${idUser}`, formData, {
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsArray, IsBoolean, IsInt,
|
|
1
|
+
import { IsArray, IsBoolean, IsInt, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -14,9 +14,10 @@ export class UpdateTeamsForUser {
|
|
|
14
14
|
@ToBoolean()
|
|
15
15
|
replace?: boolean;
|
|
16
16
|
|
|
17
|
-
@ApiPropertyOptional()
|
|
17
|
+
@ApiPropertyOptional({ type: [Number] })
|
|
18
18
|
@IsOptional()
|
|
19
|
-
@
|
|
20
|
-
|
|
19
|
+
@IsArray()
|
|
20
|
+
@IsInt({ each: true })
|
|
21
|
+
oldTeamIds?: number[];
|
|
21
22
|
|
|
22
23
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
3
|
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
4
|
-
import { IUsersHistory } from '../../models/IUsersHistory';
|
|
4
|
+
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
5
5
|
|
|
6
6
|
export class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {
|
|
7
7
|
@ApiProperty()
|
|
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?: IMetadata;
|
|
21
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
3
|
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
4
|
-
import { IUsersHistory } from '../../models/IUsersHistory';
|
|
4
|
+
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {
|
|
@@ -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?: IMetadata;
|
|
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?: IMetadata | null;
|
|
10
11
|
createdAt?: Date | null;
|
|
11
12
|
updatedAt?: Date | null;
|
|
12
13
|
|
|
@@ -15,3 +16,8 @@ export interface IUsersHistory {
|
|
|
15
16
|
user?: IUser;
|
|
16
17
|
author?: IUser;
|
|
17
18
|
}
|
|
19
|
+
export interface IMetadata {
|
|
20
|
+
leaveId: number[];
|
|
21
|
+
joinId: number[];
|
|
22
|
+
stayId: number[];
|
|
23
|
+
}
|