n8n-nodes-metricool-or 0.3.1 → 0.3.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.
@@ -8,8 +8,10 @@ export declare class MetricoolApi implements ICredentialType {
8
8
  type: "generic";
9
9
  properties: {
10
10
  headers: {
11
- 'X-Auth-Token': string;
12
- 'X-Auth-UserId': string;
11
+ 'X-Mc-Auth': string;
12
+ };
13
+ qs: {
14
+ userId: string;
13
15
  };
14
16
  };
15
17
  };
@@ -20,11 +22,10 @@ export declare class MetricoolApi implements ICredentialType {
20
22
  method: "GET";
21
23
  };
22
24
  rules: {
23
- type: "responseSuccessBody";
25
+ type: "responseCode";
24
26
  properties: {
27
+ value: number;
25
28
  message: string;
26
- key: string;
27
- value: string;
28
29
  };
29
30
  }[];
30
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MetricoolApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MetricoolApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,eAAe,EAClB,MAAM,cAAc,CAAC;AAEtB,qBAAa,YAAa,YAAW,eAAe;IAChD,IAAI,SAAkB;IACtB,WAAW,SAAmB;IAC9B,gBAAgB,SAAqC;IACrD,UAAU,EAAE,eAAe,EAAE,CAoB3B;IACF,YAAY;;;;;;;;MAQV;IACF,IAAI;;;;;;;;;;;;;;MAgBF;CACL"}
1
+ {"version":3,"file":"MetricoolApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/MetricoolApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,eAAe,EAClB,MAAM,cAAc,CAAC;AAEtB,qBAAa,YAAa,YAAW,eAAe;IAChD,IAAI,SAAkB;IACtB,WAAW,SAAmB;IAC9B,gBAAgB,SAAqC;IACrD,UAAU,EAAE,eAAe,EAAE,CAoB3B;IACF,YAAY;;;;;;;;;;MAUV;IACF,IAAI;;;;;;;;;;;;;MAeF;CACL"}
@@ -31,24 +31,25 @@ class MetricoolApi {
31
31
  type: 'generic',
32
32
  properties: {
33
33
  headers: {
34
- 'X-Auth-Token': '={{$credentials.userToken}}',
35
- 'X-Auth-UserId': '={{$credentials.userId}}',
34
+ 'X-Mc-Auth': '={{$credentials.userToken}}',
35
+ },
36
+ qs: {
37
+ 'userId': '={{$credentials.userId}}',
36
38
  },
37
39
  },
38
40
  };
39
41
  this.test = {
40
42
  request: {
41
- baseURL: 'https://app.metricool.com/api/v1',
42
- url: '/brands',
43
+ baseURL: 'https://app.metricool.com/api',
44
+ url: '/admin/simpleProfiles',
43
45
  method: 'GET',
44
46
  },
45
47
  rules: [
46
48
  {
47
- type: 'responseSuccessBody',
49
+ type: 'responseCode',
48
50
  properties: {
49
- message: 'API credentials are valid',
50
- key: 'data',
51
- value: 'array',
51
+ value: 200,
52
+ message: 'Metricool API test failed',
52
53
  },
53
54
  },
54
55
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"MetricoolApi.credentials.js","sourceRoot":"","sources":["../../credentials/MetricoolApi.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;IAAzB;QACI,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,iCAAiC,CAAC;QACrD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,WAAW,EAAE,+EAA+E;aAC/F;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4EAA4E;aAC5F;SACJ,CAAC;QACF,iBAAY,GAAG;YACX,IAAI,EAAE,SAAkB;YACxB,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,cAAc,EAAE,6BAA6B;oBAC7C,eAAe,EAAE,0BAA0B;iBAC9C;aACJ;SACJ,CAAC;QACF,SAAI,GAAG;YACH,OAAO,EAAE;gBACL,OAAO,EAAE,kCAAkC;gBAC3C,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,KAAc;aACzB;YACD,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,qBAA8B;oBACpC,UAAU,EAAE;wBACR,OAAO,EAAE,2BAA2B;wBACpC,GAAG,EAAE,MAAM;wBACX,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;SACJ,CAAC;IACN,CAAC;CAAA;AAnDD,oCAmDC"}
1
+ {"version":3,"file":"MetricoolApi.credentials.js","sourceRoot":"","sources":["../../credentials/MetricoolApi.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;IAAzB;QACI,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,eAAe,CAAC;QAC9B,qBAAgB,GAAG,iCAAiC,CAAC;QACrD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,WAAW,EAAE,+EAA+E;aAC/F;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4EAA4E;aAC5F;SACJ,CAAC;QACF,iBAAY,GAAG;YACX,IAAI,EAAE,SAAkB;YACxB,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,WAAW,EAAE,6BAA6B;iBAC7C;gBACD,EAAE,EAAE;oBACA,QAAQ,EAAE,0BAA0B;iBACvC;aACJ;SACJ,CAAC;QACF,SAAI,GAAG;YACH,OAAO,EAAE;gBACL,OAAO,EAAE,+BAA+B;gBACxC,GAAG,EAAE,uBAAuB;gBAC5B,MAAM,EAAE,KAAc;aACzB;YACD,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,cAAuB;oBAC7B,UAAU,EAAE;wBACR,KAAK,EAAE,GAAG;wBACV,OAAO,EAAE,2BAA2B;qBACvC;iBACJ;aACJ;SACJ,CAAC;IACN,CAAC;CAAA;AApDD,oCAoDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-metricool-or",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "n8n node to integrate with Metricool social media management platform",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",