@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.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/es/types/Enum/AccountingJournal.d.ts +10 -0
  3. package/es/types/Enum/AccountingJournal.d.ts.map +1 -0
  4. package/es/types/Enum/AccountingJournal.js +11 -0
  5. package/es/types/Enum/AccountingJournal.js.map +1 -0
  6. package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.d.ts +1 -1
  7. package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.d.ts.map +1 -1
  8. package/es/types/Interface/api/accountingEntry/CreateAccountingEntry.js.map +1 -1
  9. package/es/types/Interface/models/IAccount.d.ts +11 -11
  10. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  11. package/es/types/Interface/models/IAccount.js.map +1 -1
  12. package/es/types/Interface/models/IAccountingEntry.d.ts +3 -0
  13. package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
  14. package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
  15. package/es/types/Interface/models/IAccountingFile.d.ts +12 -10
  16. package/es/types/Interface/models/IAccountingFile.d.ts.map +1 -1
  17. package/es/types/Interface/models/IAccountingFile.js.map +1 -1
  18. package/es/types/Interface/models/IApiError.d.ts +12 -1
  19. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  20. package/es/types/Interface/models/IApiError.js +13 -0
  21. package/es/types/Interface/models/IApiError.js.map +1 -1
  22. package/es/types/Interface/models/IFile.d.ts +6 -6
  23. package/es/types/Interface/models/IFile.d.ts.map +1 -1
  24. package/es/types/Interface/models/IFile.js.map +1 -1
  25. package/es/types/Interface/models/ISocietyConfig.d.ts +10 -8
  26. package/es/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  27. package/es/types/Interface/models/ISocietyConfig.js.map +1 -1
  28. package/es/types/Interface/models/IThirdParty.d.ts +23 -23
  29. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  30. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  31. package/es/types/index.d.ts +1 -0
  32. package/es/types/index.d.ts.map +1 -1
  33. package/es/types/index.js +1 -0
  34. package/es/types/index.js.map +1 -1
  35. package/js/types/Enum/AccountingJournal.js +17 -0
  36. package/js/types/Enum/AccountingJournal.js.map +1 -0
  37. package/js/types/Interface/models/IApiError.js +14 -1
  38. package/js/types/Interface/models/IApiError.js.map +1 -1
  39. package/js/types/index.js +12 -0
  40. package/js/types/index.js.map +1 -1
  41. package/package.json +24 -24
  42. package/ts/types/Enum/AccountingJournal.ts +9 -0
  43. package/ts/types/Interface/api/accountingEntry/CreateAccountingEntry.ts +1 -1
  44. package/ts/types/Interface/models/IAccount.ts +11 -11
  45. package/ts/types/Interface/models/IAccountingEntry.ts +3 -0
  46. package/ts/types/Interface/models/IAccountingFile.ts +12 -10
  47. package/ts/types/Interface/models/IApiError.ts +16 -1
  48. package/ts/types/Interface/models/IFile.ts +6 -6
  49. package/ts/types/Interface/models/ISocietyConfig.ts +12 -8
  50. package/ts/types/Interface/models/IThirdParty.ts +23 -23
  51. package/ts/types/index.ts +1 -0
  52. 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: string;
10
- token: string;
9
+ name?: string;
10
+ token?: string;
11
11
  idFolderFile: number;
12
- idSociety: number | null;
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: IAttachmentFile;
19
- folderFile: IFolderFile;
20
- fileType: IFileType;
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
- noTva: boolean;
7
- dateActiveTva: Date | null;
8
- logo: string | null;
9
- adjournement: boolean;
8
+ noVat: boolean;
9
+ dateActiveVat?: Date | null;
10
+ logo?: string | null;
11
+ adjournment: boolean;
10
12
  acceptCgv: boolean;
11
13
  modalNews: boolean;
12
- typeMicroentreprise: number | null;
14
+ typeMicroentreprise?: number | null;
13
15
  showTipSchedule: boolean;
14
- defaultBa: number | null;
15
- salesType: number | null;
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 | null;
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: 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;
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: boolean | null;
25
- dateImport: Date | null;
24
+ state?: boolean | null;
25
+ dateImport?: Date | null;
26
26
  isGeneric: boolean;
27
- juridicalSociety: number | null;
28
- idAccount: number | null;
29
- idCountry: number | null;
30
- idTypeThirdParty: number;
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: ISociety[];
37
- thirdPartyAccount: IAccount;
38
- thirdPartyCountry: ICountry;
39
- thirdPartyTypeThirdParty: IThirdPartyType;
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';