@itentialopensource/adapter-calix_smx 1.0.2 → 1.0.3

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,12 @@
1
1
 
2
+ ## 1.0.3 [04-29-2026]
3
+
4
+ * fix default value in schema
5
+
6
+ See merge request itentialopensource/adapters/adapter-calix_smx!27
7
+
8
+ ---
9
+
2
10
  ## 1.0.2 [04-28-2026]
3
11
 
4
12
  * Changes made at 2026.04.28_13:04PM
@@ -141,7 +141,7 @@
141
141
  {
142
142
  "type": "default",
143
143
  "key": "",
144
- "mockFile": ""
144
+ "mockFile": "mockdatafiles/updateAccount.json"
145
145
  }
146
146
  ]
147
147
  },
@@ -187,4 +187,4 @@
187
187
  ]
188
188
  }
189
189
  ]
190
- }
190
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "resultCode": "String",
4
+ "userMessage": "String"
5
+ }
6
+ ]
@@ -8,7 +8,7 @@
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "getAllSubscriber",
11
+ "default": "createSubscriber",
12
12
  "enum": [
13
13
  "createSubscriber",
14
14
  "updateAccount"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-calix_smx",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "This adapter integrates with system described as: Calix SMx Northbound API.",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Calixsmx",
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.0.0",
3
- "configLines": 161308,
2
+ "version": "1.0.2",
3
+ "configLines": 161309,
4
4
  "scriptLines": 2523,
5
5
  "codeLines": 191443,
6
6
  "testLines": 113446,
@@ -102437,9 +102437,25 @@
102437
102437
  "content": {
102438
102438
  "application/json": {
102439
102439
  "schema": {
102440
- "title": "result",
102441
- "type": "object"
102442
- }
102440
+ "type": "array",
102441
+ "items": {
102442
+ "type": "object",
102443
+ "properties": {
102444
+ "resultCode": {
102445
+ "type": "string"
102446
+ },
102447
+ "userMessage": {
102448
+ "type": "string"
102449
+ }
102450
+ }
102451
+ }
102452
+ },
102453
+ "example": [
102454
+ {
102455
+ "resultCode": "String",
102456
+ "userMessage": "String"
102457
+ }
102458
+ ]
102443
102459
  }
102444
102460
  }
102445
102461
  }
@@ -37517,8 +37517,8 @@ describe('[integration] Calixsmx Adapter Test', () => {
37517
37517
  a.updateAccount(eMSSubscriberOrgId, eMSSubscriberAccountName, eMSSubscriberUpdateAccountBodyParam, null, (data, error) => {
37518
37518
  try {
37519
37519
  if (stub) {
37520
- const displayE = 'Error 400 received on request';
37521
- runErrorAsserts(data, error, 'AD.500', 'Test-calix_smx-connectorRest-handleEndResponse', displayE);
37520
+ runCommonAsserts(data, error);
37521
+ assert.equal('object', typeof data.response);
37522
37522
  } else {
37523
37523
  runCommonAsserts(data, error);
37524
37524
  }