@silexpert/core 1.3.211 → 1.3.213
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/dist/cjs/api/resources/DocumentSection.d.ts +6 -0
- package/dist/cjs/api/resources/DocumentSection.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentSection.js +9 -0
- package/dist/cjs/api/resources/DocumentSection.js.map +1 -1
- package/dist/cjs/types/Enum/Exercice.d.ts +10 -0
- package/dist/cjs/types/Enum/Exercice.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Exercice.js +14 -0
- package/dist/cjs/types/Enum/Exercice.js.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/Create.js +7 -0
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/UpdateExercice.d.ts +2 -0
- package/dist/cjs/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/UpdateExercice.js +7 -0
- package/dist/cjs/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/DocumentSection.d.ts +6 -0
- package/dist/mjs/api/resources/DocumentSection.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentSection.js +9 -0
- package/dist/mjs/api/resources/DocumentSection.js.map +1 -1
- package/dist/mjs/types/Enum/Exercice.d.ts +10 -0
- package/dist/mjs/types/Enum/Exercice.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Exercice.js +11 -0
- package/dist/mjs/types/Enum/Exercice.js.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/Create.js +9 -1
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/UpdateExercice.d.ts +2 -0
- package/dist/mjs/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/UpdateExercice.js +9 -1
- package/dist/mjs/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DocumentSection.ts +10 -0
- package/ts/types/Enum/Exercice.ts +10 -0
- package/ts/types/Interface/api/exercice/Create.ts +7 -1
- package/ts/types/Interface/api/exercice/UpdateExercice.ts +7 -1
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/index.ts +1 -0
|
@@ -7,10 +7,20 @@ export class DocumentSection extends Resource {
|
|
|
7
7
|
* @param { idSociety } idSociety
|
|
8
8
|
* @returns { IDocumentSection[] }
|
|
9
9
|
*/
|
|
10
|
+
// NOTE: logiquement plus utilisé par les statuts, remplacé par getAllByExercice pour les appro des comptes
|
|
10
11
|
public getAllForSociety(idSociety: number): Promise<IDocumentSection[]> {
|
|
11
12
|
return this.axios.$get(`/societies/${idSociety}/documents-sections`);
|
|
12
13
|
}
|
|
13
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Fetch all document sections for an exercice
|
|
17
|
+
* @param { idExercice } idExercice
|
|
18
|
+
* @returns { IDocumentSection[] }
|
|
19
|
+
*/
|
|
20
|
+
public getAllByExercice(idExercice: number): Promise<IDocumentSection[]> {
|
|
21
|
+
return this.axios.$get(`/exercices/${idExercice}/documents-sections`);
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
/**
|
|
15
25
|
* Fetch a document section
|
|
16
26
|
* @param { number } id
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
import { TFile } from '../file/TFile';
|
|
5
|
+
import { ExercicePriorityType } from '../../..';
|
|
5
6
|
|
|
6
7
|
export class CreateExercice {
|
|
7
8
|
@ApiProperty()
|
|
@@ -18,6 +19,11 @@ export class CreateExercice {
|
|
|
18
19
|
@IsOptional()
|
|
19
20
|
isBack?: boolean;
|
|
20
21
|
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsEnum(ExercicePriorityType)
|
|
25
|
+
priority?: ExercicePriorityType;
|
|
26
|
+
|
|
21
27
|
@ApiPropertyOptional()
|
|
22
28
|
@IsBoolean()
|
|
23
29
|
@ToBoolean()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
import { ExercicePriorityType } from '../../..';
|
|
4
5
|
|
|
5
6
|
export class UpdateExercice {
|
|
6
7
|
@ApiPropertyOptional()
|
|
@@ -19,6 +20,11 @@ export class UpdateExercice {
|
|
|
19
20
|
@IsOptional()
|
|
20
21
|
isBack?: boolean;
|
|
21
22
|
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsEnum(ExercicePriorityType)
|
|
26
|
+
priority?: ExercicePriorityType;
|
|
27
|
+
|
|
22
28
|
@ApiPropertyOptional()
|
|
23
29
|
@IsBoolean()
|
|
24
30
|
@ToBoolean()
|
|
@@ -15,6 +15,7 @@ import { IRegistration } from './IRegistration';
|
|
|
15
15
|
import { IComment } from './IComment';
|
|
16
16
|
import { IPayment } from './IPayment';
|
|
17
17
|
import { IStateBankAccount } from './IStateBankAccount';
|
|
18
|
+
import { ExercicePriorityType } from '../../Enum/Exercice';
|
|
18
19
|
|
|
19
20
|
// exercices
|
|
20
21
|
export interface IExercice {
|
|
@@ -25,6 +26,7 @@ export interface IExercice {
|
|
|
25
26
|
invoicePurchase?: number | null;
|
|
26
27
|
invoiceSales?: number | null;
|
|
27
28
|
isBack: boolean;
|
|
29
|
+
priority?: ExercicePriorityType | null;
|
|
28
30
|
close: boolean;
|
|
29
31
|
allAnnote: boolean;
|
|
30
32
|
current: boolean;
|
package/ts/types/index.ts
CHANGED
|
@@ -448,6 +448,7 @@ export * from './Enum/Supervision';
|
|
|
448
448
|
export * from './Enum/Notification';
|
|
449
449
|
export * from './Enum/Comment';
|
|
450
450
|
export * from './Enum/Channel';
|
|
451
|
+
export * from './Enum/Exercice';
|
|
451
452
|
export * from './Enum/ExerciceNoteType';
|
|
452
453
|
export * from './Enum/BrandClementine';
|
|
453
454
|
export * from './Enum/BrandLegalstart';
|