@silexpert/core 1.1.234 → 1.1.236

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 (87) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts +2 -1
  2. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/AccountingFiles.js +3 -0
  4. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  5. package/dist/cjs/api/resources/Transaction.d.ts +2 -1
  6. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Transaction.js +3 -0
  8. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandPourcentage.js +2 -2
  10. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  11. package/dist/cjs/types/Enum/CommercialOfferType.js +2 -2
  12. package/dist/cjs/types/Enum/CommercialOfferType.js.map +1 -1
  13. package/dist/cjs/types/Enum/EntityType.d.ts +1 -1
  14. package/dist/cjs/types/Enum/EntityType.js +1 -1
  15. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/accountingEntry/Create.d.ts +9 -0
  17. package/dist/cjs/types/Interface/api/accountingEntry/Create.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/accountingEntry/Create.js +41 -1
  19. package/dist/cjs/types/Interface/api/accountingEntry/Create.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +4 -0
  21. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +15 -1
  23. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +4 -0
  25. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +13 -3
  27. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +9 -0
  30. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  31. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +3 -0
  32. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  34. package/dist/cjs/utils/email/templates/signature.js +1 -1
  35. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  36. package/dist/cjs/utils/email.js +1 -1
  37. package/dist/cjs/utils/email.js.map +1 -1
  38. package/dist/mjs/api/resources/AccountingFiles.d.ts +2 -1
  39. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  40. package/dist/mjs/api/resources/AccountingFiles.js +3 -0
  41. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  42. package/dist/mjs/api/resources/Transaction.d.ts +2 -1
  43. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  44. package/dist/mjs/api/resources/Transaction.js +3 -0
  45. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  46. package/dist/mjs/types/Enum/BrandPourcentage.js +2 -2
  47. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  48. package/dist/mjs/types/Enum/CommercialOfferType.js +2 -2
  49. package/dist/mjs/types/Enum/CommercialOfferType.js.map +1 -1
  50. package/dist/mjs/types/Enum/EntityType.d.ts +1 -1
  51. package/dist/mjs/types/Enum/EntityType.js +1 -1
  52. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/accountingEntry/Create.d.ts +9 -0
  54. package/dist/mjs/types/Interface/api/accountingEntry/Create.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/api/accountingEntry/Create.js +46 -0
  56. package/dist/mjs/types/Interface/api/accountingEntry/Create.js.map +1 -1
  57. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +4 -0
  58. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +15 -0
  60. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +4 -0
  62. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +16 -4
  64. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  65. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +10 -1
  67. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  68. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +3 -0
  69. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  71. package/dist/mjs/utils/email/templates/signature.js +1 -1
  72. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  73. package/dist/mjs/utils/email.js +1 -1
  74. package/dist/mjs/utils/email.js.map +1 -1
  75. package/package.json +1 -1
  76. package/ts/api/resources/AccountingFiles.ts +5 -1
  77. package/ts/api/resources/Transaction.ts +5 -1
  78. package/ts/types/Enum/BrandPourcentage.ts +2 -2
  79. package/ts/types/Enum/CommercialOfferType.ts +2 -2
  80. package/ts/types/Enum/EntityType.ts +1 -1
  81. package/ts/types/Interface/api/accountingEntry/Create.ts +32 -0
  82. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +13 -0
  83. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +10 -1
  84. package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +8 -2
  85. package/ts/types/Interface/models/ISocietyDetail.ts +3 -0
  86. package/ts/utils/email/templates/signature.ts +1 -1
  87. package/ts/utils/email.ts +1 -1
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DuplicateAccountingTransaction = exports.CreateManualEntry = void 0;
12
+ exports.DuplicateAccountingTransaction = exports.CreateWithMasterEntry = exports.CreateManualEntry = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
@@ -59,6 +59,46 @@ __decorate([
59
59
  __metadata("design:type", Boolean)
60
60
  ], CreateManualEntry.prototype, "balanceIsOptionnal", void 0);
61
61
  exports.CreateManualEntry = CreateManualEntry;
62
+ class CreateWithMasterEntry {
63
+ }
64
+ __decorate([
65
+ (0, utils_1.ApiProperty)(),
66
+ (0, class_validator_1.IsNumber)(),
67
+ __metadata("design:type", Number)
68
+ ], CreateWithMasterEntry.prototype, "debit", void 0);
69
+ __decorate([
70
+ (0, utils_1.ApiProperty)(),
71
+ (0, class_validator_1.IsNumber)(),
72
+ __metadata("design:type", Number)
73
+ ], CreateWithMasterEntry.prototype, "credit", void 0);
74
+ __decorate([
75
+ (0, utils_1.ApiProperty)(),
76
+ __metadata("design:type", Date)
77
+ ], CreateWithMasterEntry.prototype, "dateValue", void 0);
78
+ __decorate([
79
+ (0, utils_1.ApiProperty)(),
80
+ (0, class_validator_1.IsString)(),
81
+ __metadata("design:type", String)
82
+ ], CreateWithMasterEntry.prototype, "designation", void 0);
83
+ __decorate([
84
+ (0, utils_1.ApiPropertyOptional)(),
85
+ (0, class_validator_1.IsNumber)(),
86
+ (0, class_validator_1.IsOptional)(),
87
+ __metadata("design:type", Object)
88
+ ], CreateWithMasterEntry.prototype, "idAccountingJournal", void 0);
89
+ __decorate([
90
+ (0, utils_1.ApiPropertyOptional)(),
91
+ (0, class_validator_1.IsInt)(),
92
+ (0, class_validator_1.IsOptional)(),
93
+ __metadata("design:type", Object)
94
+ ], CreateWithMasterEntry.prototype, "idFile", void 0);
95
+ __decorate([
96
+ (0, utils_1.ApiPropertyOptional)(),
97
+ (0, class_validator_1.IsString)(),
98
+ (0, class_validator_1.IsOptional)(),
99
+ __metadata("design:type", Object)
100
+ ], CreateWithMasterEntry.prototype, "dateLocked", void 0);
101
+ exports.CreateWithMasterEntry = CreateWithMasterEntry;
62
102
  class DuplicateAccountingTransaction {
63
103
  }
64
104
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4F;AAC5F,6CAAqE;AAErE,sFAA2E;AAE3E,MAAa,iBAAiB;CAmC7B;AAlCC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;gDACK;AAEhB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iDACM;AAEjB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACS;AAEpB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;sDACW;AAEtB;IAAC,IAAA,mBAAW,GAAE;8BACD,IAAI;oDAAC;AAElB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACoC;AAEjD;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACmB;AAEhC;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;6DACkB;AAlCjC,8CAmCC;AAED,MAAa,8BAA8B;CAS1C;AARC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gFACgB;AAEtC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iEACS;AARtB,wEASC","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { AccountingJournal } from '../../../Enum/AccountingJournal';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateManualEntry {\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n idAccount: number;\n\n @ApiProperty()\n @IsString()\n designation: string;\n\n @ApiProperty()\n dateValue: Date;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idAccountingJournal?: AccountingJournal | null;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idBankAccount?: number | null;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n balanceIsOptionnal?: boolean;\n}\n\nexport class DuplicateAccountingTransaction {\n @ApiProperty()\n @IsArray()\n @IsInt({ each: true })\n idAccountingTransactions : number[];\n\n @ApiProperty()\n @IsString()\n dateValue: string;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingEntry/Create.ts"],"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AAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACgB;AA7B/B,sDA8BC;AAED,MAAa,8BAA8B;CAS1C;AARC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gFACgB;AAEtC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iEACS;AARtB,wEASC","sourcesContent":["import { IsArray, IsBoolean, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { AccountingJournal } from '../../../Enum/AccountingJournal';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateManualEntry {\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n idAccount: number;\n\n @ApiProperty()\n @IsString()\n designation: string;\n\n @ApiProperty()\n dateValue: Date;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idAccountingJournal?: AccountingJournal | null;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idBankAccount?: number | null;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n balanceIsOptionnal?: boolean;\n}\n\nexport class CreateWithMasterEntry {\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n dateValue: Date;\n\n @ApiProperty()\n @IsString()\n designation: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idAccountingJournal?: AccountingJournal | null;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idFile?: number | null;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n dateLocked?: string | null;\n}\n\nexport class DuplicateAccountingTransaction {\n @ApiProperty()\n @IsArray()\n @IsInt({ each: true })\n idAccountingTransactions : number[];\n\n @ApiProperty()\n @IsString()\n dateValue: string;\n}\n"]}
@@ -10,4 +10,8 @@ export declare class QueryAccountingFilesV2 extends QueryAccountingFiles {
10
10
  idSociety: number;
11
11
  idAccountingTransaction?: number;
12
12
  }
13
+ export declare class CreateAccountingFileFromFile {
14
+ idAccountingFileType: number;
15
+ emissionDate: Date | null;
16
+ }
13
17
  //# sourceMappingURL=queryAccountingFiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queryAccountingFiles.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,OAAO,CAAC;IAIf,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,OAAO,CAAC;IAGnB,KAAK,EAAE,IAAI,EAAE,CAAC;IAGd,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,sBAAuB,SAAQ,oBAAoB;IAE5D,SAAS,EAAE,MAAM,CAAC;IAGlB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC"}
1
+ {"version":3,"file":"queryAccountingFiles.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":"AAMA,qBAAa,oBAAoB;IAE7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,OAAO,CAAC;IAIf,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,OAAO,CAAC;IAGnB,KAAK,EAAE,IAAI,EAAE,CAAC;IAGd,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,sBAAuB,SAAQ,oBAAoB;IAE5D,SAAS,EAAE,MAAM,CAAC;IAGlB,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,qBAAa,4BAA4B;IAGrC,oBAAoB,EAAE,MAAM,CAAC;IAI7B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;CAC7B"}
@@ -9,9 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryAccountingFilesV2 = exports.QueryAccountingFiles = void 0;
12
+ exports.CreateAccountingFileFromFile = exports.QueryAccountingFilesV2 = exports.QueryAccountingFiles = void 0;
13
13
  const utils_1 = require("../../../../utils");
14
14
  const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
15
+ const class_validator_1 = require("class-validator");
15
16
  class QueryAccountingFiles {
16
17
  }
17
18
  __decorate([
@@ -53,4 +54,17 @@ __decorate([
53
54
  __metadata("design:type", Number)
54
55
  ], QueryAccountingFilesV2.prototype, "idAccountingTransaction", void 0);
55
56
  exports.QueryAccountingFilesV2 = QueryAccountingFilesV2;
57
+ class CreateAccountingFileFromFile {
58
+ }
59
+ __decorate([
60
+ (0, utils_1.ApiProperty)(),
61
+ (0, class_validator_1.IsInt)(),
62
+ __metadata("design:type", Number)
63
+ ], CreateAccountingFileFromFile.prototype, "idAccountingFileType", void 0);
64
+ __decorate([
65
+ (0, utils_1.ApiPropertyOptional)(),
66
+ (0, class_validator_1.IsOptional)(),
67
+ __metadata("design:type", Object)
68
+ ], CreateAccountingFileFromFile.prototype, "emissionDate", void 0);
69
+ exports.CreateAccountingFileFromFile = CreateAccountingFileFromFile;
56
70
  //# sourceMappingURL=queryAccountingFiles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,sFAA2E;AAE3E,MAAa,oBAAoB;CAqBhC;AApBC;IAAC,IAAA,mBAAW,GAAE;;8DACa;AAE3B;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;mDACK;AAEjB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;wDACU;AAEtB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;uDACS;AAErB;IAAC,IAAA,mBAAW,GAAE;;mDACE;AAEhB;IAAC,IAAA,2BAAmB,GAAE;;0DACE;AApB1B,oDAqBC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAM/D;AALC;IAAC,IAAA,mBAAW,GAAE;;yDACM;AAEpB;IAAC,IAAA,2BAAmB,GAAE;;uEACa;AALrC,wDAMC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}\n\nexport class QueryAccountingFilesV2 extends QueryAccountingFiles {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idAccountingTransaction?: number;\n}"]}
1
+ {"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,sFAA2E;AAC3E,qDAEyB;AAEzB,MAAa,oBAAoB;CAqBhC;AApBC;IAAC,IAAA,mBAAW,GAAE;;8DACa;AAE3B;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;mDACK;AAEjB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;wDACU;AAEtB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,6BAAS,GAAE;;uDACS;AAErB;IAAC,IAAA,mBAAW,GAAE;;mDACE;AAEhB;IAAC,IAAA,2BAAmB,GAAE;;0DACE;AApB1B,oDAqBC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAM/D;AALC;IAAC,IAAA,mBAAW,GAAE;;yDACM;AAEpB;IAAC,IAAA,2BAAmB,GAAE;;uEACa;AALrC,wDAMC;AAED,MAAa,4BAA4B;CAQxC;AAPC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0EACuB;AAE/B;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;kEACe;AAP9B,oEAQC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport {\n IsInt, IsOptional,\n} from 'class-validator';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}\n\nexport class QueryAccountingFilesV2 extends QueryAccountingFiles {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idAccountingTransaction?: number;\n}\n\nexport class CreateAccountingFileFromFile {\n @ApiProperty()\n @IsInt()\n idAccountingFileType: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n emissionDate: Date | null;\n}"]}
@@ -1,4 +1,5 @@
1
1
  import { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';
2
+ import { AccountingJournal } from '../../../Enum/AccountingJournal';
2
3
  export declare class QueryTransaction {
3
4
  id: number;
4
5
  page: number;
@@ -6,6 +7,7 @@ export declare class QueryTransaction {
6
7
  idAccountingJournal: number[];
7
8
  idBankAccount?: number[];
8
9
  idAccountType?: number;
10
+ idFile?: number;
9
11
  orderBy?: string;
10
12
  search?: string;
11
13
  descending?: boolean;
@@ -20,5 +22,7 @@ export declare class QueryTransaction {
20
22
  export declare class QueryGetAllTransactions {
21
23
  typeOperation?: TypeCustomerProviderOperation;
22
24
  dateValue?: string;
25
+ idAccountingJournal: AccountingJournal[];
26
+ idFile: number;
23
27
  }
24
28
  //# sourceMappingURL=QueryTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryTransaction.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,qBAAa,gBAAgB;IAC3B,EAAE,EAAE,MAAM,CAAC;IAGT,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAId,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAG9B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAG3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,uBAAuB;IAEhC,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAG9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"QueryTransaction.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,qBAAa,gBAAgB;IAC3B,EAAE,EAAE,MAAM,CAAC;IAGT,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAG9B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAG3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,uBAAuB;IAEhC,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAG9C,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;IAGzC,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -23,9 +23,7 @@ __decorate([
23
23
  __metadata("design:type", Number)
24
24
  ], QueryTransaction.prototype, "limit", void 0);
25
25
  __decorate([
26
- (0, utils_1.ApiProperty)()
27
- // @Type(() => Number)
28
- ,
26
+ (0, utils_1.ApiProperty)(),
29
27
  __metadata("design:type", Array)
30
28
  ], QueryTransaction.prototype, "idAccountingJournal", void 0);
31
29
  __decorate([
@@ -36,6 +34,10 @@ __decorate([
36
34
  (0, utils_1.ApiPropertyOptional)(),
37
35
  __metadata("design:type", Number)
38
36
  ], QueryTransaction.prototype, "idAccountType", void 0);
37
+ __decorate([
38
+ (0, utils_1.ApiPropertyOptional)(),
39
+ __metadata("design:type", Number)
40
+ ], QueryTransaction.prototype, "idFile", void 0);
39
41
  __decorate([
40
42
  (0, utils_1.ApiPropertyOptional)(),
41
43
  __metadata("design:type", String)
@@ -87,5 +89,13 @@ __decorate([
87
89
  (0, utils_1.ApiPropertyOptional)(),
88
90
  __metadata("design:type", String)
89
91
  ], QueryGetAllTransactions.prototype, "dateValue", void 0);
92
+ __decorate([
93
+ (0, utils_1.ApiPropertyOptional)(),
94
+ __metadata("design:type", Array)
95
+ ], QueryGetAllTransactions.prototype, "idAccountingJournal", void 0);
96
+ __decorate([
97
+ (0, utils_1.ApiPropertyOptional)(),
98
+ __metadata("design:type", Number)
99
+ ], QueryGetAllTransactions.prototype, "idFile", void 0);
90
100
  exports.QueryGetAllTransactions = QueryGetAllTransactions;
91
101
  //# sourceMappingURL=QueryTransaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryTransaction.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,+FAA4F;AAE5F,MAAa,gBAAgB;CAgD5B;AA7CC;IAAC,IAAA,mBAAW,GAAE;;8CACC;AAEf;IAAC,IAAA,mBAAW,GAAE;;+CACE;AAEhB;IAAC,IAAA,mBAAW,GAAE;IACd,sBAAsB;;;6DACU;AAEhC;IAAC,IAAA,2BAAmB,GAAE;;uDACK;AAE3B;IAAC,IAAA,2BAAmB,GAAE;;uDACG;AAEzB;IAAC,IAAA,2BAAmB,GAAE;;iDACH;AAEnB;IAAC,IAAA,2BAAmB,GAAE;;gDACJ;AAElB;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;mDACD;AAErB;IAAC,IAAA,2BAAmB,GAAE;;iDACH;AAEnB;IAAC,IAAA,2BAAmB,GAAE;;wDACK;AAE3B;IAAC,IAAA,2BAAmB,GAAE;;0DACO;AAE7B;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;mDACA;AA/CxB,4CAgDC;AAED,MAAa,uBAAuB;CAMnC;AALC;IAAC,IAAA,2BAAmB,GAAE;;8DAC0B;AAEhD;IAAC,IAAA,2BAAmB,GAAE;;0DACD;AALvB,0DAMC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n}"]}
1
+ {"version":3,"file":"QueryTransaction.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,+FAA4F;AAG5F,MAAa,gBAAgB;CAkD5B;AA/CC;IAAC,IAAA,mBAAW,GAAE;;8CACC;AAEf;IAAC,IAAA,mBAAW,GAAE;;+CACE;AAEhB;IAAC,IAAA,mBAAW,GAAE;;6DACkB;AAEhC;IAAC,IAAA,2BAAmB,GAAE;;uDACK;AAE3B;IAAC,IAAA,2BAAmB,GAAE;;uDACG;AAEzB;IAAC,IAAA,2BAAmB,GAAE;;gDACJ;AAElB;IAAC,IAAA,2BAAmB,GAAE;;iDACH;AAEnB;IAAC,IAAA,2BAAmB,GAAE;;gDACJ;AAElB;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;mDACD;AAErB;IAAC,IAAA,2BAAmB,GAAE;;iDACH;AAEnB;IAAC,IAAA,2BAAmB,GAAE;;wDACK;AAE3B;IAAC,IAAA,2BAAmB,GAAE;;0DACO;AAE7B;IAAC,IAAA,2BAAmB,GAAE;;oDACC;AAEvB;IAAC,IAAA,2BAAmB,GAAE;;mDACA;AAjDxB,4CAkDC;AAED,MAAa,uBAAuB;CAYnC;AAXC;IAAC,IAAA,2BAAmB,GAAE;;8DAC0B;AAEhD;IAAC,IAAA,2BAAmB,GAAE;;0DACD;AAErB;IAAC,IAAA,2BAAmB,GAAE;;oEACqB;AAE3C;IAAC,IAAA,2BAAmB,GAAE;;uDACL;AAXnB,0DAYC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\nimport { AccountingJournal } from '../../../Enum/AccountingJournal';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n idFile?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n\n @ApiPropertyOptional()\n idAccountingJournal: AccountingJournal[];\n\n @ApiPropertyOptional()\n idFile: number;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,qBAAa,+BAA+B;IAE1C,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,kCAAkC;IAE3C,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,qBAAa,iDAAiD;IAE5D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,4CAA6C,YAAW,aAAa,EAAE,KAAK;IAEvF,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,qBAAa,kCAAkC;IAE7C,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,sCAAsC;IAEjD,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,4CAA4C;IACvD,SAAS,EAAE,MAAM,CAAC;IAElB,EAAE,EAAE,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"QueryPaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,qBAAa,+BAA+B;IAE1C,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,kCAAkC;IAE3C,KAAK,EAAE,MAAM,CAAC;CACjB;AACD,qBAAa,iDAAiD;IAE5D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,4CAA6C,YAAW,aAAa,EAAE,KAAK;IAEvF,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;IAMb,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qBAAa,kCAAkC;IAE7C,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,sCAAsC;IAEjD,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,4CAA4C;IACvD,SAAS,EAAE,MAAM,CAAC;IAElB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -10,7 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QueryDeleteSocietyPaymentExpectationCustomer = exports.QueryConfirmPaymentExpectationCustomer = exports.QueryPayPaymentExpectationCustomer = exports.QueryGetSocietyPaymentsExpectationsCustomers = exports.QueryGetSocietyPaymentsExpectationsCustomersStats = exports.QueryGetPaymentExpectationCustomer = exports.QueryPaymentExpectationCustomer = void 0;
13
+ const class_validator_1 = require("class-validator");
13
14
  const utils_1 = require("../../../../utils");
15
+ const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
14
16
  class QueryPaymentExpectationCustomer {
15
17
  }
16
18
  exports.QueryPaymentExpectationCustomer = QueryPaymentExpectationCustomer;
@@ -26,6 +28,13 @@ class QueryGetSocietyPaymentsExpectationsCustomersStats {
26
28
  exports.QueryGetSocietyPaymentsExpectationsCustomersStats = QueryGetSocietyPaymentsExpectationsCustomersStats;
27
29
  class QueryGetSocietyPaymentsExpectationsCustomers {
28
30
  }
31
+ __decorate([
32
+ (0, utils_1.ApiPropertyOptional)(),
33
+ (0, class_validator_1.IsBoolean)(),
34
+ (0, boolean_transform_1.ToBoolean)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", Boolean)
37
+ ], QueryGetSocietyPaymentsExpectationsCustomers.prototype, "descending", void 0);
29
38
  exports.QueryGetSocietyPaymentsExpectationsCustomers = QueryGetSocietyPaymentsExpectationsCustomers;
30
39
  class QueryPayPaymentExpectationCustomer {
31
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAIhD,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AAED,MAAa,kCAAkC;CAG9C;AAFC;IAAC,IAAA,mBAAW,GAAE;;iEACE;AAFlB,gFAGC;AACD,MAAa,iDAAiD;CAG7D;AAHD,8GAGC;AAED,MAAa,4CAA4C;CAmBxD;AAnBD,oGAmBC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,sCAAsC;CAMlD;AAND,wFAMC;AAED,MAAa,4CAA4C;CAIxD;AAJD,oGAIC","sourcesContent":["import { ApiProperty } from '../../../../utils';\nimport { QueryPaginate } from '../BasePaginate';\nimport { Order } from '../BaseRequest';\n\nexport class QueryPaymentExpectationCustomer {\n // @ApiProperty()\n label?: string;\n\n // @ApiProperty()\n amount: number;\n\n // @ApiProperty()\n idThirdParty?: number;\n idEstimateInvoice?: number;\n}\n\nexport class QueryGetPaymentExpectationCustomer {\n @ApiProperty()\n token: string;\n}\nexport class QueryGetSocietyPaymentsExpectationsCustomersStats {\n // @ApiProperty()\n idSociety: number;\n}\n\nexport class QueryGetSocietyPaymentsExpectationsCustomers implements QueryPaginate, Order {\n // @ApiProperty()\n idSociety: number;\n\n status?: string | null;\n\n dateStart?: string | null;\n\n search?: string | null;\n\n dateEnd?: string | null;\n\n page: number;\n\n limit: number;\n\n order?: string;\n\n descending?: boolean;\n}\n\nexport class QueryPayPaymentExpectationCustomer {\n // @ApiProperty()\n idPaymentMethod: string;\n\n // @ApiProperty()\n token: string;\n}\n\nexport class QueryConfirmPaymentExpectationCustomer {\n // @ApiProperty()\n idPaymentIntent: string;\n\n // @ApiProperty()\n token: string;\n}\n\nexport class QueryDeleteSocietyPaymentExpectationCustomer {\n idSociety: number;\n\n id: number;\n}\n"]}
1
+ {"version":3,"file":"QueryPaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6CAAqE;AAGrE,sFAA2E;AAE3E,MAAa,+BAA+B;CAU3C;AAVD,0EAUC;AAED,MAAa,kCAAkC;CAG9C;AAFC;IAAC,IAAA,mBAAW,GAAE;;iEACE;AAFlB,gFAGC;AACD,MAAa,iDAAiD;CAG7D;AAHD,8GAGC;AAED,MAAa,4CAA4C;CAuBxD;AALC;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gFACU;AAtBzB,oGAuBC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,sCAAsC;CAMlD;AAND,wFAMC;AAED,MAAa,4CAA4C;CAIxD;AAJD,oGAIC","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { QueryPaginate } from '../BasePaginate';\nimport { Order } from '../BaseRequest';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPaymentExpectationCustomer {\n // @ApiProperty()\n label?: string;\n\n // @ApiProperty()\n amount: number;\n\n // @ApiProperty()\n idThirdParty?: number;\n idEstimateInvoice?: number;\n}\n\nexport class QueryGetPaymentExpectationCustomer {\n @ApiProperty()\n token: string;\n}\nexport class QueryGetSocietyPaymentsExpectationsCustomersStats {\n // @ApiProperty()\n idSociety: number;\n}\n\nexport class QueryGetSocietyPaymentsExpectationsCustomers implements QueryPaginate, Order {\n // @ApiProperty()\n idSociety: number;\n\n status?: string | null;\n\n dateStart?: string | null;\n\n search?: string | null;\n\n dateEnd?: string | null;\n\n page: number;\n\n limit: number;\n\n order?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n}\n\nexport class QueryPayPaymentExpectationCustomer {\n // @ApiProperty()\n idPaymentMethod: string;\n\n // @ApiProperty()\n token: string;\n}\n\nexport class QueryConfirmPaymentExpectationCustomer {\n // @ApiProperty()\n idPaymentIntent: string;\n\n // @ApiProperty()\n token: string;\n}\n\nexport class QueryDeleteSocietyPaymentExpectationCustomer {\n idSociety: number;\n\n id: number;\n}\n"]}
@@ -84,6 +84,9 @@ export interface ISocietyDetail {
84
84
  personnalContributionCapital?: string | null;
85
85
  personnalContributionCurrentBankAccount?: string | null;
86
86
  personnalContributionInKind?: string | null;
87
+ dateOfCertificateOfDepositOfShareCapital?: Date | null;
88
+ bankOfDepositOfShareCapital?: string | null;
89
+ addressOfBankOfDepositOfShareCapital?: string | null;
87
90
  poleEmploiAid?: string | null;
88
91
  poleEmploiAidType?: number | null;
89
92
  honorLoan?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyDetail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,GAAG,I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OAAO,GAAG,IAAI,CAAC;IACrC,+BAA+B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,iCAAiC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACnD,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n hasBillingSoftware?: boolean | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n listBanks?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n ribSentToTaxDepartment?: string | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n listCompaniesInterestedIn?: string | null;\n areOtherCompaniesOnOurBrand?: string | null;\n listTva?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n listQualities?: string | null;\n averageCustomerRegulationTime?: string | null;\n averageSupplierRegulationTime?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n officeType?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n investissementTypes?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n contributionTypes?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n listReasonsWhyChangingEC?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n riskClientIdentity?: boolean | null;\n riskCompanyIdentity?: boolean | null;\n riskClientIdentityComment?: string | null;\n riskCompanyIdentityComment?: string | null;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n notaryOfficeName?:string | null;\n notaryOfficeAddress?:string | null;\n notaryOfficeZipCode?:string | null;\n notaryOfficeCity?:string | null;\n verifiedDocuments?: boolean | null;\n accountingPlanSetup?: boolean | null;\n checkingReceiptOfBankStatements?: boolean | null;\n CCASetup?: boolean | null;\n usingExpenseReports?: boolean | null;\n usingIK?: boolean | null;\n unemploymentInsurance?: boolean | null;\n hasMutualInsurance?: boolean | null;\n hasProfessionalLiabilityInsurance?: boolean | null;\n insuranceContractAudit?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"]}
1
+ {"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n hasBillingSoftware?: boolean | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n listBanks?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n ribSentToTaxDepartment?: string | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n listCompaniesInterestedIn?: string | null;\n areOtherCompaniesOnOurBrand?: string | null;\n listTva?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n listQualities?: string | null;\n averageCustomerRegulationTime?: string | null;\n averageSupplierRegulationTime?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n officeType?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n investissementTypes?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n dateOfCertificateOfDepositOfShareCapital?: Date | null;\n bankOfDepositOfShareCapital?: string | null;\n addressOfBankOfDepositOfShareCapital?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n contributionTypes?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n listReasonsWhyChangingEC?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n riskClientIdentity?: boolean | null;\n riskCompanyIdentity?: boolean | null;\n riskClientIdentityComment?: string | null;\n riskCompanyIdentityComment?: string | null;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n notaryOfficeName?:string | null;\n notaryOfficeAddress?:string | null;\n notaryOfficeZipCode?:string | null;\n notaryOfficeCity?:string | null;\n verifiedDocuments?: boolean | null;\n accountingPlanSetup?: boolean | null;\n checkingReceiptOfBankStatements?: boolean | null;\n CCASetup?: boolean | null;\n usingExpenseReports?: boolean | null;\n usingIK?: boolean | null;\n unemploymentInsurance?: boolean | null;\n hasMutualInsurance?: boolean | null;\n hasProfessionalLiabilityInsurance?: boolean | null;\n insuranceContractAudit?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"]}
@@ -186,7 +186,7 @@ ${logoClementine}
186
186
  </table>
187
187
  <p style="margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2"><!-- --></p>
188
188
  <p style="margin:0px 0; padding:0 0 4px; color:#6E6E71;">
189
- Standard : <%= standardPhoneSignature %><br/>
189
+ Standard : <%- standardPhoneSignature %><br/>
190
190
  <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>
191
191
  Ligne directe : <%- phoneSignature %><br/>
192
192
  <% } %>
@@ -1 +1 @@
1
- {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4FN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%= standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n </p>\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
1
+ {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4FN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n </p>\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
@@ -229,7 +229,7 @@ function generateSignature(params) {
229
229
  roleSignature,
230
230
  mailSignature,
231
231
  phoneSignature,
232
- standardPhoneSignature,
232
+ standardPhoneSignature: standardPhoneSignature.replace(/\s+/gm, '&nbsp;'),
233
233
  horaires,
234
234
  primaryColor,
235
235
  supportMail,
@@ -1 +1 @@
1
- {"version":3,"file":"email.js","sourceRoot":"","sources":["../../../ts/utils/email.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,qDAAqD;AACrD,6CAA0C;AAC1C,qCAAuD;AACvD,2DAAgE;AAEhE,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AA6B3B,SAAS,YAAY,CAAI,GAAe,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAA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a;QACb,cAAc;QACd,sBAAsB;QACtB,QAAQ;QACR,YAAY;QACZ,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAtID,8CAsIC","sourcesContent":["// import * as dayjs from 'dayjs';\n// import { orderBy as orderByLodash } from 'lodash';\nimport { Role } from '../types/Enum/Role';\nimport { getBrandConfig, isItThisEnv } from './brands';\nimport { signatureTemplate } from './email/templates/signature';\n\nconst ejs = require('ejs');\ntype offices = {\n LAXOU: {\n id: number,\n name: string,\n },\n PARIS: {\n id: number,\n name: string,\n },\n MARSEILLE: {\n id: number,\n name: string,\n },\n EPINAL: {\n id: number,\n name: string,\n },\n HOME_OFFICE: {\n id: number,\n name: string,\n },\n NICE: {\n id: number,\n name: string,\n },\n};\n\n\nfunction intersection<T>(arr: [T[], T[]]) { return arr.reduce((a: T[], b: T[]) => a.filter((c) => b.includes(c)), []); }\n\nfunction getRoleSignature(user:any) {\n if (user.positionLabel) return user.positionLabel;\n\n const isStagiaireOrAlternant = user.roles.map((r: any) => r.id).includes(Role.INTERN) || user.roles.map((r: any) => r.id).includes(Role.ALTERNATE);\n const isManager = user.roles.map((r: any) => r.id).includes(Role.MANAGER);\n\n const isSocial = user.roles.map((r: any) => r.id).includes(Role.SOCIAL);\n const isJuridic = user.roles.map((r: any) => r.id).includes(Role.JURIDIC);\n const isFacturation = user.roles.map((r: any) => r.id).includes(Role.FACTURATION);\n const isExpert = user.roles.map((r: any) => r.id).includes(Role.EXPERT_ACCOUNTANT);\n const isCS = user.roles.map((r: any) => r.id).includes(Role.CUSTOMER_SUCCESS);\n const isSales = user.roles.map((r: any) => r.id).includes(Role.COMMERCIAL);\n const isAdmin = user.roles.map((r: any) => r.id).includes(Role.ADMIN);\n const isFront = !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS]]).length;\n\n if (isSales && isManager) { return 'Responsable commercial'; }\n if (isSales) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de clientèle`; }\n\n if (isCS && isManager) { return 'Responsable relations clients'; }\n if (isCS) { return `Conseill${user.idCivility === 2 ? 'ère' : 'er'} comptable`; }\n\n if (isFacturation && isStagiaireOrAlternant) { return 'Assistant facturation'; }\n if (isFacturation && isManager) { return 'Responsable facturation'; }\n if (isFacturation) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de facturation`; }\n\n if (isJuridic && isStagiaireOrAlternant) { return 'Assistant juridique'; }\n if (isJuridic && isManager) { return 'Responsable juridique'; }\n if (isJuridic) { return 'Juriste'; }\n\n if (isSocial && isStagiaireOrAlternant) { return 'Assistant paie'; }\n if (isSocial && isManager) { return 'Responsable paie'; }\n if (isSocial) { return 'Gestionnaire de paie'; }\n\n if (isExpert) { return `Expert${user.idCivility === 2 ? 'e' : ''}-comptable`; }\n\n if (isAdmin) { return 'Développeur web'; }\n\n if (isFront && isManager) return 'Responsable comptable';\n if (isFront && isStagiaireOrAlternant) return 'Assistant comptable';\n if (isFront) return `Comptable dédié${user.idCivility === 2 ? 'e' : ''}`;\n return `Comptable dédié${user.idCivility === 2 ? 'e' : ''}`;\n}\n\nfunction getHoraires(user:any) { // On affiche les horaires uniquement pour les front, et pas pour les TVA\n\n const offices = getBrandConfig({\n nodeEnv: 'Pourcentage',\n objectWaited: 'offices',\n }) as unknown as offices; \n\n if (isItThisEnv('Pourcentage') && offices?.NICE?.id === user.idOffice) {\n return 'Du lundi au vendredi de 8h à 18h';\n }\n \n return 'Du lundi au vendredi de 9h à 19h';\n\n // if (!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return 'Du lundi au vendredi de 9h à 19h';\n\n // if (!user.workingSchedules.length) return 'Du lundi au vendredi de 9h à 19h';\n\n // let reducedSchedules = user.workingSchedules.reduce((acc: any, e:any, index: number) => {\n // const name = `${dayjs(e.morningStart, 'HH:mm:ss').format('HH:mm')}-${dayjs(e.afternoonEnd || e.morningEnd, 'HH:mm:ss').format('HH:mm')}`;\n // if (!acc[name]) acc[name] = [index];\n // else acc[name].push(index);\n // return acc;\n // }, {});\n\n // reducedSchedules = orderByLodash(reducedSchedules, (elem) => elem.length, ['desc']);\n\n // let resultHoraire = '';\n // let startH;\n // let startM;\n // let endH;\n // let endM;\n // let firstDayOfWeek;\n // let lastDayOfWeek;\n\n // reducedSchedules.forEach((schedule: any, index: number) => {\n // startH = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('hour');\n // startM = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('minute');\n // endH = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('hour');\n // endM = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('minute');\n // firstDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[schedule[0]].idDay).format('dddd');\n // if (!index) {\n // // pour le premier index, on affiche l'amplitude horaire la plus commune, du XX au XX de Xh à Xh\n // lastDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[user.workingSchedules.length - 1].idDay).format('dddd');\n // resultHoraire += `Du ${firstDayOfWeek} au ${lastDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;\n // } else { // Fonctionnel si uniquement un jour par semaine avec des horaires différents\n // resultHoraire += `<br/>Le ${firstDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;\n // }\n // });\n // return resultHoraire;\n}\n\nfunction getMailSignature(user:any, idTypeBrand:number) {\n const informatiqueMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.informatique',\n }) as unknown as string;\n const bonjourMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.bonjour',\n }) as unknown as string;\n\n if (user.roles.map((r: any) => r.id).includes(Role.ADMIN)) { return informatiqueMail; }\n if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return user.email;\n return bonjourMail;\n}\n\nfunction getPhoneSignature(user:any) {\n if (user.phone !== '0383931414') { return user.phone.replace(/\\B(?=(\\d{2})+(?!\\d))/g, '&nbsp;'); }\n return false;\n}\n\nexport function generateSignature(params: any): string {\n const {\n forceRole = null, idTypeBrand = 1, ...otherParams\n } = params;\n let {\n user,\n } = otherParams;\n \n const hostS3 = getBrandConfig({\n idTypeBrand,\n objectWaited: 'urlS3',\n });\n\n const brandName = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'name',\n }) as unknown as string;\n const commercialName = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'commercialName',\n }) as unknown as string;\n const iban = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'bank.IBAN',\n }) as unknown as string;\n const bic = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'bank.BIC',\n }) as unknown as string;\n const bonjourMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.bonjour',\n }) as unknown as string;\n const socialMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.social',\n }) as unknown as string;\n const supportMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.support',\n }) as unknown as string;\n const juridiqueMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.juridique',\n }) as unknown as string;\n const facturationMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.facturation',\n }) as unknown as string;\n const primaryColor = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'colors.primary',\n }) as unknown as string;\n const standardPhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.contact',\n }) as unknown as string;\n const juridiquePhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.juridique',\n }) as unknown as string;\n const socialPhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.social',\n }) as unknown as string;\n\n let roleSignature: string | null;\n let mailSignature: string | null;\n let phoneSignature: string | boolean;\n let horaires: string | null;\n [roleSignature, mailSignature, phoneSignature, horaires] = ['Expert-Comptable', bonjourMail, false, 'Du lundi au vendredi de 9h à 19h'];\n\n if (forceRole === 'social') { // Signature social\n user = {\n firstname: 'Service social',\n isAll: true,\n };\n mailSignature = socialMail;\n roleSignature = '';\n phoneSignature = socialPhoneSignature;\n } else if (forceRole === 'support') { // Signature support\n user = {\n firstname: 'Service Support',\n isAll: true,\n };\n mailSignature = supportMail;\n roleSignature = null;\n } else if (forceRole === 'juridique') { // Signature juridique\n user = {\n firstname: 'Service juridique',\n isAll: true,\n };\n mailSignature = juridiqueMail;\n roleSignature = null;\n phoneSignature = juridiquePhoneSignature;\n } else if (forceRole === 'facturation') { // Signature facturation\n user = {\n firstname: 'Service facturation',\n isAll: true,\n };\n mailSignature = facturationMail;\n roleSignature = null;\n phoneSignature = standardPhoneSignature;\n } else if (!user) { // Signature Clementine\n user = {\n firstname: `L'équipe ${commercialName}`,\n isAll: true,\n };\n roleSignature = '';\n } else if (user !== 0) { // Signature par défaut\n roleSignature = getRoleSignature(user);\n mailSignature = getMailSignature(user, idTypeBrand);\n horaires = getHoraires(user);\n phoneSignature = getPhoneSignature(user);\n }\n\n return ejs.render(signatureTemplate, {\n forceRole,\n isFacturation: user.roles ? user.roles.some((r: any) => r.id === Role.FACTURATION) : false,\n brandName,\n idTypeBrand,\n commercialName,\n iban,\n bic,\n hostS3,\n user,\n roleSignature,\n mailSignature,\n phoneSignature,\n standardPhoneSignature,\n horaires,\n primaryColor,\n supportMail,\n });\n}"]}
1
+ {"version":3,"file":"email.js","sourceRoot":"","sources":["../../../ts/utils/email.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,qDAAqD;AACrD,6CAA0C;AAC1C,qCAAuD;AACvD,2DAAgE;AAEhE,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AA6B3B,SAAS,YAAY,CAAI,GAAe,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAExH,SAAS,gBAAgB,CAAC,IAAQ;IAChC,IAAI,IAAI,CAAC,aAAa;QAAE,OAAO,IAAI,CAAC,aAAa,CAAC;IAElD,MAAM,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAI,CAAC,SAAS,CAAC,CAAC;IACnJ,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAI,CAAC,OAAO,CAAC,CAAC;IAE1E,MAAM,QAAQ,GAAG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M,IAAI,IAAI,KAAK,CAAC,EAAE,EAAE,uBAAuB;QAC9C,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACvC,aAAa,GAAG,gBAAgB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACpD,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC7B,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;KAC1C;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,6BAAiB,EAAE;QACnC,SAAS;QACT,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,WAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK;QAC1F,SAAS;QACT,WAAW;QACX,cAAc;QACd,IAAI;QACJ,GAAG;QACH,MAAM;QACN,IAAI;QACJ,aAAa;QACb,aAAa;QACb,cAAc;QACd,sBAAsB,EAAE,sBAAsB,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC;QACzE,QAAQ;QACR,YAAY;QACZ,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAtID,8CAsIC","sourcesContent":["// import * as dayjs from 'dayjs';\n// import { orderBy as orderByLodash } from 'lodash';\nimport { Role } from '../types/Enum/Role';\nimport { getBrandConfig, isItThisEnv } from './brands';\nimport { signatureTemplate } from './email/templates/signature';\n\nconst ejs = require('ejs');\ntype offices = {\n LAXOU: {\n id: number,\n name: string,\n },\n PARIS: {\n id: number,\n name: string,\n },\n MARSEILLE: {\n id: number,\n name: string,\n },\n EPINAL: {\n id: number,\n name: string,\n },\n HOME_OFFICE: {\n id: number,\n name: string,\n },\n NICE: {\n id: number,\n name: string,\n },\n};\n\n\nfunction intersection<T>(arr: [T[], T[]]) { return arr.reduce((a: T[], b: T[]) => a.filter((c) => b.includes(c)), []); }\n\nfunction getRoleSignature(user:any) {\n if (user.positionLabel) return user.positionLabel;\n\n const isStagiaireOrAlternant = user.roles.map((r: any) => r.id).includes(Role.INTERN) || user.roles.map((r: any) => r.id).includes(Role.ALTERNATE);\n const isManager = user.roles.map((r: any) => r.id).includes(Role.MANAGER);\n\n const isSocial = user.roles.map((r: any) => r.id).includes(Role.SOCIAL);\n const isJuridic = user.roles.map((r: any) => r.id).includes(Role.JURIDIC);\n const isFacturation = user.roles.map((r: any) => r.id).includes(Role.FACTURATION);\n const isExpert = user.roles.map((r: any) => r.id).includes(Role.EXPERT_ACCOUNTANT);\n const isCS = user.roles.map((r: any) => r.id).includes(Role.CUSTOMER_SUCCESS);\n const isSales = user.roles.map((r: any) => r.id).includes(Role.COMMERCIAL);\n const isAdmin = user.roles.map((r: any) => r.id).includes(Role.ADMIN);\n const isFront = !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS]]).length;\n\n if (isSales && isManager) { return 'Responsable commercial'; }\n if (isSales) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de clientèle`; }\n\n if (isCS && isManager) { return 'Responsable relations clients'; }\n if (isCS) { return `Conseill${user.idCivility === 2 ? 'ère' : 'er'} comptable`; }\n\n if (isFacturation && isStagiaireOrAlternant) { return 'Assistant facturation'; }\n if (isFacturation && isManager) { return 'Responsable facturation'; }\n if (isFacturation) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de facturation`; }\n\n if (isJuridic && isStagiaireOrAlternant) { return 'Assistant juridique'; }\n if (isJuridic && isManager) { return 'Responsable juridique'; }\n if (isJuridic) { return 'Juriste'; }\n\n if (isSocial && isStagiaireOrAlternant) { return 'Assistant paie'; }\n if (isSocial && isManager) { return 'Responsable paie'; }\n if (isSocial) { return 'Gestionnaire de paie'; }\n\n if (isExpert) { return `Expert${user.idCivility === 2 ? 'e' : ''}-comptable`; }\n\n if (isAdmin) { return 'Développeur web'; }\n\n if (isFront && isManager) return 'Responsable comptable';\n if (isFront && isStagiaireOrAlternant) return 'Assistant comptable';\n if (isFront) return `Comptable dédié${user.idCivility === 2 ? 'e' : ''}`;\n return `Comptable dédié${user.idCivility === 2 ? 'e' : ''}`;\n}\n\nfunction getHoraires(user:any) { // On affiche les horaires uniquement pour les front, et pas pour les TVA\n\n const offices = getBrandConfig({\n nodeEnv: 'Pourcentage',\n objectWaited: 'offices',\n }) as unknown as offices; \n\n if (isItThisEnv('Pourcentage') && offices?.NICE?.id === user.idOffice) {\n return 'Du lundi au vendredi de 8h à 18h';\n }\n \n return 'Du lundi au vendredi de 9h à 19h';\n\n // if (!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return 'Du lundi au vendredi de 9h à 19h';\n\n // if (!user.workingSchedules.length) return 'Du lundi au vendredi de 9h à 19h';\n\n // let reducedSchedules = user.workingSchedules.reduce((acc: any, e:any, index: number) => {\n // const name = `${dayjs(e.morningStart, 'HH:mm:ss').format('HH:mm')}-${dayjs(e.afternoonEnd || e.morningEnd, 'HH:mm:ss').format('HH:mm')}`;\n // if (!acc[name]) acc[name] = [index];\n // else acc[name].push(index);\n // return acc;\n // }, {});\n\n // reducedSchedules = orderByLodash(reducedSchedules, (elem) => elem.length, ['desc']);\n\n // let resultHoraire = '';\n // let startH;\n // let startM;\n // let endH;\n // let endM;\n // let firstDayOfWeek;\n // let lastDayOfWeek;\n\n // reducedSchedules.forEach((schedule: any, index: number) => {\n // startH = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('hour');\n // startM = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('minute');\n // endH = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('hour');\n // endM = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('minute');\n // firstDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[schedule[0]].idDay).format('dddd');\n // if (!index) {\n // // pour le premier index, on affiche l'amplitude horaire la plus commune, du XX au XX de Xh à Xh\n // lastDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[user.workingSchedules.length - 1].idDay).format('dddd');\n // resultHoraire += `Du ${firstDayOfWeek} au ${lastDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;\n // } else { // Fonctionnel si uniquement un jour par semaine avec des horaires différents\n // resultHoraire += `<br/>Le ${firstDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;\n // }\n // });\n // return resultHoraire;\n}\n\nfunction getMailSignature(user:any, idTypeBrand:number) {\n const informatiqueMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.informatique',\n }) as unknown as string;\n const bonjourMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.bonjour',\n }) as unknown as string;\n\n if (user.roles.map((r: any) => r.id).includes(Role.ADMIN)) { return informatiqueMail; }\n if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return user.email;\n return bonjourMail;\n}\n\nfunction getPhoneSignature(user:any) {\n if (user.phone !== '0383931414') { return user.phone.replace(/\\B(?=(\\d{2})+(?!\\d))/g, '&nbsp;'); }\n return false;\n}\n\nexport function generateSignature(params: any): string {\n const {\n forceRole = null, idTypeBrand = 1, ...otherParams\n } = params;\n let {\n user,\n } = otherParams;\n \n const hostS3 = getBrandConfig({\n idTypeBrand,\n objectWaited: 'urlS3',\n });\n\n const brandName = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'name',\n }) as unknown as string;\n const commercialName = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'commercialName',\n }) as unknown as string;\n const iban = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'bank.IBAN',\n }) as unknown as string;\n const bic = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'bank.BIC',\n }) as unknown as string;\n const bonjourMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.bonjour',\n }) as unknown as string;\n const socialMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.social',\n }) as unknown as string;\n const supportMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.support',\n }) as unknown as string;\n const juridiqueMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.juridique',\n }) as unknown as string;\n const facturationMail = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listMails.facturation',\n }) as unknown as string;\n const primaryColor = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'colors.primary',\n }) as unknown as string;\n const standardPhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.contact',\n }) as unknown as string;\n const juridiquePhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.juridique',\n }) as unknown as string;\n const socialPhoneSignature = getBrandConfig({\n ...(idTypeBrand ? { idTypeBrand } : {}),\n objectWaited: 'listPhones.social',\n }) as unknown as string;\n\n let roleSignature: string | null;\n let mailSignature: string | null;\n let phoneSignature: string | boolean;\n let horaires: string | null;\n [roleSignature, mailSignature, phoneSignature, horaires] = ['Expert-Comptable', bonjourMail, false, 'Du lundi au vendredi de 9h à 19h'];\n\n if (forceRole === 'social') { // Signature social\n user = {\n firstname: 'Service social',\n isAll: true,\n };\n mailSignature = socialMail;\n roleSignature = '';\n phoneSignature = socialPhoneSignature;\n } else if (forceRole === 'support') { // Signature support\n user = {\n firstname: 'Service Support',\n isAll: true,\n };\n mailSignature = supportMail;\n roleSignature = null;\n } else if (forceRole === 'juridique') { // Signature juridique\n user = {\n firstname: 'Service juridique',\n isAll: true,\n };\n mailSignature = juridiqueMail;\n roleSignature = null;\n phoneSignature = juridiquePhoneSignature;\n } else if (forceRole === 'facturation') { // Signature facturation\n user = {\n firstname: 'Service facturation',\n isAll: true,\n };\n mailSignature = facturationMail;\n roleSignature = null;\n phoneSignature = standardPhoneSignature;\n } else if (!user) { // Signature Clementine\n user = {\n firstname: `L'équipe ${commercialName}`,\n isAll: true,\n };\n roleSignature = '';\n } else if (user !== 0) { // Signature par défaut\n roleSignature = getRoleSignature(user);\n mailSignature = getMailSignature(user, idTypeBrand);\n horaires = getHoraires(user);\n phoneSignature = getPhoneSignature(user);\n }\n\n return ejs.render(signatureTemplate, {\n forceRole,\n isFacturation: user.roles ? user.roles.some((r: any) => r.id === Role.FACTURATION) : false,\n brandName,\n idTypeBrand,\n commercialName,\n iban,\n bic,\n hostS3,\n user,\n roleSignature,\n mailSignature,\n phoneSignature,\n standardPhoneSignature: standardPhoneSignature.replace(/\\s+/gm, '&nbsp;'),\n horaires,\n primaryColor,\n supportMail,\n });\n}"]}
@@ -1,7 +1,8 @@
1
1
  import { Resource } from '../Resource';
2
- import { BasePaginate, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile } from '../../types';
2
+ import { BasePaginate, CreateAccountingFileFromFile, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile } from '../../types';
3
3
  export declare class AccountingFiles extends Resource {
4
4
  accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[]>;
5
+ createFromFile(idSociety: number, idFile: number, params: CreateAccountingFileFromFile): Promise<IAccountingFile>;
5
6
  createCashBasedAccountingFiles(params: QueryAccountingFilesV2): Promise<IAccountingFile[]>;
6
7
  createAccrualAccountingFile(params: QueryAccountingFilesV2): Promise<ReadFormattedAccountingTransaction[]>;
7
8
  delete(id: number): Promise<true>;
@@ -1 +1 @@
1
- {"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,uBAAuB,EAC3J,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,GAAG,eAAe,EAAE,CAAE;IAkBhH,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAgB3F,2BAA2B,CAAC,MAAM,EAAE,sBAAsB,GAAI,OAAO,CAAC,kCAAkC,EAAE,CAAC;IAgB3G,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAGvF"}
1
+ {"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EAAE,4BAA4B,EAAE,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,uBAAuB,EACzL,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,GAAG,eAAe,EAAE,CAAE;IAkBhH,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,eAAe,CAAC;IAIjH,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAgB3F,2BAA2B,CAAC,MAAM,EAAE,sBAAsB,GAAI,OAAO,CAAC,kCAAkC,EAAE,CAAC;IAgB3G,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAGvF"}
@@ -14,6 +14,9 @@ export class AccountingFiles extends Resource {
14
14
  });
15
15
  return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });
16
16
  }
17
+ createFromFile(idSociety, idFile, params) {
18
+ return this.axios.$post(`societies/${idSociety}/files/${idFile}/accountingFiles`, params);
19
+ }
17
20
  createCashBasedAccountingFiles(params) {
18
21
  const formData = new FormData();
19
22
  Object.entries(params).forEach(([key, value]) => {