@ridhamgolakiya/n8n-nodes-pinterest 1.0.0

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,39 @@
1
+ import {
2
+ ICredentialType,
3
+ INodeProperties,
4
+ } from 'n8n-workflow';
5
+
6
+ export class PinterestOAuth2Api implements ICredentialType {
7
+ name = 'pinterestOAuth2Api';
8
+ displayName = 'Pinterest OAuth2 API';
9
+ extends = ['oAuth2Api'];
10
+ icon = { light: 'file:pinterest-light.svg', dark: 'file:pinterest-dark.svg' } as const;
11
+ documentationUrl = 'https://developers.pinterest.com/docs/api/v5/';
12
+ properties: INodeProperties[] = [
13
+ {
14
+ displayName: 'Authorization URL',
15
+ name: 'authUrl',
16
+ type: 'hidden',
17
+ default: 'https://www.pinterest.com/oauth/',
18
+ },
19
+ {
20
+ displayName: 'Access Token URL',
21
+ name: 'accessTokenUrl',
22
+ type: 'hidden',
23
+ default: 'https://api.pinterest.com/v5/oauth/token',
24
+ },
25
+ {
26
+ displayName: 'Scope',
27
+ name: 'scope',
28
+ type: 'string',
29
+ default: 'boards:read,boards:write,pins:read,pins:write,ads:read,user_accounts:read',
30
+ description: 'The scopes to request, separated by commas',
31
+ },
32
+ {
33
+ displayName: 'Auth URI Query Parameters',
34
+ name: 'authQueryParameters',
35
+ type: 'hidden',
36
+ default: 'access_type=offline',
37
+ },
38
+ ];
39
+ }
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,12 @@
1
+ import { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PinterestOAuth2Api implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ extends: string[];
6
+ icon: {
7
+ readonly light: "file:pinterest-light.svg";
8
+ readonly dark: "file:pinterest-dark.svg";
9
+ };
10
+ documentationUrl: string;
11
+ properties: INodeProperties[];
12
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PinterestOAuth2Api = void 0;
4
+ class PinterestOAuth2Api {
5
+ constructor() {
6
+ this.name = 'pinterestOAuth2Api';
7
+ this.displayName = 'Pinterest OAuth2 API';
8
+ this.extends = ['oAuth2Api'];
9
+ this.icon = { light: 'file:pinterest-light.svg', dark: 'file:pinterest-dark.svg' };
10
+ this.documentationUrl = 'https://developers.pinterest.com/docs/api/v5/';
11
+ this.properties = [
12
+ {
13
+ displayName: 'Authorization URL',
14
+ name: 'authUrl',
15
+ type: 'hidden',
16
+ default: 'https://www.pinterest.com/oauth/',
17
+ },
18
+ {
19
+ displayName: 'Access Token URL',
20
+ name: 'accessTokenUrl',
21
+ type: 'hidden',
22
+ default: 'https://api.pinterest.com/v5/oauth/token',
23
+ },
24
+ {
25
+ displayName: 'Scope',
26
+ name: 'scope',
27
+ type: 'string',
28
+ default: 'boards:read,boards:write,pins:read,pins:write,ads:read,user_accounts:read',
29
+ description: 'The scopes to request, separated by commas',
30
+ },
31
+ {
32
+ displayName: 'Auth URI Query Parameters',
33
+ name: 'authQueryParameters',
34
+ type: 'hidden',
35
+ default: 'access_type=offline',
36
+ },
37
+ ];
38
+ }
39
+ }
40
+ exports.PinterestOAuth2Api = PinterestOAuth2Api;
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
3
+ <path fill="#E60023" d="M12 0C5.37 0 0 5.37 0 12c0 5.08 3.16 9.42 7.63 11.16-.1-.95-.2-2.4.04-3.43.22-.93 1.4-5.93 1.4-5.93s-.36-.72-.36-1.77c0-1.66.96-2.9 2.16-2.9 1.02 0 1.51.77 1.51 1.68 0 1.03-.65 2.56-.99 3.98-.28 1.19.6 2.16 1.77 2.16 2.12 0 3.76-2.24 3.76-5.47 0-2.86-2.06-4.86-5-4.86-3.4 0-5.4 2.56-5.4 5.2 0 1.03.4 2.13.9 2.73.1.12.11.23.08.35-.1.39-.3 1.25-.35 1.42-.06.26-.2.32-.47.2-1.77-.82-2.87-3.4-2.87-5.47 0-4.46 3.24-8.56 9.35-8.56 4.9 0 8.7 3.5 8.7 8.16 0 4.88-3.08 8.8-7.36 8.8-1.44 0-2.8-0.75-3.26-1.63l-1.1 4.19c-.4 1.52-1.48 3.42-2.2 4.54 1.12.35 2.3.54 3.52.54 6.63 0 12-5.37 12-12S18.63 0 12 0z"/>
4
+ </svg>
@@ -0,0 +1,11 @@
1
+ import { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Pinterest implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getBoards(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getAdAccounts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
+ };
9
+ };
10
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
11
+ }