@silexpert/core 1.3.105 → 1.3.106-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/BankDedup.js +5 -1
  3. package/dist/cjs/api/resources/BankDedup.js.map +1 -1
  4. package/dist/cjs/api/resources/IncomeAllocation.d.ts +0 -2
  5. package/dist/cjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/IncomeAllocation.js +0 -4
  7. package/dist/cjs/api/resources/IncomeAllocation.js.map +1 -1
  8. package/dist/cjs/api/resources/Payment.d.ts +3 -1
  9. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Payment.js +3 -0
  11. package/dist/cjs/api/resources/Payment.js.map +1 -1
  12. package/dist/cjs/api/resources/Registration.d.ts +2 -1
  13. package/dist/cjs/api/resources/Registration.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Registration.js +3 -0
  15. package/dist/cjs/api/resources/Registration.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +0 -6
  17. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  20. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +2 -54
  22. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  24. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  27. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +17 -9
  29. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  31. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js +9 -1
  33. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  35. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
  38. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/stripe/Create.js +13 -1
  40. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  42. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +6 -0
  44. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  45. package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/BankDedup.js +5 -1
  47. package/dist/mjs/api/resources/BankDedup.js.map +1 -1
  48. package/dist/mjs/api/resources/IncomeAllocation.d.ts +0 -2
  49. package/dist/mjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  50. package/dist/mjs/api/resources/IncomeAllocation.js +0 -4
  51. package/dist/mjs/api/resources/IncomeAllocation.js.map +1 -1
  52. package/dist/mjs/api/resources/Payment.d.ts +3 -1
  53. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  54. package/dist/mjs/api/resources/Payment.js +3 -0
  55. package/dist/mjs/api/resources/Payment.js.map +1 -1
  56. package/dist/mjs/api/resources/Registration.d.ts +2 -1
  57. package/dist/mjs/api/resources/Registration.d.ts.map +1 -1
  58. package/dist/mjs/api/resources/Registration.js +3 -0
  59. package/dist/mjs/api/resources/Registration.js.map +1 -1
  60. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +0 -6
  61. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  63. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  64. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +1 -61
  66. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  67. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  68. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  69. package/dist/mjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  70. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  71. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  72. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +18 -9
  73. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  74. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  75. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js +8 -0
  77. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  78. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  79. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  80. package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  81. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
  82. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  83. package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
  84. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -1
  88. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  89. package/package.json +1 -1
  90. package/ts/api/resources/BankDedup.ts +6 -1
  91. package/ts/api/resources/IncomeAllocation.ts +0 -5
  92. package/ts/api/resources/Payment.ts +6 -0
  93. package/ts/api/resources/Registration.ts +6 -0
  94. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +0 -3
  95. package/ts/types/Interface/api/bankDedup/BankDedup.ts +3 -52
  96. package/ts/types/Interface/api/cerfa/Utils.ts +2 -0
  97. package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +25 -18
  98. package/ts/types/Interface/api/registration/QueryRegistration.ts +6 -0
  99. package/ts/types/Interface/api/registration/ReadRegistration.ts +4 -0
  100. package/ts/types/Interface/api/stripe/Create.ts +9 -0
  101. package/ts/types/Interface/api/stripe/QueryStripe.ts +6 -1
@@ -36,7 +36,7 @@ export class BankDedupAnalysisParams {
36
36
  }
37
37
  __decorate([
38
38
  ApiProperty(),
39
- __metadata("design:type", File)
39
+ __metadata("design:type", Object)
40
40
  ], BankDedupAnalysisParams.prototype, "csv", void 0);
41
41
  __decorate([
42
42
  ApiProperty(),
@@ -343,64 +343,4 @@ __decorate([
343
343
  IsArray(),
344
344
  __metadata("design:type", Array)
345
345
  ], BankDedupGroup.prototype, "transactions", void 0);
346
- export class BankDedupImpossible {
347
- success;
348
- reason;
349
- message;
350
- initial;
351
- target;
352
- finalRaw;
353
- diffBefore;
354
- bestAttempt;
355
- stats;
356
- }
357
- __decorate([
358
- ApiProperty(),
359
- IsBoolean(),
360
- __metadata("design:type", Boolean)
361
- ], BankDedupImpossible.prototype, "success", void 0);
362
- __decorate([
363
- ApiProperty(),
364
- IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
365
- __metadata("design:type", String)
366
- ], BankDedupImpossible.prototype, "reason", void 0);
367
- __decorate([
368
- ApiProperty(),
369
- IsString(),
370
- __metadata("design:type", String)
371
- ], BankDedupImpossible.prototype, "message", void 0);
372
- __decorate([
373
- ApiProperty(),
374
- IsOptional(),
375
- IsNumber(),
376
- __metadata("design:type", Number)
377
- ], BankDedupImpossible.prototype, "initial", void 0);
378
- __decorate([
379
- ApiProperty(),
380
- IsOptional(),
381
- IsNumber(),
382
- __metadata("design:type", Number)
383
- ], BankDedupImpossible.prototype, "target", void 0);
384
- __decorate([
385
- ApiProperty(),
386
- IsOptional(),
387
- IsNumber(),
388
- __metadata("design:type", Number)
389
- ], BankDedupImpossible.prototype, "finalRaw", void 0);
390
- __decorate([
391
- ApiProperty(),
392
- IsOptional(),
393
- IsNumber(),
394
- __metadata("design:type", Number)
395
- ], BankDedupImpossible.prototype, "diffBefore", void 0);
396
- __decorate([
397
- ApiProperty(),
398
- IsOptional(),
399
- __metadata("design:type", Object)
400
- ], BankDedupImpossible.prototype, "bestAttempt", void 0);
401
- __decorate([
402
- ApiProperty(),
403
- IsOptional(),
404
- __metadata("design:type", Object)
405
- ], BankDedupImpossible.prototype, "stats", void 0);
406
346
  //# sourceMappingURL=BankDedup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["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mBAAmB;IAG9B,OAAO,CAAQ;IAIf,MAAM,CAA2F;IAIjG,OAAO,CAAS;IAKhB,OAAO,CAAU;IAKjB,MAAM,CAAU;IAKhB,QAAQ,CAAU;IAKlB,UAAU,CAAU;IAIpB,WAAW,CAIT;IAIF,KAAK,CAIH;CACH;AA7CC;IAFC,WAAW,EAAE;IACb,SAAS,EAAE;;oDACG;AAIf;IAFC,WAAW,EAAE;IACb,IAAI,CAAC,CAAC,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,yBAAyB,CAAC,CAAC;;mDACG;AAIjG;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACK;AAKhB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACM;AAKjB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACK;AAKhB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACO;AAKlB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;uDACS;AAIpB;IAFC,WAAW,EAAE;IACb,UAAU,EAAE;;wDAKX;AAIF;IAFC,WAAW,EAAE;IACb,UAAU,EAAE;;kDAKX","sourcesContent":["import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class BankDedupRequest {\n @ApiProperty()\n @IsString()\n csv: string; // CSV en string (avec header: label,dateValue,credit,debit)\n\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankDedupAnalysisParams {\n @ApiProperty()\n csv: File;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n}\n\nexport class BankDedupFileUploadBody {\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankTx {\n @ApiProperty()\n @IsString()\n id: string; // id interne généré\n\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n dateValue: string; // YYYY-MM-DD\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // 1 = crédit net, -1 = débit net\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n amount: number; // valeur absolue du mouvement (en positif)\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes pour calculs exacts\n}\n\nexport class DuplicateGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty({ type: [BankTx] })\n @IsArray()\n @ValidateNested({ each: true })\n transactions: BankTx[];\n\n @ApiProperty()\n @IsNumber()\n amount: number; // montant commun\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // signe commun\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence: number; // score de confiance [0 - 1]\n\n @ApiProperty()\n @IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low'])\n method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low'; // méthode de détection\n}\n\nexport class BankDedupRemovedTx {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupResult {\n @ApiProperty()\n @IsBoolean()\n success: true;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n\n @ApiProperty()\n @IsNumber()\n finalRaw: number;\n\n @ApiProperty()\n @IsNumber()\n finalAfterDedup: number;\n\n @ApiProperty()\n @IsNumber()\n diffBefore: number; // target - finalRaw\n\n @ApiProperty()\n @IsNumber()\n diffAfter: number; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n removedTxs: BankDedupRemovedTx[];\n\n @ApiProperty()\n @IsNumber()\n removedCount: number;\n\n @ApiProperty()\n @IsNumber()\n keptCount: number;\n\n @ApiProperty()\n @IsString()\n csvDeduped: string;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n allGroups: BankDedupGroup[];\n\n @ApiProperty()\n debug: {\n totalGroups: number;\n selectedGroups: number;\n iterations: number;\n strategiesUsed: string[];\n };\n}\n\nexport class BankDedupGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupImpossible {\n @ApiProperty()\n @IsBoolean()\n success: false;\n\n @ApiProperty()\n @IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])\n reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';\n\n @ApiProperty()\n @IsString()\n message: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n initial?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n target?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n finalRaw?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n diffBefore?: number;\n\n @ApiProperty()\n @IsOptional()\n bestAttempt?: {\n finalAfterDedup: number;\n diffAfter: number;\n removedCount: number;\n };\n\n @ApiProperty()\n @IsOptional()\n stats?: {\n totalTx?: number;\n totalGroups?: number;\n strategiesTried?: string[];\n };\n}\n\nexport type BankDedupResponse = BankDedupResult | BankDedupImpossible;\n"]}
1
+ {"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,MAAM,OAAO,gBAAgB;IAG3B,GAAG,CAAS,CAAC,4DAA4D;IAIzE,OAAO,CAAS,CAAC,gBAAgB;IAIjC,MAAM,CAAS,CAAC,cAAc;CAC/B;AATC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACC;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gDACI;AAGjB,MAAM,OAAO,uBAAuB;IAElC,GAAG,CAAS;IAIZ,OAAO,CAAS;IAIhB,MAAM,CAAS;CAChB;AATC;IADC,WAAW,EAAE;;oDACF;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAA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;AAtCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0CACA;AAIX;IAFC,WAAW,EAAE;IACb,SAAS,EAAE;;kDACQ;AAOpB;IALC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,CAAC;IACN,GAAG,CAAC,CAAC,CAAC;;kDACa;AAKpB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACK;AAKhB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACK;AAKhB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACe;AAK1B;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,OAAO,EAAE;;oDAON","sourcesContent":["import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { TFile2 } from '../file/TFile';\n\nexport class BankDedupRequest {\n @ApiProperty()\n @IsString()\n csv: string; // CSV en string (avec header: label,dateValue,credit,debit)\n\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankDedupAnalysisParams {\n @ApiProperty()\n csv: TFile2;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n}\n\nexport class BankDedupFileUploadBody {\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankTx {\n @ApiProperty()\n @IsString()\n id: string; // id interne généré\n\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n dateValue: string; // YYYY-MM-DD\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // 1 = crédit net, -1 = débit net\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n amount: number; // valeur absolue du mouvement (en positif)\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes pour calculs exacts\n}\n\nexport class DuplicateGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty({ type: [BankTx] })\n @IsArray()\n @ValidateNested({ each: true })\n transactions: BankTx[];\n\n @ApiProperty()\n @IsNumber()\n amount: number; // montant commun\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // signe commun\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence: number; // score de confiance [0 - 1]\n\n @ApiProperty()\n @IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low'])\n method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low'; // méthode de détection\n}\n\nexport class BankDedupRemovedTx {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupResult {\n @ApiProperty()\n @IsBoolean()\n success: true;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n\n @ApiProperty()\n @IsNumber()\n finalRaw: number;\n\n @ApiProperty()\n @IsNumber()\n finalAfterDedup: number;\n\n @ApiProperty()\n @IsNumber()\n diffBefore: number; // target - finalRaw\n\n @ApiProperty()\n @IsNumber()\n diffAfter: number; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n removedTxs: BankDedupRemovedTx[];\n\n @ApiProperty()\n @IsNumber()\n removedCount: number;\n\n @ApiProperty()\n @IsNumber()\n keptCount: number;\n\n @ApiProperty()\n @IsString()\n csvDeduped: string;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n allGroups: BankDedupGroup[];\n\n @ApiProperty()\n debug: {\n totalGroups: number;\n selectedGroups: number;\n iterations: number;\n strategiesUsed: string[];\n };\n}\n\nexport class BankDedupGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport type BankDedupResponse = BankDedupResult;\n"]}
@@ -11,7 +11,9 @@ export interface PartnersNaturalPersonPayment {
11
11
  paymentYear: number;
12
12
  emolumentsAndCompensations?: number;
13
13
  fixedCompensations?: number;
14
+ fixedCompensations2?: number;
14
15
  reimbursements?: number;
16
+ reimbursements2?: number;
15
17
  }
16
18
  export interface PartnersNaturalPerson {
17
19
  address: CerfaAddressFromQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/Utils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,wBAAwB,CAAC;IAClC,cAAc,EA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B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,wBAAwB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/Utils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,wBAAwB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,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AM,WAAW,SAAS;IACxB,OAAO,EAAE,wBAAwB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/Utils.ts"],"names":[],"mappings":"","sourcesContent":["export interface PartnersLegalEntity {\n address: CerfaAddressFromQuestion;\n holdingPercent: number;\n legalForm: string;\n name: string;\n shareNumber: number;\n siret: string;\n isParentCompany?: boolean;\n}\n\nexport interface PartnersNaturalPersonPayment {\n paymentYear: number;\n emolumentsAndCompensations?: number;\n fixedCompensations?: number;\n reimbursements?: number;\n}\n\nexport interface PartnersNaturalPerson {\n address: CerfaAddressFromQuestion;\n birthDate: string;\n birthDepartment: string;\n birthPlace: string;\n firstname: string;\n holdingPercent: number;\n\n /**\n * Should be an id from the country list\n */\n idBirthCountry: number;\n\n /**\n * Should be an id from the civility list\n */\n idCivility: number;\n individualProfessionalExpenses: number;\n isOwner: boolean;\n lastname: string;\n marriedName: string;\n payments?: PartnersNaturalPersonPayment[];\n shareNumber: number;\n taxNumber: string;\n}\n\nexport interface CerfaPartners {\n legalEntities: PartnersLegalEntity[];\n naturalPersons: PartnersNaturalPerson[];\n}\n\nexport interface CerfaAddressFromQuestion {\n city: string | null;\n idCountry: number | null;\n number: string | null;\n street: string | null;\n zipCode: string | null;\n}\n\nexport interface NameAndAddress {\n city: string;\n idCountry: number;\n name: string;\n number: string;\n street: string;\n zipCode: string;\n}\n\nexport interface Affiliate {\n address: CerfaAddressFromQuestion;\n holdingPercent: number;\n legalForm: string;\n name: string;\n siret: string;\n}\n\nexport interface OtherActivity {\n legalForm: string;\n name: string;\n salary: number;\n}\n\nexport interface LabelAndAmount {\n amount: number;\n label: string;\n}\n\nexport interface OtherAllocation {\n amount: number;\n label: string;\n}\n\nexport interface ImmobilizationSelected {\n id: number;\n label: string;\n}\n"]}
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/cerfa/Utils.ts"],"names":[],"mappings":"","sourcesContent":["export interface PartnersLegalEntity {\n address: CerfaAddressFromQuestion;\n holdingPercent: number;\n legalForm: string;\n name: string;\n shareNumber: number;\n siret: string;\n isParentCompany?: boolean;\n}\n\nexport interface PartnersNaturalPersonPayment {\n paymentYear: number;\n emolumentsAndCompensations?: number;\n fixedCompensations?: number;\n fixedCompensations2?: number;\n reimbursements?: number;\n reimbursements2?: number;\n}\n\nexport interface PartnersNaturalPerson {\n address: CerfaAddressFromQuestion;\n birthDate: string;\n birthDepartment: string;\n birthPlace: string;\n firstname: string;\n holdingPercent: number;\n\n /**\n * Should be an id from the country list\n */\n idBirthCountry: number;\n\n /**\n * Should be an id from the civility list\n */\n idCivility: number;\n individualProfessionalExpenses: number;\n isOwner: boolean;\n lastname: string;\n marriedName: string;\n payments?: PartnersNaturalPersonPayment[];\n shareNumber: number;\n taxNumber: string;\n}\n\nexport interface CerfaPartners {\n legalEntities: PartnersLegalEntity[];\n naturalPersons: PartnersNaturalPerson[];\n}\n\nexport interface CerfaAddressFromQuestion {\n city: string | null;\n idCountry: number | null;\n number: string | null;\n street: string | null;\n zipCode: string | null;\n}\n\nexport interface NameAndAddress {\n city: string;\n idCountry: number;\n name: string;\n number: string;\n street: string;\n zipCode: string;\n}\n\nexport interface Affiliate {\n address: CerfaAddressFromQuestion;\n holdingPercent: number;\n legalForm: string;\n name: string;\n siret: string;\n}\n\nexport interface OtherActivity {\n legalForm: string;\n name: string;\n salary: number;\n}\n\nexport interface LabelAndAmount {\n amount: number;\n label: string;\n}\n\nexport interface OtherAllocation {\n amount: number;\n label: string;\n}\n\nexport interface ImmobilizationSelected {\n id: number;\n label: string;\n}\n"]}
@@ -1,16 +1,17 @@
1
1
  export declare class CreateIncomeAllocation {
2
2
  amount: number;
3
3
  idExercice: number;
4
+ isWaiting?: boolean;
4
5
  idFile?: number;
5
6
  dateValue?: string | undefined;
6
- debitReport: number;
7
- creditReport: number;
8
- statutoryReserve: number;
9
- legalReserve: number;
10
- regulatedReserve: number;
11
- unavailableReserve: number;
12
- optionalReserve: number;
13
- levyOnReserve: number;
14
- dividend: number;
7
+ debitReport?: number;
8
+ creditReport?: number;
9
+ statutoryReserve?: number;
10
+ legalReserve?: number;
11
+ regulatedReserve?: number;
12
+ unavailableReserve?: number;
13
+ optionalReserve?: number;
14
+ levyOnReserve?: number;
15
+ dividend?: number;
15
16
  }
16
17
  //# sourceMappingURL=CreateIncomeAllocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateIncomeAllocation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts"],"names":[],"mappings":"AAEA,qBAAa,sBAAsB;IAEjC,MAAM,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG/B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,kBAAkB,EAAE,MAAM,CAAC;IAG3B,eAAe,EAAE,MAAM,CAAC;IAGxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"CreateIncomeAllocation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts"],"names":[],"mappings":"AAIA,qBAAa,sBAAsB;IAEjC,MAAM,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,MAAM,CAAC;IAKnB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -7,10 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
+ import { IsBoolean } from 'class-validator';
10
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
11
13
  export class CreateIncomeAllocation {
12
14
  amount;
13
15
  idExercice;
16
+ isWaiting;
14
17
  idFile;
15
18
  dateValue;
16
19
  debitReport;
@@ -31,6 +34,12 @@ __decorate([
31
34
  ApiProperty(),
32
35
  __metadata("design:type", Number)
33
36
  ], CreateIncomeAllocation.prototype, "idExercice", void 0);
37
+ __decorate([
38
+ ApiPropertyOptional({ description: 'If true, it will affect the amount into an account 117000.' }),
39
+ IsBoolean(),
40
+ ToBoolean(),
41
+ __metadata("design:type", Boolean)
42
+ ], CreateIncomeAllocation.prototype, "isWaiting", void 0);
34
43
  __decorate([
35
44
  ApiPropertyOptional(),
36
45
  __metadata("design:type", Number)
@@ -40,39 +49,39 @@ __decorate([
40
49
  __metadata("design:type", Object)
41
50
  ], CreateIncomeAllocation.prototype, "dateValue", void 0);
42
51
  __decorate([
43
- ApiProperty(),
52
+ ApiPropertyOptional(),
44
53
  __metadata("design:type", Number)
45
54
  ], CreateIncomeAllocation.prototype, "debitReport", void 0);
46
55
  __decorate([
47
- ApiProperty(),
56
+ ApiPropertyOptional(),
48
57
  __metadata("design:type", Number)
49
58
  ], CreateIncomeAllocation.prototype, "creditReport", void 0);
50
59
  __decorate([
51
- ApiProperty(),
60
+ ApiPropertyOptional(),
52
61
  __metadata("design:type", Number)
53
62
  ], CreateIncomeAllocation.prototype, "statutoryReserve", void 0);
54
63
  __decorate([
55
- ApiProperty(),
64
+ ApiPropertyOptional(),
56
65
  __metadata("design:type", Number)
57
66
  ], CreateIncomeAllocation.prototype, "legalReserve", void 0);
58
67
  __decorate([
59
- ApiProperty(),
68
+ ApiPropertyOptional(),
60
69
  __metadata("design:type", Number)
61
70
  ], CreateIncomeAllocation.prototype, "regulatedReserve", void 0);
62
71
  __decorate([
63
- ApiProperty(),
72
+ ApiPropertyOptional(),
64
73
  __metadata("design:type", Number)
65
74
  ], CreateIncomeAllocation.prototype, "unavailableReserve", void 0);
66
75
  __decorate([
67
- ApiProperty(),
76
+ ApiPropertyOptional(),
68
77
  __metadata("design:type", Number)
69
78
  ], CreateIncomeAllocation.prototype, "optionalReserve", void 0);
70
79
  __decorate([
71
- ApiProperty(),
80
+ ApiPropertyOptional(),
72
81
  __metadata("design:type", Number)
73
82
  ], CreateIncomeAllocation.prototype, "levyOnReserve", void 0);
74
83
  __decorate([
75
- ApiProperty(),
84
+ ApiPropertyOptional(),
76
85
  __metadata("design:type", Number)
77
86
  ], CreateIncomeAllocation.prototype, "dividend", void 0);
78
87
  //# sourceMappingURL=CreateIncomeAllocation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateIncomeAllocation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAEjC,MAAM,CAAS;IAGf,UAAU,CAAS;IAGnB,MAAM,CAAU;IAGhB,SAAS,CAAsB;IAG/B,WAAW,CAAS;IAGpB,YAAY,CAAS;IAGrB,gBAAgB,CAAS;IAGzB,YAAY,CAAS;IAGrB,gBAAgB,CAAS;IAGzB,kBAAkB,CAAS;IAG3B,eAAe,CAAS;IAGxB,aAAa,CAAS;IAGtB,QAAQ,CAAS;CAClB;AArCC;IADC,WAAW,EAAE;;sDACC;AAGf;IADC,WAAW,EAAE;;0DACK;AAGnB;IADC,mBAAmB,EAAE;;sDACN;AAGhB;IADC,mBAAmB,EAAE;;yDACS;AAG/B;IADC,WAAW,EAAE;;2DACM;AAGpB;IADC,WAAW,EAAE;;4DACO;AAGrB;IADC,WAAW,EAAE;;gEACW;AAGzB;IADC,WAAW,EAAE;;4DACO;AAGrB;IADC,WAAW,EAAE;;gEACW;AAGzB;IADC,WAAW,EAAE;;kEACa;AAG3B;IADC,WAAW,EAAE;;+DACU;AAGxB;IADC,WAAW,EAAE;;6DACQ;AAGtB;IADC,WAAW,EAAE;;wDACG","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateIncomeAllocation {\n @ApiProperty()\n amount: number;\n\n @ApiProperty()\n idExercice: number;\n\n @ApiPropertyOptional()\n idFile?: number;\n\n @ApiPropertyOptional()\n dateValue?: string | undefined;\n\n @ApiProperty()\n debitReport: number;\n\n @ApiProperty()\n creditReport: number;\n\n @ApiProperty()\n statutoryReserve: number;\n\n @ApiProperty()\n legalReserve: number;\n\n @ApiProperty()\n regulatedReserve: number;\n\n @ApiProperty()\n unavailableReserve: number;\n\n @ApiProperty()\n optionalReserve: number;\n\n @ApiProperty()\n levyOnReserve: number;\n\n @ApiProperty()\n dividend: number;\n}\n"]}
1
+ {"version":3,"file":"CreateIncomeAllocation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,sBAAsB;IAEjC,MAAM,CAAS;IAGf,UAAU,CAAS;IAKnB,SAAS,CAAW;IAGpB,MAAM,CAAU;IAGhB,SAAS,CAAsB;IAG/B,WAAW,CAAU;IAGrB,YAAY,CAAU;IAGtB,gBAAgB,CAAU;IAG1B,YAAY,CAAU;IAGtB,gBAAgB,CAAU;IAG1B,kBAAkB,CAAU;IAG5B,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,QAAQ,CAAU;CACnB;AA1CC;IADC,WAAW,EAAE;;sDACC;AAGf;IADC,WAAW,EAAE;;0DACK;AAKnB;IAHC,mBAAmB,CAAC,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;IAClG,SAAS,EAAE;IACX,SAAS,EAAE;;yDACQ;AAGpB;IADC,mBAAmB,EAAE;;sDACN;AAGhB;IADC,mBAAmB,EAAE;;yDACS;AAG/B;IADC,mBAAmB,EAAE;;2DACD;AAGrB;IADC,mBAAmB,EAAE;;4DACA;AAGtB;IADC,mBAAmB,EAAE;;gEACI;AAG1B;IADC,mBAAmB,EAAE;;4DACA;AAGtB;IADC,mBAAmB,EAAE;;gEACI;AAG1B;IADC,mBAAmB,EAAE;;kEACM;AAG5B;IADC,mBAAmB,EAAE;;+DACG;AAGzB;IADC,mBAAmB,EAAE;;6DACC;AAGvB;IADC,mBAAmB,EAAE;;wDACJ","sourcesContent":["import { IsBoolean } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateIncomeAllocation {\n @ApiProperty()\n amount: number;\n\n @ApiProperty()\n idExercice: number;\n\n @ApiPropertyOptional({ description: 'If true, it will affect the amount into an account 117000.' })\n @IsBoolean()\n @ToBoolean()\n isWaiting?: boolean;\n\n @ApiPropertyOptional()\n idFile?: number;\n\n @ApiPropertyOptional()\n dateValue?: string | undefined;\n\n @ApiPropertyOptional()\n debitReport?: number;\n\n @ApiPropertyOptional()\n creditReport?: number;\n\n @ApiPropertyOptional()\n statutoryReserve?: number;\n\n @ApiPropertyOptional()\n legalReserve?: number;\n\n @ApiPropertyOptional()\n regulatedReserve?: number;\n\n @ApiPropertyOptional()\n unavailableReserve?: number;\n\n @ApiPropertyOptional()\n optionalReserve?: number;\n\n @ApiPropertyOptional()\n levyOnReserve?: number;\n\n @ApiPropertyOptional()\n dividend?: number;\n}\n"]}
@@ -3,6 +3,9 @@ import { CerfaType } from '../../../Enum/CerfaType';
3
3
  export declare class QueryRegistration {
4
4
  idExercice?: number;
5
5
  }
6
+ export declare class QueryRegistrationFormValues {
7
+ idCerfaType: CerfaType;
8
+ }
6
9
  export declare class QueryPaginatedRegistration extends RequiredQueryPaginate {
7
10
  startDate?: string;
8
11
  endDate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/QueryRegistration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,iBAAiB;IAK5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,0BAA2B,SAAQ,qBAAqB;IAInE,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qBAAa,kCAAmC,SAAQ,0BAA0B;IAKhF,WAAW,EAAE,SAAS,EAAE,CAAC;IAMzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"QueryRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/QueryRegistration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,iBAAiB;IAK5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,2BAA2B;IAGtC,WAAW,EAAE,SAAS,CAAC;CACxB;AAED,qBAAa,0BAA2B,SAAQ,qBAAqB;IAInE,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qBAAa,kCAAmC,SAAQ,0BAA0B;IAKhF,WAAW,EAAE,SAAS,EAAE,CAAC;IAMzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -22,6 +22,14 @@ __decorate([
22
22
  IsOptional(),
23
23
  __metadata("design:type", Number)
24
24
  ], QueryRegistration.prototype, "idExercice", void 0);
25
+ export class QueryRegistrationFormValues {
26
+ idCerfaType;
27
+ }
28
+ __decorate([
29
+ ApiProperty(),
30
+ IsEnum(CerfaType),
31
+ __metadata("design:type", Number)
32
+ ], QueryRegistrationFormValues.prototype, "idCerfaType", void 0);
25
33
  export class QueryPaginatedRegistration extends RequiredQueryPaginate {
26
34
  startDate;
27
35
  endDate;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/QueryRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,MAAM,OAAO,iBAAiB;IAK5B,UAAU,CAAU;CACrB;AADC;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;IACZ,UAAU,EAAE;;qDACO;AAGtB,MAAM,OAAO,0BAA2B,SAAQ,qBAAqB;IAInE,SAAS,CAAU;IAKnB,OAAO,CAAU;IAKjB,OAAO,CAAU;IAMjB,YAAY,CAAW;CACxB;AAjBC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6DACI;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;2DACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;gEACU;AAGzB,MAAM,OAAO,kCAAmC,SAAQ,0BAA0B;IAKhF,WAAW,CAAc;IAMzB,UAAU,CAAU;CACrB;AAPC;IAJC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,EAAE;QACjB,IAAI,EAAE,IAAI;KACX,CAAC;;uEACuB;AAMzB;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;IACZ,UAAU,EAAE;;sEACO","sourcesContent":["import { IsInt, IsPositive, IsOptional, IsDateString, IsString, IsBoolean, IsEnum } from 'class-validator';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RequiredQueryPaginate } from '../BasePaginate';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { CerfaType } from '../../../Enum/CerfaType';\n\nexport class QueryRegistration {\n @ApiPropertyOptional()\n @IsInt()\n @IsPositive()\n @IsOptional()\n idExercice?: number;\n}\n\nexport class QueryPaginatedRegistration extends RequiredQueryPaginate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n}\n\nexport class QueryPaginatedRegistrationWithType extends QueryPaginatedRegistration {\n @ApiProperty()\n @IsEnum(CerfaType, {\n each: true,\n })\n idCerfaType: CerfaType[];\n\n @ApiPropertyOptional()\n @IsInt()\n @IsPositive()\n @IsOptional()\n idExercice?: number;\n}\n"]}
1
+ {"version":3,"file":"QueryRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/QueryRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,MAAM,OAAO,iBAAiB;IAK5B,UAAU,CAAU;CACrB;AADC;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;IACZ,UAAU,EAAE;;qDACO;AAGtB,MAAM,OAAO,2BAA2B;IAGtC,WAAW,CAAY;CACxB;AADC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,CAAC;;gEACK;AAGzB,MAAM,OAAO,0BAA2B,SAAQ,qBAAqB;IAInE,SAAS,CAAU;IAKnB,OAAO,CAAU;IAKjB,OAAO,CAAU;IAMjB,YAAY,CAAW;CACxB;AAjBC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6DACI;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;2DACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;gEACU;AAGzB,MAAM,OAAO,kCAAmC,SAAQ,0BAA0B;IAKhF,WAAW,CAAc;IAMzB,UAAU,CAAU;CACrB;AAPC;IAJC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,EAAE;QACjB,IAAI,EAAE,IAAI;KACX,CAAC;;uEACuB;AAMzB;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;IACZ,UAAU,EAAE;;sEACO","sourcesContent":["import { IsInt, IsPositive, IsOptional, IsDateString, IsString, IsBoolean, IsEnum } from 'class-validator';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RequiredQueryPaginate } from '../BasePaginate';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { CerfaType } from '../../../Enum/CerfaType';\n\nexport class QueryRegistration {\n @ApiPropertyOptional()\n @IsInt()\n @IsPositive()\n @IsOptional()\n idExercice?: number;\n}\n\nexport class QueryRegistrationFormValues {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: CerfaType;\n}\n\nexport class QueryPaginatedRegistration extends RequiredQueryPaginate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n}\n\nexport class QueryPaginatedRegistrationWithType extends QueryPaginatedRegistration {\n @ApiProperty()\n @IsEnum(CerfaType, {\n each: true,\n })\n idCerfaType: CerfaType[];\n\n @ApiPropertyOptional()\n @IsInt()\n @IsPositive()\n @IsOptional()\n idExercice?: number;\n}\n"]}
@@ -12,6 +12,9 @@ export interface ReadSynchronization {
12
12
  isTimeOut: boolean;
13
13
  hasFailed: boolean;
14
14
  }
15
+ export type ReadRegistrationFormValues = {
16
+ carriedForwardDeficit: number;
17
+ };
15
18
  export type ReadRegistrationHistory = InterchangeState;
16
19
  export interface ReadRegistrationTick {
17
20
  type?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAElH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAA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AS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"ReadRegistration.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAElH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAAE,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE5E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,qBAAa,uBAAuB;IAClC,GAAG,EAAE,gBAAgB,EAAE,CAAC;IACxB,GAAG,EAAE,gBAAgB,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,EAAE,CAAC;AAE1D,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAwCA,MAAM,OAAO,uBAAuB;IAClC,GAAG,CAAqB;IACxB,GAAG,CAAqB;CACzB","sourcesContent":["import { IRegistration } from '../../models/IRegistration';\nimport { IAccount, IAccountingEntry, InterchangeState, RegistrationState, RegistrationTickState } from '../../..';\n\nexport type ReadRegistration = IRegistration & { state: RegistrationState };\n\nexport interface ReadSynchronization {\n id: number;\n hasError: boolean;\n hasDepositError: boolean;\n isProcessFinished: boolean;\n hasPaymentError: boolean;\n isTimeOut: boolean;\n hasFailed: boolean;\n}\n\nexport type ReadRegistrationHistory = InterchangeState;\n\nexport interface ReadRegistrationTick {\n type?: string | null;\n state: RegistrationTickState;\n title: string | null;\n details: InterchangeState;\n date: string | null;\n isPayment?: boolean;\n}\n\nexport interface ReadVatEntry {\n isAsset: boolean;\n idVat: number | null;\n account: IAccount | null;\n totalTaxIncluded: number;\n totalTaxExcluded: number;\n totalTax: number;\n label: string;\n date: Date;\n idAccountingTransaction: number;\n isRevised: boolean;\n entry?: IAccountingEntry;\n}\n\nexport class UpdatedAnnotationObject {\n old: IAccountingEntry[];\n new: IAccountingEntry[];\n}\n\nexport type UpdatedAnnotation = UpdatedAnnotationObject[];\n\nexport type ReadRegistrationExternalFile = {\n id: string;\n createdAt: string;\n name: string;\n format: 'XML' | 'EDI';\n size: string;\n};\n"]}
1
+ {"version":3,"file":"ReadRegistration.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AA4CA,MAAM,OAAO,uBAAuB;IAClC,GAAG,CAAqB;IACxB,GAAG,CAAqB;CACzB","sourcesContent":["import { IRegistration } from '../../models/IRegistration';\nimport { IAccount, IAccountingEntry, InterchangeState, RegistrationState, RegistrationTickState } from '../../..';\n\nexport type ReadRegistration = IRegistration & { state: RegistrationState };\n\nexport interface ReadSynchronization {\n id: number;\n hasError: boolean;\n hasDepositError: boolean;\n isProcessFinished: boolean;\n hasPaymentError: boolean;\n isTimeOut: boolean;\n hasFailed: boolean;\n}\n\nexport type ReadRegistrationFormValues = {\n carriedForwardDeficit: number;\n};\n\nexport type ReadRegistrationHistory = InterchangeState;\n\nexport interface ReadRegistrationTick {\n type?: string | null;\n state: RegistrationTickState;\n title: string | null;\n details: InterchangeState;\n date: string | null;\n isPayment?: boolean;\n}\n\nexport interface ReadVatEntry {\n isAsset: boolean;\n idVat: number | null;\n account: IAccount | null;\n totalTaxIncluded: number;\n totalTaxExcluded: number;\n totalTax: number;\n label: string;\n date: Date;\n idAccountingTransaction: number;\n isRevised: boolean;\n entry?: IAccountingEntry;\n}\n\nexport class UpdatedAnnotationObject {\n old: IAccountingEntry[];\n new: IAccountingEntry[];\n}\n\nexport type UpdatedAnnotation = UpdatedAnnotationObject[];\n\nexport type ReadRegistrationExternalFile = {\n id: string;\n createdAt: string;\n name: string;\n format: 'XML' | 'EDI';\n size: string;\n};\n"]}
@@ -39,6 +39,10 @@ export declare class CreatePaymentIntent {
39
39
  amountInCents: number;
40
40
  metadata?: Stripe.MetadataParam;
41
41
  }
42
+ export declare class UpdatePaymentMethod {
43
+ stripePaymentMethodId: string;
44
+ metadata: any;
45
+ }
42
46
  export declare class PostProcessPaymentAutomatically {
43
47
  idSociety?: number;
44
48
  minDate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,+BAA+B;IAG1C,SAAS,EAAE,MAAM,CAAC;IAIlB,aAAa,EAAE,MAAM,CAAC;IAKtB,SAAS,CA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M,CAAC;CACvB;AAED,qBAAa,6BAA6B;IAIxC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,qBAAqB;IAIhC,UAAU,EAAE,OAAO,CAAC;IAIpB,kBAAkB,EAAE,MAAM,CAAC;IAI3B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAI3C,KAAK,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AACD,qBAAa,oBAAoB;IAG/B,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAK3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -164,6 +164,19 @@ __decorate([
164
164
  ApiPropertyOptional(),
165
165
  __metadata("design:type", Object)
166
166
  ], CreatePaymentIntent.prototype, "metadata", void 0);
167
+ export class UpdatePaymentMethod {
168
+ stripePaymentMethodId;
169
+ metadata;
170
+ }
171
+ __decorate([
172
+ ApiProperty(),
173
+ IsString(),
174
+ __metadata("design:type", String)
175
+ ], UpdatePaymentMethod.prototype, "stripePaymentMethodId", void 0);
176
+ __decorate([
177
+ ApiProperty(),
178
+ __metadata("design:type", Object)
179
+ ], UpdatePaymentMethod.prototype, "metadata", void 0);
167
180
  export class PostProcessPaymentAutomatically {
168
181
  idSociety;
169
182
  minDate;
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../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AK3C;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;sEAC0B;AAKlC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uEAC2B;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACY","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffErp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAId;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;gDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;iDACQ;AAGrB,MAAM,OAAO,iCAAiC;IAI5C,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAChB;AANC;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;oEAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;kEAAC;AAGjB,MAAM,OAAO,yBAA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CAAU;IAKlC,OAAO,CAAU;IAKjB,yBAAyB,CAAU;IAKnC,aAAa,CAAU;CACxB;AAlCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;8DACc;AAKzB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACI;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;sDAC8B;AAK3C;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;sEAC0B;AAKlC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uEAC2B;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACY","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffErp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class UpdatePaymentMethod {\n @ApiProperty()\n @IsString()\n stripePaymentMethodId: string;\n\n @ApiProperty()\n metadata: any;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  export declare class RetrievePaymentMethodsParams {
2
2
  customerId: string;
3
+ idSociety: number;
3
4
  }
4
5
  export declare class QueryStripeSession {
5
6
  isYearly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":"AAIA,qBAAa,4BAA4B;IAGvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,kBAAkB;IAK7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,yBAAyB;IAGpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAI3B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,uBAAuB;IAIlC,UAAU,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"QueryStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":"AAIA,qBAAa,4BAA4B;IAGvC,UAAU,EAAE,MAAM,CAAC;IAKnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,kBAAkB;IAK7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,yBAAyB;IAGpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAI3B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,uBAAuB;IAIlC,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -7,17 +7,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsBoolean, IsOptional, IsString } from 'class-validator';
10
+ import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
13
  export class RetrievePaymentMethodsParams {
14
14
  customerId;
15
+ idSociety;
15
16
  }
16
17
  __decorate([
17
18
  ApiProperty(),
18
19
  IsString(),
19
20
  __metadata("design:type", String)
20
21
  ], RetrievePaymentMethodsParams.prototype, "customerId", void 0);
22
+ __decorate([
23
+ ApiPropertyOptional({ describe: 'Search into payment method metadata' }),
24
+ IsNumber(),
25
+ IsOptional(),
26
+ __metadata("design:type", Number)
27
+ ], RetrievePaymentMethodsParams.prototype, "idSociety", void 0);
21
28
  export class QueryStripeSession {
22
29
  isYearly;
23
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,4BAA4B;IAGvC,UAAU,CAAS;CACpB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gEACQ;AAGrB,MAAM,OAAO,kBAAkB;IAK7B,QAAQ,CAAW;CACpB;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;oDACO;AAGrB,MAAM,OAAO,yBAAyB;IAGpC,UAAU,CAAS;CACpB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACQ;AAGrB,MAAM,OAAO,gBAAgB;IAI3B,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;oDACQ;AAGtB,MAAM,OAAO,uBAAuB;IAIlC,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;2DACQ","sourcesContent":["import { IsBoolean, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class RetrievePaymentMethodsParams {\n @ApiProperty()\n @IsString()\n customerId: string;\n}\n\nexport class QueryStripeSession {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isYearly?: boolean;\n}\n\nexport class QueryStripeSubscriptionId {\n @ApiProperty()\n @IsString()\n customerId: string;\n}\n\nexport class QueryStripePrice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n\nexport class QueryStripePurchaseHook {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n"]}
1
+ {"version":3,"file":"QueryStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,4BAA4B;IAGvC,UAAU,CAAS;IAKnB,SAAS,CAAS;CACnB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gEACQ;AAKnB;IAHC,mBAAmB,CAAC,EAAE,QAAQ,EAAE,qCAAqC,EAAE,CAAC;IACxE,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACK;AAGpB,MAAM,OAAO,kBAAkB;IAK7B,QAAQ,CAAW;CACpB;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;oDACO;AAGrB,MAAM,OAAO,yBAAyB;IAGpC,UAAU,CAAS;CACpB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACQ;AAGrB,MAAM,OAAO,gBAAgB;IAI3B,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;oDACQ;AAGtB,MAAM,OAAO,uBAAuB;IAIlC,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;2DACQ","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class RetrievePaymentMethodsParams {\n @ApiProperty()\n @IsString()\n customerId: string;\n\n @ApiPropertyOptional({ describe: 'Search into payment method metadata' })\n @IsNumber()\n @IsOptional()\n idSociety: number;\n}\n\nexport class QueryStripeSession {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isYearly?: boolean;\n}\n\nexport class QueryStripeSubscriptionId {\n @ApiProperty()\n @IsString()\n customerId: string;\n}\n\nexport class QueryStripePrice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n\nexport class QueryStripePurchaseHook {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.105",
3
+ "version": "1.3.106-1",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -8,7 +8,12 @@ export class BankDedup extends Resource {
8
8
  public getAnalysis(body: BankDedupAnalysisParams): Promise<BankDedupResponse> {
9
9
  const formData = new FormData();
10
10
 
11
- formData.append('file', body.csv);
11
+ // Convert TFile2 buffer to Blob for FormData
12
+ const csvBlob = new Blob([new Uint8Array(body.csv.buffer)], {
13
+ type: body.csv.mimeType || 'text/csv',
14
+ });
15
+
16
+ formData.append('file', csvBlob, body.csv.originalname);
12
17
  formData.append('initial', `${body.initial}`);
13
18
  formData.append('target', `${body.target}`);
14
19
 
@@ -21,11 +21,6 @@ export class IncomeAllocation extends Resource {
21
21
  return this.axios.$get(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`);
22
22
  }
23
23
 
24
- /** @deprecated */
25
- create(params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {
26
- return this.axios.$post('/incomeAllocation/', params);
27
- }
28
-
29
24
  createForSociety(idExercice: number, params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {
30
25
  return this.axios.$post(`/exercices/${idExercice}/income-allocations`, params);
31
26
  }
@@ -23,8 +23,10 @@ import {
23
23
  ReadStatsSocietyUnpaid,
24
24
  UpdatePayment,
25
25
  QueryStripeSubscriptionId,
26
+ UpdatePaymentMethod,
26
27
  } from '../../types';
27
28
  import { IPaymentRecovery } from '../../types/Interface/models/IPaymentRecovery';
29
+ import Stripe from 'stripe';
28
30
 
29
31
  export class Payment extends Resource {
30
32
  getMonthlyCsv(query: QueryMonthlyPayment): Promise<void> {
@@ -99,6 +101,10 @@ export class Payment extends Resource {
99
101
  return this.axios.$get('/stripe/payments/methods', { params });
100
102
  }
101
103
 
104
+ updatePaymentMethod(params: UpdatePaymentMethod): Promise<Stripe.PaymentMethod> {
105
+ return this.axios.$put('/stripe/payments/methods', params);
106
+ }
107
+
102
108
  getStatsPaidByPrestation(
103
109
  payload: QueryPayment,
104
110
  ): Promise<{ invoicePaymentStats: ReadStatPrestation; assetPaymentStats: ReadStatPrestation }> {
@@ -15,6 +15,8 @@ import {
15
15
  UpdateRegistration,
16
16
  ReadRegistrationExternalFile,
17
17
  DownloadExternalFile,
18
+ QueryRegistrationFormValues,
19
+ ReadRegistrationFormValues,
18
20
  } from '../../types';
19
21
 
20
22
  export class Registration extends Resource {
@@ -109,4 +111,8 @@ export class Registration extends Resource {
109
111
  ...(signal ? { signal } : {}),
110
112
  });
111
113
  }
114
+
115
+ getAllFormValues(idExercice: number, query: QueryRegistrationFormValues): Promise<ReadRegistrationFormValues> {
116
+ return this.axios.$get(`/exercices/${idExercice}/registrations/form-values`, { params: query });
117
+ }
112
118
  }
@@ -1,6 +1,3 @@
1
1
  export interface ReadAccountingIncome {
2
2
  income: number;
3
- defaultValues: {
4
- otherAdditions: Array<{ label: string; amount: number }>;
5
- };
6
3
  }