@silexpert/core 1.1.403 → 1.1.405

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 (86) hide show
  1. package/dist/cjs/types/Enum/BankAccountType.d.ts +1 -0
  2. package/dist/cjs/types/Enum/BankAccountType.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/BankAccountType.js.map +1 -1
  4. package/dist/cjs/types/Enum/Role.d.ts +2 -1
  5. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/Role.js +1 -0
  7. package/dist/cjs/types/Enum/Role.js.map +1 -1
  8. package/dist/cjs/types/Enum/RoleDetail.d.ts +12 -0
  9. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/RoleDetail.js +12 -0
  11. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  12. package/dist/cjs/types/Enum/StockType.js +1 -1
  13. package/dist/cjs/types/Enum/StockType.js.map +1 -1
  14. package/dist/cjs/types/Enum/TimeSlot.d.ts +2 -1
  15. package/dist/cjs/types/Enum/TimeSlot.d.ts.map +1 -1
  16. package/dist/cjs/types/Enum/TimeSlot.js +22 -15
  17. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  18. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts +2 -6
  19. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -1
  20. package/dist/cjs/types/Enum/TypeSupportForNotation.js +0 -1
  21. package/dist/cjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +1 -0
  23. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/toDoExpress/Query.js +6 -0
  25. package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
  26. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +2 -0
  27. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  29. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +2 -0
  30. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  32. package/dist/cjs/utils/commercialManagement/recovery.d.ts.map +1 -1
  33. package/dist/cjs/utils/commercialManagement/recovery.js +2 -2
  34. package/dist/cjs/utils/commercialManagement/recovery.js.map +1 -1
  35. package/dist/cjs/utils/email.d.ts.map +1 -1
  36. package/dist/cjs/utils/email.js +5 -2
  37. package/dist/cjs/utils/email.js.map +1 -1
  38. package/dist/mjs/types/Enum/BankAccountType.d.ts +1 -0
  39. package/dist/mjs/types/Enum/BankAccountType.d.ts.map +1 -1
  40. package/dist/mjs/types/Enum/BankAccountType.js.map +1 -1
  41. package/dist/mjs/types/Enum/Role.d.ts +2 -1
  42. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  43. package/dist/mjs/types/Enum/Role.js +1 -0
  44. package/dist/mjs/types/Enum/Role.js.map +1 -1
  45. package/dist/mjs/types/Enum/RoleDetail.d.ts +12 -0
  46. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  47. package/dist/mjs/types/Enum/RoleDetail.js +12 -0
  48. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  49. package/dist/mjs/types/Enum/StockType.js +1 -1
  50. package/dist/mjs/types/Enum/StockType.js.map +1 -1
  51. package/dist/mjs/types/Enum/TimeSlot.d.ts +2 -1
  52. package/dist/mjs/types/Enum/TimeSlot.d.ts.map +1 -1
  53. package/dist/mjs/types/Enum/TimeSlot.js +8 -1
  54. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  55. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts +2 -6
  56. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -1
  57. package/dist/mjs/types/Enum/TypeSupportForNotation.js +0 -1
  58. package/dist/mjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  59. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +1 -0
  60. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
  61. package/dist/mjs/types/Interface/api/toDoExpress/Query.js +7 -0
  62. package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
  63. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +2 -0
  64. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  66. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +2 -0
  67. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  68. package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  69. package/dist/mjs/utils/commercialManagement/recovery.d.ts.map +1 -1
  70. package/dist/mjs/utils/commercialManagement/recovery.js +2 -2
  71. package/dist/mjs/utils/commercialManagement/recovery.js.map +1 -1
  72. package/dist/mjs/utils/email.d.ts.map +1 -1
  73. package/dist/mjs/utils/email.js +4 -1
  74. package/dist/mjs/utils/email.js.map +1 -1
  75. package/package.json +1 -1
  76. package/ts/types/Enum/BankAccountType.ts +3 -1
  77. package/ts/types/Enum/Role.ts +1 -0
  78. package/ts/types/Enum/RoleDetail.ts +12 -0
  79. package/ts/types/Enum/StockType.ts +1 -1
  80. package/ts/types/Enum/TimeSlot.ts +8 -1
  81. package/ts/types/Enum/TypeSupportForNotation.ts +0 -1
  82. package/ts/types/Interface/api/toDoExpress/Query.ts +5 -0
  83. package/ts/types/Interface/models/IBankAccount.ts +2 -0
  84. package/ts/types/Interface/models/ISocietyGescom.ts +2 -0
  85. package/ts/utils/commercialManagement/recovery.ts +2 -2
  86. package/ts/utils/email.ts +3 -1
@@ -48,6 +48,7 @@ export enum Role {
48
48
  CONFIRMED = 53,
49
49
  SENIOR = 54,
50
50
  TECHNICAL_ADVISOR = 55,
51
+ RATING = 56,
51
52
  }
52
53
 
53
54
  export const RoleAllowedToLogInAsClient = [
@@ -490,4 +490,16 @@ export const RoleDetail = {
490
490
  cnVpn: 'COMPTABLE',
491
491
  isGrade: false,
492
492
  },
493
+ RATING: {
494
+ id: Role.RATING,
495
+ name: 'Notation',
496
+ colorPrimary: '#5894EF',
497
+ colorSecondary: '#DAEEFC',
498
+ handledInUserSocietyPermissionTable: false,
499
+ isService: false,
500
+ subRole: false,
501
+ isInWebmail: false,
502
+ cnVpn: 'COMPTABLE',
503
+ isGrade: false,
504
+ },
493
505
  };
@@ -64,7 +64,7 @@ export const StockType: stockInterface = {
64
64
  },
65
65
  STOCK_REAL_ESTATE: {
66
66
  designation: 'Stock de marchands de biens immobiliers',
67
- idAccount: 372,
67
+ idAccount: 373,
68
68
  idAccountVariation: 428,
69
69
  idAccountDepreciation: 392,
70
70
  },
@@ -34,6 +34,7 @@ export enum TimeSlotCategory {
34
34
  JURIDIC = 2,
35
35
  BILLING = 3,
36
36
  SPECIALISED = 4,
37
+ SALES = 5,
37
38
  }
38
39
 
39
40
  /**
@@ -78,6 +79,11 @@ export const TimeSlotCategoryDetail:TimeSlotCategoryDetailType[] = [
78
79
  name: 'Conseils spécialisés',
79
80
  description: 'Vous souhaitez une explication de vos comptes annuels ? Vous avez des questions très pointues ou un besoin d\'information spécifique ? Nous sommes là pour vous accompagner !',
80
81
  },
82
+ {
83
+ id: TimeSlotCategory.SALES,
84
+ name: 'Commercial',
85
+ description: 'Vous souhaitez un devis, une prestation complémentaire ? Prenez rendez-vous avec votre commercial',
86
+ },
81
87
  ];
82
88
 
83
89
  export const TimeSlotDetail:TimeSlotDetailType[] = [
@@ -162,7 +168,8 @@ export const TimeSlotDetail:TimeSlotDetailType[] = [
162
168
  id: TimeSlot.SALES,
163
169
  name: 'Rdv commercial',
164
170
  internalName: 'Rdv Commercial',
165
- duration: 20,
171
+ category: TimeSlotCategoryDetail.find(c => c.id === TimeSlotCategory.SALES)?.name,
172
+ duration: 30,
166
173
  idRole:[Role.COMMERCIAL],
167
174
  forWholeService: false,
168
175
  idTimeCounterType: TimeCounterType.CALENDLY.id,
@@ -1,5 +1,4 @@
1
1
  export const TypeSupportForNotation = [
2
2
  { value: 1, text: 'Google', src: 'https://lh3.googleusercontent.com/COxitqgJr1sJnIDe8-jiKhxDx1FrYbtRHKJ9z_hELisAlapwE9LUPh6fcXIfb5vwpbMl4xl9H9TRFPc5NOO8Sb3VSgIBrfRYvW6cUA' },
3
3
  { value: 2, text: 'Trustpilot', src: 'https://logowik.com/content/uploads/images/trustpilot2525.jpg' },
4
- { value: 3, text: 'Application client' },
5
4
  ];
@@ -34,6 +34,11 @@ export class QueryToDoExpressPaginated extends RequiredQueryPaginate {
34
34
  @IsBoolean()
35
35
  @ToBoolean()
36
36
  facturationState?: boolean;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsInt()
41
+ missionAcceptationState?: number;
37
42
 
38
43
  @ApiPropertyOptional()
39
44
  @IsOptional()
@@ -7,6 +7,7 @@ import { IBalanceBankAccount } from './IBalanceBankAccount';
7
7
  import { ISimulation } from './ISimulation';
8
8
  import { IUpToDateBankAccount } from './IUpToDateBankAccount';
9
9
  import { StateSynchro } from '../../Enum/StateSynchro';
10
+ import { BankAccountSubType } from '../../Enum/BankAccountType';
10
11
 
11
12
  // bankAccounts
12
13
  export interface IBankAccount {
@@ -29,6 +30,7 @@ export interface IBankAccount {
29
30
  amountStart: number | null;
30
31
  dateStart: Date | null;
31
32
  errorCode: string | null;
33
+ subType?: BankAccountSubType | null;
32
34
  idPartnerType: number | null;
33
35
  idAccount: number | null;
34
36
  idBankList: number | null;
@@ -1,4 +1,5 @@
1
1
  import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
2
+ import { IFile } from './IFile';
2
3
 
3
4
  // societyGescom
4
5
  export interface ISocietyGescom {
@@ -62,6 +63,7 @@ export interface ISocietyGescom {
62
63
  externalBorderType?: string | null;
63
64
  externalBorderColor?: string | null;
64
65
  idRibFile?: number | null;
66
+ ribFile?: IFile | null;
65
67
  createdAt?: Date | null;
66
68
  updatedAt?: Date | null;
67
69
  }
@@ -2,11 +2,11 @@ import { PaymentRecoveryStatus, PaymentRecoveryTag, Vat } from '../../types';
2
2
 
3
3
  const CARL_RECOVERY_FEES_PERCENTAGE = 15;
4
4
  const CARL_RECOVERY_REDUCED_FEES_PERCENTAGE = 10;
5
- const CAARL_MINIMUM_AMOUNT_FOR_REDUCED_FEES = 5001;
5
+ const CAARL_MINIMUM_AMOUNT_FOR_REDUCED_FEES = 5000;
6
6
 
7
7
  export const CAARL_WAITING_STATUS: PaymentRecoveryStatus[] = [PaymentRecoveryStatus.OPENED, PaymentRecoveryStatus.SENT_TO_AMICABLE, PaymentRecoveryStatus.AMICABLE_SETTLEMENT, PaymentRecoveryStatus.SENT_TO_COURT, PaymentRecoveryStatus.FEES_PAID, PaymentRecoveryStatus.IP_SUBMITTED_TO_COURT, PaymentRecoveryStatus.IP_OK, PaymentRecoveryStatus.IP_SIGNIFIED, PaymentRecoveryStatus.CUSTOM_RECOVERED, PaymentRecoveryStatus.CUSTOM_CANCELLATION];
8
8
  export const CAARL_RECOVERED_STATUS: PaymentRecoveryStatus[] = [PaymentRecoveryStatus.CLOSED_PAYED];
9
- export const CAARL_NOT_RECOVERED_STATUS: PaymentRecoveryStatus[] = [PaymentRecoveryStatus.CLOSED_DISPUTE, PaymentRecoveryStatus.CLOSED_FAILED, PaymentRecoveryStatus.CLOSED_RJ, PaymentRecoveryStatus.CLOSED_LJ, PaymentRecoveryStatus.CLOSED_IP_KO];
9
+ export const CAARL_NOT_RECOVERED_STATUS: PaymentRecoveryStatus[] = [PaymentRecoveryStatus.CLOSED_DISPUTE, PaymentRecoveryStatus.CLOSED_FAILED, PaymentRecoveryStatus.CLOSED_RJ, PaymentRecoveryStatus.CLOSED_LJ, PaymentRecoveryStatus.CLOSED_IP_KO, PaymentRecoveryStatus.CLOSED];
10
10
 
11
11
  export function getRecoveryFeesFromAmountTotalTaxIncluded(amount: number): number {
12
12
 
package/ts/utils/email.ts CHANGED
@@ -282,12 +282,14 @@ export function generateSignature(params: any): string {
282
282
 
283
283
  // Si on a une société, alors on remplace le lien calendly de base par le lien calendly interne
284
284
  // on n'affiche uniquement si le collaboreatur a bien des créneaux horaires
285
- if (society?.id && user?.roles?.some((r: any) => [Role.FRONT_OFFICE, Role.FACTURATION, Role.JURIDIC].includes(r.id)) && user?.usersTimeSlots?.length) {
285
+ if (society?.id && user?.roles?.some((r: any) => [Role.FRONT_OFFICE, Role.FACTURATION, Role.JURIDIC, Role.COMMERCIAL ].includes(r.id)) && user?.usersTimeSlots?.length) {
286
286
  const isJuridic = user?.roles?.some((r: any) => [Role.JURIDIC].includes(r.id));
287
287
  const isFactu = user?.roles?.some((r: any) => [Role.FACTURATION].includes(r.id));
288
+ const isCommercial = user?.roles?.some((r: any) => [Role.COMMERCIAL].includes(r.id));
288
289
  let idType = TimeSlot.ACCOUNTING_RDV;
289
290
  if (isJuridic) idType = TimeSlot.EDIT_SOCIETY;
290
291
  if (isFactu) idType = TimeSlot.BILLING;
292
+ if (isCommercial) idType = TimeSlot.SALES;
291
293
  const urlApp = getBrandConfig({ objectWaited: 'urlApp' }) as unknown as string;
292
294
  user.calendlyUrl = `${urlApp}/appointment?uuid=${society?.externalId ? society.externalId : ''}&idType=${idType}`;
293
295
  }