@silexpert/core 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/{commercialDocument.d.ts → CommercialDocument.d.ts} +2 -1
- package/es/api/resources/{commercialDocument.d.ts.map → CommercialDocument.d.ts.map} +1 -1
- package/es/api/resources/{commercialDocument.js → CommercialDocument.js} +4 -1
- package/es/api/resources/CommercialDocument.js.map +1 -0
- package/es/api/resources/Exercice.d.ts +1 -0
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +3 -0
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +1 -0
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +3 -0
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Recurrence.d.ts +9 -0
- package/es/api/resources/Recurrence.d.ts.map +1 -0
- package/es/api/resources/Recurrence.js +13 -0
- package/es/api/resources/Recurrence.js.map +1 -0
- package/es/api/resources/{reminder.d.ts → Reminder.d.ts} +1 -1
- package/es/api/resources/{reminder.d.ts.map → Reminder.d.ts.map} +1 -1
- package/es/api/resources/{reminder.js → Reminder.js} +2 -2
- package/es/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
- package/es/api/resources.d.ts +4 -2
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -2
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/RecurrenceType.d.ts +11 -0
- package/es/types/Enum/RecurrenceType.d.ts.map +1 -0
- package/es/types/Enum/RecurrenceType.js +26 -0
- package/es/types/Enum/RecurrenceType.js.map +1 -0
- package/es/types/Enum/TaskResponseType.d.ts +10 -0
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +11 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +25 -18
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.js +65 -81
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Update.d.ts +6 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Update.js +29 -1
- package/es/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.d.ts +2 -0
- package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.js +16 -2
- package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +11 -5
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +2 -0
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js +16 -2
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +2 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.js +11 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +1 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +2 -0
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IInvoiceRecurrence.d.ts +15 -0
- package/es/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -0
- package/es/types/Interface/models/IInvoiceRecurrence.js +2 -0
- package/es/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
- package/es/types/Interface/models/IInvoiceReminder.d.ts +1 -1
- package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
- package/es/types/Interface/models/IInvoiceReminder.js.map +1 -1
- package/es/types/Interface/models/ITask.d.ts +2 -2
- package/es/types/Interface/models/ITask.d.ts.map +1 -1
- package/es/types/Interface/models/ITask.js.map +1 -1
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts.map +1 -1
- package/es/utils/commercialManagement/document.js +1 -5
- package/es/utils/commercialManagement/document.js.map +1 -1
- package/es/utils/commercialManagement/recurrence.d.ts +7 -0
- package/es/utils/commercialManagement/recurrence.d.ts.map +1 -0
- package/es/utils/commercialManagement/recurrence.js +31 -0
- package/es/utils/commercialManagement/recurrence.js.map +1 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/task.d.ts +3 -1
- package/es/utils/task.d.ts.map +1 -1
- package/es/utils/task.js +8 -1
- package/es/utils/task.js.map +1 -1
- package/js/api/resources/{commercialDocument.js → CommercialDocument.js} +5 -1
- package/js/api/resources/CommercialDocument.js.map +1 -0
- package/js/api/resources/Exercice.js +4 -0
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/Invoice.js +4 -0
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Recurrence.js +26 -0
- package/js/api/resources/Recurrence.js.map +1 -0
- package/js/api/resources/{reminder.js → Reminder.js} +2 -2
- package/js/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
- package/js/api/resources.js +7 -4
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/RecurrenceType.js +28 -0
- package/js/types/Enum/RecurrenceType.js.map +1 -0
- package/js/types/Enum/TaskResponseType.js +14 -1
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +47 -33
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Update.js +15 -1
- package/js/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevision.js +6 -0
- package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +7 -5
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js +6 -0
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/js/types/Interface/api/task/QueryPaginatedTask.js +6 -0
- package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +1 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IInvoiceRecurrence.js +6 -0
- package/js/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
- package/js/types/index.js +24 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/commercialManagement/document.js +1 -6
- package/js/utils/commercialManagement/document.js.map +1 -1
- package/js/utils/commercialManagement/recurrence.js +47 -0
- package/js/utils/commercialManagement/recurrence.js.map +1 -0
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/task.js +14 -1
- package/js/utils/task.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/{commercialDocument.ts → CommercialDocument.ts} +4 -0
- package/ts/api/resources/Exercice.ts +4 -0
- package/ts/api/resources/Invoice.ts +4 -0
- package/ts/api/resources/Recurrence.ts +17 -0
- package/ts/api/resources/{reminder.ts → Reminder.ts} +1 -1
- package/ts/api/resources.ts +4 -2
- package/ts/types/Enum/RecurrenceType.ts +25 -0
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +62 -81
- package/ts/types/Interface/api/commercialManagement/Update.ts +25 -1
- package/ts/types/Interface/api/revision/QueryRevision.ts +15 -2
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +11 -4
- package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +15 -2
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
- package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +9 -0
- package/ts/types/Interface/models/IApiError.ts +1 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +2 -0
- package/ts/types/Interface/models/IInvoiceRecurrence.ts +16 -0
- package/ts/types/Interface/models/IInvoiceReminder.ts +1 -1
- package/ts/types/Interface/models/ITask.ts +2 -2
- package/ts/types/index.ts +2 -0
- package/ts/utils/commercialManagement/document.ts +1 -6
- package/ts/utils/commercialManagement/recurrence.ts +39 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/task.ts +9 -1
- package/es/api/resources/commercialDocument.js.map +0 -1
- package/js/api/resources/commercialDocument.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.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C,iCAGD,EAFC,iCAED,EADC,+BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAGAA,YADC,yBACD;;AAGI,MAAOM,qBAAP,SAAqCH,wBAArC,CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAOP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXR,YADC,yBACD;;AAGI,MAAOS,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXT,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","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\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 @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\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 @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n legalForm?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n capital?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n siren?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n rcs?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n vatCode?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n nafCode?: string;\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 @ApiPropertyOptional({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n @IsDateString()\n @IsOptional()\n expirationDate: string;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n @IsString()\n termsOfPayment: string;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n @IsString()\n discount: string; //\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string; //\n\n @ApiPropertyOptional({ description: 'Pénalité de retard' })\n @IsOptional()\n @IsString()\n penalties?: string; //\n\n @ApiProperty({ description: 'Remise globale' })\n @IsOptional()\n @IsNumber()\n generalDiscount2: number; //\n\n @ApiPropertyOptional({ description: 'Indemnité forfaitaire' })\n @IsOptional()\n @IsString()\n compensation?: string; //\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string; //\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n title?: string; //\n\n @ApiPropertyOptional({ description: 'Commercial name of seller' })\n @IsString()\n @IsOptional()\n name: string;\n\n @ApiPropertyOptional({ description: 'Commercial number address of seller' })\n @IsString()\n @IsOptional()\n number?: string;\n\n @ApiPropertyOptional({ description: 'Commercial street address of seller' })\n @IsString()\n @IsOptional()\n street?: string;\n\n @ApiPropertyOptional({ description: 'Commercial zip code address of seller' })\n @IsString()\n @IsOptional()\n zipCode?: string;\n\n @ApiPropertyOptional({ description: 'Commercial city address of seller' })\n @IsString()\n @IsOptional()\n city?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n settings?: ISocietyGescom;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cgv?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoUrl?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\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 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}"]}
|
|
1
|
+
{"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAA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AED,EADC,iCACD;;AAGI,MAAOU,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXV,YAFC,yBAED,EADC,4BAAOW,8BAAP,CACD;;AAIAX,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD","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 { 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 @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\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 @IsNumber()\n capital?: number;\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 @IsString()\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\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}"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.UpdateReminder = exports.UpdateCommercialDocument = undefined;
|
|
6
|
+
exports.UpdateRecurrence = exports.UpdateReminder = exports.UpdateCommercialDocument = undefined;
|
|
7
7
|
|
|
8
8
|
var _classValidator = require("class-validator");
|
|
9
9
|
|
|
@@ -11,6 +11,8 @@ var _utils = require("../../../../utils");
|
|
|
11
11
|
|
|
12
12
|
var _boolean = require("../../../../utils/transforms/boolean.transform");
|
|
13
13
|
|
|
14
|
+
var _RecurrenceType = require("../../../Enum/RecurrenceType");
|
|
15
|
+
|
|
14
16
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15
17
|
var c = arguments.length,
|
|
16
18
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -52,4 +54,16 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(),
|
|
|
52
54
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateReminder.prototype, "subject", void 0);
|
|
53
55
|
|
|
54
56
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateReminder.prototype, "message", void 0);
|
|
57
|
+
|
|
58
|
+
class UpdateRecurrence {}
|
|
59
|
+
|
|
60
|
+
exports.UpdateRecurrence = UpdateRecurrence;
|
|
61
|
+
|
|
62
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsEnum)(_RecurrenceType.RecurrenceType), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], UpdateRecurrence.prototype, "type", void 0);
|
|
63
|
+
|
|
64
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsDateString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateRecurrence.prototype, "startDate", void 0);
|
|
65
|
+
|
|
66
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsDateString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], UpdateRecurrence.prototype, "endDate", void 0);
|
|
67
|
+
|
|
68
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], UpdateRecurrence.prototype, "isActive", void 0);
|
|
55
69
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","mappings":";;;;;;;AAAA;;AAGA;;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","names":["UpdateCommercialDocument","__decorate","UpdateReminder"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"sourcesContent":["import {\n IsBoolean, IsDate, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\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}"]}
|
|
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}"]}
|
|
@@ -9,6 +9,8 @@ var _classValidator = require("class-validator");
|
|
|
9
9
|
|
|
10
10
|
var _ = require("../../../..");
|
|
11
11
|
|
|
12
|
+
var _boolean = require("../../../../utils/transforms/boolean.transform");
|
|
13
|
+
|
|
12
14
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13
15
|
var c = arguments.length,
|
|
14
16
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -38,6 +40,10 @@ __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("des
|
|
|
38
40
|
|
|
39
41
|
__decorate([(0, _.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryRevision.prototype, "idSociety", void 0);
|
|
40
42
|
|
|
43
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevision.prototype, "orderBy", void 0);
|
|
44
|
+
|
|
45
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevision.prototype, "descending", void 0);
|
|
46
|
+
|
|
41
47
|
__decorate([(0, _.ApiProperty)({
|
|
42
48
|
default: 25
|
|
43
49
|
}), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevision.prototype, "limit", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevision.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"QueryRevision.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,aAAP,CAAoB;EAA1BC;IAwBE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AAhCyB;;QAAbD,a,GAAAA,a;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAHC,4BAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,4BAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevision","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}"]}
|
|
@@ -11,6 +11,8 @@ var _ = require("../../../..");
|
|
|
11
11
|
|
|
12
12
|
var _utils = require("../../../../utils");
|
|
13
13
|
|
|
14
|
+
var _boolean = require("../../../../utils/transforms/boolean.transform");
|
|
15
|
+
|
|
14
16
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15
17
|
var c = arguments.length,
|
|
16
18
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -31,10 +33,6 @@ __decorate([(0, _.ApiProperty)({
|
|
|
31
33
|
default: 1
|
|
32
34
|
}), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionAccount.prototype, "page", void 0);
|
|
33
35
|
|
|
34
|
-
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
35
|
-
default: 'idAccount'
|
|
36
|
-
}), __metadata("design:type", String)], QueryRevisionAccount.prototype, "orderBy", void 0);
|
|
37
|
-
|
|
38
36
|
__decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("design:type", Date)], QueryRevisionAccount.prototype, "startDate", void 0);
|
|
39
37
|
|
|
40
38
|
__decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("design:type", Date)], QueryRevisionAccount.prototype, "endDate", void 0);
|
|
@@ -43,9 +41,13 @@ __decorate([(0, _utils.ApiPropertyOptional)({
|
|
|
43
41
|
default: 25
|
|
44
42
|
}), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionAccount.prototype, "limit", void 0);
|
|
45
43
|
|
|
44
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
45
|
+
default: 'idAccount'
|
|
46
|
+
}), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevisionAccount.prototype, "orderBy", void 0);
|
|
47
|
+
|
|
46
48
|
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
47
49
|
default: true
|
|
48
|
-
}), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "descending", void 0);
|
|
50
|
+
}), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "descending", void 0);
|
|
49
51
|
|
|
50
52
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Boolean)], QueryRevisionAccount.prototype, "isRevised", void 0);
|
|
51
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevisionAccount.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"QueryRevisionAccount.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,oBAAP,CAA2B;;QAApBA,oB,GAAAA,oB;;AAGXC,YAFC,mBAAY;EAAEC,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAAWE,KAAX;;AAIAF,YAFC,oBAED,EADC,6BACD,4BAASE,KAAT;;AAIAF,YAFC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAED,EADC,+BACD;;AAKAD,YAHC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAD,YAJC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAGAD,YADC,iCACD;;AAIAA,YAFC,oBAED,EADC,4BACD","names":["QueryRevisionAccount","__decorate","default","Date"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, QueryPaginate } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionAccount implements QueryPaginate {\n @ApiProperty({ default: 1 })\n @IsNumber()\n page: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional({ default: 25 })\n @IsNumber()\n limit: number;\n\n @ApiPropertyOptional({ default: 'idAccount' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n isRevised?: boolean;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n}"]}
|
|
@@ -9,6 +9,8 @@ var _classValidator = require("class-validator");
|
|
|
9
9
|
|
|
10
10
|
var _ = require("../../../..");
|
|
11
11
|
|
|
12
|
+
var _boolean = require("../../../../utils/transforms/boolean.transform");
|
|
13
|
+
|
|
12
14
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13
15
|
var c = arguments.length,
|
|
14
16
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -38,6 +40,10 @@ __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsDate)(), __metadata("des
|
|
|
38
40
|
|
|
39
41
|
__decorate([(0, _.ApiProperty)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryRevisionPaginate.prototype, "idSociety", void 0);
|
|
40
42
|
|
|
43
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], QueryRevisionPaginate.prototype, "orderBy", void 0);
|
|
44
|
+
|
|
45
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryRevisionPaginate.prototype, "descending", void 0);
|
|
46
|
+
|
|
41
47
|
__decorate([(0, _.ApiProperty)({
|
|
42
48
|
default: 25
|
|
43
49
|
}), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], QueryRevisionPaginate.prototype, "limit", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevisionPaginate.js","mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"QueryRevisionPaginate.js","mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,qBAAP,CAA4B;EAAlCC;IAwBE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AAhCiC;;QAArBD,qB,GAAAA,qB;;AAGXE,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAIAD,YAFC,oBAED,EADC,4BACD;;AAKAA,YAHC,4BAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,4BAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAF,YAFC,mBAAY;EAAEE,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionPaginate","constructor","__decorate","Date","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionPaginate.ts"],"sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionPaginate {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAmFE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AA3FsC;;QAA1BD,0B,GAAAA,0B;;AAIXE,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAMAD,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,8BAED,EADC,iCACD,4BAAuBE,MAAvB;;AAKAF,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,gCAAoB;EAAEG,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAH,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAH,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionSearchEntries","constructor","__decorate","Date","Array","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n // advanced search\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRevised?: boolean;\n\n @ApiPropertyOptional({ default: 'date' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"QueryRevisionSearchEntries.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;EAAvCC;IAmFE;IAGA,aAAiB,EAAjB;IAIA,YAAgB,CAAhB;EACD;;AA3FsC;;QAA1BD,0B,GAAAA,0B;;AAIXE,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,6BACD,4BAAWC,KAAX;;AAIAD,YAFC,oBAED,EADC,6BACD,4BAASC,KAAT;;AAMAD,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,8BAED,EADC,iCACD,4BAAuBE,MAAvB;;AAKAF,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAMAA,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAHC,gCAAoB;EAAEG,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,+BAED,EADC,iCACD;;AAMAH,YAJC,iCAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD;;AAKAA,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD;;AAIAH,YAFC,mBAAY;EAAEG,OAAO,EAAE;AAAX,CAAZ,CAED,EADC,+BACD","names":["QueryRevisionSearchEntries","constructor","__decorate","Date","Array","default"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts"],"sourcesContent":["import {\n IsArray,\n IsBoolean,\n IsDate, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevisionSearchEntries {\n // Mandatory\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n // Optional\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n difference?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n designation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n startAccountNumber?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n endAccountNumber?: string;\n\n // advanced search\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsOptional()\n idsAccountingJournal?: Array<number>;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRevised?: boolean;\n\n @ApiPropertyOptional({ default: 'date' })\n @IsString()\n @IsOptional()\n orderBy?: 'date' | 'accountNumber' | 'amount' | 'designation' | 'vatRate' | 'debit' | 'credit';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}\n"]}
|
|
@@ -27,7 +27,7 @@ exports.QueryCountTask = QueryCountTask;
|
|
|
27
27
|
|
|
28
28
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryCountTask.prototype, "idUser", void 0);
|
|
29
29
|
|
|
30
|
-
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryCountTask.prototype, "
|
|
30
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryCountTask.prototype, "idService", void 0);
|
|
31
31
|
|
|
32
32
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsBoolean)(), __metadata("design:type", Boolean)], QueryCountTask.prototype, "isLate", void 0);
|
|
33
33
|
//# sourceMappingURL=QueryCountTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryCountTask.js","mappings":";;;;;;;AAAA;;AAKA;;;;;;;;;;;;;;AAEM,MAAOA,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,gCACD","names":["QueryCountTask","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/task/QueryCountTask.ts"],"sourcesContent":["import {\n IsInt, IsBoolean,\n IsOptional,\n} from 'class-validator';\n\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryCountTask {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n
|
|
1
|
+
{"version":3,"file":"QueryCountTask.js","mappings":";;;;;;;AAAA;;AAKA;;;;;;;;;;;;;;AAEM,MAAOA,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,gCACD","names":["QueryCountTask","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/task/QueryCountTask.ts"],"sourcesContent":["import {\n IsInt, IsBoolean,\n IsOptional,\n} from 'class-validator';\n\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryCountTask {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idService?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n isLate?: boolean;\n}"]}
|
|
@@ -35,6 +35,8 @@ class QueryPaginatedTask {
|
|
|
35
35
|
|
|
36
36
|
exports.QueryPaginatedTask = QueryPaginatedTask;
|
|
37
37
|
|
|
38
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryPaginatedTask.prototype, "isIntern", void 0);
|
|
39
|
+
|
|
38
40
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedTask.prototype, "idTaskType", void 0);
|
|
39
41
|
|
|
40
42
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], QueryPaginatedTask.prototype, "search", void 0);
|
|
@@ -49,6 +51,10 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)()
|
|
|
49
51
|
|
|
50
52
|
__decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedTask.prototype, "idUser", void 0);
|
|
51
53
|
|
|
54
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
55
|
+
description: 'roles for filter tasks'
|
|
56
|
+
}), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedTask.prototype, "idService", void 0);
|
|
57
|
+
|
|
52
58
|
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
53
59
|
description: 'user who terminate the task'
|
|
54
60
|
}), (0, _classValidator.IsOptional)(), (0, _classValidator.IsInt)(), __metadata("design:type", Number)], QueryPaginatedTask.prototype, "idUserWhoProcessed", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryPaginatedTask.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,kBAAP,CAAyB;EAA/BC;
|
|
1
|
+
{"version":3,"file":"QueryPaginatedTask.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,kBAAP,CAAyB;EAA/BC;IAwBE,iBAAa,KAAb;IAKA,eAAmB,WAAnB;IA8BA,aAAiB,EAAjB;IAKA,YAAgB,CAAhB;EAsCD;;AAtG8B;;QAAlBD,kB,GAAAA,kB;;AAGXE,YAFC,iCAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAMAA,YAJC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEE,WAAW,EAAE;AAAf,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,WAAW,EAAE;AAAf,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,gCAAoB;EAAEE,WAAW,EAAE;AAAf,CAApB,CAGD,EAFC,iCAED,EADC,4BACD;;AAKAF,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAKAA,YAHC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,+BACD;;AAKAD,YAHC,gCAAoB;EAAEC,OAAO,EAAE;AAAX,CAApB,CAGD,EAFC,iCAED,EADC,+BACD;;AAOAD,YALC,iCAKD,EAJC,iCAID,EAHC,8BAAS;EACRG,IAAI,EAAE;AADE,CAAT,CAGD;;AAKAH,YAHC,iCAGD,EAFC,iCAED,EADC,6BACD,4BAAYI,KAAZ;;AAKAJ,YAHC,iCAGD,EAFC,iCAED,EADC,6BACD,4BAAUI,KAAV;;AAMAJ,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAQAA,YANC,iCAMD,EALC,iCAKD,EAJC,8BAAS;EACRG,IAAI,EAAE;AADE,CAAT,CAID,EADC,0BAAK,CAAC,SAAD,EAAY,UAAZ,EAAwB,cAAxB,EAAwC,MAAxC,EAAgD,MAAhD,EAAwD,gBAAxD,EAA0E,kBAA1E,EAA8F,gBAA9F,EAAgH,qBAAhH,EAAuI,gBAAvI,CAAL,EAA+J;EAAEA,IAAI,EAAE;AAAR,CAA/J,CACD","names":["QueryPaginatedTask","constructor","__decorate","default","description","each","Date"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/task/QueryPaginatedTask.ts"],"sourcesContent":["import {\n IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsDate, IsIn,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaginatedTask {\n @ApiPropertyOptional()\n @IsOptional()\n isIntern?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTaskType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional({ default: false })\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDeleted? = false;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string = 'createdAt';\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional({ description: 'roles for filter tasks' })\n @IsOptional()\n @IsInt()\n idService?: number;\n\n @ApiPropertyOptional({ description: 'user who terminate the task' })\n @IsOptional()\n @IsInt()\n idUserWhoProcessed?: number;\n\n @ApiPropertyOptional({ description: 'user who create the task' })\n @IsOptional()\n @IsInt()\n idUserWhoCreated?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idRole?: number;\n\n @ApiPropertyOptional({ default: 25 })\n @IsOptional()\n @IsNumber()\n limit?: number = 25;\n\n @ApiPropertyOptional({ default: 1 })\n @IsOptional()\n @IsNumber()\n page?: number = 1;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n attributes?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isLate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isProcessed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['society', 'comments', 'notification', 'mail', 'user', 'userWhoCreated', 'userWhoProcessed', 'userWhoRefused', 'mailAutoSentForLate', 'taskAttachment'], { each: true })\n include?: string[];\n}\n"]}
|
|
@@ -161,5 +161,6 @@ var Code = exports.Code = undefined;
|
|
|
161
161
|
|
|
162
162
|
Code["CAN_NOT_DELETE_DOCUMENT"] = "can_not_delete_document";
|
|
163
163
|
Code["CAN_NOT_EDIT_INVOICE"] = "can_not_edit_invoice";
|
|
164
|
+
Code["INVALID_INVOICE_TYPE"] = "invalid_invoice_type";
|
|
164
165
|
})(Code || (exports.Code = Code = {}));
|
|
165
166
|
//# sourceMappingURL=IApiError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IApiError.js","mappings":";;;;;AAAA,IAAYA,SAIX,WAJWA,SAIX,YAJD;;AAAA,WAAYA,SAAZ,EAAqB;EACnBA;EACAA;EACAA;AACD,CAJD,EAAYA,SAAS,aAATA,SAAS,GAATA,SAAS,MAArB;;AAMA,IAAYC,IAyKX,WAzKWA,IAyKX,YAzKD;;AAAA,WAAYA,IAAZ,EAAgB;EACd;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,sDAdc,CAgBd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,+CA1Cc,CA4Cd;;EACAA;EACAA;EACAA,mCA/Cc,CAiDd;;EACAA;EACAA;EACAA;EACAA;EACAA,0CAtDc,CAwDd;;EACAA;EACAA,sEA1Dc,CA4Dd;;EACAA,qEA7Dc,CA+Dd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,kDA5Fc,CA8Fd;;EACAA,+DA/Fc,CAiGd;;EACAA;EACAA,yDAnGc,CAqGd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,8CAhHc,CAkHd;;EACAA;EACAA,oCApHc,CAsHd;;EACAA;EACAA;EACAA;EACAA;EACAA;EAEAA,4CA7Hc,CA+Hd;;EACAA,4CAhIc,CAkId;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,kDAzIc,CA2Id;;EACAA,gEA5Ic,CA8Id;;EACAA;EACAA;EACAA;EACAA,oFAlJc,CAoJd;;EACAA;EACAA,oDAtJc,CAwJd;;EACAA,sDAzJc,CA2Jd;;EACAA;EAEAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,sDApKc,CAsKd;;EACAA;EACAA;AACD,CAzKD,EAAYA,IAAI,aAAJA,IAAI,GAAJA,IAAI,MAAhB","names":["ErrorType","Code"],"sourceRoot":"","sources":["../../../../ts/types/Interface/models/IApiError.ts"],"sourcesContent":["export enum ErrorType {\n apiError = 'api_error',\n authError = 'authentication_error',\n resourceError = 'rsc_error',\n}\n\nexport enum Code {\n // HTTP Error\n tokenFailure = 'token_authentication_failure',\n authenticationFailure = 'authentication_credentials_failure',\n notFound = 'resource_not_found',\n fileNotFound = 'file_not_found',\n validationError = 'resource_validation_error',\n constraintError = 'resource_constraint_error',\n outOfRange = 'resource_ofr',\n internalServerError = 'internal_server_error',\n constraintKeyError = 'resource_fk_error',\n serviceUnavailable = 'service_unavailable',\n notImplemented = 'not_implemented',\n unknown = 'unknown',\n formatNotAuthorized = 'format_not_authorized',\n\n // Annotation Error\n failedCheckBalance = 'failed_check_balance',\n vatIntracomCanOnlyBeSetForDebit = 'vat_intracom_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetForCredit = 'vat_marge_can_only_be_set_for_credit',\n vatMargeWithAssetCanOnlyBeSetForDebit = 'vat_marge_with_asset_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetIfAmountAllTaxIncludedPurchaseIsSet = 'vat_marge_can_only_be_set_if_amount_all_tax_included_purchase_is_set',\n missingParamSplit = 'missing_param_split',\n totalAmountSplitNotEqualTransaction = 'total_amount_split_not_equal_transaction',\n vatManuelIsSetWithNegativeValue = 'vat_manuel_is_set_with_negative_value',\n vatManuelIsNotSetWithSpecialVat = 'vat_manuel_is_not_set_with_special_vat',\n vatManuelCannotBeSetWithSplit = 'vat_manuel_cannot_be_set_with_split',\n vatNotAuthorizeWithThisAccount = 'vat_not_authorize_with_this_account',\n transactionIsAlreadyExported = 'transaction_is_already_exported',\n thirdPartyIsNotFound = 'third_party_is_not_found',\n accountIsNotFound = 'account_is_not_found',\n immobilizationNotSetWithAccountStartTwo = 'immobilization_not_set_with_account_start_two',\n immobilizationCanOnlyBeSetForDebit = 'immobilization_can_only_be_set_for_debit',\n immobilizationCanNotBeSetWithoutAccount = 'immobilization_can_not_be_set_without_account',\n immobilizationNotExist = 'immobilization_not_exist',\n accountIsNotDepreciable = 'account_is_not_depreciable',\n invalidNetBookValue = 'invalid_net_book_value',\n noExerciceFoundForImmobilization = 'no_exercice_found_for_immobilization',\n amountImmobilizationLessThanAmountTransaction = 'amount_immobilization_less_than_amount_transaction',\n amountImmobilizationLessThanAmountAllTaxIncluded = 'amount_immobilization_less_than_amount_all_tax_included',\n amountImmobilizationIsGreaterThanTotalAmountTransactions = 'amount_immobilization_is_greater_than_total_amount_transactions',\n immobilizationNotFound = 'immobilization_not_found',\n annotationFailed = 'annotation_failed',\n\n // PDF error\n mergeFailed = 'merge_failed',\n generationError = 'generation_error',\n parseError = 'parse_error',\n\n // Email error\n emailAlreadyExist = 'email_already_exist',\n phoneAlreadyExist = 'phone_already_exist',\n societyCustomEmailAlreadyExist = 'society_custom_email_already_exist',\n societyCustomEmailNotFound = 'society_custom_email_not_found',\n emailNotFound = 'email_not_found',\n\n // BankAccount\n missingParamAccountNumber = 'missing_param_account_number',\n accountNumberParamNotFound = 'account_number_param_not_found',\n\n // Income statement\n invalidIncomeStatementList = 'invalid_income_statement_list',\n\n // Shine errors\n AUTHORIZATION_CLIENT_NOT_FOUND = 'AUTHORIZATION_CLIENT_NOT_FOUND',\n AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH = 'AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH',\n AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED',\n AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID = 'AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID',\n AUTHORIZATION_CLIENT_STATUS_NOT_VALID = 'AUTHORIZATION_CLIENT_STATUS_NOT_VALID',\n AUTHORIZATION_CODE_MISSING = 'AUTHORIZATION_CODE_MISSING',\n AUTHORIZATION_CODE_NOT_FOUND = 'AUTHORIZATION_CODE_NOT_FOUND',\n AUTHORIZATION_CODE_ALREADY_USED = 'AUTHORIZATION_CODE_ALREADY_USED',\n AUTHORIZATION_CODE_EXPIRED = 'AUTHORIZATION_CODE_EXPIRED',\n AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_ACCESS_TOKEN_EXPIRED = 'AUTHORIZATION_ACCESS_TOKEN_EXPIRED',\n AUTHORIZATION_INVALID_ACCESS_TOKEN = 'AUTHORIZATION_INVALID_ACCESS_TOKEN',\n AUTHORIZATION_MISSING_ACCESS_TOKEN = 'AUTHORIZATION_MISSING_ACCESS_TOKEN',\n AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE = 'AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE',\n AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE = 'AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE',\n AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN = 'AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN',\n AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE = 'AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE',\n AUTHORIZATION_UNSUPPORTED_GRANT_TYPE = 'AUTHORIZATION_UNSUPPORTED_GRANT_TYPE',\n AUTHORIZATION_REFRESH_TOKEN_MISSING = 'AUTHORIZATION_REFRESH_TOKEN_MISSING',\n AUTHORIZATION_REFRESH_TOKEN_EXPIRED = 'AUTHORIZATION_REFRESH_TOKEN_EXPIRED',\n AUTHORIZATION_REFRESH_TOKEN_INVALID = 'AUTHORIZATION_REFRESH_TOKEN_INVALID',\n AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REFRESH_TOKEN_REVOKED = 'AUTHORIZATION_REFRESH_TOKEN_REVOKED',\n AUTHORIZATION_USER_NOT_AUTHORIZED = 'AUTHORIZATION_USER_NOT_AUTHORIZED',\n responseNotManaged = 'response_not_managed',\n bankAccountsError = 'bank_accounts_error',\n refreshTokenError = 'refresh_token_error',\n\n // Balance Sheet\n invalidBalanceSheetList = 'invalid_balance_sheet_list',\n\n // FecFile\n insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',\n fecFileAlreadyExists = 'fec_file_already_exists',\n\n // User creation\n userAlreadyExistWithSociety = 'user-already-exists',\n userDoesNotExists = 'user-does-not-exist',\n userPermissionDoesNotExists = 'user-permission-does-not-exist',\n expiredSmsCode = 'expired-sms-code',\n userNotInFmaProcess = 'user-not-in-maf-process',\n wrongSmsCode = 'wrong-sms-code',\n userEmailAndPhoneAlreadyExist = 'user-username-and-phone-already-exist',\n userEmailAlreadyExist = 'user-username-already-exists',\n userPhoneAlreadyExist = 'user-phone-already-exists',\n couldNotFindUser = 'could-not-find-user',\n wrongBrandEmail = 'wrong-brand-email',\n\n // Cerfa\n civilityNotFound = 'civility_not_found',\n invalidData = 'invalidData',\n\n // Sponsorship\n emailAlreadyUsedForsponsorship = 'email_already_used_for_sponsorship',\n idSocietyAlreadyUsedForsponsorship = 'idSociety_already_used_for_sponsorship',\n sponsorshipCodeDoesntExist = 'sponsorship_code_doesnt_exist',\n sponsorshipLinkDoesntExist = 'sponsorship_link_doesnt_exist',\n societyNotFound = 'society_not_found',\n\n payloadIsEmpty = 'payload_is_empty',\n\n // PromoCode\n wrongPromoCode = 'wrong_promo_code',\n\n // Budget Fetch\n fetchNewBudgetInvalidSociety = 'fetch_new_budget_invalid_idSociety',\n fetchConnectionFailed = 'fetch_connection_failed',\n fetchBankAccountFailed = 'fetch_bank_account_failed',\n fetchTransactionsFailed = 'fetch_transactions_failed',\n fetchNewTokenFailed = 'fetch_new_token_failed',\n bankAccountDesactivationFailed = 'bank_account_desactivation_failed',\n udpateTokenFailed = 'update_token_failed',\n\n // Accounts\n GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',\n\n // Balance Sheet Questions\n UNKNOWN_ANSWER_VALUE = 'UNKNOWN_ANSWER_VALUE',\n QUESTION_NOT_FOUND = 'QUESTION_NOT_FOUND',\n QUESTION_DO_NOT_MATCH = 'QUESTION_DO_NOT_MATCH',\n QUESTION_ALREADY_EXISTS_IN_EXERCICE = 'QUESTION_ALREADY_EXISTS_IN_EXERCICE',\n\n // Fiscal period closing\n EXERCICE_ALREADY_CLOSED = 'EXERCICE_ALREADY_CLOSED',\n MISSING_ANNOTATIONS = 'MISSING_ANNOTATIONS',\n\n // jeDeclare errors\n ERR_INVALID_ARG_TYPE = 'ERR_INVALID_ARG_TYPE',\n\n // Society Vehicles\n MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',\n\n PREVIOUS_CHECKLIST_NOT_COMPLETED = 'previous_checklist_not_completed',\n CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',\n CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',\n CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',\n INVALID_BRAND = 'invalid_brand',\n INVALID_DAY = 'invalid_day',\n ENTITY_ALREADY_EXIST = 'entity_already_exist',\n\n // Gescom\n CAN_NOT_DELETE_DOCUMENT = 'can_not_delete_document',\n CAN_NOT_EDIT_INVOICE = 'can_not_edit_invoice',\n}\n\nexport interface IApiError {\n type: ErrorType;\n code: Code;\n message: string;\n param?: string;\n field?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IApiError.js","mappings":";;;;;AAAA,IAAYA,SAIX,WAJWA,SAIX,YAJD;;AAAA,WAAYA,SAAZ,EAAqB;EACnBA;EACAA;EACAA;AACD,CAJD,EAAYA,SAAS,aAATA,SAAS,GAATA,SAAS,MAArB;;AAMA,IAAYC,IA0KX,WA1KWA,IA0KX,YA1KD;;AAAA,WAAYA,IAAZ,EAAgB;EACd;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,sDAdc,CAgBd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,+CA1Cc,CA4Cd;;EACAA;EACAA;EACAA,mCA/Cc,CAiDd;;EACAA;EACAA;EACAA;EACAA;EACAA,0CAtDc,CAwDd;;EACAA;EACAA,sEA1Dc,CA4Dd;;EACAA,qEA7Dc,CA+Dd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,kDA5Fc,CA8Fd;;EACAA,+DA/Fc,CAiGd;;EACAA;EACAA,yDAnGc,CAqGd;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,8CAhHc,CAkHd;;EACAA;EACAA,oCApHc,CAsHd;;EACAA;EACAA;EACAA;EACAA;EACAA;EAEAA,4CA7Hc,CA+Hd;;EACAA,4CAhIc,CAkId;;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,kDAzIc,CA2Id;;EACAA,gEA5Ic,CA8Id;;EACAA;EACAA;EACAA;EACAA,oFAlJc,CAoJd;;EACAA;EACAA,oDAtJc,CAwJd;;EACAA,sDAzJc,CA2Jd;;EACAA;EAEAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA,sDApKc,CAsKd;;EACAA;EACAA;EACAA;AACD,CA1KD,EAAYA,IAAI,aAAJA,IAAI,GAAJA,IAAI,MAAhB","names":["ErrorType","Code"],"sourceRoot":"","sources":["../../../../ts/types/Interface/models/IApiError.ts"],"sourcesContent":["export enum ErrorType {\n apiError = 'api_error',\n authError = 'authentication_error',\n resourceError = 'rsc_error',\n}\n\nexport enum Code {\n // HTTP Error\n tokenFailure = 'token_authentication_failure',\n authenticationFailure = 'authentication_credentials_failure',\n notFound = 'resource_not_found',\n fileNotFound = 'file_not_found',\n validationError = 'resource_validation_error',\n constraintError = 'resource_constraint_error',\n outOfRange = 'resource_ofr',\n internalServerError = 'internal_server_error',\n constraintKeyError = 'resource_fk_error',\n serviceUnavailable = 'service_unavailable',\n notImplemented = 'not_implemented',\n unknown = 'unknown',\n formatNotAuthorized = 'format_not_authorized',\n\n // Annotation Error\n failedCheckBalance = 'failed_check_balance',\n vatIntracomCanOnlyBeSetForDebit = 'vat_intracom_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetForCredit = 'vat_marge_can_only_be_set_for_credit',\n vatMargeWithAssetCanOnlyBeSetForDebit = 'vat_marge_with_asset_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetIfAmountAllTaxIncludedPurchaseIsSet = 'vat_marge_can_only_be_set_if_amount_all_tax_included_purchase_is_set',\n missingParamSplit = 'missing_param_split',\n totalAmountSplitNotEqualTransaction = 'total_amount_split_not_equal_transaction',\n vatManuelIsSetWithNegativeValue = 'vat_manuel_is_set_with_negative_value',\n vatManuelIsNotSetWithSpecialVat = 'vat_manuel_is_not_set_with_special_vat',\n vatManuelCannotBeSetWithSplit = 'vat_manuel_cannot_be_set_with_split',\n vatNotAuthorizeWithThisAccount = 'vat_not_authorize_with_this_account',\n transactionIsAlreadyExported = 'transaction_is_already_exported',\n thirdPartyIsNotFound = 'third_party_is_not_found',\n accountIsNotFound = 'account_is_not_found',\n immobilizationNotSetWithAccountStartTwo = 'immobilization_not_set_with_account_start_two',\n immobilizationCanOnlyBeSetForDebit = 'immobilization_can_only_be_set_for_debit',\n immobilizationCanNotBeSetWithoutAccount = 'immobilization_can_not_be_set_without_account',\n immobilizationNotExist = 'immobilization_not_exist',\n accountIsNotDepreciable = 'account_is_not_depreciable',\n invalidNetBookValue = 'invalid_net_book_value',\n noExerciceFoundForImmobilization = 'no_exercice_found_for_immobilization',\n amountImmobilizationLessThanAmountTransaction = 'amount_immobilization_less_than_amount_transaction',\n amountImmobilizationLessThanAmountAllTaxIncluded = 'amount_immobilization_less_than_amount_all_tax_included',\n amountImmobilizationIsGreaterThanTotalAmountTransactions = 'amount_immobilization_is_greater_than_total_amount_transactions',\n immobilizationNotFound = 'immobilization_not_found',\n annotationFailed = 'annotation_failed',\n\n // PDF error\n mergeFailed = 'merge_failed',\n generationError = 'generation_error',\n parseError = 'parse_error',\n\n // Email error\n emailAlreadyExist = 'email_already_exist',\n phoneAlreadyExist = 'phone_already_exist',\n societyCustomEmailAlreadyExist = 'society_custom_email_already_exist',\n societyCustomEmailNotFound = 'society_custom_email_not_found',\n emailNotFound = 'email_not_found',\n\n // BankAccount\n missingParamAccountNumber = 'missing_param_account_number',\n accountNumberParamNotFound = 'account_number_param_not_found',\n\n // Income statement\n invalidIncomeStatementList = 'invalid_income_statement_list',\n\n // Shine errors\n AUTHORIZATION_CLIENT_NOT_FOUND = 'AUTHORIZATION_CLIENT_NOT_FOUND',\n AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH = 'AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH',\n AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED',\n AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID = 'AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID',\n AUTHORIZATION_CLIENT_STATUS_NOT_VALID = 'AUTHORIZATION_CLIENT_STATUS_NOT_VALID',\n AUTHORIZATION_CODE_MISSING = 'AUTHORIZATION_CODE_MISSING',\n AUTHORIZATION_CODE_NOT_FOUND = 'AUTHORIZATION_CODE_NOT_FOUND',\n AUTHORIZATION_CODE_ALREADY_USED = 'AUTHORIZATION_CODE_ALREADY_USED',\n AUTHORIZATION_CODE_EXPIRED = 'AUTHORIZATION_CODE_EXPIRED',\n AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_ACCESS_TOKEN_EXPIRED = 'AUTHORIZATION_ACCESS_TOKEN_EXPIRED',\n AUTHORIZATION_INVALID_ACCESS_TOKEN = 'AUTHORIZATION_INVALID_ACCESS_TOKEN',\n AUTHORIZATION_MISSING_ACCESS_TOKEN = 'AUTHORIZATION_MISSING_ACCESS_TOKEN',\n AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE = 'AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE',\n AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE = 'AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE',\n AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN = 'AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN',\n AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE = 'AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE',\n AUTHORIZATION_UNSUPPORTED_GRANT_TYPE = 'AUTHORIZATION_UNSUPPORTED_GRANT_TYPE',\n AUTHORIZATION_REFRESH_TOKEN_MISSING = 'AUTHORIZATION_REFRESH_TOKEN_MISSING',\n AUTHORIZATION_REFRESH_TOKEN_EXPIRED = 'AUTHORIZATION_REFRESH_TOKEN_EXPIRED',\n AUTHORIZATION_REFRESH_TOKEN_INVALID = 'AUTHORIZATION_REFRESH_TOKEN_INVALID',\n AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REFRESH_TOKEN_REVOKED = 'AUTHORIZATION_REFRESH_TOKEN_REVOKED',\n AUTHORIZATION_USER_NOT_AUTHORIZED = 'AUTHORIZATION_USER_NOT_AUTHORIZED',\n responseNotManaged = 'response_not_managed',\n bankAccountsError = 'bank_accounts_error',\n refreshTokenError = 'refresh_token_error',\n\n // Balance Sheet\n invalidBalanceSheetList = 'invalid_balance_sheet_list',\n\n // FecFile\n insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',\n fecFileAlreadyExists = 'fec_file_already_exists',\n\n // User creation\n userAlreadyExistWithSociety = 'user-already-exists',\n userDoesNotExists = 'user-does-not-exist',\n userPermissionDoesNotExists = 'user-permission-does-not-exist',\n expiredSmsCode = 'expired-sms-code',\n userNotInFmaProcess = 'user-not-in-maf-process',\n wrongSmsCode = 'wrong-sms-code',\n userEmailAndPhoneAlreadyExist = 'user-username-and-phone-already-exist',\n userEmailAlreadyExist = 'user-username-already-exists',\n userPhoneAlreadyExist = 'user-phone-already-exists',\n couldNotFindUser = 'could-not-find-user',\n wrongBrandEmail = 'wrong-brand-email',\n\n // Cerfa\n civilityNotFound = 'civility_not_found',\n invalidData = 'invalidData',\n\n // Sponsorship\n emailAlreadyUsedForsponsorship = 'email_already_used_for_sponsorship',\n idSocietyAlreadyUsedForsponsorship = 'idSociety_already_used_for_sponsorship',\n sponsorshipCodeDoesntExist = 'sponsorship_code_doesnt_exist',\n sponsorshipLinkDoesntExist = 'sponsorship_link_doesnt_exist',\n societyNotFound = 'society_not_found',\n\n payloadIsEmpty = 'payload_is_empty',\n\n // PromoCode\n wrongPromoCode = 'wrong_promo_code',\n\n // Budget Fetch\n fetchNewBudgetInvalidSociety = 'fetch_new_budget_invalid_idSociety',\n fetchConnectionFailed = 'fetch_connection_failed',\n fetchBankAccountFailed = 'fetch_bank_account_failed',\n fetchTransactionsFailed = 'fetch_transactions_failed',\n fetchNewTokenFailed = 'fetch_new_token_failed',\n bankAccountDesactivationFailed = 'bank_account_desactivation_failed',\n udpateTokenFailed = 'update_token_failed',\n\n // Accounts\n GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',\n\n // Balance Sheet Questions\n UNKNOWN_ANSWER_VALUE = 'UNKNOWN_ANSWER_VALUE',\n QUESTION_NOT_FOUND = 'QUESTION_NOT_FOUND',\n QUESTION_DO_NOT_MATCH = 'QUESTION_DO_NOT_MATCH',\n QUESTION_ALREADY_EXISTS_IN_EXERCICE = 'QUESTION_ALREADY_EXISTS_IN_EXERCICE',\n\n // Fiscal period closing\n EXERCICE_ALREADY_CLOSED = 'EXERCICE_ALREADY_CLOSED',\n MISSING_ANNOTATIONS = 'MISSING_ANNOTATIONS',\n\n // jeDeclare errors\n ERR_INVALID_ARG_TYPE = 'ERR_INVALID_ARG_TYPE',\n\n // Society Vehicles\n MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',\n\n PREVIOUS_CHECKLIST_NOT_COMPLETED = 'previous_checklist_not_completed',\n CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',\n CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',\n CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',\n INVALID_BRAND = 'invalid_brand',\n INVALID_DAY = 'invalid_day',\n ENTITY_ALREADY_EXIST = 'entity_already_exist',\n\n // Gescom\n CAN_NOT_DELETE_DOCUMENT = 'can_not_delete_document',\n CAN_NOT_EDIT_INVOICE = 'can_not_edit_invoice',\n INVALID_INVOICE_TYPE = 'invalid_invoice_type',\n}\n\nexport interface IApiError {\n type: ErrorType;\n code: Code;\n message: string;\n param?: string;\n field?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IInvoiceRecurrence.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
|
package/js/types/index.js
CHANGED
|
@@ -3748,6 +3748,18 @@ Object.keys(_ITimeRecorder).forEach(function (key) {
|
|
|
3748
3748
|
});
|
|
3749
3749
|
});
|
|
3750
3750
|
|
|
3751
|
+
var _IInvoiceRecurrence = require("./Interface/models/IInvoiceRecurrence");
|
|
3752
|
+
|
|
3753
|
+
Object.keys(_IInvoiceRecurrence).forEach(function (key) {
|
|
3754
|
+
if (key === "default" || key === "__esModule") return;
|
|
3755
|
+
Object.defineProperty(exports, key, {
|
|
3756
|
+
enumerable: true,
|
|
3757
|
+
get: function () {
|
|
3758
|
+
return _IInvoiceRecurrence[key];
|
|
3759
|
+
}
|
|
3760
|
+
});
|
|
3761
|
+
});
|
|
3762
|
+
|
|
3751
3763
|
var _ILoanFile = require("./Interface/models/ILoanFile");
|
|
3752
3764
|
|
|
3753
3765
|
Object.keys(_ILoanFile).forEach(function (key) {
|
|
@@ -5176,6 +5188,18 @@ Object.keys(_ConnectionError).forEach(function (key) {
|
|
|
5176
5188
|
});
|
|
5177
5189
|
});
|
|
5178
5190
|
|
|
5191
|
+
var _RecurrenceType = require("./Enum/RecurrenceType");
|
|
5192
|
+
|
|
5193
|
+
Object.keys(_RecurrenceType).forEach(function (key) {
|
|
5194
|
+
if (key === "default" || key === "__esModule") return;
|
|
5195
|
+
Object.defineProperty(exports, key, {
|
|
5196
|
+
enumerable: true,
|
|
5197
|
+
get: function () {
|
|
5198
|
+
return _RecurrenceType[key];
|
|
5199
|
+
}
|
|
5200
|
+
});
|
|
5201
|
+
});
|
|
5202
|
+
|
|
5179
5203
|
var _ReadPartnerTransactionType = require("./Interface/api/partnerTransactionType/ReadPartnerTransactionType");
|
|
5180
5204
|
|
|
5181
5205
|
Object.keys(_ReadPartnerTransactionType).forEach(function (key) {
|