@silexpert/core 1.3.95 → 1.3.96-0

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 (167) hide show
  1. package/dist/cjs/api/resources/BalanceSheetReport.d.ts +10 -0
  2. package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/BalanceSheetReport.js +23 -0
  4. package/dist/cjs/api/resources/BalanceSheetReport.js.map +1 -0
  5. package/dist/cjs/api/resources/Refund.d.ts +1 -1
  6. package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Refund.js.map +1 -1
  8. package/dist/cjs/api/resources/Society.d.ts +2 -1
  9. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Society.js +3 -0
  11. package/dist/cjs/api/resources/Society.js.map +1 -1
  12. package/dist/cjs/api/resources/Team.d.ts +1 -15
  13. package/dist/cjs/api/resources/Team.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Team.js +0 -18
  15. package/dist/cjs/api/resources/Team.js.map +1 -1
  16. package/dist/cjs/api/resources.d.ts +2 -0
  17. package/dist/cjs/api/resources.d.ts.map +1 -1
  18. package/dist/cjs/api/resources.js +2 -0
  19. package/dist/cjs/api/resources.js.map +1 -1
  20. package/dist/cjs/types/Enum/BalanceSheet.d.ts +2 -2
  21. package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
  22. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  23. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  24. package/dist/cjs/types/Enum/PrestationType.js +29 -22
  25. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  26. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +22 -7
  28. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  30. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
  32. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +40 -0
  34. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
  35. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +207 -0
  36. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
  37. package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
  38. package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +4 -0
  40. package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -3
  42. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -0
  45. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/api/registration/CreateRegistration.js +6 -0
  47. package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  48. package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts +5 -4
  49. package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js +13 -0
  51. package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
  52. package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts +5 -0
  53. package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts.map +1 -0
  54. package/dist/cjs/types/Interface/api/{team/QueryUpdateTeamsForUser.js → society/QueryToArchived.js} +10 -9
  55. package/dist/cjs/types/Interface/api/society/QueryToArchived.js.map +1 -0
  56. package/dist/cjs/types/Interface/models/IAttestation.d.ts +20 -18
  57. package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  58. package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
  59. package/dist/cjs/types/index.d.ts +2 -1
  60. package/dist/cjs/types/index.d.ts.map +1 -1
  61. package/dist/cjs/types/index.js +2 -1
  62. package/dist/cjs/types/index.js.map +1 -1
  63. package/dist/mjs/api/resources/BalanceSheetReport.d.ts +10 -0
  64. package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
  65. package/dist/mjs/api/resources/BalanceSheetReport.js +22 -0
  66. package/dist/mjs/api/resources/BalanceSheetReport.js.map +1 -0
  67. package/dist/mjs/api/resources/Refund.d.ts +1 -1
  68. package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
  69. package/dist/mjs/api/resources/Refund.js.map +1 -1
  70. package/dist/mjs/api/resources/Society.d.ts +2 -1
  71. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/Society.js +3 -0
  73. package/dist/mjs/api/resources/Society.js.map +1 -1
  74. package/dist/mjs/api/resources/Team.d.ts +1 -15
  75. package/dist/mjs/api/resources/Team.d.ts.map +1 -1
  76. package/dist/mjs/api/resources/Team.js +0 -18
  77. package/dist/mjs/api/resources/Team.js.map +1 -1
  78. package/dist/mjs/api/resources.d.ts +2 -0
  79. package/dist/mjs/api/resources.d.ts.map +1 -1
  80. package/dist/mjs/api/resources.js +2 -0
  81. package/dist/mjs/api/resources.js.map +1 -1
  82. package/dist/mjs/types/Enum/BalanceSheet.d.ts +2 -2
  83. package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
  84. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  85. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  86. package/dist/mjs/types/Enum/PrestationType.js +29 -22
  87. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  88. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  89. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +22 -7
  90. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  91. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  92. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  93. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +8 -0
  94. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  95. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +40 -0
  96. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
  97. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +200 -0
  98. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
  99. package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
  100. package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
  101. package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +5 -0
  102. package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  103. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -3
  104. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  105. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  106. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -0
  107. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  108. package/dist/mjs/types/Interface/api/registration/CreateRegistration.js +7 -0
  109. package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  110. package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts +5 -4
  111. package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
  112. package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js +14 -0
  113. package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
  114. package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts +5 -0
  115. package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts.map +1 -0
  116. package/dist/mjs/types/Interface/api/{team/QueryUpdateTeamsForUser.js → society/QueryToArchived.js} +11 -10
  117. package/dist/mjs/types/Interface/api/society/QueryToArchived.js.map +1 -0
  118. package/dist/mjs/types/Interface/models/IAttestation.d.ts +20 -18
  119. package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  120. package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
  121. package/dist/mjs/types/index.d.ts +2 -1
  122. package/dist/mjs/types/index.d.ts.map +1 -1
  123. package/dist/mjs/types/index.js +2 -1
  124. package/dist/mjs/types/index.js.map +1 -1
  125. package/package.json +14 -14
  126. package/ts/api/resources/BalanceSheetReport.ts +36 -0
  127. package/ts/api/resources/Refund.ts +1 -1
  128. package/ts/api/resources/Society.ts +5 -2
  129. package/ts/api/resources/Team.ts +1 -22
  130. package/ts/api/resources.ts +2 -0
  131. package/ts/types/Enum/BalanceSheet.ts +2 -2
  132. package/ts/types/Enum/PrestationType.ts +29 -22
  133. package/ts/types/Enum/SalesContractBrandClementine.ts +22 -7
  134. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +6 -0
  135. package/ts/types/Interface/api/balanceSheetReport/Query.ts +160 -0
  136. package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +3 -0
  137. package/ts/types/Interface/api/config/ConfigType.ts +0 -3
  138. package/ts/types/Interface/api/registration/CreateRegistration.ts +5 -0
  139. package/ts/types/Interface/api/shopify/InvoicesShopify.ts +19 -4
  140. package/ts/types/Interface/api/society/QueryToArchived.ts +10 -0
  141. package/ts/types/Interface/models/IAttestation.ts +20 -18
  142. package/ts/types/index.ts +2 -1
  143. package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +0 -4
  144. package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +0 -1
  145. package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +0 -1
  146. package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +0 -5
  147. package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +0 -1
  148. package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.js +0 -28
  149. package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +0 -1
  150. package/dist/cjs/types/Interface/api/team/index.d.ts +0 -6
  151. package/dist/cjs/types/Interface/api/team/index.d.ts.map +0 -1
  152. package/dist/cjs/types/Interface/api/team/index.js +0 -22
  153. package/dist/cjs/types/Interface/api/team/index.js.map +0 -1
  154. package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +0 -4
  155. package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +0 -1
  156. package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +0 -1
  157. package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +0 -5
  158. package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +0 -1
  159. package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.js +0 -26
  160. package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +0 -1
  161. package/dist/mjs/types/Interface/api/team/index.d.ts +0 -6
  162. package/dist/mjs/types/Interface/api/team/index.d.ts.map +0 -1
  163. package/dist/mjs/types/Interface/api/team/index.js +0 -6
  164. package/dist/mjs/types/Interface/api/team/index.js.map +0 -1
  165. package/ts/types/Interface/api/team/QueryUpdateTeamsForUser.ts +0 -9
  166. package/ts/types/Interface/api/team/QueryUpdateUserTeam.ts +0 -12
  167. package/ts/types/Interface/api/team/index.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.95",
3
+ "version": "1.3.96-0",
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": "dist/cjs/index.js",
@@ -32,29 +32,29 @@
32
32
  "author": "Silex",
33
33
  "license": "ISC",
34
34
  "devDependencies": {
35
- "@babel/cli": "^7.28.0",
36
- "@babel/core": "^7.28.0",
37
- "@babel/plugin-transform-runtime": "^7.28.0",
38
- "@babel/preset-env": "^7.28.0",
39
- "@babel/runtime": "^7.28.2",
35
+ "@babel/cli": "^7.26.4",
36
+ "@babel/core": "^7.22.11",
37
+ "@babel/plugin-transform-runtime": "^7.22.10",
38
+ "@babel/preset-env": "^7.22.10",
39
+ "@babel/runtime": "^7.22.11",
40
40
  "@types/bluebird": "^3.5.34",
41
41
  "@types/browser-or-node": "^1.3.0",
42
42
  "@types/ejs": "^3.0.6",
43
43
  "@types/node": "^22.10.5",
44
- "@types/validator": "^13.15.2",
45
- "babel-plugin-replace-import-extension": "^1.1.5",
44
+ "@types/validator": "^13.11.1",
45
+ "babel-plugin-replace-import-extension": "^1.1.3",
46
46
  "babel-preset-env": "^1.7.0",
47
- "eslint": "^9.32.0",
47
+ "eslint": "^9.17.0",
48
48
  "eslint-config-airbnb-typescript": "^18.0.0",
49
- "eslint-config-prettier": "^10.1.8",
49
+ "eslint-config-prettier": "^9.1.0",
50
50
  "husky": "^9.1.7",
51
- "prettier": "^3.6.2",
51
+ "prettier": "^3.4.2",
52
52
  "reflect-metadata": "^0.2.2",
53
53
  "rimraf": "^6.0.1",
54
54
  "standard-version": "^9.3.0",
55
55
  "ts-node": "^10.9.2",
56
- "typescript": "5.9.2",
57
- "typescript-eslint": "^8.39.0"
56
+ "typescript": "5.8.2",
57
+ "typescript-eslint": "^8.19.1"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@babel/runtime": "^7.6.3",
@@ -68,7 +68,7 @@
68
68
  "axios": "0.22.0",
69
69
  "browser-or-node": "^3.0.0",
70
70
  "class-transformer": "^0.5.1",
71
- "class-validator": "^0.14.2",
71
+ "class-validator": "^0.14.0",
72
72
  "dayjs": "^1.11.11",
73
73
  "ejs": "^3.1.9",
74
74
  "libphonenumber-js": "^1.12.10",
@@ -0,0 +1,36 @@
1
+ import {
2
+ BasePaginate,
3
+ IAttestation,
4
+ ParamsBalanceSheetReportGeneratePdf,
5
+ ParamsBalanceSheetReportCreate,
6
+ QueryBalanceSheetReportPaginated,
7
+ } from '../../types';
8
+ import { Resource } from '../Resource';
9
+
10
+ export class BalanceSheetReport extends Resource {
11
+ public getPaginated(
12
+ params: QueryBalanceSheetReportPaginated,
13
+ signal?: AbortSignal,
14
+ ): Promise<BasePaginate<IAttestation>> {
15
+ return this.axios.$get('balance-sheets/reports/paginated', {
16
+ ...(signal ? { signal } : {}),
17
+ params,
18
+ });
19
+ }
20
+
21
+ create(data: ParamsBalanceSheetReportCreate): Promise<number> {
22
+ return this.axios.$post('balance-sheets/reports', data);
23
+ }
24
+
25
+ generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation> {
26
+ return this.axios.$post(`balance-sheets/reports/${idReport}/pdf`, data);
27
+ }
28
+
29
+ update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation> {
30
+ return this.axios.$put(`balance-sheets/reports/${idReport}`, data);
31
+ }
32
+
33
+ delete(idReport: number): Promise<number> {
34
+ return this.axios.$delete(`balance-sheets/reports/${idReport}`);
35
+ }
36
+ }
@@ -9,7 +9,7 @@ export class Refund extends Resource {
9
9
  return this.axios.$patch(`/refunds/${id}`, { ...params });
10
10
  }
11
11
 
12
- public getPaginated(query: QueryRefundPaginated, signal?: AbortSignal): Promise<BasePaginate<Refund>> {
12
+ public getPaginated(query: QueryRefundPaginated, signal?: AbortSignal): Promise<BasePaginate<IRefund>> {
13
13
  return this.axios.$get('/refunds', { params: query, ...(signal ? { signal } : {}) });
14
14
  }
15
15
 
@@ -29,10 +29,9 @@ import {
29
29
  ReadSocietyUnpaidStats,
30
30
  DataCustomersCsv,
31
31
  ReadCurrentPrestations,
32
- IComment,
32
+ QueryToArchivedSociety,
33
33
  } from '../../types';
34
34
  import { CancelToken } from 'axios';
35
- import { User } from './User';
36
35
 
37
36
  export class Society extends Resource {
38
37
  public get(params: QuerySociety): Promise<ISociety> {
@@ -138,6 +137,10 @@ export class Society extends Resource {
138
137
  return this.axios.$get('/society/archived', { params: query });
139
138
  }
140
139
 
140
+ getToArchived(query: QueryToArchivedSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {
141
+ return this.axios.$get('/society/to-archived', { params: query, ...(signal ? { signal } : {}) });
142
+ }
143
+
141
144
  getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {
142
145
  return this.axios.$get('/society/unpaids', {
143
146
  ...(signal ? { signal } : {}),
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam, QueryUpdateTeamsForUser, IUserTeam } from '../../types';
2
+ import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam } from '../../types';
3
3
 
4
4
  export class Team extends Resource {
5
5
  /**
@@ -27,7 +27,6 @@ export class Team extends Resource {
27
27
  delete(id: number): Promise<number> {
28
28
  return this.axios.$delete(`/teams/${id}`);
29
29
  }
30
-
31
30
  /**
32
31
  * Should return all records in Team table with includes
33
32
  * @param { QueryGetAllTeamsWithIncludes } params
@@ -36,24 +35,4 @@ export class Team extends Resource {
36
35
  getAll(params: QueryGetAllTeamsWithIncludes): Promise<ITeam[]> {
37
36
  return this.axios.$get('/teams/all', { params });
38
37
  }
39
-
40
- /**
41
- * Should update teams for a specific user
42
- * @param { number } userId
43
- * @param { QueryUpdateTeamsForUser } payload
44
- * @returns { IUserTeam[] }
45
- */
46
- updateTeamsForUser(userId: number, payload: QueryUpdateTeamsForUser): Promise<IUserTeam[]> {
47
- return this.axios.$put(`/teams/user/${userId}/teams`, payload);
48
- }
49
-
50
- /**
51
- * Should delete an user attach to a team
52
- * @param { number } teamId
53
- * @param { number } userId
54
- * @returns { number }
55
- */
56
- deleteUserFromTeam(teamId: number, userId: number): Promise<number> {
57
- return this.axios.$delete(`/teams/${teamId}/user/${userId}`);
58
- }
59
38
  }
@@ -179,6 +179,7 @@ import { StatisticLegal } from './resources/statistic/Legal';
179
179
  import { AnalyticsUtm } from './resources/AnalyticsUtm';
180
180
  import { Caarl } from './resources/Caarl';
181
181
  import { Gdpr } from './resources/Gdpr';
182
+ import { BalanceSheetReport } from './resources/BalanceSheetReport';
182
183
 
183
184
  export const resources = {
184
185
  budgetInsight: BudgetInsight,
@@ -362,4 +363,5 @@ export const resources = {
362
363
  analyticsUtm: AnalyticsUtm,
363
364
  caarl: Caarl,
364
365
  gdpr: Gdpr,
366
+ balanceSheetReport: BalanceSheetReport,
365
367
  };
@@ -164,7 +164,7 @@ export const BalanceSheetDetails = [
164
164
  text: 'Standby',
165
165
  color: 'grey lighten-1',
166
166
  textColor: 'grey--text',
167
- forRoles: [['admin'], ['super_admin'], ['controle_interne']],
167
+ forRoles: [['admin'], ['super_admin'], ['controle_interne'], ['satisfaction']],
168
168
  },
169
169
  {
170
170
  text: 'Impayé',
@@ -229,7 +229,7 @@ export const BalanceSheetDetails = [
229
229
  value: BalanceSheetState.FIX_IN_PROGRESS,
230
230
  color: 'blue darken-4',
231
231
  textColor: 'blue--text',
232
- forRoles: [['front_office'], ['expert']],
232
+ forRoles: [['front_office'], ['expert'], ['satisfaction']],
233
233
  },
234
234
  {
235
235
  text: "Accepté SIE en l'état",
@@ -228,6 +228,13 @@ export const allPrestations2025WithBrochure = [
228
228
  PrestationType.SOCIAL,
229
229
  PrestationType.GESTION_JURIDIQUE,
230
230
  PrestationType.CONSULTING_HOUR,
231
+ PrestationType.ATTESTATION_REMUNERATION,
232
+ PrestationType.ATTESTATION_NON_REMUNERATION,
233
+ PrestationType.ATTESTATION_CA,
234
+ PrestationType.ATTESTATION_COMPTE_COURANT,
235
+ PrestationType.ATTESTATION_MASSE_SALARIALE,
236
+ PrestationType.ATTESTATION_1,
237
+ PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
231
238
  ];
232
239
 
233
240
  export const ClementineSubscriptionAccountancyExpertPrestations: PrestationType[] = [
@@ -1150,7 +1157,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1150
1157
  },
1151
1158
  CESSION_ACTIONS: {
1152
1159
  id: 51,
1153
- name: 'Cession d\'actions',
1160
+ name: "Cession d'actions",
1154
1161
  isComptable: false,
1155
1162
  isJuridique: true,
1156
1163
  isSocial: false,
@@ -1207,7 +1214,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1207
1214
  },
1208
1215
  MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SASU_EURL: {
1209
1216
  id: 54,
1210
- name: 'Modification d\'un dirigeant ou d\'un commissaire aux compte (SASU / EURL)',
1217
+ name: "Modification d'un dirigeant ou d'un commissaire aux compte (SASU / EURL)",
1211
1218
  isComptable: false,
1212
1219
  isJuridique: true,
1213
1220
  isSocial: false,
@@ -1359,7 +1366,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1359
1366
  },
1360
1367
  MODIFICATION_OBJET_SOCIAL_EURL_SASU: {
1361
1368
  id: 62,
1362
- name: 'Modification de l\'objet social (EURL/SASU)',
1369
+ name: "Modification de l'objet social (EURL/SASU)",
1363
1370
  isComptable: false,
1364
1371
  isJuridique: true,
1365
1372
  isSocial: false,
@@ -1701,7 +1708,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1701
1708
  },
1702
1709
  CREATION_DOSSIER_INFORMATIQUE_PAR_SALARIE: {
1703
1710
  id: 80,
1704
- name: 'Création d\'un dossier informatique par salarié',
1711
+ name: "Création d'un dossier informatique par salarié",
1705
1712
  isComptable: false,
1706
1713
  isJuridique: false,
1707
1714
  isSocial: true,
@@ -1720,7 +1727,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1720
1727
  },
1721
1728
  ETABLISSEMENT_CONTRAT_TRAVAIL: {
1722
1729
  id: 81,
1723
- name: 'Etablissement d\'un contrat de travail',
1730
+ name: "Etablissement d'un contrat de travail",
1724
1731
  isComptable: false,
1725
1732
  isJuridique: false,
1726
1733
  isSocial: true,
@@ -1739,7 +1746,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1739
1746
  },
1740
1747
  ATTESTATION_SALAIRE: {
1741
1748
  id: 82,
1742
- name: 'Attestation de salaire',
1749
+ name: 'Rapport de salaire',
1743
1750
  isComptable: false,
1744
1751
  isJuridique: false,
1745
1752
  isSocial: true,
@@ -1777,7 +1784,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1777
1784
  },
1778
1785
  TAXE_APPRENTISSAGE_ET_FORMATION_CONTINUE: {
1779
1786
  id: 84,
1780
- name: 'Taxe d\'apprentissage et formation continue',
1787
+ name: "Taxe d'apprentissage et formation continue",
1781
1788
  isComptable: false,
1782
1789
  isJuridique: false,
1783
1790
  isSocial: true,
@@ -1967,7 +1974,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1967
1974
  },
1968
1975
  ATTESTATION_REMUNERATION: {
1969
1976
  id: 95,
1970
- name: 'Attestation de rémunération',
1977
+ name: 'Rapport de rémunération',
1971
1978
  isComptable: true,
1972
1979
  isJuridique: false,
1973
1980
  isSocial: false,
@@ -1987,7 +1994,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1987
1994
  // FIXME: Doublon ?
1988
1995
  ATTESTATION_NON_REMUNERATION: {
1989
1996
  id: 96,
1990
- name: 'Attestation de non-rémunération',
1997
+ name: 'Rapport de non-rémunération',
1991
1998
  isComptable: true,
1992
1999
  isJuridique: false,
1993
2000
  isSocial: false,
@@ -2006,7 +2013,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2006
2013
  },
2007
2014
  ATTESTATION_CA: {
2008
2015
  id: 97,
2009
- name: 'Attestation de chiffre d\'affaires',
2016
+ name: "Rapport de chiffre d'affaires",
2010
2017
  isComptable: true,
2011
2018
  isJuridique: false,
2012
2019
  isSocial: false,
@@ -2025,7 +2032,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2025
2032
  },
2026
2033
  ATTESTATION_COMPTE_COURANT: {
2027
2034
  id: 98,
2028
- name: 'Attestation de compte-courant',
2035
+ name: 'Rapport de compte-courant',
2029
2036
  isComptable: true,
2030
2037
  isJuridique: false,
2031
2038
  isSocial: false,
@@ -2044,7 +2051,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2044
2051
  },
2045
2052
  MAJ_ADRESSE_PERSONNELLE_DIRIGEANT_SUR_KBIS: {
2046
2053
  id: 99,
2047
- name: 'Mise à jour de l\'adresse personnelle du dirigeant sur le Kbis',
2054
+ name: "Mise à jour de l'adresse personnelle du dirigeant sur le Kbis",
2048
2055
  isComptable: false,
2049
2056
  isJuridique: true,
2050
2057
  isSocial: false,
@@ -2082,7 +2089,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2082
2089
  },
2083
2090
  MODIFICATION_OBJET_SOCIAL_SARL_SAS_SCI: {
2084
2091
  id: 103,
2085
- name: 'Modification de l\'objet social (SARL/SAS/SCI)',
2092
+ name: "Modification de l'objet social (SARL/SAS/SCI)",
2086
2093
  isComptable: false,
2087
2094
  isJuridique: true,
2088
2095
  isSocial: false,
@@ -2139,7 +2146,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2139
2146
  },
2140
2147
  MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SAS_SARL_SCI: {
2141
2148
  id: 106,
2142
- name: 'Modification d’un dirigeant ou d\'un commissaire aux compte (SAS / SARL / SCI)',
2149
+ name: "Modification d’un dirigeant ou d'un commissaire aux compte (SAS / SARL / SCI)",
2143
2150
  isComptable: false,
2144
2151
  isJuridique: true,
2145
2152
  isSocial: false,
@@ -2310,7 +2317,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2310
2317
  },
2311
2318
  ATTESTATION_DE_SALAIRE_MALADIE: {
2312
2319
  id: 116,
2313
- name: 'Attestation de salaire maladie',
2320
+ name: 'Rapport de salaire maladie',
2314
2321
  isComptable: true,
2315
2322
  isJuridique: false,
2316
2323
  isSocial: false,
@@ -2538,7 +2545,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2538
2545
  },
2539
2546
  ATTESTATION_MASSE_SALARIALE: {
2540
2547
  id: 128,
2541
- name: 'Attestation de masse salariale',
2548
+ name: 'Rapport de masse salariale',
2542
2549
  isComptable: true,
2543
2550
  isJuridique: false,
2544
2551
  isSocial: false,
@@ -2709,7 +2716,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2709
2716
  },
2710
2717
  CONTRAT_APPORT_EN_NATURE: {
2711
2718
  id: 138,
2712
- name: 'Contrat d\'apport en nature',
2719
+ name: "Contrat d'apport en nature",
2713
2720
  isComptable: false,
2714
2721
  isJuridique: true,
2715
2722
  isSocial: false,
@@ -3184,7 +3191,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3184
3191
  },
3185
3192
  ATTESTATION_NON_REMUNERATION_RECURRENTE: {
3186
3193
  id: 200,
3187
- name: 'Attestation non remunération recurrente',
3194
+ name: 'Rapport non remunération recurrente',
3188
3195
  isComptable: true,
3189
3196
  isJuridique: false,
3190
3197
  isSocial: false,
@@ -3298,7 +3305,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3298
3305
  },
3299
3306
  DECLARATION_IR: {
3300
3307
  id: 206,
3301
- name: 'Déclaration d\'IR',
3308
+ name: "Déclaration d'IR",
3302
3309
  isComptable: true,
3303
3310
  isJuridique: false,
3304
3311
  isSocial: false,
@@ -3412,7 +3419,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3412
3419
  },
3413
3420
  STATUTS_FREE: {
3414
3421
  id: PrestationType.STATUTS_FREE,
3415
- name: 'Statuts - Just\' Statuts',
3422
+ name: "Statuts - Just' Statuts",
3416
3423
  isComptable: true,
3417
3424
  isJuridique: true,
3418
3425
  isSocial: false,
@@ -3431,7 +3438,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3431
3438
  },
3432
3439
  STATUTS_OPTION_1: {
3433
3440
  id: PrestationType.STATUTS_OPTION_1,
3434
- name: 'Statuts - Just\' Création',
3441
+ name: "Statuts - Just' Création",
3435
3442
  isComptable: true,
3436
3443
  isJuridique: true,
3437
3444
  isSocial: false,
@@ -3450,7 +3457,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3450
3457
  },
3451
3458
  STATUTS_OPTION_2: {
3452
3459
  id: PrestationType.STATUTS_OPTION_2,
3453
- name: 'Statuts - Full\'Créa',
3460
+ name: "Statuts - Full'Créa",
3454
3461
  isComptable: true,
3455
3462
  isJuridique: true,
3456
3463
  isSocial: false,
@@ -8,14 +8,14 @@ import {
8
8
 
9
9
  export const SalesContractClementine: SaleContract[] = [
10
10
  {
11
- label: 'Page d\'introduction',
11
+ label: "Page d'introduction",
12
12
  name: 'page_intro',
13
13
  needBgImage: true,
14
14
  versionable: false,
15
15
  idPrestationType: allPrestationsWithBrochure,
16
16
  },
17
17
  {
18
- label: 'Page d\'introduction 2025',
18
+ label: "Page d'introduction 2025",
19
19
  name: 'page_intro_2025',
20
20
  needBgImage: true,
21
21
  versionable: false,
@@ -170,6 +170,21 @@ export const SalesContractClementine: SaleContract[] = [
170
170
  idPrestationType: [PrestationType.GESTION_IMMO],
171
171
  versionable: false,
172
172
  },
173
+ {
174
+ label: 'Rapport 2025',
175
+ name: 'bloc_rapport_2025',
176
+ needBgImage: false,
177
+ idPrestationType: [
178
+ PrestationType.ATTESTATION_REMUNERATION,
179
+ PrestationType.ATTESTATION_NON_REMUNERATION,
180
+ PrestationType.ATTESTATION_CA,
181
+ PrestationType.ATTESTATION_COMPTE_COURANT,
182
+ PrestationType.ATTESTATION_MASSE_SALARIALE,
183
+ PrestationType.ATTESTATION_1,
184
+ PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
185
+ ],
186
+ versionable: false,
187
+ },
173
188
  {
174
189
  label: 'Page simplifié',
175
190
  name: 'page_simplified',
@@ -267,7 +282,7 @@ export const SalesContractClementine: SaleContract[] = [
267
282
  keyName: 'idPrestationCreation',
268
283
  },
269
284
  {
270
- label: 'Forfait création société (Création d\'entreprise gratuite)',
285
+ label: "Forfait création société (Création d'entreprise gratuite)",
271
286
  name: 'bloc_creation_free',
272
287
  idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
273
288
  needBgImage: false,
@@ -297,7 +312,7 @@ export const SalesContractClementine: SaleContract[] = [
297
312
  keyName: 'idPrestationJuridique',
298
313
  },
299
314
  {
300
- label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
315
+ label: "Prise en charge de votre déclaration d'impôts sur le revenu",
301
316
  name: 'bloc_tax_return',
302
317
  needBgImage: false,
303
318
  idPrestationType: [],
@@ -403,7 +418,7 @@ export const SalesContractClementine: SaleContract[] = [
403
418
  export const SalesContractKlems: SaleContract[] = [
404
419
  // pour les pages statiques
405
420
  {
406
- label: 'Page d\'introduction',
421
+ label: "Page d'introduction",
407
422
  name: 'page_intro',
408
423
  needBgImage: true,
409
424
  versionable: false,
@@ -536,7 +551,7 @@ export const SalesContractKlems: SaleContract[] = [
536
551
  keyName: 'idPrestationSocial',
537
552
  },
538
553
  {
539
- label: 'Forfait Création d\'entreprise (TTC)',
554
+ label: "Forfait Création d'entreprise (TTC)",
540
555
  name: 'bloc_creation_entreprise_ttc',
541
556
  idPrestationType: [
542
557
  PrestationType.SOCIAL,
@@ -550,7 +565,7 @@ export const SalesContractKlems: SaleContract[] = [
550
565
  keyName: 'idPrestationCreation',
551
566
  },
552
567
  {
553
- label: 'Forfait Création d\'entreprise (HT)',
568
+ label: "Forfait Création d'entreprise (HT)",
554
569
  name: 'bloc_creation_entreprise_ht',
555
570
  idPrestationType: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
556
571
  needBgImage: false,
@@ -86,4 +86,10 @@ export class QueryPaginatedAccountingFile {
86
86
  @IsDateString()
87
87
  @IsOptional()
88
88
  endDate?: string;
89
+
90
+ @ApiPropertyOptional()
91
+ @IsBoolean()
92
+ @ToBoolean()
93
+ @IsOptional()
94
+ notAttached?: boolean;
89
95
  }
@@ -0,0 +1,160 @@
1
+ import { IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+ import { RequiredQueryPaginate } from '../BasePaginate';
5
+
6
+ export class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsString()
10
+ declare search?: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsBoolean()
15
+ @ToBoolean()
16
+ declare signed?: boolean;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsInt()
21
+ declare factured?: number;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsInt()
26
+ declare idSupervisor?: number;
27
+ }
28
+
29
+ export class ParamsBalanceSheetReportCreate {
30
+ @ApiProperty()
31
+ @IsInt()
32
+ declare idSociety: number;
33
+
34
+ @ApiProperty()
35
+ @IsInt()
36
+ declare idExercice: number;
37
+
38
+ @ApiProperty()
39
+ @IsInt()
40
+ declare idPrestationList: number;
41
+
42
+ @ApiProperty()
43
+ @IsInt()
44
+ declare idSupervisor: number;
45
+
46
+ @ApiProperty()
47
+ @IsInt()
48
+ declare price: number;
49
+
50
+ @ApiProperty()
51
+ @IsBoolean()
52
+ @ToBoolean()
53
+ declare annoted: boolean;
54
+
55
+ @ApiProperty()
56
+ @IsInt()
57
+ declare factured: number;
58
+ }
59
+
60
+ export class ParamsBalanceSheetReportGeneratePdf {
61
+ @ApiProperty()
62
+ @IsBoolean()
63
+ @ToBoolean()
64
+ declare isSigned: boolean;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsOptional()
68
+ @IsString()
69
+ declare comment?: string;
70
+ }
71
+
72
+ export class ParamsBalanceSheetReportUpdate {
73
+ @ApiPropertyOptional()
74
+ @IsOptional()
75
+ @IsInt()
76
+ declare price?: number;
77
+
78
+ @ApiPropertyOptional()
79
+ @IsOptional()
80
+ @IsInt()
81
+ declare idPrestationList?: number;
82
+
83
+ @ApiPropertyOptional()
84
+ @IsOptional()
85
+ @IsInt()
86
+ declare idExercice?: number;
87
+
88
+ @ApiPropertyOptional()
89
+ @IsOptional()
90
+ @IsInt()
91
+ declare idSociety?: number;
92
+
93
+ @ApiPropertyOptional()
94
+ @IsOptional()
95
+ @IsInt()
96
+ declare idSupervisor?: number;
97
+
98
+ @ApiPropertyOptional()
99
+ @IsOptional()
100
+ @IsInt()
101
+ declare idUserDemand?: number;
102
+
103
+ @ApiPropertyOptional()
104
+ @IsOptional()
105
+ @IsInt()
106
+ declare idPaymentExpectation?: number;
107
+
108
+ @ApiPropertyOptional()
109
+ @IsOptional()
110
+ @IsInt()
111
+ declare idFile?: number;
112
+
113
+ @ApiPropertyOptional()
114
+ @IsOptional()
115
+ @IsInt()
116
+ declare idGedFile?: number;
117
+
118
+ @ApiPropertyOptional()
119
+ @IsOptional()
120
+ @IsBoolean()
121
+ @ToBoolean()
122
+ declare annoted?: boolean;
123
+
124
+ @ApiPropertyOptional()
125
+ @IsOptional()
126
+ @IsInt()
127
+ declare factured?: number;
128
+
129
+ @ApiPropertyOptional()
130
+ @IsOptional()
131
+ @IsDate()
132
+ declare sendDate?: Date;
133
+
134
+ @ApiPropertyOptional()
135
+ @IsOptional()
136
+ @IsString()
137
+ declare textPdf?: string;
138
+
139
+ @ApiPropertyOptional()
140
+ @IsOptional()
141
+ @IsBoolean()
142
+ @ToBoolean()
143
+ declare isSign?: boolean;
144
+
145
+ @ApiPropertyOptional()
146
+ @IsOptional()
147
+ @IsBoolean()
148
+ @ToBoolean()
149
+ declare done?: boolean;
150
+
151
+ @ApiPropertyOptional()
152
+ @IsOptional()
153
+ @IsInt()
154
+ declare idMailValidation?: number;
155
+
156
+ @ApiPropertyOptional()
157
+ @IsOptional()
158
+ @IsInt()
159
+ declare idMailPayment?: number;
160
+ }
@@ -37,6 +37,9 @@ export class UpdateCalendarEvent {
37
37
  @ApiPropertyOptional()
38
38
  idUser?: number;
39
39
 
40
+ @ApiPropertyOptional()
41
+ idUserToUpdate?: number;
42
+
40
43
  @ApiPropertyOptional()
41
44
  typeComptable?: number;
42
45