@silexpert/core 1.1.74 → 1.1.76
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/GeneralLedger.d.ts +2 -2
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Regulate.d.ts +2 -1
- package/es/api/resources/Regulate.d.ts.map +1 -1
- package/es/api/resources/Regulate.js +3 -0
- package/es/api/resources/Regulate.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +11 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +13 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +17 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts +7 -0
- package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts.map +1 -0
- package/es/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +6 -6
- package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
- package/es/types/Interface/api/regulate/DestroyRegulate.d.ts +5 -0
- package/es/types/Interface/api/regulate/DestroyRegulate.d.ts.map +1 -0
- package/es/types/Interface/api/regulate/DestroyRegulate.js +25 -0
- package/es/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
- package/es/types/index.d.ts +2 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -1
- package/es/types/index.js.map +1 -1
- package/es/utils/vat/3517/century23.js +1 -1
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Regulate.js +5 -0
- package/js/api/resources/Regulate.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +10 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -1
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/js/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +8 -8
- package/js/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
- package/js/types/Interface/api/regulate/DestroyRegulate.js +23 -0
- package/js/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
- package/js/types/index.js +13 -3
- package/js/types/index.js.map +1 -1
- package/js/utils/vat/3517/century23.js +1 -1
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/package.json +3 -3
- package/ts/api/resources/GeneralLedger.ts +2 -2
- package/ts/api/resources/Regulate.ts +4 -1
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +24 -1
- package/ts/types/Interface/api/prestation/{QueryCreatePrestationSocieties.ts → BodyCreatePrestationSocieties.ts} +1 -1
- package/ts/types/Interface/api/regulate/DestroyRegulate.ts +15 -0
- package/ts/types/index.ts +2 -1
- package/ts/utils/vat/3517/century23.ts +1 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +0 -7
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +0 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.76",
|
|
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",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@types/ejs": "^3.0.6",
|
|
46
46
|
"@types/node": "^18.15.11",
|
|
47
47
|
"@types/validator": "^13.11.1",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
49
|
-
"@typescript-eslint/parser": "6.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "6.5.0",
|
|
49
|
+
"@typescript-eslint/parser": "6.5.0",
|
|
50
50
|
"babel-preset-env": "^1.7.0",
|
|
51
51
|
"ejs": "^3.1.9",
|
|
52
52
|
"eslint": "^8.47.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary,
|
|
2
|
+
BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated,
|
|
3
3
|
} from '../../types';
|
|
4
4
|
import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
|
|
5
5
|
import { Resource } from '../Resource';
|
|
@@ -65,7 +65,7 @@ export class GeneralLedger extends Resource {
|
|
|
65
65
|
return this.axios.$get('/general-ledger/auxiliary/summaries', { params });
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<
|
|
68
|
+
getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {
|
|
69
69
|
return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
|
-
import { QueryGetAll, RegulateWithStats } from '../../types';
|
|
2
|
+
import { QueryGetAll, RegulateWithStats, DestroyRegulate } from '../../types';
|
|
3
3
|
import { Resource } from '../Resource';
|
|
4
4
|
|
|
5
5
|
export class Regulate extends Resource {
|
|
6
6
|
getAllByCommercial(params: QueryGetAll, cancelToken?: CancelToken): Promise<RegulateWithStats[]> {
|
|
7
7
|
return this.axios.$get('/regulates/all-by-commercial', { ...(cancelToken ? { cancelToken } : {}), params });
|
|
8
8
|
}
|
|
9
|
+
delete(params: DestroyRegulate): Promise<number> {
|
|
10
|
+
return this.axios.$delete('/regulates', { params });
|
|
11
|
+
}
|
|
9
12
|
}
|
|
@@ -400,6 +400,17 @@ export const TaskResponseType = {
|
|
|
400
400
|
responseType: null,
|
|
401
401
|
description: 'Rendez-vous Clementine',
|
|
402
402
|
},
|
|
403
|
+
{
|
|
404
|
+
id: 33,
|
|
405
|
+
label: 'Juridique',
|
|
406
|
+
role: Role.COMMERCIAL,
|
|
407
|
+
deadline: Deadline,
|
|
408
|
+
isForWholeRole: false,
|
|
409
|
+
backToClient: false,
|
|
410
|
+
goToCalendar: false,
|
|
411
|
+
responseType: null,
|
|
412
|
+
description: 'Abandon de constitution, résiliation de la mission comptable',
|
|
413
|
+
},
|
|
403
414
|
],
|
|
404
415
|
|
|
405
416
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IsDateString, IsNumber } from 'class-validator';
|
|
1
|
+
import { IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '../../../../utils';
|
|
3
3
|
import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
|
|
4
|
+
import { BasePaginate } from '../BasePaginate';
|
|
4
5
|
|
|
5
6
|
export interface IGeneralLedgerThirdParty {
|
|
6
7
|
idThirdParty: number;
|
|
@@ -13,6 +14,18 @@ export interface IGeneralLedgerThirdParty {
|
|
|
13
14
|
initialBalance: number;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
export interface ReadIGeneralLedgerThirdPartyPaginated {
|
|
18
|
+
idThirdParty: number;
|
|
19
|
+
name: string;
|
|
20
|
+
totalCredit: number;
|
|
21
|
+
totalDebit: number;
|
|
22
|
+
totalSolde: number;
|
|
23
|
+
entries: BasePaginate<IGeneralLedgerAccountingEntry>;
|
|
24
|
+
identifier: string;
|
|
25
|
+
initialBalance: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
16
29
|
export interface ReadGeneralLedgerSummary {
|
|
17
30
|
idThirdParty: number;
|
|
18
31
|
name: string;
|
|
@@ -34,4 +47,14 @@ export class QueryGeneralLedgerThirdParty {
|
|
|
34
47
|
@ApiProperty()
|
|
35
48
|
@IsNumber()
|
|
36
49
|
idSociety: number;
|
|
50
|
+
|
|
51
|
+
@ApiProperty()
|
|
52
|
+
@IsOptional()
|
|
53
|
+
@IsNumber()
|
|
54
|
+
page: number = 1;
|
|
55
|
+
|
|
56
|
+
@ApiProperty()
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsNumber()
|
|
59
|
+
limit: number = 100;
|
|
37
60
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class DestroyRegulate {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsInt()
|
|
9
|
+
idPrestation?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsInt()
|
|
14
|
+
id?: number;
|
|
15
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -850,6 +850,7 @@ export * from './Interface/api/societyEvent/CreateSocietyEvent';
|
|
|
850
850
|
export * from './Interface/api/task/QueryGetAllTask';
|
|
851
851
|
export * from './Interface/api/regulate/QueryGetAll';
|
|
852
852
|
export * from './Interface/api/regulate/RegulateWithStats';
|
|
853
|
+
export * from './Interface/api/regulate/DestroyRegulate';
|
|
853
854
|
export * from './Interface/api/task/QueryPaginatedTask';
|
|
854
855
|
export * from './Interface/api/task/QueryCreateTask';
|
|
855
856
|
export * from './Interface/api/task/QueryGetTask';
|
|
@@ -891,7 +892,7 @@ export * from './Interface/api/societyConfig/update';
|
|
|
891
892
|
export * from './Interface/api/wallet/UpdateAttribution';
|
|
892
893
|
export * from './Interface/api/prestation/CreatePrestation';
|
|
893
894
|
export * from './Interface/api/prestation/QueryPrestation';
|
|
894
|
-
export * from './Interface/api/prestation/
|
|
895
|
+
export * from './Interface/api/prestation/BodyCreatePrestationSocieties';
|
|
895
896
|
export * from './Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation';
|
|
896
897
|
export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
|
|
897
898
|
export * from './Interface/api/legalNotice/UpdateLegalNotice';
|
|
@@ -346,7 +346,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
346
346
|
|
|
347
347
|
data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
|
|
348
348
|
data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
|
|
349
|
-
data.refund.reportable = shouldFillRefund ? data.refund.maximum - data.refund.
|
|
349
|
+
data.refund.reportable = shouldFillRefund ? data.refund.maximum - data.refund.asked : 0;
|
|
350
350
|
|
|
351
351
|
data.total = setZeroIfIsNegative(data.vat.total.tax - (data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.deductible.total1));
|
|
352
352
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryCreatePrestationSocieties.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"names":[],"mappings":"AAKA,qBAAa,8BAA8B;IAQvC,YAAY,EAAE,MAAM,EAAE,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,gBAAgB,EAAE,MAAM,CAAC;IAIzB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryCreatePrestationSocieties.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,8BAA8B;CAqB1C;AApBC;IAAC,WAAW,CAAC;QACX,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;IACD,OAAO,EAAE;;oEACe;AAEzB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACM,IAAI;mEAAC;AAEpB;IAAC,WAAW,EAAE;IACb,KAAK,EAAE;;wEACmB;AAE3B;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;8DACM","sourcesContent":["import {\n IsArray, IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryCreatePrestationSocieties {\n @ApiProperty({\n description: 'array of id society',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n societiesIds: number[];\n\n @ApiProperty()\n @IsDate()\n datePayment: Date;\n\n @ApiProperty()\n @IsInt()\n idPrestationList: number;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryCreatePrestationSocieties.js","names":["_classValidator","require","_utils","QueryCreatePrestationSocieties","exports","__decorate","ApiProperty","description","required","type","Number","example","IsArray","IsDate","Date","IsInt","IsNumber"],"sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"sourcesContent":["import {\n IsArray, IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryCreatePrestationSocieties {\n @ApiProperty({\n description: 'array of id society',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n societiesIds: number[];\n\n @ApiProperty()\n @IsDate()\n datePayment: Date;\n\n @ApiProperty()\n @IsInt()\n idPrestationList: number;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;;;;;;;;;;;AAEM,MAAOE,8BAA8B;AAqB1CC,OAAA,CArBYD,8BAA8B,GAA9BA,8BAA8B;AACzCE,UAAA,EAAC,IAAAC,kBAAW,EAAC;EACXC,WAAW,EAAE,qBAAqB;EAClCC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAE,CAACC,MAAM,CAAC;EACdC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;CAChB,CAAC,EACD,IAAAC,uBAAO,GAAE,E,oGACe;AAEzBP,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAO,sBAAM,GAAE,E,0BACMC,IAAI,E,kEAAC;AAEpBT,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAS,qBAAK,GAAE,E,yGACmB;AAE3BV,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAU,wBAAQ,GAAE,E,+FACM"}
|