eservices-core 1.0.314 → 1.0.315
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.js +19 -5
- package/dist/services/data-service.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.315
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -3270,8 +3270,22 @@ class dataService {
|
|
|
3270
3270
|
return result.data;
|
|
3271
3271
|
});
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3273
|
+
/**
|
|
3274
|
+
* @description Reading entity's data by id.
|
|
3275
|
+
* @param {String} entity Entity name in the singular.
|
|
3276
|
+
* @param {Number} id Entity id.
|
|
3277
|
+
* @param {Object} options
|
|
3278
|
+
* @param {String | String[]} options.fields String or Array of String. Contains input names.
|
|
3279
|
+
*/
|
|
3280
|
+
static readById(entity, id, options = {}) {
|
|
3281
|
+
const query = new URLSearchParams();
|
|
3282
|
+
if (options.fields) {
|
|
3283
|
+
let fields = options.fields;
|
|
3284
|
+
if (typeof fields === 'string')
|
|
3285
|
+
fields = [fields];
|
|
3286
|
+
query.append('fields', fields.join(' '));
|
|
3287
|
+
}
|
|
3288
|
+
return Request(`/close-api/data/entities/${entity}/id/${id}?${query.toString()}`, {
|
|
3275
3289
|
method: 'GET',
|
|
3276
3290
|
headers: {
|
|
3277
3291
|
'Content-Type': 'application/json'
|
|
@@ -4929,7 +4943,7 @@ var script$a = /*#__PURE__*/ vue.defineComponent({
|
|
|
4929
4943
|
}
|
|
4930
4944
|
});
|
|
4931
4945
|
|
|
4932
|
-
var css_248z$a = "\n.user-card[data-v-610b1eb4]{\r\n display: flex;\r\n align-items: center;\r\n\r\n gap: 15px;\r\n padding: 0 35px 0 0;\r\n height: 100%;\r\n user-select: none;\r\n cursor: pointer;\n}\n.user-card-name[data-v-610b1eb4]{\r\n color: white;\n}\n.user-card-image[data-v-610b1eb4]{\r\n height: 40px;\r\n width: 40px;\r\n object-fit: cover;\r\n\r\n border-radius: 50%;\n}\n.user-card__popup[data-v-610b1eb4]{\r\n position: absolute;\r\n right: 0;\r\n min-width: 250px;\n}\r\n";
|
|
4946
|
+
var css_248z$a = "\n.user-card[data-v-610b1eb4]{\r\n display: flex;\r\n align-items: center;\r\n\r\n gap: 15px;\r\n padding: 0 35px 0 0;\r\n height: 100%;\r\n user-select: none;\r\n cursor: pointer;\n}\n.user-card-name[data-v-610b1eb4]{\r\n color: white;\n}\n.user-card-image[data-v-610b1eb4]{\r\n height: 40px;\r\n width: 40px;\r\n object-fit: cover;\r\n\r\n border-radius: 50%;\n}\n.user-card__popup[data-v-610b1eb4]{\r\n position: absolute;\r\n right: 0;\r\n min-width: 250px;\r\n z-index: 5;\n}\r\n";
|
|
4933
4947
|
styleInject(css_248z$a);
|
|
4934
4948
|
|
|
4935
4949
|
script$a.__scopeId = "data-v-610b1eb4";
|
|
@@ -5049,7 +5063,7 @@ var script$8 = /*#__PURE__*/ vue.defineComponent({
|
|
|
5049
5063
|
}
|
|
5050
5064
|
});
|
|
5051
5065
|
|
|
5052
|
-
var css_248z$8 = "\n.interface-container[data-v-378f75d5]{\r\n height: 100%;\r\n\r\n display: grid;\r\n grid-template-rows: 60px 1fr;\r\n grid-template-columns: 250px 1fr;\n}\n.interface-container__logotype[data-v-378f75d5]{\r\n display: grid;\r\n place-content: center;\r\n background-color: var(--primary);\n}\n.interface-local-nav[data-v-378f75d5]{\r\n display: none;\n}\n.interface-navigation[data-v-378f75d5]{\r\n background-color: white;\n}\n@media screen and (max-width: 768px){\n.interface-container[data-v-378f75d5]{\r\n height: 100%;\r\n\r\n display: grid;\r\n grid-template-rows: 60px 60px 1fr;\r\n grid-template-columns: 140px 1fr;\n}\n.interface-navigation[data-v-378f75d5]{\r\n position: fixed;\r\n height: 100%;\r\n min-width: 250px;\r\n z-index: 2;\r\n opacity: 0;\r\n transform: translate(-100%);\r\n\r\n transition: opacity var(--fast), transform var(--fast);\n}\n.interface-navigation-mobile_active[data-v-378f75d5]{\r\n opacity: 1;\r\n transform: translate(0);\n}\n.interface-backdrop[data-v-378f75d5]{\r\n position: fixed;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 1;\r\n background: rgba(0,0,0,.6);\r\n transition: opacity .5s;\n}\n.interface-local-nav[data-v-378f75d5]{\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n gap: 10px;\r\n padding: 10px 0;\r\n grid-column: 1/3;\n}\n.interface-container-content[data-v-378f75d5]{\r\n grid-column: 1/3;\n}\n.menu[data-v-378f75d5] {\r\n border: 0;\r\n background-color: transparent;\n}\n.menu-icon[data-v-378f75d5]{\r\n margin-right: 10px;\n}\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
|
5066
|
+
var css_248z$8 = "\n.interface-container[data-v-378f75d5]{\r\n height: 100%;\r\n\r\n display: grid;\r\n grid-template-rows: 60px 1fr;\r\n grid-template-columns: 250px 1fr;\n}\n.interface-container__logotype[data-v-378f75d5]{\r\n display: grid;\r\n place-content: center;\r\n background-color: var(--primary);\n}\n.interface-local-nav[data-v-378f75d5]{\r\n display: none;\n}\n.interface-navigation[data-v-378f75d5]{\r\n background-color: white;\n}\n.interface-container-content[data-v-378f75d5] {\r\n overflow: auto;\n}\n@media screen and (max-width: 768px){\n.interface-container[data-v-378f75d5]{\r\n height: 100%;\r\n\r\n display: grid;\r\n grid-template-rows: 60px 60px 1fr;\r\n grid-template-columns: 140px 1fr;\n}\n.interface-navigation[data-v-378f75d5]{\r\n position: fixed;\r\n height: 100%;\r\n min-width: 250px;\r\n z-index: 2;\r\n opacity: 0;\r\n transform: translate(-100%);\r\n\r\n transition: opacity var(--fast), transform var(--fast);\n}\n.interface-navigation-mobile_active[data-v-378f75d5]{\r\n opacity: 1;\r\n transform: translate(0);\n}\n.interface-backdrop[data-v-378f75d5]{\r\n position: fixed;\r\n top: 0;\r\n right: 0;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 1;\r\n background: rgba(0,0,0,.6);\r\n transition: opacity .5s;\n}\n.interface-local-nav[data-v-378f75d5]{\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n gap: 10px;\r\n padding: 10px 0;\r\n grid-column: 1/3;\n}\n.interface-container-content[data-v-378f75d5]{\r\n grid-column: 1/3;\n}\n.menu[data-v-378f75d5] {\r\n border: 0;\r\n background-color: transparent;\n}\n.menu-icon[data-v-378f75d5]{\r\n margin-right: 10px;\n}\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n";
|
|
5053
5067
|
styleInject(css_248z$8);
|
|
5054
5068
|
|
|
5055
5069
|
script$8.__scopeId = "data-v-378f75d5";
|
|
@@ -48,7 +48,16 @@ export default class dataService {
|
|
|
48
48
|
static delete(entity: string, id: number): Promise<void>;
|
|
49
49
|
static test(): Promise<Response>;
|
|
50
50
|
static read(entity: string, keys: string, options: ReadOptions): Promise<ReadResponse>;
|
|
51
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @description Reading entity's data by id.
|
|
53
|
+
* @param {String} entity Entity name in the singular.
|
|
54
|
+
* @param {Number} id Entity id.
|
|
55
|
+
* @param {Object} options
|
|
56
|
+
* @param {String | String[]} options.fields String or Array of String. Contains input names.
|
|
57
|
+
*/
|
|
58
|
+
static readById(entity: string, id: number, options?: {
|
|
59
|
+
fields?: string | string[];
|
|
60
|
+
}): Promise<any>;
|
|
52
61
|
static updateById(entity: string, id: number, values: ValuesInterface, options?: UpdateOptions): Promise<any>;
|
|
53
62
|
static getEnum(name: string): void;
|
|
54
63
|
}
|