@silexpert/core 1.1.163 → 1.1.165

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 (141) hide show
  1. package/dist/cjs/api/resources/DubiousCustomer.d.ts +9 -0
  2. package/dist/cjs/api/resources/DubiousCustomer.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/DubiousCustomer.js +20 -0
  4. package/dist/cjs/api/resources/DubiousCustomer.js.map +1 -0
  5. package/dist/cjs/api/resources/Society.d.ts +2 -1
  6. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Society.js +3 -0
  8. package/dist/cjs/api/resources/Society.js.map +1 -1
  9. package/dist/cjs/api/resources/Subscription.d.ts +2 -0
  10. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Subscription.js +3 -0
  12. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  13. package/dist/cjs/api/resources.d.ts +2 -0
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +2 -0
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BrandPourcentage.js +91 -1
  19. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  20. package/dist/cjs/types/Enum/Contract.d.ts +4 -0
  21. package/dist/cjs/types/Enum/Contract.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/Contract.js +11 -1
  23. package/dist/cjs/types/Enum/Contract.js.map +1 -1
  24. package/dist/cjs/types/Enum/Log.d.ts +8 -1
  25. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  26. package/dist/cjs/types/Enum/Log.js +7 -0
  27. package/dist/cjs/types/Enum/Log.js.map +1 -1
  28. package/dist/cjs/types/Enum/PartnerType.d.ts +4 -0
  29. package/dist/cjs/types/Enum/PartnerType.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/PartnerType.js +6 -1
  31. package/dist/cjs/types/Enum/PartnerType.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  33. package/dist/cjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
  35. package/dist/cjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  37. package/dist/cjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
  39. package/dist/cjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  40. package/dist/cjs/types/Interface/api/dubiousCustomer/Create.d.ts +9 -0
  41. package/dist/cjs/types/Interface/api/dubiousCustomer/Create.d.ts.map +1 -0
  42. package/dist/cjs/types/Interface/api/dubiousCustomer/Create.js +63 -0
  43. package/dist/cjs/types/Interface/api/dubiousCustomer/Create.js.map +1 -0
  44. package/dist/cjs/types/Interface/api/dubiousCustomer/Update.d.ts +10 -0
  45. package/dist/cjs/types/Interface/api/dubiousCustomer/Update.d.ts.map +1 -0
  46. package/dist/cjs/types/Interface/api/dubiousCustomer/Update.js +61 -0
  47. package/dist/cjs/types/Interface/api/dubiousCustomer/Update.js.map +1 -0
  48. package/dist/cjs/types/Interface/api/society/Export.d.ts +69 -0
  49. package/dist/cjs/types/Interface/api/society/Export.d.ts.map +1 -0
  50. package/dist/cjs/types/Interface/api/society/Export.js +37 -0
  51. package/dist/cjs/types/Interface/api/society/Export.js.map +1 -0
  52. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  53. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  55. package/dist/cjs/types/Interface/models/IDubiousCustomer.d.ts +26 -0
  56. package/dist/cjs/types/Interface/models/IDubiousCustomer.d.ts.map +1 -0
  57. package/dist/cjs/types/Interface/models/IDubiousCustomer.js +3 -0
  58. package/dist/cjs/types/Interface/models/IDubiousCustomer.js.map +1 -0
  59. package/dist/cjs/types/index.d.ts +4 -0
  60. package/dist/cjs/types/index.d.ts.map +1 -1
  61. package/dist/cjs/types/index.js +4 -0
  62. package/dist/cjs/types/index.js.map +1 -1
  63. package/dist/mjs/api/resources/DubiousCustomer.d.ts +9 -0
  64. package/dist/mjs/api/resources/DubiousCustomer.d.ts.map +1 -0
  65. package/dist/mjs/api/resources/DubiousCustomer.js +16 -0
  66. package/dist/mjs/api/resources/DubiousCustomer.js.map +1 -0
  67. package/dist/mjs/api/resources/Society.d.ts +2 -1
  68. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  69. package/dist/mjs/api/resources/Society.js +3 -0
  70. package/dist/mjs/api/resources/Society.js.map +1 -1
  71. package/dist/mjs/api/resources/Subscription.d.ts +2 -0
  72. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  73. package/dist/mjs/api/resources/Subscription.js +3 -0
  74. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  75. package/dist/mjs/api/resources.d.ts +2 -0
  76. package/dist/mjs/api/resources.d.ts.map +1 -1
  77. package/dist/mjs/api/resources.js +2 -0
  78. package/dist/mjs/api/resources.js.map +1 -1
  79. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  80. package/dist/mjs/types/Enum/BrandPourcentage.js +91 -1
  81. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  82. package/dist/mjs/types/Enum/Contract.d.ts +4 -0
  83. package/dist/mjs/types/Enum/Contract.d.ts.map +1 -1
  84. package/dist/mjs/types/Enum/Contract.js +10 -0
  85. package/dist/mjs/types/Enum/Contract.js.map +1 -1
  86. package/dist/mjs/types/Enum/Log.d.ts +8 -1
  87. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  88. package/dist/mjs/types/Enum/Log.js +7 -0
  89. package/dist/mjs/types/Enum/Log.js.map +1 -1
  90. package/dist/mjs/types/Enum/PartnerType.d.ts +4 -0
  91. package/dist/mjs/types/Enum/PartnerType.d.ts.map +1 -1
  92. package/dist/mjs/types/Enum/PartnerType.js +5 -0
  93. package/dist/mjs/types/Enum/PartnerType.js.map +1 -1
  94. package/dist/mjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  95. package/dist/mjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  96. package/dist/mjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +8 -0
  97. package/dist/mjs/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  98. package/dist/mjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  99. package/dist/mjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  100. package/dist/mjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +8 -0
  101. package/dist/mjs/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  102. package/dist/mjs/types/Interface/api/dubiousCustomer/Create.d.ts +9 -0
  103. package/dist/mjs/types/Interface/api/dubiousCustomer/Create.d.ts.map +1 -0
  104. package/dist/mjs/types/Interface/api/dubiousCustomer/Create.js +65 -0
  105. package/dist/mjs/types/Interface/api/dubiousCustomer/Create.js.map +1 -0
  106. package/dist/mjs/types/Interface/api/dubiousCustomer/Update.d.ts +10 -0
  107. package/dist/mjs/types/Interface/api/dubiousCustomer/Update.d.ts.map +1 -0
  108. package/dist/mjs/types/Interface/api/dubiousCustomer/Update.js +64 -0
  109. package/dist/mjs/types/Interface/api/dubiousCustomer/Update.js.map +1 -0
  110. package/dist/mjs/types/Interface/api/society/Export.d.ts +69 -0
  111. package/dist/mjs/types/Interface/api/society/Export.d.ts.map +1 -0
  112. package/dist/mjs/types/Interface/api/society/Export.js +36 -0
  113. package/dist/mjs/types/Interface/api/society/Export.js.map +1 -0
  114. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  115. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  116. package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  117. package/dist/mjs/types/Interface/models/IDubiousCustomer.d.ts +26 -0
  118. package/dist/mjs/types/Interface/models/IDubiousCustomer.d.ts.map +1 -0
  119. package/dist/mjs/types/Interface/models/IDubiousCustomer.js +2 -0
  120. package/dist/mjs/types/Interface/models/IDubiousCustomer.js.map +1 -0
  121. package/dist/mjs/types/index.d.ts +4 -0
  122. package/dist/mjs/types/index.d.ts.map +1 -1
  123. package/dist/mjs/types/index.js +4 -0
  124. package/dist/mjs/types/index.js.map +1 -1
  125. package/package.json +2 -1
  126. package/ts/api/resources/DubiousCustomer.ts +21 -0
  127. package/ts/api/resources/Society.ts +5 -0
  128. package/ts/api/resources/Subscription.ts +5 -0
  129. package/ts/api/resources.ts +2 -0
  130. package/ts/types/Enum/BrandPourcentage.ts +91 -1
  131. package/ts/types/Enum/Contract.ts +12 -1
  132. package/ts/types/Enum/Log.ts +7 -0
  133. package/ts/types/Enum/PartnerType.ts +7 -1
  134. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
  135. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
  136. package/ts/types/Interface/api/dubiousCustomer/Create.ts +43 -0
  137. package/ts/types/Interface/api/dubiousCustomer/Update.ts +42 -0
  138. package/ts/types/Interface/api/society/Export.ts +91 -0
  139. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
  140. package/ts/types/Interface/models/IDubiousCustomer.ts +29 -0
  141. package/ts/types/index.ts +5 -2
@@ -561,7 +561,7 @@ export const BrandPourcentage = [
561
561
  idTypeBrand: 5,
562
562
  urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
563
563
  logoS3: 'config/pourcentage-logo.png',
564
- name: 'Pourcentage Nice', // AMEX
564
+ name: 'Pourcentage ECE', // AMEX
565
565
  commercialName: 'Pourcentage',
566
566
  colors: {
567
567
  primary: '#1e6f5c',
@@ -903,4 +903,94 @@ export const BrandPourcentage = [
903
903
  domain: '@pourcentage.fr',
904
904
  },
905
905
  },
906
+ {
907
+ idTypeBrand: 7,
908
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
909
+ logoS3: 'config/pourcentage-logo.png',
910
+ name: 'Pourcentage ECF', // Pourcentage Nice 2
911
+ commercialName: 'Pourcentage',
912
+ colors: {
913
+ primary: '#1e6f5c',
914
+ primary50: '#DFF9F1',
915
+ primary100: '#8ACAB7',
916
+ primary300: '#589E89',
917
+ primary500: '#386D5D',
918
+ primary700: '#1F493D',
919
+ footerColor: '#2e5449',
920
+ },
921
+ listPhones: {
922
+ contact: '01 86 90 82 15',
923
+ qualite: '01 86 90 82 15',
924
+ social: '01 86 90 82 15',
925
+ juridique: '01 86 90 82 15',
926
+ },
927
+ listMails: {
928
+ administratif: 'contact@pourcentage.fr',
929
+ app: 'contact@pourcentage.fr',
930
+ bonjour: 'bonjour@pourcentage.fr',
931
+ contact: 'contact@pourcentage.fr',
932
+ facturation: 'facturation@pourcentage.fr',
933
+ feedback: 'contact@pourcentage.fr',
934
+ juridique: 'juridique@pourcentage.fr',
935
+ informatique: 'contact@pourcentage.fr',
936
+ msd: 'contact@pourcentage.fr',
937
+ noreply: 'contact@pourcentage.fr',
938
+ qualite: 'contact@pourcentage.fr',
939
+ paiement: 'contact@pourcentage.fr',
940
+ rh: 'rh@pourcentage.fr',
941
+ social: 'social@pourcentage.fr',
942
+ support: 'contact@pourcentage.fr',
943
+ tva: 'contact@pourcentage.fr',
944
+ wb: 'contact@pourcentage.fr',
945
+ },
946
+ companyInformation: {
947
+ ape: '6920Z',
948
+ bp: '',
949
+ city: 'Laxou',
950
+ montantCapital: '150 000',
951
+ nomRaisonSociale: 'POURCENTAGE',
952
+ ECName: 'M. Jean-Louis BOICHÉ',
953
+ ECOrderCity: 'Nancy',
954
+ ECPosition: 'Président',
955
+ phone: '01 86 90 82 15',
956
+ postalAddress: '9, avenue du Rhin',
957
+ rcs: '891 501 181',
958
+ statut: 'SAS',
959
+ zipCode: '54 520',
960
+ },
961
+ idPrestationsListAuthorized: [197, 205, 12, 207, 208, 189],
962
+ logoUrl: 'logo-pourcentage.svg',
963
+ miniLogoUrl: 'logo-pourcentage-mini.svg',
964
+ hiddenPages: [],
965
+ recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
966
+ urlApp: 'https://app.pourcentage.fr',
967
+ urlApi1: 'https://api.pourcentage.fr',
968
+ urlApi2: 'https://api-next.pourcentage.fr',
969
+ urlExpert: 'https://pro.pourcentage.fr',
970
+ urlClient: 'https://www.pourcentage.fr',
971
+ bank: {
972
+ IBAN: '',
973
+ BIC: '',
974
+ Name: '',
975
+ Id: '',
976
+ },
977
+ internalInvoicing: {
978
+ statut: 'SASU',
979
+ name: 'POURCENTAGE',
980
+ address: '9, avenue du Rhin',
981
+ zipCode: '54520',
982
+ city: 'LAXOU',
983
+ country: 'FRANCE',
984
+ montantCapital: '150 000',
985
+ siret: '89150118100020',
986
+ ape: '6920Z',
987
+ rcs: '891 501 181',
988
+ phone: '01 86 90 82 15',
989
+ vatIntracom: 'FR58891501181',
990
+ email: 'facturation@pourcentage.fr',
991
+ },
992
+ webmail: {
993
+ domain: '@pourcentage.fr',
994
+ },
995
+ },
906
996
  ];
@@ -7,4 +7,15 @@ export enum ContractTypeEnum {
7
7
  TEMPORARY_CONTRACT_USAGE = 6,
8
8
  PERMANENT_CONTRACT = 7,
9
9
  INTERNSHIP = 8,
10
- }
10
+ }
11
+
12
+ export const ContractList: Array<{ id: ContractTypeEnum; name: string; }> = [
13
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_ACTIVITY, name: 'CDD accroissement d\'activité' },
14
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_LEARNING, name: 'CDD apprentissage' },
15
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_REPLACMENT, name: 'CDD de remplacement' },
16
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_EXTRA, name: 'CDD extra' },
17
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_PRO, name: 'CDD professionnaliste' },
18
+ { id: ContractTypeEnum.TEMPORARY_CONTRACT_USAGE, name: 'CDD usage' },
19
+ { id: ContractTypeEnum.PERMANENT_CONTRACT, name: 'CDI' },
20
+ { id: ContractTypeEnum.INTERNSHIP, name: 'Stage' },
21
+ ];
@@ -44,6 +44,7 @@ export enum LogType {
44
44
  APPROBATION = 32,
45
45
  ACCEPTATION = 33,
46
46
  IP = 34,
47
+ TYPE_CLIENT = 35,
47
48
  }
48
49
 
49
50
  export const LogTypeDetail = {
@@ -251,4 +252,10 @@ export const LogTypeDetail = {
251
252
  color: 'blue-grey darken-2',
252
253
  icon: null,
253
254
  },
255
+ TYPE_CLIENT: {
256
+ id: LogType.TYPE_CLIENT,
257
+ label: 'Type de client',
258
+ color: 'cyan',
259
+ icon: null,
260
+ },
254
261
  };
@@ -2,4 +2,10 @@ export enum PartnerType {
2
2
  EMPLOYEE = 1,
3
3
  PHYSICAL_PARTNER = 2,
4
4
  MORAL_PARTNER = 3,
5
- }
5
+ }
6
+
7
+ export const PartnerTypeList: Array<{ id: PartnerType; name: string; }> = [
8
+ { id: PartnerType.EMPLOYEE, name: 'Employé' },
9
+ { id: PartnerType.PHYSICAL_PARTNER, name: 'Associé personne physique' },
10
+ { id: PartnerType.MORAL_PARTNER, name: 'Associé personne morale' },
11
+ ];
@@ -126,6 +126,12 @@ export class CreateBalanceSheetModuleForm {
126
126
  @IsOptional()
127
127
  hasValidateKilometricAllowance?: boolean | null;
128
128
 
129
+ @ApiPropertyOptional()
130
+ @IsBoolean()
131
+ @ToBoolean()
132
+ @IsOptional()
133
+ hasDubiousCustomers?: boolean | null;
134
+
129
135
  @ApiProperty()
130
136
  idExercice: number;
131
137
  }
@@ -120,6 +120,12 @@ export class UpdateBalanceSheetModuleForm {
120
120
  @IsOptional()
121
121
  hasValidateKilometricAllowance?: boolean | null;
122
122
 
123
+ @ApiPropertyOptional()
124
+ @IsBoolean()
125
+ @ToBoolean()
126
+ @IsOptional()
127
+ hasDubiousCustomers?: boolean | null;
128
+
123
129
  @ApiPropertyOptional()
124
130
  idExercice?: number;
125
131
  }
@@ -0,0 +1,43 @@
1
+ import { IsNumber, IsBoolean, Max, Min, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class CreateDubiousCustomer {
6
+ @ApiProperty()
7
+ @IsNumber()
8
+ @Max(100, {
9
+ message: 'Percentage should not exceed 100',
10
+ })
11
+ @Min(0, {
12
+ message: 'Percentage should not be negative',
13
+ })
14
+ nonRecoveryPercentage: number;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsNumber()
18
+ @IsOptional()
19
+ @Max(100, {
20
+ message: 'Percentage should not exceed 100',
21
+ })
22
+ @Min(0, {
23
+ message: 'Percentage should not be negative',
24
+ })
25
+ nonRecoveryPercentagePrevious?: number;
26
+
27
+ @ApiProperty()
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ unRecoverable: boolean;
31
+
32
+ @ApiProperty()
33
+ @IsNumber()
34
+ debtAmount: number;
35
+
36
+ @ApiProperty()
37
+ @IsNumber()
38
+ idVat: number;
39
+
40
+ @ApiProperty()
41
+ @IsNumber()
42
+ idExercice: number;
43
+ }
@@ -0,0 +1,42 @@
1
+ import { IsBoolean, IsOptional, IsNumber } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class UpdateDubiousCustomer {
6
+ @ApiProperty()
7
+ @IsNumber()
8
+ idExercice: number;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsNumber()
12
+ @IsOptional()
13
+ nonRecoveryPercentagePrevious?: number;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsNumber()
17
+ @IsOptional()
18
+ nonRecoveryPercentage?: number;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsBoolean()
22
+ @ToBoolean()
23
+ @IsOptional()
24
+ unRecoverable?: boolean;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsNumber()
28
+ @IsOptional()
29
+ debtAmount?: number;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsNumber()
33
+ @IsOptional()
34
+ idVat?: number;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsNumber()
38
+ @IsOptional()
39
+ idThirdParty?: number;
40
+
41
+
42
+ }
@@ -0,0 +1,91 @@
1
+ import { IsArray, IsDateString, IsIn, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { AccountingFileType } from '../../../Enum/AccountingFileType';
4
+ import { AccountingJournal } from '../../../Enum/AccountingJournal';
5
+ import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
6
+ import { GedCategory } from '../../../Enum/Ged';
7
+ import { ThirdPartyType } from '../../../Enum/ThirdPartyType';
8
+
9
+ export type ExportAccountingTransactionFilter = {
10
+ idSociety: number;
11
+ accountingJournals?: AccountingJournal[]
12
+ startDate?: string;
13
+ endDate?: string;
14
+ };
15
+
16
+ export type ExportThirdPartyFilter = {
17
+ idSociety: number;
18
+ thirdPartyType?: ThirdPartyType[]
19
+ };
20
+
21
+ export type ExportUserFilter = {
22
+ idSociety: number;
23
+ };
24
+
25
+ export type ExportSocietyFilter = {
26
+ idSociety: number;
27
+ };
28
+
29
+ export type ExportProductFilter = {
30
+ idSociety: number;
31
+ };
32
+
33
+ export type ExportEmployeeFilter = {
34
+ idSociety: number;
35
+ };
36
+
37
+ export type ExportVehicleFilter = {
38
+ idSociety: number;
39
+ };
40
+
41
+ export type ExportPartnerFilter = {
42
+ idSociety: number;
43
+ };
44
+
45
+ export type ExportGedFileFilter = {
46
+ idSociety: number;
47
+ gedCategory: GedCategory[];
48
+ startDate?: string;
49
+ endDate?: string;
50
+ };
51
+
52
+ export type ExportInvoiceFilter = {
53
+ idSociety: number;
54
+ idAccountingFileType: AccountingFileType[];
55
+ startDate?: string;
56
+ endDate?: string;
57
+ };
58
+
59
+ export type ExportAccrualInvoiceFilter = {
60
+ idSociety: number;
61
+ idAccountingJournal: AccountingJournal[];
62
+ startDate?: string;
63
+ endDate?: string;
64
+ };
65
+
66
+ export type ExportPreSaleDocumentFilter = {
67
+ idSociety: number;
68
+ idEstimateInvoiceType: EstimateInvoiceType[];
69
+ startDate?: string;
70
+ endDate?: string;
71
+ };
72
+
73
+ export type ReadFileExported = { name: string; buffer: Buffer };
74
+
75
+ export const ExportDataKeys = ['BANK_STATEMENT', 'CASHDESK', 'VEHICLE', 'COLLABORATER', 'PURCHASE_INVOICE', 'PERSONAL', 'PROVIDER', 'EMPLOYEE', 'SALE_INVOICE', 'ESTIMATE', 'CUSTOMER', 'PRODUCT', 'LIBRARY_GENERALITY', 'LIBRARY_COMPANY', 'LIBRARY_ACCOUNTANCY', 'LIBRARY_SOCIAL', 'LIBRARY_JURIDICAL', 'LIBRARY_INVOICING', 'LIBRARY_LETTER', 'LIBRARY_BANK_STATEMENT'];
76
+ export class QueryExportSociety {
77
+ @ApiProperty()
78
+ @IsArray()
79
+ @IsIn(ExportDataKeys, { each: true })
80
+ keys: typeof ExportDataKeys;
81
+
82
+ @ApiPropertyOptional()
83
+ @IsDateString()
84
+ @IsOptional()
85
+ startDate?: string;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsDateString()
89
+ @IsOptional()
90
+ endDate?: string;
91
+ }
@@ -27,6 +27,7 @@ export interface IBalanceSheetModule {
27
27
  hasCheckedVAT?: boolean | null;
28
28
  hasCheckedCompanyTax?: boolean | null;
29
29
  hasValidateKilometricAllowance?: boolean | null
30
+ hasDubiousCustomers?: boolean | null
30
31
  idSociety: number;
31
32
  idExercice: number;
32
33
  createdAt?: Date | null;
@@ -0,0 +1,29 @@
1
+ import { IAccountingTransaction, IExercice } from '../..';
2
+ import { ISociety } from './ISociety';
3
+ import { IThirdParty } from './IThirdParty';
4
+ import { IVat } from './IVat';
5
+
6
+
7
+ export interface IDubiousCustomer {
8
+ id?: number;
9
+ idSociety: number;
10
+ idThirdParty: number;
11
+ idExercice: number;
12
+ idVat: number;
13
+ idAccountingTransactionPrevious: number | null;
14
+ idAccountingTransaction: number | null;
15
+ nonRecoveryPercentage: number;
16
+ nonRecoveryPercentagePrevious: number | null;
17
+ unRecoverable: Date;
18
+ debtAmount: number;
19
+ createdAt?: Date | null;
20
+ updatedAt?: Date | null;
21
+
22
+ // Associations
23
+ vat: IVat;
24
+ society: ISociety;
25
+ thirdParty: IThirdParty;
26
+ exercice: IExercice;
27
+ transactionPrevious: IAccountingTransaction;
28
+ transaction: IAccountingTransaction
29
+ }
package/ts/types/index.ts CHANGED
@@ -316,6 +316,7 @@ export * from './Interface/models/IBusinessSector';
316
316
  export * from './Interface/models/IUserChangeLog';
317
317
  export * from './Interface/models/IConstitutionHistory';
318
318
  export * from './Interface/models/IBalanceSheetHistory';
319
+ export * from './Interface/models/IDubiousCustomer';
319
320
  // Schemas
320
321
  export * from './Interface/schemas/IRegistrationDetail';
321
322
  export * from './Interface/schemas/ITransactionHistory';
@@ -972,7 +973,7 @@ export * from './Interface/api/accountsSectors/Create';
972
973
  export * from './Interface/api/fusion/FusionSocieties';
973
974
  export * from './Interface/api/changelog/Create';
974
975
  export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
975
-
976
+ export * from './Interface/api/society/Export';
976
977
  export * from './Interface/api/businessSector/Create';
977
978
  export * from './Interface/api/businessSector/Query';
978
979
  export * from './Interface/api/businessSector/Delete';
@@ -1004,4 +1005,6 @@ export * from './Interface/api/appNotification/Update';
1004
1005
  export * from './Interface/api/partners/QueryPartnerAll';
1005
1006
  export * from './Interface/api/partners/QueryPartnerStatistic';
1006
1007
  export * from './Interface/api/partners/QueryPartnerCsv';
1007
- export * from './Interface/api/partners/PartnerStatisticType';
1008
+ export * from './Interface/api/partners/PartnerStatisticType';
1009
+ export * from './Interface/api/dubiousCustomer/Create';
1010
+ export * from './Interface/api/dubiousCustomer/Update';