gd-sprest-def 1.2.3 → 1.2.6
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/clean.js +1 -40
- package/graph.xml +29618 -1
- package/lib/Microsoft/Graph/api.d.ts +262 -0
- package/lib/Microsoft/Graph/complexTypes.d.ts +5679 -0
- package/lib/Microsoft/Graph/entityTypes.d.ts +7956 -0
- package/lib/Microsoft/{graph/enums.d.ts → Graph/enumTypes.d.ts} +0 -0
- package/lib/Microsoft/Graph/index.d.ts +4 -0
- package/lib/Microsoft/index.d.ts +3 -3
- package/lib/{enums.ts → enumTypes.ts} +1 -1
- package/main.js +370 -42
- package/package.json +3 -2
- package/update.js +40 -0
- package/lib/Microsoft/graph/actions.d.ts +0 -8317
- package/lib/Microsoft/graph/callRecords/complextypes.d.ts +0 -353
- package/lib/Microsoft/graph/callRecords/entitytypes.d.ts +0 -63
- package/lib/Microsoft/graph/callRecords/functions.d.ts +0 -29
- package/lib/Microsoft/graph/callRecords/index.d.ts +0 -4
- package/lib/Microsoft/graph/complextypes.d.ts +0 -10503
- package/lib/Microsoft/graph/entitytypes.d.ts +0 -11264
- package/lib/Microsoft/graph/externalConnectors/complextypes.d.ts +0 -82
- package/lib/Microsoft/graph/externalConnectors/entitytypes.d.ts +0 -109
- package/lib/Microsoft/graph/externalConnectors/index.d.ts +0 -3
- package/lib/Microsoft/graph/functions.d.ts +0 -1863
- package/lib/Microsoft/graph/index.d.ts +0 -14
- package/lib/Microsoft/graph/security/actions.d.ts +0 -155
- package/lib/Microsoft/graph/security/complextypes.d.ts +0 -65
- package/lib/Microsoft/graph/security/entitytypes.d.ts +0 -381
- package/lib/Microsoft/graph/security/functions.d.ts +0 -15
- package/lib/Microsoft/graph/security/index.d.ts +0 -5
- package/lib/Microsoft/graph/termStore/complextypes.d.ts +0 -47
- package/lib/Microsoft/graph/termStore/entitytypes.d.ts +0 -85
- package/lib/Microsoft/graph/termStore/index.d.ts +0 -3
- package/lib/Microsoft/graph/terms.d.ts +0 -113
package/clean.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var fs = require('fs');
|
|
2
|
-
var https = require("https");
|
|
3
2
|
|
|
4
3
|
// Deletes a directory
|
|
5
4
|
function deleteDirectory(src) {
|
|
@@ -30,46 +29,8 @@ console.log("Cleaning the files...");
|
|
|
30
29
|
// Delete the folder
|
|
31
30
|
deleteDirectory("./lib");
|
|
32
31
|
|
|
33
|
-
// See if the file exists
|
|
34
|
-
if (fs.existsSync("./graph.xml")) {
|
|
35
|
-
// Delete the file
|
|
36
|
-
fs.unlinkSync("./graph.xml");
|
|
37
|
-
}
|
|
38
|
-
|
|
39
32
|
// Create the folder
|
|
40
33
|
fs.mkdirSync("./lib");
|
|
41
34
|
|
|
42
35
|
// Log
|
|
43
|
-
console.log("Successfully cleaned the library");
|
|
44
|
-
|
|
45
|
-
// Log
|
|
46
|
-
console.log("Getting the graph api metadata");
|
|
47
|
-
|
|
48
|
-
// Get the metadata
|
|
49
|
-
https.get("https://graph.microsoft.com/v1.0/$metadata", (res) => {
|
|
50
|
-
let data = "";
|
|
51
|
-
|
|
52
|
-
// Read the data
|
|
53
|
-
res.on("data", function (chunk) { data += chunk; });
|
|
54
|
-
|
|
55
|
-
// Wait for the read to complete
|
|
56
|
-
res.on("end", function () {
|
|
57
|
-
// Fix TypeScript Issues
|
|
58
|
-
// Rename the "case" type
|
|
59
|
-
// Rename the "return" type
|
|
60
|
-
let content = data.toString()
|
|
61
|
-
.replace('<Action Name="case"', '<Action Name="_case"')
|
|
62
|
-
.replace('<Action Name="delete"', '<Action Name="_delete"')
|
|
63
|
-
.replace('<Action Name="false"', '<Action Name="_false"')
|
|
64
|
-
.replace('<Action Name="if"', '<Action Name="_if"')
|
|
65
|
-
.replace('<Action Name="import"', '<Action Name="_import"')
|
|
66
|
-
.replace('<Action Name="return"', '<Action Name="_return"')
|
|
67
|
-
.replace('<Action Name="true"', '<Action Name="_true"');
|
|
68
|
-
|
|
69
|
-
// Write the file
|
|
70
|
-
fs.writeFileSync("graph.xml", content);
|
|
71
|
-
|
|
72
|
-
// Log
|
|
73
|
-
console.log("Graph metadata updated.");
|
|
74
|
-
});
|
|
75
|
-
});
|
|
36
|
+
console.log("Successfully cleaned the library");
|