@silexpert/core 1.3.63 → 1.3.65-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/BudgetInsight.d.ts +2 -1
- package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/cjs/api/resources/BudgetInsight.js +3 -0
- package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/cjs/api/resources/Connector.d.ts +3 -0
- package/dist/cjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/cjs/api/resources/Connector.js +3 -0
- package/dist/cjs/api/resources/Connector.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +14 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +25 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Create.d.ts +4 -0
- package/dist/cjs/types/Interface/api/budgetInsight/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Create.js +14 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Read.d.ts +37 -0
- package/dist/cjs/types/Interface/api/budgetInsight/Read.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/budgetInsight/Read.js.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts +2 -1
- package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
- package/dist/mjs/api/resources/BudgetInsight.js +3 -0
- package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
- package/dist/mjs/api/resources/Connector.d.ts +3 -0
- package/dist/mjs/api/resources/Connector.d.ts.map +1 -1
- package/dist/mjs/api/resources/Connector.js +3 -0
- package/dist/mjs/api/resources/Connector.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +14 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +27 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/mjs/types/Interface/api/budgetInsight/Create.d.ts +4 -0
- package/dist/mjs/types/Interface/api/budgetInsight/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/budgetInsight/Create.js +16 -2
- package/dist/mjs/types/Interface/api/budgetInsight/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/budgetInsight/Read.d.ts +37 -0
- package/dist/mjs/types/Interface/api/budgetInsight/Read.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/budgetInsight/Read.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +6 -0
- package/ts/api/resources/Connector.ts +4 -0
- package/ts/types/Interface/api/brevo/BrevoElement.ts +29 -1
- package/ts/types/Interface/api/budgetInsight/Create.ts +12 -2
- package/ts/types/Interface/api/budgetInsight/Read.ts +40 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
2
|
+
import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, IBankConnection, ImportPowensBalanceBankAccount, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
3
3
|
export declare class BudgetInsight extends Resource {
|
|
4
4
|
getTokens(): Promise<IAccessToken | null>;
|
|
5
5
|
getTemporaryToken(): Promise<ReadTemporaryCode>;
|
|
@@ -7,5 +7,6 @@ export declare class BudgetInsight extends Resource {
|
|
|
7
7
|
authentificate(): Promise<IAccessToken>;
|
|
8
8
|
getAllConnections(): Promise<ReadUserConnection[]>;
|
|
9
9
|
deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true>;
|
|
10
|
+
synchronizeBalances(idBankAccount: number, payload: ImportPowensBalanceBankAccount): Promise<IBankConnection[]>;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=BudgetInsight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI/C,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAIvC,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,8BAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI/C,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAIvC,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvE,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAGhH"}
|
|
@@ -21,6 +21,9 @@ class BudgetInsight extends Resource_1.Resource {
|
|
|
21
21
|
deleteConnection(payload) {
|
|
22
22
|
return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });
|
|
23
23
|
}
|
|
24
|
+
synchronizeBalances(idBankAccount, payload) {
|
|
25
|
+
return this.axios.$post(`/connectors/budget-insight/bank-accounts/${idBankAccount}/balances`, payload);
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
exports.BudgetInsight = BudgetInsight;
|
|
26
29
|
//# sourceMappingURL=BudgetInsight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAWvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IACxE,CAAC;IAED,mBAAmB,CAAC,OAAkC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IACvE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACnE,CAAC;IAED,gBAAgB,CAAC,OAAsC;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,wCAAwC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,mBAAmB,CAAC,aAAqB,EAAE,OAAuC;QAChF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4CAA4C,aAAa,WAAW,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF;AA5BD,sCA4BC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateOrUpdateAccessToken,\n DeleteBudgetInsightConnection,\n IAccessToken,\n IBankConnection,\n ImportPowensBalanceBankAccount,\n ReadTemporaryCode,\n ReadUserConnection,\n} from '../../types';\n\nexport class BudgetInsight extends Resource {\n getTokens(): Promise<IAccessToken | null> {\n return this.axios.$get('/connectors/budget-insight/tokens');\n }\n\n getTemporaryToken(): Promise<ReadTemporaryCode> {\n return this.axios.$get('/connectors/budget-insight/tokens/temporary');\n }\n\n updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/tokens', payload);\n }\n\n authentificate(): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/authentificate');\n }\n\n getAllConnections(): Promise<ReadUserConnection[]> {\n return this.axios.$get('/connectors/budget-insight/connections');\n }\n\n deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true> {\n return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });\n }\n\n synchronizeBalances(idBankAccount: number, payload: ImportPowensBalanceBankAccount): Promise<IBankConnection[]> {\n return this.axios.$post(`/connectors/budget-insight/bank-accounts/${idBankAccount}/balances`, payload);\n }\n}\n"]}
|
|
@@ -7,5 +7,8 @@ export declare class Connector extends Resource {
|
|
|
7
7
|
get(params: QueryConnector): Promise<IConnector>;
|
|
8
8
|
getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]>;
|
|
9
9
|
delete(id: number): Promise<boolean>;
|
|
10
|
+
getContentFromMistral(params: {
|
|
11
|
+
buffer: Buffer;
|
|
12
|
+
}): Promise<any>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=Connector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIpG,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIhD,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIpG,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIhD,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC,qBAAqB,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAGhE"}
|
|
@@ -21,6 +21,9 @@ class Connector extends Resource_1.Resource {
|
|
|
21
21
|
delete(id) {
|
|
22
22
|
return this.axios.$delete(`/connectors/${id}`);
|
|
23
23
|
}
|
|
24
|
+
getContentFromMistral(params) {
|
|
25
|
+
return this.axios.$post('/connectors/mistral/content', { params });
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
exports.Connector = Connector;
|
|
26
29
|
//# sourceMappingURL=Connector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.js","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":";;;AAQA,0CAAuC;AAEvC,MAAa,SAAU,SAAQ,mBAAQ;IACrC,IAAI,CAAC,EAAU;QACb,OAAO,I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ClD,CAAC;IAED,GAAG,CAAC,MAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAC,SAAiB,EAAE,MAAoC;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,qBAAqB,CAAC,MAA0B;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AA5BD,8BA4BC","sourcesContent":["import {\n CreateConnector,\n IAccountingTransaction,\n IConnector,\n ImportBankAccount,\n QueryConnector,\n QueryAllConnectorFromSociety,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connectors/${id}/test`);\n }\n\n importManually(idBankAccount: number, payload: ImportBankAccount): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/connectors/bank-accounts/${idBankAccount}/import`, payload);\n }\n\n create(payload: CreateConnector): Promise<IConnector> {\n return this.axios.$post('/connectors', payload);\n }\n\n get(params: QueryConnector): Promise<IConnector> {\n return this.axios.$get('/connectors', { params });\n }\n\n getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]> {\n return this.axios.$get(`/connectors/${idSociety}`, { params });\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/connectors/${id}`);\n }\n\n getContentFromMistral(params: { buffer: Buffer }): Promise<any> {\n return this.axios.$post('/connectors/mistral/content', { params });\n }\n}\n"]}
|
|
@@ -4,6 +4,7 @@ export declare class CreateContact {
|
|
|
4
4
|
lastname?: string;
|
|
5
5
|
activity?: string;
|
|
6
6
|
nameSociety?: string;
|
|
7
|
+
phone?: string;
|
|
7
8
|
listIds: number[];
|
|
8
9
|
}
|
|
9
10
|
export declare class GetContact {
|
|
@@ -14,8 +15,21 @@ export declare class GetAllContact {
|
|
|
14
15
|
}
|
|
15
16
|
export declare class UpdateContact {
|
|
16
17
|
email: string;
|
|
18
|
+
phone?: string;
|
|
17
19
|
attributes: Partial<CreateContact>;
|
|
18
20
|
}
|
|
21
|
+
export interface ContactInfos {
|
|
22
|
+
email: string;
|
|
23
|
+
firstName?: string;
|
|
24
|
+
lastname?: string;
|
|
25
|
+
activity?: string;
|
|
26
|
+
nameSociety?: string;
|
|
27
|
+
phone?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class AddOrCreateContactsToList {
|
|
30
|
+
contactInfos: ContactInfos[];
|
|
31
|
+
listId: number;
|
|
32
|
+
}
|
|
19
33
|
export declare class ChangeContact {
|
|
20
34
|
email: string[];
|
|
21
35
|
listId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoElement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BrevoElement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,UAAU;IAGrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,aAAa;IAIxB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AACD,qBAAa,aAAa;IAIxB,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAEpC,YAAY,EAAE,YAAY,EAAE,CAAC;IAI7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,gBAAgB;IAI3B,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -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.BrevoTermination = exports.ChangeContact = exports.UpdateContact = exports.GetAllContact = exports.GetContact = exports.CreateContact = void 0;
|
|
12
|
+
exports.BrevoTermination = exports.ChangeContact = exports.AddOrCreateContactsToList = exports.UpdateContact = exports.GetAllContact = exports.GetContact = exports.CreateContact = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
class CreateContact {
|
|
@@ -44,6 +44,12 @@ __decorate([
|
|
|
44
44
|
(0, class_validator_1.IsString)(),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], CreateContact.prototype, "nameSociety", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateContact.prototype, "phone", void 0);
|
|
47
53
|
__decorate([
|
|
48
54
|
(0, utils_1.ApiProperty)(),
|
|
49
55
|
(0, class_validator_1.IsInt)({ each: true }),
|
|
@@ -75,10 +81,28 @@ __decorate([
|
|
|
75
81
|
(0, class_validator_1.IsNotEmpty)(),
|
|
76
82
|
__metadata("design:type", String)
|
|
77
83
|
], UpdateContact.prototype, "email", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, class_validator_1.IsString)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], UpdateContact.prototype, "phone", void 0);
|
|
78
90
|
__decorate([
|
|
79
91
|
(0, utils_1.ApiProperty)(),
|
|
80
92
|
__metadata("design:type", Object)
|
|
81
93
|
], UpdateContact.prototype, "attributes", void 0);
|
|
94
|
+
class AddOrCreateContactsToList {
|
|
95
|
+
}
|
|
96
|
+
exports.AddOrCreateContactsToList = AddOrCreateContactsToList;
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.ApiProperty)(),
|
|
99
|
+
__metadata("design:type", Array)
|
|
100
|
+
], AddOrCreateContactsToList.prototype, "contactInfos", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.ApiProperty)(),
|
|
103
|
+
(0, class_validator_1.IsNumber)(),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], AddOrCreateContactsToList.prototype, "listId", void 0);
|
|
82
106
|
class ChangeContact {
|
|
83
107
|
}
|
|
84
108
|
exports.ChangeContact = ChangeContact;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoElement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,6CAAqE;AAErE,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"BrevoElement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,6CAAqE;AAErE,MAAa,aAAa;CAiCzB;AAjCD,sCAiCC;AA9BC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;4CACG;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACU;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACI;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8CACJ;AAGpB,MAAa,UAAU;CAItB;AAJD,gCAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;yCACG;AAGhB,MAAa,aAAa;CAKzB;AALD,sCAKC;AADC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,yBAAO,GAAE;;8CACQ;AAEpB,MAAa,aAAa;CAazB;AAbD,sCAaC;AATC;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACC;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACI;AAGf;IADC,IAAA,mBAAW,GAAE;;iDACqB;AAYrC,MAAa,yBAAyB;CAOrC;AAPD,8DAOC;AALC;IADC,IAAA,mBAAW,GAAE;;+DACe;AAI7B;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;yDACI;AAIjB,MAAa,aAAa;CAQzB;AARD,sCAQC;AALC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACT;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACI;AAGjB,MAAa,gBAAgB;CAK5B;AALD,4CAKC;AADC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;mDACU","sourcesContent":["import { IsArray, IsInt, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateContact {\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n firstName?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n activity?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n nameSociety?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phone?: string;\n\n @ApiProperty()\n @IsInt({ each: true })\n listIds: number[];\n}\n\nexport class GetContact {\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class GetAllContact {\n @ApiProperty()\n @IsInt({ each: true })\n @IsArray()\n listIds: number[];\n}\nexport class UpdateContact {\n @ApiProperty()\n @IsString()\n @IsNotEmpty()\n email: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phone?: string;\n\n @ApiProperty()\n attributes: Partial<CreateContact>;\n}\n\nexport interface ContactInfos {\n email: string;\n firstName?: string;\n lastname?: string;\n activity?: string;\n nameSociety?: string;\n phone?: string;\n}\n\nexport class AddOrCreateContactsToList {\n @ApiProperty()\n contactInfos: ContactInfos[];\n\n @ApiProperty()\n @IsNumber()\n listId: number;\n}\n\n\nexport class ChangeContact {\n @ApiProperty()\n @IsString({ each: true })\n email: string[];\n\n @ApiProperty()\n @IsNumber()\n listId: number;\n}\n\nexport class BrevoTermination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSociety: number[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAGpC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC"}
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAGpC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,qBAAa,8BAA8B;IAGzC,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.CreateOrUpdateAccessToken = void 0;
|
|
12
|
+
exports.ImportPowensBalanceBankAccount = exports.CreateOrUpdateAccessToken = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
class CreateOrUpdateAccessToken {
|
|
@@ -25,4 +25,17 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsOptional)(),
|
|
26
26
|
__metadata("design:type", Object)
|
|
27
27
|
], CreateOrUpdateAccessToken.prototype, "permanentToken", void 0);
|
|
28
|
+
class ImportPowensBalanceBankAccount {
|
|
29
|
+
}
|
|
30
|
+
exports.ImportPowensBalanceBankAccount = ImportPowensBalanceBankAccount;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, utils_1.ApiProperty)(),
|
|
33
|
+
(0, class_validator_1.IsDateString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ImportPowensBalanceBankAccount.prototype, "startDate", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, utils_1.ApiProperty)(),
|
|
38
|
+
(0, class_validator_1.IsDateString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ImportPowensBalanceBankAccount.prototype, "endDate", void 0);
|
|
28
41
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,6CAAqE;AAErE,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AALC;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;iEACkB;AAI/B;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;iEACkB;AAGjC,MAAa,8BAA8B;CAQ1C;AARD,wEAQC;AALC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;iEACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACC","sourcesContent":["import { IsDateString, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateOrUpdateAccessToken {\n @ApiPropertyOptional()\n @IsOptional()\n temporaryToken?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n permanentToken?: string | null;\n}\n\nexport class ImportPowensBalanceBankAccount {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n}\n"]}
|
|
@@ -34,4 +34,41 @@ export type ReadUserConnectionBudget = {
|
|
|
34
34
|
id_bank: number;
|
|
35
35
|
connector_uuid: string;
|
|
36
36
|
};
|
|
37
|
+
export type BudgetInsightCurrency = {
|
|
38
|
+
id: string;
|
|
39
|
+
symbol: string;
|
|
40
|
+
balance: number;
|
|
41
|
+
expenses: number;
|
|
42
|
+
incomes: number;
|
|
43
|
+
remains: number;
|
|
44
|
+
};
|
|
45
|
+
type BudgetInsightDailyBalance = {
|
|
46
|
+
date: string;
|
|
47
|
+
balance: number;
|
|
48
|
+
expenses: number;
|
|
49
|
+
incomes: number;
|
|
50
|
+
remains: number;
|
|
51
|
+
};
|
|
52
|
+
export type BudgetInsightBalance = {
|
|
53
|
+
min_date: string;
|
|
54
|
+
max_date: string;
|
|
55
|
+
currencies: BudgetInsightCurrency[];
|
|
56
|
+
n_overdraft: number;
|
|
57
|
+
balance: number;
|
|
58
|
+
expenses: number;
|
|
59
|
+
incomes: number;
|
|
60
|
+
remains: number;
|
|
61
|
+
converted: boolean;
|
|
62
|
+
daily_balances: BudgetInsightDailyBalance[];
|
|
63
|
+
};
|
|
64
|
+
export type BudgetInsightBalanceGroupsListResponse = {
|
|
65
|
+
balances: BudgetInsightBalance[];
|
|
66
|
+
first_date: string;
|
|
67
|
+
last_date: string;
|
|
68
|
+
result_min_date: string;
|
|
69
|
+
total: number;
|
|
70
|
+
n_overdraft: number;
|
|
71
|
+
result_max_date: string;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
37
74
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAE3E,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG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,EAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { BudgetInsightConnectionState } from '../../../Enum/BudgetInsight';\n\nexport type ReadAuthorizationCode = {\n code: string;\n expiresIn: string;\n idUser: string;\n};\n\nexport type ReadTemporaryCode = {\n code: string;\n expiresIn: string;\n};\n\nexport type ReadUserConnection = {\n id: number;\n idUser: number;\n idConnector: number;\n lastUpdate: Date | null;\n created: Date;\n active: boolean;\n state: BudgetInsightConnectionState | null;\n};\n\nexport type ReadUserConnectionBudget = {\n id: number;\n id_user: number;\n id_connector: number;\n last_update: Date | null;\n created: Date;\n active: boolean;\n last_push: null;\n next_try: Date | null;\n state: BudgetInsightConnectionState | null;\n error: null; // TODO:\n error_message: null; // TODO:\n expire: null; // TODO:\n id_provider: number;\n id_bank: number;\n connector_uuid: string;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { BudgetInsightConnectionState } from '../../../Enum/BudgetInsight';\n\nexport type ReadAuthorizationCode = {\n code: string;\n expiresIn: string;\n idUser: string;\n};\n\nexport type ReadTemporaryCode = {\n code: string;\n expiresIn: string;\n};\n\nexport type ReadUserConnection = {\n id: number;\n idUser: number;\n idConnector: number;\n lastUpdate: Date | null;\n created: Date;\n active: boolean;\n state: BudgetInsightConnectionState | null;\n};\n\nexport type ReadUserConnectionBudget = {\n id: number;\n id_user: number;\n id_connector: number;\n last_update: Date | null;\n created: Date;\n active: boolean;\n last_push: null;\n next_try: Date | null;\n state: BudgetInsightConnectionState | null;\n error: null; // TODO:\n error_message: null; // TODO:\n expire: null; // TODO:\n id_provider: number;\n id_bank: number;\n connector_uuid: string;\n};\n\nexport type BudgetInsightCurrency = {\n id: string;\n symbol: string;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n};\n\ntype BudgetInsightDailyBalance = {\n date: string;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n};\n\nexport type BudgetInsightBalance = {\n min_date: string;\n max_date: string;\n currencies: BudgetInsightCurrency[];\n n_overdraft: number;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n converted: boolean;\n daily_balances: BudgetInsightDailyBalance[];\n};\n\nexport type BudgetInsightBalanceGroupsListResponse = {\n balances: BudgetInsightBalance[];\n first_date: string;\n last_date: string;\n result_min_date: string;\n total: number;\n n_overdraft: number;\n result_max_date: string;\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
2
|
+
import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, IBankConnection, ImportPowensBalanceBankAccount, ReadTemporaryCode, ReadUserConnection } from '../../types';
|
|
3
3
|
export declare class BudgetInsight extends Resource {
|
|
4
4
|
getTokens(): Promise<IAccessToken | null>;
|
|
5
5
|
getTemporaryToken(): Promise<ReadTemporaryCode>;
|
|
@@ -7,5 +7,6 @@ export declare class BudgetInsight extends Resource {
|
|
|
7
7
|
authentificate(): Promise<IAccessToken>;
|
|
8
8
|
getAllConnections(): Promise<ReadUserConnection[]>;
|
|
9
9
|
deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true>;
|
|
10
|
+
synchronizeBalances(idBankAccount: number, payload: ImportPowensBalanceBankAccount): Promise<IBankConnection[]>;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=BudgetInsight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI/C,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAIvC,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,8BAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,qBAAa,aAAc,SAAQ,QAAQ;IACzC,SAAS,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAIzC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI/C,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAIvC,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlD,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvE,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAGhH"}
|
|
@@ -18,5 +18,8 @@ export class BudgetInsight extends Resource {
|
|
|
18
18
|
deleteConnection(payload) {
|
|
19
19
|
return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });
|
|
20
20
|
}
|
|
21
|
+
synchronizeBalances(idBankAccount, payload) {
|
|
22
|
+
return this.axios.$post(`/connectors/budget-insight/bank-accounts/${idBankAccount}/balances`, payload);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
//# sourceMappingURL=BudgetInsight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BudgetInsight.js","sourceRoot":"","sources":["../../../../ts/api/resources/BudgetInsight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAWvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IAC9D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;IACxE,CAAC;IAED,mBAAmB,CAAC,OAAkC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;IACvE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACnE,CAAC;IAED,gBAAgB,CAAC,OAAsC;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,wCAAwC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,mBAAmB,CAAC,aAAqB,EAAE,OAAuC;QAChF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4CAA4C,aAAa,WAAW,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateOrUpdateAccessToken,\n DeleteBudgetInsightConnection,\n IAccessToken,\n IBankConnection,\n ImportPowensBalanceBankAccount,\n ReadTemporaryCode,\n ReadUserConnection,\n} from '../../types';\n\nexport class BudgetInsight extends Resource {\n getTokens(): Promise<IAccessToken | null> {\n return this.axios.$get('/connectors/budget-insight/tokens');\n }\n\n getTemporaryToken(): Promise<ReadTemporaryCode> {\n return this.axios.$get('/connectors/budget-insight/tokens/temporary');\n }\n\n updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/tokens', payload);\n }\n\n authentificate(): Promise<IAccessToken> {\n return this.axios.$post('/connectors/budget-insight/authentificate');\n }\n\n getAllConnections(): Promise<ReadUserConnection[]> {\n return this.axios.$get('/connectors/budget-insight/connections');\n }\n\n deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true> {\n return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });\n }\n\n synchronizeBalances(idBankAccount: number, payload: ImportPowensBalanceBankAccount): Promise<IBankConnection[]> {\n return this.axios.$post(`/connectors/budget-insight/bank-accounts/${idBankAccount}/balances`, payload);\n }\n}\n"]}
|
|
@@ -7,5 +7,8 @@ export declare class Connector extends Resource {
|
|
|
7
7
|
get(params: QueryConnector): Promise<IConnector>;
|
|
8
8
|
getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]>;
|
|
9
9
|
delete(id: number): Promise<boolean>;
|
|
10
|
+
getContentFromMistral(params: {
|
|
11
|
+
buffer: Buffer;
|
|
12
|
+
}): Promise<any>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=Connector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIpG,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIhD,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Connector.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIpG,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIhD,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIjG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC,qBAAqB,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAGhE"}
|
|
@@ -18,5 +18,8 @@ export class Connector extends Resource {
|
|
|
18
18
|
delete(id) {
|
|
19
19
|
return this.axios.$delete(`/connectors/${id}`);
|
|
20
20
|
}
|
|
21
|
+
getContentFromMistral(params) {
|
|
22
|
+
return this.axios.$post('/connectors/mistral/content', { params });
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
//# sourceMappingURL=Connector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connector.js","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAU;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,cAAc,CAAC,aAAqB,EAAE,OAA0B;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,aAAa,SAAS,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED,GAAG,CAAC,MAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAC,SAAiB,EAAE,MAAoC;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;CACF","sourcesContent":["import {\n CreateConnector,\n IAccountingTransaction,\n IConnector,\n ImportBankAccount,\n QueryConnector,\n QueryAllConnectorFromSociety,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connectors/${id}/test`);\n }\n\n importManually(idBankAccount: number, payload: ImportBankAccount): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/connectors/bank-accounts/${idBankAccount}/import`, payload);\n }\n\n create(payload: CreateConnector): Promise<IConnector> {\n return this.axios.$post('/connectors', payload);\n }\n\n get(params: QueryConnector): Promise<IConnector> {\n return this.axios.$get('/connectors', { params });\n }\n\n getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]> {\n return this.axios.$get(`/connectors/${idSociety}`, { params });\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/connectors/${id}`);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Connector.js","sourceRoot":"","sources":["../../../../ts/api/resources/Connector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC,IAAI,CAAC,EAAU;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,cAAc,CAAC,aAAqB,EAAE,OAA0B;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,aAAa,SAAS,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED,GAAG,CAAC,MAAsB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAC,SAAiB,EAAE,MAAoC;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,qBAAqB,CAAC,MAA0B;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrE,CAAC;CACF","sourcesContent":["import {\n CreateConnector,\n IAccountingTransaction,\n IConnector,\n ImportBankAccount,\n QueryConnector,\n QueryAllConnectorFromSociety,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Connector extends Resource {\n test(id: number): Promise<boolean> {\n return this.axios.$post(`/connectors/${id}/test`);\n }\n\n importManually(idBankAccount: number, payload: ImportBankAccount): Promise<IAccountingTransaction[]> {\n return this.axios.$post(`/connectors/bank-accounts/${idBankAccount}/import`, payload);\n }\n\n create(payload: CreateConnector): Promise<IConnector> {\n return this.axios.$post('/connectors', payload);\n }\n\n get(params: QueryConnector): Promise<IConnector> {\n return this.axios.$get('/connectors', { params });\n }\n\n getAllFromSociety(idSociety: number, params: QueryAllConnectorFromSociety): Promise<IConnector[]> {\n return this.axios.$get(`/connectors/${idSociety}`, { params });\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/connectors/${id}`);\n }\n\n getContentFromMistral(params: { buffer: Buffer }): Promise<any> {\n return this.axios.$post('/connectors/mistral/content', { params });\n }\n}\n"]}
|
|
@@ -4,6 +4,7 @@ export declare class CreateContact {
|
|
|
4
4
|
lastname?: string;
|
|
5
5
|
activity?: string;
|
|
6
6
|
nameSociety?: string;
|
|
7
|
+
phone?: string;
|
|
7
8
|
listIds: number[];
|
|
8
9
|
}
|
|
9
10
|
export declare class GetContact {
|
|
@@ -14,8 +15,21 @@ export declare class GetAllContact {
|
|
|
14
15
|
}
|
|
15
16
|
export declare class UpdateContact {
|
|
16
17
|
email: string;
|
|
18
|
+
phone?: string;
|
|
17
19
|
attributes: Partial<CreateContact>;
|
|
18
20
|
}
|
|
21
|
+
export interface ContactInfos {
|
|
22
|
+
email: string;
|
|
23
|
+
firstName?: string;
|
|
24
|
+
lastname?: string;
|
|
25
|
+
activity?: string;
|
|
26
|
+
nameSociety?: string;
|
|
27
|
+
phone?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class AddOrCreateContactsToList {
|
|
30
|
+
contactInfos: ContactInfos[];
|
|
31
|
+
listId: number;
|
|
32
|
+
}
|
|
19
33
|
export declare class ChangeContact {
|
|
20
34
|
email: string[];
|
|
21
35
|
listId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoElement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BrevoElement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,UAAU;IAGrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,aAAa;IAIxB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AACD,qBAAa,aAAa;IAIxB,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,UAAU,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAEpC,YAAY,EAAE,YAAY,EAAE,CAAC;IAI7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,qBAAa,aAAa;IAGxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,gBAAgB;IAI3B,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -15,6 +15,7 @@ export class CreateContact {
|
|
|
15
15
|
lastname;
|
|
16
16
|
activity;
|
|
17
17
|
nameSociety;
|
|
18
|
+
phone;
|
|
18
19
|
listIds;
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
@@ -46,6 +47,12 @@ __decorate([
|
|
|
46
47
|
IsString(),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], CreateContact.prototype, "nameSociety", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
ApiPropertyOptional(),
|
|
52
|
+
IsOptional(),
|
|
53
|
+
IsString(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreateContact.prototype, "phone", void 0);
|
|
49
56
|
__decorate([
|
|
50
57
|
ApiProperty(),
|
|
51
58
|
IsInt({ each: true }),
|
|
@@ -70,6 +77,7 @@ __decorate([
|
|
|
70
77
|
], GetAllContact.prototype, "listIds", void 0);
|
|
71
78
|
export class UpdateContact {
|
|
72
79
|
email;
|
|
80
|
+
phone;
|
|
73
81
|
attributes;
|
|
74
82
|
}
|
|
75
83
|
__decorate([
|
|
@@ -78,10 +86,29 @@ __decorate([
|
|
|
78
86
|
IsNotEmpty(),
|
|
79
87
|
__metadata("design:type", String)
|
|
80
88
|
], UpdateContact.prototype, "email", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
ApiPropertyOptional(),
|
|
91
|
+
IsOptional(),
|
|
92
|
+
IsString(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], UpdateContact.prototype, "phone", void 0);
|
|
81
95
|
__decorate([
|
|
82
96
|
ApiProperty(),
|
|
83
97
|
__metadata("design:type", Object)
|
|
84
98
|
], UpdateContact.prototype, "attributes", void 0);
|
|
99
|
+
export class AddOrCreateContactsToList {
|
|
100
|
+
contactInfos;
|
|
101
|
+
listId;
|
|
102
|
+
}
|
|
103
|
+
__decorate([
|
|
104
|
+
ApiProperty(),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], AddOrCreateContactsToList.prototype, "contactInfos", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
ApiProperty(),
|
|
109
|
+
IsNumber(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], AddOrCreateContactsToList.prototype, "listId", void 0);
|
|
85
112
|
export class ChangeContact {
|
|
86
113
|
email;
|
|
87
114
|
listId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoElement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,aAAa;IAGxB,KAAK,CAAS;IAKd,SAAS,CAAU;IAKnB,QAAQ,CAAU;IAKlB,QAAQ,CAAU;IAKlB,WAAW,CAAU;
|
|
1
|
+
{"version":3,"file":"BrevoElement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/BrevoElement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,O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IADC,WAAW,EAAE;;+DACe;AAI7B;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACI;AAIjB,MAAM,OAAO,aAAa;IAGxB,KAAK,CAAW;IAIhB,MAAM,CAAS;CAChB;AALC;IAFC,WAAW,EAAE;IACb,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACT;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACI;AAGjB,MAAM,OAAO,gBAAgB;IAI3B,SAAS,CAAW;CACrB;AADC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;mDACU","sourcesContent":["import { IsArray, IsInt, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateContact {\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n firstName?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n activity?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n nameSociety?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phone?: string;\n\n @ApiProperty()\n @IsInt({ each: true })\n listIds: number[];\n}\n\nexport class GetContact {\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class GetAllContact {\n @ApiProperty()\n @IsInt({ each: true })\n @IsArray()\n listIds: number[];\n}\nexport class UpdateContact {\n @ApiProperty()\n @IsString()\n @IsNotEmpty()\n email: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phone?: string;\n\n @ApiProperty()\n attributes: Partial<CreateContact>;\n}\n\nexport interface ContactInfos {\n email: string;\n firstName?: string;\n lastname?: string;\n activity?: string;\n nameSociety?: string;\n phone?: string;\n}\n\nexport class AddOrCreateContactsToList {\n @ApiProperty()\n contactInfos: ContactInfos[];\n\n @ApiProperty()\n @IsNumber()\n listId: number;\n}\n\n\nexport class ChangeContact {\n @ApiProperty()\n @IsString({ each: true })\n email: string[];\n\n @ApiProperty()\n @IsNumber()\n listId: number;\n}\n\nexport class BrevoTermination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSociety: number[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAGpC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC"}
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,yBAAyB;IAGpC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,qBAAa,8BAA8B;IAGzC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (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 { IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
10
|
+
import { IsDateString, IsOptional } from 'class-validator';
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
export class CreateOrUpdateAccessToken {
|
|
13
13
|
temporaryToken;
|
|
14
14
|
permanentToken;
|
|
@@ -23,4 +23,18 @@ __decorate([
|
|
|
23
23
|
IsOptional(),
|
|
24
24
|
__metadata("design:type", Object)
|
|
25
25
|
], CreateOrUpdateAccessToken.prototype, "permanentToken", void 0);
|
|
26
|
+
export class ImportPowensBalanceBankAccount {
|
|
27
|
+
startDate;
|
|
28
|
+
endDate;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
ApiProperty(),
|
|
32
|
+
IsDateString(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ImportPowensBalanceBankAccount.prototype, "startDate", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ApiProperty(),
|
|
37
|
+
IsDateString(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ImportPowensBalanceBankAccount.prototype, "endDate", void 0);
|
|
26
40
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,yBAAyB;IAGpC,cAAc,CAAiB;IAI/B,cAAc,CAAiB;CAChC;AALC;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;iEACkB;AAI/B;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;iEACkB;AAGjC,MAAM,OAAO,8BAA8B;IAGzC,SAAS,CAAS;IAIlB,OAAO,CAAS;CACjB;AALC;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;iEACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;+DACC","sourcesContent":["import { IsDateString, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateOrUpdateAccessToken {\n @ApiPropertyOptional()\n @IsOptional()\n temporaryToken?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n permanentToken?: string | null;\n}\n\nexport class ImportPowensBalanceBankAccount {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n}\n"]}
|
|
@@ -34,4 +34,41 @@ export type ReadUserConnectionBudget = {
|
|
|
34
34
|
id_bank: number;
|
|
35
35
|
connector_uuid: string;
|
|
36
36
|
};
|
|
37
|
+
export type BudgetInsightCurrency = {
|
|
38
|
+
id: string;
|
|
39
|
+
symbol: string;
|
|
40
|
+
balance: number;
|
|
41
|
+
expenses: number;
|
|
42
|
+
incomes: number;
|
|
43
|
+
remains: number;
|
|
44
|
+
};
|
|
45
|
+
type BudgetInsightDailyBalance = {
|
|
46
|
+
date: string;
|
|
47
|
+
balance: number;
|
|
48
|
+
expenses: number;
|
|
49
|
+
incomes: number;
|
|
50
|
+
remains: number;
|
|
51
|
+
};
|
|
52
|
+
export type BudgetInsightBalance = {
|
|
53
|
+
min_date: string;
|
|
54
|
+
max_date: string;
|
|
55
|
+
currencies: BudgetInsightCurrency[];
|
|
56
|
+
n_overdraft: number;
|
|
57
|
+
balance: number;
|
|
58
|
+
expenses: number;
|
|
59
|
+
incomes: number;
|
|
60
|
+
remains: number;
|
|
61
|
+
converted: boolean;
|
|
62
|
+
daily_balances: BudgetInsightDailyBalance[];
|
|
63
|
+
};
|
|
64
|
+
export type BudgetInsightBalanceGroupsListResponse = {
|
|
65
|
+
balances: BudgetInsightBalance[];
|
|
66
|
+
first_date: string;
|
|
67
|
+
last_date: string;
|
|
68
|
+
result_min_date: string;
|
|
69
|
+
total: number;
|
|
70
|
+
n_overdraft: number;
|
|
71
|
+
result_max_date: string;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
37
74
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAE3E,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC3C,KAAK,EAAE,IAAI,CAAC;IACZ,aAAa,EAAE,IAAI,CAAC;IACpB,MAAM,EAAE,IAAI,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,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EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,yBAAyB,EAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { BudgetInsightConnectionState } from '../../../Enum/BudgetInsight';\n\nexport type ReadAuthorizationCode = {\n code: string;\n expiresIn: string;\n idUser: string;\n};\n\nexport type ReadTemporaryCode = {\n code: string;\n expiresIn: string;\n};\n\nexport type ReadUserConnection = {\n id: number;\n idUser: number;\n idConnector: number;\n lastUpdate: Date | null;\n created: Date;\n active: boolean;\n state: BudgetInsightConnectionState | null;\n};\n\nexport type ReadUserConnectionBudget = {\n id: number;\n id_user: number;\n id_connector: number;\n last_update: Date | null;\n created: Date;\n active: boolean;\n last_push: null;\n next_try: Date | null;\n state: BudgetInsightConnectionState | null;\n error: null; // TODO:\n error_message: null; // TODO:\n expire: null; // TODO:\n id_provider: number;\n id_bank: number;\n connector_uuid: string;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/budgetInsight/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { BudgetInsightConnectionState } from '../../../Enum/BudgetInsight';\n\nexport type ReadAuthorizationCode = {\n code: string;\n expiresIn: string;\n idUser: string;\n};\n\nexport type ReadTemporaryCode = {\n code: string;\n expiresIn: string;\n};\n\nexport type ReadUserConnection = {\n id: number;\n idUser: number;\n idConnector: number;\n lastUpdate: Date | null;\n created: Date;\n active: boolean;\n state: BudgetInsightConnectionState | null;\n};\n\nexport type ReadUserConnectionBudget = {\n id: number;\n id_user: number;\n id_connector: number;\n last_update: Date | null;\n created: Date;\n active: boolean;\n last_push: null;\n next_try: Date | null;\n state: BudgetInsightConnectionState | null;\n error: null; // TODO:\n error_message: null; // TODO:\n expire: null; // TODO:\n id_provider: number;\n id_bank: number;\n connector_uuid: string;\n};\n\nexport type BudgetInsightCurrency = {\n id: string;\n symbol: string;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n};\n\ntype BudgetInsightDailyBalance = {\n date: string;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n};\n\nexport type BudgetInsightBalance = {\n min_date: string;\n max_date: string;\n currencies: BudgetInsightCurrency[];\n n_overdraft: number;\n balance: number;\n expenses: number;\n incomes: number;\n remains: number;\n converted: boolean;\n daily_balances: BudgetInsightDailyBalance[];\n};\n\nexport type BudgetInsightBalanceGroupsListResponse = {\n balances: BudgetInsightBalance[];\n first_date: string;\n last_date: string;\n result_min_date: string;\n total: number;\n n_overdraft: number;\n result_max_date: string;\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.65-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",
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
CreateOrUpdateAccessToken,
|
|
4
4
|
DeleteBudgetInsightConnection,
|
|
5
5
|
IAccessToken,
|
|
6
|
+
IBankConnection,
|
|
7
|
+
ImportPowensBalanceBankAccount,
|
|
6
8
|
ReadTemporaryCode,
|
|
7
9
|
ReadUserConnection,
|
|
8
10
|
} from '../../types';
|
|
@@ -31,4 +33,8 @@ export class BudgetInsight extends Resource {
|
|
|
31
33
|
deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true> {
|
|
32
34
|
return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });
|
|
33
35
|
}
|
|
36
|
+
|
|
37
|
+
synchronizeBalances(idBankAccount: number, payload: ImportPowensBalanceBankAccount): Promise<IBankConnection[]> {
|
|
38
|
+
return this.axios.$post(`/connectors/budget-insight/bank-accounts/${idBankAccount}/balances`, payload);
|
|
39
|
+
}
|
|
34
40
|
}
|
|
@@ -32,4 +32,8 @@ export class Connector extends Resource {
|
|
|
32
32
|
delete(id: number): Promise<boolean> {
|
|
33
33
|
return this.axios.$delete(`/connectors/${id}`);
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
getContentFromMistral(params: { buffer: Buffer }): Promise<any> {
|
|
37
|
+
return this.axios.$post('/connectors/mistral/content', { params });
|
|
38
|
+
}
|
|
35
39
|
}
|
|
@@ -26,6 +26,11 @@ export class CreateContact {
|
|
|
26
26
|
@IsString()
|
|
27
27
|
nameSociety?: string;
|
|
28
28
|
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsString()
|
|
32
|
+
phone?: string;
|
|
33
|
+
|
|
29
34
|
@ApiProperty()
|
|
30
35
|
@IsInt({ each: true })
|
|
31
36
|
listIds: number[];
|
|
@@ -43,17 +48,40 @@ export class GetAllContact {
|
|
|
43
48
|
@IsArray()
|
|
44
49
|
listIds: number[];
|
|
45
50
|
}
|
|
46
|
-
|
|
47
51
|
export class UpdateContact {
|
|
48
52
|
@ApiProperty()
|
|
49
53
|
@IsString()
|
|
50
54
|
@IsNotEmpty()
|
|
51
55
|
email: string;
|
|
52
56
|
|
|
57
|
+
@ApiPropertyOptional()
|
|
58
|
+
@IsOptional()
|
|
59
|
+
@IsString()
|
|
60
|
+
phone?: string;
|
|
61
|
+
|
|
53
62
|
@ApiProperty()
|
|
54
63
|
attributes: Partial<CreateContact>;
|
|
55
64
|
}
|
|
56
65
|
|
|
66
|
+
export interface ContactInfos {
|
|
67
|
+
email: string;
|
|
68
|
+
firstName?: string;
|
|
69
|
+
lastname?: string;
|
|
70
|
+
activity?: string;
|
|
71
|
+
nameSociety?: string;
|
|
72
|
+
phone?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class AddOrCreateContactsToList {
|
|
76
|
+
@ApiProperty()
|
|
77
|
+
contactInfos: ContactInfos[];
|
|
78
|
+
|
|
79
|
+
@ApiProperty()
|
|
80
|
+
@IsNumber()
|
|
81
|
+
listId: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
57
85
|
export class ChangeContact {
|
|
58
86
|
@ApiProperty()
|
|
59
87
|
@IsString({ each: true })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IsOptional } from 'class-validator';
|
|
2
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
1
|
+
import { IsDateString, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
|
|
4
4
|
export class CreateOrUpdateAccessToken {
|
|
5
5
|
@ApiPropertyOptional()
|
|
@@ -10,3 +10,13 @@ export class CreateOrUpdateAccessToken {
|
|
|
10
10
|
@IsOptional()
|
|
11
11
|
permanentToken?: string | null;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
export class ImportPowensBalanceBankAccount {
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
@IsDateString()
|
|
17
|
+
startDate: string;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsDateString()
|
|
21
|
+
endDate: string;
|
|
22
|
+
}
|
|
@@ -38,3 +38,43 @@ export type ReadUserConnectionBudget = {
|
|
|
38
38
|
id_bank: number;
|
|
39
39
|
connector_uuid: string;
|
|
40
40
|
};
|
|
41
|
+
|
|
42
|
+
export type BudgetInsightCurrency = {
|
|
43
|
+
id: string;
|
|
44
|
+
symbol: string;
|
|
45
|
+
balance: number;
|
|
46
|
+
expenses: number;
|
|
47
|
+
incomes: number;
|
|
48
|
+
remains: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
type BudgetInsightDailyBalance = {
|
|
52
|
+
date: string;
|
|
53
|
+
balance: number;
|
|
54
|
+
expenses: number;
|
|
55
|
+
incomes: number;
|
|
56
|
+
remains: number;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type BudgetInsightBalance = {
|
|
60
|
+
min_date: string;
|
|
61
|
+
max_date: string;
|
|
62
|
+
currencies: BudgetInsightCurrency[];
|
|
63
|
+
n_overdraft: number;
|
|
64
|
+
balance: number;
|
|
65
|
+
expenses: number;
|
|
66
|
+
incomes: number;
|
|
67
|
+
remains: number;
|
|
68
|
+
converted: boolean;
|
|
69
|
+
daily_balances: BudgetInsightDailyBalance[];
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type BudgetInsightBalanceGroupsListResponse = {
|
|
73
|
+
balances: BudgetInsightBalance[];
|
|
74
|
+
first_date: string;
|
|
75
|
+
last_date: string;
|
|
76
|
+
result_min_date: string;
|
|
77
|
+
total: number;
|
|
78
|
+
n_overdraft: number;
|
|
79
|
+
result_max_date: string;
|
|
80
|
+
};
|