@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,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CreateInternalInvoicing = undefined;
7
+
8
+ var _utils = require("../../../../utils");
9
+
10
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11
+ var c = arguments.length,
12
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
13
+ d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);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;
15
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16
+ };
17
+
18
+ var __metadata = undefined && undefined.__metadata || function (k, v) {
19
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
+ };
21
+
22
+ class CreateInternalInvoicing {}
23
+
24
+ exports.CreateInternalInvoicing = CreateInternalInvoicing;
25
+
26
+ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], CreateInternalInvoicing.prototype, "month", void 0);
27
+
28
+ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], CreateInternalInvoicing.prototype, "year", void 0);
29
+ //# sourceMappingURL=CreateInternalInvoicing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,uBAAP,CAA8B;;QAAvB,uB,GAAA,uB;;AAEX,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,iCAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,iCAAA,E,MAAA,E,KAAa,CAAb,CAAA","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class CreateInternalInvoicing {\n @ApiProperty()\n month: number;\n\n @ApiProperty()\n year: number;\n}\n"],"sourceRoot":"","file":"CreateInternalInvoicing.js"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ class JournalDebitCredit {}
8
+
9
+ exports.JournalDebitCredit = JournalDebitCredit;
10
+
11
+ class PeriodDatum extends JournalDebitCredit {}
12
+
13
+ exports.PeriodDatum = PeriodDatum;
14
+
15
+ class IPeriodsCentralisation {}
16
+
17
+ exports.IPeriodsCentralisation = IPeriodsCentralisation;
18
+
19
+ class IPeriods {}
20
+
21
+ exports.IPeriods = IPeriods;
22
+
23
+ class Journals {}
24
+
25
+ exports.Journals = Journals;
26
+
27
+ class JsonExportJournal {}
28
+
29
+ exports.JsonExportJournal = JsonExportJournal;
30
+ //# sourceMappingURL=Journals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/journal/Journals.ts"],"names":[],"mappings":";;;;;;AAAM,MAAO,kBAAP,CAAyB;;QAAlB,kB,GAAA,kB;;AAKP,MAAO,WAAP,SAA2B,kBAA3B,CAA6C;;QAAtC,W,GAAA,W;;AASP,MAAO,sBAAP,CAA6B;;QAAtB,sB,GAAA,sB;;AAOP,MAAO,QAAP,CAAe;;QAAR,Q,GAAA,Q;;AAWP,MAAO,QAAP,CAAe;;QAAR,Q,GAAA,Q;;AAUP,MAAO,iBAAP,CAAwB;;QAAjB,iB,GAAA,iB","sourcesContent":["export class JournalDebitCredit {\n debit?: number;\n credit?: number;\n}\n\nexport class PeriodDatum extends JournalDebitCredit {\n dateValue: string | Date;\n invoiceNumber: string;\n designation: string;\n account: number;\n accountName: string;\n master: boolean;\n}\n\nexport class IPeriodsCentralisation {\n [index: string]: {\n account: number;\n accountName: string;\n } & JournalDebitCredit;\n}\n\nexport class IPeriods {\n [index: string]: {\n monthYearPeriods: string;\n data?: PeriodDatum[];\n dataCentralisation?: IPeriodsCentralisation;\n total: {\n accumulated: JournalDebitCredit;\n month: JournalDebitCredit;\n };\n };\n}\nexport class Journals {\n [index: string]: {\n idJournal: number;\n // eslint-disable-next-line no-restricted-globals\n name: string;\n fullName: string;\n periods?: IPeriods;\n };\n}\n\nexport class JsonExportJournal {\n idSociety: number;\n startDate: string;\n endDate: string;\n data: Journals;\n}\n"],"sourceRoot":"","file":"Journals.js"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.QueryJournal = undefined;
7
+
8
+ var _utils = require("../../../../utils");
9
+
10
+ var _formattedDateString = require("../../../../utils/validators/formattedDateString.validator");
11
+
12
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13
+ var c = arguments.length,
14
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
15
+ d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);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;
17
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18
+ };
19
+
20
+ var __metadata = undefined && undefined.__metadata || function (k, v) {
21
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
+ };
23
+
24
+ class QueryJournal {}
25
+
26
+ exports.QueryJournal = QueryJournal;
27
+
28
+ __decorate([(0, _utils.ApiProperty)(), (0, _formattedDateString.IsFormattedDateString)(), __metadata("design:type", String)], QueryJournal.prototype, "startDate", void 0);
29
+
30
+ __decorate([(0, _utils.ApiProperty)(), (0, _formattedDateString.IsFormattedDateString)(), __metadata("design:type", String)], QueryJournal.prototype, "endDate", void 0);
31
+
32
+ __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Array)], QueryJournal.prototype, "accountingJournalIds", void 0);
33
+ //# sourceMappingURL=QueryJournal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/journal/QueryJournal.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,YAAP,CAAmB;;QAAZ,Y,GAAA,Y;;AAGX,UAAA,CAAA,CAFC,yBAED,EADC,iDACD,E,iCAAA,CAAA,E,sBAAA,E,WAAA,E,KAAkB,CAAlB,CAAA;;AAIA,UAAA,CAAA,CAFC,yBAED,EADC,iDACD,E,iCAAA,CAAA,E,sBAAA,E,SAAA,E,KAAgB,CAAhB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,gCAAA,CAAA,E,sBAAA,E,sBAAA,E,KAAgC,CAAhC,CAAA","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';\n\nexport class QueryJournal {\n @ApiProperty()\n @IsFormattedDateString()\n startDate: string;\n\n @ApiProperty()\n @IsFormattedDateString()\n endDate: string;\n\n @ApiPropertyOptional()\n accountingJournalIds?: number[];\n}\n"],"sourceRoot":"","file":"QueryJournal.js"}
@@ -43,7 +43,7 @@ __decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _objectI
43
43
 
44
44
  __decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _objectId.IsObjectId)(_.Unit), __metadata("design:type", Number)], CreateProduct.prototype, "unit", void 0);
45
45
 
46
- __decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsEnum)(_.ProductType), __metadata("design:type", Number)], CreateProduct.prototype, "type", void 0);
46
+ __decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _objectId.IsObjectId)(_.ProductType), __metadata("design:type", Number)], CreateProduct.prototype, "type", void 0);
47
47
 
48
48
  __decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], CreateProduct.prototype, "comment", void 0);
49
49
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,aAAP,CAAoB;;QAAb,a,GAAA,a;;AAGX,UAAA,CAAA,CAFC,qBAED,EADC,+BACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAWA,UAAA,CAAA,CATC,qBASD,EARC,8BAAS;AACR,EAAA,gBAAgB,EAAE;AADV,CAAT,EAEE;AACD,EAAA,OAAO,EAAE;AADR,CAFF,CAQD,EAHC,yBAAI,CAAJ,EAAO;AACN,EAAA,OAAO,EAAE;AADH,CAAP,CAGD,E,iCAAA,CAAA,E,uBAAA,E,kBAAA,E,KAAyB,CAAzB,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,KAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,MAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAIA,UAAA,CAAA,CAFC,qBAED,EADC,4BAAO,aAAP,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,aAAA,E,KAAqB,CAArB,CAAA","sourcesContent":["import {\n IsEnum,\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 @IsEnum(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"],"sourceRoot":"","file":"CreateProduct.js"}
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,aAAP,CAAoB;;QAAb,a,GAAA,a;;AAGX,UAAA,CAAA,CAFC,qBAED,EADC,+BACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAWA,UAAA,CAAA,CATC,qBASD,EARC,8BAAS;AACR,EAAA,gBAAgB,EAAE;AADV,CAAT,EAEE;AACD,EAAA,OAAO,EAAE;AADR,CAFF,CAQD,EAHC,yBAAI,CAAJ,EAAO;AACN,EAAA,OAAO,EAAE;AADH,CAAP,CAGD,E,iCAAA,CAAA,E,uBAAA,E,kBAAA,E,KAAyB,CAAzB,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,KAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,MAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,aAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,aAAA,E,KAAqB,CAArB,CAAA","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"],"sourceRoot":"","file":"CreateProduct.js"}
@@ -11,6 +11,8 @@ var _ = require("../../..");
11
11
 
12
12
  var _2 = require("../../../..");
13
13
 
14
+ var _objectId = require("../../../../utils/validators/objectId.validator");
15
+
14
16
  var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15
17
  var c = arguments.length,
16
18
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -29,5 +31,5 @@ exports.QueryProduct = QueryProduct;
29
31
 
30
32
  __decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], QueryProduct.prototype, "search", void 0);
31
33
 
32
- __decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsEnum)(_.ProductType), __metadata("design:type", Number)], QueryProduct.prototype, "type", void 0);
34
+ __decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsNumber)(), (0, _objectId.IsObjectId)(_.ProductType), __metadata("design:type", Number)], QueryProduct.prototype, "type", void 0);
33
35
  //# sourceMappingURL=QueryProduct.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,YAAP,CAAmB;;QAAZ,Y,GAAA,Y;;AAIX,UAAA,CAAA,CAHC,6BAGD,EAFC,iCAED,EADC,+BACD,E,iCAAA,CAAA,E,sBAAA,E,QAAA,E,KAAgB,CAAhB,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,iCAED,EADC,4BAAO,aAAP,CACD,E,iCAAA,CAAA,E,sBAAA,E,MAAA,E,KAAc,CAAd,CAAA","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ProductType } from '../../..';\nimport { ApiPropertyOptional } from '../../../..';\n\nexport class QueryProduct {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ProductType)\n type?: number;\n}"],"sourceRoot":"","file":"QueryProduct.js"}
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,YAAP,CAAmB;;QAAZ,Y,GAAA,Y;;AAIX,UAAA,CAAA,CAHC,6BAGD,EAFC,iCAED,EADC,+BACD,E,iCAAA,CAAA,E,sBAAA,E,QAAA,E,KAAgB,CAAhB,CAAA;;AAMA,UAAA,CAAA,CAJC,6BAID,EAHC,iCAGD,EAFC,+BAED,EADC,0BAAW,aAAX,CACD,E,iCAAA,CAAA,E,sBAAA,E,MAAA,E,KAAc,CAAd,CAAA","sourcesContent":["import {\n IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ProductType } from '../../..';\nimport { ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class QueryProduct {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @IsObjectId(ProductType)\n type?: number;\n}"],"sourceRoot":"","file":"QueryProduct.js"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CreateRegistration = undefined;
7
+
8
+ var _classValidator = require("class-validator");
9
+
10
+ var _utils = require("../../../../utils");
11
+
12
+ var _CerfaType = require("../../../Enum/CerfaType");
13
+
14
+ var _CreateCerfa = require("../cerfa/CreateCerfa");
15
+
16
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17
+ var c = arguments.length,
18
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
19
+ d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);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;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+
24
+ var __metadata = undefined && undefined.__metadata || function (k, v) {
25
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
26
+ };
27
+
28
+ class CreateRegistration {}
29
+
30
+ exports.CreateRegistration = CreateRegistration;
31
+
32
+ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", _CreateCerfa.ParamsGenerate2035)], CreateRegistration.prototype, "payload", void 0);
33
+
34
+ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsEnum)(_CerfaType.CerfaType), __metadata("design:type", Number)], CreateRegistration.prototype, "idCerfaType", void 0);
35
+ //# sourceMappingURL=CreateRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,kBAAP,CAAyB;;QAAlB,kB,GAAA,kB;;AAEX,UAAA,CAAA,CADC,yBACD,E,0BAAS,+B,CAAT,CAAA,E,4BAAA,E,SAAA,E,KAA4B,CAA5B,CAAA;;AAIA,UAAA,CAAA,CAFC,yBAED,EADC,4BAAO,oBAAP,CACD,E,iCAAA,CAAA,E,4BAAA,E,aAAA,E,KAAoB,CAApB,CAAA","sourcesContent":["import { IsEnum } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { CerfaType } from '../../../Enum/CerfaType';\nimport { ParamsGenerate2035 } from '../cerfa/CreateCerfa';\n\nexport class CreateRegistration {\n @ApiProperty()\n payload: ParamsGenerate2035;\n\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n}"],"sourceRoot":"","file":"CreateRegistration.js"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=ReadRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"ReadRegistration.js"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=IRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"IRegistration.js"}
package/js/types/index.js CHANGED
@@ -3784,6 +3784,18 @@ Object.keys(_SurveyTypeDatas).forEach(function (key) {
3784
3784
  });
3785
3785
  });
3786
3786
 
3787
+ var _PaymentMethod = require("./Enum/PaymentMethod");
3788
+
3789
+ Object.keys(_PaymentMethod).forEach(function (key) {
3790
+ if (key === "default" || key === "__esModule") return;
3791
+ Object.defineProperty(exports, key, {
3792
+ enumerable: true,
3793
+ get: function () {
3794
+ return _PaymentMethod[key];
3795
+ }
3796
+ });
3797
+ });
3798
+
3787
3799
  var _ReportType = require("./Enum/ReportType");
3788
3800
 
3789
3801
  Object.keys(_ReportType).forEach(function (key) {
@@ -5128,6 +5140,18 @@ Object.keys(_ReadQuoteAccount).forEach(function (key) {
5128
5140
  });
5129
5141
  });
5130
5142
 
5143
+ var _CreateInternalInvoicing = require("./Interface/api/internalInvoicing/CreateInternalInvoicing");
5144
+
5145
+ Object.keys(_CreateInternalInvoicing).forEach(function (key) {
5146
+ if (key === "default" || key === "__esModule") return;
5147
+ Object.defineProperty(exports, key, {
5148
+ enumerable: true,
5149
+ get: function () {
5150
+ return _CreateInternalInvoicing[key];
5151
+ }
5152
+ });
5153
+ });
5154
+
5131
5155
  var _ReadSurvey = require("./Interface/api/survey/ReadSurvey");
5132
5156
 
5133
5157
  Object.keys(_ReadSurvey).forEach(function (key) {
@@ -6339,4 +6363,52 @@ Object.keys(_QueryProduct).forEach(function (key) {
6339
6363
  }
6340
6364
  });
6341
6365
  });
6366
+
6367
+ var _ReadRegistration = require("./Interface/api/registration/ReadRegistration");
6368
+
6369
+ Object.keys(_ReadRegistration).forEach(function (key) {
6370
+ if (key === "default" || key === "__esModule") return;
6371
+ Object.defineProperty(exports, key, {
6372
+ enumerable: true,
6373
+ get: function () {
6374
+ return _ReadRegistration[key];
6375
+ }
6376
+ });
6377
+ });
6378
+
6379
+ var _CreateRegistration = require("./Interface/api/registration/CreateRegistration");
6380
+
6381
+ Object.keys(_CreateRegistration).forEach(function (key) {
6382
+ if (key === "default" || key === "__esModule") return;
6383
+ Object.defineProperty(exports, key, {
6384
+ enumerable: true,
6385
+ get: function () {
6386
+ return _CreateRegistration[key];
6387
+ }
6388
+ });
6389
+ });
6390
+
6391
+ var _Journals = require("./Interface/api/journal/Journals");
6392
+
6393
+ Object.keys(_Journals).forEach(function (key) {
6394
+ if (key === "default" || key === "__esModule") return;
6395
+ Object.defineProperty(exports, key, {
6396
+ enumerable: true,
6397
+ get: function () {
6398
+ return _Journals[key];
6399
+ }
6400
+ });
6401
+ });
6402
+
6403
+ var _QueryJournal = require("./Interface/api/journal/QueryJournal");
6404
+
6405
+ Object.keys(_QueryJournal).forEach(function (key) {
6406
+ if (key === "default" || key === "__esModule") return;
6407
+ Object.defineProperty(exports, key, {
6408
+ enumerable: true,
6409
+ get: function () {
6410
+ return _QueryJournal[key];
6411
+ }
6412
+ });
6413
+ });
6342
6414
  //# sourceMappingURL=index.js.map