@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.
Files changed (73) hide show
  1. package/dist/cjs/api/resources/DashboardLayout.d.ts +9 -0
  2. package/dist/cjs/api/resources/DashboardLayout.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/DashboardLayout.js +20 -0
  4. package/dist/cjs/api/resources/DashboardLayout.js.map +1 -0
  5. package/dist/cjs/api/resources.d.ts +2 -0
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +2 -0
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/Enum/DashboardBlock.d.ts +13 -0
  10. package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -0
  11. package/dist/cjs/types/Enum/DashboardBlock.js +17 -0
  12. package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -0
  13. package/dist/cjs/types/Interface/api/DashboardLayout.d.ts +24 -0
  14. package/dist/cjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/DashboardLayout.js +3 -0
  16. package/dist/cjs/types/Interface/api/DashboardLayout.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -0
  18. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/OnBoarding.js +6 -0
  20. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  22. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
  24. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
  26. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +3 -0
  28. package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
  29. package/dist/cjs/types/index.d.ts +2 -0
  30. package/dist/cjs/types/index.d.ts.map +1 -1
  31. package/dist/cjs/types/index.js +2 -0
  32. package/dist/cjs/types/index.js.map +1 -1
  33. package/dist/mjs/api/resources/DashboardLayout.d.ts +9 -0
  34. package/dist/mjs/api/resources/DashboardLayout.d.ts.map +1 -0
  35. package/dist/mjs/api/resources/DashboardLayout.js +16 -0
  36. package/dist/mjs/api/resources/DashboardLayout.js.map +1 -0
  37. package/dist/mjs/api/resources.d.ts +2 -0
  38. package/dist/mjs/api/resources.d.ts.map +1 -1
  39. package/dist/mjs/api/resources.js +2 -0
  40. package/dist/mjs/api/resources.js.map +1 -1
  41. package/dist/mjs/types/Enum/DashboardBlock.d.ts +13 -0
  42. package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -0
  43. package/dist/mjs/types/Enum/DashboardBlock.js +14 -0
  44. package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -0
  45. package/dist/mjs/types/Interface/api/DashboardLayout.d.ts +24 -0
  46. package/dist/mjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
  47. package/dist/mjs/types/Interface/api/DashboardLayout.js +2 -0
  48. package/dist/mjs/types/Interface/api/DashboardLayout.js.map +1 -0
  49. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -0
  50. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  51. package/dist/mjs/types/Interface/api/OnBoarding.js +7 -0
  52. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  54. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
  56. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  57. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
  58. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
  59. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +2 -0
  60. package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
  61. package/dist/mjs/types/index.d.ts +2 -0
  62. package/dist/mjs/types/index.d.ts.map +1 -1
  63. package/dist/mjs/types/index.js +2 -0
  64. package/dist/mjs/types/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/DashboardLayout.ts +20 -0
  67. package/ts/api/resources.ts +2 -0
  68. package/ts/types/Enum/DashboardBlock.ts +12 -0
  69. package/ts/types/Interface/api/DashboardLayout.ts +27 -0
  70. package/ts/types/Interface/api/OnBoarding.ts +5 -0
  71. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +16 -0
  72. package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +5 -0
  73. package/ts/types/index.ts +2 -0
@@ -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
+ }
@@ -41,6 +41,11 @@ export class QueryOnBoardingPaginated extends OptionalQueryPaginate {
41
41
  @IsInt()
42
42
  idSales?: number;
43
43
 
44
+ @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsInt()
47
+ idAccountant?: number;
48
+
44
49
  @ApiPropertyOptional()
45
50
  @IsOptional()
46
51
  @IsInt()
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ import { DashboardBlock } from '../../../Enum/DashboardBlock';
2
+
3
+ export interface GetAvailableDashboardBlocksResponse {
4
+ dashboardBlocks: DashboardBlock[];
5
+ }
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';