@silexpert/core 0.4.133 → 0.4.137
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/Revision.d.ts +4 -1
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +10 -1
- package/es/api/resources/Revision.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +3 -0
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +6 -0
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/Util.d.ts +5 -0
- package/es/types/Enum/Util.d.ts.map +1 -1
- package/es/types/Enum/Util.js +6 -0
- package/es/types/Enum/Util.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +12 -0
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +58 -0
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.d.ts +8 -0
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.d.ts.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js +41 -0
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +41 -0
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionAccount.js +2 -0
- package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.d.ts +4 -0
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.d.ts.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js +2 -0
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts +53 -0
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts.map +1 -0
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.js +2 -0
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.js.map +1 -0
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +12 -4
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/Revision.js +15 -1
- package/js/api/resources/Revision.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +10 -0
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/Util.js +8 -0
- package/js/types/Enum/Util.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +53 -0
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -0
- package/js/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js +37 -0
- package/js/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js.map +1 -0
- package/js/types/Interface/api/revision/ReadRevisionAccount.js +6 -0
- package/js/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -0
- package/js/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js +6 -0
- package/js/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js.map +1 -0
- package/js/types/Interface/api/revision/ReadRevisionTransactionDetail.js +6 -0
- package/js/types/Interface/api/revision/ReadRevisionTransactionDetail.js.map +1 -0
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js +12 -4
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Revision.ts +18 -2
- package/ts/types/Enum/BalanceSheet.ts +8 -0
- package/ts/types/Enum/Util.ts +5 -0
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +42 -0
- package/ts/types/Interface/api/revision/QueryRevisionMergeIntoAccount.ts +28 -0
- package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +40 -0
- package/ts/types/Interface/api/revision/ReadRevisionMergeIntoAccount.ts +3 -0
- package/ts/types/Interface/api/revision/ReadRevisionTransactionDetail.ts +55 -0
- package/ts/types/index.ts +5 -0
- package/ts/utils/brands.ts +11 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IAccountingFile, IAccountingJournal, ILettering, IUser,
|
|
3
|
+
} from '../../..';
|
|
4
|
+
|
|
5
|
+
export interface ReadRevisionAccount {
|
|
6
|
+
id: number;
|
|
7
|
+
master: boolean;
|
|
8
|
+
dateValue: Date;
|
|
9
|
+
designation: string | null;
|
|
10
|
+
comment: string | null;
|
|
11
|
+
debit: number;
|
|
12
|
+
credit: number;
|
|
13
|
+
isPerso: boolean;
|
|
14
|
+
autoAnnotate: boolean;
|
|
15
|
+
idInherit: number | null;
|
|
16
|
+
idAccount: number;
|
|
17
|
+
idThirdParty: number;
|
|
18
|
+
idAccountingTransaction: number;
|
|
19
|
+
idVat: number | null;
|
|
20
|
+
idImmobilization: number | null;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
accountingTransaction: {
|
|
24
|
+
id: number;
|
|
25
|
+
idBankAccount: number,
|
|
26
|
+
dateLocked: Date | null;
|
|
27
|
+
dateVerified: Date | null;
|
|
28
|
+
idUser: number | null;
|
|
29
|
+
exported: Date | null;
|
|
30
|
+
idAccountingJournal: number;
|
|
31
|
+
idLettering: number | null;
|
|
32
|
+
accountingFiles: Array<IAccountingFile>;
|
|
33
|
+
accountingJournal: IAccountingJournal;
|
|
34
|
+
lettering: ILettering;
|
|
35
|
+
user: IUser;
|
|
36
|
+
},
|
|
37
|
+
thirdParty: { id: number, fullname: string } | null,
|
|
38
|
+
calculatedVat?: number;
|
|
39
|
+
balance: number | null;
|
|
40
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IFile } from '../../..';
|
|
2
|
+
|
|
3
|
+
export interface ReadRevisionTransactionDetail {
|
|
4
|
+
id: number;
|
|
5
|
+
label: string | null;
|
|
6
|
+
reference: string | null;
|
|
7
|
+
dateValue: Date;
|
|
8
|
+
dateLocked: Date | null;
|
|
9
|
+
dateVerified: Date | null;
|
|
10
|
+
originalValue: number | null;
|
|
11
|
+
idUser: number | null;
|
|
12
|
+
isBlocked: boolean;
|
|
13
|
+
isMerged: boolean;
|
|
14
|
+
isAsset: boolean;
|
|
15
|
+
exported: Date | null;
|
|
16
|
+
kilometers: number | null;
|
|
17
|
+
internComment: string | null;
|
|
18
|
+
invoiceRequested: boolean;
|
|
19
|
+
idBankAccount: number | null;
|
|
20
|
+
idSociety: number;
|
|
21
|
+
idCurrency?: number | null;
|
|
22
|
+
idSocietyVehicle: number | null;
|
|
23
|
+
idSocietyPartner: number | null;
|
|
24
|
+
idRule: number | null;
|
|
25
|
+
idAccountingJournal: number;
|
|
26
|
+
idEstimateInvoice: number | null;
|
|
27
|
+
idEAF: number | null;
|
|
28
|
+
file: IFile[] | null;
|
|
29
|
+
accountingEntries: RevisionAccountingEntries[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface RevisionAccountingEntries {
|
|
33
|
+
id: number;
|
|
34
|
+
master: boolean;
|
|
35
|
+
dateValue: Date;
|
|
36
|
+
designation: string;
|
|
37
|
+
comment: string | null;
|
|
38
|
+
debit: number;
|
|
39
|
+
credit: number;
|
|
40
|
+
isPerso: boolean;
|
|
41
|
+
idInherit: number | null;
|
|
42
|
+
idAccount: number | null;
|
|
43
|
+
idThirdParty: number | null;
|
|
44
|
+
idVat: number | null;
|
|
45
|
+
idImmobilization?: number | null;
|
|
46
|
+
account: RevisionAccount;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface RevisionAccount {
|
|
50
|
+
id: number;
|
|
51
|
+
number: number;
|
|
52
|
+
name: string;
|
|
53
|
+
idParentAccount: number | null;
|
|
54
|
+
idVat: number | null;
|
|
55
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -481,6 +481,11 @@ export * from './Interface/api/revision/QueryRevision';
|
|
|
481
481
|
export * from './Interface/api/revision/ReadRevision';
|
|
482
482
|
export * from './Interface/api/revision/RevisionObject';
|
|
483
483
|
export * from './Interface/api/revision/Revision';
|
|
484
|
+
export * from './Interface/api/revision/QueryRevisionAccount';
|
|
485
|
+
export * from './Interface/api/revision/ReadRevisionAccount';
|
|
486
|
+
export * from './Interface/api/revision/ReadRevisionTransactionDetail';
|
|
487
|
+
export * from './Interface/api/revision/QueryRevisionMergeIntoAccount';
|
|
488
|
+
export * from './Interface/api/revision/ReadRevisionMergeIntoAccount';
|
|
484
489
|
|
|
485
490
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
486
491
|
export * from './Interface/api/survey/ReadSurvey';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -16,17 +16,24 @@ type getBrandConfigParams = {
|
|
|
16
16
|
|
|
17
17
|
const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' => {
|
|
18
18
|
if (nodeEnv) {
|
|
19
|
-
if (
|
|
19
|
+
if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {
|
|
20
20
|
return 'Legalstart';
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
22
|
+
if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {
|
|
23
|
+
return 'Comptalib';
|
|
24
|
+
}
|
|
25
|
+
} else if (process.env.NODE_ENV) {
|
|
26
|
+
if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
|
|
27
|
+
return 'Legalstart';
|
|
28
|
+
}
|
|
29
|
+
if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
|
|
23
30
|
return 'Comptalib';
|
|
24
31
|
}
|
|
25
32
|
} else if (process.env.API_HOST) {
|
|
26
|
-
if (process.env.API_HOST.indexOf('legalstart') > -1) {
|
|
33
|
+
if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
|
|
27
34
|
return 'Legalstart';
|
|
28
35
|
}
|
|
29
|
-
if (process.env.API_HOST.indexOf('comptalib') > -1) {
|
|
36
|
+
if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
|
|
30
37
|
return 'Comptalib';
|
|
31
38
|
}
|
|
32
39
|
}
|