solarwinds-itsm-api-definitions 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec4f6cf44dec385db779ee456a915d9c96c50054207132a59ddf8894c0e56367
4
- data.tar.gz: 6dc14e68309f889ac33dace440abd5971e5c2aa23aa1f94edf4e3a6c046352e8
3
+ metadata.gz: 7b3b6a363bf7069bafd3239b294f76107b2b6324492eea9d9b14e4d1f22d6474
4
+ data.tar.gz: 1a3bbd97ce05ceeb3a7169e5eedc24948d2f447cb14068d327b5054e30121098
5
5
  SHA512:
6
- metadata.gz: 436e8a739c6ee486244960d74a69961b484b1511f4f8dde82fd18b4d62f7ffeab9cc69f313c1ef72b1cf48d3882895d234d3af020f9db9adf2f8a14dc5f816a7
7
- data.tar.gz: c6cfa5efaa8b10302b167aa55275b1916f25ec7e02175fd53a73e2300dfc18467c7dda072036d7e9260fbce56448e9aa24eea938a02fb627dc6517974ba63a52
6
+ metadata.gz: a84ee613decaff9ece8037d4026dec9e468949466f9b660bf505b90f9a7aaabf5a0a52f7bb25e38c5b57a3595176c69f54b80f4e4101e8b507c089f89575467d
7
+ data.tar.gz: 77e27842370c04987e9cbd5ac8bec0d1d374d9523cd1a5c1e7f098bdfe090886e643dd9417f3fbee68cbc641d094acf9c74d0f77a55154240e35c58f2141412a
@@ -47,25 +47,53 @@
47
47
  <script id="redoc-script" src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
48
48
 
49
49
  <script>
50
- select = document.querySelector(".versions")
51
- options = document.querySelectorAll(".versions option")
50
+ var historyChanges = {
51
+ "August 10, 2023": ["Added `custom_fields_values` for the response of getGroups and getGroupById"],
52
+ "June 4, 2023": ["Added all related to all ITSM object"],
53
+ "May 7, 2023": ["Update limitation description"],
54
+ "March 19, 2023": ["Filter by updated_at in incident"]
55
+ }
52
56
  redocElement = document.getElementById("redoc-id")
53
57
  redocScript = document.getElementById("redoc-script")
54
- select.addEventListener("change", function() {
55
- version = this.options[this.selectedIndex].value
56
- redocElement.setAttribute("spec-url", version)
57
- redocScript.remove
58
- body = document.getElementsByTagName("body")[0]
59
- script = document.createElement("script")
60
- script.src = "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"
61
- body.appendChild(script)
62
- body.insertBefore(select, body.children[0])
63
- relocateVersionSelectorInterval();
64
- })
58
+
59
+ function createSection(id) {
60
+ // create `p` tag for updates history section
61
+ const newSection = document.createElement("p");
62
+ newSection.id = id;
63
+ newSection.style.padding = "0px 40px";
64
+ return newSection;
65
+ }
66
+
65
67
 
66
68
  function onLoadOperations() {
67
69
  relocateVersionSelectorInterval()
68
70
  removeGemVersionFromTitleInterval()
71
+ var isExists = window.setInterval(addUpdatesHistory, 500);
72
+
73
+ function addUpdatesHistory() {
74
+ let historySection = document.getElementById("section/General-Concepts/Updates-History");
75
+ if (historySection !== null) {
76
+ const historySection = document.getElementById("section/General-Concepts/Updates-History");
77
+ const updatesHistorySection = createSection("selected-version")
78
+
79
+ Object.keys(historyChanges).forEach(changesDate =>{
80
+ let selectedH4 = document.createElement("h4");
81
+ selectedH4.textContent = changesDate
82
+ updatesHistorySection.appendChild(selectedH4);
83
+
84
+ let selectedUL = document.createElement("ul");
85
+ historyChanges[changesDate].forEach(description => {
86
+ let selectedLI = document.createElement("li");
87
+ selectedLI.textContent = description
88
+ selectedUL.appendChild(selectedLI);
89
+ })
90
+ updatesHistorySection.appendChild(selectedUL);
91
+ })
92
+ historySection.appendChild(updatesHistorySection);
93
+ window.clearInterval(isExists)
94
+ return
95
+ }
96
+ }
69
97
  }
70
98
 
71
99
  function relocateVersionSelectorInterval() {