@justbrunasso/n8n-nodes-glpi-v2 1.0.0 → 1.0.2
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 +21 -0
- package/dist/credentials/GithubIssuesApi.credentials.js +37 -0
- package/dist/credentials/GithubIssuesApi.credentials.js.map +1 -0
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +54 -0
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +1 -0
- package/dist/nodes/Example/Example.node.js +61 -0
- package/dist/nodes/Example/Example.node.js.map +1 -0
- package/dist/nodes/GithubIssues/GithubIssues.node.js +101 -0
- package/dist/nodes/GithubIssues/GithubIssues.node.js.map +1 -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.js +31 -0
- package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +1 -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.js +75 -0
- package/dist/nodes/GithubIssues/resources/issue/create.js.map +1 -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.js +125 -0
- package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +1 -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.js +66 -0
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +1 -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.js +151 -0
- package/dist/nodes/GithubIssues/shared/descriptions.js.map +1 -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.js +17 -0
- package/dist/nodes/GithubIssues/shared/utils.js.map +1 -0
- package/dist/nodes/GlpiV2/GlpiV2.credentials.js +78 -0
- package/dist/nodes/GlpiV2/GlpiV2.credentials.js.map +1 -0
- package/dist/nodes/GlpiV2/GlpiV2.node.js +55 -0
- package/dist/nodes/GlpiV2/GlpiV2.node.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/create.js +45 -0
- package/dist/nodes/GlpiV2/resources/computer/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/delete.js +39 -0
- package/dist/nodes/GlpiV2/resources/computer/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/get.js +39 -0
- package/dist/nodes/GlpiV2/resources/computer/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/getAll.js +63 -0
- package/dist/nodes/GlpiV2/resources/computer/getAll.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/index.js +62 -0
- package/dist/nodes/GlpiV2/resources/computer/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/computer/update.js +57 -0
- package/dist/nodes/GlpiV2/resources/computer/update.js.map +1 -0
- package/package.json +6 -1
- package/.github/workflows/ci.yml +0 -28
- package/.prettierrc.js +0 -51
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -12
- package/CHANGELOG.md +0 -0
- package/CODE_OF_CONDUCT.md +0 -76
- package/README_TEMPLATE.md +0 -48
- package/api_docs.json +0 -1
- package/credentials/GithubIssuesApi.credentials.ts +0 -45
- package/credentials/GithubIssuesOAuth2Api.credentials.ts +0 -54
- package/eslint.config.mjs +0 -3
- package/icons/github.dark.svg +0 -3
- package/icons/github.svg +0 -3
- package/nodes/Example/Example.node.json +0 -18
- package/nodes/Example/Example.node.ts +0 -78
- package/nodes/Example/example.dark.svg +0 -13
- package/nodes/Example/example.svg +0 -13
- package/nodes/GithubIssues/GithubIssues.node.json +0 -18
- package/nodes/GithubIssues/GithubIssues.node.ts +0 -96
- package/nodes/GithubIssues/listSearch/getIssues.ts +0 -49
- package/nodes/GithubIssues/listSearch/getRepositories.ts +0 -50
- package/nodes/GithubIssues/listSearch/getUsers.ts +0 -49
- package/nodes/GithubIssues/resources/issue/create.ts +0 -74
- package/nodes/GithubIssues/resources/issue/get.ts +0 -14
- package/nodes/GithubIssues/resources/issue/getAll.ts +0 -124
- package/nodes/GithubIssues/resources/issue/index.ts +0 -75
- package/nodes/GithubIssues/resources/issueComment/getAll.ts +0 -65
- package/nodes/GithubIssues/resources/issueComment/index.ts +0 -47
- package/nodes/GithubIssues/shared/descriptions.ts +0 -151
- package/nodes/GithubIssues/shared/transport.ts +0 -32
- package/nodes/GithubIssues/shared/utils.ts +0 -14
- package/nodes/GlpiV2/GlpiV2.credentials.ts +0 -76
- package/nodes/GlpiV2/GlpiV2.node.ts +0 -50
- package/nodes/GlpiV2/GlpiV2.svg +0 -5
- package/nodes/GlpiV2/resources/computer/create.ts +0 -43
- package/nodes/GlpiV2/resources/computer/delete.ts +0 -37
- package/nodes/GlpiV2/resources/computer/get.ts +0 -37
- package/nodes/GlpiV2/resources/computer/getAll.ts +0 -61
- package/nodes/GlpiV2/resources/computer/index.ts +0 -61
- package/nodes/GlpiV2/resources/computer/update.ts +0 -55
- package/tsconfig.json +0 -16
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const getAll_1 = require("./getAll");
|
|
6
|
+
const get_1 = require("./get");
|
|
7
|
+
const create_1 = require("./create");
|
|
8
|
+
const showOnlyForIssues = {
|
|
9
|
+
resource: ['issue'],
|
|
10
|
+
};
|
|
11
|
+
exports.issueDescription = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Operation',
|
|
14
|
+
name: 'operation',
|
|
15
|
+
type: 'options',
|
|
16
|
+
noDataExpression: true,
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlyForIssues,
|
|
19
|
+
},
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Get Many',
|
|
23
|
+
value: 'getAll',
|
|
24
|
+
action: 'Get issues in a repository',
|
|
25
|
+
description: 'Get many issues in a repository',
|
|
26
|
+
routing: {
|
|
27
|
+
request: {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get',
|
|
35
|
+
value: 'get',
|
|
36
|
+
action: 'Get an issue',
|
|
37
|
+
description: 'Get the data of a single issue',
|
|
38
|
+
routing: {
|
|
39
|
+
request: {
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$parameter.issue}}',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Create',
|
|
47
|
+
value: 'create',
|
|
48
|
+
action: 'Create a new issue',
|
|
49
|
+
description: 'Create a new issue',
|
|
50
|
+
routing: {
|
|
51
|
+
request: {
|
|
52
|
+
method: 'POST',
|
|
53
|
+
url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: 'getAll',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
...descriptions_1.repoOwnerSelect,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: showOnlyForIssues,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
...descriptions_1.repoNameSelect,
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: showOnlyForIssues,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
...getAll_1.issueGetManyDescription,
|
|
73
|
+
...get_1.issueGetDescription,
|
|
74
|
+
...create_1.issueCreateDescription,
|
|
75
|
+
];
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAAmD;AACnD,+BAA4C;AAC5C,qCAAkD;AAElD,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,gCAAgC;gBAC7C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,oFAAoF;qBACzF;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD,GAAG,gCAAuB;IAC1B,GAAG,yBAAmB;IACtB,GAAG,+BAAsB;CACzB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueCommentGetManyDescription = void 0;
|
|
4
|
+
const utils_1 = require("../../shared/utils");
|
|
5
|
+
const showOnlyForIssueCommentGetMany = {
|
|
6
|
+
operation: ['getAll'],
|
|
7
|
+
resource: ['issueComment'],
|
|
8
|
+
};
|
|
9
|
+
exports.issueCommentGetManyDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Limit',
|
|
12
|
+
name: 'limit',
|
|
13
|
+
type: 'number',
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: {
|
|
16
|
+
...showOnlyForIssueCommentGetMany,
|
|
17
|
+
returnAll: [false],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
typeOptions: {
|
|
21
|
+
minValue: 1,
|
|
22
|
+
maxValue: 100,
|
|
23
|
+
},
|
|
24
|
+
default: 50,
|
|
25
|
+
routing: {
|
|
26
|
+
send: {
|
|
27
|
+
type: 'query',
|
|
28
|
+
property: 'per_page',
|
|
29
|
+
},
|
|
30
|
+
output: {
|
|
31
|
+
maxResults: '={{$value}}',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
description: 'Max number of results to return',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Return All',
|
|
38
|
+
name: 'returnAll',
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: showOnlyForIssueCommentGetMany,
|
|
42
|
+
},
|
|
43
|
+
default: false,
|
|
44
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
45
|
+
routing: {
|
|
46
|
+
send: {
|
|
47
|
+
paginate: '={{ $value }}',
|
|
48
|
+
type: 'query',
|
|
49
|
+
property: 'per_page',
|
|
50
|
+
value: '100',
|
|
51
|
+
},
|
|
52
|
+
operations: {
|
|
53
|
+
pagination: {
|
|
54
|
+
type: 'generic',
|
|
55
|
+
properties: {
|
|
56
|
+
continue: `={{ !!(${utils_1.parseLinkHeader.toString()})($response.headers?.link).next }}`,
|
|
57
|
+
request: {
|
|
58
|
+
url: `={{ (${utils_1.parseLinkHeader.toString()})($response.headers?.link)?.next ?? $request.url }}`,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/getAll.ts"],"names":[],"mappings":";;;AACA,8CAAqD;AAErD,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,8BAA8B;gBACjC,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,UAAU;aACpB;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,8BAA8B;SACpC;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,KAAK;aACZ;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE;wBACX,QAAQ,EAAE,UAAU,uBAAe,CAAC,QAAQ,EAAE,oCAAoC;wBAClF,OAAO,EAAE;4BACR,GAAG,EAAE,QAAQ,uBAAe,CAAC,QAAQ,EAAE,qDAAqD;yBAC5F;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueCommentDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const getAll_1 = require("./getAll");
|
|
6
|
+
const showOnlyForIssueComments = {
|
|
7
|
+
resource: ['issueComment'],
|
|
8
|
+
};
|
|
9
|
+
exports.issueCommentDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Operation',
|
|
12
|
+
name: 'operation',
|
|
13
|
+
type: 'options',
|
|
14
|
+
noDataExpression: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForIssueComments,
|
|
17
|
+
},
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Get Many',
|
|
21
|
+
value: 'getAll',
|
|
22
|
+
action: 'Get issue comments',
|
|
23
|
+
description: 'Get issue comments',
|
|
24
|
+
routing: {
|
|
25
|
+
request: {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/comments',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
default: 'getAll',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
...descriptions_1.repoOwnerSelect,
|
|
36
|
+
displayOptions: {
|
|
37
|
+
show: showOnlyForIssueComments,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
...descriptions_1.repoNameSelect,
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: showOnlyForIssueComments,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
...getAll_1.issueCommentGetManyDescription,
|
|
47
|
+
];
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAA0D;AAE1D,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,wEAAwE;qBAC7E;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD,GAAG,uCAA8B;CACjC,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issueSelect = exports.repoNameSelect = exports.repoOwnerSelect = void 0;
|
|
4
|
+
exports.repoOwnerSelect = {
|
|
5
|
+
displayName: 'Repository Owner',
|
|
6
|
+
name: 'owner',
|
|
7
|
+
type: 'resourceLocator',
|
|
8
|
+
default: { mode: 'list', value: '' },
|
|
9
|
+
required: true,
|
|
10
|
+
modes: [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Repository Owner',
|
|
13
|
+
name: 'list',
|
|
14
|
+
type: 'list',
|
|
15
|
+
placeholder: 'Select an owner...',
|
|
16
|
+
typeOptions: {
|
|
17
|
+
searchListMethod: 'getUsers',
|
|
18
|
+
searchable: true,
|
|
19
|
+
searchFilterRequired: false,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Link',
|
|
24
|
+
name: 'url',
|
|
25
|
+
type: 'string',
|
|
26
|
+
placeholder: 'e.g. https://github.com/n8n-io',
|
|
27
|
+
extractValue: {
|
|
28
|
+
type: 'regex',
|
|
29
|
+
regex: 'https:\\/\\/github.com\\/([-_0-9a-zA-Z]+)',
|
|
30
|
+
},
|
|
31
|
+
validation: [
|
|
32
|
+
{
|
|
33
|
+
type: 'regex',
|
|
34
|
+
properties: {
|
|
35
|
+
regex: 'https:\\/\\/github.com\\/([-_0-9a-zA-Z]+)(?:.*)',
|
|
36
|
+
errorMessage: 'Not a valid GitHub URL',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'By Name',
|
|
43
|
+
name: 'name',
|
|
44
|
+
type: 'string',
|
|
45
|
+
placeholder: 'e.g. n8n-io',
|
|
46
|
+
validation: [
|
|
47
|
+
{
|
|
48
|
+
type: 'regex',
|
|
49
|
+
properties: {
|
|
50
|
+
regex: '[-_a-zA-Z0-9]+',
|
|
51
|
+
errorMessage: 'Not a valid GitHub Owner Name',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
url: '=https://github.com/{{$value}}',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
exports.repoNameSelect = {
|
|
60
|
+
displayName: 'Repository Name',
|
|
61
|
+
name: 'repository',
|
|
62
|
+
type: 'resourceLocator',
|
|
63
|
+
default: {
|
|
64
|
+
mode: 'list',
|
|
65
|
+
value: '',
|
|
66
|
+
},
|
|
67
|
+
required: true,
|
|
68
|
+
modes: [
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Repository Name',
|
|
71
|
+
name: 'list',
|
|
72
|
+
type: 'list',
|
|
73
|
+
placeholder: 'Select an Repository...',
|
|
74
|
+
typeOptions: {
|
|
75
|
+
searchListMethod: 'getRepositories',
|
|
76
|
+
searchable: true,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Link',
|
|
81
|
+
name: 'url',
|
|
82
|
+
type: 'string',
|
|
83
|
+
placeholder: 'e.g. https://github.com/n8n-io/n8n',
|
|
84
|
+
extractValue: {
|
|
85
|
+
type: 'regex',
|
|
86
|
+
regex: 'https:\\/\\/github.com\\/(?:[-_0-9a-zA-Z]+)\\/([-_.0-9a-zA-Z]+)',
|
|
87
|
+
},
|
|
88
|
+
validation: [
|
|
89
|
+
{
|
|
90
|
+
type: 'regex',
|
|
91
|
+
properties: {
|
|
92
|
+
regex: 'https:\\/\\/github.com\\/(?:[-_0-9a-zA-Z]+)\\/([-_.0-9a-zA-Z]+)(?:.*)',
|
|
93
|
+
errorMessage: 'Not a valid GitHub Repository URL',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'By Name',
|
|
100
|
+
name: 'name',
|
|
101
|
+
type: 'string',
|
|
102
|
+
placeholder: 'e.g. n8n',
|
|
103
|
+
validation: [
|
|
104
|
+
{
|
|
105
|
+
type: 'regex',
|
|
106
|
+
properties: {
|
|
107
|
+
regex: '[-_.0-9a-zA-Z]+',
|
|
108
|
+
errorMessage: 'Not a valid GitHub Repository Name',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
url: '=https://github.com/{{$parameter["owner"]}}/{{$value}}',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
displayOptions: {
|
|
116
|
+
hide: {
|
|
117
|
+
resource: ['user', 'organization'],
|
|
118
|
+
operation: ['getRepositories'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
exports.issueSelect = {
|
|
123
|
+
displayName: 'Issue',
|
|
124
|
+
name: 'issue',
|
|
125
|
+
type: 'resourceLocator',
|
|
126
|
+
default: {
|
|
127
|
+
mode: 'list',
|
|
128
|
+
value: '',
|
|
129
|
+
},
|
|
130
|
+
required: true,
|
|
131
|
+
modes: [
|
|
132
|
+
{
|
|
133
|
+
displayName: 'Issue',
|
|
134
|
+
name: 'list',
|
|
135
|
+
type: 'list',
|
|
136
|
+
placeholder: 'Select an Issue...',
|
|
137
|
+
typeOptions: {
|
|
138
|
+
searchListMethod: 'getIssues',
|
|
139
|
+
searchable: true,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'By ID',
|
|
144
|
+
name: 'name',
|
|
145
|
+
type: 'string',
|
|
146
|
+
placeholder: 'e.g. 123',
|
|
147
|
+
url: '=https://github.com/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$value}}',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=descriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/descriptions.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC/C,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE;gBACZ,gBAAgB,EAAE,UAAU;gBAC5B,UAAU,EAAE,IAAI;gBAChB,oBAAoB,EAAE,KAAK;aAC3B;SACD;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,YAAY,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,2CAA2C;aAClD;YACD,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,iDAAiD;wBACxD,YAAY,EAAE,wBAAwB;qBACtC;iBACD;aACD;SACD;QACD;YACC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,aAAa;YAC1B,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,gBAAgB;wBACvB,YAAY,EAAE,+BAA+B;qBAC7C;iBACD;aACD;YACD,GAAG,EAAE,gCAAgC;SACrC;KACD;CACD,CAAC;AAEW,QAAA,cAAc,GAAoB;IAC9C,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACT;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yBAAyB;YACtC,WAAW,EAAE;gBACZ,gBAAgB,EAAE,iBAAiB;gBACnC,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,YAAY,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,iEAAiE;aACxE;YACD,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,uEAAuE;wBAC9E,YAAY,EAAE,mCAAmC;qBACjD;iBACD;aACD;SACD;QACD;YACC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU;YACvB,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,iBAAiB;wBACxB,YAAY,EAAE,oCAAoC;qBAClD;iBACD;aACD;YACD,GAAG,EAAE,wDAAwD;SAC7D;KACD;IACD,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;YAClC,SAAS,EAAE,CAAC,iBAAiB,CAAC;SAC9B;KACD;CACD,CAAC;AAEW,QAAA,WAAW,GAAoB;IAC3C,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACT;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE;gBACZ,gBAAgB,EAAE,WAAW;gBAC7B,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU;YACvB,GAAG,EAAE,sFAAsF;SAC3F;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.githubApiRequest = githubApiRequest;
|
|
4
|
+
async function githubApiRequest(method, resource, qs = {}, body = undefined) {
|
|
5
|
+
const authenticationMethod = this.getNodeParameter('authentication', 0);
|
|
6
|
+
const options = {
|
|
7
|
+
method: method,
|
|
8
|
+
qs,
|
|
9
|
+
body,
|
|
10
|
+
url: `https://api.github.com${resource}`,
|
|
11
|
+
json: true,
|
|
12
|
+
};
|
|
13
|
+
const credentialType = authenticationMethod === 'accessToken' ? 'githubIssuesApi' : 'githubIssuesOAuth2Api';
|
|
14
|
+
return this.helpers.httpRequestWithAuthentication.call(this, credentialType, options);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/transport.ts"],"names":[],"mappings":";;AAUA,4CAqBC;AArBM,KAAK,UAAU,gBAAgB,CAErC,MAA2B,EAC3B,QAAgB,EAChB,KAAkB,EAAE,EACpB,OAAgC,SAAS;IAEzC,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAExE,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,MAAM;QACd,EAAE;QACF,IAAI;QACJ,GAAG,EAAE,yBAAyB,QAAQ,EAAE;QACxC,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,MAAM,cAAc,GACnB,oBAAoB,KAAK,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,uBAAuB,CAAC;IAEtF,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseLinkHeader = parseLinkHeader;
|
|
4
|
+
function parseLinkHeader(header) {
|
|
5
|
+
var _a;
|
|
6
|
+
const links = {};
|
|
7
|
+
for (const part of (_a = header === null || header === void 0 ? void 0 : header.split(',')) !== null && _a !== void 0 ? _a : []) {
|
|
8
|
+
const section = part.trim();
|
|
9
|
+
const match = section.match(/^<([^>]+)>\s*;\s*rel="?([^"]+)"?/);
|
|
10
|
+
if (match) {
|
|
11
|
+
const [, url, rel] = match;
|
|
12
|
+
links[rel] = url;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return links;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/utils.ts"],"names":[],"mappings":";;AAAA,0CAaC;AAbD,SAAgB,eAAe,CAAC,MAAe;;IAC9C,MAAM,KAAK,GAA8B,EAAE,CAAC;IAE5C,KAAK,MAAM,IAAI,IAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,CAAC;QAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAChE,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;YAC3B,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAClB,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlpiV2Api = void 0;
|
|
4
|
+
class GlpiV2Api {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'glpiV2Api';
|
|
7
|
+
this.extends = ['oAuth2Api'];
|
|
8
|
+
this.displayName = 'GLPI v2 API (OAuth2)';
|
|
9
|
+
this.documentationUrl = 'https://atendimento.centrium.com.br/api.php/v2.1/doc';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'GLPI URL',
|
|
13
|
+
name: 'baseUrl',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
placeholder: 'https://seu-glpi.com',
|
|
17
|
+
description: 'URL base do GLPI (sem /api.php).',
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Grant Type',
|
|
22
|
+
name: 'grantType',
|
|
23
|
+
type: 'hidden',
|
|
24
|
+
default: 'password',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Access Token URL',
|
|
28
|
+
name: 'accessTokenUrl',
|
|
29
|
+
type: 'hidden',
|
|
30
|
+
default: '={{$self["baseUrl"].replace(/\\/$/, "")}}/api.php/token',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Auth URL',
|
|
34
|
+
name: 'authUrl',
|
|
35
|
+
type: 'hidden',
|
|
36
|
+
default: '={{$self["baseUrl"]}}/api.php/authorize',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Scope',
|
|
40
|
+
name: 'scope',
|
|
41
|
+
type: 'hidden',
|
|
42
|
+
default: '',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Authentication',
|
|
46
|
+
name: 'authentication',
|
|
47
|
+
type: 'hidden',
|
|
48
|
+
default: 'body',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Username',
|
|
52
|
+
name: 'username',
|
|
53
|
+
type: 'string',
|
|
54
|
+
default: '',
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Password',
|
|
59
|
+
name: 'password',
|
|
60
|
+
type: 'string',
|
|
61
|
+
typeOptions: {
|
|
62
|
+
password: true,
|
|
63
|
+
},
|
|
64
|
+
default: '',
|
|
65
|
+
required: true,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'App Token',
|
|
69
|
+
name: 'appToken',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'App-Token (se necessário)',
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.GlpiV2Api = GlpiV2Api;
|
|
78
|
+
//# sourceMappingURL=GlpiV2.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlpiV2.credentials.js","sourceRoot":"","sources":["../../../nodes/GlpiV2/GlpiV2.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QACnB,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QACxB,gBAAW,GAAG,sBAAsB,CAAC;QACrC,qBAAgB,GAAG,sDAAsD,CAAC;QAC1E,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;gBACnC,WAAW,EAAE,kCAAkC;gBAC/C,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;aACnB;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,yDAAyD;aAClE;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,yCAAyC;aAClD;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;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;aACd;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2BAA2B;aACxC;SACD,CAAC;IACH,CAAC;CAAA;AAtED,8BAsEC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlpiV2 = void 0;
|
|
4
|
+
const computer_1 = require("./resources/computer");
|
|
5
|
+
class GlpiV2 {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'GLPI v2',
|
|
9
|
+
name: 'glpiV2',
|
|
10
|
+
icon: 'file:GlpiV2.svg',
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
14
|
+
description: 'Interage com a API GLPI v2 (Declarativo)',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'GLPI v2',
|
|
17
|
+
},
|
|
18
|
+
inputs: ['main'],
|
|
19
|
+
outputs: ['main'],
|
|
20
|
+
credentials: [
|
|
21
|
+
{
|
|
22
|
+
name: 'glpiV2Api',
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
requestDefaults: {
|
|
27
|
+
baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}/api.php/v2.1',
|
|
28
|
+
headers: {
|
|
29
|
+
Accept: 'application/json',
|
|
30
|
+
'Content-Type': 'application/json',
|
|
31
|
+
'App-Token': '={{$credentials.appToken}}',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
properties: [
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Resource',
|
|
37
|
+
name: 'resource',
|
|
38
|
+
type: 'options',
|
|
39
|
+
noDataExpression: true,
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
name: 'Computer',
|
|
43
|
+
value: 'computer',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'computer',
|
|
47
|
+
},
|
|
48
|
+
...computer_1.computerOperations,
|
|
49
|
+
...computer_1.computerFields,
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.GlpiV2 = GlpiV2;
|
|
55
|
+
//# sourceMappingURL=GlpiV2.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlpiV2.node.js","sourceRoot":"","sources":["../../../nodes/GlpiV2/GlpiV2.node.ts"],"names":[],"mappings":";;;AACA,mDAA0E;AAE1E,MAAa,MAAM;IAAnB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,4DAA4D;gBACrE,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;oBAClC,WAAW,EAAE,4BAA4B;iBACzC;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,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;qBACD;oBACD,OAAO,EAAE,UAAU;iBACnB;gBACD,GAAG,6BAAkB;gBACrB,GAAG,yBAAc;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AA9CD,wBA8CC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.computerCreate = void 0;
|
|
4
|
+
exports.computerCreate = {
|
|
5
|
+
routing: {
|
|
6
|
+
request: {
|
|
7
|
+
method: 'POST',
|
|
8
|
+
url: '/Computer',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
properties: [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'API Endpoint',
|
|
14
|
+
name: 'noticeCreate',
|
|
15
|
+
type: 'notice',
|
|
16
|
+
default: 'POST /api.php/v2.1/Computer',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: {
|
|
19
|
+
resource: ['computer'],
|
|
20
|
+
operation: ['create'],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Name',
|
|
26
|
+
name: 'name',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
required: true,
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: {
|
|
32
|
+
resource: ['computer'],
|
|
33
|
+
operation: ['create'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
type: 'body',
|
|
39
|
+
property: 'name',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GlpiV2/resources/computer/create.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAG;IAC7B,OAAO,EAAE;QACR,OAAO,EAAE;YACR,MAAM,EAAE,MAAe;YACvB,GAAG,EAAE,WAAW;SAChB;KACD;IACD,UAAU,EAAE;QACX;YACC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,6BAA6B;YACtC,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;oBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;iBACrB;aACD;SACkB;QACpB;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;oBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;iBACrB;aACD;YACD,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,MAAM;iBAChB;aACD;SACkB;KACpB;CACD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.computerDelete = void 0;
|
|
4
|
+
exports.computerDelete = {
|
|
5
|
+
routing: {
|
|
6
|
+
request: {
|
|
7
|
+
method: 'DELETE',
|
|
8
|
+
url: '=/Computer/{{$parameter["id"]}}',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
properties: [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'API Endpoint',
|
|
14
|
+
name: 'noticeDelete',
|
|
15
|
+
type: 'notice',
|
|
16
|
+
default: 'DELETE /api.php/v2.1/Computer/{id}',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: {
|
|
19
|
+
resource: ['computer'],
|
|
20
|
+
operation: ['delete'],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'ID',
|
|
26
|
+
name: 'id',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
required: true,
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: {
|
|
32
|
+
resource: ['computer'],
|
|
33
|
+
operation: ['delete'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/GlpiV2/resources/computer/delete.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAG;IAC7B,OAAO,EAAE;QACR,OAAO,EAAE;YACR,MAAM,EAAE,QAAiB;YACzB,GAAG,EAAE,iCAAiC;SACtC;KACD;IACD,UAAU,EAAE;QACX;YACC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oCAAoC;YAC7C,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;oBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;iBACrB;aACD;SACkB;QACpB;YACC,WAAW,EAAE,IAAI;YACjB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;oBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;iBACrB;aACD;SACkB;KACpB;CACD,CAAC"}
|