@silexpert/core 1.3.195-9 → 1.3.196-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/cjs/api/resources/Inpi.d.ts +6 -6
  2. package/dist/cjs/api/resources/Inpi.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Inpi.js +21 -12
  4. package/dist/cjs/api/resources/Inpi.js.map +1 -1
  5. package/dist/cjs/api/resources.d.ts +0 -2
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +0 -2
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/index.d.ts +0 -4
  10. package/dist/cjs/types/index.d.ts.map +1 -1
  11. package/dist/cjs/types/index.js +0 -4
  12. package/dist/cjs/types/index.js.map +1 -1
  13. package/dist/mjs/api/resources/Inpi.d.ts +6 -6
  14. package/dist/mjs/api/resources/Inpi.d.ts.map +1 -1
  15. package/dist/mjs/api/resources/Inpi.js +21 -12
  16. package/dist/mjs/api/resources/Inpi.js.map +1 -1
  17. package/dist/mjs/api/resources.d.ts +0 -2
  18. package/dist/mjs/api/resources.d.ts.map +1 -1
  19. package/dist/mjs/api/resources.js +0 -2
  20. package/dist/mjs/api/resources.js.map +1 -1
  21. package/dist/mjs/types/index.d.ts +0 -4
  22. package/dist/mjs/types/index.d.ts.map +1 -1
  23. package/dist/mjs/types/index.js +0 -4
  24. package/dist/mjs/types/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/ts/api/resources/Inpi.ts +21 -12
  27. package/ts/api/resources.ts +0 -2
  28. package/ts/types/index.ts +0 -5
  29. package/dist/cjs/api/resources/UsersHistory.d.ts +0 -11
  30. package/dist/cjs/api/resources/UsersHistory.d.ts.map +0 -1
  31. package/dist/cjs/api/resources/UsersHistory.js +0 -26
  32. package/dist/cjs/api/resources/UsersHistory.js.map +0 -1
  33. package/dist/cjs/types/Enum/UsersHistory.d.ts +0 -16
  34. package/dist/cjs/types/Enum/UsersHistory.d.ts.map +0 -1
  35. package/dist/cjs/types/Enum/UsersHistory.js +0 -38
  36. package/dist/cjs/types/Enum/UsersHistory.js.map +0 -1
  37. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +0 -9
  38. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +0 -1
  39. package/dist/cjs/types/Interface/api/usersHistory/Create.js +0 -41
  40. package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +0 -1
  41. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +0 -7
  42. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +0 -1
  43. package/dist/cjs/types/Interface/api/usersHistory/Update.js +0 -31
  44. package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +0 -1
  45. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts +0 -14
  46. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
  47. package/dist/cjs/types/Interface/models/IUsersHistory.js +0 -3
  48. package/dist/cjs/types/Interface/models/IUsersHistory.js.map +0 -1
  49. package/dist/mjs/api/resources/UsersHistory.d.ts +0 -11
  50. package/dist/mjs/api/resources/UsersHistory.d.ts.map +0 -1
  51. package/dist/mjs/api/resources/UsersHistory.js +0 -28
  52. package/dist/mjs/api/resources/UsersHistory.js.map +0 -1
  53. package/dist/mjs/types/Enum/UsersHistory.d.ts +0 -16
  54. package/dist/mjs/types/Enum/UsersHistory.d.ts.map +0 -1
  55. package/dist/mjs/types/Enum/UsersHistory.js +0 -35
  56. package/dist/mjs/types/Enum/UsersHistory.js.map +0 -1
  57. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +0 -9
  58. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +0 -1
  59. package/dist/mjs/types/Interface/api/usersHistory/Create.js +0 -41
  60. package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +0 -1
  61. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +0 -7
  62. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +0 -1
  63. package/dist/mjs/types/Interface/api/usersHistory/Update.js +0 -29
  64. package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +0 -1
  65. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts +0 -14
  66. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +0 -1
  67. package/dist/mjs/types/Interface/models/IUsersHistory.js +0 -2
  68. package/dist/mjs/types/Interface/models/IUsersHistory.js.map +0 -1
  69. package/ts/api/resources/UsersHistory.ts +0 -35
  70. package/ts/types/Enum/UsersHistory.ts +0 -38
  71. package/ts/types/Interface/api/usersHistory/Create.ts +0 -24
  72. package/ts/types/Interface/api/usersHistory/Update.ts +0 -17
  73. package/ts/types/Interface/models/IUsersHistory.ts +0 -17
@@ -1,14 +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 | null;
7
- comment?: string | null;
8
- actionType: TypeUserHistory;
9
- createdAt?: Date | null;
10
- updatedAt?: Date | null;
11
- user?: IUser;
12
- author?: IUser;
13
- }
14
- //# 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,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,eAAe,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IUsersHistory.js.map
@@ -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 | null;\n comment?: string | null;\n actionType: TypeUserHistory;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n\n // Relations\n user?: IUser;\n author?: IUser;\n}\n"]}
@@ -1,35 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { IUsersHistory, CreateUsersHistory, UpdateUsersHistory } from '../../types';
3
-
4
- export class UsersHistory extends Resource {
5
- createUserHistory(body: CreateUsersHistory): Promise<IUsersHistory> {
6
- return this.axios.$post('usersHistory', body);
7
- }
8
-
9
- getAllUserHistory(signal?: AbortSignal): Promise<IUsersHistory[]> {
10
- return this.axios.$get('usersHistory', {
11
- ...signal && { signal }
12
- });
13
- }
14
-
15
- getUserHistoryById(id: number, signal?: AbortSignal): Promise<IUsersHistory> {
16
- return this.axios.$get(`usersHistory/${id}`, {
17
- ...signal && { signal }
18
- });
19
- }
20
-
21
- getUserHistoryByUserID(id: number, signal?: AbortSignal): Promise<IUsersHistory[]> {
22
- return this.axios.$get(`usersHistory/user/${id}`, {
23
- ...signal && { signal }
24
- });
25
- }
26
-
27
- updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory> {
28
- return this.axios.$put(`usersHistory/${id}`, body);
29
- }
30
-
31
- deleteUserHistory(id: number): Promise<number> {
32
- return this.axios.$delete(`usersHistory/${id}`);
33
- }
34
-
35
- }
@@ -1,38 +0,0 @@
1
- export enum TypeUserHistory {
2
- // Cycle de vie Compte
3
- CREATE = 1,
4
- UPDATE = 2,
5
- DELETE = 3,
6
- RESTORE = 4,
7
-
8
- // Validation & Modifications Spécifiques
9
- INFO_UPDATE = 5, // Info ok
10
- ROLE_UPDATE = 6, // Role ok
11
-
12
- // Sécurité
13
- PASSWORD_UPDATE = 7,
14
-
15
- // Gestion Matériel
16
- EQUIPMENT_ASSIGN = 8,
17
- EQUIPMENT_BROKEN = 9,
18
- EQUIPMENT_RETURN = 10,
19
- EQUIPMENT_LOST = 11,
20
-
21
- // Communication
22
- MAIL_SENT_TO_TS = 12, // Mail envoyé à TS
23
- }
24
-
25
- export const TypeUserHistoryLabels: Record<TypeUserHistory, string> = {
26
- [TypeUserHistory.CREATE]: 'Création',
27
- [TypeUserHistory.UPDATE]: 'Mise à jour',
28
- [TypeUserHistory.DELETE]: 'Suppression',
29
- [TypeUserHistory.RESTORE]: 'Restauration',
30
- [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
31
- [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
32
- [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
33
- [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
34
- [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
35
- [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
36
- [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
37
- [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
38
- };
@@ -1,24 +0,0 @@
1
- import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
3
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
4
- import { IUsersHistory } from '../../models/IUsersHistory';
5
-
6
- export class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt'> {
7
- @ApiProperty()
8
- @IsInt()
9
- idUser: number;
10
-
11
- @ApiPropertyOptional()
12
- @IsOptional()
13
- @IsInt()
14
- idAuthor?: number;
15
-
16
- @ApiPropertyOptional()
17
- @IsOptional()
18
- @IsString()
19
- comment?: string;
20
-
21
- @ApiProperty()
22
- @IsEnum(TypeUserHistory)
23
- actionType: TypeUserHistory;
24
- }
@@ -1,17 +0,0 @@
1
- import { IsEnum, IsOptional, IsString } from 'class-validator';
2
- import { ApiPropertyOptional } from '../../../../utils/decorators';
3
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
4
- import { IUsersHistory } from '../../models/IUsersHistory';
5
-
6
-
7
- export class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idUserAuthor'>> {
8
- @ApiPropertyOptional()
9
- @IsOptional()
10
- @IsString()
11
- comment?: string;
12
-
13
- @ApiPropertyOptional()
14
- @IsOptional()
15
- @IsEnum(TypeUserHistory)
16
- actionType?: TypeUserHistory;
17
- }
@@ -1,17 +0,0 @@
1
- import { IUser } from './IUser';
2
- import { TypeUserHistory } from '../../Enum/UsersHistory';
3
-
4
- export interface IUsersHistory {
5
- id?: number;
6
- idUser: number;
7
- idAuthor?: number | null;
8
- comment?: string | null;
9
- actionType: TypeUserHistory;
10
- createdAt?: Date | null;
11
- updatedAt?: Date | null;
12
-
13
-
14
- // Relations
15
- user?: IUser;
16
- author?: IUser;
17
- }