@silexpert/core 2.0.65 → 2.0.66

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.
@@ -9,7 +9,6 @@ import { IThirdParty } from '../../models/IThirdParty.js';
9
9
  import { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';
10
10
  import { ISaleEmail } from '../../models/ISaleEmail.js';
11
11
  import { CountryId } from '#types/Enum/Country.js';
12
- import { IAccountingTransaction } from '#types/Interface/models/IAccountingTransaction.js';
13
12
  export type ReadCashBasedInvoice = Partial<IAccountingFile>;
14
13
  export type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;
15
14
  export type ReadEstimateInvoice = IEstimateInvoice & {
@@ -207,7 +206,12 @@ export type ReadEInvoicingReception = {
207
206
  };
208
207
  export type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;
209
208
  export type ReadEinvoiceInfo = {
210
- item: IAccountingFile | IAccountingTransaction;
209
+ emissionDate: string;
210
+ dueDate: string;
211
+ idThirdParty: number;
212
+ idCurrency: number;
213
+ externalId: string;
214
+ internalNumber: string;
211
215
  products: ProductInvoiceFromEInvoice[];
212
216
  };
213
217
  export type ReadEInvoice = {
@@ -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,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,cA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K,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;IACnC,QAAQ,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB,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.js';\nimport { IAccountingFile } from '../../models/IAccountingFile.js';\nimport { IProductInvoice } from '../../models/IProductInvoice.js';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction.js';\nimport { CommercialDocumentInputs } from './Create.js';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice.js';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';\nimport { ISaleEmail } from '../../models/ISaleEmail.js';\nimport { CountryId } from '#types/Enum/Country.js';\nimport { IAccountingTransaction } from '#types/Interface/models/IAccountingTransaction.js';\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 FacturXInvoiceData = {\n label: string;\n invoiceNumber: string;\n dateValue: string;\n totalTaxIncluded: number;\n totalTaxExcluded: number;\n isAsset: boolean;\n thirdParty: IThirdParty;\n amounts: Array<{ idVat: number; amountBase: number; amountVat: number }>;\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 =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.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};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n\nexport type ReadEInvoicingReception = {\n label: string;\n reference: string;\n emissionDate: string;\n dueDate: string | undefined;\n idCurrency: number;\n type: EstimateInvoiceType;\n purchaseOrderReference: string | undefined;\n /** float, not in cent */\n totalTaxExcluded: number;\n /** float, not in cent */\n totalTaxIncluded: number;\n /** float, not in cent */\n depositPaid: number;\n /** float, not in cent */\n amountToPay: number;\n customer: {\n reference: string | undefined;\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n idCountry: CountryId | undefined;\n };\n provider: {\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n email: string | undefined;\n idCountry: CountryId | undefined;\n };\n products: Array<{\n externalId: string;\n name: string;\n comment: string | null;\n quantity: number;\n taxExcluded: number;\n totalTaxExcluded: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n id: string;\n unit: string | undefined;\n };\n }>;\n referencedInvoices: Array<{\n number: string;\n date: string;\n }>;\n vat: {\n totalTaxExcluded: number | undefined;\n list: Array<{\n idVat: number | undefined;\n amountBase: number;\n taxAmount: number;\n }>;\n };\n discount: {\n document: Array<{\n isCharge: boolean;\n amount: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n reasonCode: string | undefined;\n };\n }>;\n lines: Array<{\n isCharge: boolean;\n amount: number;\n }>;\n };\n};\n\nexport type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;\n\nexport type ReadEinvoiceInfo = {\n item: IAccountingFile | IAccountingTransaction;\n products: ProductInvoiceFromEInvoice[];\n};\n\nexport type ReadEInvoice = {\n externalId: string;\n entityId: string;\n direction: 'In' | 'Out';\n type: string;\n flow: 'CustomerInvoice' | 'SupplierInvoice';\n syntax: 'UBL' | 'CII' | 'Factur-X';\n category: 'FLUX1' | 'FLUX2' | 'FLUX3' | 'FLUX4' | 'FLUX5' | 'FLUX6';\n name: string;\n status: string;\n statusDetails: Array<{ code: string; description: string; fullDescription: string }>;\n updatedAt: string;\n submittedAt: string;\n documentStatus: string;\n externalStructureId: string;\n documentId: string;\n};\n"]}
1
+ {"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice.js';\nimport { IAccountingFile } from '../../models/IAccountingFile.js';\nimport { IProductInvoice } from '../../models/IProductInvoice.js';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction.js';\nimport { CommercialDocumentInputs } from './Create.js';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice.js';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement.js';\nimport { IThirdParty } from '../../models/IThirdParty.js';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';\nimport { ISaleEmail } from '../../models/ISaleEmail.js';\nimport { CountryId } from '#types/Enum/Country.js';\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 FacturXInvoiceData = {\n label: string;\n invoiceNumber: string;\n dateValue: string;\n totalTaxIncluded: number;\n totalTaxExcluded: number;\n isAsset: boolean;\n thirdParty: IThirdParty;\n amounts: Array<{ idVat: number; amountBase: number; amountVat: number }>;\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 =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.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};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n\nexport type ReadEInvoicingReception = {\n label: string;\n reference: string;\n emissionDate: string;\n dueDate: string | undefined;\n idCurrency: number;\n type: EstimateInvoiceType;\n purchaseOrderReference: string | undefined;\n /** float, not in cent */\n totalTaxExcluded: number;\n /** float, not in cent */\n totalTaxIncluded: number;\n /** float, not in cent */\n depositPaid: number;\n /** float, not in cent */\n amountToPay: number;\n customer: {\n reference: string | undefined;\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n idCountry: CountryId | undefined;\n };\n provider: {\n name: string | undefined;\n siren: string | undefined;\n vatNumber: string | undefined;\n email: string | undefined;\n idCountry: CountryId | undefined;\n };\n products: Array<{\n externalId: string;\n name: string;\n comment: string | null;\n quantity: number;\n taxExcluded: number;\n totalTaxExcluded: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n id: string;\n unit: string | undefined;\n };\n }>;\n referencedInvoices: Array<{\n number: string;\n date: string;\n }>;\n vat: {\n totalTaxExcluded: number | undefined;\n list: Array<{\n idVat: number | undefined;\n amountBase: number;\n taxAmount: number;\n }>;\n };\n discount: {\n document: Array<{\n isCharge: boolean;\n amount: number;\n taxRate: number | undefined;\n idVat: number | undefined;\n externalData: {\n reasonCode: string | undefined;\n };\n }>;\n lines: Array<{\n isCharge: boolean;\n amount: number;\n }>;\n };\n};\n\nexport type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;\n\nexport type ReadEinvoiceInfo = {\n emissionDate: string;\n dueDate: string;\n idThirdParty: number;\n idCurrency: number;\n externalId: string;\n internalNumber: string;\n products: ProductInvoiceFromEInvoice[];\n};\n\nexport type ReadEInvoice = {\n externalId: string;\n entityId: string;\n direction: 'In' | 'Out';\n type: string;\n flow: 'CustomerInvoice' | 'SupplierInvoice';\n syntax: 'UBL' | 'CII' | 'Factur-X';\n category: 'FLUX1' | 'FLUX2' | 'FLUX3' | 'FLUX4' | 'FLUX5' | 'FLUX6';\n name: string;\n status: string;\n statusDetails: Array<{ code: string; description: string; fullDescription: string }>;\n updatedAt: string;\n submittedAt: string;\n documentStatus: string;\n externalStructureId: string;\n documentId: string;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.65",
3
+ "version": "2.0.66",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "keywords": [
6
6
  "accounting",
@@ -9,7 +9,6 @@ import { IThirdParty } from '../../models/IThirdParty.js';
9
9
  import { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type.js';
10
10
  import { ISaleEmail } from '../../models/ISaleEmail.js';
11
11
  import { CountryId } from '#types/Enum/Country.js';
12
- import { IAccountingTransaction } from '#types/Interface/models/IAccountingTransaction.js';
13
12
 
14
13
  export type ReadCashBasedInvoice = Partial<IAccountingFile>;
15
14
 
@@ -218,7 +217,12 @@ export type ReadEInvoicingReception = {
218
217
  export type ProductInvoiceFromEInvoice = Omit<IProductInvoice, 'id' | 'idEstimateInvoice' | 'createdAt' | 'updatedAt'>;
219
218
 
220
219
  export type ReadEinvoiceInfo = {
221
- item: IAccountingFile | IAccountingTransaction;
220
+ emissionDate: string;
221
+ dueDate: string;
222
+ idThirdParty: number;
223
+ idCurrency: number;
224
+ externalId: string;
225
+ internalNumber: string;
222
226
  products: ProductInvoiceFromEInvoice[];
223
227
  };
224
228