@silexpert/core 1.3.205-7 → 1.3.205
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/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.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 +4 -5
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts +0 -1
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.js +0 -6
- package/dist/cjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -4
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -4
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.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 +6 -7
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts +0 -1
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.js +0 -7
- package/dist/mjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -4
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -4
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +2 -2
- package/ts/api/resources.ts +0 -2
- package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +4 -5
- package/ts/types/Interface/api/user/UpdateCoworker.ts +0 -5
- package/ts/types/index.ts +0 -5
- package/dist/cjs/api/resources/UsersHistory.d.ts +0 -11
- package/dist/cjs/api/resources/UsersHistory.d.ts.map +0 -1
- package/dist/cjs/api/resources/UsersHistory.js +0 -26
- package/dist/cjs/api/resources/UsersHistory.js.map +0 -1
- package/dist/cjs/types/Enum/UsersHistory.d.ts +0 -17
- package/dist/cjs/types/Enum/UsersHistory.d.ts.map +0 -1
- package/dist/cjs/types/Enum/UsersHistory.js +0 -41
- package/dist/cjs/types/Enum/UsersHistory.js.map +0 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +0 -9
- package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/usersHistory/Create.js +0 -40
- package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +0 -8
- package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/usersHistory/Update.js +0 -36
- package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +0 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts +0 -20
- package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IUsersHistory.js +0 -3
- package/dist/cjs/types/Interface/models/IUsersHistory.js.map +0 -1
- package/dist/mjs/api/resources/UsersHistory.d.ts +0 -11
- package/dist/mjs/api/resources/UsersHistory.d.ts.map +0 -1
- package/dist/mjs/api/resources/UsersHistory.js +0 -28
- package/dist/mjs/api/resources/UsersHistory.js.map +0 -1
- package/dist/mjs/types/Enum/UsersHistory.d.ts +0 -17
- package/dist/mjs/types/Enum/UsersHistory.d.ts.map +0 -1
- package/dist/mjs/types/Enum/UsersHistory.js +0 -38
- package/dist/mjs/types/Enum/UsersHistory.js.map +0 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +0 -9
- package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/usersHistory/Create.js +0 -40
- package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +0 -8
- package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/usersHistory/Update.js +0 -35
- package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +0 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts +0 -20
- package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IUsersHistory.js +0 -2
- package/dist/mjs/types/Interface/models/IUsersHistory.js.map +0 -1
- package/ts/api/resources/UsersHistory.ts +0 -35
- package/ts/types/Enum/UsersHistory.ts +0 -42
- package/ts/types/Interface/api/usersHistory/Create.ts +0 -23
- package/ts/types/Interface/api/usersHistory/Update.ts +0 -21
- package/ts/types/Interface/models/IUsersHistory.ts +0 -23
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, {
|
package/ts/api/resources.ts
CHANGED
|
@@ -190,7 +190,6 @@ import { InformationRequest } from './resources/InformationRequest';
|
|
|
190
190
|
import { AutomaticRegistration } from './resources/AutomaticRegistration';
|
|
191
191
|
import { LoginApproval } from './resources/LoginApproval';
|
|
192
192
|
import { SocietyApproval } from './resources/SocietyApproval';
|
|
193
|
-
import { UsersHistory } from './resources/UsersHistory';
|
|
194
193
|
import { Docoon } from './resources/Docoon';
|
|
195
194
|
|
|
196
195
|
export const resources = {
|
|
@@ -386,6 +385,5 @@ export const resources = {
|
|
|
386
385
|
automaticRegistration: AutomaticRegistration,
|
|
387
386
|
loginApproval: LoginApproval,
|
|
388
387
|
societyApproval: SocietyApproval,
|
|
389
|
-
usersHistory: UsersHistory,
|
|
390
388
|
docoon: Docoon,
|
|
391
389
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsArray, IsBoolean, IsInt, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -14,10 +14,9 @@ export class UpdateTeamsForUser {
|
|
|
14
14
|
@ToBoolean()
|
|
15
15
|
replace?: boolean;
|
|
16
16
|
|
|
17
|
-
@ApiPropertyOptional(
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
18
|
@IsOptional()
|
|
19
|
-
@
|
|
20
|
-
|
|
21
|
-
oldTeamIds?: number[];
|
|
19
|
+
@IsNumber()
|
|
20
|
+
oldTeamId?: number;
|
|
22
21
|
|
|
23
22
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -329,7 +329,6 @@ export * from './Interface/models/IDocumentRequest';
|
|
|
329
329
|
export * from './Interface/models/IInformationRequest';
|
|
330
330
|
export * from './Interface/models/IRevenueMovement';
|
|
331
331
|
export * from './Interface/models/IRevenueSnapshot';
|
|
332
|
-
export * from './Interface/models/IUsersHistory';
|
|
333
332
|
|
|
334
333
|
// Schemas
|
|
335
334
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -569,7 +568,6 @@ export * from './Enum/InformationRequestType';
|
|
|
569
568
|
export * from './Enum/InformationRequestState';
|
|
570
569
|
export * from './Enum/Revenue';
|
|
571
570
|
export * from './Enum/EbookIntention';
|
|
572
|
-
export * from './Enum/UsersHistory';
|
|
573
571
|
|
|
574
572
|
// Interfaces API
|
|
575
573
|
export * from './Interface/api/authentification/AuthenticationResponse';
|
|
@@ -794,9 +792,6 @@ export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHis
|
|
|
794
792
|
export * from './Interface/api/userSpecialDay/BodyUserSpecialDay';
|
|
795
793
|
export * from './Interface/api/userSpecialDay/QueryUserSpecialDay';
|
|
796
794
|
export * from './Interface/api/oldExportInfo/OldExpertInfos';
|
|
797
|
-
export * from './Interface/api/usersHistory/Create';
|
|
798
|
-
export * from './Interface/api/usersHistory/Update';
|
|
799
|
-
|
|
800
795
|
|
|
801
796
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
802
797
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';
|
|
3
|
-
export declare class UsersHistory extends Resource {
|
|
4
|
-
createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory>;
|
|
5
|
-
getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]>;
|
|
6
|
-
getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory>;
|
|
7
|
-
getUserHistoryByUserID(idUser: number, signal?: AbortSignal): Promise<IUsersHistory[]>;
|
|
8
|
-
updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory>;
|
|
9
|
-
deleteUserHistory(id: number): Promise<boolean>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/UsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEpF,qBAAa,YAAa,SAAQ,QAAQ;IACxC,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAInE,iBAAiB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMjE,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAM5E,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMtF,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAI/E,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIhD"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsersHistory = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class UsersHistory extends Resource_1.Resource {
|
|
6
|
-
createUserHistory(body) {
|
|
7
|
-
return this.axios.$post('usersHistory', body);
|
|
8
|
-
}
|
|
9
|
-
getAllUserHistory(signal) {
|
|
10
|
-
return this.axios.$get('usersHistory', Object.assign({}, signal && { signal }));
|
|
11
|
-
}
|
|
12
|
-
getUserHistoryById(id, signal) {
|
|
13
|
-
return this.axios.$get(`usersHistory/${id}`, Object.assign({}, signal && { signal }));
|
|
14
|
-
}
|
|
15
|
-
getUserHistoryByUserID(idUser, signal) {
|
|
16
|
-
return this.axios.$get(`usersHistory/user/${idUser}`, Object.assign({}, signal && { signal }));
|
|
17
|
-
}
|
|
18
|
-
updateUserHistory(id, body) {
|
|
19
|
-
return this.axios.$put(`usersHistory/${id}`, body);
|
|
20
|
-
}
|
|
21
|
-
deleteUserHistory(id) {
|
|
22
|
-
return this.axios.$delete(`usersHistory/${id}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.UsersHistory = UsersHistory;
|
|
26
|
-
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/api/resources/UsersHistory.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,YAAa,SAAQ,mBAAQ;IACxC,iBAAiB,CAAC,IAAwB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,MAAoB;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,oBAChC,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,EAAU,EAAE,MAAoB;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,oBACtC,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,sBAAsB,CAAC,MAAc,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,MAAM,EAAE,oBAC/C,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,IAAwB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;CAEF;AA/BD,oCA+BC","sourcesContent":["import { Resource } from '../Resource';\nimport { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';\n\nexport class UsersHistory extends Resource {\n createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory> {\n return this.axios.$post('usersHistory', body);\n }\n\n getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get('usersHistory', {\n ...signal && { signal }\n });\n }\n\n getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory> {\n return this.axios.$get(`usersHistory/${id}`, {\n ...signal && { signal }\n });\n }\n\n getUserHistoryByUserID(idUser: number, signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get(`usersHistory/user/${idUser}`, {\n ...signal && { signal }\n });\n }\n\n updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory> {\n return this.axios.$put(`usersHistory/${id}`, body);\n }\n\n deleteUserHistory(id: number): Promise<boolean> {\n return this.axios.$delete(`usersHistory/${id}`);\n }\n\n}"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum TypeUserHistory {
|
|
2
|
-
CREATE = 1,
|
|
3
|
-
UPDATE = 2,
|
|
4
|
-
DELETE = 3,
|
|
5
|
-
RESTORE = 4,
|
|
6
|
-
INFO_UPDATE = 5,// Info ok
|
|
7
|
-
ROLE_UPDATE = 6,// Role ok
|
|
8
|
-
PASSWORD_UPDATE = 7,
|
|
9
|
-
EQUIPMENT_ASSIGN = 8,
|
|
10
|
-
EQUIPMENT_BROKEN = 9,
|
|
11
|
-
EQUIPMENT_RETURN = 10,
|
|
12
|
-
EQUIPMENT_LOST = 11,
|
|
13
|
-
MAIL_SENT_TO_TS = 12,// Mail envoyé à TS
|
|
14
|
-
TEAM_MOUVEMENT = 13
|
|
15
|
-
}
|
|
16
|
-
export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
|
|
17
|
-
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeUserHistoryLabels = exports.TypeUserHistory = void 0;
|
|
4
|
-
var TypeUserHistory;
|
|
5
|
-
(function (TypeUserHistory) {
|
|
6
|
-
// Cycle de vie Compte
|
|
7
|
-
TypeUserHistory[TypeUserHistory["CREATE"] = 1] = "CREATE";
|
|
8
|
-
TypeUserHistory[TypeUserHistory["UPDATE"] = 2] = "UPDATE";
|
|
9
|
-
TypeUserHistory[TypeUserHistory["DELETE"] = 3] = "DELETE";
|
|
10
|
-
TypeUserHistory[TypeUserHistory["RESTORE"] = 4] = "RESTORE";
|
|
11
|
-
// Validation & Modifications Spécifiques
|
|
12
|
-
TypeUserHistory[TypeUserHistory["INFO_UPDATE"] = 5] = "INFO_UPDATE";
|
|
13
|
-
TypeUserHistory[TypeUserHistory["ROLE_UPDATE"] = 6] = "ROLE_UPDATE";
|
|
14
|
-
// Sécurité
|
|
15
|
-
TypeUserHistory[TypeUserHistory["PASSWORD_UPDATE"] = 7] = "PASSWORD_UPDATE";
|
|
16
|
-
// Gestion Matériel
|
|
17
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_ASSIGN"] = 8] = "EQUIPMENT_ASSIGN";
|
|
18
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_BROKEN"] = 9] = "EQUIPMENT_BROKEN";
|
|
19
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_RETURN"] = 10] = "EQUIPMENT_RETURN";
|
|
20
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_LOST"] = 11] = "EQUIPMENT_LOST";
|
|
21
|
-
// Communication
|
|
22
|
-
TypeUserHistory[TypeUserHistory["MAIL_SENT_TO_TS"] = 12] = "MAIL_SENT_TO_TS";
|
|
23
|
-
//Equipe
|
|
24
|
-
TypeUserHistory[TypeUserHistory["TEAM_MOUVEMENT"] = 13] = "TEAM_MOUVEMENT";
|
|
25
|
-
})(TypeUserHistory || (exports.TypeUserHistory = TypeUserHistory = {}));
|
|
26
|
-
exports.TypeUserHistoryLabels = {
|
|
27
|
-
[TypeUserHistory.CREATE]: 'Création',
|
|
28
|
-
[TypeUserHistory.UPDATE]: 'Mise à jour',
|
|
29
|
-
[TypeUserHistory.DELETE]: 'Suppression',
|
|
30
|
-
[TypeUserHistory.RESTORE]: 'Restauration',
|
|
31
|
-
[TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
|
|
32
|
-
[TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
|
|
33
|
-
[TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
|
|
34
|
-
[TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
|
|
35
|
-
[TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
|
|
36
|
-
[TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
|
|
37
|
-
[TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
|
|
38
|
-
[TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
|
|
39
|
-
[TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\'équipe',
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
3
|
-
export declare class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {
|
|
4
|
-
idUser: number;
|
|
5
|
-
comment?: string;
|
|
6
|
-
actionType: TypeUserHistory;
|
|
7
|
-
metadata?: IMetadata;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateUsersHistory = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const decorators_1 = require("../../../../utils/decorators");
|
|
15
|
-
const UsersHistory_1 = require("../../../Enum/UsersHistory");
|
|
16
|
-
class CreateUsersHistory {
|
|
17
|
-
}
|
|
18
|
-
exports.CreateUsersHistory = CreateUsersHistory;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, decorators_1.ApiProperty)(),
|
|
21
|
-
(0, class_validator_1.IsInt)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], CreateUsersHistory.prototype, "idUser", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, decorators_1.ApiPropertyOptional)(),
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CreateUsersHistory.prototype, "comment", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, decorators_1.ApiProperty)(),
|
|
32
|
-
(0, class_validator_1.IsEnum)(UsersHistory_1.TypeUserHistory),
|
|
33
|
-
__metadata("design:type", Number)
|
|
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);
|
|
40
|
-
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;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,8 +0,0 @@
|
|
|
1
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
3
|
-
export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {
|
|
4
|
-
comment?: string;
|
|
5
|
-
actionType?: TypeUserHistory;
|
|
6
|
-
metadata?: IMetadata;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateUsersHistory = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const decorators_1 = require("../../../../utils/decorators");
|
|
15
|
-
const UsersHistory_1 = require("../../../Enum/UsersHistory");
|
|
16
|
-
class UpdateUsersHistory {
|
|
17
|
-
}
|
|
18
|
-
exports.UpdateUsersHistory = UpdateUsersHistory;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, decorators_1.ApiPropertyOptional)(),
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], UpdateUsersHistory.prototype, "comment", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, decorators_1.ApiPropertyOptional)(),
|
|
27
|
-
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
(0, class_validator_1.IsEnum)(UsersHistory_1.TypeUserHistory),
|
|
29
|
-
__metadata("design:type", Number)
|
|
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);
|
|
36
|
-
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;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,20 +0,0 @@
|
|
|
1
|
-
import { IUser } from './IUser';
|
|
2
|
-
import { TypeUserHistory } from '../../Enum/UsersHistory';
|
|
3
|
-
export interface IUsersHistory {
|
|
4
|
-
id?: number;
|
|
5
|
-
idUser: number;
|
|
6
|
-
idAuthor: number;
|
|
7
|
-
comment?: string | null;
|
|
8
|
-
actionType: TypeUserHistory;
|
|
9
|
-
metadata?: IMetadata | null;
|
|
10
|
-
createdAt?: Date | null;
|
|
11
|
-
updatedAt?: Date | null;
|
|
12
|
-
user?: IUser;
|
|
13
|
-
author?: IUser;
|
|
14
|
-
}
|
|
15
|
-
export interface IMetadata {
|
|
16
|
-
leaveId: number[];
|
|
17
|
-
joinId: number[];
|
|
18
|
-
stayId: number[];
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=IUsersHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';
|
|
3
|
-
export declare class UsersHistory extends Resource {
|
|
4
|
-
createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory>;
|
|
5
|
-
getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]>;
|
|
6
|
-
getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory>;
|
|
7
|
-
getUserHistoryByUserID(idUser: number, signal?: AbortSignal): Promise<IUsersHistory[]>;
|
|
8
|
-
updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory>;
|
|
9
|
-
deleteUserHistory(id: number): Promise<boolean>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/UsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEpF,qBAAa,YAAa,SAAQ,QAAQ;IACxC,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAInE,iBAAiB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMjE,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAM5E,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMtF,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAI/E,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAIhD"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class UsersHistory extends Resource {
|
|
3
|
-
createUserHistory(body) {
|
|
4
|
-
return this.axios.$post('usersHistory', body);
|
|
5
|
-
}
|
|
6
|
-
getAllUserHistory(signal) {
|
|
7
|
-
return this.axios.$get('usersHistory', {
|
|
8
|
-
...signal && { signal }
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
getUserHistoryById(id, signal) {
|
|
12
|
-
return this.axios.$get(`usersHistory/${id}`, {
|
|
13
|
-
...signal && { signal }
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
getUserHistoryByUserID(idUser, signal) {
|
|
17
|
-
return this.axios.$get(`usersHistory/user/${idUser}`, {
|
|
18
|
-
...signal && { signal }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
updateUserHistory(id, body) {
|
|
22
|
-
return this.axios.$put(`usersHistory/${id}`, body);
|
|
23
|
-
}
|
|
24
|
-
deleteUserHistory(id) {
|
|
25
|
-
return this.axios.$delete(`usersHistory/${id}`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsersHistory.js","sourceRoot":"","sources":["../../../../ts/api/resources/UsersHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,iBAAiB,CAAC,IAAwB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,MAAoB;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,EAAU,EAAE,MAAoB;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,EAAE;YAC3C,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,sBAAsB,CAAC,MAAc,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,MAAM,EAAE,EAAE;YACpD,GAAG,MAAM,IAAI,EAAE,MAAM,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,IAAwB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,iBAAiB,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;CAEF","sourcesContent":["import { Resource } from '../Resource';\nimport { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';\n\nexport class UsersHistory extends Resource {\n createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory> {\n return this.axios.$post('usersHistory', body);\n }\n\n getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get('usersHistory', {\n ...signal && { signal }\n });\n }\n\n getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory> {\n return this.axios.$get(`usersHistory/${id}`, {\n ...signal && { signal }\n });\n }\n\n getUserHistoryByUserID(idUser: number, signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get(`usersHistory/user/${idUser}`, {\n ...signal && { signal }\n });\n }\n\n updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory> {\n return this.axios.$put(`usersHistory/${id}`, body);\n }\n\n deleteUserHistory(id: number): Promise<boolean> {\n return this.axios.$delete(`usersHistory/${id}`);\n }\n\n}"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum TypeUserHistory {
|
|
2
|
-
CREATE = 1,
|
|
3
|
-
UPDATE = 2,
|
|
4
|
-
DELETE = 3,
|
|
5
|
-
RESTORE = 4,
|
|
6
|
-
INFO_UPDATE = 5,// Info ok
|
|
7
|
-
ROLE_UPDATE = 6,// Role ok
|
|
8
|
-
PASSWORD_UPDATE = 7,
|
|
9
|
-
EQUIPMENT_ASSIGN = 8,
|
|
10
|
-
EQUIPMENT_BROKEN = 9,
|
|
11
|
-
EQUIPMENT_RETURN = 10,
|
|
12
|
-
EQUIPMENT_LOST = 11,
|
|
13
|
-
MAIL_SENT_TO_TS = 12,// Mail envoyé à TS
|
|
14
|
-
TEAM_MOUVEMENT = 13
|
|
15
|
-
}
|
|
16
|
-
export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
|
|
17
|
-
//# sourceMappingURL=UsersHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export var TypeUserHistory;
|
|
2
|
-
(function (TypeUserHistory) {
|
|
3
|
-
// Cycle de vie Compte
|
|
4
|
-
TypeUserHistory[TypeUserHistory["CREATE"] = 1] = "CREATE";
|
|
5
|
-
TypeUserHistory[TypeUserHistory["UPDATE"] = 2] = "UPDATE";
|
|
6
|
-
TypeUserHistory[TypeUserHistory["DELETE"] = 3] = "DELETE";
|
|
7
|
-
TypeUserHistory[TypeUserHistory["RESTORE"] = 4] = "RESTORE";
|
|
8
|
-
// Validation & Modifications Spécifiques
|
|
9
|
-
TypeUserHistory[TypeUserHistory["INFO_UPDATE"] = 5] = "INFO_UPDATE";
|
|
10
|
-
TypeUserHistory[TypeUserHistory["ROLE_UPDATE"] = 6] = "ROLE_UPDATE";
|
|
11
|
-
// Sécurité
|
|
12
|
-
TypeUserHistory[TypeUserHistory["PASSWORD_UPDATE"] = 7] = "PASSWORD_UPDATE";
|
|
13
|
-
// Gestion Matériel
|
|
14
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_ASSIGN"] = 8] = "EQUIPMENT_ASSIGN";
|
|
15
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_BROKEN"] = 9] = "EQUIPMENT_BROKEN";
|
|
16
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_RETURN"] = 10] = "EQUIPMENT_RETURN";
|
|
17
|
-
TypeUserHistory[TypeUserHistory["EQUIPMENT_LOST"] = 11] = "EQUIPMENT_LOST";
|
|
18
|
-
// Communication
|
|
19
|
-
TypeUserHistory[TypeUserHistory["MAIL_SENT_TO_TS"] = 12] = "MAIL_SENT_TO_TS";
|
|
20
|
-
//Equipe
|
|
21
|
-
TypeUserHistory[TypeUserHistory["TEAM_MOUVEMENT"] = 13] = "TEAM_MOUVEMENT";
|
|
22
|
-
})(TypeUserHistory || (TypeUserHistory = {}));
|
|
23
|
-
export const TypeUserHistoryLabels = {
|
|
24
|
-
[TypeUserHistory.CREATE]: 'Création',
|
|
25
|
-
[TypeUserHistory.UPDATE]: 'Mise à jour',
|
|
26
|
-
[TypeUserHistory.DELETE]: 'Suppression',
|
|
27
|
-
[TypeUserHistory.RESTORE]: 'Restauration',
|
|
28
|
-
[TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
|
|
29
|
-
[TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
|
|
30
|
-
[TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
|
|
31
|
-
[TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
|
|
32
|
-
[TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
|
|
33
|
-
[TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
|
|
34
|
-
[TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
|
|
35
|
-
[TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
|
|
36
|
-
[TypeUserHistory.TEAM_MOUVEMENT]: 'Changement d\'équipe',
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=UsersHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
3
|
-
export declare class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt' | 'idAuthor'> {
|
|
4
|
-
idUser: number;
|
|
5
|
-
comment?: string;
|
|
6
|
-
actionType: TypeUserHistory;
|
|
7
|
-
metadata?: IMetadata;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
|
|
11
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
12
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
13
|
-
export class CreateUsersHistory {
|
|
14
|
-
idUser;
|
|
15
|
-
comment;
|
|
16
|
-
actionType;
|
|
17
|
-
metadata;
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
ApiProperty(),
|
|
21
|
-
IsInt(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], CreateUsersHistory.prototype, "idUser", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
ApiPropertyOptional(),
|
|
26
|
-
IsOptional(),
|
|
27
|
-
IsString(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CreateUsersHistory.prototype, "comment", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
ApiProperty(),
|
|
32
|
-
IsEnum(TypeUserHistory),
|
|
33
|
-
__metadata("design:type", Number)
|
|
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);
|
|
40
|
-
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
2
|
-
import { IMetadata, IUsersHistory } from '../../models/IUsersHistory';
|
|
3
|
-
export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idAuthor'>> {
|
|
4
|
-
comment?: string;
|
|
5
|
-
actionType?: TypeUserHistory;
|
|
6
|
-
metadata?: IMetadata;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsEnum, IsOptional, IsString } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
12
|
-
import { TypeUserHistory } from '../../../Enum/UsersHistory';
|
|
13
|
-
export class UpdateUsersHistory {
|
|
14
|
-
comment;
|
|
15
|
-
actionType;
|
|
16
|
-
metadata;
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
ApiPropertyOptional(),
|
|
20
|
-
IsOptional(),
|
|
21
|
-
IsString(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], UpdateUsersHistory.prototype, "comment", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
ApiPropertyOptional(),
|
|
26
|
-
IsOptional(),
|
|
27
|
-
IsEnum(TypeUserHistory),
|
|
28
|
-
__metadata("design:type", Number)
|
|
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);
|
|
35
|
-
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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}"]}
|