@itentialopensource/adapter-calix_smx 1.0.0 → 1.0.2

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.2 [04-28-2026]
3
+
4
+ * Changes made at 2026.04.28_13:04PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-calix_smx!26
7
+
8
+ ---
9
+
10
+ ## 1.0.1 [04-24-2026]
11
+
12
+ * change schema on Post/put EMS Subscriber calls
13
+
14
+ See merge request itentialopensource/adapters/adapter-calix_smx!22
15
+
16
+ ---
17
+
2
18
  ## 1.0.0 [04-13-2026]
3
19
 
4
20
  * Security Fixes Requiring Node >= 20.19.x made at 2026.04.13_08:28AM
@@ -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": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "This adapter integrates with system described as: Calix SMx Northbound API.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Calixsmx",
@@ -48,10 +48,10 @@
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.17",
51
+ "@itentialopensource/adapter-utils": "6.1.19",
52
52
  "acorn": "8.14.1",
53
53
  "ajv": "8.18.0",
54
- "axios": "1.15.0",
54
+ "axios": "1.15.2",
55
55
  "commander": "11.1.0",
56
56
  "fs-extra": "11.3.4",
57
57
  "json-query": "2.2.2",
@@ -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,7 +280,7 @@ 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.15.0', packageDotJson.dependencies.axios);
283
+ assert.equal('1.15.2', 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
286
  assert.equal('12.0.0-beta-10', packageDotJson.dependencies.mocha);