@silexpert/core 0.4.217 → 0.4.220

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 (86) hide show
  1. package/es/api/resources/GeneralLedger.d.ts +2 -2
  2. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/es/api/resources/GeneralLedger.js.map +1 -1
  4. package/es/api/resources/NotificationSetting.d.ts +8 -0
  5. package/es/api/resources/NotificationSetting.d.ts.map +1 -0
  6. package/es/api/resources/NotificationSetting.js +13 -0
  7. package/es/api/resources/NotificationSetting.js.map +1 -0
  8. package/es/api/resources/Partner.d.ts +2 -1
  9. package/es/api/resources/Partner.d.ts.map +1 -1
  10. package/es/api/resources/Partner.js +4 -1
  11. package/es/api/resources/Partner.js.map +1 -1
  12. package/es/api/resources.d.ts +2 -0
  13. package/es/api/resources.d.ts.map +1 -1
  14. package/es/api/resources.js +2 -0
  15. package/es/api/resources.js.map +1 -1
  16. package/es/types/Enum/TaskResponseType.js +3 -3
  17. package/es/types/Enum/TaskResponseType.js.map +1 -1
  18. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +2 -0
  19. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  20. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  21. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +2 -0
  22. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  23. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  24. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +1 -2
  25. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  26. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -0
  27. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  28. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts +6 -0
  29. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts.map +1 -0
  30. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js +28 -0
  31. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -0
  32. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts +6 -0
  33. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts.map +1 -0
  34. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +28 -0
  35. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -0
  36. package/es/types/Interface/api/partner/UpdatePartner.d.ts +11 -0
  37. package/es/types/Interface/api/partner/UpdatePartner.d.ts.map +1 -0
  38. package/es/types/Interface/api/partner/UpdatePartner.js +41 -0
  39. package/es/types/Interface/api/partner/UpdatePartner.js.map +1 -0
  40. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +2 -1
  41. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -1
  42. package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -1
  43. package/es/types/Interface/models/IMobileNotificationSetting.d.ts +10 -0
  44. package/es/types/Interface/models/IMobileNotificationSetting.d.ts.map +1 -0
  45. package/es/types/Interface/models/IMobileNotificationSetting.js +2 -0
  46. package/es/types/Interface/models/IMobileNotificationSetting.js.map +1 -0
  47. package/es/types/index.d.ts +4 -0
  48. package/es/types/index.d.ts.map +1 -1
  49. package/es/types/index.js +4 -0
  50. package/es/types/index.js.map +1 -1
  51. package/js/api/resources/GeneralLedger.js.map +1 -1
  52. package/js/api/resources/NotificationSetting.js +26 -0
  53. package/js/api/resources/NotificationSetting.js.map +1 -0
  54. package/js/api/resources/Partner.js +5 -1
  55. package/js/api/resources/Partner.js.map +1 -1
  56. package/js/api/resources.js +3 -0
  57. package/js/api/resources.js.map +1 -1
  58. package/js/types/Enum/TaskResponseType.js +3 -3
  59. package/js/types/Enum/TaskResponseType.js.map +1 -1
  60. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +1 -1
  61. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  62. package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js +35 -0
  63. package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -0
  64. package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +35 -0
  65. package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -0
  66. package/js/types/Interface/api/partner/UpdatePartner.js +42 -0
  67. package/js/types/Interface/api/partner/UpdatePartner.js.map +1 -0
  68. package/js/types/Interface/models/IMobileNotificationSetting.js +6 -0
  69. package/js/types/Interface/models/IMobileNotificationSetting.js.map +1 -0
  70. package/js/types/index.js +48 -0
  71. package/js/types/index.js.map +1 -1
  72. package/package.json +1 -1
  73. package/ts/api/resources/GeneralLedger.ts +4 -2
  74. package/ts/api/resources/NotificationSetting.ts +15 -0
  75. package/ts/api/resources/Partner.ts +5 -1
  76. package/ts/api/resources.ts +2 -0
  77. package/ts/types/Enum/TaskResponseType.ts +3 -3
  78. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +3 -1
  79. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +8 -6
  80. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +2 -1
  81. package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +15 -0
  82. package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +16 -0
  83. package/ts/types/Interface/api/partner/UpdatePartner.ts +20 -0
  84. package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +2 -0
  85. package/ts/types/Interface/models/IMobileNotificationSetting.ts +10 -0
  86. package/ts/types/index.ts +4 -0
@@ -0,0 +1,16 @@
1
+ import { IsBoolean, IsEnum, IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+ import { NotificationType } from '../../../Enum/NotificationType';
5
+
6
+ export class UpdateNotificationSetting {
7
+ @ApiProperty()
8
+ @IsInt()
9
+ @IsEnum(NotificationType)
10
+ notificationType: NotificationType;
11
+
12
+ @ApiProperty()
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ active: boolean;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { ApiProperty, ApiPropertyOptional, BaseEntity } from '../../../../utils';
2
+ import { ISocietyPartner, PartnerType } from '../../..';
3
+
4
+ export class UpdatePartner implements Omit<BaseEntity<ISocietyPartner>, 'idAccount' | 'idSociety' | 'account'> {
5
+ @ApiPropertyOptional()
6
+ firstname?: string;
7
+ @ApiPropertyOptional()
8
+ lastname?: string;
9
+ @ApiPropertyOptional()
10
+ company?: string;
11
+ @ApiPropertyOptional()
12
+ siret?: string;
13
+ @ApiProperty()
14
+ fonction: string;
15
+ @ApiProperty({
16
+ default: PartnerType.PHYSICAL_PARTNER,
17
+ description: 'You can retrieve the enum Partner Type in @core',
18
+ })
19
+ idPartnerType: PartnerType;
20
+ }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IAccountDetail,
2
3
  IAccountingFile, IAccountingJournal, ILettering, IUser,
3
4
  } from '../../..';
4
5
 
@@ -34,6 +35,7 @@ export interface ReadRevisionAccount {
34
35
  accountingJournal: IAccountingJournal;
35
36
  user: IUser;
36
37
  },
38
+ accountDetails: IAccountDetail[],
37
39
  thirdParty: { id: number, fullname: string } | null,
38
40
  calculatedVat?: number;
39
41
  balance: number | null;
@@ -0,0 +1,10 @@
1
+ import { NotificationType } from '../../Enum/NotificationType';
2
+
3
+ export interface IMobileNotificationSetting {
4
+ id: number;
5
+ idType: NotificationType;
6
+ active: boolean;
7
+ idUser: number;
8
+ createdAt?: Date | null;
9
+ updatedAt?: Date | null;
10
+ }
package/ts/types/index.ts CHANGED
@@ -306,6 +306,7 @@ export * from './Interface/models/IMobile';
306
306
  export * from './Interface/models/ISocietyEvent';
307
307
  export * from './Interface/models/ITask';
308
308
  export * from './Interface/models/IMobileNotificationLog';
309
+ export * from './Interface/models/IMobileNotificationSetting';
309
310
 
310
311
  // Forms
311
312
  export * from './Form/FormAuthenticate';
@@ -572,6 +573,7 @@ export * from './Interface/api/mailInvoice/CreateInvoiceMail';
572
573
  export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
573
574
  export * from './Interface/api/partner/CreatePartner';
574
575
  export * from './Interface/api/partner/GetPartners';
576
+ export * from './Interface/api/partner/UpdatePartner';
575
577
  // export * from './Interface/api/generalLedger/GeneralLedgerQuery';
576
578
  export * from './Interface/api/fecFile/CreateFecFile';
577
579
  export * from './Interface/api/fecFile/DeleteFecFile';
@@ -736,3 +738,5 @@ export * from './Interface/api/affectedPatrimony/CreateAffectedPatrimony';
736
738
  export * from './Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony';
737
739
  export * from './Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony';
738
740
  export * from './Interface/api/affectedPatrimony/ReadAffectedPatrimony';
741
+ export * from './Interface/api/notificationSetting/CreateNotificationSetting';
742
+ export * from './Interface/api/notificationSetting/UpdateNotificationSetting';