@silexpert/core 1.1.57 → 1.1.58

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 (27) hide show
  1. package/es/api/resources/TerminationList.d.ts +2 -1
  2. package/es/api/resources/TerminationList.d.ts.map +1 -1
  3. package/es/api/resources/TerminationList.js +3 -0
  4. package/es/api/resources/TerminationList.js.map +1 -1
  5. package/es/types/Interface/api/terminationList/CreateTerminationList.d.ts +14 -0
  6. package/es/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -0
  7. package/es/types/Interface/api/terminationList/CreateTerminationList.js +80 -0
  8. package/es/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -0
  9. package/es/types/Interface/models/ITerminationList.d.ts +11 -11
  10. package/es/types/Interface/models/ITerminationList.d.ts.map +1 -1
  11. package/es/types/Interface/models/ITerminationList.js.map +1 -1
  12. package/es/types/index.d.ts +1 -0
  13. package/es/types/index.d.ts.map +1 -1
  14. package/es/types/index.js +1 -0
  15. package/es/types/index.js.map +1 -1
  16. package/js/api/resources/TerminationList.js +3 -0
  17. package/js/api/resources/TerminationList.js.map +1 -1
  18. package/js/types/Interface/api/terminationList/CreateTerminationList.js +32 -0
  19. package/js/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -0
  20. package/js/types/Interface/models/ITerminationList.js.map +1 -1
  21. package/js/types/index.js +10 -0
  22. package/js/types/index.js.map +1 -1
  23. package/package.json +1 -1
  24. package/ts/api/resources/TerminationList.ts +5 -1
  25. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +63 -0
  26. package/ts/types/Interface/models/ITerminationList.ts +11 -11
  27. 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.1.57",
3
+ "version": "1.1.58",
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,4 +1,4 @@
1
- import { DestroyTerminationList, QueryTerminationList } from '../../types';
1
+ import { CreateTerminationList, DestroyTerminationList, QueryTerminationList } from '../../types';
2
2
  import { Resource } from '../Resource';
3
3
 
4
4
  export class TerminationList extends Resource {
@@ -6,6 +6,10 @@ export class TerminationList extends Resource {
6
6
  return this.axios.$get('/termination-lists', { params });
7
7
  }
8
8
 
9
+ public create(params: CreateTerminationList): Promise<TerminationList> {
10
+ return this.axios.$post('/termination-lists', params);
11
+ }
12
+
9
13
  public delete(params: DestroyTerminationList): Promise<number> {
10
14
  return this.axios.$delete('/termination-lists', { params });
11
15
  }
@@ -0,0 +1,63 @@
1
+ import {
2
+ IsBoolean,
3
+ IsDate,
4
+ IsInt, IsOptional, IsString,
5
+ } from 'class-validator';
6
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
+
8
+ export class CreateTerminationList {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsString()
12
+ comment?: string;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsDate()
17
+ recalledCustomer?: Date;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsOptional()
21
+ @IsDate()
22
+ recalledCustomerBySupervisor?: Date;
23
+
24
+ @ApiPropertyOptional()
25
+ @IsOptional()
26
+ @IsDate()
27
+ effectiveDate?: Date;
28
+
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsInt()
32
+ idExercice?: number;
33
+
34
+ @ApiPropertyOptional()
35
+ @IsOptional()
36
+ @IsDate()
37
+ endContractDate?: Date;
38
+
39
+ @ApiPropertyOptional()
40
+ @IsOptional()
41
+ @IsBoolean()
42
+ refund?: boolean;
43
+
44
+ @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsInt()
47
+ idReasonTermination?: number;
48
+
49
+ @ApiProperty()
50
+ @IsOptional()
51
+ @IsInt()
52
+ idSociety?: number;
53
+
54
+ @ApiPropertyOptional()
55
+ @IsOptional()
56
+ @IsInt()
57
+ idPrestation?: number;
58
+
59
+ @ApiPropertyOptional()
60
+ @IsOptional()
61
+ @IsInt()
62
+ idCollaborateur?: number;
63
+ }
@@ -7,17 +7,17 @@ import { IPrestation } from './IPrestation';
7
7
  // terminitionsList
8
8
  export interface ITerminationList {
9
9
  id?: number;
10
- comment: string | null;
11
- recalledCustomer: Date | null;
12
- recalledCustomerBySupervisor: Date | null;
13
- effectiveDate: Date | null;
14
- idExercice: number | null;
15
- endContractDate: Date | null;
16
- refund: boolean;
17
- idReasonTermination: number | null;
18
- idSociety: number | null;
19
- idPrestation: number | null;
20
- idCollaborateur: number | null;
10
+ comment?: string | null;
11
+ recalledCustomer?: Date | null;
12
+ recalledCustomerBySupervisor?: Date | null;
13
+ effectiveDate?: Date | null;
14
+ idExercice?: number | null;
15
+ endContractDate?: Date | null;
16
+ refund?: boolean;
17
+ idReasonTermination?: number | null;
18
+ idSociety?: number | null;
19
+ idPrestation?: number | null;
20
+ idCollaborateur?: number | null;
21
21
  createdAt?: Date | null;
22
22
  updatedAt?: Date | null;
23
23
 
package/ts/types/index.ts CHANGED
@@ -897,6 +897,7 @@ export * from './Interface/api/legalNotice/UpdateLegalNotice';
897
897
  export * from './Interface/api/wallet/QueryWallet';
898
898
  export * from './Interface/api/terminationList/QueryTerminationList';
899
899
  export * from './Interface/api/terminationList/DestroyTerminationList';
900
+ export * from './Interface/api/terminationList/CreateTerminationList';
900
901
  export * from './Interface/api/pdf/ReadPdfizer';
901
902
  export * from './Interface/api/gedFile/updateGedFile';
902
903
  export * from './Interface/api/gedFile/createFileAndGed';