@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.
- package/es/api/resources/User.d.ts +1 -9
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +0 -13
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +8 -1
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +8 -0
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/Comment.d.ts +2 -1
- package/es/types/Enum/Comment.d.ts.map +1 -1
- package/es/types/Enum/Comment.js +1 -0
- package/es/types/Enum/Comment.js.map +1 -1
- package/es/types/Enum/ConnectorType.d.ts +2 -1
- package/es/types/Enum/ConnectorType.d.ts.map +1 -1
- package/es/types/Enum/ConnectorType.js +2 -1
- package/es/types/Enum/ConnectorType.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts +1 -0
- package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.js +7 -0
- package/es/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.d.ts +0 -4
- package/es/types/Interface/api/user/QuerySocieties.d.ts.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.js +1 -20
- package/es/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.d.ts +0 -2
- package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +2 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +4 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +4 -1
- package/es/types/index.js.map +1 -1
- package/js/api/resources/User.js +0 -15
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +7 -0
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/Comment.js +1 -0
- package/js/types/Enum/Comment.js.map +1 -1
- package/js/types/Enum/ConnectorType.js +2 -1
- package/js/types/Enum/ConnectorType.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/js/types/Interface/api/user/ParamsGetAllUserWithRoles.js +1 -0
- package/js/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
- package/js/types/Interface/api/user/QuerySocieties.js +1 -14
- package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/js/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/js/types/Interface/models/IUser.js.map +1 -1
- package/js/types/index.js +67 -38
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +1 -15
- package/ts/types/Enum/BalanceSheet.ts +8 -0
- package/ts/types/Enum/Comment.ts +1 -0
- package/ts/types/Enum/ConnectorType.ts +2 -1
- package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -1
- package/ts/types/Interface/api/user/ParamsGetAllUserWithRoles.ts +6 -0
- package/ts/types/Interface/api/user/QuerySocieties.ts +1 -17
- package/ts/types/Interface/models/IPaymentExpectation.ts +0 -2
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/index.ts +4 -1
- package/es/types/Interface/models/IErrorCode.d.ts +0 -8
- package/es/types/Interface/models/IErrorCode.d.ts.map +0 -1
- package/es/types/Interface/models/IErrorCode.js +0 -2
- package/es/types/Interface/models/IErrorCode.js.map +0 -1
- package/js/types/Interface/models/IErrorCode.js +0 -6
- package/js/types/Interface/models/IErrorCode.js.map +0 -1
- 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.
|
|
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",
|
package/ts/api/resources/User.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety,
|
|
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';
|
package/ts/types/Enum/Comment.ts
CHANGED
|
@@ -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[],
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
import { IsNumber, IsOptional } from 'class-validator';
|
|
2
|
-
import {
|
|
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 +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 +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 +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":""}
|