ismx-nexo-node-app 0.3.47 → 0.3.49

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.
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ColorUtils {
4
+ static transparency(color, transparency) {
5
+ if (!color || !transparency)
6
+ return undefined;
7
+ return color.substring(0, 7) + Math.ceil(transparency * 255).toString(16);
8
+ }
9
+ }
10
+ exports.default = ColorUtils;
package/dist/js/index.js CHANGED
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.QueryUtils = exports.RepositoryRestFormalTemplate = exports.RepositoryRestFormal = exports.RepositoryRest = exports.RepositoryDatabasePostgres = exports.RepositoryDatabase = exports.Repository = exports.StringUtils = exports.NumberUtils = exports.CryptoUtils = exports.BusinessLogger = exports.BusinessErrors = exports.BusinessThread = exports.BusinessServer = exports.BusinessProxy = exports.BusinessState = exports.Business = exports.ServiceRestFormalTemplate = exports.ServiceRestFormal = exports.ServiceRest = exports.HttpResponse = exports.Service = void 0;
29
+ exports.RestUtils = exports.QueryUtils = exports.RepositoryRestFormalTemplate = exports.RepositoryRestFormal = exports.RepositoryRest = exports.RepositoryDatabasePostgres = exports.RepositoryDatabase = exports.Repository = exports.StringUtils = exports.NumberUtils = exports.CryptoUtils = exports.BusinessLogger = exports.BusinessErrors = exports.BusinessThread = exports.BusinessServer = exports.BusinessProxy = exports.BusinessState = exports.Business = exports.ColorUtils = exports.ServiceRestFormalTemplate = exports.ServiceRestFormal = exports.ServiceRest = exports.HttpResponse = exports.Service = void 0;
30
30
  const Service_1 = __importStar(require("./api/Service"));
31
31
  class Service extends Service_1.default {
32
32
  }
@@ -46,6 +46,10 @@ const ServiceRestFormalTemplate_1 = __importDefault(require("./api/ServiceRestFo
46
46
  class ServiceRestFormalTemplate extends ServiceRestFormalTemplate_1.default {
47
47
  }
48
48
  exports.ServiceRestFormalTemplate = ServiceRestFormalTemplate;
49
+ const ColorUtils_1 = __importDefault(require("./api/utils/ColorUtils"));
50
+ class ColorUtils extends ColorUtils_1.default {
51
+ }
52
+ exports.ColorUtils = ColorUtils;
49
53
  /**************************************************************/
50
54
  const Business_1 = __importDefault(require("./business/Business"));
51
55
  class Business extends Business_1.default {
@@ -116,3 +120,7 @@ const QueryUtils_1 = __importDefault(require("./repository/utils/QueryUtils"));
116
120
  class QueryUtils extends QueryUtils_1.default {
117
121
  }
118
122
  exports.QueryUtils = QueryUtils;
123
+ const RestUtils_1 = __importDefault(require("./repository/utils/RestUtils"));
124
+ class RestUtils extends RestUtils_1.default {
125
+ }
126
+ exports.RestUtils = RestUtils;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class RestUtils {
4
+ static notNull(value) {
5
+ return value;
6
+ }
7
+ }
8
+ exports.default = RestUtils;
@@ -0,0 +1,3 @@
1
+ export default abstract class ColorUtils {
2
+ static transparency(color?: string, transparency?: number): string | undefined;
3
+ }
@@ -16,6 +16,9 @@ export interface Wrapper<T = any> extends BaseWrapper<T> {
16
16
  import BaseServiceRestFormalTemplate from "./api/ServiceRestFormalTemplate";
17
17
  export declare class ServiceRestFormalTemplate<A = any> extends BaseServiceRestFormalTemplate<A> {
18
18
  }
19
+ import _ColorUtils from "./api/utils/ColorUtils";
20
+ export declare abstract class ColorUtils extends _ColorUtils {
21
+ }
19
22
  /**************************************************************/
20
23
  import BaseBusiness from "./business/Business";
21
24
  export declare class Business extends BaseBusiness {
@@ -75,3 +78,6 @@ export declare class RepositoryRestFormalTemplate<M = any> extends _RepositoryRe
75
78
  import _QueryUtils from "./repository/utils/QueryUtils";
76
79
  export declare abstract class QueryUtils extends _QueryUtils {
77
80
  }
81
+ import _RestUtils from "./repository/utils/RestUtils";
82
+ export declare abstract class RestUtils extends _RestUtils {
83
+ }
@@ -0,0 +1,3 @@
1
+ export default class RestUtils {
2
+ static notNull<T>(value: T | undefined): T;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.3.47",
3
+ "version": "0.3.49",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -0,0 +1,8 @@
1
+ export default abstract class ColorUtils {
2
+
3
+ static transparency(color?: string, transparency?: number) {
4
+ if (!color || !transparency) return undefined;
5
+ return color.substring(0, 7) + Math.ceil(transparency*255).toString(16);
6
+ }
7
+
8
+ }
@@ -13,6 +13,9 @@ export interface Wrapper<T=any> extends BaseWrapper<T> {}
13
13
  import BaseServiceRestFormalTemplate from "./api/ServiceRestFormalTemplate"
14
14
  export class ServiceRestFormalTemplate<A=any> extends BaseServiceRestFormalTemplate<A> {}
15
15
 
16
+ import _ColorUtils from "./api/utils/ColorUtils";
17
+ export abstract class ColorUtils extends _ColorUtils {}
18
+
16
19
  /**************************************************************/
17
20
 
18
21
  import BaseBusiness from "./business/Business";
@@ -70,3 +73,6 @@ export class RepositoryRestFormalTemplate<M=any> extends _RepositoryRestFormalTe
70
73
 
71
74
  import _QueryUtils from "./repository/utils/QueryUtils";
72
75
  export abstract class QueryUtils extends _QueryUtils {}
76
+
77
+ import _RestUtils from "./repository/utils/RestUtils";
78
+ export abstract class RestUtils extends _RestUtils {}
@@ -0,0 +1,6 @@
1
+ export default class RestUtils
2
+ {
3
+ static notNull<T>(value: T | undefined): T {
4
+ return value!
5
+ }
6
+ }