n8n-nodes-runrunit 0.2.17 → 0.3.1
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/README.md +46 -57
- package/dist/credentials/RunrunitApi.credentials.d.ts +3 -3
- package/dist/credentials/RunrunitApi.credentials.js +21 -52
- package/dist/credentials/RunrunitApi.credentials.js.map +1 -1
- package/dist/nodes/Runrunit/Runrunit.node.d.ts +4 -0
- package/dist/nodes/Runrunit/Runrunit.node.js +56 -0
- package/dist/nodes/Runrunit/Runrunit.node.js.map +1 -0
- package/dist/nodes/Runrunit/{RunrunitApi.node.json → Runrunit.node.json} +3 -3
- package/dist/nodes/Runrunit/resources/company/getAll.d.ts +2 -0
- package/dist/nodes/Runrunit/resources/company/getAll.js +62 -0
- package/dist/nodes/Runrunit/resources/company/getAll.js.map +1 -0
- package/dist/nodes/Runrunit/resources/company/index.d.ts +2 -0
- package/dist/nodes/Runrunit/resources/company/index.js +35 -0
- package/dist/nodes/Runrunit/resources/company/index.js.map +1 -0
- package/dist/nodes/Runrunit/resources/user/create.d.ts +2 -0
- package/dist/nodes/Runrunit/resources/user/create.js +27 -0
- package/dist/nodes/Runrunit/resources/user/create.js.map +1 -0
- package/dist/nodes/Runrunit/resources/user/get.d.ts +2 -0
- package/dist/nodes/Runrunit/resources/user/get.js +18 -0
- package/dist/nodes/Runrunit/resources/user/get.js.map +1 -0
- package/dist/nodes/Runrunit/resources/user/index.d.ts +2 -0
- package/dist/nodes/Runrunit/resources/user/index.js +61 -0
- package/dist/nodes/Runrunit/resources/user/index.js.map +1 -0
- package/dist/nodes/Runrunit/runrunit.dark.svg +24 -12
- package/dist/nodes/Runrunit/runrunit.svg +24 -12
- package/dist/package.json +10 -21
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +48 -59
- package/LICENSE.md +0 -19
- package/dist/icons/runrunit.dark.svg +0 -13
- package/dist/icons/runrunit.svg +0 -13
- package/dist/nodes/Runrunit/RunrunitApi.node.d.ts +0 -6
- package/dist/nodes/Runrunit/RunrunitApi.node.js +0 -402
- package/dist/nodes/Runrunit/RunrunitApi.node.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/create.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/create.js +0 -71
- package/dist/nodes/Runrunit/resources/Tasks/create.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/delete.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/delete.js +0 -5
- package/dist/nodes/Runrunit/resources/Tasks/delete.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/get.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/get.js +0 -23
- package/dist/nodes/Runrunit/resources/Tasks/get.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/index.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/index.js +0 -111
- package/dist/nodes/Runrunit/resources/Tasks/index.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/options.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/options.js +0 -5
- package/dist/nodes/Runrunit/resources/Tasks/options.js.map +0 -1
- package/dist/nodes/Runrunit/resources/Tasks/update.d.ts +0 -2
- package/dist/nodes/Runrunit/resources/Tasks/update.js +0 -71
- package/dist/nodes/Runrunit/resources/Tasks/update.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,57 +1,46 @@
|
|
|
1
|
-
# n8n-nodes-runrunit
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
## 📁 Estrutura do Projeto
|
|
49
|
-
|
|
50
|
-
- `credentials/RunrunItApi.credentials.ts` — definição das credenciais
|
|
51
|
-
- `nodes/RunrunIt/RunrunItApi.node.ts` — implementação principal do node
|
|
52
|
-
- `nodes/RunrunIt/resources/` — módulos separados por área do Runrun.it
|
|
53
|
-
- `n8n-nodes-glpi-instructions.md` — instruções detalhadas e exemplos
|
|
54
|
-
|
|
55
|
-
## 📜 Licença
|
|
56
|
-
|
|
57
|
-
MIT — veja o arquivo [LICENSE.md](LICENSE.md)
|
|
1
|
+
# n8n-nodes-runrunit
|
|
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._
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare class RunrunitApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
|
-
icon: Icon;
|
|
6
5
|
documentationUrl: string;
|
|
7
|
-
test: ICredentialTestRequest;
|
|
8
6
|
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
9
|
}
|
|
@@ -4,72 +4,41 @@ exports.RunrunitApi = void 0;
|
|
|
4
4
|
class RunrunitApi {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'runrunitApi';
|
|
7
|
-
this.displayName = '
|
|
8
|
-
this.
|
|
9
|
-
this.documentationUrl = 'https://atendimento.centrium.com.br/api.php/v2.1/doc.JSON';
|
|
10
|
-
this.test = {
|
|
11
|
-
request: {
|
|
12
|
-
url: '={{$credentials.host.replace(/\\/+$/, "") + "/api.php"}}/token',
|
|
13
|
-
method: 'POST',
|
|
14
|
-
headers: {
|
|
15
|
-
'Content-Type': 'application/json',
|
|
16
|
-
},
|
|
17
|
-
body: '={"grant_type":"password","client_id":"' + "{{$credentials.clientId}}" + '","client_secret":"' + "{{$credentials.clientSecret}}" + '","username":"' + "{{$credentials.username}}" + '","password":"' + "{{$credentials.password}}" + '","scope":"' + "{{$credentials.scope}}" + '"}',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
7
|
+
this.displayName = 'Runrunit API';
|
|
8
|
+
this.documentationUrl = 'https://github.com/org/-runrunit?tab=readme-ov-file#credentials';
|
|
20
9
|
this.properties = [
|
|
21
10
|
{
|
|
22
|
-
displayName: '
|
|
23
|
-
name: '
|
|
24
|
-
type: 'string',
|
|
25
|
-
default: '',
|
|
26
|
-
placeholder: 'https://runrun.example.com',
|
|
27
|
-
required: true,
|
|
28
|
-
description: 'URL base do Runrun.it (sem /api.php - será adicionado automaticamente)',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
displayName: 'Scope',
|
|
32
|
-
name: 'scope',
|
|
33
|
-
type: 'string',
|
|
34
|
-
default: 'api graphql',
|
|
35
|
-
required: true,
|
|
36
|
-
description: 'Escopos de acesso para o token OAuth2 (ex: api graphql)',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
displayName: 'Client ID',
|
|
40
|
-
name: 'clientId',
|
|
41
|
-
type: 'string',
|
|
42
|
-
required: true,
|
|
43
|
-
default: '',
|
|
44
|
-
description: 'Client ID gerado no Runrun.it (Setup > OAuth Clients)',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
displayName: 'Client Secret',
|
|
48
|
-
name: 'clientSecret',
|
|
11
|
+
displayName: 'App Key',
|
|
12
|
+
name: 'appKey',
|
|
49
13
|
type: 'string',
|
|
50
14
|
typeOptions: { password: true },
|
|
51
15
|
required: true,
|
|
52
16
|
default: '',
|
|
53
|
-
description: 'Client Secret gerado no Runrun.it',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
displayName: 'Username',
|
|
57
|
-
name: 'username',
|
|
58
|
-
type: 'string',
|
|
59
|
-
required: true,
|
|
60
|
-
default: '',
|
|
61
|
-
description: 'Usuário do Runrun.it a ser autenticado',
|
|
62
17
|
},
|
|
63
18
|
{
|
|
64
|
-
displayName: '
|
|
65
|
-
name: '
|
|
19
|
+
displayName: 'User Token',
|
|
20
|
+
name: 'userToken',
|
|
66
21
|
type: 'string',
|
|
67
22
|
typeOptions: { password: true },
|
|
68
23
|
required: true,
|
|
69
24
|
default: '',
|
|
70
|
-
description: 'Senha do usuário do Runrun.it',
|
|
71
25
|
},
|
|
72
26
|
];
|
|
27
|
+
this.authenticate = {
|
|
28
|
+
type: 'generic',
|
|
29
|
+
properties: {
|
|
30
|
+
headers: {
|
|
31
|
+
'App-Key': '={{$credentials.appKey}}',
|
|
32
|
+
'User-Token': '={{$credentials.userToken}}',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
this.test = {
|
|
37
|
+
request: {
|
|
38
|
+
baseURL: 'https://runrun.it/api/v1.0',
|
|
39
|
+
url: '/users',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
73
42
|
}
|
|
74
43
|
}
|
|
75
44
|
exports.RunrunitApi = RunrunitApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunrunitApi.credentials.js","sourceRoot":"","sources":["../../credentials/RunrunitApi.credentials.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RunrunitApi.credentials.js","sourceRoot":"","sources":["../../credentials/RunrunitApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAG7B,qBAAgB,GAAG,iEAAiE,CAAC;QAErF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,SAAS,EAAE,0BAA0B;oBACrC,YAAY,EAAE,6BAA6B;iBAC3C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,QAAQ;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA3CD,kCA2CC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Runrunit = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const user_1 = require("./resources/user");
|
|
6
|
+
const company_1 = require("./resources/company");
|
|
7
|
+
class Runrunit {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.description = {
|
|
10
|
+
displayName: 'Runrunit',
|
|
11
|
+
name: 'runrunit',
|
|
12
|
+
icon: { light: 'file:runrunit.svg', dark: 'file:runrunit.dark.svg' },
|
|
13
|
+
group: ['transform'],
|
|
14
|
+
version: 1,
|
|
15
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
16
|
+
description: 'Interact with the Runrunit API',
|
|
17
|
+
defaults: {
|
|
18
|
+
name: 'Runrunit',
|
|
19
|
+
},
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
22
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
23
|
+
credentials: [{ name: 'runrunitApi', required: true }],
|
|
24
|
+
requestDefaults: {
|
|
25
|
+
baseURL: 'https://runrun.it/api/v1.0',
|
|
26
|
+
headers: {
|
|
27
|
+
Accept: 'application/json',
|
|
28
|
+
'Content-Type': 'application/json',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Resource',
|
|
34
|
+
name: 'resource',
|
|
35
|
+
type: 'options',
|
|
36
|
+
noDataExpression: true,
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'User',
|
|
40
|
+
value: 'user',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Company',
|
|
44
|
+
value: 'company',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'user',
|
|
48
|
+
},
|
|
49
|
+
...user_1.userDescription,
|
|
50
|
+
...company_1.companyDescription,
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Runrunit = Runrunit;
|
|
56
|
+
//# sourceMappingURL=Runrunit.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Runrunit.node.js","sourceRoot":"","sources":["../../../nodes/Runrunit/Runrunit.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,2CAAmD;AACnD,iDAAyD;AAEzD,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACpE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACtD,eAAe,EAAE;gBAChB,OAAO,EAAE,4BAA4B;gBACrC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;qBACD;oBACD,OAAO,EAAE,MAAM;iBACf;gBACD,GAAG,sBAAe;gBAClB,GAAG,4BAAkB;aACrB;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,4BA6CC"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"node": "n8n-nodes-runrunit",
|
|
3
3
|
"nodeVersion": "1.0",
|
|
4
4
|
"codexVersion": "1.0",
|
|
5
|
-
"categories": ["
|
|
5
|
+
"categories": ["Development", "Developer Tools"],
|
|
6
6
|
"resources": {
|
|
7
7
|
"credentialDocumentation": [
|
|
8
8
|
{
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"primaryDocumentation": [
|
|
13
13
|
{
|
|
14
|
-
"url": "https://github.com/
|
|
14
|
+
"url": "https://github.com/org/repo?tab=readme-ov-file"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
17
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.companyGetManyDescription = void 0;
|
|
4
|
+
const showOnlyForCompanyGetMany = {
|
|
5
|
+
operation: ['getAll'],
|
|
6
|
+
resource: ['company'],
|
|
7
|
+
};
|
|
8
|
+
exports.companyGetManyDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Limit',
|
|
11
|
+
name: 'limit',
|
|
12
|
+
type: 'number',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
...showOnlyForCompanyGetMany,
|
|
16
|
+
returnAll: [false],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
typeOptions: {
|
|
20
|
+
minValue: 1,
|
|
21
|
+
maxValue: 100,
|
|
22
|
+
},
|
|
23
|
+
default: 50,
|
|
24
|
+
routing: {
|
|
25
|
+
send: {
|
|
26
|
+
type: 'query',
|
|
27
|
+
property: 'limit',
|
|
28
|
+
},
|
|
29
|
+
output: {
|
|
30
|
+
maxResults: '={{$value}}',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
description: 'Max number of results to return',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Return All',
|
|
37
|
+
name: 'returnAll',
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: showOnlyForCompanyGetMany,
|
|
41
|
+
},
|
|
42
|
+
default: false,
|
|
43
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
44
|
+
routing: {
|
|
45
|
+
send: {
|
|
46
|
+
paginate: '={{ $value }}',
|
|
47
|
+
},
|
|
48
|
+
operations: {
|
|
49
|
+
pagination: {
|
|
50
|
+
type: 'offset',
|
|
51
|
+
properties: {
|
|
52
|
+
limitParameter: 'limit',
|
|
53
|
+
offsetParameter: 'offset',
|
|
54
|
+
pageSize: 100,
|
|
55
|
+
type: 'query',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/company/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,yBAAyB;gBAC5B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;aACzB;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACX,cAAc,EAAE,OAAO;wBACvB,eAAe,EAAE,QAAQ;wBACzB,QAAQ,EAAE,GAAG;wBACb,IAAI,EAAE,OAAO;qBACb;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.companyDescription = void 0;
|
|
4
|
+
const getAll_1 = require("./getAll");
|
|
5
|
+
const showOnlyForCompanies = {
|
|
6
|
+
resource: ['company'],
|
|
7
|
+
};
|
|
8
|
+
exports.companyDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForCompanies,
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get Many',
|
|
20
|
+
value: 'getAll',
|
|
21
|
+
action: 'Get companies',
|
|
22
|
+
description: 'Get companies',
|
|
23
|
+
routing: {
|
|
24
|
+
request: {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/companies',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
default: 'getAll',
|
|
32
|
+
},
|
|
33
|
+
...getAll_1.companyGetManyDescription,
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/company/index.ts"],"names":[],"mappings":";;;AACA,qCAAqD;AAErD,MAAM,oBAAoB,GAAG;IAC5B,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,oBAAoB;SAC1B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,eAAe;gBAC5B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,YAAY;qBACjB;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,kCAAyB;CAC5B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userCreateDescription = void 0;
|
|
4
|
+
const showOnlyForUserCreate = {
|
|
5
|
+
operation: ['create'],
|
|
6
|
+
resource: ['user'],
|
|
7
|
+
};
|
|
8
|
+
exports.userCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Name',
|
|
11
|
+
name: 'name',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForUserCreate,
|
|
17
|
+
},
|
|
18
|
+
description: 'The name of the user',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'body',
|
|
22
|
+
property: 'name',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userGetDescription = void 0;
|
|
4
|
+
const showOnlyForUserGet = {
|
|
5
|
+
operation: ['get'],
|
|
6
|
+
resource: ['user'],
|
|
7
|
+
};
|
|
8
|
+
exports.userGetDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'User ID',
|
|
11
|
+
name: 'userId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
displayOptions: { show: showOnlyForUserGet },
|
|
14
|
+
default: '',
|
|
15
|
+
description: "The user's ID to retrieve",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,kBAAkB,GAAG;IAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5C,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2BAA2B;KACxC;CACD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userDescription = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
const get_1 = require("./get");
|
|
6
|
+
const showOnlyForUsers = {
|
|
7
|
+
resource: ['user'],
|
|
8
|
+
};
|
|
9
|
+
exports.userDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Operation',
|
|
12
|
+
name: 'operation',
|
|
13
|
+
type: 'options',
|
|
14
|
+
noDataExpression: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForUsers,
|
|
17
|
+
},
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Get Many',
|
|
21
|
+
value: 'getAll',
|
|
22
|
+
action: 'Get users',
|
|
23
|
+
description: 'Get many users',
|
|
24
|
+
routing: {
|
|
25
|
+
request: {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '/users',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Get',
|
|
33
|
+
value: 'get',
|
|
34
|
+
action: 'Get a user',
|
|
35
|
+
description: 'Get the data of a single user',
|
|
36
|
+
routing: {
|
|
37
|
+
request: {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: '=/users/{{$parameter.userId}}',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Create',
|
|
45
|
+
value: 'create',
|
|
46
|
+
action: 'Create a new user',
|
|
47
|
+
description: 'Create a new user',
|
|
48
|
+
routing: {
|
|
49
|
+
request: {
|
|
50
|
+
method: 'POST',
|
|
51
|
+
url: '/users',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
default: 'getAll',
|
|
57
|
+
},
|
|
58
|
+
...get_1.userGetDescription,
|
|
59
|
+
...create_1.userCreateDescription,
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/index.ts"],"names":[],"mappings":";;;AACA,qCAAiD;AACjD,+BAA2C;AAE3C,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,WAAW;gBACnB,WAAW,EAAE,gBAAgB;gBAC7B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+BAA+B;qBACpC;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,wBAAkB;IACrB,GAAG,8BAAqB;CACxB,CAAC"}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
4
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="255.000000pt" height="255.000000pt" viewBox="0 0 255.000000 255.000000"
|
|
6
|
+
preserveAspectRatio="xMidYMid meet">
|
|
7
|
+
|
|
8
|
+
<g transform="translate(0.000000,255.000000) scale(0.100000,-0.100000)"
|
|
9
|
+
fill="#000000" stroke="none">
|
|
10
|
+
<path d="M0 1275 l0 -1275 1275 0 1275 0 0 1275 0 1275 -1275 0 -1275 0 0
|
|
11
|
+
-1275z m1595 870 c177 -52 297 -139 366 -267 33 -61 34 -67 34 -174 0 -107 -1
|
|
12
|
+
-112 -38 -187 -72 -145 -212 -251 -396 -297 l-44 -11 7 -63 c8 -81 40 -195 73
|
|
13
|
+
-259 89 -178 207 -214 331 -103 49 45 81 47 116 6 71 -86 28 -227 -95 -309
|
|
14
|
+
-79 -53 -165 -75 -271 -69 -97 5 -146 26 -219 95 -121 113 -210 322 -254 598
|
|
15
|
+
-9 55 -17 101 -19 102 -6 6 -48 -230 -62 -351 -11 -86 -14 -166 -10 -232 l6
|
|
16
|
+
-101 -41 -38 c-58 -52 -122 -79 -191 -79 -47 -1 -61 3 -83 24 -76 70 -74 200
|
|
17
|
+
10 555 99 419 131 590 142 769 6 101 5 109 -11 103 -41 -16 -129 -83 -174
|
|
18
|
+
-132 -90 -98 -109 -175 -72 -284 20 -59 20 -64 4 -82 -47 -52 -163 -75 -224
|
|
19
|
+
-44 -114 59 -140 254 -57 425 43 88 166 212 272 274 198 115 419 168 675 161
|
|
20
|
+
109 -3 152 -9 225 -30z"/>
|
|
21
|
+
<path d="M1297 1818 c-7 -108 -31 -265 -61 -390 l-13 -58 46 0 c90 0 220 47
|
|
22
|
+
288 104 16 13 42 48 58 78 24 44 29 65 30 123 0 147 -90 225 -291 250 l-51 6
|
|
23
|
+
-6 -113z"/>
|
|
24
|
+
</g>
|
|
13
25
|
</svg>
|