@silexpert/core 1.2.30 → 1.2.31
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/types/Interface/api/commercialManagement/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +42 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +5 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +6 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +5 -2
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -1
- package/dist/cjs/types/Interface/models/IGeneralConditionOfSale.d.ts +13 -0
- package/dist/cjs/types/Interface/models/IGeneralConditionOfSale.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IGeneralConditionOfSale.js +3 -0
- package/dist/cjs/types/Interface/models/IGeneralConditionOfSale.js.map +1 -0
- 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/types/Interface/api/commercialManagement/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +45 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +5 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +11 -2
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +5 -2
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -1
- package/dist/mjs/types/Interface/models/IGeneralConditionOfSale.d.ts +13 -0
- package/dist/mjs/types/Interface/models/IGeneralConditionOfSale.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IGeneralConditionOfSale.js +2 -0
- package/dist/mjs/types/Interface/models/IGeneralConditionOfSale.js.map +1 -0
- 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/types/Interface/api/commercialManagement/Create.ts +33 -0
- package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +10 -3
- package/ts/types/Interface/api/previsionalForm/PrevisionalFormPayload.ts +6 -2
- package/ts/types/Interface/models/IGeneralConditionOfSale.ts +15 -0
- package/ts/types/index.ts +1 -0
|
@@ -603,6 +603,39 @@ export class UpdateSaleEmail {
|
|
|
603
603
|
@IsEnum(EmailType)
|
|
604
604
|
type?: number;
|
|
605
605
|
|
|
606
|
+
@ApiPropertyOptional()
|
|
607
|
+
@IsOptional()
|
|
608
|
+
@IsBoolean()
|
|
609
|
+
@ToBoolean()
|
|
610
|
+
isDefault?: boolean;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export class CreateGeneralConditionOfSale {
|
|
614
|
+
@ApiProperty()
|
|
615
|
+
@IsString()
|
|
616
|
+
name: string;
|
|
617
|
+
|
|
618
|
+
@ApiProperty()
|
|
619
|
+
@IsString()
|
|
620
|
+
content: string;
|
|
621
|
+
|
|
622
|
+
@ApiProperty()
|
|
623
|
+
@IsBoolean()
|
|
624
|
+
@ToBoolean()
|
|
625
|
+
isDefault: boolean;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export class UpdateGeneralConditionOfSale {
|
|
629
|
+
@ApiPropertyOptional()
|
|
630
|
+
@IsOptional()
|
|
631
|
+
@IsString()
|
|
632
|
+
name?: string;
|
|
633
|
+
|
|
634
|
+
@ApiPropertyOptional()
|
|
635
|
+
@IsOptional()
|
|
636
|
+
@IsString()
|
|
637
|
+
content?: string;
|
|
638
|
+
|
|
606
639
|
@ApiPropertyOptional()
|
|
607
640
|
@IsOptional()
|
|
608
641
|
@IsBoolean()
|
|
@@ -2,7 +2,7 @@ import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
|
2
2
|
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
3
3
|
import { LoanInformation, NumberFiscalYears, OptionNumberFiscalYears, PrevisionalFormActivity, PrevisionalFormPayload } from '../../..';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
-
import { IsNumber, IsBoolean, IsEnum, IsOptional, ValidateNested, IsIn } from 'class-validator';
|
|
5
|
+
import { IsNumber, IsBoolean, IsEnum, IsOptional, ValidateNested, IsIn, IsString } from 'class-validator';
|
|
6
6
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
7
|
|
|
8
8
|
export class NumberFiscalYearsValidation implements NumberFiscalYears {
|
|
@@ -132,8 +132,8 @@ export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
|
132
132
|
@ValidateNested()
|
|
133
133
|
outsourcing: Required<NumberFiscalYearsValidation>[];
|
|
134
134
|
|
|
135
|
-
@
|
|
136
|
-
merchandisePurchase
|
|
135
|
+
@ApiPropertyOptional()
|
|
136
|
+
merchandisePurchase?: OptionNumberFiscalYears[];
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* Consommables
|
|
@@ -239,6 +239,13 @@ export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
|
239
239
|
|
|
240
240
|
@ApiProperty()
|
|
241
241
|
otherTaxes: NumberFiscalYears | undefined;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Récapitulatif
|
|
245
|
+
*/
|
|
246
|
+
@ApiProperty()
|
|
247
|
+
@IsString()
|
|
248
|
+
summary: string;
|
|
242
249
|
}
|
|
243
250
|
|
|
244
251
|
export class CreatePrevisionalForm {
|
|
@@ -49,7 +49,7 @@ export interface Financing {
|
|
|
49
49
|
|
|
50
50
|
export interface Turnover {
|
|
51
51
|
turnover: Required<NumberFiscalYears>[]; // Ventes de marchandises / Ventes de matières premières / Ventes de prestations de services
|
|
52
|
-
merchandisePurchase
|
|
52
|
+
merchandisePurchase?: OptionNumberFiscalYears[]; // Achats de marchandises / matières premières
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface Charges {
|
|
@@ -92,4 +92,8 @@ export interface SocialAndRemuneration {
|
|
|
92
92
|
remunerationManager: NumberFiscalYears; // Rémunération gérant
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export interface
|
|
95
|
+
export interface ProjectSummary {
|
|
96
|
+
summary: string // Récapitulatif du projet
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface PrevisionalFormPayload extends CompanyDescription, Investment, Financing, Turnover, Charges, Taxes, Consumables, OtherCharges, SocialAndRemuneration, ProjectSummary {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISociety } from './ISociety';
|
|
2
|
+
|
|
3
|
+
export interface IGeneralConditionOfSale {
|
|
4
|
+
id?: number;
|
|
5
|
+
name: string;
|
|
6
|
+
content: string;
|
|
7
|
+
isDefault: boolean;
|
|
8
|
+
idSociety?: number | null;
|
|
9
|
+
createdAt?: Date | null;
|
|
10
|
+
updatedAt?: Date | null;
|
|
11
|
+
deletedAt?: Date | null;
|
|
12
|
+
|
|
13
|
+
// Associations
|
|
14
|
+
society?: ISociety
|
|
15
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -339,6 +339,7 @@ export * from './Interface/models/IPrevisionalForm';
|
|
|
339
339
|
export * from './Interface/models/IHumanResourceLibrary';
|
|
340
340
|
export * from './Interface/models/IUserHumanResourceLibrary';
|
|
341
341
|
export * from './Interface/models/ISaleEmail';
|
|
342
|
+
export * from './Interface/models/IGeneralConditionOfSale';
|
|
342
343
|
|
|
343
344
|
|
|
344
345
|
// Schemas
|