@silexpert/core 1.0.90 → 1.0.94

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.
Files changed (71) hide show
  1. package/es/api/resources/AccountingFiles.d.ts +2 -1
  2. package/es/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/es/api/resources/AccountingFiles.js +3 -0
  4. package/es/api/resources/AccountingFiles.js.map +1 -1
  5. package/es/api/resources/CommercialDocument.d.ts +7 -3
  6. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  7. package/es/api/resources/CommercialDocument.js +11 -4
  8. package/es/api/resources/CommercialDocument.js.map +1 -1
  9. package/es/api/resources/Employee.d.ts +2 -1
  10. package/es/api/resources/Employee.d.ts.map +1 -1
  11. package/es/api/resources/Employee.js +8 -4
  12. package/es/api/resources/Employee.js.map +1 -1
  13. package/es/api/resources/PaymentExpectationCustomer.d.ts +2 -1
  14. package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  15. package/es/api/resources/PaymentExpectationCustomer.js +2 -4
  16. package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
  17. package/es/api/resources/Product.d.ts +2 -1
  18. package/es/api/resources/Product.d.ts.map +1 -1
  19. package/es/api/resources/Product.js +2 -4
  20. package/es/api/resources/Product.js.map +1 -1
  21. package/es/api/resources/SheetMonthSchedule.d.ts +2 -1
  22. package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  23. package/es/api/resources/SheetMonthSchedule.js +2 -2
  24. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  25. package/es/api/resources/ThirdParty.d.ts +2 -1
  26. package/es/api/resources/ThirdParty.d.ts.map +1 -1
  27. package/es/api/resources/ThirdParty.js +2 -4
  28. package/es/api/resources/ThirdParty.js.map +1 -1
  29. package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  30. package/es/types/Interface/api/commercialManagement/Create.d.ts +5 -0
  31. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  32. package/es/types/Interface/api/commercialManagement/Create.js +17 -0
  33. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  34. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +1 -0
  35. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -1
  36. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +6 -0
  37. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  38. package/es/types/Interface/models/ISociety.d.ts +1 -0
  39. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  40. package/es/types/Interface/models/ISociety.js.map +1 -1
  41. package/js/api/resources/AccountingFiles.js +6 -0
  42. package/js/api/resources/AccountingFiles.js.map +1 -1
  43. package/js/api/resources/CommercialDocument.js +9 -3
  44. package/js/api/resources/CommercialDocument.js.map +1 -1
  45. package/js/api/resources/Employee.js +5 -3
  46. package/js/api/resources/Employee.js.map +1 -1
  47. package/js/api/resources/PaymentExpectationCustomer.js +5 -3
  48. package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
  49. package/js/api/resources/Product.js +5 -3
  50. package/js/api/resources/Product.js.map +1 -1
  51. package/js/api/resources/SheetMonthSchedule.js +5 -3
  52. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  53. package/js/api/resources/ThirdParty.js +5 -3
  54. package/js/api/resources/ThirdParty.js.map +1 -1
  55. package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  56. package/js/types/Interface/api/commercialManagement/Create.js +11 -1
  57. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  58. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +2 -0
  59. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  60. package/package.json +1 -1
  61. package/ts/api/resources/AccountingFiles.ts +7 -1
  62. package/ts/api/resources/CommercialDocument.ts +63 -17
  63. package/ts/api/resources/Employee.ts +42 -10
  64. package/ts/api/resources/PaymentExpectationCustomer.ts +61 -18
  65. package/ts/api/resources/Product.ts +14 -3
  66. package/ts/api/resources/SheetMonthSchedule.ts +36 -9
  67. package/ts/api/resources/ThirdParty.ts +18 -4
  68. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +1 -1
  69. package/ts/types/Interface/api/commercialManagement/Create.ts +14 -0
  70. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +6 -1
  71. package/ts/types/Interface/models/ISociety.ts +1 -0
@@ -1 +1 @@
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,iCA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GAL,YADC,wBAAY;EAAEK,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAL,YADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,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","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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FC,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}"]}
@@ -53,6 +53,8 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)()
53
53
 
54
54
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedSocietyWithStatsCa.prototype, "idConstitutionState", void 0);
55
55
 
56
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedSocietyWithStatsCa.prototype, "idBillingState", void 0);
57
+
56
58
  __decorate([(0, _utils.ApiPropertyOptional)({
57
59
  default: 20
58
60
  }), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedSocietyWithStatsCa.prototype, "limit", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaginatedSocietyWithStatsCa.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gCAAP,CAAuC;;QAAhCA,gC,GAAAA,gC;;AAIXC,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,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,2BAAM;EAAEC,IAAI,EAAE;AAAR,CAAN,CACD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD","names":["QueryPaginatedSocietyWithStatsCa","__decorate","each","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaginatedSocietyWithStatsCa {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isInCA?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n turnoverRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isAdditionalSales?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n day?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n month?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n year?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSource?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idState?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idConstitutionState?: number;\n\n @ApiPropertyOptional({ default: 20 })\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional({ default: 1 })\n @IsOptional()\n @IsInt()\n page?: number;\n}\n"]}
1
+ {"version":3,"file":"QueryPaginatedSocietyWithStatsCa.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gCAAP,CAAuC;;QAAhCA,gC,GAAAA,gC;;AAIXC,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,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,2BAAM;EAAEC,IAAI,EAAE;AAAR,CAAN,CACD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,4BACD","names":["QueryPaginatedSocietyWithStatsCa","__decorate","each","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaginatedSocietyWithStatsCa {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isInCA?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n turnoverRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isAdditionalSales?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n day?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n month?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n year?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSource?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt({ each: true })\n idState?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idConstitutionState?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idBillingState?: number;\n\n @ApiPropertyOptional({ default: 20 })\n @IsOptional()\n @IsInt()\n limit?: number;\n\n @ApiPropertyOptional({ default: 1 })\n @IsOptional()\n @IsInt()\n page?: number;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.90",
3
+ "version": "1.0.94",
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 { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';
2
+ import {
3
+ BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,
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
  }
@@ -1,8 +1,10 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
4
  BasePaginate,
4
5
  CreateInvoiceDocument,
5
6
  CreatePreSaleDocument,
7
+ CreateRegenerateDocument,
6
8
  EstimateInvoiceType,
7
9
  IEstimateInvoice,
8
10
  QueryCountByStatus,
@@ -20,7 +22,7 @@ export class CommercialDocument extends Resource {
20
22
  return this.axios.$get(`/commercial-management/documents/${id}`);
21
23
  }
22
24
 
23
- update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice> {
25
+ update(id: number, payload: UpdateCommercialDocument): Promise<{ data: IEstimateInvoice }> {
24
26
  return this.axios.patch(`/commercial-management/documents/${id}`, payload);
25
27
  }
26
28
 
@@ -29,42 +31,86 @@ export class CommercialDocument extends Resource {
29
31
  }
30
32
 
31
33
  getNextReference(params: QueryNextReference): Promise<string> {
32
- return this.axios.$get('/commercial-management/documents/references', { params });
34
+ return this.axios.$get('/commercial-management/documents/references', {
35
+ params,
36
+ });
33
37
  }
34
38
 
35
- getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>> {
36
- return this.axios.$get('/commercial-management/documents', { params });
39
+ getPaginated(
40
+ params: QueryDocumentPaginated & QueryPaginate,
41
+ cancelToken?: CancelToken,
42
+ ): Promise<BasePaginate<ReadEstimateInvoice>> {
43
+ return this.axios.$get('/commercial-management/documents', {
44
+ ...(cancelToken ? { cancelToken } : {}),
45
+ params,
46
+ });
37
47
  }
38
48
 
39
- createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {
40
- return this.axios.$post('/commercial-management/estimates', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.DEVIS });
49
+ createEstimate(
50
+ payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,
51
+ ): Promise<IEstimateInvoice> {
52
+ return this.axios.$post('/commercial-management/estimates', {
53
+ ...payload,
54
+ idEstimateInvoiceType: EstimateInvoiceType.DEVIS,
55
+ });
41
56
  }
42
57
 
43
- createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {
44
- return this.axios.$post('/commercial-management/orders', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.BON });
58
+ createOrder(
59
+ payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,
60
+ ): Promise<IEstimateInvoice> {
61
+ return this.axios.$post('/commercial-management/orders', {
62
+ ...payload,
63
+ idEstimateInvoiceType: EstimateInvoiceType.BON,
64
+ });
45
65
  }
46
66
 
47
- updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {
67
+ updateEstimate(
68
+ id: number,
69
+ payload: CreatePreSaleDocument,
70
+ ): Promise<IEstimateInvoice> {
48
71
  return this.axios.$put(`/commercial-management/estimates/${id}`, payload);
49
72
  }
50
73
 
51
- updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {
74
+ updateOrder(
75
+ id: number,
76
+ payload: CreatePreSaleDocument,
77
+ ): Promise<IEstimateInvoice> {
52
78
  return this.axios.$put(`/commercial-management/orders/${id}`, payload);
53
79
  }
54
80
 
55
- preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<ReadPreview> {
56
- return this.axios.$post('/commercial-management/preview', { ...payload, idEstimateInvoiceType });
81
+ preview(
82
+ idEstimateInvoiceType: EstimateInvoiceType,
83
+ payload: CreatePreSaleDocument | CreateInvoiceDocument,
84
+ ): Promise<ReadPreview> {
85
+ return this.axios.$post('/commercial-management/preview', {
86
+ ...payload,
87
+ idEstimateInvoiceType,
88
+ });
89
+ }
90
+
91
+ regenerate(id: number, payload: CreateRegenerateDocument): Promise<IEstimateInvoice> {
92
+ return this.axios.$post(`/commercial-management/documents/${id}/regenerate`, payload);
57
93
  }
58
94
 
59
95
  getFormValues(id: number): Promise<CreatePreSaleDocument> {
60
96
  return this.axios.$get(`/commercial-management/documents/${id}/inputs`);
61
97
  }
62
98
 
63
- getDefaultFormValues(idEstimateInvoiceType: EstimateInvoiceType): Promise<CreatePreSaleDocument> {
64
- return this.axios.$get('/commercial-management/documents/inputs', { params: { idEstimateInvoiceType } });
99
+ getDefaultFormValues(
100
+ idEstimateInvoiceType: EstimateInvoiceType,
101
+ ): Promise<CreatePreSaleDocument> {
102
+ return this.axios.$get('/commercial-management/documents/inputs', {
103
+ params: { idEstimateInvoiceType },
104
+ });
65
105
  }
66
106
 
67
- getStatistics(idSociety: number, params: QueryCountByStatus): Promise<ReadCountDocumentByStatus> {
68
- return this.axios.$get(`/commercial-management/societies/${idSociety}/statistics`, { params });
107
+ getStatistics(
108
+ idSociety: number,
109
+ params: QueryCountByStatus,
110
+ ): Promise<ReadCountDocumentByStatus> {
111
+ return this.axios.$get(
112
+ `/commercial-management/societies/${idSociety}/statistics`,
113
+ { params },
114
+ );
69
115
  }
70
- }
116
+ }
@@ -1,6 +1,13 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { forEach } from 'lodash';
2
3
  import {
3
- BasePaginate, IEmployee, IWorkingSchedule, CreateEmployee, QueryEmployeeSearch, UpdateEmployee, UpdateOrCreateWorkingSchedule,
4
+ BasePaginate,
5
+ IEmployee,
6
+ IWorkingSchedule,
7
+ CreateEmployee,
8
+ QueryEmployeeSearch,
9
+ UpdateEmployee,
10
+ UpdateOrCreateWorkingSchedule,
4
11
  } from '../../types';
5
12
  import { Resource } from '../Resource';
6
13
 
@@ -16,7 +23,9 @@ export class Employee extends Resource {
16
23
  }
17
24
  }
18
25
  });
19
- return this.axios.$post('/employees', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
26
+ return this.axios.$post('/employees', formData, {
27
+ headers: { 'Content-Type': 'multipart/form-data' },
28
+ });
20
29
  }
21
30
 
22
31
  public getAll(idSociety: number): Promise<IEmployee[]> {
@@ -27,7 +36,10 @@ export class Employee extends Resource {
27
36
  return this.axios.$get(`/employees/${id}`);
28
37
  }
29
38
 
30
- public update(id: number, payload: Partial<UpdateEmployee>): Promise<IEmployee> {
39
+ public update(
40
+ id: number,
41
+ payload: Partial<UpdateEmployee>,
42
+ ): Promise<IEmployee> {
31
43
  const formData = new FormData();
32
44
  forEach(payload, (value, key) => {
33
45
  if (value) {
@@ -38,22 +50,42 @@ export class Employee extends Resource {
38
50
  }
39
51
  }
40
52
  });
41
- return this.axios.$put(`/employees/${id}`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });
53
+ return this.axios.$put(`/employees/${id}`, formData, {
54
+ headers: { 'Content-Type': 'multipart/form-data' },
55
+ });
42
56
  }
43
57
 
44
58
  public delete(id: number): Promise<true> {
45
59
  return this.axios.$delete(`/employees/${id}`);
46
60
  }
47
61
 
48
- public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {
49
- return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });
62
+ public getPaginate(
63
+ idSociety: number,
64
+ params?: QueryEmployeeSearch,
65
+ cancelToken?: CancelToken,
66
+ ): Promise<BasePaginate<Employee>> {
67
+ return this.axios.$get(`/societies/${idSociety}/employees`, {
68
+ ...(cancelToken ? { cancelToken } : {}),
69
+ params: { ...params, isPaginate: true },
70
+ });
50
71
  }
51
72
 
52
- public updateOrCreateWorkingSchedule(idEmployee: number, payload?: UpdateOrCreateWorkingSchedule): Promise<IWorkingSchedule> {
53
- return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
73
+ public updateOrCreateWorkingSchedule(
74
+ idEmployee: number,
75
+ payload?: UpdateOrCreateWorkingSchedule,
76
+ ): Promise<IWorkingSchedule> {
77
+ return this.axios.$post(
78
+ `employees/${idEmployee}/working-schedules`,
79
+ payload,
80
+ );
54
81
  }
55
82
 
56
- public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {
57
- return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);
83
+ public deleteWorkingSchedule(
84
+ idEmployee: number,
85
+ idWorkingSchedule: number,
86
+ ): Promise<true> {
87
+ return this.axios.$delete(
88
+ `employees/${idEmployee}/working-schedules/${idWorkingSchedule}`,
89
+ );
58
90
  }
59
91
  }
@@ -1,35 +1,78 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
- QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats,
4
+ QueryGetPaymentExpectationCustomer,
5
+ IPaymentExpectationCustomer,
6
+ QueryPayPaymentExpectationCustomer,
7
+ QueryConfirmPaymentExpectationCustomer,
8
+ QueryGetSocietyPaymentsExpectationsCustomers,
9
+ QueryDeleteSocietyPaymentExpectationCustomer,
10
+ BasePaginate,
11
+ UpdateRefundSocietyPaymentExpectationCustomer,
12
+ CreateSocietyPaymentExpectationCustomer,
13
+ ReadPaymentExpectationCustomerStat,
14
+ QueryGetSocietyPaymentsExpectationsCustomersStats,
4
15
  } from '../../types';
5
16
 
6
17
  export class PaymentExpectationCustomer extends Resource {
7
- get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
18
+ get(
19
+ params: QueryGetPaymentExpectationCustomer,
20
+ ): Promise<IPaymentExpectationCustomer> {
8
21
  return this.axios.$get('/paymentExpectationCustomer', { params });
9
22
  }
10
- getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers): Promise<BasePaginate<IPaymentExpectationCustomer>> {
11
- return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {
12
- params,
13
- });
23
+ getBySociety(
24
+ params: QueryGetSocietyPaymentsExpectationsCustomers,
25
+ cancelToken?: CancelToken,
26
+ ): Promise<BasePaginate<IPaymentExpectationCustomer>> {
27
+ return this.axios.$get(
28
+ `/society/${params.idSociety}/paymentsExpectationsCustomers`,
29
+ {
30
+ ...(cancelToken ? { cancelToken } : {}),
31
+ params,
32
+ },
33
+ );
14
34
  }
15
- stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {
16
- return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {
17
- params,
18
- });
35
+ stats(
36
+ params: QueryGetSocietyPaymentsExpectationsCustomersStats,
37
+ ): Promise<ReadPaymentExpectationCustomerStat> {
38
+ return this.axios.$get(
39
+ `/society/${params.idSociety}/paymentsExpectationsCustomers/stats`,
40
+ {
41
+ params,
42
+ },
43
+ );
19
44
  }
20
- pay(params: QueryPayPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
45
+ pay(
46
+ params: QueryPayPaymentExpectationCustomer,
47
+ ): Promise<IPaymentExpectationCustomer> {
21
48
  return this.axios.$post('/paymentExpectationCustomer/pay', params);
22
49
  }
23
- confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
50
+ confirm(
51
+ params: QueryConfirmPaymentExpectationCustomer,
52
+ ): Promise<IPaymentExpectationCustomer> {
24
53
  return this.axios.$post('/paymentExpectationCustomer/confirm', params);
25
54
  }
26
- delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
27
- return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);
55
+ delete(
56
+ params: QueryDeleteSocietyPaymentExpectationCustomer,
57
+ ): Promise<IPaymentExpectationCustomer> {
58
+ return this.axios.$delete(
59
+ `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`,
60
+ );
28
61
  }
29
- refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
30
- return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);
62
+ refund(
63
+ params: UpdateRefundSocietyPaymentExpectationCustomer,
64
+ ): Promise<IPaymentExpectationCustomer> {
65
+ return this.axios.$put(
66
+ `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`,
67
+ params,
68
+ );
31
69
  }
32
- create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
33
- return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);
70
+ create(
71
+ params: CreateSocietyPaymentExpectationCustomer,
72
+ ): Promise<IPaymentExpectationCustomer> {
73
+ return this.axios.$post(
74
+ `/society/${params.idSociety}/paymentExpectationCustomer`,
75
+ params,
76
+ );
34
77
  }
35
78
  }
@@ -1,6 +1,12 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
- IProduct, QueryPaginate, QueryProduct, BasePaginate, CreateProduct, UpdateProduct,
4
+ IProduct,
5
+ QueryPaginate,
6
+ QueryProduct,
7
+ BasePaginate,
8
+ CreateProduct,
9
+ UpdateProduct,
4
10
  } from '../../types';
5
11
 
6
12
  export class Product extends Resource {
@@ -8,8 +14,13 @@ export class Product extends Resource {
8
14
  return this.axios.$get('/commercial-management/products');
9
15
  }
10
16
 
11
- getPaginated(pagination: QueryPaginate, query?: QueryProduct): Promise<BasePaginate<IProduct>> {
17
+ getPaginated(
18
+ pagination: QueryPaginate,
19
+ query?: QueryProduct,
20
+ cancelToken?: CancelToken,
21
+ ): Promise<BasePaginate<IProduct>> {
12
22
  return this.axios.$get('/commercial-management/products', {
23
+ ...(cancelToken ? { cancelToken } : {}),
13
24
  params: {
14
25
  ...pagination,
15
26
  ...query,
@@ -40,4 +51,4 @@ export class Product extends Resource {
40
51
  responseType: 'arraybuffer',
41
52
  });
42
53
  }
43
- }
54
+ }
@@ -1,10 +1,17 @@
1
+ import { CancelToken } from 'axios';
1
2
  import {
2
- BasePaginate, ISheetMonthSchedule, ISheetMonthScheduleDetail, QuerySheetMonthSchedule,
3
+ BasePaginate,
4
+ ISheetMonthSchedule,
5
+ ISheetMonthScheduleDetail,
6
+ QuerySheetMonthSchedule,
3
7
  } from '../../types';
4
8
  import { Resource } from '../Resource';
5
9
 
6
10
  export class SheetMonthSchedule extends Resource {
7
- public create(idEmployee: number, payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>): Promise<ISheetMonthSchedule> {
11
+ public create(
12
+ idEmployee: number,
13
+ payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>,
14
+ ): Promise<ISheetMonthSchedule> {
8
15
  return this.axios.$post(`/sheet-month-schedules/${idEmployee}`, payload);
9
16
  }
10
17
 
@@ -16,7 +23,10 @@ export class SheetMonthSchedule extends Resource {
16
23
  return this.axios.$get(`/sheet-month-schedules/${id}`);
17
24
  }
18
25
 
19
- public update(id: number, payload: Partial<ISheetMonthSchedule>): Promise<ISheetMonthSchedule> {
26
+ public update(
27
+ id: number,
28
+ payload: Partial<ISheetMonthSchedule>,
29
+ ): Promise<ISheetMonthSchedule> {
20
30
  return this.axios.$put(`/sheet-month-schedules/${id}`, payload);
21
31
  }
22
32
 
@@ -24,15 +34,32 @@ export class SheetMonthSchedule extends Resource {
24
34
  return this.axios.$delete(`/sheet-month-schedules/${id}`);
25
35
  }
26
36
 
27
- public getPaginate(params: QuerySheetMonthSchedule): Promise<BasePaginate<SheetMonthSchedule>> {
28
- return this.axios.$get('/sheet-month-schedules', { params });
37
+ public getPaginate(
38
+ params: QuerySheetMonthSchedule,
39
+ cancelToken?: CancelToken,
40
+ ): Promise<BasePaginate<SheetMonthSchedule>> {
41
+ return this.axios.$get('/sheet-month-schedules', {
42
+ ...(cancelToken ? { cancelToken } : {}),
43
+ params,
44
+ });
29
45
  }
30
46
 
31
- public updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule: number, payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>): Promise<ISheetMonthScheduleDetail> {
32
- return this.axios.$post(`/sheet-month-schedules/${idSheetMonthSchedule}/details`, payload);
47
+ public updateOrCreateSheetMonthScheduleDetail(
48
+ idSheetMonthSchedule: number,
49
+ payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>,
50
+ ): Promise<ISheetMonthScheduleDetail> {
51
+ return this.axios.$post(
52
+ `/sheet-month-schedules/${idSheetMonthSchedule}/details`,
53
+ payload,
54
+ );
33
55
  }
34
56
 
35
- public deleteSheetMonthScheduleDetail(idSheetMonthSchedule: number, idSheetMonthScheduleDetails: number): Promise<true> {
36
- return this.axios.$delete(`/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`);
57
+ public deleteSheetMonthScheduleDetail(
58
+ idSheetMonthSchedule: number,
59
+ idSheetMonthScheduleDetails: number,
60
+ ): Promise<true> {
61
+ return this.axios.$delete(
62
+ `/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`,
63
+ );
37
64
  }
38
65
  }
@@ -1,6 +1,12 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
- QueryPaginate, BasePaginate, IThirdParty, QueryThirdParty, UpdateThirdPartyForm, CreateThirdPartyForm,
4
+ QueryPaginate,
5
+ BasePaginate,
6
+ IThirdParty,
7
+ QueryThirdParty,
8
+ UpdateThirdPartyForm,
9
+ CreateThirdPartyForm,
4
10
  } from '../../types';
5
11
 
6
12
  export class ThirdParty extends Resource {
@@ -8,8 +14,13 @@ export class ThirdParty extends Resource {
8
14
  return this.axios.$get('/third-parties');
9
15
  }
10
16
 
11
- getPaginated(pagination: QueryPaginate, query?: QueryThirdParty): Promise<BasePaginate<IThirdParty>> {
17
+ getPaginated(
18
+ pagination: QueryPaginate,
19
+ query?: QueryThirdParty,
20
+ cancelToken?: CancelToken,
21
+ ): Promise<BasePaginate<IThirdParty>> {
12
22
  return this.axios.$get('/third-parties/paginate', {
23
+ ...(cancelToken ? { cancelToken } : {}),
13
24
  params: {
14
25
  ...pagination,
15
26
  ...query,
@@ -17,7 +28,10 @@ export class ThirdParty extends Resource {
17
28
  });
18
29
  }
19
30
 
20
- update(idThirdParty: number, payload: UpdateThirdPartyForm): Promise<IThirdParty> {
31
+ update(
32
+ idThirdParty: number,
33
+ payload: UpdateThirdPartyForm,
34
+ ): Promise<IThirdParty> {
21
35
  return this.axios.$put(`/third-parties/${idThirdParty}`, payload);
22
36
  }
23
37
 
@@ -28,4 +42,4 @@ export class ThirdParty extends Resource {
28
42
  delete(idThirdParty: number): Promise<true> {
29
43
  return this.axios.$delete(`/third-parties/${idThirdParty}`);
30
44
  }
31
- }
45
+ }
@@ -57,4 +57,4 @@ export class QueryGetAllTransactions {
57
57
 
58
58
  @ApiPropertyOptional()
59
59
  dateValue?: string;
60
- }
60
+ }
@@ -435,4 +435,18 @@ export class CreateRecurrence {
435
435
  @ToBoolean()
436
436
  @IsBoolean()
437
437
  isActive: boolean;
438
+ }
439
+
440
+ export class CreateRegenerateDocument {
441
+ @ApiProperty()
442
+ @IsString()
443
+ label: string;
444
+
445
+ @ApiProperty()
446
+ @IsString()
447
+ reference: string;
448
+
449
+ @ApiProperty()
450
+ @IsString()
451
+ title: string;
438
452
  }
@@ -69,6 +69,11 @@ export class QueryPaginatedSocietyWithStatsCa {
69
69
  @IsInt()
70
70
  idConstitutionState?: number;
71
71
 
72
+ @ApiPropertyOptional()
73
+ @IsOptional()
74
+ @IsInt()
75
+ idBillingState?: number;
76
+
72
77
  @ApiPropertyOptional({ default: 20 })
73
78
  @IsOptional()
74
79
  @IsInt()
@@ -78,4 +83,4 @@ export class QueryPaginatedSocietyWithStatsCa {
78
83
  @IsOptional()
79
84
  @IsInt()
80
85
  page?: number;
81
- }
86
+ }
@@ -126,6 +126,7 @@ export interface ISociety {
126
126
  stateSynchroBankAccount: number | null;
127
127
  noShowPopUpSynchroDate: Date | null;
128
128
  stateFollowCall: number | null;
129
+ folderCreation: boolean;
129
130
  hideSimulationBetaMessage: boolean;
130
131
  unpaid: number | null;
131
132
  isLate: boolean | null;