n8n-nodes-innotes 2.0.1 → 2.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.
|
@@ -40,7 +40,22 @@ class InNotesApi {
|
|
|
40
40
|
password: true,
|
|
41
41
|
},
|
|
42
42
|
default: '',
|
|
43
|
-
|
|
43
|
+
// The old text said "Found in your InNotes dashboard automation
|
|
44
|
+
// settings". That screen exists (app/dashboard/profile/AutomationSettings)
|
|
45
|
+
// and renders no secret — the value is injected server-side when InNotes
|
|
46
|
+
// provisions the credential, and the identifier appears nowhere under
|
|
47
|
+
// app/ or components/. So the instruction could not be followed by
|
|
48
|
+
// anyone setting this up by hand, which is the only case it addressed.
|
|
49
|
+
//
|
|
50
|
+
// It does NOT say "optional, leave it empty" either: the node throws
|
|
51
|
+
// without it (InNotes.node.ts checks callbackSecret and raises
|
|
52
|
+
// NodeApiError before building the request), so that advice would break
|
|
53
|
+
// the very action the field exists for.
|
|
54
|
+
// Author: Marco — 2026-08-03
|
|
55
|
+
description: 'Required for the "Report Job Created" action — that action fails without it. ' +
|
|
56
|
+
'InNotes fills this in automatically when it provisions your automation. The value ' +
|
|
57
|
+
'is not displayed anywhere in the dashboard, so a credential built by hand needs it ' +
|
|
58
|
+
'from whoever provisioned the workflow.',
|
|
44
59
|
},
|
|
45
60
|
{
|
|
46
61
|
displayName: 'Allowed Domains',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../credentials/InNotesApi.credentials.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAUH,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,oBAAoB,CAAC;QACxC,SAAI,GAAS,mBAAmB,CAAC;QACjC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,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d;gBACD,OAAO,EAAE,EAAE;gBACX,gEAAgE;gBAChE,2EAA2E;gBAC3E,yEAAyE;gBACzE,sEAAsE;gBACtE,mEAAmE;gBACnE,uEAAuE;gBACvE,EAAE;gBACF,qEAAqE;gBACrE,+DAA+D;gBAC/D,wEAAwE;gBACxE,wCAAwC;gBACxC,6BAA6B;gBAC7B,WAAW,EACV,+EAA+E;oBAC/E,oFAAoF;oBACpF,qFAAqF;oBACrF,wCAAwC;aACzC;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG;gBACZ,WAAW,EAAE,wDAAwD;aACrE;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,eAAe,EAAE,gCAAgC;iBACjD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,WAAW;gBAChB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA5ED,gCA4EC","file":"InNotesApi.credentials.js","sourcesContent":["/**\n * Author: Marco Visin\n * Date: 2025-06-02\n * Updated to support Bearer token authentication\n */\n\nimport {\n\tIAuthenticateGeneric,\n\tICredentialTestRequest,\n\tICredentialType,\n\tINodeProperties,\n\tIcon,\n} from 'n8n-workflow';\n\nexport class InNotesApi implements ICredentialType {\n\tname = 'inNotesApi';\n\tdisplayName = 'InNotes API';\n\tdocumentationUrl = 'https://innotes.me';\n\ticon: Icon = 'file:Logo_128.png';\n\tproperties: INodeProperties[] = [\n\t\t{\n\t\t\tdisplayName: 'Base URL',\n\t\t\tname: 'baseUrl',\n\t\t\ttype: 'string',\n\t\t\tdefault: 'https://innotes.me',\n\t\t\tdescription: 'The base URL of your InNotes instance',\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'Bearer Token',\n\t\t\tname: 'token',\n\t\t\ttype: 'string',\n\t\t\ttypeOptions: {\n\t\t\t\tpassword: true,\n\t\t\t},\n\t\t\tdefault: '',\n\t\t\tdescription: 'Your InNotes API Bearer token. Generate one in your dashboard settings.',\n\t\t\trequired: true,\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'Callback Secret',\n\t\t\tname: 'callbackSecret',\n\t\t\ttype: 'string',\n\t\t\ttypeOptions: {\n\t\t\t\tpassword: true,\n\t\t\t},\n\t\t\tdefault: '',\n\t\t\t// The old text said \"Found in your InNotes dashboard automation\n\t\t\t// settings\". That screen exists (app/dashboard/profile/AutomationSettings)\n\t\t\t// and renders no secret — the value is injected server-side when InNotes\n\t\t\t// provisions the credential, and the identifier appears nowhere under\n\t\t\t// app/ or components/. So the instruction could not be followed by\n\t\t\t// anyone setting this up by hand, which is the only case it addressed.\n\t\t\t//\n\t\t\t// It does NOT say \"optional, leave it empty\" either: the node throws\n\t\t\t// without it (InNotes.node.ts checks callbackSecret and raises\n\t\t\t// NodeApiError before building the request), so that advice would break\n\t\t\t// the very action the field exists for.\n\t\t\t// Author: Marco — 2026-08-03\n\t\t\tdescription:\n\t\t\t\t'Required for the \"Report Job Created\" action — that action fails without it. ' +\n\t\t\t\t'InNotes fills this in automatically when it provisions your automation. The value ' +\n\t\t\t\t'is not displayed anywhere in the dashboard, so a credential built by hand needs it ' +\n\t\t\t\t'from whoever provisioned the workflow.',\n\t\t},\n\t\t{\n\t\t\tdisplayName: 'Allowed Domains',\n\t\t\tname: 'allowedDomains',\n\t\t\ttype: 'string',\n\t\t\tdefault: '*',\n\t\t\tdescription: 'Domains allowed to use this credential (use * for all)',\n\t\t},\n\t];\n\n\tauthenticate: IAuthenticateGeneric = {\n\t\ttype: 'generic',\n\t\tproperties: {\n\t\t\theaders: {\n\t\t\t\t'Authorization': '=Bearer {{$credentials.token}}',\n\t\t\t},\n\t\t},\n\t};\n\n\ttest: ICredentialTestRequest = {\n\t\trequest: {\n\t\t\tbaseURL: '={{$credentials.baseUrl}}',\n\t\t\turl: '/api/user',\n\t\t\tmethod: 'GET',\n\t\t},\n\t};\n}\n"]}
|
|
@@ -45,7 +45,23 @@ export class InNotesApi implements ICredentialType {
|
|
|
45
45
|
password: true,
|
|
46
46
|
},
|
|
47
47
|
default: '',
|
|
48
|
-
|
|
48
|
+
// The old text said "Found in your InNotes dashboard automation
|
|
49
|
+
// settings". That screen exists (app/dashboard/profile/AutomationSettings)
|
|
50
|
+
// and renders no secret — the value is injected server-side when InNotes
|
|
51
|
+
// provisions the credential, and the identifier appears nowhere under
|
|
52
|
+
// app/ or components/. So the instruction could not be followed by
|
|
53
|
+
// anyone setting this up by hand, which is the only case it addressed.
|
|
54
|
+
//
|
|
55
|
+
// It does NOT say "optional, leave it empty" either: the node throws
|
|
56
|
+
// without it (InNotes.node.ts checks callbackSecret and raises
|
|
57
|
+
// NodeApiError before building the request), so that advice would break
|
|
58
|
+
// the very action the field exists for.
|
|
59
|
+
// Author: Marco — 2026-08-03
|
|
60
|
+
description:
|
|
61
|
+
'Required for the "Report Job Created" action — that action fails without it. ' +
|
|
62
|
+
'InNotes fills this in automatically when it provisions your automation. The value ' +
|
|
63
|
+
'is not displayed anywhere in the dashboard, so a credential built by hand needs it ' +
|
|
64
|
+
'from whoever provisioned the workflow.',
|
|
49
65
|
},
|
|
50
66
|
{
|
|
51
67
|
displayName: 'Allowed Domains',
|
package/dist/package.json
CHANGED