cecon-interfaces 1.5.69 → 1.5.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/envelope/interfaces/factory-envelope-array-pag.functions.d.ts +2 -0
- package/dist/envelope/interfaces/factory-envelope-array-pag.functions.js +17 -0
- package/dist/envelope/interfaces/factory-envelope-array.functions.d.ts +2 -0
- package/dist/envelope/interfaces/factory-envelope-array.functions.js +19 -0
- package/dist/envelope/interfaces/factory-envelope.functions.d.ts +2 -0
- package/dist/envelope/interfaces/factory-envelope.functions.js +14 -0
- package/dist/envelope/interfaces/index.d.ts +3 -1
- package/dist/envelope/interfaces/index.js +7 -5
- package/dist/esm2022/envelope/interfaces/factory-envelope-array-pag.functions.mjs +14 -0
- package/dist/esm2022/envelope/interfaces/factory-envelope-array.functions.mjs +15 -0
- package/dist/esm2022/envelope/interfaces/factory-envelope.functions.mjs +11 -0
- package/dist/esm2022/envelope/interfaces/index.mjs +4 -2
- package/dist/fesm2022/cecon-interfaces.mjs +24 -18
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/envelope/interfaces/envelope.functions.d.ts +0 -5
- package/dist/envelope/interfaces/envelope.functions.js +0 -40
- package/dist/esm2022/envelope/interfaces/envelope.functions.mjs +0 -34
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.factoryEnvelopeArrayPagination = void 0;
|
4
|
+
// #region Functions (1)
|
5
|
+
// Creates an envelope containing an array of items with pagination support
|
6
|
+
function factoryEnvelopeArrayPagination(items, offSet, limit, total) {
|
7
|
+
var data = {
|
8
|
+
offSet: offSet,
|
9
|
+
limit: limit,
|
10
|
+
itemsTotal: items.length,
|
11
|
+
total: total || items.length,
|
12
|
+
items: items,
|
13
|
+
};
|
14
|
+
return data; // Consider returning a frozen copy for immutability
|
15
|
+
}
|
16
|
+
exports.factoryEnvelopeArrayPagination = factoryEnvelopeArrayPagination;
|
17
|
+
// #endregion Functions (1)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.factoryEnvelopeArray = void 0;
|
4
|
+
// #region Functions (1)
|
5
|
+
// Interface for envelope array structure
|
6
|
+
// Creates an envelope containing an array of items, handling empty arrays
|
7
|
+
function factoryEnvelopeArray(items) {
|
8
|
+
if (items === void 0) { items = []; }
|
9
|
+
var data = {
|
10
|
+
offSet: 0,
|
11
|
+
limit: 0,
|
12
|
+
itemsTotal: items.length,
|
13
|
+
total: items.length,
|
14
|
+
items: items,
|
15
|
+
};
|
16
|
+
return data; // Consider returning a frozen copy for immutability
|
17
|
+
}
|
18
|
+
exports.factoryEnvelopeArray = factoryEnvelopeArray;
|
19
|
+
// #endregion Functions (1)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
// #region Interfaces (1)
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.factoryEnvelope = void 0;
|
5
|
+
// Interface for envelope array structure
|
6
|
+
// #endregion Interfaces (1)
|
7
|
+
// #region Functions (3)
|
8
|
+
// Creates a basic envelope with a single item property
|
9
|
+
function factoryEnvelope(data) {
|
10
|
+
return {
|
11
|
+
item: data, // Make item non-nullable for clarity (adjust based on your use case)
|
12
|
+
};
|
13
|
+
}
|
14
|
+
exports.factoryEnvelope = factoryEnvelope;
|
@@ -1,3 +1,5 @@
|
|
1
|
-
export {
|
1
|
+
export { factoryEnvelopeArrayPagination } from './factory-envelope-array-pag.functions';
|
2
|
+
export { factoryEnvelopeArray } from './factory-envelope-array.functions';
|
3
|
+
export { factoryEnvelope } from './factory-envelope.functions';
|
2
4
|
export { IEnvelope } from './i-envelope';
|
3
5
|
export { IEnvelopeArray } from './i-envelope-array';
|
@@ -1,7 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "
|
6
|
-
|
7
|
-
Object.defineProperty(exports, "
|
3
|
+
exports.factoryEnvelope = exports.factoryEnvelopeArray = exports.factoryEnvelopeArrayPagination = void 0;
|
4
|
+
var factory_envelope_array_pag_functions_1 = require("./factory-envelope-array-pag.functions");
|
5
|
+
Object.defineProperty(exports, "factoryEnvelopeArrayPagination", { enumerable: true, get: function () { return factory_envelope_array_pag_functions_1.factoryEnvelopeArrayPagination; } });
|
6
|
+
var factory_envelope_array_functions_1 = require("./factory-envelope-array.functions");
|
7
|
+
Object.defineProperty(exports, "factoryEnvelopeArray", { enumerable: true, get: function () { return factory_envelope_array_functions_1.factoryEnvelopeArray; } });
|
8
|
+
var factory_envelope_functions_1 = require("./factory-envelope.functions");
|
9
|
+
Object.defineProperty(exports, "factoryEnvelope", { enumerable: true, get: function () { return factory_envelope_functions_1.factoryEnvelope; } });
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// #region Functions (1)
|
2
|
+
// Creates an envelope containing an array of items with pagination support
|
3
|
+
export function factoryEnvelopeArrayPagination(items, offSet, limit, total) {
|
4
|
+
const data = {
|
5
|
+
offSet,
|
6
|
+
limit,
|
7
|
+
itemsTotal: items.length,
|
8
|
+
total: total || items.length,
|
9
|
+
items,
|
10
|
+
};
|
11
|
+
return data; // Consider returning a frozen copy for immutability
|
12
|
+
}
|
13
|
+
// #endregion Functions (1)
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS1lbnZlbG9wZS1hcnJheS1wYWcuZnVuY3Rpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2VudmVsb3BlL2ludGVyZmFjZXMvZmFjdG9yeS1lbnZlbG9wZS1hcnJheS1wYWcuZnVuY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLHdCQUF3QjtBQUV4Qiw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kcmVnaW9uIEZ1bmN0aW9ucyAoMSlcbiJdfQ==
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// #region Functions (1)
|
2
|
+
// Interface for envelope array structure
|
3
|
+
// Creates an envelope containing an array of items, handling empty arrays
|
4
|
+
export function factoryEnvelopeArray(items = []) {
|
5
|
+
const data = {
|
6
|
+
offSet: 0,
|
7
|
+
limit: 0,
|
8
|
+
itemsTotal: items.length,
|
9
|
+
total: items.length,
|
10
|
+
items,
|
11
|
+
};
|
12
|
+
return data; // Consider returning a frozen copy for immutability
|
13
|
+
}
|
14
|
+
// #endregion Functions (1)
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS1lbnZlbG9wZS1hcnJheS5mdW5jdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZW52ZWxvcGUvaW50ZXJmYWNlcy9mYWN0b3J5LWVudmVsb3BlLWFycmF5LmZ1bmN0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSx3QkFBd0I7QUFFeEIseUNBQXlDO0FBRXpDLDBFQUEwRTtBQUMxRSxNQUFNLFVBQVUsb0JBQW9CLENBQUksUUFBYSxFQUFFO0lBQ3JELE1BQU0sSUFBSSxHQUFzQjtRQUM5QixNQUFNLEVBQUUsQ0FBQztRQUNULEtBQUssRUFBRSxDQUFDO1FBQ1IsVUFBVSxFQUFFLEtBQUssQ0FBQyxNQUFNO1FBQ3hCLEtBQUssRUFBRSxLQUFLLENBQUMsTUFBTTtRQUNuQixLQUFLO0tBQ04sQ0FBQztJQUNGLE9BQU8sSUFBSSxDQUFDLENBQUMsb0RBQW9EO0FBQ25FLENBQUM7QUFFRCwyQkFBMkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJRW52ZWxvcGVBcnJheSB9IGZyb20gJy4vaS1lbnZlbG9wZS1hcnJheSc7XG5cbi8vICNyZWdpb24gRnVuY3Rpb25zICgxKVxuXG4vLyBJbnRlcmZhY2UgZm9yIGVudmVsb3BlIGFycmF5IHN0cnVjdHVyZVxuXG4vLyBDcmVhdGVzIGFuIGVudmVsb3BlIGNvbnRhaW5pbmcgYW4gYXJyYXkgb2YgaXRlbXMsIGhhbmRsaW5nIGVtcHR5IGFycmF5c1xuZXhwb3J0IGZ1bmN0aW9uIGZhY3RvcnlFbnZlbG9wZUFycmF5PFQ+KGl0ZW1zOiBUW10gPSBbXSk6IElFbnZlbG9wZUFycmF5PFQ+IHtcbiAgY29uc3QgZGF0YTogSUVudmVsb3BlQXJyYXk8VD4gPSB7XG4gICAgb2ZmU2V0OiAwLFxuICAgIGxpbWl0OiAwLFxuICAgIGl0ZW1zVG90YWw6IGl0ZW1zLmxlbmd0aCxcbiAgICB0b3RhbDogaXRlbXMubGVuZ3RoLFxuICAgIGl0ZW1zLFxuICB9O1xuICByZXR1cm4gZGF0YTsgLy8gQ29uc2lkZXIgcmV0dXJuaW5nIGEgZnJvemVuIGNvcHkgZm9yIGltbXV0YWJpbGl0eVxufVxuXG4vLyAjZW5kcmVnaW9uIEZ1bmN0aW9ucyAoMSlcbiJdfQ==
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// #region Interfaces (1)
|
2
|
+
// Interface for envelope array structure
|
3
|
+
// #endregion Interfaces (1)
|
4
|
+
// #region Functions (3)
|
5
|
+
// Creates a basic envelope with a single item property
|
6
|
+
export function factoryEnvelope(data) {
|
7
|
+
return {
|
8
|
+
item: data, // Make item non-nullable for clarity (adjust based on your use case)
|
9
|
+
};
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS1lbnZlbG9wZS5mdW5jdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZW52ZWxvcGUvaW50ZXJmYWNlcy9mYWN0b3J5LWVudmVsb3BlLmZ1bmN0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5QkFBeUI7QUFJekIseUNBQXlDO0FBRXpDLDRCQUE0QjtBQUU1Qix3QkFBd0I7QUFFeEIsdURBQXVEO0FBQ3ZELE1BQU0sVUFBVSxlQUFlLENBQUksSUFBYztJQUMvQyxPQUFPO1FBQ0wsSUFBSSxFQUFFLElBQUksRUFBRSxxRUFBcUU7S0FDbEYsQ0FBQztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyAjcmVnaW9uIEludGVyZmFjZXMgKDEpXG5cbmltcG9ydCB7IElFbnZlbG9wZSB9IGZyb20gJy4vaS1lbnZlbG9wZSc7XG5cbi8vIEludGVyZmFjZSBmb3IgZW52ZWxvcGUgYXJyYXkgc3RydWN0dXJlXG5cbi8vICNlbmRyZWdpb24gSW50ZXJmYWNlcyAoMSlcblxuLy8gI3JlZ2lvbiBGdW5jdGlvbnMgKDMpXG5cbi8vIENyZWF0ZXMgYSBiYXNpYyBlbnZlbG9wZSB3aXRoIGEgc2luZ2xlIGl0ZW0gcHJvcGVydHlcbmV4cG9ydCBmdW5jdGlvbiBmYWN0b3J5RW52ZWxvcGU8VD4oZGF0YTogVCB8IG51bGwpOiBJRW52ZWxvcGU8VCB8IG51bGw+IHtcbiAgcmV0dXJuIHtcbiAgICBpdGVtOiBkYXRhLCAvLyBNYWtlIGl0ZW0gbm9uLW51bGxhYmxlIGZvciBjbGFyaXR5IChhZGp1c3QgYmFzZWQgb24geW91ciB1c2UgY2FzZSlcbiAgfTtcbn1cbiJdfQ==
|
@@ -1,2 +1,4 @@
|
|
1
|
-
export {
|
2
|
-
|
1
|
+
export { factoryEnvelopeArrayPagination } from './factory-envelope-array-pag.functions';
|
2
|
+
export { factoryEnvelopeArray } from './factory-envelope-array.functions';
|
3
|
+
export { factoryEnvelope } from './factory-envelope.functions';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZW52ZWxvcGUvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUN4RixPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUMxRSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sOEJBQThCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBmYWN0b3J5RW52ZWxvcGVBcnJheVBhZ2luYXRpb24gfSBmcm9tICcuL2ZhY3RvcnktZW52ZWxvcGUtYXJyYXktcGFnLmZ1bmN0aW9ucyc7XHJcbmV4cG9ydCB7IGZhY3RvcnlFbnZlbG9wZUFycmF5IH0gZnJvbSAnLi9mYWN0b3J5LWVudmVsb3BlLWFycmF5LmZ1bmN0aW9ucyc7XHJcbmV4cG9ydCB7IGZhY3RvcnlFbnZlbG9wZSB9IGZyb20gJy4vZmFjdG9yeS1lbnZlbG9wZS5mdW5jdGlvbnMnO1xyXG5leHBvcnQgeyBJRW52ZWxvcGUgfSBmcm9tICcuL2ktZW52ZWxvcGUnO1xyXG5leHBvcnQgeyBJRW52ZWxvcGVBcnJheSB9IGZyb20gJy4vaS1lbnZlbG9wZS1hcnJheSc7XHJcbiJdfQ==
|
@@ -2810,16 +2810,22 @@ var EDeviceStatus;
|
|
2810
2810
|
EDeviceStatus["DEACTIVATED"] = "DEACTIVATED";
|
2811
2811
|
})(EDeviceStatus || (EDeviceStatus = {}));
|
2812
2812
|
|
2813
|
-
// #region
|
2814
|
-
//
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2813
|
+
// #region Functions (1)
|
2814
|
+
// Creates an envelope containing an array of items with pagination support
|
2815
|
+
function factoryEnvelopeArrayPagination(items, offSet, limit, total) {
|
2816
|
+
const data = {
|
2817
|
+
offSet,
|
2818
|
+
limit,
|
2819
|
+
itemsTotal: items.length,
|
2820
|
+
total: total || items.length,
|
2821
|
+
items,
|
2821
2822
|
};
|
2823
|
+
return data; // Consider returning a frozen copy for immutability
|
2822
2824
|
}
|
2825
|
+
// #endregion Functions (1)
|
2826
|
+
|
2827
|
+
// #region Functions (1)
|
2828
|
+
// Interface for envelope array structure
|
2823
2829
|
// Creates an envelope containing an array of items, handling empty arrays
|
2824
2830
|
function factoryEnvelopeArray(items = []) {
|
2825
2831
|
const data = {
|
@@ -2831,18 +2837,18 @@ function factoryEnvelopeArray(items = []) {
|
|
2831
2837
|
};
|
2832
2838
|
return data; // Consider returning a frozen copy for immutability
|
2833
2839
|
}
|
2834
|
-
//
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2840
|
+
// #endregion Functions (1)
|
2841
|
+
|
2842
|
+
// #region Interfaces (1)
|
2843
|
+
// Interface for envelope array structure
|
2844
|
+
// #endregion Interfaces (1)
|
2845
|
+
// #region Functions (3)
|
2846
|
+
// Creates a basic envelope with a single item property
|
2847
|
+
function factoryEnvelope(data) {
|
2848
|
+
return {
|
2849
|
+
item: data, // Make item non-nullable for clarity (adjust based on your use case)
|
2842
2850
|
};
|
2843
|
-
return data; // Consider returning a frozen copy for immutability
|
2844
2851
|
}
|
2845
|
-
// #endregion Functions (3)
|
2846
2852
|
|
2847
2853
|
var EEventMessage;
|
2848
2854
|
(function (EEventMessage) {
|