n8n-nodes-acumatica 0.1.1
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.
- package/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/nodes/ACM_Default_24_200_001/acu.png +0 -0
- package/dist/nodes/ACM_Default_25_200_001/acu.png +0 -0
- package/dist/package-lock.json +32607 -0
- package/dist/package.json +48 -0
- package/dist/src/credentials/AcumaticaOAuth2Api.credentials.d.ts +9 -0
- package/dist/src/credentials/AcumaticaOAuth2Api.credentials.js +95 -0
- package/dist/src/credentials/AcumaticaOAuth2Api.d.ts +9 -0
- package/dist/src/credentials/AcumaticaOAuth2Api.js +95 -0
- package/dist/src/nodes/ACM_Default_24_200_001/ACM_Default_24_200_001.node.d.ts +4 -0
- package/dist/src/nodes/ACM_Default_24_200_001/ACM_Default_24_200_001.node.js +72 -0
- package/dist/src/nodes/ACM_Default_24_200_001/swagger.json +102005 -0
- package/dist/src/nodes/ACM_Default_25_200_001/ACM_Default_25_200_001.node.d.ts +4 -0
- package/dist/src/nodes/ACM_Default_25_200_001/ACM_Default_25_200_001.node.js +72 -0
- package/dist/src/nodes/ACM_Default_25_200_001/swagger.json +102239 -0
- package/dist/src/parsers/AcumaticaOperationParser.d.ts +7 -0
- package/dist/src/parsers/AcumaticaOperationParser.js +77 -0
- package/dist/src/parsers/AcumaticaResourceParser.d.ts +14 -0
- package/dist/src/parsers/AcumaticaResourceParser.js +97 -0
- package/dist/tsconfig.json +25 -0
- package/package.json +48 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ACM_Default_25_200_001 = void 0;
|
|
37
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
38
|
+
const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
|
|
39
|
+
const AcumaticaResourceParser_1 = require("../../parsers/AcumaticaResourceParser");
|
|
40
|
+
const AcumaticaOperationParser_1 = require("../../parsers/AcumaticaOperationParser");
|
|
41
|
+
const doc = __importStar(require("./swagger.json"));
|
|
42
|
+
const parser = new n8n_openapi_node_1.N8NPropertiesBuilder(doc, {
|
|
43
|
+
resource: new AcumaticaResourceParser_1.AcumaticaResourceParser(),
|
|
44
|
+
operation: new AcumaticaOperationParser_1.AcumaticaOperationParser()
|
|
45
|
+
});
|
|
46
|
+
const properties = parser.build();
|
|
47
|
+
class ACM_Default_25_200_001 {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.description = {
|
|
50
|
+
displayName: 'Acumatica Endpoint Default.25.200.001',
|
|
51
|
+
name: 'ACM.Default.25.200.001',
|
|
52
|
+
icon: 'file:acu.png',
|
|
53
|
+
group: ['transform'],
|
|
54
|
+
version: 1,
|
|
55
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
56
|
+
description: 'Interact with Acumatica Endpoint Default.25.200.001',
|
|
57
|
+
defaults: { name: 'Your Service' },
|
|
58
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
59
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
60
|
+
credentials: [{ name: 'acumaticaOAuth2Api', required: true }],
|
|
61
|
+
requestDefaults: {
|
|
62
|
+
headers: {
|
|
63
|
+
Accept: 'application/json',
|
|
64
|
+
'Content-Type': 'application/json',
|
|
65
|
+
},
|
|
66
|
+
baseURL: '={{$credentials.url}}',
|
|
67
|
+
},
|
|
68
|
+
properties: properties,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.ACM_Default_25_200_001 = ACM_Default_25_200_001;
|