n8n-nodes-klicktipp 1.0.7 → 1.0.8

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 (72) hide show
  1. package/README.md +48 -38
  2. package/dist/credentials/KlickTippApi.credentials.js +0 -9
  3. package/dist/credentials/KlickTippApi.credentials.js.map +1 -1
  4. package/dist/nodes/KlickTipp/KlickTipp.node.json +1 -1
  5. package/dist/nodes/KlickTipp/KlickTippTrigger.node.d.ts +5 -0
  6. package/dist/nodes/KlickTipp/KlickTippTrigger.node.js +50 -0
  7. package/dist/nodes/KlickTipp/KlickTippTrigger.node.js.map +1 -0
  8. package/dist/nodes/KlickTipp/actions/contact-tagging/index.d.ts +5 -0
  9. package/dist/nodes/KlickTipp/actions/contact-tagging/index.js +61 -0
  10. package/dist/nodes/KlickTipp/actions/contact-tagging/index.js.map +1 -0
  11. package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/tag.operation.js +4 -4
  12. package/dist/nodes/KlickTipp/actions/contact-tagging/tag.operation.js.map +1 -0
  13. package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/untag.operation.js +5 -5
  14. package/dist/nodes/KlickTipp/actions/contact-tagging/untag.operation.js.map +1 -0
  15. package/dist/nodes/KlickTipp/actions/field/get.operation.js +3 -3
  16. package/dist/nodes/KlickTipp/actions/field/get.operation.js.map +1 -1
  17. package/dist/nodes/KlickTipp/actions/field/index.js +8 -8
  18. package/dist/nodes/KlickTipp/actions/field/index.js.map +1 -1
  19. package/dist/nodes/KlickTipp/actions/node.description.js +14 -8
  20. package/dist/nodes/KlickTipp/actions/node.description.js.map +1 -1
  21. package/dist/nodes/KlickTipp/actions/node.type.d.ts +2 -1
  22. package/dist/nodes/KlickTipp/actions/opt-in-process/get-redirect.operation.js +3 -4
  23. package/dist/nodes/KlickTipp/actions/opt-in-process/get-redirect.operation.js.map +1 -1
  24. package/dist/nodes/KlickTipp/actions/opt-in-process/get.operation.js +1 -1
  25. package/dist/nodes/KlickTipp/actions/opt-in-process/get.operation.js.map +1 -1
  26. package/dist/nodes/KlickTipp/actions/opt-in-process/index.js +11 -11
  27. package/dist/nodes/KlickTipp/actions/opt-in-process/index.js.map +1 -1
  28. package/dist/nodes/KlickTipp/actions/router.js +4 -0
  29. package/dist/nodes/KlickTipp/actions/router.js.map +1 -1
  30. package/dist/nodes/KlickTipp/actions/subscriber/delete.operation.js +4 -4
  31. package/dist/nodes/KlickTipp/actions/subscriber/delete.operation.js.map +1 -1
  32. package/dist/nodes/KlickTipp/actions/subscriber/get.operation.js +4 -4
  33. package/dist/nodes/KlickTipp/actions/subscriber/get.operation.js.map +1 -1
  34. package/dist/nodes/KlickTipp/actions/subscriber/index.d.ts +1 -6
  35. package/dist/nodes/KlickTipp/actions/subscriber/index.js +29 -74
  36. package/dist/nodes/KlickTipp/actions/subscriber/index.js.map +1 -1
  37. package/dist/nodes/KlickTipp/actions/subscriber/search.operation.js +2 -2
  38. package/dist/nodes/KlickTipp/actions/subscriber/search.operation.js.map +1 -1
  39. package/dist/nodes/KlickTipp/actions/subscriber/subscribe.operation.js +5 -5
  40. package/dist/nodes/KlickTipp/actions/subscriber/subscribe.operation.js.map +1 -1
  41. package/dist/nodes/KlickTipp/actions/subscriber/tagged.operation.js +2 -2
  42. package/dist/nodes/KlickTipp/actions/subscriber/tagged.operation.js.map +1 -1
  43. package/dist/nodes/KlickTipp/actions/subscriber/unsubscribe.operation.js +2 -2
  44. package/dist/nodes/KlickTipp/actions/subscriber/unsubscribe.operation.js.map +1 -1
  45. package/dist/nodes/KlickTipp/actions/subscriber/update.operation.js +7 -7
  46. package/dist/nodes/KlickTipp/actions/subscriber/update.operation.js.map +1 -1
  47. package/dist/nodes/KlickTipp/actions/tag/create.operation.js +2 -2
  48. package/dist/nodes/KlickTipp/actions/tag/create.operation.js.map +1 -1
  49. package/dist/nodes/KlickTipp/actions/tag/delete.operation.js +2 -2
  50. package/dist/nodes/KlickTipp/actions/tag/delete.operation.js.map +1 -1
  51. package/dist/nodes/KlickTipp/actions/tag/get.operation.js +2 -2
  52. package/dist/nodes/KlickTipp/actions/tag/get.operation.js.map +1 -1
  53. package/dist/nodes/KlickTipp/actions/tag/index.js +13 -13
  54. package/dist/nodes/KlickTipp/actions/tag/index.js.map +1 -1
  55. package/dist/nodes/KlickTipp/actions/tag/update.operation.js +4 -4
  56. package/dist/nodes/KlickTipp/actions/tag/update.operation.js.map +1 -1
  57. package/dist/package.json +3 -2
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +3 -2
  60. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.d.ts +0 -26
  61. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js +0 -97
  62. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js.map +0 -1
  63. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.d.ts +0 -26
  64. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js +0 -48
  65. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js.map +0 -1
  66. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.d.ts +0 -26
  67. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js +0 -48
  68. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js.map +0 -1
  69. package/dist/nodes/KlickTipp/actions/subscriber/tag.operation.js.map +0 -1
  70. package/dist/nodes/KlickTipp/actions/subscriber/untag.operation.js.map +0 -1
  71. /package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/tag.operation.d.ts +0 -0
  72. /package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/untag.operation.d.ts +0 -0
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.description = exports.properties = void 0;
4
- exports.execute = execute;
5
- const transport_1 = require("../../transport");
6
- const utilities_1 = require("../../utils/utilities");
7
- exports.properties = [
8
- {
9
- displayName: 'Email',
10
- name: 'email',
11
- type: 'string',
12
- default: '',
13
- placeholder: 'Enter email address (required)',
14
- },
15
- ];
16
- const displayOptions = {
17
- show: {
18
- resource: ['subscriber'],
19
- operation: ['signOff'],
20
- },
21
- };
22
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
23
- async function execute(index) {
24
- const credentials = await this.getCredentials('klickTippApi');
25
- if (!credentials) {
26
- return utilities_1.handleError.call(this, 'Missing credentials. Please check that your KlickTipp API credentials are configured correctly');
27
- }
28
- const apiKey = credentials.apiKey;
29
- const email = this.getNodeParameter('email', index);
30
- if (!email) {
31
- return utilities_1.handleError.call(this, 'The email address is required.');
32
- }
33
- if (!apiKey) {
34
- return utilities_1.handleError.call(this, 'The API key is required.');
35
- }
36
- const body = {
37
- email,
38
- apikey: apiKey,
39
- };
40
- try {
41
- await transport_1.apiRequest.call(this, 'POST', '/subscriber/signoff', body);
42
- return this.helpers.returnJsonArray({ success: true });
43
- }
44
- catch (error) {
45
- return utilities_1.handleError.call(this, error);
46
- }
47
- }
48
- //# sourceMappingURL=sign-off.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sign-off.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/sign-off.operation.ts"],"names":[],"mappings":";;;AAuBA,0BA+BC;AArDD,+CAA6C;AAC7C,qDAA0E;AAE7D,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;KAC7C;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,SAAS,EAAE,CAAC,SAAS,CAAC;KACtB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,kBAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9D,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,OAAO,uBAAW,CAAC,IAAI,CACtB,IAAI,EACJ,gGAAgG,CAChG,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,WAAW,CAAC,MAAgB,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,KAAK;QACL,MAAM,EAAE,MAAM;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const properties: INodeProperties[];
3
- export declare const description: {
4
- displayOptions: import("n8n-workflow").IDisplayOptions;
5
- displayName: string;
6
- name: string;
7
- type: import("n8n-workflow").NodePropertyTypes;
8
- typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
9
- default: import("n8n-workflow").NodeParameterValueType;
10
- description?: string;
11
- hint?: string;
12
- options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
13
- placeholder?: string;
14
- isNodeSetting?: boolean;
15
- noDataExpression?: boolean;
16
- required?: boolean;
17
- routing?: import("n8n-workflow").INodePropertyRouting;
18
- credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
19
- extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
20
- modes?: import("n8n-workflow").INodePropertyMode[];
21
- requiresDataPath?: "single" | "multiple";
22
- doNotInherit?: boolean;
23
- validateType?: import("n8n-workflow").FieldType;
24
- ignoreValidationDuringExecution?: boolean;
25
- }[];
26
- export declare function execute(this: IExecuteFunctions, index: number): Promise<import("n8n-workflow").INodeExecutionData[]>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.description = exports.properties = void 0;
4
- exports.execute = execute;
5
- const transport_1 = require("../../transport");
6
- const utilities_1 = require("../../utils/utilities");
7
- exports.properties = [
8
- {
9
- displayName: 'Email',
10
- name: 'email',
11
- type: 'string',
12
- default: '',
13
- placeholder: 'Enter email address (required)',
14
- },
15
- ];
16
- const displayOptions = {
17
- show: {
18
- resource: ['subscriber'],
19
- operation: ['signOut'],
20
- },
21
- };
22
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
23
- async function execute(index) {
24
- const credentials = await this.getCredentials('klickTippApi');
25
- if (!credentials) {
26
- return utilities_1.handleError.call(this, 'Missing credentials. Please check that your KlickTipp API credentials are configured correctly');
27
- }
28
- const apiKey = credentials.apiKey;
29
- const email = this.getNodeParameter('email', index);
30
- if (!email) {
31
- return utilities_1.handleError.call(this, 'The email address is required.');
32
- }
33
- if (!apiKey) {
34
- return utilities_1.handleError.call(this, 'The API key is required.');
35
- }
36
- const body = {
37
- email,
38
- apikey: apiKey,
39
- };
40
- try {
41
- await transport_1.apiRequest.call(this, 'POST', '/subscriber/signout', body);
42
- return this.helpers.returnJsonArray({ success: true });
43
- }
44
- catch (error) {
45
- return utilities_1.handleError.call(this, error);
46
- }
47
- }
48
- //# sourceMappingURL=sign-out.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sign-out.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/sign-out.operation.ts"],"names":[],"mappings":";;;AAuBA,0BA+BC;AArDD,+CAA6C;AAC7C,qDAA0E;AAE7D,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;KAC7C;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,SAAS,EAAE,CAAC,SAAS,CAAC;KACtB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,kBAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9D,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,OAAO,uBAAW,CAAC,IAAI,CACtB,IAAI,EACJ,gGAAgG,CAChG,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,WAAW,CAAC,MAAgB,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,0BAA0B,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,KAAK;QACL,MAAM,EAAE,MAAM;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/tag.operation.ts"],"names":[],"mappings":";;;AAmCA,0BAuBC;AAzDD,+CAA6C;AAC7C,qDAA0E;AAE7D,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;KAC7C;IACD;QAEC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE;YACZ,iBAAiB,EAAE,2BAA2B;SAC9C;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,uHAAuH;KACxH;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,SAAS,EAAE,CAAC,KAAK,CAAC;KAClB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,kBAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,KAAK;QACL,MAAM,EAAE,KAAK;KACb,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"untag.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/untag.operation.ts"],"names":[],"mappings":";;;AAmCA,0BAuBC;AAzDD,+CAA6C;AAC7C,qDAA0E;AAE7D,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;KAC7C;IACD;QAEC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,SAAS;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACV,yHAAyH;KAC1H;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,SAAS,EAAE,CAAC,OAAO,CAAC;KACpB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,kBAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAW,CAAC;IAE9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,KAAK;QACL,KAAK,EAAE,KAAK;KACZ,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}