@itentialopensource/adapter-tmf642_alarm_management 1.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 (85) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +416 -0
  7. package/CHANGELOG.md +16 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +4199 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/AckAlarms/action.json +66 -0
  28. package/entities/AckAlarms/mockdatafiles/listAckAlarms-default.json +7784 -0
  29. package/entities/AckAlarms/schema.json +21 -0
  30. package/entities/Alarm/action.json +106 -0
  31. package/entities/Alarm/mockdatafiles/listAlarm-default.json +1224 -0
  32. package/entities/Alarm/schema.json +23 -0
  33. package/entities/ClearAlarms/action.json +66 -0
  34. package/entities/ClearAlarms/mockdatafiles/listClearAlarms-default.json +5420 -0
  35. package/entities/ClearAlarms/schema.json +21 -0
  36. package/entities/CommentAlarms/action.json +66 -0
  37. package/entities/CommentAlarms/mockdatafiles/listCommentAlarms-default.json +5628 -0
  38. package/entities/CommentAlarms/schema.json +21 -0
  39. package/entities/EventsSubscription/action.json +44 -0
  40. package/entities/EventsSubscription/schema.json +20 -0
  41. package/entities/GroupAlarms/action.json +66 -0
  42. package/entities/GroupAlarms/mockdatafiles/listGroupAlarms-default.json +3303 -0
  43. package/entities/GroupAlarms/schema.json +21 -0
  44. package/entities/NotificationListenersClientSide/action.json +324 -0
  45. package/entities/NotificationListenersClientSide/schema.json +34 -0
  46. package/entities/UnAckAlarms/action.json +66 -0
  47. package/entities/UnAckAlarms/mockdatafiles/listUnAckAlarms-default.json +10140 -0
  48. package/entities/UnAckAlarms/schema.json +21 -0
  49. package/entities/UnGroupAlarms/action.json +66 -0
  50. package/entities/UnGroupAlarms/mockdatafiles/listUnGroupAlarms-default.json +1133 -0
  51. package/entities/UnGroupAlarms/schema.json +21 -0
  52. package/error.json +190 -0
  53. package/package.json +88 -0
  54. package/pronghorn.json +30547 -0
  55. package/propertiesDecorators.json +14 -0
  56. package/propertiesSchema.json +1248 -0
  57. package/refs?service=git-upload-pack +0 -0
  58. package/report/TMF642-Alarm-v4.0.0.swagger.json +5901 -0
  59. package/report/adapterInfo.json +10 -0
  60. package/report/creationReport.json +500 -0
  61. package/sampleProperties.json +195 -0
  62. package/test/integration/adapterTestBasicGet.js +83 -0
  63. package/test/integration/adapterTestConnectivity.js +93 -0
  64. package/test/integration/adapterTestIntegration.js +5656 -0
  65. package/test/unit/adapterBaseTestUnit.js +949 -0
  66. package/test/unit/adapterTestUnit.js +2398 -0
  67. package/utils/adapterInfo.js +206 -0
  68. package/utils/addAuth.js +94 -0
  69. package/utils/artifactize.js +146 -0
  70. package/utils/basicGet.js +50 -0
  71. package/utils/checkMigrate.js +63 -0
  72. package/utils/entitiesToDB.js +178 -0
  73. package/utils/findPath.js +74 -0
  74. package/utils/methodDocumentor.js +225 -0
  75. package/utils/modify.js +154 -0
  76. package/utils/packModificationScript.js +35 -0
  77. package/utils/patches2bundledDeps.js +90 -0
  78. package/utils/pre-commit.sh +32 -0
  79. package/utils/removeHooks.js +20 -0
  80. package/utils/setup.js +33 -0
  81. package/utils/tbScript.js +246 -0
  82. package/utils/tbUtils.js +490 -0
  83. package/utils/testRunner.js +298 -0
  84. package/utils/troubleshootingAdapter.js +195 -0
  85. package/workflows/README.md +3 -0
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listAckAlarms",
12
+ "enum": [
13
+ "listAckAlarms",
14
+ "createAckAlarms",
15
+ "retrieveAckAlarms"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listAlarm",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/alarm?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/listAlarm-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createAlarm",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/alarm?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "retrieveAlarm",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/alarm/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "patchAlarm",
67
+ "protocol": "REST",
68
+ "method": "PATCH",
69
+ "entitypath": "{base_path}/{version}/alarm/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deleteAlarm",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/alarm/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ }