@silexpert/core 1.3.184-0 → 1.3.185-0

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 (219) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +23 -1
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +36 -0
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/InternalInvoicing.js +0 -8
  7. package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
  8. package/dist/cjs/api/resources/Shine.d.ts +2 -1
  9. package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Shine.js +3 -0
  11. package/dist/cjs/api/resources/Shine.js.map +1 -1
  12. package/dist/cjs/api/resources/Society.d.ts +2 -1
  13. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Society.js +3 -0
  15. package/dist/cjs/api/resources/Society.js.map +1 -1
  16. package/dist/cjs/types/Enum/AdjustmentType.js +4 -4
  17. package/dist/cjs/types/Enum/AdjustmentType.js.map +1 -1
  18. package/dist/cjs/types/Enum/BrandPourcentage.js +8 -8
  19. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  20. package/dist/cjs/types/Enum/Card.d.ts +7 -1
  21. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/Card.js +9 -1
  23. package/dist/cjs/types/Enum/Card.js.map +1 -1
  24. package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
  25. package/dist/cjs/types/Enum/EntityType.js +2 -2
  26. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  27. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  28. package/dist/cjs/types/Enum/PriceGridClementine.js +482 -478
  29. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  30. package/dist/cjs/types/Enum/Unit.d.ts +2 -1
  31. package/dist/cjs/types/Enum/Unit.d.ts.map +1 -1
  32. package/dist/cjs/types/Enum/Unit.js +11 -0
  33. package/dist/cjs/types/Enum/Unit.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
  35. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
  37. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
  39. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
  41. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/card/Cron.d.ts +0 -3
  43. package/dist/cjs/types/Interface/api/card/Cron.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/card/Cron.js +1 -10
  45. package/dist/cjs/types/Interface/api/card/Cron.js.map +1 -1
  46. package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts +9 -0
  47. package/dist/cjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +1 -0
  48. package/dist/cjs/types/Interface/api/card/ModifyAcceptation.js +43 -0
  49. package/dist/cjs/types/Interface/api/card/ModifyAcceptation.js.map +1 -0
  50. package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +25 -0
  51. package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +1 -0
  52. package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js +106 -0
  53. package/dist/cjs/types/Interface/api/card/ModifyBalanceSheet.js.map +1 -0
  54. package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts +5 -0
  55. package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +1 -0
  56. package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.js +29 -0
  57. package/dist/cjs/types/Interface/api/card/ModifyCustomerVat.js.map +1 -0
  58. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +18 -0
  59. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  60. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +79 -0
  61. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  62. package/dist/cjs/types/Interface/api/card/Query.d.ts +8 -0
  63. package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -0
  64. package/dist/cjs/types/Interface/api/card/Query.js +37 -0
  65. package/dist/cjs/types/Interface/api/card/Query.js.map +1 -0
  66. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +11 -0
  67. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  68. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +44 -1
  69. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  70. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +13 -0
  71. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  72. package/dist/cjs/types/Interface/api/card/UpdateCard.js +58 -1
  73. package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  74. package/dist/cjs/types/Interface/api/shine/Query.d.ts +7 -0
  75. package/dist/cjs/types/Interface/api/shine/Query.d.ts.map +1 -0
  76. package/dist/cjs/types/Interface/api/shine/{GetConnect.js → Query.js} +9 -2
  77. package/dist/cjs/types/Interface/api/shine/Query.js.map +1 -0
  78. package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +3 -0
  79. package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
  80. package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
  81. package/dist/cjs/types/Interface/models/ICard.d.ts +19 -0
  82. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  83. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  84. package/dist/cjs/types/Interface/models/ICardHistory.d.ts +4 -0
  85. package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  86. package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -1
  87. package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +1 -0
  88. package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
  89. package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
  90. package/dist/cjs/types/index.d.ts +6 -1
  91. package/dist/cjs/types/index.d.ts.map +1 -1
  92. package/dist/cjs/types/index.js +6 -1
  93. package/dist/cjs/types/index.js.map +1 -1
  94. package/dist/mjs/api/resources/Card.d.ts +23 -1
  95. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  96. package/dist/mjs/api/resources/Card.js +45 -0
  97. package/dist/mjs/api/resources/Card.js.map +1 -1
  98. package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  99. package/dist/mjs/api/resources/InternalInvoicing.js +0 -8
  100. package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
  101. package/dist/mjs/api/resources/Shine.d.ts +2 -1
  102. package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
  103. package/dist/mjs/api/resources/Shine.js +3 -0
  104. package/dist/mjs/api/resources/Shine.js.map +1 -1
  105. package/dist/mjs/api/resources/Society.d.ts +2 -1
  106. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  107. package/dist/mjs/api/resources/Society.js +3 -0
  108. package/dist/mjs/api/resources/Society.js.map +1 -1
  109. package/dist/mjs/types/Enum/AdjustmentType.js +4 -4
  110. package/dist/mjs/types/Enum/AdjustmentType.js.map +1 -1
  111. package/dist/mjs/types/Enum/BrandPourcentage.js +8 -8
  112. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  113. package/dist/mjs/types/Enum/Card.d.ts +7 -1
  114. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  115. package/dist/mjs/types/Enum/Card.js +9 -1
  116. package/dist/mjs/types/Enum/Card.js.map +1 -1
  117. package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
  118. package/dist/mjs/types/Enum/EntityType.js +2 -2
  119. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  120. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  121. package/dist/mjs/types/Enum/PriceGridClementine.js +486 -474
  122. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  123. package/dist/mjs/types/Enum/Unit.d.ts +2 -1
  124. package/dist/mjs/types/Enum/Unit.d.ts.map +1 -1
  125. package/dist/mjs/types/Enum/Unit.js +11 -0
  126. package/dist/mjs/types/Enum/Unit.js.map +1 -1
  127. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +17 -0
  128. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  129. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
  130. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  131. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
  132. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  133. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
  134. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  135. package/dist/mjs/types/Interface/api/card/Cron.d.ts +0 -3
  136. package/dist/mjs/types/Interface/api/card/Cron.d.ts.map +1 -1
  137. package/dist/mjs/types/Interface/api/card/Cron.js +0 -8
  138. package/dist/mjs/types/Interface/api/card/Cron.js.map +1 -1
  139. package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts +9 -0
  140. package/dist/mjs/types/Interface/api/card/ModifyAcceptation.d.ts.map +1 -0
  141. package/dist/mjs/types/Interface/api/card/ModifyAcceptation.js +42 -0
  142. package/dist/mjs/types/Interface/api/card/ModifyAcceptation.js.map +1 -0
  143. package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts +25 -0
  144. package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.d.ts.map +1 -0
  145. package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js +115 -0
  146. package/dist/mjs/types/Interface/api/card/ModifyBalanceSheet.js.map +1 -0
  147. package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts +5 -0
  148. package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.d.ts.map +1 -0
  149. package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.js +27 -0
  150. package/dist/mjs/types/Interface/api/card/ModifyCustomerVat.js.map +1 -0
  151. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +18 -0
  152. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  153. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +84 -0
  154. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  155. package/dist/mjs/types/Interface/api/card/Query.d.ts +8 -0
  156. package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -0
  157. package/dist/mjs/types/Interface/api/card/Query.js +34 -0
  158. package/dist/mjs/types/Interface/api/card/Query.js.map +1 -0
  159. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +11 -0
  160. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  161. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +43 -1
  162. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  163. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +13 -0
  164. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  165. package/dist/mjs/types/Interface/api/card/UpdateCard.js +65 -1
  166. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  167. package/dist/mjs/types/Interface/api/shine/Query.d.ts +7 -0
  168. package/dist/mjs/types/Interface/api/shine/Query.d.ts.map +1 -0
  169. package/dist/mjs/types/Interface/api/shine/{GetConnect.js → Query.js} +8 -1
  170. package/dist/mjs/types/Interface/api/shine/Query.js.map +1 -0
  171. package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +3 -0
  172. package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
  173. package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
  174. package/dist/mjs/types/Interface/models/ICard.d.ts +19 -0
  175. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  176. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  177. package/dist/mjs/types/Interface/models/ICardHistory.d.ts +4 -0
  178. package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  179. package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -1
  180. package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +1 -0
  181. package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
  182. package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
  183. package/dist/mjs/types/index.d.ts +6 -1
  184. package/dist/mjs/types/index.d.ts.map +1 -1
  185. package/dist/mjs/types/index.js +6 -1
  186. package/dist/mjs/types/index.js.map +1 -1
  187. package/package.json +1 -1
  188. package/ts/api/resources/Card.ts +61 -0
  189. package/ts/api/resources/InternalInvoicing.ts +0 -8
  190. package/ts/api/resources/Shine.ts +11 -1
  191. package/ts/api/resources/Society.ts +5 -0
  192. package/ts/types/Enum/AdjustmentType.ts +4 -4
  193. package/ts/types/Enum/BrandPourcentage.ts +8 -8
  194. package/ts/types/Enum/Card.ts +9 -1
  195. package/ts/types/Enum/EntityType.ts +2 -2
  196. package/ts/types/Enum/PriceGridClementine.ts +487 -474
  197. package/ts/types/Enum/Unit.ts +11 -0
  198. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +18 -0
  199. package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
  200. package/ts/types/Interface/api/card/Cron.ts +1 -8
  201. package/ts/types/Interface/api/card/ModifyAcceptation.ts +24 -0
  202. package/ts/types/Interface/api/card/ModifyBalanceSheet.ts +81 -0
  203. package/ts/types/Interface/api/card/ModifyCustomerVat.ts +13 -0
  204. package/ts/types/Interface/api/card/ModifyPlanning.ts +52 -0
  205. package/ts/types/Interface/api/card/Query.ts +19 -0
  206. package/ts/types/Interface/api/card/QueryUserCards.ts +36 -1
  207. package/ts/types/Interface/api/card/UpdateCard.ts +50 -2
  208. package/ts/types/Interface/api/shine/{GetConnect.ts → Query.ts} +5 -0
  209. package/ts/types/Interface/models/IBalanceSheet.ts +3 -0
  210. package/ts/types/Interface/models/ICard.ts +20 -0
  211. package/ts/types/Interface/models/ICardHistory.ts +4 -0
  212. package/ts/types/Interface/models/ICustomerVat.ts +1 -0
  213. package/ts/types/index.ts +6 -1
  214. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts +0 -4
  215. package/dist/cjs/types/Interface/api/shine/GetConnect.d.ts.map +0 -1
  216. package/dist/cjs/types/Interface/api/shine/GetConnect.js.map +0 -1
  217. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts +0 -4
  218. package/dist/mjs/types/Interface/api/shine/GetConnect.d.ts.map +0 -1
  219. package/dist/mjs/types/Interface/api/shine/GetConnect.js.map +0 -1
@@ -28,6 +28,7 @@ export enum UnitId {
28
28
  TON = 19,
29
29
  HECTARE = 20,
30
30
  MINUTE = 21,
31
+ GRAM = 22,
31
32
  }
32
33
 
33
34
  export type IUnitList = Array<{ name: string; id: number; shortName: string }>;
@@ -138,6 +139,11 @@ export const Unit: IUnit = {
138
139
  name: 'Minute',
139
140
  shortName: 'min',
140
141
  },
142
+ GRAM: {
143
+ id: UnitId.GRAM,
144
+ name: 'Gramme',
145
+ shortName: 'g',
146
+ },
141
147
  };
142
148
 
143
149
  export const UnitList = [
@@ -246,4 +252,9 @@ export const UnitList = [
246
252
  name: 'Minutre',
247
253
  shortname: 'min',
248
254
  },
255
+ {
256
+ id: UnitId.GRAM,
257
+ name: 'Gramme',
258
+ shortName: 'g',
259
+ },
249
260
  ];
@@ -1,3 +1,5 @@
1
+ import { Feature } from '../../../Enum/Feature';
2
+ import { PrestationTypeDetail } from '../../../Enum/PrestationType';
1
3
  import { IUser } from '../../models/IUser';
2
4
 
3
5
  export class ReadAuthenticateCollaborater {
@@ -16,3 +18,19 @@ export class ReadByExternalId {
16
18
  idTypeBrand: number;
17
19
  token: string;
18
20
  }
21
+
22
+ export type ExerciceFeatures = {
23
+ id: number;
24
+ startDate: Date | string;
25
+ endDate: Date | string;
26
+ isDefault: boolean;
27
+ subscriptionType: PrestationTypeDetail;
28
+ features: Feature[];
29
+ };
30
+ export class ReadFeatureAccess {
31
+ isOwner: boolean;
32
+ /** @returns default features */
33
+ features: Feature[];
34
+ exercices: ExerciceFeatures[];
35
+ isInTrialPeriod: boolean;
36
+ }
@@ -48,6 +48,11 @@ export class UpdateBalanceSheet {
48
48
  @IsOptional()
49
49
  bankCollectingState?: number;
50
50
 
51
+ @ApiPropertyOptional()
52
+ @IsNumber()
53
+ @IsOptional()
54
+ idCard?: number;
55
+
51
56
  @ApiPropertyOptional()
52
57
  @IsString()
53
58
  @IsOptional()
@@ -18,11 +18,4 @@ export class GenerateAdvanceISCard {
18
18
  @IsOptional()
19
19
  @IsInt()
20
20
  month?: number;
21
- }
22
-
23
- export class QueryCronCards {
24
- @ApiPropertyOptional()
25
- @IsOptional()
26
- @IsInt()
27
- declare idSociety?: number;
28
- }
21
+ }
@@ -0,0 +1,24 @@
1
+ import { IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class AssignAcceptationAutomaticly {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idTeam: number;
8
+
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsNumber()
12
+ idSociety?: number;
13
+ }
14
+
15
+ export class AssignAcceptationNewClientAutomatically {
16
+ @ApiProperty()
17
+ @IsNumber()
18
+ idUser: number;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsNumber()
23
+ idSociety?: number;
24
+ }
@@ -0,0 +1,81 @@
1
+ import { IsArray, IsBoolean, IsDate, IsEnum, IsInt, IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ComptaType } from '../../../Enum/ComptaType';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
+ import { CardType } from '../../../Enum/Card';
6
+ import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
7
+
8
+ export interface OrganizeBalanceSheetsResponse {
9
+ plannedCardsCount: number;
10
+ }
11
+
12
+ export class OrganizeBalanceSheets {
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsNumber()
16
+ idTeam?: number;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsArray()
21
+ @IsInt({ each: true })
22
+ idAccountants?: number[];
23
+
24
+ @ApiProperty()
25
+ @IsArray()
26
+ @IsEnum(CardType, { each: true })
27
+ cardType: CardType[];
28
+
29
+ @ApiProperty()
30
+ @IsDate()
31
+ exerciceMonthDate: Date;
32
+
33
+ @ApiProperty()
34
+ @IsEnum(ComptaType)
35
+ idComptaType: ComptaType;
36
+
37
+ @ApiProperty()
38
+ @IsArray()
39
+ @IsEnum(LegalFormTypeEnum, { each: true })
40
+ legalForms: LegalFormTypeEnum[];
41
+
42
+ @ApiProperty()
43
+ @IsBoolean()
44
+ @ToBoolean()
45
+ soldeIsOk: boolean;
46
+
47
+ @ApiProperty()
48
+ @IsBoolean()
49
+ @ToBoolean()
50
+ withSocial: boolean;
51
+
52
+ @ApiProperty()
53
+ @IsDate()
54
+ assignDateStart: Date;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsDate()
59
+ assignDateEnd?: Date;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsNumber()
64
+ nbCardByDay?: number;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsOptional()
68
+ @IsNumber()
69
+ idSociety?: number;
70
+ }
71
+
72
+ export class AssignBalanceSheet {
73
+ @ApiProperty()
74
+ @IsNumber()
75
+ idTeam: number;
76
+
77
+ @ApiPropertyOptional()
78
+ @IsOptional()
79
+ @IsNumber()
80
+ idSociety?: number;
81
+ }
@@ -0,0 +1,13 @@
1
+ import { IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class assignCustomerVatAutomatically {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idUser: number;
8
+
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsNumber()
12
+ idSociety?: number;
13
+ }
@@ -0,0 +1,52 @@
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
+ }
39
+
40
+ export class AutomaticallyAssignTeamPlanning {
41
+ @ApiProperty()
42
+ @IsInt()
43
+ idTeam: number;
44
+
45
+ @ApiProperty()
46
+ @IsDate()
47
+ startDate: Date;
48
+
49
+ @ApiProperty()
50
+ @IsDate()
51
+ endDate: Date;
52
+ }
@@ -0,0 +1,19 @@
1
+ import { IsDate, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QueryInternalCardsStats {
5
+ @ApiProperty()
6
+ @IsInt()
7
+ idTeam: number;
8
+
9
+ @ApiProperty()
10
+ @IsDate()
11
+ date: Date;
12
+ }
13
+
14
+ export class QueryCronCards {
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsInt()
18
+ declare idSociety?: number;
19
+ }
@@ -1,4 +1,4 @@
1
- import { IsArray, IsBoolean, IsDateString, IsInt, IsOptional, IsString, Min } from 'class-validator';
1
+ import { IsArray, IsBoolean, IsDate, IsDateString, IsEnum, IsInt, IsOptional, IsString, Min } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardType, CardState } from '../../../Enum/Card';
4
4
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -57,3 +57,38 @@ export class QueryUserCardsPaginated extends QueryUserCards {
57
57
  @Min(1)
58
58
  limit: number;
59
59
  }
60
+
61
+ /**
62
+ * @deprecated Use QueryUserCards instead
63
+ */
64
+ export class QueryUserCardsAdmin {
65
+ @ApiPropertyOptional()
66
+ @IsOptional()
67
+ @IsInt()
68
+ declare idUser?: number;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsDate()
73
+ declare startDate?: Date;
74
+
75
+ @ApiPropertyOptional()
76
+ @IsOptional()
77
+ @IsDate()
78
+ declare endDate?: Date;
79
+
80
+ @ApiPropertyOptional()
81
+ @IsOptional()
82
+ @IsString()
83
+ declare search?: string;
84
+
85
+ @ApiPropertyOptional()
86
+ @IsOptional()
87
+ @IsArray()
88
+ declare types?: CardType[];
89
+
90
+ @ApiPropertyOptional()
91
+ @IsOptional()
92
+ @IsEnum(CardState)
93
+ declare state?: CardState;
94
+ }
@@ -1,6 +1,7 @@
1
- import { IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardState, CardType, TransactionRangeFilter } from '../../../Enum/Card';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
5
 
5
6
  export class AssignCard {
6
7
  @ApiProperty()
@@ -19,6 +20,10 @@ export class UpdateCardV2 {
19
20
  @IsEnum(CardState)
20
21
  state?: CardState;
21
22
 
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ plannedAt?: Date | null;
26
+
22
27
  @ApiPropertyOptional()
23
28
  @IsOptional()
24
29
  @IsInt()
@@ -33,4 +38,47 @@ export class UpdateCardV2 {
33
38
  @IsOptional()
34
39
  @IsInt()
35
40
  priority?: number;
36
- }
41
+ }
42
+
43
+ /**
44
+ * @deprecated Use UpdateCardV2 instead
45
+ */
46
+ export class UpdateCard {
47
+ @ApiPropertyOptional()
48
+ @IsOptional()
49
+ @IsInt()
50
+ @IsEnum(CardType)
51
+ type?: CardType;
52
+
53
+ @ApiPropertyOptional()
54
+ @IsOptional()
55
+ @IsBoolean()
56
+ isManual?: boolean;
57
+
58
+ @ApiPropertyOptional()
59
+ @IsOptional()
60
+ @IsBoolean()
61
+ @ToBoolean()
62
+ isBlocked?: boolean;
63
+
64
+ @ApiPropertyOptional()
65
+ @IsOptional()
66
+ @IsInt()
67
+ @IsEnum(CardState)
68
+ state?: CardState;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsDate()
73
+ plannedAt?: Date | null;
74
+
75
+ @ApiPropertyOptional()
76
+ @IsOptional()
77
+ @IsInt()
78
+ idUser?: number;
79
+
80
+ @ApiPropertyOptional()
81
+ @IsOptional()
82
+ @IsString()
83
+ comment?: string;
84
+ }
@@ -4,3 +4,8 @@ export class GetConnect {
4
4
  @ApiProperty()
5
5
  code: string;
6
6
  }
7
+
8
+ export class GetRefreshConnect {
9
+ @ApiProperty()
10
+ idBankConnection: number;
11
+ }
@@ -4,6 +4,7 @@ import { ISupervision } from './ISupervision';
4
4
  import { IPrestation } from './IPrestation';
5
5
  import { IGedFile } from './IGedFile';
6
6
  import { IFile } from './IFile';
7
+ import { ICard } from './ICard';
7
8
  import { IBalanceSheetHistory } from './IBalanceSheetHistory';
8
9
  import { IAdditionalBalance } from './IAdditionalBalance';
9
10
 
@@ -23,6 +24,7 @@ export interface IBalanceSheet {
23
24
  bankCollectingState?: number;
24
25
  idExercice?: number;
25
26
  idCalendarEvent?: number;
27
+ idCard?: number;
26
28
  createdAt?: Date;
27
29
  updatedAt?: Date;
28
30
 
@@ -33,6 +35,7 @@ export interface IBalanceSheet {
33
35
  prestations?: IPrestation[];
34
36
  gedFiles?: IGedFile[];
35
37
  file?: IFile;
38
+ card?: ICard;
36
39
  balanceSheetHistories?: IBalanceSheetHistory[];
37
40
  additionalBalance?: IAdditionalBalance;
38
41
  }
@@ -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
  import { IChecklist } from './IChecklist';
10
11
  import { ICustomerIsRegime } from './ICustomerIsRegime';
11
12
  import { IExercice } from './IExercice';
@@ -14,8 +15,12 @@ export interface ICard {
14
15
  id?: number;
15
16
  type: CardType;
16
17
  state: CardState;
18
+ isManual: boolean;
19
+ isBlocked: boolean;
17
20
  priority?: number | null;
21
+ plannedAt?: Date | null;
18
22
  idUser?: number | null;
23
+ idTeam?: number | null;
19
24
  idSociety: number;
20
25
  idBalanceSheet?: number | null;
21
26
  idCustomerVat?: number | null;
@@ -28,13 +33,28 @@ export interface ICard {
28
33
 
29
34
  // Associations
30
35
  user?: IUser;
36
+ team?: ITeam;
31
37
  society?: ISociety;
32
38
  balancesheet?: IBalanceSheet;
33
39
  vat?: ICustomerVat;
34
40
  customerIsRegime?: ICustomerIsRegime;
35
41
  checklist?: IChecklist;
36
42
  exercice?: IExercice;
43
+ /**
44
+ * @deprecated old relationship with balance sheet
45
+ */
46
+ balanceSheet?: IBalanceSheet;
47
+ /**
48
+ * @deprecated old relationship with customer vat
49
+ */
50
+ customerVat?: ICustomerVat;
37
51
  events?: ICalendarEvent[];
38
52
  history?: ICardHistory[];
39
53
  comment?: IComment;
40
54
  }
55
+
56
+ export interface CardAnnotedTransaction {
57
+ total: number;
58
+ nbAnnoted: number;
59
+ rate: number;
60
+ }
@@ -1,12 +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;
9
+ plannedAt: Date;
8
10
  idUserWhoChanged: number;
9
11
  idUserOrigin?: number;
12
+ idTeamOrigin?: number;
10
13
  idCard: number;
11
14
  createdAt?: Date;
12
15
  updatedAt?: Date;
@@ -14,5 +17,6 @@ export interface ICardHistory {
14
17
  // Associations
15
18
  userWhoChanged?: Partial<IUser>;
16
19
  userOrigin?: Partial<IUser>;
20
+ teamOrigin?: Partial<ITeam>;
17
21
  card?: ICard;
18
22
  }
@@ -21,6 +21,7 @@ export interface ICustomerVat {
21
21
  acceptation: boolean | null;
22
22
  acceptationDate: Date | null;
23
23
  idMail: number | null;
24
+ idCard: number | null;
24
25
  idVatDeclaration?: number | null; // Obsolète
25
26
  createdAt?: Date | null;
26
27
  updatedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -841,7 +841,7 @@ export * from './Interface/api/supervision/Read';
841
841
  export * from './Interface/api/salariesFile/ReadSalariesFile';
842
842
  export * from './Interface/api/salariesFile/CreateSalariesFile';
843
843
  export * from './Interface/api/shine/CreateShine';
844
- export * from './Interface/api/shine/GetConnect';
844
+ export * from './Interface/api/shine/Query';
845
845
  export * from './Interface/api/shine/CreateShineAccount';
846
846
  export * from './Interface/api/shine/CreateShineTransactions';
847
847
  export * from './Interface/api/shine/ConnectResponse';
@@ -1074,7 +1074,9 @@ export * from './Interface/api/vatControl/QueryVatControl';
1074
1074
  export * from './Interface/api/terminationList/QueryPaginateTerminationList';
1075
1075
  export * from './Interface/api/card/QueryUserCards';
1076
1076
  export * from './Interface/api/card/QueryUserCardsStats';
1077
+ export * from './Interface/api/card/Query';
1077
1078
  export * from './Interface/api/card/UpdateCard';
1079
+ export * from './Interface/api/card/ModifyPlanning';
1078
1080
  export * from './Interface/api/notion/NotionResponse';
1079
1081
  export * from './Interface/api/IntermediateManagementRebate';
1080
1082
  export * from './Interface/api/equipment/Query';
@@ -1128,6 +1130,9 @@ export * from './Interface/api/previsionalForm/CreatePrevisionalForm';
1128
1130
  export * from './Interface/api/toDoExpress/Query';
1129
1131
  export * from './Interface/api/toDoExpress/Read';
1130
1132
  export * from './Interface/api/config/ConfigType';
1133
+ export * from './Interface/api/card/ModifyBalanceSheet';
1134
+ export * from './Interface/api/card/ModifyAcceptation';
1135
+ export * from './Interface/api/card/ModifyCustomerVat';
1131
1136
  export * from './Interface/api/card/Cron';
1132
1137
  export * from './Interface/api/user/RegisterProspect';
1133
1138
  export * from './Interface/api/user/RegisterWebhook';
@@ -1,4 +0,0 @@
1
- export declare class GetConnect {
2
- code: string;
3
- }
4
- //# sourceMappingURL=GetConnect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetConnect.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetConnect.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,UAAU;CAGtB;AAHD,gCAGC;AADC;IADC,IAAA,mBAAW,GAAE;;wCACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class GetConnect {\n @ApiProperty()\n code: string;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export declare class GetConnect {
2
- code: string;
3
- }
4
- //# sourceMappingURL=GetConnect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetConnect.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetConnect.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/GetConnect.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,UAAU;IAErB,IAAI,CAAS;CACd;AADC;IADC,WAAW,EAAE;;wCACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class GetConnect {\n @ApiProperty()\n code: string;\n}\n"]}