@silexpert/core 1.3.205-1 → 1.3.205-2
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/dist/cjs/api/resources/Transaction.d.ts +1 -0
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +3 -0
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +8 -1
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +58 -0
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources/WorkingSchedule.d.ts +2 -1
- package/dist/cjs/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/dist/cjs/api/resources/WorkingSchedule.js +3 -0
- package/dist/cjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.d.ts +15 -0
- package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/EquipmentType.js +15 -0
- package/dist/cjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +11 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +84 -68
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +14 -1
- package/dist/cjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js +11 -0
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/cjs/utils/societyApproval.js +22 -19
- package/dist/cjs/utils/societyApproval.js.map +1 -1
- package/dist/cjs/utils/transforms/number.transform.d.ts +3 -0
- package/dist/cjs/utils/transforms/number.transform.d.ts.map +1 -0
- package/dist/cjs/utils/transforms/number.transform.js +36 -0
- package/dist/cjs/utils/transforms/number.transform.js.map +1 -0
- package/dist/mjs/api/resources/Transaction.d.ts +1 -0
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +3 -0
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +8 -1
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +58 -0
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.d.ts +2 -1
- package/dist/mjs/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/dist/mjs/api/resources/WorkingSchedule.js +3 -0
- package/dist/mjs/api/resources/WorkingSchedule.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.d.ts +15 -0
- package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/EquipmentType.js +15 -0
- package/dist/mjs/types/Enum/EquipmentType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +11 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +83 -67
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/SocietyApproval.js +6 -6
- package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +13 -0
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +16 -2
- package/dist/mjs/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js +11 -0
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
- package/dist/mjs/utils/societyApproval.js +6 -3
- package/dist/mjs/utils/societyApproval.js.map +1 -1
- package/dist/mjs/utils/transforms/number.transform.d.ts +3 -0
- package/dist/mjs/utils/transforms/number.transform.d.ts.map +1 -0
- package/dist/mjs/utils/transforms/number.transform.js +33 -0
- package/dist/mjs/utils/transforms/number.transform.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Transaction.ts +3 -0
- package/ts/api/resources/User.ts +65 -0
- package/ts/api/resources/WorkingSchedule.ts +5 -0
- package/ts/types/Enum/BalanceSheet.ts +2 -2
- package/ts/types/Enum/EquipmentType.ts +15 -0
- package/ts/types/Enum/PrestationType.ts +84 -67
- package/ts/types/Enum/SocietyApproval.ts +6 -6
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +18 -2
- package/ts/types/Interface/api/user/CreateCoworker.ts +11 -0
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/utils/societyApproval.ts +10 -3
- package/ts/utils/transforms/number.transform.ts +38 -0
package/ts/api/resources/User.ts
CHANGED
|
@@ -23,6 +23,9 @@ import {
|
|
|
23
23
|
BasePaginate,
|
|
24
24
|
QueryGetAllUsersPaginated,
|
|
25
25
|
QueryUpdatePassword,
|
|
26
|
+
CreateCollaboraterDetail,
|
|
27
|
+
IWorkingSchedule,
|
|
28
|
+
ICollaboraterDetail,
|
|
26
29
|
} from '../../types';
|
|
27
30
|
|
|
28
31
|
export class User extends Resource {
|
|
@@ -38,6 +41,28 @@ export class User extends Resource {
|
|
|
38
41
|
coworker(data: CreateCoworker): Promise<IUser> {
|
|
39
42
|
return this.axios.$post('user/coworker', data);
|
|
40
43
|
}
|
|
44
|
+
|
|
45
|
+
createCompletCoworker(data: CreateCoworker, file?: File): Promise<IUser> {
|
|
46
|
+
const formData = new FormData();
|
|
47
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
48
|
+
if (value !== undefined && value !== null) {
|
|
49
|
+
if (Array.isArray(value)) {
|
|
50
|
+
value.forEach((v) => {
|
|
51
|
+
formData.append(`${key}[]`, `${v}`);
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
formData.append(key, `${value}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (file){
|
|
59
|
+
formData.append('file', file);
|
|
60
|
+
}
|
|
61
|
+
return this.axios.$post('user/coworker/complete', formData, {
|
|
62
|
+
headers: { 'Content-Type': 'multipart/form-data' },
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
41
66
|
updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {
|
|
42
67
|
const formData = new FormData();
|
|
43
68
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -56,6 +81,26 @@ export class User extends Resource {
|
|
|
56
81
|
});
|
|
57
82
|
}
|
|
58
83
|
|
|
84
|
+
updateCompletCoworker(idUser: number, data: UpdateCorworker, file?: File): Promise<IUser> {
|
|
85
|
+
const formData = new FormData();
|
|
86
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
87
|
+
if (value || value === false || value === 0) {
|
|
88
|
+
if (Array.isArray(value)) {
|
|
89
|
+
value.forEach((v: number | string) => {
|
|
90
|
+
formData.append(`${key}[]`, `${v}`);
|
|
91
|
+
});
|
|
92
|
+
} else if (key === 'file') formData.append('file', value);
|
|
93
|
+
else formData.append(key, `${value}`);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
if (file){
|
|
97
|
+
formData.append('file', file);
|
|
98
|
+
}
|
|
99
|
+
return this.axios.$put(`/user/coworker/complete/${idUser}`, formData, {
|
|
100
|
+
headers: { 'Content-Type': 'multipart/form-data' },
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
59
104
|
sendNewCode(id: number): Promise<IUser> {
|
|
60
105
|
return this.axios.$put(`user/${id}/sendNewSmsCode`);
|
|
61
106
|
}
|
|
@@ -144,4 +189,24 @@ export class User extends Resource {
|
|
|
144
189
|
registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {
|
|
145
190
|
return this.axios.$post('users/prospect', body);
|
|
146
191
|
}
|
|
192
|
+
|
|
193
|
+
updateCoworkerWorkingSchedules(idUser: number, workingSchedules: IWorkingSchedule[]): Promise<IWorkingSchedule[]> {
|
|
194
|
+
return this.axios.$post(`users/coworker/${idUser}/working-schedules`, workingSchedules);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
createCoworkerWorkingSchedules(idUser: number, workingSchedules: Omit<IWorkingSchedule, 'id'>[]): Promise<IWorkingSchedule[]> {
|
|
198
|
+
return this.axios.$post(`users/coworker/${idUser}/working-schedules`, workingSchedules);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
createCollaboraterDetail(params: CreateCollaboraterDetail): Promise<ICollaboraterDetail> {
|
|
202
|
+
return this.axios.$post('collaboraters-details', params);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
getCollaboraterDetail(idUser: number): Promise<ICollaboraterDetail> {
|
|
206
|
+
return this.axios.$get(`collaboraters-details/user/${idUser}`);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
updateCollaboraterDetail(id: number, params: Partial<ICollaboraterDetail>): Promise<ICollaboraterDetail> {
|
|
210
|
+
return this.axios.$put(`collaboraters-details/${id}`, params);
|
|
211
|
+
}
|
|
147
212
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
ReadWorkingSchedule,
|
|
7
7
|
SpecialHours,
|
|
8
8
|
TimeSlots,
|
|
9
|
+
IWorkingSchedule
|
|
9
10
|
} from '../..';
|
|
10
11
|
|
|
11
12
|
export class WorkingSchedule extends Resource {
|
|
@@ -40,6 +41,10 @@ export class WorkingSchedule extends Resource {
|
|
|
40
41
|
return this.axios.$get('workingSchedule/all');
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
deleteAndCreate(idUser: number, workingSchedules: Omit<IWorkingSchedule, 'id'>[]): Promise<WorkingSchedule[]> {
|
|
45
|
+
return this.axios.$post(`workingSchedule/delete-and-create/${idUser}`, workingSchedules);
|
|
46
|
+
}
|
|
47
|
+
|
|
43
48
|
getAvailableTimeSlots(params: QueryAvailableTimeSlot): Promise<TimeSlots[]> {
|
|
44
49
|
return this.axios.$get('workingSchedule/available-time-slots', {
|
|
45
50
|
params,
|
|
@@ -939,10 +939,10 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
939
939
|
{
|
|
940
940
|
name: BalanceSheetPassiveLabel.AVANCES_ET_ACOMPTES_RECUES,
|
|
941
941
|
key: 'advancesAndDepositsReceived',
|
|
942
|
-
accounts: ['4191'],
|
|
942
|
+
accounts: ['4191'], // WARN: Géré manuellement dans les liasses
|
|
943
943
|
isSubcategory: true,
|
|
944
944
|
total: 0,
|
|
945
|
-
// type: 'passive',
|
|
945
|
+
// type: 'passive', // Suppression demandée par Angelo
|
|
946
946
|
accountsDescription: [],
|
|
947
947
|
},
|
|
948
948
|
{
|
|
@@ -20,61 +20,76 @@ export const EquipmentTypeDetail = [
|
|
|
20
20
|
{
|
|
21
21
|
id: EquipmentType.LAPTOP,
|
|
22
22
|
label: 'Ordinateur portable',
|
|
23
|
+
icon: 'i-lucide-laptop'
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
id: EquipmentType.PRINTER,
|
|
26
27
|
label: 'Imprimante',
|
|
28
|
+
icon: 'i-lucide-printer'
|
|
27
29
|
},
|
|
28
30
|
{
|
|
29
31
|
id: EquipmentType.PHONE,
|
|
30
32
|
label: 'Téléphone',
|
|
33
|
+
icon: 'i-lucide-smartphone'
|
|
31
34
|
},
|
|
32
35
|
{
|
|
33
36
|
id: EquipmentType.KEYBOARD,
|
|
34
37
|
label: 'Clavier',
|
|
38
|
+
icon: 'i-lucide-keyboard'
|
|
35
39
|
},
|
|
36
40
|
{
|
|
37
41
|
id: EquipmentType.MOUSE,
|
|
38
42
|
label: 'Souris',
|
|
43
|
+
icon: 'i-lucide-mouse'
|
|
39
44
|
},
|
|
40
45
|
{
|
|
41
46
|
id: EquipmentType.SCREEN,
|
|
42
47
|
label: 'Écran',
|
|
48
|
+
icon: 'i-lucide-monitor'
|
|
43
49
|
},
|
|
44
50
|
{
|
|
45
51
|
id: EquipmentType.HEADPHONE,
|
|
46
52
|
label: 'Casque',
|
|
53
|
+
icon: 'i-lucide-headphones'
|
|
47
54
|
},
|
|
48
55
|
{
|
|
49
56
|
id: EquipmentType.ADAPTER,
|
|
50
57
|
label: 'Adaptateur',
|
|
58
|
+
icon: 'i-lucide-box'
|
|
51
59
|
},
|
|
52
60
|
{
|
|
53
61
|
id: EquipmentType.WIRELESS_HEADPHONE,
|
|
54
62
|
label: 'Casque sans fil',
|
|
63
|
+
icon: 'i-lucide-headphones'
|
|
55
64
|
},
|
|
56
65
|
{
|
|
57
66
|
id: EquipmentType.POCKET,
|
|
58
67
|
label: 'Pochette',
|
|
68
|
+
icon: 'i-lucide-box'
|
|
59
69
|
},
|
|
60
70
|
{
|
|
61
71
|
id: EquipmentType.BADGE,
|
|
62
72
|
label: 'Badge',
|
|
73
|
+
icon: 'i-lucide-badge'
|
|
63
74
|
},
|
|
64
75
|
{
|
|
65
76
|
id: EquipmentType.CALCULATOR,
|
|
66
77
|
label: 'Calculatrice',
|
|
78
|
+
icon: 'i-lucide-calculator'
|
|
67
79
|
},
|
|
68
80
|
{
|
|
69
81
|
id: EquipmentType.USB_HUB,
|
|
70
82
|
label: 'Hub USB',
|
|
83
|
+
icon: 'i-lucide-box'
|
|
71
84
|
},
|
|
72
85
|
{
|
|
73
86
|
id: EquipmentType.NUMPAD,
|
|
74
87
|
label: 'Pavé numérique',
|
|
88
|
+
icon: 'i-lucide-box'
|
|
75
89
|
},
|
|
76
90
|
{
|
|
77
91
|
id: EquipmentType.EXTERN_SUPPORT,
|
|
78
92
|
label: 'Support externe',
|
|
93
|
+
icon: 'i-lucide-box'
|
|
79
94
|
},
|
|
80
95
|
] as const;
|