@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.
- package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/es/api/resources/Society.d.ts +8 -0
- package/es/api/resources/Society.d.ts.map +1 -0
- package/es/api/resources/Society.js +13 -0
- package/es/api/resources/Society.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/ImmobilizationType.d.ts +2 -2
- package/es/types/Enum/ImmobilizationType.js +2 -2
- package/es/types/Enum/ImmobilizationType.js.map +1 -1
- package/es/types/Enum/Vat.d.ts +18 -0
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +27 -0
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +4 -4
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +27 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +17 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js +66 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -0
- package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.d.ts +4 -0
- package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.d.ts.map +1 -0
- package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.js +17 -0
- package/es/types/Interface/api/mailInvoice/CreateInvoiceMail.js.map +1 -0
- package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.d.ts +4 -0
- package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.d.ts.map +1 -0
- package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.js +17 -0
- package/es/types/Interface/api/mailInvoice/UpdateInvoiceMail.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +7 -3
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +11 -6
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +0 -2
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +3 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -1
- package/es/types/index.js.map +1 -1
- package/es/utils/decorators.d.ts +3 -0
- package/es/utils/decorators.d.ts.map +1 -1
- package/es/utils/decorators.js +11 -5
- package/es/utils/decorators.js.map +1 -1
- package/export-models.json +0 -74
- package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/js/api/resources/Society.js +26 -0
- package/js/api/resources/Society.js.map +1 -0
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/ImmobilizationType.js +2 -2
- package/js/types/Enum/ImmobilizationType.js.map +1 -1
- package/js/types/Enum/Vat.js +27 -0
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +29 -0
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js +51 -0
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -0
- package/js/types/Interface/api/mailInvoice/CreateInvoiceMail.js +27 -0
- package/js/types/Interface/api/mailInvoice/CreateInvoiceMail.js.map +1 -0
- package/js/types/Interface/api/mailInvoice/UpdateInvoiceMail.js +27 -0
- package/js/types/Interface/api/mailInvoice/UpdateInvoiceMail.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +12 -7
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +36 -12
- package/js/types/index.js.map +1 -1
- package/js/utils/decorators.js +17 -7
- package/js/utils/decorators.js.map +1 -1
- package/package.json +16 -16
- package/table.json +0 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +1 -1
- package/ts/api/resources/Society.ts +20 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/ImmobilizationType.ts +2 -2
- package/ts/types/Enum/Vat.ts +27 -0
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +12 -7
- package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +45 -0
- package/ts/types/Interface/api/mailInvoice/CreateInvoiceMail.ts +6 -0
- package/ts/types/Interface/api/mailInvoice/UpdateInvoiceMail.ts +6 -0
- package/ts/types/Interface/models/IApiError.ts +7 -2
- package/ts/types/Interface/models/ISociety.ts +0 -2
- package/ts/types/index.ts +3 -1
- package/ts/utils/decorators.ts +12 -5
- package/es/types/Interface/models/ISocietyProcessRegister.d.ts +0 -10
- package/es/types/Interface/models/ISocietyProcessRegister.d.ts.map +0 -1
- package/es/types/Interface/models/ISocietyProcessRegister.js +0 -2
- package/es/types/Interface/models/ISocietyProcessRegister.js.map +0 -1
- package/js/types/Interface/models/ISocietyProcessRegister.js +0 -6
- package/js/types/Interface/models/ISocietyProcessRegister.js.map +0 -1
- package/ts/types/Interface/models/ISocietyProcessRegister.ts +0 -10
package/ts/utils/decorators.ts
CHANGED
|
@@ -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(),
|
|
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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"ISocietyProcessRegister.js"}
|