@silexpert/core 0.4.4 → 0.4.6

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 (93) hide show
  1. package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
  2. package/es/api/resources/Society.d.ts +8 -0
  3. package/es/api/resources/Society.d.ts.map +1 -0
  4. package/es/api/resources/Society.js +13 -0
  5. package/es/api/resources/Society.js.map +1 -0
  6. package/es/api/resources.d.ts +2 -0
  7. package/es/api/resources.d.ts.map +1 -1
  8. package/es/api/resources.js +2 -0
  9. package/es/api/resources.js.map +1 -1
  10. package/es/types/Enum/ImmobilizationType.d.ts +2 -2
  11. package/es/types/Enum/ImmobilizationType.js +2 -2
  12. package/es/types/Enum/ImmobilizationType.js.map +1 -1
  13. package/es/types/Enum/Vat.d.ts +18 -0
  14. package/es/types/Enum/Vat.d.ts.map +1 -1
  15. package/es/types/Enum/Vat.js +27 -0
  16. package/es/types/Enum/Vat.js.map +1 -1
  17. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +4 -4
  18. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  19. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +27 -1
  20. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  21. package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +17 -0
  22. package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -0
  23. package/es/types/Interface/api/accountingTransaction/QueryTransaction.js +66 -0
  24. package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -0
  25. package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.d.ts +4 -0
  26. package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.d.ts.map +1 -0
  27. package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.js +17 -0
  28. package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.js.map +1 -0
  29. package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.d.ts +4 -0
  30. package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.d.ts.map +1 -0
  31. package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.js +17 -0
  32. package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.js.map +1 -0
  33. package/es/types/Interface/models/IApiError.d.ts +7 -3
  34. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  35. package/es/types/Interface/models/IApiError.js +11 -6
  36. package/es/types/Interface/models/IApiError.js.map +1 -1
  37. package/es/types/Interface/models/ISociety.d.ts +0 -2
  38. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  39. package/es/types/Interface/models/ISociety.js.map +1 -1
  40. package/es/types/index.d.ts +3 -1
  41. package/es/types/index.d.ts.map +1 -1
  42. package/es/types/index.js +3 -1
  43. package/es/types/index.js.map +1 -1
  44. package/es/utils/decorators.d.ts +3 -0
  45. package/es/utils/decorators.d.ts.map +1 -1
  46. package/es/utils/decorators.js +11 -5
  47. package/es/utils/decorators.js.map +1 -1
  48. package/export-models.json +0 -74
  49. package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
  50. package/js/api/resources/Society.js +26 -0
  51. package/js/api/resources/Society.js.map +1 -0
  52. package/js/api/resources.js +4 -1
  53. package/js/api/resources.js.map +1 -1
  54. package/js/types/Enum/ImmobilizationType.js +2 -2
  55. package/js/types/Enum/ImmobilizationType.js.map +1 -1
  56. package/js/types/Enum/Vat.js +27 -0
  57. package/js/types/Enum/Vat.js.map +1 -1
  58. package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +29 -0
  59. package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  60. package/js/types/Interface/api/accountingTransaction/QueryTransaction.js +51 -0
  61. package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -0
  62. package/js/types/Interface/api/mailInvoice/CreateInvoiceMail.js +27 -0
  63. package/js/types/Interface/api/mailInvoice/CreateInvoiceMail.js.map +1 -0
  64. package/js/types/Interface/api/mailInvoice/UpdateInvoiceMail.js +27 -0
  65. package/js/types/Interface/api/mailInvoice/UpdateInvoiceMail.js.map +1 -0
  66. package/js/types/Interface/models/IApiError.js +12 -7
  67. package/js/types/Interface/models/IApiError.js.map +1 -1
  68. package/js/types/index.js +36 -12
  69. package/js/types/index.js.map +1 -1
  70. package/js/utils/decorators.js +17 -7
  71. package/js/utils/decorators.js.map +1 -1
  72. package/package.json +16 -16
  73. package/table.json +0 -1
  74. package/ts/api/resources/PaymentExpectationCustomer.ts +1 -1
  75. package/ts/api/resources/Society.ts +20 -0
  76. package/ts/api/resources.ts +2 -0
  77. package/ts/types/Enum/ImmobilizationType.ts +2 -2
  78. package/ts/types/Enum/Vat.ts +27 -0
  79. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +12 -7
  80. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +45 -0
  81. package/ts/types/Interface/api/mailInvoice/CreateInvoiceMail.ts +6 -0
  82. package/ts/types/Interface/api/mailInvoice/UpdateInvoiceMail.ts +6 -0
  83. package/ts/types/Interface/models/IApiError.ts +7 -2
  84. package/ts/types/Interface/models/ISociety.ts +0 -2
  85. package/ts/types/index.ts +3 -1
  86. package/ts/utils/decorators.ts +12 -5
  87. package/es/types/Interface/models/ISocietyProcessRegister.d.ts +0 -10
  88. package/es/types/Interface/models/ISocietyProcessRegister.d.ts.map +0 -1
  89. package/es/types/Interface/models/ISocietyProcessRegister.js +0 -2
  90. package/es/types/Interface/models/ISocietyProcessRegister.js.map +0 -1
  91. package/js/types/Interface/models/ISocietyProcessRegister.js +0 -6
  92. package/js/types/Interface/models/ISocietyProcessRegister.js.map +0 -1
  93. package/ts/types/Interface/models/ISocietyProcessRegister.ts +0 -10
@@ -1,6 +1,12 @@
1
1
  import { isNode } from 'browser-or-node';
2
+
3
+ enum Library {
4
+ SWAGGER = 'node_modules/@nestjs/swagger/index.js',
5
+ CLASS_TRANSFORMER = 'node_modules/class-transformer/cjs/index.js',
6
+ }
7
+
2
8
  // eslint-disable-next-line global-require
3
- const retrieveDecorator = (name: 'ApiPropertyOptional' | 'ApiProperty') => {
9
+ const retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiProperty' | 'Type') => {
4
10
  if (!isNode) {
5
11
  return (target: any, key: string) => {};
6
12
  }
@@ -8,12 +14,13 @@ const retrieveDecorator = (name: 'ApiPropertyOptional' | 'ApiProperty') => {
8
14
  // eslint-disable-next-line global-require
9
15
  const path = require('path');
10
16
  // eslint-disable-next-line global-require,import/no-dynamic-require
11
- return require(path.resolve(process.cwd(), 'node_modules/@nestjs/swagger/index.js'))[name];
17
+ return require(path.resolve(process.cwd(), library))[name];
12
18
  } catch (e) {
13
19
  return (target: any, key: string) => {};
14
20
  }
15
21
  };
16
- export const ApiPropertyOptional = retrieveDecorator('ApiPropertyOptional');
17
- export const ApiProperty = retrieveDecorator('ApiProperty');
22
+ export const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');
23
+ export const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');
24
+ export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
18
25
 
19
- export default { ApiPropertyOptional };
26
+ export default { ApiPropertyOptional, ApiProperty, Type };
@@ -1,10 +0,0 @@
1
- export interface ISocietyProcessRegister {
2
- id?: number;
3
- stepProcess: boolean;
4
- showStep: boolean;
5
- stepMailTuto: number;
6
- idSociety: number | null;
7
- createdAt?: Date | null;
8
- updatedAt?: Date | null;
9
- }
10
- //# sourceMappingURL=ISocietyProcessRegister.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISocietyProcessRegister.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyProcessRegister.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,uBAAuB;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ISocietyProcessRegister.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISocietyProcessRegister.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyProcessRegister.ts"],"names":[],"mappings":"","sourcesContent":["// societyProcessRegister\nexport interface ISocietyProcessRegister {\n id?: number;\n stepProcess: boolean;\n showStep: boolean;\n stepMailTuto: number;\n idSociety: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=ISocietyProcessRegister.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"ISocietyProcessRegister.js"}
@@ -1,10 +0,0 @@
1
- // societyProcessRegister
2
- export interface ISocietyProcessRegister {
3
- id?: number;
4
- stepProcess: boolean;
5
- showStep: boolean;
6
- stepMailTuto: number;
7
- idSociety: number | null;
8
- createdAt?: Date | null;
9
- updatedAt?: Date | null;
10
- }