@silexpert/core 1.1.366 → 1.1.368

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 (153) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +8 -3
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +10 -1
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/TerminationList.d.ts +2 -1
  6. package/dist/cjs/api/resources/TerminationList.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/TerminationList.js +3 -0
  8. package/dist/cjs/api/resources/TerminationList.js.map +1 -1
  9. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts +5 -0
  10. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -0
  11. package/dist/cjs/types/Enum/AutomaticRegistration.js +9 -0
  12. package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -0
  13. package/dist/cjs/types/Enum/Card.d.ts +1 -1
  14. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/Card.js.map +1 -1
  16. package/dist/cjs/types/Enum/Consistency.js +2 -2
  17. package/dist/cjs/types/Enum/Consistency.js.map +1 -1
  18. package/dist/cjs/types/Enum/StockType.d.ts +1 -0
  19. package/dist/cjs/types/Enum/StockType.d.ts.map +1 -1
  20. package/dist/cjs/types/Enum/StockType.js +1 -0
  21. package/dist/cjs/types/Enum/StockType.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +2 -1
  23. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +1 -0
  25. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +13 -0
  27. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  28. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +61 -0
  29. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  30. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +8 -3
  31. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +23 -3
  33. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts +2 -1
  35. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js +8 -1
  37. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -0
  39. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +12 -0
  41. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts +6 -1
  43. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js +23 -1
  45. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  46. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts +2 -1
  47. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +1 -1
  48. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.js +8 -1
  49. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.js.map +1 -1
  50. package/dist/cjs/types/Interface/api/terminationList/QueryTerminationList.d.ts +3 -0
  51. package/dist/cjs/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/api/terminationList/QueryTerminationList.js +12 -1
  53. package/dist/cjs/types/Interface/api/terminationList/QueryTerminationList.js.map +1 -1
  54. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts +14 -0
  55. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -0
  56. package/dist/cjs/types/Interface/models/IAutomaticRegistration.js +3 -0
  57. package/dist/cjs/types/Interface/models/IAutomaticRegistration.js.map +1 -0
  58. package/dist/cjs/types/Interface/models/ICard.d.ts +4 -1
  59. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  60. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  61. package/dist/cjs/types/Interface/models/ICardHistory.d.ts +4 -1
  62. package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  63. package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -1
  64. package/dist/cjs/types/index.d.ts +2 -0
  65. package/dist/cjs/types/index.d.ts.map +1 -1
  66. package/dist/cjs/types/index.js +2 -0
  67. package/dist/cjs/types/index.js.map +1 -1
  68. package/dist/mjs/api/resources/Card.d.ts +8 -3
  69. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  70. package/dist/mjs/api/resources/Card.js +10 -1
  71. package/dist/mjs/api/resources/Card.js.map +1 -1
  72. package/dist/mjs/api/resources/TerminationList.d.ts +2 -1
  73. package/dist/mjs/api/resources/TerminationList.d.ts.map +1 -1
  74. package/dist/mjs/api/resources/TerminationList.js +3 -0
  75. package/dist/mjs/api/resources/TerminationList.js.map +1 -1
  76. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts +5 -0
  77. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -0
  78. package/dist/mjs/types/Enum/AutomaticRegistration.js +6 -0
  79. package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -0
  80. package/dist/mjs/types/Enum/Card.d.ts +1 -1
  81. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  82. package/dist/mjs/types/Enum/Card.js.map +1 -1
  83. package/dist/mjs/types/Enum/Consistency.js +2 -2
  84. package/dist/mjs/types/Enum/Consistency.js.map +1 -1
  85. package/dist/mjs/types/Enum/StockType.d.ts +1 -0
  86. package/dist/mjs/types/Enum/StockType.d.ts.map +1 -1
  87. package/dist/mjs/types/Enum/StockType.js +1 -0
  88. package/dist/mjs/types/Enum/StockType.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +2 -1
  90. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  91. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +1 -0
  92. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  93. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +13 -0
  94. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +64 -0
  96. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +8 -3
  98. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  99. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +25 -5
  100. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  101. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts +2 -1
  102. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js +10 -4
  104. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -0
  106. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  107. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +14 -0
  108. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  109. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts +6 -1
  110. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  111. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js +25 -1
  112. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  113. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts +2 -1
  114. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +1 -1
  115. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.js +9 -1
  116. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.js.map +1 -1
  117. package/dist/mjs/types/Interface/api/terminationList/QueryTerminationList.d.ts +3 -0
  118. package/dist/mjs/types/Interface/api/terminationList/QueryTerminationList.d.ts.map +1 -1
  119. package/dist/mjs/types/Interface/api/terminationList/QueryTerminationList.js +11 -0
  120. package/dist/mjs/types/Interface/api/terminationList/QueryTerminationList.js.map +1 -1
  121. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts +14 -0
  122. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -0
  123. package/dist/mjs/types/Interface/models/IAutomaticRegistration.js +2 -0
  124. package/dist/mjs/types/Interface/models/IAutomaticRegistration.js.map +1 -0
  125. package/dist/mjs/types/Interface/models/ICard.d.ts +4 -1
  126. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  127. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  128. package/dist/mjs/types/Interface/models/ICardHistory.d.ts +4 -1
  129. package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  130. package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -1
  131. package/dist/mjs/types/index.d.ts +2 -0
  132. package/dist/mjs/types/index.d.ts.map +1 -1
  133. package/dist/mjs/types/index.js +2 -0
  134. package/dist/mjs/types/index.js.map +1 -1
  135. package/package.json +1 -1
  136. package/ts/api/resources/Card.ts +15 -4
  137. package/ts/api/resources/TerminationList.ts +5 -1
  138. package/ts/types/Enum/AutomaticRegistration.ts +4 -0
  139. package/ts/types/Enum/Card.ts +1 -1
  140. package/ts/types/Enum/Consistency.ts +2 -2
  141. package/ts/types/Enum/StockType.ts +1 -0
  142. package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +2 -1
  143. package/ts/types/Interface/api/card/ModifyPlanning.ts +38 -0
  144. package/ts/types/Interface/api/card/QueryUserCards.ts +27 -8
  145. package/ts/types/Interface/api/card/QueryUserCardsStats.ts +10 -4
  146. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +10 -0
  147. package/ts/types/Interface/api/registration/DeclareRegistration.ts +20 -2
  148. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +8 -2
  149. package/ts/types/Interface/api/terminationList/QueryTerminationList.ts +9 -0
  150. package/ts/types/Interface/models/IAutomaticRegistration.ts +15 -0
  151. package/ts/types/Interface/models/ICard.ts +4 -1
  152. package/ts/types/Interface/models/ICardHistory.ts +4 -1
  153. package/ts/types/index.ts +2 -0
@@ -0,0 +1,4 @@
1
+ export enum AutomaticRegistrationType {
2
+ FINISHED = 1,
3
+ INVALID = 2,
4
+ }
@@ -126,7 +126,7 @@ export interface UserCardsStats {
126
126
  nbPostponed: number;
127
127
  }
128
128
 
129
- export interface UserCardsStatsGroup {
129
+ export interface CardsStatsGroup {
130
130
  idGroup: CardGroupEnum;
131
131
  totalTodo: number;
132
132
  totalDone: number;
@@ -131,7 +131,7 @@ export const ConsistencyIssues: ConsistencyIssue[] = [
131
131
  },
132
132
  {
133
133
  key: ConsistencyKey.PARTNER_CURRENT_ACCOUNT_DEBIT_BALANCE,
134
- label: 'Compte courant associé 455xxx débiteur',
134
+ label: 'Compte courant associé débiteur',
135
135
  isBlocking: false,
136
136
  settings: {
137
137
  type: ConsistencySettingType.OTHER,
@@ -259,7 +259,7 @@ export const ConsistencyIssues: ConsistencyIssue[] = [
259
259
  },
260
260
  {
261
261
  key: ConsistencyKey.AMOUNT_OVER_1000_EUROS_IN_ACCOUNT_6XXX_NOT_REVIEWED,
262
- label: 'Montant de plus de 1000€ non révisé dans le compte 6xx',
262
+ label: 'Montant de plus de 1000€ non révisé',
263
263
  isBlocking: true,
264
264
  settings: {
265
265
  type: ConsistencySettingType.OTHER,
@@ -88,4 +88,5 @@ export const StockMapping = {
88
88
  STOCK_PRODUITS_SERVICE_EN_COURS: 'semiFinishedServices',
89
89
  STOCK_PRESTATION_SERVICE_EN_COURS: 'servicesInProgress',
90
90
  STOCK_PRODUITS_FINI: 'finishedProducts',
91
+ STOCK_REAL_ESTATE: 'realEstate',
91
92
  };
@@ -2,6 +2,7 @@ import {
2
2
  IsDate, IsNumber, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils/decorators';
5
+ import { BalanceSheetState } from '../../../Enum/BalanceSheet';
5
6
 
6
7
  export class UpdateBalanceSheet {
7
8
  @ApiPropertyOptional()
@@ -42,7 +43,7 @@ export class UpdateBalanceSheet {
42
43
  @ApiPropertyOptional()
43
44
  @IsNumber()
44
45
  @IsOptional()
45
- state?: number;
46
+ state?: BalanceSheetState;
46
47
 
47
48
  @ApiPropertyOptional()
48
49
  @IsNumber()
@@ -0,0 +1,38 @@
1
+ import { IsDate, IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class ModifyTeamPlanning {
5
+ @ApiProperty()
6
+ @IsInt()
7
+ idUserMissing: number;
8
+
9
+ @ApiProperty()
10
+ @IsInt({ each: true })
11
+ idUsers: number[];
12
+
13
+ @ApiProperty()
14
+ @IsDate()
15
+ startDate: Date;
16
+
17
+ @ApiProperty()
18
+ @IsDate()
19
+ endDate: Date;
20
+ }
21
+
22
+ export class ModifyExercisePlanning {
23
+ @ApiProperty()
24
+ @IsDate()
25
+ exerciseClosingDate: Date;
26
+
27
+ @ApiProperty()
28
+ @IsDate()
29
+ startDate: Date;
30
+
31
+ @ApiProperty()
32
+ @IsDate()
33
+ endDate: Date;
34
+
35
+ @ApiProperty()
36
+ @IsInt({ each: true })
37
+ idUsers: number[];
38
+ }
@@ -1,19 +1,28 @@
1
- import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
1
+ import { IsArray, IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardType, CardState } from '../../../Enum/Card';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
5
 
5
6
  export class QueryUserCards {
6
- @ApiProperty()
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
7
9
  @IsInt()
8
- declare idUser: number;
10
+ declare idUser?: number;
9
11
 
10
- @ApiProperty()
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ declare idTeam?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
11
19
  @IsDate()
12
- declare startDate: Date;
20
+ declare startDate?: Date;
13
21
 
14
- @ApiProperty()
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
15
24
  @IsDate()
16
- declare endDate: Date;
25
+ declare endDate?: Date;
17
26
 
18
27
  @ApiPropertyOptional()
19
28
  @IsOptional()
@@ -29,7 +38,17 @@ export class QueryUserCards {
29
38
  @IsOptional()
30
39
  @IsEnum(CardState)
31
40
  declare state?: CardState;
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsBoolean()
45
+ @ToBoolean()
46
+ declare includePostponed?: boolean;
32
47
  }
48
+
49
+ /**
50
+ * @deprecated Use QueryUserCards instead
51
+ */
33
52
  export class QueryUserCardsAdmin {
34
53
  @ApiPropertyOptional()
35
54
  @IsOptional()
@@ -1,10 +1,16 @@
1
- import { IsDate, IsInt } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsDate, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export class QueryUserCardsStats {
5
- @ApiProperty()
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsInt()
8
+ declare idUser?: number;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
6
12
  @IsInt()
7
- idUser: number;
13
+ declare idTeam?: number;
8
14
 
9
15
  @ApiProperty()
10
16
  @IsDate()
@@ -33,6 +33,16 @@ export class CreateBusinessPartnersSociety {
33
33
  @IsString()
34
34
  additionalAddress?: string;
35
35
 
36
+ @ApiProperty()
37
+ @IsBoolean()
38
+ @ToBoolean()
39
+ isOwner: boolean;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsOptional()
43
+ @IsEnum(Quality)
44
+ idQuality?: Quality;
45
+
36
46
  @ApiProperty()
37
47
  @IsString()
38
48
  zipCode: string;
@@ -1,4 +1,4 @@
1
- import { IsOptional, IsBoolean, IsNumber, IsArray, IsInt } from 'class-validator';
1
+ import { IsOptional, IsBoolean, IsNumber, IsArray, IsInt, IsDateString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
  import { CustomerVatState } from '../../../Enum/CustomerVat';
@@ -35,13 +35,31 @@ export class ProcessVatRegistration {
35
35
  @IsOptional()
36
36
  @IsBoolean()
37
37
  @ToBoolean()
38
- isTestMode: boolean;
38
+ isTestMode?: boolean;
39
39
 
40
40
  @ApiProperty()
41
41
  @IsNumber()
42
42
  state: CustomerVatState;
43
43
  }
44
44
 
45
+ export class GenerateVatRegistrationPayload {
46
+ @ApiPropertyOptional()
47
+ @IsDateString()
48
+ @IsOptional()
49
+ startDate?: string;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsBoolean()
53
+ @ToBoolean()
54
+ @IsOptional()
55
+ disableGeneration?: boolean;
56
+
57
+ @ApiPropertyOptional()
58
+ @IsInt()
59
+ @IsOptional()
60
+ idSociety?: number;
61
+ }
62
+
45
63
  export class GenerateVatAutomaticallyPayload {
46
64
  @ApiProperty()
47
65
  @IsArray()
@@ -4,9 +4,10 @@ import {
4
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
 
6
6
  export class DestroyTerminationList {
7
- @ApiProperty()
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
8
9
  @IsInt()
9
- id: number;
10
+ id?: number;
10
11
 
11
12
  @ApiPropertyOptional()
12
13
  @IsOptional()
@@ -67,6 +68,11 @@ export class DestroyTerminationList {
67
68
  @IsDateString()
68
69
  createdAt?: string;
69
70
 
71
+ @ApiPropertyOptional()
72
+ @IsOptional()
73
+ @IsDateString()
74
+ createdAtLike?: string;
75
+
70
76
  @ApiPropertyOptional()
71
77
  @IsOptional()
72
78
  @IsDateString()
@@ -2,6 +2,7 @@ import {
2
2
  IsDateString, IsInt, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils';
5
+ import { Type } from 'class-transformer';
5
6
 
6
7
  export class QueryTerminationList {
7
8
  @ApiPropertyOptional()
@@ -73,4 +74,12 @@ export class QueryTerminationList {
73
74
  @IsOptional()
74
75
  @IsDateString()
75
76
  updatedAt?: string;
77
+ }
78
+
79
+ export class QueryTerminationAllList {
80
+ @ApiPropertyOptional()
81
+ @IsOptional()
82
+ @Type(() => Number)
83
+ @IsInt({ each: true })
84
+ idPrestation?: number[];
76
85
  }
@@ -0,0 +1,15 @@
1
+ import { AutomaticRegistrationType } from '../../Enum/AutomaticRegistration';
2
+ import { IRegistration } from './IRegistration';
3
+ import { ISociety } from './ISociety';
4
+
5
+ export interface IAutomaticRegistration {
6
+ id?: number;
7
+ date: Date;
8
+ state: AutomaticRegistrationType;
9
+ details: any;
10
+ idSociety: number;
11
+ idRegistration: number;
12
+
13
+ registrations?: IRegistration | null;
14
+ society?: ISociety | null;
15
+ }
@@ -6,6 +6,7 @@ import { ICalendarEvent } from './ICalendarEvent';
6
6
  import { ICustomerVat } from './ICustomerVat';
7
7
  import { ICardHistory } from './ICardHistory';
8
8
  import { IComment } from './IComment';
9
+ import { ITeam } from './ITeam';
9
10
 
10
11
  export interface ICard {
11
12
  id?: number;
@@ -14,7 +15,8 @@ export interface ICard {
14
15
  isManual: boolean;
15
16
  isBlocked: boolean;
16
17
  plannedAt?: Date | null;
17
- idUser: number;
18
+ idUser?: number | null;
19
+ idTeam?: number | null;
18
20
  idSociety: number;
19
21
  createdAt?: Date;
20
22
  updatedAt?: Date;
@@ -22,6 +24,7 @@ export interface ICard {
22
24
 
23
25
  // Associations
24
26
  user?: IUser;
27
+ team?: ITeam;
25
28
  society?: ISociety;
26
29
  balanceSheet?: IBalanceSheet;
27
30
  customerVat?: ICustomerVat;
@@ -1,13 +1,15 @@
1
1
  import { CardState } from '../../Enum/Card';
2
2
  import { IUser } from './IUser';
3
3
  import { ICard } from './ICard';
4
+ import { ITeam } from './ITeam';
4
5
 
5
6
  export interface ICardHistory {
6
7
  id?: number;
7
8
  state: CardState;
8
9
  plannedAt: Date;
9
10
  idUserWhoChanged: number;
10
- idUserOrigin: number;
11
+ idUserOrigin?: number;
12
+ idTeamOrigin?: number;
11
13
  idCard: number;
12
14
  createdAt?: Date;
13
15
  updatedAt?: Date;
@@ -15,5 +17,6 @@ export interface ICardHistory {
15
17
  // Associations
16
18
  userWhoChanged?: Partial<IUser>;
17
19
  userOrigin?: Partial<IUser>;
20
+ teamOrigin?: Partial<ITeam>;
18
21
  card?: ICard
19
22
  }
package/ts/types/index.ts CHANGED
@@ -345,6 +345,7 @@ export * from './Form/FormAuthenticate';
345
345
  export * from './Form/FormConnector';
346
346
 
347
347
  // Enums
348
+ export * from './Enum/AutomaticRegistration';
348
349
  export * from './Enum/IntermediateManagementRebate';
349
350
  export * from './Enum/Das';
350
351
  export * from './Enum/ChangeLog';
@@ -1048,6 +1049,7 @@ export * from './Interface/api/terminationList/QueryPaginateTerminationList';
1048
1049
  export * from './Interface/api/card/QueryUserCards';
1049
1050
  export * from './Interface/api/card/QueryUserCardsStats';
1050
1051
  export * from './Interface/api/card/UpdateCard';
1052
+ export * from './Interface/api/card/ModifyPlanning';
1051
1053
  export * from './Interface/api/notion/NotionResponse';
1052
1054
  export * from './Interface/api/IntermediateManagementRebate';
1053
1055
  export * from './Interface/api/contest/Create';