@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.
- package/es/api/resources/Immobilization.js +1 -1
- package/es/api/resources/Immobilization.js.map +1 -1
- package/es/api/resources/Loan.d.ts +3 -2
- package/es/api/resources/Loan.d.ts.map +1 -1
- package/es/api/resources/Loan.js +6 -0
- package/es/api/resources/Loan.js.map +1 -1
- package/es/api/resources/ZTicket.d.ts +8 -0
- package/es/api/resources/ZTicket.d.ts.map +1 -0
- package/es/api/resources/ZTicket.js +15 -0
- package/es/api/resources/ZTicket.js.map +1 -0
- package/es/api/resources/dashboard.d.ts +6 -0
- package/es/api/resources/dashboard.d.ts.map +1 -0
- package/es/api/resources/dashboard.js +7 -0
- package/es/api/resources/dashboard.js.map +1 -0
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AccountingJournal.d.ts +2 -1
- package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
- package/es/types/Enum/AccountingJournal.js +1 -0
- package/es/types/Enum/AccountingJournal.js.map +1 -1
- package/es/types/Enum/SaleType.d.ts +6 -0
- package/es/types/Enum/SaleType.d.ts.map +1 -0
- package/es/types/Enum/SaleType.js +7 -0
- package/es/types/Enum/SaleType.js.map +1 -0
- package/es/types/Enum/TypePayment.d.ts +10 -0
- package/es/types/Enum/TypePayment.d.ts.map +1 -0
- package/es/types/Enum/TypePayment.js +11 -0
- package/es/types/Enum/TypePayment.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js +21 -0
- package/es/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js.map +1 -0
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts +17 -0
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +7 -0
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +1 -0
- package/es/types/Interface/api/loan/UpdateLoan.d.ts +10 -0
- package/es/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -0
- package/es/types/Interface/api/loan/UpdateLoan.js +41 -0
- package/es/types/Interface/api/loan/UpdateLoan.js.map +1 -0
- package/es/types/Interface/api/society/LegalFormSiren.d.ts +7 -0
- package/es/types/Interface/api/society/LegalFormSiren.d.ts.map +1 -1
- package/es/types/Interface/api/society/LegalFormSiren.js.map +1 -1
- package/es/types/Interface/api/zticket/CreateZTicket.d.ts +28 -0
- package/es/types/Interface/api/zticket/CreateZTicket.d.ts.map +1 -0
- package/es/types/Interface/api/zticket/CreateZTicket.js +33 -0
- package/es/types/Interface/api/zticket/CreateZTicket.js.map +1 -0
- package/es/types/Interface/api/zticket/QueryZTicket.d.ts +9 -0
- package/es/types/Interface/api/zticket/QueryZTicket.d.ts.map +1 -0
- package/es/types/Interface/api/zticket/QueryZTicket.js +37 -0
- package/es/types/Interface/api/zticket/QueryZTicket.js.map +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/models/ILoan.d.ts +10 -0
- package/es/types/Interface/models/ILoan.d.ts.map +1 -1
- package/es/types/Interface/models/ILoan.js.map +1 -1
- package/es/types/Interface/models/IThirdParty.d.ts +1 -0
- package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdParty.js.map +1 -1
- package/es/types/Interface/models/IZTicket.d.ts +17 -0
- package/es/types/Interface/models/IZTicket.d.ts.map +1 -0
- package/es/types/Interface/models/IZTicket.js +2 -0
- package/es/types/Interface/models/IZTicket.js.map +1 -0
- package/es/types/index.d.ts +8 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +8 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Immobilization.js +1 -1
- package/js/api/resources/Immobilization.js.map +1 -1
- package/js/api/resources/Loan.js +8 -0
- package/js/api/resources/Loan.js.map +1 -1
- package/js/api/resources/ZTicket.js +28 -0
- package/js/api/resources/ZTicket.js.map +1 -0
- package/js/api/resources/dashboard.js +20 -0
- package/js/api/resources/dashboard.js.map +1 -0
- package/js/api/resources.js +7 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AccountingJournal.js +1 -0
- package/js/types/Enum/AccountingJournal.js.map +1 -1
- package/js/types/Enum/SaleType.js +13 -0
- package/js/types/Enum/SaleType.js.map +1 -0
- package/js/types/Enum/TypePayment.js +17 -0
- package/js/types/Enum/TypePayment.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js +29 -0
- package/js/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.js.map +1 -0
- package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +18 -0
- package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +1 -0
- package/js/types/Interface/api/loan/UpdateLoan.js +39 -0
- package/js/types/Interface/api/loan/UpdateLoan.js.map +1 -0
- package/js/types/Interface/api/zticket/CreateZTicket.js +35 -0
- package/js/types/Interface/api/zticket/CreateZTicket.js.map +1 -0
- package/js/types/Interface/api/zticket/QueryZTicket.js +37 -0
- package/js/types/Interface/api/zticket/QueryZTicket.js.map +1 -0
- package/js/types/Interface/models/IZTicket.js +6 -0
- package/js/types/Interface/models/IZTicket.js.map +1 -0
- package/js/types/index.js +96 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Immobilization.ts +1 -1
- package/ts/api/resources/Loan.ts +9 -2
- package/ts/api/resources/ZTicket.ts +20 -0
- package/ts/api/resources/dashboard.ts +8 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/AccountingJournal.ts +1 -0
- package/ts/types/Enum/SaleType.ts +5 -0
- package/ts/types/Enum/TypePayment.ts +9 -0
- package/ts/types/Interface/api/dashboard/QueryTurnoverProfitAndLoss.ts +9 -0
- package/ts/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.ts +18 -0
- package/ts/types/Interface/api/loan/UpdateLoan.ts +24 -0
- package/ts/types/Interface/api/society/LegalFormSiren.ts +8 -0
- package/ts/types/Interface/api/zticket/CreateZTicket.ts +40 -0
- package/ts/types/Interface/api/zticket/QueryZTicket.ts +21 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
- package/ts/types/Interface/models/ILoan.ts +11 -1
- package/ts/types/Interface/models/IThirdParty.ts +1 -0
- package/ts/types/Interface/models/IZTicket.ts +20 -0
- 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
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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';
|