n8n-nodes-klicktipp 1.0.6 → 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 (75) hide show
  1. package/README.md +48 -40
  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 +9 -9
  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 -7
  35. package/dist/nodes/KlickTipp/actions/subscriber/index.js +27 -81
  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/resend-autoresponder.operation.d.ts +0 -26
  61. package/dist/nodes/KlickTipp/actions/subscriber/resend-autoresponder.operation.js +0 -48
  62. package/dist/nodes/KlickTipp/actions/subscriber/resend-autoresponder.operation.js.map +0 -1
  63. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.d.ts +0 -26
  64. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js +0 -97
  65. package/dist/nodes/KlickTipp/actions/subscriber/sign-in.operation.js.map +0 -1
  66. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.d.ts +0 -26
  67. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js +0 -48
  68. package/dist/nodes/KlickTipp/actions/subscriber/sign-off.operation.js.map +0 -1
  69. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.d.ts +0 -26
  70. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js +0 -48
  71. package/dist/nodes/KlickTipp/actions/subscriber/sign-out.operation.js.map +0 -1
  72. package/dist/nodes/KlickTipp/actions/subscriber/tag.operation.js.map +0 -1
  73. package/dist/nodes/KlickTipp/actions/subscriber/untag.operation.js.map +0 -1
  74. /package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/tag.operation.d.ts +0 -0
  75. /package/dist/nodes/KlickTipp/actions/{subscriber → contact-tagging}/untag.operation.d.ts +0 -0
@@ -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,97 +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
- displayName: 'SMS Number',
17
- name: 'smsNumber',
18
- type: 'string',
19
- default: '',
20
- placeholder: 'Enter SMS number (optional)',
21
- },
22
- {
23
- displayName: 'Data Fields',
24
- name: 'fields',
25
- type: 'fixedCollection',
26
- typeOptions: {
27
- multipleValues: true,
28
- },
29
- default: {},
30
- description: 'Select the data field (optional)',
31
- options: [
32
- {
33
- name: 'dataFields',
34
- displayName: 'Data Field',
35
- values: [
36
- {
37
- displayName: 'Field Name',
38
- name: 'fieldId',
39
- type: 'options',
40
- typeOptions: {
41
- loadOptionsMethod: 'getFields',
42
- },
43
- default: '',
44
- description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
45
- },
46
- {
47
- displayName: 'Field Value',
48
- name: 'fieldValue',
49
- type: 'string',
50
- default: '',
51
- description: 'Enter the value for the selected field',
52
- },
53
- ],
54
- },
55
- ],
56
- },
57
- ];
58
- const displayOptions = {
59
- show: {
60
- resource: ['subscriber'],
61
- operation: ['signIn'],
62
- },
63
- };
64
- exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, exports.properties);
65
- async function execute(index) {
66
- const credentials = await this.getCredentials('klickTippApi');
67
- if (!credentials) {
68
- throw new Error('Missing credentials. Please check that your KlickTipp API credentials are configured correctly.');
69
- }
70
- const email = this.getNodeParameter('email', index);
71
- const smsNumber = this.getNodeParameter('smsNumber', index);
72
- const fields = this.getNodeParameter('fields', index);
73
- const apiKey = credentials.apiKey;
74
- if (!email) {
75
- return utilities_1.handleError.call(this, 'The email address is required.');
76
- }
77
- if (!apiKey) {
78
- return utilities_1.handleError.call(this, 'The API key is required.');
79
- }
80
- const body = {
81
- email,
82
- apikey: apiKey,
83
- ...(smsNumber && { smsNumber }),
84
- ...((fields === null || fields === void 0 ? void 0 : fields.dataFields) && { fields: (0, utilities_1.transformDataFields)(fields.dataFields) }),
85
- };
86
- try {
87
- const responseData = await transport_1.apiRequest.call(this, 'POST', '/subscriber/signin', body);
88
- const enhancedData = {
89
- confirmationPageUrl: responseData[0],
90
- };
91
- return utilities_1.handleObjectResponse.call(this, enhancedData, index);
92
- }
93
- catch (error) {
94
- return utilities_1.handleError.call(this, error);
95
- }
96
- }
97
- //# sourceMappingURL=sign-in.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sign-in.operation.js","sourceRoot":"","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AC;QAEF,OAAO,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC7D,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: ['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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