@silexpert/core 1.1.266 → 1.1.268

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 (112) hide show
  1. package/dist/cjs/api/resources/IntermediateManagementRebate.d.ts +1 -1
  2. package/dist/cjs/api/resources/IntermediateManagementRebate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/IntermediateManagementRebate.js.map +1 -1
  4. package/dist/cjs/api/resources/Synchronisation.d.ts +2 -1
  5. package/dist/cjs/api/resources/Synchronisation.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Synchronisation.js +3 -0
  7. package/dist/cjs/api/resources/Synchronisation.js.map +1 -1
  8. package/dist/cjs/api/resources/statistic/DataOfficer.d.ts +7 -0
  9. package/dist/cjs/api/resources/statistic/DataOfficer.d.ts.map +1 -0
  10. package/dist/cjs/api/resources/statistic/DataOfficer.js +11 -0
  11. package/dist/cjs/api/resources/statistic/DataOfficer.js.map +1 -0
  12. package/dist/cjs/api/resources.d.ts +2 -0
  13. package/dist/cjs/api/resources.d.ts.map +1 -1
  14. package/dist/cjs/api/resources.js +2 -0
  15. package/dist/cjs/api/resources.js.map +1 -1
  16. package/dist/cjs/types/Enum/Log.d.ts +8 -1
  17. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/Log.js +7 -0
  19. package/dist/cjs/types/Enum/Log.js.map +1 -1
  20. package/dist/cjs/types/Enum/StatisticType.d.ts +2 -1
  21. package/dist/cjs/types/Enum/StatisticType.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/StatisticType.js +1 -0
  23. package/dist/cjs/types/Enum/StatisticType.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/IntermediateManagementRebate.d.ts +1 -13
  25. package/dist/cjs/types/Interface/api/IntermediateManagementRebate.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/IntermediateManagementRebate.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/statistic/QueryDataOfficer.d.ts +5 -0
  28. package/dist/cjs/types/Interface/api/statistic/QueryDataOfficer.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/statistic/QueryDataOfficer.js +30 -0
  30. package/dist/cjs/types/Interface/api/statistic/QueryDataOfficer.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  32. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js +10 -1
  34. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts +4 -0
  36. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/synchronisation/Query.js +16 -1
  38. package/dist/cjs/types/Interface/api/synchronisation/Query.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/synchronisation/Read.d.ts +9 -0
  40. package/dist/cjs/types/Interface/api/synchronisation/Read.d.ts.map +1 -0
  41. package/dist/cjs/types/Interface/api/synchronisation/Read.js +3 -0
  42. package/dist/cjs/types/Interface/api/synchronisation/Read.js.map +1 -0
  43. package/dist/cjs/types/Interface/models/IRule.d.ts +3 -0
  44. package/dist/cjs/types/Interface/models/IRule.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/models/IRule.js.map +1 -1
  46. package/dist/cjs/types/index.d.ts +3 -0
  47. package/dist/cjs/types/index.d.ts.map +1 -1
  48. package/dist/cjs/types/index.js +3 -0
  49. package/dist/cjs/types/index.js.map +1 -1
  50. package/dist/mjs/api/resources/IntermediateManagementRebate.d.ts +1 -1
  51. package/dist/mjs/api/resources/IntermediateManagementRebate.d.ts.map +1 -1
  52. package/dist/mjs/api/resources/IntermediateManagementRebate.js.map +1 -1
  53. package/dist/mjs/api/resources/Synchronisation.d.ts +2 -1
  54. package/dist/mjs/api/resources/Synchronisation.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/Synchronisation.js +6 -0
  56. package/dist/mjs/api/resources/Synchronisation.js.map +1 -1
  57. package/dist/mjs/api/resources/statistic/DataOfficer.d.ts +7 -0
  58. package/dist/mjs/api/resources/statistic/DataOfficer.d.ts.map +1 -0
  59. package/dist/mjs/api/resources/statistic/DataOfficer.js +11 -0
  60. package/dist/mjs/api/resources/statistic/DataOfficer.js.map +1 -0
  61. package/dist/mjs/api/resources.d.ts +2 -0
  62. package/dist/mjs/api/resources.d.ts.map +1 -1
  63. package/dist/mjs/api/resources.js +2 -0
  64. package/dist/mjs/api/resources.js.map +1 -1
  65. package/dist/mjs/types/Enum/Log.d.ts +8 -1
  66. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/Log.js +7 -0
  68. package/dist/mjs/types/Enum/Log.js.map +1 -1
  69. package/dist/mjs/types/Enum/StatisticType.d.ts +2 -1
  70. package/dist/mjs/types/Enum/StatisticType.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/StatisticType.js +1 -0
  72. package/dist/mjs/types/Enum/StatisticType.js.map +1 -1
  73. package/dist/mjs/types/Interface/api/IntermediateManagementRebate.d.ts +1 -13
  74. package/dist/mjs/types/Interface/api/IntermediateManagementRebate.d.ts.map +1 -1
  75. package/dist/mjs/types/Interface/api/IntermediateManagementRebate.js.map +1 -1
  76. package/dist/mjs/types/Interface/api/statistic/QueryDataOfficer.d.ts +5 -0
  77. package/dist/mjs/types/Interface/api/statistic/QueryDataOfficer.d.ts.map +1 -0
  78. package/dist/mjs/types/Interface/api/statistic/QueryDataOfficer.js +28 -0
  79. package/dist/mjs/types/Interface/api/statistic/QueryDataOfficer.js.map +1 -0
  80. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  81. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js +9 -0
  83. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  84. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts +4 -0
  85. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -1
  86. package/dist/mjs/types/Interface/api/synchronisation/Query.js +16 -0
  87. package/dist/mjs/types/Interface/api/synchronisation/Query.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/synchronisation/Read.d.ts +9 -0
  89. package/dist/mjs/types/Interface/api/synchronisation/Read.d.ts.map +1 -0
  90. package/dist/mjs/types/Interface/api/synchronisation/Read.js +2 -0
  91. package/dist/mjs/types/Interface/api/synchronisation/Read.js.map +1 -0
  92. package/dist/mjs/types/Interface/models/IRule.d.ts +3 -0
  93. package/dist/mjs/types/Interface/models/IRule.d.ts.map +1 -1
  94. package/dist/mjs/types/Interface/models/IRule.js.map +1 -1
  95. package/dist/mjs/types/index.d.ts +3 -0
  96. package/dist/mjs/types/index.d.ts.map +1 -1
  97. package/dist/mjs/types/index.js +3 -0
  98. package/dist/mjs/types/index.js.map +1 -1
  99. package/package.json +1 -1
  100. package/ts/api/resources/IntermediateManagementRebate.ts +1 -1
  101. package/ts/api/resources/Synchronisation.ts +8 -1
  102. package/ts/api/resources/statistic/DataOfficer.ts +13 -0
  103. package/ts/api/resources.ts +2 -0
  104. package/ts/types/Enum/Log.ts +7 -0
  105. package/ts/types/Enum/StatisticType.ts +1 -0
  106. package/ts/types/Interface/api/IntermediateManagementRebate.ts +1 -13
  107. package/ts/types/Interface/api/statistic/QueryDataOfficer.ts +14 -0
  108. package/ts/types/Interface/api/statistic/QueryInternal.ts +7 -0
  109. package/ts/types/Interface/api/synchronisation/Query.ts +12 -0
  110. package/ts/types/Interface/api/synchronisation/Read.ts +8 -0
  111. package/ts/types/Interface/models/IRule.ts +3 -0
  112. package/ts/types/index.ts +4 -1
@@ -45,6 +45,7 @@ export enum LogType {
45
45
  ACCEPTATION = 33,
46
46
  IP = 34,
47
47
  TYPE_CLIENT = 35,
48
+ ATTRIBUTION_MAIL = 36,
48
49
  }
49
50
 
50
51
  export const LogTypeDetail = {
@@ -258,4 +259,10 @@ export const LogTypeDetail = {
258
259
  color: 'cyan',
259
260
  icon: null,
260
261
  },
262
+ ATTRIBUTION_MAIL: {
263
+ id: LogType.ATTRIBUTION_MAIL,
264
+ label: 'Attribution de mail',
265
+ color: 'grey',
266
+ icon: null,
267
+ },
261
268
  };
@@ -13,4 +13,5 @@ export enum StatisticType {
13
13
  ACCOUNTANT_ADDITIONNAL_SELL = 12,
14
14
  ACCOUNTANT_VAT = 13,
15
15
  CUSTOMER_SUCCESS_WALL = 14,
16
+ DATA_OFFICER = 15,
16
17
  }
@@ -55,17 +55,5 @@ export type ReadFormattedIMRFilledWithExercice = {
55
55
  current: IExercice,
56
56
  previous: IExercice | null;
57
57
  };
58
- imr: Array<{
59
- name: string;
60
- amount: number;
61
- previousAmount: number | undefined;
62
- percentOfTurnover: number | undefined;
63
- previousPercentOfTurnover: number | undefined;
64
- variation: number | undefined;
65
- details: Array<IMRTypeFilled & {
66
- percentOfTurnover: number;
67
- previousPercentOfTurnover: number | undefined;
68
- variation: number | undefined;
69
- }>;
70
- }>
58
+ imr: ReadFormattedIMRFilled[]
71
59
  };
@@ -0,0 +1,14 @@
1
+ import { IsNumber, IsDate, IsIn } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { StatisticType } from '../../../Enum/StatisticType';
4
+
5
+ export class QueryDataOfficer {
6
+ @ApiProperty()
7
+ @IsDate()
8
+ endDate: Date;
9
+
10
+ @ApiProperty()
11
+ @IsNumber()
12
+ @IsIn(Object.values(StatisticType))
13
+ type: number;
14
+ }
@@ -20,4 +20,11 @@ export class QueryInternalCustomerSuccess {
20
20
  @IsOptional()
21
21
  @IsArray()
22
22
  idUsers?: number[];
23
+ }
24
+
25
+ export class QueryInternalDataOfficer {
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsArray()
29
+ idUsers?: number[];
23
30
  }
@@ -44,4 +44,16 @@ export class QuerySynchronisationPaginated {
44
44
  @IsOptional()
45
45
  @IsNumber()
46
46
  connector?: number;
47
+ }
48
+
49
+ export class QuerySynchronisationStatistic {
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ @IsArray()
53
+ accountants?: number[];
54
+
55
+ @ApiPropertyOptional()
56
+ @IsOptional()
57
+ @IsNumber()
58
+ customerSuccess?: number;
47
59
  }
@@ -0,0 +1,8 @@
1
+ export interface ReadSynchronisationStatistic {
2
+ 1?: number;
3
+ 2?: number;
4
+ 3?: number;
5
+ 4?: number;
6
+ 5?: number;
7
+ 6?: number;
8
+ }
@@ -1,6 +1,7 @@
1
1
  import { IVat } from './IVat';
2
2
  import { IAccount } from './IAccount';
3
3
  import { IThirdParty } from './IThirdParty';
4
+ import { IUser } from './IUser';
4
5
  import { INature } from './INature';
5
6
 
6
7
  // rules
@@ -15,6 +16,7 @@ export interface IRule {
15
16
  idAccount: number | null;
16
17
  idTva: number | null;
17
18
  idThirdParty: number | null;
19
+ createdBy: number | null;
18
20
  idNature: number | null;
19
21
  createdAt?: Date | null;
20
22
  updatedAt?: Date | null;
@@ -24,5 +26,6 @@ export interface IRule {
24
26
  tva: IVat;
25
27
  account: IAccount;
26
28
  thirdParty: IThirdParty;
29
+ userWhoCreated: IUser;
27
30
  nature: INature;
28
31
  }
package/ts/types/index.ts CHANGED
@@ -792,6 +792,7 @@ export * from './Interface/api/statistic/QueryDirection';
792
792
  export * from './Interface/api/statistic/QueryInternal';
793
793
  export * from './Interface/api/statistic/QueryGetDirection';
794
794
  export * from './Interface/api/statistic/QueryCustomerSuccess';
795
+ export * from './Interface/api/statistic/QueryDataOfficer';
795
796
  export * from './Interface/api/pappers/CreatePappers';
796
797
  export * from './Interface/api/bankAccount/Query';
797
798
  export * from './Interface/api/bankAccount/Update';
@@ -935,6 +936,7 @@ export * from './Interface/api/mobile/QueryMobileMigration';
935
936
  export * from './Interface/api/societyEvent/QuerySocietyEvent';
936
937
  export * from './Interface/api/societyEvent/CreateSocietyEvent';
937
938
  export * from './Interface/api/synchronisation/Query';
939
+ export * from './Interface/api/synchronisation/Read';
938
940
  export * from './Interface/api/task/QueryGetAllTask';
939
941
  export * from './Interface/api/regulate/QueryGetAll';
940
942
  export * from './Interface/api/regulate/RegulateWithStats';
@@ -1079,4 +1081,5 @@ export * from './Interface/api/partners/PartnerStatisticType';
1079
1081
  export * from './Interface/api/dubiousCustomer/Create';
1080
1082
  export * from './Interface/api/dubiousCustomer/Update';
1081
1083
  export * from './Interface/api/timeTracking/Create';
1082
- export * from './Interface/api/timeTracking/Query';
1084
+ export * from './Interface/api/timeTracking/Query';
1085
+ export * from './Interface/api/IntermediateManagementRebate';