@silexpert/core 0.4.32 → 0.4.35

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 (120) hide show
  1. package/es/api/resources/Immobilization.js +1 -1
  2. package/es/api/resources/Immobilization.js.map +1 -1
  3. package/es/api/resources/Loan.d.ts +3 -2
  4. package/es/api/resources/Loan.d.ts.map +1 -1
  5. package/es/api/resources/Loan.js +6 -0
  6. package/es/api/resources/Loan.js.map +1 -1
  7. package/es/api/resources/ZTicket.d.ts +8 -0
  8. package/es/api/resources/ZTicket.d.ts.map +1 -0
  9. package/es/api/resources/ZTicket.js +15 -0
  10. package/es/api/resources/ZTicket.js.map +1 -0
  11. package/es/api/resources/dashboard.d.ts +6 -0
  12. package/es/api/resources/dashboard.d.ts.map +1 -0
  13. package/es/api/resources/dashboard.js +7 -0
  14. package/es/api/resources/dashboard.js.map +1 -0
  15. package/es/api/resources.d.ts +4 -0
  16. package/es/api/resources.d.ts.map +1 -1
  17. package/es/api/resources.js +4 -0
  18. package/es/api/resources.js.map +1 -1
  19. package/es/types/Enum/AccountingJournal.d.ts +2 -1
  20. package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
  21. package/es/types/Enum/AccountingJournal.js +1 -0
  22. package/es/types/Enum/AccountingJournal.js.map +1 -1
  23. package/es/types/Enum/SaleType.d.ts +6 -0
  24. package/es/types/Enum/SaleType.d.ts.map +1 -0
  25. package/es/types/Enum/SaleType.js +7 -0
  26. package/es/types/Enum/SaleType.js.map +1 -0
  27. package/es/types/Enum/TypePayment.d.ts +10 -0
  28. package/es/types/Enum/TypePayment.d.ts.map +1 -0
  29. package/es/types/Enum/TypePayment.js +11 -0
  30. package/es/types/Enum/TypePayment.js.map +1 -0
  31. package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.d.ts +5 -0
  32. package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.d.ts.map +1 -0
  33. package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js +21 -0
  34. package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js.map +1 -0
  35. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts +17 -0
  36. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts.map +1 -0
  37. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +7 -0
  38. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +1 -0
  39. package/es/types/Interface/api/loan/UpdateLoan.d.ts +10 -0
  40. package/es/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -0
  41. package/es/types/Interface/api/loan/UpdateLoan.js +41 -0
  42. package/es/types/Interface/api/loan/UpdateLoan.js.map +1 -0
  43. package/es/types/Interface/api/society/LegalFormSiren.d.ts +7 -0
  44. package/es/types/Interface/api/society/LegalFormSiren.d.ts.map +1 -1
  45. package/es/types/Interface/api/society/LegalFormSiren.js.map +1 -1
  46. package/es/types/Interface/api/zticket/CreateZTicket.d.ts +28 -0
  47. package/es/types/Interface/api/zticket/CreateZTicket.d.ts.map +1 -0
  48. package/es/types/Interface/api/zticket/CreateZTicket.js +33 -0
  49. package/es/types/Interface/api/zticket/CreateZTicket.js.map +1 -0
  50. package/es/types/Interface/api/zticket/QueryZTicket.d.ts +9 -0
  51. package/es/types/Interface/api/zticket/QueryZTicket.d.ts.map +1 -0
  52. package/es/types/Interface/api/zticket/QueryZTicket.js +37 -0
  53. package/es/types/Interface/api/zticket/QueryZTicket.js.map +1 -0
  54. package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  55. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  56. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  57. package/es/types/Interface/models/ILoan.d.ts +10 -0
  58. package/es/types/Interface/models/ILoan.d.ts.map +1 -1
  59. package/es/types/Interface/models/ILoan.js.map +1 -1
  60. package/es/types/Interface/models/IThirdParty.d.ts +1 -0
  61. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  62. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  63. package/es/types/Interface/models/IZTicket.d.ts +17 -0
  64. package/es/types/Interface/models/IZTicket.d.ts.map +1 -0
  65. package/es/types/Interface/models/IZTicket.js +2 -0
  66. package/es/types/Interface/models/IZTicket.js.map +1 -0
  67. package/es/types/index.d.ts +8 -0
  68. package/es/types/index.d.ts.map +1 -1
  69. package/es/types/index.js +8 -0
  70. package/es/types/index.js.map +1 -1
  71. package/js/api/resources/Immobilization.js +1 -1
  72. package/js/api/resources/Immobilization.js.map +1 -1
  73. package/js/api/resources/Loan.js +8 -0
  74. package/js/api/resources/Loan.js.map +1 -1
  75. package/js/api/resources/ZTicket.js +28 -0
  76. package/js/api/resources/ZTicket.js.map +1 -0
  77. package/js/api/resources/dashboard.js +20 -0
  78. package/js/api/resources/dashboard.js.map +1 -0
  79. package/js/api/resources.js +7 -1
  80. package/js/api/resources.js.map +1 -1
  81. package/js/types/Enum/AccountingJournal.js +1 -0
  82. package/js/types/Enum/AccountingJournal.js.map +1 -1
  83. package/js/types/Enum/SaleType.js +13 -0
  84. package/js/types/Enum/SaleType.js.map +1 -0
  85. package/js/types/Enum/TypePayment.js +17 -0
  86. package/js/types/Enum/TypePayment.js.map +1 -0
  87. package/js/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js +29 -0
  88. package/js/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js.map +1 -0
  89. package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +18 -0
  90. package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +1 -0
  91. package/js/types/Interface/api/loan/UpdateLoan.js +39 -0
  92. package/js/types/Interface/api/loan/UpdateLoan.js.map +1 -0
  93. package/js/types/Interface/api/zticket/CreateZTicket.js +35 -0
  94. package/js/types/Interface/api/zticket/CreateZTicket.js.map +1 -0
  95. package/js/types/Interface/api/zticket/QueryZTicket.js +37 -0
  96. package/js/types/Interface/api/zticket/QueryZTicket.js.map +1 -0
  97. package/js/types/Interface/models/IZTicket.js +6 -0
  98. package/js/types/Interface/models/IZTicket.js.map +1 -0
  99. package/js/types/index.js +96 -0
  100. package/js/types/index.js.map +1 -1
  101. package/package.json +1 -1
  102. package/ts/api/resources/Immobilization.ts +1 -1
  103. package/ts/api/resources/Loan.ts +9 -2
  104. package/ts/api/resources/ZTicket.ts +20 -0
  105. package/ts/api/resources/dashboard.ts +8 -0
  106. package/ts/api/resources.ts +4 -0
  107. package/ts/types/Enum/AccountingJournal.ts +1 -0
  108. package/ts/types/Enum/SaleType.ts +5 -0
  109. package/ts/types/Enum/TypePayment.ts +9 -0
  110. package/ts/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.ts +9 -0
  111. package/ts/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.ts +18 -0
  112. package/ts/types/Interface/api/loan/UpdateLoan.ts +24 -0
  113. package/ts/types/Interface/api/society/LegalFormSiren.ts +8 -0
  114. package/ts/types/Interface/api/zticket/CreateZTicket.ts +40 -0
  115. package/ts/types/Interface/api/zticket/QueryZTicket.ts +21 -0
  116. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
  117. package/ts/types/Interface/models/ILoan.ts +11 -1
  118. package/ts/types/Interface/models/IThirdParty.ts +1 -0
  119. package/ts/types/Interface/models/IZTicket.ts +20 -0
  120. package/ts/types/index.ts +8 -0
@@ -0,0 +1,20 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ BasePaginate, CreateZTicket, IZTicket, QueryZTicket,
4
+ } from '../../types';
5
+
6
+ export class ZTicket extends Resource {
7
+ getZTicket(params: QueryZTicket): Promise<BasePaginate<IZTicket> | Error> {
8
+ return this.axios.$get('/zticket', {
9
+ params,
10
+ });
11
+ }
12
+
13
+ createZTicket(params: CreateZTicket): Promise<IZTicket | Error> {
14
+ return this.axios.$post('/zticket/', params);
15
+ }
16
+
17
+ deleteZTicket(id: number): Promise<true | Error> {
18
+ return this.axios.$delete(`/zticket/${id}`);
19
+ }
20
+ }
@@ -0,0 +1,8 @@
1
+ import { Resource } from '../Resource';
2
+ import { QueryTurnoverProfitAndLoss, ResultTurnoverProfitAndLoss } from '../../types';
3
+
4
+ export class Dashboard extends Resource {
5
+ getTurnoverProfitAndLoss(dates: QueryTurnoverProfitAndLoss): Promise<ResultTurnoverProfitAndLoss> {
6
+ return this.axios.$get('dashboard/turnoverProfitAndLoss', { params: dates });
7
+ }
8
+ }
@@ -28,6 +28,8 @@ import { PromoCode } from './resources/PromoCode';
28
28
  import { Stocks } from './resources/Stocks';
29
29
  import { Loan } from './resources/Loan';
30
30
  import { SocietyPromoCode } from './resources/SocietyPromoCode';
31
+ import { Dashboard } from './resources/dashboard';
32
+ import { ZTicket } from './resources/ZTicket';
31
33
 
32
34
  export const resources = {
33
35
  simulation: Simulation,
@@ -60,4 +62,6 @@ export const resources = {
60
62
  stocks: Stocks,
61
63
  loan: Loan,
62
64
  societyPromoCode: SocietyPromoCode,
65
+ dashboard: Dashboard,
66
+ zTicket: ZTicket,
63
67
  };
@@ -8,4 +8,5 @@ export enum AccountingJournal {
8
8
  OD = 7,
9
9
  REV = 8,
10
10
  SAL = 9,
11
+ VEZ = 1001,
11
12
  }
@@ -0,0 +1,5 @@
1
+ export enum SaleType {
2
+ PRODUCTION = 1,
3
+ SERVICE = 2,
4
+ MERCHANDISE = 3,
5
+ }
@@ -0,0 +1,9 @@
1
+ export enum TypePayment {
2
+ CCASH = 1,
3
+ CCHECK = 2,
4
+ CCARD = 3,
5
+ CTRANSFER = 4,
6
+ CCREDIT = 5,
7
+ CTICKET = 6,
8
+ CVOUCHER = 7,
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryTurnoverProfitAndLoss {
4
+ @ApiProperty()
5
+ startDate: string | Date;
6
+
7
+ @ApiProperty()
8
+ endDate: string | Date;
9
+ }
@@ -0,0 +1,18 @@
1
+ export class ResultTurnoverProfitAndLoss {
2
+ data: any;
3
+ chart: {
4
+ labels: Array<string>;
5
+ dataSets: Array<Chart>;
6
+ periodicity: Periocidity;
7
+ };
8
+ }
9
+
10
+ export class Chart {
11
+ label: string;
12
+ data: Array<number>;
13
+ }
14
+
15
+ export class Periocidity {
16
+ type: 'month' | 'day';
17
+ intervales: number;
18
+ }
@@ -0,0 +1,24 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class UpdateLoanForm {
4
+ @ApiProperty()
5
+ name?: string;
6
+
7
+ @ApiProperty()
8
+ lenderDesignation?: string;
9
+
10
+ @ApiProperty()
11
+ number?: number;
12
+
13
+ @ApiProperty()
14
+ amount?: number;
15
+
16
+ @ApiProperty()
17
+ assetBeforeExercice?: number;
18
+
19
+ @ApiProperty()
20
+ assetAfterExercice?: number;
21
+
22
+ @ApiProperty()
23
+ idExercice?: number;
24
+ }
@@ -4,4 +4,12 @@ export type LegalFormSiren = {
4
4
  l6_declaree: string;
5
5
  libcom: string;
6
6
  codpos: string;
7
+ };
8
+
9
+ export type LegalFormSirenV3 = {
10
+ l1_adressage_unitelegale: string;
11
+ adresseetablissement: string;
12
+ libellecommuneetablissement: string;
13
+ codepostaletablissement: string;
14
+ denominationunitelegale: string;
7
15
  };
@@ -0,0 +1,40 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+ import { SaleType } from '../../../Enum/SaleType';
3
+ import { TFile } from '../file/TFile';
4
+
5
+ export type Sale = {
6
+ saleType: SaleType;
7
+ TX_20?: number;
8
+ TX_10?: number;
9
+ TX_2_1?: number;
10
+ TX_8_5?: number;
11
+ TX_5_5?: number;
12
+ WITHOUT_TAXE?: number;
13
+ };
14
+
15
+ export type Payments = {
16
+ CCASH?: number;
17
+ CCHECK?: number;
18
+ CCARD?: number;
19
+ CTRANSFER?: number;
20
+ CCREDIT?: number;
21
+ CTICKET?: number;
22
+ CVOUCHER?: number;
23
+ };
24
+
25
+ export class CreateZTicket {
26
+ @ApiProperty()
27
+ file: TFile;
28
+
29
+ @ApiProperty()
30
+ idSociety: number;
31
+
32
+ @ApiProperty()
33
+ dateValue: string;
34
+
35
+ @ApiProperty()
36
+ sales: Sale[];
37
+
38
+ @ApiProperty()
39
+ payments: Payments;
40
+ }
@@ -0,0 +1,21 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryZTicket {
4
+ @ApiProperty()
5
+ page: number;
6
+
7
+ @ApiProperty()
8
+ limit: number;
9
+
10
+ @ApiPropertyOptional()
11
+ descending?: boolean;
12
+
13
+ @ApiPropertyOptional()
14
+ startDate?: string;
15
+
16
+ @ApiPropertyOptional()
17
+ endDate?: string;
18
+
19
+ @ApiPropertyOptional()
20
+ search?: string;
21
+ }
@@ -2,6 +2,7 @@
2
2
  export interface IBalanceSheetModule {
3
3
  id?: number;
4
4
  inventory: boolean;
5
+ loanToDeclare: boolean;
5
6
  deadlinerecoveryImmobilization: boolean;
6
7
  salariesFile: boolean;
7
8
  idSociety: number;
@@ -1,20 +1,30 @@
1
1
  import { ISociety } from './ISociety';
2
2
  import { IExercice } from './IExercice';
3
+ import { IAccount } from './IAccount';
3
4
 
4
5
  export interface ILoan {
5
6
  id?: number;
6
7
  name: string;
7
8
  lenderDesignation: string;
8
9
  number: number;
10
+ accountCount: number;
9
11
  amount: number;
10
12
  assetBeforeExercice: number;
11
13
  assetAfterExercice: number;
12
14
  idExercice: number;
13
15
  idSociety: number;
16
+ idAccountRefund: number;
17
+ idAccountBenefit: number;
18
+ idAccountInsurance: number;
19
+ idAccountCommission: number;
14
20
  createdAt?: Date | null;
15
21
  updatedAt?: Date | null;
16
22
 
17
23
  // Associations
18
24
  society?: ISociety;
19
- exercice?: IExercice
25
+ exercice?: IExercice;
26
+ accountRefund?: IAccount;
27
+ accountBenefit?: IAccount;
28
+ accountInsurance?: IAccount;
29
+ accountCommission?: IAccount;
20
30
  }
@@ -23,6 +23,7 @@ export interface IThirdParty {
23
23
  dateImport?: Date | null;
24
24
  isGeneric: boolean;
25
25
  juridicalSociety?: number | null;
26
+ idTypePayment?: number | null;
26
27
  idAccount?: number | null;
27
28
  idCountry?: number | null;
28
29
  idThirdPartyType: ThirdPartyType;
@@ -0,0 +1,20 @@
1
+ import { IFile } from './IFile';
2
+ import { ISociety } from './ISociety';
3
+ import { IAccountingTransaction } from './IAccountingTransaction';
4
+
5
+ // zticket
6
+ export interface IZTicket {
7
+ id?: number;
8
+ idFile: number;
9
+ idAccountingTransaction: number;
10
+ idSociety: number;
11
+ amount: number;
12
+ dateValue: Date;
13
+ createdAt?: Date | null;
14
+ updatedAt?: Date | null;
15
+
16
+ // associations
17
+ file?: IFile;
18
+ accountingTransaction?: IAccountingTransaction;
19
+ society?: ISociety;
20
+ }
package/ts/types/index.ts CHANGED
@@ -280,6 +280,7 @@ export * from './Interface/models/ILoan';
280
280
  export * from './Interface/models/IBalanceSheetModule';
281
281
  export * from './Interface/models/IStock';
282
282
  export * from './Interface/models/ISocietyPromoCode';
283
+ export * from './Interface/models/IZTicket';
283
284
 
284
285
  // Forms
285
286
  export * from './Form/FormAuthenticate';
@@ -326,6 +327,8 @@ export * from './Enum/FiscalRegime';
326
327
  export * from './Enum/Activity';
327
328
  export * from './Enum/CerfaType';
328
329
  export * from './Enum/StockType';
330
+ export * from './Enum/SaleType';
331
+ export * from './Enum/TypePayment';
329
332
 
330
333
  // Interfaces API
331
334
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
@@ -363,6 +366,8 @@ export * from './Interface/api/generalLedger/IGeneralLedgerAccount';
363
366
  export * from './Interface/api/generalLedger/IGeneralLedgerAccountingEntry';
364
367
  // export * from './Interface/api/stock/stockEntries';
365
368
  export * from './Interface/api/stock/StockEntries';
369
+ export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
370
+ export * from './Interface/api/dashboard/ResultTurnOverProfitAndLoss';
366
371
 
367
372
  // export * from './Interface/api/survey/QuerySurvey';
368
373
  export * from './Interface/api/survey/ReadSurvey';
@@ -407,3 +412,6 @@ export * from './Interface/api/loan/CreateLoan';
407
412
  export * from './Interface/api/stock/StocksType';
408
413
  // export * from './Interface/api/stock/StockEntries';
409
414
  export * from './Interface/api/societyPromoCode/CreateSocietyPromoCode';
415
+ export * from './Interface/api/loan/UpdateLoan';
416
+ export * from './Interface/api/zticket/CreateZTicket';
417
+ export * from './Interface/api/zticket/QueryZTicket';