n8n-nodes-wazend-api 0.2.1 → 0.3.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 (57) hide show
  1. package/NOTICE.md +2 -0
  2. package/dist/credentials/WazendApi.credentials.js +66 -40
  3. package/dist/credentials/wazend.svg +1 -0
  4. package/dist/nodes/Wazend/Wazend.node.js +20577 -19
  5. package/dist/nodes/Wazend/Wazend.node.json +17 -17
  6. package/dist/nodes/Wazend/WazendTrigger.node.js +8711 -19
  7. package/dist/nodes/Wazend/WazendTrigger.node.json +17 -17
  8. package/package.json +18 -12
  9. package/dist/credentials/WazendApi.credentials.d.ts +0 -8
  10. package/dist/credentials/WazendApi.credentials.js.map +0 -1
  11. package/dist/nodes/Wazend/Wazend.node.d.ts +0 -4
  12. package/dist/nodes/Wazend/Wazend.node.js.map +0 -1
  13. package/dist/nodes/Wazend/WazendTrigger.node.d.ts +0 -4
  14. package/dist/nodes/Wazend/WazendTrigger.node.js.map +0 -1
  15. package/dist/nodes/Wazend/base/node.d.ts +0 -21
  16. package/dist/nodes/Wazend/base/node.js +0 -32
  17. package/dist/nodes/Wazend/base/node.js.map +0 -1
  18. package/dist/nodes/Wazend/base/trigger.d.ts +0 -18
  19. package/dist/nodes/Wazend/base/trigger.js +0 -75
  20. package/dist/nodes/Wazend/base/trigger.js.map +0 -1
  21. package/dist/nodes/Wazend/openapi/WazendOperationParser.d.ts +0 -8
  22. package/dist/nodes/Wazend/openapi/WazendOperationParser.js +0 -48
  23. package/dist/nodes/Wazend/openapi/WazendOperationParser.js.map +0 -1
  24. package/dist/nodes/Wazend/openapi/WazendOperationsCollector.d.ts +0 -6
  25. package/dist/nodes/Wazend/openapi/WazendOperationsCollector.js +0 -22
  26. package/dist/nodes/Wazend/openapi/WazendOperationsCollector.js.map +0 -1
  27. package/dist/nodes/Wazend/openapi/WazendResourceParser.d.ts +0 -5
  28. package/dist/nodes/Wazend/openapi/WazendResourceParser.js +0 -35
  29. package/dist/nodes/Wazend/openapi/WazendResourceParser.js.map +0 -1
  30. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.d.ts +0 -5
  31. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.js +0 -52
  32. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.js.map +0 -1
  33. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.test.d.ts +0 -1
  34. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.test.js +0 -51
  35. package/dist/nodes/Wazend/v202409/WazendTriggerV202409.test.js.map +0 -1
  36. package/dist/nodes/Wazend/v202409/Wazendv202409.d.ts +0 -4
  37. package/dist/nodes/Wazend/v202409/Wazendv202409.js +0 -91
  38. package/dist/nodes/Wazend/v202409/Wazendv202409.js.map +0 -1
  39. package/dist/nodes/Wazend/v202409/Wazendv202409.test.d.ts +0 -1
  40. package/dist/nodes/Wazend/v202409/Wazendv202409.test.js +0 -7918
  41. package/dist/nodes/Wazend/v202409/Wazendv202409.test.js.map +0 -1
  42. package/dist/nodes/Wazend/v202409/openapi.json +0 -8132
  43. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.d.ts +0 -5
  44. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.js +0 -52
  45. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.js.map +0 -1
  46. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.test.d.ts +0 -1
  47. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.test.js +0 -63
  48. package/dist/nodes/Wazend/v202502/WazendTriggerV202502.test.js.map +0 -1
  49. package/dist/nodes/Wazend/v202502/Wazendv202502.d.ts +0 -4
  50. package/dist/nodes/Wazend/v202502/Wazendv202502.js +0 -91
  51. package/dist/nodes/Wazend/v202502/Wazendv202502.js.map +0 -1
  52. package/dist/nodes/Wazend/v202502/Wazendv202502.test.d.ts +0 -1
  53. package/dist/nodes/Wazend/v202502/Wazendv202502.test.js +0 -10678
  54. package/dist/nodes/Wazend/v202502/Wazendv202502.test.js.map +0 -1
  55. package/dist/nodes/Wazend/v202502/openapi.json +0 -11087
  56. package/dist/package.json +0 -71
  57. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,20 +1,20 @@
1
1
  {
2
- "node": "n8n-nodes-wazend-api.wazendTrigger",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": [
6
- "Whatsapp"
2
+ "node": "n8n-nodes-wazend-api.wazendTrigger",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Whatsapp"
7
+ ],
8
+ "resources": {
9
+ "credentialDocumentation": [
10
+ {
11
+ "url": "https://wazend.net/docs/introduccion"
12
+ }
7
13
  ],
8
- "resources": {
9
- "credentialDocumentation": [
10
- {
11
- "url": "https://wazend.net/docs/introduccion"
12
- }
13
- ],
14
- "primaryDocumentation": [
15
- {
16
- "url": "https://wazend.net/docs/introduccion"
17
- }
18
- ]
19
- }
14
+ "primaryDocumentation": [
15
+ {
16
+ "url": "https://wazend.net/docs/introduccion"
17
+ }
18
+ ]
19
+ }
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-wazend-api",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Wazend API nodes for WhatsApp messaging and webhook events in n8n",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
@@ -20,13 +20,17 @@
20
20
  "src"
21
21
  ],
22
22
  "main": "index.js",
23
+ "peerDependencies": {
24
+ "n8n-workflow": "*"
25
+ },
23
26
  "scripts": {
24
- "build": "tsc && node scripts/copy-icons.mjs",
27
+ "build": "node scripts/build.mjs",
25
28
  "test": "jest --runInBand",
26
29
  "test:sync": "node scripts/sync.test.mjs",
27
30
  "check:branding": "node scripts/check-branding.mjs",
28
- "lint": "eslint nodes credentials package.json",
29
- "prepublishOnly": "npm run check:branding && npm test && npm run build"
31
+ "lint": "node scripts/lint-community.mjs",
32
+ "lint:dist": "node scripts/lint-community.mjs --dist",
33
+ "prepublishOnly": "npm run check:branding && npm run lint && npm test && npm run build && npm run lint:dist"
30
34
  },
31
35
  "files": [
32
36
  "dist",
@@ -44,27 +48,29 @@
44
48
  ]
45
49
  },
46
50
  "devDependencies": {
51
+ "@devlikeapro/n8n-openapi-node": "^0.1.4",
52
+ "@n8n/eslint-plugin-community-nodes": "^0.32.0",
47
53
  "@types/express": "^4.17.6",
48
54
  "@types/jest": "^29.5.12",
49
55
  "@types/lodash": "^4.17.7",
50
56
  "@types/node": "^22.5.5",
51
57
  "@types/request-promise-native": "~1.0.15",
52
- "@typescript-eslint/parser": "~5.45",
53
- "eslint-plugin-n8n-nodes-base": "^1.11.0",
58
+ "@typescript-eslint/parser": "^8.35.0",
59
+ "esbuild": "^0.25.0",
60
+ "eslint": "^9.29.0",
61
+ "eslint-plugin-n8n-nodes-base": "^1.16.7",
62
+ "fast-glob": "^3.3.3",
54
63
  "gulp": "^4.0.2",
55
64
  "jest": "^29.7.0",
65
+ "lodash": "^4.17.21",
56
66
  "n8n-core": "*",
57
67
  "n8n-workflow": "*",
68
+ "openapi-types": "^12.1.3",
69
+ "pino": "^9.4.0",
58
70
  "prettier": "^2.7.1",
59
71
  "ts-jest": "^29.2.5",
60
72
  "typescript": "~4.8.4"
61
73
  },
62
- "dependencies": {
63
- "@devlikeapro/n8n-openapi-node": "^0.1.4",
64
- "lodash": "^4.17.21",
65
- "openapi-types": "^12.1.3",
66
- "pino": "^9.4.0"
67
- },
68
74
  "bugs": {
69
75
  "url": "https://github.com/ronnaldrangel/n8n-nodes-wazend-api/issues"
70
76
  }
@@ -1,8 +0,0 @@
1
- import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class WazendApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- properties: INodeProperties[];
6
- authenticate: IAuthenticateGeneric;
7
- test: ICredentialTestRequest;
8
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendApi.credentials.js","sourceRoot":"","sources":["../../credentials/WazendApi.credentials.ts"],"names":[],"mappings":";;;AAMA,MAAa,SAAS;IAAtB;QACI,SAAI,GAAG,WAAW,CAAC;QACnB,gBAAW,GAAG,YAAY,CAAC;QAC3B,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,gCAAgC;aAC5C;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACjB,QAAQ,EAAE,KAAK;aACZ;SACJ,CAAC;QAEF,iBAAY,GAAyB;YACjC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,WAAW,EAAE,0BAA0B;iBAC1C;aACJ;SACJ,CAAC;QACF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACX,OAAO,EAAE,uBAAuB;gBAC1B,GAAG,EAAE,eAAe;aACvB;SACJ,CAAC;IACN,CAAC;CAAA;AAlCD,8BAkCC"}
@@ -1,4 +0,0 @@
1
- import { VersionedNodeType } from 'n8n-workflow';
2
- export declare class Wazend extends VersionedNodeType {
3
- constructor();
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Wazend.node.js","sourceRoot":"","sources":["../../../nodes/Wazend/Wazend.node.ts"],"names":[],"mappings":";;;AACA,+CAAiD;AACjD,2DAAwD;AACxD,sCAA6C;AAC7C,2DAAsD;AAEtD,MAAa,MAAO,SAAQ,gCAAiB;IAC5C;QACC,MAAM,eAAe,GAA6B;YACjD,GAAG,uBAAgB;YACnB,cAAc,EAAE,MAAM;SACtB,CAAC;QAEF,MAAM,YAAY,GAAuC;YACxD,MAAM,EAAE,IAAI,6BAAa,EAAE;YAC3B,MAAM,EAAE,IAAI,6BAAa,EAAE;SAC3B,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IACtC,CAAC;CACD;AAdD,wBAcC"}
@@ -1,4 +0,0 @@
1
- import { VersionedNodeType } from 'n8n-workflow';
2
- export declare class WazendTrigger extends VersionedNodeType {
3
- constructor();
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Wazend/WazendTrigger.node.ts"],"names":[],"mappings":";;;AACA,+CAAiD;AACjD,4CAAwD;AACxD,yEAAoE;AACpE,yEAAoE;AAEpE,MAAa,aAAc,SAAQ,gCAAiB;IACnD;QACC,MAAM,eAAe,GAA6B;YACjD,GAAG,kCAAwB;YAC3B,cAAc,EAAE,MAAM;SACtB,CAAC;QAEF,MAAM,YAAY,GAAuC;YACxD,MAAM,EAAE,IAAI,2CAAoB,EAAE;YAClC,MAAM,EAAE,IAAI,2CAAoB,EAAE;SAClC,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IACtC,CAAC;CACD;AAdD,sCAcC"}
@@ -1,21 +0,0 @@
1
- import { INodeTypeBaseDescription, NodeConnectionType } from "n8n-workflow";
2
- export declare const BASE_DESCRIPTION: INodeTypeBaseDescription;
3
- export declare const NODE_DESCRIPTION: {
4
- subtitle: string;
5
- inputs: NodeConnectionType[];
6
- outputs: NodeConnectionType[];
7
- defaults: {
8
- name: string;
9
- };
10
- credentials: {
11
- name: string;
12
- required: boolean;
13
- }[];
14
- requestDefaults: {
15
- headers: {
16
- Accept: string;
17
- 'Content-Type': string;
18
- };
19
- baseURL: string;
20
- };
21
- };
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NODE_DESCRIPTION = exports.BASE_DESCRIPTION = void 0;
4
- exports.BASE_DESCRIPTION = {
5
- name: 'Wazend',
6
- displayName: 'Wazend',
7
- icon: 'file:wazend.svg',
8
- description: 'Connect with Whatsapp HTTP API',
9
- group: ['transform'],
10
- };
11
- exports.NODE_DESCRIPTION = {
12
- subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
13
- inputs: ["main"],
14
- outputs: ["main"],
15
- defaults: {
16
- name: 'Wazend',
17
- },
18
- credentials: [
19
- {
20
- name: 'wazendApi',
21
- required: true,
22
- },
23
- ],
24
- requestDefaults: {
25
- headers: {
26
- Accept: 'application/json',
27
- 'Content-Type': 'application/json',
28
- },
29
- baseURL: '={{$credentials.url}}',
30
- },
31
- };
32
- //# sourceMappingURL=node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../../nodes/Wazend/base/node.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAA6B;IACzD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE,CAAC,WAAW,CAAC;CACpB,CAAC;AAGW,QAAA,gBAAgB,GAAG;IAC/B,QAAQ,EAAE,8DAA8D;IACxE,MAAM,EAAE,QAAyB;IACjC,OAAO,EAAE,QAAyB;IAClC,QAAQ,EAAE;QACT,IAAI,EAAE,QAAQ;KACd;IACD,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,IAAI;SACd;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE;YACR,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SAClC;QACD,OAAO,EAAE,uBAAuB;KAChC;CACD,CAAA"}
@@ -1,18 +0,0 @@
1
- import { INodeProperties, INodeTypeBaseDescription, WebhookType, type IWebhookFunctions, type IWebhookResponseData } from 'n8n-workflow';
2
- export declare const BASE_TRIGGER_DESCRIPTION: INodeTypeBaseDescription;
3
- export declare const TRIGGER_DESCRIPTION: {
4
- defaults: {
5
- name: string;
6
- };
7
- inputs: never[];
8
- credentials: never[];
9
- webhooks: {
10
- name: WebhookType;
11
- httpMethod: string;
12
- responseMode: string;
13
- path: string;
14
- }[];
15
- };
16
- export declare const CONFIGURE_WEBHOOK_NOTE: INodeProperties;
17
- export declare function makeEventNote(events: string[]): INodeProperties;
18
- export declare function makeWebhookForEvents(events: string[]): (this: IWebhookFunctions) => Promise<IWebhookResponseData>;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeWebhookForEvents = exports.makeEventNote = exports.CONFIGURE_WEBHOOK_NOTE = exports.TRIGGER_DESCRIPTION = exports.BASE_TRIGGER_DESCRIPTION = void 0;
4
- exports.BASE_TRIGGER_DESCRIPTION = {
5
- displayName: 'Wazend Trigger',
6
- name: 'wazendTrigger',
7
- icon: 'file:wazend.svg',
8
- group: ['trigger'],
9
- description: 'Handle Wazend events via webhooks',
10
- };
11
- exports.TRIGGER_DESCRIPTION = {
12
- defaults: {
13
- name: 'Wazend Trigger',
14
- },
15
- inputs: [],
16
- credentials: [],
17
- webhooks: [
18
- {
19
- name: 'default',
20
- httpMethod: 'POST',
21
- responseMode: 'onReceived',
22
- path: 'wazend',
23
- },
24
- ],
25
- };
26
- exports.CONFIGURE_WEBHOOK_NOTE = {
27
- displayName: 'Remember to configure Wazend instance (session or server) to send events to <b>Webhook URL</b>. ' +
28
- '<br/>Check <b>Docs</b> link above☝️',
29
- name: 'operation',
30
- type: 'notice',
31
- typeOptions: {
32
- theme: 'info',
33
- },
34
- default: '',
35
- };
36
- function noteText(events) {
37
- const parts = ['<b>Events</b>:'];
38
- for (const event of events) {
39
- parts.push(`- ${event}`);
40
- }
41
- return parts.join('<br>');
42
- }
43
- function makeEventNote(events) {
44
- return {
45
- displayName: noteText(events),
46
- name: 'operation',
47
- type: 'notice',
48
- typeOptions: {
49
- theme: 'info',
50
- },
51
- default: '',
52
- };
53
- }
54
- exports.makeEventNote = makeEventNote;
55
- function makeWebhookForEvents(events) {
56
- async function webhook() {
57
- const bodyData = this.getBodyData();
58
- const eventType = bodyData.event;
59
- if (eventType === undefined || !events.includes(eventType)) {
60
- return {};
61
- }
62
- const eventIndex = events.indexOf(eventType);
63
- const req = this.getRequestObject();
64
- const data = this.helpers.returnJsonArray(req.body);
65
- const empty = [];
66
- const workflowData = events.map((_) => empty);
67
- workflowData[eventIndex] = data;
68
- return {
69
- workflowData: workflowData,
70
- };
71
- }
72
- return webhook;
73
- }
74
- exports.makeWebhookForEvents = makeWebhookForEvents;
75
- //# sourceMappingURL=trigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../../nodes/Wazend/base/trigger.ts"],"names":[],"mappings":";;;AAUa,QAAA,wBAAwB,GAA6B;IACjE,WAAW,EAAE,gBAAgB;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,CAAC,SAAS,CAAC;IAClB,WAAW,EAAE,mCAAmC;CAChD,CAAC;AACW,QAAA,mBAAmB,GAAG;IAClC,QAAQ,EAAE;QACT,IAAI,EAAE,gBAAgB;KACtB;IACD,MAAM,EAAE,EAAE;IACV,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE;QACT;YACC,IAAI,EAAE,SAAwB;YAC9B,UAAU,EAAE,MAAM;YAClB,YAAY,EAAE,YAAY;YAC1B,IAAI,EAAE,QAAQ;SACd;KACD;CACD,CAAC;AAEW,QAAA,sBAAsB,GAAoB;IACtD,WAAW,EACV,kGAAkG;QAClG,qCAAqC;IACtC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE;QACZ,KAAK,EAAE,MAAM;KACb;IACD,OAAO,EAAE,EAAE;CACX,CAAC;AAEF,SAAS,QAAQ,CAAC,MAAgB;IACjC,MAAM,KAAK,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACjC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC3B,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;KACzB;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED,SAAgB,aAAa,CAAC,MAAgB;IAC7C,OAAO;QACN,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC;QAC7B,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,KAAK,EAAE,MAAM;SACb;QACD,OAAO,EAAE,EAAE;KACX,CAAC;AACH,CAAC;AAVD,sCAUC;AAED,SAAgB,oBAAoB,CAAC,MAAgB;IACpD,KAAK,UAAU,OAAO;QACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEpC,MAAM,SAAS,GAAG,QAAQ,CAAC,KAA2B,CAAC;QAEvD,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAG3D,OAAO,EAAE,CAAC;SACV;QACD,MAAM,UAAU,GAAW,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACrD,MAAM,GAAG,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,IAAmB,CAAC,CAAC;QACnE,MAAM,KAAK,GAAyB,EAAE,CAAC;QACvC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;QAC9C,YAAY,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;QAEhC,OAAO;YACN,YAAY,EAAE,YAAY;SAC1B,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AAzBD,oDAyBC"}
@@ -1,8 +0,0 @@
1
- import { OpenAPIV3 } from 'openapi-types';
2
- import { DefaultOperationParser, OperationContext } from '@devlikeapro/n8n-openapi-node';
3
- export declare class WazendOperationParser extends DefaultOperationParser {
4
- name(operation: OpenAPIV3.OperationObject, context: OperationContext): string;
5
- value(operation: OpenAPIV3.OperationObject, context: OperationContext): string;
6
- action(operation: OpenAPIV3.OperationObject, context: OperationContext): string;
7
- description(operation: OpenAPIV3.OperationObject, context: OperationContext): string;
8
- }
@@ -1,48 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.WazendOperationParser = void 0;
27
- const lodash = __importStar(require("lodash"));
28
- const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
29
- class WazendOperationParser extends n8n_openapi_node_1.DefaultOperationParser {
30
- name(operation, context) {
31
- let operationId = operation.operationId.split('_').slice(1).join('_');
32
- if (!operationId) {
33
- operationId = operation.operationId;
34
- }
35
- return lodash.startCase(operationId);
36
- }
37
- value(operation, context) {
38
- return this.name(operation, context);
39
- }
40
- action(operation, context) {
41
- return operation.summary || this.name(operation, context);
42
- }
43
- description(operation, context) {
44
- return operation.description || operation.summary || '';
45
- }
46
- }
47
- exports.WazendOperationParser = WazendOperationParser;
48
- //# sourceMappingURL=WazendOperationParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendOperationParser.js","sourceRoot":"","sources":["../../../../nodes/Wazend/openapi/WazendOperationParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAiC;AACjC,oEAAyF;AAEzF,MAAa,qBAAsB,SAAQ,yCAAsB;IAChE,IAAI,CAAC,SAAoC,EAAE,OAAyB;QACnE,IAAI,WAAW,GAAW,SAAS,CAAC,WAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChF,IAAI,CAAC,WAAW,EAAE;YACjB,WAAW,GAAG,SAAS,CAAC,WAAqB,CAAC;SAC9C;QACD,OAAO,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,SAAoC,EAAE,OAAyB;QACpE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,SAAoC,EAAE,OAAyB;QACrE,OAAO,SAAS,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,WAAW,CAAC,SAAoC,EAAE,OAAyB;QAC1E,OAAO,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC;IACzD,CAAC;CACD;AApBD,sDAoBC"}
@@ -1,6 +0,0 @@
1
- import { OpenAPIV3 } from 'openapi-types';
2
- import { INodeProperties } from 'n8n-workflow';
3
- import { OperationsCollector, OperationContext } from '@devlikeapro/n8n-openapi-node';
4
- export declare class WazendOperationsCollector extends OperationsCollector {
5
- parseFields(operation: OpenAPIV3.OperationObject, context: OperationContext): INodeProperties[];
6
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WazendOperationsCollector = void 0;
4
- const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
5
- function sessionFirst(a, b) {
6
- if (a.name === 'session') {
7
- return -1;
8
- }
9
- if (b.name === 'session') {
10
- return 1;
11
- }
12
- return 0;
13
- }
14
- class WazendOperationsCollector extends n8n_openapi_node_1.OperationsCollector {
15
- parseFields(operation, context) {
16
- const fields = super.parseFields(operation, context);
17
- fields.sort(sessionFirst);
18
- return fields;
19
- }
20
- }
21
- exports.WazendOperationsCollector = WazendOperationsCollector;
22
- //# sourceMappingURL=WazendOperationsCollector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendOperationsCollector.js","sourceRoot":"","sources":["../../../../nodes/Wazend/openapi/WazendOperationsCollector.ts"],"names":[],"mappings":";;;AAEA,oEAAsF;AAEtF,SAAS,YAAY,CAAC,CAAM,EAAE,CAAM;IACnC,IAAI,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE;QACzB,OAAO,CAAC,CAAC,CAAC;KACV;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE;QACzB,OAAO,CAAC,CAAC;KACT;IACD,OAAO,CAAC,CAAC;AACV,CAAC;AAED,MAAa,yBAA0B,SAAQ,sCAAmB;IAEjE,WAAW,CAAC,SAAoC,EAAE,OAAyB;QAC1E,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE1B,OAAO,MAAM,CAAC;IACf,CAAC;CACD;AARD,8DAQC"}
@@ -1,5 +0,0 @@
1
- import { OpenAPIV3 } from 'openapi-types';
2
- import { DefaultResourceParser } from '@devlikeapro/n8n-openapi-node';
3
- export declare class WazendResourceParser extends DefaultResourceParser {
4
- value(tag: OpenAPIV3.TagObject): string;
5
- }
@@ -1,35 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.WazendResourceParser = void 0;
27
- const lodash = __importStar(require("lodash"));
28
- const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
29
- class WazendResourceParser extends n8n_openapi_node_1.DefaultResourceParser {
30
- value(tag) {
31
- return lodash.startCase(tag.name.replace(/[^a-zA-Z0-9_-]/g, ''));
32
- }
33
- }
34
- exports.WazendResourceParser = WazendResourceParser;
35
- //# sourceMappingURL=WazendResourceParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendResourceParser.js","sourceRoot":"","sources":["../../../../nodes/Wazend/openapi/WazendResourceParser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAiC;AACjC,oEAAsE;AAEtE,MAAa,oBAAqB,SAAQ,wCAAqB;IAC9D,KAAK,CAAC,GAAwB;QAC7B,OAAO,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;CACD;AAJD,oDAIC"}
@@ -1,5 +0,0 @@
1
- import { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class WazendTriggerV202409 implements INodeType {
3
- description: INodeTypeDescription;
4
- webhook: (this: import("n8n-workflow").IWebhookFunctions) => Promise<import("n8n-workflow").IWebhookResponseData>;
5
- }
@@ -1,52 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.WazendTriggerV202409 = void 0;
27
- const doc = __importStar(require("./openapi.json"));
28
- const trigger_1 = require("../base/trigger");
29
- function getEvents() {
30
- const schemas = doc.components.schemas;
31
- const schema = schemas.WazendWebhookSessionStatus;
32
- const event = schema.properties.event;
33
- return event.enum;
34
- }
35
- const events = getEvents();
36
- const outputs = events.map((_) => "main");
37
- const outputNames = events;
38
- class WazendTriggerV202409 {
39
- constructor() {
40
- this.description = {
41
- ...trigger_1.BASE_TRIGGER_DESCRIPTION,
42
- ...trigger_1.TRIGGER_DESCRIPTION,
43
- version: 202409,
44
- outputs: outputs,
45
- outputNames: outputNames,
46
- properties: [trigger_1.CONFIGURE_WEBHOOK_NOTE, (0, trigger_1.makeEventNote)(events)],
47
- };
48
- this.webhook = (0, trigger_1.makeWebhookForEvents)(events);
49
- }
50
- }
51
- exports.WazendTriggerV202409 = WazendTriggerV202409;
52
- //# sourceMappingURL=WazendTriggerV202409.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendTriggerV202409.js","sourceRoot":"","sources":["../../../../nodes/Wazend/v202409/WazendTriggerV202409.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,oDAAsC;AACtC,6CAKyB;AAEzB,SAAS,SAAS;IACjB,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC;AACnB,CAAC;AAED,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;AAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,OAAwB,CAAC,CAAC;AAC3D,MAAM,WAAW,GAAG,MAAM,CAAC;AAG3B,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,GAAG,kCAAwB;YAC3B,GAAG,6BAAmB;YACtB,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,WAAW;YACxB,UAAU,EAAE,CAAC,gCAAsB,EAAE,IAAA,uBAAa,EAAC,MAAM,CAAC,CAAC;SAC3D,CAAC;QACF,YAAO,GAAG,IAAA,8BAAoB,EAAC,MAAM,CAAC,CAAA;IACvC,CAAC;CAAA;AAVD,oDAUC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const WazendTriggerV202409_1 = require("./WazendTriggerV202409");
4
- test('WazendTriggerV202409.outputs', () => {
5
- const node = new WazendTriggerV202409_1.WazendTriggerV202409();
6
- expect(node.description.outputs).toEqual([
7
- 'main',
8
- 'main',
9
- 'main',
10
- 'main',
11
- 'main',
12
- 'main',
13
- 'main',
14
- 'main',
15
- 'main',
16
- 'main',
17
- 'main',
18
- 'main',
19
- 'main',
20
- 'main',
21
- 'main',
22
- 'main',
23
- 'main',
24
- 'main',
25
- 'main',
26
- 'main',
27
- ]);
28
- expect(node.description.outputNames).toEqual([
29
- 'session.status',
30
- 'message',
31
- 'message.reaction',
32
- 'message.any',
33
- 'message.ack',
34
- 'message.revoked',
35
- 'state.change',
36
- 'group.join',
37
- 'group.leave',
38
- 'presence.update',
39
- 'poll.vote',
40
- 'poll.vote.failed',
41
- 'chat.archive',
42
- 'call.received',
43
- 'call.accepted',
44
- 'call.rejected',
45
- 'label.upsert',
46
- 'label.deleted',
47
- 'label.chat.added',
48
- 'label.chat.deleted',
49
- ]);
50
- });
51
- //# sourceMappingURL=WazendTriggerV202409.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WazendTriggerV202409.test.js","sourceRoot":"","sources":["../../../../nodes/Wazend/v202409/WazendTriggerV202409.test.ts"],"names":[],"mappings":";;AAAA,iEAA8D;AAE9D,IAAI,CAAC,8BAA8B,EAAE,GAAG,EAAE;IACzC,MAAM,IAAI,GAAG,IAAI,2CAAoB,EAAE,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;QACxC,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACN,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;QAC5C,gBAAgB;QAChB,SAAS;QACT,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,iBAAiB;QACjB,cAAc;QACd,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,WAAW;QACX,kBAAkB;QAClB,cAAc;QACd,eAAe;QACf,eAAe;QACf,eAAe;QACf,cAAc;QACd,eAAe;QACf,kBAAkB;QAClB,oBAAoB;KACpB,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class Wazendv202409 implements INodeType {
3
- description: INodeTypeDescription;
4
- }