gd-sprest-def 1.1.6 → 1.1.8

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.
Files changed (31) hide show
  1. package/clean.js +25 -1
  2. package/graph.xml +1 -0
  3. package/lib/Microsoft/graph/actions.d.ts +8317 -0
  4. package/lib/Microsoft/graph/callRecords/complextypes.d.ts +354 -0
  5. package/lib/Microsoft/graph/callRecords/entitytypes.d.ts +63 -0
  6. package/lib/Microsoft/graph/callRecords/enumtypes.d.ts +211 -0
  7. package/lib/Microsoft/graph/callRecords/functions.d.ts +29 -0
  8. package/lib/Microsoft/graph/callRecords/index.d.ts +5 -0
  9. package/lib/Microsoft/graph/complextypes.d.ts +10503 -0
  10. package/lib/Microsoft/graph/entitytypes.d.ts +11264 -0
  11. package/lib/Microsoft/graph/enumtypes.d.ts +5307 -0
  12. package/lib/Microsoft/graph/externalConnectors/complextypes.d.ts +82 -0
  13. package/lib/Microsoft/graph/externalConnectors/entitytypes.d.ts +109 -0
  14. package/lib/Microsoft/graph/externalConnectors/enumtypes.d.ts +113 -0
  15. package/lib/Microsoft/graph/externalConnectors/index.d.ts +4 -0
  16. package/lib/Microsoft/graph/functions.d.ts +1863 -0
  17. package/lib/Microsoft/graph/index.d.ts +14 -0
  18. package/lib/Microsoft/graph/security/actions.d.ts +155 -0
  19. package/lib/Microsoft/graph/security/complextypes.d.ts +66 -0
  20. package/lib/Microsoft/graph/security/entitytypes.d.ts +381 -0
  21. package/lib/Microsoft/graph/security/enumtypes.d.ts +127 -0
  22. package/lib/Microsoft/graph/security/functions.d.ts +15 -0
  23. package/lib/Microsoft/graph/security/index.d.ts +6 -0
  24. package/lib/Microsoft/graph/termStore/complextypes.d.ts +47 -0
  25. package/lib/Microsoft/graph/termStore/entitytypes.d.ts +85 -0
  26. package/lib/Microsoft/graph/termStore/enumtypes.d.ts +29 -0
  27. package/lib/Microsoft/graph/termStore/index.d.ts +4 -0
  28. package/lib/Microsoft/graph/terms.d.ts +113 -0
  29. package/lib/Microsoft/index.d.ts +2 -0
  30. package/main.js +577 -553
  31. package/package.json +1 -1
package/clean.js CHANGED
@@ -1,4 +1,5 @@
1
1
  var fs = require('fs');
2
+ var https = require("https");
2
3
 
3
4
  // Deletes a directory
4
5
  function deleteDirectory(src) {
@@ -29,8 +30,31 @@ console.log("Cleaning the files...");
29
30
  // Delete the folder
30
31
  deleteDirectory("./lib");
31
32
 
33
+ // Delete the file
34
+ fs.unlinkSync("./graph.xml");
35
+
32
36
  // Create the folder
33
37
  fs.mkdirSync("./lib");
34
38
 
35
39
  // Log
36
- console.log("Successfully cleaned the library");
40
+ console.log("Successfully cleaned the library");
41
+
42
+ // Log
43
+ console.log("Getting the graph api metadata");
44
+
45
+ // Get the metadata
46
+ https.get("https://graph.microsoft.com/v1.0/$metadata", (res) => {
47
+ let data = "";
48
+
49
+ // Read the data
50
+ res.on("data", function (chunk) { data += chunk; });
51
+
52
+ // Wait for the read to complete
53
+ res.on("end", function () {
54
+ // Write the file
55
+ fs.writeFileSync("graph.xml", data);
56
+
57
+ // Log
58
+ console.log("Graph metadata updated.");
59
+ });
60
+ });