@silexpert/core 1.0.198 → 1.0.200
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/AccountingFiles.d.ts +2 -1
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +3 -0
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/types/Enum/Log.js +1 -1
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/Read.d.ts +6 -0
- package/es/types/Interface/api/accountingFiles/Read.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/Read.js +2 -0
- package/es/types/Interface/api/accountingFiles/Read.js.map +1 -0
- package/es/types/Interface/api/exercice/CreateExercice.d.ts +1 -0
- package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -1
- package/es/types/Interface/api/exercice/CreateExercice.js +7 -0
- package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -1
- package/es/types/Interface/api/exercice/UpdateExercice.d.ts +1 -0
- package/es/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
- package/es/types/Interface/api/exercice/UpdateExercice.js +7 -0
- package/es/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +3 -2
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +9 -4
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +1 -0
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.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/api/resources/AccountingFiles.js +3 -0
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/types/Enum/Log.js +1 -1
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/Read.js +6 -0
- package/js/types/Interface/api/accountingFiles/Read.js.map +1 -0
- package/js/types/Interface/api/exercice/CreateExercice.js +1 -0
- package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -1
- package/js/types/Interface/api/exercice/UpdateExercice.js +1 -0
- package/js/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +2 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/models/IPayment.js.map +1 -1
- package/js/types/index.js +34 -24
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +5 -1
- package/ts/types/Enum/Log.ts +1 -1
- package/ts/types/Interface/api/accountingFiles/Read.ts +6 -0
- package/ts/types/Interface/api/exercice/CreateExercice.ts +6 -0
- package/ts/types/Interface/api/exercice/UpdateExercice.ts +6 -0
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +8 -4
- package/ts/types/Interface/models/IPayment.ts +1 -0
- package/ts/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.200",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,
|
|
3
|
+
BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class AccountingFiles extends Resource {
|
|
@@ -29,4 +29,8 @@ export class AccountingFiles extends Resource {
|
|
|
29
29
|
getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {
|
|
30
30
|
return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
update(id:number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile> {
|
|
34
|
+
return this.axios.$put(`/accounting-files/${id}`, payload);
|
|
35
|
+
}
|
|
32
36
|
}
|
package/ts/types/Enum/Log.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsOptional, IsEnum,
|
|
2
|
+
IsOptional, IsEnum, IsDateString, IsString, IsArray, IsBoolean, IsNumber,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import {
|
|
6
|
-
VatRegime, ToDoOrDone, BankCollectingState,
|
|
6
|
+
VatRegime, ToDoOrDone, BankCollectingState, TaxState,
|
|
7
7
|
} from '../../..';
|
|
8
8
|
import { ComptaType } from '../../../Enum/ComptaType';
|
|
9
9
|
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
@@ -112,8 +112,7 @@ export class QueryTaxDeadlineStatistics {
|
|
|
112
112
|
|
|
113
113
|
export class QueryCompanyTaxesByCollaborater {
|
|
114
114
|
@ApiProperty({ description: 'Id collaborater' })
|
|
115
|
-
|
|
116
|
-
idUser: number;
|
|
115
|
+
idUser: number | number[];
|
|
117
116
|
|
|
118
117
|
@ApiProperty()
|
|
119
118
|
@IsDateString()
|
|
@@ -127,4 +126,9 @@ export class QueryCompanyTaxesByCollaborater {
|
|
|
127
126
|
@IsString()
|
|
128
127
|
@IsOptional()
|
|
129
128
|
search?: string;
|
|
129
|
+
|
|
130
|
+
@ApiPropertyOptional()
|
|
131
|
+
@IsNumber()
|
|
132
|
+
@IsOptional()
|
|
133
|
+
idState: TaxState;
|
|
130
134
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -571,6 +571,7 @@ export * from './Interface/api/accountingFiles/queryAccountingFiles';
|
|
|
571
571
|
export * from './Interface/api/accountingFiles/Ocr';
|
|
572
572
|
export * from './Interface/api/accountingFiles/OcrPayload';
|
|
573
573
|
export * from './Interface/api/accountingFiles/OcrValue';
|
|
574
|
+
export * from './Interface/api/accountingFiles/Read';
|
|
574
575
|
export * from './Interface/api/stock/StockEntries';
|
|
575
576
|
export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
|
|
576
577
|
export * from './Interface/api/dashboard/ReadTurnOverProfitAndLossAndVats';
|