@silexpert/core 1.1.113 → 1.1.115

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 (272) hide show
  1. package/es/api/resources/Authenticate.d.ts +1 -1
  2. package/es/api/resources/Checklist.d.ts +3 -3
  3. package/es/api/resources/Checklist.d.ts.map +1 -1
  4. package/es/api/resources/Checklist.js +4 -4
  5. package/es/api/resources/Checklist.js.map +1 -1
  6. package/es/api/resources/Commercial.d.ts +4 -4
  7. package/es/api/resources/Commercial.d.ts.map +1 -1
  8. package/es/api/resources/Commercial.js +8 -8
  9. package/es/api/resources/Commercial.js.map +1 -1
  10. package/es/api/resources/CommercialDocument.d.ts +1 -1
  11. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  12. package/es/api/resources/CommercialDocument.js +2 -2
  13. package/es/api/resources/CommercialDocument.js.map +1 -1
  14. package/es/api/resources/Employee.d.ts +1 -1
  15. package/es/api/resources/Employee.d.ts.map +1 -1
  16. package/es/api/resources/Employee.js +2 -2
  17. package/es/api/resources/Employee.js.map +1 -1
  18. package/es/api/resources/Facturation.d.ts +2 -2
  19. package/es/api/resources/Facturation.d.ts.map +1 -1
  20. package/es/api/resources/Facturation.js +4 -4
  21. package/es/api/resources/Facturation.js.map +1 -1
  22. package/es/api/resources/Fusion.d.ts +1 -1
  23. package/es/api/resources/Invoice.d.ts +2 -2
  24. package/es/api/resources/Invoice.d.ts.map +1 -1
  25. package/es/api/resources/Invoice.js +4 -4
  26. package/es/api/resources/Invoice.js.map +1 -1
  27. package/es/api/resources/Mail.d.ts +16 -16
  28. package/es/api/resources/Mail.d.ts.map +1 -1
  29. package/es/api/resources/Mail.js +32 -32
  30. package/es/api/resources/Mail.js.map +1 -1
  31. package/es/api/resources/PartneredAccountant.d.ts +3 -3
  32. package/es/api/resources/PartneredAccountant.d.ts.map +1 -1
  33. package/es/api/resources/PartneredAccountant.js +6 -6
  34. package/es/api/resources/PartneredAccountant.js.map +1 -1
  35. package/es/api/resources/PaymentExpectationCustomer.d.ts +1 -1
  36. package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  37. package/es/api/resources/PaymentExpectationCustomer.js +2 -2
  38. package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
  39. package/es/api/resources/Product.d.ts +1 -1
  40. package/es/api/resources/Product.d.ts.map +1 -1
  41. package/es/api/resources/Product.js +2 -2
  42. package/es/api/resources/Product.js.map +1 -1
  43. package/es/api/resources/Regulate.d.ts +1 -1
  44. package/es/api/resources/Regulate.d.ts.map +1 -1
  45. package/es/api/resources/Regulate.js +2 -2
  46. package/es/api/resources/Regulate.js.map +1 -1
  47. package/es/api/resources/Report.d.ts +3 -3
  48. package/es/api/resources/Report.d.ts.map +1 -1
  49. package/es/api/resources/Report.js +6 -6
  50. package/es/api/resources/Report.js.map +1 -1
  51. package/es/api/resources/Revision.d.ts +1 -1
  52. package/es/api/resources/Revision.d.ts.map +1 -1
  53. package/es/api/resources/Revision.js +2 -2
  54. package/es/api/resources/Revision.js.map +1 -1
  55. package/es/api/resources/SalesContract.d.ts +13 -0
  56. package/es/api/resources/SalesContract.d.ts.map +1 -0
  57. package/es/api/resources/SalesContract.js +45 -0
  58. package/es/api/resources/SalesContract.js.map +1 -0
  59. package/es/api/resources/SheetMonthSchedule.d.ts +1 -1
  60. package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  61. package/es/api/resources/SheetMonthSchedule.js +2 -2
  62. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  63. package/es/api/resources/Society.d.ts +2 -2
  64. package/es/api/resources/Society.d.ts.map +1 -1
  65. package/es/api/resources/Society.js +2 -2
  66. package/es/api/resources/Society.js.map +1 -1
  67. package/es/api/resources/TaxDeadline.d.ts +3 -3
  68. package/es/api/resources/TaxDeadline.d.ts.map +1 -1
  69. package/es/api/resources/TaxDeadline.js +6 -6
  70. package/es/api/resources/TaxDeadline.js.map +1 -1
  71. package/es/api/resources/TextMessage.d.ts +3 -3
  72. package/es/api/resources/TextMessage.d.ts.map +1 -1
  73. package/es/api/resources/TextMessage.js +6 -6
  74. package/es/api/resources/TextMessage.js.map +1 -1
  75. package/es/api/resources/ThirdParty.d.ts +1 -1
  76. package/es/api/resources/ThirdParty.d.ts.map +1 -1
  77. package/es/api/resources/ThirdParty.js +2 -2
  78. package/es/api/resources/ThirdParty.js.map +1 -1
  79. package/es/api/resources/User.d.ts +1 -1
  80. package/es/api/resources/User.d.ts.map +1 -1
  81. package/es/api/resources/User.js.map +1 -1
  82. package/es/api/resources/Wallet.d.ts +2 -2
  83. package/es/api/resources/Wallet.d.ts.map +1 -1
  84. package/es/api/resources/Wallet.js +4 -4
  85. package/es/api/resources/Wallet.js.map +1 -1
  86. package/es/api/resources/prestation.d.ts +2 -2
  87. package/es/api/resources/prestation.d.ts.map +1 -1
  88. package/es/api/resources/prestation.js +4 -4
  89. package/es/api/resources/prestation.js.map +1 -1
  90. package/es/api/resources/statistic/CustomerSuccess.d.ts +1 -1
  91. package/es/api/resources/statistic/CustomerSuccess.d.ts.map +1 -1
  92. package/es/api/resources/statistic/CustomerSuccess.js +2 -2
  93. package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
  94. package/es/api/resources.d.ts +2 -0
  95. package/es/api/resources.d.ts.map +1 -1
  96. package/es/api/resources.js +2 -0
  97. package/es/api/resources.js.map +1 -1
  98. package/es/types/Enum/BrandClementine.d.ts +109 -0
  99. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  100. package/es/types/Enum/BrandClementine.js +361 -0
  101. package/es/types/Enum/BrandClementine.js.map +1 -1
  102. package/es/types/Enum/BrandPourcentage.d.ts +27 -0
  103. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  104. package/es/types/Enum/BrandPourcentage.js +173 -0
  105. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  106. package/es/types/Enum/CustomerSignature.d.ts +39 -0
  107. package/es/types/Enum/CustomerSignature.d.ts.map +1 -0
  108. package/es/types/Enum/CustomerSignature.js +41 -0
  109. package/es/types/Enum/CustomerSignature.js.map +1 -0
  110. package/es/types/Enum/JobTitle.js +5 -5
  111. package/es/types/Enum/JobTitle.js.map +1 -1
  112. package/es/types/Enum/Notification.d.ts +47 -1
  113. package/es/types/Enum/Notification.d.ts.map +1 -1
  114. package/es/types/Enum/Notification.js +273 -1
  115. package/es/types/Enum/Notification.js.map +1 -1
  116. package/es/types/Enum/PrestationType.d.ts +1 -0
  117. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  118. package/es/types/Enum/PrestationType.js +20 -5
  119. package/es/types/Enum/PrestationType.js.map +1 -1
  120. package/es/types/Enum/SalesContractConfig.d.ts +29 -0
  121. package/es/types/Enum/SalesContractConfig.d.ts.map +1 -0
  122. package/es/types/Enum/SalesContractConfig.js +2 -0
  123. package/es/types/Enum/SalesContractConfig.js.map +1 -0
  124. package/es/types/Enum/SendMethod.d.ts +5 -0
  125. package/es/types/Enum/SendMethod.d.ts.map +1 -0
  126. package/es/types/Enum/SendMethod.js +6 -0
  127. package/es/types/Enum/SendMethod.js.map +1 -0
  128. package/es/types/Interface/api/salesContract/GenerateSalesContractParams.d.ts +4 -0
  129. package/es/types/Interface/api/salesContract/GenerateSalesContractParams.d.ts.map +1 -0
  130. package/es/types/Interface/api/salesContract/GenerateSalesContractParams.js +19 -0
  131. package/es/types/Interface/api/salesContract/GenerateSalesContractParams.js.map +1 -0
  132. package/es/types/Interface/api/salesContract/SendSalesContractParams.d.ts +8 -0
  133. package/es/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -0
  134. package/es/types/Interface/api/salesContract/SendSalesContractParams.js +38 -0
  135. package/es/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -0
  136. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +1 -0
  137. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  138. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +6 -0
  139. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  140. package/es/types/index.d.ts +4 -0
  141. package/es/types/index.d.ts.map +1 -1
  142. package/es/types/index.js +4 -0
  143. package/es/types/index.js.map +1 -1
  144. package/es/utils/index.d.ts +2 -0
  145. package/es/utils/index.d.ts.map +1 -1
  146. package/es/utils/index.js +2 -0
  147. package/es/utils/index.js.map +1 -1
  148. package/es/utils/isHtml.d.ts +7 -0
  149. package/es/utils/isHtml.d.ts.map +1 -0
  150. package/es/utils/isHtml.js +10 -0
  151. package/es/utils/isHtml.js.map +1 -0
  152. package/es/utils/isUrl.d.ts +7 -0
  153. package/es/utils/isUrl.d.ts.map +1 -0
  154. package/es/utils/isUrl.js +16 -0
  155. package/es/utils/isUrl.js.map +1 -0
  156. package/js/api/resources/Checklist.js +8 -4
  157. package/js/api/resources/Checklist.js.map +1 -1
  158. package/js/api/resources/Commercial.js +16 -8
  159. package/js/api/resources/Commercial.js.map +1 -1
  160. package/js/api/resources/CommercialDocument.js +4 -2
  161. package/js/api/resources/CommercialDocument.js.map +1 -1
  162. package/js/api/resources/Employee.js +4 -2
  163. package/js/api/resources/Employee.js.map +1 -1
  164. package/js/api/resources/Facturation.js +8 -4
  165. package/js/api/resources/Facturation.js.map +1 -1
  166. package/js/api/resources/Invoice.js +8 -4
  167. package/js/api/resources/Invoice.js.map +1 -1
  168. package/js/api/resources/Mail.js +64 -32
  169. package/js/api/resources/Mail.js.map +1 -1
  170. package/js/api/resources/PartneredAccountant.js +13 -7
  171. package/js/api/resources/PartneredAccountant.js.map +1 -1
  172. package/js/api/resources/PaymentExpectationCustomer.js +4 -2
  173. package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
  174. package/js/api/resources/Product.js +4 -2
  175. package/js/api/resources/Product.js.map +1 -1
  176. package/js/api/resources/Regulate.js +4 -2
  177. package/js/api/resources/Regulate.js.map +1 -1
  178. package/js/api/resources/Report.js +12 -6
  179. package/js/api/resources/Report.js.map +1 -1
  180. package/js/api/resources/Revision.js +4 -2
  181. package/js/api/resources/Revision.js.map +1 -1
  182. package/js/api/resources/SalesContract.js +70 -0
  183. package/js/api/resources/SalesContract.js.map +1 -0
  184. package/js/api/resources/SheetMonthSchedule.js +4 -2
  185. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  186. package/js/api/resources/Society.js +4 -2
  187. package/js/api/resources/Society.js.map +1 -1
  188. package/js/api/resources/TaxDeadline.js +12 -6
  189. package/js/api/resources/TaxDeadline.js.map +1 -1
  190. package/js/api/resources/TextMessage.js +12 -6
  191. package/js/api/resources/TextMessage.js.map +1 -1
  192. package/js/api/resources/ThirdParty.js +4 -2
  193. package/js/api/resources/ThirdParty.js.map +1 -1
  194. package/js/api/resources/User.js.map +1 -1
  195. package/js/api/resources/Wallet.js +8 -4
  196. package/js/api/resources/Wallet.js.map +1 -1
  197. package/js/api/resources/prestation.js +8 -4
  198. package/js/api/resources/prestation.js.map +1 -1
  199. package/js/api/resources/statistic/CustomerSuccess.js +4 -2
  200. package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
  201. package/js/api/resources.js +2 -0
  202. package/js/api/resources.js.map +1 -1
  203. package/js/types/Enum/BrandClementine.js +328 -3
  204. package/js/types/Enum/BrandClementine.js.map +1 -1
  205. package/js/types/Enum/BrandPourcentage.js +158 -1
  206. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  207. package/js/types/Enum/CustomerSignature.js +46 -0
  208. package/js/types/Enum/CustomerSignature.js.map +1 -0
  209. package/js/types/Enum/JobTitle.js +7 -5
  210. package/js/types/Enum/JobTitle.js.map +1 -1
  211. package/js/types/Enum/Notification.js +273 -1
  212. package/js/types/Enum/Notification.js.map +1 -1
  213. package/js/types/Enum/PrestationType.js +7 -5
  214. package/js/types/Enum/PrestationType.js.map +1 -1
  215. package/js/types/Enum/SalesContractConfig.js +6 -0
  216. package/js/types/Enum/SalesContractConfig.js.map +1 -0
  217. package/js/types/Enum/SendMethod.js +11 -0
  218. package/js/types/Enum/SendMethod.js.map +1 -0
  219. package/js/types/Interface/api/salesContract/GenerateSalesContractParams.js +22 -0
  220. package/js/types/Interface/api/salesContract/GenerateSalesContractParams.js.map +1 -0
  221. package/js/types/Interface/api/salesContract/SendSalesContractParams.js +26 -0
  222. package/js/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -0
  223. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +3 -0
  224. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  225. package/js/types/index.js +40 -0
  226. package/js/types/index.js.map +1 -1
  227. package/js/utils/index.js +20 -0
  228. package/js/utils/index.js.map +1 -1
  229. package/js/utils/isHtml.js +16 -0
  230. package/js/utils/isHtml.js.map +1 -0
  231. package/js/utils/isUrl.js +21 -0
  232. package/js/utils/isUrl.js.map +1 -0
  233. package/package.json +2 -2
  234. package/ts/api/resources/Checklist.ts +4 -2
  235. package/ts/api/resources/Commercial.ts +24 -8
  236. package/ts/api/resources/CommercialDocument.ts +2 -0
  237. package/ts/api/resources/Employee.ts +2 -0
  238. package/ts/api/resources/Facturation.ts +12 -4
  239. package/ts/api/resources/Invoice.ts +4 -2
  240. package/ts/api/resources/Mail.ts +32 -16
  241. package/ts/api/resources/PartneredAccountant.ts +9 -4
  242. package/ts/api/resources/PaymentExpectationCustomer.ts +2 -0
  243. package/ts/api/resources/Product.ts +2 -0
  244. package/ts/api/resources/Regulate.ts +6 -2
  245. package/ts/api/resources/Report.ts +6 -6
  246. package/ts/api/resources/Revision.ts +6 -2
  247. package/ts/api/resources/SalesContract.ts +54 -0
  248. package/ts/api/resources/SheetMonthSchedule.ts +2 -0
  249. package/ts/api/resources/Society.ts +3 -2
  250. package/ts/api/resources/TaxDeadline.ts +6 -3
  251. package/ts/api/resources/TextMessage.ts +18 -6
  252. package/ts/api/resources/ThirdParty.ts +2 -0
  253. package/ts/api/resources/User.ts +1 -1
  254. package/ts/api/resources/Wallet.ts +4 -2
  255. package/ts/api/resources/prestation.ts +4 -3
  256. package/ts/api/resources/statistic/CustomerSuccess.ts +6 -2
  257. package/ts/api/resources.ts +2 -0
  258. package/ts/types/Enum/BrandClementine.ts +362 -0
  259. package/ts/types/Enum/BrandPourcentage.ts +174 -0
  260. package/ts/types/Enum/CustomerSignature.ts +40 -0
  261. package/ts/types/Enum/JobTitle.ts +5 -5
  262. package/ts/types/Enum/Notification.ts +286 -2
  263. package/ts/types/Enum/PrestationType.ts +21 -5
  264. package/ts/types/Enum/SalesContractConfig.ts +37 -0
  265. package/ts/types/Enum/SendMethod.ts +4 -0
  266. package/ts/types/Interface/api/salesContract/GenerateSalesContractParams.ts +8 -0
  267. package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +23 -0
  268. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +6 -0
  269. package/ts/types/index.ts +4 -0
  270. package/ts/utils/index.ts +3 -1
  271. package/ts/utils/isHtml.ts +9 -0
  272. package/ts/utils/isUrl.ts +14 -0
@@ -1,4 +1,3 @@
1
- import { CancelToken } from 'axios';
2
1
  import { Resource } from '../Resource';
3
2
  import {
4
3
  CreateInvoiceMail,
@@ -22,14 +21,16 @@ import {
22
21
  ReadInvalidFieldState,
23
22
  BasePaginate,
24
23
  } from '../../types';
24
+ import { CancelToken } from 'axios';
25
25
 
26
26
  export class Society extends Resource {
27
27
  public get(params: QuerySociety): Promise<ISociety> {
28
28
  return this.axios.$get('/society', { params });
29
29
  }
30
30
 
31
- public getPaginated(params: QueryPaginatedSociety, cancelToken?: CancelToken): Promise<BasePaginate<ISociety>> {
31
+ public getPaginated(params: QueryPaginatedSociety, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {
32
32
  return this.axios.$get('/society/paginated', {
33
+ ...(signal ? { signal } : {}),
33
34
  ...(cancelToken ? { cancelToken } : {}),
34
35
  params,
35
36
  });
@@ -5,21 +5,24 @@ import {
5
5
  } from '../../types';
6
6
 
7
7
  export class TaxDeadline extends Resource {
8
- getPaginate(params: QueryTaxDeadline & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadTaxDeadline>> {
8
+ getPaginate(params: QueryTaxDeadline & QueryPaginate, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<ReadTaxDeadline>> {
9
9
  return this.axios.$get('/taxDeadline', {
10
10
  ...(cancelToken ? { cancelToken } : {}),
11
+ ...(signal ? { signal } : {}),
11
12
  params,
12
13
  });
13
14
  }
14
- getStatistics(params: QueryTaxDeadlineStatistics, cancelToken?: CancelToken): Promise<ReadTaxDeadlineStatistics> {
15
+ getStatistics(params: QueryTaxDeadlineStatistics, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadTaxDeadlineStatistics> {
15
16
  return this.axios.$get('/taxDeadline/statistics', {
16
17
  ...(cancelToken ? { cancelToken } : {}),
18
+ ...(signal ? { signal } : {}),
17
19
  params,
18
20
  });
19
21
  }
20
- getPaginatedVat(params: QueryVatDeadlineByCollaborator & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadVatDeadline>> {
22
+ getPaginatedVat(params: QueryVatDeadlineByCollaborator & QueryPaginate, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<ReadVatDeadline>> {
21
23
  return this.axios.$get('/taxDeadline/vat', {
22
24
  ...(cancelToken ? { cancelToken } : {}),
25
+ ...(signal ? { signal } : {}),
23
26
  params,
24
27
  });
25
28
  }
@@ -12,16 +12,28 @@ import {
12
12
  import { ReadPaginatedTextMessage, ReadPaginatedTextMessageGrouped } from '../../types/Interface/api/textMessage/Read';
13
13
 
14
14
  export class TextMessage extends Resource {
15
- getPaginated(payload: QueryTextMessage & OptionalQueryPaginate, cancelToken?: CancelToken): Promise<ReadPaginatedTextMessage> {
16
- return this.axios.$get('/text-messages', { ...(cancelToken ? { cancelToken } : {}), params: payload });
15
+ getPaginated(payload: QueryTextMessage & OptionalQueryPaginate, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadPaginatedTextMessage> {
16
+ return this.axios.$get('/text-messages', {
17
+ ...(cancelToken ? { cancelToken } : {}),
18
+ ...(signal ? { signal } : {}),
19
+ params: payload,
20
+ });
17
21
  }
18
22
 
19
- getPaginatedConversations(payload: QueryTextMessageGrouped & OptionalQueryPaginate, cancelToken?: CancelToken): Promise<ReadPaginatedTextMessageGrouped> {
20
- return this.axios.$get('/text-messages/conversations', { ...(cancelToken ? { cancelToken } : {}), params: payload });
23
+ getPaginatedConversations(payload: QueryTextMessageGrouped & OptionalQueryPaginate, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadPaginatedTextMessageGrouped> {
24
+ return this.axios.$get('/text-messages/conversations', {
25
+ ...(cancelToken ? { cancelToken } : {}),
26
+ ...(signal ? { signal } : {}),
27
+ params: payload,
28
+ });
21
29
  }
22
30
 
23
- getAllBySocietyId(idSociety: number, query: QueryTextMessage, cancelToken?: CancelToken): Promise<ISms[]> {
24
- return this.axios.$get(`/societies/${idSociety}/text-messages`, { ...(cancelToken ? { cancelToken } : {}), params: query });
31
+ getAllBySocietyId(idSociety: number, query: QueryTextMessage, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ISms[]> {
32
+ return this.axios.$get(`/societies/${idSociety}/text-messages`, {
33
+ ...(cancelToken ? { cancelToken } : {}),
34
+ ...(signal ? { signal } : {}),
35
+ params: query,
36
+ });
25
37
  }
26
38
 
27
39
  send(payload: SendTextMessage): Promise<ISms> {
@@ -18,9 +18,11 @@ export class ThirdParty extends Resource {
18
18
  pagination: QueryPaginate,
19
19
  query?: QueryThirdParty,
20
20
  cancelToken?: CancelToken,
21
+ signal?: AbortSignal,
21
22
  ): Promise<BasePaginate<IThirdParty>> {
22
23
  return this.axios.$get('/third-parties/paginate', {
23
24
  ...(cancelToken ? { cancelToken } : {}),
25
+ ...(signal ? { signal } : {}),
24
26
  params: {
25
27
  ...pagination,
26
28
  ...query,
@@ -22,7 +22,7 @@ export class User extends Resource {
22
22
  verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {
23
23
  return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });
24
24
  }
25
- allFromSociety(params: QueryGetAllFromSociety): Promise<IUser> {
25
+ allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {
26
26
  return this.axios.$get('user/all-from-society', { params });
27
27
  }
28
28
  allCollaborators(params: QueryGetAllCollaborators): Promise<IUser> {
@@ -6,9 +6,10 @@ import {
6
6
  } from '../../types';
7
7
 
8
8
  export class Wallet extends Resource {
9
- get(pagination?: QueryPaginate, cancelToken?: CancelToken): Promise<(BasePaginate<ISociety>)> {
9
+ get(pagination?: QueryPaginate, cancelToken?: CancelToken, signal?: AbortSignal): Promise<(BasePaginate<ISociety>)> {
10
10
  return this.axios.$get('/juridical-wallets', {
11
11
  ...(cancelToken ? { cancelToken } : {}),
12
+ ...(signal ? { signal } : {}),
12
13
  params: {
13
14
  ...pagination,
14
15
  },
@@ -19,9 +20,10 @@ export class Wallet extends Resource {
19
20
  return this.axios.$put(`/users/${idUser}/wallets`, payload);
20
21
  }
21
22
 
22
- getPaginatedCompanyTaxes(query: QueryCompanyTaxesByCollaborater, cancelToken?: CancelToken): Promise<BasePaginate<ReadCompanyTaxWallet>> {
23
+ getPaginatedCompanyTaxes(query: QueryCompanyTaxesByCollaborater, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<ReadCompanyTaxWallet>> {
23
24
  return this.axios.$get('/wallets/company-taxes', {
24
25
  ...(cancelToken ? { cancelToken } : {}),
26
+ ...(signal ? { signal } : {}),
25
27
  params: query,
26
28
  });
27
29
  }
@@ -19,13 +19,14 @@ export class Prestation extends Resource {
19
19
  return this.axios.$get('/prestation/societies', { params });
20
20
  }
21
21
 
22
- public getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken): Promise<IPrestation[]> {
23
- return this.axios.$get(`/societies/${id}/prestations`, { ...(cancelToken ? { cancelToken } : {}), params });
22
+ public getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {
23
+ return this.axios.$get(`/societies/${id}/prestations`, { ...(cancelToken ? { cancelToken } : {}), ...(signal ? { signal } : {}), params });
24
24
  }
25
25
 
26
- public getAllSocialFromSociety(id: number, cancelToken?: CancelToken): Promise<IPrestation[]> {
26
+ public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {
27
27
  return this.axios.$get(`/societies/${id}/prestations`, {
28
28
  ...(cancelToken ? { cancelToken } : {}),
29
+ ...(signal ? { signal } : {}),
29
30
  params: {
30
31
  prestationListIds: [
31
32
  PrestationType.FRUCTUPAIE,
@@ -3,7 +3,11 @@ import { Resource } from '../../Resource';
3
3
  import { QueryCustomerSuccess } from '../../../types';
4
4
 
5
5
  export class StatisticCustomerSuccess extends Resource {
6
- public get(params: QueryCustomerSuccess, cancelToken?: CancelToken): Promise<JSON> {
7
- return this.axios.$get('/statistic-customer-success', { params, ...(cancelToken ? { cancelToken } : {}) });
6
+ public get(params: QueryCustomerSuccess, cancelToken?: CancelToken, signal?: AbortSignal): Promise<JSON> {
7
+ return this.axios.$get('/statistic-customer-success', {
8
+ params,
9
+ ...(cancelToken ? { cancelToken } : {}),
10
+ ...(signal ? { signal } : {}),
11
+ });
8
12
  }
9
13
  }
@@ -129,6 +129,7 @@ import { AccountsSector } from './resources/AccountsSectors';
129
129
  import { BusinessSector } from './resources/BusinessSector';
130
130
  import { VisualizedInformation } from './resources/VisualizedInformation';
131
131
  import { Fusion } from './resources/Fusion';
132
+ import { SalesContract } from './resources/SalesContract';
132
133
  import { LeadsToPartners } from './resources/LeadsToPartners';
133
134
  import { ChangeLog } from './resources/ChangeLog';
134
135
  import { ConstitutionHistory } from './resources/ConstitutionHistory';
@@ -265,6 +266,7 @@ export const resources = {
265
266
  businessSector: BusinessSector,
266
267
  visualizedInformation: VisualizedInformation,
267
268
  fusion: Fusion,
269
+ salesContract: SalesContract,
268
270
  leadsToPartners: LeadsToPartners,
269
271
  changeLog: ChangeLog,
270
272
  constitutionHistory: ConstitutionHistory,
@@ -1,3 +1,5 @@
1
+ import { PrestationType, allPrestationsWithBrochure, PrestationDetail } from './PrestationType';
2
+
1
3
  export const BrandClementine = [
2
4
  {
3
5
  idTypeBrand: 1,
@@ -108,6 +110,178 @@ export const BrandClementine = [
108
110
  name: 'Télétravail',
109
111
  },
110
112
  },
113
+ salesContractConfig: [
114
+ // pour les pages statiques
115
+ {
116
+ label: 'Page d\'introduction',
117
+ name: 'page_intro',
118
+ needBgImage: true,
119
+ versionable: false,
120
+ idPrestationType: allPrestationsWithBrochure,
121
+ },
122
+ {
123
+ label: 'Page chiffres',
124
+ name: 'page_numbers',
125
+ needBgImage: true,
126
+ versionable: false,
127
+ idPrestationType: allPrestationsWithBrochure,
128
+ },
129
+ {
130
+ label: 'Page simplifié',
131
+ name: 'page_simplified',
132
+ needBgImage: true,
133
+ versionable: false,
134
+ idPrestationType: allPrestationsWithBrochure,
135
+ },
136
+ {
137
+ label: 'Détail de la lettre de mission',
138
+ name: 'page_detail_ldm',
139
+ needBgImage: false,
140
+ versionable: false,
141
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
142
+ },
143
+ {
144
+ label: 'Détail de la lettre de mission (express)',
145
+ name: 'page_detail_ldm_back',
146
+ needBgImage: false,
147
+ versionable: false,
148
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
149
+ },
150
+ // pour les pages dynamiques
151
+ {
152
+ label: 'Compta Pro',
153
+ name: 'bloc_compta_pro',
154
+ needBgImage: false,
155
+ versionable: true,
156
+ idPrestationType: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],
157
+ keyName: 'isWithApplicationFees',
158
+ },
159
+ {
160
+ label: 'Compta Entreprise',
161
+ name: 'bloc_compta_entreprise',
162
+ needBgImage: false,
163
+ versionable: true,
164
+ keyName: 'isWithApplicationFees',
165
+ idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
166
+ condition: (turnover: number): boolean => turnover < 900000,
167
+ },
168
+ {
169
+ label: 'Compta Entreprise sur mesure',
170
+ name: 'bloc_compta_entreprise_sm',
171
+ needBgImage: false,
172
+ versionable: true,
173
+ keyName: 'isWithApplicationFees',
174
+ idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
175
+ condition: (turnover: number): boolean => turnover >= 900000,
176
+ },
177
+ {
178
+ label: 'Compta Micro',
179
+ name: 'bloc_compta_micro',
180
+ needBgImage: false,
181
+ versionable: true,
182
+ idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
183
+ keyName: 'isWithApplicationFees',
184
+ },
185
+ {
186
+ label: 'Compta SCI',
187
+ name: 'bloc_compta_sci',
188
+ needBgImage: false,
189
+ versionable: true,
190
+ idPrestationType: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],
191
+ keyName: 'isWithApplicationFees',
192
+ },
193
+ {
194
+ label: 'Forfait social',
195
+ name: 'bloc_social',
196
+ needBgImage: false,
197
+ versionable: true,
198
+ idPrestationType: allPrestationsWithBrochure,
199
+ keyName: 'idPrestationSocial',
200
+ },
201
+ {
202
+ label: 'Forfait création société',
203
+ name: 'bloc_creation',
204
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.COMPTA_MICRO_EXPRESS && p !== PrestationType.COMPTA_MICRO),
205
+ needBgImage: false,
206
+ versionable: true,
207
+ keyName: 'idPrestationCreation',
208
+ },
209
+ {
210
+ label: 'Forfait création société (Création d\'entreprise gratuite)',
211
+ name: 'bloc_creation_free',
212
+ idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
213
+ needBgImage: false,
214
+ versionable: true,
215
+ keyName: 'idPrestationCreation',
216
+ },
217
+ {
218
+ label: 'Forfait approbation des comptes annuels',
219
+ name: 'bloc_annual_accounts',
220
+ needBgImage: false,
221
+ idPrestationType: allPrestationsWithBrochure,
222
+ versionable: true,
223
+ keyName: 'idPrestationJuridique',
224
+ },
225
+ {
226
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu 249€ HT/an',
227
+ name: 'bloc_tax_return',
228
+ needBgImage: false,
229
+ idPrestationType: allPrestationsWithBrochure,
230
+ versionable: true,
231
+ keyName: 'idPrestationSocial',
232
+ },
233
+ {
234
+ label: 'Accompagnement contrôle fiscal à 149€ HT/ exercice',
235
+ name: 'bloc_tax_audit',
236
+ needBgImage: false,
237
+ idPrestationType: allPrestationsWithBrochure,
238
+ versionable: true,
239
+ keyName: 'idPrestationSocial',
240
+ },
241
+ {
242
+ label: 'Bilan Prévisionnel',
243
+ name: 'bloc_bilan_previsionnel',
244
+ needBgImage: false,
245
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
246
+ versionable: true,
247
+ keyName: 'prestationOptions',
248
+ },
249
+ {
250
+ label: 'Signature',
251
+ name: 'bloc_sign',
252
+ needBgImage: false,
253
+ idPrestationType: allPrestationsWithBrochure,
254
+ versionable: false,
255
+ },
256
+ {
257
+ label: 'Conditions Générals de Vente (CGV) 1/2',
258
+ name: 'bloc_cgv_first',
259
+ needBgImage: false,
260
+ idPrestationType: allPrestationsWithBrochure,
261
+ versionable: false,
262
+ },
263
+ {
264
+ label: 'Conditions Générals de Vente (CGV) 2/2',
265
+ name: 'bloc_cgv_second',
266
+ needBgImage: false,
267
+ idPrestationType: allPrestationsWithBrochure,
268
+ versionable: false,
269
+ },
270
+ {
271
+ label: 'Mandat de prélèvement SEPA',
272
+ name: 'bloc_sepa',
273
+ needBgImage: false,
274
+ idPrestationType: allPrestationsWithBrochure,
275
+ versionable: false,
276
+ },
277
+ {
278
+ label: 'Pièces à nous envoyer',
279
+ name: 'bloc_send_files',
280
+ needBgImage: false,
281
+ idPrestationType: allPrestationsWithBrochure,
282
+ versionable: false,
283
+ },
284
+ ],
111
285
  },
112
286
  {
113
287
  idTypeBrand: 2,
@@ -170,6 +344,22 @@ export const BrandClementine = [
170
344
  vatIntracom: 'FR47752566687',
171
345
  email: 'facturation@compta-clementine.fr',
172
346
  },
347
+ salesContractConfig: [
348
+ {
349
+ label: 'Page d\'introduction',
350
+ name: 'page_intro',
351
+ needBgImage: true,
352
+ versionable: false,
353
+ idPrestationType: allPrestationsWithBrochure,
354
+ },
355
+ {
356
+ label: 'Page chiffres',
357
+ name: 'page_numbers',
358
+ needBgImage: true,
359
+ versionable: false,
360
+ idPrestationType: allPrestationsWithBrochure,
361
+ },
362
+ ],
173
363
  },
174
364
  {
175
365
  idTypeBrand: 4,
@@ -234,5 +424,177 @@ export const BrandClementine = [
234
424
  vatIntracom: 'FR47752566687',
235
425
  email: 'facturation@compta-clementine.fr',
236
426
  },
427
+ salesContractConfig: [
428
+ // pour les pages statiques
429
+ {
430
+ label: 'Page d\'introduction',
431
+ name: 'page_intro',
432
+ needBgImage: true,
433
+ versionable: false,
434
+ idPrestationType: allPrestationsWithBrochure,
435
+ },
436
+ {
437
+ label: 'Page chiffres',
438
+ name: 'page_numbers',
439
+ needBgImage: true,
440
+ versionable: false,
441
+ idPrestationType: allPrestationsWithBrochure,
442
+ },
443
+ {
444
+ label: 'Page simplifié',
445
+ name: 'page_simplified',
446
+ needBgImage: true,
447
+ versionable: false,
448
+ idPrestationType: allPrestationsWithBrochure,
449
+ },
450
+ {
451
+ label: 'Détail de la lettre de mission',
452
+ name: 'page_detail_ldm',
453
+ needBgImage: false,
454
+ versionable: false,
455
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
456
+ },
457
+ {
458
+ label: 'Détail de la lettre de mission (express)',
459
+ name: 'page_detail_ldm_back',
460
+ needBgImage: false,
461
+ versionable: false,
462
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack === true && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
463
+ },
464
+ // pour les pages dynamiques
465
+ {
466
+ label: 'Compta Pro',
467
+ name: 'bloc_compta_pro',
468
+ needBgImage: false,
469
+ versionable: true,
470
+ idPrestationType: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],
471
+ keyName: 'isWithApplicationFees',
472
+ },
473
+ {
474
+ label: 'Compta Entreprise',
475
+ name: 'bloc_compta_entreprise',
476
+ needBgImage: false,
477
+ versionable: true,
478
+ keyName: 'isWithApplicationFees',
479
+ idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
480
+ condition: (turnover: number): boolean => turnover < 900000,
481
+ },
482
+ {
483
+ label: 'Compta Entreprise sur mesure',
484
+ name: 'bloc_compta_entreprise_sm',
485
+ needBgImage: false,
486
+ versionable: true,
487
+ keyName: 'isWithApplicationFees',
488
+ idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
489
+ condition: (turnover: number): boolean => turnover >= 900000,
490
+ },
491
+ {
492
+ label: 'Compta Micro',
493
+ name: 'bloc_compta_micro',
494
+ needBgImage: false,
495
+ versionable: true,
496
+ idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
497
+ keyName: 'isWithApplicationFees',
498
+ },
499
+ {
500
+ label: 'Compta SCI',
501
+ name: 'bloc_compta_sci',
502
+ needBgImage: false,
503
+ versionable: true,
504
+ idPrestationType: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],
505
+ keyName: 'isWithApplicationFees',
506
+ },
507
+ {
508
+ label: 'Forfait social',
509
+ name: 'bloc_social',
510
+ needBgImage: false,
511
+ versionable: true,
512
+ idPrestationType: allPrestationsWithBrochure,
513
+ keyName: 'idPrestationSocial',
514
+ },
515
+ {
516
+ label: 'Forfait création société',
517
+ name: 'bloc_creation',
518
+ idPrestationType: allPrestationsWithBrochure,
519
+ needBgImage: false,
520
+ versionable: true,
521
+ keyName: 'idPrestationCreation',
522
+ },
523
+ {
524
+ label: 'Forfait création société (Création d\'entreprise gratuite)',
525
+ name: 'bloc_creation_free',
526
+ idPrestationType: allPrestationsWithBrochure,
527
+ needBgImage: false,
528
+ versionable: true,
529
+ keyName: 'idPrestationCreation',
530
+ },
531
+ {
532
+ label: 'Forfait approbation des comptes annuels',
533
+ name: 'bloc_annual_accounts',
534
+ needBgImage: false,
535
+ idPrestationType: allPrestationsWithBrochure,
536
+ versionable: true,
537
+ keyName: 'idPrestationJuridique',
538
+ },
539
+ {
540
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu 249€ HT/an',
541
+ name: 'bloc_tax_return',
542
+ needBgImage: false,
543
+ idPrestationType: allPrestationsWithBrochure,
544
+ versionable: true,
545
+ keyName: 'idPrestationSocial',
546
+ },
547
+ {
548
+ label: 'Accompagnement contrôle fiscal à 149€ HT/ exercice',
549
+ name: 'bloc_tax_audit',
550
+ needBgImage: false,
551
+ idPrestationType: allPrestationsWithBrochure,
552
+ versionable: true,
553
+ keyName: 'idPrestationSocial',
554
+ },
555
+ {
556
+ label: 'Bilan Prévisionnel',
557
+ name: 'bloc_bilan_previsionnel',
558
+ needBgImage: false,
559
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
560
+ versionable: true,
561
+ keyName: 'prestationOptions',
562
+ },
563
+ {
564
+ label: 'Signature',
565
+ name: 'bloc_sign',
566
+ needBgImage: false,
567
+ idPrestationType: allPrestationsWithBrochure,
568
+ versionable: false,
569
+ },
570
+ {
571
+ label: 'Conditions Générals de Vente (CGV) 1/2',
572
+ name: 'bloc_cgv_first',
573
+ needBgImage: false,
574
+ idPrestationType: allPrestationsWithBrochure,
575
+ versionable: false,
576
+ },
577
+ {
578
+ label: 'Conditions Générals de Vente (CGV) 2/2',
579
+ name: 'bloc_cgv_second',
580
+ needBgImage: false,
581
+ idPrestationType: allPrestationsWithBrochure,
582
+ versionable: false,
583
+ },
584
+ {
585
+ label: 'Mandat de prélèvement SEPA',
586
+ name: 'bloc_sepa',
587
+ needBgImage: false,
588
+ idPrestationType: allPrestationsWithBrochure,
589
+ versionable: false,
590
+ },
591
+ {
592
+ label: 'Pièces à nous envoyer',
593
+ name: 'bloc_send_files',
594
+ needBgImage: false,
595
+ idPrestationType: allPrestationsWithBrochure,
596
+ versionable: false,
597
+ },
598
+ ],
237
599
  },
238
600
  ];