@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
@@ -100,8 +100,8 @@ export class Inpi extends Resource {
100
100
  * @param { string } siren
101
101
  * @returns { any }
102
102
  */
103
- public getCompanyInfoBySiret(siret: string): Promise<any> {
104
- return this.axios.$get(`/inpi/companies/${siret}`);
103
+ public getCompanyInfoBySiret(siret: string, credentialType: 'user' | 'admin' = 'admin'): Promise<any> {
104
+ return this.axios.$get(`/inpi/companies/${siret}`, { params: { credentialType } });
105
105
  }
106
106
 
107
107
  /**
@@ -109,8 +109,8 @@ export class Inpi extends Resource {
109
109
  * @param { string } siret
110
110
  * @returns { any }
111
111
  */
112
- public getDocumentsBySiret(siret: string): Promise<any> {
113
- return this.axios.$get(`/inpi/companies/${siret}/documents`);
112
+ public getDocumentsBySiret(siret: string, credentialType: 'user' | 'admin' = 'admin'): Promise<any> {
113
+ return this.axios.$get(`/inpi/companies/${siret}/documents`, { params: { credentialType } });
114
114
  }
115
115
 
116
116
  /**
@@ -118,8 +118,11 @@ export class Inpi extends Resource {
118
118
  * @param { string } id
119
119
  * @returns { Buffer }
120
120
  */
121
- public downloadBilanPdf(id: string): Promise<Buffer> {
122
- return this.axios.$get(`/inpi/companies/bilans/${id}/download`, { responseType: 'arraybuffer' });
121
+ public downloadBilanPdf(id: string, credentialType: 'user' | 'admin' = 'admin'): Promise<Buffer> {
122
+ return this.axios.$get(`/inpi/companies/bilans/${id}/download`, {
123
+ responseType: 'arraybuffer',
124
+ params: { credentialType },
125
+ });
123
126
  }
124
127
 
125
128
  /**
@@ -127,8 +130,8 @@ export class Inpi extends Resource {
127
130
  * @param { string } id
128
131
  * @returns { any }
129
132
  */
130
- public getBilanSaisiJson(id: string): Promise<any> {
131
- return this.axios.$get(`/inpi/companies/bilans-saisis/${id}/download`);
133
+ public getBilanSaisiJson(id: string, credentialType: 'user' | 'admin' = 'admin'): Promise<any> {
134
+ return this.axios.$get(`/inpi/companies/bilans-saisis/${id}/download`, { params: { credentialType } });
132
135
  }
133
136
 
134
137
  /**
@@ -136,8 +139,11 @@ export class Inpi extends Resource {
136
139
  * @param { string } id
137
140
  * @returns { Buffer }
138
141
  */
139
- public downloadActePdf(id: string): Promise<Buffer> {
140
- return this.axios.$get(`/inpi/companies/actes/${id}/download`, { responseType: 'arraybuffer' });
142
+ public downloadActePdf(id: string, credentialType: 'user' | 'admin' = 'admin'): Promise<Buffer> {
143
+ return this.axios.$get(`/inpi/companies/actes/${id}/download`, {
144
+ responseType: 'arraybuffer',
145
+ params: { credentialType },
146
+ });
141
147
  }
142
148
 
143
149
  /**
@@ -145,7 +151,10 @@ export class Inpi extends Resource {
145
151
  * @param { string } siret
146
152
  * @returns { Buffer }
147
153
  */
148
- public downloadCompanySynthesis(siret: string): Promise<Buffer> {
149
- return this.axios.$get(`/inpi/companies/${siret}/synthesis/download`, { responseType: 'arraybuffer' });
154
+ public downloadCompanySynthesis(siret: string, credentialType: 'user' | 'admin' = 'admin'): Promise<Buffer> {
155
+ return this.axios.$get(`/inpi/companies/${siret}/synthesis/download`, {
156
+ responseType: 'arraybuffer',
157
+ params: { credentialType },
158
+ });
150
159
  }
151
160
  }
@@ -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
 
195
194
  export const resources = {
196
195
  budgetInsight: BudgetInsight,
@@ -385,5 +384,4 @@ export const resources = {
385
384
  automaticRegistration: AutomaticRegistration,
386
385
  loginApproval: LoginApproval,
387
386
  societyApproval: SocietyApproval,
388
- usersHistory: UsersHistory,
389
387
  };
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';
@@ -568,7 +567,6 @@ export * from './Enum/InformationRequestType';
568
567
  export * from './Enum/InformationRequestState';
569
568
  export * from './Enum/Revenue';
570
569
  export * from './Enum/EbookIntention';
571
- export * from './Enum/UsersHistory';
572
570
 
573
571
  // Interfaces API
574
572
  export * from './Interface/api/authentification/AuthenticationResponse';
@@ -793,9 +791,6 @@ export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHis
793
791
  export * from './Interface/api/userSpecialDay/BodyUserSpecialDay';
794
792
  export * from './Interface/api/userSpecialDay/QueryUserSpecialDay';
795
793
  export * from './Interface/api/oldExportInfo/OldExpertInfos';
796
- export * from './Interface/api/usersHistory/Create';
797
- export * from './Interface/api/usersHistory/Update';
798
-
799
794
 
800
795
  // export * from './Interface/api/survey/QuerySurvey';
801
796
  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(id: number, signal?: AbortSignal): Promise<IUsersHistory[]>;
8
- updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory>;
9
- deleteUserHistory(id: number): Promise<number>;
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,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMlF,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAI/E,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAI/C"}
@@ -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(id, signal) {
16
- return this.axios.$get(`usersHistory/user/${id}`, 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,EAAU,EAAE,MAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,oBAC3C,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(id: number, signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get(`usersHistory/user/${id}`, {\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<number> {\n return this.axios.$delete(`usersHistory/${id}`);\n }\n\n}"]}
@@ -1,16 +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
14
- }
15
- export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
16
- //# 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;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAajE,CAAC"}
@@ -1,38 +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
- })(TypeUserHistory || (exports.TypeUserHistory = TypeUserHistory = {}));
24
- exports.TypeUserHistoryLabels = {
25
- [TypeUserHistory.CREATE]: 'Création',
26
- [TypeUserHistory.UPDATE]: 'Mise à jour',
27
- [TypeUserHistory.DELETE]: 'Suppression',
28
- [TypeUserHistory.RESTORE]: 'Restauration',
29
- [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
30
- [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
31
- [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
32
- [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
33
- [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
34
- [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
35
- [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
36
- [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
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,IAAY,eAsBX;AAtBD,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;AACtB,CAAC,EAtBW,eAAe,+BAAf,eAAe,QAsB1B;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;CACtD,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\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};\n"]}
@@ -1,9 +0,0 @@
1
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
2
- import { IUsersHistory } from '../../models/IUsersHistory';
3
- export declare class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt'> {
4
- idUser: number;
5
- idAuthor?: number;
6
- comment?: string;
7
- actionType: TypeUserHistory;
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,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,CAAC;IAG9F,MAAM,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,EAAE,eAAe,CAAC;CAC7B"}
@@ -1,41 +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.IsInt)(),
28
- __metadata("design:type", Number)
29
- ], CreateUsersHistory.prototype, "idAuthor", void 0);
30
- __decorate([
31
- (0, decorators_1.ApiPropertyOptional)(),
32
- (0, class_validator_1.IsOptional)(),
33
- (0, class_validator_1.IsString)(),
34
- __metadata("design:type", String)
35
- ], CreateUsersHistory.prototype, "comment", void 0);
36
- __decorate([
37
- (0, decorators_1.ApiProperty)(),
38
- (0, class_validator_1.IsEnum)(UsersHistory_1.TypeUserHistory),
39
- __metadata("design:type", Number)
40
- ], CreateUsersHistory.prototype, "actionType", void 0);
41
- //# 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;CAkB9B;AAlBD,gDAkBC;AAfC;IAFC,IAAA,wBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;kDACO;AAKf;IAHC,IAAA,gCAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;oDACU;AAKlB;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","sourcesContent":["import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\nexport class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt'> {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idAuthor?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiProperty()\n @IsEnum(TypeUserHistory)\n actionType: TypeUserHistory;\n}"]}
@@ -1,7 +0,0 @@
1
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
2
- import { IUsersHistory } from '../../models/IUsersHistory';
3
- export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idUserAuthor'>> {
4
- comment?: string;
5
- actionType?: TypeUserHistory;
6
- }
7
- //# 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,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;IAIvG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B"}
@@ -1,31 +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
- //# 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;CAU9B;AAVD,gDAUC;AANC;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","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\n\nexport class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idUserAuthor'>> {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(TypeUserHistory)\n actionType?: TypeUserHistory;\n}"]}
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# 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,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(id: number, signal?: AbortSignal): Promise<IUsersHistory[]>;
8
- updateUserHistory(id: number, body: UpdateUsersHistory): Promise<IUsersHistory>;
9
- deleteUserHistory(id: number): Promise<number>;
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,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAMlF,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAI/E,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAI/C"}
@@ -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(id, signal) {
17
- return this.axios.$get(`usersHistory/user/${id}`, {
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,EAAU,EAAE,MAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,EAAE;YAChD,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(id: number, signal?: AbortSignal): Promise<IUsersHistory[]> {\n return this.axios.$get(`usersHistory/user/${id}`, {\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<number> {\n return this.axios.$delete(`usersHistory/${id}`);\n }\n\n}"]}
@@ -1,16 +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
14
- }
15
- export declare const TypeUserHistoryLabels: Record<TypeUserHistory, string>;
16
- //# 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;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAajE,CAAC"}
@@ -1,35 +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
- })(TypeUserHistory || (TypeUserHistory = {}));
21
- export const TypeUserHistoryLabels = {
22
- [TypeUserHistory.CREATE]: 'Création',
23
- [TypeUserHistory.UPDATE]: 'Mise à jour',
24
- [TypeUserHistory.DELETE]: 'Suppression',
25
- [TypeUserHistory.RESTORE]: 'Restauration',
26
- [TypeUserHistory.INFO_UPDATE]: 'Mise à jour Info',
27
- [TypeUserHistory.ROLE_UPDATE]: 'Mise à jour Rôle',
28
- [TypeUserHistory.PASSWORD_UPDATE]: 'Changement Mot de passe',
29
- [TypeUserHistory.EQUIPMENT_ASSIGN]: 'Assignation Matériel',
30
- [TypeUserHistory.EQUIPMENT_BROKEN]: 'Matériel Cassé',
31
- [TypeUserHistory.EQUIPMENT_RETURN]: 'Retour Matériel',
32
- [TypeUserHistory.EQUIPMENT_LOST]: 'Matériel Perdu',
33
- [TypeUserHistory.MAIL_SENT_TO_TS]: 'Mail envoyé à TS',
34
- };
35
- //# 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,eAsBX;AAtBD,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;AACtB,CAAC,EAtBW,eAAe,KAAf,eAAe,QAsB1B;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;CACtD,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\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};\n"]}
@@ -1,9 +0,0 @@
1
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
2
- import { IUsersHistory } from '../../models/IUsersHistory';
3
- export declare class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt'> {
4
- idUser: number;
5
- idAuthor?: number;
6
- comment?: string;
7
- actionType: TypeUserHistory;
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,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,qBAAa,kBAAmB,YAAW,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,CAAC;IAG9F,MAAM,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,EAAE,eAAe,CAAC;CAC7B"}
@@ -1,41 +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
- idAuthor;
16
- comment;
17
- actionType;
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
- IsInt(),
28
- __metadata("design:type", Number)
29
- ], CreateUsersHistory.prototype, "idAuthor", void 0);
30
- __decorate([
31
- ApiPropertyOptional(),
32
- IsOptional(),
33
- IsString(),
34
- __metadata("design:type", String)
35
- ], CreateUsersHistory.prototype, "comment", void 0);
36
- __decorate([
37
- ApiProperty(),
38
- IsEnum(TypeUserHistory),
39
- __metadata("design:type", Number)
40
- ], CreateUsersHistory.prototype, "actionType", void 0);
41
- //# 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,QAAQ,CAAU;IAKlB,OAAO,CAAU;IAIjB,UAAU,CAAkB;CAC7B;AAfC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;kDACO;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;oDACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACM;AAIjB;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,eAAe,CAAC;;sDACI","sourcesContent":["import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\nexport class CreateUsersHistory implements Omit<IUsersHistory, 'id' | 'createdAt' | 'updatedAt'> {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idAuthor?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiProperty()\n @IsEnum(TypeUserHistory)\n actionType: TypeUserHistory;\n}"]}
@@ -1,7 +0,0 @@
1
- import { TypeUserHistory } from '../../../Enum/UsersHistory';
2
- import { IUsersHistory } from '../../models/IUsersHistory';
3
- export declare class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idUserAuthor'>> {
4
- comment?: string;
5
- actionType?: TypeUserHistory;
6
- }
7
- //# 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,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,qBAAa,kBAAmB,YAAW,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;IAIvG,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B"}
@@ -1,29 +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
- }
17
- __decorate([
18
- ApiPropertyOptional(),
19
- IsOptional(),
20
- IsString(),
21
- __metadata("design:type", String)
22
- ], UpdateUsersHistory.prototype, "comment", void 0);
23
- __decorate([
24
- ApiPropertyOptional(),
25
- IsOptional(),
26
- IsEnum(TypeUserHistory),
27
- __metadata("design:type", Number)
28
- ], UpdateUsersHistory.prototype, "actionType", void 0);
29
- //# 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;CAC9B;AANC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,eAAe,CAAC;;sDACK","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { TypeUserHistory } from '../../../Enum/UsersHistory';\nimport { IUsersHistory } from '../../models/IUsersHistory';\n\n\nexport class UpdateUsersHistory implements Partial<Omit<IUsersHistory, 'id' | 'idUser' | 'idUserAuthor'>> {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(TypeUserHistory)\n actionType?: TypeUserHistory;\n}"]}