@silexpert/core 1.3.93-1 → 1.3.93-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/Refund.d.ts +1 -1
- package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/cjs/api/resources/Refund.js.map +1 -1
- package/dist/cjs/api/resources/Team.d.ts +8 -1
- package/dist/cjs/api/resources/Team.d.ts.map +1 -1
- package/dist/cjs/api/resources/Team.js +9 -0
- package/dist/cjs/api/resources/Team.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +22 -29
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js +0 -16
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +4 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.js +24 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +1 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +5 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.js +28 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +1 -0
- package/dist/cjs/types/Interface/api/team/index.d.ts +6 -0
- package/dist/cjs/types/Interface/api/team/index.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/team/index.js +22 -0
- package/dist/cjs/types/Interface/api/team/index.js.map +1 -0
- package/dist/cjs/types/Interface/models/IAttestation.d.ts +22 -24
- package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Refund.d.ts +1 -1
- package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/mjs/api/resources/Refund.js.map +1 -1
- package/dist/mjs/api/resources/Team.d.ts +8 -1
- package/dist/mjs/api/resources/Team.d.ts.map +1 -1
- package/dist/mjs/api/resources/Team.js +9 -0
- package/dist/mjs/api/resources/Team.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +22 -29
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js +0 -16
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +4 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.js +21 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +1 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +5 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.js +26 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +1 -0
- package/dist/mjs/types/Interface/api/team/index.d.ts +6 -0
- package/dist/mjs/types/Interface/api/team/index.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/team/index.js +6 -0
- package/dist/mjs/types/Interface/api/team/index.js.map +1 -0
- package/dist/mjs/types/Interface/models/IAttestation.d.ts +22 -24
- package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +14 -14
- package/ts/api/resources/Refund.ts +1 -1
- package/ts/api/resources/Team.ts +10 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/PrestationType.ts +22 -29
- package/ts/types/Enum/SalesContractBrandClementine.ts +0 -16
- package/ts/types/Interface/api/team/QueryUpdateTeamsForUser.ts +9 -0
- package/ts/types/Interface/api/team/QueryUpdateUserTeam.ts +12 -0
- package/ts/types/Interface/api/team/index.ts +5 -0
- package/ts/types/Interface/models/IAttestation.ts +22 -24
- package/ts/types/index.ts +1 -1
- package/dist/cjs/api/resources/BalanceSheetReport.d.ts +0 -10
- package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +0 -1
- package/dist/cjs/api/resources/BalanceSheetReport.js +0 -23
- package/dist/cjs/api/resources/BalanceSheetReport.js.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +0 -12
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +0 -60
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +0 -1
- package/dist/mjs/api/resources/BalanceSheetReport.d.ts +0 -10
- package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +0 -1
- package/dist/mjs/api/resources/BalanceSheetReport.js +0 -22
- package/dist/mjs/api/resources/BalanceSheetReport.js.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +0 -12
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +0 -55
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +0 -1
- package/ts/api/resources/BalanceSheetReport.ts +0 -35
- package/ts/types/Interface/api/balanceSheetReport/Query.ts +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.93-
|
|
3
|
+
"version": "1.3.93-2",
|
|
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",
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
"author": "Silex",
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/cli": "^7.
|
|
36
|
-
"@babel/core": "^7.
|
|
37
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
38
|
-
"@babel/preset-env": "^7.
|
|
39
|
-
"@babel/runtime": "^7.
|
|
35
|
+
"@babel/cli": "^7.28.0",
|
|
36
|
+
"@babel/core": "^7.28.0",
|
|
37
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
38
|
+
"@babel/preset-env": "^7.28.0",
|
|
39
|
+
"@babel/runtime": "^7.28.2",
|
|
40
40
|
"@types/bluebird": "^3.5.34",
|
|
41
41
|
"@types/browser-or-node": "^1.3.0",
|
|
42
42
|
"@types/ejs": "^3.0.6",
|
|
43
43
|
"@types/node": "^22.10.5",
|
|
44
|
-
"@types/validator": "^13.
|
|
45
|
-
"babel-plugin-replace-import-extension": "^1.1.
|
|
44
|
+
"@types/validator": "^13.15.2",
|
|
45
|
+
"babel-plugin-replace-import-extension": "^1.1.5",
|
|
46
46
|
"babel-preset-env": "^1.7.0",
|
|
47
|
-
"eslint": "^9.
|
|
47
|
+
"eslint": "^9.32.0",
|
|
48
48
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
49
|
-
"eslint-config-prettier": "^
|
|
49
|
+
"eslint-config-prettier": "^10.1.8",
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
|
-
"prettier": "^3.
|
|
51
|
+
"prettier": "^3.6.2",
|
|
52
52
|
"reflect-metadata": "^0.2.2",
|
|
53
53
|
"rimraf": "^6.0.1",
|
|
54
54
|
"standard-version": "^9.3.0",
|
|
55
55
|
"ts-node": "^10.9.2",
|
|
56
|
-
"typescript": "5.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"typescript": "5.9.2",
|
|
57
|
+
"typescript-eslint": "^8.39.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@babel/runtime": "^7.6.3",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"axios": "0.22.0",
|
|
69
69
|
"browser-or-node": "^3.0.0",
|
|
70
70
|
"class-transformer": "^0.5.1",
|
|
71
|
-
"class-validator": "^0.14.
|
|
71
|
+
"class-validator": "^0.14.2",
|
|
72
72
|
"dayjs": "^1.11.11",
|
|
73
73
|
"ejs": "^3.1.9",
|
|
74
74
|
"libphonenumber-js": "^1.12.10",
|
|
@@ -9,7 +9,7 @@ export class Refund extends Resource {
|
|
|
9
9
|
return this.axios.$patch(`/refunds/${id}`, { ...params });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
public getPaginated(query: QueryRefundPaginated, signal?: AbortSignal): Promise<BasePaginate<
|
|
12
|
+
public getPaginated(query: QueryRefundPaginated, signal?: AbortSignal): Promise<BasePaginate<Refund>> {
|
|
13
13
|
return this.axios.$get('/refunds', { params: query, ...(signal ? { signal } : {}) });
|
|
14
14
|
}
|
|
15
15
|
|
package/ts/api/resources/Team.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam } from '../../types';
|
|
2
|
+
import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam, QueryUpdateTeamsForUser, IUserTeam } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class Team extends Resource {
|
|
5
5
|
/**
|
|
@@ -35,4 +35,13 @@ export class Team extends Resource {
|
|
|
35
35
|
getAll(params: QueryGetAllTeamsWithIncludes): Promise<ITeam[]> {
|
|
36
36
|
return this.axios.$get('/teams/all', { params });
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Should update teams for a specific user
|
|
40
|
+
* @param { number } userId
|
|
41
|
+
* @param { QueryUpdateTeamsForUser } payload
|
|
42
|
+
* @returns { IUserTeam[] }
|
|
43
|
+
*/
|
|
44
|
+
updateTeamsForUser(userId: number, payload: QueryUpdateTeamsForUser): Promise<IUserTeam[]> {
|
|
45
|
+
return this.axios.$put(`/teams/user/${userId}/teams`, payload);
|
|
46
|
+
}
|
|
38
47
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -179,7 +179,6 @@ import { StatisticLegal } from './resources/statistic/Legal';
|
|
|
179
179
|
import { AnalyticsUtm } from './resources/AnalyticsUtm';
|
|
180
180
|
import { Caarl } from './resources/Caarl';
|
|
181
181
|
import { Gdpr } from './resources/Gdpr';
|
|
182
|
-
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
183
182
|
|
|
184
183
|
export const resources = {
|
|
185
184
|
budgetInsight: BudgetInsight,
|
|
@@ -363,5 +362,4 @@ export const resources = {
|
|
|
363
362
|
analyticsUtm: AnalyticsUtm,
|
|
364
363
|
caarl: Caarl,
|
|
365
364
|
gdpr: Gdpr,
|
|
366
|
-
balanceSheetReport: BalanceSheetReport,
|
|
367
365
|
};
|
|
@@ -228,13 +228,6 @@ export const allPrestations2025WithBrochure = [
|
|
|
228
228
|
PrestationType.SOCIAL,
|
|
229
229
|
PrestationType.GESTION_JURIDIQUE,
|
|
230
230
|
PrestationType.CONSULTING_HOUR,
|
|
231
|
-
PrestationType.ATTESTATION_REMUNERATION,
|
|
232
|
-
PrestationType.ATTESTATION_NON_REMUNERATION,
|
|
233
|
-
PrestationType.ATTESTATION_CA,
|
|
234
|
-
PrestationType.ATTESTATION_COMPTE_COURANT,
|
|
235
|
-
PrestationType.ATTESTATION_MASSE_SALARIALE,
|
|
236
|
-
PrestationType.ATTESTATION_1,
|
|
237
|
-
PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
|
|
238
231
|
];
|
|
239
232
|
|
|
240
233
|
export const ClementineSubscriptionAccountancyExpertPrestations: PrestationType[] = [
|
|
@@ -1157,7 +1150,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1157
1150
|
},
|
|
1158
1151
|
CESSION_ACTIONS: {
|
|
1159
1152
|
id: 51,
|
|
1160
|
-
name:
|
|
1153
|
+
name: 'Cession d\'actions',
|
|
1161
1154
|
isComptable: false,
|
|
1162
1155
|
isJuridique: true,
|
|
1163
1156
|
isSocial: false,
|
|
@@ -1214,7 +1207,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1214
1207
|
},
|
|
1215
1208
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SASU_EURL: {
|
|
1216
1209
|
id: 54,
|
|
1217
|
-
name:
|
|
1210
|
+
name: 'Modification d\'un dirigeant ou d\'un commissaire aux compte (SASU / EURL)',
|
|
1218
1211
|
isComptable: false,
|
|
1219
1212
|
isJuridique: true,
|
|
1220
1213
|
isSocial: false,
|
|
@@ -1366,7 +1359,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1366
1359
|
},
|
|
1367
1360
|
MODIFICATION_OBJET_SOCIAL_EURL_SASU: {
|
|
1368
1361
|
id: 62,
|
|
1369
|
-
name:
|
|
1362
|
+
name: 'Modification de l\'objet social (EURL/SASU)',
|
|
1370
1363
|
isComptable: false,
|
|
1371
1364
|
isJuridique: true,
|
|
1372
1365
|
isSocial: false,
|
|
@@ -1708,7 +1701,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1708
1701
|
},
|
|
1709
1702
|
CREATION_DOSSIER_INFORMATIQUE_PAR_SALARIE: {
|
|
1710
1703
|
id: 80,
|
|
1711
|
-
name:
|
|
1704
|
+
name: 'Création d\'un dossier informatique par salarié',
|
|
1712
1705
|
isComptable: false,
|
|
1713
1706
|
isJuridique: false,
|
|
1714
1707
|
isSocial: true,
|
|
@@ -1727,7 +1720,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1727
1720
|
},
|
|
1728
1721
|
ETABLISSEMENT_CONTRAT_TRAVAIL: {
|
|
1729
1722
|
id: 81,
|
|
1730
|
-
name:
|
|
1723
|
+
name: 'Etablissement d\'un contrat de travail',
|
|
1731
1724
|
isComptable: false,
|
|
1732
1725
|
isJuridique: false,
|
|
1733
1726
|
isSocial: true,
|
|
@@ -1746,7 +1739,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1746
1739
|
},
|
|
1747
1740
|
ATTESTATION_SALAIRE: {
|
|
1748
1741
|
id: 82,
|
|
1749
|
-
name: '
|
|
1742
|
+
name: 'Attestation de salaire',
|
|
1750
1743
|
isComptable: false,
|
|
1751
1744
|
isJuridique: false,
|
|
1752
1745
|
isSocial: true,
|
|
@@ -1784,7 +1777,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1784
1777
|
},
|
|
1785
1778
|
TAXE_APPRENTISSAGE_ET_FORMATION_CONTINUE: {
|
|
1786
1779
|
id: 84,
|
|
1787
|
-
name:
|
|
1780
|
+
name: 'Taxe d\'apprentissage et formation continue',
|
|
1788
1781
|
isComptable: false,
|
|
1789
1782
|
isJuridique: false,
|
|
1790
1783
|
isSocial: true,
|
|
@@ -1974,7 +1967,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1974
1967
|
},
|
|
1975
1968
|
ATTESTATION_REMUNERATION: {
|
|
1976
1969
|
id: 95,
|
|
1977
|
-
name: '
|
|
1970
|
+
name: 'Attestation de rémunération',
|
|
1978
1971
|
isComptable: true,
|
|
1979
1972
|
isJuridique: false,
|
|
1980
1973
|
isSocial: false,
|
|
@@ -1994,7 +1987,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
1994
1987
|
// FIXME: Doublon ?
|
|
1995
1988
|
ATTESTATION_NON_REMUNERATION: {
|
|
1996
1989
|
id: 96,
|
|
1997
|
-
name: '
|
|
1990
|
+
name: 'Attestation de non-rémunération',
|
|
1998
1991
|
isComptable: true,
|
|
1999
1992
|
isJuridique: false,
|
|
2000
1993
|
isSocial: false,
|
|
@@ -2013,7 +2006,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2013
2006
|
},
|
|
2014
2007
|
ATTESTATION_CA: {
|
|
2015
2008
|
id: 97,
|
|
2016
|
-
name:
|
|
2009
|
+
name: 'Attestation de chiffre d\'affaires',
|
|
2017
2010
|
isComptable: true,
|
|
2018
2011
|
isJuridique: false,
|
|
2019
2012
|
isSocial: false,
|
|
@@ -2032,7 +2025,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2032
2025
|
},
|
|
2033
2026
|
ATTESTATION_COMPTE_COURANT: {
|
|
2034
2027
|
id: 98,
|
|
2035
|
-
name: '
|
|
2028
|
+
name: 'Attestation de compte-courant',
|
|
2036
2029
|
isComptable: true,
|
|
2037
2030
|
isJuridique: false,
|
|
2038
2031
|
isSocial: false,
|
|
@@ -2051,7 +2044,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2051
2044
|
},
|
|
2052
2045
|
MAJ_ADRESSE_PERSONNELLE_DIRIGEANT_SUR_KBIS: {
|
|
2053
2046
|
id: 99,
|
|
2054
|
-
name:
|
|
2047
|
+
name: 'Mise à jour de l\'adresse personnelle du dirigeant sur le Kbis',
|
|
2055
2048
|
isComptable: false,
|
|
2056
2049
|
isJuridique: true,
|
|
2057
2050
|
isSocial: false,
|
|
@@ -2089,7 +2082,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2089
2082
|
},
|
|
2090
2083
|
MODIFICATION_OBJET_SOCIAL_SARL_SAS_SCI: {
|
|
2091
2084
|
id: 103,
|
|
2092
|
-
name:
|
|
2085
|
+
name: 'Modification de l\'objet social (SARL/SAS/SCI)',
|
|
2093
2086
|
isComptable: false,
|
|
2094
2087
|
isJuridique: true,
|
|
2095
2088
|
isSocial: false,
|
|
@@ -2146,7 +2139,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2146
2139
|
},
|
|
2147
2140
|
MODIFICATION_DIRIGEANT_OU_COMMISSAIRE_AU_COMPTE_SAS_SARL_SCI: {
|
|
2148
2141
|
id: 106,
|
|
2149
|
-
name:
|
|
2142
|
+
name: 'Modification d’un dirigeant ou d\'un commissaire aux compte (SAS / SARL / SCI)',
|
|
2150
2143
|
isComptable: false,
|
|
2151
2144
|
isJuridique: true,
|
|
2152
2145
|
isSocial: false,
|
|
@@ -2317,7 +2310,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2317
2310
|
},
|
|
2318
2311
|
ATTESTATION_DE_SALAIRE_MALADIE: {
|
|
2319
2312
|
id: 116,
|
|
2320
|
-
name: '
|
|
2313
|
+
name: 'Attestation de salaire maladie',
|
|
2321
2314
|
isComptable: true,
|
|
2322
2315
|
isJuridique: false,
|
|
2323
2316
|
isSocial: false,
|
|
@@ -2545,7 +2538,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2545
2538
|
},
|
|
2546
2539
|
ATTESTATION_MASSE_SALARIALE: {
|
|
2547
2540
|
id: 128,
|
|
2548
|
-
name: '
|
|
2541
|
+
name: 'Attestation de masse salariale',
|
|
2549
2542
|
isComptable: true,
|
|
2550
2543
|
isJuridique: false,
|
|
2551
2544
|
isSocial: false,
|
|
@@ -2716,7 +2709,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2716
2709
|
},
|
|
2717
2710
|
CONTRAT_APPORT_EN_NATURE: {
|
|
2718
2711
|
id: 138,
|
|
2719
|
-
name:
|
|
2712
|
+
name: 'Contrat d\'apport en nature',
|
|
2720
2713
|
isComptable: false,
|
|
2721
2714
|
isJuridique: true,
|
|
2722
2715
|
isSocial: false,
|
|
@@ -3191,7 +3184,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3191
3184
|
},
|
|
3192
3185
|
ATTESTATION_NON_REMUNERATION_RECURRENTE: {
|
|
3193
3186
|
id: 200,
|
|
3194
|
-
name: '
|
|
3187
|
+
name: 'Attestation non remunération recurrente',
|
|
3195
3188
|
isComptable: true,
|
|
3196
3189
|
isJuridique: false,
|
|
3197
3190
|
isSocial: false,
|
|
@@ -3305,7 +3298,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3305
3298
|
},
|
|
3306
3299
|
DECLARATION_IR: {
|
|
3307
3300
|
id: 206,
|
|
3308
|
-
name:
|
|
3301
|
+
name: 'Déclaration d\'IR',
|
|
3309
3302
|
isComptable: true,
|
|
3310
3303
|
isJuridique: false,
|
|
3311
3304
|
isSocial: false,
|
|
@@ -3419,7 +3412,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3419
3412
|
},
|
|
3420
3413
|
STATUTS_FREE: {
|
|
3421
3414
|
id: PrestationType.STATUTS_FREE,
|
|
3422
|
-
name:
|
|
3415
|
+
name: 'Statuts - Just\' Statuts',
|
|
3423
3416
|
isComptable: true,
|
|
3424
3417
|
isJuridique: true,
|
|
3425
3418
|
isSocial: false,
|
|
@@ -3438,7 +3431,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3438
3431
|
},
|
|
3439
3432
|
STATUTS_OPTION_1: {
|
|
3440
3433
|
id: PrestationType.STATUTS_OPTION_1,
|
|
3441
|
-
name:
|
|
3434
|
+
name: 'Statuts - Just\' Création',
|
|
3442
3435
|
isComptable: true,
|
|
3443
3436
|
isJuridique: true,
|
|
3444
3437
|
isSocial: false,
|
|
@@ -3457,7 +3450,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3457
3450
|
},
|
|
3458
3451
|
STATUTS_OPTION_2: {
|
|
3459
3452
|
id: PrestationType.STATUTS_OPTION_2,
|
|
3460
|
-
name:
|
|
3453
|
+
name: 'Statuts - Full\'Créa',
|
|
3461
3454
|
isComptable: true,
|
|
3462
3455
|
isJuridique: true,
|
|
3463
3456
|
isSocial: false,
|
|
@@ -170,22 +170,6 @@ export const SalesContractClementine: SaleContract[] = [
|
|
|
170
170
|
idPrestationType: [PrestationType.GESTION_IMMO],
|
|
171
171
|
versionable: false,
|
|
172
172
|
},
|
|
173
|
-
{
|
|
174
|
-
label: 'Rapport 2025',
|
|
175
|
-
name: 'bloc_rapport_2025',
|
|
176
|
-
needBgImage: false,
|
|
177
|
-
idPrestationType: [
|
|
178
|
-
PrestationType.ATTESTATION_REMUNERATION,
|
|
179
|
-
PrestationType.ATTESTATION_NON_REMUNERATION,
|
|
180
|
-
PrestationType.ATTESTATION_CA,
|
|
181
|
-
PrestationType.ATTESTATION_COMPTE_COURANT,
|
|
182
|
-
PrestationType.ATTESTATION_MASSE_SALARIALE,
|
|
183
|
-
PrestationType.ATTESTATION_1,
|
|
184
|
-
PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
|
|
185
|
-
],
|
|
186
|
-
versionable: false,
|
|
187
|
-
keyName: 'prestationsReport', //TODO: pas sûr de la pertinence de cette keyName
|
|
188
|
-
},
|
|
189
173
|
{
|
|
190
174
|
label: 'Page simplifié',
|
|
191
175
|
name: 'page_simplified',
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IsArray, IsNumber } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryUpdateTeamsForUser {
|
|
5
|
+
@ApiProperty({ description: 'Array of team IDs to assign to the user', type: [Number] })
|
|
6
|
+
@IsArray()
|
|
7
|
+
@IsNumber({}, { each: true })
|
|
8
|
+
teamIds: number[];
|
|
9
|
+
}
|
|
@@ -9,34 +9,32 @@ import { IMail } from './IMail';
|
|
|
9
9
|
// attestations
|
|
10
10
|
export interface IAttestation {
|
|
11
11
|
id?: number;
|
|
12
|
-
price
|
|
12
|
+
price: number | null;
|
|
13
13
|
idPrestationList: number;
|
|
14
|
-
idExercice
|
|
15
|
-
idSociety
|
|
16
|
-
idSupervisor
|
|
17
|
-
idUserDemand
|
|
18
|
-
idPaymentExpectation
|
|
19
|
-
idFile
|
|
14
|
+
idExercice: number | null;
|
|
15
|
+
idSociety: number | null;
|
|
16
|
+
idSupervisor: number | null;
|
|
17
|
+
idUserDemand: number | null;
|
|
18
|
+
idPaymentExpectation: number | null;
|
|
19
|
+
idFile: number | null;
|
|
20
20
|
annoted: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
idMailValidation?: number | null;
|
|
28
|
-
fileLink?: string;
|
|
21
|
+
sendDate: Date | null;
|
|
22
|
+
textPdf: string | null;
|
|
23
|
+
isSign: boolean | null;
|
|
24
|
+
done: boolean | null;
|
|
25
|
+
idMailPayment: number | null;
|
|
26
|
+
idMailValidation: number | null;
|
|
29
27
|
createdAt?: Date | null;
|
|
30
28
|
updatedAt?: Date | null;
|
|
31
29
|
|
|
32
30
|
// Associations
|
|
33
|
-
attestationSupervisor
|
|
34
|
-
attestationUserDemand
|
|
35
|
-
prestationsList
|
|
36
|
-
attestationPaymentExpectation
|
|
37
|
-
attestationFiles
|
|
38
|
-
society
|
|
39
|
-
exercices
|
|
40
|
-
paymentMail
|
|
41
|
-
validationMail
|
|
31
|
+
attestationSupervisor: IUser;
|
|
32
|
+
attestationUserDemand: IUser;
|
|
33
|
+
prestationsList: IPrestationList;
|
|
34
|
+
attestationPaymentExpectation: IPaymentExpectation;
|
|
35
|
+
attestationFiles: IFile;
|
|
36
|
+
society: ISociety;
|
|
37
|
+
exercices: IExercice;
|
|
38
|
+
paymentMail: IMail;
|
|
39
|
+
validationMail: IMail;
|
|
42
40
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -770,6 +770,7 @@ export * from './Interface/api/inpi/inpi';
|
|
|
770
770
|
export * from './Interface/api/team/QueryCreate';
|
|
771
771
|
export * from './Interface/api/team/QueryGetAllWithIncludes';
|
|
772
772
|
export * from './Interface/api/team/QueryUpdate';
|
|
773
|
+
export * from './Interface/api/team/QueryUpdateTeamsForUser';
|
|
773
774
|
export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory';
|
|
774
775
|
export * from './Interface/api/userSpecialDay/BodyUserSpecialDay';
|
|
775
776
|
export * from './Interface/api/userSpecialDay/QueryUserSpecialDay';
|
|
@@ -826,7 +827,6 @@ export * from './Interface/api/pappers/CreatePappers';
|
|
|
826
827
|
export * from './Interface/api/bankAccount/Query';
|
|
827
828
|
export * from './Interface/api/bankAccount/Update';
|
|
828
829
|
export * from './Interface/api/stripe/QueryStripe';
|
|
829
|
-
export * from './Interface/api/balanceSheetReport/Query';
|
|
830
830
|
export * from './Interface/api/supervision/Query';
|
|
831
831
|
export * from './Interface/api/supervision/Read';
|
|
832
832
|
export * from './Interface/api/salariesFile/ReadSalariesFile';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BasePaginate, IAttestation, ParamsBalanceSheetReportGeneratePdf, QueryBalanceSheetReportPaginated } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
export declare class BalanceSheetReport extends Resource {
|
|
4
|
-
getPaginated(params: QueryBalanceSheetReportPaginated, signal?: AbortSignal): Promise<BasePaginate<IAttestation>>;
|
|
5
|
-
create(data: Omit<IAttestation, 'id'>): Promise<number>;
|
|
6
|
-
generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation>;
|
|
7
|
-
update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation>;
|
|
8
|
-
delete(idReport: number): Promise<number>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=BalanceSheetReport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheetReport.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,mCAAmC,EACnC,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,YAAY,CACjB,MAAM,EAAE,gCAAgC,EACxC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAOtC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/F,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI5E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BalanceSheetReport = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class BalanceSheetReport extends Resource_1.Resource {
|
|
6
|
-
getPaginated(params, signal) {
|
|
7
|
-
return this.axios.$get('balance-sheet/report/paginated', Object.assign(Object.assign({}, (signal ? { signal } : {})), { params }));
|
|
8
|
-
}
|
|
9
|
-
create(data) {
|
|
10
|
-
return this.axios.$post('balance-sheet/report', data);
|
|
11
|
-
}
|
|
12
|
-
generatePdf(idReport, data) {
|
|
13
|
-
return this.axios.$post(`balance-sheet/report/${idReport}/generate-pdf`, data);
|
|
14
|
-
}
|
|
15
|
-
update(idReport, data) {
|
|
16
|
-
return this.axios.$put(`balance-sheet/report/${idReport}`, data);
|
|
17
|
-
}
|
|
18
|
-
delete(idReport) {
|
|
19
|
-
return this.axios.$delete(`balance-sheet/report/${idReport}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.BalanceSheetReport = BalanceSheetReport;
|
|
23
|
-
//# sourceMappingURL=BalanceSheetReport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheetReport.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":";;;AAMA,0CAAuC;AAEvC,MAAa,kBAAmB,SAAQ,mBAAQ;IACvC,YAAY,CACjB,MAAwC,EACxC,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,kCAClD,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,WAAW,CAAC,QAAgB,EAAE,IAAyC;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,QAAQ,eAAe,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IAED,MAAM,CAAC,QAAgB,EAAE,IAA2B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AA1BD,gDA0BC","sourcesContent":["import {\n BasePaginate,\n IAttestation,\n ParamsBalanceSheetReportGeneratePdf,\n QueryBalanceSheetReportPaginated,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class BalanceSheetReport extends Resource {\n public getPaginated(\n params: QueryBalanceSheetReportPaginated,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IAttestation>> {\n return this.axios.$get('balance-sheet/report/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n create(data: Omit<IAttestation, 'id'>): Promise<number> {\n return this.axios.$post('balance-sheet/report', data);\n }\n\n generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation> {\n return this.axios.$post(`balance-sheet/report/${idReport}/generate-pdf`, data);\n }\n\n update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation> {\n return this.axios.$put(`balance-sheet/report/${idReport}`, data);\n }\n\n delete(idReport: number): Promise<number> {\n return this.axios.$delete(`balance-sheet/report/${idReport}`);\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
2
|
-
export declare class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {
|
|
3
|
-
search?: string;
|
|
4
|
-
signed?: boolean;
|
|
5
|
-
factured?: number;
|
|
6
|
-
idSupervisor?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ParamsBalanceSheetReportGeneratePdf {
|
|
9
|
-
isSigned: boolean;
|
|
10
|
-
comment?: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/balanceSheetReport/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,qBAAa,gCAAiC,SAAQ,qBAAqB;IAIjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,YAAY,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,mCAAmC;IAItC,QAAQ,EAAE,OAAO,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ParamsBalanceSheetReportGeneratePdf = exports.QueryBalanceSheetReportPaginated = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
16
|
-
const BasePaginate_1 = require("../BasePaginate");
|
|
17
|
-
class QueryBalanceSheetReportPaginated extends BasePaginate_1.RequiredQueryPaginate {
|
|
18
|
-
}
|
|
19
|
-
exports.QueryBalanceSheetReportPaginated = QueryBalanceSheetReportPaginated;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
22
|
-
(0, class_validator_1.IsOptional)(),
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], QueryBalanceSheetReportPaginated.prototype, "search", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsBoolean)(),
|
|
30
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
32
|
-
], QueryBalanceSheetReportPaginated.prototype, "signed", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
(0, class_validator_1.IsInt)(),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], QueryBalanceSheetReportPaginated.prototype, "factured", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
|
-
(0, class_validator_1.IsInt)(),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], QueryBalanceSheetReportPaginated.prototype, "idSupervisor", void 0);
|
|
45
|
-
class ParamsBalanceSheetReportGeneratePdf {
|
|
46
|
-
}
|
|
47
|
-
exports.ParamsBalanceSheetReportGeneratePdf = ParamsBalanceSheetReportGeneratePdf;
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, utils_1.ApiProperty)(),
|
|
50
|
-
(0, class_validator_1.IsBoolean)(),
|
|
51
|
-
(0, boolean_transform_1.ToBoolean)(),
|
|
52
|
-
__metadata("design:type", Boolean)
|
|
53
|
-
], ParamsBalanceSheetReportGeneratePdf.prototype, "isSigned", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
(0, class_validator_1.IsString)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], ParamsBalanceSheetReportGeneratePdf.prototype, "comment", void 0);
|
|
60
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/balanceSheetReport/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,6CAAqE;AACrE,sFAA2E;AAC3E,kDAAwD;AAExD,MAAa,gCAAiC,SAAQ,oCAAqB;CAqB1E;AArBD,4EAqBC;AAjBS;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACa;AAMhB;IAJP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;gEACa;AAKjB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kEACkB;AAKlB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEACsB;AAGhC,MAAa,mCAAmC;CAU/C;AAVD,kFAUC;AANS;IAHP,IAAA,mBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;qEACc;AAKlB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACc","sourcesContent":["import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RequiredQueryPaginate } from '../BasePaginate';\n\nexport class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n declare signed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n declare factured?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n declare idSupervisor?: number;\n}\n\nexport class ParamsBalanceSheetReportGeneratePdf {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n declare isSigned: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare comment?: string;\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BasePaginate, IAttestation, ParamsBalanceSheetReportGeneratePdf, QueryBalanceSheetReportPaginated } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
export declare class BalanceSheetReport extends Resource {
|
|
4
|
-
getPaginated(params: QueryBalanceSheetReportPaginated, signal?: AbortSignal): Promise<BasePaginate<IAttestation>>;
|
|
5
|
-
create(data: Omit<IAttestation, 'id'>): Promise<number>;
|
|
6
|
-
generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation>;
|
|
7
|
-
update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation>;
|
|
8
|
-
delete(idReport: number): Promise<number>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=BalanceSheetReport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheetReport.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,mCAAmC,EACnC,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,YAAY,CACjB,MAAM,EAAE,gCAAgC,EACxC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAOtC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/F,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI5E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1C"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class BalanceSheetReport extends Resource {
|
|
3
|
-
getPaginated(params, signal) {
|
|
4
|
-
return this.axios.$get('balance-sheet/report/paginated', {
|
|
5
|
-
...(signal ? { signal } : {}),
|
|
6
|
-
params,
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
create(data) {
|
|
10
|
-
return this.axios.$post('balance-sheet/report', data);
|
|
11
|
-
}
|
|
12
|
-
generatePdf(idReport, data) {
|
|
13
|
-
return this.axios.$post(`balance-sheet/report/${idReport}/generate-pdf`, data);
|
|
14
|
-
}
|
|
15
|
-
update(idReport, data) {
|
|
16
|
-
return this.axios.$put(`balance-sheet/report/${idReport}`, data);
|
|
17
|
-
}
|
|
18
|
-
delete(idReport) {
|
|
19
|
-
return this.axios.$delete(`balance-sheet/report/${idReport}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=BalanceSheetReport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheetReport.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IACvC,YAAY,CACjB,MAAwC,EACxC,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,EAAE;YACvD,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,WAAW,CAAC,QAAgB,EAAE,IAAyC;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,QAAQ,eAAe,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IAED,MAAM,CAAC,QAAgB,EAAE,IAA2B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IAChE,CAAC;CACF","sourcesContent":["import {\n BasePaginate,\n IAttestation,\n ParamsBalanceSheetReportGeneratePdf,\n QueryBalanceSheetReportPaginated,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class BalanceSheetReport extends Resource {\n public getPaginated(\n params: QueryBalanceSheetReportPaginated,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IAttestation>> {\n return this.axios.$get('balance-sheet/report/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n create(data: Omit<IAttestation, 'id'>): Promise<number> {\n return this.axios.$post('balance-sheet/report', data);\n }\n\n generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation> {\n return this.axios.$post(`balance-sheet/report/${idReport}/generate-pdf`, data);\n }\n\n update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation> {\n return this.axios.$put(`balance-sheet/report/${idReport}`, data);\n }\n\n delete(idReport: number): Promise<number> {\n return this.axios.$delete(`balance-sheet/report/${idReport}`);\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
2
|
-
export declare class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {
|
|
3
|
-
search?: string;
|
|
4
|
-
signed?: boolean;
|
|
5
|
-
factured?: number;
|
|
6
|
-
idSupervisor?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ParamsBalanceSheetReportGeneratePdf {
|
|
9
|
-
isSigned: boolean;
|
|
10
|
-
comment?: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/balanceSheetReport/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,qBAAa,gCAAiC,SAAQ,qBAAqB;IAIjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,YAAY,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,mCAAmC;IAItC,QAAQ,EAAE,OAAO,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|