gd-sprest-def 1.1.4 → 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 (38) hide show
  1. package/clean.js +25 -1
  2. package/custom.js +21 -0
  3. package/graph.xml +1 -0
  4. package/lib/Microsoft/graph/actions.d.ts +8317 -0
  5. package/lib/Microsoft/graph/callRecords/complextypes.d.ts +354 -0
  6. package/lib/Microsoft/graph/callRecords/entitytypes.d.ts +63 -0
  7. package/lib/Microsoft/graph/callRecords/enumtypes.d.ts +211 -0
  8. package/lib/Microsoft/graph/callRecords/functions.d.ts +29 -0
  9. package/lib/Microsoft/graph/callRecords/index.d.ts +5 -0
  10. package/lib/Microsoft/graph/complextypes.d.ts +10503 -0
  11. package/lib/Microsoft/graph/entitytypes.d.ts +11264 -0
  12. package/lib/Microsoft/graph/enumtypes.d.ts +5307 -0
  13. package/lib/Microsoft/graph/externalConnectors/complextypes.d.ts +82 -0
  14. package/lib/Microsoft/graph/externalConnectors/entitytypes.d.ts +109 -0
  15. package/lib/Microsoft/graph/externalConnectors/enumtypes.d.ts +113 -0
  16. package/lib/Microsoft/graph/externalConnectors/index.d.ts +4 -0
  17. package/lib/Microsoft/graph/functions.d.ts +1863 -0
  18. package/lib/Microsoft/graph/index.d.ts +14 -0
  19. package/lib/Microsoft/graph/security/actions.d.ts +155 -0
  20. package/lib/Microsoft/graph/security/complextypes.d.ts +66 -0
  21. package/lib/Microsoft/graph/security/entitytypes.d.ts +381 -0
  22. package/lib/Microsoft/graph/security/enumtypes.d.ts +127 -0
  23. package/lib/Microsoft/graph/security/functions.d.ts +15 -0
  24. package/lib/Microsoft/graph/security/index.d.ts +6 -0
  25. package/lib/Microsoft/graph/termStore/complextypes.d.ts +47 -0
  26. package/lib/Microsoft/graph/termStore/entitytypes.d.ts +85 -0
  27. package/lib/Microsoft/graph/termStore/enumtypes.d.ts +29 -0
  28. package/lib/Microsoft/graph/termStore/index.d.ts +4 -0
  29. package/lib/Microsoft/graph/terms.d.ts +113 -0
  30. package/lib/Microsoft/index.d.ts +2 -0
  31. package/lib/SP/Publishing/entitytypes.d.ts +2 -1
  32. package/lib/SP/UserProfiles/entitytypes.d.ts +2 -1
  33. package/lib/mapper.d.ts +1 -0
  34. package/lib/mapper.ts +1 -0
  35. package/main.js +577 -553
  36. package/metadata.md +1 -6
  37. package/metadata.xml +1 -1
  38. 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
+ });
package/custom.js CHANGED
@@ -346,6 +346,18 @@ module.exports = {
346
346
  }
347
347
  ],
348
348
 
349
+ // People Manager
350
+ "SP.UserProfiles.PeopleManager": [
351
+ {
352
+ name: "getUserProfilePropertyFor",
353
+ returnType: "{ GetUserProfilePropertyFor: string }",
354
+ params: [
355
+ { $: { Name: "accountName", Type: "string" } },
356
+ { $: { Name: "propertyName", Type: "string" } }
357
+ ]
358
+ }
359
+ ],
360
+
349
361
  // Role Assignment
350
362
  "SP.RoleAssignment": [
351
363
  {
@@ -402,6 +414,15 @@ module.exports = {
402
414
  }
403
415
  ],
404
416
 
417
+ // Site Page
418
+ "SP.Publishing.SitePage": [
419
+ {
420
+ name: "update",
421
+ returnType: "any",
422
+ params: [{ $: { Name: "properties", Type: "any" } }]
423
+ }
424
+ ],
425
+
405
426
  // Site Pages
406
427
  "Collection(SP.Publishing.SitePage)": [
407
428
  {