@itentialopensource/adapter-calix_smx 0.2.4 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 1.0.1 [04-24-2026]
3
+
4
+ * change schema on Post/put EMS Subscriber calls
5
+
6
+ See merge request itentialopensource/adapters/adapter-calix_smx!22
7
+
8
+ ---
9
+
10
+ ## 1.0.0 [04-13-2026]
11
+
12
+ * Security Fixes Requiring Node >= 20.19.x made at 2026.04.13_08:28AM
13
+
14
+ See merge request itentialopensource/adapters/adapter-calix_smx!21
15
+
16
+ ---
17
+
2
18
  ## 0.2.4 [03-23-2026]
3
19
 
4
20
  * Changes made at 2026.03.23_11:27AM
@@ -26,8 +26,8 @@
26
26
  "protocol": "REST",
27
27
  "method": "POST",
28
28
  "entitypath": "{base_path}/{version}/ems/subscriber?{query}",
29
- "requestSchema": "schema.json",
30
- "responseSchema": "schema.json",
29
+ "requestSchema": "postSchema.json",
30
+ "responseSchema": "postSchema.json",
31
31
  "timeout": 0,
32
32
  "sendEmpty": false,
33
33
  "requestDatatype": "JSON",
@@ -130,8 +130,8 @@
130
130
  "protocol": "REST",
131
131
  "method": "PUT",
132
132
  "entitypath": "{base_path}/{version}/ems/subscriber/org/{pathv1}/account/{pathv2}?{query}",
133
- "requestSchema": "schema.json",
134
- "responseSchema": "schema.json",
133
+ "requestSchema": "postSchema.json",
134
+ "responseSchema": "postSchema.json",
135
135
  "timeout": 0,
136
136
  "sendEmpty": false,
137
137
  "requestDatatype": "JSON",
@@ -0,0 +1,86 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAllSubscriber",
12
+ "enum": [
13
+ "createSubscriber",
14
+ "updateAccount"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ },
18
+ "deviceName": {
19
+ "type": "string",
20
+ "description": "",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "device-name"
28
+ },
29
+ "alarmsSeverity": {
30
+ "type": "string",
31
+ "description": "",
32
+ "parse": false,
33
+ "encode": false,
34
+ "encrypt": {
35
+ "type": "AES",
36
+ "key": ""
37
+ },
38
+ "external_name": "alarms-severity"
39
+ },
40
+ "portName": {
41
+ "type": "string",
42
+ "description": "Port Name",
43
+ "parse": false,
44
+ "encode": false,
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "port-name"
50
+ },
51
+ "accountName": {
52
+ "type": "string",
53
+ "description": "Account of EMS subscriber",
54
+ "parse": false,
55
+ "encode": false,
56
+ "encrypt": {
57
+ "type": "AES",
58
+ "key": ""
59
+ },
60
+ "external_name": "account-name"
61
+ },
62
+ "forceDelete": {
63
+ "type": "boolean",
64
+ "description": "Force delete or not",
65
+ "parse": false,
66
+ "encode": false,
67
+ "encrypt": {
68
+ "type": "AES",
69
+ "key": ""
70
+ },
71
+ "external_name": "force-delete"
72
+ },
73
+ "subscriberName": {
74
+ "type": "string",
75
+ "description": "",
76
+ "parse": false,
77
+ "encode": false,
78
+ "encrypt": {
79
+ "type": "AES",
80
+ "key": ""
81
+ },
82
+ "external_name": "subscriber-name"
83
+ }
84
+ },
85
+ "definitions": {}
86
+ }
@@ -11,12 +11,10 @@
11
11
  "default": "getAllSubscriber",
12
12
  "enum": [
13
13
  "getAllSubscriber",
14
- "createSubscriber",
15
14
  "getAlarmsSeverityByDevice",
16
15
  "getOntAlarmsByDevice",
17
16
  "getPortByDevice5",
18
17
  "getAccount",
19
- "updateAccount",
20
18
  "deleteAccount",
21
19
  "getDeviceByDevice3"
22
20
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-calix_smx",
3
- "version": "0.2.4",
3
+ "version": "1.0.1",
4
4
  "description": "This adapter integrates with system described as: Calix SMx Northbound API.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Calixsmx",
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "license": "Apache-2.0",
40
40
  "engines": {
41
- "node": ">= 18.18.0",
42
- "npm": ">= 9.8.1"
41
+ "node": "20.19.0",
42
+ "npm": "10.8.2"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",
@@ -48,14 +48,14 @@
48
48
  "author": "Itential",
49
49
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-calix_smx#readme",
50
50
  "dependencies": {
51
- "@itentialopensource/adapter-utils": "6.1.15",
51
+ "@itentialopensource/adapter-utils": "6.1.17",
52
52
  "acorn": "8.14.1",
53
53
  "ajv": "8.18.0",
54
- "axios": "1.13.6",
54
+ "axios": "1.15.0",
55
55
  "commander": "11.1.0",
56
56
  "fs-extra": "11.3.4",
57
57
  "json-query": "2.2.2",
58
- "mocha": "11.3.0",
58
+ "mocha": "12.0.0-beta-10",
59
59
  "mocha-param": "2.0.1",
60
60
  "mongodb": "4.17.2",
61
61
  "ping": "0.4.4",
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "configLines": 161308,
4
+ "scriptLines": 2523,
5
+ "codeLines": 191443,
6
+ "testLines": 113446,
7
+ "testCases": 6236,
8
+ "totalCodeLines": 307412,
9
+ "wfTasks": 1784
10
+ }
@@ -280,10 +280,10 @@ describe('[unit] Calixsmx Adapter Test', () => {
280
280
  assert.notEqual(null, packageDotJson.dependencies);
281
281
  assert.notEqual('', packageDotJson.dependencies);
282
282
  assert.equal('8.18.0', packageDotJson.dependencies.ajv);
283
- assert.equal('1.13.6', packageDotJson.dependencies.axios);
283
+ assert.equal('1.15.0', packageDotJson.dependencies.axios);
284
284
  assert.equal('11.1.0', packageDotJson.dependencies.commander);
285
285
  assert.equal('11.3.4', packageDotJson.dependencies['fs-extra']);
286
- assert.equal('11.3.0', packageDotJson.dependencies.mocha);
286
+ assert.equal('12.0.0-beta-10', packageDotJson.dependencies.mocha);
287
287
  assert.equal('2.0.1', packageDotJson.dependencies['mocha-param']);
288
288
  assert.equal('0.4.4', packageDotJson.dependencies.ping);
289
289
  assert.equal('1.4.10', packageDotJson.dependencies['readline-sync']);