@silexpert/core 1.1.377 → 1.1.378

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 (68) hide show
  1. package/dist/cjs/api/resources/Employee.d.ts +1 -1
  2. package/dist/cjs/api/resources/Employee.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Employee.js.map +1 -1
  4. package/dist/cjs/api/resources/NafCode.d.ts +3 -2
  5. package/dist/cjs/api/resources/NafCode.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/NafCode.js.map +1 -1
  7. package/dist/cjs/api/resources/SheetMonthSchedule.d.ts +1 -1
  8. package/dist/cjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  9. package/dist/cjs/api/resources/SheetMonthSchedule.js.map +1 -1
  10. package/dist/cjs/api/resources/Society.d.ts +2 -1
  11. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  12. package/dist/cjs/api/resources/Society.js +3 -0
  13. package/dist/cjs/api/resources/Society.js.map +1 -1
  14. package/dist/cjs/types/Enum/Ged.js +1 -1
  15. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  16. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  17. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
  19. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/society/State.d.ts +14 -0
  21. package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/society/State.js +3 -0
  23. package/dist/cjs/types/Interface/api/society/State.js.map +1 -0
  24. package/dist/cjs/types/index.d.ts +1 -0
  25. package/dist/cjs/types/index.d.ts.map +1 -1
  26. package/dist/cjs/types/index.js +1 -0
  27. package/dist/cjs/types/index.js.map +1 -1
  28. package/dist/cjs/utils/bankAccount.js +1 -1
  29. package/dist/cjs/utils/bankAccount.js.map +1 -1
  30. package/dist/mjs/api/resources/Employee.d.ts +1 -1
  31. package/dist/mjs/api/resources/Employee.d.ts.map +1 -1
  32. package/dist/mjs/api/resources/Employee.js.map +1 -1
  33. package/dist/mjs/api/resources/NafCode.d.ts +3 -2
  34. package/dist/mjs/api/resources/NafCode.d.ts.map +1 -1
  35. package/dist/mjs/api/resources/NafCode.js.map +1 -1
  36. package/dist/mjs/api/resources/SheetMonthSchedule.d.ts +1 -1
  37. package/dist/mjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/SheetMonthSchedule.js.map +1 -1
  39. package/dist/mjs/api/resources/Society.d.ts +2 -1
  40. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  41. package/dist/mjs/api/resources/Society.js +3 -0
  42. package/dist/mjs/api/resources/Society.js.map +1 -1
  43. package/dist/mjs/types/Enum/Ged.js +1 -1
  44. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  45. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  46. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  47. package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
  48. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  49. package/dist/mjs/types/Interface/api/society/State.d.ts +14 -0
  50. package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -0
  51. package/dist/mjs/types/Interface/api/society/State.js +2 -0
  52. package/dist/mjs/types/Interface/api/society/State.js.map +1 -0
  53. package/dist/mjs/types/index.d.ts +1 -0
  54. package/dist/mjs/types/index.d.ts.map +1 -1
  55. package/dist/mjs/types/index.js +1 -0
  56. package/dist/mjs/types/index.js.map +1 -1
  57. package/dist/mjs/utils/bankAccount.js +1 -1
  58. package/dist/mjs/utils/bankAccount.js.map +1 -1
  59. package/package.json +1 -1
  60. package/ts/api/resources/Employee.ts +1 -1
  61. package/ts/api/resources/NafCode.ts +3 -2
  62. package/ts/api/resources/SheetMonthSchedule.ts +1 -1
  63. package/ts/api/resources/Society.ts +5 -0
  64. package/ts/types/Enum/Ged.ts +1 -1
  65. package/ts/types/Enum/ReasonTerminationType.ts +6 -0
  66. package/ts/types/Interface/api/society/State.ts +14 -0
  67. package/ts/types/index.ts +1 -0
  68. package/ts/utils/bankAccount.ts +1 -1
@@ -1,10 +1,11 @@
1
+ import { INafCode } from '../../types';
1
2
  import { Resource } from '../Resource';
2
3
 
3
4
  export class NafCode extends Resource {
4
- getAll(): Promise<NafCode[]> {
5
+ getAll(): Promise<INafCode[]> {
5
6
  return this.axios.$get('/naf-codes');
6
7
  }
7
- get(id: number): Promise<NafCode> {
8
+ get(id: number): Promise<INafCode> {
8
9
  return this.axios.$get(`/naf-codes/${id}`);
9
10
  }
10
11
  }
@@ -38,7 +38,7 @@ export class SheetMonthSchedule extends Resource {
38
38
  params: QuerySheetMonthSchedule,
39
39
  cancelToken?: CancelToken,
40
40
  signal?: AbortSignal,
41
- ): Promise<BasePaginate<SheetMonthSchedule>> {
41
+ ): Promise<BasePaginate<ISheetMonthSchedule>> {
42
42
  return this.axios.$get('/sheet-month-schedules', {
43
43
  ...(cancelToken ? { cancelToken } : {}),
44
44
  ...(signal ? { signal } : {}),
@@ -24,6 +24,7 @@ import {
24
24
  QueryArchivedSociety,
25
25
  QueryExportSociety,
26
26
  QueryAccountingExport,
27
+ GetSocietyState,
27
28
  } from '../../types';
28
29
  import { CancelToken } from 'axios';
29
30
 
@@ -146,4 +147,8 @@ export class Society extends Resource {
146
147
  },
147
148
  });
148
149
  }
150
+
151
+ getState(idSociety: number): Promise<GetSocietyState> {
152
+ return this.axios.$get(`/societies/${idSociety}/states`);
153
+ }
149
154
  }
@@ -163,7 +163,7 @@ export const SignFileDetail = [
163
163
  export const JuridicalSignFileDetail = [
164
164
  {
165
165
  id: TypeFile.STATUTES_PROJECT,
166
- name: 'Statut définitif',
166
+ name: 'Statuts définitifs',
167
167
  idGedFolder: GedFolder.JURIDICAL,
168
168
  },
169
169
  {
@@ -20,6 +20,7 @@ export enum ReasonTerminationType {
20
20
  SERVICE_DELAYS = 19,
21
21
  LACK_OF_ADVICE = 20,
22
22
  NA = 21,
23
+ LACK_OF_COMMUNICATION = 22,
23
24
  }
24
25
 
25
26
  export const ReasonTerminationTypeDetail = [
@@ -123,6 +124,11 @@ export const ReasonTerminationTypeDetail = [
123
124
  label: 'Manque de conseil',
124
125
  active: true,
125
126
  },
127
+ {
128
+ id:ReasonTerminationType.LACK_OF_COMMUNICATION,
129
+ label: 'Manque de communication',
130
+ active: true,
131
+ },
126
132
  {
127
133
  id:ReasonTerminationType.NA,
128
134
  label: 'Non précisé',
@@ -0,0 +1,14 @@
1
+ import { TerminationListState, TerminationListType } from '../../../Enum/TerminationList';
2
+ import { ITerminationList } from '../../models/ITerminationList';
3
+
4
+ interface SocietyStateTerminationInfo {
5
+ effectiveDate: Date;
6
+ idTerminationState: TerminationListState;
7
+ idTerminationType: TerminationListType;
8
+ }
9
+
10
+ export interface GetSocietyState {
11
+ isUniquelySocial: boolean;
12
+ terminationInfos: SocietyStateTerminationInfo | null;
13
+ terminations: ITerminationList[]
14
+ }
package/ts/types/index.ts CHANGED
@@ -1045,6 +1045,7 @@ export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
1045
1045
  export * from './Interface/api/authentification/ResetPassword';
1046
1046
  export * from './Interface/api/authentification/ForgotPassword';
1047
1047
  export * from './Interface/api/society/Export';
1048
+ export * from './Interface/api/society/State';
1048
1049
  export * from './Interface/api/businessSector/Create';
1049
1050
  export * from './Interface/api/businessSector/Query';
1050
1051
  export * from './Interface/api/businessSector/Delete';
@@ -18,7 +18,7 @@ export function getSynchronizationState(params: IBankAccount, dateOfTermination?
18
18
  * Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
19
19
  */
20
20
  if (params.idPartnerType && params.lastUpdate &&
21
- [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
21
+ [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT, PartnerTransactionType.STRIPE].includes(params.idPartnerType)
22
22
  &&
23
23
  (
24
24
  (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) || // si lastUpdate = date du jour OU