@silexpert/core 1.3.144 → 1.3.145-features-0
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/InternalInvoicing.d.ts.map +1 -1
- package/dist/cjs/api/resources/InternalInvoicing.js +12 -0
- package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/cjs/api/resources/Recurrence.d.ts +2 -1
- package/dist/cjs/api/resources/Recurrence.d.ts.map +1 -1
- package/dist/cjs/api/resources/Recurrence.js +5 -0
- package/dist/cjs/api/resources/Recurrence.js.map +1 -1
- package/dist/cjs/api/resources/prestation.d.ts +7 -0
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js +9 -0
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/types/Enum/AIPrompt.js +1 -1
- package/dist/cjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Query.js +14 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
- package/dist/mjs/api/resources/InternalInvoicing.js +12 -0
- package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
- package/dist/mjs/api/resources/Recurrence.d.ts +2 -1
- package/dist/mjs/api/resources/Recurrence.d.ts.map +1 -1
- package/dist/mjs/api/resources/Recurrence.js +5 -0
- package/dist/mjs/api/resources/Recurrence.js.map +1 -1
- package/dist/mjs/api/resources/prestation.d.ts +7 -0
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js +9 -0
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/AIPrompt.js +1 -1
- package/dist/mjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Query.js +14 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +11 -2
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/InternalInvoicing.ts +12 -0
- package/ts/api/resources/Recurrence.ts +8 -0
- package/ts/api/resources/prestation.ts +10 -0
- package/ts/types/Enum/AIPrompt.ts +1 -1
- package/ts/types/Interface/api/commercialManagement/Query.ts +10 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +12 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +9 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}
|
|
@@ -22,6 +22,18 @@ class InternalInvoicing extends Resource_1.Resource {
|
|
|
22
22
|
return this.axios.$post('/internalInvoicing/cutOff/FAE', {});
|
|
23
23
|
case 3:
|
|
24
24
|
return this.axios.$post('/internalInvoicing/cutOff/AAE', {});
|
|
25
|
+
case 4:
|
|
26
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});
|
|
27
|
+
case 5:
|
|
28
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});
|
|
29
|
+
case 6:
|
|
30
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});
|
|
31
|
+
case 7:
|
|
32
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});
|
|
33
|
+
case 8:
|
|
34
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});
|
|
35
|
+
case 9:
|
|
36
|
+
return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});
|
|
25
37
|
default:
|
|
26
38
|
return this.axios.$post('/internalInvoicing/cutOff/PCA', {});
|
|
27
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalInvoicing.js","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":";;;AAMA,0CAAuC;AAEvC,MAAa,iBAAkB,SAAQ,mBAAQ;IAC7C,MAAM,CAAC,MAA+B;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,CAAC,MAAkC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,kCAC3C,MAAM,KACT,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;aACnC,IACD,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAmC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,MAAM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EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC;IAClG,CAAC;CACF;AA3CD,8CA2CC","sourcesContent":["import {\n CreateInternalInvoicing,\n CreateInternalInvoicing2in,\n ReadPCAStat,\n RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n generateCutOff(type: number): Promise<boolean> {\n switch (type) {\n case 1:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n case 2:\n return this.axios.$post('/internalInvoicing/cutOff/FAE', {});\n case 3:\n return this.axios.$post('/internalInvoicing/cutOff/AAE', {});\n case 4:\n return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});\n case 5:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});\n case 6:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});\n case 7:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});\n case 8:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});\n case 9:\n return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});\n default:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n }\n }\n getPCAStat(signal?: AbortSignal): Promise<ReadPCAStat[]> {\n return this.axios.$get('/internalInvoicing/cutOff/PCA-stat', { ...(signal ? { signal } : {}) });\n }\n}\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';
|
|
3
|
-
import { CreateRecurrence, QueryGetAllRecurrences, ReadRecurrencePaginated, UpdateRecurrence } from '../../types';
|
|
3
|
+
import { CreateRecurrence, QueryGetAllRecurrences, QueryRecurrenceRevenueStatistics, ReadRecurrencePaginated, ReadStatisticRecurrentRevenue, UpdateRecurrence } from '../../types';
|
|
4
4
|
export declare class Recurrence extends Resource {
|
|
5
5
|
create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence>;
|
|
6
6
|
update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence>;
|
|
7
7
|
delete(id: number, idEstimateInvoice: number): Promise<true>;
|
|
8
8
|
getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated>;
|
|
9
|
+
getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=Recurrence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recurrence.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIrG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Recurrence.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gCAAgC,EAChC,uBAAuB,EACvB,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIrG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO9F,oBAAoB,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;CAKxG"}
|
|
@@ -18,6 +18,11 @@ class Recurrence extends Resource_1.Resource {
|
|
|
18
18
|
params,
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
+
getRecurrentRevenues(query) {
|
|
22
|
+
return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {
|
|
23
|
+
params: query,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
exports.Recurrence = Recurrence;
|
|
23
28
|
//# sourceMappingURL=Recurrence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAWvC,MAAa,UAAW,SAAQ,mBAAQ;IACtC,MAAM,CAAC,iBAAyB,EAAE,OAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,iBAAiB,cAAc,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB,EAAE,OAAyB;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7G,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,MAAM,CAAC,MAA8B,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE;YAC3D,MAAM;YACN,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,KAAuC;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sDAAsD,EAAE;YAC7E,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,gCAyBC","sourcesContent":["import { Resource } from '../Resource';\nimport { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';\nimport {\n CreateRecurrence,\n QueryGetAllRecurrences,\n QueryRecurrenceRevenueStatistics,\n ReadRecurrencePaginated,\n ReadStatisticRecurrentRevenue,\n UpdateRecurrence,\n} from '../../types';\n\nexport class Recurrence extends Resource {\n create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$post(`/commercial-management/documents/${idEstimateInvoice}/recurrences`, payload);\n }\n\n update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$put(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`, payload);\n }\n\n delete(id: number, idEstimateInvoice: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`);\n }\n\n getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated> {\n return this.axios.$get('/commercial-management/recurrences', {\n signal,\n params,\n });\n }\n\n getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]> {\n return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {\n params: query,\n });\n }\n}\n"]}
|
|
@@ -15,6 +15,13 @@ export declare class Prestation extends Resource {
|
|
|
15
15
|
* @returns { IPrestation }
|
|
16
16
|
*/
|
|
17
17
|
update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation>;
|
|
18
|
+
/**
|
|
19
|
+
* Supprime une prestation et met à jour les références parentes
|
|
20
|
+
* et supprime les revenuesMovements liés
|
|
21
|
+
* @param { number } idPrestation
|
|
22
|
+
* @returns { true }
|
|
23
|
+
*/
|
|
24
|
+
delete(idPrestation: number): Promise<true>;
|
|
18
25
|
/**
|
|
19
26
|
* retourne toutes les prestations juridique d'une société
|
|
20
27
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,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idPrestation}`, params);
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Supprime une prestation et met à jour les références parentes
|
|
26
|
+
* et supprime les revenuesMovements liés
|
|
27
|
+
* @param { number } idPrestation
|
|
28
|
+
* @returns { true }
|
|
29
|
+
*/
|
|
30
|
+
delete(idPrestation) {
|
|
31
|
+
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* retourne toutes les prestations juridique d'une société
|
|
26
35
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AACvC,uCAUqB;AAErB,MAAa,UAAW,SAAQ,mBAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,wBAAwB,CAAC,EAAU;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;IACjE,CAAC;IAEM,mCAAmC,CACxC,MAAgD;QAEhD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;IAEM,iBAAiB,CACtB,EAAU,EACV,MAAwB,EACxB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,gDAChD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAA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C,EAAE,CAAC,KAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,sBAAc,CAAC,UAAU;oBACzB,sBAAc,CAAC,MAAM;oBACrB,sBAAc,CAAC,qBAAqB;oBACpC,sBAAc,CAAC,6BAA6B;oBAC5C,sBAAc,CAAC,sCAAsC;oBACrD,sBAAc,CAAC,8BAA8B;oBAC7C,sBAAc,CAAC,2BAA2B;oBAC1C,sBAAc,CAAC,mBAAmB;oBAClC,sBAAc,CAAC,eAAe;oBAC9B,sBAAc,CAAC,uBAAuB;oBACtC,sBAAc,CAAC,sBAAsB;oBACrC,sBAAc,CAAC,8BAA8B;iBAC9C;aACF,IACD,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAvFD,gCAuFC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * Supprime une prestation et met à jour les références parentes\n * et supprime les revenuesMovements liés\n * @param { number } idPrestation\n * @returns { true }\n */\n public delete(idPrestation: number): Promise<true> {\n return this.axios.$delete(`/prestations/${idPrestation}`);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|
|
@@ -50,7 +50,7 @@ exports.AIPrompt = {
|
|
|
50
50
|
"startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
|
|
51
51
|
"endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
|
|
52
52
|
},
|
|
53
|
-
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
53
|
+
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
54
54
|
Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
|
|
55
55
|
},
|
|
56
56
|
[AIPromptKey.BANK_STATEMENT_PERIOD]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAOY,QAAA,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAOY,QAAA,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YAAY;IAIvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,aAAa,CAAC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AE,CAAC;CAC9B;AAED,qBAAa,mBAAmB;IAK9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,gCAAgC;IAG3C,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryRecentActivity = exports.QueryExportCommercialManagementIntoCSV = exports.QueryCountByStatus = exports.QueryDocumentPaginated = exports.QueryPreviewDocument = exports.QueryNextReference = exports.QueryGetDefaultPayload = exports.QueryInvoice = void 0;
|
|
12
|
+
exports.QueryRecurrenceRevenueStatistics = exports.QueryRecentActivity = exports.QueryExportCommercialManagementIntoCSV = exports.QueryCountByStatus = exports.QueryDocumentPaginated = exports.QueryPreviewDocument = exports.QueryNextReference = exports.QueryGetDefaultPayload = exports.QueryInvoice = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -230,4 +230,17 @@ __decorate([
|
|
|
230
230
|
(0, class_validator_1.IsString)(),
|
|
231
231
|
__metadata("design:type", String)
|
|
232
232
|
], QueryRecentActivity.prototype, "search", void 0);
|
|
233
|
+
class QueryRecurrenceRevenueStatistics {
|
|
234
|
+
}
|
|
235
|
+
exports.QueryRecurrenceRevenueStatistics = QueryRecurrenceRevenueStatistics;
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, utils_1.ApiProperty)(),
|
|
238
|
+
(0, class_validator_1.IsDateString)(),
|
|
239
|
+
__metadata("design:type", String)
|
|
240
|
+
], QueryRecurrenceRevenueStatistics.prototype, "startDate", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, utils_1.ApiProperty)(),
|
|
243
|
+
(0, class_validator_1.IsDateString)(),
|
|
244
|
+
__metadata("design:type", String)
|
|
245
|
+
], QueryRecurrenceRevenueStatistics.prototype, "endDate", void 0);
|
|
233
246
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+G;AAE/G,6CAAqE;AACrE,sFAA2E;AAC3E,6EAAiG;AACjG,mEAAoE;AAGpE,MAAa,YAAY;CAqCxB;AArCD,oCAqCC;AAjCC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACE;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACE;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACK;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACY;AAKvB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACM;AAMjB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gDACQ;AAMrB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;kDACW;AAgBzB,MAAa,sBAAsB;CAQlC;AARD,wDAQC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AAE;;mDACK","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialMan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GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACK;AAMhB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mDACK;AAGpB,MAAa,sCAAsC;CAkBlD;AAlBD,wFAkBC;AAdC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;yEACM;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;uEACE;AAIjB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;yEACU;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;;qEACmB;AAG/B,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AAZC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACO;AAMd;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;kDACQ;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAGlB,MAAa,gCAAgC;CAQ5C;AARD,4EAQC;AALC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;mEACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;iEACC","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n\nexport class QueryRecurrenceRevenueStatistics {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n}\n"]}
|
|
@@ -106,5 +106,16 @@ export type ReadRecentActivity = {
|
|
|
106
106
|
updatedAt: string;
|
|
107
107
|
item?: IEstimateInvoice | IProductInvoice | IThirdParty;
|
|
108
108
|
};
|
|
109
|
+
export type ReadStatisticRecurrentRevenue = {
|
|
110
|
+
period: string;
|
|
111
|
+
done: {
|
|
112
|
+
totalTaxExcluded: number;
|
|
113
|
+
totalTaxIncluded: number;
|
|
114
|
+
};
|
|
115
|
+
projection: {
|
|
116
|
+
totalTaxExcluded: number;
|
|
117
|
+
totalTaxIncluded: number;
|
|
118
|
+
} | null;
|
|
119
|
+
};
|
|
109
120
|
export {};
|
|
110
121
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAE7E,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,gBAAgB,EAAE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|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qCAAqC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC,6BAA6B,CAAC,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC3C;AAED,qBAAa,4BAA4B;IAGvC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAKlB,IAAI,EAAE,MAAM,CAAK;IAKjB,KAAK,EAAE,MAAM,CAAO;IAMpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.QueryGeneralLedgerThirdParty = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
|
+
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
15
16
|
class QueryGeneralLedgerThirdParty {
|
|
16
17
|
constructor() {
|
|
17
18
|
this.page = 1;
|
|
@@ -46,4 +47,11 @@ __decorate([
|
|
|
46
47
|
(0, class_validator_1.IsNumber)(),
|
|
47
48
|
__metadata("design:type", Number)
|
|
48
49
|
], QueryGeneralLedgerThirdParty.prototype, "limit", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
52
|
+
(0, class_validator_1.IsBoolean)(),
|
|
53
|
+
(0, boolean_transform_1.ToBoolean)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], QueryGeneralLedgerThirdParty.prototype, "omitLettering", void 0);
|
|
49
57
|
//# sourceMappingURL=IGeneralLedgerThirdParty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AAGrE,sFAA2E;AAkC3E,MAAa,4BAA4B;IAAzC;QAgBE,SAAI,GAAW,CAAC,CAAC;QAKjB,UAAK,GAAW,GAAG,CAAC;IAOtB,CAAC;CAAA;AA5BD,oEA4BC;AAzBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;6DACC;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;+DACO;AAKlB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAKjB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS;AAMpB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mEACW","sourcesContent":["import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport interface IGeneralLedgerThirdParty {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: IGeneralLedgerAccountingEntry[];\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadIGeneralLedgerThirdPartyPaginated {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: BasePaginate<IGeneralLedgerAccountingEntry>;\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadGeneralLedgerSummary {\n idThirdParty: number;\n name: string;\n credit: number;\n debit: number;\n balance: number;\n identifier: string;\n entries?: IGeneralLedgerAccountingEntry[];\n}\n\nexport class QueryGeneralLedgerThirdParty {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n page: number = 1;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n limit: number = 100;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}
|
|
@@ -23,6 +23,18 @@ export class InternalInvoicing extends Resource {
|
|
|
23
23
|
return this.axios.$post('/internalInvoicing/cutOff/FAE', {});
|
|
24
24
|
case 3:
|
|
25
25
|
return this.axios.$post('/internalInvoicing/cutOff/AAE', {});
|
|
26
|
+
case 4:
|
|
27
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});
|
|
28
|
+
case 5:
|
|
29
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});
|
|
30
|
+
case 6:
|
|
31
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});
|
|
32
|
+
case 7:
|
|
33
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});
|
|
34
|
+
case 8:
|
|
35
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});
|
|
36
|
+
case 9:
|
|
37
|
+
return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});
|
|
26
38
|
default:
|
|
27
39
|
return this.axios.$post('/internalInvoicing/cutOff/PCA', {});
|
|
28
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalInvoicing.js","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAA+B;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,CAAC,MAAkC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,EAAE;YAChD,GAAG,MAAM;YACT,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAmC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC;IACD,cAAc,CAAC,IAAY;QACzB,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D;gBACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,UAAU,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAClG,CAAC;CACF","sourcesContent":["import {\n CreateInternalInvoicing,\n CreateInternalInvoicing2in,\n ReadPCAStat,\n RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n generateCutOff(type: number): Promise<boolean> {\n switch (type) {\n case 1:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n case 2:\n return this.axios.$post('/internalInvoicing/cutOff/FAE', {});\n case 3:\n return this.axios.$post('/internalInvoicing/cutOff/AAE', {});\n default:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n }\n }\n getPCAStat(signal?: AbortSignal): Promise<ReadPCAStat[]> {\n return this.axios.$get('/internalInvoicing/cutOff/PCA-stat', { ...(signal ? { signal } : {}) });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"InternalInvoicing.js","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAA+B;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,CAAC,MAAkC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,EAAE;YAChD,GAAG,MAAM;YACT,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAmC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC;IACD,cAAc,CAAC,IAAY;QACzB,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,CAAC,CAAC;YAChE,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kDAAkD,EAAE,EAAE,CAAC,CAAC;YAClF,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oDAAoD,EAAE,EAAE,CAAC,CAAC;YACpF,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sDAAsD,EAAE,EAAE,CAAC,CAAC;YACtF,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAE,CAAC,CAAC;YACxF,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sCAAsC,EAAE,EAAE,CAAC,CAAC;YACtE;gBACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,UAAU,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAClG,CAAC;CACF","sourcesContent":["import {\n CreateInternalInvoicing,\n CreateInternalInvoicing2in,\n ReadPCAStat,\n RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n generateCutOff(type: number): Promise<boolean> {\n switch (type) {\n case 1:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n case 2:\n return this.axios.$post('/internalInvoicing/cutOff/FAE', {});\n case 3:\n return this.axios.$post('/internalInvoicing/cutOff/AAE', {});\n case 4:\n return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});\n case 5:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});\n case 6:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});\n case 7:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});\n case 8:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});\n case 9:\n return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});\n default:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n }\n }\n getPCAStat(signal?: AbortSignal): Promise<ReadPCAStat[]> {\n return this.axios.$get('/internalInvoicing/cutOff/PCA-stat', { ...(signal ? { signal } : {}) });\n }\n}\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';
|
|
3
|
-
import { CreateRecurrence, QueryGetAllRecurrences, ReadRecurrencePaginated, UpdateRecurrence } from '../../types';
|
|
3
|
+
import { CreateRecurrence, QueryGetAllRecurrences, QueryRecurrenceRevenueStatistics, ReadRecurrencePaginated, ReadStatisticRecurrentRevenue, UpdateRecurrence } from '../../types';
|
|
4
4
|
export declare class Recurrence extends Resource {
|
|
5
5
|
create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence>;
|
|
6
6
|
update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence>;
|
|
7
7
|
delete(id: number, idEstimateInvoice: number): Promise<true>;
|
|
8
8
|
getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated>;
|
|
9
|
+
getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=Recurrence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recurrence.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIrG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Recurrence.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gCAAgC,EAChC,uBAAuB,EACvB,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIrG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO9F,oBAAoB,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;CAKxG"}
|
|
@@ -15,5 +15,10 @@ export class Recurrence extends Resource {
|
|
|
15
15
|
params,
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
getRecurrentRevenues(query) {
|
|
19
|
+
return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {
|
|
20
|
+
params: query,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
//# sourceMappingURL=Recurrence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAWvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,iBAAyB,EAAE,OAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,iBAAiB,cAAc,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB,EAAE,OAAyB;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7G,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,MAAM,CAAC,MAA8B,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE;YAC3D,MAAM;YACN,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,KAAuC;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sDAAsD,EAAE;YAC7E,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';\nimport {\n CreateRecurrence,\n QueryGetAllRecurrences,\n QueryRecurrenceRevenueStatistics,\n ReadRecurrencePaginated,\n ReadStatisticRecurrentRevenue,\n UpdateRecurrence,\n} from '../../types';\n\nexport class Recurrence extends Resource {\n create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$post(`/commercial-management/documents/${idEstimateInvoice}/recurrences`, payload);\n }\n\n update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$put(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`, payload);\n }\n\n delete(id: number, idEstimateInvoice: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`);\n }\n\n getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated> {\n return this.axios.$get('/commercial-management/recurrences', {\n signal,\n params,\n });\n }\n\n getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]> {\n return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {\n params: query,\n });\n }\n}\n"]}
|
|
@@ -15,6 +15,13 @@ export declare class Prestation extends Resource {
|
|
|
15
15
|
* @returns { IPrestation }
|
|
16
16
|
*/
|
|
17
17
|
update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation>;
|
|
18
|
+
/**
|
|
19
|
+
* Supprime une prestation et met à jour les références parentes
|
|
20
|
+
* et supprime les revenuesMovements liés
|
|
21
|
+
* @param { number } idPrestation
|
|
22
|
+
* @returns { true }
|
|
23
|
+
*/
|
|
24
|
+
delete(idPrestation: number): Promise<true>;
|
|
18
25
|
/**
|
|
19
26
|
* retourne toutes les prestations juridique d'une société
|
|
20
27
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oCAAoC,EACpC,WAAW,EACX,QAAQ,EAER,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlE;;;;;OA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MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;;OAKG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD;;;;OAIG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAI5D,mCAAmC,CACxC,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAI3B,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,eAAe,EACxB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAQ/C,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuB5G,wBAAwB,CAC7B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,WAAW,CAAC;CAGxB"}
|
|
@@ -18,6 +18,15 @@ export class Prestation extends Resource {
|
|
|
18
18
|
update(idPrestation, params) {
|
|
19
19
|
return this.axios.$put(`/prestation/${idPrestation}`, params);
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Supprime une prestation et met à jour les références parentes
|
|
23
|
+
* et supprime les revenuesMovements liés
|
|
24
|
+
* @param { number } idPrestation
|
|
25
|
+
* @returns { true }
|
|
26
|
+
*/
|
|
27
|
+
delete(idPrestation) {
|
|
28
|
+
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
29
|
+
}
|
|
21
30
|
/**
|
|
22
31
|
* retourne toutes les prestations juridique d'une société
|
|
23
32
|
* @param { number } id
|
|
@@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AC,IAAI,CAAC,cAAc,EAAE,cAAc,EAAE;YACrD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,cAAc,CAAC,UAAU;oBACzB,cAAc,CAAC,MAAM;oBACrB,cAAc,CAAC,qBAAqB;oBACpC,cAAc,CAAC,6BAA6B;oBAC5C,cAAc,CAAC,sCAAsC;oBACrD,cAAc,CAAC,8BAA8B;oBAC7C,cAAc,CAAC,2BAA2B;oBAC1C,cAAc,CAAC,mBAAmB;oBAClC,cAAc,CAAC,eAAe;oBAC9B,cAAc,CAAC,uBAAuB;oBACtC,cAAc,CAAC,sBAAsB;oBACrC,cAAc,CAAC,8BAA8B;iBAC9C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAKL,cAAc,GAKf,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,YAAY,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,wBAAwB,CAAC,EAAU;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;IACjE,CAAC;IAEM,mCAAmC,CACxC,MAAgD;QAEhD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;IAEM,iBAAiB,CACtB,EAAU,EACV,MAAwB,EACxB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,EAAE;YACrD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEM,uBAAuB,CAAC,EAAU,EAAE,WAAyB,EAAE,MAAoB;QACxF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,EAAE;YACrD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,cAAc,CAAC,UAAU;oBACzB,cAAc,CAAC,MAAM;oBACrB,cAAc,CAAC,qBAAqB;oBACpC,cAAc,CAAC,6BAA6B;oBAC5C,cAAc,CAAC,sCAAsC;oBACrD,cAAc,CAAC,8BAA8B;oBAC7C,cAAc,CAAC,2BAA2B;oBAC1C,cAAc,CAAC,mBAAmB;oBAClC,cAAc,CAAC,eAAe;oBAC9B,cAAc,CAAC,uBAAuB;oBACtC,cAAc,CAAC,sBAAsB;oBACrC,cAAc,CAAC,8BAA8B;iBAC9C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * Supprime une prestation et met à jour les références parentes\n * et supprime les revenuesMovements liés\n * @param { number } idPrestation\n * @returns { true }\n */\n public delete(idPrestation: number): Promise<true> {\n return this.axios.$delete(`/prestations/${idPrestation}`);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|
|
@@ -47,7 +47,7 @@ export const AIPrompt = {
|
|
|
47
47
|
"startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
|
|
48
48
|
"endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
|
|
49
49
|
},
|
|
50
|
-
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
50
|
+
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
51
51
|
Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
|
|
52
52
|
},
|
|
53
53
|
[AIPromptKey.BANK_STATEMENT_PERIOD]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAOD,MAAM,CAAC,MAAM,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAOD,MAAM,CAAC,MAAM,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AACA,OAAO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AO,CAAC;IAKlB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,kBAAkB;IAI7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,sCAAsC;IAIjD,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,qBAAa,mBAAmB;IAK9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,gCAAgC;IAG3C,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -251,4 +251,18 @@ __decorate([
|
|
|
251
251
|
IsString(),
|
|
252
252
|
__metadata("design:type", String)
|
|
253
253
|
], QueryRecentActivity.prototype, "search", void 0);
|
|
254
|
+
export class QueryRecurrenceRevenueStatistics {
|
|
255
|
+
startDate;
|
|
256
|
+
endDate;
|
|
257
|
+
}
|
|
258
|
+
__decorate([
|
|
259
|
+
ApiProperty(),
|
|
260
|
+
IsDateString(),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], QueryRecurrenceRevenueStatistics.prototype, "startDate", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
ApiProperty(),
|
|
265
|
+
IsDateString(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], QueryRecurrenceRevenueStatistics.prototype, "endDate", void 0);
|
|
254
268
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/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M,OAAO,kBAAkB;IAI7B,OAAO,CAAU;IAKjB,OAAO,CAAU;IAKjB,MAAM,CAAU;IAMhB,OAAO,CAAW;CACnB;AAjBC;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACK;AAMhB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACK;AAGpB,MAAM,OAAO,sCAAsC;IAIjD,SAAS,CAAU;IAKnB,OAAO,CAAU;IAIjB,SAAS,CAAS;IAIlB,KAAK,CAAwB;CAC9B;AAdC;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;yEACM;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;uEACE;AAIjB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;yEACU;AAIlB;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;qEACmB;AAG/B,MAAM,OAAO,mBAAmB;IAK9B,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,MAAM,CAAU;CACjB;AAZC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;iDACO;AAMd;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;kDACQ;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACK","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,E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,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACK;AAMhB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACK;AAGpB,MAAM,OAAO,sCAAsC;IAIjD,SAAS,CAAU;IAKnB,OAAO,CAAU;IAIjB,SAAS,CAAS;IAIlB,KAAK,CAAwB;CAC9B;AAdC;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;yEACM;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;uEACE;AAIjB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;yEACU;AAIlB;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;qEACmB;AAG/B,MAAM,OAAO,mBAAmB;IAK9B,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,MAAM,CAAU;CACjB;AAZC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;iDACO;AAMd;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;kDACQ;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACK;AAGlB,MAAM,OAAO,gCAAgC;IAG3C,SAAS,CAAS;IAIlB,OAAO,CAAS;CACjB;AALC;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;mEACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;iEACC","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n\nexport class QueryRecurrenceRevenueStatistics {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n}\n"]}
|
|
@@ -106,5 +106,16 @@ export type ReadRecentActivity = {
|
|
|
106
106
|
updatedAt: string;
|
|
107
107
|
item?: IEstimateInvoice | IProductInvoice | IThirdParty;
|
|
108
108
|
};
|
|
109
|
+
export type ReadStatisticRecurrentRevenue = {
|
|
110
|
+
period: string;
|
|
111
|
+
done: {
|
|
112
|
+
totalTaxExcluded: number;
|
|
113
|
+
totalTaxIncluded: number;
|
|
114
|
+
};
|
|
115
|
+
projection: {
|
|
116
|
+
totalTaxExcluded: number;
|
|
117
|
+
totalTaxIncluded: number;
|
|
118
|
+
} | null;
|
|
119
|
+
};
|
|
109
120
|
export {};
|
|
110
121
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAE7E,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE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AC1B,GAAG,IAAI,CAAC;CACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings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ata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiProperty } from '../../../../utils';
|
|
10
|
+
import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
12
13
|
export class QueryGeneralLedgerThirdParty {
|
|
13
14
|
startDate;
|
|
14
15
|
endDate;
|
|
15
16
|
idSociety;
|
|
16
17
|
page = 1;
|
|
17
18
|
limit = 100;
|
|
19
|
+
omitLettering;
|
|
18
20
|
}
|
|
19
21
|
__decorate([
|
|
20
22
|
ApiProperty(),
|
|
@@ -43,4 +45,11 @@ __decorate([
|
|
|
43
45
|
IsNumber(),
|
|
44
46
|
__metadata("design:type", Number)
|
|
45
47
|
], QueryGeneralLedgerThirdParty.prototype, "limit", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
ApiPropertyOptional(),
|
|
50
|
+
IsBoolean(),
|
|
51
|
+
ToBoolean(),
|
|
52
|
+
IsOptional(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], QueryGeneralLedgerThirdParty.prototype, "omitLettering", void 0);
|
|
46
55
|
//# sourceMappingURL=IGeneralLedgerThirdParty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAkC3E,MAAM,OAAO,4BAA4B;IAGvC,SAAS,CAAS;IAIlB,OAAO,CAAS;IAIhB,SAAS,CAAS;IAKlB,IAAI,GAAW,CAAC,CAAC;IAKjB,KAAK,GAAW,GAAG,CAAC;IAMpB,aAAa,CAAW;CACzB;AAzBC;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;+DACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;6DACC;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;+DACO;AAKlB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;0DACM;AAKjB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACS;AAMpB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mEACW","sourcesContent":["import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport interface IGeneralLedgerThirdParty {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: IGeneralLedgerAccountingEntry[];\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadIGeneralLedgerThirdPartyPaginated {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: BasePaginate<IGeneralLedgerAccountingEntry>;\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadGeneralLedgerSummary {\n idThirdParty: number;\n name: string;\n credit: number;\n debit: number;\n balance: number;\n identifier: string;\n entries?: IGeneralLedgerAccountingEntry[];\n}\n\nexport class QueryGeneralLedgerThirdParty {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n page: number = 1;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n limit: number = 100;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.145-features-0",
|
|
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",
|
|
@@ -30,6 +30,18 @@ export class InternalInvoicing extends Resource {
|
|
|
30
30
|
return this.axios.$post('/internalInvoicing/cutOff/FAE', {});
|
|
31
31
|
case 3:
|
|
32
32
|
return this.axios.$post('/internalInvoicing/cutOff/AAE', {});
|
|
33
|
+
case 4:
|
|
34
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});
|
|
35
|
+
case 5:
|
|
36
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});
|
|
37
|
+
case 6:
|
|
38
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});
|
|
39
|
+
case 7:
|
|
40
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});
|
|
41
|
+
case 8:
|
|
42
|
+
return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});
|
|
43
|
+
case 9:
|
|
44
|
+
return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});
|
|
33
45
|
default:
|
|
34
46
|
return this.axios.$post('/internalInvoicing/cutOff/PCA', {});
|
|
35
47
|
}
|
|
@@ -3,7 +3,9 @@ import { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurre
|
|
|
3
3
|
import {
|
|
4
4
|
CreateRecurrence,
|
|
5
5
|
QueryGetAllRecurrences,
|
|
6
|
+
QueryRecurrenceRevenueStatistics,
|
|
6
7
|
ReadRecurrencePaginated,
|
|
8
|
+
ReadStatisticRecurrentRevenue,
|
|
7
9
|
UpdateRecurrence,
|
|
8
10
|
} from '../../types';
|
|
9
11
|
|
|
@@ -26,4 +28,10 @@ export class Recurrence extends Resource {
|
|
|
26
28
|
params,
|
|
27
29
|
});
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]> {
|
|
33
|
+
return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {
|
|
34
|
+
params: query,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
29
37
|
}
|
|
@@ -32,6 +32,16 @@ export class Prestation extends Resource {
|
|
|
32
32
|
return this.axios.$put(`/prestation/${idPrestation}`, params);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Supprime une prestation et met à jour les références parentes
|
|
37
|
+
* et supprime les revenuesMovements liés
|
|
38
|
+
* @param { number } idPrestation
|
|
39
|
+
* @returns { true }
|
|
40
|
+
*/
|
|
41
|
+
public delete(idPrestation: number): Promise<true> {
|
|
42
|
+
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
43
|
+
}
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
* retourne toutes les prestations juridique d'une société
|
|
37
47
|
* @param { number } id
|
|
@@ -55,7 +55,7 @@ export const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {
|
|
|
55
55
|
"startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
|
|
56
56
|
"endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
|
|
57
57
|
},
|
|
58
|
-
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
58
|
+
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
59
59
|
Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
|
|
60
60
|
},
|
|
61
61
|
[AIPromptKey.BANK_STATEMENT_PERIOD]: {
|
|
@@ -198,3 +198,13 @@ export class QueryRecentActivity {
|
|
|
198
198
|
@IsString()
|
|
199
199
|
search?: string;
|
|
200
200
|
}
|
|
201
|
+
|
|
202
|
+
export class QueryRecurrenceRevenueStatistics {
|
|
203
|
+
@ApiProperty()
|
|
204
|
+
@IsDateString()
|
|
205
|
+
startDate: string;
|
|
206
|
+
|
|
207
|
+
@ApiProperty()
|
|
208
|
+
@IsDateString()
|
|
209
|
+
endDate: string;
|
|
210
|
+
}
|
|
@@ -116,3 +116,15 @@ export type ReadRecentActivity = {
|
|
|
116
116
|
// i don't know if needed, it is in the type but not return from service for now
|
|
117
117
|
item?: IEstimateInvoice | IProductInvoice | IThirdParty;
|
|
118
118
|
};
|
|
119
|
+
|
|
120
|
+
export type ReadStatisticRecurrentRevenue = {
|
|
121
|
+
period: string;
|
|
122
|
+
done: {
|
|
123
|
+
totalTaxExcluded: number;
|
|
124
|
+
totalTaxIncluded: number;
|
|
125
|
+
};
|
|
126
|
+
projection: {
|
|
127
|
+
totalTaxExcluded: number;
|
|
128
|
+
totalTaxIncluded: number;
|
|
129
|
+
} | null;
|
|
130
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
|
|
4
4
|
import { BasePaginate } from '../BasePaginate';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
6
|
|
|
6
7
|
export interface IGeneralLedgerThirdParty {
|
|
7
8
|
idThirdParty: number;
|
|
@@ -57,4 +58,10 @@ export class QueryGeneralLedgerThirdParty {
|
|
|
57
58
|
@IsOptional()
|
|
58
59
|
@IsNumber()
|
|
59
60
|
limit: number = 100;
|
|
61
|
+
|
|
62
|
+
@ApiPropertyOptional()
|
|
63
|
+
@IsBoolean()
|
|
64
|
+
@ToBoolean()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
omitLettering?: boolean;
|
|
60
67
|
}
|