ismx-nexo-node-app 0.3.24
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/js/api/Service.js +45 -0
- package/dist/js/api/ServiceRest.js +33 -0
- package/dist/js/api/ServiceRestFormal.js +97 -0
- package/dist/js/api/ServiceRestFormalTemplate.js +127 -0
- package/dist/js/business/Business.js +5 -0
- package/dist/js/business/BusinessErrors.js +101 -0
- package/dist/js/business/BusinessLogger.js +9 -0
- package/dist/js/business/BusinessProxy.js +90 -0
- package/dist/js/business/BusinessServer.js +97 -0
- package/dist/js/business/BusinessState.js +5 -0
- package/dist/js/business/BusinessThread.js +23 -0
- package/dist/js/business/utils/CryptoUtils.js +30 -0
- package/dist/js/business/utils/NumberUtils.js +8 -0
- package/dist/js/business/utils/StringUtils.js +20 -0
- package/dist/js/index.js +56 -0
- package/dist/js/repository/Repository.js +5 -0
- package/dist/js/repository/RepositoryPostgres.js +215 -0
- package/dist/js/repository/RepositoryRest.js +55 -0
- package/dist/js/repository/RepositoryRestFormal.js +46 -0
- package/dist/js/repository/utils/PostgresUtils.js +51 -0
- package/dist/js/repository/utils/QueryUtils.js +13 -0
- package/dist/types/api/Service.d.ts +45 -0
- package/dist/types/api/ServiceRest.d.ts +6 -0
- package/dist/types/api/ServiceRestFormal.d.ts +23 -0
- package/dist/types/api/ServiceRestFormalTemplate.d.ts +40 -0
- package/dist/types/business/Business.d.ts +2 -0
- package/dist/types/business/BusinessErrors.d.ts +39 -0
- package/dist/types/business/BusinessLogger.d.ts +3 -0
- package/dist/types/business/BusinessProxy.d.ts +15 -0
- package/dist/types/business/BusinessServer.d.ts +15 -0
- package/dist/types/business/BusinessState.d.ts +2 -0
- package/dist/types/business/BusinessThread.d.ts +8 -0
- package/dist/types/business/utils/CryptoUtils.d.ts +5 -0
- package/dist/types/business/utils/NumberUtils.d.ts +3 -0
- package/dist/types/business/utils/StringUtils.d.ts +5 -0
- package/dist/types/index.d.ts +35 -0
- package/dist/types/repository/Repository.d.ts +2 -0
- package/dist/types/repository/RepositoryPostgres.d.ts +75 -0
- package/dist/types/repository/RepositoryRest.d.ts +17 -0
- package/dist/types/repository/RepositoryRestFormal.d.ts +7 -0
- package/dist/types/repository/utils/PostgresUtils.d.ts +17 -0
- package/dist/types/repository/utils/QueryUtils.d.ts +5 -0
- package/package.json +35 -0
- package/src/main/node/api/Service.ts +55 -0
- package/src/main/node/api/ServiceRest.ts +19 -0
- package/src/main/node/api/ServiceRestFormal.ts +58 -0
- package/src/main/node/api/ServiceRestFormalTemplate.ts +133 -0
- package/src/main/node/business/Business.ts +3 -0
- package/src/main/node/business/BusinessErrors.ts +94 -0
- package/src/main/node/business/BusinessLogger.ts +6 -0
- package/src/main/node/business/BusinessProxy.ts +57 -0
- package/src/main/node/business/BusinessServer.ts +76 -0
- package/src/main/node/business/BusinessState.ts +4 -0
- package/src/main/node/business/BusinessThread.ts +19 -0
- package/src/main/node/business/utils/CryptoUtils.ts +32 -0
- package/src/main/node/business/utils/NumberUtils.ts +6 -0
- package/src/main/node/business/utils/StringUtils.ts +20 -0
- package/src/main/node/index.ts +45 -0
- package/src/main/node/repository/Repository.ts +3 -0
- package/src/main/node/repository/RepositoryPostgres.ts +246 -0
- package/src/main/node/repository/RepositoryRest.ts +70 -0
- package/src/main/node/repository/RepositoryRestFormal.ts +37 -0
- package/src/main/node/repository/utils/PostgresUtils.ts +59 -0
- package/src/main/node/repository/utils/QueryUtils.ts +10 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default class QueryUtils
|
|
2
|
+
{
|
|
3
|
+
static map(query: { [key:string]: string } = {}): string {
|
|
4
|
+
if (!query || Object.entries(query).length === 0) return "";
|
|
5
|
+
let queryString = "?"
|
|
6
|
+
for (const param in query)
|
|
7
|
+
queryString += `${param}=${query[param]}&`
|
|
8
|
+
return queryString;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es6", // Versión de ECMAScript de salida
|
|
4
|
+
"module": "commonjs", // Sistema de módulos a usar
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"declaration": true, // Generar archivos de declaración (.d.ts)
|
|
7
|
+
"declarationDir": "./dist/types", // Generar archivos de declaración (.d.ts)
|
|
8
|
+
"outDir": "./dist/js", // Directorio de salida para los archivos compilados
|
|
9
|
+
"rootDir": "./src/main/node", // Directorio raíz de los archivos fuente
|
|
10
|
+
"strict": true, // Activar todas las verificaciones de tipo
|
|
11
|
+
"esModuleInterop": true, // Permitir la interoperabilidad entre módulos ES y CommonJS
|
|
12
|
+
"skipLibCheck": true, // Omitir la verificación de tipos en archivos de declaración de librerías
|
|
13
|
+
"forceConsistentCasingInFileNames": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/main/node/**/*"], // Incluir todos los archivos en src
|
|
16
|
+
"exclude": ["node_modules", "dist"] // Excluir node_modules y dist
|
|
17
|
+
}
|
|
18
|
+
|