@silexpert/core 0.1.1 → 0.1.2
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/README.md +2 -2
- package/es/types/Enum/AccountingJournal.d.ts +10 -0
- package/es/types/Enum/AccountingJournal.d.ts.map +1 -0
- package/es/types/Enum/AccountingJournal.js +11 -0
- package/es/types/Enum/AccountingJournal.js.map +1 -0
- package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.d.ts +1 -1
- package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.js.map +1 -1
- package/es/types/Interface/models/IAccount.d.ts +11 -11
- package/es/types/Interface/models/IAccount.d.ts.map +1 -1
- package/es/types/Interface/models/IAccount.js.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.d.ts +3 -0
- package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
- package/es/types/Interface/models/IAccountingFile.d.ts +12 -10
- package/es/types/Interface/models/IAccountingFile.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingFile.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +12 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +13 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IFile.d.ts +6 -6
- package/es/types/Interface/models/IFile.d.ts.map +1 -1
- package/es/types/Interface/models/IFile.js.map +1 -1
- package/es/types/Interface/models/ISocietyConfig.d.ts +10 -8
- package/es/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyConfig.js.map +1 -1
- package/es/types/Interface/models/IThirdParty.d.ts +23 -23
- package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdParty.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/types/Enum/AccountingJournal.js +17 -0
- package/js/types/Enum/AccountingJournal.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +14 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +12 -0
- package/js/types/index.js.map +1 -1
- package/package.json +24 -24
- package/ts/types/Enum/AccountingJournal.ts +9 -0
- package/ts/types/Interface/api/accountingEntry/CreateAccountingEntry.ts +1 -1
- package/ts/types/Interface/models/IAccount.ts +11 -11
- package/ts/types/Interface/models/IAccountingEntry.ts +3 -0
- package/ts/types/Interface/models/IAccountingFile.ts +12 -10
- package/ts/types/Interface/models/IApiError.ts +16 -1
- package/ts/types/Interface/models/IFile.ts +6 -6
- package/ts/types/Interface/models/ISocietyConfig.ts +12 -8
- package/ts/types/Interface/models/IThirdParty.ts +23 -23
- package/ts/types/index.ts +1 -0
- package/yarn-error.log +5882 -0
|
@@ -5,6 +5,7 @@ export enum Type {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export enum Code {
|
|
8
|
+
// HTTP Error
|
|
8
9
|
tokenFailure = 'token_authentication_failure',
|
|
9
10
|
authenticationFailure = 'authentication_credentials_failure',
|
|
10
11
|
notFound = 'resource_not_found',
|
|
@@ -12,7 +13,21 @@ export enum Code {
|
|
|
12
13
|
constraintError = 'resource_constraint_error',
|
|
13
14
|
outOfRange = 'resource_ofr',
|
|
14
15
|
internalServerError = 'internal_server_error',
|
|
15
|
-
constraintKeyError = 'resource_fk_error'
|
|
16
|
+
constraintKeyError = 'resource_fk_error',
|
|
17
|
+
|
|
18
|
+
// Custom Service Error
|
|
19
|
+
failedCheckBalance = 'failed_check_balance',
|
|
20
|
+
vatIntracomCanOnlyBeSetForDebit = 'vat_intracom_can_only_be_set_for_debit',
|
|
21
|
+
vatMargeCanOnlyBeSetForCredit = 'vat_marge_can_only_be_set_for_credit',
|
|
22
|
+
vatMargeCanOnlyBeSetIfAmountAllTaxIncludedPurchaseIsSet = 'vat_marge_can_only_be_set_if_amount_all_tax_included_purchase_is_set',
|
|
23
|
+
missingParamSplit = 'missing_param_split',
|
|
24
|
+
totalAmountSplitNotEqualTransaction = 'total_amount_split_not_equal_transaction',
|
|
25
|
+
vatManuelIsSetWithNegativeValue = 'vat_manuel_is_set_with_negative_value',
|
|
26
|
+
vatManuelIsNotSetWithSpecialVat = 'vat_manuel_is_not_set_with_special_vat',
|
|
27
|
+
vatManuelCannotBeSetWithSplit = 'vat_manuel_cannot_be_set_with_split',
|
|
28
|
+
vatNotAuthorizeWithThisAccount = 'vat_not_authorize_with_this_account',
|
|
29
|
+
transactionIsAlreadyExported = 'transaction_is_already_exported',
|
|
30
|
+
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
export interface IApiError {
|
|
@@ -6,16 +6,16 @@ import { IFileType } from './IFileType';
|
|
|
6
6
|
// files
|
|
7
7
|
export interface IFile {
|
|
8
8
|
id?: number;
|
|
9
|
-
name
|
|
10
|
-
token
|
|
9
|
+
name?: string;
|
|
10
|
+
token?: string;
|
|
11
11
|
idFolderFile: number;
|
|
12
|
-
idSociety
|
|
12
|
+
idSociety?: number | null;
|
|
13
13
|
idFileType: number | null;
|
|
14
14
|
createdAt?: Date | null;
|
|
15
15
|
updatedAt?: Date | null;
|
|
16
16
|
|
|
17
17
|
// Associations
|
|
18
|
-
attachmentFile
|
|
19
|
-
folderFile
|
|
20
|
-
fileType
|
|
18
|
+
attachmentFile?: IAttachmentFile;
|
|
19
|
+
folderFile?: IFolderFile;
|
|
20
|
+
fileType?: IFileType;
|
|
21
21
|
}
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
// societyConfig
|
|
3
|
+
import {ISociety} from './ISociety';
|
|
4
|
+
|
|
3
5
|
export interface ISocietyConfig {
|
|
4
6
|
id?: number;
|
|
5
7
|
disableExport: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
logo
|
|
9
|
-
|
|
8
|
+
noVat: boolean;
|
|
9
|
+
dateActiveVat?: Date | null;
|
|
10
|
+
logo?: string | null;
|
|
11
|
+
adjournment: boolean;
|
|
10
12
|
acceptCgv: boolean;
|
|
11
13
|
modalNews: boolean;
|
|
12
|
-
typeMicroentreprise
|
|
14
|
+
typeMicroentreprise?: number | null;
|
|
13
15
|
showTipSchedule: boolean;
|
|
14
|
-
defaultBa
|
|
15
|
-
salesType
|
|
16
|
+
defaultBa?: number | null;
|
|
17
|
+
salesType?: number | null;
|
|
16
18
|
noShowModalAnnotation: boolean;
|
|
17
19
|
emailAgreement: boolean;
|
|
18
20
|
clicPaiement: boolean;
|
|
19
21
|
mailIdepotStatus: boolean;
|
|
20
22
|
mobileRegister: boolean;
|
|
21
23
|
registeredFromWebsite: boolean;
|
|
22
|
-
idSociety: number
|
|
24
|
+
idSociety: number;
|
|
23
25
|
createdAt?: Date | null;
|
|
24
26
|
updatedAt?: Date | null;
|
|
27
|
+
|
|
28
|
+
society?: ISociety
|
|
25
29
|
}
|
|
@@ -7,34 +7,34 @@ import { IThirdPartyType } from './IThirdPartyType';
|
|
|
7
7
|
// ThirdParty
|
|
8
8
|
export interface IThirdParty {
|
|
9
9
|
id?: number;
|
|
10
|
-
budgeaSouscriptionId
|
|
11
|
-
fullname
|
|
12
|
-
newFullname
|
|
13
|
-
fullnameAccountant
|
|
14
|
-
company
|
|
15
|
-
newCompany
|
|
16
|
-
address
|
|
17
|
-
zipCode
|
|
18
|
-
city
|
|
19
|
-
phone
|
|
20
|
-
email
|
|
21
|
-
nSiret
|
|
22
|
-
nTva
|
|
10
|
+
budgeaSouscriptionId?: number | null;
|
|
11
|
+
fullname?: string | null;
|
|
12
|
+
newFullname?: string | null;
|
|
13
|
+
fullnameAccountant?: string | null;
|
|
14
|
+
company?: string | null;
|
|
15
|
+
newCompany?: string | null;
|
|
16
|
+
address?: string | null;
|
|
17
|
+
zipCode?: string | null;
|
|
18
|
+
city?: string | null;
|
|
19
|
+
phone?: string | null;
|
|
20
|
+
email?: string | null;
|
|
21
|
+
nSiret?: string | null;
|
|
22
|
+
nTva?: string | null;
|
|
23
23
|
soldeInit: number;
|
|
24
|
-
state
|
|
25
|
-
dateImport
|
|
24
|
+
state?: boolean | null;
|
|
25
|
+
dateImport?: Date | null;
|
|
26
26
|
isGeneric: boolean;
|
|
27
|
-
juridicalSociety
|
|
28
|
-
idAccount
|
|
29
|
-
idCountry
|
|
30
|
-
idTypeThirdParty
|
|
27
|
+
juridicalSociety?: number | null;
|
|
28
|
+
idAccount?: number | null;
|
|
29
|
+
idCountry?: number | null;
|
|
30
|
+
idTypeThirdParty?: number;
|
|
31
31
|
createdAt?: Date | null;
|
|
32
32
|
updatedAt?: Date | null;
|
|
33
33
|
deletedAt?: Date | null;
|
|
34
34
|
|
|
35
35
|
// Associations
|
|
36
|
-
societies
|
|
37
|
-
thirdPartyAccount
|
|
38
|
-
thirdPartyCountry
|
|
39
|
-
thirdPartyTypeThirdParty
|
|
36
|
+
societies?: ISociety[];
|
|
37
|
+
thirdPartyAccount?: IAccount;
|
|
38
|
+
thirdPartyCountry?: ICountry;
|
|
39
|
+
thirdPartyTypeThirdParty?: IThirdPartyType;
|
|
40
40
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -285,6 +285,7 @@ export * from './Enum/LegalForm';
|
|
|
285
285
|
export * from './Enum/VatRegime';
|
|
286
286
|
export * from './Enum/TypeConnector';
|
|
287
287
|
export * from './Enum/Vat';
|
|
288
|
+
export * from './Enum/AccountingJournal';
|
|
288
289
|
|
|
289
290
|
// Interfaces API
|
|
290
291
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|