@silexpert/core 1.3.160 → 1.3.163
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/dist/cjs/api/resources/BalanceSheet.d.ts +2 -4
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +3 -2
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/Card.d.ts +2 -4
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +0 -1
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.d.ts +2 -1
- package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.js +9 -0
- package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +7 -0
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +61 -0
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +10 -0
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +14 -1
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.d.ts +7 -0
- package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.js +39 -0
- package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts +7 -0
- package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts.map +1 -0
- package/dist/cjs/types/Enum/TransactionRangeFilter.js +11 -0
- package/dist/cjs/types/Enum/TransactionRangeFilter.js.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js +11 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -0
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +6 -0
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +1 -0
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +9 -0
- package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +4 -13
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +9 -4
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -4
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +3 -2
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +2 -4
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +0 -1
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.js +9 -0
- package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +7 -0
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +61 -0
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +10 -0
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +13 -0
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.d.ts +7 -0
- package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.js +39 -0
- package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts +7 -0
- package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts.map +1 -0
- package/dist/mjs/types/Enum/TransactionRangeFilter.js +8 -0
- package/dist/mjs/types/Enum/TransactionRangeFilter.js.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js +10 -0
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -0
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +8 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +1 -0
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +11 -1
- package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -16
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +3 -1
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +4 -2
- package/ts/api/resources/Card.ts +2 -3
- package/ts/api/resources/GeneralLedger.ts +11 -0
- package/ts/types/Enum/BalanceSheet.ts +69 -0
- package/ts/types/Enum/Card.ts +14 -0
- package/ts/types/Enum/IncomeStatement.ts +47 -0
- package/ts/types/Enum/TransactionRangeFilter.ts +6 -0
- package/ts/types/Interface/api/balanceSheet/Query.ts +8 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +3 -0
- package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
- package/ts/types/Interface/api/card/UpdateCard.ts +6 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
- package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +9 -1
- package/ts/types/Interface/api/revenueMovement.ts +153 -9
- package/ts/types/Interface/api/revenueSnapshotGenerate.ts +13 -13
- package/ts/types/Interface/models/IImmobilization.ts +1 -0
- package/ts/utils/prestation.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCard.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyF;AACzF,6CAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"UpdateCard.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDA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ACP,IAAA,wBAAM,EAAC,gBAAS,CAAC;;yCACA;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;6CACe;AAKxB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0CACQ;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CardState, CardType, TransactionRangeFilter } from '../../../Enum/Card';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class AssignCard {\n @ApiProperty()\n @IsEnum(CardType)\n type: CardType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(TransactionRangeFilter)\n transactionRangeFilter?: TransactionRangeFilter;\n}\n\nexport class UpdateCardV2 {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n state?: CardState;\n\n @ApiPropertyOptional()\n @IsOptional()\n plannedAt?: Date | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n priority?: number;\n}\n\n/**\n * @deprecated Use UpdateCardV2 instead\n */\nexport class UpdateCard {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardType)\n type?: CardType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n isManual?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isBlocked?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardState)\n state?: CardState;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n plannedAt?: Date | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n letter?: string | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/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erThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qCAAqC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC,6BAA6B,CAAC,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC3C;AAED,qBAAa,4BAA4B;IAGvC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAKlB,IAAI,EAAE,MAAM,CAAK;IAKjB,KAAK,EAAE,MAAM,CAAO;IAMpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AAGrE,sFAA2E;
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AAGrE,sFAA2E;AAmC3E,MAAa,4BAA4B;IAAzC;QAgBE,SAAI,GAAW,CAAC,CAAC;QAKjB,UAAK,GAAW,GAAG,CAAC;IAOtB,CAAC;CAAA;AA5BD,oEA4BC;AAzBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;6DACC;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;+DACO;AAKlB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAKjB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS;AAMpB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mEACW","sourcesContent":["import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport interface IGeneralLedgerThirdParty {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: IGeneralLedgerAccountingEntry[];\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadIGeneralLedgerThirdPartyPaginated {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: BasePaginate<IGeneralLedgerAccountingEntry>;\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadGeneralLedgerSummary {\n idThirdParty: number;\n name: string;\n credit: number;\n debit: number;\n balance: number;\n identifier: string;\n initialBalance: number;\n entries?: IGeneralLedgerAccountingEntry[];\n}\n\nexport class QueryGeneralLedgerThirdParty {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n page: number = 1;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n limit: number = 100;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThirdPartyType } from '../../../Enum/ThirdPartyType';
|
|
1
2
|
export declare class QueryGeneralLedgerAuxiliary {
|
|
2
3
|
dateStart: string;
|
|
3
4
|
dateEnd: string;
|
|
@@ -9,4 +10,12 @@ export declare class QueryGeneralLedgerAuxiliary {
|
|
|
9
10
|
search?: string;
|
|
10
11
|
idThirdParty?: number;
|
|
11
12
|
}
|
|
13
|
+
export type LetteringState = 'all' | 'only' | 'none';
|
|
14
|
+
export declare class QueryGeneralLedgerAuxiliaryPdf {
|
|
15
|
+
startDate: string;
|
|
16
|
+
endDate: string;
|
|
17
|
+
idThirdPartyType?: ThirdPartyType;
|
|
18
|
+
idThirdParty?: number[];
|
|
19
|
+
lettering?: LetteringState;
|
|
20
|
+
}
|
|
12
21
|
//# sourceMappingURL=QueryGeneralLedgerAuxiliary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryGeneralLedgerAuxiliary.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryGeneralLedgerAuxiliary.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,qBAAa,2BAA2B;IAGtC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAMb,aAAa,CAAC,EAAE,OAAO,CAAC;IAMxB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,qBAAa,8BAA8B;IAGzC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAIlC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryGeneralLedgerAuxiliary = void 0;
|
|
12
|
+
exports.QueryGeneralLedgerAuxiliaryPdf = exports.QueryGeneralLedgerAuxiliary = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -71,4 +71,33 @@ __decorate([
|
|
|
71
71
|
(0, class_validator_1.IsOptional)(),
|
|
72
72
|
__metadata("design:type", Number)
|
|
73
73
|
], QueryGeneralLedgerAuxiliary.prototype, "idThirdParty", void 0);
|
|
74
|
+
class QueryGeneralLedgerAuxiliaryPdf {
|
|
75
|
+
}
|
|
76
|
+
exports.QueryGeneralLedgerAuxiliaryPdf = QueryGeneralLedgerAuxiliaryPdf;
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.ApiProperty)(),
|
|
79
|
+
(0, class_validator_1.IsDateString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], QueryGeneralLedgerAuxiliaryPdf.prototype, "startDate", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.ApiProperty)(),
|
|
84
|
+
(0, class_validator_1.IsDateString)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], QueryGeneralLedgerAuxiliaryPdf.prototype, "endDate", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdPartyType", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdParty", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
99
|
+
(0, class_validator_1.IsEnum)(['all', 'only', 'none']),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], QueryGeneralLedgerAuxiliaryPdf.prototype, "lettering", void 0);
|
|
74
103
|
//# sourceMappingURL=QueryGeneralLedgerAuxiliary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryGeneralLedgerAuxiliary.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"QueryGeneralLedgerAuxiliary.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8G;AAC9G,6CAAqE;AACrE,sFAA2E;AAC3E,8GAAmG;AACnG,iEAA8D;AAE9D,MAAa,2BAA2B;CA4CvC;AA5CD,kEA4CC;AAzCC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;8DACN;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;4DACR;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,+BAAc,CAAC;;qEACE;AAKzB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;0DACO;AAKd;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACM;AAMb;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,+DAA+D,EAAE,CAAC;IAClH,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACW;AAMxB;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACQ;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACG;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACS;AAKxB,MAAa,8BAA8B;CAqB1C;AArBD,wEAqBC;AAlBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;iEACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACC;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;wEACqB;AAIlC;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;oEACW;AAKxB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,wBAAM,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,IAAA,4BAAU,GAAE;;iEACc","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber, IsDateString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';\nimport { ThirdPartyType } from '../../../Enum/ThirdPartyType';\n\nexport class QueryGeneralLedgerAuxiliary {\n @ApiProperty()\n @IsFormattedDateString()\n dateStart: string;\n\n @ApiProperty()\n @IsFormattedDateString()\n dateEnd: string;\n\n @ApiProperty()\n @IsEnum(ThirdPartyType)\n idThirdPartyType: number;\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: false, describe: 'If set to true, it will search only entries with no lettering' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n}\n\nexport type LetteringState = 'all' | 'only' | 'none';\n\nexport class QueryGeneralLedgerAuxiliaryPdf {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n idThirdPartyType?: ThirdPartyType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idThirdParty?: number[];\n\n @ApiPropertyOptional()\n @IsEnum(['all', 'only', 'none'])\n @IsOptional()\n lettering?: LetteringState;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryIncomeStatement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryIncomeStatement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":"AAIA,qBAAa,oBAAoB;IAE/B,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAElC,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAMhB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -10,7 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.QueryIncomeStatementPdf = exports.QueryIncomeStatement = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
13
14
|
const utils_1 = require("../../../../utils");
|
|
15
|
+
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
14
16
|
class QueryIncomeStatement {
|
|
15
17
|
}
|
|
16
18
|
exports.QueryIncomeStatement = QueryIncomeStatement;
|
|
@@ -33,4 +35,11 @@ __decorate([
|
|
|
33
35
|
(0, utils_1.ApiProperty)(),
|
|
34
36
|
__metadata("design:type", String)
|
|
35
37
|
], QueryIncomeStatementPdf.prototype, "endDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
(0, boolean_transform_1.ToBoolean)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], QueryIncomeStatementPdf.prototype, "withDetails", void 0);
|
|
36
45
|
//# sourceMappingURL=QueryIncomeStatement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryIncomeStatement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"QueryIncomeStatement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6CAAqE;AACrE,sFAA2E;AAE3E,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAJC;IADC,IAAA,mBAAW,GAAE;;uDACI;AAGlB;IADC,IAAA,mBAAW,GAAE;;qDACE;AAGlB,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAVC;IADC,IAAA,mBAAW,GAAE;;0DACI;AAGlB;IADC,IAAA,mBAAW,GAAE;;wDACE;AAMhB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACS","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryIncomeStatement {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n}\n\nexport class QueryIncomeStatementPdf {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withDetails?: boolean;\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import { RevenueMovementType } from '../../Enum/Revenue';
|
|
|
2
2
|
/**
|
|
3
3
|
* DTO pour créer un mouvement de revenu
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class ICreateRevenueMovementRequest {
|
|
6
6
|
type: RevenueMovementType;
|
|
7
7
|
idSociety: number;
|
|
8
8
|
idExercice?: number;
|
|
@@ -19,7 +19,7 @@ export interface ICreateRevenueMovementRequest {
|
|
|
19
19
|
/**
|
|
20
20
|
* DTO pour mettre à jour un mouvement de revenu
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare class IUpdateRevenueMovementRequest {
|
|
23
23
|
type?: RevenueMovementType;
|
|
24
24
|
idTerminationList?: number;
|
|
25
25
|
idChurnMovement?: number;
|
|
@@ -33,7 +33,7 @@ export interface IUpdateRevenueMovementRequest {
|
|
|
33
33
|
/**
|
|
34
34
|
* Filtres pour récupérer les mouvements de revenu
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export declare class IGetRevenueMovementsRequest {
|
|
37
37
|
idSociety?: number;
|
|
38
38
|
idExercice?: number;
|
|
39
39
|
idPrestation?: number;
|
|
@@ -58,7 +58,7 @@ export interface IGetRevenueMovementsResponse {
|
|
|
58
58
|
/**
|
|
59
59
|
* DTO pour générer un snapshot de revenu
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export declare class IGenerateSnapshotRequest {
|
|
62
62
|
date?: string;
|
|
63
63
|
idSociety?: number;
|
|
64
64
|
idExercice?: number;
|
|
@@ -66,24 +66,25 @@ export interface IGenerateSnapshotRequest {
|
|
|
66
66
|
/**
|
|
67
67
|
* DTO pour générer tous les snapshots de revenu
|
|
68
68
|
*/
|
|
69
|
-
export
|
|
69
|
+
export declare class IGenerateAllSnapshotsRequest {
|
|
70
70
|
date?: string;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* DTO pour gérer la rétroactivité des mouvements de revenu
|
|
74
74
|
*/
|
|
75
|
-
export
|
|
75
|
+
export declare class IManageRetroactivityRequest {
|
|
76
76
|
idSociety: number;
|
|
77
77
|
idExercice?: number;
|
|
78
|
+
date?: Date;
|
|
78
79
|
}
|
|
79
80
|
/**
|
|
80
81
|
* Réponse pour la gestion de la rétroactivité
|
|
81
82
|
*/
|
|
82
83
|
export interface IManageRetroactivityResponse {
|
|
83
84
|
idSociety: number;
|
|
84
|
-
idExercice: number;
|
|
85
|
-
exerciceStartDate: Date;
|
|
86
|
-
exerciceEndDate: Date;
|
|
85
|
+
idExercice: number[];
|
|
86
|
+
exerciceStartDate: Date[];
|
|
87
|
+
exerciceEndDate: Date[];
|
|
87
88
|
movementsCreated: {
|
|
88
89
|
bookings: number;
|
|
89
90
|
churns: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueMovement.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"revenueMovement.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;GAE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E,IAAI,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CACL"}
|
|
@@ -1,3 +1,275 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IManageRetroactivityRequest = exports.IGenerateAllSnapshotsRequest = exports.IGenerateSnapshotRequest = exports.IGetRevenueMovementsRequest = exports.IUpdateRevenueMovementRequest = exports.ICreateRevenueMovementRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const Revenue_1 = require("../../Enum/Revenue");
|
|
15
|
+
const utils_1 = require("../../../utils");
|
|
16
|
+
/**
|
|
17
|
+
* DTO pour créer un mouvement de revenu
|
|
18
|
+
*/
|
|
19
|
+
class ICreateRevenueMovementRequest {
|
|
20
|
+
}
|
|
21
|
+
exports.ICreateRevenueMovementRequest = ICreateRevenueMovementRequest;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, utils_1.ApiProperty)(),
|
|
24
|
+
(0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], ICreateRevenueMovementRequest.prototype, "type", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, utils_1.ApiProperty)(),
|
|
29
|
+
(0, class_validator_1.IsInt)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsInt)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsInt)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsInt)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsInt)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, utils_1.ApiProperty)(),
|
|
58
|
+
(0, class_validator_1.IsInt)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ICreateRevenueMovementRequest.prototype, "amount", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.ApiProperty)(),
|
|
63
|
+
(0, class_validator_1.IsInt)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, utils_1.ApiProperty)(),
|
|
68
|
+
(0, class_validator_1.IsInt)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], ICreateRevenueMovementRequest.prototype, "arr", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, utils_1.ApiProperty)(),
|
|
73
|
+
(0, class_validator_1.IsDate)(),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], ICreateRevenueMovementRequest.prototype, "description", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsObject)(),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], ICreateRevenueMovementRequest.prototype, "metadata", void 0);
|
|
88
|
+
/**
|
|
89
|
+
* DTO pour mettre à jour un mouvement de revenu
|
|
90
|
+
*/
|
|
91
|
+
class IUpdateRevenueMovementRequest {
|
|
92
|
+
}
|
|
93
|
+
exports.IUpdateRevenueMovementRequest = IUpdateRevenueMovementRequest;
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
97
|
+
(0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], IUpdateRevenueMovementRequest.prototype, "type", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsInt)(),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
(0, class_validator_1.IsInt)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
114
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
(0, class_validator_1.IsNumber)(),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_validator_1.IsInt)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
(0, class_validator_1.IsInt)(),
|
|
128
|
+
__metadata("design:type", Number)
|
|
129
|
+
], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
(0, class_validator_1.IsDate)(),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
138
|
+
(0, class_validator_1.IsOptional)(),
|
|
139
|
+
(0, class_validator_1.IsString)(),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], IUpdateRevenueMovementRequest.prototype, "description", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
144
|
+
(0, class_validator_1.IsOptional)(),
|
|
145
|
+
(0, class_validator_1.IsObject)(),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], IUpdateRevenueMovementRequest.prototype, "metadata", void 0);
|
|
148
|
+
/**
|
|
149
|
+
* Filtres pour récupérer les mouvements de revenu
|
|
150
|
+
*/
|
|
151
|
+
class IGetRevenueMovementsRequest {
|
|
152
|
+
}
|
|
153
|
+
exports.IGetRevenueMovementsRequest = IGetRevenueMovementsRequest;
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
156
|
+
(0, class_validator_1.IsOptional)(),
|
|
157
|
+
(0, class_validator_1.IsInt)(),
|
|
158
|
+
__metadata("design:type", Number)
|
|
159
|
+
], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
162
|
+
(0, class_validator_1.IsOptional)(),
|
|
163
|
+
(0, class_validator_1.IsInt)(),
|
|
164
|
+
__metadata("design:type", Number)
|
|
165
|
+
], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
168
|
+
(0, class_validator_1.IsOptional)(),
|
|
169
|
+
(0, class_validator_1.IsInt)(),
|
|
170
|
+
__metadata("design:type", Number)
|
|
171
|
+
], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
174
|
+
(0, class_validator_1.IsOptional)(),
|
|
175
|
+
(0, class_validator_1.IsInt)(),
|
|
176
|
+
__metadata("design:type", Number)
|
|
177
|
+
], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
180
|
+
(0, class_validator_1.IsOptional)(),
|
|
181
|
+
(0, class_validator_1.IsInt)(),
|
|
182
|
+
__metadata("design:type", Number)
|
|
183
|
+
], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
186
|
+
(0, class_validator_1.IsOptional)(),
|
|
187
|
+
(0, class_validator_1.IsArray)(),
|
|
188
|
+
(0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType, { each: true }),
|
|
189
|
+
__metadata("design:type", Array)
|
|
190
|
+
], IGetRevenueMovementsRequest.prototype, "type", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
193
|
+
(0, class_validator_1.IsOptional)(),
|
|
194
|
+
(0, class_validator_1.IsDate)(),
|
|
195
|
+
__metadata("design:type", Object)
|
|
196
|
+
], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
199
|
+
(0, class_validator_1.IsOptional)(),
|
|
200
|
+
(0, class_validator_1.IsDate)(),
|
|
201
|
+
__metadata("design:type", Object)
|
|
202
|
+
], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
205
|
+
(0, class_validator_1.IsOptional)(),
|
|
206
|
+
(0, class_validator_1.IsInt)(),
|
|
207
|
+
__metadata("design:type", Number)
|
|
208
|
+
], IGetRevenueMovementsRequest.prototype, "page", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
211
|
+
(0, class_validator_1.IsOptional)(),
|
|
212
|
+
(0, class_validator_1.IsInt)(),
|
|
213
|
+
__metadata("design:type", Number)
|
|
214
|
+
], IGetRevenueMovementsRequest.prototype, "limit", void 0);
|
|
215
|
+
/**
|
|
216
|
+
* DTO pour générer un snapshot de revenu
|
|
217
|
+
*/
|
|
218
|
+
class IGenerateSnapshotRequest {
|
|
219
|
+
}
|
|
220
|
+
exports.IGenerateSnapshotRequest = IGenerateSnapshotRequest;
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
223
|
+
(0, class_validator_1.IsOptional)(),
|
|
224
|
+
(0, class_validator_1.IsDate)(),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], IGenerateSnapshotRequest.prototype, "date", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
229
|
+
(0, class_validator_1.IsOptional)(),
|
|
230
|
+
(0, class_validator_1.IsInt)(),
|
|
231
|
+
__metadata("design:type", Number)
|
|
232
|
+
], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
235
|
+
(0, class_validator_1.IsOptional)(),
|
|
236
|
+
(0, class_validator_1.IsInt)(),
|
|
237
|
+
__metadata("design:type", Number)
|
|
238
|
+
], IGenerateSnapshotRequest.prototype, "idExercice", void 0);
|
|
239
|
+
/**
|
|
240
|
+
* DTO pour générer tous les snapshots de revenu
|
|
241
|
+
*/
|
|
242
|
+
class IGenerateAllSnapshotsRequest {
|
|
243
|
+
}
|
|
244
|
+
exports.IGenerateAllSnapshotsRequest = IGenerateAllSnapshotsRequest;
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
247
|
+
(0, class_validator_1.IsOptional)(),
|
|
248
|
+
(0, class_validator_1.IsDate)(),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], IGenerateAllSnapshotsRequest.prototype, "date", void 0);
|
|
251
|
+
/**
|
|
252
|
+
* DTO pour gérer la rétroactivité des mouvements de revenu
|
|
253
|
+
*/
|
|
254
|
+
class IManageRetroactivityRequest {
|
|
255
|
+
}
|
|
256
|
+
exports.IManageRetroactivityRequest = IManageRetroactivityRequest;
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
259
|
+
(0, class_validator_1.IsOptional)(),
|
|
260
|
+
(0, class_validator_1.IsInt)(),
|
|
261
|
+
__metadata("design:type", Number)
|
|
262
|
+
], IManageRetroactivityRequest.prototype, "idSociety", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
265
|
+
(0, class_validator_1.IsOptional)(),
|
|
266
|
+
(0, class_validator_1.IsInt)(),
|
|
267
|
+
__metadata("design:type", Number)
|
|
268
|
+
], IManageRetroactivityRequest.prototype, "idExercice", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
271
|
+
(0, class_validator_1.IsOptional)(),
|
|
272
|
+
(0, class_validator_1.IsDate)(),
|
|
273
|
+
__metadata("design:type", Date)
|
|
274
|
+
], IManageRetroactivityRequest.prototype, "date", void 0);
|
|
3
275
|
//# sourceMappingURL=revenueMovement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"","sourcesContent":["import { RevenueMovementType } from '../../Enum/Revenue';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport
|
|
1
|
+
{"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;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AAA,uBAAK,GAAE;;+DACY;AAKpB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACF,IAAI;yDAAC","sourcesContent":["import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '../../../utils';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|