n8n-nodes-dvelop 1.0.3

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.
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class DvelopApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: Icon;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DvelopApi = void 0;
4
+ const AUTH_METHOD_BEARER_TOKEN = 'bearerToken';
5
+ class DvelopApi {
6
+ constructor() {
7
+ this.name = 'dvelopApi';
8
+ this.displayName = 'd.velop API';
9
+ this.documentationUrl = 'https://help.d-velop.de/dev/documentation/identityprovider';
10
+ this.icon = { light: 'file:../icons/dvelop_light.svg', dark: 'file:../icons/dvelop_dark.svg' };
11
+ this.properties = [
12
+ {
13
+ displayName: 'Base URL',
14
+ name: 'baseUrl',
15
+ type: 'string',
16
+ default: 'https://my-tenant.d-velop.cloud',
17
+ placeholder: 'https://my-tenant.d-velop.cloud',
18
+ description: 'The base URL of your d.velop cloud instance.',
19
+ required: true,
20
+ },
21
+ {
22
+ displayName: 'Authentication Method',
23
+ name: 'authMethod',
24
+ type: 'options',
25
+ options: [{ name: 'Bearer Token', value: AUTH_METHOD_BEARER_TOKEN }],
26
+ default: AUTH_METHOD_BEARER_TOKEN,
27
+ description: 'Method to use for authentication',
28
+ },
29
+ {
30
+ displayName: 'Bearer Token',
31
+ name: 'bearerToken',
32
+ type: 'string',
33
+ typeOptions: { password: true },
34
+ default: '',
35
+ description: 'Bearer token obtained from d.velop API-key section',
36
+ displayOptions: {
37
+ show: { authMethod: [AUTH_METHOD_BEARER_TOKEN] },
38
+ },
39
+ },
40
+ ];
41
+ this.authenticate = {
42
+ type: 'generic',
43
+ properties: {
44
+ headers: {
45
+ Authorization: '=Bearer {{$credentials.bearerToken}}',
46
+ Accept: 'application/json',
47
+ },
48
+ },
49
+ };
50
+ this.test = {
51
+ request: {
52
+ baseURL: '={{$credentials.baseUrl}}',
53
+ url: '/actions/api/v1/actions',
54
+ method: 'GET',
55
+ qs: { limit: 1 },
56
+ },
57
+ };
58
+ }
59
+ }
60
+ exports.DvelopApi = DvelopApi;
61
+ //# sourceMappingURL=DvelopApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DvelopApi.credentials.js","sourceRoot":"","sources":["../../credentials/DvelopApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAM,wBAAwB,GAAG,aAAsB,CAAC;AAExD,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QACnB,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,4DAA4D,CAAC;QAChF,SAAI,GAAS,EAAE,KAAK,EAAE,gCAAgC,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC;QAEhG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,iCAAiC;gBAC1C,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,wBAAwB,EAAE,CAAC;gBACpE,OAAO,EAAE,wBAAwB;gBACjC,WAAW,EAAE,kCAAkC;aAC/C;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oDAAoD;gBACjE,cAAc,EAAE;oBACf,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,wBAAwB,CAAC,EAAE;iBAChD;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,sCAAsC;oBACrD,MAAM,EAAE,kBAAkB;iBAC1B;aACD;SACA,CAAC;QAEH,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,yBAAyB;gBAC9B,MAAM,EAAE,KAAK;gBACb,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;aAChB;SACD,CAAC;IACH,CAAC;CAAA;AAvDD,8BAuDC"}
@@ -0,0 +1 @@
1
+ <svg id="22edab40-1d5e-4a70-9b68-c66564637870" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 225.44219 120.4744"><defs><style>.\38 8778b89-59ee-47b6-b3b5-8308bbe00e0a{fill:#fff;}</style></defs><title>dvelop-logo-invers</title><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M48.0327,74.4388a41.50519,41.50519,0,0,1-5.2472,1.1595,40.71082,40.71082,0,0,1-6.63858.5225,17.7,17.7,0,0,1-6.435-1.1017,13.38857,13.38857,0,0,1-4.84152-3.16,13.90542,13.90542,0,0,1-3.0727-4.986,19.01573,19.01573,0,0,1-1.0722-6.5807,22.15362,22.15362,0,0,1,.8982-6.5218,14.27486,14.27486,0,0,1,2.6381-5.0154,11.75319,11.75319,0,0,1,4.2322-3.2178,13.76038,13.76038,0,0,1,5.7397-1.1301,13.12838,13.12838,0,0,1,3.8849.5214,17.44635,17.44635,0,0,1,2.8987,1.1595V31.536l7.0154-1.1595ZM27.9143,60.119a11.00418,11.00418,0,0,0,2.2034,7.2755,7.4977,7.4977,0,0,0,6.0876,2.6386,24.18033,24.18033,0,0,0,2.8699-.145,19.54843,19.54843,0,0,0,1.9421-.3185V52.1759a10.932,10.932,0,0,0-2.4641-1.189,9.6412,9.6412,0,0,0-3.2756-.5509,6.27676,6.27676,0,0,0-5.5946,2.6092A12.43857,12.43857,0,0,0,27.9143,60.119Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M63.1145,71.5406a4.31977,4.31977,0,0,1-1.3624,3.3039,4.87954,4.87954,0,0,1-6.5808,0,4.36294,4.36294,0,0,1-1.33338-3.3039A4.46449,4.46449,0,0,1,55.1713,68.206a4.80491,4.80491,0,0,1,6.5808,0A4.41946,4.41946,0,0,1,63.1145,71.5406Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M72.4265,75.3671q-2.9106-5.9715-5.9668-13.7123a173.39617,173.39617,0,0,1-5.55978-16.6105H68.3818q.6405,2.55315,1.4839,5.479.8439,2.9283,1.8047,5.8553.96078,2.9301,1.9793,5.6819,1.0191,2.7549,1.8926,4.9577.87225-2.20275,1.8625-4.9577.9891-2.75295,1.9504-5.6819.959-2.9265,1.8336-5.8553.87225-2.9265,1.5134-5.479h7.2489a173.59872,173.59872,0,0,1-5.55918,16.6105q-3.05748,7.74075-5.96742,13.7123Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M90.9148,60.3502a19.0428,19.0428,0,0,1,1.1884-7.0148,14.74,14.74,0,0,1,3.1594-5.0155A13.08832,13.08832,0,0,1,99.785,45.305a14.03479,14.03479,0,0,1,5.2178-1.0144q6.2616,0,9.7697,3.8842,3.5067,3.88545,3.50742,11.5962c0,.3869-.01012.821-.02892,1.3046q-.03012.7254-.0873,1.3046H98.162a7.99021,7.99021,0,0,0,2.5797,5.6524q2.28945,2.00115,6.6385,2.0005a21.84339,21.84339,0,0,0,4.6669-.4635,19.20326,19.20326,0,0,0,3.334-.9861l.9277,5.7397a11.22094,11.22094,0,0,1-1.5947.6086,22.43751,22.43751,0,0,1-2.319.5804q-1.3041.2601-2.8121.434a26.59325,26.59325,0,0,1-3.0727.1746,18.60772,18.60772,0,0,1-6.957-1.189,12.93445,12.93445,0,0,1-4.87038-3.3051,13.53307,13.53307,0,0,1-2.841-4.986A20.34929,20.34929,0,0,1,90.9148,60.3502Zm20.3497-3.1305a9.24016,9.24016,0,0,0-.4058-2.7543,6.63167,6.63167,0,0,0-1.1884-2.26,5.61293,5.61293,0,0,0-1.9132-1.5075,6.10631,6.10631,0,0,0-2.6959-.5509,6.2754,6.2754,0,0,0-2.841.6087,6.4831,6.4831,0,0,0-2.05828,1.5936,7.30129,7.30129,0,0,0-1.30462,2.2612,12.25194,12.25194,0,0,0-.6375,2.6092Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M142.496,69.047l1.0446,6.3201H122.978V45.0443h7.0154V69.047Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M173.40692,60.1768a19.5818,19.5818,0,0,1-1.04332,6.5512,14.49517,14.49517,0,0,1-2.9572,5.0438,13.282,13.282,0,0,1-4.6091,3.2473,14.89337,14.89337,0,0,1-5.9426,1.1595,14.681,14.681,0,0,1-5.9136-1.1595,13.3525,13.3525,0,0,1-4.5803-3.2473,14.85026,14.85026,0,0,1-2.986-5.0438,19.08243,19.08243,0,0,1-1.0722-6.5512,18.84653,18.84653,0,0,1,1.0722-6.5229,14.65665,14.65665,0,0,1,3.0149-5.0143,13.31393,13.31393,0,0,1,4.60922-3.2178,14.84816,14.84816,0,0,1,5.85578-1.1312,15.0674,15.0674,0,0,1,5.8848,1.1312,12.96955,12.96955,0,0,1,4.6091,3.2178,14.92606,14.92606,0,0,1,2.9861,5.0143A18.87431,18.87431,0,0,1,173.40692,60.1768Zm-7.18882,0a11.8338,11.8338,0,0,0-1.9427-7.1599,6.88775,6.88775,0,0,0-10.8419,0,11.82982,11.82982,0,0,0-1.9421,7.1599,12.072,12.072,0,0,0,1.9421,7.2472,6.843,6.843,0,0,0,10.8419,0A12.07605,12.07605,0,0,0,166.2181,60.1768Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M177.4492,46.0894a41.5072,41.5072,0,0,1,5.2473-1.1595,40.69832,40.69832,0,0,1,6.6385-.5226,17.70226,17.70226,0,0,1,6.4351,1.1017,13.38831,13.38831,0,0,1,4.8414,3.1601,13.90579,13.90579,0,0,1,3.0728,4.9859,19.01631,19.01631,0,0,1,1.0722,6.5808,22.15227,22.15227,0,0,1-.8982,6.5217,14.275,14.275,0,0,1-2.6381,5.0155,11.75387,11.75387,0,0,1-4.2322,3.2178,13.76243,13.76243,0,0,1-5.7398,1.13,13.13113,13.13113,0,0,1-3.8848-.5213,17.44767,17.44767,0,0,1-2.8988-1.1595V88.9921l-7.0154,1.1595Zm20.1185,14.3198a11.00443,11.00443,0,0,0-2.2034-7.2755,7.498,7.498,0,0,0-6.0877-2.6387,24.17527,24.17527,0,0,0-2.8698.1451,19.52168,19.52168,0,0,0-1.9422.3185V68.3523a10.93886,10.93886,0,0,0,2.4641,1.189,9.644,9.644,0,0,0,3.2756.5508,6.2771,6.2771,0,0,0,5.5947-2.6091A12.43936,12.43936,0,0,0,197.5677,60.4092Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg id="22edab40-1d5e-4a70-9b68-c66564637870" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 225.44219 120.4744"><defs><style>.\38 8778b89-59ee-47b6-b3b5-8308bbe00e0a{fill:#000;}</style></defs><title>dvelop-logo-invers</title><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M48.0327,74.4388a41.50519,41.50519,0,0,1-5.2472,1.1595,40.71082,40.71082,0,0,1-6.63858.5225,17.7,17.7,0,0,1-6.435-1.1017,13.38857,13.38857,0,0,1-4.84152-3.16,13.90542,13.90542,0,0,1-3.0727-4.986,19.01573,19.01573,0,0,1-1.0722-6.5807,22.15362,22.15362,0,0,1,.8982-6.5218,14.27486,14.27486,0,0,1,2.6381-5.0154,11.75319,11.75319,0,0,1,4.2322-3.2178,13.76038,13.76038,0,0,1,5.7397-1.1301,13.12838,13.12838,0,0,1,3.8849.5214,17.44635,17.44635,0,0,1,2.8987,1.1595V31.536l7.0154-1.1595ZM27.9143,60.119a11.00418,11.00418,0,0,0,2.2034,7.2755,7.4977,7.4977,0,0,0,6.0876,2.6386,24.18033,24.18033,0,0,0,2.8699-.145,19.54843,19.54843,0,0,0,1.9421-.3185V52.1759a10.932,10.932,0,0,0-2.4641-1.189,9.6412,9.6412,0,0,0-3.2756-.5509,6.27676,6.27676,0,0,0-5.5946,2.6092A12.43857,12.43857,0,0,0,27.9143,60.119Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M63.1145,71.5406a4.31977,4.31977,0,0,1-1.3624,3.3039,4.87954,4.87954,0,0,1-6.5808,0,4.36294,4.36294,0,0,1-1.33338-3.3039A4.46449,4.46449,0,0,1,55.1713,68.206a4.80491,4.80491,0,0,1,6.5808,0A4.41946,4.41946,0,0,1,63.1145,71.5406Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M72.4265,75.3671q-2.9106-5.9715-5.9668-13.7123a173.39617,173.39617,0,0,1-5.55978-16.6105H68.3818q.6405,2.55315,1.4839,5.479.8439,2.9283,1.8047,5.8553.96078,2.9301,1.9793,5.6819,1.0191,2.7549,1.8926,4.9577.87225-2.20275,1.8625-4.9577.9891-2.75295,1.9504-5.6819.959-2.9265,1.8336-5.8553.87225-2.9265,1.5134-5.479h7.2489a173.59872,173.59872,0,0,1-5.55918,16.6105q-3.05748,7.74075-5.96742,13.7123Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M90.9148,60.3502a19.0428,19.0428,0,0,1,1.1884-7.0148,14.74,14.74,0,0,1,3.1594-5.0155A13.08832,13.08832,0,0,1,99.785,45.305a14.03479,14.03479,0,0,1,5.2178-1.0144q6.2616,0,9.7697,3.8842,3.5067,3.88545,3.50742,11.5962c0,.3869-.01012.821-.02892,1.3046q-.03012.7254-.0873,1.3046H98.162a7.99021,7.99021,0,0,0,2.5797,5.6524q2.28945,2.00115,6.6385,2.0005a21.84339,21.84339,0,0,0,4.6669-.4635,19.20326,19.20326,0,0,0,3.334-.9861l.9277,5.7397a11.22094,11.22094,0,0,1-1.5947.6086,22.43751,22.43751,0,0,1-2.319.5804q-1.3041.2601-2.8121.434a26.59325,26.59325,0,0,1-3.0727.1746,18.60772,18.60772,0,0,1-6.957-1.189,12.93445,12.93445,0,0,1-4.87038-3.3051,13.53307,13.53307,0,0,1-2.841-4.986A20.34929,20.34929,0,0,1,90.9148,60.3502Zm20.3497-3.1305a9.24016,9.24016,0,0,0-.4058-2.7543,6.63167,6.63167,0,0,0-1.1884-2.26,5.61293,5.61293,0,0,0-1.9132-1.5075,6.10631,6.10631,0,0,0-2.6959-.5509,6.2754,6.2754,0,0,0-2.841.6087,6.4831,6.4831,0,0,0-2.05828,1.5936,7.30129,7.30129,0,0,0-1.30462,2.2612,12.25194,12.25194,0,0,0-.6375,2.6092Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M142.496,69.047l1.0446,6.3201H122.978V45.0443h7.0154V69.047Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M173.40692,60.1768a19.5818,19.5818,0,0,1-1.04332,6.5512,14.49517,14.49517,0,0,1-2.9572,5.0438,13.282,13.282,0,0,1-4.6091,3.2473,14.89337,14.89337,0,0,1-5.9426,1.1595,14.681,14.681,0,0,1-5.9136-1.1595,13.3525,13.3525,0,0,1-4.5803-3.2473,14.85026,14.85026,0,0,1-2.986-5.0438,19.08243,19.08243,0,0,1-1.0722-6.5512,18.84653,18.84653,0,0,1,1.0722-6.5229,14.65665,14.65665,0,0,1,3.0149-5.0143,13.31393,13.31393,0,0,1,4.60922-3.2178,14.84816,14.84816,0,0,1,5.85578-1.1312,15.0674,15.0674,0,0,1,5.8848,1.1312,12.96955,12.96955,0,0,1,4.6091,3.2178,14.92606,14.92606,0,0,1,2.9861,5.0143A18.87431,18.87431,0,0,1,173.40692,60.1768Zm-7.18882,0a11.8338,11.8338,0,0,0-1.9427-7.1599,6.88775,6.88775,0,0,0-10.8419,0,11.82982,11.82982,0,0,0-1.9421,7.1599,12.072,12.072,0,0,0,1.9421,7.2472,6.843,6.843,0,0,0,10.8419,0A12.07605,12.07605,0,0,0,166.2181,60.1768Z"/><path class="88778b89-59ee-47b6-b3b5-8308bbe00e0a" d="M177.4492,46.0894a41.5072,41.5072,0,0,1,5.2473-1.1595,40.69832,40.69832,0,0,1,6.6385-.5226,17.70226,17.70226,0,0,1,6.4351,1.1017,13.38831,13.38831,0,0,1,4.8414,3.1601,13.90579,13.90579,0,0,1,3.0728,4.9859,19.01631,19.01631,0,0,1,1.0722,6.5808,22.15227,22.15227,0,0,1-.8982,6.5217,14.275,14.275,0,0,1-2.6381,5.0155,11.75387,11.75387,0,0,1-4.2322,3.2178,13.76243,13.76243,0,0,1-5.7398,1.13,13.13113,13.13113,0,0,1-3.8848-.5213,17.44767,17.44767,0,0,1-2.8988-1.1595V88.9921l-7.0154,1.1595Zm20.1185,14.3198a11.00443,11.00443,0,0,0-2.2034-7.2755,7.498,7.498,0,0,0-6.0877-2.6387,24.17527,24.17527,0,0,0-2.8698.1451,19.52168,19.52168,0,0,0-1.9422.3185V68.3523a10.93886,10.93886,0,0,0,2.4641,1.189,9.644,9.644,0,0,0,3.2756.5508,6.2771,6.2771,0,0,0,5.5947-2.6091A12.43936,12.43936,0,0,0,197.5677,60.4092Z"/></svg>
@@ -0,0 +1,10 @@
1
+ import type * as n8nWorkflow from 'n8n-workflow';
2
+ export declare class DvelopActions implements n8nWorkflow.INodeType {
3
+ description: n8nWorkflow.INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getVolatileActions(this: n8nWorkflow.ILoadOptionsFunctions): Promise<any>;
7
+ };
8
+ };
9
+ execute(this: n8nWorkflow.IExecuteFunctions): Promise<n8nWorkflow.INodeExecutionData[][]>;
10
+ }
@@ -0,0 +1,359 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DvelopActions = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const ACTION_MODE_STABLE = 'stable';
6
+ const ACTION_MODE_VOLATILE = 'volatile';
7
+ const STABLE_OPERATION = {
8
+ GET_DOCUMENT: 'integrationplatform_integrationplatform_GET_DOCUMENT',
9
+ GET_DOCUMENT_INFO: 'integrationplatform_integrationplatform_GET_DOCUMENT_INFO',
10
+ GET_USER_INFO: 'integrationplatform_integrationplatform_GET_USER_INFO',
11
+ CREATE_INBOUND_BATCH: 'integrationplatform_inbound_CreateInboundBatch',
12
+ };
13
+ const showStableActionMode = {
14
+ show: {
15
+ actionMode: [ACTION_MODE_STABLE],
16
+ },
17
+ };
18
+ const showVolatileActionMode = {
19
+ show: {
20
+ actionMode: [ACTION_MODE_VOLATILE],
21
+ },
22
+ };
23
+ const showStableOperation = (operation) => ({
24
+ show: {
25
+ actionMode: [ACTION_MODE_STABLE],
26
+ operation: [operation],
27
+ },
28
+ });
29
+ const showStableOperations = (operations) => ({
30
+ show: {
31
+ actionMode: [ACTION_MODE_STABLE],
32
+ operation: operations,
33
+ },
34
+ });
35
+ const showInboundSource = (source) => ({
36
+ show: {
37
+ actionMode: [ACTION_MODE_STABLE],
38
+ operation: [STABLE_OPERATION.CREATE_INBOUND_BATCH],
39
+ inbound_fileSource: [source],
40
+ },
41
+ });
42
+ class DvelopActions {
43
+ constructor() {
44
+ this.description = {
45
+ displayName: 'd.velop Actions',
46
+ name: 'dvelopActions',
47
+ icon: { light: 'file:../../icons/dvelop_light.svg', dark: 'file:../../icons/dvelop_dark.svg' },
48
+ group: ['input'],
49
+ version: 1,
50
+ description: 'Execute d.velop Actions.',
51
+ defaults: { name: 'd.velop Actions' },
52
+ usableAsTool: true,
53
+ inputs: ['main'],
54
+ outputs: ['main'],
55
+ credentials: [{ name: 'dvelopApi', required: true }],
56
+ requestDefaults: {
57
+ baseURL: '={{$credentials.baseUrl}}',
58
+ headers: { Accept: 'application/json' },
59
+ },
60
+ properties: [
61
+ {
62
+ displayName: 'Action Mode',
63
+ name: 'actionMode',
64
+ type: 'options',
65
+ options: [
66
+ { name: 'Stable Action', value: ACTION_MODE_STABLE },
67
+ { name: 'Volatile Action', value: ACTION_MODE_VOLATILE },
68
+ ],
69
+ default: ACTION_MODE_STABLE,
70
+ description: 'Choose between a stable or a volatile action',
71
+ },
72
+ {
73
+ displayName: 'Operation (Stable Action)',
74
+ name: 'operation',
75
+ type: 'options',
76
+ noDataExpression: true,
77
+ displayOptions: showStableActionMode,
78
+ options: [
79
+ {
80
+ name: 'Download Document',
81
+ value: STABLE_OPERATION.GET_DOCUMENT,
82
+ description: 'Downloads the specific document',
83
+ action: 'Downloads the document to the specified document ID',
84
+ },
85
+ {
86
+ name: 'Get Document Info',
87
+ value: STABLE_OPERATION.GET_DOCUMENT_INFO,
88
+ description: 'Gets information of a document for the specified document ID',
89
+ action: 'Gets information of a document for the specified document ID',
90
+ },
91
+ {
92
+ name: 'Get User Info',
93
+ value: STABLE_OPERATION.GET_USER_INFO,
94
+ description: 'Gets information about the specified user ID',
95
+ action: 'Gets information about the specified user ID',
96
+ },
97
+ {
98
+ name: 'Import Document (d.velop Inbound)',
99
+ value: STABLE_OPERATION.CREATE_INBOUND_BATCH,
100
+ description: 'Imports a document via d.velop inbound',
101
+ action: 'Imports a document via d velop inbound',
102
+ },
103
+ ],
104
+ default: 'integrationplatform_integrationplatform_GET_DOCUMENT',
105
+ placeholder: 'Choose an Action',
106
+ },
107
+ {
108
+ displayName: 'Volatile Action Name or ID',
109
+ name: 'volatileActionId',
110
+ type: 'options',
111
+ displayOptions: showVolatileActionMode,
112
+ typeOptions: { loadOptionsMethod: 'getVolatileActions' },
113
+ default: '',
114
+ placeholder: 'Loading volatile Actions...',
115
+ description: 'Dynamic loaded volatile Actions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
116
+ },
117
+ {
118
+ displayName: 'Payload (JSON)',
119
+ name: 'volatilePayload',
120
+ type: 'json',
121
+ displayOptions: showVolatileActionMode,
122
+ default: '{}',
123
+ description: 'JSON Payload for volatile Actions',
124
+ },
125
+ {
126
+ displayName: 'Repository',
127
+ name: 'repo_id',
128
+ type: 'string',
129
+ required: true,
130
+ default: '',
131
+ displayOptions: showStableOperations([
132
+ STABLE_OPERATION.GET_DOCUMENT,
133
+ STABLE_OPERATION.GET_DOCUMENT_INFO,
134
+ ]),
135
+ },
136
+ {
137
+ displayName: 'Document ID',
138
+ name: 'document_id',
139
+ type: 'string',
140
+ required: true,
141
+ default: '',
142
+ displayOptions: showStableOperations([
143
+ STABLE_OPERATION.GET_DOCUMENT,
144
+ STABLE_OPERATION.GET_DOCUMENT_INFO,
145
+ ]),
146
+ },
147
+ {
148
+ displayName: 'Format',
149
+ name: 'getDocument_documentType',
150
+ type: 'options',
151
+ required: true,
152
+ default: 'original',
153
+ options: [
154
+ { name: 'Original', value: 'original' },
155
+ { name: 'PDF', value: 'pdf' },
156
+ ],
157
+ displayOptions: showStableOperation(STABLE_OPERATION.GET_DOCUMENT),
158
+ },
159
+ {
160
+ displayName: 'User ID',
161
+ name: 'getUserInfo_userId',
162
+ type: 'string',
163
+ required: true,
164
+ default: '',
165
+ displayOptions: showStableOperation(STABLE_OPERATION.GET_USER_INFO),
166
+ },
167
+ {
168
+ displayName: 'File Name',
169
+ name: 'inbound_filename',
170
+ type: 'string',
171
+ required: true,
172
+ default: '',
173
+ displayOptions: showStableOperation(STABLE_OPERATION.CREATE_INBOUND_BATCH),
174
+ },
175
+ {
176
+ displayName: 'File Source',
177
+ name: 'inbound_fileSource',
178
+ type: 'options',
179
+ default: 'binary',
180
+ options: [
181
+ { name: 'From N8n Binary', value: 'binary' },
182
+ { name: 'From Base64/String', value: 'string' },
183
+ ],
184
+ displayOptions: showStableOperation(STABLE_OPERATION.CREATE_INBOUND_BATCH),
185
+ },
186
+ {
187
+ displayName: 'Input Binary Property',
188
+ name: 'inbound_inputBinaryProperty',
189
+ type: 'string',
190
+ default: 'data',
191
+ displayOptions: showInboundSource('binary'),
192
+ },
193
+ {
194
+ displayName: 'File (Base64/String)',
195
+ name: 'inbound_fileBinaryString',
196
+ type: 'string',
197
+ required: true,
198
+ default: '',
199
+ displayOptions: showInboundSource('string'),
200
+ },
201
+ {
202
+ displayName: 'Import Profile',
203
+ name: 'inbound_batch_profile',
204
+ type: 'string',
205
+ required: true,
206
+ default: '',
207
+ displayOptions: showStableOperation(STABLE_OPERATION.CREATE_INBOUND_BATCH),
208
+ },
209
+ ],
210
+ };
211
+ this.methods = {
212
+ loadOptions: {
213
+ async getVolatileActions() {
214
+ try {
215
+ const credentials = await this.getCredentials('dvelopApi');
216
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'dvelopApi', {
217
+ method: 'GET',
218
+ url: `${credentials.baseUrl}/actions/api/v1/actions`,
219
+ json: true,
220
+ });
221
+ const list = Array.isArray(response)
222
+ ? response
223
+ : ((response === null || response === void 0 ? void 0 : response.actions) || (response === null || response === void 0 ? void 0 : response.data) || []);
224
+ return list
225
+ .filter((a) => a === null || a === void 0 ? void 0 : a.volatile)
226
+ .map((a) => ({
227
+ name: a.display_name || a.name || a.id,
228
+ value: a.id,
229
+ }));
230
+ }
231
+ catch (error) {
232
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
233
+ }
234
+ },
235
+ },
236
+ };
237
+ }
238
+ async execute() {
239
+ var _a;
240
+ const items = this.getInputData();
241
+ const results = [];
242
+ const creds = (await this.getCredentials('dvelopApi'));
243
+ const baseUrl = creds.baseUrl;
244
+ for (let i = 0; i < items.length; i++) {
245
+ const actionMode = this.getNodeParameter('actionMode', i);
246
+ const actionId = actionMode === ACTION_MODE_STABLE
247
+ ? this.getNodeParameter('operation', i)
248
+ : this.getNodeParameter('volatileActionId', i);
249
+ const url = `${baseUrl}/actions/api/execute/${actionId}`;
250
+ const payload = {};
251
+ if (actionMode === ACTION_MODE_VOLATILE) {
252
+ const volatilePayload = this.getNodeParameter('volatilePayload', i);
253
+ Object.assign(payload, volatilePayload);
254
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'dvelopApi', {
255
+ method: 'POST',
256
+ url,
257
+ body: payload,
258
+ json: true,
259
+ });
260
+ results.push({ json: { actionMode, actionId, response } });
261
+ continue;
262
+ }
263
+ const operation = actionId;
264
+ switch (operation) {
265
+ case STABLE_OPERATION.GET_DOCUMENT: {
266
+ payload.repo_id = this.getNodeParameter('repo_id', i);
267
+ payload.document_id = this.getNodeParameter('document_id', i);
268
+ payload.document_type = this.getNodeParameter('getDocument_documentType', i);
269
+ const response = (await this.helpers.httpRequestWithAuthentication.call(this, 'dvelopApi', {
270
+ method: 'POST',
271
+ url,
272
+ body: payload,
273
+ json: true,
274
+ }));
275
+ const docBase64 = response.document;
276
+ const fileName = (_a = response.filename) !== null && _a !== void 0 ? _a : 'document.pdf';
277
+ if (!docBase64 || typeof docBase64 !== 'string') {
278
+ results.push({ json: { actionMode, operation, error: 'No "document" field in response', response } });
279
+ break;
280
+ }
281
+ const buffer = Buffer.from(docBase64, 'base64');
282
+ if (payload.document_type === 'pdf' && buffer.slice(0, 5).toString('utf8') !== '%PDF-') {
283
+ results.push({
284
+ json: {
285
+ actionMode,
286
+ operation,
287
+ error: 'Decoded content is not a PDF (missing %PDF- header)',
288
+ fileName,
289
+ firstBytes: buffer.slice(0, 16).toString('hex'),
290
+ },
291
+ });
292
+ break;
293
+ }
294
+ const outputBinaryProperty = 'data';
295
+ const mimeType = payload.document_type === 'pdf' ? 'application/pdf' : 'application/octet-stream';
296
+ const binaryData = await this.helpers.prepareBinaryData(buffer, fileName, mimeType);
297
+ results.push({
298
+ json: {
299
+ actionMode,
300
+ operation,
301
+ fileName,
302
+ mimeType,
303
+ statusCode: 200,
304
+ },
305
+ binary: {
306
+ [outputBinaryProperty]: binaryData,
307
+ },
308
+ });
309
+ break;
310
+ }
311
+ case STABLE_OPERATION.GET_DOCUMENT_INFO: {
312
+ payload.repo_id = this.getNodeParameter('repo_id', i);
313
+ payload.document_id = this.getNodeParameter('document_id', i);
314
+ break;
315
+ }
316
+ case STABLE_OPERATION.GET_USER_INFO: {
317
+ payload.user_id = this.getNodeParameter('getUserInfo_userId', i);
318
+ break;
319
+ }
320
+ case STABLE_OPERATION.CREATE_INBOUND_BATCH: {
321
+ payload.filename = this.getNodeParameter('inbound_filename', i);
322
+ const fileSource = this.getNodeParameter('inbound_fileSource', i);
323
+ if (fileSource === 'binary') {
324
+ const binProp = this.getNodeParameter('inbound_inputBinaryProperty', i);
325
+ let buf;
326
+ try {
327
+ buf = await this.helpers.getBinaryDataBuffer(i, binProp);
328
+ }
329
+ catch (error) {
330
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
331
+ }
332
+ payload.file_binary = buf.toString('base64');
333
+ }
334
+ else {
335
+ let base64 = this.getNodeParameter('inbound_fileBinaryString', i);
336
+ base64 = base64.replace(/^data:.*;base64,/, '').replace(/\s+/g, '');
337
+ payload.file_binary = base64;
338
+ }
339
+ payload.batch_profile = this.getNodeParameter('inbound_batch_profile', i);
340
+ break;
341
+ }
342
+ default:
343
+ throw new Error(`Operation not implemented: ${operation}`);
344
+ }
345
+ if (operation === STABLE_OPERATION.GET_DOCUMENT)
346
+ continue;
347
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'dvelopApi', {
348
+ method: 'POST',
349
+ url,
350
+ body: payload,
351
+ json: true,
352
+ });
353
+ results.push({ json: { actionMode, actionId, response } });
354
+ }
355
+ return [results];
356
+ }
357
+ }
358
+ exports.DvelopActions = DvelopActions;
359
+ //# sourceMappingURL=DvelopActions.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DvelopActions.node.js","sourceRoot":"","sources":["../../../nodes/dvelop/DvelopActions.node.ts"],"names":[],"mappings":";;;AAOA,+CAAwD;AAExD,MAAM,kBAAkB,GAAG,QA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Aa,GAAG,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;oBAC1E,MAAM;gBACP,CAAC;gBAED;oBAEC,MAAM,IAAI,KAAK,CAAC,8BAA8B,SAAS,EAAE,CAAC,CAAC;YAC7D,CAAC;YACD,IAAI,SAAS,KAAK,gBAAgB,CAAC,YAAY;gBAAE,SAAS;YAC1D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE;gBACzF,MAAM,EAAE,MAAM;gBACd,GAAG;gBACH,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,IAAI;aACV,CAAC,CAAC;YAEH,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,CAAC;IAClB,CAAC;CACD;AApXD,sCAoXC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "@dvelop/n8n-nodes-example",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Integration"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://help.d-velop.de/dev/documentation/identityprovider"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://help.d-velop.de"
15
+ }
16
+ ]
17
+ }
18
+ }