@silexpert/core 1.1.107 → 1.1.108

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 (72) hide show
  1. package/es/api/resources/User.d.ts +1 -9
  2. package/es/api/resources/User.d.ts.map +1 -1
  3. package/es/api/resources/User.js +0 -13
  4. package/es/api/resources/User.js.map +1 -1
  5. package/es/types/Enum/BalanceSheet.d.ts +8 -1
  6. package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
  7. package/es/types/Enum/BalanceSheet.js +8 -0
  8. package/es/types/Enum/BalanceSheet.js.map +1 -1
  9. package/es/types/Enum/Comment.d.ts +2 -1
  10. package/es/types/Enum/Comment.d.ts.map +1 -1
  11. package/es/types/Enum/Comment.js +1 -0
  12. package/es/types/Enum/Comment.js.map +1 -1
  13. package/es/types/Enum/ConnectorType.d.ts +2 -1
  14. package/es/types/Enum/ConnectorType.d.ts.map +1 -1
  15. package/es/types/Enum/ConnectorType.js +2 -1
  16. package/es/types/Enum/ConnectorType.js.map +1 -1
  17. package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -1
  18. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
  19. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  20. package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts +1 -0
  21. package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts.map +1 -1
  22. package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.js +7 -0
  23. package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
  24. package/es/types/Interface/api/user/QuerySocieties.d.ts +0 -4
  25. package/es/types/Interface/api/user/QuerySocieties.d.ts.map +1 -1
  26. package/es/types/Interface/api/user/QuerySocieties.js +1 -20
  27. package/es/types/Interface/api/user/QuerySocieties.js.map +1 -1
  28. package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -2
  29. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  30. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  31. package/es/types/Interface/models/IUser.d.ts +2 -0
  32. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  33. package/es/types/Interface/models/IUser.js.map +1 -1
  34. package/es/types/index.d.ts +4 -1
  35. package/es/types/index.d.ts.map +1 -1
  36. package/es/types/index.js +4 -1
  37. package/es/types/index.js.map +1 -1
  38. package/js/api/resources/User.js +0 -15
  39. package/js/api/resources/User.js.map +1 -1
  40. package/js/types/Enum/BalanceSheet.js +7 -0
  41. package/js/types/Enum/BalanceSheet.js.map +1 -1
  42. package/js/types/Enum/Comment.js +1 -0
  43. package/js/types/Enum/Comment.js.map +1 -1
  44. package/js/types/Enum/ConnectorType.js +2 -1
  45. package/js/types/Enum/ConnectorType.js.map +1 -1
  46. package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  47. package/js/types/Interface/api/user/ParamsGetAllUserWithRoles.js +1 -0
  48. package/js/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
  49. package/js/types/Interface/api/user/QuerySocieties.js +1 -14
  50. package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
  51. package/js/types/Interface/models/IPaymentExpectation.js.map +1 -1
  52. package/js/types/Interface/models/IUser.js.map +1 -1
  53. package/js/types/index.js +67 -38
  54. package/js/types/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/ts/api/resources/User.ts +1 -15
  57. package/ts/types/Enum/BalanceSheet.ts +8 -0
  58. package/ts/types/Enum/Comment.ts +1 -0
  59. package/ts/types/Enum/ConnectorType.ts +2 -1
  60. package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -1
  61. package/ts/types/Interface/api/user/ParamsGetAllUserWithRoles.ts +6 -0
  62. package/ts/types/Interface/api/user/QuerySocieties.ts +1 -17
  63. package/ts/types/Interface/models/IPaymentExpectation.ts +0 -2
  64. package/ts/types/Interface/models/IUser.ts +2 -0
  65. package/ts/types/index.ts +4 -1
  66. package/es/types/Interface/models/IErrorCode.d.ts +0 -8
  67. package/es/types/Interface/models/IErrorCode.d.ts.map +0 -1
  68. package/es/types/Interface/models/IErrorCode.js +0 -2
  69. package/es/types/Interface/models/IErrorCode.js.map +0 -1
  70. package/js/types/Interface/models/IErrorCode.js +0 -6
  71. package/js/types/Interface/models/IErrorCode.js.map +0 -1
  72. package/ts/types/Interface/models/IErrorCode.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.107",
3
+ "version": "1.1.108",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety,
3
+ IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety,
4
4
  } from '../../types';
5
5
 
6
6
  export class User extends Resource {
@@ -56,25 +56,11 @@ export class User extends Resource {
56
56
  calendarSelectableTeammates(): Promise<IUser[]> {
57
57
  return this.axios.$get('user/calendar-selectable-teammates');
58
58
  }
59
- /**
60
- * @deprecated not securised ! please use getAllSocieties()
61
- */
62
- societies(params: QuerySocieties): Promise<ISociety[]> {
63
- return this.axios.$get('user/societies', { params });
64
- }
65
59
 
66
60
  getAllSocieties(id: number, params: QueryUserSociety): Promise<ISociety[]> {
67
61
  return this.axios.$get(`/users/${id}/societies`, { params });
68
62
  }
69
63
 
70
- /**
71
- * @deprecated not securised ! please use society.getOwner()
72
- */
73
- ownerSociety(idSociety: number): Promise<IUser> {
74
- // TODO: Revoir l'endpoint non conventionnel
75
- return this.axios.$get(`user/${idSociety}/owner`);
76
- }
77
-
78
64
  update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {
79
65
  return this.axios.$put(`user/${id}`, params);
80
66
  }
@@ -26,6 +26,7 @@ export enum BalanceSheetState {
26
26
  SENDED_TO_SIE_DEFAULT = 21,
27
27
  REFUSED_BY_SIE_DEFAULT = 22,
28
28
  FIX_IN_PROGRESS = 23,
29
+ ACCEPTED_BY_SIE_IN_STATE = 24,
29
30
  }
30
31
 
31
32
  export const BalanceSheetDetails = [
@@ -195,6 +196,13 @@ export const BalanceSheetDetails = [
195
196
  textColor: 'blue--text',
196
197
  forRoles: [['front_office'], ['front_office_express'], ['expert']],
197
198
  },
199
+ {
200
+ text: 'Accepté SIE en l\'état',
201
+ value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
202
+ color: 'green darken-3',
203
+ colorText: 'green--text',
204
+ forRoles: [['front_office'], ['front_office_express'], ['expert']],
205
+ },
198
206
  ] as const;
199
207
 
200
208
  export type BalanceSheetType = 'active' | 'passive';
@@ -16,4 +16,5 @@ export enum CommentType {
16
16
  LETTER = 15,
17
17
  REPORTS = 16,
18
18
  ADDITIONAL_SERVICES = 19,
19
+ CUSTOMER_SUCCESS = 20,
19
20
  }
@@ -10,5 +10,6 @@ export enum ConnectorType {
10
10
  SHOPIFY = 9,
11
11
  WOOCOMMERCE = 10,
12
12
  ACTIVATION = 11,
13
- STRIPE_BANK = 12,
13
+ BRED = 12,
14
+ STRIPE_BANK = 13,
14
15
  }
@@ -5,6 +5,7 @@ export interface CountLateToDoDone {
5
5
  toDo: string[],
6
6
  done: string[],
7
7
  doneByDefault?: string[],
8
+ doneInState?: string[],
8
9
  }
9
10
 
10
11
  export interface Count {
@@ -88,7 +89,6 @@ export interface StatisticBalanceSheetDetail {
88
89
  toRevised: string[],
89
90
  toSupervised: string[],
90
91
  acceptedSIE: string[],
91
- acceptedSIEByDefault: string[],
92
92
  ARCAttested: string[],
93
93
  ARCNoAttested: string[],
94
94
  establishedRefused: string[],
@@ -34,4 +34,10 @@ export class ParamsGetAllUserWithRoles {
34
34
  each: true,
35
35
  })
36
36
  attributes?: string[];
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsBoolean()
41
+ @ToBoolean()
42
+ withWorkingSchedules?: boolean;
37
43
  }
@@ -1,23 +1,7 @@
1
1
  import { IsNumber, IsOptional } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { SubscriptionType } from '../../../Enum/SubscriptionType';
4
4
 
5
- export class QuerySocieties {
6
- @ApiProperty({
7
- description: 'id of the specified user',
8
- required: true,
9
- type: Number,
10
- example: 100,
11
- })
12
- id: number;
13
-
14
- @ApiPropertyOptional({
15
- description: 'the id of the scubscription type',
16
- type: Number,
17
- example: 100,
18
- })
19
- idTypeSubscription: number;
20
- }
21
5
 
22
6
  export class QueryUserSociety {
23
7
  @ApiPropertyOptional()
@@ -1,5 +1,4 @@
1
1
  import { ISociety } from './ISociety';
2
- import { IErrorCode } from './IErrorCode';
3
2
  import { IRegulation } from './IRegulation';
4
3
 
5
4
  // paymentsExpectations
@@ -20,6 +19,5 @@ export interface IPaymentExpectation {
20
19
 
21
20
  // Associations
22
21
  society: ISociety;
23
- codeErreur: IErrorCode;
24
22
  regulation: IRegulation;
25
23
  }
@@ -18,6 +18,7 @@ import { IRoleUser } from './IRoleUser';
18
18
  import { ITimeRecorder } from './ITimeRecorder';
19
19
  import { EntityType } from '../../Enum/EntityType';
20
20
  import { IMailAddress } from './IMailAddress';
21
+ import { IAccountingStatementHistory } from './IAccountingStatementHistory';
21
22
 
22
23
  type isAny<T> = T | any;
23
24
 
@@ -110,4 +111,5 @@ export interface IUser {
110
111
  mobile?: IMobile;
111
112
  timeRecorders?: ITimeRecorder[];
112
113
  mailAddresses?: IMailAddress[];
114
+ accountingStatementHistory?: IAccountingStatementHistory[];
113
115
  }
package/ts/types/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  // Interfaces
2
+ export * from './Interface/models/ICallHistory';
3
+ export * from './Interface/models/IBusinessLineUser';
2
4
  export * from './Interface/models/IVisualizedInformation';
3
5
  export * from './Interface/models/IApiError';
4
6
  export * from './Interface/models/ISms';
@@ -44,7 +46,6 @@ export * from './Interface/models/IChangeLog';
44
46
  export * from './Interface/models/IChecklist';
45
47
  export * from './Interface/models/IChecklistDetail';
46
48
  export * from './Interface/models/ICivility';
47
- export * from './Interface/models/IErrorCode';
48
49
  export * from './Interface/models/IColor';
49
50
  export * from './Interface/models/IComment';
50
51
  export * from './Interface/models/IBillingHistory';
@@ -317,6 +318,7 @@ export * from './Form/FormAuthenticate';
317
318
  export * from './Form/FormConnector';
318
319
 
319
320
  // Enums
321
+ export * from './Enum/Supervision';
320
322
  export * from './Enum/ChangeLog';
321
323
  export * from './Enum/VisualizedInformation';
322
324
  export * from './Enum/NafCode';
@@ -668,6 +670,7 @@ export * from './Interface/api/vatRegimeHistory/QueryVatRegimeHistory';
668
670
  export * from './Interface/api/textMessage/Create';
669
671
  export * from './Interface/api/textMessage/Update';
670
672
  export * from './Interface/api/textMessage/Query';
673
+ export * from './Interface/api/textMessage/Read';
671
674
  export * from './Interface/api/companeo/CompaneoReturn';
672
675
  export * from './Interface/api/inpi/inpi';
673
676
  export * from './Interface/api/team/QueryCreate';
@@ -1,8 +0,0 @@
1
- export interface IErrorCode {
2
- id?: number;
3
- name: string;
4
- number: string;
5
- createdAt?: Date | null;
6
- updatedAt?: Date | null;
7
- }
8
- //# sourceMappingURL=IErrorCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IErrorCode.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IErrorCode.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IErrorCode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IErrorCode.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IErrorCode.ts"],"names":[],"mappings":"","sourcesContent":["// codeErreur\nexport interface IErrorCode {\n id?: number;\n name: string;\n number: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=IErrorCode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IErrorCode.js","names":[],"sources":["../../../../ts/types/Interface/models/IErrorCode.ts"],"sourcesContent":["// codeErreur\nexport interface IErrorCode {\n id?: number;\n name: string;\n number: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"],"mappings":""}
@@ -1,8 +0,0 @@
1
- // codeErreur
2
- export interface IErrorCode {
3
- id?: number;
4
- name: string;
5
- number: string;
6
- createdAt?: Date | null;
7
- updatedAt?: Date | null;
8
- }