@silexpert/core 0.4.150 → 0.4.152

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 (90) hide show
  1. package/es/api/resources/PromoCode.d.ts +2 -1
  2. package/es/api/resources/PromoCode.d.ts.map +1 -1
  3. package/es/api/resources/PromoCode.js +3 -0
  4. package/es/api/resources/PromoCode.js.map +1 -1
  5. package/es/api/resources/Registration.d.ts +1 -0
  6. package/es/api/resources/Registration.d.ts.map +1 -1
  7. package/es/api/resources/Registration.js +3 -0
  8. package/es/api/resources/Registration.js.map +1 -1
  9. package/es/types/Enum/BalanceSheet.js +4 -4
  10. package/es/types/Enum/BalanceSheet.js.map +1 -1
  11. package/es/types/Enum/Registration.d.ts +7 -0
  12. package/es/types/Enum/Registration.d.ts.map +1 -0
  13. package/es/types/Enum/Registration.js +8 -0
  14. package/es/types/Enum/Registration.js.map +1 -0
  15. package/es/types/Enum/Vat.d.ts +17 -101
  16. package/es/types/Enum/Vat.d.ts.map +1 -1
  17. package/es/types/Enum/Vat.js +163 -11
  18. package/es/types/Enum/Vat.js.map +1 -1
  19. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +2 -0
  20. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  21. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  22. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  23. package/es/types/Interface/api/product/CreateProduct.js +1 -2
  24. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  25. package/es/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts +8 -0
  26. package/es/types/Interface/api/promoCode/QueryDefaultPromotion.d.ts.map +1 -0
  27. package/es/types/Interface/api/promoCode/QueryDefaultPromotion.js +45 -0
  28. package/es/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +1 -0
  29. package/es/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts +7 -0
  30. package/es/types/Interface/api/promoCode/ReadDefaultPromotion.d.ts.map +1 -0
  31. package/es/types/Interface/api/promoCode/ReadDefaultPromotion.js +2 -0
  32. package/es/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +1 -0
  33. package/es/types/Interface/api/registration/CreateRegistration.js +2 -2
  34. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  35. package/es/types/Interface/api/registration/ReadRegistration.d.ts +4 -9
  36. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  37. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  38. package/es/types/Interface/models/IDefaultPromotion.d.ts +17 -0
  39. package/es/types/Interface/models/IDefaultPromotion.d.ts.map +1 -0
  40. package/es/types/Interface/models/IDefaultPromotion.js +2 -0
  41. package/es/types/Interface/models/IDefaultPromotion.js.map +1 -0
  42. package/es/types/Interface/models/IFecFile.d.ts +1 -0
  43. package/es/types/Interface/models/IFecFile.d.ts.map +1 -1
  44. package/es/types/Interface/models/IFecFile.js.map +1 -1
  45. package/es/types/Interface/models/IRegistration.d.ts +2 -2
  46. package/es/types/Interface/models/IRegistration.d.ts.map +1 -1
  47. package/es/types/Interface/models/IRegistration.js.map +1 -1
  48. package/es/types/index.d.ts +4 -0
  49. package/es/types/index.d.ts.map +1 -1
  50. package/es/types/index.js +4 -0
  51. package/es/types/index.js.map +1 -1
  52. package/js/api/resources/PromoCode.js +6 -0
  53. package/js/api/resources/PromoCode.js.map +1 -1
  54. package/js/api/resources/Registration.js +4 -0
  55. package/js/api/resources/Registration.js.map +1 -1
  56. package/js/types/Enum/BalanceSheet.js +4 -4
  57. package/js/types/Enum/BalanceSheet.js.map +1 -1
  58. package/js/types/Enum/Registration.js +14 -0
  59. package/js/types/Enum/Registration.js.map +1 -0
  60. package/js/types/Enum/Vat.js +172 -20
  61. package/js/types/Enum/Vat.js.map +1 -1
  62. package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  63. package/js/types/Interface/api/product/CreateProduct.js +1 -1
  64. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  65. package/js/types/Interface/api/promoCode/QueryDefaultPromotion.js +49 -0
  66. package/js/types/Interface/api/promoCode/QueryDefaultPromotion.js.map +1 -0
  67. package/js/types/Interface/api/promoCode/ReadDefaultPromotion.js +6 -0
  68. package/js/types/Interface/api/promoCode/ReadDefaultPromotion.js.map +1 -0
  69. package/js/types/Interface/api/registration/CreateRegistration.js +1 -1
  70. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  71. package/js/types/Interface/models/IDefaultPromotion.js +6 -0
  72. package/js/types/Interface/models/IDefaultPromotion.js.map +1 -0
  73. package/js/types/index.js +48 -0
  74. package/js/types/index.js.map +1 -1
  75. package/package.json +1 -1
  76. package/ts/api/resources/PromoCode.ts +7 -1
  77. package/ts/api/resources/Registration.ts +3 -0
  78. package/ts/types/Enum/BalanceSheet.ts +4 -4
  79. package/ts/types/Enum/Registration.ts +6 -0
  80. package/ts/types/Enum/Vat.ts +182 -12
  81. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -0
  82. package/ts/types/Interface/api/product/CreateProduct.ts +1 -2
  83. package/ts/types/Interface/api/promoCode/QueryDefaultPromotion.ts +30 -0
  84. package/ts/types/Interface/api/promoCode/ReadDefaultPromotion.ts +6 -0
  85. package/ts/types/Interface/api/registration/CreateRegistration.ts +2 -2
  86. package/ts/types/Interface/api/registration/ReadRegistration.ts +2 -9
  87. package/ts/types/Interface/models/IDefaultPromotion.ts +16 -0
  88. package/ts/types/Interface/models/IFecFile.ts +1 -0
  89. package/ts/types/Interface/models/IRegistration.ts +2 -2
  90. package/ts/types/index.ts +4 -0
@@ -1,7 +1,6 @@
1
1
  export const Vat = {
2
2
  WITHOUT_TAXE: {
3
3
  id: 1,
4
- // TODO We should remove idTva when GET vat is remove from api v1
5
4
  idTva: 1,
6
5
  value: 0,
7
6
  displayOrder: 6,
@@ -10,10 +9,11 @@ export const Vat = {
10
9
  deductible: 221,
11
10
  immobilization: 19,
12
11
  roundPercentage: [0],
12
+ isVatImportation: false,
13
+ isVatIntracom: false,
13
14
  },
14
15
  TX_5_5: {
15
16
  id: 2,
16
- // TODO We should remove idTva when GET vat is remove from api v1
17
17
  idTva: 2,
18
18
  value: 5.5,
19
19
  displayOrder: 4,
@@ -22,10 +22,11 @@ export const Vat = {
22
22
  deductible: 4,
23
23
  immobilization: 10,
24
24
  roundPercentage: [5, 6],
25
+ isVatImportation: false,
26
+ isVatIntracom: false,
25
27
  },
26
28
  TX_10: {
27
29
  id: 3,
28
- // TODO We should remove idTva when GET vat is remove from api v1
29
30
  idTva: 3,
30
31
  value: 10,
31
32
  displayOrder: 2,
@@ -34,10 +35,11 @@ export const Vat = {
34
35
  deductible: 5,
35
36
  immobilization: 11,
36
37
  roundPercentage: [10, 11],
38
+ isVatImportation: false,
39
+ isVatIntracom: false,
37
40
  },
38
41
  TX_20: {
39
42
  id: 4,
40
- // TODO We should remove idTva when GET vat is remove from api v1
41
43
  idTva: 4,
42
44
  value: 20,
43
45
  displayOrder: 1,
@@ -46,10 +48,11 @@ export const Vat = {
46
48
  deductible: 6,
47
49
  immobilization: 12,
48
50
  roundPercentage: [19, 20, 21],
51
+ isVatImportation: false,
52
+ isVatIntracom: false,
49
53
  },
50
54
  TX_2_1: {
51
55
  id: 6,
52
- // TODO We should remove idTva when GET vat is remove from api v1
53
56
  idTva: 6,
54
57
  value: 2.1,
55
58
  displayOrder: 5,
@@ -58,10 +61,11 @@ export const Vat = {
58
61
  deductible: 7,
59
62
  immobilization: 13,
60
63
  roundPercentage: [2, 3],
64
+ isVatImportation: false,
65
+ isVatIntracom: false,
61
66
  },
62
67
  TX_8_5: {
63
68
  id: 7,
64
- // TODO We should remove idTva when GET vat is remove from api v1
65
69
  idTva: 7,
66
70
  value: 8.5,
67
71
  displayOrder: 3,
@@ -70,10 +74,11 @@ export const Vat = {
70
74
  deductible: 8,
71
75
  immobilization: 15,
72
76
  roundPercentage: [8, 9],
77
+ isVatImportation: false,
78
+ isVatIntracom: false,
73
79
  },
74
80
  MARGE: {
75
81
  id: 8,
76
- // TODO We should remove idTva when GET vat is remove from api v1
77
82
  idTva: 8,
78
83
  value: 0,
79
84
  displayOrder: 9,
@@ -82,22 +87,167 @@ export const Vat = {
82
87
  deductible: 9,
83
88
  immobilization: null,
84
89
  roundPercentage: [],
90
+ isVatImportation: false,
91
+ isVatIntracom: false,
85
92
  },
86
- INTRACOM: {
93
+ INTRACOM_TX_20: {
87
94
  id: 9,
88
- // TODO We should remove idTva when GET vat is remove from api v1
89
95
  idTva: 9,
90
96
  value: 20,
91
97
  displayOrder: 7,
92
- name: 'TVA intracom',
98
+ name: 'TVA intracom 20%',
93
99
  collected: 207,
94
100
  deductible: 208,
95
101
  immobilization: 208,
96
102
  roundPercentage: [],
103
+ isVatImportation: false,
104
+ isVatIntracom: true,
105
+ },
106
+ INTRACOM_WITHOUT_TAXE: {
107
+ id: 17,
108
+ idTva: 17,
109
+ value: 0,
110
+ displayOrder: 7,
111
+ name: 'TVA intracom Hors-Taxe',
112
+ collected: 207,
113
+ deductible: 208,
114
+ immobilization: 208,
115
+ roundPercentage: [],
116
+ isVatImportation: false,
117
+ isVatIntracom: true,
118
+ },
119
+ INTRACOM_TX_5_5: {
120
+ id: 18,
121
+ idTva: 18,
122
+ value: 5.5,
123
+ displayOrder: 7,
124
+ name: 'TVA intracom 5.5%',
125
+ collected: 207,
126
+ deductible: 208,
127
+ immobilization: 208,
128
+ roundPercentage: [],
129
+ isVatImportation: false,
130
+ isVatIntracom: true,
131
+ },
132
+ INTRACOM_TX_10: {
133
+ id: 19,
134
+ idTva: 19,
135
+ value: 10,
136
+ displayOrder: 7,
137
+ name: 'TVA intracom 10%',
138
+ collected: 207,
139
+ deductible: 208,
140
+ immobilization: 208,
141
+ roundPercentage: [],
142
+ isVatImportation: false,
143
+ isVatIntracom: true,
144
+ },
145
+ INTRACOM_TX_2_1: {
146
+ id: 20,
147
+ idTva: 20,
148
+ value: 2.1,
149
+ displayOrder: 7,
150
+ name: 'TVA intracom 2.1%',
151
+ collected: 207,
152
+ deductible: 208,
153
+ immobilization: 208,
154
+ roundPercentage: [],
155
+ isVatImportation: false,
156
+ isVatIntracom: true,
157
+ },
158
+ INTRACOM_TX_8_5: {
159
+ id: 21,
160
+ idTva: 21,
161
+ value: 8.5,
162
+ displayOrder: 7,
163
+ name: 'TVA intracom 8.5%',
164
+ collected: 207,
165
+ deductible: 208,
166
+ immobilization: 208,
167
+ roundPercentage: [],
168
+ isVatImportation: false,
169
+ isVatIntracom: true,
170
+ },
171
+ IMPORTATION_WITHOUT_TAXE: {
172
+ id: 10,
173
+ idTva: 10,
174
+ value: 0,
175
+ displayOrder: 8,
176
+ name: 'TVA Importation Hors-Taxe',
177
+ collected: 572,
178
+ deductible: 573,
179
+ immobilization: 573,
180
+ roundPercentage: [],
181
+ isVatImportation: true,
182
+ isVatIntracom: false,
183
+ },
184
+ IMPORTATION_TX_5_5: {
185
+ id: 12,
186
+ idTva: 12,
187
+ value: 5.5,
188
+ displayOrder: 8,
189
+ name: 'TVA Importation 5.5%',
190
+ collected: 574,
191
+ deductible: 575,
192
+ immobilization: 575,
193
+ roundPercentage: [],
194
+ isVatImportation: true,
195
+ isVatIntracom: false,
196
+ },
197
+ IMPORTATION_TX_10: {
198
+ id: 13,
199
+ idTva: 13,
200
+ value: 10,
201
+ displayOrder: 8,
202
+ name: 'TVA Importation 10%',
203
+ collected: 576,
204
+ deductible: 577,
205
+ immobilization: 577,
206
+ roundPercentage: [],
207
+ isVatImportation: true,
208
+ isVatIntracom: false,
209
+ },
210
+ IMPORTATION_TX_20: {
211
+ id: 14,
212
+ idTva: 14,
213
+ value: 20,
214
+ displayOrder: 8,
215
+ name: 'TVA Importation 20%',
216
+ collected: 578,
217
+ deductible: 579,
218
+ immobilization: 579,
219
+ roundPercentage: [],
220
+ isVatImportation: true,
221
+ isVatIntracom: false,
222
+ },
223
+ IMPORTATION_TX_2_1: {
224
+ id: 15,
225
+ idTva: 15,
226
+ value: 2.1,
227
+ displayOrder: 8,
228
+ name: 'TVA Importation 2.1%',
229
+ collected: 580,
230
+ deductible: 581,
231
+ immobilization: 581,
232
+ roundPercentage: [],
233
+ isVatImportation: true,
234
+ isVatIntracom: false,
235
+ },
236
+ IMPORTATION_TX_8_5: {
237
+ id: 16,
238
+ idTva: 16,
239
+ value: 8.5,
240
+ displayOrder: 8,
241
+ name: 'TVA Importation 8.5%',
242
+ collected: 582,
243
+ deductible: 583,
244
+ immobilization: 583,
245
+ roundPercentage: [],
246
+ isVatImportation: true,
247
+ isVatIntracom: false,
97
248
  },
98
249
  MANUAL: {
99
250
  id: 11,
100
- // TODO We should remove idTva when GET vat is remove from api v1
101
251
  idTva: 11,
102
252
  value: 0,
103
253
  displayOrder: 8,
@@ -106,6 +256,8 @@ export const Vat = {
106
256
  deductible: 0,
107
257
  immobilization: null,
108
258
  roundPercentage: [],
259
+ isVatImportation: false,
260
+ isVatIntracom: false,
109
261
  },
110
262
  };
111
263
  //# sourceMappingURL=Vat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,EAAE;QAClB,eAAe,EAAE,CAAC,CAAC,CAAC;KACrB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,GAAG;QACV,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,GAAG;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L,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,EAAE;KACpB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,GAAG;QACnB,eAAe,EAAE,EAAE;KACpB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,EAAE;QACN,iEAAiE;QACjE,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,EAAE;KACpB;CACF,CAAC","sourcesContent":["export const Vat = {\n WITHOUT_TAXE: {\n id: 1,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 1,\n value: 0,\n displayOrder: 6,\n name: 'Hors-Taxe',\n collected: 212,\n deductible: 221,\n immobilization: 19,\n roundPercentage: [0],\n },\n TX_5_5: {\n id: 2,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 2,\n value: 5.5,\n displayOrder: 4,\n name: 'TVA 5.5%',\n collected: 209,\n deductible: 4,\n immobilization: 10,\n roundPercentage: [5, 6],\n },\n TX_10: {\n id: 3,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 3,\n value: 10,\n displayOrder: 2,\n name: 'TVA 10%',\n collected: 210,\n deductible: 5,\n immobilization: 11,\n roundPercentage: [10, 11],\n },\n TX_20: {\n id: 4,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 4,\n value: 20,\n displayOrder: 1,\n name: 'TVA 20%',\n collected: 211,\n deductible: 6,\n immobilization: 12,\n roundPercentage: [19, 20, 21],\n },\n TX_2_1: {\n id: 6,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 6,\n value: 2.1,\n displayOrder: 5,\n name: 'TVA 2.1%',\n collected: 222,\n deductible: 7,\n immobilization: 13,\n roundPercentage: [2, 3],\n },\n TX_8_5: {\n id: 7,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 7,\n value: 8.5,\n displayOrder: 3,\n name: 'TVA 8.5%',\n collected: 345,\n deductible: 8,\n immobilization: 15,\n roundPercentage: [8, 9],\n },\n MARGE: {\n id: 8,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 8,\n value: 0,\n displayOrder: 9,\n name: 'Sur Marge',\n collected: 211,\n deductible: 9,\n immobilization: null,\n roundPercentage: [],\n },\n INTRACOM: {\n id: 9,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 9,\n value: 20,\n displayOrder: 7,\n name: 'TVA intracom',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n },\n MANUAL: {\n id: 11,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 11,\n value: 0,\n displayOrder: 8,\n name: 'TVA manuelle',\n collected: 0,\n deductible: 0,\n immobilization: null,\n roundPercentage: [],\n },\n};"]}
1
+ {"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,GAAG,GAAe;IAC7B,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,EAAE;QAClB,eAAe,EAAE,CAAC,CAAC,CAAC;Q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cAAc,EAAE,GAAG;QACnB,eAAe,EAAE,EAAE;QACnB,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,KAAK;KACrB;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,GAAG;QACV,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,sBAAsB;QAC5B,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,GAAG;QACnB,eAAe,EAAE,EAAE;QACnB,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,EAAE;QACN,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,EAAE;QACnB,gBAAgB,EAAE,KAAK;QACvB,aAAa,EAAE,KAAK;KACrB;CACF,CAAC","sourcesContent":["export interface VatType{\n id: number;\n idTva: number;\n value: number;\n displayOrder: number;\n name: string;\n collected: number;\n deductible: number;\n immobilization: number | null;\n roundPercentage: number[];\n isVatImportation: boolean;\n isVatIntracom: boolean;\n}\n\nexport interface VatTypeEnum {\n [key: string]: VatType\n}\n\nexport const Vat:VatTypeEnum = {\n WITHOUT_TAXE: {\n id: 1,\n idTva: 1,\n value: 0,\n displayOrder: 6,\n name: 'Hors-Taxe',\n collected: 212,\n deductible: 221,\n immobilization: 19,\n roundPercentage: [0],\n isVatImportation: false,\n isVatIntracom: false,\n },\n TX_5_5: {\n id: 2,\n idTva: 2,\n value: 5.5,\n displayOrder: 4,\n name: 'TVA 5.5%',\n collected: 209,\n deductible: 4,\n immobilization: 10,\n roundPercentage: [5, 6],\n isVatImportation: false,\n isVatIntracom: false,\n },\n TX_10: {\n id: 3,\n idTva: 3,\n value: 10,\n displayOrder: 2,\n name: 'TVA 10%',\n collected: 210,\n deductible: 5,\n immobilization: 11,\n roundPercentage: [10, 11],\n isVatImportation: false,\n isVatIntracom: false,\n },\n TX_20: {\n id: 4,\n idTva: 4,\n value: 20,\n displayOrder: 1,\n name: 'TVA 20%',\n collected: 211,\n deductible: 6,\n immobilization: 12,\n roundPercentage: [19, 20, 21],\n isVatImportation: false,\n isVatIntracom: false,\n },\n TX_2_1: {\n id: 6,\n idTva: 6,\n value: 2.1,\n displayOrder: 5,\n name: 'TVA 2.1%',\n collected: 222,\n deductible: 7,\n immobilization: 13,\n roundPercentage: [2, 3],\n isVatImportation: false,\n isVatIntracom: false,\n },\n TX_8_5: {\n id: 7,\n idTva: 7,\n value: 8.5,\n displayOrder: 3,\n name: 'TVA 8.5%',\n collected: 345,\n deductible: 8,\n immobilization: 15,\n roundPercentage: [8, 9],\n isVatImportation: false,\n isVatIntracom: false,\n },\n MARGE: {\n id: 8,\n idTva: 8,\n value: 0,\n displayOrder: 9,\n name: 'Sur Marge',\n collected: 211,\n deductible: 9,\n immobilization: null,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: false,\n },\n INTRACOM_TX_20: {\n id: 9,\n idTva: 9,\n value: 20,\n displayOrder: 7,\n name: 'TVA intracom 20%',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n INTRACOM_WITHOUT_TAXE: {\n id: 17,\n idTva: 17,\n value: 0,\n displayOrder: 7,\n name: 'TVA intracom Hors-Taxe',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n INTRACOM_TX_5_5: {\n id: 18,\n idTva: 18,\n value: 5.5,\n displayOrder: 7,\n name: 'TVA intracom 5.5%',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n INTRACOM_TX_10: {\n id: 19,\n idTva: 19,\n value: 10,\n displayOrder: 7,\n name: 'TVA intracom 10%',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n INTRACOM_TX_2_1: {\n id: 20,\n idTva: 20,\n value: 2.1,\n displayOrder: 7,\n name: 'TVA intracom 2.1%',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n INTRACOM_TX_8_5: {\n id: 21,\n idTva: 21,\n value: 8.5,\n displayOrder: 7,\n name: 'TVA intracom 8.5%',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: true,\n },\n IMPORTATION_WITHOUT_TAXE: {\n id: 10,\n idTva: 10,\n value: 0,\n displayOrder: 8,\n name: 'TVA Importation Hors-Taxe',\n collected: 572,\n deductible: 573,\n immobilization: 573,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n IMPORTATION_TX_5_5: {\n id: 12,\n idTva: 12,\n value: 5.5,\n displayOrder: 8,\n name: 'TVA Importation 5.5%',\n collected: 574,\n deductible: 575,\n immobilization: 575,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n IMPORTATION_TX_10: {\n id: 13,\n idTva: 13,\n value: 10,\n displayOrder: 8,\n name: 'TVA Importation 10%',\n collected: 576,\n deductible: 577,\n immobilization: 577,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n IMPORTATION_TX_20: {\n id: 14,\n idTva: 14,\n value: 20,\n displayOrder: 8,\n name: 'TVA Importation 20%',\n collected: 578,\n deductible: 579,\n immobilization: 579,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n IMPORTATION_TX_2_1: {\n id: 15,\n idTva: 15,\n value: 2.1,\n displayOrder: 8,\n name: 'TVA Importation 2.1%',\n collected: 580,\n deductible: 581,\n immobilization: 581,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n IMPORTATION_TX_8_5: {\n id: 16,\n idTva: 16,\n value: 8.5,\n displayOrder: 8,\n name: 'TVA Importation 8.5%',\n collected: 582,\n deductible: 583,\n immobilization: 583,\n roundPercentage: [],\n isVatImportation: true,\n isVatIntracom: false,\n },\n MANUAL: {\n id: 11,\n idTva: 11,\n value: 0,\n displayOrder: 8,\n name: 'TVA manuelle',\n collected: 0,\n deductible: 0,\n immobilization: null,\n roundPercentage: [],\n isVatImportation: false,\n isVatIntracom: false,\n },\n};"]}
@@ -5,6 +5,8 @@ export declare class FormEntry {
5
5
  idVat: number;
6
6
  amount: number;
7
7
  }[];
8
+ isVatIntracom?: boolean;
9
+ isVatImportation?: boolean;
8
10
  idAccount?: number;
9
11
  idThirdParty?: number;
10
12
  amountAllTaxIncludedPurchase?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAInE,oBAAY,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EAAG,MAAM,GAAG;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,oBAAY,6BAA6B,GAAG,SAAS,EAAE,CAAC;AAExD,qBAAa,2BAA2B;IAGtC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAGD,MAAM,WAAW,kCAAmC,SAAQ,sBAAsB;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC"}
1
+ {"version":3,"file":"AnnotateAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAInE,oBAAY,kBAAkB,GAAG,eAAe,CAAC;AAEjD,qBAAa,SAAS;IACpB,GAAG,CAAC,EAAG,MAAM,GAAG;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,oBAAY,6BAA6B,GAAG,SAAS,EAAE,CAAC;AAExD,qBAAa,2BAA2B;IAGtC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAGD,MAAM,WAAW,kCAAmC,SAAQ,sBAAsB;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAI3E,MAAM,OAAO,SAAS;CAYrB;AAKD,MAAM,OAAO,2BAA2B;CAuBvC;AApBC;IAFC,mBAAmB,EAAE;;4DAEA;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;qEACI;AAE1B;IADC,mBAAmB,EAAE;;6DACC;AAKvB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACK;AAElB;IADC,mBAAmB,EAAE;8BACV,IAAI;8DAAC;AAEjB;IADC,mBAAmB,EAAE;;kEACC;AAEvB;IADC,mBAAmB,EAAE;;yDACR;AAEd;IADC,mBAAmB,EAAE;;yEACQ","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n idSocietyPartner?: number;\n @ApiPropertyOptional()\n exported?: Date | null;\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isAsset?: boolean;\n @ApiPropertyOptional()\n dateValue?: Date;\n @ApiPropertyOptional()\n invoiceNumber?: string;\n @ApiPropertyOptional()\n name?: string;\n @ApiPropertyOptional()\n amountAllTaxIncluded?: number;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}\n"]}
1
+ {"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAI3E,MAAM,OAAO,SAAS;CAcrB;AAKD,MAAM,OAAO,2BAA2B;CAuBvC;AApBC;IAFC,mBAAmB,EAAE;;4DAEA;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;qEACI;AAE1B;IADC,mBAAmB,EAAE;;6DACC;AAKvB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACK;AAElB;IADC,mBAAmB,EAAE;8BACV,IAAI;8DAAC;AAEjB;IADC,mBAAmB,EAAE;;kEACC;AAEvB;IADC,mBAAmB,EAAE;;yDACR;AAEd;IADC,mBAAmB,EAAE;;yEACQ","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n isVatIntracom?: boolean;\n isVatImportation?: boolean;\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n idSocietyPartner?: number;\n @ApiPropertyOptional()\n exported?: Date | null;\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isAsset?: boolean;\n @ApiPropertyOptional()\n dateValue?: Date;\n @ApiPropertyOptional()\n invoiceNumber?: string;\n @ApiPropertyOptional()\n name?: string;\n @ApiPropertyOptional()\n amountAllTaxIncluded?: number;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGxB,IAAI,EAAE,MAAM,CAAC;IAWb,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"CreateProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGxB,IAAI,EAAE,MAAM,CAAC;IAWb,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { IsNumber, IsOptional, IsString, Min, } from 'class-validator';
11
- import { ProductType, Unit, Vat } from '../../..';
11
+ import { ProductType, Unit } from '../../..';
12
12
  import { ApiProperty, ApiPropertyOptional } from '../../../..';
13
13
  import { IsObjectId } from '../../../../utils/validators/objectId.validator';
14
14
  export class CreateProduct {
@@ -33,7 +33,6 @@ __decorate([
33
33
  __decorate([
34
34
  ApiProperty(),
35
35
  IsNumber(),
36
- IsObjectId(Vat),
37
36
  __metadata("design:type", Number)
38
37
  ], CreateProduct.prototype, "idVAT", void 0);
39
38
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,MAAM,OAAO,aAAa;CAwCzB;AArCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;2CACE;AAWb;IATC,WAAW,EAAE;IACb,QAAQ,CAAC;QACR,gBAAgB,EAAE,CAAC;KACpB,EAAE;QACD,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACD,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,0BAA0B;KACpC,CAAC;;uDACuB;AAKzB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,GAAG,CAAC;;4CACF;AAKd;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,IAAI,CAAC;;2CACJ;AAKb;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,WAAW,CAAC;;2CACX;AAKb;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACQ","sourcesContent":["import {\n IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ProductType, Unit, Vat } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class CreateProduct {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsNumber({\n maxDecimalPlaces: 6,\n }, {\n message: 'Price should be a number with maximum 6 decimal',\n })\n @Min(0, {\n message: 'Price should be positive',\n })\n priceTaxExcluded: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Vat)\n idVAT: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Unit)\n unit: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(ProductType)\n type: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n codeProduct?: string;\n}\n"]}
1
+ {"version":3,"file":"CreateProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,MAAM,OAAO,aAAa;CAuCzB;AApCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;2CACE;AAWb;IATC,WAAW,EAAE;IACb,QAAQ,CAAC;QACR,gBAAgB,EAAE,CAAC;KACpB,EAAE;QACD,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACD,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,0BAA0B;KACpC,CAAC;;uDACuB;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4CACG;AAKd;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,IAAI,CAAC;;2CACJ;AAKb;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,WAAW,CAAC;;2CACX;AAKb;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACQ","sourcesContent":["import {\n IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ProductType, Unit } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class CreateProduct {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsNumber({\n maxDecimalPlaces: 6,\n }, {\n message: 'Price should be a number with maximum 6 decimal',\n })\n @Min(0, {\n message: 'Price should be positive',\n })\n priceTaxExcluded: number;\n\n @ApiProperty()\n @IsNumber()\n idVAT: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Unit)\n unit: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(ProductType)\n type: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n codeProduct?: string;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export declare class QueryDefaultPromotion {
2
+ isYearly: boolean;
3
+ isMonthly: boolean;
4
+ isMicroPlan: boolean;
5
+ isCashBasedBusinessPlan: boolean;
6
+ isAccrualBusinessPlan: boolean;
7
+ }
8
+ //# sourceMappingURL=QueryDefaultPromotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryDefaultPromotion.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/promoCode/QueryDefaultPromotion.ts"],"names":[],"mappings":"AAIA,qBAAa,qBAAqB;IAIhC,QAAQ,EAAE,OAAO,CAAC;IAKlB,SAAS,EAAE,OAAO,CAAC;IAKnB,WAAW,EAAE,OAAO,CAAC;IAKrB,uBAAuB,EAAE,OAAO,CAAC;IAKjC,qBAAqB,EAAE,OAAO,CAAC;CAChC"}
@@ -0,0 +1,45 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsBoolean } from 'class-validator';
11
+ import { ApiProperty } from '../../../../utils';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
+ export class QueryDefaultPromotion {
14
+ }
15
+ __decorate([
16
+ ApiProperty({ default: false }),
17
+ IsBoolean(),
18
+ ToBoolean(),
19
+ __metadata("design:type", Boolean)
20
+ ], QueryDefaultPromotion.prototype, "isYearly", void 0);
21
+ __decorate([
22
+ ApiProperty({ default: false }),
23
+ IsBoolean(),
24
+ ToBoolean(),
25
+ __metadata("design:type", Boolean)
26
+ ], QueryDefaultPromotion.prototype, "isMonthly", void 0);
27
+ __decorate([
28
+ ApiProperty({ default: false }),
29
+ IsBoolean(),
30
+ ToBoolean(),
31
+ __metadata("design:type", Boolean)
32
+ ], QueryDefaultPromotion.prototype, "isMicroPlan", void 0);
33
+ __decorate([
34
+ ApiProperty({ default: false }),
35
+ IsBoolean(),
36
+ ToBoolean(),
37
+ __metadata("design:type", Boolean)
38
+ ], QueryDefaultPromotion.prototype, "isCashBasedBusinessPlan", void 0);
39
+ __decorate([
40
+ ApiProperty({ default: false }),
41
+ IsBoolean(),
42
+ ToBoolean(),
43
+ __metadata("design:type", Boolean)
44
+ ], QueryDefaultPromotion.prototype, "isAccrualBusinessPlan", void 0);
45
+ //# sourceMappingURL=QueryDefaultPromotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryDefaultPromotion.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/promoCode/QueryDefaultPromotion.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,qBAAqB;CAyBjC;AArBC;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/B,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAKlB;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/B,SAAS,EAAE;IACX,SAAS,EAAE;;wDACO;AAKnB;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/B,SAAS,EAAE;IACX,SAAS,EAAE;;0DACS;AAKrB;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/B,SAAS,EAAE;IACX,SAAS,EAAE;;sEACqB;AAKjC;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/B,SAAS,EAAE;IACX,SAAS,EAAE;;oEACmB","sourcesContent":["import { IsBoolean } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryDefaultPromotion {\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n isYearly: boolean;\n\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n isMonthly: boolean;\n\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n isMicroPlan: boolean;\n\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n isCashBasedBusinessPlan: boolean;\n\n @ApiProperty({ default: false })\n @IsBoolean()\n @ToBoolean()\n isAccrualBusinessPlan: boolean;\n}"]}
@@ -0,0 +1,7 @@
1
+ export interface ReadDefaultPromotion {
2
+ label: string;
3
+ startDate?: Date | null;
4
+ endDate?: Date | null;
5
+ metadata?: unknown | null;
6
+ }
7
+ //# sourceMappingURL=ReadDefaultPromotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadDefaultPromotion.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/promoCode/ReadDefaultPromotion.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ReadDefaultPromotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadDefaultPromotion.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/promoCode/ReadDefaultPromotion.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadDefaultPromotion {\n label: string;\n startDate?: Date | null;\n endDate?: Date | null;\n metadata?: unknown | null;\n}"]}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsEnum, IsOptional, IsBoolean, IsNumber, IsPositive, } from 'class-validator';
10
+ import { IsEnum, IsOptional, IsBoolean, IsNumber, Min, } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  import { CerfaType } from '../../../Enum/CerfaType';
13
13
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -31,7 +31,7 @@ __decorate([
31
31
  __decorate([
32
32
  ApiPropertyOptional(),
33
33
  IsNumber(),
34
- IsPositive(),
34
+ Min(0),
35
35
  IsOptional(),
36
36
  __metadata("design:type", Number)
37
37
  ], CreateRegistration.prototype, "amountToPay", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,GACpD,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,yBAAyB;CAMrC;AAJC;IADC,mBAAmB,EAAE;;uDACD;AAGrB;IADC,mBAAmB,EAAE;;sDACF;AAGtB,MAAM,OAAO,kBAAkB;CAgB9B;AAbC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,CAAC;;uDACE;AAMpB;IAJC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,UAAU,EAAE;;uDACQ;AAMrB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kDACI;AAGnB,MAAM,OAAO,iCAAiC;CAM7C;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;wEACY","sourcesContent":["import {\n IsEnum, IsOptional, IsBoolean, IsNumber, IsPositive,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CerfaType } from '../../../Enum/CerfaType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateRegistrationSetting {\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport class CreateRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsPositive()\n @IsOptional()\n amountToPay?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n}\n\nexport class CreateRegistrationSynchronization {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n forceTestMode?: boolean;\n}"]}
1
+ {"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,GAC7C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,yBAAyB;CAMrC;AAJC;IADC,mBAAmB,EAAE;;uDACD;AAGrB;IADC,mBAAmB,EAAE;;sDACF;AAGtB,MAAM,OAAO,kBAAkB;CAgB9B;AAbC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,CAAC;;uDACE;AAMpB;IAJC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,CAAC;IACN,UAAU,EAAE;;uDACQ;AAMrB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kDACI;AAGnB,MAAM,OAAO,iCAAiC;CAM7C;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;wEACY","sourcesContent":["import {\n IsEnum, IsOptional, IsBoolean, IsNumber, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CerfaType } from '../../../Enum/CerfaType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateRegistrationSetting {\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport class CreateRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @Min(0)\n @IsOptional()\n amountToPay?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n}\n\nexport class CreateRegistrationSynchronization {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n forceTestMode?: boolean;\n}"]}
@@ -1,12 +1,8 @@
1
1
  import { IRegistration } from '../../models/IRegistration';
2
- import { ReadInterchange } from '../aspone/ReadInterchange';
3
- interface RegistrationWithPayloadObject extends Omit<IRegistration, 'payload'> {
4
- payload: Record<string, unknown>;
5
- }
6
- interface RegistrationWithPayloadAndResponseObject extends Omit<RegistrationWithPayloadObject, 'response'> {
7
- response: ReadInterchange | Record<string, unknown>;
8
- }
9
- export declare type ReadRegistration = RegistrationWithPayloadAndResponseObject;
2
+ import { RegistrationState } from '../../..';
3
+ export declare type ReadRegistration = IRegistration & {
4
+ state: RegistrationState;
5
+ };
10
6
  export interface ReadSynchronization {
11
7
  id: number;
12
8
  hasError: boolean;
@@ -16,5 +12,4 @@ export interface ReadSynchronization {
16
12
  isTimeOut: boolean;
17
13
  hasFailed: boolean;
18
14
  }
19
- export {};
20
15
  //# sourceMappingURL=ReadRegistration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,6BAA8B,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IAC5E,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AACD,UAAU,wCAAyC,SAAQ,IAAI,CAAC,6BAA6B,EAAE,UAAU,CAAC;IACxG,QAAQ,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrD;AAED,oBAAY,gBAAgB,GAAG,wCAAwC,CAAC;AAExE,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"ReadRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,oBAAY,gBAAgB,GAAG,aAAa,GAAG;IAAE,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE5E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"","sourcesContent":["import { IRegistration } from '../../models/IRegistration';\nimport { ReadInterchange } from '../aspone/ReadInterchange';\n\ninterface RegistrationWithPayloadObject extends Omit<IRegistration, 'payload'> {\n payload: Record<string, unknown>;\n}\ninterface RegistrationWithPayloadAndResponseObject extends Omit<RegistrationWithPayloadObject, 'response'> {\n response: ReadInterchange | Record<string, unknown>;\n}\n\nexport type ReadRegistration = RegistrationWithPayloadAndResponseObject;\n\nexport interface ReadSynchronization {\n id: number;\n hasError: boolean;\n hasDepositError: boolean;\n isProcessFinished: boolean;\n hasPaymentError: boolean;\n isTimeOut: boolean;\n hasFailed: boolean;\n}"]}
1
+ {"version":3,"file":"ReadRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"","sourcesContent":["import { IRegistration } from '../../models/IRegistration';\nimport { RegistrationState } from '../../..';\n\nexport type ReadRegistration = IRegistration & { state: RegistrationState };\n\nexport interface ReadSynchronization {\n id: number;\n hasError: boolean;\n hasDepositError: boolean;\n isProcessFinished: boolean;\n hasPaymentError: boolean;\n isTimeOut: boolean;\n hasFailed: boolean;\n}"]}
@@ -0,0 +1,17 @@
1
+ export interface IDefaultPromotion {
2
+ id?: number;
3
+ label: string;
4
+ startDate?: Date | null;
5
+ endDate?: Date | null;
6
+ isYearly: boolean;
7
+ isMonthly: boolean;
8
+ isMicroPlan: boolean;
9
+ isCashBasedBusinessPlan: boolean;
10
+ isAccrualBusinessPlan: boolean;
11
+ isTest: boolean;
12
+ metadata?: string | null;
13
+ idStripeCoupon: string;
14
+ createdAt?: Date | null;
15
+ updatedAt?: Date | null;
16
+ }
17
+ //# sourceMappingURL=IDefaultPromotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDefaultPromotion.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IDefaultPromotion.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,OAAO,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDefaultPromotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDefaultPromotion.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IDefaultPromotion.ts"],"names":[],"mappings":"","sourcesContent":["export interface IDefaultPromotion {\n id?: number;\n label: string;\n startDate?: Date | null;\n endDate?: Date | null;\n isYearly: boolean;\n isMonthly: boolean;\n isMicroPlan: boolean;\n isCashBasedBusinessPlan: boolean;\n isAccrualBusinessPlan: boolean;\n isTest: boolean;\n metadata?: string | null;\n idStripeCoupon: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}"]}
@@ -4,6 +4,7 @@ export interface IFecFile {
4
4
  id?: number;
5
5
  importComplete: boolean;
6
6
  delimiter: string;
7
+ mapping: any | null;
7
8
  idFile: number;
8
9
  idSociety: number;
9
10
  createdAt?: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"IFecFile.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
1
+ {"version":3,"file":"IFecFile.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,GAAG,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IFecFile.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFecFile.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IFile } from './IFile';\n\n// files\nexport interface IFecFile {\n id?: number;\n importComplete: boolean;\n delimiter: string;\n idFile: number;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n file?: IFile;\n society?: ISociety;\n}\n"]}
1
+ {"version":3,"file":"IFecFile.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFecFile.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IFile } from './IFile';\n\n// files\nexport interface IFecFile {\n id?: number;\n importComplete: boolean;\n delimiter: string;\n mapping: any | null;\n idFile: number;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n file?: IFile;\n society?: ISociety;\n}\n"]}
@@ -3,9 +3,9 @@ import { ISociety } from './ISociety';
3
3
  import { IFile } from './IFile';
4
4
  export interface IRegistration {
5
5
  id?: number;
6
- payload: string;
6
+ payload: any;
7
7
  amountToPay?: number | null;
8
- response: string | null;
8
+ response: any | null;
9
9
  sendAt: Date | null;
10
10
  isComplete: boolean;
11
11
  idCerfaType: number;
@@ -1 +1 @@
1
- {"version":3,"file":"IRegistration.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
1
+ {"version":3,"file":"IRegistration.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"IRegistration.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IRegistration.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { ISociety } from './ISociety';\nimport { IFile } from './IFile';\n\nexport interface IRegistration {\n id?: number;\n payload: string;\n amountToPay?: number | null;\n response: string | null;\n sendAt: Date | null;\n isComplete: boolean;\n idCerfaType: number;\n idDeposit: string | null;\n idExercice: number;\n idFile?: number | null;\n idSociety: number;\n updatedAt?: Date | null;\n createdAt?: Date | null;\n\n // Associations\n exercice?: IExercice;\n society?: ISociety;\n file?: IFile;\n}"]}
1
+ {"version":3,"file":"IRegistration.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IRegistration.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { ISociety } from './ISociety';\nimport { IFile } from './IFile';\n\nexport interface IRegistration {\n id?: number;\n payload: any;\n amountToPay?: number | null;\n response: any | null;\n sendAt: Date | null;\n isComplete: boolean;\n idCerfaType: number;\n idDeposit: string | null;\n idExercice: number;\n idFile?: number | null;\n idSociety: number;\n updatedAt?: Date | null;\n createdAt?: Date | null;\n\n // Associations\n exercice?: IExercice;\n society?: ISociety;\n file?: IFile;\n}"]}
@@ -296,8 +296,10 @@ export * from './Interface/models/IMachineLearningResult';
296
296
  export * from './Interface/models/IBalanceSheetModule2';
297
297
  export * from './Interface/models/IBalanceSheetStatus';
298
298
  export * from './Interface/models/IBalanceSheetCompletion';
299
+ export * from './Interface/models/IDefaultPromotion';
299
300
  export * from './Form/FormAuthenticate';
300
301
  export * from './Form/FormConnector';
302
+ export * from './Enum/Registration';
301
303
  export * from './Enum/Aspone';
302
304
  export * from './Enum/ProfitsType';
303
305
  export * from './Enum/Tax';
@@ -490,6 +492,8 @@ export * from './Interface/api/revision/QueryRevisionSearchEntries';
490
492
  export * from './Interface/api/vatDeclaration/QueryVatDeclaration';
491
493
  export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
492
494
  export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
495
+ export * from './Interface/api/promoCode/QueryDefaultPromotion';
496
+ export * from './Interface/api/promoCode/ReadDefaultPromotion';
493
497
  export * from './Interface/api/survey/ReadSurvey';
494
498
  export * from './Interface/api/survey/UpdateSurvey';
495
499
  export * from './Interface/api/survey/CreateSurvey';