@silexpert/core 1.1.214 → 1.1.216
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/BudgetInsight.d.ts +3 -3
- package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/cjs/api/resources/Connector.d.ts +2 -1
- package/dist/cjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/cjs/api/resources/Connector.js +3 -0
- package/dist/cjs/api/resources/Connector.js.map +1 -1
- package/dist/cjs/api/resources/Mobile.d.ts +1 -0
- package/dist/cjs/api/resources/Mobile.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mobile.js +3 -0
- package/dist/cjs/api/resources/Mobile.js.map +1 -1
- package/dist/cjs/api/resources/Product.d.ts +1 -0
- package/dist/cjs/api/resources/Product.d.ts.map +1 -1
- package/dist/cjs/api/resources/Product.js +3 -0
- package/dist/cjs/api/resources/Product.js.map +1 -1
- package/dist/cjs/api/resources/Rule.d.ts +1 -0
- package/dist/cjs/api/resources/Rule.d.ts.map +1 -1
- package/dist/cjs/api/resources/Rule.js +3 -0
- package/dist/cjs/api/resources/Rule.js.map +1 -1
- package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/cjs/api/resources/SalariesFile.js +14 -2
- package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +1 -0
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/Stocks.d.ts +1 -1
- package/dist/cjs/api/resources/Stocks.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +2 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +3 -0
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +2 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +2 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +2 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +2 -0
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +4 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +4 -0
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +55 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +42 -0
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +17 -0
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js +16 -0
- package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts +18 -0
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.js +96 -0
- package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -0
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts +1 -0
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.js +8 -0
- package/dist/cjs/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.d.ts +3 -0
- package/dist/cjs/types/Interface/api/connector/QueryConnector.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.js +10 -1
- package/dist/cjs/types/Interface/api/connector/QueryConnector.js.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts +3 -0
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.js +10 -1
- package/dist/cjs/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +2 -0
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +5 -0
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/cjs/utils/exercice.d.ts +4 -0
- package/dist/cjs/utils/exercice.d.ts.map +1 -0
- package/dist/cjs/utils/exercice.js +25 -0
- package/dist/cjs/utils/exercice.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +3 -3
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +20 -10
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +9 -8
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts +3 -3
- package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/mjs/api/resources/Connector.d.ts +2 -1
- package/dist/mjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/mjs/api/resources/Connector.js +3 -0
- package/dist/mjs/api/resources/Connector.js.map +1 -1
- package/dist/mjs/api/resources/Mobile.d.ts +1 -0
- package/dist/mjs/api/resources/Mobile.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mobile.js +3 -0
- package/dist/mjs/api/resources/Mobile.js.map +1 -1
- package/dist/mjs/api/resources/Product.d.ts +1 -0
- package/dist/mjs/api/resources/Product.d.ts.map +1 -1
- package/dist/mjs/api/resources/Product.js +3 -0
- package/dist/mjs/api/resources/Product.js.map +1 -1
- package/dist/mjs/api/resources/Rule.d.ts +1 -0
- package/dist/mjs/api/resources/Rule.d.ts.map +1 -1
- package/dist/mjs/api/resources/Rule.js +3 -0
- package/dist/mjs/api/resources/Rule.js.map +1 -1
- package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/mjs/api/resources/SalariesFile.js +14 -2
- package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +1 -0
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/Stocks.d.ts +1 -1
- package/dist/mjs/api/resources/Stocks.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +2 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +3 -0
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +2 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +2 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +2 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +2 -0
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +4 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +4 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +55 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +42 -0
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +17 -0
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js +16 -0
- package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts +18 -0
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.js +96 -0
- package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -0
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts +1 -0
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.js +9 -0
- package/dist/mjs/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -1
- package/dist/mjs/types/Interface/api/connector/QueryConnector.d.ts +3 -0
- package/dist/mjs/types/Interface/api/connector/QueryConnector.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/connector/QueryConnector.js +11 -2
- package/dist/mjs/types/Interface/api/connector/QueryConnector.js.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts +3 -0
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.js +9 -0
- package/dist/mjs/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +2 -0
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +5 -0
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/mjs/utils/exercice.d.ts +4 -0
- package/dist/mjs/utils/exercice.d.ts.map +1 -0
- package/dist/mjs/utils/exercice.js +22 -0
- package/dist/mjs/utils/exercice.js.map +1 -0
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +3 -3
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +13 -3
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +2 -1
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +3 -3
- package/ts/api/resources/Connector.ts +5 -1
- package/ts/api/resources/Mobile.ts +4 -0
- package/ts/api/resources/Product.ts +4 -0
- package/ts/api/resources/Rule.ts +4 -0
- package/ts/api/resources/SalariesFile.ts +14 -2
- package/ts/api/resources/Society.ts +4 -0
- package/ts/api/resources/Stocks.ts +1 -1
- package/ts/api/resources/ThirdParty.ts +5 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +2 -0
- package/ts/types/Enum/Ged.ts +2 -0
- package/ts/types/Enum/PrestationType.ts +4 -0
- package/ts/types/Enum/PriceGridClementine.ts +42 -0
- package/ts/types/Enum/PriceGridLegalstart.ts +16 -0
- package/ts/types/Enum/PriceGridPourcentage.ts +96 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -0
- package/ts/types/Interface/api/bankAccount/QueryBankAccount.ts +7 -0
- package/ts/types/Interface/api/connector/QueryConnector.ts +9 -2
- package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +7 -0
- package/ts/types/Interface/api/workingSchedule/QueryDailyHour.ts +2 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +5 -0
- package/ts/utils/exercice.ts +25 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/prestation.ts +93 -4
- package/ts/utils/vat/3517/century23.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.216",
|
|
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",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateOrUpdateAccessToken, IAccessToken, ReadUserConnection } from '../../types';
|
|
2
|
+
import { CreateOrUpdateAccessToken, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class BudgetInsight extends Resource {
|
|
5
5
|
getTokens(): Promise<IAccessToken | null> {
|
|
6
6
|
return this.axios.$get('/connectors/budget-insight/tokens');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
getTemporaryToken(): Promise<
|
|
9
|
+
getTemporaryToken(): Promise<ReadTemporaryCode> {
|
|
10
10
|
return this.axios.$get('/connectors/budget-insight/tokens/temporary');
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ export class BudgetInsight extends Resource {
|
|
|
18
18
|
return this.axios.$post('/connectors/budget-insight/authentificate');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
getAllConnections(): Promise<ReadUserConnection> {
|
|
21
|
+
getAllConnections(): Promise<ReadUserConnection[]> {
|
|
22
22
|
return this.axios.$get('/connectors/budget-insight/connections');
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CreateConnector, IAccountingTransaction, IConnector, ImportBankAccount, QueryConnector,
|
|
2
|
+
CreateConnector, IAccountingTransaction, IConnector, ImportBankAccount, QueryConnector, QueryAllConnectorFromSociety,
|
|
3
3
|
} from '../../types';
|
|
4
4
|
import { Resource } from '../Resource';
|
|
5
5
|
|
|
@@ -20,6 +20,10 @@ export class Connector extends Resource {
|
|
|
20
20
|
return this.axios.$get('/connectors', { params });
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]> {
|
|
24
|
+
return this.axios.$get(`/connectors/${idSociety}`, { params });
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
delete(id: number): Promise<boolean> {
|
|
24
28
|
return this.axios.$delete(`/connectors/${id}`);
|
|
25
29
|
}
|
|
@@ -5,4 +5,8 @@ export class Mobile extends Resource {
|
|
|
5
5
|
createMobileToken(idUser: number, payload: UpdateMobileForm): Promise<IMobile> {
|
|
6
6
|
return this.axios.$post(`/mobiles/${idUser}`, payload);
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
getAllFromSociety(idSociety: number): Promise<IMobile[]> {
|
|
10
|
+
return this.axios.$get(`/mobiles/${idSociety}`);
|
|
11
|
+
}
|
|
8
12
|
}
|
|
@@ -14,6 +14,10 @@ export class Product extends Resource {
|
|
|
14
14
|
return this.axios.$get('/commercial-management/products');
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
getAllFromSociety(idSociety: number): Promise<Array<IProduct>> {
|
|
18
|
+
return this.axios.$get(`/commercial-management/products/${idSociety}`);
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
getPaginated(
|
|
18
22
|
pagination: QueryPaginate,
|
|
19
23
|
query?: QueryProduct,
|
package/ts/api/resources/Rule.ts
CHANGED
|
@@ -10,6 +10,10 @@ export class Rule extends Resource {
|
|
|
10
10
|
return this.axios.$get('rules', { params });
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
getAllFromSociety(idSociety: number): Promise<IRule[]> {
|
|
14
|
+
return this.axios.$get(`rules/${idSociety}`);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]> {
|
|
14
18
|
return this.axios.$get('rules/most-frequent', { params });
|
|
15
19
|
}
|
|
@@ -8,8 +8,20 @@ export class SalariesFile extends Resource {
|
|
|
8
8
|
return this.axios.$post('salariesFile', params);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
createForSociety(idSociety: number): Promise<ReadSalariesFile> {
|
|
12
|
-
|
|
11
|
+
createForSociety(idSociety: number, params: CreateSalariesFile): Promise<ReadSalariesFile> {
|
|
12
|
+
const formData = new FormData();
|
|
13
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
14
|
+
if (value || value === false || value === 0) {
|
|
15
|
+
if (key === 'files') {
|
|
16
|
+
value.forEach((file: File) => {
|
|
17
|
+
formData.append('files', file);
|
|
18
|
+
});
|
|
19
|
+
} else
|
|
20
|
+
formData.append(key, `${value}`);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
return this.axios.$post(`/societies/${idSociety}/salary-files`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
13
25
|
}
|
|
14
26
|
|
|
15
27
|
|
|
@@ -43,6 +43,10 @@ export class Society extends Resource {
|
|
|
43
43
|
return this.axios.$get('/society/invoiceEmail');
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
getInvoiceEmailFromSociety(idSociety: number): Promise<IMailSociety | Error> {
|
|
47
|
+
return this.axios.$get(`/society/invoiceEmail/${idSociety}`);
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {
|
|
47
51
|
return this.axios.$post('/society/invoiceEmail', data);
|
|
48
52
|
}
|
|
@@ -37,7 +37,7 @@ export class Stocks extends Resource {
|
|
|
37
37
|
return this.axios.$get(`/stocks/files/${token}`, { responseType: 'blob' });
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
download(idSociety: number, token: string): Promise<
|
|
40
|
+
download(idSociety: number, token: string): Promise<Blob> {
|
|
41
41
|
return this.axios.$get(`/societies/${idSociety}/stocks/files/${token}`, { responseType: 'blob' });
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
UpdateThirdPartyForm,
|
|
9
9
|
CreateThirdPartyForm,
|
|
10
10
|
ImportThirdParty,
|
|
11
|
+
QueryThirdPartyAllFromSociety,
|
|
11
12
|
} from '../../types';
|
|
12
13
|
|
|
13
14
|
export class ThirdParty extends Resource {
|
|
@@ -15,6 +16,10 @@ export class ThirdParty extends Resource {
|
|
|
15
16
|
return this.axios.$get('/third-parties');
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
getAllFromSociety(idSociety: number, params: QueryThirdPartyAllFromSociety): Promise<Array<IThirdParty>> {
|
|
20
|
+
return this.axios.$get(`/${idSociety}/third-parties`, { params });
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
getPaginated(
|
|
19
24
|
pagination: QueryPaginate,
|
|
20
25
|
query?: QueryThirdParty,
|
|
@@ -374,6 +374,8 @@ export enum QuestionWording {
|
|
|
374
374
|
LONG_RUN_CAPITAL_LOSS_UNDER_FISCAL_PERIOD = 'Moins-values à long terme réalisées au cours de l’exercice',
|
|
375
375
|
AFFILIATES_AND_SHAREHOLDERS_INCOMES_PAID_BY_COMPANY = 'Versement aux associés et actionnaires de revenus payés par la société elle-même',
|
|
376
376
|
AFFILIATES_AND_SHAREHOLDERS_INCOMES_PAID_BY_SHARE_MANAGEMENT_ESTABLISHMENT = 'Versement aux associés et actionnaires de revenus versés par un établissement chargé du service des titres',
|
|
377
|
+
DECLARANT_NAME = 'Nom du déclarant',
|
|
378
|
+
DECLARANT_OCCUPATION = 'Poste du déclarant',
|
|
377
379
|
PAYMENTS_OR_ADVANTAGES_TO_UNKNOWN_BENEFICIARY = 'Montant des distributions correspondant à des rémunérations ou avantages dont la société de désigne pas les bénéficiaires',
|
|
378
380
|
AFFILIATES_OR_SHAREHOLDERS_PREPAYMENTS = 'Versement de prêts, avances ou acomptes consentis aux associés, actionnaires et porteurs de parts.',
|
|
379
381
|
DEDUCTIBLE_DISTRIBUTED_INCOMES = 'Montant éligible',
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -48,6 +48,7 @@ export enum GedFolder {
|
|
|
48
48
|
SUBVENTION = 42,
|
|
49
49
|
EMPLOYEMENT_CONTRACT = 43,
|
|
50
50
|
EXIT_DOCUMENT = 44,
|
|
51
|
+
JEDECLARE_MANDATES = 45,
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export enum TypeFile {
|
|
@@ -356,6 +357,7 @@ export const GedFolderList: Array<{ id: GedFolder, isVisibleForClient: boolean;
|
|
|
356
357
|
{ id: GedFolder.SUBVENTION, name: 'Subvention', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
357
358
|
{ id: GedFolder.EMPLOYEMENT_CONTRACT, name: 'Contrats de travail & avenants', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
358
359
|
{ id: GedFolder.EXIT_DOCUMENT, name: 'Documents de sorties', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
360
|
+
{ id: GedFolder.JEDECLARE_MANDATES, name: 'Mandat JeDeclare', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
359
361
|
];
|
|
360
362
|
|
|
361
363
|
export const gedCategoryWithName: Array<{ idGedCategory: number, name: string }> = [
|
|
@@ -198,6 +198,10 @@ export interface PrestationDetailEnum {
|
|
|
198
198
|
[key: string]: IPrestationList
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated
|
|
203
|
+
* @description Don't use this ENUM but use model prestationList
|
|
204
|
+
*/
|
|
201
205
|
export const PrestationDetail: PrestationDetailEnum = {
|
|
202
206
|
MYFRUCTUCOMPTA: {
|
|
203
207
|
id: 1,
|
|
@@ -2,6 +2,7 @@ import { VatRegime } from './VatRegime';
|
|
|
2
2
|
import { ClosingType } from './ClosingType';
|
|
3
3
|
import { PrestationType } from './PrestationType';
|
|
4
4
|
import { TaxSystem } from './TaxSystem';
|
|
5
|
+
import { LegalFormTypeEnum } from './LegalForm';
|
|
5
6
|
|
|
6
7
|
export const PriceGridClementine = [
|
|
7
8
|
{
|
|
@@ -330,6 +331,22 @@ export const PriceGridClementine = [
|
|
|
330
331
|
},
|
|
331
332
|
],
|
|
332
333
|
},
|
|
334
|
+
{
|
|
335
|
+
/* Assurance Control Fiscal */
|
|
336
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
337
|
+
exerciceNbr: [
|
|
338
|
+
{
|
|
339
|
+
minimum: 1,
|
|
340
|
+
maximum: 2,
|
|
341
|
+
price: 149,
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
minimum: 3,
|
|
345
|
+
maximum: 1000,
|
|
346
|
+
price: 299,
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
},
|
|
333
350
|
],
|
|
334
351
|
},
|
|
335
352
|
{
|
|
@@ -521,6 +538,31 @@ export const PriceGridClementine = [
|
|
|
521
538
|
},
|
|
522
539
|
],
|
|
523
540
|
},
|
|
541
|
+
{
|
|
542
|
+
/* Social */
|
|
543
|
+
idPrestationList: [PrestationType.SOCIAL],
|
|
544
|
+
employeeByLegalForm: [
|
|
545
|
+
{
|
|
546
|
+
idLegalForm: LegalFormTypeEnum.EI,
|
|
547
|
+
price: 33,
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
idLegalForm: LegalFormTypeEnum.AUTO_ENTREPRENEUR,
|
|
551
|
+
price: 36,
|
|
552
|
+
},
|
|
553
|
+
],
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
/* Assurance Control Fiscal */
|
|
557
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
558
|
+
exerciceNbr: [
|
|
559
|
+
{
|
|
560
|
+
minimum: 1,
|
|
561
|
+
maximum: 1000,
|
|
562
|
+
price: 199,
|
|
563
|
+
},
|
|
564
|
+
],
|
|
565
|
+
},
|
|
524
566
|
],
|
|
525
567
|
},
|
|
526
568
|
];
|
|
@@ -147,6 +147,22 @@ export const PriceGridLegalstart = [
|
|
|
147
147
|
},
|
|
148
148
|
],
|
|
149
149
|
},
|
|
150
|
+
{
|
|
151
|
+
/* Assurance Control Fiscal */
|
|
152
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
153
|
+
exerciceNbr: [
|
|
154
|
+
{
|
|
155
|
+
minimum: 1,
|
|
156
|
+
maximum: 2,
|
|
157
|
+
price: 149,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
minimum: 3,
|
|
161
|
+
maximum: 1000,
|
|
162
|
+
price: 299,
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
150
166
|
],
|
|
151
167
|
},
|
|
152
168
|
];
|
|
@@ -311,6 +311,22 @@ export const PriceGridPourcentage = [
|
|
|
311
311
|
},
|
|
312
312
|
],
|
|
313
313
|
},
|
|
314
|
+
{
|
|
315
|
+
/* Assurance Control Fiscal */
|
|
316
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
317
|
+
exerciceNbr: [
|
|
318
|
+
{
|
|
319
|
+
minimum: 1,
|
|
320
|
+
maximum: 2,
|
|
321
|
+
price: 149,
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
minimum: 3,
|
|
325
|
+
maximum: 1000,
|
|
326
|
+
price: 299,
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
314
330
|
],
|
|
315
331
|
},
|
|
316
332
|
{
|
|
@@ -621,6 +637,22 @@ export const PriceGridPourcentage = [
|
|
|
621
637
|
},
|
|
622
638
|
],
|
|
623
639
|
},
|
|
640
|
+
{
|
|
641
|
+
/* Assurance Control Fiscal */
|
|
642
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
643
|
+
exerciceNbr: [
|
|
644
|
+
{
|
|
645
|
+
minimum: 1,
|
|
646
|
+
maximum: 2,
|
|
647
|
+
price: 149,
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
minimum: 3,
|
|
651
|
+
maximum: 1000,
|
|
652
|
+
price: 299,
|
|
653
|
+
},
|
|
654
|
+
],
|
|
655
|
+
},
|
|
624
656
|
],
|
|
625
657
|
},
|
|
626
658
|
{
|
|
@@ -931,6 +963,22 @@ export const PriceGridPourcentage = [
|
|
|
931
963
|
},
|
|
932
964
|
],
|
|
933
965
|
},
|
|
966
|
+
{
|
|
967
|
+
/* Assurance Control Fiscal */
|
|
968
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
969
|
+
exerciceNbr: [
|
|
970
|
+
{
|
|
971
|
+
minimum: 1,
|
|
972
|
+
maximum: 2,
|
|
973
|
+
price: 149,
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
minimum: 3,
|
|
977
|
+
maximum: 1000,
|
|
978
|
+
price: 299,
|
|
979
|
+
},
|
|
980
|
+
],
|
|
981
|
+
},
|
|
934
982
|
],
|
|
935
983
|
},
|
|
936
984
|
{
|
|
@@ -1241,6 +1289,22 @@ export const PriceGridPourcentage = [
|
|
|
1241
1289
|
},
|
|
1242
1290
|
],
|
|
1243
1291
|
},
|
|
1292
|
+
{
|
|
1293
|
+
/* Assurance Control Fiscal */
|
|
1294
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
1295
|
+
exerciceNbr: [
|
|
1296
|
+
{
|
|
1297
|
+
minimum: 1,
|
|
1298
|
+
maximum: 2,
|
|
1299
|
+
price: 149,
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
minimum: 3,
|
|
1303
|
+
maximum: 1000,
|
|
1304
|
+
price: 299,
|
|
1305
|
+
},
|
|
1306
|
+
],
|
|
1307
|
+
},
|
|
1244
1308
|
],
|
|
1245
1309
|
},
|
|
1246
1310
|
{
|
|
@@ -1551,6 +1615,22 @@ export const PriceGridPourcentage = [
|
|
|
1551
1615
|
},
|
|
1552
1616
|
],
|
|
1553
1617
|
},
|
|
1618
|
+
{
|
|
1619
|
+
/* Assurance Control Fiscal */
|
|
1620
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
1621
|
+
exerciceNbr: [
|
|
1622
|
+
{
|
|
1623
|
+
minimum: 1,
|
|
1624
|
+
maximum: 2,
|
|
1625
|
+
price: 149,
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
minimum: 3,
|
|
1629
|
+
maximum: 1000,
|
|
1630
|
+
price: 299,
|
|
1631
|
+
},
|
|
1632
|
+
],
|
|
1633
|
+
},
|
|
1554
1634
|
],
|
|
1555
1635
|
},
|
|
1556
1636
|
{
|
|
@@ -1861,6 +1941,22 @@ export const PriceGridPourcentage = [
|
|
|
1861
1941
|
},
|
|
1862
1942
|
],
|
|
1863
1943
|
},
|
|
1944
|
+
{
|
|
1945
|
+
/* Assurance Control Fiscal */
|
|
1946
|
+
idPrestationList: [PrestationType.ASSURANCE_CONTROLE_FISCAL],
|
|
1947
|
+
exerciceNbr: [
|
|
1948
|
+
{
|
|
1949
|
+
minimum: 1,
|
|
1950
|
+
maximum: 2,
|
|
1951
|
+
price: 149,
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
minimum: 3,
|
|
1955
|
+
maximum: 1000,
|
|
1956
|
+
price: 299,
|
|
1957
|
+
},
|
|
1958
|
+
],
|
|
1959
|
+
},
|
|
1864
1960
|
],
|
|
1865
1961
|
},
|
|
1866
1962
|
];
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
6
|
import { BankAccountType } from '../../../Enum/BankAccountType';
|
|
7
|
+
import { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';
|
|
7
8
|
|
|
8
9
|
export class QueryBankAccount {
|
|
9
10
|
@ApiPropertyOptional()
|
|
@@ -17,4 +18,10 @@ export class QueryBankAccount {
|
|
|
17
18
|
@IsInt()
|
|
18
19
|
@IsEnum(BankAccountType)
|
|
19
20
|
idBankAccountType?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
@IsEnum(PartnerTransactionType)
|
|
26
|
+
idPartnerType?: number;
|
|
20
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IsArray, IsString } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { IsArray, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ConnectorType } from '../../../Enum/ConnectorType';
|
|
4
4
|
import { IConnector } from '../../models/IConnector';
|
|
5
5
|
|
|
@@ -13,4 +13,11 @@ export class QueryConnector {
|
|
|
13
13
|
each: true,
|
|
14
14
|
})
|
|
15
15
|
attributes: Extract<keyof IConnector, string>[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class QueryAllConnectorFromSociety {
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsArray()
|
|
22
|
+
idConnectorTypes?: number[];
|
|
16
23
|
}
|
|
@@ -119,6 +119,11 @@ export interface ISocietyDetail {
|
|
|
119
119
|
notaryOfficeZipCode?:string | null;
|
|
120
120
|
notaryOfficeCity?:string | null;
|
|
121
121
|
verifiedDocuments?: boolean | null;
|
|
122
|
+
accountingPlanSetup?: boolean | null;
|
|
123
|
+
checkingReceiptOfBankStatements?: boolean | null;
|
|
124
|
+
CCASetup?: boolean | null;
|
|
125
|
+
usingExpenseReports?: boolean | null;
|
|
126
|
+
usingIK?: boolean | null;
|
|
122
127
|
createdAt?: Date | null;
|
|
123
128
|
updatedAt?: Date | null;
|
|
124
129
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IExercice } from '../types';
|
|
2
|
+
import * as dayjs from 'dayjs';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
const exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {
|
|
6
|
+
let currentExercice: number = 0;
|
|
7
|
+
exerciceList.sort((a, b) => {
|
|
8
|
+
if (dayjs(a.startDate).format('YYYY-MM-DD') > dayjs(b.startDate).format('YYYY-MM-DD')) {
|
|
9
|
+
return 1;
|
|
10
|
+
} else if (dayjs(a.startDate).format('YYYY-MM-DD') < dayjs(b.startDate).format('YYYY-MM-DD')) {
|
|
11
|
+
return -1;
|
|
12
|
+
} else {
|
|
13
|
+
return 0;
|
|
14
|
+
}
|
|
15
|
+
}).forEach((exercice, index) => {
|
|
16
|
+
if (dayjs(endDate).isSame(dayjs(exercice.endDate))) {
|
|
17
|
+
currentExercice = index + 1;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
return currentExercice;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
exerciceNumber,
|
|
25
|
+
};
|
package/ts/utils/index.ts
CHANGED