Skip to content

Commit 8b061fe

Browse files
committed
init
0 parents  commit 8b061fe

20 files changed

Lines changed: 7884 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '22'
20+
21+
- name: Install dependencies
22+
run: 'npm ci'
23+
24+
- name: Run lint
25+
run: 'npm run lint'
26+
27+
- name: Run build
28+
run: 'npm run build'

.gitignore

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
node_modules
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variable files
70+
.env
71+
.env.*
72+
!.env.example
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
.parcel-cache
77+
78+
# Next.js build output
79+
.next
80+
out
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
.output
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and not Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# vuepress v2.x temp and cache directory
97+
.temp
98+
.cache
99+
100+
# Sveltekit cache directory
101+
.svelte-kit/
102+
103+
# vitepress build output
104+
**/.vitepress/dist
105+
106+
# vitepress cache directory
107+
**/.vitepress/cache
108+
109+
# Docusaurus cache and generated files
110+
.docusaurus
111+
112+
# Serverless directories
113+
.serverless/
114+
115+
# FuseBox cache
116+
.fusebox/
117+
118+
# DynamoDB Local files
119+
.dynamodb/
120+
121+
# Firebase cache directory
122+
.firebase/
123+
124+
# TernJS port file
125+
.tern-port
126+
127+
# Stores VSCode versions used for testing VSCode extensions
128+
.vscode-test
129+
130+
# yarn v3
131+
.pnp.*
132+
.yarn/*
133+
!.yarn/patches
134+
!.yarn/plugins
135+
!.yarn/releases
136+
!.yarn/sdks
137+
!.yarn/versions
138+
139+
# Vite files
140+
vite.config.js.timestamp-*
141+
vite.config.ts.timestamp-*
142+
.vite/

.prettierrc.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
module.exports = {
2+
/**
3+
* https://prettier.io/docs/en/options.html#semicolons
4+
*/
5+
semi: true,
6+
7+
/**
8+
* https://prettier.io/docs/en/options.html#trailing-commas
9+
*/
10+
trailingComma: 'all',
11+
12+
/**
13+
* https://prettier.io/docs/en/options.html#bracket-spacing
14+
*/
15+
bracketSpacing: true,
16+
17+
/**
18+
* https://prettier.io/docs/en/options.html#tabs
19+
*/
20+
useTabs: true,
21+
22+
/**
23+
* https://prettier.io/docs/en/options.html#tab-width
24+
*/
25+
tabWidth: 2,
26+
27+
/**
28+
* https://prettier.io/docs/en/options.html#arrow-function-parentheses
29+
*/
30+
arrowParens: 'always',
31+
32+
/**
33+
* https://prettier.io/docs/en/options.html#quotes
34+
*/
35+
singleQuote: true,
36+
37+
/**
38+
* https://prettier.io/docs/en/options.html#quote-props
39+
*/
40+
quoteProps: 'as-needed',
41+
42+
/**
43+
* https://prettier.io/docs/en/options.html#end-of-line
44+
*/
45+
endOfLine: 'lf',
46+
47+
/**
48+
* https://prettier.io/docs/en/options.html#print-width
49+
*/
50+
printWidth: 100,
51+
};

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Attach to running n8n",
6+
"processId": "${command:PickProcess}",
7+
"request": "attach",
8+
"skipFiles": ["<node_internals>/**"],
9+
"type": "node"
10+
}
11+
]
12+
}

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# n8n-nodes-msgraphsecurity
2+
3+
This is an n8n community node. It lets you use _app/service name_ in your n8n workflows.
4+
5+
_App/service name_ is _one or two sentences describing the service this node integrates with_.
6+
7+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
8+
9+
[Installation](#installation)
10+
[Operations](#operations)
11+
[Credentials](#credentials)
12+
[Compatibility](#compatibility)
13+
[Usage](#usage)
14+
[Resources](#resources)
15+
[Version history](#version-history)
16+
17+
## Installation
18+
19+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
20+
21+
## Operations
22+
23+
_List the operations supported by your node._
24+
25+
## Credentials
26+
27+
_If users need to authenticate with the app/service, provide details here. You should include prerequisites (such as signing up with the service), available authentication methods, and how to set them up._
28+
29+
## Compatibility
30+
31+
_State the minimum n8n version, as well as which versions you test against. You can also include any known version incompatibility issues._
32+
33+
## Usage
34+
35+
_This is an optional section. Use it to help users with any difficult or confusing aspects of the node._
36+
37+
_By the time users are looking for community nodes, they probably already know n8n basics. But if you expect new users, you can link to the [Try it out](https://docs.n8n.io/try-it-out/) documentation to help them get started._
38+
39+
## Resources
40+
41+
* [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
42+
* _Link to app/service documentation._
43+
44+
## Version history
45+
46+
_This is another optional section. If your node has multiple versions, include a short description of available versions and what changed, as well as any compatibility impact._
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2+
3+
export class MsgraphsecurityOAuth2Api implements ICredentialType {
4+
name = 'msgraphsecurityOAuth2Api';
5+
6+
extends = ['oAuth2Api'];
7+
8+
displayName = 'Msgraphsecurity OAuth2 API';
9+
10+
// Link to your community node's README
11+
documentationUrl = 'https://github.com/org/-msgraphsecurity?tab=readme-ov-file#credentials';
12+
13+
properties: INodeProperties[] = [
14+
{
15+
displayName: 'Grant Type',
16+
name: 'grantType',
17+
type: 'hidden',
18+
default: 'clientCredentials',
19+
},
20+
{
21+
displayName: 'Access Token URL',
22+
name: 'accessTokenUrl',
23+
type: 'hidden',
24+
default: 'https://api.example.com/oauth/token',
25+
},
26+
{
27+
displayName: 'Auth URI Query Parameters',
28+
name: 'authQueryParameters',
29+
type: 'hidden',
30+
default: '',
31+
},
32+
{
33+
displayName: 'Scope',
34+
name: 'scope',
35+
type: 'hidden',
36+
default: 'users:read users:write companies:read',
37+
},
38+
{
39+
displayName: 'Authentication',
40+
name: 'authentication',
41+
type: 'hidden',
42+
default: 'body',
43+
},
44+
];
45+
}

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { config } from '@n8n/node-cli/eslint';
2+
3+
export default config;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"node": "n8n-nodes-msgraphsecurity",
3+
"nodeVersion": "1.0",
4+
"codexVersion": "1.0",
5+
"categories": ["Development", "Developer Tools"],
6+
"resources": {
7+
"credentialDocumentation": [
8+
{
9+
"url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
10+
}
11+
],
12+
"primaryDocumentation": [
13+
{
14+
"url": "https://github.com/org/repo?tab=readme-ov-file"
15+
}
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)