@silexpert/core 1.1.75 → 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.
Files changed (51) hide show
  1. package/es/api/resources/GeneralLedger.d.ts +2 -2
  2. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/es/api/resources/GeneralLedger.js.map +1 -1
  4. package/es/api/resources/Regulate.d.ts +2 -1
  5. package/es/api/resources/Regulate.d.ts.map +1 -1
  6. package/es/api/resources/Regulate.js +3 -0
  7. package/es/api/resources/Regulate.js.map +1 -1
  8. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  9. package/es/types/Enum/TaskResponseType.js +11 -0
  10. package/es/types/Enum/TaskResponseType.js.map +1 -1
  11. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +13 -0
  12. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  13. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +17 -1
  14. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  15. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts +7 -0
  16. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts.map +1 -0
  17. package/es/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +6 -6
  18. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
  19. package/es/types/Interface/api/regulate/DestroyRegulate.d.ts +5 -0
  20. package/es/types/Interface/api/regulate/DestroyRegulate.d.ts.map +1 -0
  21. package/es/types/Interface/api/regulate/DestroyRegulate.js +25 -0
  22. package/es/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
  23. package/es/types/index.d.ts +2 -1
  24. package/es/types/index.d.ts.map +1 -1
  25. package/es/types/index.js +2 -1
  26. package/es/types/index.js.map +1 -1
  27. package/js/api/resources/GeneralLedger.js.map +1 -1
  28. package/js/api/resources/Regulate.js +5 -0
  29. package/js/api/resources/Regulate.js.map +1 -1
  30. package/js/types/Enum/TaskResponseType.js +10 -0
  31. package/js/types/Enum/TaskResponseType.js.map +1 -1
  32. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -1
  33. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  34. package/js/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +8 -8
  35. package/js/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
  36. package/js/types/Interface/api/regulate/DestroyRegulate.js +23 -0
  37. package/js/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
  38. package/js/types/index.js +13 -3
  39. package/js/types/index.js.map +1 -1
  40. package/package.json +3 -3
  41. package/ts/api/resources/GeneralLedger.ts +2 -2
  42. package/ts/api/resources/Regulate.ts +4 -1
  43. package/ts/types/Enum/TaskResponseType.ts +11 -0
  44. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +24 -1
  45. package/ts/types/Interface/api/prestation/{QueryCreatePrestationSocieties.ts → BodyCreatePrestationSocieties.ts} +1 -1
  46. package/ts/types/Interface/api/regulate/DestroyRegulate.ts +15 -0
  47. package/ts/types/index.ts +2 -1
  48. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +0 -7
  49. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +0 -1
  50. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
  51. 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.75",
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.4.1",
49
- "@typescript-eslint/parser": "6.4.1",
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<IGeneralLedgerThirdParty> {
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
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from 'class-validator';
4
4
  import { ApiProperty } from '../../../../utils';
5
5
 
6
- export class QueryCreatePrestationSocieties {
6
+ export class BodyCreatePrestationSocieties {
7
7
  @ApiProperty({
8
8
  description: 'array of id society',
9
9
  required: true,
@@ -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/QueryCreatePrestationSocieties';
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';
@@ -1,7 +0,0 @@
1
- export declare class QueryCreatePrestationSocieties {
2
- societiesIds: number[];
3
- datePayment: Date;
4
- idPrestationList: number;
5
- amount: number;
6
- }
7
- //# sourceMappingURL=QueryCreatePrestationSocieties.d.ts.map
@@ -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"}