tango-app-api-client 3.4.3-beta.4 → 3.6.0
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/.eslintrc.cjs +1 -1
- package/build.js +25 -0
- package/package.json +46 -43
- package/src/controllers/client.controllers.js +1116 -342
- package/src/docs/client.docs.js +2 -10
- package/src/dtos/client.dtos.js +48 -2
- package/src/hbs/approved-client.hbs +170 -170
- package/src/routes/client.routes.js +16 -2
- package/src/service/auditConfig.service.js +13 -0
- package/src/service/client.service.js +6 -0
- package/src/service/revopConfig.service.js +16 -0
package/.eslintrc.cjs
CHANGED
package/build.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// build.js
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
|
|
4
|
+
const type = process.argv[2] || 'patch'; // default to patch
|
|
5
|
+
const file = 'package.json';
|
|
6
|
+
|
|
7
|
+
// Read and parse package.json
|
|
8
|
+
const pkg = JSON.parse( fs.readFileSync( file, 'utf8' ) );
|
|
9
|
+
|
|
10
|
+
// Force "main" to be "index.js"
|
|
11
|
+
pkg.main = 'index.js';
|
|
12
|
+
|
|
13
|
+
// Bump version
|
|
14
|
+
const [ major, minor, patch ] = pkg.version.split( '.' ).map( Number );
|
|
15
|
+
|
|
16
|
+
if ( type === 'patch' ) pkg.version = `${major}.${minor}.${patch + 1}`;
|
|
17
|
+
else if ( type === 'minor' ) pkg.version = `${major}.${minor + 1}.0`;
|
|
18
|
+
else if ( type === 'major' ) pkg.version = `${major + 1}.0.0`;
|
|
19
|
+
else throw new Error( 'Invalid version type. Use patch, minor, or major.' );
|
|
20
|
+
|
|
21
|
+
// Write back to package.json
|
|
22
|
+
fs.writeFileSync( file, JSON.stringify( pkg, null, 2 ) );
|
|
23
|
+
|
|
24
|
+
// console.log( `🔧 Updated version to ${pkg.version} and set "main": "index.js"` );
|
|
25
|
+
|
package/package.json
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "tango-app-api-client",
|
|
3
|
+
"version": "3.6.0",
|
|
4
|
+
"description": "client",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node app.js\"",
|
|
9
|
+
"build:patch": "node build.js patch && npm publish",
|
|
10
|
+
"build:minor": "node build.js minor && npm publish",
|
|
11
|
+
"build:major": "node build.js major && npm publish"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18.10.0"
|
|
15
|
+
},
|
|
16
|
+
"author": "praveenraj",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"aws-sdk": "^2.1560.0",
|
|
20
|
+
"cors": "^2.8.5",
|
|
21
|
+
"dotenv": "^16.4.4",
|
|
22
|
+
"express": "^4.18.2",
|
|
23
|
+
"express-fileupload": "^1.4.3",
|
|
24
|
+
"handlebars": "^4.7.8",
|
|
25
|
+
"joi": "^17.12.1",
|
|
26
|
+
"joi-to-swagger": "^6.2.0",
|
|
27
|
+
"lodash": "^4.17.21",
|
|
28
|
+
"mongodb": "^6.7.0",
|
|
29
|
+
"nodemon": "^3.0.3",
|
|
30
|
+
"npm": "^10.9.1",
|
|
31
|
+
"sharp": "^0.34.3",
|
|
32
|
+
"swagger-ui-express": "^5.0.0",
|
|
33
|
+
"tango-api-schema": "^2.3.6",
|
|
34
|
+
"tango-app-api-middleware": "^3.4.2",
|
|
35
|
+
"winston": "^3.11.0",
|
|
36
|
+
"winston-daily-rotate-file": "^5.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"eslint": "^8.56.0",
|
|
40
|
+
"eslint-config-google": "^0.14.0",
|
|
41
|
+
"eslint-config-semistandard": "^17.0.0",
|
|
42
|
+
"eslint-config-standard": "^17.1.0",
|
|
43
|
+
"eslint-plugin-import": "^2.29.1",
|
|
44
|
+
"eslint-plugin-promise": "^6.1.1"
|
|
45
|
+
}
|
|
46
|
+
}
|