@silexpert/core 1.3.128 → 1.3.129-1
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/DashboardLayout.d.ts +10 -0
- package/dist/cjs/api/resources/DashboardLayout.d.ts.map +1 -0
- package/dist/cjs/api/resources/DashboardLayout.js +20 -0
- package/dist/cjs/api/resources/DashboardLayout.js.map +1 -0
- package/dist/cjs/api/resources/feature.d.ts +5 -0
- package/dist/cjs/api/resources/feature.d.ts.map +1 -0
- package/dist/cjs/api/resources/feature.js +21 -0
- package/dist/cjs/api/resources/feature.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/DashboardBlock.d.ts +13 -0
- package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -0
- package/dist/cjs/types/Enum/DashboardBlock.js +17 -0
- package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts +23 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.js +3 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.js.map +1 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +3 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/DashboardLayout.d.ts +10 -0
- package/dist/mjs/api/resources/DashboardLayout.d.ts.map +1 -0
- package/dist/mjs/api/resources/DashboardLayout.js +16 -0
- package/dist/mjs/api/resources/DashboardLayout.js.map +1 -0
- package/dist/mjs/api/resources/feature.d.ts +5 -0
- package/dist/mjs/api/resources/feature.d.ts.map +1 -0
- package/dist/mjs/api/resources/feature.js +9 -0
- package/dist/mjs/api/resources/feature.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/DashboardBlock.d.ts +13 -0
- package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -0
- package/dist/mjs/types/Enum/DashboardBlock.js +14 -0
- package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts +23 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.js +2 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.js.map +1 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +2 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DashboardLayout.ts +19 -0
- package/ts/api/resources/feature.ts +11 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/DashboardBlock.ts +12 -0
- package/ts/types/Interface/api/DashboardLayout.ts +26 -0
- package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +5 -0
- package/ts/types/index.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetAvailableDashboardBlocksResponse } from '../../types/Interface/api/feature/GetAvailableDashboardBlocks';
|
|
2
|
+
|
|
3
|
+
const BASE_URL = '/feature';
|
|
4
|
+
|
|
5
|
+
export const FeatureApi = {
|
|
6
|
+
getAvailableDashboardBlocks: async (idSociety: number): Promise<GetAvailableDashboardBlocksResponse> => {
|
|
7
|
+
const response = await fetch(`${BASE_URL}/${idSociety}/dashboard-blocks`);
|
|
8
|
+
const data = await response.json();
|
|
9
|
+
return data as GetAvailableDashboardBlocksResponse;
|
|
10
|
+
},
|
|
11
|
+
};
|
package/ts/api/resources.ts
CHANGED
|
@@ -182,6 +182,7 @@ import { Gdpr } from './resources/Gdpr';
|
|
|
182
182
|
import { Sellsy } from './resources/Sellsy';
|
|
183
183
|
import { BankDedup } from './resources/BankDedup';
|
|
184
184
|
import { StripePurchase } from './resources/StripePurchase';
|
|
185
|
+
import { DashboardLayout } from './resources/DashboardLayout';
|
|
185
186
|
|
|
186
187
|
export const resources = {
|
|
187
188
|
budgetInsight: BudgetInsight,
|
|
@@ -311,6 +312,7 @@ export const resources = {
|
|
|
311
312
|
team: Team,
|
|
312
313
|
cashAndExpense: CashAndExpense,
|
|
313
314
|
archive: Archive,
|
|
315
|
+
dashboardLayout: DashboardLayout,
|
|
314
316
|
accountsSector: AccountsSector,
|
|
315
317
|
businessSector: BusinessSector,
|
|
316
318
|
businessPartner: BusinessPartner,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export enum DashboardBlock {
|
|
2
|
+
KEY_INDICATORS = 'KEY_INDICATORS',
|
|
3
|
+
TREASURY = 'TREASURY',
|
|
4
|
+
TOP_PURCHASES = 'TOP_PURCHASES',
|
|
5
|
+
TOP_SUPPLIERS = 'TOP_SUPPLIERS',
|
|
6
|
+
SALES = 'SALES',
|
|
7
|
+
DEADLINES = 'DEADLINES',
|
|
8
|
+
IS_AMOUNT = 'IS_AMOUNT',
|
|
9
|
+
VAT_DECLARATION = 'VAT_DECLARATION',
|
|
10
|
+
CURRENT_VAT = 'CURRENT_VAT',
|
|
11
|
+
ASSOCIATE_CURRENT_ACCOUNT = 'ASSOCIATE_CURRENT_ACCOUNT',
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DashboardBlock } from '../../Enum/DashboardBlock';
|
|
2
|
+
|
|
3
|
+
export interface IDashboardLayoutItem {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
i: DashboardBlock;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ICreateDashboardLayoutRequest {
|
|
12
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IUpdateDashboardLayoutRequest {
|
|
16
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IDashboardLayoutResponse {
|
|
20
|
+
id: number;
|
|
21
|
+
idUser: number;
|
|
22
|
+
idSociety: number;
|
|
23
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -343,6 +343,7 @@ export * from './Enum/VisualizedInformation';
|
|
|
343
343
|
export * from './Enum/NafCode';
|
|
344
344
|
export * from './Enum/Acceptance';
|
|
345
345
|
export * from './Enum/FolderFile';
|
|
346
|
+
export * from './Enum/DashboardBlock';
|
|
346
347
|
export * from './Enum/CommercialGrade';
|
|
347
348
|
export * from './Enum/CommercialOfferType';
|
|
348
349
|
export * from './Enum/CommercialManagement';
|