@weslink/n8n-nodes-kibi-connect 0.1.2 → 1.0.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 +250 -18
- package/dist/nodes/KibiConnect/KibiConnect.node.d.ts +6 -0
- package/dist/nodes/KibiConnect/KibiConnect.node.js +89 -1
- package/dist/nodes/KibiConnect/KibiConnect.node.js.map +1 -1
- package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.d.ts +2 -0
- package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.js +13 -0
- package/dist/nodes/KibiConnect/loadOptions/getAbsenceTypes.js.map +1 -0
- package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.d.ts +2 -0
- package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.js +13 -0
- package/dist/nodes/KibiConnect/loadOptions/getGroupTypes.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/callLink/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/callLink/index.js +279 -0
- package/dist/nodes/KibiConnect/resources/callLink/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/document/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/document/index.js +238 -0
- package/dist/nodes/KibiConnect/resources/document/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/file/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/file/index.js +616 -0
- package/dist/nodes/KibiConnect/resources/file/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/file/shared.d.ts +3 -0
- package/dist/nodes/KibiConnect/resources/file/shared.js +87 -0
- package/dist/nodes/KibiConnect/resources/file/shared.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/folder/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/folder/index.js +278 -0
- package/dist/nodes/KibiConnect/resources/folder/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/group/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/group/index.js +227 -0
- package/dist/nodes/KibiConnect/resources/group/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/media/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/media/index.js +56 -0
- package/dist/nodes/KibiConnect/resources/media/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/search/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/search/index.js +65 -0
- package/dist/nodes/KibiConnect/resources/search/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/shareLink/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/shareLink/index.js +228 -0
- package/dist/nodes/KibiConnect/resources/shareLink/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/sharedWiki/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/sharedWiki/index.js +66 -0
- package/dist/nodes/KibiConnect/resources/sharedWiki/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/survey/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/survey/index.js +49 -0
- package/dist/nodes/KibiConnect/resources/survey/index.js.map +1 -0
- package/dist/nodes/KibiConnect/resources/timeTracking/index.d.ts +2 -0
- package/dist/nodes/KibiConnect/resources/timeTracking/index.js +642 -0
- package/dist/nodes/KibiConnect/resources/timeTracking/index.js.map +1 -0
- package/dist/nodes/KibiConnect/shared/binary.d.ts +4 -0
- package/dist/nodes/KibiConnect/shared/binary.js +57 -0
- package/dist/nodes/KibiConnect/shared/binary.js.map +1 -0
- package/dist/nodes/KibiConnect/shared/descriptions.d.ts +3 -0
- package/dist/nodes/KibiConnect/shared/descriptions.js +17 -16
- package/dist/nodes/KibiConnect/shared/descriptions.js.map +1 -1
- package/dist/nodes/KibiConnect/shared/fields.js +3 -3
- package/dist/nodes/KibiConnect/shared/fields.js.map +1 -1
- package/dist/nodes/KibiConnect/shared/routing.d.ts +2 -0
- package/dist/nodes/KibiConnect/shared/routing.js +47 -0
- package/dist/nodes/KibiConnect/shared/routing.js.map +1 -0
- package/dist/nodes/KibiConnect/shared/transport.d.ts +8 -1
- package/dist/nodes/KibiConnect/shared/transport.js +72 -14
- package/dist/nodes/KibiConnect/shared/transport.js.map +1 -1
- package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.d.ts +18 -0
- package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.js +237 -0
- package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.js.map +1 -0
- package/dist/nodes/KibiConnectTrigger/KibiConnectTrigger.node.json +18 -0
- package/dist/nodes/KibiConnectTrigger/filter.d.ts +8 -0
- package/dist/nodes/KibiConnectTrigger/filter.js +15 -0
- package/dist/nodes/KibiConnectTrigger/filter.js.map +1 -0
- package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.d.ts +4 -0
- package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.js +42 -0
- package/dist/nodes/KibiConnectTrigger/loadOptions/getWebhookEvents.js.map +1 -0
- package/dist/nodes/KibiConnectTrigger/registration.d.ts +4 -0
- package/dist/nodes/KibiConnectTrigger/registration.js +31 -0
- package/dist/nodes/KibiConnectTrigger/registration.js.map +1 -0
- package/dist/nodes/KibiConnectTrigger/verify.d.ts +1 -0
- package/dist/nodes/KibiConnectTrigger/verify.js +27 -0
- package/dist/nodes/KibiConnectTrigger/verify.js.map +1 -0
- package/dist/package.json +6 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mediaDescription = void 0;
|
|
4
|
+
const binary_1 = require("../../shared/binary");
|
|
5
|
+
const R = 'media';
|
|
6
|
+
const show = { resource: [R] };
|
|
7
|
+
exports.mediaDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: { show },
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Upload',
|
|
17
|
+
value: 'upload',
|
|
18
|
+
action: 'Upload a media file',
|
|
19
|
+
description: 'Upload an image or file to the media library and get back its public URL, ready to reference from a wiki page',
|
|
20
|
+
routing: {
|
|
21
|
+
request: { method: 'POST', url: '/media/upload' },
|
|
22
|
+
send: { preSend: [binary_1.uploadBinary] },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
default: 'upload',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'This is the way to get an image into a wiki page written through the API: upload it here first, then reference the returned URL from the page content. Files for the document management system go through the Document resource instead.',
|
|
30
|
+
name: 'usageNotice',
|
|
31
|
+
type: 'notice',
|
|
32
|
+
default: '',
|
|
33
|
+
displayOptions: { show: { ...show, operation: ['upload'] } },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Input Binary Field',
|
|
37
|
+
name: 'binaryPropertyName',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: true,
|
|
40
|
+
default: 'data',
|
|
41
|
+
hint: 'The name of the input binary field containing the file to upload',
|
|
42
|
+
description: 'Which binary property of the incoming item holds the file. Up to 10 MB.',
|
|
43
|
+
displayOptions: { show: { ...show, operation: ['upload'] } },
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Wiki Page ID',
|
|
47
|
+
name: 'wikiPageId',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: '',
|
|
50
|
+
placeholder: '01J8ZP9K7QW3X2YB5M4N6R8TVC',
|
|
51
|
+
description: 'Place the file in the media folder of this wiki page. Leave empty to upload it to the general library.',
|
|
52
|
+
displayOptions: { show: { ...show, operation: ['upload'] } },
|
|
53
|
+
routing: { request: { body: { wiki_page_id: '={{ $value || undefined }}' } } },
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/media/index.ts"],"names":[],"mappings":";;;AAEA,gDAAmD;AAEnD,MAAM,CAAC,GAAG,OAAO,CAAC;AAClB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAElB,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EACV,+GAA+G;gBAChH,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE;oBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,qBAAY,CAAC,EAAE;iBACjC;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IAED;QACC,WAAW,EACV,2OAA2O;QAC5O,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;IAED;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,kEAAkE;QACxE,WAAW,EAAE,yEAAyE;QACtF,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KAC5D;IAED;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,WAAW,EACV,wGAAwG;QACzG,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC5D,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,4BAA4B,EAAE,EAAE,EAAE;KAC9E;CACD,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const R = 'search';
|
|
6
|
+
const show = { resource: [R] };
|
|
7
|
+
exports.searchDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: { show },
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Search',
|
|
17
|
+
value: 'search',
|
|
18
|
+
action: 'Search across content',
|
|
19
|
+
description: 'Search posts, wiki pages and people in one go. Results respect group membership and permissions.',
|
|
20
|
+
routing: {
|
|
21
|
+
request: { method: 'GET', url: '/search' },
|
|
22
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
default: 'search',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Query',
|
|
30
|
+
name: 'q',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
default: '',
|
|
34
|
+
placeholder: 'Urlaubsantrag',
|
|
35
|
+
description: 'What to search for',
|
|
36
|
+
displayOptions: { show: { ...show, operation: ['search'] } },
|
|
37
|
+
routing: { request: { qs: { q: '={{ $value }}' } } },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Type',
|
|
41
|
+
name: 'type',
|
|
42
|
+
type: 'options',
|
|
43
|
+
default: '',
|
|
44
|
+
description: 'Restrict the search to one module. The answer always carries the three lists posts, wiki and users — the ones not searched are empty.',
|
|
45
|
+
options: [
|
|
46
|
+
{ name: 'All', value: '' },
|
|
47
|
+
{ name: 'Posts', value: 'posts' },
|
|
48
|
+
{ name: 'Users', value: 'users' },
|
|
49
|
+
{ name: 'Wiki Pages', value: 'wiki' },
|
|
50
|
+
],
|
|
51
|
+
displayOptions: { show: { ...show, operation: ['search'] } },
|
|
52
|
+
routing: { request: { qs: { type: '={{ $value || undefined }}' } } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Limit',
|
|
56
|
+
name: 'limit',
|
|
57
|
+
type: 'number',
|
|
58
|
+
typeOptions: { minValue: 1, maxValue: 50 },
|
|
59
|
+
default: 50,
|
|
60
|
+
description: 'Max number of results to return',
|
|
61
|
+
displayOptions: { show: { ...show, operation: ['search'] } },
|
|
62
|
+
routing: { request: { qs: { limit: '={{ $value }}' } } },
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/search/index.ts"],"names":[],"mappings":";;;AAEA,4DAAuD;AAEvD,MAAM,CAAC,GAAG,QAAQ,CAAC;AACnB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAElB,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,E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AE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,EAAE,EAAE;KACpE;IAED;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC5D,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE;KACxD;CACD,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shareLinkDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const fields_1 = require("../../shared/fields");
|
|
6
|
+
const R = 'shareLink';
|
|
7
|
+
const show = { resource: [R] };
|
|
8
|
+
exports.shareLinkDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: { show },
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Accesses',
|
|
18
|
+
value: 'getAccesses',
|
|
19
|
+
action: 'Get the access log of a share link',
|
|
20
|
+
description: 'What visitors did with the link: page views, downloads, uploads and failed password attempts, newest first',
|
|
21
|
+
routing: {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '=/files/share-links/{{$parameter.shareLinkId}}/accesses',
|
|
25
|
+
baseURL: descriptions_1.FILES_BASE_URL,
|
|
26
|
+
},
|
|
27
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Get Many',
|
|
32
|
+
value: 'getAll',
|
|
33
|
+
action: 'Get many share links',
|
|
34
|
+
description: 'List the share links the token owner created, across folders and files and in every status',
|
|
35
|
+
routing: {
|
|
36
|
+
request: { method: 'GET', url: '/files/share-links', baseURL: descriptions_1.FILES_BASE_URL },
|
|
37
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Revoke',
|
|
42
|
+
value: 'revoke',
|
|
43
|
+
action: 'Revoke a share link',
|
|
44
|
+
description: 'Switch the link off for good. Revocation is soft — the link stays on record for the audit trail — and idempotent.',
|
|
45
|
+
routing: {
|
|
46
|
+
request: {
|
|
47
|
+
method: 'DELETE',
|
|
48
|
+
url: '=/files/share-links/{{$parameter.shareLinkId}}',
|
|
49
|
+
baseURL: descriptions_1.FILES_BASE_URL,
|
|
50
|
+
},
|
|
51
|
+
output: {
|
|
52
|
+
postReceive: [{ type: 'set', properties: { value: '={{ { "revoked": true } }}' } }],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Send',
|
|
58
|
+
value: 'send',
|
|
59
|
+
action: 'Email a share link',
|
|
60
|
+
description: 'Mail the link to external recipients from Kibi, with an optional message. Limited to 20 recipients per hour per user.',
|
|
61
|
+
routing: {
|
|
62
|
+
request: {
|
|
63
|
+
method: 'POST',
|
|
64
|
+
url: '=/files/share-links/{{$parameter.shareLinkId}}/send',
|
|
65
|
+
baseURL: descriptions_1.FILES_BASE_URL,
|
|
66
|
+
},
|
|
67
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Update',
|
|
72
|
+
value: 'update',
|
|
73
|
+
action: 'Update a share link',
|
|
74
|
+
description: 'Change the expiry, the password or the upload notification of a link',
|
|
75
|
+
routing: {
|
|
76
|
+
request: {
|
|
77
|
+
method: 'PATCH',
|
|
78
|
+
url: '=/files/share-links/{{$parameter.shareLinkId}}',
|
|
79
|
+
baseURL: descriptions_1.FILES_BASE_URL,
|
|
80
|
+
},
|
|
81
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
default: 'getAll',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Share link operations need an API token with the files:read scope; Update, Revoke and Send need files:write as well. To create a link, use Create Share Link on the Folder or File resource.',
|
|
89
|
+
name: 'scopeNotice',
|
|
90
|
+
type: 'notice',
|
|
91
|
+
default: '',
|
|
92
|
+
displayOptions: { show: { ...show, operation: ['getAll'] } },
|
|
93
|
+
},
|
|
94
|
+
(0, fields_1.ulidField)('Share Link ID', 'shareLinkId', R, ['update', 'revoke', 'getAccesses', 'send'], 'The share link to act on. Get Many lists the IDs.'),
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Filter by Type',
|
|
97
|
+
name: 'filterType',
|
|
98
|
+
type: 'options',
|
|
99
|
+
default: '',
|
|
100
|
+
description: 'Return only links of this kind',
|
|
101
|
+
options: [
|
|
102
|
+
{ name: 'Any', value: '' },
|
|
103
|
+
{ name: 'Share', value: 'share' },
|
|
104
|
+
{ name: 'Upload', value: 'upload' },
|
|
105
|
+
],
|
|
106
|
+
displayOptions: { show: { ...show, operation: ['getAll'] } },
|
|
107
|
+
routing: { request: { qs: { type: '={{ $value || undefined }}' } } },
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Filter by Status',
|
|
111
|
+
name: 'filterStatus',
|
|
112
|
+
type: 'options',
|
|
113
|
+
default: '',
|
|
114
|
+
description: 'Return only links in this state',
|
|
115
|
+
options: [
|
|
116
|
+
{ name: 'Active', value: 'active' },
|
|
117
|
+
{ name: 'Any', value: '' },
|
|
118
|
+
{ name: 'Expired', value: 'expired' },
|
|
119
|
+
{ name: 'Revoked', value: 'revoked' },
|
|
120
|
+
],
|
|
121
|
+
displayOptions: { show: { ...show, operation: ['getAll'] } },
|
|
122
|
+
routing: { request: { qs: { status: '={{ $value || undefined }}' } } },
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Search',
|
|
126
|
+
name: 'search',
|
|
127
|
+
type: 'string',
|
|
128
|
+
default: '',
|
|
129
|
+
description: 'Filter by the name of what the link points at — the folder name for folder links, the file name for file links',
|
|
130
|
+
displayOptions: { show: { ...show, operation: ['getAll'] } },
|
|
131
|
+
routing: { request: { qs: { q: '={{ $value || undefined }}' } } },
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Whole Tenant',
|
|
135
|
+
name: 'scopeAll',
|
|
136
|
+
type: 'boolean',
|
|
137
|
+
default: false,
|
|
138
|
+
description: "Whether to list every link in the tenant instead of the token owner's own. Only a system administrator's token may do this — anyone else gets 403.",
|
|
139
|
+
displayOptions: { show: { ...show, operation: ['getAll'] } },
|
|
140
|
+
routing: { request: { qs: { scope: '={{ $value ? "all" : undefined }}' } } },
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Filter by Access Type',
|
|
144
|
+
name: 'filterAccessType',
|
|
145
|
+
type: 'options',
|
|
146
|
+
default: '',
|
|
147
|
+
description: 'Return only one kind of access. The per-type totals in the first page come back unfiltered either way.',
|
|
148
|
+
options: [
|
|
149
|
+
{ name: 'Any', value: '' },
|
|
150
|
+
{ name: 'Download', value: 'download' },
|
|
151
|
+
{ name: 'Failed Unlock', value: 'unlock_failed' },
|
|
152
|
+
{ name: 'Upload', value: 'upload' },
|
|
153
|
+
{ name: 'View', value: 'view' },
|
|
154
|
+
],
|
|
155
|
+
displayOptions: { show: { ...show, operation: ['getAccesses'] } },
|
|
156
|
+
routing: { request: { qs: { type: '={{ $value || undefined }}' } } },
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Update Fields',
|
|
160
|
+
name: 'updateFields',
|
|
161
|
+
type: 'collection',
|
|
162
|
+
placeholder: 'Add Field',
|
|
163
|
+
default: {},
|
|
164
|
+
description: 'Only the fields you add are changed',
|
|
165
|
+
displayOptions: { show: { ...show, operation: ['update'] } },
|
|
166
|
+
options: [
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Expires At',
|
|
169
|
+
name: 'expiresAt',
|
|
170
|
+
type: 'dateTime',
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'When the link stops working. Must lie in the future. Leave empty to remove the expiry.',
|
|
173
|
+
routing: {
|
|
174
|
+
request: {
|
|
175
|
+
body: { expires_at: '={{ $value ? new Date($value).toISOString() : null }}' },
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Notify on Upload',
|
|
181
|
+
name: 'notify',
|
|
182
|
+
type: 'boolean',
|
|
183
|
+
default: false,
|
|
184
|
+
description: 'Whether to notify the link creator whenever a visitor uploads through the link. Only meaningful for upload links.',
|
|
185
|
+
routing: { request: { body: { notify: '={{ $value }}' } } },
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Password',
|
|
189
|
+
name: 'password',
|
|
190
|
+
type: 'string',
|
|
191
|
+
typeOptions: { password: true },
|
|
192
|
+
default: '',
|
|
193
|
+
description: 'Replace the password (at least 6 characters). Leave empty to remove the password. Not adding this field keeps the current one.',
|
|
194
|
+
routing: { request: { body: { password: '={{ $value || null }}' } } },
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Recipients',
|
|
200
|
+
name: 'emails',
|
|
201
|
+
type: 'string',
|
|
202
|
+
required: true,
|
|
203
|
+
default: '',
|
|
204
|
+
placeholder: 'anna@example.com, ben@example.com',
|
|
205
|
+
description: 'One to ten email addresses, comma-separated. An expression may also hand over an array.',
|
|
206
|
+
displayOptions: { show: { ...show, operation: ['send'] } },
|
|
207
|
+
routing: {
|
|
208
|
+
request: {
|
|
209
|
+
body: {
|
|
210
|
+
emails: '={{ Array.isArray($value) ? $value : String($value).split(",").map(v => v.trim()).filter(v => v) }}',
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
displayName: 'Message',
|
|
217
|
+
name: 'message',
|
|
218
|
+
type: 'string',
|
|
219
|
+
typeOptions: { rows: 4 },
|
|
220
|
+
default: '',
|
|
221
|
+
description: 'A personal note for the mail, up to 1000 characters. Plain text — HTML is escaped.',
|
|
222
|
+
displayOptions: { show: { ...show, operation: ['send'] } },
|
|
223
|
+
routing: { request: { body: { message: '={{ $value || undefined }}' } } },
|
|
224
|
+
},
|
|
225
|
+
...(0, descriptions_1.filesReturnAll)(R, 'getAll'),
|
|
226
|
+
...(0, descriptions_1.filesReturnAll)(R, 'getAccesses'),
|
|
227
|
+
];
|
|
228
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/shareLink/index.ts"],"names":[],"mappings":";;;AAEA,4DAAuF;AACvF,gDAAgD;AAEhD,MAAM,CAAC,GAAG,WAAW,CAAC;AACtB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAUlB,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,oCAAoC;gBAC5C,WAAW,EACV,4GAA4G;gBAC7G,OAAO,EAA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AAG,IAAA,6BAAc,EAAC,CAAC,EAAE,aAAa,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sharedWikiDescription = void 0;
|
|
4
|
+
const binary_1 = require("../../shared/binary");
|
|
5
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
6
|
+
const fields_1 = require("../../shared/fields");
|
|
7
|
+
const R = 'sharedWiki';
|
|
8
|
+
const show = { resource: [R] };
|
|
9
|
+
exports.sharedWikiDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Operation',
|
|
12
|
+
name: 'operation',
|
|
13
|
+
type: 'options',
|
|
14
|
+
noDataExpression: true,
|
|
15
|
+
displayOptions: { show },
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Get Media',
|
|
19
|
+
value: 'getMedia',
|
|
20
|
+
action: 'Get an image from a shared wiki subtree',
|
|
21
|
+
description: 'Stream an image attached to a published page inside the shared subtree, as binary data',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '=/shared-wiki/{{$parameter.sharedResourceId}}/media/{{$parameter.mediaId}}',
|
|
26
|
+
encoding: 'arraybuffer',
|
|
27
|
+
json: false,
|
|
28
|
+
returnFullResponse: true,
|
|
29
|
+
},
|
|
30
|
+
output: { postReceive: [binary_1.downloadBinary] },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Subtree',
|
|
35
|
+
value: 'getSubtree',
|
|
36
|
+
action: 'Get a shared wiki subtree',
|
|
37
|
+
description: 'Read the root page of a shared wiki together with all its published descendants',
|
|
38
|
+
routing: {
|
|
39
|
+
request: { method: 'GET', url: '=/shared-wiki/{{$parameter.sharedResourceId}}' },
|
|
40
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
default: 'getSubtree',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'A shared wiki is a subtree somebody published for the outside world — a public manual, say. Get Subtree returns the whole tree in one answer, which is what a static-site generator mirroring it wants.',
|
|
48
|
+
name: 'sharedWikiNotice',
|
|
49
|
+
type: 'notice',
|
|
50
|
+
default: '',
|
|
51
|
+
displayOptions: { show: { ...show, operation: ['getSubtree'] } },
|
|
52
|
+
},
|
|
53
|
+
(0, fields_1.ulidField)('Shared Resource ID', 'sharedResourceId', R, ['getSubtree', 'getMedia'], 'The ID of the share, as shown in the share link of the wiki page.'),
|
|
54
|
+
(0, fields_1.ulidField)('Media ID', 'mediaId', R, ['getMedia'], 'The image to fetch, as referenced from the content of a page in the subtree.'),
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Language',
|
|
57
|
+
name: 'lang',
|
|
58
|
+
type: 'string',
|
|
59
|
+
default: 'de',
|
|
60
|
+
placeholder: 'de',
|
|
61
|
+
description: 'The language to return the pages in, as a two-letter code',
|
|
62
|
+
displayOptions: { show: { ...show, operation: ['getSubtree'] } },
|
|
63
|
+
routing: { request: { qs: { lang: '={{ $value || undefined }}' } } },
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/sharedWiki/index.ts"],"names":[],"mappings":";;;AAEA,gDAAqD;AACrD,4DAAuD;AACvD,gDAAgD;AAEhD,MAAM,CAAC,GAAG,YAAY,CAAC;AACvB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAElB,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc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E,IAAI;QACjB,WAAW,EAAE,2DAA2D;QACxE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;QAChE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,EAAE,EAAE;KACpE;CACD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surveyDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const fields_1 = require("../../shared/fields");
|
|
6
|
+
const R = 'survey';
|
|
7
|
+
const show = { resource: [R] };
|
|
8
|
+
exports.surveyDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: { show },
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
action: 'Get a survey',
|
|
20
|
+
description: 'Read one published survey, including all its answer options',
|
|
21
|
+
routing: {
|
|
22
|
+
request: { method: 'GET', url: '=/surveys/{{$parameter.surveyId}}' },
|
|
23
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Get Many',
|
|
28
|
+
value: 'getAll',
|
|
29
|
+
action: 'Get many surveys',
|
|
30
|
+
description: 'Read the published surveys visible to the token owner, with their answer options',
|
|
31
|
+
routing: {
|
|
32
|
+
request: { method: 'GET', url: '/surveys' },
|
|
33
|
+
output: { postReceive: descriptions_1.unwrapData },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
default: 'getAll',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Surveys are read-only through the API: the questions and answer options come back, but answers cannot be submitted or counted from here.',
|
|
41
|
+
name: 'readOnlyNotice',
|
|
42
|
+
type: 'notice',
|
|
43
|
+
default: '',
|
|
44
|
+
displayOptions: { show },
|
|
45
|
+
},
|
|
46
|
+
(0, fields_1.ulidField)('Survey ID', 'surveyId', R, ['get'], 'The survey to read.'),
|
|
47
|
+
...(0, descriptions_1.returnAll)(R, 'getAll'),
|
|
48
|
+
];
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KibiConnect/resources/survey/index.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;AAClE,gDAAgD;AAEhD,MAAM,CAAC,GAAG,QAAQ,CAAC;AACnB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAElB,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE;QACxB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,6DAA6D;gBAC1E,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,mCAAmC,EAAE;oBACpE,MAAM,EAAE,EAAE,WAAW,EAAE,yBAAU,EAAE;iBACnC;aACD;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,kBAAkB;gBAC1B,WAAW,EAAE,kFAAkF;gBAC/F,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG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