@silexpert/core 1.0.24 → 1.0.26

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 (111) hide show
  1. package/es/api/resources/CommercialDocument.js +2 -2
  2. package/es/api/resources/CommercialDocument.js.map +1 -1
  3. package/es/api/resources/FIle.d.ts +1 -1
  4. package/es/api/resources/FIle.d.ts.map +1 -1
  5. package/es/api/resources/FIle.js +11 -2
  6. package/es/api/resources/FIle.js.map +1 -1
  7. package/es/api/resources/GeneralLedger.d.ts +1 -1
  8. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  9. package/es/api/resources/GeneralLedger.js +2 -2
  10. package/es/api/resources/GeneralLedger.js.map +1 -1
  11. package/es/api/resources/Mail.d.ts +1 -1
  12. package/es/api/resources/Mail.d.ts.map +1 -1
  13. package/es/api/resources/Mail.js +2 -1
  14. package/es/api/resources/Mail.js.map +1 -1
  15. package/es/api/resources/Partner.d.ts +1 -0
  16. package/es/api/resources/Partner.d.ts.map +1 -1
  17. package/es/api/resources/Partner.js +3 -0
  18. package/es/api/resources/Partner.js.map +1 -1
  19. package/es/types/Enum/Log.d.ts +2 -1
  20. package/es/types/Enum/Log.d.ts.map +1 -1
  21. package/es/types/Enum/Log.js +1 -0
  22. package/es/types/Enum/Log.js.map +1 -1
  23. package/es/types/Interface/api/commercialManagement/Create.d.ts +1 -0
  24. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  25. package/es/types/Interface/api/commercialManagement/Create.js +5 -0
  26. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  27. package/es/types/Interface/api/commercialManagement/Query.d.ts +1 -1
  28. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  29. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
  30. package/es/types/Interface/api/commercialManagement/Update.d.ts +2 -0
  31. package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
  32. package/es/types/Interface/api/commercialManagement/Update.js +12 -0
  33. package/es/types/Interface/api/commercialManagement/Update.js.map +1 -1
  34. package/es/types/Interface/api/file/Create.d.ts +1 -1
  35. package/es/types/Interface/api/file/Create.d.ts.map +1 -1
  36. package/es/types/Interface/api/file/Create.js.map +1 -1
  37. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +1 -0
  38. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
  39. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +7 -1
  40. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  41. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -0
  42. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  43. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +7 -1
  44. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  45. package/es/types/Interface/api/revision/ReadRevision.d.ts +2 -1
  46. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  47. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  48. package/es/types/Interface/api/simulation/CreateSimulation.d.ts +1 -1
  49. package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  50. package/es/types/Interface/models/IAccount.d.ts +2 -0
  51. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  52. package/es/types/Interface/models/IAccount.js.map +1 -1
  53. package/es/types/Interface/models/IEstimateInvoice.d.ts +1 -1
  54. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  55. package/es/types/Interface/models/IInternalEstimate.d.ts +1 -1
  56. package/es/types/Interface/models/IInternalEstimate.js.map +1 -1
  57. package/es/types/Interface/models/IInvoiceReminder.d.ts +1 -0
  58. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
  59. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -1
  60. package/es/types/Interface/models/ISocietyPartner.d.ts +2 -1
  61. package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
  62. package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
  63. package/es/utils/amount.js +1 -1
  64. package/es/utils/amount.js.map +1 -1
  65. package/export-models.json +7 -7
  66. package/js/api/resources/CommercialDocument.js +2 -2
  67. package/js/api/resources/CommercialDocument.js.map +1 -1
  68. package/js/api/resources/FIle.js +16 -2
  69. package/js/api/resources/FIle.js.map +1 -1
  70. package/js/api/resources/GeneralLedger.js +2 -2
  71. package/js/api/resources/GeneralLedger.js.map +1 -1
  72. package/js/api/resources/Mail.js +2 -1
  73. package/js/api/resources/Mail.js.map +1 -1
  74. package/js/api/resources/Partner.js +4 -0
  75. package/js/api/resources/Partner.js.map +1 -1
  76. package/js/types/Enum/Log.js +1 -0
  77. package/js/types/Enum/Log.js.map +1 -1
  78. package/js/types/Interface/api/commercialManagement/Create.js +2 -0
  79. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  80. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
  81. package/js/types/Interface/api/commercialManagement/Update.js +4 -0
  82. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -1
  83. package/js/types/Interface/api/file/Create.js.map +1 -1
  84. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -0
  85. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  86. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +4 -0
  87. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  88. package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  89. package/js/utils/amount.js +1 -1
  90. package/js/utils/amount.js.map +1 -1
  91. package/package.json +1 -1
  92. package/ts/api/resources/CommercialDocument.ts +2 -2
  93. package/ts/api/resources/FIle.ts +11 -2
  94. package/ts/api/resources/GeneralLedger.ts +2 -2
  95. package/ts/api/resources/Mail.ts +2 -1
  96. package/ts/api/resources/Partner.ts +4 -0
  97. package/ts/types/Enum/Log.ts +1 -0
  98. package/ts/types/Interface/api/commercialManagement/Create.ts +4 -0
  99. package/ts/types/Interface/api/commercialManagement/Query.ts +1 -1
  100. package/ts/types/Interface/api/commercialManagement/Update.ts +10 -0
  101. package/ts/types/Interface/api/file/Create.ts +1 -1
  102. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +6 -0
  103. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +6 -0
  104. package/ts/types/Interface/api/revision/ReadRevision.ts +2 -1
  105. package/ts/types/Interface/api/simulation/CreateSimulation.ts +1 -1
  106. package/ts/types/Interface/models/IAccount.ts +2 -0
  107. package/ts/types/Interface/models/IEstimateInvoice.ts +1 -1
  108. package/ts/types/Interface/models/IInternalEstimate.ts +1 -1
  109. package/ts/types/Interface/models/IInvoiceReminder.ts +1 -0
  110. package/ts/types/Interface/models/ISocietyPartner.ts +2 -1
  111. package/ts/utils/amount.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","mappings":"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","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","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 @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 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 @IsString()\n discount: string; //\n\n @ApiProperty()\n comment: string | null; //\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null; //\n\n @ApiProperty({ description: 'Remise globale' })\n @IsNumber()\n generalDiscount2: number; //\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\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":"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","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","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 @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 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 @IsString()\n discount: string; //\n\n @ApiProperty()\n comment: string | null; //\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null; //\n\n @ApiProperty({ description: 'Remise globale' })\n @IsNumber()\n generalDiscount2: number; //\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 +1 @@
1
- {"version":3,"file":"Query.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAGM,MAAOA,YAAP,CAAmB;;QAAZA,Y,GAAAA,Y;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,mCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,mCACD;;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,gCAED,EADC,yBACD;;AAeI,MAAOC,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXD,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOE,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAGXF,YAFC,yBAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAQI,MAAOG,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAEXH,YADC,yBACD;;AAGI,MAAOI,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXJ,YAFC,yBAED,EADC,8BACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOK,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAIXL,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD","names":["QueryInvoice","__decorate","QueryGetDefaultPayload","QueryNextReference","QueryPreviewDocument","QueryDocumentPaginated","QueryCountByStatus"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { Order } from 'sequelize/types';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: number;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType,\n amount: number\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}"]}
1
+ {"version":3,"file":"Query.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAGM,MAAOA,YAAP,CAAmB;;QAAZA,Y,GAAAA,Y;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,mCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,mCACD;;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,gCAED,EADC,yBACD;;AAeI,MAAOC,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXD,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOE,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAGXF,YAFC,yBAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAQI,MAAOG,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAEXH,YADC,yBACD;;AAGI,MAAOI,sBAAP,CAA6B;;QAAtBA,sB,GAAAA,sB;;AAGXJ,YAFC,yBAED,EADC,8BACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOK,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAIXL,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD","names":["QueryInvoice","__decorate","QueryGetDefaultPayload","QueryNextReference","QueryPreviewDocument","QueryDocumentPaginated","QueryCountByStatus"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: number;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType,\n amount: number\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}"]}
@@ -31,6 +31,8 @@ exports.UpdateCommercialDocument = UpdateCommercialDocument;
31
31
 
32
32
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], UpdateCommercialDocument.prototype, "isCanceled", void 0);
33
33
 
34
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsDate)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Date)], UpdateCommercialDocument.prototype, "acceptationDate", void 0);
35
+
34
36
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], UpdateCommercialDocument.prototype, "isRefused", void 0);
35
37
 
36
38
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], UpdateCommercialDocument.prototype, "isPaid", void 0);
@@ -55,6 +57,8 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(),
55
57
 
56
58
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateReminder.prototype, "message", void 0);
57
59
 
60
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateReminder.prototype, "email", void 0);
61
+
58
62
  class UpdateRecurrence {}
59
63
 
60
64
  exports.UpdateRecurrence = UpdateRecurrence;
@@ -1 +1 @@
1
- {"version":3,"file":"Update.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,wBAAP,CAA+B;;QAAxBA,wB,GAAAA,wB;;AAKXC,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,6BAED,EADC,iCACD;;AAGI,MAAOC,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAKXD,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAGI,MAAOE,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXF,YAHC,iCAGD,EAFC,4BAAOG,8BAAP,CAED,EADC,iCACD;;AAKAH,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,yBAGD,EAFC,gCAED,EADC,iCACD","names":["UpdateCommercialDocument","__decorate","UpdateReminder","UpdateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"sourcesContent":["import {\n IsBoolean, IsDate, IsDateString, IsEnum, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\n\nexport class UpdateCommercialDocument {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCanceled?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isUsed?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n mailSent?: Date | null;\n}\n\nexport class UpdateReminder {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n beforeThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n dueDate: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\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\nexport class UpdateRecurrence {\n @ApiPropertyOptional()\n @IsEnum(RecurrenceType)\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n @ToBoolean()\n @IsBoolean()\n @IsOptional()\n isActive?: boolean;\n}"]}
1
+ {"version":3,"file":"Update.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,wBAAP,CAA+B;;QAAxBA,wB,GAAAA,wB;;AAKXC,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,6BAED,EADC,iCACD,4BAAkBC,KAAlB;;AAMAD,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,6BAED,EADC,iCACD;;AAGI,MAAOE,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAKXF,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAGI,MAAOG,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXH,YAHC,iCAGD,EAFC,4BAAOI,8BAAP,CAED,EADC,iCACD;;AAKAJ,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,mCAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,yBAGD,EAFC,gCAED,EADC,iCACD","names":["UpdateCommercialDocument","__decorate","Date","UpdateReminder","UpdateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"sourcesContent":["import {\n IsBoolean, IsDate, IsDateString, IsEnum, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\n\nexport class UpdateCommercialDocument {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCanceled?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n acceptationDate?: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isUsed?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n mailSent?: Date | null;\n}\n\nexport class UpdateReminder {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n beforeThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n dueDate: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\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 @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n email?: string;\n}\n\nexport class UpdateRecurrence {\n @ApiPropertyOptional()\n @IsEnum(RecurrenceType)\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n @ToBoolean()\n @IsBoolean()\n @IsOptional()\n isActive?: boolean;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAGM,MAAOA,UAAP,CAAiB;;QAAVA,U,GAAAA,U;;AAEXC,YADC,yBACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD","names":["CreateFile","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/file/Create.ts"],"sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { TFile } from './TFile';\n\nexport class CreateFile {\n @ApiProperty()\n file?: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n}"]}
1
+ {"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAGM,MAAOA,UAAP,CAAiB;;QAAVA,U,GAAAA,U;;AAEXC,YADC,yBACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD","names":["CreateFile","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/file/Create.ts"],"sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { TFile } from './TFile';\n\nexport class CreateFile {\n @ApiProperty()\n file: TFile;\n\n @ApiProperty()\n @IsString()\n folder: string;\n\n @ApiProperty()\n @IsString()\n name: string;\n}"]}
@@ -35,6 +35,8 @@ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsInt)(), (0, _classV
35
35
 
36
36
  __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsInt)(), (0, _classValidator.Min)(1), __metadata("design:type", Number)], QueryGeneralLedger.prototype, "page", void 0);
37
37
 
38
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsArray)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Array)], QueryGeneralLedger.prototype, "idAccount", void 0);
39
+
38
40
  __decorate([(0, _utils.ApiPropertyOptional)({
39
41
  default: true
40
42
  }), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryGeneralLedger.prototype, "descending", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryGeneralLedger.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAEXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,4BAED,EADC,yBAAI,CAAJ,CACD;;AAKAA,YAHC,yBAGD,EAFC,4BAED,EADC,yBAAI,CAAJ,CACD;;AAMAA,YAJC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAGAD,YADC,iCACD","names":["QueryGeneralLedger","__decorate","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts"],"sourcesContent":["import {\n IsBoolean, IsInt, IsOptional, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryGeneralLedger {\n @ApiProperty()\n dateStart: string;\n\n @ApiProperty()\n dateEnd: string;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n search?: string;\n}"]}
1
+ {"version":3,"file":"QueryGeneralLedger.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,kBAAP,CAAyB;;QAAlBA,kB,GAAAA,kB;;AAEXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,4BAED,EADC,yBAAI,CAAJ,CACD;;AAKAA,YAHC,yBAGD,EAFC,4BAED,EADC,yBAAI,CAAJ,CACD;;AAKAA,YAHC,iCAGD,EAFC,8BAED,EADC,iCACD;;AAMAA,YAJC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAGAD,YADC,iCACD","names":["QueryGeneralLedger","__decorate","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean, IsInt, IsOptional, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryGeneralLedger {\n @ApiProperty()\n dateStart: string;\n\n @ApiProperty()\n dateEnd: string;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsOptional()\n idAccount?: number[];\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n search?: string;\n}"]}
@@ -32,4 +32,8 @@ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata(
32
32
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], QueryCountUnprocessedByUserMail.prototype, "isWithoutSociety", void 0);
33
33
 
34
34
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], QueryCountUnprocessedByUserMail.prototype, "handlingManagerRoleMails", void 0);
35
+
36
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)({
37
+ each: true
38
+ }), __metadata("design:type", String)], QueryCountUnprocessedByUserMail.prototype, "to", void 0);
35
39
  //# sourceMappingURL=QueryCountUnprocessedByUserMail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryCountUnprocessedByUserMail.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,+BAAP,CAAsC;;QAA/BA,+B,GAAAA,+B;;AAGXC,YAFC,yBAED,EADC,4BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD","names":["QueryCountUnprocessedByUserMail","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedByUserMail {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n}\n"]}
1
+ {"version":3,"file":"QueryCountUnprocessedByUserMail.js","mappings":";;;;;;;AAAA;;AAMA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,+BAAP,CAAsC;;QAA/BA,+B,GAAAA,+B;;AAGXC,YAFC,yBAED,EADC,4BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,8BAAS;EAAEC,IAAI,EAAE;AAAR,CAAT,CACD","names":["QueryCountUnprocessedByUserMail","__decorate","each"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedByUserMail {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n to?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSimulation.js","mappings":";;;;;;AAAA;AA+CM,MAAOA,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAWP,MAAOC,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB","names":["CreateBalanceElement","CreateSimulation"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulation/CreateSimulation.ts"],"sourcesContent":["// import {SimulationColor} from '../../..';\n\nexport interface SimulationEstimateInvoice {\n createdAt: string;\n dateInvoiceCreated: string;\n deletedAt: null;\n deposit: number;\n discount: string;\n dueDate: string;\n estimateMailSend: null;\n estimateRef: null;\n expirationDate: null;\n fileEstimate: null;\n fileInvoice: string;\n freeText: string;\n generalComment: string;\n generalDiscount: number;\n greetings: boolean;\n idEstimateInvoice: number;\n idEstimateInvoiceForThisRepeat: number | null;\n idFrequency: number | null;\n idRelatedEstimateOrderForm: number | null;\n idRelatedInvoice: number | null;\n idSociety: number;\n idThirdParty: number;\n idTypeEstimateInvoice: number;\n invoiceMailSend: null;\n invoiceRef: string;\n isCanceled: boolean;\n isDraft: boolean;\n isPaid: boolean;\n isRefused: boolean;\n isStripe: boolean;\n isUsed: boolean;\n label: string;\n lastRelanceDate: null;\n lastTryRepeat: null;\n payment: string;\n penalties: string;\n recoveryCost: string;\n template: number;\n totalHt: number;\n totalTtc: number;\n updatedAt: string;\n vatMention: string;\n}\n\nexport class CreateBalanceElement {\n // @ApiProperty()\n action: string;\n // @ApiProperty()\n amount: number;\n // @ApiProperty()\n dateValue: string;\n // @ApiProperty()\n idBankAccount: number;\n}\n\nexport class CreateSimulation {\n // @ApiProperty()\n name: string;\n\n // @ApiPropertyOptional()\n commentary: string;\n\n // @ApiProperty()\n financesStart: number;\n\n // @ApiProperty({enum: [SimulationColor]})\n idSimulationColor: number;\n\n // @ApiProperty()\n startDate: Date;\n\n // @ApiProperty()\n endDate: Date;\n\n // @ApiProperty()\n importSalesInvoice: boolean;\n\n // @ApiProperty()\n importPurchaseInvoice: boolean;\n\n // @ApiProperty()\n defaultCollectionDelayForSales: number;\n\n // @ApiProperty()\n defaultPaymentDelayForPurchase: number;\n\n // @ApiProperty()\n idSociety: number;\n\n // @ApiPropertyOptional()\n bankAccounts?: Array<number>;\n\n // @ApiPropertyOptional()\n invoices?: Partial<SimulationEstimateInvoice>[];\n\n // @ApiPropertyOptional({\n // type: [CreateBalanceElement]\n // })\n createBalanceElement?: [CreateBalanceElement];\n}\n"]}
1
+ {"version":3,"file":"CreateSimulation.js","mappings":";;;;;;AAAA;AA+CM,MAAOA,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAWP,MAAOC,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB","names":["CreateBalanceElement","CreateSimulation"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulation/CreateSimulation.ts"],"sourcesContent":["// import {SimulationColor} from '../../..';\n\nexport interface SimulationEstimateInvoice {\n createdAt: string;\n dateInvoiceCreated: string;\n deletedAt: null;\n deposit: number;\n discount: string;\n dueDate: string;\n estimateMailSend: null;\n estimateRef: null;\n expirationDate: null;\n fileEstimate: null;\n fileInvoice: string;\n freeText: string;\n generalComment: string;\n generalDiscount: number;\n greetings: boolean;\n idEstimateInvoice: number;\n idEstimateInvoiceForThisRepeat: number | null;\n idFrequency: number | null;\n idRelatedEstimateOrderForm: number | null;\n idRelatedInvoice: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceType: number;\n invoiceMailSend: null;\n invoiceRef: string;\n isCanceled: boolean;\n isDraft: boolean;\n isPaid: boolean;\n isRefused: boolean;\n isStripe: boolean;\n isUsed: boolean;\n label: string;\n lastRelanceDate: null;\n lastTryRepeat: null;\n payment: string;\n penalties: string;\n recoveryCost: string;\n template: number;\n totalHt: number;\n totalTtc: number;\n updatedAt: string;\n vatMention: string;\n}\n\nexport class CreateBalanceElement {\n // @ApiProperty()\n action: string;\n // @ApiProperty()\n amount: number;\n // @ApiProperty()\n dateValue: string;\n // @ApiProperty()\n idBankAccount: number;\n}\n\nexport class CreateSimulation {\n // @ApiProperty()\n name: string;\n\n // @ApiPropertyOptional()\n commentary: string;\n\n // @ApiProperty()\n financesStart: number;\n\n // @ApiProperty({enum: [SimulationColor]})\n idSimulationColor: number;\n\n // @ApiProperty()\n startDate: Date;\n\n // @ApiProperty()\n endDate: Date;\n\n // @ApiProperty()\n importSalesInvoice: boolean;\n\n // @ApiProperty()\n importPurchaseInvoice: boolean;\n\n // @ApiProperty()\n defaultCollectionDelayForSales: number;\n\n // @ApiProperty()\n defaultPaymentDelayForPurchase: number;\n\n // @ApiProperty()\n idSociety: number;\n\n // @ApiPropertyOptional()\n bankAccounts?: Array<number>;\n\n // @ApiPropertyOptional()\n invoices?: Partial<SimulationEstimateInvoice>[];\n\n // @ApiPropertyOptional({\n // type: [CreateBalanceElement]\n // })\n createBalanceElement?: [CreateBalanceElement];\n}\n"]}
@@ -18,6 +18,6 @@ function integerToFormattedAmountString(value) {
18
18
  const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, {
19
19
  length
20
20
  }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();
21
- return `${integer < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
21
+ return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
22
22
  }
23
23
  //# sourceMappingURL=amount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"amount.js","mappings":";;;;;QAAgBA,8B,GAAAA,8B;;AAAV,SAAUA,8BAAV,CAAyCC,KAAzC,EAAsD;EAC1D,MAAMC,GAAG,GAAGC,IAAI,CAACD,GAAL,CAASD,KAAK,GAAG,GAAjB,CAAZ;EACA,IAAIG,OAAO,GAAGD,IAAI,CAACE,KAAL,CAAWH,GAAX,CAAd;EACA,IAAII,KAAK,GAAGH,IAAI,CAACI,KAAL,CAAWL,GAAG,GAAG,GAAN,GAAYE,OAAO,GAAG,GAAjC,CAAZ;;EAEA,OAAOE,KAAK,IAAI,GAAhB,EAAqB;IACnBA,KAAK,GAAGH,IAAI,CAACK,GAAL,CAAS,CAAT,EAAYF,KAAK,GAAG,GAApB,CAAR;IACAF,OAAO,IAAI,CAAX;EACD;;EAED,MAAMK,eAAe,GAAG,GAAGL,OAAO,EAAV,CAAaM,KAAb,CAAmB,EAAnB,EAAuBC,WAAvB,CAAmC,CAACC,GAAD,EAAMC,IAAN,EAAYC,CAAZ,EAAe;IAAEC;EAAF,CAAf,KAA8B,GAAGF,IAAI,GAAG,CAACE,MAAM,IAAID,CAAC,GAAG,CAAR,CAAP,IAAqB,CAArB,KAA2B,CAA3B,GAA+B,GAA/B,GAAqC,EAAE,GAAGF,GAAG,EAAxH,EAA4H,EAA5H,EAAgII,IAAhI,EAAxB;EACA,OAAO,GAAGZ,OAAO,GAAG,CAAV,GAAc,IAAd,GAAqB,EAAE,GAAGK,eAAe,IAAIH,KAAK,GAAG,EAAR,GAAa,GAAb,GAAmB,EAAE,GAAGA,KAAK,EAApF;AACD","names":["integerToFormattedAmountString","value","abs","Math","integer","trunc","cents","round","max","integerWithMask","split","reduceRight","acc","char","i","length","trim"],"sourceRoot":"","sources":["../../ts/utils/amount.ts"],"sourcesContent":["export function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${integer < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}"]}
1
+ {"version":3,"file":"amount.js","mappings":";;;;;QAAgBA,8B,GAAAA,8B;;AAAV,SAAUA,8BAAV,CAAyCC,KAAzC,EAAsD;EAC1D,MAAMC,GAAG,GAAGC,IAAI,CAACD,GAAL,CAASD,KAAK,GAAG,GAAjB,CAAZ;EACA,IAAIG,OAAO,GAAGD,IAAI,CAACE,KAAL,CAAWH,GAAX,CAAd;EACA,IAAII,KAAK,GAAGH,IAAI,CAACI,KAAL,CAAWL,GAAG,GAAG,GAAN,GAAYE,OAAO,GAAG,GAAjC,CAAZ;;EAEA,OAAOE,KAAK,IAAI,GAAhB,EAAqB;IACnBA,KAAK,GAAGH,IAAI,CAACK,GAAL,CAAS,CAAT,EAAYF,KAAK,GAAG,GAApB,CAAR;IACAF,OAAO,IAAI,CAAX;EACD;;EAED,MAAMK,eAAe,GAAG,GAAGL,OAAO,EAAV,CAAaM,KAAb,CAAmB,EAAnB,EAAuBC,WAAvB,CAAmC,CAACC,GAAD,EAAMC,IAAN,EAAYC,CAAZ,EAAe;IAAEC;EAAF,CAAf,KAA8B,GAAGF,IAAI,GAAG,CAACE,MAAM,IAAID,CAAC,GAAG,CAAR,CAAP,IAAqB,CAArB,KAA2B,CAA3B,GAA+B,GAA/B,GAAqC,EAAE,GAAGF,GAAG,EAAxH,EAA4H,EAA5H,EAAgII,IAAhI,EAAxB;EACA,OAAO,GAAGf,KAAK,GAAG,CAAR,GAAY,IAAZ,GAAmB,EAAE,GAAGQ,eAAe,IAAIH,KAAK,GAAG,EAAR,GAAa,GAAb,GAAmB,EAAE,GAAGA,KAAK,EAAlF;AACD","names":["integerToFormattedAmountString","value","abs","Math","integer","trunc","cents","round","max","integerWithMask","split","reduceRight","acc","char","i","length","trim"],"sourceRoot":"","sources":["../../ts/utils/amount.ts"],"sourcesContent":["export function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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",
@@ -45,11 +45,11 @@ export class CommercialDocument extends Resource {
45
45
  }
46
46
 
47
47
  updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {
48
- return this.axios.$post(`/commercial-management/estimates/${id}`, payload);
48
+ return this.axios.$put(`/commercial-management/estimates/${id}`, payload);
49
49
  }
50
50
 
51
51
  updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {
52
- return this.axios.$post(`/commercial-management/orders/${id}`, payload);
52
+ return this.axios.$put(`/commercial-management/orders/${id}`, payload);
53
53
  }
54
54
 
55
55
  preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<IFile> {
@@ -1,3 +1,4 @@
1
+ import { forEach } from 'lodash';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
4
  ReadFile,
@@ -5,7 +6,15 @@ import {
5
6
  } from '../../types';
6
7
 
7
8
  export class File extends Resource {
8
- upload(params: CreateFile): Promise<ReadFile> {
9
- return this.axios.$post('files', params);
9
+ upload(params: Omit<CreateFile, 'file'>, file: File): Promise<ReadFile> {
10
+ const formData = new FormData();
11
+ forEach(params, (value, key) => {
12
+ if (value) {
13
+ formData.append(key, `${value}`);
14
+ }
15
+ });
16
+ // @ts-ignore
17
+ formData.append('file', file);
18
+ return this.axios.$post('files', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
10
19
  }
11
20
  }
@@ -37,8 +37,8 @@ export class GeneralLedger extends Resource {
37
37
  });
38
38
  }
39
39
 
40
- getPdf(params: QueryGeneralLedger):Promise<Buffer> {
41
- return this.axios.$get('/generalLedger/pdf', {
40
+ getPdf(idSociety: number, params: QueryGeneralLedger):Promise<Buffer> {
41
+ return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {
42
42
  params,
43
43
  responseType: 'arraybuffer',
44
44
  headers: {
@@ -152,10 +152,11 @@ export class Mail extends Resource {
152
152
  },
153
153
  });
154
154
  }
155
- public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {
155
+ public countToBeClassifiedByUser(idUser: number, to?: string, cancelToken?: CancelToken): Promise<number> {
156
156
  return this.axios.$get('/mails/count-unprocessed-by-user', {
157
157
  ...(cancelToken ? { cancelToken } : {}),
158
158
  params: {
159
+ to,
159
160
  idUser,
160
161
  isWithoutSociety: true,
161
162
  },
@@ -16,4 +16,8 @@ export class Partner extends Resource {
16
16
  update(idPartner: number, params: UpdatePartner): Promise<ISocietyPartner> {
17
17
  return this.axios.$put(`partners/${idPartner}`, params);
18
18
  }
19
+
20
+ delete(idPartner: number): Promise<number> {
21
+ return this.axios.$delete(`partners/${idPartner}`);
22
+ }
19
23
  }
@@ -33,4 +33,5 @@ export enum LogType {
33
33
  UNPAID = 21,
34
34
  DELETE = 22,
35
35
  REGULATION_DELETE = 23,
36
+ TRANSACTION_DELETE = 26,
36
37
  }
@@ -405,6 +405,10 @@ export class CreateReminder {
405
405
  @IsString()
406
406
  @IsOptional()
407
407
  message?: string;
408
+
409
+ @ApiProperty()
410
+ @IsString()
411
+ email: string;
408
412
  }
409
413
 
410
414
  export class CreateRecurrence {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString,
3
3
  } from 'class-validator';
4
- import { Order } from 'sequelize/types';
4
+ import { Order } from '../../..';
5
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
6
6
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
7
  import { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';
@@ -12,6 +12,11 @@ export class UpdateCommercialDocument {
12
12
  @IsOptional()
13
13
  isCanceled?: boolean;
14
14
 
15
+ @ApiPropertyOptional()
16
+ @IsDate()
17
+ @IsOptional()
18
+ acceptationDate?: Date;
19
+
15
20
  @ApiPropertyOptional()
16
21
  @IsBoolean()
17
22
  @ToBoolean()
@@ -70,6 +75,11 @@ export class UpdateReminder {
70
75
  @IsString()
71
76
  @IsOptional()
72
77
  message?: string;
78
+
79
+ @ApiPropertyOptional()
80
+ @IsString()
81
+ @IsOptional()
82
+ email?: string;
73
83
  }
74
84
 
75
85
  export class UpdateRecurrence {
@@ -4,7 +4,7 @@ import { TFile } from './TFile';
4
4
 
5
5
  export class CreateFile {
6
6
  @ApiProperty()
7
- file?: TFile;
7
+ file: TFile;
8
8
 
9
9
  @ApiProperty()
10
10
  @IsString()
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IsArray,
2
3
  IsBoolean, IsInt, IsOptional, Min,
3
4
  } from 'class-validator';
4
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -21,6 +22,11 @@ export class QueryGeneralLedger {
21
22
  @Min(1)
22
23
  page: number;
23
24
 
25
+ @ApiPropertyOptional()
26
+ @IsArray()
27
+ @IsOptional()
28
+ idAccount?: number[];
29
+
24
30
  @ApiPropertyOptional({ default: true })
25
31
  @IsBoolean()
26
32
  @ToBoolean()
@@ -2,6 +2,7 @@ import {
2
2
  IsBoolean,
3
3
  IsInt,
4
4
  IsOptional,
5
+ IsString,
5
6
  } from 'class-validator';
6
7
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
8
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -22,4 +23,9 @@ export class QueryCountUnprocessedByUserMail {
22
23
  @IsBoolean()
23
24
  @ToBoolean()
24
25
  handlingManagerRoleMails?: boolean;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsString({ each: true })
30
+ to?: string;
25
31
  }
@@ -8,7 +8,8 @@ export interface ReadRevision {
8
8
  number: number | null,
9
9
  accountDetails: Array<IAccountDetail>
10
10
  },
11
- unlocked: number;
11
+ unlocked: number | null;
12
+ locked: number | null;
12
13
  previousBalance: number;
13
14
  nextBalance: number;
14
15
  }
@@ -23,7 +23,7 @@ export interface SimulationEstimateInvoice {
23
23
  idRelatedInvoice: number | null;
24
24
  idSociety: number;
25
25
  idThirdParty: number;
26
- idTypeEstimateInvoice: number;
26
+ idEstimateInvoiceType: number;
27
27
  invoiceMailSend: null;
28
28
  invoiceRef: string;
29
29
  isCanceled: boolean;
@@ -8,6 +8,7 @@ import { IAccountDetail } from './IAccountDetail';
8
8
  import { ISociety } from './ISociety';
9
9
  import { IAccountsSectors } from './IAccountsSectors';
10
10
  import { IMachineLearningResult } from './IMachineLearningResult';
11
+ import { IAccountsSocieties } from './IAccountsSocieties';
11
12
 
12
13
  // accounts
13
14
  export interface IAccount {
@@ -51,6 +52,7 @@ export interface IAccount {
51
52
  sector?: ISector;
52
53
  accountHelp?: IAccountHelp;
53
54
  accountDetails?: IAccountDetail[];
55
+ accountsSocieties?: IAccountsSocieties[] | IAccountsSocieties;
54
56
  societies?: ISociety[];
55
57
  machineLearningResults?: IMachineLearningResult[];
56
58
  }
@@ -45,7 +45,7 @@ export interface IEstimateInvoice {
45
45
  shouldPayTaxAfterDebit: boolean;
46
46
  idFile?: number | null;
47
47
  idRelatedInvoice: number | null;
48
- idTypeEstimateInvoice: number | number[];
48
+ idEstimateInvoiceType: number | number[];
49
49
  idFrequency: number | null;
50
50
  idSociety: number;
51
51
  idThirdParty: number;
@@ -8,7 +8,7 @@ export interface IInternalEstimate {
8
8
  archive: boolean;
9
9
  idSociety: number;
10
10
  idPrestationList: number;
11
- idTypeEstimateInvoice: number;
11
+ idEstimateInvoiceType: number;
12
12
  createdAt?: Date | null;
13
13
  updatedAt?: Date | null;
14
14
  }
@@ -11,6 +11,7 @@ export interface IInvoiceReminder {
11
11
  lastReminder: Date | null;
12
12
  subject?: string | null;
13
13
  message?: string | null;
14
+ email: string | null;
14
15
  idSociety: number;
15
16
  idEstimateInvoice: number | null;
16
17
  createdAt?: Date | null;
@@ -1,5 +1,5 @@
1
1
  import { IAccount } from './IAccount';
2
- import { PartnerType } from '../..';
2
+ import { ISociety, PartnerType } from '../..';
3
3
 
4
4
  // societyPartner
5
5
  export interface ISocietyPartner {
@@ -18,4 +18,5 @@ export interface ISocietyPartner {
18
18
 
19
19
  // Associations
20
20
  account: IAccount;
21
+ society?: ISociety
21
22
  }
@@ -9,5 +9,5 @@ export function integerToFormattedAmountString(value: number): string {
9
9
  }
10
10
 
11
11
  const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();
12
- return `${integer < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
12
+ return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
13
13
  }