@silexpert/core 1.0.59 → 1.0.62

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 (164) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/es/api/resources/SlowDetection.d.ts +11 -0
  3. package/es/api/resources/SlowDetection.d.ts.map +1 -0
  4. package/es/api/resources/SlowDetection.js +12 -0
  5. package/es/api/resources/SlowDetection.js.map +1 -0
  6. package/es/api/resources/Source.d.ts +6 -0
  7. package/es/api/resources/Source.d.ts.map +1 -0
  8. package/es/api/resources/Source.js +7 -0
  9. package/es/api/resources/Source.js.map +1 -0
  10. package/es/api/resources/User.d.ts +4 -2
  11. package/es/api/resources/User.d.ts.map +1 -1
  12. package/es/api/resources/User.js +25 -16
  13. package/es/api/resources/User.js.map +1 -1
  14. package/es/api/resources.d.ts +2 -0
  15. package/es/api/resources.d.ts.map +1 -1
  16. package/es/api/resources.js +2 -0
  17. package/es/api/resources.js.map +1 -1
  18. package/es/types/Enum/BalanceSheet.js +1 -1
  19. package/es/types/Enum/BalanceSheet.js.map +1 -1
  20. package/es/types/Enum/BudgetInsight.js.map +1 -1
  21. package/es/types/Enum/Ged.d.ts +101 -1
  22. package/es/types/Enum/Ged.d.ts.map +1 -1
  23. package/es/types/Enum/Ged.js +100 -14
  24. package/es/types/Enum/Ged.js.map +1 -1
  25. package/es/types/Enum/Lab.d.ts +25 -0
  26. package/es/types/Enum/Lab.d.ts.map +1 -0
  27. package/es/types/Enum/Lab.js +26 -0
  28. package/es/types/Enum/Lab.js.map +1 -0
  29. package/es/types/Enum/PrestationType.d.ts +2761 -1
  30. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  31. package/es/types/Enum/PrestationType.js +2762 -1
  32. package/es/types/Enum/PrestationType.js.map +1 -1
  33. package/es/types/Enum/RegistrationSourceDetail.d.ts +195 -0
  34. package/es/types/Enum/RegistrationSourceDetail.d.ts.map +1 -0
  35. package/es/types/Enum/RegistrationSourceDetail.js +99 -0
  36. package/es/types/Enum/RegistrationSourceDetail.js.map +1 -0
  37. package/es/types/Enum/ReportService.d.ts +10 -0
  38. package/es/types/Enum/ReportService.d.ts.map +1 -0
  39. package/es/types/Enum/ReportService.js +31 -0
  40. package/es/types/Enum/ReportService.js.map +1 -0
  41. package/es/types/Enum/StatsCaStateDetail.d.ts +28 -0
  42. package/es/types/Enum/StatsCaStateDetail.d.ts.map +1 -0
  43. package/es/types/Enum/StatsCaStateDetail.js +28 -0
  44. package/es/types/Enum/StatsCaStateDetail.js.map +1 -0
  45. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
  46. package/es/types/Enum/VatDeclarationType.js +6 -0
  47. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  48. package/es/types/Interface/api/report/QueryReports.d.ts +1 -0
  49. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  50. package/es/types/Interface/api/report/QueryReports.js +4 -0
  51. package/es/types/Interface/api/report/QueryReports.js.map +1 -1
  52. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +13 -0
  53. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -0
  54. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +74 -0
  55. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -0
  56. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +11 -0
  57. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -0
  58. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js +2 -0
  59. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -0
  60. package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -0
  61. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
  62. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  63. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  64. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -1
  65. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  66. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +1 -0
  67. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -1
  68. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +8 -1
  69. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  70. package/es/types/Interface/models/IPrestation.d.ts +3 -0
  71. package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
  72. package/es/types/Interface/models/IPrestation.js.map +1 -1
  73. package/es/types/Interface/models/ISlowDetection.d.ts +9 -0
  74. package/es/types/Interface/models/ISlowDetection.d.ts.map +1 -0
  75. package/es/types/Interface/models/ISlowDetection.js +2 -0
  76. package/es/types/Interface/models/ISlowDetection.js.map +1 -0
  77. package/es/types/Interface/models/ISociety.d.ts +4 -2
  78. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  79. package/es/types/Interface/models/ISociety.js.map +1 -1
  80. package/es/types/index.d.ts +7 -0
  81. package/es/types/index.d.ts.map +1 -1
  82. package/es/types/index.js +7 -0
  83. package/es/types/index.js.map +1 -1
  84. package/es/utils/commercialManagement/templates/body.js +1 -1
  85. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  86. package/es/utils/index.d.ts +1 -0
  87. package/es/utils/index.d.ts.map +1 -1
  88. package/es/utils/index.js +1 -0
  89. package/es/utils/index.js.map +1 -1
  90. package/es/utils/prestation.d.ts +11 -0
  91. package/es/utils/prestation.d.ts.map +1 -0
  92. package/es/utils/prestation.js +62 -0
  93. package/es/utils/prestation.js.map +1 -0
  94. package/js/api/resources/SlowDetection.js +23 -0
  95. package/js/api/resources/SlowDetection.js.map +1 -0
  96. package/js/api/resources/Source.js +18 -0
  97. package/js/api/resources/Source.js.map +1 -0
  98. package/js/api/resources/User.js +27 -6
  99. package/js/api/resources/User.js.map +1 -1
  100. package/js/api/resources.js +4 -1
  101. package/js/api/resources.js.map +1 -1
  102. package/js/types/Enum/BalanceSheet.js +1 -1
  103. package/js/types/Enum/BalanceSheet.js.map +1 -1
  104. package/js/types/Enum/BudgetInsight.js.map +1 -1
  105. package/js/types/Enum/Ged.js +104 -17
  106. package/js/types/Enum/Ged.js.map +1 -1
  107. package/js/types/Enum/Lab.js +33 -0
  108. package/js/types/Enum/Lab.js.map +1 -0
  109. package/js/types/Enum/PrestationType.js +2763 -1
  110. package/js/types/Enum/PrestationType.js.map +1 -1
  111. package/js/types/Enum/RegistrationSourceDetail.js +200 -0
  112. package/js/types/Enum/RegistrationSourceDetail.js.map +1 -0
  113. package/js/types/Enum/ReportService.js +32 -0
  114. package/js/types/Enum/ReportService.js.map +1 -0
  115. package/js/types/Enum/StatsCaStateDetail.js +33 -0
  116. package/js/types/Enum/StatsCaStateDetail.js.map +1 -0
  117. package/js/types/Enum/VatDeclarationType.js +5 -0
  118. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  119. package/js/types/Interface/api/report/QueryReports.js +2 -0
  120. package/js/types/Interface/api/report/QueryReports.js.map +1 -1
  121. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +53 -0
  122. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -0
  123. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js +6 -0
  124. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -0
  125. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  126. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +4 -0
  127. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  128. package/js/types/Interface/models/ISlowDetection.js +6 -0
  129. package/js/types/Interface/models/ISlowDetection.js.map +1 -0
  130. package/js/types/index.js +84 -0
  131. package/js/types/index.js.map +1 -1
  132. package/js/utils/commercialManagement/templates/body.js +1 -1
  133. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  134. package/js/utils/index.js +12 -0
  135. package/js/utils/index.js.map +1 -1
  136. package/js/utils/prestation.js +41 -0
  137. package/js/utils/prestation.js.map +1 -0
  138. package/package.json +1 -1
  139. package/ts/api/resources/SlowDetection.ts +13 -0
  140. package/ts/api/resources/Source.ts +8 -0
  141. package/ts/api/resources/User.ts +27 -17
  142. package/ts/api/resources.ts +2 -0
  143. package/ts/types/Enum/BalanceSheet.ts +1 -1
  144. package/ts/types/Enum/BudgetInsight.ts +1 -1
  145. package/ts/types/Enum/Ged.ts +102 -15
  146. package/ts/types/Enum/Lab.ts +25 -0
  147. package/ts/types/Enum/PrestationType.ts +2765 -3
  148. package/ts/types/Enum/RegistrationSourceDetail.ts +98 -0
  149. package/ts/types/Enum/ReportService.ts +32 -0
  150. package/ts/types/Enum/StatsCaStateDetail.ts +27 -0
  151. package/ts/types/Enum/VatDeclarationType.ts +6 -0
  152. package/ts/types/Interface/api/report/QueryReports.ts +3 -0
  153. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +56 -0
  154. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +11 -0
  155. package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -0
  156. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +3 -1
  157. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +7 -1
  158. package/ts/types/Interface/models/IPrestation.ts +3 -0
  159. package/ts/types/Interface/models/ISlowDetection.ts +11 -0
  160. package/ts/types/Interface/models/ISociety.ts +5 -3
  161. package/ts/types/index.ts +7 -0
  162. package/ts/utils/commercialManagement/templates/body.ts +1 -1
  163. package/ts/utils/index.ts +1 -0
  164. package/ts/utils/prestation.ts +71 -0
@@ -0,0 +1,98 @@
1
+ export const RegistrationSourceDetail = {
2
+ INCOMING_CALL: {
3
+ id: 2, name: 'Appel Entrant', alias: 'appel entrant', color: '#FF654F',
4
+ },
5
+ FORM: {
6
+ id: 4, name: 'Formulaire', alias: 'formulaire', color: '#5C9CFF',
7
+ },
8
+ MANAGEMENT_RECOMMENDATION: {
9
+ id: 7, name: 'Recommandation direction', alias: 'recommandation direction', color: '#540AB2',
10
+ },
11
+ ACCOUNTANT_RECOMMANDATION: {
12
+ id: 8, name: 'Recommandation comptable', alias: 'recommandation comptable', color: '#FFB44F',
13
+ },
14
+ ACCOUNTANT_CUSTOMER: {
15
+ id: 9, name: 'Recommandation client', alias: 'Recommandation client', color: '#A45CFF',
16
+ },
17
+ CHAT: {
18
+ id: 29, name: 'Chat', alias: 'Chat', color: null,
19
+ },
20
+ STATUS_ONLINE_CREATION: {
21
+ id: 48, name: 'Creation Statuts online', alias: 'creation_status_online', color: null,
22
+ },
23
+ SPONSORSHIP: {
24
+ id: 49, name: 'Prospect parrainage', alias: 'prospect_parrainage', color: null,
25
+ },
26
+ SOS_COMPTA: {
27
+ id: 54, name: 'Sos Compta', alias: 'sos-compta', color: '#EF8145',
28
+ },
29
+ LEGALSTART: {
30
+ id: 63, name: 'LegalStart', alias: 'LegalS', color: '#06b877',
31
+ },
32
+ COMPTASTART: {
33
+ id: 67, name: 'ComptaStart', alias: 'ComptaStart', color: '#15907F',
34
+ },
35
+ ONLINE_SUBSCRIPTION: {
36
+ id: 70, name: 'Souscription en ligne', alias: 'souscriptionOnline', color: '#2C666E',
37
+ },
38
+ START_OF_SERVICES: {
39
+ id: 72, name: 'Start of Services ', alias: 'Start of Services', color: '#123456',
40
+ },
41
+ REMINDER_POPUP: {
42
+ id: 73, name: 'Popup rappel', alias: 'popup-rappel', color: '#FA8072',
43
+ },
44
+ POPUP_REMINDER_CLOSING: {
45
+ id: 74, name: 'Popup rappel fermeture', alias: 'popup-rappel-fermeture', color: '#FA8072',
46
+ },
47
+ MARSEILLE: {
48
+ id: 75, name: 'Boutique Marseille', alias: 'boutique-marseille', color: '#8dcccc',
49
+ },
50
+ NEWSLETTER: {
51
+ id: 76, name: 'Newsletter', alias: 'newsletter', color: '#a81397',
52
+ },
53
+ WHITE_BOOK: {
54
+ id: 77, name: 'Livre blanc', alias: 'livre blanc', color: '#FFFFFF',
55
+ },
56
+ COMPTASTART_EARLY: {
57
+ id: 78, name: 'Comptastart early', alias: 'comptastart-early', color: '#68D5F2',
58
+ },
59
+ COMPTALIB: {
60
+ id: 79, name: 'Comptalib', alias: 'comptalib', color: '#FF654F',
61
+ },
62
+ COOVER_LEAD: {
63
+ id: 80, name: 'Coover Lead', alias: 'Coover Lead', color: '#CCCCCC',
64
+ },
65
+ FRANCE_RELANCE: {
66
+ id: 81, name: 'France-relance', alias: 'francerelance', color: '#ff7e3c',
67
+ },
68
+ '91M2': {
69
+ id: 82, name: '91m2', alias: '91m2', color: '#FF67CF',
70
+ },
71
+ CCM_PERFORMANCE: {
72
+ id: 83, name: 'CCM Performance', alias: 'ccm-performance', color: '#e53935',
73
+ },
74
+ PARTNERS: {
75
+ id: 84, name: 'Partenaires', alias: 'partenaires', color: '#FF5733',
76
+ },
77
+ KANDBAZ: {
78
+ id: 85, name: 'Kandbaz', alias: 'kandbaz', color: '#F58A0B',
79
+ },
80
+ PARTNERED_ACCOUNTANT: {
81
+ id: 90, name: 'Expert-Comptable Partenaire', alias: 'expert-comptable-partenaire', color: '#86dfaa',
82
+ },
83
+ CSE_FORMATION: {
84
+ id: 91, name: 'Formation CSE', alias: 'formation-cse', color: '#86dfaa',
85
+ },
86
+ WHATSAPP: {
87
+ id: 92, name: 'WHATSAPP', alias: 'WHATSAPP', color: '#128c7e',
88
+ },
89
+ GOWBUSINESS: {
90
+ id: 93, name: 'GOW BUSINESS', alias: 'GOWBUSINESS', color: '#128c7e',
91
+ },
92
+ AXELIUM_CONSEIL: {
93
+ id: 94, name: 'AXELIUM CONSEIL', alias: 'AXELIUM CONSEIL', color: '#ff7e3c',
94
+ },
95
+ SUMUP: {
96
+ id: 95, name: 'SUMUP', alias: 'SUMUP', color: '#ff7e3c',
97
+ },
98
+ };
@@ -0,0 +1,32 @@
1
+ import { List } from '../Interface/enum/Util';
2
+
3
+ export enum ReportService {
4
+ BENJAMIN = 1,
5
+ COMPTABLE = 2,
6
+ CUSTOMER_SUCCESS = 3,
7
+ EXPERT_ACCOUNTANT = 4,
8
+ YLANA = 5,
9
+ }
10
+
11
+ export const ReportServiceList: List = [
12
+ {
13
+ id: ReportService.BENJAMIN,
14
+ label: 'Benjamin',
15
+ },
16
+ {
17
+ id: ReportService.COMPTABLE,
18
+ label: 'Comptable',
19
+ },
20
+ {
21
+ id: ReportService.CUSTOMER_SUCCESS,
22
+ label: 'Customer Success',
23
+ },
24
+ {
25
+ id: ReportService.EXPERT_ACCOUNTANT,
26
+ label: 'Expert Comptable',
27
+ },
28
+ {
29
+ id: ReportService.YLANA,
30
+ label: 'Ylana',
31
+ },
32
+ ];
@@ -0,0 +1,27 @@
1
+ export const StatsCaStateDetail = {
2
+ SIGNED: {
3
+ id: 1,
4
+ name: 'Signé',
5
+ alias: 'signed',
6
+ },
7
+ PAID: {
8
+ id: 2,
9
+ name: 'Payé',
10
+ alias: 'paid',
11
+ },
12
+ INFOS_OK: {
13
+ id: 3,
14
+ name: 'Infos OK',
15
+ alias: 'checkMissingAdministrativeInfos',
16
+ },
17
+ DOCS_OK: {
18
+ id: 4,
19
+ name: 'Docs OK',
20
+ alias: 'checkFilesSuivi',
21
+ },
22
+ LAB_OK: {
23
+ id: 5,
24
+ name: 'Lab OK',
25
+ alias: 'checkLab',
26
+ },
27
+ };
@@ -93,6 +93,12 @@ export const accountInfo3310: AccountInfo[] = [
93
93
  fieldsToSubtract: [],
94
94
  type: 'credit',
95
95
  },
96
+ {
97
+ number: 635140,
98
+ fields: ['ligne29'],
99
+ fieldsToSubtract: [],
100
+ type: 'debit',
101
+ },
96
102
  {
97
103
  number: 445510,
98
104
  fields: ['ligne32'],
@@ -7,6 +7,9 @@ export class QueryReports {
7
7
  @ApiPropertyOptional()
8
8
  idSociety?: number;
9
9
 
10
+ @ApiPropertyOptional()
11
+ idService?: number;
12
+
10
13
  @ApiPropertyOptional()
11
14
  id?: number;
12
15
 
@@ -0,0 +1,56 @@
1
+ import {
2
+ IsInt, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryPaginatedSocietyWithStatsCa {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsString()
10
+ search?: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ day?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ month?: number;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsInt()
25
+ year?: number;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsInt()
30
+ idUser?: number;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsInt()
35
+ idSource?: number;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ @IsInt()
40
+ idPrestationList?: number;
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsInt({ each: true })
45
+ idState?: number[];
46
+
47
+ @ApiPropertyOptional({ default: 25 })
48
+ @IsOptional()
49
+ @IsInt()
50
+ limit?: number;
51
+
52
+ @ApiPropertyOptional({ default: 1 })
53
+ @IsOptional()
54
+ @IsInt()
55
+ page?: number;
56
+ }
@@ -0,0 +1,11 @@
1
+ import { GedFileType } from '../../../Enum/Ged';
2
+ import { ISociety } from '../../models/ISociety';
3
+ import { ReadInvalidFieldState } from './ReadSociety';
4
+
5
+ export interface SocietyWithStatsCaParams extends ISociety {
6
+ requiredDocs?:GedFileType[],
7
+ requiredInfos?: ReadInvalidFieldState[],
8
+ stateOfProgress?: string,
9
+ isBillingOk?: boolean,
10
+ isLabAccepted?: boolean
11
+ }
@@ -20,6 +20,7 @@ export interface CountVat {
20
20
  monthly: string[],
21
21
  quarterly: string[],
22
22
  simplified: string[],
23
+ none: string[],
23
24
  }
24
25
 
25
26
  export interface AnnotatedSocieties {
@@ -1,4 +1,6 @@
1
- import { IsIn, IsOptional, IsString } from 'class-validator';
1
+ import {
2
+ IsIn, IsOptional, IsString,
3
+ } from 'class-validator';
2
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
5
 
4
6
  export class QueryGetAllCollaborators {
@@ -1,6 +1,12 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class QueryGetAllCollaboratorsByRoles {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsInt()
8
+ idTimeCounterType?: number;
9
+
4
10
  @ApiProperty({
5
11
  description: 'roles used for group users',
6
12
  required: true,
@@ -38,6 +38,9 @@ export interface IPrestation {
38
38
  idPrestationSocial: number | null;
39
39
  idPrestationJuridique: number | null;
40
40
  idPrestationCreation: number | null;
41
+ totalAmount?: number;
42
+ discountAmount?: number;
43
+ debitType?: string;
41
44
  createdAt?: Date | null;
42
45
  updatedAt?: Date | null;
43
46
  deletedAt?: Date | null;
@@ -0,0 +1,11 @@
1
+ import { IUser } from './IUser';
2
+
3
+ export interface ISlowDetection {
4
+ id?: number,
5
+ idUser: number,
6
+ ip: string,
7
+ url: string,
8
+
9
+ // Associations
10
+ user?: IUser;
11
+ }
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile,
51
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -130,7 +130,7 @@ export interface ISociety {
130
130
  unpaid: number | null;
131
131
  isLate: boolean | null;
132
132
  unpaidDetails: UnpaidDetail[] | null;
133
- owner: string | null;
133
+ owner: IUser | null;
134
134
  social: string | null;
135
135
  exercices: string | null;
136
136
  recoveryDate: string | null;
@@ -204,5 +204,7 @@ export interface ISociety {
204
204
  events: ISocietyEvent[];
205
205
  mails: IMail[];
206
206
  transactions: IAccountingTransaction[];
207
- fecFile: IFecFile | null
207
+ businessPartners: IBusinessPartner[];
208
+ fecFile: IFecFile | null;
209
+ gedFiles: IGedFile[];
208
210
  }
package/ts/types/index.ts CHANGED
@@ -179,6 +179,7 @@ export * from './Interface/models/ISimulationElement';
179
179
  export * from './Interface/models/ISimulationHasBankAccount';
180
180
  export * from './Interface/models/ISimulationPeriod';
181
181
  export * from './Interface/models/ISimulationSummary';
182
+ export * from './Interface/models/ISlowDetection';
182
183
  export * from './Interface/models/ISocialDetail';
183
184
  export * from './Interface/models/ISociety';
184
185
  export * from './Interface/models/ISocietyApproval';
@@ -330,6 +331,7 @@ export * from './Enum/Aspone';
330
331
  export * from './Enum/ProfitsType';
331
332
  export * from './Enum/Tax';
332
333
  export * from './Enum/RegistrationSource';
334
+ export * from './Enum/RegistrationSourceDetail';
333
335
  export * from './Enum/Log';
334
336
  export * from './Enum/Quality';
335
337
  export * from './Enum/AbsenceType';
@@ -395,6 +397,8 @@ export * from './Enum/Util';
395
397
  export * from './Enum/RegisterCategory';
396
398
  export * from './Enum/FieldSocietyStat';
397
399
  export * from './Enum/PrestationType';
400
+ export * from './Enum/StatsCaStateDetail';
401
+ export * from './Enum/Lab';
398
402
  export * from './Enum/Supervision';
399
403
  export * from './Enum/Notification';
400
404
  export * from './Enum/Comment';
@@ -445,6 +449,7 @@ export * from './Enum/CustomerVat';
445
449
  export * from './Enum/Reason';
446
450
  export * from './Enum/OperationLegalNotice';
447
451
  export * from './Enum/OrderStatus';
452
+ export * from './Enum/ReportService';
448
453
 
449
454
  // Interfaces API
450
455
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -506,8 +511,10 @@ export * from './Interface/api/mail/UpdateMail';
506
511
  export * from './Interface/api/mail/CreateMailParams';
507
512
  export * from './Interface/api/mail/UpdateMailParams';
508
513
  export * from './Interface/api/society/LegalFormSiren';
514
+ export * from './Interface/api/society/SocietyWithStatsCaParams';
509
515
  export * from './Interface/api/society/QuerySociety';
510
516
  export * from './Interface/api/society/QueryPaginatedSociety';
517
+ export * from './Interface/api/society/QueryPaginatedSocietyWithStatsCa';
511
518
  export * from './Interface/api/society/GetDataSociety';
512
519
  export * from './Interface/api/society/CreateSociety';
513
520
  export * from './Interface/api/society/UpdateSociety';
@@ -50,7 +50,7 @@ const headOfDocument = `<div class="row space-between">
50
50
  <% } %>
51
51
  </div>
52
52
  <div style="width: 40%; margin-top: auto;">
53
- <p>Client</p>
53
+ <p></p>
54
54
  <% if (thirdParty) { %>
55
55
  <div class="<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>">
56
56
  <% if(thirdParty.fullname) {%><b><%= thirdParty.fullname %></b><br/><% } %>
package/ts/utils/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from './webmail';
5
5
  export * from './decorators';
6
6
  export * from './balanceSheetModule';
7
7
  export * from './siretValidation';
8
+ export * from './prestation';
8
9
  export * from './task';
9
10
  export * from './social';
10
11
  export * from './commercialManagement/document';
@@ -0,0 +1,71 @@
1
+ import { PrestationType } from '../types/Enum/PrestationType';
2
+
3
+ const isOtherAccountingMissions = (idPrestationList: number): boolean => [
4
+ PrestationType.PREVISIONNEL,
5
+ PrestationType.BILAN_INTERMEDIAIRE,
6
+ PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,
7
+ PrestationType.AUTRE_MISSION_COMPTABLE,
8
+ PrestationType.TVS,
9
+ PrestationType.ETUDE_FISCALE,
10
+ PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);
11
+
12
+ const isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;
13
+
14
+ const isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;
15
+
16
+ const isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;
17
+
18
+ const isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;
19
+
20
+ const isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE].includes(idPL)).length;
21
+
22
+ const isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;
23
+
24
+ const isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);
25
+
26
+ const getDebitType = (idPrestationList: number): 'Mensuel'|'Annuel'|'Récurrent' => {
27
+ if ([
28
+ PrestationType.PV_AG,
29
+ PrestationType.GESTION_JURIDIQUE,
30
+ PrestationType.TVS,
31
+ PrestationType.IRPP,
32
+ PrestationType.BAIL_COMMERCIAL,
33
+ PrestationType.CONVENTION_DE_MISE_A_DISPOSITION_A_TITRE_GRATUIT,
34
+ PrestationType.CONVENTION_COMPTE_COURANT,
35
+ PrestationType.INTEGRATION_FISCALE,
36
+ PrestationType.DISTRIBUTION_DIVIDENDES_SUR_RESERVE,
37
+ PrestationType.FORMALITES,
38
+ PrestationType.ATTESTATION_SALAIRE,
39
+ PrestationType.TAXE_APPRENTISSAGE_ET_FORMATION_CONTINUE,
40
+ ].includes(idPrestationList)) return 'Annuel';
41
+
42
+ if ([PrestationType.COMPTA_PRO,
43
+ PrestationType.COMPTA_PRO_PAIE,
44
+ PrestationType.COMPTA_PRO_EXPRESS,
45
+ PrestationType.COMPTA_PRO_EXPRESS_PAIE,
46
+ PrestationType.COMPTA_PRO_COMPTASTART,
47
+ PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,
48
+ PrestationType.COMPTA_ENTREPRISE,
49
+ PrestationType.COMPTA_ENTREPRISE_PAIE,
50
+ PrestationType.COMPTA_ENTREPRISE_EXPRESS,
51
+ PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,
52
+ PrestationType.MISE_EN_SOMMEIL,
53
+ PrestationType.FRUCTUPAIE,
54
+ PrestationType.BULLETIONS_SALAIRE,
55
+ PrestationType.DSN,
56
+ PrestationType.CREATION_DOSSIER_INFORMATIQUE_PAR_SALARIE,
57
+ PrestationType.ATTESTATION_NON_REMUNERATION,
58
+ PrestationType.ATTESTATIONS_NON_REMUNERATION,
59
+ PrestationType.ATTESTATION_CA,
60
+ PrestationType.ATTESTATION_COMPTE_COURANT,
61
+ PrestationType.DPAE,
62
+ PrestationType.ATTESTATION_MASSE_SALARIALE,
63
+ PrestationType.COMPTA_SCI,
64
+ PrestationType.COMPTA_SCI_EXPRESS,
65
+ ].includes(idPrestationList)) return 'Mensuel';
66
+ return 'Récurrent';
67
+ };
68
+
69
+ export {
70
+ isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, getDebitType, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation,
71
+ };