@silexpert/core 1.0.131 → 1.0.135

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 (99) hide show
  1. package/es/api/resources/Authenticate.d.ts +0 -5
  2. package/es/api/resources/Authenticate.d.ts.map +1 -1
  3. package/es/api/resources/Authenticate.js +0 -3
  4. package/es/api/resources/Authenticate.js.map +1 -1
  5. package/es/api/resources/Mail.d.ts +1 -0
  6. package/es/api/resources/Mail.d.ts.map +1 -1
  7. package/es/api/resources/Mail.js +6 -0
  8. package/es/api/resources/Mail.js.map +1 -1
  9. package/es/types/Enum/AccountType.d.ts +10 -0
  10. package/es/types/Enum/AccountType.d.ts.map +1 -1
  11. package/es/types/Enum/AccountType.js +33 -23
  12. package/es/types/Enum/AccountType.js.map +1 -1
  13. package/es/types/Enum/ConstitutionState.js +10 -10
  14. package/es/types/Enum/ConstitutionState.js.map +1 -1
  15. package/es/types/Enum/IncomeStatement.js +2 -2
  16. package/es/types/Enum/IncomeStatement.js.map +1 -1
  17. package/es/types/Enum/JobTitle.d.ts +26 -0
  18. package/es/types/Enum/JobTitle.d.ts.map +1 -0
  19. package/es/types/Enum/JobTitle.js +114 -0
  20. package/es/types/Enum/JobTitle.js.map +1 -0
  21. package/es/types/Interface/api/commercial/QueryGetStats.d.ts +1 -1
  22. package/es/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -1
  23. package/es/types/Interface/api/commercial/QueryGetStats.js +2 -2
  24. package/es/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
  25. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts +1 -1
  26. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -1
  27. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +2 -2
  28. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  29. package/es/types/Interface/api/iDocus/iDocus.d.ts +9 -0
  30. package/es/types/Interface/api/iDocus/iDocus.d.ts.map +1 -1
  31. package/es/types/Interface/api/iDocus/iDocus.js.map +1 -1
  32. package/es/types/Interface/api/mail/QueryCountMail.d.ts +11 -0
  33. package/es/types/Interface/api/mail/QueryCountMail.d.ts.map +1 -0
  34. package/es/types/Interface/api/mail/{QueryCountUnprocessedMail.js → QueryCountMail.js} +36 -6
  35. package/es/types/Interface/api/mail/QueryCountMail.js.map +1 -0
  36. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +1 -0
  37. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -1
  38. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -1
  39. package/es/types/index.d.ts +2 -3
  40. package/es/types/index.d.ts.map +1 -1
  41. package/es/types/index.js +2 -3
  42. package/es/types/index.js.map +1 -1
  43. package/es/utils/email.d.ts.map +1 -1
  44. package/es/utils/email.js +34 -40
  45. package/es/utils/email.js.map +1 -1
  46. package/js/api/resources/Authenticate.js +1 -6
  47. package/js/api/resources/Authenticate.js.map +1 -1
  48. package/js/api/resources/Mail.js +11 -0
  49. package/js/api/resources/Mail.js.map +1 -1
  50. package/js/types/Enum/AccountType.js +33 -23
  51. package/js/types/Enum/AccountType.js.map +1 -1
  52. package/js/types/Enum/ConstitutionState.js +10 -10
  53. package/js/types/Enum/ConstitutionState.js.map +1 -1
  54. package/js/types/Enum/IncomeStatement.js +2 -2
  55. package/js/types/Enum/IncomeStatement.js.map +1 -1
  56. package/js/types/Enum/JobTitle.js +102 -0
  57. package/js/types/Enum/JobTitle.js.map +1 -0
  58. package/js/types/Interface/api/commercial/QueryGetStats.js +3 -1
  59. package/js/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
  60. package/js/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +3 -1
  61. package/js/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  62. package/js/types/Interface/api/mail/{QueryCountUnprocessedMail.js → QueryCountMail.js} +28 -8
  63. package/js/types/Interface/api/mail/QueryCountMail.js.map +1 -0
  64. package/js/types/index.js +15 -27
  65. package/js/types/index.js.map +1 -1
  66. package/js/utils/email.js +34 -44
  67. package/js/utils/email.js.map +1 -1
  68. package/package.json +1 -1
  69. package/ts/api/resources/Authenticate.ts +0 -3
  70. package/ts/api/resources/Mail.ts +11 -0
  71. package/ts/types/Enum/AccountType.ts +33 -23
  72. package/ts/types/Enum/ConstitutionState.ts +10 -10
  73. package/ts/types/Enum/IncomeStatement.ts +3 -3
  74. package/ts/types/Enum/JobTitle.ts +113 -0
  75. package/ts/types/Interface/api/commercial/QueryGetStats.ts +2 -2
  76. package/ts/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.ts +2 -2
  77. package/ts/types/Interface/api/iDocus/iDocus.ts +9 -0
  78. package/ts/types/Interface/api/mail/{QueryCountUnprocessedMail.ts → QueryCountMail.ts} +23 -1
  79. package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +1 -0
  80. package/ts/types/index.ts +2 -3
  81. package/ts/utils/email.ts +40 -39
  82. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.d.ts +0 -6
  83. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.d.ts.map +0 -1
  84. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js +0 -27
  85. package/es/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js.map +0 -1
  86. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.d.ts +0 -8
  87. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.d.ts.map +0 -1
  88. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js +0 -2
  89. package/es/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js.map +0 -1
  90. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.d.ts +0 -7
  91. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.d.ts.map +0 -1
  92. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.js.map +0 -1
  93. package/js/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js +0 -33
  94. package/js/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.js.map +0 -1
  95. package/js/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js +0 -6
  96. package/js/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.js.map +0 -1
  97. package/js/types/Interface/api/mail/QueryCountUnprocessedMail.js.map +0 -1
  98. package/ts/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.ts +0 -14
  99. package/ts/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.ts +0 -7
@@ -3,4 +3,5 @@ export interface ResultFormatToEntries {
3
3
  number: number,
4
4
  amount: number,
5
5
  type: 'credit' | 'debit'
6
+ idAccount: number
6
7
  }
package/ts/types/index.ts CHANGED
@@ -473,6 +473,7 @@ export * from './Enum/Phone';
473
473
  export * from './Enum/GeneralThirdParty';
474
474
  export * from './Enum/MailDomainType';
475
475
  export * from './Enum/TextMessageType';
476
+ export * from './Enum/JobTitle';
476
477
 
477
478
  // Interfaces API
478
479
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -530,7 +531,7 @@ export * from './Interface/api/mail/QueryPaginatedMail';
530
531
  export * from './Interface/api/mail/QueryGetSignature';
531
532
  export * from './Interface/api/mail/QueryCountProcessedByUser';
532
533
  export * from './Interface/api/mail/QueryGetAnsweringTimeByUser';
533
- export * from './Interface/api/mail/QueryCountUnprocessedMail';
534
+ export * from './Interface/api/mail/QueryCountMail';
534
535
  export * from './Interface/api/mail/UpdateMail';
535
536
  export * from './Interface/api/mail/CreateMailParams';
536
537
  export * from './Interface/api/mail/UpdateMailParams';
@@ -796,8 +797,6 @@ export * from './Interface/api/kilometricAllowance/CreateKilometricAllowanceVali
796
797
  export * from './Interface/api/thirdParty/CreateThirdPartyForm';
797
798
  export * from './Interface/api/thirdParty/UpdateThirdPartyForm';
798
799
  export * from './Interface/api/thirdParty/QueryThirdParty';
799
- export * from './Interface/api/balanceSheetModule/PrepareModulesAndCompletions';
800
- export * from './Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions';
801
800
  export * from './Interface/api/bankAccount/ReadExpiredBankAccount';
802
801
  export * from './Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule';
803
802
  export * from './Interface/api/calendarEvent/createCalendarEvent';
package/ts/utils/email.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as dayjs from 'dayjs';
2
- import { orderBy as orderByLodash } from 'lodash';
1
+ // import * as dayjs from 'dayjs';
2
+ // import { orderBy as orderByLodash } from 'lodash';
3
3
  import { Role } from '../types/Enum/Role';
4
4
  import { getBrandConfig } from './brands';
5
5
  import { signatureTemplate } from './email/templates/signature';
@@ -52,43 +52,44 @@ function getRoleSignature(user:any) {
52
52
  }
53
53
 
54
54
  function getHoraires(user:any) { // On affiche les horaires uniquement pour les front, et pas pour les TVA
55
- if (intersection([user.roles.map((r: any) => r.id), [Role.JURIDIC]]).length) return 'Du lundi au vendredi de 9h à 18h';
56
- 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';
57
-
58
- if (!user.workingSchedules.length) return 'Du lundi au vendredi de 9h à 19h';
59
-
60
- let reducedSchedules = user.workingSchedules.reduce((acc: any, e:any, index: number) => {
61
- const name = `${dayjs(e.morningStart, 'HH:mm:ss').format('HH:mm')}-${dayjs(e.afternoonEnd || e.morningEnd, 'HH:mm:ss').format('HH:mm')}`;
62
- if (!acc[name]) acc[name] = [index];
63
- else acc[name].push(index);
64
- return acc;
65
- }, {});
66
-
67
- reducedSchedules = orderByLodash(reducedSchedules, (elem) => elem.length, ['desc']);
68
-
69
- let resultHoraire = '';
70
- let startH;
71
- let startM;
72
- let endH;
73
- let endM;
74
- let firstDayOfWeek;
75
- let lastDayOfWeek;
76
-
77
- reducedSchedules.forEach((schedule: any, index: number) => {
78
- startH = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('hour');
79
- startM = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('minute');
80
- endH = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('hour');
81
- endM = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('minute');
82
- firstDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[schedule[0]].idDay).format('dddd');
83
- if (!index) {
84
- // pour le premier index, on affiche l'amplitude horaire la plus commune, du XX au XX de Xh à Xh
85
- lastDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[user.workingSchedules.length - 1].idDay).format('dddd');
86
- resultHoraire += `Du ${firstDayOfWeek} au ${lastDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;
87
- } else { // Fonctionnel si uniquement un jour par semaine avec des horaires différents
88
- resultHoraire += `<br/>Le ${firstDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;
89
- }
90
- });
91
- return resultHoraire;
55
+ return 'Du lundi au vendredi de 9h à 19h';
56
+
57
+ // 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';
58
+
59
+ // if (!user.workingSchedules.length) return 'Du lundi au vendredi de 9h à 19h';
60
+
61
+ // let reducedSchedules = user.workingSchedules.reduce((acc: any, e:any, index: number) => {
62
+ // const name = `${dayjs(e.morningStart, 'HH:mm:ss').format('HH:mm')}-${dayjs(e.afternoonEnd || e.morningEnd, 'HH:mm:ss').format('HH:mm')}`;
63
+ // if (!acc[name]) acc[name] = [index];
64
+ // else acc[name].push(index);
65
+ // return acc;
66
+ // }, {});
67
+
68
+ // reducedSchedules = orderByLodash(reducedSchedules, (elem) => elem.length, ['desc']);
69
+
70
+ // let resultHoraire = '';
71
+ // let startH;
72
+ // let startM;
73
+ // let endH;
74
+ // let endM;
75
+ // let firstDayOfWeek;
76
+ // let lastDayOfWeek;
77
+
78
+ // reducedSchedules.forEach((schedule: any, index: number) => {
79
+ // startH = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('hour');
80
+ // startM = dayjs(user.workingSchedules[schedule[0]].morningStart ? user.workingSchedules[schedule[0]].morningStart : user.workingSchedules[schedule[0]].afternoonStart, 'HH:mm:ss').get('minute');
81
+ // endH = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('hour');
82
+ // endM = dayjs(user.workingSchedules[schedule[0]].afternoonEnd || user.workingSchedules[schedule[0]].morningEnd, 'HH:mm:ss').get('minute');
83
+ // firstDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[schedule[0]].idDay).format('dddd');
84
+ // if (!index) {
85
+ // // pour le premier index, on affiche l'amplitude horaire la plus commune, du XX au XX de Xh à Xh
86
+ // lastDayOfWeek = dayjs().locale('fr').day(user.workingSchedules[user.workingSchedules.length - 1].idDay).format('dddd');
87
+ // resultHoraire += `Du ${firstDayOfWeek} au ${lastDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;
88
+ // } else { // Fonctionnel si uniquement un jour par semaine avec des horaires différents
89
+ // resultHoraire += `<br/>Le ${firstDayOfWeek} de ${startH}h${startM > 0 ? startM : ''} à ${endH}h${endM > 0 ? endM : ''}`;
90
+ // }
91
+ // });
92
+ // return resultHoraire;
92
93
  }
93
94
 
94
95
  function getMailSignature(user:any, idTypeBrand:number) {
@@ -1,6 +0,0 @@
1
- export declare class PrepareModulesAndCompletions {
2
- lastIdSociety: number;
3
- firstIdSociety: number;
4
- onlyClient: boolean;
5
- }
6
- //# sourceMappingURL=PrepareModulesAndCompletions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrepareModulesAndCompletions.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.ts"],"names":[],"mappings":"AAGA,qBAAa,4BAA4B;IAEvC,aAAa,EAAE,MAAM,CAAC;IAGtB,cAAc,EAAE,MAAM,CAAC;IAIvB,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1,27 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { IsBoolean } from 'class-validator';
11
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
- export class PrepareModulesAndCompletions {
13
- }
14
- __decorate([
15
- ApiPropertyOptional(),
16
- __metadata("design:type", Number)
17
- ], PrepareModulesAndCompletions.prototype, "lastIdSociety", void 0);
18
- __decorate([
19
- ApiPropertyOptional(),
20
- __metadata("design:type", Number)
21
- ], PrepareModulesAndCompletions.prototype, "firstIdSociety", void 0);
22
- __decorate([
23
- ApiProperty(),
24
- IsBoolean(),
25
- __metadata("design:type", Boolean)
26
- ], PrepareModulesAndCompletions.prototype, "onlyClient", void 0);
27
- //# sourceMappingURL=PrepareModulesAndCompletions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrepareModulesAndCompletions.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,4BAA4B;CAUxC;AARC;IADC,mBAAmB,EAAE;;mEACA;AAGtB;IADC,mBAAmB,EAAE;;oEACC;AAIvB;IAFC,WAAW,EAAE;IACb,SAAS,EAAE;;gEACQ","sourcesContent":["import { IsBoolean } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class PrepareModulesAndCompletions {\n @ApiPropertyOptional()\n lastIdSociety: number;\n\n @ApiPropertyOptional()\n firstIdSociety: number;\n\n @ApiProperty()\n @IsBoolean()\n onlyClient: boolean;\n}"]}
@@ -1,8 +0,0 @@
1
- export declare type ReadPrepareModulesAndCompletions = {
2
- treatedSocieties: number;
3
- creation: {
4
- modules: number;
5
- completions: number;
6
- };
7
- };
8
- //# sourceMappingURL=ReadPrepareModulesAndCompletions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadPrepareModulesAndCompletions.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.ts"],"names":[],"mappings":"AAAA,oBAAY,gCAAgC,GAAG;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReadPrepareModulesAndCompletions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadPrepareModulesAndCompletions.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadPrepareModulesAndCompletions = {\n treatedSocieties: number;\n creation: {\n modules: number;\n completions: number\n }\n};"]}
@@ -1,7 +0,0 @@
1
- export declare class QueryCountUnprocessedMail {
2
- idUser?: number;
3
- isWithoutSociety?: boolean;
4
- handlingManagerRoleMails?: boolean;
5
- idSociety?: number;
6
- }
7
- //# sourceMappingURL=QueryCountUnprocessedMail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCountUnprocessedMail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedMail.ts"],"names":[],"mappings":"AAQA,qBAAa,yBAAyB;IAIpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAKnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCountUnprocessedMail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedMail.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,yBAAyB;CAsBrC;AAlBC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;yDACQ;AAMhB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;mEACe;AAM3B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;2EACuB;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;4DACW","sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedMail {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n}\n"]}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PrepareModulesAndCompletions = undefined;
7
-
8
- var _classValidator = require("class-validator");
9
-
10
- var _utils = require("../../../../utils");
11
-
12
- var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13
- var c = arguments.length,
14
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
15
- d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
17
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18
- };
19
-
20
- var __metadata = undefined && undefined.__metadata || function (k, v) {
21
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22
- };
23
-
24
- class PrepareModulesAndCompletions {}
25
-
26
- exports.PrepareModulesAndCompletions = PrepareModulesAndCompletions;
27
-
28
- __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], PrepareModulesAndCompletions.prototype, "lastIdSociety", void 0);
29
-
30
- __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], PrepareModulesAndCompletions.prototype, "firstIdSociety", void 0);
31
-
32
- __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsBoolean)(), __metadata("design:type", Boolean)], PrepareModulesAndCompletions.prototype, "onlyClient", void 0);
33
- //# sourceMappingURL=PrepareModulesAndCompletions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrepareModulesAndCompletions.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,4BAAP,CAAmC;;QAA5BA,4B,GAAAA,4B;;AAEXC,YADC,iCACD;;AAGAA,YADC,iCACD;;AAIAA,YAFC,yBAED,EADC,gCACD","names":["PrepareModulesAndCompletions","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/balanceSheetModule/PrepareModulesAndCompletions.ts"],"sourcesContent":["import { IsBoolean } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class PrepareModulesAndCompletions {\n @ApiPropertyOptional()\n lastIdSociety: number;\n\n @ApiPropertyOptional()\n firstIdSociety: number;\n\n @ApiProperty()\n @IsBoolean()\n onlyClient: boolean;\n}"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=ReadPrepareModulesAndCompletions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadPrepareModulesAndCompletions.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCountUnprocessedMail.js","mappings":";;;;;;;AAAA;;AAKA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,yBAAP,CAAgC;;QAAzBA,yB,GAAAA,yB;;AAIXC,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAMAA,YAJC,iCAID,EAHC,iCAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,4BACD","names":["QueryCountUnprocessedMail","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mail/QueryCountUnprocessedMail.ts"],"sourcesContent":["import {\n IsBoolean,\n IsInt,\n IsOptional,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryCountUnprocessedMail {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isWithoutSociety?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n handlingManagerRoleMails?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n}\n"]}
@@ -1,14 +0,0 @@
1
- import { IsBoolean } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
-
4
- export class PrepareModulesAndCompletions {
5
- @ApiPropertyOptional()
6
- lastIdSociety: number;
7
-
8
- @ApiPropertyOptional()
9
- firstIdSociety: number;
10
-
11
- @ApiProperty()
12
- @IsBoolean()
13
- onlyClient: boolean;
14
- }
@@ -1,7 +0,0 @@
1
- export type ReadPrepareModulesAndCompletions = {
2
- treatedSocieties: number;
3
- creation: {
4
- modules: number;
5
- completions: number
6
- }
7
- };