@silexpert/core 0.4.108 → 0.4.109

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 (150) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/es/api/resources/InternalInvoicing.d.ts +6 -0
  3. package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
  4. package/es/api/resources/InternalInvoicing.js +7 -0
  5. package/es/api/resources/InternalInvoicing.js.map +1 -0
  6. package/es/api/resources/Journal.d.ts +7 -0
  7. package/es/api/resources/Journal.d.ts.map +1 -0
  8. package/es/api/resources/Journal.js +10 -0
  9. package/es/api/resources/Journal.js.map +1 -0
  10. package/es/api/resources/Product.d.ts +3 -0
  11. package/es/api/resources/Product.d.ts.map +1 -1
  12. package/es/api/resources/Product.js +10 -0
  13. package/es/api/resources/Product.js.map +1 -1
  14. package/es/api/resources/Registration.d.ts +6 -0
  15. package/es/api/resources/Registration.d.ts.map +1 -0
  16. package/es/api/resources/Registration.js +7 -0
  17. package/es/api/resources/Registration.js.map +1 -0
  18. package/es/api/resources.d.ts +6 -0
  19. package/es/api/resources.d.ts.map +1 -1
  20. package/es/api/resources.js +6 -0
  21. package/es/api/resources.js.map +1 -1
  22. package/es/types/Enum/CerfaType.d.ts +14 -14
  23. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  24. package/es/types/Enum/CerfaType.js +15 -14
  25. package/es/types/Enum/CerfaType.js.map +1 -1
  26. package/es/types/Enum/Ged.d.ts +1 -0
  27. package/es/types/Enum/Ged.d.ts.map +1 -1
  28. package/es/types/Enum/Ged.js +1 -1
  29. package/es/types/Enum/Ged.js.map +1 -1
  30. package/es/types/Enum/GlobalRegime.js +61 -61
  31. package/es/types/Enum/GlobalRegime.js.map +1 -1
  32. package/es/types/Enum/PaymentMethod.d.ts +63 -0
  33. package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
  34. package/es/types/Enum/PaymentMethod.js +63 -0
  35. package/es/types/Enum/PaymentMethod.js.map +1 -0
  36. package/es/types/Enum/ProductType.d.ts +6 -4
  37. package/es/types/Enum/ProductType.d.ts.map +1 -1
  38. package/es/types/Enum/ProductType.js +14 -6
  39. package/es/types/Enum/ProductType.js.map +1 -1
  40. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
  41. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
  42. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
  43. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  44. package/es/types/Interface/api/journal/Journals.d.ts +44 -0
  45. package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
  46. package/es/types/Interface/api/journal/Journals.js +13 -0
  47. package/es/types/Interface/api/journal/Journals.js.map +1 -0
  48. package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
  49. package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
  50. package/es/types/Interface/api/journal/QueryJournal.js +28 -0
  51. package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
  52. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  53. package/es/types/Interface/api/product/CreateProduct.js +3 -2
  54. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  55. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  56. package/es/types/Interface/api/product/QueryProduct.js +4 -2
  57. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  58. package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
  59. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
  60. package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
  61. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  62. package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  63. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
  64. package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
  65. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  66. package/es/types/Interface/models/IGedFile.d.ts +10 -10
  67. package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
  68. package/es/types/Interface/models/IGedFile.js.map +1 -1
  69. package/es/types/Interface/models/IPayment.d.ts +20 -15
  70. package/es/types/Interface/models/IPayment.d.ts.map +1 -1
  71. package/es/types/Interface/models/IPayment.js.map +1 -1
  72. package/es/types/Interface/models/IRegistration.d.ts +21 -0
  73. package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
  74. package/es/types/Interface/models/IRegistration.js +2 -0
  75. package/es/types/Interface/models/IRegistration.js.map +1 -0
  76. package/es/types/Interface/models/ISociety.d.ts +1 -0
  77. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  78. package/es/types/Interface/models/ISociety.js.map +1 -1
  79. package/es/types/index.d.ts +6 -0
  80. package/es/types/index.d.ts.map +1 -1
  81. package/es/types/index.js +6 -0
  82. package/es/types/index.js.map +1 -1
  83. package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
  84. package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
  85. package/es/utils/validators/formattedDateString.validator.js +19 -0
  86. package/es/utils/validators/formattedDateString.validator.js.map +1 -0
  87. package/js/api/resources/InternalInvoicing.js +18 -0
  88. package/js/api/resources/InternalInvoicing.js.map +1 -0
  89. package/js/api/resources/Journal.js +21 -0
  90. package/js/api/resources/Journal.js.map +1 -0
  91. package/js/api/resources/Product.js +12 -0
  92. package/js/api/resources/Product.js.map +1 -1
  93. package/js/api/resources/Registration.js +18 -0
  94. package/js/api/resources/Registration.js.map +1 -0
  95. package/js/api/resources.js +10 -1
  96. package/js/api/resources.js.map +1 -1
  97. package/js/types/Enum/CerfaType.js +16 -14
  98. package/js/types/Enum/CerfaType.js.map +1 -1
  99. package/js/types/Enum/Ged.js +2 -2
  100. package/js/types/Enum/Ged.js.map +1 -1
  101. package/js/types/Enum/GlobalRegime.js +61 -61
  102. package/js/types/Enum/GlobalRegime.js.map +1 -1
  103. package/js/types/Enum/PaymentMethod.js +68 -0
  104. package/js/types/Enum/PaymentMethod.js.map +1 -0
  105. package/js/types/Enum/ProductType.js +14 -7
  106. package/js/types/Enum/ProductType.js.map +1 -1
  107. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
  108. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  109. package/js/types/Interface/api/journal/Journals.js +30 -0
  110. package/js/types/Interface/api/journal/Journals.js.map +1 -0
  111. package/js/types/Interface/api/journal/QueryJournal.js +33 -0
  112. package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
  113. package/js/types/Interface/api/product/CreateProduct.js +1 -1
  114. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  115. package/js/types/Interface/api/product/QueryProduct.js +3 -1
  116. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  117. package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
  118. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  119. package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
  120. package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  121. package/js/types/Interface/models/IRegistration.js +6 -0
  122. package/js/types/Interface/models/IRegistration.js.map +1 -0
  123. package/js/types/index.js +72 -0
  124. package/js/types/index.js.map +1 -1
  125. package/js/utils/validators/formattedDateString.validator.js +29 -0
  126. package/js/utils/validators/formattedDateString.validator.js.map +1 -0
  127. package/package.json +1 -1
  128. package/ts/api/resources/InternalInvoicing.ts +10 -0
  129. package/ts/api/resources/Journal.ts +11 -0
  130. package/ts/api/resources/Product.ts +12 -0
  131. package/ts/api/resources/Registration.ts +8 -0
  132. package/ts/api/resources.ts +6 -0
  133. package/ts/types/Enum/CerfaType.ts +14 -14
  134. package/ts/types/Enum/Ged.ts +1 -1
  135. package/ts/types/Enum/GlobalRegime.ts +61 -61
  136. package/ts/types/Enum/PaymentMethod.ts +62 -0
  137. package/ts/types/Enum/ProductType.ts +21 -5
  138. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
  139. package/ts/types/Interface/api/journal/Journals.ts +48 -0
  140. package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
  141. package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
  142. package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
  143. package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
  144. package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
  145. package/ts/types/Interface/models/IGedFile.ts +10 -10
  146. package/ts/types/Interface/models/IPayment.ts +20 -15
  147. package/ts/types/Interface/models/IRegistration.ts +23 -0
  148. package/ts/types/Interface/models/ISociety.ts +1 -0
  149. package/ts/types/index.ts +7 -1
  150. package/ts/utils/validators/formattedDateString.validator.ts +24 -0
@@ -0,0 +1,23 @@
1
+ import { IExercice } from './IExercice';
2
+ import { ISociety } from './ISociety';
3
+ import { IFile } from './IFile';
4
+
5
+ export interface IRegistration {
6
+ id?: number;
7
+ payload: string;
8
+ response: string | null;
9
+ sendAt: Date | null;
10
+ isComplete: boolean;
11
+ idCerfaType: number;
12
+ idDeposit: string | null;
13
+ idExercice: number;
14
+ idFile: number | null;
15
+ idSociety: number;
16
+ updatedAt?: Date | null;
17
+ createdAt?: Date | null;
18
+
19
+ // Associations
20
+ exercice?: IExercice;
21
+ society?: ISociety;
22
+ file?: IFile;
23
+ }
@@ -116,6 +116,7 @@ export interface ISociety {
116
116
  folderNote: string | null;
117
117
  dateSendAdvise: Date | null;
118
118
  idUserAdvise: number | null;
119
+ idVatForInternalInvoicing: number;
119
120
  dateFirstSendUnpaid: Date | null;
120
121
  reasonUnpaid: number | null;
121
122
  stripeSubscriptionId: string | null;
package/ts/types/index.ts CHANGED
@@ -318,6 +318,7 @@ export * from './Enum/ImmobilizationType';
318
318
  export * from './Enum/Nature';
319
319
  export * from './Enum/SurveyType';
320
320
  export * from './Enum/SurveyTypeDatas';
321
+ export * from './Enum/PaymentMethod';
321
322
  export * from './Enum/ReportType';
322
323
  export * from './Enum/ReportState';
323
324
  export * from './Enum/Proceding';
@@ -433,6 +434,7 @@ export * from './Interface/api/accountant/ReadAccountantBalance';
433
434
  export * from './Interface/api/quotes/QueryQuotesAccount';
434
435
  export * from './Interface/api/quotes/CreateQuoteAccount';
435
436
  export * from './Interface/api/account/ReadQuoteAccount';
437
+ export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
436
438
 
437
439
  // export * from './Interface/api/survey/QuerySurvey';
438
440
  export * from './Interface/api/survey/ReadSurvey';
@@ -537,4 +539,8 @@ export * from './Interface/api/vehicle/UpdateSocietyVehicle';
537
539
  export * from './Interface/api/fecFile/QueryFecFile';
538
540
  export * from './Interface/api/product/CreateProduct';
539
541
  export * from './Interface/api/product/UpdateProduct';
540
- export * from './Interface/api/product/QueryProduct';
542
+ export * from './Interface/api/product/QueryProduct';
543
+ export * from './Interface/api/registration/ReadRegistration';
544
+ export * from './Interface/api/registration/CreateRegistration';
545
+ export * from './Interface/api/journal/Journals';
546
+ export * from './Interface/api/journal/QueryJournal';
@@ -0,0 +1,24 @@
1
+ import {
2
+ registerDecorator, ValidationArguments, ValidationOptions,
3
+ } from 'class-validator';
4
+
5
+ export function IsFormattedDateString(validationOptions?: ValidationOptions) {
6
+ return function validator(object: any, propertyName: string) {
7
+ registerDecorator({
8
+ name: 'IsFormattedDateString',
9
+ target: object.constructor,
10
+ propertyName,
11
+ options: {
12
+ message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,
13
+ ...validationOptions,
14
+ },
15
+ validator: {
16
+ validate(value: any, args: ValidationArguments) {
17
+ const dateRegex = /^((\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\d|30)|02-(0[1-9]|1\d|2[0-8])))|((([02468][048]|[13579][26])00|\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;
18
+ return typeof value === 'string'
19
+ && dateRegex.test(value);
20
+ },
21
+ },
22
+ });
23
+ };
24
+ }