@silexpert/core 1.0.71 → 1.0.73

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 (119) hide show
  1. package/es/api/resources/CalendarEvent.d.ts +1 -0
  2. package/es/api/resources/CalendarEvent.d.ts.map +1 -1
  3. package/es/api/resources/CalendarEvent.js +3 -0
  4. package/es/api/resources/CalendarEvent.js.map +1 -1
  5. package/es/api/resources/Commercial.d.ts +8 -1
  6. package/es/api/resources/Commercial.d.ts.map +1 -1
  7. package/es/api/resources/Commercial.js +13 -1
  8. package/es/api/resources/Commercial.js.map +1 -1
  9. package/es/api/resources/Regulate.d.ts +7 -0
  10. package/es/api/resources/Regulate.d.ts.map +1 -0
  11. package/es/api/resources/Regulate.js +7 -0
  12. package/es/api/resources/Regulate.js.map +1 -0
  13. package/es/api/resources.d.ts +2 -0
  14. package/es/api/resources.d.ts.map +1 -1
  15. package/es/api/resources.js +2 -0
  16. package/es/api/resources.js.map +1 -1
  17. package/es/types/Enum/BrandPourcentage.js +1 -1
  18. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  19. package/es/types/Enum/Ged.d.ts +2 -0
  20. package/es/types/Enum/Ged.d.ts.map +1 -1
  21. package/es/types/Enum/Ged.js +2 -2
  22. package/es/types/Enum/Ged.js.map +1 -1
  23. package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -1
  24. package/es/types/Enum/MealExpenseThresholds.js +4 -0
  25. package/es/types/Enum/MealExpenseThresholds.js.map +1 -1
  26. package/es/types/Enum/RegulateType.d.ts +10 -0
  27. package/es/types/Enum/RegulateType.d.ts.map +1 -0
  28. package/es/types/Enum/RegulateType.js +11 -0
  29. package/es/types/Enum/RegulateType.js.map +1 -0
  30. package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.d.ts +7 -0
  31. package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.d.ts.map +1 -0
  32. package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js +26 -0
  33. package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js.map +1 -0
  34. package/es/types/Interface/api/commercial/QueryGetStats.d.ts +6 -0
  35. package/es/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -0
  36. package/es/types/Interface/api/commercial/QueryGetStats.js +32 -0
  37. package/es/types/Interface/api/commercial/QueryGetStats.js.map +1 -0
  38. package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.d.ts +4 -0
  39. package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.d.ts.map +1 -0
  40. package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js +19 -0
  41. package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js.map +1 -0
  42. package/es/types/Interface/api/regulate/QueryGetAll.d.ts +6 -0
  43. package/es/types/Interface/api/regulate/QueryGetAll.d.ts.map +1 -0
  44. package/es/types/Interface/api/regulate/QueryGetAll.js +32 -0
  45. package/es/types/Interface/api/regulate/QueryGetAll.js.map +1 -0
  46. package/es/types/Interface/api/regulate/RegulateWithStats.d.ts +13 -0
  47. package/es/types/Interface/api/regulate/RegulateWithStats.d.ts.map +1 -0
  48. package/es/types/Interface/api/regulate/RegulateWithStats.js +2 -0
  49. package/es/types/Interface/api/regulate/RegulateWithStats.js.map +1 -0
  50. package/es/types/Interface/api/society/QuerySociety.d.ts +1 -0
  51. package/es/types/Interface/api/society/QuerySociety.d.ts.map +1 -1
  52. package/es/types/Interface/api/society/QuerySociety.js +6 -0
  53. package/es/types/Interface/api/society/QuerySociety.js.map +1 -1
  54. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +1 -1
  55. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -1
  56. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -1
  57. package/es/types/Interface/models/IOldExpertInfo.d.ts +1 -0
  58. package/es/types/Interface/models/IOldExpertInfo.d.ts.map +1 -1
  59. package/es/types/Interface/models/IOldExpertInfo.js.map +1 -1
  60. package/es/types/Interface/models/IRegulate.d.ts +5 -0
  61. package/es/types/Interface/models/IRegulate.d.ts.map +1 -1
  62. package/es/types/Interface/models/IRegulate.js.map +1 -1
  63. package/es/types/Interface/models/IUser.d.ts +1 -0
  64. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  65. package/es/types/Interface/models/IUser.js.map +1 -1
  66. package/es/types/index.d.ts +6 -0
  67. package/es/types/index.d.ts.map +1 -1
  68. package/es/types/index.js +6 -0
  69. package/es/types/index.js.map +1 -1
  70. package/js/api/resources/CalendarEvent.js +6 -0
  71. package/js/api/resources/CalendarEvent.js.map +1 -1
  72. package/js/api/resources/Commercial.js +31 -1
  73. package/js/api/resources/Commercial.js.map +1 -1
  74. package/js/api/resources/Regulate.js +22 -0
  75. package/js/api/resources/Regulate.js.map +1 -0
  76. package/js/api/resources.js +3 -0
  77. package/js/api/resources.js.map +1 -1
  78. package/js/types/Enum/BrandPourcentage.js +1 -1
  79. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  80. package/js/types/Enum/Ged.js +3 -3
  81. package/js/types/Enum/Ged.js.map +1 -1
  82. package/js/types/Enum/MealExpenseThresholds.js +4 -0
  83. package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
  84. package/js/types/Enum/RegulateType.js +18 -0
  85. package/js/types/Enum/RegulateType.js.map +1 -0
  86. package/js/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js +35 -0
  87. package/js/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js.map +1 -0
  88. package/js/types/Interface/api/commercial/QueryGetStats.js +33 -0
  89. package/js/types/Interface/api/commercial/QueryGetStats.js.map +1 -0
  90. package/js/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js +29 -0
  91. package/js/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js.map +1 -0
  92. package/js/types/Interface/api/regulate/QueryGetAll.js +33 -0
  93. package/js/types/Interface/api/regulate/QueryGetAll.js.map +1 -0
  94. package/js/types/Interface/api/regulate/RegulateWithStats.js +6 -0
  95. package/js/types/Interface/api/regulate/RegulateWithStats.js.map +1 -0
  96. package/js/types/Interface/api/society/QuerySociety.js +6 -0
  97. package/js/types/Interface/api/society/QuerySociety.js.map +1 -1
  98. package/js/types/index.js +72 -0
  99. package/js/types/index.js.map +1 -1
  100. package/package.json +1 -1
  101. package/ts/api/resources/CalendarEvent.ts +4 -0
  102. package/ts/api/resources/Commercial.ts +17 -2
  103. package/ts/api/resources/Regulate.ts +9 -0
  104. package/ts/api/resources.ts +2 -0
  105. package/ts/types/Enum/BrandPourcentage.ts +1 -1
  106. package/ts/types/Enum/Ged.ts +2 -2
  107. package/ts/types/Enum/MealExpenseThresholds.ts +4 -0
  108. package/ts/types/Enum/RegulateType.ts +10 -0
  109. package/ts/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.ts +16 -0
  110. package/ts/types/Interface/api/commercial/QueryGetStats.ts +21 -0
  111. package/ts/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.ts +10 -0
  112. package/ts/types/Interface/api/regulate/QueryGetAll.ts +21 -0
  113. package/ts/types/Interface/api/regulate/RegulateWithStats.ts +12 -0
  114. package/ts/types/Interface/api/society/QuerySociety.ts +5 -0
  115. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +1 -1
  116. package/ts/types/Interface/models/IOldExpertInfo.ts +1 -0
  117. package/ts/types/Interface/models/IRegulate.ts +7 -0
  118. package/ts/types/Interface/models/IUser.ts +1 -0
  119. package/ts/types/index.ts +6 -0
@@ -0,0 +1,10 @@
1
+ export enum RegulateType {
2
+ SATISFIED_REFUNDED = 1,
3
+
4
+ }
5
+ export const RegulateTypeDetail = {
6
+ SATISFIED_REFUNDED: {
7
+ id: RegulateType.SATISFIED_REFUNDED,
8
+ name: 'Satisfait/remboursé',
9
+ },
10
+ };
@@ -0,0 +1,16 @@
1
+ import {
2
+ IsInt,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../../utils';
5
+
6
+ export class QueryFetchDialogDatasInfosOk {
7
+ @ApiProperty()
8
+ @IsInt()
9
+ idSociety: number;
10
+ }
11
+
12
+ export class QueryFetchDialogDatasDocsOk {
13
+ @ApiProperty()
14
+ @IsInt()
15
+ idSociety: number;
16
+ }
@@ -0,0 +1,21 @@
1
+ import {
2
+ IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetStats {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsInt()
10
+ month?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ year?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idUser?: number;
21
+ }
@@ -0,0 +1,10 @@
1
+ import {
2
+ IsInt,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../../utils';
5
+
6
+ export class QueryMovePrestationsToNextMonth {
7
+ @ApiProperty()
8
+ @IsInt()
9
+ idUser: number;
10
+ }
@@ -0,0 +1,21 @@
1
+ import {
2
+ IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetAll {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsInt()
10
+ month?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ year?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idUser?: number;
21
+ }
@@ -0,0 +1,12 @@
1
+ import { ISociety } from '../../..';
2
+
3
+ interface SocietyWithRegulate extends Partial<ISociety> {
4
+ type?: string;
5
+ regulateAmount: number;
6
+ }
7
+ export interface RegulateWithStats {
8
+ commercialName: string;
9
+ nbRegulates: number;
10
+ sumRegulatesAmount: number;
11
+ listSocieties: SocietyWithRegulate[]
12
+ }
@@ -1,3 +1,4 @@
1
+ import { IsIn } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../../utils/decorators';
2
3
 
3
4
  export class QuerySociety {
@@ -6,4 +7,8 @@ export class QuerySociety {
6
7
 
7
8
  @ApiPropertyOptional()
8
9
  attributes?: string[];
10
+
11
+ @ApiPropertyOptional()
12
+ @IsIn(['brandType', 'societyGescom', 'societyBank', 'societyDetails', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'nafCode', 'connector', 'societyCgv', 'societyConfig', 'exercices', 'businessPartners'], { each: true })
13
+ include?: string[];
9
14
  }
@@ -7,5 +7,5 @@ export interface SocietyWithStatsCaParams extends ISociety {
7
7
  requiredInfos?: ReadInvalidFieldState[],
8
8
  stateOfProgress?: string,
9
9
  isBillingOk?: boolean,
10
- isLabAccepted?: boolean
10
+ labValidationDate?: Date | null
11
11
  }
@@ -14,6 +14,7 @@ export interface IOldExpertInfo {
14
14
  recoveryDate: Date | null;
15
15
  filePdf: string | null;
16
16
  dateSendReprise: Date | null;
17
+ dontHaveOldExpert: boolean;
17
18
  idUser: number | null;
18
19
  idSociety: number;
19
20
  idFile: number | null;
@@ -1,9 +1,16 @@
1
+ import { ISociety, IUser } from '../..';
2
+
1
3
  // regulates
2
4
  export interface IRegulate {
3
5
  id?: number;
4
6
  monthDate: Date;
5
7
  regulateAmount: number;
6
8
  idUser: number;
9
+ idSociety: number;
10
+ idType: number;
7
11
  createdAt?: Date | null;
8
12
  updatedAt?: Date | null;
13
+
14
+ society: ISociety;
15
+ user: IUser;
9
16
  }
@@ -52,6 +52,7 @@ export interface IUser {
52
52
  stateProspect?: boolean | null;
53
53
  birthdate?: Date | null;
54
54
  arrivalDate?: Date | null;
55
+ validityDateOfResidencePermit?: Date | null;
55
56
  isNewProspect?: boolean;
56
57
  hasAccountNumberDisplay?: boolean;
57
58
  isAssociate?: boolean | null;
package/ts/types/index.ts CHANGED
@@ -452,6 +452,7 @@ export * from './Enum/Reason';
452
452
  export * from './Enum/OperationLegalNotice';
453
453
  export * from './Enum/OrderStatus';
454
454
  export * from './Enum/ReportService';
455
+ export * from './Enum/RegulateType';
455
456
 
456
457
  // Interfaces API
457
458
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -517,6 +518,9 @@ export * from './Interface/api/society/SocietyWithStatsCaParams';
517
518
  export * from './Interface/api/society/QuerySociety';
518
519
  export * from './Interface/api/society/QueryPaginatedSociety';
519
520
  export * from './Interface/api/society/QueryPaginatedSocietyWithStatsCa';
521
+ export * from './Interface/api/commercial/QueryGetStats';
522
+ export * from './Interface/api/commercial/QueryFetchDialogDatasInfosOk';
523
+ export * from './Interface/api/commercial/QueryMovePrestationsToNextMonth';
520
524
  export * from './Interface/api/society/GetDataSociety';
521
525
  export * from './Interface/api/society/CreateSociety';
522
526
  export * from './Interface/api/society/UpdateSociety';
@@ -778,6 +782,8 @@ export * from './Interface/api/mobile/QueryMobileMigration';
778
782
  export * from './Interface/api/societyEvent/QuerySocietyEvent';
779
783
  export * from './Interface/api/societyEvent/CreateSocietyEvent';
780
784
  export * from './Interface/api/task/QueryGetAllTask';
785
+ export * from './Interface/api/regulate/QueryGetAll';
786
+ export * from './Interface/api/regulate/RegulateWithStats';
781
787
  export * from './Interface/api/task/QueryPaginatedTask';
782
788
  export * from './Interface/api/task/QueryCreateTask';
783
789
  export * from './Interface/api/task/QueryGetTask';