n8n-nodes-klicktipp 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 (122) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +105 -0
  3. package/dist/credentials/KlickTippApi.credentials.d.ts +12 -0
  4. package/dist/credentials/KlickTippApi.credentials.js +84 -0
  5. package/dist/credentials/KlickTippApi.credentials.js.map +1 -0
  6. package/dist/nodes/KlickTipp/KlickTipp.node.d.ts +10 -0
  7. package/dist/nodes/KlickTipp/KlickTipp.node.js +20 -0
  8. package/dist/nodes/KlickTipp/KlickTipp.node.js.map +1 -0
  9. package/dist/nodes/KlickTipp/KlickTipp.node.json +18 -0
  10. package/dist/nodes/KlickTipp/actions/field/index.d.ts +4 -0
  11. package/dist/nodes/KlickTipp/actions/field/index.js +52 -0
  12. package/dist/nodes/KlickTipp/actions/field/index.js.map +1 -0
  13. package/dist/nodes/KlickTipp/actions/field/index.operation.d.ts +26 -0
  14. package/dist/nodes/KlickTipp/actions/field/index.operation.js +24 -0
  15. package/dist/nodes/KlickTipp/actions/field/index.operation.js.map +1 -0
  16. package/dist/nodes/KlickTipp/actions/node.description.d.ts +2 -0
  17. package/dist/nodes/KlickTipp/actions/node.description.js +82 -0
  18. package/dist/nodes/KlickTipp/actions/node.description.js.map +1 -0
  19. package/dist/nodes/KlickTipp/actions/node.type.d.ts +9 -0
  20. package/dist/nodes/KlickTipp/actions/node.type.js +3 -0
  21. package/dist/nodes/KlickTipp/actions/node.type.js.map +1 -0
  22. package/dist/nodes/KlickTipp/actions/opt-in-process/get-redirect.operation.d.ts +26 -0
  23. package/dist/nodes/KlickTipp/actions/opt-in-process/get-redirect.operation.js +55 -0
  24. package/dist/nodes/KlickTipp/actions/opt-in-process/get-redirect.operation.js.map +1 -0
  25. package/dist/nodes/KlickTipp/actions/opt-in-process/get.operation.d.ts +26 -0
  26. package/dist/nodes/KlickTipp/actions/opt-in-process/get.operation.js +39 -0
  27. package/dist/nodes/KlickTipp/actions/opt-in-process/get.operation.js.map +1 -0
  28. package/dist/nodes/KlickTipp/actions/opt-in-process/index.d.ts +6 -0
  29. package/dist/nodes/KlickTipp/actions/opt-in-process/index.js +69 -0
  30. package/dist/nodes/KlickTipp/actions/opt-in-process/index.js.map +1 -0
  31. package/dist/nodes/KlickTipp/actions/opt-in-process/index.operation.d.ts +26 -0
  32. package/dist/nodes/KlickTipp/actions/opt-in-process/index.operation.js +29 -0
  33. package/dist/nodes/KlickTipp/actions/opt-in-process/index.operation.js.map +1 -0
  34. package/dist/nodes/KlickTipp/actions/router.d.ts +2 -0
  35. package/dist/nodes/KlickTipp/actions/router.js +80 -0
  36. package/dist/nodes/KlickTipp/actions/router.js.map +1 -0
  37. package/dist/nodes/KlickTipp/actions/subscriber/delete.operation.d.ts +26 -0
  38. package/dist/nodes/KlickTipp/actions/subscriber/delete.operation.js +36 -0
  39. package/dist/nodes/KlickTipp/actions/subscriber/delete.operation.js.map +1 -0
  40. package/dist/nodes/KlickTipp/actions/subscriber/get.operation.d.ts +26 -0
  41. package/dist/nodes/KlickTipp/actions/subscriber/get.operation.js +37 -0
  42. package/dist/nodes/KlickTipp/actions/subscriber/get.operation.js.map +1 -0
  43. package/dist/nodes/KlickTipp/actions/subscriber/index.d.ts +17 -0
  44. package/dist/nodes/KlickTipp/actions/subscriber/index.js +169 -0
  45. package/dist/nodes/KlickTipp/actions/subscriber/index.js.map +1 -0
  46. package/dist/nodes/KlickTipp/actions/subscriber/index.operation.d.ts +26 -0
  47. package/dist/nodes/KlickTipp/actions/subscriber/index.operation.js +24 -0
  48. package/dist/nodes/KlickTipp/actions/subscriber/index.operation.js.map +1 -0
  49. package/dist/nodes/KlickTipp/actions/subscriber/resend-autoresponder.operation.d.ts +26 -0
  50. package/dist/nodes/KlickTipp/actions/subscriber/resend-autoresponder.operation.js +48 -0
  51. package/dist/nodes/KlickTipp/actions/subscriber/resend-autoresponder.operation.js.map +1 -0
  52. package/dist/nodes/KlickTipp/actions/subscriber/search.operation.d.ts +26 -0
  53. package/dist/nodes/KlickTipp/actions/subscriber/search.operation.js +36 -0
  54. package/dist/nodes/KlickTipp/actions/subscriber/search.operation.js.map +1 -0
  55. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.d.ts +26 -0
  56. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js +94 -0
  57. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js.map +1 -0
  58. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.d.ts +26 -0
  59. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js +48 -0
  60. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js.map +1 -0
  61. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.d.ts +26 -0
  62. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js +48 -0
  63. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js.map +1 -0
  64. package/dist/nodes/KlickTipp/actions/subscriber/subscribe.operation.d.ts +26 -0
  65. package/dist/nodes/KlickTipp/actions/subscriber/subscribe.operation.js +109 -0
  66. package/dist/nodes/KlickTipp/actions/subscriber/subscribe.operation.js.map +1 -0
  67. package/dist/nodes/KlickTipp/actions/subscriber/tag.operation.d.ts +26 -0
  68. package/dist/nodes/KlickTipp/actions/subscriber/tag.operation.js +54 -0
  69. package/dist/nodes/KlickTipp/actions/subscriber/tag.operation.js.map +1 -0
  70. package/dist/nodes/KlickTipp/actions/subscriber/tagged.operation.d.ts +26 -0
  71. package/dist/nodes/KlickTipp/actions/subscriber/tagged.operation.js +41 -0
  72. package/dist/nodes/KlickTipp/actions/subscriber/tagged.operation.js.map +1 -0
  73. package/dist/nodes/KlickTipp/actions/subscriber/unsubscribe.operation.d.ts +26 -0
  74. package/dist/nodes/KlickTipp/actions/subscriber/unsubscribe.operation.js +36 -0
  75. package/dist/nodes/KlickTipp/actions/subscriber/unsubscribe.operation.js.map +1 -0
  76. package/dist/nodes/KlickTipp/actions/subscriber/untag.operation.d.ts +26 -0
  77. package/dist/nodes/KlickTipp/actions/subscriber/untag.operation.js +54 -0
  78. package/dist/nodes/KlickTipp/actions/subscriber/untag.operation.js.map +1 -0
  79. package/dist/nodes/KlickTipp/actions/subscriber/update.operation.d.ts +26 -0
  80. package/dist/nodes/KlickTipp/actions/subscriber/update.operation.js +93 -0
  81. package/dist/nodes/KlickTipp/actions/subscriber/update.operation.js.map +1 -0
  82. package/dist/nodes/KlickTipp/actions/tag/create.operation.d.ts +26 -0
  83. package/dist/nodes/KlickTipp/actions/tag/create.operation.js +50 -0
  84. package/dist/nodes/KlickTipp/actions/tag/create.operation.js.map +1 -0
  85. package/dist/nodes/KlickTipp/actions/tag/delete.operation.d.ts +26 -0
  86. package/dist/nodes/KlickTipp/actions/tag/delete.operation.js +41 -0
  87. package/dist/nodes/KlickTipp/actions/tag/delete.operation.js.map +1 -0
  88. package/dist/nodes/KlickTipp/actions/tag/get.operation.d.ts +26 -0
  89. package/dist/nodes/KlickTipp/actions/tag/get.operation.js +40 -0
  90. package/dist/nodes/KlickTipp/actions/tag/get.operation.js.map +1 -0
  91. package/dist/nodes/KlickTipp/actions/tag/index.d.ts +8 -0
  92. package/dist/nodes/KlickTipp/actions/tag/index.js +87 -0
  93. package/dist/nodes/KlickTipp/actions/tag/index.js.map +1 -0
  94. package/dist/nodes/KlickTipp/actions/tag/index.operation.d.ts +26 -0
  95. package/dist/nodes/KlickTipp/actions/tag/index.operation.js +24 -0
  96. package/dist/nodes/KlickTipp/actions/tag/index.operation.js.map +1 -0
  97. package/dist/nodes/KlickTipp/actions/tag/update.operation.d.ts +26 -0
  98. package/dist/nodes/KlickTipp/actions/tag/update.operation.js +61 -0
  99. package/dist/nodes/KlickTipp/actions/tag/update.operation.js.map +1 -0
  100. package/dist/nodes/KlickTipp/helpers/constants.d.ts +3 -0
  101. package/dist/nodes/KlickTipp/helpers/constants.js +7 -0
  102. package/dist/nodes/KlickTipp/helpers/constants.js.map +1 -0
  103. package/dist/nodes/KlickTipp/helpers/interfaces.d.ts +3 -0
  104. package/dist/nodes/KlickTipp/helpers/interfaces.js +3 -0
  105. package/dist/nodes/KlickTipp/helpers/interfaces.js.map +1 -0
  106. package/dist/nodes/KlickTipp/klicktipp.svg +4 -0
  107. package/dist/nodes/KlickTipp/methods/index.d.ts +1 -0
  108. package/dist/nodes/KlickTipp/methods/index.js +28 -0
  109. package/dist/nodes/KlickTipp/methods/index.js.map +1 -0
  110. package/dist/nodes/KlickTipp/methods/loadOptions.d.ts +5 -0
  111. package/dist/nodes/KlickTipp/methods/loadOptions.js +52 -0
  112. package/dist/nodes/KlickTipp/methods/loadOptions.js.map +1 -0
  113. package/dist/nodes/KlickTipp/transport/index.d.ts +3 -0
  114. package/dist/nodes/KlickTipp/transport/index.js +62 -0
  115. package/dist/nodes/KlickTipp/transport/index.js.map +1 -0
  116. package/dist/nodes/KlickTipp/utils/utilities.d.ts +31 -0
  117. package/dist/nodes/KlickTipp/utils/utilities.js +57 -0
  118. package/dist/nodes/KlickTipp/utils/utilities.js.map +1 -0
  119. package/dist/package.json +72 -0
  120. package/dist/tsconfig.tsbuildinfo +1 -0
  121. package/index.js +0 -0
  122. package/package.json +70 -0
@@ -0,0 +1,39 @@
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: 'Opt-in Process',
10
+ name: 'listId',
11
+ type: 'options',
12
+ typeOptions: {
13
+ loadOptionsMethod: 'getOptInProcesses',
14
+ },
15
+ default: '',
16
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
17
+ },
18
+ ];
19
+ const displayOptions = {
20
+ show: {
21
+ resource: ['opt-in'],
22
+ operation: ['get'],
23
+ },
24
+ };
25
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
26
+ async function execute(index) {
27
+ const listId = this.getNodeParameter('listId', index);
28
+ if (!listId) {
29
+ return utilities_1.handleError.call(this, 'The opt-in process ID is required.');
30
+ }
31
+ try {
32
+ const responseData = await transport_1.apiRequest.call(this, 'GET', `/list/${listId}`);
33
+ return utilities_1.handleResponse.call(this, responseData, index);
34
+ }
35
+ catch (error) {
36
+ return utilities_1.handleError.call(this, error);
37
+ }
38
+ }
39
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/opt-in-process/get.operation.ts"],"names":[],"mappings":";;;AA2BA,0BAaC;AAvCD,+CAA6C;AAC7C,qDAA0F;AAE7E,QAAA,UAAU,GAAsB;IAC5C;QAEC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,mBAAmB;SACtC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yHAAyH;KACtI;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,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,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAW,CAAC;IAEhE,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,oCAAoC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;QAC3E,OAAO,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import * as index from './index.operation';
3
+ import * as get from './get.operation';
4
+ import * as getRedirect from './get-redirect.operation';
5
+ export { index, get, getRedirect };
6
+ export declare const description: INodeProperties[];
@@ -0,0 +1,69 @@
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.description = exports.getRedirect = exports.get = exports.index = void 0;
27
+ const index = __importStar(require("./index.operation"));
28
+ exports.index = index;
29
+ const get = __importStar(require("./get.operation"));
30
+ exports.get = get;
31
+ const getRedirect = __importStar(require("./get-redirect.operation"));
32
+ exports.getRedirect = getRedirect;
33
+ exports.description = [
34
+ {
35
+ displayName: 'Operation',
36
+ name: 'operation',
37
+ type: 'options',
38
+ noDataExpression: true,
39
+ displayOptions: {
40
+ show: {
41
+ resource: ['opt-in'],
42
+ },
43
+ },
44
+ options: [
45
+ {
46
+ name: 'Opt-in Process Get',
47
+ value: 'get',
48
+ description: 'Returns the name of an opt-in process',
49
+ action: 'Process get',
50
+ },
51
+ {
52
+ name: 'Opt-in Process Index',
53
+ value: 'index',
54
+ description: 'Returns an associative array <code>[double_optin_process_id] => [double_optin_process_name]</code> of all opt-in processes',
55
+ action: 'Process index',
56
+ },
57
+ {
58
+ name: 'Opt-in Process Redirect URL',
59
+ value: 'getRedirect',
60
+ description: 'Returns the URL of the opt-in confirmation page for a subscriber\'s opt-in process',
61
+ action: 'Process redirect URL',
62
+ },
63
+ ],
64
+ default: 'index',
65
+ },
66
+ ...getRedirect.description,
67
+ ...get.description,
68
+ ];
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/opt-in-process/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yDAA2C;AAIlC,sBAAK;AAHd,qDAAuC;AAGvB,kBAAG;AAFnB,sEAAwD;AAEnC,kCAAW;AAEnB,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,4HAA4H;gBACzI,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,6BAA6B;gBACnC,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,oFAAoF;gBACjG,MAAM,EAAE,sBAAsB;aAC9B;SACD;QACD,OAAO,EAAE,OAAO;KAChB;IACD,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,GAAG,CAAC,WAAW;CAClB,CAAC"}
@@ -0,0 +1,26 @@
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[]>;
@@ -0,0 +1,29 @@
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
+ const displayOptions = {
9
+ show: {
10
+ resource: ['opt-in'],
11
+ operation: ['index'],
12
+ },
13
+ };
14
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
15
+ async function execute(index) {
16
+ try {
17
+ const responseData = await transport_1.apiRequest.call(this, 'GET', `/list`);
18
+ for (const key in responseData) {
19
+ if (responseData[key] === '') {
20
+ responseData[key] = 'Predefined double opt-in process';
21
+ }
22
+ }
23
+ return utilities_1.handleResponse.call(this, responseData, index);
24
+ }
25
+ catch (error) {
26
+ return utilities_1.handleError.call(this, error);
27
+ }
28
+ }
29
+ //# sourceMappingURL=index.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/opt-in-process/index.operation.ts"],"names":[],"mappings":";;;AAeA,0BAeC;AA7BD,+CAA6C;AAC7C,qDAA0F;AAE7E,QAAA,UAAU,GAAsB,EAAE,CAAC;AAEhD,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,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,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAGjE,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;YAChC,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;gBAC9B,YAAY,CAAC,GAAG,CAAC,GAAG,kCAAkC,CAAC;YACxD,CAAC;QACF,CAAC;QAED,OAAO,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -0,0 +1,80 @@
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.router = router;
27
+ const n8n_workflow_1 = require("n8n-workflow");
28
+ const optIn = __importStar(require("./opt-in-process"));
29
+ const tag = __importStar(require("./tag"));
30
+ const subscriber = __importStar(require("./subscriber"));
31
+ const field = __importStar(require("./field"));
32
+ async function router() {
33
+ var _a;
34
+ const items = this.getInputData();
35
+ const returnData = [];
36
+ const resource = this.getNodeParameter('resource', 0);
37
+ const operation = this.getNodeParameter('operation', 0);
38
+ let responseData;
39
+ const KlickTipp = {
40
+ resource,
41
+ operation,
42
+ };
43
+ for (let i = 0; i < items.length; i++) {
44
+ try {
45
+ switch (KlickTipp.resource) {
46
+ case 'opt-in':
47
+ responseData = await optIn[KlickTipp.operation].execute.call(this, i);
48
+ break;
49
+ case 'tag':
50
+ responseData = await tag[KlickTipp.operation].execute.call(this, i);
51
+ break;
52
+ case 'subscriber':
53
+ responseData = await subscriber[KlickTipp.operation].execute.call(this, i);
54
+ break;
55
+ case 'field':
56
+ responseData = await field[KlickTipp.operation].execute.call(this, i);
57
+ break;
58
+ default:
59
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The resource "${resource}" is not known`);
60
+ }
61
+ returnData.push(...responseData);
62
+ }
63
+ catch (error) {
64
+ if (this.continueOnFail()) {
65
+ const executionErrorData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ error: error.message }), { itemData: { item: i } });
66
+ returnData.push(...executionErrorData);
67
+ continue;
68
+ }
69
+ if (error instanceof n8n_workflow_1.NodeApiError && ((_a = error === null || error === void 0 ? void 0 : error.context) === null || _a === void 0 ? void 0 : _a.itemIndex) === undefined) {
70
+ if (error.context === undefined) {
71
+ error.context = {};
72
+ }
73
+ error.context.itemIndex = i;
74
+ }
75
+ throw error;
76
+ }
77
+ }
78
+ return [returnData];
79
+ }
80
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../nodes/KlickTipp/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAsDC;AA/DD,+CAAgE;AAIhE,wDAA0C;AAC1C,2CAA6B;AAC7B,yDAA2C;AAC3C,+CAAiC;AAE1B,KAAK,UAAU,MAAM;;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAgB,UAAU,EAAE,CAAC,CAAW,CAAC;IAC/E,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAExD,IAAI,YAAY,CAAC;IAEjB,MAAM,SAAS,GAAG;QACjB,QAAQ;QACR,SAAS;KACQ,CAAC;IAEnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC;YACJ,QAAQ,SAAS,CAAC,QAAQ,EAAE,CAAC;gBAC5B,KAAK,QAAQ;oBACZ,YAAY,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;oBACtE,MAAM;gBACP,KAAK,KAAK;oBACT,YAAY,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;oBACpE,MAAM;gBACP,KAAK,YAAY;oBAChB,YAAY,GAAG,MAAM,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;oBAC3E,MAAM;gBACP,KAAK,OAAO;oBACX,YAAY,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;oBACtE,MAAM;gBACP;oBACC,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,iBAAiB,QAAQ,gBAAgB,CAAC,CAAC;YAC1F,CAAC;YAED,UAAU,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,MAAM,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CACjE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,EACtD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;gBACF,UAAU,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;gBACvC,SAAS;YACV,CAAC;YAED,IAAI,KAAK,YAAY,2BAAY,IAAI,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,SAAS,MAAK,SAAS,EAAE,CAAC;gBAC9E,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;oBACjC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;gBACpB,CAAC;gBACD,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;YAC7B,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IACD,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"}
@@ -0,0 +1,26 @@
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[]>;
@@ -0,0 +1,36 @@
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: 'Subscriber ID',
10
+ name: 'subscriberId',
11
+ type: 'string',
12
+ default: '',
13
+ description: 'Enter the ID of the subscriber you want to delete',
14
+ },
15
+ ];
16
+ const displayOptions = {
17
+ show: {
18
+ resource: ['subscriber'],
19
+ operation: ['delete'],
20
+ },
21
+ };
22
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
23
+ async function execute(index) {
24
+ const subscriberId = this.getNodeParameter('subscriberId', index);
25
+ if (!subscriberId) {
26
+ return utilities_1.handleError.call(this, 'The subscriber ID is required.');
27
+ }
28
+ try {
29
+ const responseData = await transport_1.apiRequest.call(this, 'DELETE', `/subscriber/${subscriberId}`);
30
+ return utilities_1.handleResponse.call(this, responseData, index);
31
+ }
32
+ catch (error) {
33
+ return utilities_1.handleError.call(this, error);
34
+ }
35
+ }
36
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/delete.operation.ts"],"names":[],"mappings":";;;AAuBA,0BAaC;AAnCD,+CAA6C;AAC7C,qDAA0F;AAE7E,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;KAChE;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;KACrB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,kBAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,KAAK,CAAW,CAAC;IAE5E,IAAI,CAAC,YAAY,EAAE,CAAC;QACnB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,YAAY,EAAE,CAAC,CAAC;QAC1F,OAAO,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -0,0 +1,26 @@
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[]>;
@@ -0,0 +1,37 @@
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: 'Subscriber ID',
10
+ name: 'subscriberId',
11
+ type: 'string',
12
+ default: '',
13
+ description: 'Enter the ID of the subscriber you want to retrieve',
14
+ placeholder: 'Enter Subscriber ID (required)'
15
+ },
16
+ ];
17
+ const displayOptions = {
18
+ show: {
19
+ resource: ['subscriber'],
20
+ operation: ['get'],
21
+ },
22
+ };
23
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
24
+ async function execute(index) {
25
+ const subscriberId = this.getNodeParameter('subscriberId', index);
26
+ if (!subscriberId) {
27
+ return utilities_1.handleError.call(this, 'The subscriber ID is required.');
28
+ }
29
+ try {
30
+ const responseData = await transport_1.apiRequest.call(this, 'GET', `/subscriber/${subscriberId}`);
31
+ return utilities_1.handleResponse.call(this, responseData, index);
32
+ }
33
+ catch (error) {
34
+ return utilities_1.handleError.call(this, error);
35
+ }
36
+ }
37
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/get.operation.ts"],"names":[],"mappings":";;;AAwBA,0BAaC;AApCD,+CAA6C;AAC7C,qDAA0F;AAE7E,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,gCAAgC;KAC7C;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,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,KAAK,CAAW,CAAC;IAE5E,IAAI,CAAC,YAAY,EAAE,CAAC;QACnB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,YAAY,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,YAAY,EAAE,CAAC,CAAC;QACvF,OAAO,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,uBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;AACF,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import * as subscribe from './subscribe.operation';
3
+ import * as unsubscribe from './unsubscribe.operation';
4
+ import * as index from './index.operation';
5
+ import * as del from './delete.operation';
6
+ import * as get from './get.operation';
7
+ import * as search from './search.operation';
8
+ import * as signIn from './sign-in.operation';
9
+ import * as signOff from './sign-off.operation';
10
+ import * as signOut from './sign-out.operation';
11
+ import * as tag from './tag.operation';
12
+ import * as tagged from './tagged.operation';
13
+ import * as untag from './untag.operation';
14
+ import * as update from './update.operation';
15
+ import * as resendAutoresponder from './resend-autoresponder.operation';
16
+ export { subscribe, unsubscribe, index, del as delete, search, get, signIn, signOff, signOut, tag, tagged, untag, update, resendAutoresponder };
17
+ export declare const description: INodeProperties[];
@@ -0,0 +1,169 @@
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.description = exports.resendAutoresponder = exports.update = exports.untag = exports.tagged = exports.tag = exports.signOut = exports.signOff = exports.signIn = exports.get = exports.search = exports.delete = exports.index = exports.unsubscribe = exports.subscribe = void 0;
27
+ const subscribe = __importStar(require("./subscribe.operation"));
28
+ exports.subscribe = subscribe;
29
+ const unsubscribe = __importStar(require("./unsubscribe.operation"));
30
+ exports.unsubscribe = unsubscribe;
31
+ const index = __importStar(require("./index.operation"));
32
+ exports.index = index;
33
+ const del = __importStar(require("./delete.operation"));
34
+ exports.delete = del;
35
+ const get = __importStar(require("./get.operation"));
36
+ exports.get = get;
37
+ const search = __importStar(require("./search.operation"));
38
+ exports.search = search;
39
+ const signIn = __importStar(require("./sign-in.operation"));
40
+ exports.signIn = signIn;
41
+ const signOff = __importStar(require("./sign-off.operation"));
42
+ exports.signOff = signOff;
43
+ const signOut = __importStar(require("./sign-out.operation"));
44
+ exports.signOut = signOut;
45
+ const tag = __importStar(require("./tag.operation"));
46
+ exports.tag = tag;
47
+ const tagged = __importStar(require("./tagged.operation"));
48
+ exports.tagged = tagged;
49
+ const untag = __importStar(require("./untag.operation"));
50
+ exports.untag = untag;
51
+ const update = __importStar(require("./update.operation"));
52
+ exports.update = update;
53
+ const resendAutoresponder = __importStar(require("./resend-autoresponder.operation"));
54
+ exports.resendAutoresponder = resendAutoresponder;
55
+ exports.description = [
56
+ {
57
+ displayName: 'Operation',
58
+ name: 'operation',
59
+ type: 'options',
60
+ noDataExpression: true,
61
+ displayOptions: {
62
+ show: {
63
+ resource: ['subscriber'],
64
+ },
65
+ },
66
+ options: [
67
+ {
68
+ name: 'Resend Autoresponder',
69
+ value: 'resendAutoresponder',
70
+ description: 'Resends a follow-up email to a subscriber',
71
+ action: 'Resend autoresponder',
72
+ },
73
+ {
74
+ name: 'Subscriber Delete',
75
+ value: 'delete',
76
+ description: 'Deletes a subscriber',
77
+ action: 'Subscriber delete',
78
+ },
79
+ {
80
+ name: 'Subscriber Get',
81
+ value: 'get',
82
+ description: 'Returns all available information about a subscriber. For example, you can use it to check when a contact received, opened, or clicked in a specific email.',
83
+ action: 'Subscriber get',
84
+ },
85
+ {
86
+ name: 'Subscriber Index',
87
+ value: 'index',
88
+ description: 'Returns an associative array <code>[ID] => [subscriber_id]</code> of all active subscribers. Use the <code>Subscriber Get</code> node to retrieve detailed information about a subscriber.',
89
+ action: 'Subscriber index',
90
+ },
91
+ {
92
+ name: 'Subscriber Search',
93
+ value: 'search',
94
+ description: 'Returns the subscriber ID for an email address. Use the <code>Subscriber Get</code> node to retrieve detailed information about this subscriber.',
95
+ action: 'Subscriber search',
96
+ },
97
+ {
98
+ name: 'Subscriber Signin',
99
+ value: 'signIn',
100
+ description: 'Adds or updates a subscriber using an API key. The subscriber can be identified by their email address or SMS number, with optional fields.',
101
+ action: 'Subscriber signin',
102
+ },
103
+ {
104
+ name: 'Subscriber Signoff',
105
+ value: 'signOff',
106
+ description: 'Unsubscribes a subscriber using an API key',
107
+ action: 'Subscriber signoff',
108
+ },
109
+ {
110
+ name: 'Subscriber Signout',
111
+ value: 'signOut',
112
+ description: 'Removes the manual tag or SmartLink defined in the API key from a subscriber',
113
+ action: 'Subscriber signout',
114
+ },
115
+ {
116
+ name: 'Subscriber Subscribe',
117
+ value: 'subscribe',
118
+ description: 'Adds or updates a subscriber. The subscriber can be identified by their email address or SMS number, with an optional opt-in process, tag, and fields.',
119
+ action: 'Subscriber subscribe',
120
+ },
121
+ {
122
+ name: 'Subscriber Tag',
123
+ value: 'tag',
124
+ description: 'Tags a subscriber with a manual tag or SmartLink',
125
+ action: 'Subscriber tag',
126
+ },
127
+ {
128
+ name: 'Subscriber Tagged',
129
+ value: 'tagged',
130
+ description: 'Returns an associative array <code>[subscriber_id] => [subscription_timestamp]</code> of subscribers who have been tagged with a specific tag. Use the <code>Subscriber Get</code> node to retrieve detailed information about a subscriber.',
131
+ action: 'Subscriber tagged',
132
+ },
133
+ {
134
+ name: 'Subscriber Unsubscribe',
135
+ value: 'unsubscribe',
136
+ description: 'Unsubscribes a subscriber',
137
+ action: 'Subscriber unsubscribe',
138
+ },
139
+ {
140
+ name: 'Subscriber Untag',
141
+ value: 'untag',
142
+ description: 'Removes a manual tag or SmartLink from a subscriber',
143
+ action: 'Subscriber untag',
144
+ },
145
+ {
146
+ name: 'Subscriber Update',
147
+ value: 'update',
148
+ description: 'Updates the data fields, email address, or SMS number of a subscriber',
149
+ action: 'Subscriber update',
150
+ },
151
+ ],
152
+ default: 'index',
153
+ },
154
+ ...subscribe.description,
155
+ ...unsubscribe.description,
156
+ ...index.description,
157
+ ...del.description,
158
+ ...get.description,
159
+ ...search.description,
160
+ ...signIn.description,
161
+ ...signOff.description,
162
+ ...signOut.description,
163
+ ...tag.description,
164
+ ...tagged.description,
165
+ ...untag.description,
166
+ ...update.description,
167
+ ...resendAutoresponder.description
168
+ ];
169
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/KlickTipp/actions/subscriber/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
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[]>;