@itentialopensource/adapter-calix_cloud_devportal 0.1.1

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 (109) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +639 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +6609 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +6 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +75 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/AccessLogs/action.json +25 -0
  33. package/entities/AccessLogs/mockdatafiles/getCaleaAccessLogs-default.json +22 -0
  34. package/entities/AccessLogs/schema.json +19 -0
  35. package/entities/CallOutcome/action.json +25 -0
  36. package/entities/CallOutcome/mockdatafiles/getCalloutcomeSubscriberCallOutcome-default.json +20 -0
  37. package/entities/CallOutcome/schema.json +19 -0
  38. package/entities/E2EServiceDefinitionTemplate/action.json +25 -0
  39. package/entities/E2EServiceDefinitionTemplate/mockdatafiles/searchServiceDefinitions-default.json +35 -0
  40. package/entities/E2EServiceDefinitionTemplate/schema.json +19 -0
  41. package/entities/ManagedServiceArlo/action.json +85 -0
  42. package/entities/ManagedServiceArlo/schema.json +22 -0
  43. package/entities/ManagedServiceServify/action.json +85 -0
  44. package/entities/ManagedServiceServify/schema.json +22 -0
  45. package/entities/NetPerfTest/action.json +188 -0
  46. package/entities/NetPerfTest/mockdatafiles/getNetPerfTestCafIITest-default.json +44 -0
  47. package/entities/NetPerfTest/mockdatafiles/getNetPerfTestOoklaServer-default.json +23 -0
  48. package/entities/NetPerfTest/schema.json +27 -0
  49. package/entities/Reports/action.json +46 -0
  50. package/entities/Reports/mockdatafiles/getTrafficUsage-default.json +56 -0
  51. package/entities/Reports/mockdatafiles/getTrafficUsageForAllSubs-default.json +56 -0
  52. package/entities/Reports/schema.json +20 -0
  53. package/entities/SSID/action.json +147 -0
  54. package/entities/SSID/mockdatafiles/getBillingSupportOperatorSecondarynetwork-default.json +38 -0
  55. package/entities/SSID/mockdatafiles/getBillingSupportOperatorSsid-default.json +29 -0
  56. package/entities/SSID/mockdatafiles/putBillingSupportOperatorSsid-default.json +14 -0
  57. package/entities/SSID/schema.json +25 -0
  58. package/entities/ServiceDefinitions/action.json +126 -0
  59. package/entities/ServiceDefinitions/schema.json +24 -0
  60. package/entities/Subscriber/action.json +106 -0
  61. package/entities/Subscriber/schema.json +23 -0
  62. package/entities/SubscriberAppServices/action.json +66 -0
  63. package/entities/SubscriberAppServices/schema.json +21 -0
  64. package/entities/SubscriberArloServiceDeprecated/action.json +85 -0
  65. package/entities/SubscriberArloServiceDeprecated/schema.json +22 -0
  66. package/entities/SubscriberDevices/action.json +105 -0
  67. package/entities/SubscriberDevices/schema.json +23 -0
  68. package/entities/SubscriberFCCIdentifier/action.json +85 -0
  69. package/entities/SubscriberFCCIdentifier/schema.json +22 -0
  70. package/entities/SubscriberServices/action.json +147 -0
  71. package/entities/SubscriberServices/schema.json +25 -0
  72. package/entities/SubscriberServifyContractDeprecated/action.json +65 -0
  73. package/entities/SubscriberServifyContractDeprecated/schema.json +21 -0
  74. package/entities/SubscriberSmartTownWiFi/action.json +45 -0
  75. package/entities/SubscriberSmartTownWiFi/schema.json +20 -0
  76. package/error.json +190 -0
  77. package/package.json +88 -0
  78. package/pronghorn.json +6245 -0
  79. package/propertiesDecorators.json +14 -0
  80. package/propertiesSchema.json +1248 -0
  81. package/refs?service=git-upload-pack +0 -0
  82. package/report/adapterInfo.json +10 -0
  83. package/report/creationReport.json +755 -0
  84. package/report/merged-calix.json +9420 -0
  85. package/sampleProperties.json +196 -0
  86. package/test/integration/adapterTestBasicGet.js +83 -0
  87. package/test/integration/adapterTestConnectivity.js +93 -0
  88. package/test/integration/adapterTestIntegration.js +2507 -0
  89. package/test/unit/adapterBaseTestUnit.js +949 -0
  90. package/test/unit/adapterTestUnit.js +3622 -0
  91. package/utils/adapterInfo.js +206 -0
  92. package/utils/addAuth.js +94 -0
  93. package/utils/artifactize.js +146 -0
  94. package/utils/basicGet.js +50 -0
  95. package/utils/checkMigrate.js +63 -0
  96. package/utils/entitiesToDB.js +178 -0
  97. package/utils/findPath.js +74 -0
  98. package/utils/methodDocumentor.js +225 -0
  99. package/utils/modify.js +154 -0
  100. package/utils/packModificationScript.js +35 -0
  101. package/utils/patches2bundledDeps.js +90 -0
  102. package/utils/pre-commit.sh +32 -0
  103. package/utils/removeHooks.js +20 -0
  104. package/utils/setup.js +33 -0
  105. package/utils/tbScript.js +246 -0
  106. package/utils/tbUtils.js +490 -0
  107. package/utils/testRunner.js +298 -0
  108. package/utils/troubleshootingAdapter.js +195 -0
  109. package/workflows/README.md +3 -0
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getBillingSubscribersSubscriberIdManagedServiceArlo",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/arlo?{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": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putBillingSubscribersSubscriberIdManagedServiceArlo",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/arlo?{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": "postBillingSubscribersSubscriberIdManagedServiceArlo",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/arlo?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteBillingSubscribersSubscriberIdManagedServiceArlo",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/arlo?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,22 @@
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": "getBillingSubscribersSubscriberIdManagedServiceArlo",
12
+ "enum": [
13
+ "getBillingSubscribersSubscriberIdManagedServiceArlo",
14
+ "putBillingSubscribersSubscriberIdManagedServiceArlo",
15
+ "postBillingSubscribersSubscriberIdManagedServiceArlo",
16
+ "deleteBillingSubscribersSubscriberIdManagedServiceArlo"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getBillingSubscribersSubscriberIdManagedServiceServify",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/servify?{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": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "putBillingSubscribersSubscriberIdManagedServiceServify",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/servify?{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": "postBillingSubscribersSubscriberIdManagedServiceServify",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/servify?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteBillingSubscribersSubscriberIdManagedServiceServify",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/billing/subscribers/{pathv1}/managed-service/servify?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,22 @@
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": "getBillingSubscribersSubscriberIdManagedServiceServify",
12
+ "enum": [
13
+ "getBillingSubscribersSubscriberIdManagedServiceServify",
14
+ "putBillingSubscribersSubscriberIdManagedServiceServify",
15
+ "postBillingSubscribersSubscriberIdManagedServiceServify",
16
+ "deleteBillingSubscribersSubscriberIdManagedServiceServify"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,188 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getNetPerfTestCafIITest",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest?{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/getNetPerfTestCafIITest-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "postNetPerfTestCafIITest",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest?{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": "getNetPerfTestCafIITestId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest/{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": "putNetPerfTestCafIITestId",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest/{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": "deleteNetPerfTestCafIITestId",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest/{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
+ "name": "putNetPerfTestCafIITestIdSuspend",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest/{pathv1}/suspend?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "putNetPerfTestCafIITestIdResume",
127
+ "protocol": "REST",
128
+ "method": "PUT",
129
+ "entitypath": "{base_path}/{version}/net-perf-test/cafIITest/{pathv1}/resume?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "getNetPerfTestOoklaServer",
147
+ "protocol": "REST",
148
+ "method": "GET",
149
+ "entitypath": "{base_path}/{version}/net-perf-test/ooklaServer?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "sendGetBody": false,
155
+ "requestDatatype": "JSON",
156
+ "responseDatatype": "JSON",
157
+ "headers": {},
158
+ "responseObjects": [
159
+ {
160
+ "type": "default",
161
+ "key": "",
162
+ "mockFile": "mockdatafiles/getNetPerfTestOoklaServer-default.json"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "name": "getNetPerfTestTestResultZipExternal",
168
+ "protocol": "REST",
169
+ "method": "GET",
170
+ "entitypath": "{base_path}/{version}/net-perf-test/testResult/zip/external?{query}",
171
+ "requestSchema": "schema.json",
172
+ "responseSchema": "schema.json",
173
+ "timeout": 0,
174
+ "sendEmpty": false,
175
+ "sendGetBody": false,
176
+ "requestDatatype": "JSON",
177
+ "responseDatatype": "JSON",
178
+ "headers": {},
179
+ "responseObjects": [
180
+ {
181
+ "type": "default",
182
+ "key": "",
183
+ "mockFile": ""
184
+ }
185
+ ]
186
+ }
187
+ ]
188
+ }
@@ -0,0 +1,44 @@
1
+ [
2
+ {
3
+ "name": "CA_10M/1M",
4
+ "description": "2019 Q1 Northern California Gold Internet Subscribers",
5
+ "timezone": "America/Chicago",
6
+ "primaryOoklaServerId": "1234",
7
+ "speedThreshold": 80,
8
+ "latencyThreshold": 10,
9
+ "serviceTierDownloadSpeed": 1000000,
10
+ "serviceTierUploadSpeed": 1000000,
11
+ "downloadUrl": "http://9.9.9.9/download/10M",
12
+ "uploadUrl": "http://9.9.9.9/upload",
13
+ "uploadFileSize": 1000000,
14
+ "startDate": "2018-12-12",
15
+ "numberOfDays": 7,
16
+ "startHour": 18,
17
+ "numberOfHours": 6,
18
+ "devices": [
19
+ "CXNK00112233",
20
+ "CXNK004E6DEF"
21
+ ]
22
+ },
23
+ {
24
+ "name": "CA_10M/1M",
25
+ "description": "2019 Q1 Northern California Gold Internet Subscribers",
26
+ "timezone": "America/Chicago",
27
+ "primaryOoklaServerId": "1234",
28
+ "speedThreshold": 80,
29
+ "latencyThreshold": 10,
30
+ "serviceTierDownloadSpeed": 1000000,
31
+ "serviceTierUploadSpeed": 1000000,
32
+ "downloadUrl": "http://9.9.9.9/download/10M",
33
+ "uploadUrl": "http://9.9.9.9/upload",
34
+ "uploadFileSize": 1000000,
35
+ "startDate": "2018-12-12",
36
+ "numberOfDays": 7,
37
+ "startHour": 18,
38
+ "numberOfHours": 6,
39
+ "devices": [
40
+ "CXNK00112233",
41
+ "CXNK004E6DEF"
42
+ ]
43
+ }
44
+ ]
@@ -0,0 +1,23 @@
1
+ [
2
+ {
3
+ "_id": "13516",
4
+ "cityState": "Orlando, FL",
5
+ "host": "mco.speedtest.sbcglobal.net",
6
+ "asn": 7108,
7
+ "fccDesignatedAsn": true
8
+ },
9
+ {
10
+ "_id": "13516",
11
+ "cityState": "Orlando, FL",
12
+ "host": "mco.speedtest.sbcglobal.net",
13
+ "asn": 7108,
14
+ "fccDesignatedAsn": true
15
+ },
16
+ {
17
+ "_id": "13516",
18
+ "cityState": "Orlando, FL",
19
+ "host": "mco.speedtest.sbcglobal.net",
20
+ "asn": 7108,
21
+ "fccDesignatedAsn": true
22
+ }
23
+ ]
@@ -0,0 +1,27 @@
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": "getNetPerfTestCafIITest",
12
+ "enum": [
13
+ "getNetPerfTestCafIITest",
14
+ "postNetPerfTestCafIITest",
15
+ "getNetPerfTestCafIITestId",
16
+ "putNetPerfTestCafIITestId",
17
+ "deleteNetPerfTestCafIITestId",
18
+ "putNetPerfTestCafIITestIdSuspend",
19
+ "putNetPerfTestCafIITestIdResume",
20
+ "getNetPerfTestOoklaServer",
21
+ "getNetPerfTestTestResultZipExternal"
22
+ ],
23
+ "external_name": "ph_request_type"
24
+ }
25
+ },
26
+ "definitions": {}
27
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getTrafficUsage",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/insights/subscribers/{pathv1}/trafficusage?{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/getTrafficUsage-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getTrafficUsageForAllSubs",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/insights/subscriberstrafficusage?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getTrafficUsageForAllSubs-default.json"
42
+ }
43
+ ]
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "startPeriodSec": 1646956800,
4
+ "usOctets": 10160136322385,
5
+ "dsOctets": 10159327006780,
6
+ "totalOctets": 20319463329165,
7
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
8
+ "subscriberName": "John Doe",
9
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
10
+ "account": "123-4-5678",
11
+ "phone": "555-555-5555",
12
+ "email": "johndoe@555.com",
13
+ "peakUsRate": 1127235167,
14
+ "peakDsRate": 1131424602,
15
+ "usRate": 940753363,
16
+ "dsRate": 940678427,
17
+ "endpoint": "123-4-5678/CXNK55555555",
18
+ "ipAddress": "1.2.3.4"
19
+ },
20
+ {
21
+ "startPeriodSec": 1646956800,
22
+ "usOctets": 10160136322385,
23
+ "dsOctets": 10159327006780,
24
+ "totalOctets": 20319463329165,
25
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
26
+ "subscriberName": "John Doe",
27
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
28
+ "account": "123-4-5678",
29
+ "phone": "555-555-5555",
30
+ "email": "johndoe@555.com",
31
+ "peakUsRate": 1127235167,
32
+ "peakDsRate": 1131424602,
33
+ "usRate": 940753363,
34
+ "dsRate": 940678427,
35
+ "endpoint": "123-4-5678/CXNK55555555",
36
+ "ipAddress": "1.2.3.4"
37
+ },
38
+ {
39
+ "startPeriodSec": 1646956800,
40
+ "usOctets": 10160136322385,
41
+ "dsOctets": 10159327006780,
42
+ "totalOctets": 20319463329165,
43
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
44
+ "subscriberName": "John Doe",
45
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
46
+ "account": "123-4-5678",
47
+ "phone": "555-555-5555",
48
+ "email": "johndoe@555.com",
49
+ "peakUsRate": 1127235167,
50
+ "peakDsRate": 1131424602,
51
+ "usRate": 940753363,
52
+ "dsRate": 940678427,
53
+ "endpoint": "123-4-5678/CXNK55555555",
54
+ "ipAddress": "1.2.3.4"
55
+ }
56
+ ]
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "startPeriodSec": 1646956800,
4
+ "usOctets": 10160136322385,
5
+ "dsOctets": 10159327006780,
6
+ "totalOctets": 20319463329165,
7
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
8
+ "subscriberName": "John Doe",
9
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
10
+ "account": "123-4-5678",
11
+ "phone": "555-555-5555",
12
+ "email": "johndoe@555.com",
13
+ "peakUsRate": 1127235167,
14
+ "peakDsRate": 1131424602,
15
+ "usRate": 940753363,
16
+ "dsRate": 940678427,
17
+ "endpoint": "123-4-5678/CXNK55555555",
18
+ "ipAddress": "1.2.3.4"
19
+ },
20
+ {
21
+ "startPeriodSec": 1646956800,
22
+ "usOctets": 10160136322385,
23
+ "dsOctets": 10159327006780,
24
+ "totalOctets": 20319463329165,
25
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
26
+ "subscriberName": "John Doe",
27
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
28
+ "account": "123-4-5678",
29
+ "phone": "555-555-5555",
30
+ "email": "johndoe@555.com",
31
+ "peakUsRate": 1127235167,
32
+ "peakDsRate": 1131424602,
33
+ "usRate": 940753363,
34
+ "dsRate": 940678427,
35
+ "endpoint": "123-4-5678/CXNK55555555",
36
+ "ipAddress": "1.2.3.4"
37
+ },
38
+ {
39
+ "startPeriodSec": 1646956800,
40
+ "usOctets": 10160136322385,
41
+ "dsOctets": 10159327006780,
42
+ "totalOctets": 20319463329165,
43
+ "subscriberId": "3d273d57-724d-41f1-b01a-76cbec876e83",
44
+ "subscriberName": "John Doe",
45
+ "subscriberLocationId": "123-4-5678:555 5TH ST",
46
+ "account": "123-4-5678",
47
+ "phone": "555-555-5555",
48
+ "email": "johndoe@555.com",
49
+ "peakUsRate": 1127235167,
50
+ "peakDsRate": 1131424602,
51
+ "usRate": 940753363,
52
+ "dsRate": 940678427,
53
+ "endpoint": "123-4-5678/CXNK55555555",
54
+ "ipAddress": "1.2.3.4"
55
+ }
56
+ ]
@@ -0,0 +1,20 @@
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": "getTrafficUsage",
12
+ "enum": [
13
+ "getTrafficUsage",
14
+ "getTrafficUsageForAllSubs"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }