@silexpert/core 1.0.136 → 1.0.139

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 (54) hide show
  1. package/es/api/resources/Mail.d.ts +3 -3
  2. package/es/api/resources/Mail.d.ts.map +1 -1
  3. package/es/api/resources/Mail.js +2 -2
  4. package/es/api/resources/Mail.js.map +1 -1
  5. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  6. package/es/types/Enum/TaskResponseType.js +11 -0
  7. package/es/types/Enum/TaskResponseType.js.map +1 -1
  8. package/es/types/Interface/api/mail/GetMailPromise.d.ts +5 -0
  9. package/es/types/Interface/api/mail/GetMailPromise.d.ts.map +1 -0
  10. package/es/types/Interface/api/mail/GetMailPromise.js +2 -0
  11. package/es/types/Interface/api/mail/GetMailPromise.js.map +1 -0
  12. package/es/types/Interface/api/mail/QueryMail.d.ts +8 -0
  13. package/es/types/Interface/api/mail/QueryMail.d.ts.map +1 -1
  14. package/es/types/Interface/api/mail/QueryMail.js +44 -1
  15. package/es/types/Interface/api/mail/QueryMail.js.map +1 -1
  16. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -0
  17. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  18. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -1
  19. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  20. package/es/types/Interface/api/wallet/QueryWallet.d.ts +1 -0
  21. package/es/types/Interface/api/wallet/QueryWallet.d.ts.map +1 -1
  22. package/es/types/Interface/api/wallet/QueryWallet.js +5 -0
  23. package/es/types/Interface/api/wallet/QueryWallet.js.map +1 -1
  24. package/es/types/index.d.ts +1 -0
  25. package/es/types/index.d.ts.map +1 -1
  26. package/es/types/index.js +1 -0
  27. package/es/types/index.js.map +1 -1
  28. package/es/utils/documents.js +5 -5
  29. package/es/utils/documents.js.map +1 -1
  30. package/js/api/resources/Mail.js +2 -2
  31. package/js/api/resources/Mail.js.map +1 -1
  32. package/js/types/Enum/TaskResponseType.js +10 -0
  33. package/js/types/Enum/TaskResponseType.js.map +1 -1
  34. package/js/types/Interface/api/mail/GetMailPromise.js +6 -0
  35. package/js/types/Interface/api/mail/GetMailPromise.js.map +1 -0
  36. package/js/types/Interface/api/mail/QueryMail.js +23 -1
  37. package/js/types/Interface/api/mail/QueryMail.js.map +1 -1
  38. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +7 -0
  39. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  40. package/js/types/Interface/api/wallet/QueryWallet.js +2 -0
  41. package/js/types/Interface/api/wallet/QueryWallet.js.map +1 -1
  42. package/js/types/index.js +12 -0
  43. package/js/types/index.js.map +1 -1
  44. package/js/utils/documents.js +5 -5
  45. package/js/utils/documents.js.map +1 -1
  46. package/package.json +1 -1
  47. package/ts/api/resources/Mail.ts +5 -3
  48. package/ts/types/Enum/TaskResponseType.ts +11 -0
  49. package/ts/types/Interface/api/mail/GetMailPromise.ts +5 -0
  50. package/ts/types/Interface/api/mail/QueryMail.ts +38 -1
  51. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +9 -1
  52. package/ts/types/Interface/api/wallet/QueryWallet.ts +4 -0
  53. package/ts/types/index.ts +1 -0
  54. package/ts/utils/documents.ts +5 -5
@@ -8,6 +8,8 @@ import {
8
8
  CreateMailParams,
9
9
  QueryAllMail,
10
10
  QueryGetSignature,
11
+ GetMailPromise,
12
+ QueryUpdateMail,
11
13
  } from '../../types';
12
14
 
13
15
  export class Mail extends Resource {
@@ -15,8 +17,8 @@ export class Mail extends Resource {
15
17
  return this.axios.$post('/mails', payload);
16
18
  }
17
19
 
18
- public get(id: number, params: QueryMail): Promise<Mail> {
19
- return this.axios.$get(`/mails/${id}`, { params });
20
+ public get(params: QueryMail): Promise<GetMailPromise> {
21
+ return this.axios.$get('/mails', { params });
20
22
  }
21
23
 
22
24
  public getAll(params: Partial<QueryAllMail>): Promise<Mail> {
@@ -195,7 +197,7 @@ export class Mail extends Resource {
195
197
  });
196
198
  }
197
199
 
198
- update(id: number, payload: UpdateMailPayload, params: QueryMail): Promise<IMail> {
200
+ update(id: number, payload: UpdateMailPayload, params: QueryUpdateMail): Promise<IMail> {
199
201
  return this.axios.patch(`/mails/${id}`, { ...payload, ...params });
200
202
  }
201
203
 
@@ -332,6 +332,17 @@ export const TaskResponseType = {
332
332
  responseType: ResponseType.CALL,
333
333
  description: 'Appel notation suite à la livraison du bilan',
334
334
  },
335
+ {
336
+ id: 32,
337
+ label: 'Administratif',
338
+ role: Role.CUSTOMER_SUCCESS,
339
+ deadline: Deadline,
340
+ isForWholeRole: false,
341
+ backToClient: false,
342
+ goToCalendar: false,
343
+ responseType: null,
344
+ description: 'Rendez-vous Clémentine',
345
+ },
335
346
  ],
336
347
 
337
348
  },
@@ -0,0 +1,5 @@
1
+ import { IMail } from '../../models/IMail';
2
+
3
+ export interface GetMailPromise extends IMail {
4
+ displayPrevisionalAttribution: boolean,
5
+ }
@@ -1,9 +1,29 @@
1
1
  import {
2
- IsIn, IsOptional, IsString,
2
+ IsIn, IsInt, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils/decorators';
5
5
 
6
6
  export class QueryMail {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsInt()
10
+ id?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ idSociety?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ idExercice?: number;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsInt()
25
+ idMailAuto?: number;
26
+
7
27
  @ApiPropertyOptional()
8
28
  @IsOptional()
9
29
  @IsString({
@@ -19,3 +39,20 @@ export class QueryMail {
19
39
  })
20
40
  attributes?: string[];
21
41
  }
42
+
43
+ export class QueryUpdateMail {
44
+ @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsString({
47
+ each: true,
48
+ })
49
+ @IsIn(['society', 'mailContent', 'mailAttachment', 'userWhoFlagged'], { each: true })
50
+ include?: string[];
51
+
52
+ @ApiPropertyOptional()
53
+ @IsOptional()
54
+ @IsString({
55
+ each: true,
56
+ })
57
+ attributes?: string[];
58
+ }
@@ -1,10 +1,13 @@
1
1
  import { IsOptional, IsEnum } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
- import { VatRegime, ToDoOrDone, BankCollectingState } from '../../..';
3
+ import {
4
+ VatRegime, ToDoOrDone, BankCollectingState,
5
+ } from '../../..';
4
6
  import { ComptaType } from '../../../Enum/ComptaType';
5
7
  import { TaxSystem } from '../../../Enum/TaxSystem';
6
8
  import { Supervision } from '../../../Enum/Supervision';
7
9
  import { BalanceSheetState } from '../../../Enum/BalanceSheet';
10
+ import { LegalForm, LegalFormType } from '../../../Enum/LegalForm';
8
11
 
9
12
  export class QueryTaxDeadline {
10
13
  @ApiProperty({ description: 'Identifiant du collaborateur' })
@@ -56,6 +59,11 @@ export class QueryTaxDeadline {
56
59
  @IsOptional()
57
60
  @IsEnum(ToDoOrDone)
58
61
  idTaxStatus?: ToDoOrDone;
62
+
63
+ @ApiPropertyOptional({ description: 'Forme juridique', enum: LegalForm })
64
+ @IsOptional()
65
+ @IsEnum(LegalForm)
66
+ idLegalForm?: LegalFormType | LegalFormType[];
59
67
  }
60
68
 
61
69
  export class QueryTaxDeadlineStatistics {
@@ -16,4 +16,8 @@ export class QueryWallet {
16
16
  @IsString()
17
17
  @IsOptional()
18
18
  search?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ activWallet?: boolean;
19
23
  }
package/ts/types/index.ts CHANGED
@@ -535,6 +535,7 @@ export * from './Interface/api/mail/QueryCountMail';
535
535
  export * from './Interface/api/mail/UpdateMail';
536
536
  export * from './Interface/api/mail/CreateMailParams';
537
537
  export * from './Interface/api/mail/UpdateMailParams';
538
+ export * from './Interface/api/mail/GetMailPromise';
538
539
  export * from './Interface/api/society/LegalFormSiren';
539
540
  export * from './Interface/api/society/SocietyWithStatsCaParams';
540
541
  export * from './Interface/api/society/QuerySociety';
@@ -11,18 +11,18 @@ const requiredListDocs = (idLegalForm: number, isOnlyPrevi?: boolean, isOnlyJuri
11
11
 
12
12
  const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE];
13
13
 
14
- if ([LegalForm.SAS.id, LegalForm.SASU.id].includes(idLegalForm)) {
14
+ if ([LegalForm.SAS.id, LegalForm.SA.id].includes(idLegalForm)) {
15
15
  generique.push(GedFileType.DISTRIBUTION_OF_SHARE);
16
16
  }
17
17
 
18
- if ([LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id].includes(idLegalForm)) {
18
+ if ([LegalForm.EURL.id, LegalForm.SASU.id, LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id].includes(idLegalForm)) {
19
19
  return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.DBE2, GedFileType.SEPA];
20
20
  }
21
- if ([LegalForm.EURL.id, LegalForm.SASU.id, LegalForm.SELARL.id].includes(idLegalForm)) {
22
- return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA]; // , GedFileType.DISTRIBUTION_OF_SHARE ???
21
+ if ([LegalForm.SELARL.id].includes(idLegalForm)) {
22
+ return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA];
23
23
  }
24
24
  if ([LegalForm.EI.id, LegalForm.AUTO_ENTREPRENEUR.id].includes(idLegalForm)) {
25
- return [...generique, GedFileType.SIRENE, GedFileType.SEPA]; // , GedFileType.DISTRIBUTION_OF_SHARE ???
25
+ return [...generique, GedFileType.SIRENE, GedFileType.SEPA];
26
26
  }
27
27
  if ([LegalForm.EIRL.id].includes(idLegalForm)) {
28
28
  return [...generique, GedFileType.SIRENE, GedFileType.SEPA, GedFileType.PATRIMONY];