@itentialopensource/adapter-att_mobility 0.1.2 → 0.2.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 (48) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +11 -14
  4. package/BROKER.md +3 -3
  5. package/CALLS.md +59 -23
  6. package/CHANGELOG.md +8 -0
  7. package/CONTRIBUTING.md +1 -160
  8. package/ENHANCE.md +4 -4
  9. package/PROPERTIES.md +19 -19
  10. package/README.md +45 -36
  11. package/SUMMARY.md +2 -2
  12. package/SYSTEMINFO.md +9 -4
  13. package/TROUBLESHOOT.md +6 -6
  14. package/adapter.js +159 -330
  15. package/adapterBase.js +538 -873
  16. package/changelogs/changelog.md +16 -0
  17. package/metadata.json +50 -0
  18. package/package.json +24 -26
  19. package/pronghorn.json +474 -142
  20. package/propertiesSchema.json +447 -43
  21. package/refs?service=git-upload-pack +0 -0
  22. package/report/adapter-openapi.json +149 -0
  23. package/report/adapter-openapi.yaml +133 -0
  24. package/report/adapterInfo.json +8 -8
  25. package/report/updateReport1691508426658.json +120 -0
  26. package/report/updateReport1692202905234.json +120 -0
  27. package/report/updateReport1694465385247.json +120 -0
  28. package/sampleProperties.json +64 -3
  29. package/test/integration/adapterTestBasicGet.js +1 -1
  30. package/test/integration/adapterTestConnectivity.js +91 -42
  31. package/test/integration/adapterTestIntegration.js +142 -17
  32. package/test/unit/adapterBaseTestUnit.js +388 -313
  33. package/test/unit/adapterTestUnit.js +320 -123
  34. package/utils/adapterInfo.js +1 -1
  35. package/utils/addAuth.js +1 -1
  36. package/utils/artifactize.js +1 -1
  37. package/utils/checkMigrate.js +1 -1
  38. package/utils/entitiesToDB.js +1 -0
  39. package/utils/findPath.js +1 -1
  40. package/utils/methodDocumentor.js +57 -22
  41. package/utils/modify.js +13 -15
  42. package/utils/packModificationScript.js +1 -1
  43. package/utils/taskMover.js +309 -0
  44. package/utils/tbScript.js +3 -10
  45. package/utils/tbUtils.js +2 -3
  46. package/utils/testRunner.js +1 -1
  47. package/utils/troubleshootingAdapter.js +1 -3
  48. package/workflows/README.md +0 -3
Binary file
@@ -0,0 +1,149 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "ATT-Mobility",
5
+ "version": "1.0.0"
6
+ },
7
+ "servers": [
8
+ {
9
+ "url": "https://apsapi.att.com:{port}",
10
+ "variables": {
11
+ "port": {
12
+ "default": "8082"
13
+ }
14
+ }
15
+ }
16
+ ],
17
+ "paths": {
18
+ "/sp/mobilityactivations/api/v1/serviceactivation/{requestId}": {
19
+ "get": {
20
+ "description": "getServiceActivationStatus",
21
+ "parameters": [
22
+ {
23
+ "in": "path",
24
+ "name": "requestId",
25
+ "required": true,
26
+ "schema": {
27
+ "type": "string"
28
+ }
29
+ }
30
+ ],
31
+ "responses": {
32
+ "200": {
33
+ "description": "Success"
34
+ }
35
+ }
36
+ }
37
+ },
38
+ "/sp/mobility/billingmgmt/api/v1/billingaccount/{billingAccountNumber}": {
39
+ "get": {
40
+ "description": "getBillingAccountDetails",
41
+ "parameters": [
42
+ {
43
+ "in": "path",
44
+ "name": "billingAccountNumber",
45
+ "required": true,
46
+ "schema": {
47
+ "type": "string"
48
+ }
49
+ }
50
+ ],
51
+ "responses": {
52
+ "200": {
53
+ "description": "Success"
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "/sp/mobility/lineconfig/api/v1/service/{subscriberLine}": {
59
+ "get": {
60
+ "description": "getSubscriberLineDetails",
61
+ "parameters": [
62
+ {
63
+ "in": "path",
64
+ "name": "subscriberLine",
65
+ "required": true,
66
+ "schema": {
67
+ "type": "string"
68
+ }
69
+ }
70
+ ],
71
+ "responses": {
72
+ "200": {
73
+ "description": "Success"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "/sp/mobilityactivations/api/v1/serviceactivation": {
79
+ "post": {
80
+ "description": "postServiceActivation",
81
+ "requestBody": {
82
+ "required": true,
83
+ "content": {
84
+ "application/json": {
85
+ "schema": {
86
+ "type": "object"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "responses": {
92
+ "200": {
93
+ "description": "Success"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "/sp/mobility/lineconfig/api/v1/service/{subsciberLine}": {
99
+ "patch": {
100
+ "description": "editSubscriberLineDetails",
101
+ "parameters": [
102
+ {
103
+ "in": "path",
104
+ "name": "subsciberLine",
105
+ "required": true,
106
+ "schema": {
107
+ "type": "string"
108
+ }
109
+ }
110
+ ],
111
+ "requestBody": {
112
+ "required": true,
113
+ "content": {
114
+ "application/json": {
115
+ "schema": {
116
+ "type": "object"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "responses": {
122
+ "200": {
123
+ "description": "Success"
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "/api/mobility/lineDetails/imei": {
129
+ "post": {
130
+ "description": "queryDeviceByIMEI",
131
+ "parameters": [
132
+ {
133
+ "in": "header",
134
+ "name": "imei",
135
+ "required": true,
136
+ "schema": {
137
+ "type": "string"
138
+ }
139
+ }
140
+ ],
141
+ "responses": {
142
+ "200": {
143
+ "description": "Success"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
@@ -0,0 +1,133 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: ATT-Mobility
4
+ contact: {}
5
+ version: '1.0.0'
6
+ servers:
7
+ - url: https://apsapi.att.com:{port}
8
+ variables:
9
+ port:
10
+ default: '8082'
11
+ paths:
12
+ /sp/mobilityactivations/api/v1/serviceactivation/{requestId}:
13
+ get:
14
+ summary: SpMobilityactivationsApiV1Serviceactivation_GET
15
+ description: getServiceActivationStatus
16
+ operationId: SpMobilityactivationsApiV1Serviceactivation_GET
17
+ parameters:
18
+ - name: requestId
19
+ in: path
20
+ description: ''
21
+ required: true
22
+ style: simple
23
+ schema:
24
+ type: string
25
+ responses:
26
+ '200':
27
+ description: Success
28
+ headers: {}
29
+ content: {}
30
+ deprecated: false
31
+ /sp/mobility/billingmgmt/api/v1/billingaccount/{billingAccountNumber}:
32
+ get:
33
+ summary: SpMobilityBillingmgmtApiV1Billingaccount_GET
34
+ description: getBillingAccountDetails
35
+ operationId: SpMobilityBillingmgmtApiV1Billingaccount_GET
36
+ parameters:
37
+ - name: billingAccountNumber
38
+ in: path
39
+ description: ''
40
+ required: true
41
+ style: simple
42
+ schema:
43
+ type: string
44
+ responses:
45
+ '200':
46
+ description: Success
47
+ headers: {}
48
+ content: {}
49
+ deprecated: false
50
+ /sp/mobility/lineconfig/api/v1/service/{subscriberLine}:
51
+ get:
52
+ summary: SpMobilityLineconfigApiV1Service_GET
53
+ description: getSubscriberLineDetails
54
+ operationId: SpMobilityLineconfigApiV1Service_GET
55
+ parameters:
56
+ - name: subscriberLine
57
+ in: path
58
+ description: ''
59
+ required: true
60
+ style: simple
61
+ schema:
62
+ type: string
63
+ responses:
64
+ '200':
65
+ description: Success
66
+ headers: {}
67
+ content: {}
68
+ deprecated: false
69
+ /sp/mobilityactivations/api/v1/serviceactivation:
70
+ post:
71
+ summary: SpMobilityactivationsApiV1Serviceactivation_POST
72
+ description: postServiceActivation
73
+ operationId: SpMobilityactivationsApiV1Serviceactivation_POST
74
+ parameters: []
75
+ requestBody:
76
+ description: ''
77
+ content:
78
+ application/json:
79
+ schema:
80
+ type: object
81
+ required: true
82
+ responses:
83
+ '200':
84
+ description: Success
85
+ headers: {}
86
+ content: {}
87
+ deprecated: false
88
+ /sp/mobility/lineconfig/api/v1/service/{subsciberLine}:
89
+ patch:
90
+ summary: SpMobilityLineconfigApiV1Service_PATCH
91
+ description: editSubscriberLineDetails
92
+ operationId: SpMobilityLineconfigApiV1Service_PATCH
93
+ parameters:
94
+ - name: subsciberLine
95
+ in: path
96
+ description: ''
97
+ required: true
98
+ style: simple
99
+ schema:
100
+ type: string
101
+ requestBody:
102
+ description: ''
103
+ content:
104
+ application/json:
105
+ schema:
106
+ type: object
107
+ required: true
108
+ responses:
109
+ '200':
110
+ description: Success
111
+ headers: {}
112
+ content: {}
113
+ deprecated: false
114
+ /api/mobility/lineDetails/imei:
115
+ post:
116
+ summary: ApiMobilityLineDetailsImei_POST
117
+ description: queryDeviceByIMEI
118
+ operationId: ApiMobilityLineDetailsImei_POST
119
+ parameters:
120
+ - name: imei
121
+ in: header
122
+ description: ''
123
+ required: true
124
+ style: simple
125
+ schema:
126
+ type: string
127
+ responses:
128
+ '200':
129
+ description: Success
130
+ headers: {}
131
+ content: {}
132
+ deprecated: false
133
+ tags: []
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.0",
3
- "configLines": 2315,
4
- "scriptLines": 1795,
5
- "codeLines": 3134,
6
- "testLines": 3122,
7
- "testCases": 136,
8
- "totalCodeLines": 8051,
9
- "wfTasks": 23
2
+ "version": "0.1.2",
3
+ "configLines": 3050,
4
+ "scriptLines": 1783,
5
+ "codeLines": 2628,
6
+ "testLines": 3568,
7
+ "testCases": 165,
8
+ "totalCodeLines": 7979,
9
+ "wfTasks": 31
10
10
  }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 1677
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 80
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 633
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 15
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1350
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3660
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 95
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 1677
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 80
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 633
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 15
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1350
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3660
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 95
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.7"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 347
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 1683
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 80
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 633
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 15
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3769
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 95
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }