@silexpert/core 1.1.123 → 1.1.124

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.123",
3
+ "version": "1.1.124",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -19,4 +19,13 @@ export class Log extends Resource {
19
19
  getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {
20
20
  return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });
21
21
  }
22
+
23
+ /**
24
+ * Get des enregistrement de la table log
25
+ * @param { CreateLog } payload
26
+ * @returns { ILog[] }
27
+ */
28
+ get(payload: Partial<ILog>): Promise<ILog[]> {
29
+ return this.axios.$get('/logs', { params: payload });
30
+ }
22
31
  }
@@ -42,6 +42,7 @@ export enum LogType {
42
42
  SOCIAL = 30,
43
43
  CONSTITUTION = 31,
44
44
  APPROBATION = 32,
45
+ ACCEPTATION = 33,
45
46
  }
46
47
 
47
48
  export const LogTypeDetail = {
@@ -237,4 +238,10 @@ export const LogTypeDetail = {
237
238
  color: 'blue-grey lighten-2',
238
239
  icon: null,
239
240
  },
241
+ ACCEPTATION: {
242
+ id: LogType.ACCEPTATION,
243
+ label: 'Acceptation',
244
+ color: 'blue-grey darken-1',
245
+ icon: null,
246
+ },
240
247
  };
@@ -0,0 +1,13 @@
1
+ export const MissionAcceptationState: { [key: string]: number | null } = {
2
+ WAITING: null,
3
+ NOT_ACCEPTED: 0,
4
+ ACCEPTED: 1,
5
+ WAITING_CONFORMITY: 2,
6
+ };
7
+
8
+ export const MissionAcceptationList: Array<{ text: string, value: number | null, color: string }> = [
9
+ { text: 'En attente', value: MissionAcceptationState.WAITING, color: '' },
10
+ { text: 'Accepté', value: MissionAcceptationState.ACCEPTED, color: 'success' },
11
+ { text: 'Non accepté', value: MissionAcceptationState.NOT_ACCEPTED, color: 'error' },
12
+ { text: 'Attente conformité', value: MissionAcceptationState.WAITING_CONFORMITY, color: 'primary' },
13
+ ];
package/ts/types/index.ts CHANGED
@@ -486,6 +486,7 @@ export * from './Enum/ThirdParty';
486
486
  export * from './Enum/PaymentExpectation';
487
487
  export * from './Enum/FollowList';
488
488
  export * from './Enum/ClientOrProspect';
489
+ export * from './Enum/MissionAcceptation';
489
490
  export * from './Enum/Bank';
490
491
 
491
492
  // Interfaces API