@silexpert/core 1.2.26 → 1.2.27
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/RegistrationForm.d.ts +3 -2
- package/dist/cjs/api/resources/RegistrationForm.d.ts.map +1 -1
- package/dist/cjs/api/resources/RegistrationForm.js +4 -1
- package/dist/cjs/api/resources/RegistrationForm.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +57 -0
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +94 -1
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/CerfaType.d.ts +2 -1
- package/dist/cjs/types/Enum/CerfaType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CerfaType.js +1 -0
- package/dist/cjs/types/Enum/CerfaType.js.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.d.ts +28 -0
- package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +137 -1
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +91 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.js +3 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -0
- package/dist/cjs/types/Interface/api/cerfa/CreateCerfa.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/CreateCerfa.js +1 -0
- package/dist/cjs/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +15 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +70 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +4 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +2 -0
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISaleEmail.d.ts +15 -0
- package/dist/cjs/types/Interface/models/ISaleEmail.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/ISaleEmail.js +3 -0
- package/dist/cjs/types/Interface/models/ISaleEmail.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/cjs/utils/commercialManagement/saleEmail.d.ts +10 -0
- package/dist/cjs/utils/commercialManagement/saleEmail.d.ts.map +1 -0
- package/dist/cjs/utils/commercialManagement/saleEmail.js +34 -0
- package/dist/cjs/utils/commercialManagement/saleEmail.js.map +1 -0
- package/dist/mjs/api/resources/RegistrationForm.d.ts +3 -2
- package/dist/mjs/api/resources/RegistrationForm.d.ts.map +1 -1
- package/dist/mjs/api/resources/RegistrationForm.js +4 -1
- package/dist/mjs/api/resources/RegistrationForm.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +57 -0
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +93 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/CerfaType.d.ts +2 -1
- package/dist/mjs/types/Enum/CerfaType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CerfaType.js +1 -0
- package/dist/mjs/types/Enum/CerfaType.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.d.ts +28 -0
- package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +136 -0
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +91 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.js +2 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -0
- package/dist/mjs/types/Interface/api/cerfa/CreateCerfa.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/CreateCerfa.js +1 -0
- package/dist/mjs/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +15 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +79 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +4 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +2 -0
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISaleEmail.d.ts +15 -0
- package/dist/mjs/types/Interface/models/ISaleEmail.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/ISaleEmail.js +2 -0
- package/dist/mjs/types/Interface/models/ISaleEmail.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/dist/mjs/utils/commercialManagement/saleEmail.d.ts +10 -0
- package/dist/mjs/utils/commercialManagement/saleEmail.d.ts.map +1 -0
- package/dist/mjs/utils/commercialManagement/saleEmail.js +30 -0
- package/dist/mjs/utils/commercialManagement/saleEmail.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/RegistrationForm.ts +8 -2
- package/ts/types/Enum/Aspone.ts +98 -1
- package/ts/types/Enum/CerfaType.ts +1 -0
- package/ts/types/Enum/CommercialManagement.ts +143 -1
- package/ts/types/Interface/api/cerfa/2573.ts +88 -0
- package/ts/types/Interface/api/cerfa/CreateCerfa.ts +1 -0
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +58 -2
- package/ts/types/Interface/api/commercialManagement/Read.ts +5 -0
- package/ts/types/Interface/api/registration/CreateRegistration.ts +2 -0
- package/ts/types/Interface/models/ISaleEmail.ts +18 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/commercialManagement/saleEmail.ts +43 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCerfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/CreateCerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEhD,cAA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AG,SAAS,CAAC;QACvC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;KAC5B,CAAA;CACF;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;KACxC,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/CreateCerfa.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["import { VehicleCerfaFuel } from '../../../Enum/Vehicle';\nimport { AsponeTTV, AsponeTTC } from '../../..';\n\nexport * from './2031';\nexport * from './2033';\nexport * from './2035';\nexport * from './2050';\nexport * from './2065';\nexport * from './2571';\nexport * from './2572';\nexport * from './2069RCI';\nexport * from './Utils';\n\nexport interface DeterminedResult {\n incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »\n debts: boolean; // d'après les règles « créances-dettes »\n}\n\nexport type AccountingKept = 'dutyFree' | 'taxIncluded' | 'notSubjectToVat';\nexport type CerfaCivility = 'M' | 'Mme' | 'Mlle';\n\nexport interface AccreditedOrganization {\n isMember: boolean;\n memberSince: string;\n numberOfEmployees: string;\n netWagesReceived: number; // Salaires nets perçus\n}\n\nexport interface Vehicle {\n name: string;\n type: string;\n asponeType: AsponeTTV;\n fiscalPower: number;\n isBNCScale: boolean;\n isBICScale: boolean;\n fuel: VehicleCerfaFuel;\n asponeFuel: AsponeTTC | null;\n professionalKilometers: number;\n deductible: number;\n depreciationPracticedAtReintegrate: number;\n}\n\nexport interface MoralShareholder {\n legalForm: string;\n name: string;\n siren?: string;\n percentShares: number;\n shares: number;\n address: {\n number: string | undefined;\n street: string;\n zipCode: string;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n };\n}\n\nexport interface PhysicShareholder {\n civility: CerfaCivility;\n firstname: string;\n lastname: string;\n percentShares: number;\n marriedName: string | null | undefined;\n shares: number | null;\n birth: {\n date: string;\n department: string | undefined;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n },\n address: {\n street: string | undefined;\n zipCode: string | undefined;\n city: string | undefined;\n country: string | undefined;\n countryCode: string | null | undefined;\n number: string | undefined;\n }\n}\n\nexport interface Subsidiarie {\n legalForm: string;\n name: string;\n siren?: string;\n percentShares: number;\n address: {\n number: string;\n street: string;\n zipCode: string;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n };\n}"]}
|
|
1
|
+
{"version":3,"file":"CreateCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/CreateCerfa.ts"],"names":[],"mappings":"AAGA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["import { VehicleCerfaFuel } from '../../../Enum/Vehicle';\nimport { AsponeTTV, AsponeTTC } from '../../..';\n\nexport * from './2031';\nexport * from './2033';\nexport * from './2035';\nexport * from './2050';\nexport * from './2065';\nexport * from './2571';\nexport * from './2572';\nexport * from './2573';\nexport * from './2069RCI';\nexport * from './Utils';\n\nexport interface DeterminedResult {\n incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »\n debts: boolean; // d'après les règles « créances-dettes »\n}\n\nexport type AccountingKept = 'dutyFree' | 'taxIncluded' | 'notSubjectToVat';\nexport type CerfaCivility = 'M' | 'Mme' | 'Mlle';\n\nexport interface AccreditedOrganization {\n isMember: boolean;\n memberSince: string;\n numberOfEmployees: string;\n netWagesReceived: number; // Salaires nets perçus\n}\n\nexport interface Vehicle {\n name: string;\n type: string;\n asponeType: AsponeTTV;\n fiscalPower: number;\n isBNCScale: boolean;\n isBICScale: boolean;\n fuel: VehicleCerfaFuel;\n asponeFuel: AsponeTTC | null;\n professionalKilometers: number;\n deductible: number;\n depreciationPracticedAtReintegrate: number;\n}\n\nexport interface MoralShareholder {\n legalForm: string;\n name: string;\n siren?: string;\n percentShares: number;\n shares: number;\n address: {\n number: string | undefined;\n street: string;\n zipCode: string;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n };\n}\n\nexport interface PhysicShareholder {\n civility: CerfaCivility;\n firstname: string;\n lastname: string;\n percentShares: number;\n marriedName: string | null | undefined;\n shares: number | null;\n birth: {\n date: string;\n department: string | undefined;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n },\n address: {\n street: string | undefined;\n zipCode: string | undefined;\n city: string | undefined;\n country: string | undefined;\n countryCode: string | null | undefined;\n number: string | undefined;\n }\n}\n\nexport interface Subsidiarie {\n legalForm: string;\n name: string;\n siren?: string;\n percentShares: number;\n address: {\n number: string;\n street: string;\n zipCode: string;\n city: string;\n country: string;\n countryCode: string | null | undefined;\n };\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
|
-
import { AnyCerfa2033Century, Cerfa2031, Cerfa2031_2024, Cerfa2065, Cerfa2065_2024, Cerfa2069RCI_2024, Cerfa2571_2023, Cerfa2571_2024, Cerfa2572_2022, Cerfa2572_2023, Cerfa2572_2024, Cerfa3519_2017, FieldForGeneration, FullCerfa2035, FullCerfa2035_2024, PayloadCerfa3519_2017, QuestionWording } from '../../..';
|
|
2
|
+
import { AnyCerfa2033Century, Cerfa2031, Cerfa2031_2024, Cerfa2065, Cerfa2065_2024, Cerfa2069RCI_2024, Cerfa2571_2023, Cerfa2571_2024, Cerfa2572_2022, Cerfa2572_2023, Cerfa2572_2024, Cerfa2573_2024, Cerfa3519_2017, FieldForGeneration, FullCerfa2035, FullCerfa2035_2024, PayloadCerfa3519_2017, QuestionWording } from '../../..';
|
|
3
3
|
import { Question } from '../../../Enum/BalanceSheetQuestion';
|
|
4
4
|
import { TerminationType } from '../../../Enum/AnswerTypeValue';
|
|
5
5
|
import { Cerfa3310_2023 } from './3310';
|
|
@@ -99,6 +99,7 @@ export type AsponeFormField = {
|
|
|
99
99
|
fields: FieldForGeneration[];
|
|
100
100
|
};
|
|
101
101
|
export interface RegistrationPayload {
|
|
102
|
+
cerfa2573?: Cerfa2573_2024;
|
|
102
103
|
cerfa2572?: Cerfa2572_2022 | Cerfa2572_2023 | Cerfa2572_2024;
|
|
103
104
|
cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;
|
|
104
105
|
cerfa2031?: Cerfa2031 | Cerfa2031_2024;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadCerfa.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/ReadCerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAq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AAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAA;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/ReadCerfa.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReadCerfa.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/ReadCerfa.ts"],"names":[],"mappings":"AA+BA,MAAM,OAAO,cAAc;IAAG,GAAG,CAAS;IAAC,KAAK,CAAmC;CAAE","sourcesContent":["import { CerfaType } from '../../../Enum/CerfaType';\nimport {\n AnyCerfa2033Century,\n Cerfa2031,\n Cerfa2031_2024,\n Cerfa2065,\n Cerfa2065_2024,\n Cerfa2069RCI_2024,\n Cerfa2571_2023,\n Cerfa2571_2024,\n Cerfa2572_2022,\n Cerfa2572_2023,\n Cerfa2572_2024,\n Cerfa2573_2024,\n Cerfa3519_2017,\n FieldForGeneration, FullCerfa2035, FullCerfa2035_2024, PayloadCerfa3519_2017, QuestionWording,\n} from '../../..';\nimport { Question } from '../../../Enum/BalanceSheetQuestion';\nimport { TerminationType } from '../../../Enum/AnswerTypeValue';\nimport { Cerfa3310_2023 } from './3310';\nimport { getCerfa3519Century17Payload } from '../../../../utils/vat/3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from '../../../../utils/vat/3519/century23';\n\nexport type CerfaPayloadFormField = {\n label: string;\n key: string;\n type: 'text' | 'string' | 'number' | 'boolean' | 'date';\n visibleIf?: string;\n columns?: number;\n};\n\nexport class CerfaFormValue { key: string; value: string | number | boolean | null; }\n\nexport type CerfaPayloadForm = {\n sectionName: string;\n childrens: CerfaPayloadForm | CerfaPayloadFormField[]\n};\n\nexport type AnnexVatDocument = {\n shouldInclude: (data: Cerfa3310_2023) => boolean;\n name: string;\n century: string;\n payload: (amount: number, payload: PayloadCerfa3519_2017) => ReturnType<typeof getCerfa3519Century17Payload>,\n asponePayload: (data: Cerfa3519_2017) => ReturnType<typeof getCerfa3519Century23RegistrationFields>\n fields: CerfaPayloadForm[];\n fileName: '3519-2017';\n};\n\nexport type VatDocument = {\n idCerfaType: CerfaType,\n name: string;\n century: string, // Millésime du formulaire ASPONE\n centuries: number[],\n payload: (...args: any[]) => any,\n asponePayload: (...args: any[]) => any,\n fields: Array<CerfaPayloadForm>,\n fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024';\n annex?: AnnexVatDocument;\n};\n\nexport interface ReadCerfaToComplete {\n declaration: CerfaType;\n annex: CerfaType | null\n}\nexport interface ReadCerfaDocument {\n file: any;\n payload: any;\n}\nexport interface Accountant {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface CouncilDetails {\n has: boolean;\n name: string | null;\n phone: string | null;\n address: CerfaAddress;\n}\nexport interface EcfDetails {\n has: boolean;\n name: string | null;\n address: CerfaAddress;\n}\nexport interface ViewerDetails {\n has: boolean;\n name: string;\n address: CerfaAddress\n number: string | null;\n}\nexport interface CerfaAddress {\n number: string;\n street: string;\n zipCode: string;\n city: string;\n country: {\n name: string | null,\n code: string | null\n }\n full: string;\n}\n\nexport type CerfaAnswers = {\n [key in keyof typeof QuestionWording\n | keyof typeof Question]: any\n};\n\nexport type Termination = {\n type: TerminationType,\n date: string | null\n};\n\nexport type AsponeFormFields = Array<{ name: string; fields: FieldForGeneration[], index?: number }>;\nexport type AsponeFormField = { name: string; fields: FieldForGeneration[] };\n\nexport interface RegistrationPayload { \n cerfa2573?: Cerfa2573_2024;\n cerfa2572?: Cerfa2572_2022 | Cerfa2572_2023 | Cerfa2572_2024;\n cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;\n cerfa2031?: Cerfa2031 | Cerfa2031_2024;\n cerfa2033?: AnyCerfa2033Century;\n cerfa2065?: Cerfa2065 | Cerfa2065_2024;\n cerfa2035?: FullCerfa2035 | FullCerfa2035_2024;\n cerfa2069RCI?: Cerfa2069RCI_2024;\n}\n\nexport type ReadFormFile = {\n name: string,\n idFile: number,\n size: number,\n token: string,\n id?: number,\n Location: string,\n ETag: string,\n Bucket: string,\n Key?: string\n mimeType?: string,\n};\n\nexport interface ReadFormGeneration {\n file: ReadFormFile;\n payload: RegistrationPayload\n}"]}
|
|
@@ -165,4 +165,19 @@ export type CreateMailHeader = {
|
|
|
165
165
|
hostS3: string;
|
|
166
166
|
hasVat: boolean;
|
|
167
167
|
};
|
|
168
|
+
export declare class CreateSaleEmail {
|
|
169
|
+
name: string;
|
|
170
|
+
subject: string;
|
|
171
|
+
content: string;
|
|
172
|
+
type: number;
|
|
173
|
+
isDefault?: boolean;
|
|
174
|
+
idSociety: number;
|
|
175
|
+
}
|
|
176
|
+
export declare class UpdateSaleEmail {
|
|
177
|
+
name?: string;
|
|
178
|
+
subject?: string;
|
|
179
|
+
content?: string;
|
|
180
|
+
type?: number;
|
|
181
|
+
isDefault?: boolean;
|
|
182
|
+
}
|
|
168
183
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAa,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC9H,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,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CAAC;CACrB;AAED,qBAAa,eAAe;IAIxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { IsArray, IsBoolean, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, Min, } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
|
-
import { AccountingCategoryId } from '../../../Enum/CommercialManagement';
|
|
13
|
+
import { AccountingCategoryId, EmailType } from '../../../Enum/CommercialManagement';
|
|
14
14
|
import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
|
|
15
15
|
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
16
16
|
export class CreateCommercialSetting {
|
|
@@ -750,4 +750,82 @@ __decorate([
|
|
|
750
750
|
IsString(),
|
|
751
751
|
__metadata("design:type", String)
|
|
752
752
|
], CreateRegenerateDocument.prototype, "title", void 0);
|
|
753
|
+
export class CreateSaleEmail {
|
|
754
|
+
name;
|
|
755
|
+
subject;
|
|
756
|
+
content;
|
|
757
|
+
type;
|
|
758
|
+
isDefault;
|
|
759
|
+
idSociety;
|
|
760
|
+
}
|
|
761
|
+
__decorate([
|
|
762
|
+
ApiProperty(),
|
|
763
|
+
IsString(),
|
|
764
|
+
__metadata("design:type", String)
|
|
765
|
+
], CreateSaleEmail.prototype, "name", void 0);
|
|
766
|
+
__decorate([
|
|
767
|
+
ApiProperty(),
|
|
768
|
+
IsString(),
|
|
769
|
+
__metadata("design:type", String)
|
|
770
|
+
], CreateSaleEmail.prototype, "subject", void 0);
|
|
771
|
+
__decorate([
|
|
772
|
+
ApiProperty(),
|
|
773
|
+
IsString(),
|
|
774
|
+
__metadata("design:type", String)
|
|
775
|
+
], CreateSaleEmail.prototype, "content", void 0);
|
|
776
|
+
__decorate([
|
|
777
|
+
ApiProperty(),
|
|
778
|
+
IsEnum(EmailType),
|
|
779
|
+
__metadata("design:type", Number)
|
|
780
|
+
], CreateSaleEmail.prototype, "type", void 0);
|
|
781
|
+
__decorate([
|
|
782
|
+
ApiPropertyOptional(),
|
|
783
|
+
IsOptional(),
|
|
784
|
+
IsBoolean(),
|
|
785
|
+
ToBoolean(),
|
|
786
|
+
__metadata("design:type", Boolean)
|
|
787
|
+
], CreateSaleEmail.prototype, "isDefault", void 0);
|
|
788
|
+
__decorate([
|
|
789
|
+
ApiProperty(),
|
|
790
|
+
IsInt(),
|
|
791
|
+
__metadata("design:type", Number)
|
|
792
|
+
], CreateSaleEmail.prototype, "idSociety", void 0);
|
|
793
|
+
export class UpdateSaleEmail {
|
|
794
|
+
name;
|
|
795
|
+
subject;
|
|
796
|
+
content;
|
|
797
|
+
type;
|
|
798
|
+
isDefault;
|
|
799
|
+
}
|
|
800
|
+
__decorate([
|
|
801
|
+
ApiPropertyOptional(),
|
|
802
|
+
IsOptional(),
|
|
803
|
+
IsString(),
|
|
804
|
+
__metadata("design:type", String)
|
|
805
|
+
], UpdateSaleEmail.prototype, "name", void 0);
|
|
806
|
+
__decorate([
|
|
807
|
+
ApiPropertyOptional(),
|
|
808
|
+
IsOptional(),
|
|
809
|
+
IsString(),
|
|
810
|
+
__metadata("design:type", String)
|
|
811
|
+
], UpdateSaleEmail.prototype, "subject", void 0);
|
|
812
|
+
__decorate([
|
|
813
|
+
ApiPropertyOptional(),
|
|
814
|
+
IsOptional(),
|
|
815
|
+
IsString(),
|
|
816
|
+
__metadata("design:type", String)
|
|
817
|
+
], UpdateSaleEmail.prototype, "content", void 0);
|
|
818
|
+
__decorate([
|
|
819
|
+
ApiPropertyOptional(),
|
|
820
|
+
IsOptional(),
|
|
821
|
+
IsEnum(EmailType),
|
|
822
|
+
__metadata("design:type", Number)
|
|
823
|
+
], UpdateSaleEmail.prototype, "type", void 0);
|
|
824
|
+
__decorate([
|
|
825
|
+
ApiPropertyOptional(),
|
|
826
|
+
IsOptional(),
|
|
827
|
+
IsBoolean(),
|
|
828
|
+
ToBoolean(),
|
|
829
|
+
__metadata("design:type", Boolean)
|
|
830
|
+
], UpdateSaleEmail.prototype, "isDefault", void 0);
|
|
753
831
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACrF,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAA2C,MAAM,oCAAoC,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9D,MAAM,OAAO,uBAAuB;IAOhC,OAAO,CAAiB;IAKxB,OAAO,CAAiB;IAKxB,GAAG,CAAiB;IAKpB,oBAAoB,CAAiB;IAKrC,IAAI,CAAiB;IAKrB,IAAI,CAAiB;IAKrB,GAAG,CAAiB;IAKpB,WAAW,CAAiB;IAK5B,YAAY,CAAiB;IAK7B,OAAO,CAAiB;IAKxB,cAAc,CAAiB;IAK/B,SAAS,CAAiB;IAK1B,QAAQ,CAAiB;IAKzB,YAAY,CAAiB;IAK7B,UAAU,CAAiB;IAM3B,WAAW,CAAW;IAMtB,YAAY,C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S;CACjB;AA9BG;IAHD,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;mDACW;AAKrB;IAHD,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;+CACO;AAKjB;IAHD,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU;AAKpB;IAHD,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU;AAKpB;IAHD,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAKjB;IAHD,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACM;AAIjB;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACK;AAGlB,MAAM,OAAO,gBAAgB;IAGzB,IAAI,CAAS;IAIb,SAAS,CAAS;IAIlB,OAAO,CAAS;IAKhB,QAAQ,CAAU;CACrB;AAdG;IAFD,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;8CACR;AAIb;IAFD,WAAW,EAAE;IACb,YAAY,EAAE;;mDACK;AAIlB;IAFD,WAAW,EAAE;IACb,YAAY,EAAE;;iDACG;AAKhB;IAHD,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAGtB,MAAM,OAAO,wBAAwB;IAGjC,KAAK,CAAS;IAId,SAAS,CAAS;IAIlB,KAAK,CAAS;CACjB;AATG;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACK;AAId;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;2DACS;AAIlB;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACK","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { IFile, ReadProductEditing } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, InvoiceLanguage, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n customerBlockBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n customerBlockBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n lineSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n columnSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n externalBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRibFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSignatureFile?: number | null;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n advanceProducts?: [];\n language?: InvoiceLanguage; \n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes\n language?: InvoiceLanguage; \n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string,\n dueDate: Date | null,\n idEstimateInvoiceType: EstimateInvoiceType,\n totalTaxExcluded: number,\n totalTaxIncluded: number,\n file?: IFile\n language: InvoiceLanguage\n },\n logoUrl: string | null,\n companyName: string,\n fileUrl: string | null,\n hostS3: string,\n hasVat: boolean\n};"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACrF,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAA2C,MAAM,oCAAoC,CAAC;AAC9H,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO9D,MAAM,OAAO,uBAAuB;IAOhC,OAAO,CAAiB;IAKxB,OAAO,CAAiB;IAKxB,GAAG,CAAiB;IAKpB,oBAAoB,CAAiB;IAKrC,IAAI,CAAiB;IAKrB,IAAI,CAAiB;IAKrB,GAAG,CAAiB;IAKpB,WAAW,CAAiB;IAK5B,YAAY,CAAiB;IAK7B,OAAO,CAAiB;IAKxB,cAAc,CAAiB;IAK/B,SAAS,CAAiB;IAK1B,QAAQ,CA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AAW;IAIpB,SAAS,CAAS;CACrB;AAvBG;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACI;AAIb;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;gDACO;AAIhB;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;gDACO;AAIhB;IAFD,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,CAAC;;6CACH;AAMb;IAJD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU;AAIpB;IAFD,WAAW,EAAE;IACb,KAAK,EAAE;;kDACY;AAGtB,MAAM,OAAO,eAAe;IAIxB,IAAI,CAAU;IAKd,OAAO,CAAU;IAKjB,OAAO,CAAU;IAKjB,IAAI,CAAU;IAMd,SAAS,CAAW;CACvB;AAtBG;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACK;AAKd;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACQ;AAKjB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACQ;AAKjB;IAHD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,SAAS,CAAC;;6CACF;AAMd;IAJD,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;kDACU","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsInt, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { IFile, ReadProductEditing } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, EmailType, FontIds, InvoiceLanguage, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideEmailHeader?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldHideBrandName?: boolean;\n\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n customerBlockBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n customerBlockBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n lineSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lineSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n columnSeparationThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n columnSeparationColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n externalBorderThickness?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderType?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n externalBorderColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRibFile?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSignatureFile?: number | null;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n\n @ApiPropertyOptional({ description: 'Moyen de paiement' })\n paymentType?: string | null;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n advanceProducts?: [];\n language?: InvoiceLanguage; \n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes\n language?: InvoiceLanguage; \n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}\n\nexport type CreateMailHeader = {\n payload: {\n reference: string,\n dueDate: Date | null,\n idEstimateInvoiceType: EstimateInvoiceType,\n totalTaxExcluded: number,\n totalTaxIncluded: number,\n file?: IFile\n language: InvoiceLanguage\n },\n logoUrl: string | null,\n companyName: string,\n fileUrl: string | null,\n hostS3: string,\n hasVat: boolean\n};\n\nexport class CreateSaleEmail {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n\n @ApiProperty()\n @IsEnum(EmailType)\n type: number; \n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n \n @ApiProperty()\n @IsInt()\n idSociety: number;\n}\n\nexport class UpdateSaleEmail {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n name?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n content?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(EmailType)\n type?: number; \n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDefault?: boolean;\n}"]}
|
|
@@ -7,6 +7,7 @@ import { IEstimateInvoice } from '../../models/IEstimateInvoice';
|
|
|
7
7
|
import { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';
|
|
8
8
|
import { IThirdParty } from '../../models/IThirdParty';
|
|
9
9
|
import { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';
|
|
10
|
+
import { ISaleEmail } from '../../models/ISaleEmail';
|
|
10
11
|
export type ReadCashBasedInvoice = Partial<IAccountingFile>;
|
|
11
12
|
export type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;
|
|
12
13
|
export type ReadEstimateInvoice = IEstimateInvoice & {
|
|
@@ -95,5 +96,8 @@ export type ReadCountDocumentByStatus = {
|
|
|
95
96
|
export type ReadCommercialMailTemplate = {
|
|
96
97
|
header: string;
|
|
97
98
|
};
|
|
99
|
+
export type ReadSaleEmail = ISaleEmail & {
|
|
100
|
+
defaultFromApplication: boolean;
|
|
101
|
+
};
|
|
98
102
|
export {};
|
|
99
103
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,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ACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACrC,aAAa,CAAC,IAAI,GAClB,aAAa,CAAC,MAAM,GACpB,aAAa,CAAC,QAAQ,GACtB,aAAa,CAAC,OAAO,GACrB,cAAc,CAAC,OAAO,GACtB,cAAc,CAAC,MAAM,GACrB,cAAc,CAAC,QAAQ,GACvB,cAAc,CAAC,OAAO,GACtB,cAAc,CAAC,OAAO,CAAC;AAEvB,KAAK,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,cAAc,CAAC;KAAE,CAAA;IACpF,QAAQ,EAAE;QAAE,QAAQ,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,cAAc,CAAC;KAAE,CAAA;CAC1F,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IACvC,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number; };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\nInvoiceStatus.PAID |\nInvoiceStatus.UNPAID |\nInvoiceStatus.CANCELED |\nInvoiceStatus.WAITING |\nEstimateStatus.REFUSED |\nEstimateStatus.BILLED |\nEstimateStatus.ACCEPTED |\nEstimateStatus.WAITING |\nEstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number; };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber; }\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber; }\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number; };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\nInvoiceStatus.PAID |\nInvoiceStatus.UNPAID |\nInvoiceStatus.CANCELED |\nInvoiceStatus.WAITING |\nEstimateStatus.REFUSED |\nEstimateStatus.BILLED |\nEstimateStatus.ACCEPTED |\nEstimateStatus.WAITING |\nEstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number; };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber; }\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber; }\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};"]}
|
|
@@ -5,6 +5,7 @@ import { CerfaFormValue } from '../cerfa/ReadCerfa';
|
|
|
5
5
|
import { UpdatedAnnotation } from './ReadRegistration';
|
|
6
6
|
import { CustomerVatState, CustomerVatType } from '../../../Enum/CustomerVat';
|
|
7
7
|
import { Cerfa2069RCI_2024_Payload } from '../cerfa/2069RCI';
|
|
8
|
+
import { Cerfa2573_2024 } from '../cerfa/2573';
|
|
8
9
|
export declare class CreateRegistrationSetting {
|
|
9
10
|
iban?: string | null;
|
|
10
11
|
bic?: string | null;
|
|
@@ -31,6 +32,7 @@ export type ForcedValues_2571 = {
|
|
|
31
32
|
export type ForcedValues = {
|
|
32
33
|
cerfa2571?: ForcedValues_2571;
|
|
33
34
|
cerfa2069RCI?: Cerfa2069RCI_2024_Payload;
|
|
35
|
+
cerfa2573?: Cerfa2573_2024;
|
|
34
36
|
};
|
|
35
37
|
export declare class CreateRegistration {
|
|
36
38
|
idCerfaType: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC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,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,oBAAoB;IAG7B,EAAE,EAAE,MAAM,CAAC;IAKX,OAAO,EAAE,MAAM,CAAC;IAKhB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAG7B,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAC7F,OAAO,EACP,SAAS,EACT,KAAK,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAM3E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAC7F,OAAO,EACP,SAAS,EACT,KAAK,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAA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AAS;IAIhB,SAAS,CAAS;IAIlB,OAAO,CAAW;CACrB;AAnBG;IAFD,WAAW,EAAE;IACb,OAAO,EAAE;;gDACG;AAKX;IAHD,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;;qDACK;AAKhB;IAHD,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;;qDACK;AAIhB;IAFD,WAAW,EAAE;IACb,KAAK,EAAE;;uDACY;AAIlB;IAFD,WAAW,EAAE;IACb,OAAO,EAAE;;qDACU;AAGtB,MAAM,OAAO,oBAAoB;IAG7B,MAAM,CAAS;CAClB;AADG;IAFD,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACM","sourcesContent":["import {\n IsEnum, IsOptional, IsBoolean, IsNumber, Min, IsDateString, IsArray, ValidateNested, IsString,\n IsEmail,\n MinLength,\n IsInt,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CerfaType } from '../../../Enum/CerfaType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { Rof } from '../../../Enum/Aspone';\nimport { Cerfa3310_2023 } from '../cerfa/3310';\nimport { Cerfa3519_2017 } from '../cerfa/3519';\nimport { CerfaFormValue } from '../cerfa/ReadCerfa';\nimport { UpdatedAnnotation } from './ReadRegistration';\nimport { CustomerVatState, CustomerVatType } from '../../../Enum/CustomerVat';\nimport { Cerfa2069RCI_2024_Payload } from '../cerfa/2069RCI';\nimport { Cerfa2573_2024 } from '../cerfa/2573';\n\nexport class CreateRegistrationSetting {\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport class CreateRegistrationSettingFromSociety {\n @ApiPropertyOptional()\n rof: Rof | null;\n\n @ApiPropertyOptional()\n companyTaxRof?: Rof | null;\n\n @ApiPropertyOptional()\n balanceSheetRof?: Rof | null;\n\n @ApiPropertyOptional()\n ogaName?: string | null;\n\n @ApiPropertyOptional()\n ogaId?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressNumero?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressType?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressVoie?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressZipCode?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressCity?: string | null;\n\n @ApiPropertyOptional()\n ogaReference?: string | null;\n\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport type ForcedValues_2571 = {\n base?: number;\n regularisation?: number;\n};\n\nexport type ForcedValues = {\n cerfa2571?: ForcedValues_2571;\n cerfa2069RCI?: Cerfa2069RCI_2024_Payload;\n cerfa2573?: Cerfa2573_2024;\n};\n\nexport class CreateRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @Min(0)\n @IsOptional()\n amountToPay?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n date?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n\n @ApiPropertyOptional({ description: 'Set values manually (not available for all cerfa)' })\n @IsOptional()\n forcedValues?: ForcedValues;\n}\n\nexport class UpdateOrCreateVatRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n payload: Cerfa3310_2023;\n\n @ApiPropertyOptional()\n annexPayload?: Cerfa3519_2017;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isManuallyRegistered?: boolean;\n}\n\nexport class CreateRegistrationDetail {\n @ApiProperty()\n @IsArray()\n accountingTransactionIds: number[];\n\n @ApiProperty()\n @IsArray()\n updatedEntries: UpdatedAnnotation;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n inputs: CerfaFormValue[];\n}\n\nexport class UpdateOrCreateVatAdvance {\n @ApiProperty()\n @IsDateString()\n vatDate: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCA12?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n stateAmount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type: CustomerVatType;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n state: CustomerVatState;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n status: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amountBaseTva: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n token: string;\n\n @ApiPropertyOptional()\n idMail: number | null;\n}\n\nexport class CreateVatMigration {\n @ApiPropertyOptional()\n @IsOptional()\n idVatDeclaration?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n limit?: number;\n}\n\nexport class CreateAndSendVatMail {\n @ApiProperty()\n @IsEmail()\n to: string;\n\n @ApiProperty()\n @IsString()\n @MinLength(2)\n subject: string;\n \n @ApiProperty()\n @IsString()\n @MinLength(2) \n content: string;\n\n @ApiProperty()\n @IsInt() \n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n idFiles: number[];\n}\n\nexport class DownloadExternalFile {\n @ApiProperty()\n @IsString()\n fileId: string;\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EmailType } from '../../Enum/CommercialManagement';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
export interface ISaleEmail {
|
|
4
|
+
id?: number;
|
|
5
|
+
name: string;
|
|
6
|
+
subject: string;
|
|
7
|
+
content: string;
|
|
8
|
+
type: EmailType;
|
|
9
|
+
isDefault: boolean;
|
|
10
|
+
idSociety: number;
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
updatedAt?: Date | null;
|
|
13
|
+
society?: ISociety;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ISaleEmail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISaleEmail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISaleEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAIxB,OAAO,CAAC,EAAE,QAAQ,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISaleEmail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISaleEmail.ts"],"names":[],"mappings":"","sourcesContent":["import { EmailType } from '../../Enum/CommercialManagement';\nimport { ISociety } from './ISociety';\n\nexport interface ISaleEmail {\n id?: number;\n name: string;\n subject: string;\n content: string;\n type: EmailType;\n isDefault: boolean;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // association\n\n society?: ISociety\n}"]}
|
|
@@ -337,6 +337,7 @@ export * from './Interface/models/ILoanEarlyRepayment';
|
|
|
337
337
|
export * from './Interface/models/IPrevisionalForm';
|
|
338
338
|
export * from './Interface/models/IHumanResourceLibrary';
|
|
339
339
|
export * from './Interface/models/IUserHumanResourceLibrary';
|
|
340
|
+
export * from './Interface/models/ISaleEmail';
|
|
340
341
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
341
342
|
export * from './Interface/schemas/ITransactionHistory';
|
|
342
343
|
export * from './Form/FormAuthenticate';
|