@silexpert/core 1.0.168 → 1.0.172

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 (116) hide show
  1. package/es/api/resources/AccountingFiles.d.ts.map +1 -1
  2. package/es/api/resources/AccountingFiles.js +1 -0
  3. package/es/api/resources/AccountingFiles.js.map +1 -1
  4. package/es/api/resources/Log.d.ts +7 -1
  5. package/es/api/resources/Log.d.ts.map +1 -1
  6. package/es/api/resources/Log.js +8 -0
  7. package/es/api/resources/Log.js.map +1 -1
  8. package/es/api/resources/TimeRecorder.d.ts +2 -1
  9. package/es/api/resources/TimeRecorder.d.ts.map +1 -1
  10. package/es/api/resources/TimeRecorder.js +3 -0
  11. package/es/api/resources/TimeRecorder.js.map +1 -1
  12. package/es/api/resources/UnpaidCallHistory.d.ts +6 -0
  13. package/es/api/resources/UnpaidCallHistory.d.ts.map +1 -0
  14. package/es/api/resources/UnpaidCallHistory.js +7 -0
  15. package/es/api/resources/UnpaidCallHistory.js.map +1 -0
  16. package/es/api/resources.d.ts +2 -0
  17. package/es/api/resources.d.ts.map +1 -1
  18. package/es/api/resources.js +2 -0
  19. package/es/api/resources.js.map +1 -1
  20. package/es/types/Enum/ConstitutionState.js +1 -1
  21. package/es/types/Enum/ConstitutionState.js.map +1 -1
  22. package/es/types/Enum/JobTitle.js +2 -2
  23. package/es/types/Enum/JobTitle.js.map +1 -1
  24. package/es/types/Enum/Log.d.ts +2 -1
  25. package/es/types/Enum/Log.d.ts.map +1 -1
  26. package/es/types/Enum/Log.js +1 -0
  27. package/es/types/Enum/Log.js.map +1 -1
  28. package/es/types/Enum/TimeCounterType.d.ts +7 -0
  29. package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
  30. package/es/types/Enum/TimeCounterType.js +7 -0
  31. package/es/types/Enum/TimeCounterType.js.map +1 -1
  32. package/es/types/Enum/UnpaidCallHistoryType.d.ts +10 -0
  33. package/es/types/Enum/UnpaidCallHistoryType.d.ts.map +1 -0
  34. package/es/types/Enum/UnpaidCallHistoryType.js +21 -0
  35. package/es/types/Enum/UnpaidCallHistoryType.js.map +1 -0
  36. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  37. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  38. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +5 -0
  39. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  40. package/es/types/Interface/api/prestations/QueryGetAllPrestations.d.ts +2 -0
  41. package/es/types/Interface/api/prestations/QueryGetAllPrestations.d.ts.map +1 -1
  42. package/es/types/Interface/api/prestations/QueryGetAllPrestations.js +14 -0
  43. package/es/types/Interface/api/prestations/QueryGetAllPrestations.js.map +1 -1
  44. package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.d.ts +7 -0
  45. package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.d.ts.map +1 -0
  46. package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.js +2 -0
  47. package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.js.map +1 -0
  48. package/es/types/Interface/models/IAccountingTransaction.d.ts +0 -1
  49. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  50. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  51. package/es/types/Interface/models/IInpiPayment.d.ts +1 -1
  52. package/es/types/Interface/models/IInpiPayment.d.ts.map +1 -1
  53. package/es/types/Interface/models/IInpiPayment.js.map +1 -1
  54. package/es/types/Interface/models/ISociety.d.ts +2 -1
  55. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  56. package/es/types/Interface/models/ISociety.js.map +1 -1
  57. package/es/types/Interface/models/IUnpaidCallHistory.d.ts +14 -0
  58. package/es/types/Interface/models/IUnpaidCallHistory.d.ts.map +1 -0
  59. package/es/types/Interface/models/IUnpaidCallHistory.js +2 -0
  60. package/es/types/Interface/models/IUnpaidCallHistory.js.map +1 -0
  61. package/es/types/index.d.ts +3 -0
  62. package/es/types/index.d.ts.map +1 -1
  63. package/es/types/index.js +3 -0
  64. package/es/types/index.js.map +1 -1
  65. package/js/api/resources/AccountingFiles.js +1 -0
  66. package/js/api/resources/AccountingFiles.js.map +1 -1
  67. package/js/api/resources/Log.js +8 -0
  68. package/js/api/resources/Log.js.map +1 -1
  69. package/js/api/resources/TimeRecorder.js +3 -0
  70. package/js/api/resources/TimeRecorder.js.map +1 -1
  71. package/js/api/resources/UnpaidCallHistory.js +14 -0
  72. package/js/api/resources/UnpaidCallHistory.js.map +1 -0
  73. package/js/api/resources.js +3 -1
  74. package/js/api/resources.js.map +1 -1
  75. package/js/types/Enum/ConstitutionState.js +1 -1
  76. package/js/types/Enum/ConstitutionState.js.map +1 -1
  77. package/js/types/Enum/JobTitle.js +2 -2
  78. package/js/types/Enum/JobTitle.js.map +1 -1
  79. package/js/types/Enum/Log.js +1 -0
  80. package/js/types/Enum/Log.js.map +1 -1
  81. package/js/types/Enum/TimeCounterType.js +7 -0
  82. package/js/types/Enum/TimeCounterType.js.map +1 -1
  83. package/js/types/Enum/UnpaidCallHistoryType.js +22 -0
  84. package/js/types/Enum/UnpaidCallHistoryType.js.map +1 -0
  85. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -0
  86. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  87. package/js/types/Interface/api/prestations/QueryGetAllPrestations.js +2 -0
  88. package/js/types/Interface/api/prestations/QueryGetAllPrestations.js.map +1 -1
  89. package/js/types/Interface/api/timeRecorder/ReadUsersAbsent.js +6 -0
  90. package/js/types/Interface/api/timeRecorder/ReadUsersAbsent.js.map +1 -0
  91. package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
  92. package/js/types/Interface/models/IInpiPayment.js.map +1 -1
  93. package/js/types/Interface/models/ISociety.js.map +1 -1
  94. package/js/types/Interface/models/IUnpaidCallHistory.js +6 -0
  95. package/js/types/Interface/models/IUnpaidCallHistory.js.map +1 -0
  96. package/js/types/index.js +30 -0
  97. package/js/types/index.js.map +1 -1
  98. package/package.json +1 -1
  99. package/ts/api/resources/AccountingFiles.ts +1 -0
  100. package/ts/api/resources/Log.ts +10 -0
  101. package/ts/api/resources/TimeRecorder.ts +4 -1
  102. package/ts/api/resources/UnpaidCallHistory.ts +8 -0
  103. package/ts/api/resources.ts +2 -0
  104. package/ts/types/Enum/ConstitutionState.ts +1 -1
  105. package/ts/types/Enum/JobTitle.ts +2 -2
  106. package/ts/types/Enum/Log.ts +1 -0
  107. package/ts/types/Enum/TimeCounterType.ts +7 -0
  108. package/ts/types/Enum/UnpaidCallHistoryType.ts +20 -0
  109. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +4 -0
  110. package/ts/types/Interface/api/prestations/QueryGetAllPrestations.ts +12 -0
  111. package/ts/types/Interface/api/timeRecorder/ReadUsersAbsent.ts +7 -0
  112. package/ts/types/Interface/models/IAccountingTransaction.ts +0 -1
  113. package/ts/types/Interface/models/IInpiPayment.ts +1 -1
  114. package/ts/types/Interface/models/ISociety.ts +2 -0
  115. package/ts/types/Interface/models/IUnpaidCallHistory.ts +16 -0
  116. package/ts/types/index.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.168",
3
+ "version": "1.0.172",
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",
@@ -10,6 +10,7 @@ export class AccountingFiles extends Resource {
10
10
  sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());
11
11
  sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
12
12
  sendAccountingFiles.append('split', params.split.toString());
13
+ sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
13
14
 
14
15
  params.files.forEach((file) => {
15
16
  sendAccountingFiles.append('files', file);
@@ -1,11 +1,21 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
3
  BasePaginate,
4
+ CreateLog,
4
5
  ILog,
5
6
  LogType,
6
7
  } from '../../types';
7
8
 
8
9
  export class Log extends Resource {
10
+ /**
11
+ * création d'un enregistrement dans la table logs
12
+ * @param { CreateLog } payload
13
+ * @returns { ILog }
14
+ */
15
+ create(payload: CreateLog): Promise<ILog> {
16
+ return this.axios.$post('/log', payload);
17
+ }
18
+
9
19
  getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {
10
20
  return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });
11
21
  }
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder,
3
+ ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, ReadUsersAbsent,
4
4
  } from '../../types';
5
5
 
6
6
  export class TimeRecorder extends Resource {
@@ -21,4 +21,7 @@ export class TimeRecorder extends Resource {
21
21
  return this.axios.$get('paginated-delays',
22
22
  { params });
23
23
  }
24
+ getUsersAbsent(): Promise<ReadUsersAbsent[]> {
25
+ return this.axios.$get('/users/absent');
26
+ }
24
27
  }
@@ -0,0 +1,8 @@
1
+ import { IUnpaidCallHistory } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class UnpaidCallHistory extends Resource {
5
+ create(data: IUnpaidCallHistory): Promise<IUnpaidCallHistory> {
6
+ return this.axios.$post('unpaid/call/history', data);
7
+ }
8
+ }
@@ -120,6 +120,7 @@ import { Acceptance } from './resources/Acceptance';
120
120
  import { Rating } from './resources/Rating';
121
121
  import { Quotation } from './resources/Quotation';
122
122
  import { Prestations } from './resources/Prestations';
123
+ import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
123
124
 
124
125
  export const resources = {
125
126
  simulation: Simulation,
@@ -244,4 +245,5 @@ export const resources = {
244
245
  acceptance: Acceptance,
245
246
  quotation: Quotation,
246
247
  prestations: Prestations,
248
+ unpaidCallHistory: UnpaidCallHistory,
247
249
  };
@@ -47,7 +47,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
47
47
  // ========================================
48
48
  WAITING_KBIS: {
49
49
  value: ConstitutionState.WAITING_KBIS,
50
- text: 'Attente KBIS',
50
+ text: 'Attente KBIS greffe',
51
51
  color: 'purple lighten-4',
52
52
  },
53
53
  WAITING_RIB_OR_SEPA: {
@@ -72,8 +72,8 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
72
72
  },
73
73
  {
74
74
  id: JobTitle.PAYROLL_MANAGER,
75
- menText: 'Gestionnaire de paies',
76
- womenText: 'Gestionnaire de paies',
75
+ menText: 'Gestionnaire de paie',
76
+ womenText: 'Gestionnaire de paie',
77
77
  },
78
78
  {
79
79
  id: JobTitle.JURIST,
@@ -35,4 +35,5 @@ export enum LogType {
35
35
  REGULATION_DELETE = 23,
36
36
  TRANSACTION_DELETE = 26,
37
37
  INPI_DELETE = 27,
38
+ VALIDATE_CALENDAR = 28,
38
39
  }
@@ -246,4 +246,11 @@ export const TimeCounterType = {
246
246
  limitedRoles: null,
247
247
  color: 'error',
248
248
  },
249
+ INTERNAL_CONTROL: {
250
+ id: 36,
251
+ label: 'Validation contrôle interne',
252
+ aberrantTime: 480,
253
+ limitedRoles: [Role.CUSTOMER_SUCCESS],
254
+ color: 'grey-dark',
255
+ },
249
256
  };
@@ -0,0 +1,20 @@
1
+ export enum UnpaidCallHistoryType {
2
+ FIRST = 1,
3
+ SECOND = 2,
4
+ THIRD = 3,
5
+ }
6
+
7
+ export const UnpaidCallHistoryTypeList = [
8
+ {
9
+ id: UnpaidCallHistoryType.FIRST,
10
+ label: '1er Appel',
11
+ },
12
+ {
13
+ id: UnpaidCallHistoryType.SECOND,
14
+ label: '2ème Appel',
15
+ },
16
+ {
17
+ id: UnpaidCallHistoryType.THIRD,
18
+ label: '3ème Appel',
19
+ },
20
+ ];
@@ -13,6 +13,10 @@ export class QueryAccountingFiles {
13
13
  @ToBoolean()
14
14
  isPayPerso: boolean;
15
15
 
16
+ @ApiProperty()
17
+ @ToBoolean()
18
+ bypassOcr: boolean;
19
+
16
20
  @ApiProperty()
17
21
  files: File[];
18
22
  }
@@ -22,4 +22,16 @@ export class QueryGetAllPrestations {
22
22
  @IsBoolean()
23
23
  @ToBoolean()
24
24
  isHidden?: boolean;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ isCatalog?: boolean;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsBoolean()
35
+ @ToBoolean()
36
+ isComplementary?: boolean;
25
37
  }
@@ -0,0 +1,7 @@
1
+ import { IUser } from '../../models/IUser';
2
+ import { DailyHour } from '../workingSchedule/QueryDailyHour';
3
+
4
+ export interface ReadUsersAbsent {
5
+ user: IUser,
6
+ specialHours: DailyHour,
7
+ }
@@ -16,7 +16,6 @@ import { IMachineLearningResult } from './IMachineLearningResult';
16
16
  export interface IAccountingTransaction {
17
17
  id?: number;
18
18
  label: string | null;
19
- budgeaTransactionId?: string | null;
20
19
  originalLabel?: string | null;
21
20
  invoiceNumber: string | null;
22
21
  reference: string | null;
@@ -13,7 +13,7 @@ export interface IInpiPayment {
13
13
  type: number,
14
14
  state: number,
15
15
  idSociety: number
16
- idUserWhoCreated: number,
16
+ idUserWhoCreated: number | number[],
17
17
  idExercice: number,
18
18
  idPrestationRelated: number,
19
19
  idPrestation?: number,
@@ -50,6 +50,7 @@ import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
51
  ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule, IRegulate, IUserSocietyPermission,
52
52
  ISocietyConfigBalanceSheet,
53
+ IUnpaidCallHistory,
53
54
  } from '../..';
54
55
  import { IBrandType } from './IBrandType';
55
56
 
@@ -214,4 +215,5 @@ export interface ISociety {
214
215
  businessPartners: IBusinessPartner[];
215
216
  fecFile: IFecFile | null;
216
217
  gedFiles: IGedFile[];
218
+ unpaidCallHistory: IUnpaidCallHistory[];
217
219
  }
@@ -0,0 +1,16 @@
1
+ import { IUser } from './IUser';
2
+ import { ISociety } from './ISociety';
3
+
4
+ export interface IUnpaidCallHistory {
5
+ id?: number,
6
+ idCallType: number,
7
+ idUser: number,
8
+ idSociety: number,
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ deletedAt?: Date;
12
+
13
+ // Associations
14
+ user?: IUser;
15
+ society?: ISociety;
16
+ }
package/ts/types/index.ts CHANGED
@@ -325,7 +325,7 @@ export * from './Interface/models/ICommercialMail';
325
325
  export * from './Interface/models/IRegistration';
326
326
  export * from './Interface/models/IVatRegimeHistory';
327
327
  export * from './Interface/models/ICustomerAcceptance';
328
-
328
+ export * from './Interface/models/IUnpaidCallHistory';
329
329
  // Forms
330
330
  export * from './Form/FormAuthenticate';
331
331
  export * from './Form/FormConnector';
@@ -479,6 +479,8 @@ export * from './Enum/JobTitle';
479
479
  export * from './Enum/Holidays';
480
480
  export * from './Enum/AdminAcceptance';
481
481
  export * from './Enum/PrestationListType';
482
+ export * from './Enum/UnpaidCallHistoryType';
483
+
482
484
  // Interfaces API
483
485
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
484
486
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -635,6 +637,7 @@ export * from './Interface/api/timeRecorder/QueryAttendance';
635
637
  export * from './Interface/api/timeRecorder/QueryPaginatedDelays';
636
638
  export * from './Interface/api/timeRecorder/ReadAttendanceHours';
637
639
  export * from './Interface/api/timeRecorder/ReadPaginatedDelays';
640
+ export * from './Interface/api/timeRecorder/ReadUsersAbsent';
638
641
  export * from './Interface/api/timeRecorder/ReadUsersNotConnected';
639
642
  export * from './Interface/api/timeRecorder/UpdateRecorder';
640
643
  export * from './Interface/api/inpiBalance/QueryInpiBalanceStatistic';