n8n-nodes-afipsdk 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.
Files changed (59) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +68 -0
  3. package/dist/credentials/AfipSdkApi.credentials.d.ts +10 -0
  4. package/dist/credentials/AfipSdkApi.credentials.js +42 -0
  5. package/dist/credentials/AfipSdkApi.credentials.js.map +1 -0
  6. package/dist/icons/afipsdk.dark.svg +12 -0
  7. package/dist/icons/afipsdk.svg +12 -0
  8. package/dist/nodes/AfipSdk/AfipSdk.node.d.ts +5 -0
  9. package/dist/nodes/AfipSdk/AfipSdk.node.js +165 -0
  10. package/dist/nodes/AfipSdk/AfipSdk.node.js.map +1 -0
  11. package/dist/nodes/AfipSdk/AfipSdk.node.json +13 -0
  12. package/dist/nodes/AfipSdk/resources/createPdf/execute.d.ts +2 -0
  13. package/dist/nodes/AfipSdk/resources/createPdf/execute.js +21 -0
  14. package/dist/nodes/AfipSdk/resources/createPdf/execute.js.map +1 -0
  15. package/dist/nodes/AfipSdk/resources/createPdf/index.d.ts +2 -0
  16. package/dist/nodes/AfipSdk/resources/createPdf/index.js +12 -0
  17. package/dist/nodes/AfipSdk/resources/createPdf/index.js.map +1 -0
  18. package/dist/nodes/AfipSdk/resources/getAutomationResult/execute.d.ts +2 -0
  19. package/dist/nodes/AfipSdk/resources/getAutomationResult/execute.js +27 -0
  20. package/dist/nodes/AfipSdk/resources/getAutomationResult/execute.js.map +1 -0
  21. package/dist/nodes/AfipSdk/resources/getAutomationResult/index.d.ts +2 -0
  22. package/dist/nodes/AfipSdk/resources/getAutomationResult/index.js +30 -0
  23. package/dist/nodes/AfipSdk/resources/getAutomationResult/index.js.map +1 -0
  24. package/dist/nodes/AfipSdk/resources/getLastXml/execute.d.ts +2 -0
  25. package/dist/nodes/AfipSdk/resources/getLastXml/execute.js +18 -0
  26. package/dist/nodes/AfipSdk/resources/getLastXml/execute.js.map +1 -0
  27. package/dist/nodes/AfipSdk/resources/getTokenAuth/execute.d.ts +2 -0
  28. package/dist/nodes/AfipSdk/resources/getTokenAuth/execute.js +28 -0
  29. package/dist/nodes/AfipSdk/resources/getTokenAuth/execute.js.map +1 -0
  30. package/dist/nodes/AfipSdk/resources/getTokenAuth/index.d.ts +2 -0
  31. package/dist/nodes/AfipSdk/resources/getTokenAuth/index.js +37 -0
  32. package/dist/nodes/AfipSdk/resources/getTokenAuth/index.js.map +1 -0
  33. package/dist/nodes/AfipSdk/resources/makeRequest/execute.d.ts +2 -0
  34. package/dist/nodes/AfipSdk/resources/makeRequest/execute.js +21 -0
  35. package/dist/nodes/AfipSdk/resources/makeRequest/execute.js.map +1 -0
  36. package/dist/nodes/AfipSdk/resources/makeRequest/index.d.ts +2 -0
  37. package/dist/nodes/AfipSdk/resources/makeRequest/index.js +8 -0
  38. package/dist/nodes/AfipSdk/resources/makeRequest/index.js.map +1 -0
  39. package/dist/nodes/AfipSdk/resources/runAutomation/execute.d.ts +2 -0
  40. package/dist/nodes/AfipSdk/resources/runAutomation/execute.js +25 -0
  41. package/dist/nodes/AfipSdk/resources/runAutomation/execute.js.map +1 -0
  42. package/dist/nodes/AfipSdk/resources/runAutomation/index.d.ts +2 -0
  43. package/dist/nodes/AfipSdk/resources/runAutomation/index.js +11 -0
  44. package/dist/nodes/AfipSdk/resources/runAutomation/index.js.map +1 -0
  45. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/execute.d.ts +2 -0
  46. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/execute.js +38 -0
  47. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/execute.js.map +1 -0
  48. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/index.d.ts +2 -0
  49. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/index.js +11 -0
  50. package/dist/nodes/AfipSdk/resources/runAutomationAndWait/index.js.map +1 -0
  51. package/dist/nodes/AfipSdk/shared/fields.d.ts +6 -0
  52. package/dist/nodes/AfipSdk/shared/fields.js +22 -0
  53. package/dist/nodes/AfipSdk/shared/fields.js.map +1 -0
  54. package/dist/nodes/AfipSdk/utils.d.ts +2 -0
  55. package/dist/nodes/AfipSdk/utils.js +14 -0
  56. package/dist/nodes/AfipSdk/utils.js.map +1 -0
  57. package/dist/package.json +53 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -0
  59. package/package.json +53 -0
package/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022 n8n
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # n8n-nodes-afipsdk
2
+
3
+ This is an n8n community node that lets you use **Afip SDK** in your n8n workflows.
4
+
5
+ [Afip SDK](https://afipsdk.com/) is a service that simplifies integration with ARCA (formerly AFIP), Argentina's federal tax authority. It handles authentication, web service requests, PDF generation, and browser automations so you don't have to deal with SOAP/XML directly.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
+
9
+ [Installation](#installation)
10
+ [Operations](#operations)
11
+ [Credentials](#credentials)
12
+ [Compatibility](#compatibility)
13
+ [Resources](#resources)
14
+
15
+ ## Installation
16
+
17
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
18
+
19
+ Search for `n8n-nodes-afipsdk` in the community nodes panel.
20
+
21
+ ## Operations
22
+
23
+ ### Web Service
24
+
25
+ | Operation | Description |
26
+ |-----------|-------------|
27
+ | **Get Ticket De Acceso (TA)** | Obtains an authorization token (Ticket de Acceso) required before calling any ARCA web service. Accepts `environment`, `tax_id`, `wsid`, and `force_create`. Supports custom `cert`/`key` for non-default certificates. |
28
+ | **Make Requests to ARCA Service** | Sends requests to any ARCA web service using a previously obtained TA. |
29
+
30
+ ### Automation
31
+
32
+ | Operation | Description |
33
+ |-----------|-------------|
34
+ | **Run Automation** | Executes an Afip SDK automation asynchronously. Returns an automation ID you can use to poll for the result. |
35
+ | **Run Automation And Wait** | Executes an automation and blocks until it completes, returning the result directly. |
36
+ | **Get Automation Result** | Polls for the result of a previously started automation. Accepts an `automationId` and a `secondsToWait` retry interval. |
37
+
38
+ ### PDF
39
+
40
+ | Operation | Description |
41
+ |-----------|-------------|
42
+ | **Create A PDF** | Generates a PDF from a template and optionally emails it to a recipient. Accepts `file_name`, `send_to`, and `template`. |
43
+
44
+ ### Util
45
+
46
+ | Operation | Description |
47
+ |-----------|-------------|
48
+ | **Get XML From Last Request** | Returns the raw XML of the last request/response pair. Useful for debugging or sending to ARCA support. |
49
+
50
+ ## Credentials
51
+
52
+ This node requires an **Afip SDK API** credential (`afipSdkApi`).
53
+
54
+ To set up credentials:
55
+ 1. Sign up at [afipsdk.com](https://afipsdk.com/) to obtain your API key.
56
+ 2. In n8n, go to **Settings → Credentials → New** and search for *Afip SDK*.
57
+ 3. Enter your API key and save.
58
+
59
+ ## Compatibility
60
+
61
+ - Tested with n8n `1.x`.
62
+ - Requires n8n Nodes API version 1.
63
+
64
+ ## Resources
65
+
66
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
67
+ - [Afip SDK documentation](https://afipsdk.com/docs)
68
+ - [ARCA (formerly AFIP) web services](https://www.afip.gob.ar/ws/)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class AfipSdkApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: ICredentialType['icon'];
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AfipSdkApi = void 0;
4
+ class AfipSdkApi {
5
+ constructor() {
6
+ this.name = 'afipSdkApi';
7
+ this.displayName = 'Afip SDK API';
8
+ this.icon = { light: 'file:../icons/afipsdk.svg', dark: 'file:../icons/afipsdk.dark.svg' };
9
+ this.documentationUrl = 'https://docs.afipsdk.com/';
10
+ this.properties = [
11
+ {
12
+ displayName: 'Bearer Token',
13
+ name: 'token',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ },
18
+ {
19
+ displayName: 'Base URL',
20
+ name: 'baseUrl',
21
+ type: 'string',
22
+ default: 'https://app.afipsdk.com/api/v1',
23
+ },
24
+ ];
25
+ this.authenticate = {
26
+ type: 'generic',
27
+ properties: {
28
+ headers: {
29
+ Authorization: '=Bearer {{$credentials.token}}',
30
+ },
31
+ },
32
+ };
33
+ this.test = {
34
+ request: {
35
+ baseURL: '={{$credentials.baseUrl}}',
36
+ url: '/afip/auth',
37
+ },
38
+ };
39
+ }
40
+ }
41
+ exports.AfipSdkApi = AfipSdkApi;
42
+ //# sourceMappingURL=AfipSdkApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AfipSdkApi.credentials.js","sourceRoot":"","sources":["../../credentials/AfipSdkApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,cAAc,CAAC;QAE7B,SAAI,GAA4B,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;QAE/G,qBAAgB,GAAG,2BAA2B,CAAC;QAE/C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,gCAAgC;aACzC;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,gCAAgC;iBAC/C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,YAAY;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AAxCD,gCAwCC"}
@@ -0,0 +1,12 @@
1
+ <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class=""><rect id="r9" width="512" height="512" x="0" y="0" rx="0" fill="url(#ra)" stroke="#FFFFFF" stroke-width="0" stroke-opacity="100%" paint-order="stroke"></rect><clipPath id="clip"><use xlink:href="#r9"></use></clipPath><defs><radialGradient id="ra" cx="50%" cy="50%" r="100%" fx="50%" fy="0%" gradientUnits="objectBoundingBox"><stop stop-color="#695BF8"></stop><stop offset="1" stop-color="#131308"></stop></radialGradient><radialGradient id="rb" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(256) rotate(90) scale(512)"><stop stop-color="white"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></radialGradient></defs>
2
+
3
+ <svg width="442" height="442" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" x="35" y="35" style="color: rgb(255, 255, 255);" alignment-baseline="middle">
4
+ <g id="#ffffffff">
5
+ <path fill="#ffffff" opacity="1.00" d=" M 41.44 58.12 C 61.12 50.70 80.77 43.18 100.43 35.70 C 119.85 43.04 139.28 50.37 158.66 57.83 C 138.35 65.02 118.12 72.41 97.83 79.65 C 96.55 80.30 95.28 79.50 94.09 79.08 C 76.56 72.05 58.97 65.16 41.44 58.12 Z"></path>
6
+ <path fill="#ffffff" opacity="1.00" d=" M 24.97 78.06 C 27.88 72.87 30.68 67.63 33.68 62.50 C 52.95 70.41 72.38 77.91 91.69 85.70 C 88.75 90.57 86.36 95.75 83.36 100.58 C 64.00 92.83 44.44 85.56 24.97 78.06 Z"></path>
7
+ <path fill="#ffffff" opacity="1.00" d=" M 102.06 85.65 C 123.72 77.72 145.50 70.09 167.17 62.16 C 170.17 67.42 173.05 72.75 176.03 78.03 C 155.18 85.97 134.39 94.03 113.56 101.99 C 109.69 96.57 106.01 91.01 102.06 85.65 Z"></path>
8
+ <path fill="#ffffff" opacity="1.00" d=" M 34.69 90.12 C 50.43 96.08 66.20 101.94 81.94 107.88 C 84.32 108.92 87.60 108.53 89.17 106.30 C 91.22 103.48 93.05 100.52 95.15 97.74 C 95.16 120.19 95.17 142.64 95.15 165.08 C 74.95 157.51 54.83 149.75 34.69 142.04 C 34.69 124.73 34.68 107.43 34.69 90.12 Z"></path>
9
+ <path fill="#ffffff" opacity="1.00" d=" M 111.00 109.92 C 127.56 103.55 144.05 96.98 160.51 90.36 C 160.61 107.53 160.50 124.70 160.57 141.87 C 140.50 149.83 120.28 157.43 100.19 165.33 C 100.20 141.92 100.16 118.50 100.21 95.09 C 103.87 99.99 106.85 105.42 111.00 109.92 Z"></path>
10
+ </g>
11
+ </svg>
12
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class=""><rect id="r9" width="512" height="512" x="0" y="0" rx="0" fill="url(#ra)" stroke="#FFFFFF" stroke-width="0" stroke-opacity="100%" paint-order="stroke"></rect><clipPath id="clip"><use xlink:href="#r9"></use></clipPath><defs><radialGradient id="ra" cx="50%" cy="50%" r="100%" fx="50%" fy="0%" gradientUnits="objectBoundingBox"><stop stop-color="#695BF8"></stop><stop offset="1" stop-color="#131308"></stop></radialGradient><radialGradient id="rb" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(256) rotate(90) scale(512)"><stop stop-color="white"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></radialGradient></defs>
2
+
3
+ <svg width="442" height="442" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" x="35" y="35" style="color: rgb(255, 255, 255);" alignment-baseline="middle">
4
+ <g id="#ffffffff">
5
+ <path fill="#ffffff" opacity="1.00" d=" M 41.44 58.12 C 61.12 50.70 80.77 43.18 100.43 35.70 C 119.85 43.04 139.28 50.37 158.66 57.83 C 138.35 65.02 118.12 72.41 97.83 79.65 C 96.55 80.30 95.28 79.50 94.09 79.08 C 76.56 72.05 58.97 65.16 41.44 58.12 Z"></path>
6
+ <path fill="#ffffff" opacity="1.00" d=" M 24.97 78.06 C 27.88 72.87 30.68 67.63 33.68 62.50 C 52.95 70.41 72.38 77.91 91.69 85.70 C 88.75 90.57 86.36 95.75 83.36 100.58 C 64.00 92.83 44.44 85.56 24.97 78.06 Z"></path>
7
+ <path fill="#ffffff" opacity="1.00" d=" M 102.06 85.65 C 123.72 77.72 145.50 70.09 167.17 62.16 C 170.17 67.42 173.05 72.75 176.03 78.03 C 155.18 85.97 134.39 94.03 113.56 101.99 C 109.69 96.57 106.01 91.01 102.06 85.65 Z"></path>
8
+ <path fill="#ffffff" opacity="1.00" d=" M 34.69 90.12 C 50.43 96.08 66.20 101.94 81.94 107.88 C 84.32 108.92 87.60 108.53 89.17 106.30 C 91.22 103.48 93.05 100.52 95.15 97.74 C 95.16 120.19 95.17 142.64 95.15 165.08 C 74.95 157.51 54.83 149.75 34.69 142.04 C 34.69 124.73 34.68 107.43 34.69 90.12 Z"></path>
9
+ <path fill="#ffffff" opacity="1.00" d=" M 111.00 109.92 C 127.56 103.55 144.05 96.98 160.51 90.36 C 160.61 107.53 160.50 124.70 160.57 141.87 C 140.50 149.83 120.28 157.43 100.19 165.33 C 100.20 141.92 100.16 118.50 100.21 95.09 C 103.87 99.99 106.85 105.42 111.00 109.92 Z"></path>
10
+ </g>
11
+ </svg>
12
+ </svg>
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class AfipSdk implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AfipSdk = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const getTokenAuth_1 = require("./resources/getTokenAuth");
6
+ const execute_1 = require("./resources/getTokenAuth/execute");
7
+ const makeRequest_1 = require("./resources/makeRequest");
8
+ const execute_2 = require("./resources/makeRequest/execute");
9
+ const execute_3 = require("./resources/getLastXml/execute");
10
+ const execute_4 = require("./resources/createPdf/execute");
11
+ const createPdf_1 = require("./resources/createPdf");
12
+ const runAutomationAndWait_1 = require("./resources/runAutomationAndWait");
13
+ const execute_5 = require("./resources/runAutomationAndWait/execute");
14
+ const execute_6 = require("./resources/runAutomation/execute");
15
+ const runAutomation_1 = require("./resources/runAutomation");
16
+ const getAutomationResult_1 = require("./resources/getAutomationResult");
17
+ const execute_7 = require("./resources/getAutomationResult/execute");
18
+ class AfipSdk {
19
+ constructor() {
20
+ this.description = {
21
+ displayName: 'Afip SDK',
22
+ name: 'afipSdk',
23
+ icon: { light: 'file:../../icons/afipsdk.svg', dark: 'file:../../icons/afipsdk.dark.svg' },
24
+ group: ['transform'],
25
+ version: 1,
26
+ subtitle: '={{ $parameter["resource"] + ": " + $parameter["operation"] }}',
27
+ description: 'Official Afip SDK nodes.',
28
+ defaults: {
29
+ name: 'Afip SDK',
30
+ },
31
+ inputs: ['main'],
32
+ outputs: ['main'],
33
+ credentials: [
34
+ {
35
+ name: 'afipSdkApi',
36
+ required: true,
37
+ },
38
+ ],
39
+ properties: [
40
+ {
41
+ displayName: 'Resource',
42
+ name: 'resource',
43
+ type: 'options',
44
+ noDataExpression: true,
45
+ options: [
46
+ { name: 'Automation', value: 'automation' },
47
+ { name: 'PDF', value: 'pdf' },
48
+ { name: 'Util', value: 'util' },
49
+ { name: 'Web Service', value: 'webService' },
50
+ ],
51
+ default: 'webService',
52
+ },
53
+ {
54
+ displayName: 'Operation',
55
+ name: 'operation',
56
+ type: 'options',
57
+ noDataExpression: true,
58
+ displayOptions: { show: { resource: ['webService'] } },
59
+ options: [
60
+ {
61
+ name: 'Get Ticket De Acceso (TA)',
62
+ value: 'getTokenAuth',
63
+ action: 'Get ticket de acceso (TA)',
64
+ description: 'Before calling an ARCA web service, you need a TA, also known as an authorization token',
65
+ },
66
+ {
67
+ name: 'Make Requests to ARCA Service',
68
+ value: 'makeRequest',
69
+ action: 'Execute web service request',
70
+ description: 'Send requests to the ARCA web services',
71
+ },
72
+ ],
73
+ default: 'getTokenAuth',
74
+ },
75
+ {
76
+ displayName: 'Operation',
77
+ name: 'operation',
78
+ type: 'options',
79
+ noDataExpression: true,
80
+ displayOptions: { show: { resource: ['automation'] } },
81
+ options: [
82
+ {
83
+ name: 'Get Automation Result',
84
+ value: 'getAutomationResult',
85
+ action: 'Get automation result',
86
+ description: 'Get automation result and retry if the automation is not complete',
87
+ },
88
+ {
89
+ name: 'Run Automation',
90
+ value: 'runAutomation',
91
+ action: 'Run automation',
92
+ description: 'Execute an Afip SDK automation',
93
+ },
94
+ {
95
+ name: 'Run Automation And Wait',
96
+ value: 'runAutomationAndWait',
97
+ action: 'Run automation and wait',
98
+ description: 'Execute an Afip SDK automation and wait for its result',
99
+ },
100
+ ],
101
+ default: 'runAutomation',
102
+ },
103
+ {
104
+ displayName: 'Operation',
105
+ name: 'operation',
106
+ type: 'options',
107
+ noDataExpression: true,
108
+ displayOptions: { show: { resource: ['pdf'] } },
109
+ options: [
110
+ {
111
+ name: 'Create A PDF',
112
+ value: 'createPdf',
113
+ action: 'Create PDF',
114
+ description: 'Create a PDF of your bills and send it to your customers',
115
+ },
116
+ ],
117
+ default: 'createPdf',
118
+ },
119
+ {
120
+ displayName: 'Operation',
121
+ name: 'operation',
122
+ type: 'options',
123
+ noDataExpression: true,
124
+ displayOptions: { show: { resource: ['util'] } },
125
+ options: [
126
+ {
127
+ name: 'Get XML From Last Request',
128
+ value: 'getLastXml',
129
+ action: 'Get XML from last request',
130
+ description: 'Get an XML including the last request and response to send to ARCA support mail',
131
+ },
132
+ ],
133
+ default: 'getLastXml',
134
+ },
135
+ ...getTokenAuth_1.getTokenAuthFields,
136
+ ...makeRequest_1.makeRequestFields,
137
+ ...createPdf_1.createPdfFields,
138
+ ...runAutomationAndWait_1.runAutomationAndWaitFields,
139
+ ...runAutomation_1.runAutomationFields,
140
+ ...getAutomationResult_1.getAutomationResultFields,
141
+ ],
142
+ usableAsTool: true,
143
+ };
144
+ }
145
+ async execute() {
146
+ const operation = this.getNodeParameter('operation', 0);
147
+ if (operation === 'getTokenAuth')
148
+ return execute_1.getTokenAuthExecute.call(this);
149
+ if (operation === 'makeRequest')
150
+ return execute_2.makeRequestExecute.call(this);
151
+ if (operation === 'getLastXml')
152
+ return execute_3.getLastXmlExecute.call(this);
153
+ if (operation === 'createPdf')
154
+ return execute_4.createPdfExecute.call(this);
155
+ if (operation === 'runAutomationAndWait')
156
+ return execute_5.runAutomationAndWaitExecute.call(this);
157
+ if (operation === 'runAutomation')
158
+ return execute_6.runAutomationExecute.call(this);
159
+ if (operation === 'getAutomationResult')
160
+ return execute_7.getAutomationResultExecute.call(this);
161
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
162
+ }
163
+ }
164
+ exports.AfipSdk = AfipSdk;
165
+ //# sourceMappingURL=AfipSdk.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AfipSdk.node.js","sourceRoot":"","sources":["../../../nodes/AfipSdk/AfipSdk.node.ts"],"names":[],"mappings":";;;AAMA,+CAAkD;AAClD,2DAA8D;AAC9D,8DAAuE;AACvE,yDAA4D;AAC5D,6DAAqE;AACrE,4DAAmE;AACnE,2DAAiE;AACjE,qDAAwD;AACxD,2EAA8E;AAC9E,sEAAuF;AACvF,+DAAyE;AACzE,6DAAgE;AAChE,yEAA4E;AAC5E,qEAAqF;AAErF,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE,KAAK,EAAE,8BAA8B,EAAE,IAAI,EAAE,mCAAmC,EAAE;YAC1F,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,gEAAgE;YAC1E,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;wBAC3C,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;wBAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;qBAC5C;oBACD,OAAO,EAAE,YAAY;iBACrB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;oBACtD,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,2BAA2B;4BACjC,KAAK,EAAE,cAAc;4BACrB,MAAM,EAAE,2BAA2B;4BACnC,WAAW,EACV,yFAAyF;yBAC1F;wBACD;4BACC,IAAI,EAAE,+BAA+B;4BACrC,KAAK,EAAE,aAAa;4BACpB,MAAM,EAAE,6BAA6B;4BACrC,WAAW,EAAE,wCAAwC;yBACrD;qBACD;oBACD,OAAO,EAAE,cAAc;iBACvB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE;oBACtD,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,uBAAuB;4BAC7B,KAAK,EAAE,qBAAqB;4BAC5B,MAAM,EAAE,uBAAuB;4BAC/B,WAAW,EAAE,mEAAmE;yBAChF;wBACD;4BACC,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;4BACtB,MAAM,EAAE,gBAAgB;4BACxB,WAAW,EAAE,gCAAgC;yBAC7C;wBACD;4BACC,IAAI,EAAE,yBAAyB;4BAC/B,KAAK,EAAE,sBAAsB;4BAC7B,MAAM,EAAE,yBAAyB;4BACjC,WAAW,EAAE,wDAAwD;yBACrE;qBACD;oBACD,OAAO,EAAE,eAAe;iBACxB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;oBAC/C,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,cAAc;4BACpB,KAAK,EAAE,WAAW;4BAClB,MAAM,EAAE,YAAY;4BACpB,WAAW,EAAE,0DAA0D;yBACvE;qBACD;oBACD,OAAO,EAAE,WAAW;iBACpB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;oBAChD,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,2BAA2B;4BACjC,KAAK,EAAE,YAAY;4BACnB,MAAM,EAAE,2BAA2B;4BACnC,WAAW,EACV,iFAAiF;yBAClF;qBACD;oBACD,OAAO,EAAE,YAAY;iBACrB;gBAGD,GAAG,iCAAkB;gBACrB,GAAG,+BAAiB;gBACpB,GAAG,2BAAe;gBAClB,GAAG,iDAA0B;gBAC7B,GAAG,mCAAmB;gBACtB,GAAG,+CAAyB;aAC5B;YACD,YAAY,EAAE,IAAI;SAClB,CAAC;IAeH,CAAC;IAbA,KAAK,CAAC,OAAO;QACZ,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAElE,IAAI,SAAS,KAAK,cAAc;YAAE,OAAO,6BAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxE,IAAI,SAAS,KAAK,aAAa;YAAE,OAAO,4BAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtE,IAAI,SAAS,KAAK,YAAY;YAAE,OAAO,2BAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpE,IAAI,SAAS,KAAK,WAAW;YAAE,OAAO,0BAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,SAAS,KAAK,sBAAsB;YAAE,OAAO,qCAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxF,IAAI,SAAS,KAAK,eAAe;YAAE,OAAO,8BAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1E,IAAI,SAAS,KAAK,qBAAqB;YAAE,OAAO,oCAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtF,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;IACxF,CAAC;CACD;AA/ID,0BA+IC"}
@@ -0,0 +1,13 @@
1
+ {
2
+ "node": "n8n-nodes-afipsdk.afipSdk",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Finance"],
6
+ "resources": {
7
+ "primaryDocumentation": [
8
+ {
9
+ "url": "https://docs.afipsdk.com/"
10
+ }
11
+ ]
12
+ }
13
+ }
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function createPdfExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPdfExecute = createPdfExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const utils_1 = require("../../utils");
6
+ async function createPdfExecute() {
7
+ const operation = this.getNodeParameter('operation', 0);
8
+ if (operation === 'createPdf') {
9
+ const body = (0, utils_1.parseParametersJson)(this);
10
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
11
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
12
+ method: 'POST',
13
+ url: `${baseUrl}/pdfs`,
14
+ body,
15
+ json: true,
16
+ });
17
+ return [this.helpers.returnJsonArray(response)];
18
+ }
19
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
20
+ }
21
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/createPdf/execute.ts"],"names":[],"mappings":";;AAIA,4CAiBC;AApBD,+CAAkD;AAClD,uCAAkD;AAE3C,KAAK,UAAU,gBAAgB;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;QAC/B,MAAM,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YAC1F,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG,OAAO,OAAO;YACtB,IAAI;YACJ,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createPdfFields: INodeProperties[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPdfFields = void 0;
4
+ const fields_1 = require("../../shared/fields");
5
+ exports.createPdfFields = [
6
+ ...(0, fields_1.buildParameterFields)('pdf', 'createPdf', [
7
+ { name: 'file_name', example: 'example.pdf' },
8
+ { name: 'send_to', example: 'test@example.com' },
9
+ { name: 'template', example: '{ <YOUR TEMPLATE DATA> }' },
10
+ ]),
11
+ ];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/createPdf/index.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAE9C,QAAA,eAAe,GAAsB;IACjD,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,WAAW,EAAE;QAC3C,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE;QAC7C,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE;QAChD,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,EAAE;KACzD,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function getAutomationResultExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAutomationResultExecute = getAutomationResultExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const MAX_ATTEMPTS = 24;
6
+ async function getAutomationResultExecute() {
7
+ const operation = this.getNodeParameter('operation', 0);
8
+ if (operation === 'getAutomationResult') {
9
+ const automationId = this.getNodeParameter('automationId', 0);
10
+ const secondsToWait = this.getNodeParameter('secondsToWait', 0) * 1000;
11
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
12
+ for (let attempt = 0; attempt < MAX_ATTEMPTS; attempt++) {
13
+ await (0, n8n_workflow_1.sleep)(secondsToWait);
14
+ const result = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
15
+ method: 'GET',
16
+ url: `${baseUrl}/automations/${automationId}`,
17
+ json: true,
18
+ });
19
+ if (result.status !== 'in_process') {
20
+ return [this.helpers.returnJsonArray(result)];
21
+ }
22
+ }
23
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Get Automation result timed out after ${(MAX_ATTEMPTS * secondsToWait)}s`);
24
+ }
25
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
26
+ }
27
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/getAutomationResult/execute.ts"],"names":[],"mappings":";;AAKA,gEA8BC;AAlCD,+CAAyD;AAEzD,MAAM,YAAY,GAAG,EAAE,CAAC;AAEjB,KAAK,UAAU,0BAA0B;IAG/C,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,qBAAqB,EAAE,CAAC;QACzC,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;QACxE,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAW,GAAG,IAAI,CAAC;QACjF,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAE5E,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,YAAY,EAAE,OAAO,EAAE,EAAE,CAAC;YACzD,MAAM,IAAA,oBAAK,EAAC,aAAa,CAAC,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;gBACxF,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,GAAG,OAAO,gBAAgB,YAAY,EAAE;gBAC7C,IAAI,EAAE,IAAI;aACV,CAAC,CAAC;YAEH,IAAK,MAA6B,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;gBAC5D,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/C,CAAC;QACF,CAAC;QAED,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,yCAAyC,CAAC,YAAY,GAAG,aAAa,CAAC,GAAG,CAC1E,CAAC;IACH,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAutomationResultFields: INodeProperties[];
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAutomationResultFields = void 0;
4
+ exports.getAutomationResultFields = [
5
+ {
6
+ displayName: 'Automation ID',
7
+ name: 'automationId',
8
+ type: 'string',
9
+ default: '',
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['automation'],
13
+ operation: ['getAutomationResult'],
14
+ },
15
+ },
16
+ },
17
+ {
18
+ displayName: 'Seconds To Wait',
19
+ name: 'secondsToWait',
20
+ type: 'number',
21
+ default: 5,
22
+ displayOptions: {
23
+ show: {
24
+ resource: ['automation'],
25
+ operation: ['getAutomationResult'],
26
+ },
27
+ },
28
+ },
29
+ ];
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/getAutomationResult/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;KACD;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,qBAAqB,CAAC;aAClC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function getLastXmlExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLastXmlExecute = getLastXmlExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ async function getLastXmlExecute() {
6
+ const operation = this.getNodeParameter('operation', 0);
7
+ if (operation === 'getLastXml') {
8
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
9
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
10
+ method: 'GET',
11
+ url: `${baseUrl}/afip/requests/last-xml`,
12
+ json: true,
13
+ });
14
+ return [this.helpers.returnJsonArray(response)];
15
+ }
16
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
17
+ }
18
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/getLastXml/execute.ts"],"names":[],"mappings":";;AAGA,8CAcC;AAhBD,+CAAkD;AAE3C,KAAK,UAAU,iBAAiB;IACtC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YAC1F,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,GAAG,OAAO,yBAAyB;YACxC,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function getTokenAuthExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTokenAuthExecute = getTokenAuthExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const utils_1 = require("../../utils");
6
+ async function getTokenAuthExecute() {
7
+ const operation = this.getNodeParameter('operation', 0);
8
+ if (operation === 'getTokenAuth') {
9
+ const body = (0, utils_1.parseParametersJson)(this);
10
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
11
+ const additionalFields = this.getNodeParameter('additionalFields', 0);
12
+ const cert = additionalFields === null || additionalFields === void 0 ? void 0 : additionalFields.cert;
13
+ const key = additionalFields === null || additionalFields === void 0 ? void 0 : additionalFields.key;
14
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
15
+ method: 'POST',
16
+ url: `${baseUrl}/afip/auth`,
17
+ body: {
18
+ ...body,
19
+ ...(cert !== undefined && { cert }),
20
+ ...(key !== undefined && { key }),
21
+ },
22
+ json: true,
23
+ });
24
+ return [this.helpers.returnJsonArray(response)];
25
+ }
26
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
27
+ }
28
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/getTokenAuth/execute.ts"],"names":[],"mappings":";;AAIA,kDA+BC;AAlCD,+CAAkD;AAClD,uCAAkD;AAE3C,KAAK,UAAU,mBAAmB;IAGxC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,cAAc,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAGnE,CAAC;QACF,MAAM,IAAI,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,CAAC;QACpC,MAAM,GAAG,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,GAAG,CAAC;QAElC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YAC1F,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG,OAAO,YAAY;YAC3B,IAAI,EAAE;gBACL,GAAG,IAAI;gBACP,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,EAAE,CAAC;gBACnC,GAAG,CAAC,GAAG,KAAK,SAAS,IAAI,EAAE,GAAG,EAAE,CAAC;aACjC;YACD,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getTokenAuthFields: INodeProperties[];
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTokenAuthFields = void 0;
4
+ const fields_1 = require("../../shared/fields");
5
+ exports.getTokenAuthFields = [
6
+ {
7
+ displayName: 'Custom Certificate',
8
+ name: 'additionalFields',
9
+ type: 'collection',
10
+ placeholder: 'Add Field',
11
+ default: {},
12
+ displayOptions: { show: { resource: ['webService'], operation: ['getTokenAuth'] } },
13
+ options: [
14
+ {
15
+ displayName: 'Cert',
16
+ name: 'cert',
17
+ type: 'string',
18
+ default: '',
19
+ description: 'Content of cert.crt file',
20
+ },
21
+ {
22
+ displayName: 'Key',
23
+ name: 'key',
24
+ type: 'string',
25
+ default: '',
26
+ description: 'Content of key.key file',
27
+ },
28
+ ],
29
+ },
30
+ ...(0, fields_1.buildParameterFields)('webService', 'getTokenAuth', [
31
+ { name: 'environment', example: 'dev' },
32
+ { name: 'tax_id', example: '20409378472' },
33
+ { name: 'wsid', example: 'wsfe' },
34
+ { name: 'force_create', example: false },
35
+ ]),
36
+ ];
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/getTokenAuth/index.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAE9C,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACnF,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;YACD;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACtC;SACD;KACD;IACD,GAAG,IAAA,6BAAoB,EAAC,YAAY,EAAE,cAAc,EAAE;QACrD,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE;QACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE;QAC1C,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;QACjC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE;KACxC,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function makeRequestExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeRequestExecute = makeRequestExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const utils_1 = require("../../utils");
6
+ async function makeRequestExecute() {
7
+ const operation = this.getNodeParameter('operation', 0);
8
+ if (operation === 'makeRequest') {
9
+ const body = (0, utils_1.parseParametersJson)(this);
10
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
11
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
12
+ method: 'POST',
13
+ url: `${baseUrl}/afip/requests`,
14
+ body,
15
+ json: true,
16
+ });
17
+ return [this.helpers.returnJsonArray(response)];
18
+ }
19
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
20
+ }
21
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/makeRequest/execute.ts"],"names":[],"mappings":";;AAIA,gDAiBC;AApBD,+CAAkD;AAClD,uCAAkD;AAE3C,KAAK,UAAU,kBAAkB;IACvC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,aAAa,EAAE,CAAC;QACjC,MAAM,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YAC1F,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG,OAAO,gBAAgB;YAC/B,IAAI;YACJ,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const makeRequestFields: INodeProperties[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeRequestFields = void 0;
4
+ const fields_1 = require("../../shared/fields");
5
+ exports.makeRequestFields = [
6
+ ...(0, fields_1.buildParameterFields)('webService', 'makeRequest', []),
7
+ ];
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/makeRequest/index.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAE9C,QAAA,iBAAiB,GAAsB;IACnD,GAAG,IAAA,6BAAoB,EAAC,YAAY,EAAE,aAAa,EAAE,EAAE,CAAC;CACxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function runAutomationExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runAutomationExecute = runAutomationExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const utils_1 = require("../../utils");
6
+ async function runAutomationExecute() {
7
+ const operation = this.getNodeParameter('operation', 0);
8
+ if (operation === 'runAutomation') {
9
+ const body = (0, utils_1.parseParametersJson)(this);
10
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
11
+ const created = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
12
+ method: 'POST',
13
+ url: `${baseUrl}/automations`,
14
+ body,
15
+ json: true,
16
+ });
17
+ const id = created.id;
18
+ if (!id) {
19
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Automation did not return an id');
20
+ }
21
+ return [this.helpers.returnJsonArray(created)];
22
+ }
23
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
24
+ }
25
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/runAutomation/execute.ts"],"names":[],"mappings":";;AAIA,oDAyBC;AA5BD,+CAAkD;AAClD,uCAAkD;AAE3C,KAAK,UAAU,oBAAoB;IAGzC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,eAAe,EAAE,CAAC;QACnC,MAAM,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YACzF,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG,OAAO,cAAc;YAC7B,IAAI;YACJ,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,GAAI,OAA0B,CAAC,EAAE,CAAC;QAC1C,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,iCAAiC,CAAC,CAAC;QACjF,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const runAutomationFields: INodeProperties[];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runAutomationFields = void 0;
4
+ const fields_1 = require("../../shared/fields");
5
+ exports.runAutomationFields = [
6
+ ...(0, fields_1.buildParameterFields)('automation', 'runAutomation', [
7
+ { name: 'automation', example: '<AUTOMATION NAME>' },
8
+ { name: 'params', example: '{ <YOUR PARAMS> }' },
9
+ ]),
10
+ ];
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/runAutomation/index.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAE9C,QAAA,mBAAmB,GAAsB;IACrD,GAAG,IAAA,6BAAoB,EAAC,YAAY,EAAE,eAAe,EAAE;QACtD,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACpD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;KAChD,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function runAutomationAndWaitExecute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runAutomationAndWaitExecute = runAutomationAndWaitExecute;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const utils_1 = require("../../utils");
6
+ const POLL_INTERVAL_MS = 5000;
7
+ const MAX_ATTEMPTS = 24;
8
+ async function runAutomationAndWaitExecute() {
9
+ const operation = this.getNodeParameter('operation', 0);
10
+ if (operation === 'runAutomationAndWait') {
11
+ const body = (0, utils_1.parseParametersJson)(this);
12
+ const baseUrl = (await this.getCredentials('afipSdkApi')).baseUrl;
13
+ const created = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
14
+ method: 'POST',
15
+ url: `${baseUrl}/automations`,
16
+ body,
17
+ json: true,
18
+ });
19
+ const id = created.id;
20
+ if (!id) {
21
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Automation did not return an id');
22
+ }
23
+ for (let attempt = 0; attempt < MAX_ATTEMPTS; attempt++) {
24
+ await (0, n8n_workflow_1.sleep)(POLL_INTERVAL_MS);
25
+ const result = await this.helpers.httpRequestWithAuthentication.call(this, 'afipSdkApi', {
26
+ method: 'GET',
27
+ url: `${baseUrl}/automations/${id}`,
28
+ json: true,
29
+ });
30
+ if (result.status !== 'in_process') {
31
+ return [this.helpers.returnJsonArray(result)];
32
+ }
33
+ }
34
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Automation "${body.automation}" timed out after ${(MAX_ATTEMPTS * POLL_INTERVAL_MS) / 1000}s`);
35
+ }
36
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation "${operation}" not supported`);
37
+ }
38
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/runAutomationAndWait/execute.ts"],"names":[],"mappings":";;AAOA,kEA0CC;AAhDD,+CAAyD;AACzD,uCAAkD;AAElD,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,YAAY,GAAG,EAAE,CAAC;AAEjB,KAAK,UAAU,2BAA2B;IAGhD,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAElE,IAAI,SAAS,KAAK,sBAAsB,EAAE,CAAC;QAC1C,MAAM,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB,CAAC;QAC5E,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;YACzF,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG,OAAO,cAAc;YAC7B,IAAI;YACJ,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,MAAM,EAAE,GAAI,OAA0B,CAAC,EAAE,CAAC;QAC1C,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,iCAAiC,CAAC,CAAC;QACjF,CAAC;QAED,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,YAAY,EAAE,OAAO,EAAE,EAAE,CAAC;YACzD,MAAM,IAAA,oBAAK,EAAC,gBAAgB,CAAC,CAAC;YAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE;gBACxF,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,GAAG,OAAO,gBAAgB,EAAE,EAAE;gBACnC,IAAI,EAAE,IAAI;aACV,CAAC,CAAC;YAEH,IAAK,MAA6B,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;gBAC5D,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/C,CAAC;QACF,CAAC;QAED,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,eAAe,IAAI,CAAC,UAAU,qBAAqB,CAAC,YAAY,GAAG,gBAAgB,CAAC,GAAG,IAAI,GAAG,CAC9F,CAAC;IACH,CAAC;IAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,SAAS,iBAAiB,CAAC,CAAC;AACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const runAutomationAndWaitFields: INodeProperties[];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runAutomationAndWaitFields = void 0;
4
+ const fields_1 = require("../../shared/fields");
5
+ exports.runAutomationAndWaitFields = [
6
+ ...(0, fields_1.buildParameterFields)('automation', 'runAutomationAndWait', [
7
+ { name: 'automation', example: '<AUTOMATION NAME>' },
8
+ { name: 'params', example: '{ <YOUR PARAMS> }' },
9
+ ]),
10
+ ];
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/AfipSdk/resources/runAutomationAndWait/index.ts"],"names":[],"mappings":";;;AACA,gDAA2D;AAE9C,QAAA,0BAA0B,GAAsB;IAC5D,GAAG,IAAA,6BAAoB,EAAC,YAAY,EAAE,sBAAsB,EAAE;QAC7D,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACpD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;KAChD,CAAC;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export interface RequiredParam {
3
+ name: string;
4
+ example?: unknown;
5
+ }
6
+ export declare function buildParameterFields(resource: string, operation: string, requiredParams?: RequiredParam[]): INodeProperties[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildParameterFields = buildParameterFields;
4
+ function buildParameterFields(resource, operation, requiredParams = []) {
5
+ const displayWhen = {
6
+ resource: [resource],
7
+ operation: [operation],
8
+ };
9
+ const jsonDefault = requiredParams.length
10
+ ? JSON.stringify(Object.fromEntries(requiredParams.map(({ name, example = null }) => [name, example])), null, 2)
11
+ : '{}';
12
+ return [
13
+ {
14
+ displayName: 'Body (JSON)',
15
+ name: 'parametersJson',
16
+ type: 'json',
17
+ default: jsonDefault,
18
+ displayOptions: { show: displayWhen },
19
+ },
20
+ ];
21
+ }
22
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../nodes/AfipSdk/shared/fields.ts"],"names":[],"mappings":";;AAWA,oDA2BC;AA3BD,SAAgB,oBAAoB,CACnC,QAAgB,EAChB,SAAiB,EACjB,iBAAkC,EAAE;IAEpC,MAAM,WAAW,GAAG;QACnB,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,SAAS,EAAE,CAAC,SAAS,CAAC;KACtB,CAAC;IAEF,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM;QACxC,CAAC,CAAC,IAAI,CAAC,SAAS,CACd,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EACrF,IAAI,EACJ,CAAC,CACD;QACF,CAAC,CAAC,IAAI,CAAC;IAER,OAAO;QACN;YACC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,WAAW;YACpB,cAAc,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;SACrC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function parseParametersJson(context: IExecuteFunctions, itemIndex?: number): Record<string, unknown>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseParametersJson = parseParametersJson;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ function parseParametersJson(context, itemIndex = 0) {
6
+ const raw = context.getNodeParameter('parametersJson', itemIndex);
7
+ try {
8
+ return JSON.parse(raw);
9
+ }
10
+ catch {
11
+ throw new n8n_workflow_1.NodeOperationError(context.getNode(), 'Params JSON is not valid');
12
+ }
13
+ }
14
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../nodes/AfipSdk/utils.ts"],"names":[],"mappings":";;AAGA,kDAOC;AATD,+CAAkD;AAElD,SAAgB,mBAAmB,CAAC,OAA0B,EAAE,SAAS,GAAG,CAAC;IAC5E,MAAM,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,SAAS,CAAW,CAAC;IAC5E,IAAI,CAAC;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAA4B,CAAC;IACnD,CAAC;IAAC,MAAM,CAAC;QACR,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,0BAA0B,CAAC,CAAC;IAC7E,CAAC;AACF,CAAC"}
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "n8n-nodes-afipsdk",
3
+ "version": "1.0.0",
4
+ "description": "n8n nodes for Afip SDK integration.",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "AfipSDK team",
12
+ "email": "ayuda@afipsdk.com"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/AfipSDK/n8n-nodes-afipsdk"
17
+ },
18
+ "publishConfig": {
19
+ "provenance": true
20
+ },
21
+ "scripts": {
22
+ "build": "n8n-node build",
23
+ "build:watch": "tsc --watch",
24
+ "dev": "n8n-node dev",
25
+ "lint": "n8n-node lint",
26
+ "lint:fix": "n8n-node lint --fix",
27
+ "release": "n8n-node release",
28
+ "prepublishOnly": "npm run build && npm run lint"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "n8n": {
34
+ "n8nNodesApiVersion": 1,
35
+ "strict": true,
36
+ "credentials": [
37
+ "dist/credentials/AfipSdkApi.credentials.js"
38
+ ],
39
+ "nodes": [
40
+ "dist/nodes/AfipSdk/AfipSdk.node.js"
41
+ ]
42
+ },
43
+ "devDependencies": {
44
+ "@n8n/node-cli": "*",
45
+ "eslint": "9.32.0",
46
+ "prettier": "3.6.2",
47
+ "release-it": "^19.0.4",
48
+ "typescript": "5.9.2"
49
+ },
50
+ "peerDependencies": {
51
+ "n8n-workflow": "*"
52
+ }
53
+ }
@@ -0,0 +1 @@
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/form-data/index.d.ts","../node_modules/n8n-workflow/dist/esm/constants.d.ts","../node_modules/n8n-workflow/dist/esm/data-table.types.d.ts","../node_modules/n8n-workflow/dist/esm/deferred-promise.d.ts","../node_modules/@n8n/errors/dist/types.d.ts","../node_modules/@n8n/errors/dist/application.error.d.ts","../node_modules/@n8n/errors/dist/index.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/operational.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/unexpected.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/base/user.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/execution-base.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/execution-cancelled.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/abstract/node.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-api.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-configuration.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/node-ssl.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-activation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/webhook-taken.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-deactivation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/workflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/cli-subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/trigger-close.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/expression-extension.error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/db-connection-timeout-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/ensure-error.d.ts","../node_modules/n8n-workflow/dist/esm/errors/index.d.ts","../node_modules/n8n-workflow/dist/esm/execution-status.d.ts","../node_modules/n8n-workflow/dist/esm/result.d.ts","../node_modules/n8n-workflow/dist/esm/expression.d.ts","../node_modules/n8n-workflow/dist/esm/workflow.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy-env-provider.d.ts","../node_modules/n8n-workflow/dist/esm/interfaces.d.ts","../node_modules/n8n-workflow/dist/esm/logger-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/node-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/observable-object.d.ts","../node_modules/n8n-workflow/dist/esm/telemetry-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-child-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-connected-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-node-by-name.d.ts","../node_modules/n8n-workflow/dist/esm/common/get-parent-nodes.d.ts","../node_modules/n8n-workflow/dist/esm/common/map-connections-by-destination.d.ts","../node_modules/n8n-workflow/dist/esm/common/index.d.ts","../node_modules/n8n-workflow/dist/esm/cron.d.ts","../node_modules/n8n-workflow/dist/esm/global-state.d.ts","../node_modules/n8n-workflow/dist/esm/message-event-bus.d.ts","../node_modules/n8n-workflow/dist/esm/expressions/expression-helpers.d.ts","../node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts","../node_modules/zod/dist/types/v3/helpers/util.d.ts","../node_modules/zod/dist/types/v3/ZodError.d.ts","../node_modules/zod/dist/types/v3/locales/en.d.ts","../node_modules/zod/dist/types/v3/errors.d.ts","../node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts","../node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts","../node_modules/zod/dist/types/v3/standard-schema.d.ts","../node_modules/zod/dist/types/v3/types.d.ts","../node_modules/zod/dist/types/v3/external.d.ts","../node_modules/zod/dist/types/v3/index.d.ts","../node_modules/zod/dist/types/index.d.ts","../node_modules/n8n-workflow/dist/esm/from-ai-parse-utils.d.ts","../node_modules/n8n-workflow/dist/esm/tool-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/node-reference-parser-utils.d.ts","../node_modules/n8n-workflow/dist/esm/metadata-utils.d.ts","../node_modules/n8n-workflow/dist/esm/workflow-data-proxy.d.ts","../node_modules/n8n-workflow/dist/esm/versioned-node-type.d.ts","../node_modules/n8n-workflow/dist/esm/type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/utils.d.ts","../node_modules/n8n-workflow/dist/esm/type-guards.d.ts","../node_modules/n8n-workflow/dist/esm/graph/graph-utils.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/extensions.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-extension.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/index.d.ts","../node_modules/n8n-workflow/dist/esm/extensions/expression-parser.d.ts","../node_modules/n8n-workflow/dist/esm/native-methods/index.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/filter-parameter.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/parameter-type-validation.d.ts","../node_modules/n8n-workflow/dist/esm/node-parameters/path-utils.d.ts","../node_modules/n8n-workflow/dist/esm/evaluation-helpers.d.ts","../node_modules/n8n-workflow/dist/esm/index.d.ts","../credentials/AfipSdkApi.credentials.ts","../nodes/AfipSdk/shared/fields.ts","../nodes/AfipSdk/resources/getTokenAuth/index.ts","../nodes/AfipSdk/utils.ts","../nodes/AfipSdk/resources/getTokenAuth/execute.ts","../nodes/AfipSdk/resources/makeRequest/index.ts","../nodes/AfipSdk/resources/makeRequest/execute.ts","../nodes/AfipSdk/resources/getLastXml/execute.ts","../nodes/AfipSdk/resources/createPdf/execute.ts","../nodes/AfipSdk/resources/createPdf/index.ts","../nodes/AfipSdk/resources/runAutomationAndWait/index.ts","../nodes/AfipSdk/resources/runAutomationAndWait/execute.ts","../nodes/AfipSdk/resources/runAutomation/execute.ts","../nodes/AfipSdk/resources/runAutomation/index.ts","../nodes/AfipSdk/resources/getAutomationResult/index.ts","../nodes/AfipSdk/resources/getAutomationResult/execute.ts","../nodes/AfipSdk/AfipSdk.node.ts","../nodes/AfipSdk/AfipSdk.node.json","../package.json","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-path/index.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"fileIdsList":[[131],[52],[52,53],[155,193],[155,178,193],[154,193],[193],[155],[155,179,193],[154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192],[179,193],[83],[88,89,90,91,92],[54,83],[59,83],[54],[55],[71],[59],[60],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76],[54,62,83],[62,63,83],[70],[67],[54,59,83],[64],[81,83],[122],[122,123],[111],[49,50,51,77,78,79,80,81,82,83,84,85,86,87,93,94,95,96,97,112,113,114,115,116,117,118,119,120,121,124,125,126,127,128,129,130],[48,49,50,51,60,63,64,67,70,77,78,79,81,82],[81,82,83],[80,83],[110],[98,99,110],[100,101],[98,99,100,102,103,108],[99,100],[108],[109],[100],[98,99,100,103,104,105,106,107],[131,134,136,137,138,139,140,141,142,143,144,145,146,147],[131,135],[131,133]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","impliedFormat":1},{"version":"0d5f371d676acc073f0166b7fd967adeb6afa5f0967b9821d83c106f66cc458d","impliedFormat":1},{"version":"a588d1f897adf938963ef3d90c8038c3c5cd19ef88fbedda4cb1a77b8b7ba3e6","impliedFormat":1},{"version":"a0981ee0c7ac06bdb575558bd09bac190e1c0c7888ddcb63d8bf648f23a30e8c","impliedFormat":1},{"version":"00f11c3ec667314eaa2adfe253b5ebebbbdbb82510e04460c2f09d1c3b521d31","impliedFormat":1},{"version":"5c7a516e25a2fd1dc5e054c6161fe3c8ba46364f3784ef98f3fca48ab685231c","impliedFormat":1},{"version":"3ff739b7f819cfc12b330f9adcc4c3abbbd5e9f9ca68f53243222a049a8361a2","impliedFormat":1},{"version":"d762b92c1af47b7b3c4eef92fe9a3806194d9edc5dae6901342fc87ef21d7f4a","impliedFormat":1},{"version":"41d14b690d8d8c2a9b7395e8c36de6ca981010736723216ab9f35eb598e09ad9","impliedFormat":1},{"version":"3fdcca6b893ffd38b61b792772f649c82ae28077c360802cec25360eabca24c0","impliedFormat":1},{"version":"299924f7545be254b02278e4dcff7038611f2325d30f0e5ae4bcac906847c164","impliedFormat":1},{"version":"be1d650f04c9f472f0ad0ead3e1b7059dd1e0ff918f7bcb707786d27c3bbeadd","impliedFormat":1},{"version":"1e16c1b1c4d8600a146b15a933f9a880cc275c01f39dc436625f22d3cca46272","impliedFormat":1},{"version":"a631639d7f79f49f68a0ef6553baa1b977e06b230e768511812952709fe5c1f0","impliedFormat":1},{"version":"bf2aefef15e0b4d6bc8f4e19f967494b59b5f90a834de503c373df042513d924","impliedFormat":1},{"version":"4085248a1c89ee865cf9498402c90611d16920a6c9929f701ddc0b963ddad230","impliedFormat":1},{"version":"1a1acd3311ff1794be8401ee394efc3beeb1746068244eb0ee1d51d08e457401","impliedFormat":1},{"version":"ce0b4440a3dd75e14ca94b6d6b27fa26ca89e776d91b8803b3c86c4e8f06ed1a","impliedFormat":1},{"version":"37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","impliedFormat":1},{"version":"b6b1a3ff9ba1ddf1a908cfd1bcd471334ecd218a366460fc64c4561d6d0467a4","impliedFormat":1},{"version":"1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","impliedFormat":1},{"version":"32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","impliedFormat":1},{"version":"da73778888d41d0abe7d28a24529ba13ff0a9311d55e1902feee7ab97dc6a67d","impliedFormat":1},{"version":"393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","impliedFormat":1},{"version":"f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","impliedFormat":1},{"version":"0e10fd1d283b4ba7b94f5abb1bc30a2070ccb16c22f86a2780bea8ddc48f3bf7","impliedFormat":1},{"version":"0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","impliedFormat":1},{"version":"79b9e661f99d6d01ad0031fbffbb20a8570ca526125a1b01ef5643c00348a8c4","impliedFormat":1},{"version":"deb85dff5a350bd77f24fb5665b7a3c95aa0d4556a0d45ab423ebf3ffcbc70ce","impliedFormat":1},{"version":"f3e1a9f8c28c949f8432b0ef8f0d2686ccc3e38dcc338bbc8a02f956bc7a0725","impliedFormat":1},{"version":"3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","impliedFormat":1},{"version":"64c9811ebae7d6bdd3749155911ca473017944d6e9787cec3d11549b05b19de9","impliedFormat":1},{"version":"9de23b9733565858ecfb3971e409970aaf7ec3bd2567aea9373c3b7cfd62f053","impliedFormat":1},{"version":"18c4c5d4069ae6ddce9443a6057fcf333688556b0d644813a78e604812f82bb3","impliedFormat":1},{"version":"6481b29f54e19becbeb7236c60043e2daa47b45cb4fd7e88f287df09250f2405","impliedFormat":1},{"version":"9c65acc70d6beb5cc45fcc39d211a34f686d39aaf3e33a10d28a3df9e6267ec7","impliedFormat":1},{"version":"01658146c02cba2e49ee7beaa0b90864e7a17c3d02cc39cd8b643b5be3a1a438","impliedFormat":1},{"version":"fcbfe8a05b4b1d990aaf289b951ca3fb16bd5aa18004f576283576069be59939","impliedFormat":1},{"version":"db18ec88a0f1512b153a28a0ed1e19f34530885bca1d00e5f17a6e9b3184697f","impliedFormat":1},{"version":"21f166065c0725ca16281aa2f05f5ee9fb556795c8426049bf44ee36bdca9afd","impliedFormat":1},{"version":"36cd04c9f4116122a3545fcc6da5e522861d739718ab3a3cb7ff2268612531aa","impliedFormat":1},{"version":"9ae86dde42766df895cde73c60dc13347cc30829c6696de3cc54036b3120a5ba","impliedFormat":1},{"version":"6823cce79c10482d0860d40ebbfc29f00ddf7f99bca0aa23330599ddd8baead4","impliedFormat":1},{"version":"30ed6587fb249cc1b0585bab7ce2ca81ef193bfe2934241b6f06ffefdaaf4bf9","impliedFormat":1},{"version":"aa18fcf8ad877a9eb0c357c247708f019e25c4d906e3025d73604b66de8d7f11","impliedFormat":1},{"version":"cfc5482e113e44dae9712ae0a4e412788622221ae5eb1327fb69a13a0f5af662","impliedFormat":1},{"version":"5e620d0ed3eeb9a9a767355547123c85aea7e8f26d90e94d0cc3fa457f1c2035","impliedFormat":1},{"version":"304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","impliedFormat":1},{"version":"4904d7124f9731d2368b613523070ca594cbc82f172023b4b5678018be7b6022","impliedFormat":1},{"version":"18c078c2b34901a328c1fc3e5a2f5bd51aa0fef06a548418198955e0af5eaf39","impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"54f6ec6ea75acea6eb23635617252d249145edbc7bcd9d53f2d70280d2aef953","impliedFormat":1},{"version":"c25ce98cca43a3bfa885862044be0d59557be4ecd06989b2001a83dcf69620fd","impliedFormat":1},{"version":"8e71e53b02c152a38af6aec45e288cc65bede077b92b9b43b3cb54a37978bb33","impliedFormat":1},{"version":"754a9396b14ca3a4241591afb4edc644b293ccc8a3397f49be4dfd520c08acb3","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"de2316e90fc6d379d83002f04ad9698bc1e5285b4d52779778f454dd12ce9f44","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"2da997a01a6aa5c5c09de5d28f0f4407b597c5e1aecfd32f1815809c532650a2","impliedFormat":1},{"version":"5d26d2e47e2352def36f89a3e8bf8581da22b7f857e07ef3114cd52cf4813445","impliedFormat":1},{"version":"3db2efd285e7328d8014b54a7fce3f4861ebcdc655df40517092ed0050983617","impliedFormat":1},{"version":"d5d39a24c759df40480a4bfc0daffd364489702fdbcbdfc1711cde34f8739995","impliedFormat":1},{"version":"581b97f369056070fafbe168120a192e918e67763116dfbbb2782bbca5f32111","impliedFormat":1},{"version":"74f9797560463a8c9070dd72c04b38cc17b79759b841e2a4175a11742f2ecd11","impliedFormat":1},{"version":"ce22b96ece23ecc9bc1f2a445afefa0a487f299986a1584887e4e4217e196963","impliedFormat":1},{"version":"4788f58342a67af140858e23a24cdf62457ec1ff79af68ac71b9d3c0c89bb53b","impliedFormat":1},{"version":"be19e5bce1b45d5c0ef87d46c3a95a991a3cd8b6c7cb4d756791756e69cc3568","impliedFormat":1},{"version":"e9634e0306920990ddca8f667e3cb624597ea7a4cd25d557a599c0e175419879","impliedFormat":1},{"version":"d4866c666180e89bdc142940cb2986a8fa9f3d2a363cc757bb61cef698b6e976","impliedFormat":1},{"version":"e73799489c16d7281d0466925ba620e9f804bb78400e0dbe04997b98407b1ab5","impliedFormat":1},{"version":"cb279466d8f2d95f3ee0a24637506b18d18d9b1cb869b4dbb534b7597b06daec","impliedFormat":1},{"version":"b33057a3c7ea75948a207a5b784726118ec60f882eeb875bd64e932b4cd41041","impliedFormat":1},{"version":"b773bcdaeda86c0f58910cecd6c77a0bd60be763127c42cad5a64fe66799b1f6","impliedFormat":1},{"version":"9e2e0b4711f1efef5c3c488616334ba2e5b911648a8784fd77fc8beb1e5047c9","impliedFormat":1},{"version":"ca1c4f7d0c786d90ab15a363d59d0e18269b393191ed7b2841547c0e187a8d35","impliedFormat":1},{"version":"0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","impliedFormat":1},{"version":"28f1497962f8853339b46d766384abe7a907900998f551cf43cd793cdcb98e3d","impliedFormat":1},{"version":"e4cce0b510957aab4b12a0dc21a3b4857b8f8a85bbded2b8b81f836ca3c83dbc","impliedFormat":1},{"version":"79a0953f85a27dcaab70dd0e3791a3564631dfd5d85c637513027747c6844357","impliedFormat":1},{"version":"678c7436b7aa03dad934a96850ea395c018637013aa0b52a65898f502b4d6e2a","impliedFormat":1},{"version":"1c18a09d1deaf0e9906100ab54592f256f87fc94c67cce61bfc1c2ea44ac3d13","impliedFormat":1},{"version":"8a4470294a22dd13943cf7b946548fc302b79a10c618abae42a1bd6b2836df2d","impliedFormat":1},{"version":"de31f9f952f517711c33bfb326324234e5cf76693b25464f834975384d81cbde","signature":"4b72530564e181fce32f0e3a401226da0aa2301d644df23b3361046409abba76"},{"version":"e3d226803b165c5512bf3e2fce73d66884a02c18246c50f0cc193371894202f5","signature":"f840acb33abd2dcfa5e09eee7f9481dba1af6bf21bf18735525b83e83af93263"},{"version":"6bda74488ecdc46ef062cb19828febc60a1e4476565d84361b52522a4f68f88a","signature":"f647440f248ddb44cf9451cefdc42466c2330b3e053c66eaac8b73bb7b0d5ccf"},{"version":"647e34c91958843c1cab582c05ee22c75075334f89f5347d8870bf3551fac21f","signature":"b43105a64c1b6c3e9c5ecfd27f398dd41db68d3afc6f6060373a3b130d4a93b1"},{"version":"65e0f8f6b7f845c23f8b75920d681f507a45224719bc434ea66152ad76bdbc2a","signature":"5981b00ad05d7ceaec8a85293687da1b721ea5857e52805fe57c763c5583a533"},{"version":"787b2be0e82d7df2f41819d6b5ff76211600d59612af9ae8d9252eef17f0c0af","signature":"c15dbc9b1dc0477f428ba5e3ca83c88369af1900e98109b523fd8b0cc4779cb1"},{"version":"8e4ec07344b1aacb87f0463d6ec2d877575da884b7583d0c5097459749989cee","signature":"42a4dc84578b7fc9ffd2677eb8a93815c45523be3debb7b3010b8d3d0ec23f17"},{"version":"1ad7e9e69770f5066e99e3f6fb29f19c13c3b4ca1a8c2913bd1fa6706ba7d937","signature":"b5654a80cfcf0c0632df1823c1e80b96cfc3a8350ac13a6a9eadd512c658114c"},{"version":"c935b57634df515e5a04d7ec2d6711f9acd43f2caa04a1b7900a6364ba1acd46","signature":"c0935da534820af749a04800fea80a7bd2bed9202e26b63e5c93da5ad1f0dc04"},{"version":"dbce952e1d7841f577c3e874fe999e3766e9fd8c3f0ca6aa8cde85e0dac80b06","signature":"c23c4d8a56dfbce200b1fd94b94733ac9d1bb4f271821395e9c109c11649be8a"},{"version":"ab974a2fd5491f715a055708f5d2457468750cf190ff68c9241882d86caae229","signature":"6437c86774e097b8f99b82d1117d7443f7366f7512eb58ff53b2943192f583ef"},{"version":"2f05862e1a5fb1ac077994fe765ad5d416323a1050d9894aed09b2b5ef309fa6","signature":"ebcfbc954d5e60db98c6f4b89425ee1efeba85697fd55cb43fcc2d7e2625c458"},{"version":"9fd49fd3e75d8533412abfd548cf55829173d8244a1aef293cb4d30572f73382","signature":"94f16440011355f9185ff2c2417544ade796fcda22eab31d95acf05ce3c06402"},{"version":"4340ba94345f73fe10dae3d21789a8fb6b1b946c4a3ddbd1851bfd801f8b757e","signature":"0904a3e0944efe4fa0dd19067459ca68bad114dcba43aaa4e77d3106be19c7d9"},{"version":"5aec72103053d6a34ce1b1bed7529be6b3f8e7a92e9bf8116b441816616f7995","signature":"fa4c81d11ece7674ac0d8108c4e381d01206e753d10335d9f03f1905156d34a0"},{"version":"ed5fec863078f34abc37f6d6979c2f6b0da94502fa3dd534164795029286e2d7","signature":"11324bea4b2fe569b30a4f60e2bf13fcd0b2f1c9818c8a540ef7c0edcc4a0fa4"},{"version":"fbd7abf6307b3a47ec631b6ccaf54f940d53724541bcbff012e480859ee2f649","signature":"e3867c542911ae71b27443467fbba2b9a649d8a9c8a605cf675ed69e95994ae6"},"5d100ebcd3b1d0f045ffa405d789185a09fc209f1de88683536b824d06102728","01466ebb1230852e60403da689aa61bba758d704ba44b884a99347f0ccabbce6",{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"e72bcd16c134dae5a840b1d5d0e8b87e1d07fbbff01d66e9a7b913da3cd39b8e","impliedFormat":1},{"version":"ce6a3f09b8db73a7e9701aca91a04b4fabaf77436dd35b24482f9ee816016b17","impliedFormat":1},{"version":"20e086e5b64fdd52396de67761cc0e94693494deadb731264aac122adf08de3f","impliedFormat":1},{"version":"6e78f75403b3ec65efb41c70d392aeda94360f11cedc9fb2c039c9ea23b30962","impliedFormat":1},{"version":"c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","impliedFormat":1},{"version":"8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","impliedFormat":1},{"version":"42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","impliedFormat":1},{"version":"ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","impliedFormat":1},{"version":"83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","impliedFormat":1},{"version":"1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","impliedFormat":1},{"version":"0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","impliedFormat":1},{"version":"cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","impliedFormat":1},{"version":"c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","impliedFormat":1},{"version":"eefd2bbc8edb14c3bd1246794e5c070a80f9b8f3730bd42efb80df3cc50b9039","impliedFormat":1},{"version":"0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","impliedFormat":1},{"version":"7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","impliedFormat":1},{"version":"bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","impliedFormat":1},{"version":"52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","impliedFormat":1},{"version":"770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","impliedFormat":1},{"version":"d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","impliedFormat":1},{"version":"799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","impliedFormat":1},{"version":"2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","impliedFormat":1},{"version":"9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","impliedFormat":1},{"version":"397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","impliedFormat":1},{"version":"a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","impliedFormat":1},{"version":"a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","impliedFormat":1},{"version":"c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","impliedFormat":1},{"version":"4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","impliedFormat":1},{"version":"f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","impliedFormat":1},{"version":"cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","impliedFormat":1},{"version":"b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","impliedFormat":1},{"version":"c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","impliedFormat":1},{"version":"14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","impliedFormat":1},{"version":"a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","impliedFormat":1},{"version":"f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","impliedFormat":1},{"version":"3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","impliedFormat":1},{"version":"662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","impliedFormat":1},{"version":"c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","impliedFormat":1},{"version":"2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","impliedFormat":1},{"version":"34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","impliedFormat":1},{"version":"a56fe175741cc8841835eb72e61fa5a34adcbc249ede0e3494c229f0750f6b85","impliedFormat":1}],"root":[[132,150]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":6,"useUnknownInCatchVariables":false},"referencedMap":[[132,1],[53,2],[54,3],[178,4],[179,5],[155,6],[158,7],[176,4],[177,4],[167,4],[166,8],[164,4],[159,4],[172,4],[170,4],[174,4],[154,4],[171,4],[175,4],[160,4],[161,4],[173,4],[156,4],[162,4],[163,4],[165,4],[169,4],[180,9],[168,4],[157,4],[193,10],[187,9],[189,11],[188,9],[181,9],[182,9],[184,9],[186,9],[190,11],[191,11],[183,11],[185,11],[88,12],[89,12],[90,12],[91,12],[93,13],[92,12],[94,12],[59,14],[62,15],[55,16],[56,17],[57,17],[58,17],[72,18],[75,16],[61,19],[74,20],[60,19],[77,21],[63,22],[64,23],[66,19],[71,24],[73,14],[68,25],[67,26],[65,27],[69,25],[70,15],[80,28],[123,29],[124,30],[112,31],[121,12],[131,32],[83,33],[84,12],[96,12],[115,1],[126,29],[85,28],[127,14],[128,12],[114,12],[86,12],[87,12],[113,12],[120,12],[118,12],[119,12],[117,12],[116,34],[81,35],[111,36],[100,37],[102,38],[109,39],[103,40],[106,41],[110,42],[101,43],[108,44],[148,45],[140,46],[141,47],[147,1],[146,1],[139,1],[136,46],[134,47],[138,46],[137,47],[144,46],[145,47],[143,46],[142,47],[133,1],[135,1]],"version":"5.9.2"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "n8n-nodes-afipsdk",
3
+ "version": "1.0.0",
4
+ "description": "n8n nodes for Afip SDK integration.",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "AfipSDK team",
12
+ "email": "ayuda@afipsdk.com"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/AfipSDK/n8n-nodes-afipsdk"
17
+ },
18
+ "publishConfig": {
19
+ "provenance": true
20
+ },
21
+ "scripts": {
22
+ "build": "n8n-node build",
23
+ "build:watch": "tsc --watch",
24
+ "dev": "n8n-node dev",
25
+ "lint": "n8n-node lint",
26
+ "lint:fix": "n8n-node lint --fix",
27
+ "release": "n8n-node release",
28
+ "prepublishOnly": "npm run build && npm run lint"
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "n8n": {
34
+ "n8nNodesApiVersion": 1,
35
+ "strict": true,
36
+ "credentials": [
37
+ "dist/credentials/AfipSdkApi.credentials.js"
38
+ ],
39
+ "nodes": [
40
+ "dist/nodes/AfipSdk/AfipSdk.node.js"
41
+ ]
42
+ },
43
+ "devDependencies": {
44
+ "@n8n/node-cli": "*",
45
+ "eslint": "9.32.0",
46
+ "prettier": "3.6.2",
47
+ "release-it": "^19.0.4",
48
+ "typescript": "5.9.2"
49
+ },
50
+ "peerDependencies": {
51
+ "n8n-workflow": "*"
52
+ }
53
+ }