sysone-api-mapper 1.0.18 → 1.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sysone-api-mapper",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@ export const tenantsConfig = {
61
61
  },
62
62
  GET_POLICIES: {
63
63
  default: {
64
- url: 'policy/v1/policies?pageSize=1&page=1',
64
+ url: 'policy/v1/policies',
65
65
  method: methods.GET,
66
66
  source: 'https://apidoc.sysone.com/policy/v1/open-api.html#/paths/~1v1~1policies/get',
67
67
  requestMapper: (request) => ({ mappedParams: request }),
@@ -108,8 +108,8 @@ const getPolicies_CNP = async (response) => {
108
108
  name: "N/A",
109
109
  code: "N/A",
110
110
  section: {
111
- name: "N/A",
112
- code: "N/A",
111
+ name: p.section?.name || null,
112
+ code: p.section?.code || null,
113
113
  }
114
114
  }
115
115
  },