@silexpert/core 1.0.90 → 1.0.91
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/es/api/resources/AccountingFiles.d.ts +2 -1
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +3 -0
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/CommercialDocument.d.ts +7 -3
- package/es/api/resources/CommercialDocument.d.ts.map +1 -1
- package/es/api/resources/CommercialDocument.js +11 -4
- package/es/api/resources/CommercialDocument.js.map +1 -1
- package/es/api/resources/Employee.d.ts +2 -1
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +8 -4
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts +2 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.js +2 -4
- package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/es/api/resources/Product.d.ts +2 -1
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +2 -4
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/SheetMonthSchedule.d.ts +2 -1
- package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/es/api/resources/SheetMonthSchedule.js +2 -2
- package/es/api/resources/SheetMonthSchedule.js.map +1 -1
- package/es/api/resources/ThirdParty.d.ts +2 -1
- package/es/api/resources/ThirdParty.d.ts.map +1 -1
- package/es/api/resources/ThirdParty.js +2 -4
- package/es/api/resources/ThirdParty.js.map +1 -1
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +3 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js +7 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +5 -0
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.js +17 -0
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +6 -0
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CommercialDocument.js +9 -3
- package/js/api/resources/CommercialDocument.js.map +1 -1
- package/js/api/resources/Employee.js +5 -3
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/PaymentExpectationCustomer.js +5 -3
- package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/js/api/resources/Product.js +5 -3
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/SheetMonthSchedule.js +5 -3
- package/js/api/resources/SheetMonthSchedule.js.map +1 -1
- package/js/api/resources/ThirdParty.js +5 -3
- package/js/api/resources/ThirdParty.js.map +1 -1
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js +9 -1
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +11 -1
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +7 -1
- package/ts/api/resources/CommercialDocument.ts +63 -17
- package/ts/api/resources/Employee.ts +42 -10
- package/ts/api/resources/PaymentExpectationCustomer.ts +61 -18
- package/ts/api/resources/Product.ts +14 -3
- package/ts/api/resources/SheetMonthSchedule.ts +36 -9
- package/ts/api/resources/ThirdParty.ts +18 -4
- package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +6 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +14 -0
|
@@ -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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U,EAAE;;+CACI;AAIjB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAGhB,MAAM,OAAO,gBAAgB;CAiB5B;AAdC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;8CACV;AAIb;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;mDACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;iDACC;AAKhB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACM","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, 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\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\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\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}\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}"]}
|
|
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,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAC9E,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAA0B,MAAM,oCAAoC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,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CAYpC;AATC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACG;AAId;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;2DACO;AAIlB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACG","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, 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\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\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\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}\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}"]}
|
|
@@ -27,6 +27,12 @@ class AccountingFiles extends _Resource.Resource {
|
|
|
27
27
|
return this.axios.$delete(`/accounting-files/${id}`);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
getPaginated(idSociety, params) {
|
|
31
|
+
return this.axios.$get(`/society/${idSociety}/accountingFiles`, {
|
|
32
|
+
params
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
exports.AccountingFiles = AccountingFiles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFiles.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","mappings":";;;;;;;AAAA;;AAKM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,cAAc,CAACC,MAAD,EAA6B;IACzC,MAAMC,mBAAmB,GAAG,IAAIC,QAAJ,EAA5B;IAEAD,mBAAmB,CAACE,MAApB,CAA2B,kBAA3B,EAA+CH,MAAM,CAACI,gBAAP,CAAwBC,QAAxB,EAA/C;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,YAA3B,EAAyCH,MAAM,CAACM,UAAP,CAAkBD,QAAlB,EAAzC;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCH,MAAM,CAACO,KAAP,CAAaF,QAAb,EAApC;IAEAL,MAAM,CAACQ,KAAP,CAAaC,OAAb,CAAsBC,IAAD,IAAS;MAC5BT,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCO,IAApC;IACD,CAFD;IAIA,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,0BAAjB,EAA6CZ,MAA7C,EAAqD;MAAEa,OAAO,EAAE;QAAE,gBAAgB;MAAlB;IAAX,CAArD,CAAP;EACD;;EAEDC,MAAM,CAACC,EAAD,EAAW;IACf,OAAO,KAAKJ,KAAL,CAAWK,OAAX,CAAmB,qBAAqBD,EAAE,EAA1C,CAAP;EACD;;EAEDE,YAAY,CAACC,SAAD,EAAoBlB,MAApB,EAA6C;IACvD,OAAO,KAAKW,KAAL,CAAWQ,IAAX,CAAgB,YAAYD,SAAS,kBAArC,EAAyD;MAAElB;IAAF,CAAzD,CAAP;EACD;;AArB0C;;QAAhCH,e,GAAAA,e","names":["AccountingFiles","Resource","accountingFile","params","sendAccountingFiles","FormData","append","idAccountingType","toString","isPayPerso","split","files","forEach","file","axios","$post","headers","delete","id","$delete","getPaginated","idSociety","$get"],"sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, IAccountingFile, QueryAccountingFiles, ReadFormattedAccountingTransaction, _QueryTransaction,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n\n getPaginated(idSociety: number, params: _QueryTransaction): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n}"]}
|
|
@@ -28,10 +28,12 @@ class CommercialDocument extends _Resource.Resource {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
getPaginated(params) {
|
|
32
|
-
return this.axios.$get('/commercial-management/documents', {
|
|
31
|
+
getPaginated(params, cancelToken) {
|
|
32
|
+
return this.axios.$get('/commercial-management/documents', Object.assign(Object.assign({}, cancelToken ? {
|
|
33
|
+
cancelToken
|
|
34
|
+
} : {}), {
|
|
33
35
|
params
|
|
34
|
-
});
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
createEstimate(payload) {
|
|
@@ -60,6 +62,10 @@ class CommercialDocument extends _Resource.Resource {
|
|
|
60
62
|
}));
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
regenerate(id, payload) {
|
|
66
|
+
return this.axios.$post(`/commercial-management/documents/${id}/regenerate`, payload);
|
|
67
|
+
}
|
|
68
|
+
|
|
63
69
|
getFormValues(id) {
|
|
64
70
|
return this.axios.$get(`/commercial-management/documents/${id}/inputs`);
|
|
65
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommercialDocument.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"CommercialDocument.js","mappings":";;;;;;;AACA;;AACA;;AAiBM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EAC9CC,GAAG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AEqB;IAE9B,OAAO,KAAKH,KAAL,CAAWoB,IAAX,CAAgB,iCAAiCrB,EAAE,EAAnD,EAAuDI,OAAvD,CAAP;EACD;;EAEDmB,OAAO,CACLR,qBADK,EAELX,OAFK,EAEiD;IAEtD,OAAO,KAAKH,KAAL,CAAWa,KAAX,CAAiB,gCAAjB,EAAiDF,gCACnDR,OADmD,GAC5C;MACVW;IADU,CAD4C,CAAjD,CAAP;EAID;;EAEDS,UAAU,CAACxB,EAAD,EAAaI,OAAb,EAA8C;IACtD,OAAO,KAAKH,KAAL,CAAWa,KAAX,CAAiB,oCAAoCd,EAAE,aAAvD,EAAsEI,OAAtE,CAAP;EACD;;EAEDqB,aAAa,CAACzB,EAAD,EAAW;IACtB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,SAAtD,CAAP;EACD;;EAED0B,oBAAoB,CAClBX,qBADkB,EACwB;IAE1C,OAAO,KAAKd,KAAL,CAAWC,IAAX,CAAgB,yCAAhB,EAA2D;MAChEO,MAAM,EAAE;QAAEM;MAAF;IADwD,CAA3D,CAAP;EAGD;;EAEDY,aAAa,CACXC,SADW,EAEXnB,MAFW,EAEe;IAE1B,OAAO,KAAKR,KAAL,CAAWC,IAAX,CACL,oCAAoC0B,SAAS,aADxC,EAEL;MAAEnB;IAAF,CAFK,CAAP;EAID;;AA/F6C;;QAAnCZ,kB,GAAAA,kB","names":["CommercialDocument","Resource","get","id","axios","$get","update","payload","patch","delete","$delete","getNextReference","params","getPaginated","cancelToken","Object","createEstimate","$post","idEstimateInvoiceType","EstimateInvoiceType","DEVIS","createOrder","BON","updateEstimate","$put","updateOrder","preview","regenerate","getFormValues","getDefaultFormValues","getStatistics","idSociety"],"sourceRoot":"","sources":["../../../ts/api/resources/CommercialDocument.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n CreateRegenerateDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n QueryCountByStatus,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadCountDocumentByStatus,\n ReadEstimateInvoice,\n ReadPreview,\n UpdateCommercialDocument,\n} from '../../types';\n\nexport class CommercialDocument extends Resource {\n get(id: number): Promise<ReadEstimateInvoice> {\n return this.axios.$get(`/commercial-management/documents/${id}`);\n }\n\n update(id: number, payload: UpdateCommercialDocument): Promise<{ data: IEstimateInvoice }> {\n return this.axios.patch(`/commercial-management/documents/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getNextReference(params: QueryNextReference): Promise<string> {\n return this.axios.$get('/commercial-management/documents/references', {\n params,\n });\n }\n\n getPaginated(\n params: QueryDocumentPaginated & QueryPaginate,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n createEstimate(\n payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,\n ): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', {\n ...payload,\n idEstimateInvoiceType: EstimateInvoiceType.DEVIS,\n });\n }\n\n createOrder(\n payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,\n ): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', {\n ...payload,\n idEstimateInvoiceType: EstimateInvoiceType.BON,\n });\n }\n\n updateEstimate(\n id: number,\n payload: CreatePreSaleDocument,\n ): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(\n id: number,\n payload: CreatePreSaleDocument,\n ): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(\n idEstimateInvoiceType: EstimateInvoiceType,\n payload: CreatePreSaleDocument | CreateInvoiceDocument,\n ): Promise<ReadPreview> {\n return this.axios.$post('/commercial-management/preview', {\n ...payload,\n idEstimateInvoiceType,\n });\n }\n\n regenerate(id: number, payload: CreateRegenerateDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/documents/${id}/regenerate`, payload);\n }\n\n getFormValues(id: number): Promise<CreatePreSaleDocument> {\n return this.axios.$get(`/commercial-management/documents/${id}/inputs`);\n }\n\n getDefaultFormValues(\n idEstimateInvoiceType: EstimateInvoiceType,\n ): Promise<CreatePreSaleDocument> {\n return this.axios.$get('/commercial-management/documents/inputs', {\n params: { idEstimateInvoiceType },\n });\n }\n\n getStatistics(\n idSociety: number,\n params: QueryCountByStatus,\n ): Promise<ReadCountDocumentByStatus> {\n return this.axios.$get(\n `/commercial-management/societies/${idSociety}/statistics`,\n { params },\n );\n }\n}\n"]}
|
|
@@ -58,12 +58,14 @@ class Employee extends _Resource.Resource {
|
|
|
58
58
|
return this.axios.$delete(`/employees/${id}`);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
getPaginate(idSociety, params) {
|
|
62
|
-
return this.axios.$get(`/societies/${idSociety}/employees`, {
|
|
61
|
+
getPaginate(idSociety, params, cancelToken) {
|
|
62
|
+
return this.axios.$get(`/societies/${idSociety}/employees`, Object.assign(Object.assign({}, cancelToken ? {
|
|
63
|
+
cancelToken
|
|
64
|
+
} : {}), {
|
|
63
65
|
params: Object.assign(Object.assign({}, params), {
|
|
64
66
|
isPaginate: true
|
|
65
67
|
})
|
|
66
|
-
});
|
|
68
|
+
}));
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
updateOrCreateWorkingSchedule(idEmployee, payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Employee.js","mappings":";;;;;;;AACA;;AAUA;;AAEM,MAAOA,QAAP,SAAwBC,kBAAxB,CAAgC;EAC7BC,MAAM,CAACC,OAAD,EAAiC;IAC5C,MAAMC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A8C;MACnDQ,OAAO,EAAE;QAAE,gBAAgB;MAAlB;IAD0C,CAA9C,CAAP;EAGD;;EAEMQ,MAAM,CAACH,EAAD,EAAW;IACtB,OAAO,KAAKP,KAAL,CAAWW,OAAX,CAAmB,cAAcJ,EAAE,EAAnC,CAAP;EACD;;EAEMK,WAAW,CAChBR,SADgB,EAEhBS,MAFgB,EAGhBC,WAHgB,EAGS;IAEzB,OAAO,KAAKd,KAAL,CAAWK,IAAX,CAAgB,cAAcD,SAAS,YAAvC,EAAmDW,gCACpDD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADoB,GACjB;MACvCD,MAAM,kCAAOA,MAAP,GAAa;QAAEG,UAAU,EAAE;MAAd,CAAb;IADiC,CADiB,CAAnD,CAAP;EAID;;EAEMC,6BAA6B,CAClCC,UADkC,EAElCzB,OAFkC,EAEK;IAEvC,OAAO,KAAKO,KAAL,CAAWC,KAAX,CACL,aAAaiB,UAAU,oBADlB,EAELzB,OAFK,CAAP;EAID;;EAEM0B,qBAAqB,CAC1BD,UAD0B,EAE1BE,iBAF0B,EAED;IAEzB,OAAO,KAAKpB,KAAL,CAAWW,OAAX,CACL,aAAaO,UAAU,sBAAsBE,iBAAiB,EADzD,CAAP;EAGD;;AA5EmC;;QAAzB9B,Q,GAAAA,Q","names":["Employee","Resource","create","payload","formData","FormData","value","key","includes","append","axios","$post","headers","getAll","idSociety","$get","get","id","update","$put","delete","$delete","getPaginate","params","cancelToken","Object","isPaginate","updateOrCreateWorkingSchedule","idEmployee","deleteWorkingSchedule","idWorkingSchedule"],"sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { forEach } from 'lodash';\nimport {\n BasePaginate,\n IEmployee,\n IWorkingSchedule,\n CreateEmployee,\n QueryEmployeeSearch,\n UpdateEmployee,\n UpdateOrCreateWorkingSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<CreateEmployee>): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$post('/employees', formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(\n id: number,\n payload: Partial<UpdateEmployee>,\n ): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$put(`/employees/${id}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(\n idSociety: number,\n params?: QueryEmployeeSearch,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, {\n ...(cancelToken ? { cancelToken } : {}),\n params: { ...params, isPaginate: true },\n });\n }\n\n public updateOrCreateWorkingSchedule(\n idEmployee: number,\n payload?: UpdateOrCreateWorkingSchedule,\n ): Promise<IWorkingSchedule> {\n return this.axios.$post(\n `employees/${idEmployee}/working-schedules`,\n payload,\n );\n }\n\n public deleteWorkingSchedule(\n idEmployee: number,\n idWorkingSchedule: number,\n ): Promise<true> {\n return this.axios.$delete(\n `employees/${idEmployee}/working-schedules/${idWorkingSchedule}`,\n );\n }\n}\n"]}
|
|
@@ -14,10 +14,12 @@ class PaymentExpectationCustomer extends _Resource.Resource {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
getBySociety(params) {
|
|
18
|
-
return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {
|
|
17
|
+
getBySociety(params, cancelToken) {
|
|
18
|
+
return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, Object.assign(Object.assign({}, cancelToken ? {
|
|
19
|
+
cancelToken
|
|
20
|
+
} : {}), {
|
|
19
21
|
params
|
|
20
|
-
});
|
|
22
|
+
}));
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
stats(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","mappings":";;;;;;;AACA;;AAeM,MAAOA,0BAAP,SAA0CC,kBAA1C,CAAkD;EACtDC,GAAG,CACDC,MADC,EACyC;IAE1C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAAhB,EAA+C;MAAEF;IAAF,CAA/C,CAAP;EACD;;EACDG,YAAY,CACVH,MADU,EAEVI,WAFU,EAEe;IAEzB,OAAO,KAAKH,KAAL,CAAWC,IAAX,CACL,YAAYF,MAAM,CAACK,SAAS,gCADvB,EACuDC,gCAEtDF,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EAFsB,GAEnB;MACvCJ;IADuC,CAFmB,CADvD,CAAP;EAOD;;EACDO,KAAK,CACHP,MADG,EACsD;IAEzD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CACL,YAAYF,MAAM,CAACK,SAAS,sCADvB,EAEL;MACEL;IADF,CAFK,CAAP;EAMD;;EACDQ,GAAG,CACDR,MADC,EACyC;IAE1C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CAAiB,iCAAjB,EAAoDT,MAApD,CAAP;EACD;;EACDU,OAAO,CACLV,MADK,EACyC;IAE9C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CAAiB,qCAAjB,EAAwDT,MAAxD,CAAP;EACD;;EACDW,MAAM,CACJX,MADI,EACgD;IAEpD,OAAO,KAAKC,KAAL,CAAWW,OAAX,CACL,YAAYZ,MAAM,CAACK,SAAS,kCAAkCL,MAAM,CAACa,EAAE,EADlE,CAAP;EAGD;;EACDC,MAAM,CACJd,MADI,EACiD;IAErD,OAAO,KAAKC,KAAL,CAAWc,IAAX,CACL,YAAYf,MAAM,CAACK,SAAS,kCAAkCL,MAAM,CAACa,EAAE,SADlE,EAELb,MAFK,CAAP;EAID;;EACDgB,MAAM,CACJhB,MADI,EAC2C;IAE/C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CACL,YAAYT,MAAM,CAACK,SAAS,6BADvB,EAELL,MAFK,CAAP;EAID;;AA5DqD;;QAA3CH,0B,GAAAA,0B","names":["PaymentExpectationCustomer","Resource","get","params","axios","$get","getBySociety","cancelToken","idSociety","Object","stats","pay","$post","confirm","delete","$delete","id","refund","$put","create"],"sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n} from '../../types';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(\n params: QueryGetPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(\n `/society/${params.idSociety}/paymentsExpectationsCustomers`,\n {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n },\n );\n }\n stats(\n params: QueryGetSocietyPaymentsExpectationsCustomersStats,\n ): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/stats`,\n {\n params,\n },\n );\n }\n pay(\n params: QueryPayPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(\n params: QueryConfirmPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(\n params: QueryDeleteSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`,\n );\n }\n refund(\n params: UpdateRefundSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`,\n params,\n );\n }\n create(\n params: CreateSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(\n `/society/${params.idSociety}/paymentExpectationCustomer`,\n params,\n );\n }\n}\n"]}
|
|
@@ -12,10 +12,12 @@ class Product extends _Resource.Resource {
|
|
|
12
12
|
return this.axios.$get('/commercial-management/products');
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
getPaginated(pagination, query) {
|
|
16
|
-
return this.axios.$get('/commercial-management/products', {
|
|
15
|
+
getPaginated(pagination, query, cancelToken) {
|
|
16
|
+
return this.axios.$get('/commercial-management/products', Object.assign(Object.assign({}, cancelToken ? {
|
|
17
|
+
cancelToken
|
|
18
|
+
} : {}), {
|
|
17
19
|
params: Object.assign(Object.assign({}, pagination), query)
|
|
18
|
-
});
|
|
20
|
+
}));
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
create(payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Product.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,CAAP;EACD;;EAEDC,YAAY,CACVC,UADU,EAEVC,KAFU,EAGVC,WAHU,EAGe;IAEzB,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,EAAiDK,gCAClDD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADkB,GACf;MACvCE,MAAM,kCACDJ,UADC,GAEDC,KAFC;IADiC,CADe,CAAjD,CAAP;EAOD;;EAEDI,MAAM,CAACC,OAAD,EAAuB;IAC3B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,iCAAjB,EAAoDD,OAApD,CAAP;EACD;;EAEDE,MAAM,CAACC,EAAD,EAAaH,OAAb,EAAmC;IACvC,OAAO,KAAKT,KAAL,CAAWa,IAAX,CAAgB,mCAAmCD,EAAE,EAArD,EAAyDH,OAAzD,CAAP;EACD;;EAEDK,MAAM,CAACF,EAAD,EAAW;IACf,OAAO,KAAKZ,KAAL,CAAWe,OAAX,CAAmB,mCAAmCH,EAAE,EAAxD,CAAP;EACD;;EAEDI,MAAM,CAACC,IAAD,EAAW;IACf,MAAMC,QAAQ,GAAG,IAAIC,QAAJ,EAAjB;IACAD,QAAQ,CAACE,MAAT,CAAgB,MAAhB,EAAwBH,IAAxB;IACA,OAAO,KAAKjB,KAAL,CAAWU,KAAX,CAAiB,wCAAjB,EAA2DQ,QAA3D,CAAP;EACD;;EAEDG,MAAM;IACJ,OAAO,KAAKrB,KAAL,CAAWC,IAAX,CAAgB,wCAAhB,EAA0D;MAC/DqB,YAAY,EAAE;IADiD,CAA1D,CAAP;EAGD;;AAzCkC;;QAAxBzB,O,GAAAA,O","names":["Product","Resource","getAll","axios","$get","getPaginated","pagination","query","cancelToken","Object","params","create","payload","$post","update","id","$put","delete","$delete","import","file","formData","FormData","append","export","responseType"],"sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n IProduct,\n QueryPaginate,\n QueryProduct,\n BasePaginate,\n CreateProduct,\n UpdateProduct,\n} from '../../types';\n\nexport class Product extends Resource {\n getAll(): Promise<Array<IProduct>> {\n return this.axios.$get('/commercial-management/products');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryProduct,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IProduct>> {\n return this.axios.$get('/commercial-management/products', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n create(payload: CreateProduct): Promise<IProduct> {\n return this.axios.$post('/commercial-management/products', payload);\n }\n\n update(id: number, payload: UpdateProduct): Promise<IProduct> {\n return this.axios.$put(`/commercial-management/products/${id}`, payload);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/commercial-management/products/${id}`);\n }\n\n import(file: File): Promise<void> {\n const formData = new FormData();\n formData.append('file', file);\n return this.axios.$post('/commercial-management/products/import', formData);\n }\n\n export(): Promise<Buffer> {\n return this.axios.$get('/commercial-management/products/export', {\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
|
|
@@ -28,10 +28,12 @@ class SheetMonthSchedule extends _Resource.Resource {
|
|
|
28
28
|
return this.axios.$delete(`/sheet-month-schedules/${id}`);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
getPaginate(params) {
|
|
32
|
-
return this.axios.$get('/sheet-month-schedules', {
|
|
31
|
+
getPaginate(params, cancelToken) {
|
|
32
|
+
return this.axios.$get('/sheet-month-schedules', Object.assign(Object.assign({}, cancelToken ? {
|
|
33
|
+
cancelToken
|
|
34
|
+
} : {}), {
|
|
33
35
|
params
|
|
34
|
-
});
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule, payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetMonthSchedule.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"SheetMonthSchedule.js","mappings":";;;;;;;AAOA;;AAEM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EACvCC,MAAM,CACXC,UADW,EAEXC,OAFW,EAEkD;IAE7D,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,0BAA0BH,UAAU,EAArD,EAAyDC,OAAzD,CAAP;EACD;;EAEMG,MAAM,CAACJ,UAAD,EAAmB;IAC9B,OAAO,KAAKE,KAAL,CAAWG,IAAX,CAAgB,cAAcL,UAAU,wBAAxC,CAAP;EACD;;EAEMM,GAAG,CAACC,EAAD,EAAW;IACnB,OAAO,KAAKL,KAAL,CAAWG,IAAX,CAAgB,0BAA0BE,EAAE,EAA5C,CAAP;EACD;;EAEMC,MAAM,CACXD,EADW,EAEXN,OAFW,EAE0B;IAErC,OAAO,KAAKC,KAAL,CAAWO,IAAX,CAAgB,0BAA0BF,EAAE,EAA5C,EAAgDN,OAAhD,CAAP;EACD;;EAEMS,MAAM,CAACH,EAAD,EAAW;IACtB,OAAO,KAAKL,KAAL,CAAWS,OAAX,CAAmB,0BAA0BJ,EAAE,EAA/C,CAAP;EACD;;EAEMK,WAAW,CAChBC,MADgB,EAEhBC,WAFgB,EAES;IAEzB,OAAO,KAAKZ,KAAL,CAAWG,IAAX,CAAgB,wBAAhB,EAAwCU,gCACzCD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADS,GACN;MACvCD;IADuC,CADM,CAAxC,CAAP;EAID;;EAEMG,sCAAsC,CAC3CC,oBAD2C,EAE3ChB,OAF2C,EAE8B;IAEzE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CACL,0BAA0Bc,oBAAoB,UADzC,EAELhB,OAFK,CAAP;EAID;;EAEMiB,8BAA8B,CACnCD,oBADmC,EAEnCE,2BAFmC,EAEA;IAEnC,OAAO,KAAKjB,KAAL,CAAWS,OAAX,CACL,0BAA0BM,oBAAoB,YAAYE,2BAA2B,EADhF,CAAP;EAGD;;AAtD6C;;QAAnCtB,kB,GAAAA,kB","names":["SheetMonthSchedule","Resource","create","idEmployee","payload","axios","$post","getAll","$get","get","id","update","$put","delete","$delete","getPaginate","params","cancelToken","Object","updateOrCreateSheetMonthScheduleDetail","idSheetMonthSchedule","deleteSheetMonthScheduleDetail","idSheetMonthScheduleDetails"],"sourceRoot":"","sources":["../../../ts/api/resources/SheetMonthSchedule.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport {\n BasePaginate,\n ISheetMonthSchedule,\n ISheetMonthScheduleDetail,\n QuerySheetMonthSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class SheetMonthSchedule extends Resource {\n public create(\n idEmployee: number,\n payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>,\n ): Promise<ISheetMonthSchedule> {\n return this.axios.$post(`/sheet-month-schedules/${idEmployee}`, payload);\n }\n\n public getAll(idEmployee: number): Promise<ISheetMonthSchedule[]> {\n return this.axios.$get(`/employees/${idEmployee}/sheet-month-schedules`);\n }\n\n public get(id: number): Promise<ISheetMonthSchedule> {\n return this.axios.$get(`/sheet-month-schedules/${id}`);\n }\n\n public update(\n id: number,\n payload: Partial<ISheetMonthSchedule>,\n ): Promise<ISheetMonthSchedule> {\n return this.axios.$put(`/sheet-month-schedules/${id}`, payload);\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/sheet-month-schedules/${id}`);\n }\n\n public getPaginate(\n params: QuerySheetMonthSchedule,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<SheetMonthSchedule>> {\n return this.axios.$get('/sheet-month-schedules', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public updateOrCreateSheetMonthScheduleDetail(\n idSheetMonthSchedule: number,\n payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>,\n ): Promise<ISheetMonthScheduleDetail> {\n return this.axios.$post(\n `/sheet-month-schedules/${idSheetMonthSchedule}/details`,\n payload,\n );\n }\n\n public deleteSheetMonthScheduleDetail(\n idSheetMonthSchedule: number,\n idSheetMonthScheduleDetails: number,\n ): Promise<true> {\n return this.axios.$delete(\n `/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`,\n );\n }\n}\n"]}
|
|
@@ -12,10 +12,12 @@ class ThirdParty extends _Resource.Resource {
|
|
|
12
12
|
return this.axios.$get('/third-parties');
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
getPaginated(pagination, query) {
|
|
16
|
-
return this.axios.$get('/third-parties/paginate', {
|
|
15
|
+
getPaginated(pagination, query, cancelToken) {
|
|
16
|
+
return this.axios.$get('/third-parties/paginate', Object.assign(Object.assign({}, cancelToken ? {
|
|
17
|
+
cancelToken
|
|
18
|
+
} : {}), {
|
|
17
19
|
params: Object.assign(Object.assign({}, pagination), query)
|
|
18
|
-
});
|
|
20
|
+
}));
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
update(idThirdParty, payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdParty.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"ThirdParty.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,UAAP,SAA0BC,kBAA1B,CAAkC;EACtCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,CAAP;EACD;;EAEDC,YAAY,CACVC,UADU,EAEVC,KAFU,EAGVC,WAHU,EAGe;IAEzB,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,yBAAhB,EAAyCK,gCAC1CD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADU,GACP;MACvCE,MAAM,kCACDJ,UADC,GAEDC,KAFC;IADiC,CADO,CAAzC,CAAP;EAOD;;EAEDI,MAAM,CACJC,YADI,EAEJC,OAFI,EAEyB;IAE7B,OAAO,KAAKV,KAAL,CAAWW,IAAX,CAAgB,kBAAkBF,YAAY,EAA9C,EAAkDC,OAAlD,CAAP;EACD;;EAEDE,MAAM,CAACF,OAAD,EAA8B;IAClC,OAAO,KAAKV,KAAL,CAAWa,KAAX,CAAiB,gBAAjB,EAAmCH,OAAnC,CAAP;EACD;;EAEDI,MAAM,CAACL,YAAD,EAAqB;IACzB,OAAO,KAAKT,KAAL,CAAWe,OAAX,CAAmB,kBAAkBN,YAAY,EAAjD,CAAP;EACD;;AAhCqC;;QAA3BZ,U,GAAAA,U","names":["ThirdParty","Resource","getAll","axios","$get","getPaginated","pagination","query","cancelToken","Object","params","update","idThirdParty","payload","$put","create","$post","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryPaginate,\n BasePaginate,\n IThirdParty,\n QueryThirdParty,\n UpdateThirdPartyForm,\n CreateThirdPartyForm,\n} from '../../types';\n\nexport class ThirdParty extends Resource {\n getAll(): Promise<Array<IThirdParty>> {\n return this.axios.$get('/third-parties');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryThirdParty,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(\n idThirdParty: number,\n payload: UpdateThirdPartyForm,\n ): Promise<IThirdParty> {\n return this.axios.$put(`/third-parties/${idThirdParty}`, payload);\n }\n\n create(payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post('/third-parties', payload);\n }\n\n delete(idThirdParty: number): Promise<true> {\n return this.axios.$delete(`/third-parties/${idThirdParty}`);\n }\n}\n"]}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.QueryGetAllTransactions = exports.QueryTransaction = undefined;
|
|
6
|
+
exports._QueryTransaction = exports.QueryGetAllTransactions = exports.QueryTransaction = undefined;
|
|
7
|
+
|
|
8
|
+
var _classTransformer = require("class-transformer");
|
|
7
9
|
|
|
8
10
|
var _utils = require("../../../../utils");
|
|
9
11
|
|
|
@@ -62,4 +64,10 @@ exports.QueryGetAllTransactions = QueryGetAllTransactions;
|
|
|
62
64
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], QueryGetAllTransactions.prototype, "typeOperation", void 0);
|
|
63
65
|
|
|
64
66
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], QueryGetAllTransactions.prototype, "dateValue", void 0);
|
|
67
|
+
|
|
68
|
+
class _QueryTransaction extends QueryTransaction {}
|
|
69
|
+
|
|
70
|
+
exports._QueryTransaction = _QueryTransaction;
|
|
71
|
+
|
|
72
|
+
__decorate([(0, _classTransformer.Type)(() => Number), __metadata("design:type", Number)], _QueryTransaction.prototype, "idTypeAccountingFile", void 0);
|
|
65
73
|
//# sourceMappingURL=QueryTransaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryTransaction.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAIAA,YAFC,yBAED;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOC,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAEXD,YADC,iCACD;;AAGAA,YADC,iCACD","names":["QueryTransaction","__decorate","QueryGetAllTransactions"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"QueryTransaction.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAIAA,YAFC,yBAED;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOC,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAEXD,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOE,iBAAP,SAAiCH,gBAAjC,CAAiD;;QAA1CG,iB,GAAAA,iB;;AAEXF,YADC,4BAAK,MAAMG,MAAX,CACD","names":["QueryTransaction","__decorate","QueryGetAllTransactions","_QueryTransaction","Number"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"sourcesContent":["import { Type } from 'class-transformer';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n}\n\nexport class _QueryTransaction extends QueryTransaction {\n @Type(() => Number)\n idTypeAccountingFile: number;\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CreateRecurrence = exports.CreateReminder = exports.CreateCgv = exports.CreateInvoiceDocument = exports.CreatePreSaleDocument = exports.CommercialDocumentInputs = exports.CreateCommercialMailWithMultipleFiles = exports.CreateCommercialMail = exports.CreateCommercialSetting = undefined;
|
|
6
|
+
exports.CreateRegenerateDocument = exports.CreateRecurrence = exports.CreateReminder = exports.CreateCgv = exports.CreateInvoiceDocument = exports.CreatePreSaleDocument = exports.CommercialDocumentInputs = exports.CreateCommercialMailWithMultipleFiles = exports.CreateCommercialMail = exports.CreateCommercialSetting = undefined;
|
|
7
7
|
|
|
8
8
|
var _classValidator = require("class-validator");
|
|
9
9
|
|
|
@@ -266,4 +266,14 @@ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsDateString)(), __me
|
|
|
266
266
|
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsDateString)(), __metadata("design:type", String)], CreateRecurrence.prototype, "endDate", void 0);
|
|
267
267
|
|
|
268
268
|
__decorate([(0, _utils.ApiProperty)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsBoolean)(), __metadata("design:type", Boolean)], CreateRecurrence.prototype, "isActive", void 0);
|
|
269
|
+
|
|
270
|
+
class CreateRegenerateDocument {}
|
|
271
|
+
|
|
272
|
+
exports.CreateRegenerateDocument = CreateRegenerateDocument;
|
|
273
|
+
|
|
274
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "label", void 0);
|
|
275
|
+
|
|
276
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "reference", void 0);
|
|
277
|
+
|
|
278
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "title", void 0);
|
|
269
279
|
//# sourceMappingURL=Create.js.map
|
|
@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CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAQP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXT,YADC,yBACD;;AAGI,MAAOU,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXV,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOW,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXX,YAFC,yBAED,EADC,4BAAOY,8BAAP,CACD;;AAIAZ,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, 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\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\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\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}\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}"]}
|
|
1
|
+
{"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAAI,CAAJ,EAAO;EACNC,OAAO,EAAE;AADH,CAAP,CAGD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,Y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HC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOO,qBAAP,SAAqCH,wBAArC,CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAQP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXT,YADC,yBACD;;AAGI,MAAOU,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXV,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOW,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXX,YAFC,yBAED,EADC,4BAAOY,8BAAP,CACD;;AAIAZ,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD;;AAGI,MAAOa,wBAAP,CAA+B;;QAAxBA,wB,GAAAA,wB;;AAGXb,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType","CreateRegenerateDocument"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, 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\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\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\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}\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}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
BasePaginate, IAccountingFile, QueryAccountingFiles, ReadFormattedAccountingTransaction, _QueryTransaction,
|
|
4
|
+
} from '../../types';
|
|
3
5
|
|
|
4
6
|
export class AccountingFiles extends Resource {
|
|
5
7
|
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {
|
|
@@ -19,4 +21,8 @@ export class AccountingFiles extends Resource {
|
|
|
19
21
|
delete(id: number): Promise<true> {
|
|
20
22
|
return this.axios.$delete(`/accounting-files/${id}`);
|
|
21
23
|
}
|
|
24
|
+
|
|
25
|
+
getPaginated(idSociety: number, params: _QueryTransaction): Promise<BasePaginate<IAccountingFile>> {
|
|
26
|
+
return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });
|
|
27
|
+
}
|
|
22
28
|
}
|