@itentialopensource/adapter-microsoft_graph 1.0.2 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +20 -16
  4. package/CALLS.md +69 -28
  5. package/CHANGELOG.md +16 -0
  6. package/CONTRIBUTING.md +1 -160
  7. package/ENHANCE.md +2 -2
  8. package/README.md +31 -22
  9. package/SUMMARY.md +2 -2
  10. package/SYSTEMINFO.md +15 -5
  11. package/adapter.js +248 -330
  12. package/adapterBase.js +538 -873
  13. package/changelogs/changelog.md +6 -0
  14. package/entities/Mail/action.json +20 -0
  15. package/entities/Mail/schema.json +1 -0
  16. package/metadata.json +52 -0
  17. package/package.json +22 -25
  18. package/pronghorn.json +550 -144
  19. package/propertiesSchema.json +444 -40
  20. package/refs?service=git-upload-pack +0 -0
  21. package/report/adapter-openapi.json +14709 -0
  22. package/report/adapter-openapi.yaml +9744 -0
  23. package/report/adapterInfo.json +8 -8
  24. package/report/updateReport1691507370664.json +120 -0
  25. package/report/updateReport1692202407231.json +120 -0
  26. package/report/updateReport1694460353234.json +120 -0
  27. package/report/updateReport1695667793473.json +120 -0
  28. package/sampleProperties.json +63 -2
  29. package/test/integration/adapterTestBasicGet.js +1 -1
  30. package/test/integration/adapterTestConnectivity.js +91 -42
  31. package/test/integration/adapterTestIntegration.js +130 -2
  32. package/test/unit/adapterBaseTestUnit.js +395 -292
  33. package/test/unit/adapterTestUnit.js +306 -109
  34. package/utils/adapterInfo.js +1 -1
  35. package/utils/addAuth.js +1 -1
  36. package/utils/artifactize.js +1 -1
  37. package/utils/checkMigrate.js +1 -1
  38. package/utils/entitiesToDB.js +1 -0
  39. package/utils/findPath.js +1 -1
  40. package/utils/methodDocumentor.js +57 -22
  41. package/utils/modify.js +13 -15
  42. package/utils/packModificationScript.js +1 -1
  43. package/utils/taskMover.js +309 -0
  44. package/utils/tbScript.js +3 -10
  45. package/utils/tbUtils.js +2 -3
  46. package/utils/testRunner.js +1 -1
  47. package/utils/troubleshootingAdapter.js +1 -3
  48. package/workflows/README.md +0 -3
@@ -0,0 +1,6 @@
1
+
2
+ ## 1.0.2 [08-24-2023]
3
+
4
+ * Update utils version to 5 and add oauth support
5
+
6
+ See merge request itentialopensource/adapters/cloud/adapter-microsoft_graph!2
@@ -125,6 +125,26 @@
125
125
  }
126
126
  ]
127
127
  },
128
+ {
129
+ "name": "sendmailApplication",
130
+ "protocol": "REST",
131
+ "method": "POST",
132
+ "entitypath": "{base_path}/{version}/v1.0/users/{pathv1}/sendMail?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
128
148
  {
129
149
  "name": "getmailboxsettings",
130
150
  "protocol": "REST",
@@ -16,6 +16,7 @@
16
16
  "getmymailboxrules",
17
17
  "getmycategories",
18
18
  "sendmail",
19
+ "sendmailApplication",
19
20
  "getmailboxsettings",
20
21
  "setautomaticreplies",
21
22
  "getauserSmessages",
package/metadata.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "adapter-microsoft_graph",
3
+ "webName": "Adapter for Integration to Microsoft Graph",
4
+ "vendor": "Microsoft",
5
+ "product": "Graph",
6
+ "osVersion": [],
7
+ "apiVersions": [
8
+ "1.0"
9
+ ],
10
+ "iapVersions": [
11
+ "2021.1.x",
12
+ "2021.2.x",
13
+ "2022.1.x",
14
+ "2023.1.x"
15
+ ],
16
+ "method": "REST",
17
+ "type": "Adapter",
18
+ "domains": [
19
+ "Cloud"
20
+ ],
21
+ "tags": [],
22
+ "useCases": [],
23
+ "deprecated": {
24
+ "isDeprecated": false
25
+ },
26
+ "brokerSince": "",
27
+ "documentation": {
28
+ "storeLink": "",
29
+ "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-microsoft_graph",
30
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-microsoft_graph.git",
31
+ "docLink": "https://docs.itential.com/opensource/docs/microsoft-graph",
32
+ "demoLinks": [],
33
+ "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
34
+ "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
35
+ "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
36
+ "webLink": "https://www.itential.com/adapters/microsoft-graph/",
37
+ "vendorLink": "https://www.microsoft.com/en-us/",
38
+ "productLink": "https://learn.microsoft.com/en-us/graph/overview",
39
+ "apiLinks": [
40
+ "https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0"
41
+ ]
42
+ },
43
+ "assets": [],
44
+ "relatedItems": {
45
+ "adapters": [],
46
+ "integrations": [],
47
+ "ecosystemApplications": [],
48
+ "workflowProjects": [],
49
+ "transformationProjects": [],
50
+ "exampleProjects": []
51
+ }
52
+ }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-microsoft_graph",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "description": "This adapter integrates with system described as: microsoftGraph.",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.44.15",
7
- "engineVersion": "1.62.7",
6
+ "wizardVersion": "2.44.7",
7
+ "engineVersion": "1.67.8",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
11
- "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
11
+ "preinstall": "node utils/setup.js",
12
12
  "deinstall": "node utils/removeHooks.js",
13
13
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
14
14
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
@@ -54,34 +54,31 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-microsoft_graph#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.0.1",
58
- "ajv": "^6.12.0",
59
- "axios": "^0.21.0",
60
- "commander": "^2.20.0",
61
- "esprima": "^4.0.1",
62
- "fs-extra": "^8.1.0",
57
+ "@itentialopensource/adapter-utils": "^5.1.7",
58
+ "acorn": "^8.10.0",
59
+ "ajv": "^8.12.0",
60
+ "axios": "^1.4.0",
61
+ "commander": "^11.0.0",
62
+ "dns-lookup-promise": "^1.0.4",
63
+ "fs-extra": "^11.1.1",
63
64
  "json-query": "^2.2.2",
64
- "mocha": "^9.0.1",
65
+ "mocha": "^10.2.0",
65
66
  "mocha-param": "^2.0.1",
66
- "mongodb": "^4.1.0",
67
- "network-diagnostics": "^0.5.3",
67
+ "mongodb": "^4.16.0",
68
68
  "nyc": "^15.1.0",
69
+ "ping": "^0.4.4",
69
70
  "prompts": "^2.4.2",
70
71
  "readline-sync": "^1.4.10",
71
- "semver": "^7.3.2",
72
- "winston": "^3.3.3"
72
+ "semver": "^7.5.3",
73
+ "winston": "^3.9.0"
73
74
  },
74
75
  "devDependencies": {
75
- "chai": "^4.3.4",
76
- "eslint": "^7.29.0",
77
- "eslint-config-airbnb-base": "^14.2.1",
78
- "eslint-plugin-import": "^2.23.4",
79
- "eslint-plugin-json": "^3.0.0",
80
- "package-json-validator": "^0.6.3",
81
- "testdouble": "^3.16.1"
82
- },
83
- "resolutions": {
84
- "minimist": "^1.2.5"
76
+ "chai": "^4.3.7",
77
+ "eslint": "^8.44.0",
78
+ "eslint-config-airbnb-base": "^15.0.0",
79
+ "eslint-plugin-import": "^2.27.5",
80
+ "eslint-plugin-json": "^3.1.0",
81
+ "testdouble": "^3.18.0"
85
82
  },
86
83
  "private": false
87
84
  }