n8n-nodes-smartsuite 2.0.11 → 2.0.13

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.
@@ -1,8 +1,9 @@
1
- import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
1
+ import type { ICredentialType, INodeProperties, IAuthenticateGeneric, Icon } from 'n8n-workflow';
2
2
  export declare class SmartSuiteApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
5
  icon: Icon;
6
6
  documentationUrl: string;
7
+ authenticate: IAuthenticateGeneric;
7
8
  properties: INodeProperties[];
8
9
  }
@@ -6,23 +6,33 @@ class SmartSuiteApi {
6
6
  displayName = 'SmartSuite API';
7
7
  icon = 'file:SmartSuiteApi.svg';
8
8
  documentationUrl = 'https://developers.smartsuite.com/docs/authentication';
9
+ // ← add **this** back
10
+ authenticate = {
11
+ type: 'generic',
12
+ properties: {
13
+ headers: {
14
+ Authorization: 'Token {{$credentials.apiKey}}',
15
+ 'Account-Id': '{{$credentials.accountId}}',
16
+ },
17
+ },
18
+ };
9
19
  properties = [
10
20
  {
11
- displayName: 'API Key',
21
+ displayName: 'API Token (No "Token” prefix)',
12
22
  name: 'apiKey',
13
23
  type: 'string',
14
24
  typeOptions: { password: true },
15
25
  default: '',
16
26
  required: true,
17
- description: 'Your SmartSuite API key',
27
+ description: 'Your SmartSuite API key (raw token only—do not include “Token”).',
18
28
  },
19
29
  {
20
- displayName: 'Account ID',
30
+ displayName: 'Workspace ID',
21
31
  name: 'accountId',
22
32
  type: 'string',
23
33
  default: '',
24
34
  required: true,
25
- description: 'Your SmartSuite Account ID',
35
+ description: 'Your SmartSuite workspace ID (the 8-character identifier).',
26
36
  },
27
37
  {
28
38
  displayName: 'Base URL',
@@ -1 +1 @@
1
- {"version":3,"file":"SmartSuiteApi.credentials.js","sourceRoot":"","sources":["../../src/credentials/SmartSuiteApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,aAAa;IACxB,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAAG,gBAAgB,CAAC;IAC/B,IAAI,GAAS,wBAAwB,CAAC;IACtC,gBAAgB,GAAG,uDAAuD,CAAC;IAC3E,UAAU,GAAsB;QAC9B;YACE,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,yBAAyB;SACvC;QACD;YACE,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;SAC1C;QACD;YACE,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mCAAmC;YAC5C,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,qCAAqC;SACnD;KACF,CAAC;CACH;AAhCD,sCAgCC"}
1
+ {"version":3,"file":"SmartSuiteApi.credentials.js","sourceRoot":"","sources":["../../src/credentials/SmartSuiteApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,aAAa;IACxB,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAAG,gBAAgB,CAAC;IAC/B,IAAI,GAAS,wBAAwB,CAAC;IACtC,gBAAgB,GAAG,uDAAuD,CAAC;IAE3E,sBAAsB;IACtB,YAAY,GAAyB;QACnC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,aAAa,EAAE,+BAA+B;gBAC9C,YAAY,EAAE,4BAA4B;aAC3C;SACF;KACF,CAAC;IAEF,UAAU,GAAsB;QAC9B;YACE,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,kEAAkE;SACrE;QACD;YACE,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,4DAA4D;SAC/D;QACD;YACE,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mCAAmC;YAC5C,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,qCAAqC;SACnD;KACF,CAAC;CACH;AA9CD,sCA8CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-smartsuite",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "n8n community node for SmartSuite",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",