@silexpert/core 1.1.126 → 1.1.127
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.
- package/es/api/resources/Society.d.ts +2 -1
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/types/Enum/StatutsSection.js +1 -1
- package/es/types/Enum/StatutsSection.js.map +1 -1
- package/es/types/Interface/api/society/QueryArchived.d.ts +8 -0
- package/es/types/Interface/api/society/QueryArchived.d.ts.map +1 -0
- package/es/types/Interface/api/society/QueryArchived.js +44 -0
- package/es/types/Interface/api/society/QueryArchived.js.map +1 -0
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Society.js +5 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/types/Enum/StatutsSection.js +1 -1
- package/js/types/Enum/StatutsSection.js.map +1 -1
- package/js/types/Interface/api/society/QueryArchived.js +30 -0
- package/js/types/Interface/api/society/QueryArchived.js.map +1 -0
- package/js/types/index.js +10 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/types/Enum/StatutsSection.ts +1 -1
- package/ts/types/Interface/api/society/QueryArchived.ts +29 -0
- package/ts/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.127",
|
|
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",
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
ReadInvalidFieldState,
|
|
22
22
|
BasePaginate,
|
|
23
23
|
UpdateUserSociety,
|
|
24
|
+
QueryArchivedSociety,
|
|
24
25
|
} from '../../types';
|
|
25
26
|
import { CancelToken } from 'axios';
|
|
26
27
|
|
|
@@ -106,4 +107,8 @@ export class Society extends Resource {
|
|
|
106
107
|
updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {
|
|
107
108
|
return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);
|
|
108
109
|
}
|
|
110
|
+
|
|
111
|
+
getArchived(query: QueryArchivedSociety): Promise<ISociety[]> {
|
|
112
|
+
return this.axios.$get('/society/archived', { params: query });
|
|
113
|
+
}
|
|
109
114
|
}
|
|
@@ -390,7 +390,7 @@ export const StatutsSection:StatutsSectionType[] = [
|
|
|
390
390
|
{
|
|
391
391
|
name: StatutsSectionName.S26_SA,
|
|
392
392
|
exceptForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
|
|
393
|
-
title: 'Article 26 -
|
|
393
|
+
title: 'Article 26 - COMPTES ANNUELS',
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
name: StatutsSectionName.S27_SA,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryArchivedSociety {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsString()
|
|
8
|
+
search?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsNumber()
|
|
13
|
+
idCommercial?: number;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
idArchiver?: number;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional({ default: 25 })
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsNumber()
|
|
23
|
+
limit?: number;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional({ default: 1 })
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsNumber()
|
|
28
|
+
page?: number;
|
|
29
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -949,6 +949,7 @@ export * from './Interface/api/businessSector/Delete';
|
|
|
949
949
|
export * from './Interface/api/accountsSectors/Query';
|
|
950
950
|
export * from './Interface/api/visualizedInformation/Query';
|
|
951
951
|
export * from './Interface/api/visualizedInformation/Update';
|
|
952
|
+
export * from './Interface/api/society/QueryArchived';
|
|
952
953
|
// Enums types
|
|
953
954
|
export * from './Interface/enum/Util';
|
|
954
955
|
export * from './Interface/enum/Date';
|