@silexpert/core 1.3.129-1 → 1.3.129
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.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +6 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +31 -1
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Query.d.ts +2 -0
- package/dist/cjs/types/Interface/api/payment/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Query.js +12 -0
- package/dist/cjs/types/Interface/api/payment/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +6 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +30 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Query.d.ts +2 -0
- package/dist/mjs/types/Interface/api/payment/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Query.js +14 -0
- package/dist/mjs/types/Interface/api/payment/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/PrestationType.ts +37 -0
- package/ts/types/Interface/api/payment/Query.ts +13 -3
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +3 -3
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +0 -1
- package/dist/cjs/api/resources/DashboardLayout.d.ts +0 -10
- package/dist/cjs/api/resources/DashboardLayout.d.ts.map +0 -1
- package/dist/cjs/api/resources/DashboardLayout.js +0 -20
- package/dist/cjs/api/resources/DashboardLayout.js.map +0 -1
- package/dist/cjs/api/resources/feature.d.ts +0 -5
- package/dist/cjs/api/resources/feature.d.ts.map +0 -1
- package/dist/cjs/api/resources/feature.js +0 -21
- package/dist/cjs/api/resources/feature.js.map +0 -1
- package/dist/cjs/types/Enum/DashboardBlock.d.ts +0 -13
- package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +0 -1
- package/dist/cjs/types/Enum/DashboardBlock.js +0 -17
- package/dist/cjs/types/Enum/DashboardBlock.js.map +0 -1
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts +0 -23
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/DashboardLayout.js +0 -3
- package/dist/cjs/types/Interface/api/DashboardLayout.js.map +0 -1
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +0 -5
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +0 -3
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +0 -1
- package/dist/mjs/api/resources/DashboardLayout.d.ts +0 -10
- package/dist/mjs/api/resources/DashboardLayout.d.ts.map +0 -1
- package/dist/mjs/api/resources/DashboardLayout.js +0 -16
- package/dist/mjs/api/resources/DashboardLayout.js.map +0 -1
- package/dist/mjs/api/resources/feature.d.ts +0 -5
- package/dist/mjs/api/resources/feature.d.ts.map +0 -1
- package/dist/mjs/api/resources/feature.js +0 -9
- package/dist/mjs/api/resources/feature.js.map +0 -1
- package/dist/mjs/types/Enum/DashboardBlock.d.ts +0 -13
- package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +0 -1
- package/dist/mjs/types/Enum/DashboardBlock.js +0 -14
- package/dist/mjs/types/Enum/DashboardBlock.js.map +0 -1
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts +0 -23
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/DashboardLayout.js +0 -2
- package/dist/mjs/types/Interface/api/DashboardLayout.js.map +0 -1
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +0 -5
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +0 -2
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +0 -1
- package/ts/api/resources/DashboardLayout.ts +0 -19
- package/ts/api/resources/feature.ts +0 -11
- package/ts/types/Enum/DashboardBlock.ts +0 -12
- package/ts/types/Interface/api/DashboardLayout.ts +0 -26
- package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +0 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPermission } from '../Interface/models/IPermission';
|
|
1
2
|
import { IPrestationList } from '../Interface/models/IPrestationList';
|
|
2
3
|
|
|
3
4
|
export enum PrestationType {
|
|
@@ -3900,6 +3901,42 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3900
3901
|
},
|
|
3901
3902
|
};
|
|
3902
3903
|
|
|
3904
|
+
export interface PrestationPermissionsType {
|
|
3905
|
+
id: PrestationType;
|
|
3906
|
+
permissions: Array<keyof IPermission>;
|
|
3907
|
+
}
|
|
3908
|
+
|
|
3909
|
+
export const PrestationPermissions: PrestationPermissionsType[] = [
|
|
3910
|
+
{
|
|
3911
|
+
id: PrestationType.EXPERTISE,
|
|
3912
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
id: PrestationType.SUPPORT,
|
|
3916
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3917
|
+
},
|
|
3918
|
+
{
|
|
3919
|
+
id: PrestationType.PREMIUM,
|
|
3920
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
id: PrestationType.CUSTOM_MADE,
|
|
3924
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'balanceSheet', 'setting', 'purchase'],
|
|
3925
|
+
},
|
|
3926
|
+
{
|
|
3927
|
+
id: PrestationType.EI,
|
|
3928
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
id: PrestationType.MICRO,
|
|
3932
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
id: PrestationType.GESTION_IMMO,
|
|
3936
|
+
permissions: ['gescom', 'compta', 'stats', 'docTreso', 'services', 'tva', 'balanceSheet', 'setting', 'purchase'],
|
|
3937
|
+
},
|
|
3938
|
+
];
|
|
3939
|
+
|
|
3903
3940
|
export enum PrestationTypeDetail {
|
|
3904
3941
|
SOFTWARE = 'software',
|
|
3905
3942
|
ACCOUNTANCY = 'accountancy',
|
|
@@ -20,17 +20,27 @@ export class QueryPayments {
|
|
|
20
20
|
@IsOptional()
|
|
21
21
|
@IsString()
|
|
22
22
|
reference?: string;
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
@ApiPropertyOptional()
|
|
25
25
|
@IsOptional()
|
|
26
26
|
@IsString()
|
|
27
27
|
internComment?: string;
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
@ApiPropertyOptional()
|
|
30
30
|
@IsOptional()
|
|
31
31
|
@IsInt()
|
|
32
32
|
idFile?: number;
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsInt()
|
|
37
|
+
idExercice?: number;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
@IsInt()
|
|
42
|
+
idPrestation?: number;
|
|
43
|
+
|
|
34
44
|
@ApiPropertyOptional()
|
|
35
45
|
@IsOptional()
|
|
36
46
|
@IsBoolean()
|
|
@@ -7,7 +7,7 @@ export class QueryGetPaymentExpectation {
|
|
|
7
7
|
@IsOptional()
|
|
8
8
|
@IsInt()
|
|
9
9
|
idPrestation?: number;
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
@ApiPropertyOptional()
|
|
12
12
|
@IsOptional()
|
|
13
13
|
@IsString()
|
|
@@ -15,8 +15,8 @@ export class QueryGetPaymentExpectation {
|
|
|
15
15
|
|
|
16
16
|
@ApiPropertyOptional()
|
|
17
17
|
@IsOptional()
|
|
18
|
-
@IsString({each: true})
|
|
19
|
-
@IsIn(['society', 'owner'], { each: true })
|
|
18
|
+
@IsString({ each: true })
|
|
19
|
+
@IsIn(['society', 'owner', 'prestation'], { each: true })
|
|
20
20
|
includes?: string[];
|
|
21
21
|
}
|
|
22
22
|
|
package/ts/types/index.ts
CHANGED
|
@@ -343,7 +343,6 @@ 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';
|
|
347
346
|
export * from './Enum/CommercialGrade';
|
|
348
347
|
export * from './Enum/CommercialOfferType';
|
|
349
348
|
export * from './Enum/CommercialManagement';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export declare class DashboardLayout extends Resource {
|
|
3
|
-
createOrUpdate(idSociety: number, jsonLayout: string): Promise<import("axios").AxiosResponse<{
|
|
4
|
-
jsonLayout: string;
|
|
5
|
-
}>>;
|
|
6
|
-
findOneByUserAndSociety(idSociety: number): Promise<import("axios").AxiosResponse<never>>;
|
|
7
|
-
deleteByUserAndSociety(idSociety: number): Promise<import("axios").AxiosResponse<never>>;
|
|
8
|
-
hasLayout(idSociety: number): Promise<import("axios").AxiosResponse<boolean>>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DashboardLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;;;IAIpD,uBAAuB,CAAC,SAAS,EAAE,MAAM;IAIzC,sBAAsB,CAAC,SAAS,EAAE,MAAM;IAIxC,SAAS,CAAC,SAAS,EAAE,MAAM;CAG5B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DashboardLayout = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class DashboardLayout extends Resource_1.Resource {
|
|
6
|
-
createOrUpdate(idSociety, jsonLayout) {
|
|
7
|
-
return this.axios.$post(`/dashboard-layouts/${idSociety}`, { jsonLayout });
|
|
8
|
-
}
|
|
9
|
-
findOneByUserAndSociety(idSociety) {
|
|
10
|
-
return this.axios.$get(`/dashboard-layouts/${idSociety}`);
|
|
11
|
-
}
|
|
12
|
-
deleteByUserAndSociety(idSociety) {
|
|
13
|
-
return this.axios.$delete(`/dashboard-layouts/${idSociety}`);
|
|
14
|
-
}
|
|
15
|
-
hasLayout(idSociety) {
|
|
16
|
-
return this.axios.$get(`/dashboard-layouts/${idSociety}/exists`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.DashboardLayout = DashboardLayout;
|
|
20
|
-
//# sourceMappingURL=DashboardLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../../ts/api/resources/DashboardLayout.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAEvC,MAAa,eAAgB,SAAQ,mBAAQ;IAC3C,cAAc,CAAC,SAAiB,EAAE,UAAkB;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,uBAAuB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,sBAAsB,CAAC,SAAiB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,SAAS,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAU,sBAAsB,SAAS,SAAS,CAAC,CAAC;IAC5E,CAAC;CACF;AAhBD,0CAgBC","sourcesContent":["import { Resource } from '../Resource';\n\nexport class DashboardLayout extends Resource {\n createOrUpdate(idSociety: number, jsonLayout: string) {\n return this.axios.$post(`/dashboard-layouts/${idSociety}`, { jsonLayout });\n }\n\n findOneByUserAndSociety(idSociety: number) {\n return this.axios.$get(`/dashboard-layouts/${idSociety}`);\n }\n\n deleteByUserAndSociety(idSociety: number) {\n return this.axios.$delete(`/dashboard-layouts/${idSociety}`);\n }\n\n hasLayout(idSociety: number) {\n return this.axios.$get<boolean>(`/dashboard-layouts/${idSociety}/exists`);\n }\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GetAvailableDashboardBlocksResponse } from '../../types/Interface/api/feature/GetAvailableDashboardBlocks';
|
|
2
|
-
export declare const FeatureApi: {
|
|
3
|
-
getAvailableDashboardBlocks: (idSociety: number) => Promise<GetAvailableDashboardBlocksResponse>;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,+DAA+D,CAAC;AAIpH,eAAO,MAAM,UAAU;6CAC0B,MAAM,KAAG,OAAO,CAAC,mCAAmC,CAAC;CAKrG,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FeatureApi = void 0;
|
|
13
|
-
const BASE_URL = '/feature';
|
|
14
|
-
exports.FeatureApi = {
|
|
15
|
-
getAvailableDashboardBlocks: (idSociety) => __awaiter(void 0, void 0, void 0, function* () {
|
|
16
|
-
const response = yield fetch(`${BASE_URL}/${idSociety}/dashboard-blocks`);
|
|
17
|
-
const data = yield response.json();
|
|
18
|
-
return data;
|
|
19
|
-
}),
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=feature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../../ts/api/resources/feature.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,QAAQ,GAAG,UAAU,CAAC;AAEf,QAAA,UAAU,GAAG;IACxB,2BAA2B,EAAE,CAAO,SAAiB,EAAgD,EAAE;QACrG,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,QAAQ,IAAI,SAAS,mBAAmB,CAAC,CAAC;QAC1E,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,IAA2C,CAAC;IACrD,CAAC,CAAA;CACF,CAAC","sourcesContent":["import { GetAvailableDashboardBlocksResponse } from '../../types/Interface/api/feature/GetAvailableDashboardBlocks';\n\nconst BASE_URL = '/feature';\n\nexport const FeatureApi = {\n getAvailableDashboardBlocks: async (idSociety: number): Promise<GetAvailableDashboardBlocksResponse> => {\n const response = await fetch(`${BASE_URL}/${idSociety}/dashboard-blocks`);\n const data = await response.json();\n return data as GetAvailableDashboardBlocksResponse;\n },\n};\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare 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
|
-
}
|
|
13
|
-
//# sourceMappingURL=DashboardBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardBlock.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/DashboardBlock.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,yBAAyB,8BAA8B;CACxD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DashboardBlock = void 0;
|
|
4
|
-
var DashboardBlock;
|
|
5
|
-
(function (DashboardBlock) {
|
|
6
|
-
DashboardBlock["KEY_INDICATORS"] = "KEY_INDICATORS";
|
|
7
|
-
DashboardBlock["TREASURY"] = "TREASURY";
|
|
8
|
-
DashboardBlock["TOP_PURCHASES"] = "TOP_PURCHASES";
|
|
9
|
-
DashboardBlock["TOP_SUPPLIERS"] = "TOP_SUPPLIERS";
|
|
10
|
-
DashboardBlock["SALES"] = "SALES";
|
|
11
|
-
DashboardBlock["DEADLINES"] = "DEADLINES";
|
|
12
|
-
DashboardBlock["IS_AMOUNT"] = "IS_AMOUNT";
|
|
13
|
-
DashboardBlock["VAT_DECLARATION"] = "VAT_DECLARATION";
|
|
14
|
-
DashboardBlock["CURRENT_VAT"] = "CURRENT_VAT";
|
|
15
|
-
DashboardBlock["ASSOCIATE_CURRENT_ACCOUNT"] = "ASSOCIATE_CURRENT_ACCOUNT";
|
|
16
|
-
})(DashboardBlock || (exports.DashboardBlock = DashboardBlock = {}));
|
|
17
|
-
//# sourceMappingURL=DashboardBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardBlock.js","sourceRoot":"","sources":["../../../../ts/types/Enum/DashboardBlock.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,uCAAqB,CAAA;IACrB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,yEAAuD,CAAA;AACzD,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB","sourcesContent":["export enum DashboardBlock {\n KEY_INDICATORS = 'KEY_INDICATORS',\n TREASURY = 'TREASURY',\n TOP_PURCHASES = 'TOP_PURCHASES',\n TOP_SUPPLIERS = 'TOP_SUPPLIERS',\n SALES = 'SALES',\n DEADLINES = 'DEADLINES',\n IS_AMOUNT = 'IS_AMOUNT',\n VAT_DECLARATION = 'VAT_DECLARATION',\n CURRENT_VAT = 'CURRENT_VAT',\n ASSOCIATE_CURRENT_ACCOUNT = 'ASSOCIATE_CURRENT_ACCOUNT',\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DashboardBlock } from '../../Enum/DashboardBlock';
|
|
2
|
-
export interface IDashboardLayoutItem {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
w: number;
|
|
6
|
-
h: number;
|
|
7
|
-
i: DashboardBlock;
|
|
8
|
-
}
|
|
9
|
-
export interface ICreateDashboardLayoutRequest {
|
|
10
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
11
|
-
}
|
|
12
|
-
export interface IUpdateDashboardLayoutRequest {
|
|
13
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
14
|
-
}
|
|
15
|
-
export interface IDashboardLayoutResponse {
|
|
16
|
-
id: number;
|
|
17
|
-
idUser: number;
|
|
18
|
-
idSociety: number;
|
|
19
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=DashboardLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,cAAc,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/DashboardLayout.ts"],"names":[],"mappings":"","sourcesContent":["import { DashboardBlock } from '../../Enum/DashboardBlock';\n\nexport interface IDashboardLayoutItem {\n x: number;\n y: number;\n w: number;\n h: number;\n i: DashboardBlock;\n}\n\nexport interface ICreateDashboardLayoutRequest {\n jsonLayout: IDashboardLayoutItem[];\n}\n\nexport interface IUpdateDashboardLayoutRequest {\n jsonLayout: IDashboardLayoutItem[];\n}\n\nexport interface IDashboardLayoutResponse {\n id: number;\n idUser: number;\n idSociety: number;\n jsonLayout: IDashboardLayoutItem[];\n createdAt: Date;\n updatedAt: Date;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetAvailableDashboardBlocks.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,mCAAmC;IAClD,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetAvailableDashboardBlocks.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts"],"names":[],"mappings":"","sourcesContent":["import { DashboardBlock } from '../../../Enum/DashboardBlock';\n\nexport interface GetAvailableDashboardBlocksResponse {\n dashboardBlocks: DashboardBlock[];\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export declare class DashboardLayout extends Resource {
|
|
3
|
-
createOrUpdate(idSociety: number, jsonLayout: string): Promise<import("axios").AxiosResponse<{
|
|
4
|
-
jsonLayout: string;
|
|
5
|
-
}>>;
|
|
6
|
-
findOneByUserAndSociety(idSociety: number): Promise<import("axios").AxiosResponse<never>>;
|
|
7
|
-
deleteByUserAndSociety(idSociety: number): Promise<import("axios").AxiosResponse<never>>;
|
|
8
|
-
hasLayout(idSociety: number): Promise<import("axios").AxiosResponse<boolean>>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DashboardLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;;;IAIpD,uBAAuB,CAAC,SAAS,EAAE,MAAM;IAIzC,sBAAsB,CAAC,SAAS,EAAE,MAAM;IAIxC,SAAS,CAAC,SAAS,EAAE,MAAM;CAG5B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class DashboardLayout extends Resource {
|
|
3
|
-
createOrUpdate(idSociety, jsonLayout) {
|
|
4
|
-
return this.axios.$post(`/dashboard-layouts/${idSociety}`, { jsonLayout });
|
|
5
|
-
}
|
|
6
|
-
findOneByUserAndSociety(idSociety) {
|
|
7
|
-
return this.axios.$get(`/dashboard-layouts/${idSociety}`);
|
|
8
|
-
}
|
|
9
|
-
deleteByUserAndSociety(idSociety) {
|
|
10
|
-
return this.axios.$delete(`/dashboard-layouts/${idSociety}`);
|
|
11
|
-
}
|
|
12
|
-
hasLayout(idSociety) {
|
|
13
|
-
return this.axios.$get(`/dashboard-layouts/${idSociety}/exists`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=DashboardLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../../ts/api/resources/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,SAAiB,EAAE,UAAkB;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,uBAAuB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,sBAAsB,CAAC,SAAiB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,SAAS,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,SAAS,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAU,sBAAsB,SAAS,SAAS,CAAC,CAAC;IAC5E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\n\nexport class DashboardLayout extends Resource {\n createOrUpdate(idSociety: number, jsonLayout: string) {\n return this.axios.$post(`/dashboard-layouts/${idSociety}`, { jsonLayout });\n }\n\n findOneByUserAndSociety(idSociety: number) {\n return this.axios.$get(`/dashboard-layouts/${idSociety}`);\n }\n\n deleteByUserAndSociety(idSociety: number) {\n return this.axios.$delete(`/dashboard-layouts/${idSociety}`);\n }\n\n hasLayout(idSociety: number) {\n return this.axios.$get<boolean>(`/dashboard-layouts/${idSociety}/exists`);\n }\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GetAvailableDashboardBlocksResponse } from '../../types/Interface/api/feature/GetAvailableDashboardBlocks';
|
|
2
|
-
export declare const FeatureApi: {
|
|
3
|
-
getAvailableDashboardBlocks: (idSociety: number) => Promise<GetAvailableDashboardBlocksResponse>;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,+DAA+D,CAAC;AAIpH,eAAO,MAAM,UAAU;6CAC0B,MAAM,KAAG,OAAO,CAAC,mCAAmC,CAAC;CAKrG,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const BASE_URL = '/feature';
|
|
2
|
-
export const FeatureApi = {
|
|
3
|
-
getAvailableDashboardBlocks: async (idSociety) => {
|
|
4
|
-
const response = await fetch(`${BASE_URL}/${idSociety}/dashboard-blocks`);
|
|
5
|
-
const data = await response.json();
|
|
6
|
-
return data;
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=feature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../../ts/api/resources/feature.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,2BAA2B,EAAE,KAAK,EAAE,SAAiB,EAAgD,EAAE;QACrG,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,QAAQ,IAAI,SAAS,mBAAmB,CAAC,CAAC;QAC1E,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,IAA2C,CAAC;IACrD,CAAC;CACF,CAAC","sourcesContent":["import { GetAvailableDashboardBlocksResponse } from '../../types/Interface/api/feature/GetAvailableDashboardBlocks';\n\nconst BASE_URL = '/feature';\n\nexport const FeatureApi = {\n getAvailableDashboardBlocks: async (idSociety: number): Promise<GetAvailableDashboardBlocksResponse> => {\n const response = await fetch(`${BASE_URL}/${idSociety}/dashboard-blocks`);\n const data = await response.json();\n return data as GetAvailableDashboardBlocksResponse;\n },\n};\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare 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
|
-
}
|
|
13
|
-
//# sourceMappingURL=DashboardBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardBlock.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/DashboardBlock.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,yBAAyB,8BAA8B;CACxD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var DashboardBlock;
|
|
2
|
-
(function (DashboardBlock) {
|
|
3
|
-
DashboardBlock["KEY_INDICATORS"] = "KEY_INDICATORS";
|
|
4
|
-
DashboardBlock["TREASURY"] = "TREASURY";
|
|
5
|
-
DashboardBlock["TOP_PURCHASES"] = "TOP_PURCHASES";
|
|
6
|
-
DashboardBlock["TOP_SUPPLIERS"] = "TOP_SUPPLIERS";
|
|
7
|
-
DashboardBlock["SALES"] = "SALES";
|
|
8
|
-
DashboardBlock["DEADLINES"] = "DEADLINES";
|
|
9
|
-
DashboardBlock["IS_AMOUNT"] = "IS_AMOUNT";
|
|
10
|
-
DashboardBlock["VAT_DECLARATION"] = "VAT_DECLARATION";
|
|
11
|
-
DashboardBlock["CURRENT_VAT"] = "CURRENT_VAT";
|
|
12
|
-
DashboardBlock["ASSOCIATE_CURRENT_ACCOUNT"] = "ASSOCIATE_CURRENT_ACCOUNT";
|
|
13
|
-
})(DashboardBlock || (DashboardBlock = {}));
|
|
14
|
-
//# sourceMappingURL=DashboardBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardBlock.js","sourceRoot":"","sources":["../../../../ts/types/Enum/DashboardBlock.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,uCAAqB,CAAA;IACrB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,yEAAuD,CAAA;AACzD,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB","sourcesContent":["export enum DashboardBlock {\n KEY_INDICATORS = 'KEY_INDICATORS',\n TREASURY = 'TREASURY',\n TOP_PURCHASES = 'TOP_PURCHASES',\n TOP_SUPPLIERS = 'TOP_SUPPLIERS',\n SALES = 'SALES',\n DEADLINES = 'DEADLINES',\n IS_AMOUNT = 'IS_AMOUNT',\n VAT_DECLARATION = 'VAT_DECLARATION',\n CURRENT_VAT = 'CURRENT_VAT',\n ASSOCIATE_CURRENT_ACCOUNT = 'ASSOCIATE_CURRENT_ACCOUNT',\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DashboardBlock } from '../../Enum/DashboardBlock';
|
|
2
|
-
export interface IDashboardLayoutItem {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
w: number;
|
|
6
|
-
h: number;
|
|
7
|
-
i: DashboardBlock;
|
|
8
|
-
}
|
|
9
|
-
export interface ICreateDashboardLayoutRequest {
|
|
10
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
11
|
-
}
|
|
12
|
-
export interface IUpdateDashboardLayoutRequest {
|
|
13
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
14
|
-
}
|
|
15
|
-
export interface IDashboardLayoutResponse {
|
|
16
|
-
id: number;
|
|
17
|
-
idUser: number;
|
|
18
|
-
idSociety: number;
|
|
19
|
-
jsonLayout: IDashboardLayoutItem[];
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=DashboardLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/DashboardLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,cAAc,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardLayout.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/DashboardLayout.ts"],"names":[],"mappings":"","sourcesContent":["import { DashboardBlock } from '../../Enum/DashboardBlock';\n\nexport interface IDashboardLayoutItem {\n x: number;\n y: number;\n w: number;\n h: number;\n i: DashboardBlock;\n}\n\nexport interface ICreateDashboardLayoutRequest {\n jsonLayout: IDashboardLayoutItem[];\n}\n\nexport interface IUpdateDashboardLayoutRequest {\n jsonLayout: IDashboardLayoutItem[];\n}\n\nexport interface IDashboardLayoutResponse {\n id: number;\n idUser: number;\n idSociety: number;\n jsonLayout: IDashboardLayoutItem[];\n createdAt: Date;\n updatedAt: Date;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetAvailableDashboardBlocks.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,mCAAmC;IAClD,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetAvailableDashboardBlocks.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts"],"names":[],"mappings":"","sourcesContent":["import { DashboardBlock } from '../../../Enum/DashboardBlock';\n\nexport interface GetAvailableDashboardBlocksResponse {\n dashboardBlocks: DashboardBlock[];\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
|
|
3
|
-
export class DashboardLayout extends Resource {
|
|
4
|
-
createOrUpdate(idSociety: number, jsonLayout: string) {
|
|
5
|
-
return this.axios.$post(`/dashboard-layouts/${idSociety}`, { jsonLayout });
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
findOneByUserAndSociety(idSociety: number) {
|
|
9
|
-
return this.axios.$get(`/dashboard-layouts/${idSociety}`);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
deleteByUserAndSociety(idSociety: number) {
|
|
13
|
-
return this.axios.$delete(`/dashboard-layouts/${idSociety}`);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
hasLayout(idSociety: number) {
|
|
17
|
-
return this.axios.$get<boolean>(`/dashboard-layouts/${idSociety}/exists`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|