k2hr3-api 1.0.41 → 2.0.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.
Files changed (149) hide show
  1. package/config/k2hr3-init.sh.templ +2 -2
  2. package/dist/.gitkeep +0 -0
  3. package/dist/src/app.js +262 -0
  4. package/{bin → dist/src/bin}/run.sh +1 -1
  5. package/dist/src/bin/watcher.js +113 -0
  6. package/dist/src/bin/www.js +217 -0
  7. package/dist/src/lib/basicipcheck.js +392 -0
  8. package/dist/src/lib/cacerts.js +106 -0
  9. package/dist/src/lib/dbglogging.js +190 -0
  10. package/dist/src/lib/dummyuserapi.js +719 -0
  11. package/dist/src/lib/ipwatch.js +354 -0
  12. package/dist/src/lib/k2hr3acrutil.js +532 -0
  13. package/dist/src/lib/k2hr3apiutil.js +1444 -0
  14. package/dist/src/lib/k2hr3cliutil.js +183 -0
  15. package/dist/src/lib/k2hr3config.js +832 -0
  16. package/dist/src/lib/k2hr3cryptutil.js +258 -0
  17. package/dist/src/lib/k2hr3dkc.js +12121 -0
  18. package/dist/src/lib/k2hr3extdata.js +198 -0
  19. package/dist/src/lib/k2hr3keys.js +207 -0
  20. package/dist/src/lib/k2hr3resutil.js +111 -0
  21. package/dist/src/lib/k2hr3template.js +6546 -0
  22. package/dist/src/lib/k2hr3tokens.js +2643 -0
  23. package/dist/src/lib/k2hr3userdata.js +296 -0
  24. package/dist/src/lib/k8soidc.js +1000 -0
  25. package/dist/src/lib/openstackapiv2.js +695 -0
  26. package/dist/src/lib/openstackapiv3.js +932 -0
  27. package/dist/src/lib/openstackep.js +667 -0
  28. package/{tests/auto_common.js → dist/src/lib/types.js} +4 -38
  29. package/dist/src/routes/acr.js +704 -0
  30. package/dist/src/routes/debugVerify.js +294 -0
  31. package/dist/src/routes/extdata.js +219 -0
  32. package/dist/src/routes/list.js +264 -0
  33. package/dist/src/routes/policy.js +840 -0
  34. package/dist/src/routes/resource.js +1489 -0
  35. package/dist/src/routes/role.js +2627 -0
  36. package/dist/src/routes/service.js +908 -0
  37. package/dist/src/routes/tenant.js +1141 -0
  38. package/dist/src/routes/userTokens.js +482 -0
  39. package/dist/src/routes/userdata.js +212 -0
  40. package/dist/src/routes/version.js +103 -0
  41. package/package.json +152 -121
  42. package/ChangeLog +0 -372
  43. package/app.js +0 -292
  44. package/bin/watcher +0 -122
  45. package/bin/www +0 -180
  46. package/eslint.config.mjs +0 -68
  47. package/lib/basicipcheck.js +0 -376
  48. package/lib/cacerts.js +0 -71
  49. package/lib/dbglogging.js +0 -151
  50. package/lib/dummyuserapi.js +0 -766
  51. package/lib/ipwatch.js +0 -379
  52. package/lib/k2hr3acrutil.js +0 -516
  53. package/lib/k2hr3apiutil.js +0 -1494
  54. package/lib/k2hr3cliutil.js +0 -191
  55. package/lib/k2hr3config.js +0 -826
  56. package/lib/k2hr3cryptutil.js +0 -254
  57. package/lib/k2hr3dkc.js +0 -12632
  58. package/lib/k2hr3extdata.js +0 -198
  59. package/lib/k2hr3keys.js +0 -234
  60. package/lib/k2hr3resutil.js +0 -100
  61. package/lib/k2hr3template.js +0 -6925
  62. package/lib/k2hr3tokens.js +0 -2799
  63. package/lib/k2hr3userdata.js +0 -312
  64. package/lib/k8soidc.js +0 -1012
  65. package/lib/openstackapiv2.js +0 -764
  66. package/lib/openstackapiv3.js +0 -1032
  67. package/lib/openstackep.js +0 -553
  68. package/routes/acr.js +0 -738
  69. package/routes/debugVerify.js +0 -263
  70. package/routes/extdata.js +0 -232
  71. package/routes/list.js +0 -270
  72. package/routes/policy.js +0 -869
  73. package/routes/resource.js +0 -1441
  74. package/routes/role.js +0 -2664
  75. package/routes/service.js +0 -894
  76. package/routes/tenant.js +0 -1095
  77. package/routes/userTokens.js +0 -511
  78. package/routes/userdata.js +0 -218
  79. package/routes/version.js +0 -108
  80. package/templ/Dockerfile.templ +0 -71
  81. package/tests/auto_acr.js +0 -1101
  82. package/tests/auto_acr_spec.js +0 -79
  83. package/tests/auto_all_spec.js +0 -142
  84. package/tests/auto_control_subprocess.sh +0 -243
  85. package/tests/auto_extdata.js +0 -220
  86. package/tests/auto_extdata_spec.js +0 -79
  87. package/tests/auto_init_config_json.sh +0 -275
  88. package/tests/auto_k2hdkc_server.ini +0 -109
  89. package/tests/auto_k2hdkc_slave.ini +0 -83
  90. package/tests/auto_list.js +0 -439
  91. package/tests/auto_list_spec.js +0 -79
  92. package/tests/auto_policy.js +0 -1579
  93. package/tests/auto_policy_spec.js +0 -79
  94. package/tests/auto_resource.js +0 -10956
  95. package/tests/auto_resource_spec.js +0 -79
  96. package/tests/auto_role.js +0 -6150
  97. package/tests/auto_role_spec.js +0 -79
  98. package/tests/auto_service.js +0 -770
  99. package/tests/auto_service_spec.js +0 -79
  100. package/tests/auto_subprocesses.js +0 -114
  101. package/tests/auto_template.sh +0 -126
  102. package/tests/auto_tenant.js +0 -1100
  103. package/tests/auto_tenant_spec.js +0 -79
  104. package/tests/auto_token_util.js +0 -219
  105. package/tests/auto_userdata.js +0 -292
  106. package/tests/auto_userdata_spec.js +0 -79
  107. package/tests/auto_usertokens.js +0 -565
  108. package/tests/auto_usertokens_spec.js +0 -79
  109. package/tests/auto_version.js +0 -127
  110. package/tests/auto_version_spec.js +0 -79
  111. package/tests/auto_watcher.js +0 -157
  112. package/tests/auto_watcher_spec.js +0 -79
  113. package/tests/k2hdkc_test.data +0 -986
  114. package/tests/k2hdkc_test_load.sh +0 -255
  115. package/tests/k2hr3template_test.js +0 -187
  116. package/tests/k2hr3template_test.sh +0 -339
  117. package/tests/k2hr3template_test_async.js +0 -216
  118. package/tests/k2hr3template_test_template.result +0 -7117
  119. package/tests/k2hr3template_test_template.txt +0 -3608
  120. package/tests/k2hr3template_test_vars.js +0 -194
  121. package/tests/manual_acr_delete.js +0 -143
  122. package/tests/manual_acr_get.js +0 -297
  123. package/tests/manual_acr_postput.js +0 -215
  124. package/tests/manual_allusertenant_get.js +0 -113
  125. package/tests/manual_extdata_get.js +0 -191
  126. package/tests/manual_k2hr3keys_get.js +0 -84
  127. package/tests/manual_list_gethead.js +0 -230
  128. package/tests/manual_policy_delete.js +0 -132
  129. package/tests/manual_policy_gethead.js +0 -275
  130. package/tests/manual_policy_postput.js +0 -297
  131. package/tests/manual_resource_delete.js +0 -433
  132. package/tests/manual_resource_gethead.js +0 -423
  133. package/tests/manual_resource_postput.js +0 -487
  134. package/tests/manual_role_delete.js +0 -404
  135. package/tests/manual_role_gethead.js +0 -547
  136. package/tests/manual_role_postput.js +0 -544
  137. package/tests/manual_service_delete.js +0 -153
  138. package/tests/manual_service_gethead.js +0 -178
  139. package/tests/manual_service_postput.js +0 -348
  140. package/tests/manual_tenant_delete.js +0 -186
  141. package/tests/manual_tenant_gethead.js +0 -268
  142. package/tests/manual_tenant_postput.js +0 -293
  143. package/tests/manual_test.sh +0 -352
  144. package/tests/manual_userdata_get.js +0 -173
  145. package/tests/manual_usertoken_gethead.js +0 -136
  146. package/tests/manual_usertoken_postput.js +0 -310
  147. package/tests/manual_version_get.js +0 -127
  148. package/tests/run_local_test_k2hdkc.sh +0 -174
  149. package/tests/test.sh +0 -333
package/package.json CHANGED
@@ -1,135 +1,166 @@
1
1
  {
2
2
  "name": "k2hr3-api",
3
- "version": "1.0.41",
3
+ "version": "2.0.0",
4
+ "description": "K2HR3 REST API is K2hdkc based Resource and Roles and policy Rules",
5
+ "main": "dist/app.js",
4
6
  "dependencies": {
5
- "@kubernetes/client-node": "^1.0.0",
6
- "body-parser": "^1.20.3",
7
- "config": "^3.3.12",
7
+ "@kubernetes/client-node": "^1.4.0",
8
+ "body-parser": "^2.2.2",
9
+ "config": "^4.4.1",
8
10
  "cookie-parser": "~1.4.7",
9
- "dateformat": "^4.6.3",
10
- "debug": "~4.4.0",
11
- "express": "^4.21.2",
12
- "jose": "^5.10.0",
13
- "k2hdkc": "^1.0.13",
14
- "morgan": "~1.10.0",
15
- "rotating-file-stream": "^3.2.6"
16
- },
17
- "bin": {
18
- "k2hr3-api": "./bin/www",
19
- "k2hr3-watcher": "./bin/watcher"
11
+ "dateformat": "^5.0.3",
12
+ "debug": "~4.4.3",
13
+ "express": "^5.2.1",
14
+ "jose": "^6.2.1",
15
+ "k2hdkc": "^2.0.3",
16
+ "morgan": "~1.10.1",
17
+ "rotating-file-stream": "^3.2.9"
20
18
  },
21
- "description": "K2HR3 REST API is K2hdkc based Resource and Roles and policy Rules",
22
- "main": "app.js",
23
19
  "directories": {
24
20
  "config": "config",
25
- "bin": "bin",
26
- "lib": "lib",
27
- "routes": "routes",
28
- "test": "test"
21
+ "bin": "dist/src/bin",
22
+ "lib": "dist/src/lib",
23
+ "routes": "dist/src/routes"
24
+ },
25
+ "files": [
26
+ "dist/",
27
+ "!dist/tests/",
28
+ "!dist/src/log/",
29
+ "config/",
30
+ "README.md",
31
+ "LICENSE"
32
+ ],
33
+ "bin": {
34
+ "k2hr3-api": "dist/src/bin/www.js",
35
+ "k2hr3-watcher": "dist/src/bin/watcher.js"
29
36
  },
30
37
  "devDependencies": {
31
- "chai": "^4.5.0",
32
- "chai-http": "^4.4.0",
33
- "eslint": "^9.21.0",
34
- "mocha": "^11.1.0",
35
- "nyc": "^17.1.0"
38
+ "@eslint/eslintrc": "^3.3.5",
39
+ "@eslint/js": "^10.0.1",
40
+ "@types/body-parser": "^1.19.6",
41
+ "@types/chai": "^5.2.3",
42
+ "@types/config": "^3.3.5",
43
+ "@types/cookie-parser": "^1.4.10",
44
+ "@types/dateformat": "^5.0.3",
45
+ "@types/debug": "^4.1.12",
46
+ "@types/express": "^5.0.6",
47
+ "@types/mocha": "^10.0.10",
48
+ "@types/morgan": "^1.9.10",
49
+ "@types/node": "^25.4.0",
50
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
51
+ "@typescript-eslint/parser": "^8.57.0",
52
+ "chai": "^6.2.2",
53
+ "chai-http": "^5.1.2",
54
+ "eslint": "^10.0.3",
55
+ "globals": "^17.4.0",
56
+ "mocha": "^11.7.5",
57
+ "nyc": "^18.0.0",
58
+ "typescript": "^5.9.3"
36
59
  },
37
60
  "scripts": {
38
- "help": "echo 'command list:\n npm run start\n npm run start:prod\n npm run start:production\n npm run start:prod:dbg\n npm run start:prod:debug\n npm run start:prod:debug:break\n npm run start:prod:debug:nobreak\n npm run start:dev\n npm run start:develop\n npm run start:dev:dbg\n npm run start:dev:debug\n npm run start:dev:debug:break\n npm run start:dev:debug:nobreak\n npm run start:watcher:prod\n npm run start:watcher:production\n npm run start:watcher:dev\n npm run start:watcher:develop\n npm run start:watcher:dbg\n npm run start:watcher:debug\n npm run start:watcher:debug:break\n npm run start:watcher:debug:nobreak\n npm run start:watcher:oneshot:prod\n npm run start:watcher:oneshot:production\n npm run start:watcher:oneshot:dev\n npm run start:watcher:oneshot:develop\n npm run start:watcher:oneshot:dbg\n npm run start:watcher:oneshot:debug\n npm run start:watcher:oneshot:debug:break\n npm run start:watcher:oneshot:debug:nobreak\n npm run stop\n npm run stop:watcher\n npm run test\n npm run test:lint\n npm run test:cover\n npm run test:auto:all{:dbg}\n npm run test:auto:version{:dbg}\n npm run test:auto:usertokens{:dbg}\n npm run test:auto:list{:dbg}\n npm run test:auto:resource{:dbg}\n npm run test:auto:policy{:dbg}\n npm run test:auto:role{:dbg}\n npm run test:auto:tenant{:dbg}\n npm run test:auto:service{:dbg}\n npm run test:auto:acr{:dbg}\n npm run test:auto:userdata{:dbg}\n npm run test:auto:extdata{:dbg}\n npm run test:auto:watcher{:dbg}\n npm run test:auto:templengine\n npm run test:auto:templengine:async\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:tenant_postput\n npm run test:manual:apis:tenant_gethead\n npm run test:manual:apis:tenant_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
39
- "start": "npm run start:production",
40
- "start:prod": "npm run start:production",
41
- "start:production": "bin/run.sh -bg --production && echo '' && echo 'Start on production - Success' && echo ''",
42
- "start:prod:dbg": "npm run start:prod:debug",
43
- "start:prod:debug": "npm run start:prod:debug:break",
44
- "start:prod:debug:break": "echo '' && echo 'Start on production with debugging' && echo '' && bin/run.sh --production --debug --debuglevel dbg",
45
- "start:prod:debug:nobreak": "echo '' && echo 'Start on production with debugging no break' && echo '' && bin/run.sh --production --debug-nobrk --debuglevel dbg",
46
- "start:dev": "npm run start:develop",
47
- "start:develop": "echo '' && echo 'Start on development without debugging' && echo '' && bin/run.sh -bg --development",
48
- "start:dev:dbg": "npm run start:dev:debug",
49
- "start:dev:debug": "npm run start:dev:debug:break",
50
- "start:dev:debug:break": "echo '' && echo 'Start on development with debugging' && echo '' && bin/run.sh --development --debug --debuglevel dbg",
51
- "start:dev:debug:nobreak": "echo '' && echo 'Start on development with debugging no break' && echo '' && bin/run.sh --development --debug-nobrk --debuglevel dbg",
52
- "start:watcher:prod": "npm run start:watcher:production",
53
- "start:watcher:production": "bin/run.sh -bg --production --watcher && echo '' && echo 'Start watcher on production - Success' && echo ''",
54
- "start:watcher:dev": "npm run start:watcher:develop",
55
- "start:watcher:develop": "echo '' && echo 'Start watcher on development without debugging' && echo '' && bin/run.sh -bg --development --watcher",
56
- "start:watcher:dbg": "npm run start:watcher:debug",
57
- "start:watcher:debug": "npm run start:watcher:debug:break",
58
- "start:watcher:debug:break": "echo '' && echo 'Start watcher on development with debugging' && echo '' && bin/run.sh --development --watcher --debug --debuglevel dbg",
59
- "start:watcher:debug:nobreak": "echo '' && echo 'Start watcher on development with debugging no break' && echo '' && bin/run.sh --development --watcher --debug-nobrk --debuglevel dbg",
60
- "start:watcher:oneshot:prod": "npm run start:watcher:oneshot:production",
61
- "start:watcher:oneshot:production": "bin/run.sh -bg --production --watcher --oneshot && echo '' && echo 'Start watcher on production - Success' && echo ''",
62
- "start:watcher:oneshot:dev": "npm run start:watcher:oneshot:develop",
63
- "start:watcher:oneshot:develop": "echo '' && echo 'Start watcher on development without debugging' && echo '' && bin/run.sh -bg --development --watcher --oneshot",
64
- "start:watcher:oneshot:dbg": "npm run start:watcher:oneshot:debug",
65
- "start:watcher:oneshot:debug": "npm run start:watcher:oneshot:debug:break",
66
- "start:watcher:oneshot:debug:break": "echo '' && echo 'Start watcher on development with debugging' && echo '' && bin/run.sh --development --watcher --oneshot --debug --debuglevel dbg",
67
- "start:watcher:oneshot:debug:nobreak": "echo '' && echo 'Start watcher on development with debugging no break' && echo '' && bin/run.sh --development --watcher --oneshot --debug-nobrk --debuglevel dbg",
68
- "stop": "bin/run.sh --stop && echo '' && echo 'Stop - Success' && echo ''",
69
- "stop:watcher": "bin/run.sh --stop --watcher && echo '' && echo 'Stop watcher - Success' && echo ''",
70
- "test": "npm run test:cover",
71
- "test:lint": "eslint lib/*.js app.js bin/www bin/watcher routes/*.js tests/*.js",
72
- "test:cover": "echo 'Test with coverage' && nyc --reporter=lcov --reporter=text npm run test:auto:all",
61
+ "help": "echo 'command list:\n npm run build\n npm run build:all\n npm run build:copyfiles\n npm run build:files\n npm run clean\n npm run start\n npm run start:prod\n npm run start:production\n npm run start:prod:dbg\n npm run start:prod:debug\n npm run start:prod:debug:break\n npm run start:prod:debug:nobreak\n npm run start:dev\n npm run start:develop\n npm run start:dev:dbg\n npm run start:dev:debug\n npm run start:dev:debug:break\n npm run start:dev:debug:nobreak\n npm run start:watcher:prod\n npm run start:watcher:production\n npm run start:watcher:dev\n npm run start:watcher:develop\n npm run start:watcher:dbg\n npm run start:watcher:debug\n npm run start:watcher:debug:break\n npm run start:watcher:debug:nobreak\n npm run start:watcher:oneshot:prod\n npm run start:watcher:oneshot:production\n npm run start:watcher:oneshot:dev\n npm run start:watcher:oneshot:develop\n npm run start:watcher:oneshot:dbg\n npm run start:watcher:oneshot:debug\n npm run start:watcher:oneshot:debug:break\n npm run start:watcher:oneshot:debug:nobreak\n npm run stop\n npm run stop:watcher\n npm run test\n npm run test:lint\n npm run test:lint:all\n npm run test:lint:files\n npm run test:checktypes\n npm run test:cover\n npm run test:auto\n npm run test:auto:all{:dbg}\n npm run test:auto:version{:dbg}\n npm run test:auto:usertokens{:dbg}\n npm run test:auto:list{:dbg}\n npm run test:auto:resource{:dbg}\n npm run test:auto:policy{:dbg}\n npm run test:auto:role{:dbg}\n npm run test:auto:tenant{:dbg}\n npm run test:auto:service{:dbg}\n npm run test:auto:acr{:dbg}\n npm run test:auto:userdata{:dbg}\n npm run test:auto:extdata{:dbg}\n npm run test:auto:watcher{:dbg}\n npm run test:auto:templengine\n npm run test:auto:templengine:async\n npm run test:manual\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:tenant_postput\n npm run test:manual:apis:tenant_gethead\n npm run test:manual:apis:tenant_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
62
+ "build": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] build' && npm run build:all && echo '-> [DONE] build\n'",
63
+ "build:all": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] build:all' && tsc && npm run build:copyfiles && echo '-> [DONE] build:all\n'",
64
+ "build:copyfiles": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] build:copyfiles' && if [ -d dist/src/bin ]; then mkdir -p dist/src/bin >/dev/null 2>&1; fi && cp src/bin/run.sh dist/src/bin/run.sh >/dev/null 2>&1 && chmod +x dist/src/bin/run.sh >/dev/null 2>&1 && echo '-> [DONE] build:copyfiles\n'",
65
+ "build:files": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] build:files <file>' && tsc --target ES2022 --module nodenext --moduleResolution nodenext --rootDir . --outDir dist --strict --esModuleInterop --forceConsistentCasingInFileNames --skipLibCheck --resolveJsonModule --allowJs false",
66
+ "clean": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] clean' && if [ -d dist ]; then rm -rf dist/* >/dev/null 2>&1; fi && echo '-> [DONE] clean\n'",
67
+ "start": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start' && npm run start:production && echo '-> [DONE] start\n'",
68
+ "start:prod": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:prod' && npm run start:production && echo '-> [DONE] start:prod\n'",
69
+ "start:production": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:production' && dist/src/bin/run.sh -bg --production && echo '-> [DONE] start:production\n'",
70
+ "start:prod:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:prod:dbg' && npm run start:prod:debug && echo '-> [DONE] start:prod:dbg\n'",
71
+ "start:prod:debug": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:prod:debug' && npm run start:prod:debug:break && echo '-> [DONE] start:prod:debug\n'",
72
+ "start:prod:debug:break": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:prod:debug:break' && dist/src/bin/run.sh --production --debug --debuglevel dbg && echo '-> [DONE] start:prod:debug:break\n'",
73
+ "start:prod:debug:nobreak": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:prod:debug:nobreak' && dist/src/bin/run.sh --production --debug-nobrk --debuglevel dbg && echo '-> [DONE] start:prod:debug:nobreak\n'",
74
+ "start:dev": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:dev' && npm run start:develop && echo '-> [DONE] start:dev\n'",
75
+ "start:develop": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:develop' && dist/src/bin/run.sh -bg --development && echo '-> [DONE] start:develop\n'",
76
+ "start:dev:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:dev:dbg' && npm run start:dev:debug && echo '-> [DONE] start:dev:dbg\n'",
77
+ "start:dev:debug": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:dev:debug' && npm run start:dev:debug:break && echo '-> [DONE] start:dev:debug\n'",
78
+ "start:dev:debug:break": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:dev:debug:break' && dist/src/bin/run.sh --development --debug --debuglevel dbg && echo '-> [DONE] start:dev:debug:break\n'",
79
+ "start:dev:debug:nobreak": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:dev:debug:nobreak' && dist/src/bin/run.sh --development --debug-nobrk --debuglevel dbg && echo '-> [DONE] start:dev:debug:nobreak\n'",
80
+ "start:watcher:prod": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:prod' && npm run start:watcher:production && echo '-> [DONE] start:watcher:prod\n'",
81
+ "start:watcher:production": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:production' && dist/src/bin/run.sh -bg --production --watcher && echo '-> [DONE] start:watcher:production\n'",
82
+ "start:watcher:dev": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:dev' && npm run start:watcher:develop && echo '-> [DONE] start:watcher:dev\n'",
83
+ "start:watcher:develop": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:develop' && dist/src/bin/run.sh -bg --development --watcher && echo '-> [DONE] start:watcher:develop\n'",
84
+ "start:watcher:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:dbg' && npm run start:watcher:debug && echo '-> [DONE] start:watcher:dbg\n'",
85
+ "start:watcher:debug": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:debug' && npm run start:watcher:debug:break && echo '-> [DONE] start:watcher:debug\n'",
86
+ "start:watcher:debug:break": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:debug:break' && dist/src/bin/run.sh --development --watcher --debug --debuglevel dbg && echo '-> [DONE] start:watcher:debug:break\n'",
87
+ "start:watcher:debug:nobreak": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:debug:nobreak' && dist/src/bin/run.sh --development --watcher --debug-nobrk --debuglevel dbg && echo '-> [DONE] start:watcher:debug:nobreak\n'",
88
+ "start:watcher:oneshot:prod": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:prod' && npm run start:watcher:oneshot:production && echo '-> [DONE] start:watcher:oneshot:prod\n'",
89
+ "start:watcher:oneshot:production": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:production' && dist/src/bin/run.sh -bg --production --watcher --oneshot && echo '-> [DONE] start:watcher:oneshot:production\n'",
90
+ "start:watcher:oneshot:dev": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:dev' && npm run start:watcher:oneshot:develop && echo '-> [DONE] start:watcher:oneshot:dev\n'",
91
+ "start:watcher:oneshot:develop": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:develop' && dist/src/bin/run.sh -bg --development --watcher --oneshot && echo '-> [DONE] start:watcher:oneshot:develop\n'",
92
+ "start:watcher:oneshot:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:dbg' && npm run start:watcher:oneshot:debug && echo '-> [DONE] start:watcher:oneshot:dbg\n'",
93
+ "start:watcher:oneshot:debug": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:debug' && npm run start:watcher:oneshot:debug:break && echo '-> [DONE] start:watcher:oneshot:debug\n'",
94
+ "start:watcher:oneshot:debug:break": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:debug:break' && dist/src/bin/run.sh --development --watcher --oneshot --debug --debuglevel dbg && echo '-> [DONE] start:watcher:oneshot:debug:break\n'",
95
+ "start:watcher:oneshot:debug:nobreak": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] start:watcher:oneshot:debug:nobreak' && dist/src/bin/run.sh --development --watcher --oneshot --debug-nobrk --debuglevel dbg && echo '-> [DONE] start:watcher:oneshot:debug:nobreak\n'",
96
+ "stop": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] stop' && dist/src/bin/run.sh --stop && echo '-> [DONE] stop\n'",
97
+ "stop:watcher": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] stop:watcher' && dist/src/bin/run.sh --stop --watcher && echo '-> [DONE] stop:watcher\n'",
98
+ "test": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test' && npm run test:cover && echo '-> [DONE] test\n'",
99
+ "test:lint": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:lint' && npm run test:lint:all && echo '-> [DONE] test:lint\n'",
100
+ "test:lint:all": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:lint:all' && eslint --ext .ts src/lib/*.ts src/app.ts src/bin/www.ts src/bin/watcher.ts src/routes/*.ts tests/*.ts && echo '-> [DONE] test:lint:all\n'",
101
+ "test:lint:files": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:lint:files <file>' && eslint --ext .ts",
102
+ "test:checktypes": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:checktype' && tsc --noEmit && echo '-> [DONE] test:checktype\n'",
103
+ "test:cover": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:cover' && nyc --reporter=lcov --reporter=text npm run test:auto:all && echo '-> [DONE] test:cover\n'",
73
104
  "test:auto": "echo 'Auto test : npm run test:auto:*\n test:auto:all{:dbg}\n test:auto:version{:dbg}\n test:auto:usertokens{:dbg}\n test:auto:list{:dbg}\n test:auto:resource{:dbg}\n test:auto:policy{:dbg}\n test:auto:role{:dbg}\n test:auto:tenant{:dbg}\n test:auto:tenant{:dbg}\n test:auto:service{:dbg}\n test:auto:acr{:dbg}\n test:auto:userdata{:dbg}\n test:auto:extdata{:dbg}\n test:auto:watcher{:dbg}\n test:auto:templengine\n test:auto:templengine:async\n'",
74
- "test:auto:all": "echo 'All test' && npm run test:lint && tests/test.sh -t 8000 all && npm run test:auto:templengine && npm run test:auto:templengine:async && echo 'Succeed test' && echo ''",
75
- "test:auto:all:dbg": "echo 'All test with debugging' && npm run test:lint && tests/test.sh -t 8000 -d dbg all && echo 'Succeed test' && echo ''",
76
- "test:auto:version": "echo 'Test Version' && tests/test.sh -t 8000 version && echo 'Succeed test' && echo ''",
77
- "test:auto:version:dbg": "echo 'Test Version with debugging' && tests/test.sh -t 8000 -d dbg version && echo 'Succeed test' && echo ''",
78
- "test:auto:usertokens": "echo 'Test UserTokens' && tests/test.sh -t 8000 usertokens && echo 'Succeed test' && echo ''",
79
- "test:auto:usertokens:dbg": "echo 'Test UserTokens with debugging' && tests/test.sh -t 8000 -d dbg usertokens && echo 'Succeed test' && echo ''",
80
- "test:auto:list": "echo 'Test List' && tests/test.sh -t 8000 list && echo 'Succeed test' && echo ''",
81
- "test:auto:list:dbg": "echo 'Test List with debugging' && tests/test.sh -t 8000 -d dbg list && echo 'Succeed test' && echo ''",
82
- "test:auto:resource": "echo 'Test Resource' && tests/test.sh -t 8000 resource && echo 'Succeed test' && echo ''",
83
- "test:auto:resource:dbg": "echo 'Test Resource with debugging' && tests/test.sh -t 8000 -d dbg resource && echo 'Succeed test' && echo ''",
84
- "test:auto:policy": "echo 'Test Policy' && tests/test.sh -t 8000 policy && echo 'Succeed test' && echo ''",
85
- "test:auto:policy:dbg": "echo 'Test Policy with debugging' && tests/test.sh -t 8000 -d dbg policy && echo 'Succeed test' && echo ''",
86
- "test:auto:role": "echo 'Test Role' && tests/test.sh -t 8000 role && echo 'Succeed test' && echo ''",
87
- "test:auto:role:dbg": "echo 'Test Role with debugging' && tests/test.sh -t 8000 -d dbg role && echo 'Succeed test' && echo ''",
88
- "test:auto:tenant": "echo 'Test Tenant' && tests/test.sh -t 8000 tenant && echo 'Succeed test' && echo ''",
89
- "test:auto:tenant:dbg": "echo 'Test Tenant with debugging' && tests/test.sh -t 8000 -d dbg tenant && echo 'Succeed test' && echo ''",
90
- "test:auto:service": "echo 'Test Service' && tests/test.sh -t 8000 service && echo 'Succeed test' && echo ''",
91
- "test:auto:service:dbg": "echo 'Test Service with debugging' && tests/test.sh -t 8000 -d dbg service && echo 'Succeed test' && echo ''",
92
- "test:auto:acr": "echo 'Test ACR' && tests/test.sh -t 8000 acr && echo 'Succeed test' && echo ''",
93
- "test:auto:acr:dbg": "echo 'Test ACR with debugging' && tests/test.sh -t 8000 -d dbg acr && echo 'Succeed test' && echo ''",
94
- "test:auto:userdata": "echo 'Test Userdata' && tests/test.sh -t 8000 userdata && echo 'Succeed test' && echo ''",
95
- "test:auto:userdata:dbg": "echo 'Test Userdata with debugging' && tests/test.sh -t 8000 -d dbg userdata && echo 'Succeed test' && echo ''",
96
- "test:auto:extdata": "echo 'Test Extdata' && tests/test.sh -t 8000 extdata && echo 'Succeed test' && echo ''",
97
- "test:auto:extdata:dbg": "echo 'Test Extdata with debugging' && tests/test.sh -t 8000 -d dbg extdata && echo 'Succeed test' && echo ''",
98
- "test:auto:watcher": "echo 'Test Watcher Process' && tests/test.sh -t 8000 watcher && echo 'Succeed test' && echo ''",
99
- "test:auto:watcher:dbg": "echo 'Test Watcher Process with debugging' && tests/test.sh -t 8000 -d dbg watcher && echo 'Succeed test' && echo ''",
100
- "test:auto:templengine": "echo 'Test template engine' && tests/auto_template.sh && echo 'Succeed test' && echo ''",
101
- "test:auto:templengine:async": "echo 'Test asynchronous template engine' && tests/auto_template.sh -a && echo 'Succeed test' && echo ''",
102
- "test:manual": "echo 'Manual test : npm run test:manual:*\n test:manual:apis:version_get\n test:manual:apis:usertoken_postput\n test:manual:apis:usertoken_gethead\n test:manual:apis:policy_postput\n test:manual:apis:policy_gethead\n test:manual:apis:policy_delete\n test:manual:apis:resource_postput\n test:manual:apis:resource_gethead\n test:manual:apis:resource_delete\n test:manual:apis:role_postput\n test:manual:apis:role_gethead\n test:manual:apis:role_delete\n test:manual:apis:tenant_postput\n test:manual:apis:tenant_gethead\n test:manual:apis:tenant_delete\n test:manual:apis:service_postput\n test:manual:apis:service_gethead\n test:manual:apis:service_delete\n test:manual:apis:acr_postput\n test:manual:apis:acr_get\n test:manual:apis:acr_delete\n test:manual:apis:list_gethead\n test:manual:apis:userdata_get\n test:manual:apis:extdata_get\n test:manual:apis:allusertenant_get\n test:manual:apis:k2hr3keys_get\n test:manual:load:k2hdkcdata:auto\n test:manual:load:k2hdkcdata:local\n test:manual:templengine\n test:manual:templengine:async\n'",
103
- "test:manual:apis:version_get": "tests/manual_test.sh version_get",
104
- "test:manual:apis:usertoken_postput": "tests/manual_test.sh usertoken_postput",
105
- "test:manual:apis:usertoken_gethead": "tests/manual_test.sh usertoken_gethead",
106
- "test:manual:apis:policy_postput": "tests/manual_test.sh policy_postput",
107
- "test:manual:apis:policy_gethead": "tests/manual_test.sh policy_gethead",
108
- "test:manual:apis:policy_delete": "tests/manual_test.sh policy_delete",
109
- "test:manual:apis:resource_postput": "tests/manual_test.sh resource_postput",
110
- "test:manual:apis:resource_gethead": "tests/manual_test.sh resource_gethead",
111
- "test:manual:apis:resource_delete": "tests/manual_test.sh resource_delete",
112
- "test:manual:apis:role_postput": "tests/manual_test.sh role_postput",
113
- "test:manual:apis:role_gethead": "tests/manual_test.sh role_gethead",
114
- "test:manual:apis:role_delete": "tests/manual_test.sh role_delete",
115
- "test:manual:apis:tenant_postput": "tests/manual_test.sh tenant_postput",
116
- "test:manual:apis:tenant_gethead": "tests/manual_test.sh tenant_gethead",
117
- "test:manual:apis:tenant_delete": "tests/manual_test.sh tenant_delete",
118
- "test:manual:apis:service_postput": "tests/manual_test.sh service_postput",
119
- "test:manual:apis:service_gethead": "tests/manual_test.sh service_gethead",
120
- "test:manual:apis:service_delete": "tests/manual_test.sh service_delete",
121
- "test:manual:apis:acr_postput": "tests/manual_test.sh acr_postput",
122
- "test:manual:apis:acr_get": "tests/manual_test.sh acr_get",
123
- "test:manual:apis:acr_delete": "tests/manual_test.sh acr_delete",
124
- "test:manual:apis:list_gethead": "tests/manual_test.sh list_gethead",
125
- "test:manual:apis:userdata_get": "tests/manual_test.sh userdata_get",
126
- "test:manual:apis:extdata_get": "tests/manual_test.sh extdata_get",
127
- "test:manual:apis:allusertenant_get": "tests/manual_test.sh allusertenant_get",
128
- "test:manual:apis:k2hr3keys_get": "tests/manual_test.sh k2hr3keys_get",
129
- "test:manual:load:k2hdkcdata:auto": "tests/k2hdkc_test_load.sh --for_auto_test && echo '' && echo 'Load test data for automatically testing - Success' && echo ''",
130
- "test:manual:load:k2hdkcdata:local": "tests/k2hdkc_test_load.sh --main 33348 --sub 37146 && echo '' && echo 'Load test data for local testing - Success' && echo ''",
131
- "test:manual:templengine": "tests/auto_template.sh && echo '' && echo 'Test template engine - Success' && echo ''",
132
- "test:manual:templengine:async": "tests/auto_template.sh -a && echo '' && echo 'Test asynchronous template engine - Success' && echo ''"
105
+ "test:auto:all": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:all' && npm run test:lint && tests/test.sh all && npm run test:auto:templengine && npm run test:auto:templengine:async && echo '-> [DONE] test:auto:all\n'",
106
+ "test:auto:all:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:all:dbg' && npm run test:lint && tests/test.sh -d dbg all && echo '-> [DONE] test:all:dbg\n'",
107
+ "test:auto:version": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:version - Test Version' && tests/test.sh version && echo '-> [DONE] test:auto:version - Test Version\n'",
108
+ "test:auto:version:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:version:dbg - Test Version(debug)' && tests/test.sh -d dbg version && echo '-> [DONE] test:auto:version:dbg - Test Version(debug)\n'",
109
+ "test:auto:usertokens": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:usertokens - Test UserTokens' && tests/test.sh usertokens && echo '-> [DONE] test:auto:usertokens - Test UserTokens\n'",
110
+ "test:auto:usertokens:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:usertokens:dbg - Test UserTokens(debug)' && tests/test.sh -d dbg usertokens && echo '-> [DONE] test:auto:usertokens:dbg - Test UserTokens(debug)\n'",
111
+ "test:auto:list": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:list - Test List' && tests/test.sh list && echo '-> [DONE] test:auto:list - Test List\n'",
112
+ "test:auto:list:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:list:dbg - Test List(debug)' && tests/test.sh -d dbg list && echo '-> [DONE] test:auto:list:dbg - Test List(debug)\n'",
113
+ "test:auto:resource": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:resource - Test Resource' && tests/test.sh resource && echo '-> [DONE] test:auto:resource - Test Resource\n'",
114
+ "test:auto:resource:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:resource:dbg - Test Resource(debug)' && tests/test.sh -d dbg resource && echo '-> [DONE] test:auto:resource:dbg - Test Resource(debug)\n'",
115
+ "test:auto:policy": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:policy - Test Policy' && tests/test.sh policy && echo '-> [DONE] test:auto:policy - Test Policy\n'",
116
+ "test:auto:policy:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:policy:dbg - Test Policy(debug)' && tests/test.sh -d dbg policy && echo '-> [DONE] test:auto:policy:dbg - Test Policy(debug)\n'",
117
+ "test:auto:role": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:role - Test Role' && tests/test.sh role && echo '-> [DONE] test:auto:role - Test Role\n'",
118
+ "test:auto:role:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:role:dbg - Test Role(debug)' && tests/test.sh -d dbg role && echo '-> [DONE] test:auto:role:dbg - Test Role(debug)\n'",
119
+ "test:auto:tenant": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:tenant - Test Tenant' && tests/test.sh tenant && echo '-> [DONE] test:auto:tenant - Test Tenant\n'",
120
+ "test:auto:tenant:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:tenant:dbg - Test Tenant(debug)' && tests/test.sh -d dbg tenant && echo '-> [DONE] test:auto:tenant:dbg - Test Tenant(debug)\n'",
121
+ "test:auto:service": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:service - Test Service' && tests/test.sh service && echo '-> [DONE] test:auto:service - Test Service\n'",
122
+ "test:auto:service:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:service:dbg - Test Service(debug)' && tests/test.sh -d dbg service && echo '-> [DONE] test:auto:service:dbg - Test Service(debug)\n'",
123
+ "test:auto:acr": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:acr - Test ACR' && tests/test.sh acr && echo '-> [DONE] test:auto:acr - Test ACR\n'",
124
+ "test:auto:acr:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:acr:dbg - Test ACR(debug)' && tests/test.sh -d dbg acr && echo '-> [DONE] test:auto:acr:dbg - Test ACR(debug)\n'",
125
+ "test:auto:userdata": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:userdata - Test Userdata' && tests/test.sh userdata && echo '-> [DONE] test:auto:userdata - Test Userdata\n'",
126
+ "test:auto:userdata:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:userdata:dbg - Test Userdata(debug)' && tests/test.sh -d dbg userdata && echo '-> [DONE] test:auto:userdata:dbg - Test Userdata(debug)\n'",
127
+ "test:auto:extdata": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:extdata - Test Extdata' && tests/test.sh extdata && echo '-> [DONE] test:auto:extdata - Test Extdata\n'",
128
+ "test:auto:extdata:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:extdata:dbg - Test Extdata(debug)' && tests/test.sh -d dbg extdata && echo '-> [DONE] test:auto:extdata:dbg - Test Extdata(debug)\n'",
129
+ "test:auto:watcher": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:watcher - Test Watcher Process' && tests/test.sh watcher && echo '-> [DONE] test:auto:watcher - Test Watcher Process\n'",
130
+ "test:auto:watcher:dbg": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:watcher:dbg - Test Watcher Process(debug)' && tests/test.sh -d dbg watcher && echo '-> [DONE] test:auto:watcher:dbg - Test Watcher Process(debug)\n'",
131
+ "test:auto:templengine": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:templengine - Test template engine' && tests/auto_template.sh && echo '-> [DONE] test:auto:templengine - Test template engine\n'",
132
+ "test:auto:templengine:async": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:auto:templengine:async - Test asynchronous template engine' && tests/auto_template.sh -a && echo '-> [DONE] test:auto:templengine:async - Test asynchronous template engine\n'",
133
+ "test:manual": "echo 'Manual test : npm run test:manual:*\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:tenant_postput\n npm run test:manual:apis:tenant_gethead\n npm run test:manual:apis:tenant_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
134
+ "test:manual:apis:version_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:version_get - Manual' && tests/manual_test.sh version_get && echo '-> [DONE] test:manual:apis:version_get - Manual\n'",
135
+ "test:manual:apis:usertoken_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:usertoken_postput - Manual' && tests/manual_test.sh usertoken_postput && echo '-> [DONE] test:manual:apis:usertoken_postput - Manual\n'",
136
+ "test:manual:apis:usertoken_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:usertoken_gethead - Manual' && tests/manual_test.sh usertoken_gethead && echo '-> [DONE] test:manual:apis:usertoken_gethead - Manual\n'",
137
+ "test:manual:apis:policy_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:policy_postput - Manual' && tests/manual_test.sh policy_postput && echo '-> [DONE] test:manual:apis:policy_postput - Manual\n'",
138
+ "test:manual:apis:policy_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:policy_gethead - Manual' && tests/manual_test.sh policy_gethead && echo '-> [DONE] test:manual:apis:policy_gethead - Manual\n'",
139
+ "test:manual:apis:policy_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:policy_delete - Manual' && tests/manual_test.sh policy_delete && echo '-> [DONE] test:manual:apis:policy_delete - Manual\n'",
140
+ "test:manual:apis:resource_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:resource_postput - Manual' && tests/manual_test.sh resource_postput && echo '-> [DONE] test:manual:apis:resource_postput - Manual\n'",
141
+ "test:manual:apis:resource_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:resource_gethead - Manual' && tests/manual_test.sh resource_gethead && echo '-> [DONE] test:manual:apis:resource_gethead - Manual\n'",
142
+ "test:manual:apis:resource_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:resource_delete - Manual' && tests/manual_test.sh resource_delete && echo '-> [DONE] test:manual:apis:resource_delete - Manual\n'",
143
+ "test:manual:apis:role_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:role_postput - Manual' && tests/manual_test.sh role_postput && echo '-> [DONE] test:manual:apis:role_postput - Manual\n'",
144
+ "test:manual:apis:role_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:role_gethead - Manual' && tests/manual_test.sh role_gethead && echo '-> [DONE] test:manual:apis:role_gethead - Manual\n'",
145
+ "test:manual:apis:role_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:role_delete - Manual' && tests/manual_test.sh role_delete && echo '-> [DONE] test:manual:apis:role_delete - Manual\n'",
146
+ "test:manual:apis:tenant_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:tenant_postput - Manual' && tests/manual_test.sh tenant_postput && echo '-> [DONE] test:manual:apis:tenant_postput - Manual\n'",
147
+ "test:manual:apis:tenant_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:tenant_gethead - Manual' && tests/manual_test.sh tenant_gethead && echo '-> [DONE] test:manual:apis:tenant_gethead - Manual\n'",
148
+ "test:manual:apis:tenant_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:tenant_delete - Manual' && tests/manual_test.sh tenant_delete && echo '-> [DONE] test:manual:apis:tenant_delete - Manual\n'",
149
+ "test:manual:apis:service_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:service_postput - Manual' && tests/manual_test.sh service_postput && echo '-> [DONE] test:manual:apis:service_postput - Manual\n'",
150
+ "test:manual:apis:service_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:service_gethead - Manual' && tests/manual_test.sh service_gethead && echo '-> [DONE] test:manual:apis:service_gethead - Manual\n'",
151
+ "test:manual:apis:service_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:service_delete - Manual' && tests/manual_test.sh service_delete && echo '-> [DONE] test:manual:apis:service_delete - Manual\n'",
152
+ "test:manual:apis:acr_postput": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:acr_postput - Manual' && tests/manual_test.sh acr_postput && echo '-> [DONE] test:manual:apis:acr_postput - Manual\n'",
153
+ "test:manual:apis:acr_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:acr_get - Manual' && tests/manual_test.sh acr_get && echo '-> [DONE] test:manual:apis:acr_get - Manual\n'",
154
+ "test:manual:apis:acr_delete": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:acr_delete - Manual' && tests/manual_test.sh acr_delete && echo '-> [DONE] test:manual:apis:acr_delete - Manual\n'",
155
+ "test:manual:apis:list_gethead": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:list_gethead - Manual' && tests/manual_test.sh list_gethead && echo '-> [DONE] test:manual:apis:list_gethead - Manual\n'",
156
+ "test:manual:apis:userdata_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:userdata_get - Manual' && tests/manual_test.sh userdata_get && echo '-> [DONE] test:manual:apis:userdata_get - Manual\n'",
157
+ "test:manual:apis:extdata_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:extdata_get - Manual' && tests/manual_test.sh extdata_get && echo '-> [DONE] test:manual:apis:extdata_get - Manual\n'",
158
+ "test:manual:apis:allusertenant_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:allusertenant_get - Manual' && tests/manual_test.sh allusertenant_get && echo '-> [DONE] test:manual:apis:allusertenant_get - Manual\n'",
159
+ "test:manual:apis:k2hr3keys_get": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:apis:k2hr3keys_get - Manual' && tests/manual_test.sh k2hr3keys_get && echo '-> [DONE] test:manual:apis:k2hr3keys_get - Manual\n'",
160
+ "test:manual:load:k2hdkcdata:auto": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:load:k2hdkcdata:auto - Load test data automatically' && tests/k2hdkc_test_load.sh --for_auto_test && echo '-> [DONE] test:manual:load:k2hdkcdata:auto - Load test data automatically\n'",
161
+ "test:manual:load:k2hdkcdata:local": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:load:k2hdkcdata:local - Load test data to local' && tests/k2hdkc_test_load.sh --main 33348 --sub 37146 && echo '-> [DONE] test:manual:load:k2hdkcdata:local - Load test data to local\n'",
162
+ "test:manual:templengine": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:templengine - Test template engine' && tests/auto_template.sh && echo '-> [DONE] test:manual:templengine - Test template engine\n'",
163
+ "test:manual:templengine:async": "export NPM_CONFIG_LOGLEVEL=silent && echo '[START] test:manual:templengine:async - Test asynchronous template engine' && tests/auto_template.sh -a && echo '-> [DONE] test:manual:templengine:async - Test asynchronous template engine\n'"
133
164
  },
134
165
  "repository": {
135
166
  "type": "git",
@@ -140,7 +171,7 @@
140
171
  },
141
172
  "bugs": {
142
173
  "url": "https://github.com/yahoojapan/k2hr3_api/issues",
143
- "email": "antpickax-support@mail.yahoo.co.jp"
174
+ "email": "ml-antpickax-support@lycorp.co.jp"
144
175
  },
145
176
  "homepage": "https://k2hr3.antpick.ax/",
146
177
  "keywords": [