@silexpert/core 1.2.18 → 1.2.21
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/Equipment.d.ts +4 -0
- package/dist/cjs/api/resources/Equipment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Equipment.js +8 -0
- package/dist/cjs/api/resources/Equipment.js.map +1 -1
- package/dist/cjs/api/resources/HumanResourceLibrary.d.ts +13 -0
- package/dist/cjs/api/resources/HumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/api/resources/HumanResourceLibrary.js +38 -0
- package/dist/cjs/api/resources/HumanResourceLibrary.js.map +1 -0
- package/dist/cjs/api/resources/Library.d.ts +1 -2
- package/dist/cjs/api/resources/Library.d.ts.map +1 -1
- package/dist/cjs/api/resources/Library.js.map +1 -1
- package/dist/cjs/api/resources/Registration.d.ts +3 -1
- package/dist/cjs/api/resources/Registration.d.ts.map +1 -1
- package/dist/cjs/api/resources/Registration.js +6 -0
- package/dist/cjs/api/resources/Registration.js.map +1 -1
- package/dist/cjs/api/resources/SalesContract.d.ts +4 -0
- package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
- package/dist/cjs/api/resources/SalesContract.js +18 -0
- package/dist/cjs/api/resources/SalesContract.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +28 -27
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/CustomerSignature.d.ts +6 -0
- package/dist/cjs/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CustomerSignature.js +8 -1
- package/dist/cjs/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/cjs/types/Enum/DocumentForHumanResourceType.d.ts +15 -0
- package/dist/cjs/types/Enum/DocumentForHumanResourceType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/DocumentForHumanResourceType.js +25 -0
- package/dist/cjs/types/Enum/DocumentForHumanResourceType.js.map +1 -0
- package/dist/cjs/types/Enum/Pdf2PicLocalType.d.ts +17 -0
- package/dist/cjs/types/Enum/Pdf2PicLocalType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Pdf2PicLocalType.js +3 -0
- package/dist/cjs/types/Enum/Pdf2PicLocalType.js.map +1 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/StatusSignature.d.ts +2 -1
- package/dist/cjs/types/Enum/StatusSignature.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatusSignature.js +1 -0
- package/dist/cjs/types/Enum/StatusSignature.js.map +1 -1
- package/dist/cjs/types/Enum/TerminationList.d.ts +4 -2
- package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TerminationList.js +10 -0
- package/dist/cjs/types/Enum/TerminationList.js.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/AsponeApi.d.ts +137 -0
- package/dist/cjs/types/Interface/api/aspone/AsponeApi.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/aspone/AsponeApi.js +19 -0
- package/dist/cjs/types/Interface/api/aspone/AsponeApi.js.map +1 -0
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +8 -8
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js +0 -13
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts +12 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js +66 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.d.ts +5 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.js +28 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.d.ts +4 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.js +23 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.d.ts +13 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.js +71 -0
- package/dist/cjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +3 -3
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js +9 -11
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +7 -0
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/yousign/index.d.ts +211 -0
- package/dist/cjs/types/Interface/api/yousign/index.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/yousign/index.js +35 -0
- package/dist/cjs/types/Interface/api/yousign/index.js.map +1 -0
- package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts +5 -5
- package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerSignature.js.map +1 -1
- package/dist/cjs/types/Interface/models/IHumanResourceLibrary.d.ts +22 -0
- package/dist/cjs/types/Interface/models/IHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IHumanResourceLibrary.js +3 -0
- package/dist/cjs/types/Interface/models/IHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/Interface/models/IUserHumanResourceLibrary.d.ts +13 -0
- package/dist/cjs/types/Interface/models/IUserHumanResourceLibrary.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserHumanResourceLibrary.js +3 -0
- package/dist/cjs/types/Interface/models/IUserHumanResourceLibrary.js.map +1 -0
- package/dist/cjs/types/index.d.ts +10 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +10 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.js +1 -1
- package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/mjs/api/resources/Equipment.d.ts +4 -0
- package/dist/mjs/api/resources/Equipment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Equipment.js +13 -0
- package/dist/mjs/api/resources/Equipment.js.map +1 -1
- package/dist/mjs/api/resources/HumanResourceLibrary.d.ts +13 -0
- package/dist/mjs/api/resources/HumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/api/resources/HumanResourceLibrary.js +34 -0
- package/dist/mjs/api/resources/HumanResourceLibrary.js.map +1 -0
- package/dist/mjs/api/resources/Library.d.ts +1 -2
- package/dist/mjs/api/resources/Library.d.ts.map +1 -1
- package/dist/mjs/api/resources/Library.js.map +1 -1
- package/dist/mjs/api/resources/Registration.d.ts +3 -1
- package/dist/mjs/api/resources/Registration.d.ts.map +1 -1
- package/dist/mjs/api/resources/Registration.js +6 -0
- package/dist/mjs/api/resources/Registration.js.map +1 -1
- package/dist/mjs/api/resources/SalesContract.d.ts +4 -0
- package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
- package/dist/mjs/api/resources/SalesContract.js +18 -0
- package/dist/mjs/api/resources/SalesContract.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +28 -27
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/CustomerSignature.d.ts +6 -0
- package/dist/mjs/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CustomerSignature.js +7 -0
- package/dist/mjs/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/mjs/types/Enum/DocumentForHumanResourceType.d.ts +15 -0
- package/dist/mjs/types/Enum/DocumentForHumanResourceType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/DocumentForHumanResourceType.js +22 -0
- package/dist/mjs/types/Enum/DocumentForHumanResourceType.js.map +1 -0
- package/dist/mjs/types/Enum/Pdf2PicLocalType.d.ts +17 -0
- package/dist/mjs/types/Enum/Pdf2PicLocalType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Pdf2PicLocalType.js +2 -0
- package/dist/mjs/types/Enum/Pdf2PicLocalType.js.map +1 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/StatusSignature.d.ts +2 -1
- package/dist/mjs/types/Enum/StatusSignature.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatusSignature.js +1 -0
- package/dist/mjs/types/Enum/StatusSignature.js.map +1 -1
- package/dist/mjs/types/Enum/TerminationList.d.ts +4 -2
- package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TerminationList.js +10 -0
- package/dist/mjs/types/Enum/TerminationList.js.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/AsponeApi.d.ts +137 -0
- package/dist/mjs/types/Interface/api/aspone/AsponeApi.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/aspone/AsponeApi.js +17 -0
- package/dist/mjs/types/Interface/api/aspone/AsponeApi.js.map +1 -0
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +8 -8
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js +1 -31
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts +12 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js +70 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.d.ts +5 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.js +26 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.d.ts +4 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.js +20 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.d.ts +13 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.js +75 -0
- package/dist/mjs/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +3 -3
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js +8 -10
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +7 -0
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/yousign/index.d.ts +211 -0
- package/dist/mjs/types/Interface/api/yousign/index.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/yousign/index.js +32 -0
- package/dist/mjs/types/Interface/api/yousign/index.js.map +1 -0
- package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts +5 -5
- package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerSignature.js.map +1 -1
- package/dist/mjs/types/Interface/models/IHumanResourceLibrary.d.ts +22 -0
- package/dist/mjs/types/Interface/models/IHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IHumanResourceLibrary.js +2 -0
- package/dist/mjs/types/Interface/models/IHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/Interface/models/IUserHumanResourceLibrary.d.ts +13 -0
- package/dist/mjs/types/Interface/models/IUserHumanResourceLibrary.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserHumanResourceLibrary.js +2 -0
- package/dist/mjs/types/Interface/models/IUserHumanResourceLibrary.js.map +1 -0
- package/dist/mjs/types/index.d.ts +10 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +10 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.js +1 -1
- package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
- package/package.json +1 -2
- package/ts/api/resources/Equipment.ts +14 -0
- package/ts/api/resources/HumanResourceLibrary.ts +43 -0
- package/ts/api/resources/Library.ts +1 -2
- package/ts/api/resources/Registration.ts +10 -0
- package/ts/api/resources/SalesContract.ts +19 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BrandClementine.ts +28 -27
- package/ts/types/Enum/CustomerSignature.ts +7 -0
- package/ts/types/Enum/DocumentForHumanResourceType.ts +21 -0
- package/ts/types/Enum/Pdf2PicLocalType.ts +16 -0
- package/ts/types/Enum/ReasonTerminationType.ts +6 -0
- package/ts/types/Enum/StatusSignature.ts +1 -0
- package/ts/types/Enum/TerminationList.ts +10 -0
- package/ts/types/Interface/api/aspone/AsponeApi.ts +141 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +8 -8
- package/ts/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.ts +44 -0
- package/ts/types/Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary.ts +13 -0
- package/ts/types/Interface/api/humanResourceLibrary/QueryHumanResourceLibrary.ts +11 -0
- package/ts/types/Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceLibrary.ts +54 -0
- package/ts/types/Interface/api/registration/CreateRegistration.ts +6 -8
- package/ts/types/Interface/api/registration/ReadRegistration.ts +9 -1
- package/ts/types/Interface/api/yousign/index.ts +230 -0
- package/ts/types/Interface/models/ICustomerSignature.ts +5 -5
- package/ts/types/Interface/models/IHumanResourceLibrary.ts +25 -0
- package/ts/types/Interface/models/IUserHumanResourceLibrary.ts +16 -0
- package/ts/types/index.ts +11 -2
- package/ts/utils/vat/3310/century24.ts +1 -1
- package/dist/cjs/types/Interface/api/aspone/Util.d.ts +0 -111
- package/dist/cjs/types/Interface/api/aspone/Util.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/aspone/Util.js +0 -28
- package/dist/cjs/types/Interface/api/aspone/Util.js.map +0 -1
- package/dist/mjs/types/Interface/api/aspone/Util.d.ts +0 -111
- package/dist/mjs/types/Interface/api/aspone/Util.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/aspone/Util.js +0 -61
- package/dist/mjs/types/Interface/api/aspone/Util.js.map +0 -1
- package/ts/types/Interface/api/aspone/Util.ts +0 -112
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
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": "dist/cjs/index.js",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"ejs": "^3.1.9",
|
|
77
77
|
"libphonenumber-js": "^1.11.12",
|
|
78
78
|
"mailparser": "^3.4.0",
|
|
79
|
-
"pdf2pic": "^3.1.3",
|
|
80
79
|
"rxjs": "^7.0.1",
|
|
81
80
|
"sms-segments-calculator": "^1.2.0",
|
|
82
81
|
"stripe": "^14.13.0",
|
|
@@ -50,6 +50,9 @@ export class Equipment extends Resource {
|
|
|
50
50
|
return this.axios.$post('users-equipments/users-rooms/sign', params, { ...(signal ? { signal } : {}) });
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated use downloadSignatureYousignV2 instead
|
|
55
|
+
*/
|
|
53
56
|
public downloadSignatureYousign(idFile: string, signal?: AbortSignal): Promise<void> {
|
|
54
57
|
return this.axios.$get('users-equipments/users-rooms/yousign', {
|
|
55
58
|
params: { idFile },
|
|
@@ -60,4 +63,15 @@ export class Equipment extends Resource {
|
|
|
60
63
|
...(signal ? { signal } : {}),
|
|
61
64
|
});
|
|
62
65
|
}
|
|
66
|
+
|
|
67
|
+
public downloadSignatureYousignV2(idDemand: string, idFile: string, signal?: AbortSignal): Promise<void> {
|
|
68
|
+
return this.axios.$get('users-equipments/users-rooms/yousign/v2', {
|
|
69
|
+
params: { idDemand, idFile },
|
|
70
|
+
responseType: 'arraybuffer',
|
|
71
|
+
headers: {
|
|
72
|
+
Accept: 'application/pdf',
|
|
73
|
+
},
|
|
74
|
+
...(signal ? { signal } : {}),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
63
77
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { BasePaginate, CreateHumanResourceLibrary, CreateUserHumanResourceLibrary, IHumanResourceLibrary, IUserHumanResourceLibrary, QueryHumanResourceLibrary, QueryPaginatedHumanResourceLibrary } from '../../types';
|
|
3
|
+
|
|
4
|
+
export class HumanResourceLibrary extends Resource {
|
|
5
|
+
|
|
6
|
+
create(payload: CreateHumanResourceLibrary): Promise<IHumanResourceLibrary> {
|
|
7
|
+
return this.axios.$post('/library-rh', payload, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
download(params: QueryHumanResourceLibrary): Promise<Blob> {
|
|
11
|
+
return this.axios.$get('library-rh/buffer', {
|
|
12
|
+
params,
|
|
13
|
+
responseType: 'arraybuffer',
|
|
14
|
+
headers: {
|
|
15
|
+
Accept: 'application/pdf',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public getAllHistory(id: number): Promise<IUserHumanResourceLibrary[]> {
|
|
21
|
+
return this.axios.$get(`/library-rh/history/${id}`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public validate(payload: CreateUserHumanResourceLibrary): Promise<IUserHumanResourceLibrary> {
|
|
25
|
+
return this.axios.$post('/library-rh/user/validate', payload);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public update(id: number, params: Partial<IHumanResourceLibrary>): Promise<boolean> {
|
|
29
|
+
return this.axios.$put(`/library-rh/${id}`, { ...params });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public getPaginate(params: QueryPaginatedHumanResourceLibrary): Promise<BasePaginate<IHumanResourceLibrary>> {
|
|
33
|
+
return this.axios.$get('/library-rh/paginate', { params });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public get(id: number): Promise<IHumanResourceLibrary> {
|
|
37
|
+
return this.axios.$get(`/library-rh/${id}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public delete(id: number): Promise<boolean> {
|
|
41
|
+
return this.axios.$delete(`/library-rh/${id}`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
3
|
QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile, QueryLastFileOfType, QueryLibrarySociety, BasePaginate, ReadSocietyLibrary,
|
|
4
|
-
ConvertFilePdfToImage,
|
|
4
|
+
ConvertFilePdfToImage, ConvertResponse,
|
|
5
5
|
} from '../../types';
|
|
6
|
-
import { ConvertResponse } from 'pdf2pic/dist/types/convertResponse';
|
|
7
6
|
|
|
8
7
|
export class Library extends Resource {
|
|
9
8
|
create(formData: FormData): Promise<IGedFile> {
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
QueryPaginatedRegistrationWithType,
|
|
14
14
|
BasePaginate,
|
|
15
15
|
UpdateRegistration,
|
|
16
|
+
ReadRegistrationExternalFile,
|
|
17
|
+
DownloadExternalFile,
|
|
16
18
|
} from '../../types';
|
|
17
19
|
|
|
18
20
|
export class Registration extends Resource {
|
|
@@ -87,4 +89,12 @@ export class Registration extends Resource {
|
|
|
87
89
|
duplicate(idRegistration: number): Promise<ReadRegistration> {
|
|
88
90
|
return this.axios.$post(`/registrations/${idRegistration}/duplicate`);
|
|
89
91
|
}
|
|
92
|
+
|
|
93
|
+
getAllExternalFiles(idRegistration: number): Promise<ReadRegistrationExternalFile[]> {
|
|
94
|
+
return this.axios.$get(`/registrations/${idRegistration}/files`);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
downloadExternalFile(idRegistration: number, payload: DownloadExternalFile): Promise<Buffer> {
|
|
98
|
+
return this.axios.$post(`/registrations/${idRegistration}/files`, payload);
|
|
99
|
+
}
|
|
90
100
|
}
|
|
@@ -36,6 +36,9 @@ export class SalesContract extends Resource {
|
|
|
36
36
|
return this.axios.$post('sales-contracts', { idPrestation });
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use sendByEmailWithSignature2 instead
|
|
41
|
+
*/
|
|
39
42
|
sendByEmailWithSignature(params: SendSalesContractParams): Promise<true> {
|
|
40
43
|
const formData = new FormData();
|
|
41
44
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -52,6 +55,22 @@ export class SalesContract extends Resource {
|
|
|
52
55
|
return this.axios.$post('sales-contracts/send', formData);
|
|
53
56
|
}
|
|
54
57
|
|
|
58
|
+
sendByEmailWithSignature2(params: SendSalesContractParams): Promise<true> {
|
|
59
|
+
const formData = new FormData();
|
|
60
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
61
|
+
if (value || value === false || value === 0) {
|
|
62
|
+
if (key === 'files') {
|
|
63
|
+
value.forEach((file: File) => {
|
|
64
|
+
formData.append('files', file);
|
|
65
|
+
});
|
|
66
|
+
} else
|
|
67
|
+
formData.append(key, `${value}`);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
return this.axios.$post('sales-contracts/send/v2', formData);
|
|
72
|
+
}
|
|
73
|
+
|
|
55
74
|
sendMandateByEmail(params: SendMandateParams): Promise<true> {
|
|
56
75
|
const formData = new FormData();
|
|
57
76
|
Object.entries(params).forEach(([key, value]) => {
|
package/ts/api/resources.ts
CHANGED
|
@@ -169,6 +169,7 @@ import { JuridicalMission } from './resources/JuridicalMission';
|
|
|
169
169
|
import { PrestationComplementary } from './resources/PrestationComplementary';
|
|
170
170
|
import { PrevisionalForm } from './resources/PrevisionalForm';
|
|
171
171
|
import { Refund } from './resources/Refund';
|
|
172
|
+
import { HumanResourceLibrary } from './resources/HumanResourceLibrary';
|
|
172
173
|
|
|
173
174
|
export const resources = {
|
|
174
175
|
simulation: Simulation,
|
|
@@ -342,4 +343,5 @@ export const resources = {
|
|
|
342
343
|
prestationComplementary: PrestationComplementary,
|
|
343
344
|
previsionalForm: PrevisionalForm,
|
|
344
345
|
refund: Refund,
|
|
346
|
+
humanResourceLibrary: HumanResourceLibrary,
|
|
345
347
|
};
|
|
@@ -51,8 +51,8 @@ export const BrandClementine: Brand[] = [
|
|
|
51
51
|
},
|
|
52
52
|
companyInformation: {
|
|
53
53
|
ape: '6920Z',
|
|
54
|
-
bp: '
|
|
55
|
-
city: '
|
|
54
|
+
bp: 'CS 31029',
|
|
55
|
+
city: 'LAXOU CEDEX',
|
|
56
56
|
montantCapital: '500 000',
|
|
57
57
|
nomRaisonSociale: 'EXPERTISE CHOIX B',
|
|
58
58
|
ECName: 'M. Jean-Louis BOICHÉ',
|
|
@@ -60,10 +60,10 @@ export const BrandClementine: Brand[] = [
|
|
|
60
60
|
ECDepartment: 'Lorraine',
|
|
61
61
|
ECPosition: 'Président',
|
|
62
62
|
phone: '03 83 93 14 14',
|
|
63
|
-
postalAddress: '9
|
|
63
|
+
postalAddress: '9 AVENUE DU RHIN',
|
|
64
64
|
rcs: '752 566 687',
|
|
65
65
|
statut: 'SAS',
|
|
66
|
-
zipCode: '54
|
|
66
|
+
zipCode: '54 521',
|
|
67
67
|
},
|
|
68
68
|
idPrestationsListHidden: [197], // TODO:
|
|
69
69
|
logoUrl: 'logo-dark.svg',
|
|
@@ -79,13 +79,14 @@ export const BrandClementine: Brand[] = [
|
|
|
79
79
|
BIC: 'AGRIFRPP861',
|
|
80
80
|
Name: 'Expertise Choix B',
|
|
81
81
|
Id: 'FR91ZZZ617135',
|
|
82
|
+
ribIdFile: 12527021,
|
|
82
83
|
},
|
|
83
84
|
internalInvoicing: {
|
|
84
85
|
statut: 'SAS',
|
|
85
86
|
name: 'EXPERTISE CHOIX B',
|
|
86
|
-
address: '9
|
|
87
|
-
zipCode: '
|
|
88
|
-
city: 'LAXOU',
|
|
87
|
+
address: '9 AVENUE DU RHIN',
|
|
88
|
+
zipCode: '54521',
|
|
89
|
+
city: 'LAXOU CEDEX',
|
|
89
90
|
country: 'FRANCE',
|
|
90
91
|
montantCapital: '500 000',
|
|
91
92
|
siret: '752566687',
|
|
@@ -142,18 +143,18 @@ export const BrandClementine: Brand[] = [
|
|
|
142
143
|
},
|
|
143
144
|
companyInformation: {
|
|
144
145
|
ape: '6920Z',
|
|
145
|
-
bp: '
|
|
146
|
-
city: '
|
|
146
|
+
bp: 'CS 31029',
|
|
147
|
+
city: 'LAXOU CEDEX',
|
|
147
148
|
montantCapital: '500 000',
|
|
148
149
|
nomRaisonSociale: 'EXPERTISE CHOIX B',
|
|
149
150
|
ECName: 'M. Jean-Louis BOICHÉ',
|
|
150
151
|
ECOrderCity: 'Nancy',
|
|
151
152
|
ECPosition: 'Président',
|
|
152
153
|
phone: '03 83 93 14 14',
|
|
153
|
-
postalAddress: '9
|
|
154
|
+
postalAddress: '9 AVENUE DU RHIN',
|
|
154
155
|
rcs: '752 566 687',
|
|
155
156
|
statut: 'SAS',
|
|
156
|
-
zipCode: '54
|
|
157
|
+
zipCode: '54 521',
|
|
157
158
|
},
|
|
158
159
|
idPrestationsListHidden: [197],
|
|
159
160
|
logoUrl: 'logo-legalstart.svg',
|
|
@@ -174,9 +175,9 @@ export const BrandClementine: Brand[] = [
|
|
|
174
175
|
internalInvoicing: {
|
|
175
176
|
statut: 'SAS',
|
|
176
177
|
name: 'EXPERTISE CHOIX B',
|
|
177
|
-
address: '9
|
|
178
|
-
zipCode: '
|
|
179
|
-
city: 'LAXOU',
|
|
178
|
+
address: '9 AVENUE DU RHIN',
|
|
179
|
+
zipCode: '54521',
|
|
180
|
+
city: 'LAXOU CEDEX',
|
|
180
181
|
country: 'FRANCE',
|
|
181
182
|
montantCapital: '500 000',
|
|
182
183
|
siret: '752566687',
|
|
@@ -208,9 +209,9 @@ export const BrandClementine: Brand[] = [
|
|
|
208
209
|
internalInvoicing: {
|
|
209
210
|
statut: 'SAS',
|
|
210
211
|
name: 'EXPERTISE CHOIX B',
|
|
211
|
-
address: '9
|
|
212
|
-
zipCode: '
|
|
213
|
-
city: 'LAXOU',
|
|
212
|
+
address: '9 AVENUE DU RHIN',
|
|
213
|
+
zipCode: '54521',
|
|
214
|
+
city: 'LAXOU CEDEX',
|
|
214
215
|
country: 'FRANCE',
|
|
215
216
|
montantCapital: '500 000',
|
|
216
217
|
siret: '752566687',
|
|
@@ -242,9 +243,9 @@ export const BrandClementine: Brand[] = [
|
|
|
242
243
|
internalInvoicing: {
|
|
243
244
|
statut: 'SAS',
|
|
244
245
|
name: 'EXPERTISE CHOIX B',
|
|
245
|
-
address: '9
|
|
246
|
-
zipCode: '
|
|
247
|
-
city: 'LAXOU',
|
|
246
|
+
address: '9 AVENUE DU RHIN',
|
|
247
|
+
zipCode: '54521',
|
|
248
|
+
city: 'LAXOU CEDEX',
|
|
248
249
|
country: 'FRANCE',
|
|
249
250
|
montantCapital: '500 000',
|
|
250
251
|
siret: '752566687',
|
|
@@ -292,8 +293,8 @@ export const BrandClementine: Brand[] = [
|
|
|
292
293
|
},
|
|
293
294
|
companyInformation: {
|
|
294
295
|
ape: '6920Z',
|
|
295
|
-
bp: '
|
|
296
|
-
city: '
|
|
296
|
+
bp: 'CS 31029',
|
|
297
|
+
city: 'LAXOU CEDEX',
|
|
297
298
|
montantCapital: '500 000',
|
|
298
299
|
nomRaisonSociale: 'EXPERTISE CHOIX B',
|
|
299
300
|
ECName: 'M. Jean-Louis BOICHÉ',
|
|
@@ -301,10 +302,10 @@ export const BrandClementine: Brand[] = [
|
|
|
301
302
|
ECDepartment: 'Lorraine',
|
|
302
303
|
ECPosition: 'Président',
|
|
303
304
|
phone: '03 83 93 14 14',
|
|
304
|
-
postalAddress: '9
|
|
305
|
+
postalAddress: '9 AVENUE DU RHIN',
|
|
305
306
|
rcs: '752 566 687',
|
|
306
307
|
statut: 'SAS',
|
|
307
|
-
zipCode: '54
|
|
308
|
+
zipCode: '54 521',
|
|
308
309
|
},
|
|
309
310
|
bank: {
|
|
310
311
|
IBAN: 'FR7616106840138646838239863',
|
|
@@ -320,9 +321,9 @@ export const BrandClementine: Brand[] = [
|
|
|
320
321
|
internalInvoicing: {
|
|
321
322
|
statut: 'SAS',
|
|
322
323
|
name: 'EXPERTISE CHOIX B',
|
|
323
|
-
address: '9
|
|
324
|
-
zipCode: '
|
|
325
|
-
city: 'LAXOU',
|
|
324
|
+
address: '9 AVENUE DU RHIN',
|
|
325
|
+
zipCode: '54521',
|
|
326
|
+
city: 'LAXOU CEDEX',
|
|
326
327
|
country: 'FRANCE',
|
|
327
328
|
montantCapital: '500 000',
|
|
328
329
|
siret: '752566687',
|
|
@@ -12,6 +12,13 @@ export enum SignatureStatus {
|
|
|
12
12
|
APPLICATION_FEE_CREATED = 6,
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum SignatureType {
|
|
16
|
+
SALES_CONTRACT = 'sales_contract',
|
|
17
|
+
BALANCE_SHEET = 'balance_sheet',
|
|
18
|
+
EQUIPMENT = 'equipment',
|
|
19
|
+
MANDAT = 'mandat', // N'est plus utilisé
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
|
|
16
23
|
export const SignatureStatusDetail = {
|
|
17
24
|
SIGNED_PENDING: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export enum DocumentForHumanResourceType {
|
|
2
|
+
NOTE_SERVICE = 1,
|
|
3
|
+
SUPPORT_FORMATION = 2,
|
|
4
|
+
PLAN_PARKING = 3,
|
|
5
|
+
LIVRET_ACCUEIL = 4,
|
|
6
|
+
FICHE_COOPTATION = 5,
|
|
7
|
+
FICHE_POSTE = 6,
|
|
8
|
+
REGLEMENT_INTERIEUR = 7,
|
|
9
|
+
AUTRES = 8,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const DocumentForHumanResourcesList = [
|
|
13
|
+
{ value: DocumentForHumanResourceType.NOTE_SERVICE, text: 'Note de service' },
|
|
14
|
+
{ value: DocumentForHumanResourceType.SUPPORT_FORMATION, text: 'Suport de formation' },
|
|
15
|
+
{ value: DocumentForHumanResourceType.PLAN_PARKING, text: 'Plan du parking' },
|
|
16
|
+
{ value: DocumentForHumanResourceType.LIVRET_ACCUEIL, text: 'Livret d\'accueil' },
|
|
17
|
+
{ value: DocumentForHumanResourceType.FICHE_COOPTATION, text: 'Fiche cooptation' },
|
|
18
|
+
{ value: DocumentForHumanResourceType.FICHE_POSTE, text: 'Fiche de poste' },
|
|
19
|
+
{ value: DocumentForHumanResourceType.REGLEMENT_INTERIEUR, text: 'Réglement intérieur' },
|
|
20
|
+
{ value: DocumentForHumanResourceType.AUTRES, text: 'Autres' },
|
|
21
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface BaseResponse {
|
|
2
|
+
size?: string;
|
|
3
|
+
page?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface WriteImageResponse extends BaseResponse {
|
|
6
|
+
name?: string;
|
|
7
|
+
fileSize?: number;
|
|
8
|
+
path?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ToBase64Response extends BaseResponse {
|
|
11
|
+
base64?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BufferResponse extends BaseResponse {
|
|
14
|
+
buffer?: Buffer;
|
|
15
|
+
}
|
|
16
|
+
export type ConvertResponse = WriteImageResponse | ToBase64Response | BufferResponse;
|
|
@@ -23,6 +23,7 @@ export enum ReasonTerminationType {
|
|
|
23
23
|
LACK_OF_COMMUNICATION = 22,
|
|
24
24
|
NO_NEED_FOR_A_CERTIFIED_ACCOUNTANT = 23,
|
|
25
25
|
ERROR_ON_PRESTATION = 24,
|
|
26
|
+
LAB_REFUSED = 25,
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export const ReasonTerminationTypeDetail = [
|
|
@@ -146,4 +147,9 @@ export const ReasonTerminationTypeDetail = [
|
|
|
146
147
|
label: 'Erreur sur prestation',
|
|
147
148
|
active: true,
|
|
148
149
|
},
|
|
150
|
+
{
|
|
151
|
+
id:ReasonTerminationType.LAB_REFUSED,
|
|
152
|
+
label: 'LAB refusée',
|
|
153
|
+
active: true,
|
|
154
|
+
},
|
|
149
155
|
];
|
|
@@ -3,6 +3,7 @@ export enum TerminationListType {
|
|
|
3
3
|
OUT_OF_TIME = 2,
|
|
4
4
|
RETRACTION = 3,
|
|
5
5
|
SATISFIED_REFUNDED = 4,
|
|
6
|
+
LAB_REFUSED = 5,
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export const TerminationListTypeDetail = [
|
|
@@ -22,6 +23,10 @@ export const TerminationListTypeDetail = [
|
|
|
22
23
|
id: TerminationListType.SATISFIED_REFUNDED,
|
|
23
24
|
label: 'Satisfait / Remboursé',
|
|
24
25
|
},
|
|
26
|
+
{
|
|
27
|
+
id: TerminationListType.LAB_REFUSED,
|
|
28
|
+
label: 'LAB refusée',
|
|
29
|
+
},
|
|
25
30
|
];
|
|
26
31
|
|
|
27
32
|
export enum TerminationListState {
|
|
@@ -49,6 +54,7 @@ export enum ConclusionTermination {
|
|
|
49
54
|
CHANGE_EC_ONLINE = 1,
|
|
50
55
|
CHANGE_EC_CLASSIC = 2,
|
|
51
56
|
PERSONAL_MANAGEMENT = 3,
|
|
57
|
+
LAB_REFUSED = 4,
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
export const ConclusionTerminationDetail = [
|
|
@@ -64,4 +70,8 @@ export const ConclusionTerminationDetail = [
|
|
|
64
70
|
id: ConclusionTermination.PERSONAL_MANAGEMENT,
|
|
65
71
|
label: 'Gestion personnelle',
|
|
66
72
|
},
|
|
73
|
+
{
|
|
74
|
+
id: ConclusionTermination.LAB_REFUSED,
|
|
75
|
+
label: 'LAB refusée',
|
|
76
|
+
},
|
|
67
77
|
];
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Rof } from '../../../Enum/Aspone';
|
|
2
|
+
|
|
3
|
+
export type AsponeApiAuthenticationTokenAccessResponse = {
|
|
4
|
+
token: string;
|
|
5
|
+
refreshToken: string;
|
|
6
|
+
tokenExpirationDate: string;
|
|
7
|
+
refreshTokenExpirationDate: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export enum AsponeApiTeleprocedureType {
|
|
11
|
+
TVA = 'TVA',
|
|
12
|
+
TDFC = 'TDFC',
|
|
13
|
+
PAIEMENT = 'PAIEMENT',
|
|
14
|
+
IR = 'IR',
|
|
15
|
+
REQUETE = 'REQUETE',
|
|
16
|
+
PART = 'PART',
|
|
17
|
+
DADSU = 'DADSU',
|
|
18
|
+
DPAE = 'DPAE',
|
|
19
|
+
DSN = 'DSN',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class AccessKeys {
|
|
23
|
+
login: string;
|
|
24
|
+
password: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type AsponeApiTeleprocedureGetDepositResponse = {
|
|
28
|
+
depositId: string;
|
|
29
|
+
depositDate: string;
|
|
30
|
+
subject: string | null,
|
|
31
|
+
type: string;
|
|
32
|
+
method: string;
|
|
33
|
+
tradOnly: boolean;
|
|
34
|
+
adsDate: string;
|
|
35
|
+
adsNumber: string;
|
|
36
|
+
depositor: {
|
|
37
|
+
clientAccountId: string;
|
|
38
|
+
portal: string;
|
|
39
|
+
login: string;
|
|
40
|
+
label: string;
|
|
41
|
+
type: string;
|
|
42
|
+
role: string;
|
|
43
|
+
test: boolean;
|
|
44
|
+
},
|
|
45
|
+
interchangeIds: string[]
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type AsponeApiStateDetail = {
|
|
49
|
+
date: string;
|
|
50
|
+
label: string | null;
|
|
51
|
+
type: 'SUCCESS' | 'ERROR';
|
|
52
|
+
detail: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type AsponeApiState = {
|
|
56
|
+
date: string;
|
|
57
|
+
name: string;
|
|
58
|
+
label: string;
|
|
59
|
+
issuer: string;
|
|
60
|
+
type: 'SUCCESS' | 'ERROR',
|
|
61
|
+
final: boolean,
|
|
62
|
+
details: AsponeApiStateDetail[]
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type AsponeApiTeleprocedureGetInterchangeResponse = {
|
|
66
|
+
interchangeId: string,
|
|
67
|
+
teleprocedure: AsponeApiTeleprocedureType,
|
|
68
|
+
test: boolean,
|
|
69
|
+
version: null | string,
|
|
70
|
+
software: null | string | { name: string; version: string; editor: string; },
|
|
71
|
+
deposit: Omit<AsponeApiTeleprocedureGetDepositResponse, 'interchangeIds'>,
|
|
72
|
+
states: AsponeApiState[]
|
|
73
|
+
declarationIds?: string[]
|
|
74
|
+
referenceClient?: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type IndebtedIdentification = {
|
|
78
|
+
identifiant: string;
|
|
79
|
+
designation: string;
|
|
80
|
+
adresseVoie: string;
|
|
81
|
+
adresseNumero: string;
|
|
82
|
+
adresseCodePostal: string;
|
|
83
|
+
adresseVille: string;
|
|
84
|
+
adresseCodePays: string;
|
|
85
|
+
rof: Rof;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type AsponeDeclarant = {
|
|
89
|
+
index: number;
|
|
90
|
+
name: string;
|
|
91
|
+
referenceSender: string;
|
|
92
|
+
rog: Rof;
|
|
93
|
+
siren: string;
|
|
94
|
+
taxCategory: string;
|
|
95
|
+
taxStatus: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
type AsponeForm = {
|
|
99
|
+
name: string;
|
|
100
|
+
version: string;
|
|
101
|
+
number: number;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type AsponeApiTeleprocedureDeclarationResponse = {
|
|
105
|
+
deadline: string | null;
|
|
106
|
+
declarants: AsponeDeclarant[];
|
|
107
|
+
declarationId: string;
|
|
108
|
+
dueDate: string | null;
|
|
109
|
+
forms: AsponeForm[];
|
|
110
|
+
periodEndDate: string;
|
|
111
|
+
periodStartDate: string;
|
|
112
|
+
recipient: {
|
|
113
|
+
name: string;
|
|
114
|
+
recipientId: string;
|
|
115
|
+
referenceInterchange: string;
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
interchange: Partial<AsponeApiTeleprocedureGetInterchangeResponse>
|
|
119
|
+
referenceClient: string;
|
|
120
|
+
referenceCommon: string | null;
|
|
121
|
+
referencePortal: string | null;
|
|
122
|
+
states: AsponeApiState[];
|
|
123
|
+
type: { code: string; label: string; }
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type AsponeApiTeleprocedureDeclarationFile = {
|
|
127
|
+
fileId: string;
|
|
128
|
+
creationDate: string;
|
|
129
|
+
filename: string;
|
|
130
|
+
checksum: {
|
|
131
|
+
algo: string;
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
134
|
+
format: 'XML' | 'EDI',
|
|
135
|
+
size: string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export type AsponeApiTeleprocedureDeclarationFilesResponse = {
|
|
139
|
+
total: number;
|
|
140
|
+
files: Array<AsponeApiTeleprocedureDeclarationFile>;
|
|
141
|
+
};
|
|
@@ -20,7 +20,7 @@ export type InterchangeState = Array<Interchange>;
|
|
|
20
20
|
|
|
21
21
|
export type InterchangeHistory = Interchange & { stateDetailsHistory: InterchangeState };
|
|
22
22
|
|
|
23
|
-
export
|
|
23
|
+
export type ReadDeclaration = {
|
|
24
24
|
idDeclaration: string;
|
|
25
25
|
type: string;
|
|
26
26
|
declarationType: {
|
|
@@ -30,17 +30,17 @@ export class ReadDeclaration {
|
|
|
30
30
|
payment: PaymentState;
|
|
31
31
|
dld: any;
|
|
32
32
|
states: InterchangeHistory[];
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
|
|
35
|
-
export
|
|
35
|
+
export type ReadInterchange = {
|
|
36
36
|
idDeposit: string;
|
|
37
37
|
date: string;
|
|
38
38
|
idInterchange: string;
|
|
39
39
|
history: InterchangeHistory[];
|
|
40
40
|
declarations: ReadDeclaration[];
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
|
|
43
|
-
export
|
|
43
|
+
export type RedactorAddress = {
|
|
44
44
|
adresseNumero: string;
|
|
45
45
|
adresseType: string | null;
|
|
46
46
|
adresseVoie: string;
|
|
@@ -48,15 +48,15 @@ export class RedactorAddress {
|
|
|
48
48
|
adresseCodePostal: string;
|
|
49
49
|
adresseVille: string;
|
|
50
50
|
adresseCodePays: string;
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
52
|
|
|
53
|
-
export
|
|
53
|
+
export type Redactor = {
|
|
54
54
|
siret: string;
|
|
55
55
|
designation: string;
|
|
56
56
|
designationSuite1: string;
|
|
57
57
|
adresse: RedactorAddress;
|
|
58
58
|
referenceDossier: string;
|
|
59
|
-
}
|
|
59
|
+
};
|
|
60
60
|
|
|
61
61
|
type Tag = 'ContactDesignation' | 'AdresseDivisionTerritoriale' | 'AdresseCodeDivisionTerritoriale' | 'Email' | 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'TexteLibre3' | 'TexteLibre4' | 'TexteLibre5' | 'DesignationSuite3' | 'AdresseNumero' | 'Iban' | 'Bic' | 'TitulaireDesignation' | 'TitulaireDesignationSuite';
|
|
62
62
|
type Tags = Array<{ description?: string; tag: Tag; value: any }>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
import { DocumentForHumanResourceType } from '../../../Enum/DocumentForHumanResourceType';
|
|
5
|
+
|
|
6
|
+
export class CreateHumanResourceLibrary {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
idFile?: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsInt()
|
|
14
|
+
idUserRh: number;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsInt()
|
|
18
|
+
idDocumentType: DocumentForHumanResourceType;
|
|
19
|
+
|
|
20
|
+
@ApiProperty()
|
|
21
|
+
@IsString()
|
|
22
|
+
name: string;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
idRole?: number;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsInt()
|
|
31
|
+
idUser?: number;
|
|
32
|
+
|
|
33
|
+
@ApiPropertyOptional()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
@IsBoolean()
|
|
36
|
+
@ToBoolean()
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
@IsBoolean()
|
|
42
|
+
@ToBoolean()
|
|
43
|
+
shouldStoreForAllRoles?: boolean;
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsInt } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateUserHumanResourceLibrary {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idHumanResourceLibrary?: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsInt()
|
|
11
|
+
idUser: number;
|
|
12
|
+
|
|
13
|
+
}
|