@silexpert/core 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/es/api/resources/CommercialDocument.js +2 -2
  2. package/es/api/resources/CommercialDocument.js.map +1 -1
  3. package/es/api/resources/FIle.d.ts +1 -1
  4. package/es/api/resources/FIle.d.ts.map +1 -1
  5. package/es/api/resources/FIle.js +11 -2
  6. package/es/api/resources/FIle.js.map +1 -1
  7. package/es/api/resources/GeneralLedger.d.ts +1 -1
  8. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  9. package/es/api/resources/GeneralLedger.js +2 -2
  10. package/es/api/resources/GeneralLedger.js.map +1 -1
  11. package/es/api/resources/Mail.d.ts +1 -1
  12. package/es/api/resources/Mail.d.ts.map +1 -1
  13. package/es/api/resources/Mail.js +2 -1
  14. package/es/api/resources/Mail.js.map +1 -1
  15. package/es/api/resources/Partner.d.ts +1 -0
  16. package/es/api/resources/Partner.d.ts.map +1 -1
  17. package/es/api/resources/Partner.js +3 -0
  18. package/es/api/resources/Partner.js.map +1 -1
  19. package/es/types/Enum/Log.d.ts +2 -1
  20. package/es/types/Enum/Log.d.ts.map +1 -1
  21. package/es/types/Enum/Log.js +1 -0
  22. package/es/types/Enum/Log.js.map +1 -1
  23. package/es/types/Interface/api/commercialManagement/Create.d.ts +1 -0
  24. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  25. package/es/types/Interface/api/commercialManagement/Create.js +5 -0
  26. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  27. package/es/types/Interface/api/commercialManagement/Query.d.ts +1 -1
  28. package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  29. package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
  30. package/es/types/Interface/api/commercialManagement/Update.d.ts +2 -0
  31. package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
  32. package/es/types/Interface/api/commercialManagement/Update.js +12 -0
  33. package/es/types/Interface/api/commercialManagement/Update.js.map +1 -1
  34. package/es/types/Interface/api/file/Create.d.ts +1 -1
  35. package/es/types/Interface/api/file/Create.d.ts.map +1 -1
  36. package/es/types/Interface/api/file/Create.js.map +1 -1
  37. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +1 -0
  38. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
  39. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +7 -1
  40. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  41. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -0
  42. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
  43. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +7 -1
  44. package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  45. package/es/types/Interface/api/revision/ReadRevision.d.ts +2 -1
  46. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  47. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  48. package/es/types/Interface/api/simulation/CreateSimulation.d.ts +1 -1
  49. package/es/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  50. package/es/types/Interface/models/IAccount.d.ts +2 -0
  51. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  52. package/es/types/Interface/models/IAccount.js.map +1 -1
  53. package/es/types/Interface/models/IEstimateInvoice.d.ts +1 -1
  54. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  55. package/es/types/Interface/models/IInternalEstimate.d.ts +1 -1
  56. package/es/types/Interface/models/IInternalEstimate.js.map +1 -1
  57. package/es/types/Interface/models/IInvoiceReminder.d.ts +1 -0
  58. package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
  59. package/es/types/Interface/models/IInvoiceReminder.js.map +1 -1
  60. package/es/types/Interface/models/ISocietyPartner.d.ts +2 -1
  61. package/es/types/Interface/models/ISocietyPartner.d.ts.map +1 -1
  62. package/es/types/Interface/models/ISocietyPartner.js.map +1 -1
  63. package/es/utils/amount.js +1 -1
  64. package/es/utils/amount.js.map +1 -1
  65. package/export-models.json +7 -7
  66. package/js/api/resources/CommercialDocument.js +2 -2
  67. package/js/api/resources/CommercialDocument.js.map +1 -1
  68. package/js/api/resources/FIle.js +16 -2
  69. package/js/api/resources/FIle.js.map +1 -1
  70. package/js/api/resources/GeneralLedger.js +2 -2
  71. package/js/api/resources/GeneralLedger.js.map +1 -1
  72. package/js/api/resources/Mail.js +2 -1
  73. package/js/api/resources/Mail.js.map +1 -1
  74. package/js/api/resources/Partner.js +4 -0
  75. package/js/api/resources/Partner.js.map +1 -1
  76. package/js/types/Enum/Log.js +1 -0
  77. package/js/types/Enum/Log.js.map +1 -1
  78. package/js/types/Interface/api/commercialManagement/Create.js +2 -0
  79. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  80. package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
  81. package/js/types/Interface/api/commercialManagement/Update.js +4 -0
  82. package/js/types/Interface/api/commercialManagement/Update.js.map +1 -1
  83. package/js/types/Interface/api/file/Create.js.map +1 -1
  84. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -0
  85. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  86. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +4 -0
  87. package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
  88. package/js/types/Interface/api/simulation/CreateSimulation.js.map +1 -1
  89. package/js/utils/amount.js +1 -1
  90. package/js/utils/amount.js.map +1 -1
  91. package/package.json +1 -1
  92. package/ts/api/resources/CommercialDocument.ts +2 -2
  93. package/ts/api/resources/FIle.ts +11 -2
  94. package/ts/api/resources/GeneralLedger.ts +2 -2
  95. package/ts/api/resources/Mail.ts +2 -1
  96. package/ts/api/resources/Partner.ts +4 -0
  97. package/ts/types/Enum/Log.ts +1 -0
  98. package/ts/types/Interface/api/commercialManagement/Create.ts +4 -0
  99. package/ts/types/Interface/api/commercialManagement/Query.ts +1 -1
  100. package/ts/types/Interface/api/commercialManagement/Update.ts +10 -0
  101. package/ts/types/Interface/api/file/Create.ts +1 -1
  102. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +6 -0
  103. package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +6 -0
  104. package/ts/types/Interface/api/revision/ReadRevision.ts +2 -1
  105. package/ts/types/Interface/api/simulation/CreateSimulation.ts +1 -1
  106. package/ts/types/Interface/models/IAccount.ts +2 -0
  107. package/ts/types/Interface/models/IEstimateInvoice.ts +1 -1
  108. package/ts/types/Interface/models/IInternalEstimate.ts +1 -1
  109. package/ts/types/Interface/models/IInvoiceReminder.ts +1 -0
  110. package/ts/types/Interface/models/ISocietyPartner.ts +2 -1
  111. package/ts/utils/amount.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"QueryGeneralLedger.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,GAClC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,kBAAkB;CAyB9B;AAvBC;IADC,WAAW,EAAE;;qDACI;AAGlB;IADC,WAAW,EAAE;;mDACE;AAKhB;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;iDACO;AAKd;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;gDACM;AAMb;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;sDACQ;AAGrB;IADC,mBAAmB,EAAE;;kDACN","sourcesContent":["import {\n IsBoolean, IsInt, IsOptional, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryGeneralLedger {\n @ApiProperty()\n dateStart: string;\n\n @ApiProperty()\n dateEnd: string;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n search?: string;\n}"]}
1
+ {"version":3,"file":"QueryGeneralLedger.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EACP,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,GAClC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,kBAAkB;CA8B9B;AA5BC;IADC,WAAW,EAAE;;qDACI;AAGlB;IADC,WAAW,EAAE;;mDACE;AAKhB;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;iDACO;AAKd;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;gDACM;AAKb;IAHC,mBAAmB,EAAE;IACrB,OAAO,EAAE;IACT,UAAU,EAAE;;qDACQ;AAMrB;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;sDACQ;AAGrB;IADC,mBAAmB,EAAE;;kDACN","sourcesContent":["import {\n IsArray,\n IsBoolean, IsInt, IsOptional, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryGeneralLedger {\n @ApiProperty()\n dateStart: string;\n\n @ApiProperty()\n dateEnd: string;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional()\n @IsArray()\n @IsOptional()\n idAccount?: number[];\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n search?: string;\n}"]}
@@ -2,5 +2,6 @@ export declare class QueryCountUnprocessedByUserMail {
2
2
  idUser: number;
3
3
  isWithoutSociety?: boolean;
4
4
  handlingManagerRoleMails?: boolean;
5
+ to?: string;
5
6
  }
6
7
  //# sourceMappingURL=QueryCountUnprocessedByUserMail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryCountUnprocessedByUserMail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"names":[],"mappings":"AAQA,qBAAa,+BAA+B;IAG1C,MAAM,EAAE,MAAM,CAAC;IAMf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC"}
1
+ {"version":3,"file":"QueryCountUnprocessedByUserMail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"names":[],"mappings":"AASA,qBAAa,+BAA+B;IAG1C,MAAM,EAAE,MAAM,CAAC;IAMf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAKnC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -7,7 +7,7 @@ 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, IsInt, IsOptional, } from 'class-validator';
10
+ import { IsBoolean, IsInt, 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 QueryCountUnprocessedByUserMail {
@@ -31,4 +31,10 @@ __decorate([
31
31
  ToBoolean(),
32
32
  __metadata("design:type", Boolean)
33
33
  ], QueryCountUnprocessedByUserMail.prototype, "handlingManagerRoleMails", void 0);
34
+ __decorate([
35
+ ApiPropertyOptional(),
36
+ IsOptional(),
37
+ IsString({ each: true }),
38
+ __metadata("design:type", String)
39
+ ], QueryCountUnprocessedByUserMail.prototype, "to", void 0);
34
40
  //# sourceMappingURL=QueryCountUnprocessedByUserMail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryCountUnprocessedByUserMail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,+BAA+B;CAgB3C;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;+DACO;AAMf;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;yEACe;AAM3B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;iFACuB","sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedByUserMail {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n}\n"]}
1
+ {"version":3,"file":"QueryCountUnprocessedByUserMail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,UAAU,EACV,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,+BAA+B;CAqB3C;AAlBC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;+DACO;AAMf;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;yEACe;AAM3B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;iFACuB;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACb","sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedByUserMail {\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n to?: string;\n}\n"]}
@@ -7,7 +7,8 @@ export interface ReadRevision {
7
7
  number: number | null;
8
8
  accountDetails: Array<IAccountDetail>;
9
9
  };
10
- unlocked: number;
10
+ unlocked: number | null;
11
+ locked: number | null;
11
12
  previousBalance: number;
12
13
  nextBalance: number;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRevision.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/ReadRevision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;KACtC,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"ReadRevision.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/ReadRevision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;KACtC,CAAC;IACF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadRevision.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/ReadRevision.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountDetail } from '../../models/IAccountDetail';\n\nexport interface ReadRevision {\n balance: number;\n account: {\n id: number,\n name: string | null,\n number: number | null,\n accountDetails: Array<IAccountDetail>\n },\n unlocked: number;\n previousBalance: number;\n nextBalance: number;\n}"]}
1
+ {"version":3,"file":"ReadRevision.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/ReadRevision.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountDetail } from '../../models/IAccountDetail';\n\nexport interface ReadRevision {\n balance: number;\n account: {\n id: number,\n name: string | null,\n number: number | null,\n accountDetails: Array<IAccountDetail>\n },\n unlocked: number | null;\n locked: number | null;\n previousBalance: number;\n nextBalance: number;\n}"]}
@@ -21,7 +21,7 @@ export interface SimulationEstimateInvoice {
21
21
  idRelatedInvoice: number | null;
22
22
  idSociety: number;
23
23
  idThirdParty: number;
24
- idTypeEstimateInvoice: number;
24
+ idEstimateInvoiceType: number;
25
25
  invoiceMailSend: null;
26
26
  invoiceRef: string;
27
27
  isCanceled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSimulation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulation/CreateSimulation.ts"],"names":[],"mappings":"AAAA,4CAA4C;AA+C5C,MAAM,OAAO,oBAAoB;CAShC;AAED,MAAM,OAAO,gBAAgB;CA4C5B","sourcesContent":["// import {SimulationColor} from '../../..';\n\nexport interface SimulationEstimateInvoice {\n createdAt: string;\n dateInvoiceCreated: string;\n deletedAt: null;\n deposit: number;\n discount: string;\n dueDate: string;\n estimateMailSend: null;\n estimateRef: null;\n expirationDate: null;\n fileEstimate: null;\n fileInvoice: string;\n freeText: string;\n generalComment: string;\n generalDiscount: number;\n greetings: boolean;\n idEstimateInvoice: number;\n idEstimateInvoiceForThisRepeat: number | null;\n idFrequency: number | null;\n idRelatedEstimateOrderForm: number | null;\n idRelatedInvoice: number | null;\n idSociety: number;\n idThirdParty: number;\n idTypeEstimateInvoice: number;\n invoiceMailSend: null;\n invoiceRef: string;\n isCanceled: boolean;\n isDraft: boolean;\n isPaid: boolean;\n isRefused: boolean;\n isStripe: boolean;\n isUsed: boolean;\n label: string;\n lastRelanceDate: null;\n lastTryRepeat: null;\n payment: string;\n penalties: string;\n recoveryCost: string;\n template: number;\n totalHt: number;\n totalTtc: number;\n updatedAt: string;\n vatMention: string;\n}\n\nexport class CreateBalanceElement {\n // @ApiProperty()\n action: string;\n // @ApiProperty()\n amount: number;\n // @ApiProperty()\n dateValue: string;\n // @ApiProperty()\n idBankAccount: number;\n}\n\nexport class CreateSimulation {\n // @ApiProperty()\n name: string;\n\n // @ApiPropertyOptional()\n commentary: string;\n\n // @ApiProperty()\n financesStart: number;\n\n // @ApiProperty({enum: [SimulationColor]})\n idSimulationColor: number;\n\n // @ApiProperty()\n startDate: Date;\n\n // @ApiProperty()\n endDate: Date;\n\n // @ApiProperty()\n importSalesInvoice: boolean;\n\n // @ApiProperty()\n importPurchaseInvoice: boolean;\n\n // @ApiProperty()\n defaultCollectionDelayForSales: number;\n\n // @ApiProperty()\n defaultPaymentDelayForPurchase: number;\n\n // @ApiProperty()\n idSociety: number;\n\n // @ApiPropertyOptional()\n bankAccounts?: Array<number>;\n\n // @ApiPropertyOptional()\n invoices?: Partial<SimulationEstimateInvoice>[];\n\n // @ApiPropertyOptional({\n // type: [CreateBalanceElement]\n // })\n createBalanceElement?: [CreateBalanceElement];\n}\n"]}
1
+ {"version":3,"file":"CreateSimulation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulation/CreateSimulation.ts"],"names":[],"mappings":"AAAA,4CAA4C;AA+C5C,MAAM,OAAO,oBAAoB;CAShC;AAED,MAAM,OAAO,gBAAgB;CA4C5B","sourcesContent":["// import {SimulationColor} from '../../..';\n\nexport interface SimulationEstimateInvoice {\n createdAt: string;\n dateInvoiceCreated: string;\n deletedAt: null;\n deposit: number;\n discount: string;\n dueDate: string;\n estimateMailSend: null;\n estimateRef: null;\n expirationDate: null;\n fileEstimate: null;\n fileInvoice: string;\n freeText: string;\n generalComment: string;\n generalDiscount: number;\n greetings: boolean;\n idEstimateInvoice: number;\n idEstimateInvoiceForThisRepeat: number | null;\n idFrequency: number | null;\n idRelatedEstimateOrderForm: number | null;\n idRelatedInvoice: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceType: number;\n invoiceMailSend: null;\n invoiceRef: string;\n isCanceled: boolean;\n isDraft: boolean;\n isPaid: boolean;\n isRefused: boolean;\n isStripe: boolean;\n isUsed: boolean;\n label: string;\n lastRelanceDate: null;\n lastTryRepeat: null;\n payment: string;\n penalties: string;\n recoveryCost: string;\n template: number;\n totalHt: number;\n totalTtc: number;\n updatedAt: string;\n vatMention: string;\n}\n\nexport class CreateBalanceElement {\n // @ApiProperty()\n action: string;\n // @ApiProperty()\n amount: number;\n // @ApiProperty()\n dateValue: string;\n // @ApiProperty()\n idBankAccount: number;\n}\n\nexport class CreateSimulation {\n // @ApiProperty()\n name: string;\n\n // @ApiPropertyOptional()\n commentary: string;\n\n // @ApiProperty()\n financesStart: number;\n\n // @ApiProperty({enum: [SimulationColor]})\n idSimulationColor: number;\n\n // @ApiProperty()\n startDate: Date;\n\n // @ApiProperty()\n endDate: Date;\n\n // @ApiProperty()\n importSalesInvoice: boolean;\n\n // @ApiProperty()\n importPurchaseInvoice: boolean;\n\n // @ApiProperty()\n defaultCollectionDelayForSales: number;\n\n // @ApiProperty()\n defaultPaymentDelayForPurchase: number;\n\n // @ApiProperty()\n idSociety: number;\n\n // @ApiPropertyOptional()\n bankAccounts?: Array<number>;\n\n // @ApiPropertyOptional()\n invoices?: Partial<SimulationEstimateInvoice>[];\n\n // @ApiPropertyOptional({\n // type: [CreateBalanceElement]\n // })\n createBalanceElement?: [CreateBalanceElement];\n}\n"]}
@@ -8,6 +8,7 @@ import { IAccountDetail } from './IAccountDetail';
8
8
  import { ISociety } from './ISociety';
9
9
  import { IAccountsSectors } from './IAccountsSectors';
10
10
  import { IMachineLearningResult } from './IMachineLearningResult';
11
+ import { IAccountsSocieties } from './IAccountsSocieties';
11
12
  export interface IAccount {
12
13
  id?: number;
13
14
  number: number;
@@ -47,6 +48,7 @@ export interface IAccount {
47
48
  sector?: ISector;
48
49
  accountHelp?: IAccountHelp;
49
50
  accountDetails?: IAccountDetail[];
51
+ accountsSocieties?: IAccountsSocieties[] | IAccountsSocieties;
50
52
  societies?: ISociety[];
51
53
  machineLearningResults?: IMachineLearningResult[];
52
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IAccount.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,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EAAE,IAAI,CAAC;IACX,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,EAAE,CAAC;IAClC,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,CAAC;IAC9D,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"IAccount.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccount.ts"],"names":[],"mappings":"","sourcesContent":["import { INature } from './INature';\nimport { IAccountType } from './IAccountType';\nimport { IVat } from './IVat';\nimport { IRegisterCategory } from './IRegisterCategory';\nimport { ISector } from './ISector';\nimport { IAccountHelp } from './IAccountHelp';\nimport { IAccountDetail } from './IAccountDetail';\nimport { ISociety } from './ISociety';\nimport { IAccountsSectors } from './IAccountsSectors';\nimport { IMachineLearningResult } from './IMachineLearningResult';\n\n// accounts\nexport interface IAccount {\n id?: number;\n number: number;\n name: string;\n originalName?: string | null;\n forceVat?: boolean;\n blockVat?: boolean;\n forceFile?: boolean;\n isHidden?: boolean;\n isImmo?: boolean;\n isCorporal?: boolean;\n icone?: string | null;\n iconePNG?: string | null;\n color?: string | null;\n isOnlyTreso?: boolean;\n isOnlyEnga?: boolean;\n isGeneric?: boolean;\n isPersonalised?: boolean;\n forClient?: boolean;\n forFournisseur?: boolean;\n accountsSectors?: IAccountsSectors[];\n juridicalSociety?: number | null;\n idNature: number;\n customization?: number;\n idAccountType: number;\n idVat?: number | null;\n idRegisterCategorie?: number | null;\n idSector?: number | null;\n idParentAccount?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n nature?: INature;\n accountType?: IAccountType;\n tva?: IVat;\n registerCategorie?: IRegisterCategory;\n sector?: ISector;\n accountHelp?: IAccountHelp;\n accountDetails?: IAccountDetail[];\n societies?: ISociety[];\n machineLearningResults?: IMachineLearningResult[];\n}\n"]}
1
+ {"version":3,"file":"IAccount.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccount.ts"],"names":[],"mappings":"","sourcesContent":["import { INature } from './INature';\nimport { IAccountType } from './IAccountType';\nimport { IVat } from './IVat';\nimport { IRegisterCategory } from './IRegisterCategory';\nimport { ISector } from './ISector';\nimport { IAccountHelp } from './IAccountHelp';\nimport { IAccountDetail } from './IAccountDetail';\nimport { ISociety } from './ISociety';\nimport { IAccountsSectors } from './IAccountsSectors';\nimport { IMachineLearningResult } from './IMachineLearningResult';\nimport { IAccountsSocieties } from './IAccountsSocieties';\n\n// accounts\nexport interface IAccount {\n id?: number;\n number: number;\n name: string;\n originalName?: string | null;\n forceVat?: boolean;\n blockVat?: boolean;\n forceFile?: boolean;\n isHidden?: boolean;\n isImmo?: boolean;\n isCorporal?: boolean;\n icone?: string | null;\n iconePNG?: string | null;\n color?: string | null;\n isOnlyTreso?: boolean;\n isOnlyEnga?: boolean;\n isGeneric?: boolean;\n isPersonalised?: boolean;\n forClient?: boolean;\n forFournisseur?: boolean;\n accountsSectors?: IAccountsSectors[];\n juridicalSociety?: number | null;\n idNature: number;\n customization?: number;\n idAccountType: number;\n idVat?: number | null;\n idRegisterCategorie?: number | null;\n idSector?: number | null;\n idParentAccount?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n nature?: INature;\n accountType?: IAccountType;\n tva?: IVat;\n registerCategorie?: IRegisterCategory;\n sector?: ISector;\n accountHelp?: IAccountHelp;\n accountDetails?: IAccountDetail[];\n accountsSocieties?: IAccountsSocieties[] | IAccountsSocieties;\n societies?: ISociety[];\n machineLearningResults?: IMachineLearningResult[];\n}\n"]}
@@ -43,7 +43,7 @@ export interface IEstimateInvoice {
43
43
  shouldPayTaxAfterDebit: boolean;
44
44
  idFile?: number | null;
45
45
  idRelatedInvoice: number | null;
46
- idTypeEstimateInvoice: number | number[];
46
+ idEstimateInvoiceType: number | number[];
47
47
  idFrequency: number | null;
48
48
  idSociety: number;
49
49
  idThirdParty: number;
@@ -1 +1 @@
1
- {"version":3,"file":"IEstimateInvoice.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"","sourcesContent":["import { IProductInvoice } from './IProductInvoice';\nimport { IPaymentExpectationCustomer } from './IPaymentExpectationCustomer';\nimport { IThirdParty } from './IThirdParty';\nimport { IFrequency } from './IFrequency';\nimport { IEstimateInvoiceType } from './IEstimateInvoiceType';\nimport { ISociety } from './ISociety';\nimport { IInvoiceReminder } from './IInvoiceReminder';\nimport { IFile } from './IFile';\nimport { IInvoiceRecurrence } from './IInvoiceRecurrence';\nimport { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';\nimport { AccountingCategoryId } from '../../Enum/CommercialManagement';\n\n// estimatesInvoices\nexport interface IEstimateInvoice {\n id?: number;\n label: string | null;\n payment: string | null;\n reference: string | null;\n depositAmount: number;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n isDraft: boolean;\n dueDate: Date | null;\n expirationDate: Date | null;\n emissionDate: Date | null;\n acceptationDate: Date | null;\n mailSent: Date | null;\n isPaid?: boolean;\n isUsed: boolean;\n isStripe: boolean;\n lastTryRepeat: Date | null;\n penalties: string | null;\n discount: string | null;\n recoveryCost: string | null;\n vatMention: string | null;\n freeText: string | null;\n greetings: boolean;\n generalComment: string | null;\n generalDiscount2: number | null;\n lastRelanceDate: Date | null;\n isRefused: boolean;\n isCanceled: boolean;\n status?: ReadEstimateInvoiceStatus;\n accountingCategory: AccountingCategoryId;\n shouldPayTaxAfterDebit: boolean;\n idFile?: number | null;\n idRelatedInvoice: number | null;\n idTypeEstimateInvoice: number | number[];\n idFrequency: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceForThisRepeat: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n products?: IProductInvoice[];\n thirdParty?: IThirdParty;\n frequency?: IFrequency;\n type?: IEstimateInvoiceType;\n customerPayment?: IPaymentExpectationCustomer;\n society?: ISociety;\n assetRelatedToThisEstimateInvoice?: IEstimateInvoice;\n estimateInvoiceForThisAsset?: IEstimateInvoice;\n estimateInvoiceForThisRepeat?: IEstimateInvoice;\n invoiceReminder?: IInvoiceReminder;\n relatedInvoice?: IEstimateInvoice;\n recurrence?: IInvoiceRecurrence;\n file?: IFile;\n}\n"]}
1
+ {"version":3,"file":"IEstimateInvoice.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEstimateInvoice.ts"],"names":[],"mappings":"","sourcesContent":["import { IProductInvoice } from './IProductInvoice';\nimport { IPaymentExpectationCustomer } from './IPaymentExpectationCustomer';\nimport { IThirdParty } from './IThirdParty';\nimport { IFrequency } from './IFrequency';\nimport { IEstimateInvoiceType } from './IEstimateInvoiceType';\nimport { ISociety } from './ISociety';\nimport { IInvoiceReminder } from './IInvoiceReminder';\nimport { IFile } from './IFile';\nimport { IInvoiceRecurrence } from './IInvoiceRecurrence';\nimport { ReadEstimateInvoiceStatus } from '../api/commercialManagement/Read';\nimport { AccountingCategoryId } from '../../Enum/CommercialManagement';\n\n// estimatesInvoices\nexport interface IEstimateInvoice {\n id?: number;\n label: string | null;\n payment: string | null;\n reference: string | null;\n depositAmount: number;\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n isDraft: boolean;\n dueDate: Date | null;\n expirationDate: Date | null;\n emissionDate: Date | null;\n acceptationDate: Date | null;\n mailSent: Date | null;\n isPaid?: boolean;\n isUsed: boolean;\n isStripe: boolean;\n lastTryRepeat: Date | null;\n penalties: string | null;\n discount: string | null;\n recoveryCost: string | null;\n vatMention: string | null;\n freeText: string | null;\n greetings: boolean;\n generalComment: string | null;\n generalDiscount2: number | null;\n lastRelanceDate: Date | null;\n isRefused: boolean;\n isCanceled: boolean;\n status?: ReadEstimateInvoiceStatus;\n accountingCategory: AccountingCategoryId;\n shouldPayTaxAfterDebit: boolean;\n idFile?: number | null;\n idRelatedInvoice: number | null;\n idEstimateInvoiceType: number | number[];\n idFrequency: number | null;\n idSociety: number;\n idThirdParty: number;\n idEstimateInvoiceForThisRepeat: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n products?: IProductInvoice[];\n thirdParty?: IThirdParty;\n frequency?: IFrequency;\n type?: IEstimateInvoiceType;\n customerPayment?: IPaymentExpectationCustomer;\n society?: ISociety;\n assetRelatedToThisEstimateInvoice?: IEstimateInvoice;\n estimateInvoiceForThisAsset?: IEstimateInvoice;\n estimateInvoiceForThisRepeat?: IEstimateInvoice;\n invoiceReminder?: IInvoiceReminder;\n relatedInvoice?: IEstimateInvoice;\n recurrence?: IInvoiceRecurrence;\n file?: IFile;\n}\n"]}
@@ -7,7 +7,7 @@ export interface IInternalEstimate {
7
7
  archive: boolean;
8
8
  idSociety: number;
9
9
  idPrestationList: number;
10
- idTypeEstimateInvoice: number;
10
+ idEstimateInvoiceType: number;
11
11
  createdAt?: Date | null;
12
12
  updatedAt?: Date | null;
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IInternalEstimate.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInternalEstimate.ts"],"names":[],"mappings":"","sourcesContent":["// internalEstimates\nexport interface IInternalEstimate {\n id?: number;\n amount: number;\n state: boolean;\n comment: string;\n status: boolean;\n archive: boolean;\n idSociety: number;\n idPrestationList: number;\n idTypeEstimateInvoice: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
1
+ {"version":3,"file":"IInternalEstimate.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInternalEstimate.ts"],"names":[],"mappings":"","sourcesContent":["// internalEstimates\nexport interface IInternalEstimate {\n id?: number;\n amount: number;\n state: boolean;\n comment: string;\n status: boolean;\n archive: boolean;\n idSociety: number;\n idPrestationList: number;\n idEstimateInvoiceType: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -9,6 +9,7 @@ export interface IInvoiceReminder {
9
9
  lastReminder: Date | null;
10
10
  subject?: string | null;
11
11
  message?: string | null;
12
+ email: string | null;
12
13
  idSociety: number;
13
14
  idEstimateInvoice: number | null;
14
15
  createdAt?: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"IInvoiceReminder.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC"}
1
+ {"version":3,"file":"IInvoiceReminder.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"IInvoiceReminder.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IEstimateInvoice } from './IEstimateInvoice';\n\n// societyRelance\nexport interface IInvoiceReminder {\n id?: number;\n beforeThree: boolean | null;\n dueDate: boolean | null;\n afterThree: boolean | null;\n afterSeven: boolean | null;\n lastReminder: Date | null;\n subject?: string | null;\n message?: string | null;\n idSociety: number;\n idEstimateInvoice: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n estimateInvoice?: IEstimateInvoice;\n}\n"]}
1
+ {"version":3,"file":"IInvoiceReminder.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInvoiceReminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IEstimateInvoice } from './IEstimateInvoice';\n\n// societyRelance\nexport interface IInvoiceReminder {\n id?: number;\n beforeThree: boolean | null;\n dueDate: boolean | null;\n afterThree: boolean | null;\n afterSeven: boolean | null;\n lastReminder: Date | null;\n subject?: string | null;\n message?: string | null;\n email: string | null;\n idSociety: number;\n idEstimateInvoice: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n estimateInvoice?: IEstimateInvoice;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { IAccount } from './IAccount';
2
- import { PartnerType } from '../..';
2
+ import { ISociety, PartnerType } from '../..';
3
3
  export interface ISocietyPartner {
4
4
  id?: number;
5
5
  firstname?: string;
@@ -14,5 +14,6 @@ export interface ISocietyPartner {
14
14
  updatedAt?: Date | null;
15
15
  deletedAt?: Date | null;
16
16
  account: IAccount;
17
+ society?: ISociety;
17
18
  }
18
19
  //# sourceMappingURL=ISocietyPartner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyPartner.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyPartner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,WAAW,CAAA;IAC1B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;CACnB"}
1
+ {"version":3,"file":"ISocietyPartner.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyPartner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,WAAW,CAAA;IAC1B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAA;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyPartner.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyPartner.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { PartnerType } from '../..';\n\n// societyPartner\nexport interface ISocietyPartner {\n id?: number;\n firstname?: string;\n lastname?: string;\n company?: string;\n siret?: string;\n fonction: string;\n idAccount: number;\n idSociety: number;\n idPartnerType: PartnerType\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n account: IAccount;\n}\n"]}
1
+ {"version":3,"file":"ISocietyPartner.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyPartner.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { ISociety, PartnerType } from '../..';\n\n// societyPartner\nexport interface ISocietyPartner {\n id?: number;\n firstname?: string;\n lastname?: string;\n company?: string;\n siret?: string;\n fonction: string;\n idAccount: number;\n idSociety: number;\n idPartnerType: PartnerType\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n account: IAccount;\n society?: ISociety\n}\n"]}
@@ -7,6 +7,6 @@ export function integerToFormattedAmountString(value) {
7
7
  integer += 1;
8
8
  }
9
9
  const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();
10
- return `${integer < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
10
+ return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;
11
11
  }
12
12
  //# sourceMappingURL=amount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"amount.js","sourceRoot":"","sources":["../../ts/utils/amount.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAClC,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC;IAElD,OAAO,KAAK,IAAI,GAAG,EAAE;QACnB,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC,CAAC;KACd;IAED,MAAM,eAAe,GAAG,GAAG,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/J,OAAO,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,eAAe,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;AACzF,CAAC","sourcesContent":["export function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${integer < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}"]}
1
+ {"version":3,"file":"amount.js","sourceRoot":"","sources":["../../ts/utils/amount.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAClC,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC,CAAC;IAElD,OAAO,KAAK,IAAI,GAAG,EAAE;QACnB,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC,CAAC;KACd;IAED,MAAM,eAAe,GAAG,GAAG,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/J,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,eAAe,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC;AACvF,CAAC","sourcesContent":["export function integerToFormattedAmountString(value: number): string {\n const abs = Math.abs(value / 100);\n let integer = Math.trunc(abs);\n let cents = Math.round(abs * 100 - integer * 100);\n\n while (cents >= 100) {\n cents = Math.max(0, cents - 100);\n integer += 1;\n }\n\n const integerWithMask = `${integer}`.split('').reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '').trim();\n return `${value < 0 ? '- ' : ''}${integerWithMask},${cents < 10 ? '0' : ''}${cents}`;\n}"]}
@@ -8987,14 +8987,14 @@
8987
8987
  "allowNull": true,
8988
8988
  "type": "INTEGER"
8989
8989
  },
8990
- "idTypeEstimateInvoice": {
8990
+ "idEstimateInvoiceType": {
8991
8991
  "primaryKey": false,
8992
8992
  "autoIncrement": false,
8993
8993
  "isForeignKey": true,
8994
8994
  "hasDefaultValue": false,
8995
8995
  "references": {
8996
8996
  "model": "typeEstimatesInvoice",
8997
- "key": "idTypeEstimateInvoice"
8997
+ "key": "idEstimateInvoiceType"
8998
8998
  },
8999
8999
  "allowNull": false,
9000
9000
  "type": "INTEGER"
@@ -9138,8 +9138,8 @@
9138
9138
  },
9139
9139
  "estimatesInvoicesType": {
9140
9140
  "as": "estimatesInvoicesType",
9141
- "foreignKey": "idTypeEstimateInvoice",
9142
- "identifier": "idTypeEstimateInvoice",
9141
+ "foreignKey": "idEstimateInvoiceType",
9142
+ "identifier": "idEstimateInvoiceType",
9143
9143
  "association": "BelongsTo",
9144
9144
  "target": "typeEstimatesInvoice"
9145
9145
  },
@@ -11417,14 +11417,14 @@
11417
11417
  "allowNull": false,
11418
11418
  "type": "INTEGER"
11419
11419
  },
11420
- "idTypeEstimateInvoice": {
11420
+ "idEstimateInvoiceType": {
11421
11421
  "primaryKey": false,
11422
11422
  "autoIncrement": false,
11423
11423
  "isForeignKey": true,
11424
11424
  "hasDefaultValue": false,
11425
11425
  "references": {
11426
11426
  "model": "typeEstimatesInvoice",
11427
- "key": "idTypeEstimateInvoice"
11427
+ "key": "idEstimateInvoiceType"
11428
11428
  },
11429
11429
  "allowNull": false,
11430
11430
  "type": "INTEGER"
@@ -25070,7 +25070,7 @@
25070
25070
  "timestamps": true,
25071
25071
  "indexes": [],
25072
25072
  "fields": {
25073
- "idTypeEstimateInvoice": {
25073
+ "idEstimateInvoiceType": {
25074
25074
  "primaryKey": true,
25075
25075
  "autoIncrement": true,
25076
25076
  "isForeignKey": false,
@@ -47,11 +47,11 @@ class CommercialDocument extends _Resource.Resource {
47
47
  }
48
48
 
49
49
  updateEstimate(id, payload) {
50
- return this.axios.$post(`/commercial-management/estimates/${id}`, payload);
50
+ return this.axios.$put(`/commercial-management/estimates/${id}`, payload);
51
51
  }
52
52
 
53
53
  updateOrder(id, payload) {
54
- return this.axios.$post(`/commercial-management/orders/${id}`, payload);
54
+ return this.axios.$put(`/commercial-management/orders/${id}`, payload);
55
55
  }
56
56
 
57
57
  preview(idEstimateInvoiceType, payload) {
@@ -1 +1 @@
1
- {"version":3,"file":"CommercialDocument.js","mappings":";;;;;;;AAAA;;AACA;;AAgBM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EAC9CC,GAAG,CAACC,EAAD,EAAW;IACZ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,EAAtD,CAAP;EACD;;EAEDG,MAAM,CAACH,EAAD,EAAaI,OAAb,EAA8C;IAClD,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,oCAAoCL,EAAE,EAAvD,EAA2DI,OAA3D,CAAP;EACD;;EAEDE,MAAM,CAACN,EAAD,EAAW;IACf,OAAO,KAAKC,KAAL,CAAWM,OAAX,CAAmB,oCAAoCP,EAAE,EAAzD,CAAP;EACD;;EAEDQ,gBAAgB,CAACC,MAAD,EAA2B;IACzC,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,6CAAhB,EAA+D;MAAEO;IAAF,CAA/D,CAAP;EACD;;EAEDC,YAAY,CAACD,MAAD,EAA+C;IACzD,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,kCAAhB,EAAoD;MAAEO;IAAF,CAApD,CAAP;EACD;;EAEDE,cAAc,CAACP,OAAD,EAA8D;IAC1E,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,kCAAjB,EAAmDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBC;IAA7C,CAAd,CAAnD,CAAP;EACD;;EAEDC,WAAW,CAACb,OAAD,EAA8D;IACvE,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,+BAAjB,EAAgDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBG;IAA7C,CAAd,CAAhD,CAAP;EACD;;EAEDC,cAAc,CAACnB,EAAD,EAAaI,OAAb,EAA2C;IACvD,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,oCAAoCZ,EAAE,EAAvD,EAA2DI,OAA3D,CAAP;EACD;;EAEDgB,WAAW,CAACpB,EAAD,EAAaI,OAAb,EAA2C;IACpD,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,iCAAiCZ,EAAE,EAApD,EAAwDI,OAAxD,CAAP;EACD;;EAEDiB,OAAO,CAACP,qBAAD,EAA6CV,OAA7C,EAAmG;IACxG,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,iCAAjB,EAAkDC,gCAAOT,OAAP,GAAc;MAAEU;IAAF,CAAd,CAAlD,CAAP;EACD;;EAEDQ,aAAa,CAACtB,EAAD,EAAW;IACtB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,SAAtD,CAAP;EACD;;EAEDuB,oBAAoB,CAACT,qBAAD,EAA2C;IAC7D,OAAO,KAAKb,KAAL,CAAWC,IAAX,CAAgB,yCAAhB,EAA2D;MAAEO,MAAM,EAAE;QAAEK;MAAF;IAAV,CAA3D,CAAP;EACD;;EAEDU,aAAa,CAACC,SAAD,EAAoBhB,MAApB,EAA8C;IACzD,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,oCAAoCuB,SAAS,aAA7D,EAA4E;MAAEhB;IAAF,CAA5E,CAAP;EACD;;AAnD6C;;QAAnCZ,kB,GAAAA,kB","names":["CommercialDocument","Resource","get","id","axios","$get","update","payload","patch","delete","$delete","getNextReference","params","getPaginated","createEstimate","$post","Object","idEstimateInvoiceType","EstimateInvoiceType","DEVIS","createOrder","BON","updateEstimate","updateOrder","preview","getFormValues","getDefaultFormValues","getStatistics","idSociety"],"sourceRoot":"","sources":["../../../ts/api/resources/CommercialDocument.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n IFile,\n QueryCountByStatus,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadCountDocumentByStatus,\n ReadEstimateInvoice,\n UpdateCommercialDocument,\n} from '../../types';\n\nexport class CommercialDocument extends Resource {\n get(id: number): Promise<ReadEstimateInvoice> {\n return this.axios.$get(`/commercial-management/documents/${id}`);\n }\n\n update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice> {\n return this.axios.patch(`/commercial-management/documents/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getNextReference(params: QueryNextReference): Promise<string> {\n return this.axios.$get('/commercial-management/documents/references', { params });\n }\n\n getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', { params });\n }\n\n createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.DEVIS });\n }\n\n createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.BON });\n }\n\n updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<IFile> {\n return this.axios.$post('/commercial-management/preview/', { ...payload, idEstimateInvoiceType });\n }\n\n getFormValues(id: number): Promise<CreatePreSaleDocument> {\n return this.axios.$get(`/commercial-management/documents/${id}/inputs`);\n }\n\n getDefaultFormValues(idEstimateInvoiceType: EstimateInvoiceType): Promise<CreatePreSaleDocument> {\n return this.axios.$get('/commercial-management/documents/inputs', { params: { idEstimateInvoiceType } });\n }\n\n getStatistics(idSociety: number, params: QueryCountByStatus): Promise<ReadCountDocumentByStatus> {\n return this.axios.$get(`/commercial-management/societies/${idSociety}/statistics`, { params });\n }\n}"]}
1
+ {"version":3,"file":"CommercialDocument.js","mappings":";;;;;;;AAAA;;AACA;;AAgBM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EAC9CC,GAAG,CAACC,EAAD,EAAW;IACZ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,EAAtD,CAAP;EACD;;EAEDG,MAAM,CAACH,EAAD,EAAaI,OAAb,EAA8C;IAClD,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,oCAAoCL,EAAE,EAAvD,EAA2DI,OAA3D,CAAP;EACD;;EAEDE,MAAM,CAACN,EAAD,EAAW;IACf,OAAO,KAAKC,KAAL,CAAWM,OAAX,CAAmB,oCAAoCP,EAAE,EAAzD,CAAP;EACD;;EAEDQ,gBAAgB,CAACC,MAAD,EAA2B;IACzC,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,6CAAhB,EAA+D;MAAEO;IAAF,CAA/D,CAAP;EACD;;EAEDC,YAAY,CAACD,MAAD,EAA+C;IACzD,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,kCAAhB,EAAoD;MAAEO;IAAF,CAApD,CAAP;EACD;;EAEDE,cAAc,CAACP,OAAD,EAA8D;IAC1E,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,kCAAjB,EAAmDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBC;IAA7C,CAAd,CAAnD,CAAP;EACD;;EAEDC,WAAW,CAACb,OAAD,EAA8D;IACvE,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,+BAAjB,EAAgDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBG;IAA7C,CAAd,CAAhD,CAAP;EACD;;EAEDC,cAAc,CAACnB,EAAD,EAAaI,OAAb,EAA2C;IACvD,OAAO,KAAKH,KAAL,CAAWmB,IAAX,CAAgB,oCAAoCpB,EAAE,EAAtD,EAA0DI,OAA1D,CAAP;EACD;;EAEDiB,WAAW,CAACrB,EAAD,EAAaI,OAAb,EAA2C;IACpD,OAAO,KAAKH,KAAL,CAAWmB,IAAX,CAAgB,iCAAiCpB,EAAE,EAAnD,EAAuDI,OAAvD,CAAP;EACD;;EAEDkB,OAAO,CAACR,qBAAD,EAA6CV,OAA7C,EAAmG;IACxG,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,iCAAjB,EAAkDC,gCAAOT,OAAP,GAAc;MAAEU;IAAF,CAAd,CAAlD,CAAP;EACD;;EAEDS,aAAa,CAACvB,EAAD,EAAW;IACtB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,SAAtD,CAAP;EACD;;EAEDwB,oBAAoB,CAACV,qBAAD,EAA2C;IAC7D,OAAO,KAAKb,KAAL,CAAWC,IAAX,CAAgB,yCAAhB,EAA2D;MAAEO,MAAM,EAAE;QAAEK;MAAF;IAAV,CAA3D,CAAP;EACD;;EAEDW,aAAa,CAACC,SAAD,EAAoBjB,MAApB,EAA8C;IACzD,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,oCAAoCwB,SAAS,aAA7D,EAA4E;MAAEjB;IAAF,CAA5E,CAAP;EACD;;AAnD6C;;QAAnCZ,kB,GAAAA,kB","names":["CommercialDocument","Resource","get","id","axios","$get","update","payload","patch","delete","$delete","getNextReference","params","getPaginated","createEstimate","$post","Object","idEstimateInvoiceType","EstimateInvoiceType","DEVIS","createOrder","BON","updateEstimate","$put","updateOrder","preview","getFormValues","getDefaultFormValues","getStatistics","idSociety"],"sourceRoot":"","sources":["../../../ts/api/resources/CommercialDocument.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n IFile,\n QueryCountByStatus,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadCountDocumentByStatus,\n ReadEstimateInvoice,\n UpdateCommercialDocument,\n} from '../../types';\n\nexport class CommercialDocument extends Resource {\n get(id: number): Promise<ReadEstimateInvoice> {\n return this.axios.$get(`/commercial-management/documents/${id}`);\n }\n\n update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice> {\n return this.axios.patch(`/commercial-management/documents/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getNextReference(params: QueryNextReference): Promise<string> {\n return this.axios.$get('/commercial-management/documents/references', { params });\n }\n\n getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', { params });\n }\n\n createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.DEVIS });\n }\n\n createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.BON });\n }\n\n updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<IFile> {\n return this.axios.$post('/commercial-management/preview/', { ...payload, idEstimateInvoiceType });\n }\n\n getFormValues(id: number): Promise<CreatePreSaleDocument> {\n return this.axios.$get(`/commercial-management/documents/${id}/inputs`);\n }\n\n getDefaultFormValues(idEstimateInvoiceType: EstimateInvoiceType): Promise<CreatePreSaleDocument> {\n return this.axios.$get('/commercial-management/documents/inputs', { params: { idEstimateInvoiceType } });\n }\n\n getStatistics(idSociety: number, params: QueryCountByStatus): Promise<ReadCountDocumentByStatus> {\n return this.axios.$get(`/commercial-management/societies/${idSociety}/statistics`, { params });\n }\n}"]}
@@ -5,11 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.File = undefined;
7
7
 
8
+ var _lodash = require("lodash");
9
+
8
10
  var _Resource = require("../Resource");
9
11
 
10
12
  class File extends _Resource.Resource {
11
- upload(params) {
12
- return this.axios.$post('files', params);
13
+ upload(params, file) {
14
+ const formData = new FormData();
15
+ (0, _lodash.forEach)(params, (value, key) => {
16
+ if (value) {
17
+ formData.append(key, `${value}`);
18
+ }
19
+ }); // @ts-ignore
20
+
21
+ formData.append('file', file);
22
+ return this.axios.$post('files', formData, {
23
+ headers: {
24
+ 'Content-Type': 'multipart/form-data'
25
+ }
26
+ });
13
27
  }
14
28
 
15
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FIle.js","mappings":";;;;;;;AAAA;;AAMM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,MAAM,CAACC,MAAD,EAAmB;IACvB,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,OAAjB,EAA0BF,MAA1B,CAAP;EACD;;AAH+B;;QAArBH,I,GAAAA,I","names":["File","Resource","upload","params","axios","$post"],"sourceRoot":"","sources":["../../../ts/api/resources/FIle.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ReadFile,\n CreateFile,\n} from '../../types';\n\nexport class File extends Resource {\n upload(params: CreateFile): Promise<ReadFile> {\n return this.axios.$post('files', params);\n }\n}"]}
1
+ {"version":3,"file":"FIle.js","mappings":";;;;;;;AAAA;;AACA;;AAMM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,MAAM,CAACC,MAAD,EAAmCC,IAAnC,EAA6C;IACjD,MAAMC,QAAQ,GAAG,IAAIC,QAAJ,EAAjB;IACA,qBAAQH,MAAR,EAAgB,CAACI,KAAD,EAAQC,GAAR,KAAe;MAC7B,IAAID,KAAJ,EAAW;QACTF,QAAQ,CAACI,MAAT,CAAgBD,GAAhB,EAAqB,GAAGD,KAAK,EAA7B;MACD;IACF,CAJD,EAFiD,CAOjD;;IACAF,QAAQ,CAACI,MAAT,CAAgB,MAAhB,EAAwBL,IAAxB;IACA,OAAO,KAAKM,KAAL,CAAWC,KAAX,CAAiB,OAAjB,EAA0BN,QAA1B,EAAoC;MAAEO,OAAO,EAAE;QAAE,gBAAgB;MAAlB;IAAX,CAApC,CAAP;EACD;;AAX+B;;QAArBZ,I,GAAAA,I","names":["File","Resource","upload","params","file","formData","FormData","value","key","append","axios","$post","headers"],"sourceRoot":"","sources":["../../../ts/api/resources/FIle.ts"],"sourcesContent":["import { forEach } from 'lodash';\nimport { Resource } from '../Resource';\nimport {\n ReadFile,\n CreateFile,\n} from '../../types';\n\nexport class File extends Resource {\n upload(params: Omit<CreateFile, 'file'>, file: File): Promise<ReadFile> {\n const formData = new FormData();\n forEach(params, (value, key) => {\n if (value) {\n formData.append(key, `${value}`);\n }\n });\n // @ts-ignore\n formData.append('file', file);\n return this.axios.$post('files', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n}"]}
@@ -40,8 +40,8 @@ class GeneralLedger extends _Resource.Resource {
40
40
  });
41
41
  }
42
42
 
43
- getPdf(params) {
44
- return this.axios.$get('/generalLedger/pdf', {
43
+ getPdf(idSociety, params) {
44
+ return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {
45
45
  params,
46
46
  responseType: 'arraybuffer',
47
47
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.js","mappings":";;;;;;;AAIA;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MAAEF;IAAF,CAA5C,CAAP;EACD;;AAvDwC;;QAA9BH,a,GAAAA,a","names":["GeneralLedger","Resource","getBySociety","params","axios","$get","getBalanceBySociety","getCsv","responseType","headers","Accept","getBalanceCsv","getPdf","getBalancePdf","getAuxiliary"],"sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"sourcesContent":["import {\n BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n getCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getBalanceCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getPdf(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getBalancePdf(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n}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Z,MAAD,EAAoC;IAC9C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,0BAAhB,EAA4C;MAAEF;IAAF,CAA5C,CAAP;EACD;;AAvDwC;;QAA9BH,a,GAAAA,a","names":["GeneralLedger","Resource","getBySociety","params","axios","$get","getBalanceBySociety","getCsv","responseType","headers","Accept","getBalanceCsv","getPdf","idSociety","getBalancePdf","getAuxiliary"],"sourceRoot":"","sources":["../../../ts/api/resources/GeneralLedger.ts"],"sourcesContent":["import {\n BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n getCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getBalanceCsv(params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger):Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getBalancePdf(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/balance/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n}"]}
@@ -169,11 +169,12 @@ class Mail extends _Resource.Resource {
169
169
  }));
170
170
  }
171
171
 
172
- countToBeClassifiedByUser(idUser, cancelToken) {
172
+ countToBeClassifiedByUser(idUser, to, cancelToken) {
173
173
  return this.axios.$get('/mails/count-unprocessed-by-user', Object.assign(Object.assign({}, cancelToken ? {
174
174
  cancelToken
175
175
  } : {}), {
176
176
  params: {
177
+ to,
177
178
  idUser,
178
179
  isWithoutSociety: true
179
180
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Mail.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,MAAM,CAACC,OAAD,EAA0B;IAC9B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,QAAjB,EAA2BF,OAA3B,CAAP;EACD;;EAEMG,GAAG,CAACC,EAAD,EAAaC,MAAb,EAA8B;IACtC,OAAO,KAAKJ,KAAL,CAAWK,IAAX,CAAgB,UAAUF,EAAE,EAA5B,EAAgC;MAAEC;IAAF,CAAhC,CAAP;EACD;;EAEME,MAAM,CAACF,MAAD,EAA8B;IACzC,OAAO,KAAKJ,KAAL,CAAWK,IAAX,CAAgB,YAAhB,EAA8B;MAAED;IAAF,CAA9B,CAAP;EACD;;EAEMG,wBAAwB,CAACC,MAAD,EAAiBJ,MAAjB,EAAsDK,WAAtD,EAA+E;IAC5G,OAAO,KAAKT,KAAL,CAAWK,IAAX,CAAgB,kBAAhB,EAAkCK,gCACnCD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADG,GACA;MACvCL,MAAM,kCACDA,MADC,GACK;QACTI,MADS;QAETG,WAAW,EAAE,KAFJ;QAGTC,MAAM,EAAE;MAHC,CADL;IADiC,CADA,CAAlC,CAAP;EASD;;EACMC,iCAAiC,CAACL,MAAD,EAA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AAD,EAAiBC,WAAjB,EAA0C;IACxE,OAAO,KAAKT,KAAL,CAAWK,IAAX,CAAgB,kCAAhB,EAAkDK,gCACnDD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADmB,GAChB;MACvCL,MAAM,EAAE;QACNI,MADM;QAENe,wBAAwB,EAAE;MAFpB;IAD+B,CADgB,CAAlD,CAAP;EAOD;;EAEDa,MAAM,CAACjC,EAAD,EAAaJ,OAAb,EAAyCK,MAAzC,EAA0D;IAC9D,OAAO,KAAKJ,KAAL,CAAWqC,KAAX,CAAiB,UAAUlC,EAAE,EAA7B,EAA+BO,gCAAOX,OAAP,GAAmBK,MAAnB,CAA/B,CAAP;EACD;;EAEDkC,MAAM,CAACC,MAAD,EAAe;IACnB,OAAO,KAAKvC,KAAL,CAAWwC,OAAX,CAAmB,UAAUD,MAAM,EAAnC,CAAP;EACD;;AAxK+B;;QAArB3C,I,GAAAA,I","names":["Mail","Resource","create","payload","axios","$post","get","id","params","$get","getAll","getPaginatedInboxForUser","idUser","cancelToken","Object","isProcessed","isSent","getPaginatedToBeClassifiedForUser","isWithoutSociety","getPaginatedProcessedForUser","idUserWhoFlagged","getPaginatedSentForUser","idUserWhoAnswered","isDraft","getPaginatedImportantForUser","isImportant","getPaginatedForManagerRole","handlingManagerRoleMails","getPaginatedDraftForUser","getPaginatedTrashedForUser","isDeleted","withDeleted","getPaginatedBySociety","idSociety","countProcessedByUser","sumOfSlidingDays","getAnsweringTimeByUser","countInboxByUser","countToBeClassifiedByUser","countUnprocessedByManager","update","patch","delete","idMail","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\n QueryAllMail,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: CreateMailParams): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getAll(params: Partial<QueryAllMail>): Promise<Mail> {\n return this.axios.$get('/mails/all', { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n isWithoutSociety: true,\n },\n });\n }\n public getPaginatedProcessedForUser(idUserWhoFlagged: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoFlagged,\n isProcessed: true,\n isSent: false,\n },\n });\n }\n public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: false,\n },\n });\n }\n public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isImportant: true,\n },\n });\n }\n public getPaginatedForManagerRole(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n handlingManagerRoleMails: true,\n },\n });\n }\n public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: true,\n },\n });\n }\n public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isDeleted: true,\n withDeleted: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idSociety,\n },\n });\n }\n\n public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-processed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/answering-time-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isSent: false,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isWithoutSociety: true,\n },\n });\n }\n public countUnprocessedByManager(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n handlingManagerRoleMails: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, { ...payload, ...params });\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
1
+ {"version":3,"file":"Mail.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,IAAP,SAAoBC,kBAApB,CAA4B;EAChCC,MAAM,CAACC,OAAD,EAA0B;IAC9B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,QAAjB,EAA2BF,OAA3B,CAAP;EACD;;EAEMG,GAAG,CAACC,EAAD,EAAaC,MAAb,EAA8B;IACtC,OAAO,KAAKJ,KAAL,CAAWK,IAAX,CAAgB,UAAUF,EAAE,EAA5B,EAAgC;MAAEC;IAAF,CAAhC,CAAP;EACD;;EAEME,MAAM,CAACF,MAAD,EAA8B;IACzC,OAAO,KAAKJ,KAAL,CAAWK,IAAX,CAAgB,YAAhB,EAA8B;MAAED;IAAF,CAA9B,CAAP;EACD;;EAEMG,wBAAwB,CAACC,MAAD,EAAiBJ,MAAjB,EAAsDK,WAAtD,EAA+E;IAC5G,OAAO,KAAKT,KAAL,CAAWK,IAAX,CAAgB,kBAAhB,EAAkCK,gCACnCD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADG,GACA;MACvCL,MAAM,kCACDA,MADC,GACK;QACTI,MADS;QAETG,WAAW,EAAE,KAFJ;QAGTC,MAAM,EAAE;MAHC,CADL;IADiC,CADA,CAAlC,CAAP;EASD;;EACMC,iCAAiC,CAACL,MAAD,EAAiBJ,MAAjB,EAAsDK,WAAtD,EAA+E;IACr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EAAiBC,WAAjB,EAA0C;IACxE,OAAO,KAAKT,KAAL,CAAWK,IAAX,CAAgB,kCAAhB,EAAkDK,gCACnDD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADmB,GAChB;MACvCL,MAAM,EAAE;QACNI,MADM;QAENe,wBAAwB,EAAE;MAFpB;IAD+B,CADgB,CAAlD,CAAP;EAOD;;EAEDc,MAAM,CAAClC,EAAD,EAAaJ,OAAb,EAAyCK,MAAzC,EAA0D;IAC9D,OAAO,KAAKJ,KAAL,CAAWsC,KAAX,CAAiB,UAAUnC,EAAE,EAA7B,EAA+BO,gCAAOX,OAAP,GAAmBK,MAAnB,CAA/B,CAAP;EACD;;EAEDmC,MAAM,CAACC,MAAD,EAAe;IACnB,OAAO,KAAKxC,KAAL,CAAWyC,OAAX,CAAmB,UAAUD,MAAM,EAAnC,CAAP;EACD;;AAzK+B;;QAArB5C,I,GAAAA,I","names":["Mail","Resource","create","payload","axios","$post","get","id","params","$get","getAll","getPaginatedInboxForUser","idUser","cancelToken","Object","isProcessed","isSent","getPaginatedToBeClassifiedForUser","isWithoutSociety","getPaginatedProcessedForUser","idUserWhoFlagged","getPaginatedSentForUser","idUserWhoAnswered","isDraft","getPaginatedImportantForUser","isImportant","getPaginatedForManagerRole","handlingManagerRoleMails","getPaginatedDraftForUser","getPaginatedTrashedForUser","isDeleted","withDeleted","getPaginatedBySociety","idSociety","countProcessedByUser","sumOfSlidingDays","getAnsweringTimeByUser","countInboxByUser","countToBeClassifiedByUser","to","countUnprocessedByManager","update","patch","delete","idMail","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Mail.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n UpdateMailPayload,\n QueryMail,\n QueryPaginatedMail,\n IMail,\n CreateMailParams,\n QueryAllMail,\n} from '../../types';\n\nexport class Mail extends Resource {\n create(payload: CreateMailParams): Promise<IMail> {\n return this.axios.$post('/mails', payload);\n }\n\n public get(id: number, params: QueryMail): Promise<Mail> {\n return this.axios.$get(`/mails/${id}`, { params });\n }\n\n public getAll(params: Partial<QueryAllMail>): Promise<Mail> {\n return this.axios.$get('/mails/all', { params });\n }\n\n public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n },\n });\n }\n public getPaginatedToBeClassifiedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n isWithoutSociety: true,\n },\n });\n }\n public getPaginatedProcessedForUser(idUserWhoFlagged: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoFlagged,\n isProcessed: true,\n isSent: false,\n },\n });\n }\n public getPaginatedSentForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: false,\n },\n });\n }\n public getPaginatedImportantForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isImportant: true,\n },\n });\n }\n public getPaginatedForManagerRole(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isProcessed: false,\n isSent: false,\n handlingManagerRoleMails: true,\n },\n });\n }\n public getPaginatedDraftForUser(idUserWhoAnswered: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUserWhoAnswered,\n isProcessed: false,\n isSent: true,\n isDraft: true,\n },\n });\n }\n public getPaginatedTrashedForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idUser,\n isDeleted: true,\n withDeleted: true,\n },\n });\n }\n public getPaginatedBySociety(idSociety: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {\n return this.axios.$get('/mails/paginated', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...params,\n idSociety,\n },\n });\n }\n\n public countProcessedByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-processed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n public getAnsweringTimeByUser(idUser: number, sumOfSlidingDays?: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/answering-time-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n ...(sumOfSlidingDays ? { sumOfSlidingDays } : {}),\n },\n });\n }\n\n public countInboxByUser(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n isSent: false,\n },\n });\n }\n public countToBeClassifiedByUser(idUser: number, to?: string, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n to,\n idUser,\n isWithoutSociety: true,\n },\n });\n }\n public countUnprocessedByManager(idUser: number, cancelToken?: CancelToken): Promise<number> {\n return this.axios.$get('/mails/count-unprocessed-by-user', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n idUser,\n handlingManagerRoleMails: true,\n },\n });\n }\n\n update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {\n return this.axios.patch(`/mails/${id}`, { ...payload, ...params });\n }\n\n delete(idMail: number): Promise<void> {\n return this.axios.$delete(`/mails/${idMail}`);\n }\n}\n"]}
@@ -22,6 +22,10 @@ class Partner extends _Resource.Resource {
22
22
  return this.axios.$put(`partners/${idPartner}`, params);
23
23
  }
24
24
 
25
+ delete(idPartner) {
26
+ return this.axios.$delete(`partners/${idPartner}`);
27
+ }
28
+
25
29
  }
26
30
 
27
31
  exports.Partner = Partner;
@@ -1 +1 @@
1
- {"version":3,"file":"Partner.js","mappings":";;;;;;;AAAA;;AAQM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM,CAACC,MAAD,EAAsB;IAC1B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,UAAjB,EAA6BF,MAA7B,CAAP;EACD;;EACDG,MAAM,CAACH,MAAD,EAAoB;IACxB,OAAO,KAAKC,KAAL,CAAWG,IAAX,CAAgB,UAAhB,EAA4B;MAAEJ;IAAF,CAA5B,CAAP;EACD;;EACDK,MAAM,CAACC,SAAD,EAAoBN,MAApB,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWM,IAAX,CAAgB,YAAYD,SAAS,EAArC,EAAyCN,MAAzC,CAAP;EACD;;AATkC;;QAAxBH,O,GAAAA,O","names":["Partner","Resource","create","params","axios","$post","getAll","$get","update","idPartner","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/Partner.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ISocietyPartner,\n CreatePartner,\n UpdatePartner,\n GetPartners,\n} from '../../types';\n\nexport class Partner extends Resource {\n create(params: CreatePartner): Promise<ISocietyPartner> {\n return this.axios.$post('partners', params);\n }\n getAll(params: GetPartners): Promise<ISocietyPartner[]> {\n return this.axios.$get('partners', { params });\n }\n update(idPartner: number, params: UpdatePartner): Promise<ISocietyPartner> {\n return this.axios.$put(`partners/${idPartner}`, params);\n }\n}"]}
1
+ {"version":3,"file":"Partner.js","mappings":";;;;;;;AAAA;;AAQM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM,CAACC,MAAD,EAAsB;IAC1B,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,UAAjB,EAA6BF,MAA7B,CAAP;EACD;;EACDG,MAAM,CAACH,MAAD,EAAoB;IACxB,OAAO,KAAKC,KAAL,CAAWG,IAAX,CAAgB,UAAhB,EAA4B;MAAEJ;IAAF,CAA5B,CAAP;EACD;;EACDK,MAAM,CAACC,SAAD,EAAoBN,MAApB,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWM,IAAX,CAAgB,YAAYD,SAAS,EAArC,EAAyCN,MAAzC,CAAP;EACD;;EAEDQ,MAAM,CAACF,SAAD,EAAkB;IACtB,OAAO,KAAKL,KAAL,CAAWQ,OAAX,CAAmB,YAAYH,SAAS,EAAxC,CAAP;EACD;;AAbkC;;QAAxBT,O,GAAAA,O","names":["Partner","Resource","create","params","axios","$post","getAll","$get","update","idPartner","$put","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/Partner.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n ISocietyPartner,\n CreatePartner,\n UpdatePartner,\n GetPartners,\n} from '../../types';\n\nexport class Partner extends Resource {\n create(params: CreatePartner): Promise<ISocietyPartner> {\n return this.axios.$post('partners', params);\n }\n getAll(params: GetPartners): Promise<ISocietyPartner[]> {\n return this.axios.$get('partners', { params });\n }\n update(idPartner: number, params: UpdatePartner): Promise<ISocietyPartner> {\n return this.axios.$put(`partners/${idPartner}`, params);\n }\n\n delete(idPartner: number): Promise<number> {\n return this.axios.$delete(`partners/${idPartner}`);\n }\n}"]}
@@ -44,5 +44,6 @@ var LogType = exports.LogType = undefined;
44
44
  LogType[LogType["UNPAID"] = 21] = "UNPAID";
45
45
  LogType[LogType["DELETE"] = 22] = "DELETE";
46
46
  LogType[LogType["REGULATION_DELETE"] = 23] = "REGULATION_DELETE";
47
+ LogType[LogType["TRANSACTION_DELETE"] = 26] = "TRANSACTION_DELETE";
47
48
  })(LogType || (exports.LogType = LogType = {}));
48
49
  //# sourceMappingURL=Log.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Log.js","mappings":";;;;;AAAA,IAAYA,UAIX,WAJWA,UAIX,YAJD;;AAAA,WAAYA,UAAZ,EAAsB;EACpBA;EACAA;EACAA;AACD,CAJD,EAAYA,UAAU,aAAVA,UAAU,GAAVA,UAAU,MAAtB;;AAMA,IAAYC,MAGX,WAHWA,MAGX,YAHD;;AAAA,WAAYA,MAAZ,EAAkB;EAChBA;EACAA;AACD,CAHD,EAAYA,MAAM,aAANA,MAAM,GAANA,MAAM,MAAlB;;AAKA,IAAYC,OAwBX,WAxBWA,OAwBX,YAxBD;;AAAA,WAAYA,OAAZ,EAAmB;EACjBA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;AACD,CAxBD,EAAYA,OAAO,aAAPA,OAAO,GAAPA,OAAO,MAAnB","names":["ActionType","Source","LogType"],"sourceRoot":"","sources":["../../../ts/types/Enum/Log.ts"],"sourcesContent":["export enum ActionType {\n POST = 1,\n PUT = 2,\n DELETE = 3,\n}\n\nexport enum Source {\n MY_CLEMENTINE = 1,\n CLEMENTINIER = 2,\n}\n\nexport enum LogType {\n VAT = 1,\n TAX = 2,\n BALANCESHEET = 3,\n SUPERVISION = 4,\n TASK = 5,\n COMMENT = 6,\n MAIL = 7,\n REPORT = 8,\n EXPORT = 9,\n REVISION = 10,\n ARCHIVING = 11,\n UNARCHIVING = 12,\n PAYMENT_DELETED = 13,\n LOGIN = 14,\n PAUSE = 15,\n DAY_END = 16,\n GENERIC_ACCOUNT = 17,\n BANK_ACCOUNT_FUSION = 18,\n IMPORT = 19,\n PAUSE_END = 20,\n UNPAID = 21,\n DELETE = 22,\n REGULATION_DELETE = 23,\n}"]}
1
+ {"version":3,"file":"Log.js","mappings":";;;;;AAAA,IAAYA,UAIX,WAJWA,UAIX,YAJD;;AAAA,WAAYA,UAAZ,EAAsB;EACpBA;EACAA;EACAA;AACD,CAJD,EAAYA,UAAU,aAAVA,UAAU,GAAVA,UAAU,MAAtB;;AAMA,IAAYC,MAGX,WAHWA,MAGX,YAHD;;AAAA,WAAYA,MAAZ,EAAkB;EAChBA;EACAA;AACD,CAHD,EAAYA,MAAM,aAANA,MAAM,GAANA,MAAM,MAAlB;;AAKA,IAAYC,OAyBX,WAzBWA,OAyBX,YAzBD;;AAAA,WAAYA,OAAZ,EAAmB;EACjBA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;EACAA;AACD,CAzBD,EAAYA,OAAO,aAAPA,OAAO,GAAPA,OAAO,MAAnB","names":["ActionType","Source","LogType"],"sourceRoot":"","sources":["../../../ts/types/Enum/Log.ts"],"sourcesContent":["export enum ActionType {\n POST = 1,\n PUT = 2,\n DELETE = 3,\n}\n\nexport enum Source {\n MY_CLEMENTINE = 1,\n CLEMENTINIER = 2,\n}\n\nexport enum LogType {\n VAT = 1,\n TAX = 2,\n BALANCESHEET = 3,\n SUPERVISION = 4,\n TASK = 5,\n COMMENT = 6,\n MAIL = 7,\n REPORT = 8,\n EXPORT = 9,\n REVISION = 10,\n ARCHIVING = 11,\n UNARCHIVING = 12,\n PAYMENT_DELETED = 13,\n LOGIN = 14,\n PAUSE = 15,\n DAY_END = 16,\n GENERIC_ACCOUNT = 17,\n BANK_ACCOUNT_FUSION = 18,\n IMPORT = 19,\n PAUSE_END = 20,\n UNPAID = 21,\n DELETE = 22,\n REGULATION_DELETE = 23,\n TRANSACTION_DELETE = 26,\n}"]}
@@ -247,6 +247,8 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(),
247
247
 
248
248
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], CreateReminder.prototype, "message", void 0);
249
249
 
250
+ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateReminder.prototype, "email", void 0);
251
+
250
252
  class CreateRecurrence {}
251
253
 
252
254
  exports.CreateRecurrence = CreateRecurrence;