@silexpert/core 1.3.137 → 1.3.138-exercice-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/DashboardLayout.d.ts +9 -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.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 +24 -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/OnBoarding.d.ts +1 -0
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.js +6 -0
- package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
- package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- 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 +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/DashboardLayout.d.ts +9 -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.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 +24 -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/OnBoarding.d.ts +1 -0
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.js +7 -0
- package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
- package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
- 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 +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DashboardLayout.ts +20 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/DashboardBlock.ts +12 -0
- package/ts/types/Interface/api/DashboardLayout.ts +27 -0
- package/ts/types/Interface/api/OnBoarding.ts +5 -0
- package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +16 -0
- package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +5 -0
- package/ts/types/index.ts +2 -0
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
|
import { DocumentRequest } from './resources/DocumentRequest';
|
|
186
187
|
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
187
188
|
|
|
@@ -313,6 +314,7 @@ export const resources = {
|
|
|
313
314
|
team: Team,
|
|
314
315
|
cashAndExpense: CashAndExpense,
|
|
315
316
|
archive: Archive,
|
|
317
|
+
dashboardLayout: DashboardLayout,
|
|
316
318
|
accountsSector: AccountsSector,
|
|
317
319
|
businessSector: BusinessSector,
|
|
318
320
|
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_PROVIDERS = 'TOP_PROVIDERS',
|
|
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,27 @@
|
|
|
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
|
+
metadata?: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ICreateDashboardLayoutRequest {
|
|
13
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IUpdateDashboardLayoutRequest {
|
|
17
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IDashboardLayoutResponse {
|
|
21
|
+
id: number;
|
|
22
|
+
idUser: number;
|
|
23
|
+
idSociety: number;
|
|
24
|
+
jsonLayout: IDashboardLayoutItem[];
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Feature } from '../../../Enum/Feature';
|
|
1
2
|
import { IUser } from '../../models/IUser';
|
|
2
3
|
|
|
3
4
|
export class ReadAuthenticateCollaborater {
|
|
@@ -16,3 +17,18 @@ export class ReadByExternalId {
|
|
|
16
17
|
idTypeBrand: number;
|
|
17
18
|
token: string;
|
|
18
19
|
}
|
|
20
|
+
|
|
21
|
+
export type ExerciceFeatures = {
|
|
22
|
+
id: number;
|
|
23
|
+
startDate: Date | string;
|
|
24
|
+
endDate: Date | string;
|
|
25
|
+
isDefault: boolean;
|
|
26
|
+
features: Feature[];
|
|
27
|
+
};
|
|
28
|
+
export class ReadFeatureAccess {
|
|
29
|
+
isOwner: boolean;
|
|
30
|
+
/** @returns default features */
|
|
31
|
+
features: Feature[];
|
|
32
|
+
exercices: ExerciceFeatures[];
|
|
33
|
+
isInTrialPeriod: boolean;
|
|
34
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -344,6 +344,7 @@ export * from './Enum/VisualizedInformation';
|
|
|
344
344
|
export * from './Enum/NafCode';
|
|
345
345
|
export * from './Enum/Acceptance';
|
|
346
346
|
export * from './Enum/FolderFile';
|
|
347
|
+
export * from './Enum/DashboardBlock';
|
|
347
348
|
export * from './Enum/CommercialGrade';
|
|
348
349
|
export * from './Enum/CommercialOfferType';
|
|
349
350
|
export * from './Enum/CommercialManagement';
|
|
@@ -936,6 +937,7 @@ export * from './Interface/api/thirdParty/CreateThirdPartyForm';
|
|
|
936
937
|
export * from './Interface/api/thirdParty/UpdateThirdPartyForm';
|
|
937
938
|
export * from './Interface/api/thirdParty/QueryThirdParty';
|
|
938
939
|
export * from './Interface/api/bankAccount/Read';
|
|
940
|
+
export * from './Interface/api/DashboardLayout';
|
|
939
941
|
export * from './Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule';
|
|
940
942
|
export * from './Interface/api/calendarEvent/createCalendarEvent';
|
|
941
943
|
export * from './Interface/api/calendarEvent/createCalendarEventForUsers';
|