@silexpert/core 1.1.180 → 1.1.182
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/BalanceSheet.d.ts +2 -0
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +3 -0
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +0 -4
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
- 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/statutsGeneration.d.ts +177 -0
- package/dist/cjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/cjs/utils/statutsGeneration.js +115 -0
- package/dist/cjs/utils/statutsGeneration.js.map +1 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +3 -0
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +0 -4
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
- 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/statutsGeneration.d.ts +177 -0
- package/dist/mjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/mjs/utils/statutsGeneration.js +111 -0
- package/dist/mjs/utils/statutsGeneration.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +6 -0
- package/ts/api/resources/ThirdParty.ts +0 -5
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +2 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +1 -0
- package/ts/types/Interface/models/ICard.ts +0 -1
- package/ts/types/Interface/models/ICustomerVat.ts +1 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/statutsGeneration.ts +123 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';
|
|
3
3
|
import { Resource } from '../Resource';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
4
5
|
export declare class BalanceSheet extends Resource {
|
|
5
6
|
getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic>;
|
|
6
7
|
getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic>;
|
|
8
|
+
getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse>;
|
|
7
9
|
createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer>;
|
|
8
10
|
getAttestation(params: QueryBalanceSheetAttestation): Promise<string>;
|
|
9
11
|
getPdf(params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIrF,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAI1G,uBAAuB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1F,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC;IASjG,cAAc,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,MAAM,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IASvD,oBAAoB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIpF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAItE,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;CAGjE"}
|
|
@@ -9,6 +9,9 @@ class BalanceSheet extends Resource_1.Resource {
|
|
|
9
9
|
getMonthlyStatistics(params) {
|
|
10
10
|
return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
|
|
11
11
|
}
|
|
12
|
+
getMonthlyStatisticsCsv(params) {
|
|
13
|
+
return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });
|
|
14
|
+
}
|
|
12
15
|
createAttestation(idBalanceSheet, params) {
|
|
13
16
|
return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
|
|
14
17
|
responseType: 'arraybuffer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";;;AACA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAIvC,MAAa,YAAa,SAAQ,mBAAQ;IACxC,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,oBAAoB,CAAC,MAAyC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,uBAAuB,CAAC,MAAyC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,iBAAiB,CAAC,cAAsB,EAAE,MAAqC;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,cAAc,eAAe,EAAE,MAAM,EAAE;YACvF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,MAAoC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,CAAC,MAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,UAAU,mBAAmB,EAAE;YACxE,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,MAA8B;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,UAAU,iCAAiC,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA0B;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACjE,CAAC;IAED,aAAa,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,iBAAiB,CAAC,CAAC;IACnE,CAAC;CACF;AA9CD,oCA8CC","sourcesContent":["import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';\nimport { Resource } from '../Resource';\nimport { AxiosResponse } from 'axios';\n\n\nexport class BalanceSheet extends Resource {\n getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {\n return this.axios.$get('/exercice/balanceSheet/statistics', { params });\n }\n\n getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });\n }\n\n getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });\n }\n\n createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {\n return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAttestation(params: QueryBalanceSheetAttestation): Promise<string> {\n return this.axios.$get('/exercice/balanceSheet/attestations', { params });\n }\n\n getPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getFreelanceTurnover(params: { idExercice: number }): Promise<ReadFreelanceTurnover> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/freelanceTurnover`);\n }\n\n update(id: number, params: UpdateBalanceSheet): Promise<IBalanceSheet> {\n return this.axios.$put(`/exercice/balanceSheet/${id}`, params);\n }\n\n getByExercice(idExercice: number): Promise<IBalanceSheet | null> {\n return this.axios.$get(`/exercice/${idExercice}/balance-sheets`);\n }\n}\n"]}
|
|
@@ -5,7 +5,6 @@ export declare class ThirdParty extends Resource {
|
|
|
5
5
|
getAll(): Promise<Array<IThirdParty>>;
|
|
6
6
|
getPaginated(pagination: QueryPaginate, query?: QueryThirdParty, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<IThirdParty>>;
|
|
7
7
|
update(idThirdParty: number, payload: UpdateThirdPartyForm): Promise<IThirdParty>;
|
|
8
|
-
create(payload: CreateThirdPartyForm): Promise<IThirdParty>;
|
|
9
8
|
createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty>;
|
|
10
9
|
delete(idThirdParty: number): Promise<true>;
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CACV,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,eAAe,EACvB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAWrC,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CACV,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,eAAe,EACvB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAWrC,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;IAIvB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
|
|
@@ -12,10 +12,6 @@ class ThirdParty extends Resource_1.Resource {
|
|
|
12
12
|
update(idThirdParty, payload) {
|
|
13
13
|
return this.axios.$put(`/third-parties/${idThirdParty}`, payload);
|
|
14
14
|
}
|
|
15
|
-
// FIXME: Endpoint à ne plus utiliser, à supprimer une fois app mobile + app mise à jour
|
|
16
|
-
create(payload) {
|
|
17
|
-
return this.axios.$post('/third-parties', payload);
|
|
18
|
-
}
|
|
19
15
|
createForSociety(idSociety, payload) {
|
|
20
16
|
return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);
|
|
21
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAUvC,MAAa,UAAW,SAAQ,mBAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAuB,EACvB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,gDAC3C,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,kCACD,UAAU,GACV,KAAK,KAEV,CAAC;IACL,CAAC;IAED,MAAM,CACJ,YAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAUvC,MAAa,UAAW,SAAQ,mBAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAuB,EACvB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,gDAC3C,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,kCACD,UAAU,GACV,KAAK,KAEV,CAAC;IACL,CAAC;IAED,MAAM,CACJ,YAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,CAAC,YAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AAnCD,gCAmCC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryPaginate,\n BasePaginate,\n IThirdParty,\n QueryThirdParty,\n UpdateThirdPartyForm,\n CreateThirdPartyForm,\n} from '../../types';\n\nexport class ThirdParty extends Resource {\n getAll(): Promise<Array<IThirdParty>> {\n return this.axios.$get('/third-parties');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryThirdParty,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(\n idThirdParty: number,\n payload: UpdateThirdPartyForm,\n ): Promise<IThirdParty> {\n return this.axios.$put(`/third-parties/${idThirdParty}`, payload);\n }\n\n createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);\n }\n\n delete(idThirdParty: number): Promise<true> {\n return this.axios.$delete(`/third-parties/${idThirdParty}`);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryPaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryPaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":"AAGA,qBAAa,0BAA0B;IAGnC,YAAY,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -10,11 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.QueryGetPaymentExpectation = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
13
14
|
const utils_1 = require("../../../../utils");
|
|
14
15
|
class QueryGetPaymentExpectation {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
18
|
(0, utils_1.ApiProperty)(),
|
|
19
|
+
(0, class_validator_1.IsInt)(),
|
|
18
20
|
__metadata("design:type", Number)
|
|
19
21
|
], QueryGetPaymentExpectation.prototype, "idPrestation", void 0);
|
|
20
22
|
exports.QueryGetPaymentExpectation = QueryGetPaymentExpectation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryPaymentExpectation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgD;AAEhD,MAAa,0BAA0B;
|
|
1
|
+
{"version":3,"file":"QueryPaymentExpectation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwC;AACxC,6CAAgD;AAEhD,MAAa,0BAA0B;CAItC;AAHC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;gEACe;AAHzB,gEAIC","sourcesContent":["import { IsInt } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryGetPaymentExpectation {\n @ApiProperty()\n @IsInt()\n idPrestation: number;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheet.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IBalanceSheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,aAAa;IAC5B,EAA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AAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheet.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IBalanceSheet.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ISupervision } from './ISupervision';\nimport { IPrestation } from './IPrestation';\nimport { IGedFile } from './IGedFile';\nimport { IFile } from './IFile';\nimport { ICard } from './ICard';\n\n// balanceSheet\nexport interface IBalanceSheet {\n id?: number;\n state: number;\n dateBalanceSend?: Date;\n deadline?: Date;\n turnover?: number;\n netIncome?: number;\n total?: number;\n idFile?: number;\n attestationDetail?: string;\n endDate?: Date;\n bankCollectingState?: number;\n idExercice?: number;\n idCalendarEvent?: number;\n idCard?: number;\n createdAt?: Date;\n updatedAt?: Date;\n\n // Associations\n exercice?: IExercice;\n calendarEvent?: ICalendarEvent;\n supervision?: ISupervision;\n prestations?: IPrestation[];\n gedFiles?: IGedFile[];\n file?: IFile;\n card?: ICard;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IBalanceSheet.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IBalanceSheet.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ISupervision } from './ISupervision';\nimport { IPrestation } from './IPrestation';\nimport { IGedFile } from './IGedFile';\nimport { IFile } from './IFile';\nimport { ICard } from './ICard';\n\n// balanceSheet\nexport interface IBalanceSheet {\n id?: number;\n state: number;\n dateBalanceSend?: Date;\n deadline?: Date;\n turnover?: number;\n netIncome?: number;\n total?: number;\n token?: string | null;\n idFile?: number;\n attestationDetail?: string;\n endDate?: Date;\n bankCollectingState?: number;\n idExercice?: number;\n idCalendarEvent?: number;\n idCard?: number;\n createdAt?: Date;\n updatedAt?: Date;\n\n // Associations\n exercice?: IExercice;\n calendarEvent?: ICalendarEvent;\n supervision?: ISupervision;\n prestations?: IPrestation[];\n gedFiles?: IGedFile[];\n file?: IFile;\n card?: ICard;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICard.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO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AAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICard.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"","sourcesContent":["import { CardType, CardState } from '../../Enum/Card';\nimport { IUser } from './IUser';\nimport { ISociety } from './ISociety';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ICustomerVat } from './ICustomerVat';\nimport { ICardHistory } from './ICardHistory';\nimport { IComment } from './IComment';\n\nexport interface ICard {\n id?: number;\n
|
|
1
|
+
{"version":3,"file":"ICard.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"","sourcesContent":["import { CardType, CardState } from '../../Enum/Card';\nimport { IUser } from './IUser';\nimport { ISociety } from './ISociety';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ICustomerVat } from './ICustomerVat';\nimport { ICardHistory } from './ICardHistory';\nimport { IComment } from './IComment';\n\nexport interface ICard {\n id?: number;\n type: CardType;\n state: CardState;\n isManual: boolean;\n plannedAt?: Date;\n idUser: number;\n idSociety: number;\n createdAt?: Date;\n updatedAt?: Date;\n deletedAt?: Date;\n\n // Associations\n user?: IUser;\n society?: ISociety;\n balanceSheet?: IBalanceSheet;\n customerVat?: ICustomerVat;\n events?: ICalendarEvent[];\n history?: ICardHistory[];\n comment?: IComment;\n}\n"]}
|
|
@@ -1 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CAAC;IACb,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,cAAc,CAAC,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICustomerVat.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICustomerVat.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { IMail } from './IMail';\nimport { IChecklist } from './IChecklist';\nimport { IVatDeclaration } from './IVatDeclaration';\nimport { CustomerVatState, CustomerVatType } from '../../Enum/CustomerVat';\n\n// customersTva\nexport interface ICustomerVat {\n id?: number;\n stateAmount: number;\n amount: number;\n type: CustomerVatType;\n state: CustomerVatState;\n status: number | null;\n idExercice: number;\n vatDate: Date | null;\n isCA12: boolean;\n amountBaseTva: number | null;\n comment: string | null;\n token: string | null;\n acceptation: boolean | null;\n acceptationDate: Date | null;\n idMail: number | null;\n idVatDeclaration?: number | null; // Obsolète\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n exercice?: IExercice;\n mail?: IMail;\n checklist?: IChecklist;\n vatDeclaration?: IVatDeclaration;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ICustomerVat.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICustomerVat.ts"],"names":[],"mappings":"","sourcesContent":["import { IExercice } from './IExercice';\nimport { IMail } from './IMail';\nimport { IChecklist } from './IChecklist';\nimport { IVatDeclaration } from './IVatDeclaration';\nimport { CustomerVatState, CustomerVatType } from '../../Enum/CustomerVat';\n\n// customersTva\nexport interface ICustomerVat {\n id?: number;\n stateAmount: number;\n amount: number;\n type: CustomerVatType;\n state: CustomerVatState;\n status: number | null;\n idExercice: number;\n vatDate: Date | null;\n isCA12: boolean;\n amountBaseTva: number | null;\n comment: string | null;\n token: string | null;\n acceptation: boolean | null;\n acceptationDate: Date | null;\n idMail: number | null;\n idCard: number | null;\n idVatDeclaration?: number | null; // Obsolète\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n exercice?: IExercice;\n mail?: IMail;\n checklist?: IChecklist;\n vatDeclaration?: IVatDeclaration;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./decorators"), exports);
|
|
|
23
23
|
__exportStar(require("./documents"), exports);
|
|
24
24
|
__exportStar(require("./balanceSheetModule"), exports);
|
|
25
25
|
__exportStar(require("./siretValidation"), exports);
|
|
26
|
+
__exportStar(require("./statutsGeneration"), exports);
|
|
26
27
|
__exportStar(require("./email"), exports);
|
|
27
28
|
__exportStar(require("./prestation"), exports);
|
|
28
29
|
__exportStar(require("./task"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,kDAAwE;AAA/D,6HAAA,gCAAgC,OAAA;AACzC,gDAA8B;AAC9B,oDAAkC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './email';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport { getCerfa3517DDRRegistrationField } from './vat/3517/century23';\nexport * from './bankAccount';\nexport * from './commercialOffer';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,kEAAgD;AAChD,oEAAkD;AAClD,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,kDAAwE;AAA/D,6HAAA,gCAAgC,OAAA;AACzC,gDAA8B;AAC9B,oDAAkC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport { getCerfa3517DDRRegistrationField } from './vat/3517/century23';\nexport * from './bankAccount';\nexport * from './commercialOffer';\n"]}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
2
|
+
import { PrestationType } from '../types/Enum/PrestationType';
|
|
3
|
+
export declare const legalNoticesCosts: Record<number, number>;
|
|
4
|
+
export declare const courtCosts: Record<number, number>;
|
|
5
|
+
export declare const features: ({
|
|
6
|
+
text: string;
|
|
7
|
+
detail: null;
|
|
8
|
+
offers: PrestationType[];
|
|
9
|
+
hidden: PrestationType[];
|
|
10
|
+
} | {
|
|
11
|
+
text: string;
|
|
12
|
+
detail: null;
|
|
13
|
+
offers: PrestationType[];
|
|
14
|
+
hidden?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
text: string;
|
|
17
|
+
detail: string;
|
|
18
|
+
offers: PrestationType[];
|
|
19
|
+
hidden?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export declare const justCreation: {
|
|
22
|
+
id: PrestationType;
|
|
23
|
+
tag: null;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
price: number;
|
|
27
|
+
priceInformation: string;
|
|
28
|
+
additionalCosts: string;
|
|
29
|
+
features: ({
|
|
30
|
+
text: string;
|
|
31
|
+
detail: null;
|
|
32
|
+
offers: PrestationType[];
|
|
33
|
+
hidden: PrestationType[];
|
|
34
|
+
} | {
|
|
35
|
+
text: string;
|
|
36
|
+
detail: null;
|
|
37
|
+
offers: PrestationType[];
|
|
38
|
+
hidden?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
text: string;
|
|
41
|
+
detail: string;
|
|
42
|
+
offers: PrestationType[];
|
|
43
|
+
hidden?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
legalForms: LegalFormTypeEnum[];
|
|
46
|
+
};
|
|
47
|
+
export declare const justStatuts: {
|
|
48
|
+
id: PrestationType;
|
|
49
|
+
tag: null;
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
price: number;
|
|
53
|
+
priceInformation: string;
|
|
54
|
+
additionalCosts: string;
|
|
55
|
+
features: ({
|
|
56
|
+
text: string;
|
|
57
|
+
detail: null;
|
|
58
|
+
offers: PrestationType[];
|
|
59
|
+
hidden: PrestationType[];
|
|
60
|
+
} | {
|
|
61
|
+
text: string;
|
|
62
|
+
detail: null;
|
|
63
|
+
offers: PrestationType[];
|
|
64
|
+
hidden?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
text: string;
|
|
67
|
+
detail: string;
|
|
68
|
+
offers: PrestationType[];
|
|
69
|
+
hidden?: undefined;
|
|
70
|
+
})[];
|
|
71
|
+
legalForms: LegalFormTypeEnum[];
|
|
72
|
+
};
|
|
73
|
+
export declare const creaSociete: {
|
|
74
|
+
id: PrestationType;
|
|
75
|
+
tag: string;
|
|
76
|
+
title: string;
|
|
77
|
+
description: string;
|
|
78
|
+
price: Record<number, number>;
|
|
79
|
+
priceInformation: string;
|
|
80
|
+
additionalCosts: string;
|
|
81
|
+
features: ({
|
|
82
|
+
text: string;
|
|
83
|
+
detail: null;
|
|
84
|
+
offers: PrestationType[];
|
|
85
|
+
hidden: PrestationType[];
|
|
86
|
+
} | {
|
|
87
|
+
text: string;
|
|
88
|
+
detail: null;
|
|
89
|
+
offers: PrestationType[];
|
|
90
|
+
hidden?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
text: string;
|
|
93
|
+
detail: string;
|
|
94
|
+
offers: PrestationType[];
|
|
95
|
+
hidden?: undefined;
|
|
96
|
+
})[];
|
|
97
|
+
legalForms: LegalFormTypeEnum[];
|
|
98
|
+
};
|
|
99
|
+
export declare const creaEIMicro: {
|
|
100
|
+
id: PrestationType;
|
|
101
|
+
tag: null;
|
|
102
|
+
title: string;
|
|
103
|
+
description: string;
|
|
104
|
+
price: number;
|
|
105
|
+
priceInformation: string;
|
|
106
|
+
additionalCosts: string;
|
|
107
|
+
features: ({
|
|
108
|
+
text: string;
|
|
109
|
+
detail: null;
|
|
110
|
+
offers: PrestationType[];
|
|
111
|
+
hidden: PrestationType[];
|
|
112
|
+
} | {
|
|
113
|
+
text: string;
|
|
114
|
+
detail: null;
|
|
115
|
+
offers: PrestationType[];
|
|
116
|
+
hidden?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
text: string;
|
|
119
|
+
detail: string;
|
|
120
|
+
offers: PrestationType[];
|
|
121
|
+
hidden?: undefined;
|
|
122
|
+
})[];
|
|
123
|
+
legalForms: LegalFormTypeEnum[];
|
|
124
|
+
};
|
|
125
|
+
export declare const offers: ({
|
|
126
|
+
id: PrestationType;
|
|
127
|
+
tag: null;
|
|
128
|
+
title: string;
|
|
129
|
+
description: string;
|
|
130
|
+
price: number;
|
|
131
|
+
priceInformation: string;
|
|
132
|
+
additionalCosts: string;
|
|
133
|
+
features: ({
|
|
134
|
+
text: string;
|
|
135
|
+
detail: null;
|
|
136
|
+
offers: PrestationType[];
|
|
137
|
+
hidden: PrestationType[];
|
|
138
|
+
} | {
|
|
139
|
+
text: string;
|
|
140
|
+
detail: null;
|
|
141
|
+
offers: PrestationType[];
|
|
142
|
+
hidden?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
text: string;
|
|
145
|
+
detail: string;
|
|
146
|
+
offers: PrestationType[];
|
|
147
|
+
hidden?: undefined;
|
|
148
|
+
})[];
|
|
149
|
+
legalForms: LegalFormTypeEnum[];
|
|
150
|
+
} | {
|
|
151
|
+
id: PrestationType;
|
|
152
|
+
tag: string;
|
|
153
|
+
title: string;
|
|
154
|
+
description: string;
|
|
155
|
+
price: Record<number, number>;
|
|
156
|
+
priceInformation: string;
|
|
157
|
+
additionalCosts: string;
|
|
158
|
+
features: ({
|
|
159
|
+
text: string;
|
|
160
|
+
detail: null;
|
|
161
|
+
offers: PrestationType[];
|
|
162
|
+
hidden: PrestationType[];
|
|
163
|
+
} | {
|
|
164
|
+
text: string;
|
|
165
|
+
detail: null;
|
|
166
|
+
offers: PrestationType[];
|
|
167
|
+
hidden?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
text: string;
|
|
170
|
+
detail: string;
|
|
171
|
+
offers: PrestationType[];
|
|
172
|
+
hidden?: undefined;
|
|
173
|
+
})[];
|
|
174
|
+
legalForms: LegalFormTypeEnum[];
|
|
175
|
+
})[];
|
|
176
|
+
export declare const getStatutsAmount: (idLegalForm: LegalFormTypeEnum, idPrestationList: PrestationType) => number;
|
|
177
|
+
//# sourceMappingURL=statutsGeneration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statutsGeneration.d.ts","sourceRoot":"","sources":["../../../ts/utils/statutsGeneration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOpD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAO7C,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;IAgCpB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAUvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAevB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAWvB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwD,CAAC;AAE5E,eAAO,MAAM,gBAAgB,gBAAiB,iBAAiB,oBAAoB,cAAc,KAAG,MAWnG,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStatutsAmount = exports.offers = exports.creaEIMicro = exports.creaSociete = exports.justStatuts = exports.justCreation = exports.features = exports.courtCosts = exports.legalNoticesCosts = void 0;
|
|
4
|
+
const LegalForm_1 = require("../types/Enum/LegalForm");
|
|
5
|
+
const PrestationType_1 = require("../types/Enum/PrestationType");
|
|
6
|
+
exports.legalNoticesCosts = {
|
|
7
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 138,
|
|
8
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 193,
|
|
9
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 121,
|
|
10
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 144,
|
|
11
|
+
[LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,
|
|
12
|
+
[LegalForm_1.LegalFormTypeEnum.EI]: 0,
|
|
13
|
+
};
|
|
14
|
+
exports.courtCosts = {
|
|
15
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 77.23,
|
|
16
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 77.23,
|
|
17
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 77.23,
|
|
18
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 77.23,
|
|
19
|
+
[LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,
|
|
20
|
+
[LegalForm_1.LegalFormTypeEnum.EI]: 39,
|
|
21
|
+
};
|
|
22
|
+
exports.features = [
|
|
23
|
+
{
|
|
24
|
+
text: 'Statuts + dossier complet',
|
|
25
|
+
detail: null,
|
|
26
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2],
|
|
27
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: 'Dossier complet',
|
|
31
|
+
detail: null,
|
|
32
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
33
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
text: 'Statuts',
|
|
37
|
+
detail: null,
|
|
38
|
+
offers: [PrestationType_1.PrestationType.STATUTS_FREE],
|
|
39
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
text: 'Assistance mail et téléphonique',
|
|
43
|
+
detail: null,
|
|
44
|
+
offers: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
45
|
+
},
|
|
46
|
+
{ text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE] },
|
|
47
|
+
{
|
|
48
|
+
text: 'Immatriculation',
|
|
49
|
+
detail: '(sous réserve du guichet unique)',
|
|
50
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
51
|
+
},
|
|
52
|
+
{ text: 'Assurance anti-rejet', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2] },
|
|
53
|
+
{ text: 'Vérification du dossier', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2] },
|
|
54
|
+
];
|
|
55
|
+
exports.justCreation = {
|
|
56
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_1,
|
|
57
|
+
tag: null,
|
|
58
|
+
title: 'Just’ Création',
|
|
59
|
+
description: 'Une création en quelques clics',
|
|
60
|
+
price: 0,
|
|
61
|
+
priceInformation: 'HT',
|
|
62
|
+
additionalCosts: '+ Frais de greffe + frais d’annonce légale',
|
|
63
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_FREE)),
|
|
64
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
65
|
+
};
|
|
66
|
+
exports.justStatuts = {
|
|
67
|
+
id: PrestationType_1.PrestationType.STATUTS_FREE,
|
|
68
|
+
tag: null,
|
|
69
|
+
title: 'Just’ Statuts',
|
|
70
|
+
description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',
|
|
71
|
+
price: 79,
|
|
72
|
+
priceInformation: 'HT',
|
|
73
|
+
additionalCosts: 'Annonce légale et frais de greffe non inclus',
|
|
74
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_FREE)),
|
|
75
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
76
|
+
};
|
|
77
|
+
exports.creaSociete = {
|
|
78
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_2,
|
|
79
|
+
tag: 'Populaire',
|
|
80
|
+
title: 'Full\'Créa',
|
|
81
|
+
description: 'Création de société de A à Z, réalisée en toute conformité.',
|
|
82
|
+
price: {
|
|
83
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 179,
|
|
84
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 219,
|
|
85
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 179,
|
|
86
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 219,
|
|
87
|
+
},
|
|
88
|
+
priceInformation: 'HT',
|
|
89
|
+
additionalCosts: '+ frais de greffe + frais d’annonce légale',
|
|
90
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_OPTION_2)),
|
|
91
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
92
|
+
};
|
|
93
|
+
exports.creaEIMicro = {
|
|
94
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_AE,
|
|
95
|
+
tag: null,
|
|
96
|
+
title: 'Créa EI et Micro',
|
|
97
|
+
description: 'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',
|
|
98
|
+
price: 60,
|
|
99
|
+
priceInformation: 'HT',
|
|
100
|
+
additionalCosts: '+ 39€ HT de frais de greffe',
|
|
101
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_OPTION_AE)),
|
|
102
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalForm_1.LegalFormTypeEnum.EI],
|
|
103
|
+
};
|
|
104
|
+
exports.offers = [exports.justCreation, exports.creaEIMicro, exports.justStatuts, exports.creaSociete];
|
|
105
|
+
const getStatutsAmount = (idLegalForm, idPrestationList) => {
|
|
106
|
+
const offer = exports.offers.find((e) => e.id === idPrestationList);
|
|
107
|
+
const price = typeof offer.price === 'object'
|
|
108
|
+
? offer.price[idLegalForm]
|
|
109
|
+
: offer.price;
|
|
110
|
+
return price +
|
|
111
|
+
exports.legalNoticesCosts[idLegalForm] +
|
|
112
|
+
exports.courtCosts[idLegalForm];
|
|
113
|
+
};
|
|
114
|
+
exports.getStatutsAmount = getStatutsAmount;
|
|
115
|
+
//# sourceMappingURL=statutsGeneration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statutsGeneration.js","sourceRoot":"","sources":["../../../ts/utils/statutsGeneration.ts"],"names":[],"mappings":";;;AAAA,uDAA4D;AAC5D,iEAA8D;AAEjD,QAAA,iBAAiB,GAA2B;IACvD,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,GAAG,CAAC,EAAE,GAAG;IAC5B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACxC,CAAC,6BAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;CAC1B,C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Q,EAAE,gBAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,+BAAc,CAAC,iBAAiB,CAAC,CAAC;IACrF,UAAU,EAAE,CAAC,6BAAiB,CAAC,iBAAiB,EAAE,6BAAiB,CAAC,EAAE,CAAC;CACxE,CAAC;AAEW,QAAA,MAAM,GAAG,CAAC,oBAAY,EAAE,mBAAW,EAAE,mBAAW,EAAE,mBAAW,CAAC,CAAC;AAErE,MAAM,gBAAgB,GAAG,CAAC,WAA8B,EAAE,gBAAgC,EAAU,EAAE;IAC3G,MAAM,KAAK,GAAG,cAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,gBAAgB,CAAE,CAAC;IAE7D,MAAM,KAAK,GACP,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;QAC7B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;QAC1B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IAEpB,OAAO,KAAK;QACR,yBAAiB,CAAC,WAAW,CAAC;QAC9B,kBAAU,CAAC,WAAW,CAAC,CAAC;AAC9B,CAAC,CAAC;AAXW,QAAA,gBAAgB,oBAW3B","sourcesContent":["import { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationType } from '../types/Enum/PrestationType';\n\nexport const legalNoticesCosts: Record<number, number> = {\n [LegalFormTypeEnum.SASU]: 138,\n [LegalFormTypeEnum.SAS]: 193,\n [LegalFormTypeEnum.EURL]: 121,\n [LegalFormTypeEnum.SARL]: 144,\n [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,\n [LegalFormTypeEnum.EI]: 0,\n};\n\nexport const courtCosts: Record<number, number> = {\n [LegalFormTypeEnum.SASU]: 77.23,\n [LegalFormTypeEnum.SAS]: 77.23,\n [LegalFormTypeEnum.EURL]: 77.23,\n [LegalFormTypeEnum.SARL]: 77.23,\n [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,\n [LegalFormTypeEnum.EI]: 39,\n};\n\nexport const features = [\n {\n text: 'Statuts + dossier complet',\n detail: null,\n offers: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],\n hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_AE],\n },\n {\n text: 'Dossier complet',\n detail: null,\n offers: [PrestationType.STATUTS_OPTION_AE],\n hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],\n },\n {\n text: 'Statuts',\n detail: null,\n offers: [PrestationType.STATUTS_FREE],\n hidden: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n {\n text: 'Assistance mail et téléphonique',\n detail: null,\n offers: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n { text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE] },\n {\n text: 'Immatriculation',\n detail: '(sous réserve du guichet unique)',\n offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n { text: 'Assurance anti-rejet', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },\n { text: 'Vérification du dossier', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },\n];\n\nexport const justCreation = {\n id: PrestationType.STATUTS_OPTION_1,\n tag: null,\n title: 'Just’ Création',\n description: 'Une création en quelques clics',\n price: 0,\n priceInformation: 'HT',\n additionalCosts: '+ Frais de greffe + frais d’annonce légale',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const justStatuts = {\n id: PrestationType.STATUTS_FREE,\n tag: null,\n title: 'Just’ Statuts',\n description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',\n price: 79,\n priceInformation: 'HT',\n additionalCosts: 'Annonce légale et frais de greffe non inclus',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const creaSociete = {\n id: PrestationType.STATUTS_OPTION_2,\n tag: 'Populaire',\n title: 'Full\\'Créa',\n description: 'Création de société de A à Z, réalisée en toute conformité.',\n price: {\n [LegalFormTypeEnum.SASU]: 179,\n [LegalFormTypeEnum.SAS]: 219,\n [LegalFormTypeEnum.EURL]: 179,\n [LegalFormTypeEnum.SARL]: 219,\n } as Record<number, number>,\n priceInformation: 'HT',\n additionalCosts: '+ frais de greffe + frais d’annonce légale',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_2)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const creaEIMicro = {\n id: PrestationType.STATUTS_OPTION_AE,\n tag: null,\n title: 'Créa EI et Micro',\n description:\n 'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',\n price: 60,\n priceInformation: 'HT',\n additionalCosts: '+ 39€ HT de frais de greffe',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_AE)),\n legalForms: [LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalFormTypeEnum.EI],\n};\n \nexport const offers = [justCreation, creaEIMicro, justStatuts, creaSociete];\n\nexport const getStatutsAmount = (idLegalForm: LegalFormTypeEnum, idPrestationList: PrestationType): number => {\n const offer = offers.find((e) => e.id === idPrestationList)!;\n \n const price =\n typeof offer.price === 'object'\n ? offer.price[idLegalForm]\n : offer.price;\n\n return price +\n legalNoticesCosts[idLegalForm] +\n courtCosts[idLegalForm];\n};"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';
|
|
3
3
|
import { Resource } from '../Resource';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
4
5
|
export declare class BalanceSheet extends Resource {
|
|
5
6
|
getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic>;
|
|
6
7
|
getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic>;
|
|
8
|
+
getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse>;
|
|
7
9
|
createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer>;
|
|
8
10
|
getAttestation(params: QueryBalanceSheetAttestation): Promise<string>;
|
|
9
11
|
getPdf(params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIrF,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAI1G,uBAAuB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1F,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC;IASjG,cAAc,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,MAAM,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IASvD,oBAAoB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIpF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAItE,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;CAGjE"}
|
|
@@ -6,6 +6,9 @@ export class BalanceSheet extends Resource {
|
|
|
6
6
|
getMonthlyStatistics(params) {
|
|
7
7
|
return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
|
|
8
8
|
}
|
|
9
|
+
getMonthlyStatisticsCsv(params) {
|
|
10
|
+
return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });
|
|
11
|
+
}
|
|
9
12
|
createAttestation(idBalanceSheet, params) {
|
|
10
13
|
return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
|
|
11
14
|
responseType: 'arraybuffer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,oBAAoB,CAAC,MAAyC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,uBAAuB,CAAC,MAAyC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,iBAAiB,CAAC,cAAsB,EAAE,MAAqC;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,cAAc,eAAe,EAAE,MAAM,EAAE;YACvF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,MAAoC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,CAAC,MAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,UAAU,mBAAmB,EAAE;YACxE,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,MAA8B;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,UAAU,iCAAiC,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA0B;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACjE,CAAC;IAED,aAAa,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,iBAAiB,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';\nimport { Resource } from '../Resource';\nimport { AxiosResponse } from 'axios';\n\n\nexport class BalanceSheet extends Resource {\n getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {\n return this.axios.$get('/exercice/balanceSheet/statistics', { params });\n }\n\n getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });\n }\n\n getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });\n }\n\n createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {\n return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAttestation(params: QueryBalanceSheetAttestation): Promise<string> {\n return this.axios.$get('/exercice/balanceSheet/attestations', { params });\n }\n\n getPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getFreelanceTurnover(params: { idExercice: number }): Promise<ReadFreelanceTurnover> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/freelanceTurnover`);\n }\n\n update(id: number, params: UpdateBalanceSheet): Promise<IBalanceSheet> {\n return this.axios.$put(`/exercice/balanceSheet/${id}`, params);\n }\n\n getByExercice(idExercice: number): Promise<IBalanceSheet | null> {\n return this.axios.$get(`/exercice/${idExercice}/balance-sheets`);\n }\n}\n"]}
|