@silexpert/core 1.0.121 → 1.0.125

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/SocietyConfigBalanceSheet.d.ts +1 -1
  2. package/es/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
  3. package/es/api/resources/SocietyConfigBalanceSheet.js +2 -2
  4. package/es/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  5. package/es/types/Enum/BalanceSheet.d.ts +1 -1
  6. package/es/types/Enum/BalanceSheet.js +1 -1
  7. package/es/types/Enum/BalanceSheet.js.map +1 -1
  8. package/es/types/Enum/BrandClementine.d.ts +2 -0
  9. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  10. package/es/types/Enum/BrandClementine.js +1 -0
  11. package/es/types/Enum/BrandClementine.js.map +1 -1
  12. package/es/types/Enum/BrandComptalib.js +1 -1
  13. package/es/types/Enum/BrandComptalib.js.map +1 -1
  14. package/es/types/Enum/DepositDocumentType.d.ts +10 -0
  15. package/es/types/Enum/DepositDocumentType.d.ts.map +1 -1
  16. package/es/types/Enum/DepositDocumentType.js +12 -0
  17. package/es/types/Enum/DepositDocumentType.js.map +1 -1
  18. package/es/types/Enum/Ged.d.ts +4 -0
  19. package/es/types/Enum/Ged.d.ts.map +1 -1
  20. package/es/types/Enum/Ged.js +26 -0
  21. package/es/types/Enum/Ged.js.map +1 -1
  22. package/es/types/Enum/MailAuto.d.ts +17 -1
  23. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  24. package/es/types/Enum/MailAuto.js +28 -0
  25. package/es/types/Enum/MailAuto.js.map +1 -1
  26. package/es/types/Enum/PrestationType.js +1 -1
  27. package/es/types/Enum/PrestationType.js.map +1 -1
  28. package/es/types/Enum/RevisionGuide.d.ts +3 -3
  29. package/es/types/Enum/RevisionGuide.d.ts.map +1 -1
  30. package/es/types/Enum/RevisionGuide.js +3 -3
  31. package/es/types/Enum/RevisionGuide.js.map +1 -1
  32. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts +2 -0
  33. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.d.ts.map +1 -1
  34. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +16 -2
  35. package/es/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -1
  36. package/es/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.js +1 -1
  37. package/es/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.js.map +1 -1
  38. package/es/types/Interface/api/user/CreateUser.d.ts +1 -0
  39. package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -1
  40. package/es/types/Interface/api/user/CreateUser.js +4 -0
  41. package/es/types/Interface/api/user/CreateUser.js.map +1 -1
  42. package/es/types/Interface/models/IGedFile.d.ts +2 -0
  43. package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
  44. package/es/types/Interface/models/IGedFile.js.map +1 -1
  45. package/es/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  46. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  47. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  48. package/es/types/Interface/models/ISociety.d.ts +2 -1
  49. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  50. package/es/types/Interface/models/ISociety.js.map +1 -1
  51. package/es/types/Interface/models/ISocietyConfigBalanceSheet.d.ts +6 -2
  52. package/es/types/Interface/models/ISocietyConfigBalanceSheet.d.ts.map +1 -1
  53. package/es/types/Interface/models/ISocietyConfigBalanceSheet.js.map +1 -1
  54. package/es/utils/commercialManagement/templates/common.js +1 -1
  55. package/es/utils/commercialManagement/templates/common.js.map +1 -1
  56. package/js/api/resources/SocietyConfigBalanceSheet.js +2 -2
  57. package/js/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  58. package/js/types/Enum/BalanceSheet.js +1 -1
  59. package/js/types/Enum/BalanceSheet.js.map +1 -1
  60. package/js/types/Enum/BrandClementine.js +2 -1
  61. package/js/types/Enum/BrandClementine.js.map +1 -1
  62. package/js/types/Enum/BrandComptalib.js +1 -1
  63. package/js/types/Enum/BrandComptalib.js.map +1 -1
  64. package/js/types/Enum/DepositDocumentType.js +17 -1
  65. package/js/types/Enum/DepositDocumentType.js.map +1 -1
  66. package/js/types/Enum/Ged.js +19 -0
  67. package/js/types/Enum/Ged.js.map +1 -1
  68. package/js/types/Enum/MailAuto.js +34 -0
  69. package/js/types/Enum/MailAuto.js.map +1 -1
  70. package/js/types/Enum/PrestationType.js +1 -1
  71. package/js/types/Enum/PrestationType.js.map +1 -1
  72. package/js/types/Enum/RevisionGuide.js +3 -3
  73. package/js/types/Enum/RevisionGuide.js.map +1 -1
  74. package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js +4 -0
  75. package/js/types/Interface/api/calendarEvent/getLastInvalidateEvent.js.map +1 -1
  76. package/js/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.js +1 -1
  77. package/js/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.js.map +1 -1
  78. package/js/types/Interface/api/user/CreateUser.js +2 -0
  79. package/js/types/Interface/api/user/CreateUser.js.map +1 -1
  80. package/js/utils/commercialManagement/templates/common.js +1 -1
  81. package/js/utils/commercialManagement/templates/common.js.map +1 -1
  82. package/package.json +1 -1
  83. package/ts/api/resources/SocietyConfigBalanceSheet.ts +2 -2
  84. package/ts/types/Enum/BalanceSheet.ts +1 -1
  85. package/ts/types/Enum/BrandClementine.ts +1 -0
  86. package/ts/types/Enum/BrandComptalib.ts +1 -1
  87. package/ts/types/Enum/DepositDocumentType.ts +12 -0
  88. package/ts/types/Enum/Ged.ts +27 -0
  89. package/ts/types/Enum/MailAuto.ts +30 -1
  90. package/ts/types/Enum/PrestationType.ts +1 -1
  91. package/ts/types/Enum/RevisionGuide.ts +3 -3
  92. package/ts/types/Interface/api/calendarEvent/getLastInvalidateEvent.ts +16 -2
  93. package/ts/types/Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet.ts +1 -1
  94. package/ts/types/Interface/api/user/CreateUser.ts +3 -0
  95. package/ts/types/Interface/models/IGedFile.ts +2 -0
  96. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  97. package/ts/types/Interface/models/ISociety.ts +2 -0
  98. package/ts/types/Interface/models/ISocietyConfigBalanceSheet.ts +6 -2
  99. package/ts/utils/commercialManagement/templates/common.ts +1 -1
@@ -17,8 +17,8 @@ export class SocietyConfigBalanceSheet extends Resource {
17
17
  return this.axios.$get(`/societies/${id}/balance-sheets/settings/list`, { params });
18
18
  }
19
19
 
20
- public update(id: number, idBalanceSheet: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<SocietyConfigBalanceSheet> {
21
- return this.axios.$put(`/societies/${id}/balance-sheets/${idBalanceSheet}/setting`, payload);
20
+ public update(idSociety: number, id: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<SocietyConfigBalanceSheet> {
21
+ return this.axios.$put(`/societies/${idSociety}/balance-sheets/settings/${id}`, payload);
22
22
  }
23
23
 
24
24
  public delete(id: number): Promise<true> {
@@ -108,7 +108,7 @@ export const BalanceSheetDetails = [
108
108
  {
109
109
  value: BalanceSheetState.ACCEPTED_BY_SIE,
110
110
  text: 'Accepté au SIE',
111
- color: 'grey darken-1',
111
+ color: 'green darken-1',
112
112
  textColor: 'green--text',
113
113
  forRoles: [['front_office'], ['front_office_express'], ['expert']],
114
114
  },
@@ -83,6 +83,7 @@ export const BrandClementine = [
83
83
  },
84
84
  webmail: {
85
85
  domain: '@compta-clementine.fr',
86
+ domain2: '@clementine.fr',
86
87
  },
87
88
  },
88
89
  {
@@ -56,7 +56,7 @@ export const BrandComptalib = [
56
56
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
57
57
  urlApp: 'https://app.comptalib.com',
58
58
  urlExpert: 'https://pro.comptalib.com',
59
- urlClient: '',
59
+ urlClient: 'https://www.comptalib.com',
60
60
  webmail: {
61
61
  domain: '@comptalib.com',
62
62
  },
@@ -1,5 +1,17 @@
1
1
  import { GedFolder, TypeFile } from './Ged';
2
2
 
3
+ export enum StateDepositDocument {
4
+ NOT_ASKED = 0,
5
+ ASKED = 1,
6
+ }
7
+
8
+ export enum StateClientDepositDocument {
9
+ ACCEPTED = 0,
10
+ REFUSED = 1,
11
+ WAITING = 2,
12
+ PENDING_CLIENT = 3,
13
+ }
14
+
3
15
  export const DepositDocumentType = [
4
16
  {
5
17
  name: 'Contrats & échéanciers',
@@ -103,6 +103,33 @@ export enum GedFileType {
103
103
  PERSONNAL_RIB = 21, // RIB PERSO
104
104
  }
105
105
 
106
+ export const SignFileDetail = [
107
+ {
108
+ id: TypeFile.CA_TO_SIGN,
109
+ name: 'CA',
110
+ },
111
+ {
112
+ id: TypeFile.CCA_TO_SIGN,
113
+ name: 'CCA',
114
+ },
115
+ {
116
+ id: TypeFile.INVENTORY_TO_SIGN,
117
+ name: 'Inventaire',
118
+ },
119
+ {
120
+ id: TypeFile.FUND_TO_SIGN,
121
+ name: 'Caisse',
122
+ },
123
+ {
124
+ id: TypeFile.SUPPLIER_BOOK_TO_SIGN,
125
+ name: 'Grand Livre fournisseur',
126
+ },
127
+ {
128
+ id: TypeFile.CLIENT_BOOK_TO_SIGN,
129
+ name: 'Grand Livre client',
130
+ },
131
+ ];
132
+
106
133
  export const GedFileTypeDetail = {
107
134
  STATUTES: {
108
135
  id: GedFileType.STATUTES,
@@ -116,4 +116,33 @@ export enum MailAuto {
116
116
  MEETING_WITH_CLEMENTINE = 135,
117
117
  DONT_MISS_CLEMENTINE = 136,
118
118
  CLEMENTINE_ADVENTURE_DOES_NOT_END = 137,
119
- }
119
+ ASK_DOCUMENTS_FOR_BALANCE_SHEET = 138,
120
+ ASK_SIGNED_DOCUMENTS_FOR_BALANCE_SHEET = 139,
121
+ }
122
+
123
+ export const MailAutoList = [
124
+ {
125
+ id: MailAuto.ASK_DOCUMENTS_FOR_BALANCE_SHEET,
126
+ onlyforRoles: null,
127
+ alias: 'ask-documents-for-balance-sheet',
128
+ title: 'Demande de document pour votre bilan comptable',
129
+ subject: 'Demande de document pour votre bilan comptable',
130
+ fields: [
131
+ { name: 'to', lg: 'xs12 sm5' },
132
+ { name: 'subject', lg: 'xs12 sm7' },
133
+ { name: 'contentHtml' },
134
+ ],
135
+ },
136
+ {
137
+ id: MailAuto.ASK_SIGNED_DOCUMENTS_FOR_BALANCE_SHEET,
138
+ onlyforRoles: null,
139
+ alias: 'ask-signed-documents-for-balance-sheet',
140
+ title: 'Signer vos documents pour mon bilan comptable',
141
+ subject: 'Signer vos documents pour mon bilan comptable',
142
+ fields: [
143
+ { name: 'to', lg: 'xs12 sm5' },
144
+ { name: 'subject', lg: 'xs12 sm7' },
145
+ { name: 'contentHtml' },
146
+ ],
147
+ },
148
+ ];
@@ -2777,7 +2777,7 @@ export const PrestationDetail = {
2777
2777
  },
2778
2778
  FRAIS_DE_GREFFE: {
2779
2779
  id: 210,
2780
- name: 'Annonces légales',
2780
+ name: 'Frais de greffe',
2781
2781
  isComptable: 0,
2782
2782
  isJuridique: 1,
2783
2783
  isSocial: 0,
@@ -135,11 +135,11 @@ export enum RevisionGuideLabel {
135
135
  N1ELEMENT = '<b>Reprise du dossier</b>: Eléments N-1 à intégrer ?',
136
136
  N1ELEMENTJUSTIF = '<b>Reprise du dossier</b> : Soldes fournisseurs/clients N-1 traités et justifiés ?',
137
137
  IMMON1 = '<b>Reprise du dossier</b> : Immobilisations N-1 revues (HS/mise au rebut, ventes) avec le client ?',
138
- FECN1 = '<b>Reprise du dossier</b> : rapprochement plaquette & liasse avec FEC N-1',
138
+ FECN1 = '<b>Reprise du dossier</b> : rapprochement plaquette & liasse avec FEC N-1 ?',
139
139
  CAPITAUX_PERTE = '<b>Capitaux</b> : La perte est-elle supérieur au capital social ?',
140
- CONTRAT_EMPRUNT = '<b>Emprunt</b> : Contrat et échéancier d\'emprunts obtenus',
140
+ CONTRAT_EMPRUNT = '<b>Emprunt</b> : Contrat et échéancier d\'emprunts obtenus ?',
141
141
  SOLDE_RAPPRO = '<b>Banque :</b> le solde bancaire a t-il pu être rapproché PDF ou budget ?',
142
- CAISSE_OK = '<b>Caisse :</b> avez vous une caisse certifiée conforme : ',
142
+ CAISSE_OK = '<b>Caisse :</b> avez vous une caisse certifiée conforme ?',
143
143
  BAIL_COMMERCIAL = '<b>Charges :</b> Bail commercial et quittances de loyers obtenus sur l’ensemble de l’exercice comptable ?',
144
144
  TICKET_Z = '<b>Ticket Z :</b> Avez vous obtenu le ticket Z annuel ?',
145
145
  COMPTE_SOLDE = '<b>Etats :</b> Compte d\'attente soldé ?',
@@ -1,8 +1,22 @@
1
- import { IsInt } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils/decorators';
1
+ import {
2
+ IsDateString, IsInt, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
3
5
 
4
6
  export class GetLastInvalidateEvent {
5
7
  @ApiProperty()
6
8
  @IsInt()
7
9
  idUser: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsString()
14
+ @IsDateString()
15
+ dateStart?: string;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsString()
20
+ @IsDateString()
21
+ dateEnd?: string;
8
22
  }
@@ -20,6 +20,6 @@ export class QueryGetAllSocietyConfigBalanceSheet {
20
20
  @IsString({
21
21
  each: true,
22
22
  })
23
- @IsIn(['society'], { each: true })
23
+ @IsIn(['society', 'user'], { each: true })
24
24
  include?: string[];
25
25
  }
@@ -18,6 +18,9 @@ export class CreateUser {
18
18
  @ApiPropertyOptional()
19
19
  acceptNewsletter?: boolean;
20
20
 
21
+ @ApiPropertyOptional()
22
+ prefix?: string;
23
+
21
24
  @ApiPropertyOptional()
22
25
  @IsBoolean()
23
26
  @IsOptional()
@@ -4,6 +4,7 @@ import { IExercice } from './IExercice';
4
4
  import { IGedFileType } from './IGedFileType';
5
5
  import { IGedFolder } from './IGedFolder';
6
6
  import { IUser } from './IUser';
7
+ import { ICustomerSignature } from './ICustomerSignature';
7
8
 
8
9
  // gedFile
9
10
  export interface IGedFile {
@@ -28,4 +29,5 @@ export interface IGedFile {
28
29
  typeGedFile?: IGedFileType;
29
30
  gedFolder?: IGedFolder;
30
31
  businessPartner?: IUser;
32
+ customerSignature?: ICustomerSignature;
31
33
  }
@@ -7,6 +7,7 @@ export interface IPaymentExpectation {
7
7
  id?: number;
8
8
  label: string;
9
9
  amount: number;
10
+ payload: string;
10
11
  ref: string;
11
12
  archive: boolean;
12
13
  idCodeErreur: number | null;
@@ -49,6 +49,7 @@ import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
51
  ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule, IRegulate, IUserSocietyPermission,
52
+ ISocietyConfigBalanceSheet,
52
53
  } from '../..';
53
54
  import { IBrandType } from './IBrandType';
54
55
 
@@ -158,6 +159,7 @@ export interface ISociety {
158
159
  connectors?: IConnector[];
159
160
  bankConnections?: IBankConnection[];
160
161
  societiesFollowedQualityMail?: IFollowedQualityMail[];
162
+ societyConfigBalanceSheet?: ISocietyConfigBalanceSheet[];
161
163
  societyFollow?: IFollow[];
162
164
  paymentsExpectations?: IPaymentExpectation[];
163
165
  paymentSchedules?: IPaymentSchedule[];
@@ -2,18 +2,21 @@ import { IDocumentWaitingType } from './IDocumentWaitingType';
2
2
  import { IExercice } from './IExercice';
3
3
  import { IBalanceSheet } from './IBalanceSheet';
4
4
  import { ISociety } from './ISociety';
5
+ import { IUser } from './IUser';
6
+ import { StateDepositDocument, StateClientDepositDocument } from '../../Enum/DepositDocumentType';
5
7
 
6
8
  // societyConfigBalanceSheet
7
9
  export interface ISocietyConfigBalanceSheet {
8
10
  id?: number;
9
- state: number;
10
- stateClient: number;
11
+ state: StateDepositDocument;
12
+ stateClient: StateClientDepositDocument;
11
13
  idSociety: number | null;
12
14
  comment: string | null;
13
15
  amount: number | null;
14
16
  idTypeDocumentsWaiting?: number | null;
15
17
  idExercice: number | null;
16
18
  idBalanceSheet: number | null;
19
+ idUser?: number | null;
17
20
  idDepositDocumentType: number | null,
18
21
  createdAt?: Date | null;
19
22
  updatedAt?: Date | null;
@@ -23,4 +26,5 @@ export interface ISocietyConfigBalanceSheet {
23
26
  exercice?: IExercice;
24
27
  society?: ISociety;
25
28
  balanceSheet?: IBalanceSheet;
29
+ user?: IUser;
26
30
  }
@@ -406,7 +406,7 @@ export class CommercialDocumentMailHTML {
406
406
  </div>
407
407
  <% if (!shouldHideBrandName) { %>
408
408
  <div style="margin-top: 20px; margin-bottom: -8px; width: fit-content; white-space: nowrap; margin-left: auto; margin-right: auto; font-size: 14px;">
409
- <div class="brand-tag" style="display: flex; line-height: 18px; height: 18px;">
409
+ <div class="brand-tag" style="display: flex; line-height: 18px; height: 14px;">
410
410
  Généré par <% if (hostS3) { %><img src="<%= hostS3 %>config/logo-brand.png" alt="logo" style="max-height: 18px; margin-left: 5px;" /><% } %>
411
411
  </div>
412
412
  </div>