n8n-nodes-pash 0.1.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.
Files changed (46) hide show
  1. package/README.md +46 -0
  2. package/dist/credentials/PashApi.credentials.d.ts +10 -0
  3. package/dist/credentials/PashApi.credentials.js +47 -0
  4. package/dist/credentials/PashApi.credentials.js.map +1 -0
  5. package/dist/credentials/pash.dark.svg +23 -0
  6. package/dist/credentials/pash.svg +23 -0
  7. package/dist/nodes/Pash/Pash.node.d.ts +10 -0
  8. package/dist/nodes/Pash/Pash.node.js +103 -0
  9. package/dist/nodes/Pash/Pash.node.js.map +1 -0
  10. package/dist/nodes/Pash/Pash.node.json +19 -0
  11. package/dist/nodes/Pash/PashWebhook.node.d.ts +5 -0
  12. package/dist/nodes/Pash/PashWebhook.node.js +133 -0
  13. package/dist/nodes/Pash/PashWebhook.node.js.map +1 -0
  14. package/dist/nodes/Pash/PashWebhook.node.json +19 -0
  15. package/dist/nodes/Pash/pash.dark.svg +23 -0
  16. package/dist/nodes/Pash/pash.svg +23 -0
  17. package/dist/nodes/Pash/resources/api.d.ts +2 -0
  18. package/dist/nodes/Pash/resources/api.js +64 -0
  19. package/dist/nodes/Pash/resources/api.js.map +1 -0
  20. package/dist/nodes/Pash/resources/common.d.ts +2 -0
  21. package/dist/nodes/Pash/resources/common.js +33 -0
  22. package/dist/nodes/Pash/resources/common.js.map +1 -0
  23. package/dist/nodes/Pash/resources/list.d.ts +2 -0
  24. package/dist/nodes/Pash/resources/list.js +30 -0
  25. package/dist/nodes/Pash/resources/list.js.map +1 -0
  26. package/dist/nodes/Pash/resources/metadata.d.ts +2 -0
  27. package/dist/nodes/Pash/resources/metadata.js +67 -0
  28. package/dist/nodes/Pash/resources/metadata.js.map +1 -0
  29. package/dist/nodes/Pash/resources/methods.d.ts +6 -0
  30. package/dist/nodes/Pash/resources/methods.js +20 -0
  31. package/dist/nodes/Pash/resources/methods.js.map +1 -0
  32. package/dist/nodes/Pash/resources/notify.d.ts +2 -0
  33. package/dist/nodes/Pash/resources/notify.js +139 -0
  34. package/dist/nodes/Pash/resources/notify.js.map +1 -0
  35. package/dist/nodes/Pash/resources/professionals.d.ts +2 -0
  36. package/dist/nodes/Pash/resources/professionals.js +126 -0
  37. package/dist/nodes/Pash/resources/professionals.js.map +1 -0
  38. package/dist/nodes/Pash/resources/users.d.ts +2 -0
  39. package/dist/nodes/Pash/resources/users.js +83 -0
  40. package/dist/nodes/Pash/resources/users.js.map +1 -0
  41. package/dist/nodes/Pash/transport.d.ts +2 -0
  42. package/dist/nodes/Pash/transport.js +19 -0
  43. package/dist/nodes/Pash/transport.js.map +1 -0
  44. package/dist/package.json +37 -0
  45. package/dist/tsconfig.tsbuildinfo +1 -0
  46. package/package.json +51 -0
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # n8n-nodes-pash
2
+
3
+ This is an n8n community node. It lets you use _app/service name_ in your n8n workflows.
4
+
5
+ _App/service name_ is _one or two sentences describing the service this node integrates with_.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
8
+
9
+ [Installation](#installation)
10
+ [Operations](#operations)
11
+ [Credentials](#credentials)
12
+ [Compatibility](#compatibility)
13
+ [Usage](#usage)
14
+ [Resources](#resources)
15
+ [Version history](#version-history)
16
+
17
+ ## Installation
18
+
19
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
20
+
21
+ ## Operations
22
+
23
+ _List the operations supported by your node._
24
+
25
+ ## Credentials
26
+
27
+ _If users need to authenticate with the app/service, provide details here. You should include prerequisites (such as signing up with the service), available authentication methods, and how to set them up._
28
+
29
+ ## Compatibility
30
+
31
+ _State the minimum n8n version, as well as which versions you test against. You can also include any known version incompatibility issues._
32
+
33
+ ## Usage
34
+
35
+ _This is an optional section. Use it to help users with any difficult or confusing aspects of the node._
36
+
37
+ _By the time users are looking for community nodes, they probably already know n8n basics. But if you expect new users, you can link to the [Try it out](https://docs.n8n.io/try-it-out/) documentation to help them get started._
38
+
39
+ ## Resources
40
+
41
+ * [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
42
+ * _Link to app/service documentation._
43
+
44
+ ## Version history
45
+
46
+ _This is another optional section. If your node has multiple versions, include a short description of available versions and what changed, as well as any compatibility impact._
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PashApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PashApi = void 0;
4
+ class PashApi {
5
+ constructor() {
6
+ this.name = 'pashApi';
7
+ this.displayName = 'Pash Global API';
8
+ this.icon = {
9
+ light: 'file:pash.svg',
10
+ dark: 'file:pash.dark.svg',
11
+ };
12
+ this.documentationUrl = 'https://github.com/org/-pash?tab=readme-ov-file#credentials';
13
+ this.properties = [
14
+ {
15
+ displayName: 'Endpoint',
16
+ name: 'endpoint',
17
+ type: 'string',
18
+ required: true,
19
+ default: 'https://endpoint.domain.com/path'
20
+ },
21
+ {
22
+ displayName: 'Access Token',
23
+ name: 'accessToken',
24
+ type: 'string',
25
+ typeOptions: { password: true },
26
+ required: true,
27
+ default: ''
28
+ },
29
+ ];
30
+ this.authenticate = {
31
+ type: 'generic',
32
+ properties: {
33
+ headers: {
34
+ 'X-N8N-Authorization': '={{$credentials.accessToken}}',
35
+ },
36
+ },
37
+ };
38
+ this.test = {
39
+ request: {
40
+ method: 'GET',
41
+ url: '={{$credentials.endpoint}}'
42
+ },
43
+ };
44
+ }
45
+ }
46
+ exports.PashApi = PashApi;
47
+ //# sourceMappingURL=PashApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PashApi.credentials.js","sourceRoot":"","sources":["../../credentials/PashApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QAEjB,gBAAW,GAAG,iBAAiB,CAAA;QAE/B,SAAI,GAAS;YACZ,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,oBAAoB;SAC1B,CAAA;QAGD,qBAAgB,GAAG,6DAA6D,CAAA;QAEhF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,kCAAkC;aAC3C;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAA;QAED,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,qBAAqB,EAAE,+BAA+B;iBACtD;aACD;SACD,CAAA;QAED,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,4BAA4B;aACjC;SACD,CAAA;IACF,CAAC;CAAA;AA9CD,0BA8CC"}
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <!-- Creator: CorelDRAW -->
4
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="500px" height="500px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
5
+ viewBox="0 0 500 500"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ xmlns:xodm="http://www.corel.com/coreldraw/odm/2003">
8
+ <defs>
9
+ <style type="text/css">
10
+ <![CDATA[
11
+ .fil0 {fill:white}
12
+ ]]>
13
+ </style>
14
+ </defs>
15
+ <g id="Camada_x0020_1">
16
+ <metadata id="CorelCorpID_0Corel-Layer"/>
17
+ <g id="_1503325443072">
18
+ <path class="fil0" d="M0 290.66c36.98,74.05 165.17,123.13 260.5,123.13 93.09,0 232.45,-84.43 232.45,-118.89 0,-11.47 -1.91,-11.7 -4.01,-21.23 -29.96,-15.23 -28.91,-2.65 -49.23,15.78 -8.2,7.43 -15.16,11.1 -23.47,17.59 -107.49,83.87 -273.99,70.77 -365.09,-23.9 -22.58,-23.47 -36.22,-22.38 -51.15,7.52z"/>
19
+ <path class="fil0" d="M80.15 176.02c0,18.17 12.36,33.96 28.06,33.96 26.03,0 23.89,-23.63 56.11,-23.63 25.79,0 64.53,52.01 81.76,-0.53 4.34,-13.23 -3.03,-25.35 -11.27,-33.51 -66.43,-65.82 -154.66,-7.57 -154.66,23.71z"/>
20
+ <path class="fil0" d="M324.63 171.77c0,24.08 16.59,38.21 28.05,38.21 25.39,0 24.47,-23.31 56.62,-24.17 29.21,-0.78 29.86,24.17 55.6,24.17 7.58,0 61.67,-28.74 -4.12,-72.07 -70.53,-46.45 -136.15,19.82 -136.15,33.86z"/>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <!-- Creator: CorelDRAW -->
4
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="500px" height="500px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
5
+ viewBox="0 0 500 500"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ xmlns:xodm="http://www.corel.com/coreldraw/odm/2003">
8
+ <defs>
9
+ <style type="text/css">
10
+ <![CDATA[
11
+ .fil0 {fill:#14A0A5}
12
+ ]]>
13
+ </style>
14
+ </defs>
15
+ <g id="Camada_x0020_1">
16
+ <metadata id="CorelCorpID_0Corel-Layer"/>
17
+ <g id="_1503328732864">
18
+ <path class="fil0" d="M0 290.66c36.98,74.05 165.17,123.13 260.5,123.13 93.09,0 232.45,-84.43 232.45,-118.89 0,-11.47 -1.91,-11.7 -4.01,-21.23 -29.96,-15.23 -28.91,-2.65 -49.23,15.78 -8.2,7.43 -15.16,11.1 -23.47,17.59 -107.49,83.87 -273.99,70.77 -365.09,-23.9 -22.58,-23.47 -36.22,-22.38 -51.15,7.52z"/>
19
+ <path class="fil0" d="M80.15 176.02c0,18.17 12.36,33.96 28.06,33.96 26.03,0 23.89,-23.63 56.11,-23.63 25.79,0 64.53,52.01 81.76,-0.53 4.34,-13.23 -3.03,-25.35 -11.27,-33.51 -66.43,-65.82 -154.66,-7.57 -154.66,23.71z"/>
20
+ <path class="fil0" d="M324.63 171.77c0,24.08 16.59,38.21 28.05,38.21 25.39,0 24.47,-23.31 56.62,-24.17 29.21,-0.78 29.86,24.17 55.6,24.17 7.58,0 61.67,-28.74 -4.12,-72.07 -70.53,-46.45 -136.15,19.82 -136.15,33.86z"/>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -0,0 +1,10 @@
1
+ import { IExecuteFunctions, INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Pash implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getServices(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
7
+ };
8
+ };
9
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
10
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pash = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const users_1 = require("./resources/users");
6
+ const professionals_1 = require("./resources/professionals");
7
+ const common_1 = require("./resources/common");
8
+ const notify_1 = require("./resources/notify");
9
+ const transport_1 = require("./transport");
10
+ const metadata_1 = require("./resources/metadata");
11
+ const api_1 = require("./resources/api");
12
+ const list_1 = require("./resources/list");
13
+ const methods_1 = require("./resources/methods");
14
+ class Pash {
15
+ constructor() {
16
+ this.description = {
17
+ displayName: 'Pash',
18
+ name: 'pash',
19
+ icon: { light: 'file:pash.svg', dark: 'file:pash.dark.svg' },
20
+ group: ['transform'],
21
+ version: 1,
22
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
23
+ description: 'Interação com a Plataforma Pash',
24
+ defaults: {
25
+ name: 'Pash',
26
+ },
27
+ usableAsTool: true,
28
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
29
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
30
+ credentials: [{ name: 'pashApi', required: true }],
31
+ properties: [
32
+ ...common_1.common_config,
33
+ ...users_1.users_config,
34
+ ...professionals_1.professionals_config,
35
+ ...metadata_1.metadata_config,
36
+ ...list_1.list_config,
37
+ ...notify_1.notify_config,
38
+ ...api_1.api_config
39
+ ],
40
+ };
41
+ this.methods = methods_1.methods_config;
42
+ }
43
+ async execute() {
44
+ const operation = this.getNodeParameter('operation', 0, '');
45
+ const resource = this.getNodeParameter('resource', 0, '');
46
+ const id = resource === 'user' ? this.getNodeParameter('user_id', 0, '') : this.getNodeParameter('professional_id', 0, '');
47
+ const callback = [];
48
+ if (operation === 'get') {
49
+ const response = await transport_1.pashApiRequest.call(this, 'GET', `/${resource}s/${id}`);
50
+ callback.push({ json: response });
51
+ }
52
+ if (operation === 'list') {
53
+ const page = this.getNodeParameter('page', 0, 1);
54
+ const per_page = this.getNodeParameter('per_page', 0, 10);
55
+ const status = this.getNodeParameter('filters.status', 0, null);
56
+ const term = this.getNodeParameter('filters.term', 0, '');
57
+ const services = this.getNodeParameter('filters.services', 0, null);
58
+ const response = await transport_1.pashApiRequest.call(this, 'GET', `/${resource}s`, {}, { page, per_page, status, term, services });
59
+ callback.push({ json: response });
60
+ }
61
+ if (operation === 'notify') {
62
+ const channel = this.getNodeParameter('channel', 0, '');
63
+ if (channel === 'push') {
64
+ const response = await transport_1.pashApiRequest.call(this, 'POST', `/notify/push`, {
65
+ id,
66
+ model: resource,
67
+ title: this.getNodeParameter('push_notification.title', 0, ''),
68
+ body: this.getNodeParameter('push_notification.body', 0, ''),
69
+ priority: this.getNodeParameter('push_notification.priority', 0, 'low'),
70
+ channel_id: this.getNodeParameter('push_notification.channel_id', 0, 'low'),
71
+ buttons: this.getNodeParameter('push_notification.buttons.button', 0, [])
72
+ });
73
+ callback.push({ json: response });
74
+ }
75
+ }
76
+ if (operation === 'insights') {
77
+ const response = await transport_1.pashApiRequest.call(this, 'GET', `/insights/${resource}/${id}`);
78
+ callback.push({ json: response });
79
+ }
80
+ if (operation === 'metadata') {
81
+ const metadata_operation = this.getNodeParameter('metadata_operation', 0, '');
82
+ if (metadata_operation === 'get') {
83
+ const response = await transport_1.pashApiRequest.call(this, 'GET', `/metadata/${resource}/${id}`);
84
+ callback.push({ json: response });
85
+ }
86
+ if (metadata_operation === 'set') {
87
+ const response = await transport_1.pashApiRequest.call(this, 'PUT', `/metadata/${resource}/${id}`, {
88
+ metadata: this.getNodeParameter('metadata.metadata', 0, [])
89
+ });
90
+ callback.push({ json: response });
91
+ }
92
+ }
93
+ if (resource === 'api') {
94
+ const path = this.getNodeParameter('path', 0, '');
95
+ const body = this.getNodeParameter('body', 0, '');
96
+ const response = await transport_1.pashApiRequest.call(this, operation, path, body);
97
+ callback.push({ json: response });
98
+ }
99
+ return [callback];
100
+ }
101
+ }
102
+ exports.Pash = Pash;
103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,oBAuHC"}
@@ -0,0 +1,19 @@
1
+ {
2
+ "node": "n8n-nodes-pash",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "alias": ["pash"],
7
+ "resources": {
8
+ "credentialDocumentation": [
9
+ {
10
+ "url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
11
+ }
12
+ ],
13
+ "primaryDocumentation": [
14
+ {
15
+ "url": "https://github.com/org/repo?tab=readme-ov-file"
16
+ }
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,5 @@
1
+ import type { IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow';
2
+ export declare class PashWebhook implements INodeType {
3
+ description: INodeTypeDescription;
4
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
5
+ }
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PashWebhook = void 0;
4
+ class PashWebhook {
5
+ constructor() {
6
+ this.description = {
7
+ displayName: 'Pash Webhooks',
8
+ name: 'pashWebhook',
9
+ icon: 'file:pash.svg',
10
+ group: ['trigger'],
11
+ version: 1,
12
+ usableAsTool: true,
13
+ description: 'Recebe eventos de Pash',
14
+ defaults: {
15
+ name: 'Pash Webhook',
16
+ },
17
+ inputs: [],
18
+ outputs: ['main'],
19
+ properties: [
20
+ {
21
+ displayName: 'Recurso',
22
+ name: 'resource',
23
+ type: 'options',
24
+ default: 'users',
25
+ noDataExpression: true,
26
+ options: [
27
+ {
28
+ name: 'Usuário',
29
+ value: 'users'
30
+ },
31
+ {
32
+ name: 'Profissional',
33
+ value: 'professionals'
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ displayName: 'Evento',
39
+ name: 'operation',
40
+ type: 'options',
41
+ noDataExpression: true,
42
+ default: 'users/registered',
43
+ displayOptions: {
44
+ show: {
45
+ resource: ['users']
46
+ }
47
+ },
48
+ options: [
49
+ {
50
+ name: 'Registrado',
51
+ value: 'users/registered',
52
+ action: 'Usuário registrado',
53
+ description: 'Quando um usuário é registrado'
54
+ },
55
+ {
56
+ name: 'Atualizado',
57
+ value: 'users/updated',
58
+ action: 'Usuário atualizado',
59
+ description: 'Quando um usuário é atualizado'
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ displayName: 'Evento',
65
+ name: 'operation',
66
+ type: 'options',
67
+ noDataExpression: true,
68
+ default: 'professionals/registered',
69
+ displayOptions: {
70
+ show: {
71
+ resource: ['professionals']
72
+ }
73
+ },
74
+ options: [
75
+ {
76
+ name: 'Registrado',
77
+ value: 'professionals/registered',
78
+ action: 'Profissional registrado',
79
+ description: 'Quando um profissional é registrado'
80
+ },
81
+ {
82
+ name: 'Atualizado',
83
+ value: 'professionals/updated',
84
+ action: 'Profissional atualizado',
85
+ description: 'Quando um profissional é atualizado'
86
+ },
87
+ {
88
+ name: 'Credenciamento Enviado',
89
+ value: 'professionals/submited',
90
+ action: 'Credenciamento enviado',
91
+ description: 'Quando um profissional submete o credenciamento'
92
+ },
93
+ {
94
+ name: 'Onboarding Finalizado',
95
+ value: 'professionals/started',
96
+ action: 'Onboarding finalizado',
97
+ description: 'Quando um profissional finaliza o onboarding'
98
+ },
99
+ ]
100
+ }
101
+ ],
102
+ webhooks: [
103
+ {
104
+ name: 'default',
105
+ httpMethod: 'POST',
106
+ responseMode: 'onReceived',
107
+ path: '={{"platform/" + $parameter["operation"]}}',
108
+ isFullPath: true
109
+ },
110
+ ],
111
+ };
112
+ }
113
+ async webhook() {
114
+ const body = this.getBodyData();
115
+ const headers = this.getHeaderData();
116
+ const query = this.getQueryData();
117
+ return {
118
+ workflowData: [
119
+ [
120
+ {
121
+ json: {
122
+ body,
123
+ headers,
124
+ query,
125
+ },
126
+ },
127
+ ],
128
+ ],
129
+ };
130
+ }
131
+ }
132
+ exports.PashWebhook = PashWebhook;
133
+ //# sourceMappingURL=PashWebhook.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P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BACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CACD;AA1ID,kCA0IC"}
@@ -0,0 +1,19 @@
1
+ {
2
+ "node": "n8n-nodes-pashTrigger",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/org/repo?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ },
18
+ "alias": ["pash"]
19
+ }
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <!-- Creator: CorelDRAW -->
4
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="500px" height="500px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
5
+ viewBox="0 0 500 500"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ xmlns:xodm="http://www.corel.com/coreldraw/odm/2003">
8
+ <defs>
9
+ <style type="text/css">
10
+ <![CDATA[
11
+ .fil0 {fill:white}
12
+ ]]>
13
+ </style>
14
+ </defs>
15
+ <g id="Camada_x0020_1">
16
+ <metadata id="CorelCorpID_0Corel-Layer"/>
17
+ <g id="_1503325443072">
18
+ <path class="fil0" d="M0 290.66c36.98,74.05 165.17,123.13 260.5,123.13 93.09,0 232.45,-84.43 232.45,-118.89 0,-11.47 -1.91,-11.7 -4.01,-21.23 -29.96,-15.23 -28.91,-2.65 -49.23,15.78 -8.2,7.43 -15.16,11.1 -23.47,17.59 -107.49,83.87 -273.99,70.77 -365.09,-23.9 -22.58,-23.47 -36.22,-22.38 -51.15,7.52z"/>
19
+ <path class="fil0" d="M80.15 176.02c0,18.17 12.36,33.96 28.06,33.96 26.03,0 23.89,-23.63 56.11,-23.63 25.79,0 64.53,52.01 81.76,-0.53 4.34,-13.23 -3.03,-25.35 -11.27,-33.51 -66.43,-65.82 -154.66,-7.57 -154.66,23.71z"/>
20
+ <path class="fil0" d="M324.63 171.77c0,24.08 16.59,38.21 28.05,38.21 25.39,0 24.47,-23.31 56.62,-24.17 29.21,-0.78 29.86,24.17 55.6,24.17 7.58,0 61.67,-28.74 -4.12,-72.07 -70.53,-46.45 -136.15,19.82 -136.15,33.86z"/>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <!-- Creator: CorelDRAW -->
4
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="500px" height="500px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
5
+ viewBox="0 0 500 500"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ xmlns:xodm="http://www.corel.com/coreldraw/odm/2003">
8
+ <defs>
9
+ <style type="text/css">
10
+ <![CDATA[
11
+ .fil0 {fill:#14A0A5}
12
+ ]]>
13
+ </style>
14
+ </defs>
15
+ <g id="Camada_x0020_1">
16
+ <metadata id="CorelCorpID_0Corel-Layer"/>
17
+ <g id="_1503328732864">
18
+ <path class="fil0" d="M0 290.66c36.98,74.05 165.17,123.13 260.5,123.13 93.09,0 232.45,-84.43 232.45,-118.89 0,-11.47 -1.91,-11.7 -4.01,-21.23 -29.96,-15.23 -28.91,-2.65 -49.23,15.78 -8.2,7.43 -15.16,11.1 -23.47,17.59 -107.49,83.87 -273.99,70.77 -365.09,-23.9 -22.58,-23.47 -36.22,-22.38 -51.15,7.52z"/>
19
+ <path class="fil0" d="M80.15 176.02c0,18.17 12.36,33.96 28.06,33.96 26.03,0 23.89,-23.63 56.11,-23.63 25.79,0 64.53,52.01 81.76,-0.53 4.34,-13.23 -3.03,-25.35 -11.27,-33.51 -66.43,-65.82 -154.66,-7.57 -154.66,23.71z"/>
20
+ <path class="fil0" d="M324.63 171.77c0,24.08 16.59,38.21 28.05,38.21 25.39,0 24.47,-23.31 56.62,-24.17 29.21,-0.78 29.86,24.17 55.6,24.17 7.58,0 61.67,-28.74 -4.12,-72.07 -70.53,-46.45 -136.15,19.82 -136.15,33.86z"/>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from "n8n-workflow";
2
+ export declare const api_config: INodeProperties[];
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.api_config = void 0;
4
+ exports.api_config = [
5
+ {
6
+ displayName: 'Método',
7
+ description: "Tipo de operação na API",
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ default: 'GET',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['api']
15
+ }
16
+ },
17
+ options: [
18
+ {
19
+ name: 'GET',
20
+ value: 'GET',
21
+ action: 'GET'
22
+ },
23
+ {
24
+ name: 'POST',
25
+ value: 'POST',
26
+ action: 'POST'
27
+ },
28
+ {
29
+ name: 'PUT',
30
+ value: 'PUT',
31
+ action: 'PUT'
32
+ },
33
+ {
34
+ name: 'DELETE',
35
+ value: 'DELETE',
36
+ action: 'DELETE'
37
+ }
38
+ ],
39
+ },
40
+ {
41
+ displayName: 'Path',
42
+ name: 'path',
43
+ default: '/users',
44
+ type: 'string',
45
+ displayOptions: {
46
+ show: {
47
+ resource: ['api']
48
+ }
49
+ },
50
+ },
51
+ {
52
+ displayName: 'Corpo',
53
+ name: 'body',
54
+ default: '',
55
+ type: 'json',
56
+ displayOptions: {
57
+ show: {
58
+ resource: ['api'],
59
+ operation: ['POST', 'PUT']
60
+ }
61
+ },
62
+ }
63
+ ];
64
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../nodes/Pash/resources/api.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAsB;IAG5C;QACC,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;aACjB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,KAAK;aACb;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;aACd;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,KAAK;aACb;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,QAAQ;aAChB;SACD;KACD;IAGD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;aACjB;SACD;KACD;IAGD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,SAAS,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;aAC1B;SACD;KACD;CAGD,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from "n8n-workflow";
2
+ export declare const common_config: INodeProperties[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.common_config = void 0;
4
+ exports.common_config = [
5
+ {
6
+ displayName: 'Recurso',
7
+ name: 'resource',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ options: [
11
+ {
12
+ name: 'Usuário',
13
+ value: 'user',
14
+ action: 'user',
15
+ description: 'Operações de usuários'
16
+ },
17
+ {
18
+ name: 'Profissional',
19
+ value: 'professional',
20
+ action: 'professional',
21
+ description: 'Operação de profissionais'
22
+ },
23
+ {
24
+ name: 'API',
25
+ value: 'api',
26
+ action: 'API',
27
+ description: 'Chamada na API'
28
+ }
29
+ ],
30
+ default: 'user'
31
+ },
32
+ ];
33
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../nodes/Pash/resources/common.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAsB;IAG5C;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,WAAW,EAAE,uBAAuB;aACvC;YACD;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,cAAc;gBACrB,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,2BAA2B;aAC3C;YACD;gBACI,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,KAAK;gBACb,WAAW,EAAE,gBAAgB;aAChC;SACJ;QACD,OAAO,EAAE,MAAM;KAClB;CAEJ,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from "n8n-workflow";
2
+ export declare const list_config: INodeProperties[];