solarwinds-itsm-api-definitions 0.2.4 → 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: 6bec1919dcd5bd2e249f63c03d4ea4e35f8c16f4f4ed9561d50d95a787606063
4
- data.tar.gz: e90b7979ad13a9ea1d4f85d8a70c6dd04dcfb78beb643c726cb516e28e98f0ee
3
+ metadata.gz: 7b3b6a363bf7069bafd3239b294f76107b2b6324492eea9d9b14e4d1f22d6474
4
+ data.tar.gz: 1a3bbd97ce05ceeb3a7169e5eedc24948d2f447cb14068d327b5054e30121098
5
5
  SHA512:
6
- metadata.gz: 909aee62e165cce0a9fce890dfbbe78546c370df918a88e892a82eea41bfbd305d1c3b4b20c1c11bb42293b4b4fb8ee3ae6498c27c70d27e4a458d262fc56c11
7
- data.tar.gz: ef1b61e880a159be79697a3268cb4061dd60c33a59eff297e7a42d728adb75228dd9c549375d8d46127f16603b46cb5f3c7d877c9b9aeb6fbf8144133add76af
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() {