eservices-core 1.0.294 → 1.0.297
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/index.d.ts
CHANGED
|
@@ -74,7 +74,8 @@ export { requestHandler };
|
|
|
74
74
|
import authService from "./services/AuthService";
|
|
75
75
|
import dataService from "./services/data-service";
|
|
76
76
|
import { CommunicationService as communicationService } from "./services/communication-service";
|
|
77
|
-
|
|
77
|
+
import viewService from "./services/view-service";
|
|
78
|
+
export { viewService, authService, dataService, communicationService };
|
|
78
79
|
import WidgetBreadcrumbs from "./widgets/breadcrumbs/widget-breadcrumbs.vue";
|
|
79
80
|
import WidgetCommunication from "./widgets/communication/widget-communication.vue";
|
|
80
81
|
import WidgetList from "./widgets/tables/WidgetList.vue";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.297
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -369,7 +369,7 @@ function modifiersInput$1(input, array = []) {
|
|
|
369
369
|
arrayInputPrettyModifiers(){
|
|
370
370
|
let out = [];
|
|
371
371
|
|
|
372
|
-
|
|
372
|
+
if (this.prettyNumeric) out.push(prettyNumeric);
|
|
373
373
|
|
|
374
374
|
return out;
|
|
375
375
|
},
|
|
@@ -3178,6 +3178,18 @@ class dataService {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
});
|
|
3180
3180
|
}
|
|
3181
|
+
static updateById(entity, id, values, options) {
|
|
3182
|
+
return Request(`/close-api/data/entities/${entity}/id/${id}`, {
|
|
3183
|
+
method: 'PUT',
|
|
3184
|
+
headers: {
|
|
3185
|
+
'Content-Type': 'application/json'
|
|
3186
|
+
},
|
|
3187
|
+
body: JSON.stringify({
|
|
3188
|
+
values,
|
|
3189
|
+
version: options === null || options === void 0 ? void 0 : options.version
|
|
3190
|
+
})
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3181
3193
|
}
|
|
3182
3194
|
|
|
3183
3195
|
var script$t = {
|
|
@@ -3886,7 +3898,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3886
3898
|
], 64 /* STABLE_FRAGMENT */))
|
|
3887
3899
|
}
|
|
3888
3900
|
|
|
3889
|
-
var css_248z$n = "\n.main[data-v-008cbabe]{\r\n\t\tdisplay: flex;\r\n flex-grow: 1;\r\n\t\twidth: 100%;\r\n overflow: auto;\n}\n.sidebar[data-v-008cbabe]{\r\n width: 250px;\n}\n.main>.sidebar[data-v-008cbabe]{\r\n height: 100%;\r\n\t\tposition: sticky;\r\n top: 0;\r\n\r\n background-color: var(--interface-navigation-background-color);\r\n\t\tcolor: var(--interface-navigation-color);\n}\n.interface-header[data-v-008cbabe]{\r\n\t\t--height: 60px;\r\n\r\n\t\theight: var(--height);\n}\nheader[data-v-008cbabe]{\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\ttop: 0;\r\n\t\tz-index: 10;\r\n\r\n\t\theight: var(--height);\r\n\r\n\t\tbackground-color: var(--interface-header-background-color);\r\n\t\tborder-bottom : var(--interface-header-border-bottom);\r\n\t\tbox-shadow : var(--interface-header-box-shadow);\n}\n.interface-header__logo[data-v-008cbabe]{\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 200px;\r\n\r\n background-color: var(--interface-header-logo-background-color);\r\n border: var(--interface-header-logo-border);\r\n border-radius: var(--interface-header-logo-border-radius);\n}\r\n\r\n";
|
|
3901
|
+
var css_248z$n = "\n.main[data-v-008cbabe]{\r\n\t\tdisplay: flex;\r\n flex-grow: 1;\r\n\t\twidth: 100%;\r\n overflow: auto;\n}\n.sidebar[data-v-008cbabe]{\r\n width: 250px;\n}\n.main>.sidebar[data-v-008cbabe]{\r\n height: 100%;\r\n\t\tposition: sticky;\r\n top: 0;\r\n\r\n background-color: var(--interface-navigation-background-color);\r\n\t\tcolor: var(--interface-navigation-color);\n}\n.interface-header[data-v-008cbabe]{\r\n\t\t--height: 60px;\r\n\r\n\t\theight: var(--height);\n}\nheader[data-v-008cbabe]{\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\ttop: 0;\r\n\t\tz-index: 10;\r\n\r\n\t\theight: var(--height);\r\n\r\n\t\tbackground-color: var(--interface-header-background-color);\r\n\t\tborder-bottom : var(--interface-header-border-bottom);\r\n\t\tbox-shadow : var(--interface-header-box-shadow);\n}\n.interface-header__logo[data-v-008cbabe]{\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 200px;\r\n\r\n background-color: var(--interface-header-logo-background-color);\r\n border: var(--interface-header-logo-border);\r\n border-radius: var(--interface-header-logo-border-radius);\n}\n.content[data-v-008cbabe]{\r\n flex-grow: 1;\n}\r\n";
|
|
3890
3902
|
styleInject(css_248z$n);
|
|
3891
3903
|
|
|
3892
3904
|
script$n.render = render$a;
|
|
@@ -5215,6 +5227,19 @@ class CommunicationService {
|
|
|
5215
5227
|
}
|
|
5216
5228
|
CommunicationService.url = `/close-api/communications`;
|
|
5217
5229
|
|
|
5230
|
+
class viewService {
|
|
5231
|
+
static getDefaultView(name) {
|
|
5232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5233
|
+
return Request('/close-api/views/' + name, {
|
|
5234
|
+
method: 'GET',
|
|
5235
|
+
headers: {
|
|
5236
|
+
'Content-Type': 'application/json',
|
|
5237
|
+
},
|
|
5238
|
+
});
|
|
5239
|
+
});
|
|
5240
|
+
}
|
|
5241
|
+
}
|
|
5242
|
+
|
|
5218
5243
|
const _hoisted_1$7 = { class: "breadcrumb__title" };
|
|
5219
5244
|
var script$7 = /*#__PURE__*/ vue.defineComponent({
|
|
5220
5245
|
props: {
|
|
@@ -5660,3 +5685,4 @@ exports.communicationService = CommunicationService;
|
|
|
5660
5685
|
exports.dataService = dataService;
|
|
5661
5686
|
exports["default"] = index;
|
|
5662
5687
|
exports.requestHandler = requestHandler;
|
|
5688
|
+
exports.viewService = viewService;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ValuesInterface } from "../types";
|
|
2
2
|
import { MetadataResponse } from "../classes/Metadata";
|
|
3
|
-
interface UpdateOptions {
|
|
4
|
-
version?: number;
|
|
5
|
-
}
|
|
6
3
|
interface UpdateResponse {
|
|
7
4
|
version: number;
|
|
8
5
|
date: string;
|
|
@@ -44,6 +41,7 @@ export default class dataService {
|
|
|
44
41
|
static test(): Promise<Response>;
|
|
45
42
|
static read(entity: string, keys: string, options: ReadOptions): Promise<ReadResponse>;
|
|
46
43
|
static readById(entity: string, id: number): Promise<any>;
|
|
44
|
+
static updateById(entity: string, id: number, values: ValuesInterface, options?: UpdateOptions): Promise<any>;
|
|
47
45
|
}
|
|
48
46
|
interface ReadOptions {
|
|
49
47
|
metadata?: string;
|
|
@@ -54,4 +52,7 @@ interface ReadResponse {
|
|
|
54
52
|
values: ValuesInterface;
|
|
55
53
|
metadata: MetadataResponse;
|
|
56
54
|
}
|
|
55
|
+
interface UpdateOptions {
|
|
56
|
+
version?: number;
|
|
57
|
+
}
|
|
57
58
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default class processWizardService {
|
|
2
|
+
static getStartConfig(process: string, entity: string): Promise<IProcessWizard>;
|
|
3
|
+
}
|
|
4
|
+
interface IProcessWizard {
|
|
5
|
+
processName: string;
|
|
6
|
+
entityName: string;
|
|
7
|
+
steps: IProcessWizardStep[];
|
|
8
|
+
}
|
|
9
|
+
interface IProcessWizardStep {
|
|
10
|
+
number: number;
|
|
11
|
+
title: string;
|
|
12
|
+
stepName: string;
|
|
13
|
+
frontendEntity: {
|
|
14
|
+
entityName: string;
|
|
15
|
+
objectTypes: ObjectType[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface ObjectType {
|
|
19
|
+
name: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: string;
|
|
22
|
+
title: string;
|
|
23
|
+
required: string;
|
|
24
|
+
type: string;
|
|
25
|
+
dataType: string;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default class viewService {
|
|
2
|
+
static getDefaultView(name: string): Promise<IView>;
|
|
3
|
+
}
|
|
4
|
+
interface IView {
|
|
5
|
+
name: string;
|
|
6
|
+
viewFields: IViewField[];
|
|
7
|
+
}
|
|
8
|
+
interface IViewField {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
lookup: string;
|
|
13
|
+
style: string;
|
|
14
|
+
tags: string;
|
|
15
|
+
title: string;
|
|
16
|
+
value: any;
|
|
17
|
+
width: null | string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|