n8n-nodes-palgate 1.0.0
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/LICENSE.md +19 -0
- package/README.md +52 -0
- package/dist/credentials/PalGateApi.credentials.d.ts +10 -0
- package/dist/credentials/PalGateApi.credentials.js +50 -0
- package/dist/credentials/PalGateApi.credentials.js.map +1 -0
- package/dist/credentials/icon.svg +9 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/icons/icon.svg +9 -0
- package/dist/nodes/Example/Example.node.d.ts +5 -0
- package/dist/nodes/Example/Example.node.js +61 -0
- package/dist/nodes/Example/Example.node.js.map +1 -0
- package/dist/nodes/Example/Example.node.json +18 -0
- package/dist/nodes/Example/example.dark.svg +13 -0
- package/dist/nodes/Example/example.svg +13 -0
- package/dist/nodes/GithubIssues/GithubIssues.node.json +18 -0
- package/dist/nodes/GithubIssues/listSearch/getIssues.d.ts +2 -0
- package/dist/nodes/GithubIssues/listSearch/getIssues.js +28 -0
- package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +1 -0
- package/dist/nodes/GithubIssues/listSearch/getRepositories.d.ts +2 -0
- package/dist/nodes/GithubIssues/listSearch/getRepositories.js +31 -0
- package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +1 -0
- package/dist/nodes/GithubIssues/listSearch/getUsers.d.ts +2 -0
- package/dist/nodes/GithubIssues/listSearch/getUsers.js +29 -0
- package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issue/create.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issue/create.js +75 -0
- package/dist/nodes/GithubIssues/resources/issue/create.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issue/get.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issue/get.js +15 -0
- package/dist/nodes/GithubIssues/resources/issue/get.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issue/getAll.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issue/getAll.js +125 -0
- package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issue/index.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issue/index.js +76 -0
- package/dist/nodes/GithubIssues/resources/issue/index.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +66 -0
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +1 -0
- package/dist/nodes/GithubIssues/resources/issueComment/index.d.ts +2 -0
- package/dist/nodes/GithubIssues/resources/issueComment/index.js +48 -0
- package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +1 -0
- package/dist/nodes/GithubIssues/shared/descriptions.d.ts +4 -0
- package/dist/nodes/GithubIssues/shared/descriptions.js +151 -0
- package/dist/nodes/GithubIssues/shared/descriptions.js.map +1 -0
- package/dist/nodes/GithubIssues/shared/transport.d.ts +2 -0
- package/dist/nodes/GithubIssues/shared/transport.js +16 -0
- package/dist/nodes/GithubIssues/shared/transport.js.map +1 -0
- package/dist/nodes/GithubIssues/shared/utils.d.ts +3 -0
- package/dist/nodes/GithubIssues/shared/utils.js +17 -0
- package/dist/nodes/GithubIssues/shared/utils.js.map +1 -0
- package/dist/nodes/PalGate/PalGate.node.d.ts +4 -0
- package/dist/nodes/PalGate/PalGate.node.js +85 -0
- package/dist/nodes/PalGate/PalGate.node.js.map +1 -0
- package/dist/nodes/PalGate/icon.svg +9 -0
- package/dist/nodes/PalGate/resources/cars/add.d.ts +2 -0
- package/dist/nodes/PalGate/resources/cars/add.js +54 -0
- package/dist/nodes/PalGate/resources/cars/add.js.map +1 -0
- package/dist/nodes/PalGate/resources/cars/delete.d.ts +2 -0
- package/dist/nodes/PalGate/resources/cars/delete.js +28 -0
- package/dist/nodes/PalGate/resources/cars/delete.js.map +1 -0
- package/dist/nodes/PalGate/resources/cars/deleteById.d.ts +2 -0
- package/dist/nodes/PalGate/resources/cars/deleteById.js +28 -0
- package/dist/nodes/PalGate/resources/cars/deleteById.js.map +1 -0
- package/dist/nodes/PalGate/resources/cars/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/cars/index.js +91 -0
- package/dist/nodes/PalGate/resources/cars/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/cars/searchInLogs.d.ts +2 -0
- package/dist/nodes/PalGate/resources/cars/searchInLogs.js +24 -0
- package/dist/nodes/PalGate/resources/cars/searchInLogs.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/getDevicesMarkers.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/getDevicesMarkers.js +5 -0
- package/dist/nodes/PalGate/resources/dashboard/getDevicesMarkers.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/getFavorites.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/getFavorites.js +5 -0
- package/dist/nodes/PalGate/resources/dashboard/getFavorites.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecent.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecent.js +5 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecent.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecentDevicesPlaces.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecentDevicesPlaces.js +5 -0
- package/dist/nodes/PalGate/resources/dashboard/getRecentDevicesPlaces.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/getStatistics.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/getStatistics.js +5 -0
- package/dist/nodes/PalGate/resources/dashboard/getStatistics.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/index.js +91 -0
- package/dist/nodes/PalGate/resources/dashboard/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecent.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecent.js +44 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecent.js.map +1 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecentDevicesPlaces.d.ts +2 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecentDevicesPlaces.js +44 -0
- package/dist/nodes/PalGate/resources/dashboard/updateRecentDevicesPlaces.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/addUsers.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/addUsers.js +33 -0
- package/dist/nodes/PalGate/resources/devices/addUsers.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/get.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/get.js +15 -0
- package/dist/nodes/PalGate/resources/devices/get.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getAll.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getAll.js +164 -0
- package/dist/nodes/PalGate/resources/devices/getAll.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getDetails.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getDetails.js +15 -0
- package/dist/nodes/PalGate/resources/devices/getDetails.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getLiveStatusHistory.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getLiveStatusHistory.js +15 -0
- package/dist/nodes/PalGate/resources/devices/getLiveStatusHistory.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getLog.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getLog.js +127 -0
- package/dist/nodes/PalGate/resources/devices/getLog.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getStatusHistoryV2.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getStatusHistoryV2.js +15 -0
- package/dist/nodes/PalGate/resources/devices/getStatusHistoryV2.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/getUsers.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/getUsers.js +85 -0
- package/dist/nodes/PalGate/resources/devices/getUsers.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/index.js +139 -0
- package/dist/nodes/PalGate/resources/devices/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/devices/updateSettings.d.ts +2 -0
- package/dist/nodes/PalGate/resources/devices/updateSettings.js +31 -0
- package/dist/nodes/PalGate/resources/devices/updateSettings.js.map +1 -0
- package/dist/nodes/PalGate/resources/organizations/get.d.ts +2 -0
- package/dist/nodes/PalGate/resources/organizations/get.js +15 -0
- package/dist/nodes/PalGate/resources/organizations/get.js.map +1 -0
- package/dist/nodes/PalGate/resources/organizations/getDetails.d.ts +2 -0
- package/dist/nodes/PalGate/resources/organizations/getDetails.js +15 -0
- package/dist/nodes/PalGate/resources/organizations/getDetails.js.map +1 -0
- package/dist/nodes/PalGate/resources/organizations/getTree.d.ts +2 -0
- package/dist/nodes/PalGate/resources/organizations/getTree.js +80 -0
- package/dist/nodes/PalGate/resources/organizations/getTree.js.map +1 -0
- package/dist/nodes/PalGate/resources/organizations/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/organizations/index.js +59 -0
- package/dist/nodes/PalGate/resources/organizations/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/formatPhoneNumber.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/formatPhoneNumber.js +24 -0
- package/dist/nodes/PalGate/resources/places/formatPhoneNumber.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/get.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/get.js +15 -0
- package/dist/nodes/PalGate/resources/places/get.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/getAll.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/getAll.js +80 -0
- package/dist/nodes/PalGate/resources/places/getAll.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/getDetails.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/getDetails.js +15 -0
- package/dist/nodes/PalGate/resources/places/getDetails.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/getGroups.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/getGroups.js +15 -0
- package/dist/nodes/PalGate/resources/places/getGroups.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/getTree.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/getTree.js +94 -0
- package/dist/nodes/PalGate/resources/places/getTree.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/getUsers.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/getUsers.js +99 -0
- package/dist/nodes/PalGate/resources/places/getUsers.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/index.js +132 -0
- package/dist/nodes/PalGate/resources/places/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/places/update.d.ts +2 -0
- package/dist/nodes/PalGate/resources/places/update.js +43 -0
- package/dist/nodes/PalGate/resources/places/update.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/add.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/add.js +73 -0
- package/dist/nodes/PalGate/resources/users/add.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/addMany.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/addMany.js +75 -0
- package/dist/nodes/PalGate/resources/users/addMany.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/delete.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/delete.js +26 -0
- package/dist/nodes/PalGate/resources/users/delete.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/find.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/find.js +19 -0
- package/dist/nodes/PalGate/resources/users/find.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/getAll.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/getAll.js +80 -0
- package/dist/nodes/PalGate/resources/users/getAll.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/getImage.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/getImage.js +15 -0
- package/dist/nodes/PalGate/resources/users/getImage.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/getPortalUsers.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/getPortalUsers.js +122 -0
- package/dist/nodes/PalGate/resources/users/getPortalUsers.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/index.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/index.js +160 -0
- package/dist/nodes/PalGate/resources/users/index.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/update.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/update.js +49 -0
- package/dist/nodes/PalGate/resources/users/update.js.map +1 -0
- package/dist/nodes/PalGate/resources/users/updateByPhone.d.ts +2 -0
- package/dist/nodes/PalGate/resources/users/updateByPhone.js +51 -0
- package/dist/nodes/PalGate/resources/users/updateByPhone.js.map +1 -0
- package/dist/nodes/PalGate/shared/descriptions.d.ts +5 -0
- package/dist/nodes/PalGate/shared/descriptions.js +35 -0
- package/dist/nodes/PalGate/shared/descriptions.js.map +1 -0
- package/dist/nodes/PalGate/shared/transport.d.ts +2 -0
- package/dist/nodes/PalGate/shared/transport.js +14 -0
- package/dist/nodes/PalGate/shared/transport.js.map +1 -0
- package/dist/package.json +57 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# n8n-nodes-palgate
|
|
2
|
+
|
|
3
|
+
n8n community node for PAL Portal API - manage users, cars, places, devices, and organizations.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **User Management**: Find, add, update, and delete users
|
|
8
|
+
- **Car Management**: Add and remove cars from users
|
|
9
|
+
- **Place Management**: Manage places and their configurations
|
|
10
|
+
- **Device Management**: Monitor and manage devices
|
|
11
|
+
- **Organization Management**: Handle organizations and their hierarchies
|
|
12
|
+
- **Dashboard**: Access dashboard statistics and favorites
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install n8n-nodes-palgate
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
1. Install the package in your n8n instance
|
|
23
|
+
2. Add the "PAL Gate" node to your workflow
|
|
24
|
+
3. Configure credentials with your PAL Portal username and password
|
|
25
|
+
4. Select the resource and operation you want to perform
|
|
26
|
+
|
|
27
|
+
## Resources
|
|
28
|
+
|
|
29
|
+
### User
|
|
30
|
+
- **Find**: Find a user by phone number in a place
|
|
31
|
+
- **Add**: Add a new user to a place
|
|
32
|
+
- **Add Many**: Add multiple users to a place in a single request
|
|
33
|
+
- **Update**: Update user information
|
|
34
|
+
- **Update By Phone**: Update user name and/or cars by phone number
|
|
35
|
+
- **Delete**: Delete a user from a place
|
|
36
|
+
- **Get Many**: Get all app users (mobile users)
|
|
37
|
+
- **Get Portal Users**: Get web users (portal users)
|
|
38
|
+
- **Get Image**: Get user profile image
|
|
39
|
+
|
|
40
|
+
## Credentials
|
|
41
|
+
|
|
42
|
+
The node requires PAL Portal API credentials:
|
|
43
|
+
- **Username**: Your PAL Portal username/email
|
|
44
|
+
- **Password**: Your PAL Portal password
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT
|
|
49
|
+
|
|
50
|
+
## Author
|
|
51
|
+
|
|
52
|
+
PAL Portal Team
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class PalGateApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PalGateApi = void 0;
|
|
4
|
+
class PalGateApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'palGateApi';
|
|
7
|
+
this.displayName = 'PAL Gate API';
|
|
8
|
+
this.icon = 'file:icon.svg';
|
|
9
|
+
this.documentationUrl = 'https://portal.pal-es.com';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Username',
|
|
13
|
+
name: 'username',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'PAL Portal username/email',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Password',
|
|
21
|
+
name: 'password',
|
|
22
|
+
type: 'string',
|
|
23
|
+
typeOptions: {
|
|
24
|
+
password: true,
|
|
25
|
+
},
|
|
26
|
+
default: '',
|
|
27
|
+
required: true,
|
|
28
|
+
description: 'PAL Portal password',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
this.authenticate = {
|
|
32
|
+
type: 'generic',
|
|
33
|
+
properties: {
|
|
34
|
+
auth: {
|
|
35
|
+
username: '={{$credentials.username}}',
|
|
36
|
+
password: '={{$credentials.password}}',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
this.test = {
|
|
41
|
+
request: {
|
|
42
|
+
baseURL: 'https://portal.pal-es.com/api1',
|
|
43
|
+
url: '/check-token',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.PalGateApi = PalGateApi;
|
|
50
|
+
//# sourceMappingURL=PalGateApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PalGateApi.credentials.js","sourceRoot":"","sources":["../../credentials/PalGateApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,cAAc,CAAC;QAE7B,SAAI,GAAS,eAAe,CAAC;QAE7B,qBAAgB,GAAG,2BAA2B,CAAC;QAE/C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,2BAA2B;aACxC;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qBAAqB;aAClC;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,IAAI,EAAE;oBACL,QAAQ,EAAE,4BAA4B;oBACtC,QAAQ,EAAE,4BAA4B;iBACtC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,gCAAgC;gBACzC,GAAG,EAAE,cAAc;gBACnB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAhDD,gCAgDC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
4
|
+
<line x1="9" y1="3" x2="9" y2="21"></line>
|
|
5
|
+
<line x1="15" y1="3" x2="15" y2="21"></line>
|
|
6
|
+
<line x1="3" y1="9" x2="21" y2="9"></line>
|
|
7
|
+
<line x1="3" y1="15" x2="21" y2="15"></line>
|
|
8
|
+
</svg>
|
|
9
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
4
|
+
<line x1="9" y1="3" x2="9" y2="21"></line>
|
|
5
|
+
<line x1="15" y1="3" x2="15" y2="21"></line>
|
|
6
|
+
<line x1="3" y1="9" x2="21" y2="9"></line>
|
|
7
|
+
<line x1="3" y1="15" x2="21" y2="15"></line>
|
|
8
|
+
</svg>
|
|
9
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Example = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class Example {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Example',
|
|
9
|
+
name: 'example',
|
|
10
|
+
icon: { light: 'file:example.svg', dark: 'file:example.dark.svg' },
|
|
11
|
+
group: ['input'],
|
|
12
|
+
version: 1,
|
|
13
|
+
description: 'Basic Example Node',
|
|
14
|
+
defaults: {
|
|
15
|
+
name: 'Example',
|
|
16
|
+
},
|
|
17
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
18
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
+
usableAsTool: true,
|
|
20
|
+
properties: [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'My String',
|
|
23
|
+
name: 'myString',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: '',
|
|
26
|
+
placeholder: 'Placeholder value',
|
|
27
|
+
description: 'The description text',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
async execute() {
|
|
33
|
+
const items = this.getInputData();
|
|
34
|
+
let item;
|
|
35
|
+
let myString;
|
|
36
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
37
|
+
try {
|
|
38
|
+
myString = this.getNodeParameter('myString', itemIndex, '');
|
|
39
|
+
item = items[itemIndex];
|
|
40
|
+
item.json.myString = myString;
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
if (this.continueOnFail()) {
|
|
44
|
+
items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (error.context) {
|
|
48
|
+
error.context.itemIndex = itemIndex;
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
52
|
+
itemIndex,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return [items];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.Example = Example;
|
|
61
|
+
//# sourceMappingURL=Example.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Example.node.js","sourceRoot":"","sources":["../../../nodes/Example/Example.node.ts"],"names":[],"mappings":";;;AAMA,+CAAuE;AAEvE,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,uBAAuB,EAAE;YAClE,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE;gBAGX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,mBAAmB;oBAChC,WAAW,EAAE,sBAAsB;iBACnC;aACD;SACD,CAAC;IA2CH,CAAC;IArCA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAElC,IAAI,IAAwB,CAAC;QAC7B,IAAI,QAAgB,CAAC;QAKrB,KAAK,IAAI,SAAS,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;YAC/D,IAAI,CAAC;gBACJ,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;gBACtE,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;gBAExB,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC/B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAGhB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1F,CAAC;qBAAM,CAAC;oBAEP,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;wBAGnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;wBACpC,MAAM,KAAK,CAAC;oBACb,CAAC;oBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;wBACnD,SAAS;qBACT,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AArED,0BAqEC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-example",
|
|
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,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
|
|
3
|
+
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
|
|
4
|
+
<rect x="9" y="9" width="6" height="6"></rect>
|
|
5
|
+
<line x1="9" y1="1" x2="9" y2="4"></line>
|
|
6
|
+
<line x1="15" y1="1" x2="15" y2="4"></line>
|
|
7
|
+
<line x1="9" y1="20" x2="9" y2="23"></line>
|
|
8
|
+
<line x1="15" y1="20" x2="15" y2="23"></line>
|
|
9
|
+
<line x1="20" y1="9" x2="23" y2="9"></line>
|
|
10
|
+
<line x1="20" y1="14" x2="23" y2="14"></line>
|
|
11
|
+
<line x1="1" y1="9" x2="4" y2="9"></line>
|
|
12
|
+
<line x1="1" y1="14" x2="4" y2="14"></line>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
|
|
3
|
+
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
|
|
4
|
+
<rect x="9" y="9" width="6" height="6"></rect>
|
|
5
|
+
<line x1="9" y1="1" x2="9" y2="4"></line>
|
|
6
|
+
<line x1="15" y1="1" x2="15" y2="4"></line>
|
|
7
|
+
<line x1="9" y1="20" x2="9" y2="23"></line>
|
|
8
|
+
<line x1="15" y1="20" x2="15" y2="23"></line>
|
|
9
|
+
<line x1="20" y1="9" x2="23" y2="9"></line>
|
|
10
|
+
<line x1="20" y1="14" x2="23" y2="14"></line>
|
|
11
|
+
<line x1="1" y1="9" x2="4" y2="9"></line>
|
|
12
|
+
<line x1="1" y1="14" x2="4" y2="14"></line>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-github-issues",
|
|
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,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getIssues = getIssues;
|
|
4
|
+
const transport_1 = require("../shared/transport");
|
|
5
|
+
async function getIssues(filter, paginationToken) {
|
|
6
|
+
const page = paginationToken ? +paginationToken : 1;
|
|
7
|
+
const per_page = 100;
|
|
8
|
+
let responseData = {
|
|
9
|
+
items: [],
|
|
10
|
+
total_count: 0,
|
|
11
|
+
};
|
|
12
|
+
const owner = this.getNodeParameter('owner', '', { extractValue: true });
|
|
13
|
+
const repository = this.getNodeParameter('repository', '', { extractValue: true });
|
|
14
|
+
const filters = [filter, `repo:${owner}/${repository}`];
|
|
15
|
+
responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/issues', {
|
|
16
|
+
q: filters.filter(Boolean).join(' '),
|
|
17
|
+
page,
|
|
18
|
+
per_page,
|
|
19
|
+
});
|
|
20
|
+
const results = responseData.items.map((item) => ({
|
|
21
|
+
name: item.title,
|
|
22
|
+
value: item.number,
|
|
23
|
+
url: item.html_url,
|
|
24
|
+
}));
|
|
25
|
+
const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
|
|
26
|
+
return { results, paginationToken: nextPaginationToken };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=getIssues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIssues.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getIssues.ts"],"names":[],"mappings":";;AAkBA,8BA8BC;AA3CD,mDAAuD;AAahD,KAAK,UAAU,SAAS,CAE9B,MAAe,EACf,eAAwB;IAExB,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IAErB,IAAI,YAAY,GAAwB;QACvC,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IACF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,UAAU,EAAE,CAAC,CAAC;IAExD,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE;QACzE,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QACpC,IAAI;QACJ,QAAQ;KACR,CAAC,CAAC;IAEH,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE,CAAC,CAAC;QAC1F,IAAI,EAAE,IAAI,CAAC,KAAK;QAChB,KAAK,EAAE,IAAI,CAAC,MAAM;QAClB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRepositories = getRepositories;
|
|
4
|
+
const transport_1 = require("../shared/transport");
|
|
5
|
+
async function getRepositories(filter, paginationToken) {
|
|
6
|
+
const owner = this.getCurrentNodeParameter('owner', { extractValue: true });
|
|
7
|
+
const page = paginationToken ? +paginationToken : 1;
|
|
8
|
+
const per_page = 100;
|
|
9
|
+
const q = `${filter !== null && filter !== void 0 ? filter : ''} user:${owner} fork:true`;
|
|
10
|
+
let responseData = {
|
|
11
|
+
items: [],
|
|
12
|
+
total_count: 0,
|
|
13
|
+
};
|
|
14
|
+
try {
|
|
15
|
+
responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/repositories', {
|
|
16
|
+
q,
|
|
17
|
+
page,
|
|
18
|
+
per_page,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
}
|
|
23
|
+
const results = responseData.items.map((item) => ({
|
|
24
|
+
name: item.name,
|
|
25
|
+
value: item.name,
|
|
26
|
+
url: item.html_url,
|
|
27
|
+
}));
|
|
28
|
+
const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
|
|
29
|
+
return { results, paginationToken: nextPaginationToken };
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=getRepositories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRepositories.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getRepositories.ts"],"names":[],"mappings":";;AAiBA,0CAgCC;AA5CD,mDAAuD;AAYhD,KAAK,UAAU,eAAe,CAEpC,MAAe,EACf,eAAwB;IAExB,MAAM,KAAK,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IACrB,MAAM,CAAC,GAAG,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,SAAS,KAAK,YAAY,CAAC;IACpD,IAAI,YAAY,GAA6B;QAC5C,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE;YAC/E,CAAC;YACD,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAA0B,EAAE,EAAE,CAAC,CAAC;QAC/F,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,IAAI;QAChB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUsers = getUsers;
|
|
4
|
+
const transport_1 = require("../shared/transport");
|
|
5
|
+
async function getUsers(filter, paginationToken) {
|
|
6
|
+
const page = paginationToken ? +paginationToken : 1;
|
|
7
|
+
const per_page = 100;
|
|
8
|
+
let responseData = {
|
|
9
|
+
items: [],
|
|
10
|
+
total_count: 0,
|
|
11
|
+
};
|
|
12
|
+
try {
|
|
13
|
+
responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/users', {
|
|
14
|
+
q: filter,
|
|
15
|
+
page,
|
|
16
|
+
per_page,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
}
|
|
21
|
+
const results = responseData.items.map((item) => ({
|
|
22
|
+
name: item.login,
|
|
23
|
+
value: item.login,
|
|
24
|
+
url: item.html_url,
|
|
25
|
+
}));
|
|
26
|
+
const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
|
|
27
|
+
return { results, paginationToken: nextPaginationToken };
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=getUsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getUsers.ts"],"names":[],"mappings":";;AAiBA,4BA+BC;AA3CD,mDAAuD;AAYhD,KAAK,UAAU,QAAQ,CAE7B,MAAe,EACf,eAAwB;IAExB,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IAErB,IAAI,YAAY,GAAuB;QACtC,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,EAAE;YACxE,CAAC,EAAE,MAAM;YACT,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAoB,EAAE,EAAE,CAAC,CAAC;QACzF,IAAI,EAAE,IAAI,CAAC,KAAK;QAChB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueCreateDescription = void 0;
|
|
4
|
+
const showOnlyForIssueCreate = {
|
|
5
|
+
operation: ['create'],
|
|
6
|
+
resource: ['issue'],
|
|
7
|
+
};
|
|
8
|
+
exports.issueCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Title',
|
|
11
|
+
name: 'title',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForIssueCreate,
|
|
17
|
+
},
|
|
18
|
+
description: 'The title of the issue',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'body',
|
|
22
|
+
property: 'title',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Body',
|
|
28
|
+
name: 'body',
|
|
29
|
+
type: 'string',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
rows: 5,
|
|
32
|
+
},
|
|
33
|
+
default: '',
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: showOnlyForIssueCreate,
|
|
36
|
+
},
|
|
37
|
+
description: 'The body of the issue',
|
|
38
|
+
routing: {
|
|
39
|
+
send: {
|
|
40
|
+
type: 'body',
|
|
41
|
+
property: 'body',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Labels',
|
|
47
|
+
name: 'labels',
|
|
48
|
+
type: 'collection',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
multipleValues: true,
|
|
51
|
+
multipleValueButtonText: 'Add Label',
|
|
52
|
+
},
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: showOnlyForIssueCreate,
|
|
55
|
+
},
|
|
56
|
+
default: { label: '' },
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Label',
|
|
60
|
+
name: 'label',
|
|
61
|
+
type: 'string',
|
|
62
|
+
default: '',
|
|
63
|
+
description: 'Label to add to issue',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
routing: {
|
|
67
|
+
send: {
|
|
68
|
+
type: 'body',
|
|
69
|
+
property: 'labels',
|
|
70
|
+
value: '={{$value.map((data) => data.label)}}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;aACjB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;YACpB,uBAAuB,EAAE,WAAW;SACpC;QACD,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uBAAuB;aACpC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,uCAAuC;aAC9C;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueGetDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const showOnlyForIssueGet = {
|
|
6
|
+
operation: ['get'],
|
|
7
|
+
resource: ['issue'],
|
|
8
|
+
};
|
|
9
|
+
exports.issueGetDescription = [
|
|
10
|
+
{
|
|
11
|
+
...descriptions_1.issueSelect,
|
|
12
|
+
displayOptions: { show: showOnlyForIssueGet },
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/get.ts"],"names":[],"mappings":";;;AACA,4DAAwD;AAExD,MAAM,mBAAmB,GAAG;IAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,GAAG,0BAAW;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;KAC7C;CACD,CAAC"}
|