@silexpert/core 1.1.53 → 1.1.54

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 (90) hide show
  1. package/es/api/resources/Fusion.d.ts +5 -0
  2. package/es/api/resources/Fusion.d.ts.map +1 -0
  3. package/es/api/resources/Fusion.js +18 -0
  4. package/es/api/resources/Fusion.js.map +1 -0
  5. package/es/api/resources/VisualizedInformation.d.ts +8 -0
  6. package/es/api/resources/VisualizedInformation.d.ts.map +1 -0
  7. package/es/api/resources/VisualizedInformation.js +13 -0
  8. package/es/api/resources/VisualizedInformation.js.map +1 -0
  9. package/es/api/resources.d.ts +4 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +4 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/FiscalRegime.d.ts +5 -0
  14. package/es/types/Enum/FiscalRegime.d.ts.map +1 -1
  15. package/es/types/Enum/FiscalRegime.js +17 -0
  16. package/es/types/Enum/FiscalRegime.js.map +1 -1
  17. package/es/types/Enum/ProfitsType.d.ts +5 -0
  18. package/es/types/Enum/ProfitsType.d.ts.map +1 -1
  19. package/es/types/Enum/ProfitsType.js +12 -0
  20. package/es/types/Enum/ProfitsType.js.map +1 -1
  21. package/es/types/Enum/TaxSystem.d.ts +5 -2
  22. package/es/types/Enum/TaxSystem.d.ts.map +1 -1
  23. package/es/types/Enum/TaxSystem.js +3 -0
  24. package/es/types/Enum/TaxSystem.js.map +1 -1
  25. package/es/types/Enum/VisualizedInformation.d.ts +5 -0
  26. package/es/types/Enum/VisualizedInformation.d.ts.map +1 -0
  27. package/es/types/Enum/VisualizedInformation.js +6 -0
  28. package/es/types/Enum/VisualizedInformation.js.map +1 -0
  29. package/es/types/Interface/api/fusion/FusionSocieties.d.ts +5 -0
  30. package/es/types/Interface/api/fusion/FusionSocieties.d.ts.map +1 -0
  31. package/es/types/Interface/api/fusion/FusionSocieties.js +24 -0
  32. package/es/types/Interface/api/fusion/FusionSocieties.js.map +1 -0
  33. package/es/types/Interface/api/visualizedInformation/Query.d.ts +6 -0
  34. package/es/types/Interface/api/visualizedInformation/Query.d.ts.map +1 -0
  35. package/es/types/Interface/api/visualizedInformation/Query.js +26 -0
  36. package/es/types/Interface/api/visualizedInformation/Query.js.map +1 -0
  37. package/es/types/Interface/api/visualizedInformation/Update.d.ts +6 -0
  38. package/es/types/Interface/api/visualizedInformation/Update.d.ts.map +1 -0
  39. package/es/types/Interface/api/visualizedInformation/Update.js +25 -0
  40. package/es/types/Interface/api/visualizedInformation/Update.js.map +1 -0
  41. package/es/types/Interface/models/ISociety.d.ts +1 -0
  42. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  43. package/es/types/Interface/models/ISociety.js.map +1 -1
  44. package/es/types/Interface/models/IVisualizedInformation.d.ts +12 -0
  45. package/es/types/Interface/models/IVisualizedInformation.d.ts.map +1 -0
  46. package/es/types/Interface/models/IVisualizedInformation.js +2 -0
  47. package/es/types/Interface/models/IVisualizedInformation.js.map +1 -0
  48. package/es/types/index.d.ts +5 -0
  49. package/es/types/index.d.ts.map +1 -1
  50. package/es/types/index.js +5 -0
  51. package/es/types/index.js.map +1 -1
  52. package/js/api/resources/Fusion.js +46 -0
  53. package/js/api/resources/Fusion.js.map +1 -0
  54. package/js/api/resources/VisualizedInformation.js +22 -0
  55. package/js/api/resources/VisualizedInformation.js.map +1 -0
  56. package/js/api/resources.js +5 -1
  57. package/js/api/resources.js.map +1 -1
  58. package/js/types/Enum/FiscalRegime.js +13 -0
  59. package/js/types/Enum/FiscalRegime.js.map +1 -1
  60. package/js/types/Enum/ProfitsType.js +9 -0
  61. package/js/types/Enum/ProfitsType.js.map +1 -1
  62. package/js/types/Enum/TaxSystem.js +6 -3
  63. package/js/types/Enum/TaxSystem.js.map +1 -1
  64. package/js/types/Enum/VisualizedInformation.js +11 -0
  65. package/js/types/Enum/VisualizedInformation.js.map +1 -0
  66. package/js/types/Interface/api/fusion/FusionSocieties.js +23 -0
  67. package/js/types/Interface/api/fusion/FusionSocieties.js.map +1 -0
  68. package/js/types/Interface/api/visualizedInformation/Query.js +24 -0
  69. package/js/types/Interface/api/visualizedInformation/Query.js.map +1 -0
  70. package/js/types/Interface/api/visualizedInformation/Update.js +24 -0
  71. package/js/types/Interface/api/visualizedInformation/Update.js.map +1 -0
  72. package/js/types/Interface/models/ISociety.js.map +1 -1
  73. package/js/types/Interface/models/IVisualizedInformation.js +6 -0
  74. package/js/types/Interface/models/IVisualizedInformation.js.map +1 -0
  75. package/js/types/index.js +53 -3
  76. package/js/types/index.js.map +1 -1
  77. package/package.json +1 -1
  78. package/ts/api/resources/Fusion.ts +7 -0
  79. package/ts/api/resources/VisualizedInformation.ts +16 -0
  80. package/ts/api/resources.ts +4 -0
  81. package/ts/types/Enum/FiscalRegime.ts +19 -1
  82. package/ts/types/Enum/ProfitsType.ts +14 -1
  83. package/ts/types/Enum/TaxSystem.ts +5 -4
  84. package/ts/types/Enum/VisualizedInformation.ts +4 -0
  85. package/ts/types/Interface/api/fusion/FusionSocieties.ts +12 -0
  86. package/ts/types/Interface/api/visualizedInformation/Query.ts +14 -0
  87. package/ts/types/Interface/api/visualizedInformation/Update.ts +13 -0
  88. package/ts/types/Interface/models/ISociety.ts +1 -0
  89. package/ts/types/Interface/models/IVisualizedInformation.ts +14 -0
  90. package/ts/types/index.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
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",
@@ -0,0 +1,7 @@
1
+ import { Resource } from '../Resource';
2
+
3
+ export class Fusion extends Resource {
4
+ async fusion(idSocietySource: number, idSocietyTarget: number) {
5
+ return this.axios.$post('/fusion', { idSocietySource, idSocietyTarget });
6
+ }
7
+ }
@@ -0,0 +1,16 @@
1
+ import { IVisualizedInformation, QuerySocietyVisualizedInformation, UpdateOrCreateVisualizedInformation } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class VisualizedInformation extends Resource {
5
+ get(idSociety: number, params: QuerySocietyVisualizedInformation): Promise<IVisualizedInformation> {
6
+ return this.axios.$get(`societies/${idSociety}/visualized-informations`, { params });
7
+ }
8
+
9
+ getAll(idSociety: number): Promise<IVisualizedInformation[]> {
10
+ return this.axios.$get(`societies/${idSociety}/all-visualized-informations`);
11
+ }
12
+
13
+ updateOrCreate(idSociety: number, payload: UpdateOrCreateVisualizedInformation): Promise<IVisualizedInformation> {
14
+ return this.axios.$post(`societies/${idSociety}/visualized-informations`, payload);
15
+ }
16
+ }
@@ -128,6 +128,8 @@ import { CashAndExpense } from './resources/CashAndExpense';
128
128
  import { Archive } from './resources/Archive';
129
129
  import { AccountsSector } from './resources/AccountsSectors';
130
130
  import { BusinessSector } from './resources/BusinessSector';
131
+ import { VisualizedInformation } from './resources/VisualizedInformation';
132
+ import { Fusion } from './resources/Fusion';
131
133
 
132
134
  export const resources = {
133
135
  simulation: Simulation,
@@ -260,4 +262,6 @@ export const resources = {
260
262
  archive: Archive,
261
263
  accountsSector: AccountsSector,
262
264
  businessSector: BusinessSector,
265
+ visualizedInformation: VisualizedInformation,
266
+ fusion: Fusion,
263
267
  };
@@ -2,4 +2,22 @@ export enum FiscalRegime {
2
2
  RS = 1,
3
3
  RN = 2,
4
4
  NA = 3,
5
- }
5
+ }
6
+
7
+ export const FiscalRegimeList: { label: string; id: number; designation: string }[] = [
8
+ {
9
+ id: FiscalRegime.RS,
10
+ label: 'RS',
11
+ designation: 'RS - Régime simplifié',
12
+ },
13
+ {
14
+ id: FiscalRegime.RN,
15
+ label: 'RN',
16
+ designation: 'RN - Régime normal',
17
+ },
18
+ {
19
+ id: FiscalRegime.NA,
20
+ label: 'N/A',
21
+ designation: 'N/A - Aucun',
22
+ },
23
+ ];
@@ -1,4 +1,17 @@
1
1
  export enum ProfitsType {
2
2
  BIC = 1,
3
3
  BNC = 2,
4
- }
4
+ }
5
+
6
+ export const ProfitsTypeList: { label: string; id: number; designation: string }[] = [
7
+ {
8
+ id: ProfitsType.BIC,
9
+ label: 'BIC',
10
+ designation: 'BIC - Bénéfices industriels et commerciaux',
11
+ },
12
+ {
13
+ id: ProfitsType.BNC,
14
+ label: 'BNC',
15
+ designation: 'BNC - Bénéfices non commerciaux',
16
+ },
17
+ ];
@@ -1,22 +1,23 @@
1
- import { List } from '../Interface/enum/Util';
2
-
3
1
  export enum TaxSystem {
4
2
  IS = 1,
5
3
  IR = 2,
6
4
  NA = 3,
7
5
  }
8
6
 
9
- export const TaxSystemList: List = [
7
+ export const TaxSystemList: { label: string; id: number; designation: string }[] = [
10
8
  {
11
9
  id: TaxSystem.IS,
12
10
  label: 'IS',
11
+ designation: 'IS - Impôt sur les sociétés',
13
12
  },
14
13
  {
15
14
  id: TaxSystem.IR,
16
15
  label: 'IR',
16
+ designation: 'IR - Impôt sur le Revenu',
17
17
  },
18
18
  {
19
19
  id: TaxSystem.NA,
20
20
  label: 'N/A',
21
+ designation: 'N/A - Aucun',
21
22
  },
22
- ];
23
+ ];
@@ -0,0 +1,4 @@
1
+ export enum VisualizedInformationState {
2
+ CANCELED = 0,
3
+ APPROVED = 1,
4
+ }
@@ -0,0 +1,12 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class FusionSocieties {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idSocietySource: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ idSocietyTarget: number;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { VisualizedInformationState } from '../../../Enum/VisualizedInformation';
4
+
5
+ export class QuerySocietyVisualizedInformation {
6
+ @ApiProperty()
7
+ @IsString()
8
+ key: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsNumber()
12
+ @IsOptional()
13
+ state: VisualizedInformationState;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { IsNumber, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { VisualizedInformationState } from '../../../Enum/VisualizedInformation';
4
+
5
+ export class UpdateOrCreateVisualizedInformation {
6
+ @ApiProperty()
7
+ @IsString()
8
+ key: string;
9
+
10
+ @ApiProperty()
11
+ @IsNumber()
12
+ state: VisualizedInformationState;
13
+ }
@@ -209,6 +209,7 @@ export interface ISociety {
209
209
  sms?: ISms[];
210
210
  users?: IUser[];
211
211
  userPermission?: IUserSocietyPermission;
212
+ usersPermissions?: IUserSocietyPermission[];
212
213
  regulates?: IRegulate[];
213
214
  brandType?: IBrandType;
214
215
  partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];
@@ -0,0 +1,14 @@
1
+ import { VisualizedInformationState } from '../../Enum/VisualizedInformation';
2
+ import { ISociety } from './ISociety';
3
+
4
+ export interface IVisualizedInformation {
5
+ id?: number;
6
+ key: string;
7
+ state: VisualizedInformationState;
8
+ idSociety: number;
9
+ createdAt?: Date | null;
10
+ updatedAt?: Date | null;
11
+
12
+ // Associations
13
+ society?: ISociety;
14
+ }
package/ts/types/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // Interfaces
2
+ export * from './Interface/models/IVisualizedInformation';
2
3
  export * from './Interface/models/IApiError';
3
4
  export * from './Interface/models/ISms';
4
5
  export * from './Interface/models/IAccessToken';
@@ -315,6 +316,7 @@ export * from './Form/FormAuthenticate';
315
316
  export * from './Form/FormConnector';
316
317
 
317
318
  // Enums
319
+ export * from './Enum/VisualizedInformation';
318
320
  export * from './Enum/NafCode';
319
321
  export * from './Enum/Acceptance';
320
322
  export * from './Enum/FolderFile';
@@ -917,10 +919,14 @@ export * from './Interface/api/commercialImport/Query';
917
919
  export * from './Interface/api/commercialImport/Create';
918
920
  export * from './Interface/api/cashAndExpense/Create';
919
921
  export * from './Interface/api/accountsSectors/Create';
922
+ export * from './Interface/api/fusion/FusionSocieties';
923
+
920
924
  export * from './Interface/api/businessSector/Create';
921
925
  export * from './Interface/api/businessSector/Query';
922
926
  export * from './Interface/api/businessSector/Delete';
923
927
  export * from './Interface/api/accountsSectors/Query';
928
+ export * from './Interface/api/visualizedInformation/Query';
929
+ export * from './Interface/api/visualizedInformation/Update';
924
930
  // Enums types
925
931
  export * from './Interface/enum/Util';
926
932
  export * from './Interface/enum/Date';