n8n-nodes-manychat 0.1.2

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 (77) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +146 -0
  3. package/dist/credentials/ManyChatApi.credentials.d.ts +10 -0
  4. package/dist/credentials/ManyChatApi.credentials.js +40 -0
  5. package/dist/credentials/ManyChatApi.credentials.js.map +1 -0
  6. package/dist/icons/manychat.dark.svg +18 -0
  7. package/dist/icons/manychat.light.svg +15 -0
  8. package/dist/nodes/ManyChat/ManyChat.node.d.ts +4 -0
  9. package/dist/nodes/ManyChat/ManyChat.node.js +81 -0
  10. package/dist/nodes/ManyChat/ManyChat.node.js.map +1 -0
  11. package/dist/nodes/ManyChat/ManyChat.node.json +18 -0
  12. package/dist/nodes/ManyChat/Page/Page/createBotField.d.ts +2 -0
  13. package/dist/nodes/ManyChat/Page/Page/createBotField.js +100 -0
  14. package/dist/nodes/ManyChat/Page/Page/createBotField.js.map +1 -0
  15. package/dist/nodes/ManyChat/Page/Page/createCustomField.d.ts +2 -0
  16. package/dist/nodes/ManyChat/Page/Page/createCustomField.js +82 -0
  17. package/dist/nodes/ManyChat/Page/Page/createCustomField.js.map +1 -0
  18. package/dist/nodes/ManyChat/Page/Page/createTag.d.ts +2 -0
  19. package/dist/nodes/ManyChat/Page/Page/createTag.js +27 -0
  20. package/dist/nodes/ManyChat/Page/Page/createTag.js.map +1 -0
  21. package/dist/nodes/ManyChat/Page/Page/removeTag.d.ts +2 -0
  22. package/dist/nodes/ManyChat/Page/Page/removeTag.js +50 -0
  23. package/dist/nodes/ManyChat/Page/Page/removeTag.js.map +1 -0
  24. package/dist/nodes/ManyChat/Page/Page/setBotField.d.ts +2 -0
  25. package/dist/nodes/ManyChat/Page/Page/setBotField.js +47 -0
  26. package/dist/nodes/ManyChat/Page/Page/setBotField.js.map +1 -0
  27. package/dist/nodes/ManyChat/Page/Page/setBotFieldByName.d.ts +2 -0
  28. package/dist/nodes/ManyChat/Page/Page/setBotFieldByName.js +47 -0
  29. package/dist/nodes/ManyChat/Page/Page/setBotFieldByName.js.map +1 -0
  30. package/dist/nodes/ManyChat/Page/Page/setBotFields.d.ts +2 -0
  31. package/dist/nodes/ManyChat/Page/Page/setBotFields.js +58 -0
  32. package/dist/nodes/ManyChat/Page/Page/setBotFields.js.map +1 -0
  33. package/dist/nodes/ManyChat/Page/Subscriber/addTag.d.ts +2 -0
  34. package/dist/nodes/ManyChat/Page/Subscriber/addTag.js +64 -0
  35. package/dist/nodes/ManyChat/Page/Subscriber/addTag.js.map +1 -0
  36. package/dist/nodes/ManyChat/Page/Subscriber/createSubscriber.d.ts +2 -0
  37. package/dist/nodes/ManyChat/Page/Subscriber/createSubscriber.js +193 -0
  38. package/dist/nodes/ManyChat/Page/Subscriber/createSubscriber.js.map +1 -0
  39. package/dist/nodes/ManyChat/Page/Subscriber/findByCustomField.d.ts +2 -0
  40. package/dist/nodes/ManyChat/Page/Subscriber/findByCustomField.js +46 -0
  41. package/dist/nodes/ManyChat/Page/Subscriber/findByCustomField.js.map +1 -0
  42. package/dist/nodes/ManyChat/Page/Subscriber/findByName.d.ts +2 -0
  43. package/dist/nodes/ManyChat/Page/Subscriber/findByName.js +26 -0
  44. package/dist/nodes/ManyChat/Page/Subscriber/findByName.js.map +1 -0
  45. package/dist/nodes/ManyChat/Page/Subscriber/findBySystemField.d.ts +2 -0
  46. package/dist/nodes/ManyChat/Page/Subscriber/findBySystemField.js +45 -0
  47. package/dist/nodes/ManyChat/Page/Subscriber/findBySystemField.js.map +1 -0
  48. package/dist/nodes/ManyChat/Page/Subscriber/getInfo.d.ts +2 -0
  49. package/dist/nodes/ManyChat/Page/Subscriber/getInfo.js +26 -0
  50. package/dist/nodes/ManyChat/Page/Subscriber/getInfo.js.map +1 -0
  51. package/dist/nodes/ManyChat/Page/Subscriber/getInfoByUserRef.d.ts +2 -0
  52. package/dist/nodes/ManyChat/Page/Subscriber/getInfoByUserRef.js +26 -0
  53. package/dist/nodes/ManyChat/Page/Subscriber/getInfoByUserRef.js.map +1 -0
  54. package/dist/nodes/ManyChat/Page/Subscriber/removeTag.d.ts +2 -0
  55. package/dist/nodes/ManyChat/Page/Subscriber/removeTag.js +65 -0
  56. package/dist/nodes/ManyChat/Page/Subscriber/removeTag.js.map +1 -0
  57. package/dist/nodes/ManyChat/Page/Subscriber/updateSubscriber.d.ts +2 -0
  58. package/dist/nodes/ManyChat/Page/Subscriber/updateSubscriber.js +192 -0
  59. package/dist/nodes/ManyChat/Page/Subscriber/updateSubscriber.js.map +1 -0
  60. package/dist/nodes/ManyChat/Page/Subscriber/verifyBySignedRequest.d.ts +2 -0
  61. package/dist/nodes/ManyChat/Page/Subscriber/verifyBySignedRequest.js +44 -0
  62. package/dist/nodes/ManyChat/Page/Subscriber/verifyBySignedRequest.js.map +1 -0
  63. package/dist/nodes/ManyChat/Page/page.d.ts +2 -0
  64. package/dist/nodes/ManyChat/Page/page.js +191 -0
  65. package/dist/nodes/ManyChat/Page/page.js.map +1 -0
  66. package/dist/nodes/ManyChat/Page/subscriber.d.ts +2 -0
  67. package/dist/nodes/ManyChat/Page/subscriber.js +156 -0
  68. package/dist/nodes/ManyChat/Page/subscriber.js.map +1 -0
  69. package/dist/nodes/ManyChat/Profile/Template/generateSingleUseLink.d.ts +2 -0
  70. package/dist/nodes/ManyChat/Profile/Template/generateSingleUseLink.js +26 -0
  71. package/dist/nodes/ManyChat/Profile/Template/generateSingleUseLink.js.map +1 -0
  72. package/dist/nodes/ManyChat/Profile/template.d.ts +2 -0
  73. package/dist/nodes/ManyChat/Profile/template.js +34 -0
  74. package/dist/nodes/ManyChat/Profile/template.js.map +1 -0
  75. package/dist/package.json +50 -0
  76. package/dist/tsconfig.tsbuildinfo +1 -0
  77. package/package.json +50 -0
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setBotField = void 0;
4
+ exports.setBotField = [
5
+ {
6
+ displayName: 'Field ID',
7
+ name: 'fieldId',
8
+ type: 'number',
9
+ default: 0,
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['page'],
14
+ operation: ['setBotField'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ body: {
20
+ field_id: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ {
26
+ displayName: 'Field Value',
27
+ name: 'fieldValue',
28
+ type: 'string',
29
+ default: '',
30
+ placeholder: "'string', 123, true, '2018-07-18', '2018-07-02T00:00:00+00:00'",
31
+ required: true,
32
+ displayOptions: {
33
+ show: {
34
+ resource: ['page'],
35
+ operation: ['setBotField'],
36
+ },
37
+ },
38
+ routing: {
39
+ request: {
40
+ body: {
41
+ field_value: '={{ $value }}',
42
+ },
43
+ },
44
+ },
45
+ },
46
+ ];
47
+ //# sourceMappingURL=setBotField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBotField.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Page/setBotField.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,QAAQ,EAAE,eAAe;iBACzB;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gEAAgE;QAC7E,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,WAAW,EAAE,eAAe;iBAC5B;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const setBotFieldByName: INodeProperties[];
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setBotFieldByName = void 0;
4
+ exports.setBotFieldByName = [
5
+ {
6
+ displayName: 'Field Name',
7
+ name: 'fieldName',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['page'],
14
+ operation: ['setBotFieldByName'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ body: {
20
+ field_name: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ {
26
+ displayName: 'Field Value',
27
+ name: 'fieldValue',
28
+ type: 'string',
29
+ default: '',
30
+ placeholder: "'string', 123, true, '2018-07-18', '2018-07-02T00:00:00+00:00'",
31
+ required: true,
32
+ displayOptions: {
33
+ show: {
34
+ resource: ['page'],
35
+ operation: ['setBotFieldByName'],
36
+ },
37
+ },
38
+ routing: {
39
+ request: {
40
+ body: {
41
+ field_value: '={{ $value }}',
42
+ },
43
+ },
44
+ },
45
+ },
46
+ ];
47
+ //# sourceMappingURL=setBotFieldByName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBotFieldByName.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Page/setBotFieldByName.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,UAAU,EAAE,eAAe;iBAC3B;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gEAAgE;QAC7E,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,WAAW,EAAE,eAAe;iBAC5B;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const setBotFields: INodeProperties[];
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setBotFields = void 0;
4
+ exports.setBotFields = [
5
+ {
6
+ displayName: 'Fields',
7
+ name: 'fields',
8
+ type: 'fixedCollection',
9
+ default: {},
10
+ typeOptions: {
11
+ multipleValues: true,
12
+ },
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['page'],
16
+ operation: ['setBotFields'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ displayName: 'Field',
22
+ name: 'fields',
23
+ values: [
24
+ {
25
+ displayName: 'Name',
26
+ name: 'fieldName',
27
+ type: 'string',
28
+ default: '',
29
+ description: 'Use either Name or ID',
30
+ },
31
+ {
32
+ displayName: 'ID',
33
+ name: 'fieldId',
34
+ type: 'number',
35
+ default: null,
36
+ description: 'Use either ID or Name',
37
+ },
38
+ {
39
+ displayName: 'Value',
40
+ name: 'fieldValue',
41
+ type: 'string',
42
+ default: '',
43
+ placeholder: "'string', 123, true, '2018-07-18', '2018-07-02T00:00:00+00:00'",
44
+ required: true,
45
+ },
46
+ ],
47
+ },
48
+ ],
49
+ routing: {
50
+ request: {
51
+ body: {
52
+ fields: '={{ ($value.fields || []).map(f => ({ ...(f.fieldId ? { field_id: f.fieldId } : { field_name: f.fieldName }), field_value: f.fieldValue })) }}',
53
+ },
54
+ },
55
+ },
56
+ },
57
+ ];
58
+ //# sourceMappingURL=setBotFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBotFields.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Page/setBotFields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC9C;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,uBAAuB;qBACpC;oBACD;wBACC,WAAW,EAAE,IAAI;wBACjB,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,IAAI;wBACb,WAAW,EAAE,uBAAuB;qBACpC;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,gEAAgE;wBAC7E,QAAQ,EAAE,IAAI;qBACd;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBAEL,MAAM,EACL,gJAAgJ;iBACjJ;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addTag: INodeProperties[];
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addTag = void 0;
4
+ exports.addTag = [
5
+ {
6
+ displayName: 'Subscriber ID',
7
+ name: 'subscriber_id',
8
+ type: 'number',
9
+ default: 0,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['subscriber'],
13
+ operation: ['addTag'],
14
+ },
15
+ },
16
+ routing: {
17
+ request: {
18
+ body: {
19
+ subscriber_id: '={{ $value }}',
20
+ },
21
+ },
22
+ },
23
+ },
24
+ {
25
+ displayName: 'Add By',
26
+ name: 'tagIdentifierType',
27
+ type: 'options',
28
+ default: 'id',
29
+ displayOptions: {
30
+ show: {
31
+ resource: ['subscriber'],
32
+ operation: ['addTag'],
33
+ },
34
+ },
35
+ options: [
36
+ { name: 'Tag ID', value: 'id' },
37
+ { name: 'Tag Name', value: 'name' },
38
+ ],
39
+ routing: {
40
+ request: {
41
+ body: {
42
+ tag_id: `={{ $parameter.tagIdentifierType === 'id' ? $parameter.tagValue : undefined }}`,
43
+ tag_name: `={{ $parameter.tagIdentifierType === 'name' ? $parameter.tagValue : undefined }}`,
44
+ },
45
+ },
46
+ },
47
+ },
48
+ {
49
+ displayName: 'Tag Value',
50
+ name: 'tagValue',
51
+ type: 'string',
52
+ default: '',
53
+ required: true,
54
+ placeholder: '12345 or VIP',
55
+ description: 'Enter the tag ID or the tag name (depending on "Add By")',
56
+ displayOptions: {
57
+ show: {
58
+ resource: ['subscriber'],
59
+ operation: ['addTag'],
60
+ },
61
+ },
62
+ },
63
+ ];
64
+ //# sourceMappingURL=addTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addTag.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/addTag.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAAsB;IACxC;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,aAAa,EAAE,eAAe;iBAC9B;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;YAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE;SACnC;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,MAAM,EAAE,gFAAgF;oBACxF,QAAQ,EAAE,kFAAkF;iBAC5F;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,0DAA0D;QACvE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createSubscriber: INodeProperties[];
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createSubscriber = void 0;
4
+ exports.createSubscriber = [
5
+ {
6
+ displayName: 'First Name',
7
+ name: 'first_name',
8
+ type: 'string',
9
+ default: '',
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['subscriber'],
13
+ operation: ['createSubscriber'],
14
+ },
15
+ },
16
+ routing: {
17
+ request: {
18
+ body: {
19
+ first_name: '={{ $value ? $value : undefined }}',
20
+ },
21
+ },
22
+ },
23
+ },
24
+ {
25
+ displayName: 'Last Name',
26
+ name: 'last_name',
27
+ type: 'string',
28
+ default: '',
29
+ displayOptions: {
30
+ show: {
31
+ resource: ['subscriber'],
32
+ operation: ['createSubscriber'],
33
+ },
34
+ },
35
+ routing: {
36
+ request: {
37
+ body: {
38
+ last_name: '={{ $value ? $value : undefined }}',
39
+ },
40
+ },
41
+ },
42
+ },
43
+ {
44
+ displayName: 'Phone',
45
+ name: 'phone',
46
+ type: 'string',
47
+ description: 'Phone Number is required if Email and Whatsapp Phone properties are empty',
48
+ default: '',
49
+ placeholder: '+49123456789',
50
+ displayOptions: {
51
+ show: {
52
+ resource: ['subscriber'],
53
+ operation: ['createSubscriber'],
54
+ },
55
+ },
56
+ routing: {
57
+ request: {
58
+ body: {
59
+ phone: '={{ $value ? $value : undefined }}',
60
+ },
61
+ },
62
+ },
63
+ },
64
+ {
65
+ displayName: 'Whatsapp Phone',
66
+ name: 'whatsapp_phone',
67
+ type: 'string',
68
+ description: 'Whatsapp Phone Number is required if Email and Phone Number properties are empty',
69
+ default: '',
70
+ placeholder: '+49123456789',
71
+ displayOptions: {
72
+ show: {
73
+ resource: ['subscriber'],
74
+ operation: ['createSubscriber'],
75
+ },
76
+ },
77
+ routing: {
78
+ request: {
79
+ body: {
80
+ whatsapp_phone: '={{ $value ? $value : undefined }}',
81
+ },
82
+ },
83
+ },
84
+ },
85
+ {
86
+ displayName: 'Email',
87
+ name: 'email',
88
+ type: 'string',
89
+ description: 'Email is required if Phone Number and Whatsapp Phone properties are empty',
90
+ placeholder: 'name@email.com',
91
+ default: '',
92
+ displayOptions: {
93
+ show: {
94
+ resource: ['subscriber'],
95
+ operation: ['createSubscriber'],
96
+ },
97
+ },
98
+ routing: {
99
+ request: {
100
+ body: {
101
+ email: '={{ $value ? $value : undefined }}',
102
+ },
103
+ },
104
+ },
105
+ },
106
+ {
107
+ displayName: 'Gender',
108
+ name: 'gender',
109
+ type: 'options',
110
+ default: '',
111
+ displayOptions: {
112
+ show: {
113
+ resource: ['subscriber'],
114
+ operation: ['createSubscriber'],
115
+ },
116
+ },
117
+ options: [
118
+ { value: '', name: '' },
119
+ { value: 'male', name: 'Male' },
120
+ { value: 'female', name: 'Female' },
121
+ { value: 'other', name: 'Other' },
122
+ ],
123
+ routing: {
124
+ request: {
125
+ body: {
126
+ gender: '={{ $value ? $value : undefined }}',
127
+ },
128
+ },
129
+ },
130
+ },
131
+ {
132
+ displayName: 'Has Opt In SMS',
133
+ name: 'has_opt_in_sms',
134
+ type: 'boolean',
135
+ hint: 'Has opt-in SMS is required if property Phone Number is not empty',
136
+ default: true,
137
+ displayOptions: {
138
+ show: {
139
+ resource: ['subscriber'],
140
+ operation: ['createSubscriber'],
141
+ },
142
+ },
143
+ routing: {
144
+ request: {
145
+ body: {
146
+ has_opt_in_sms: '={{ $value ? $value : undefined }}',
147
+ },
148
+ },
149
+ },
150
+ },
151
+ {
152
+ displayName: 'Has Opt In Email',
153
+ name: 'has_opt_in_email',
154
+ type: 'boolean',
155
+ hint: 'Has opt-in Email is required if property Email is not empty',
156
+ default: true,
157
+ displayOptions: {
158
+ show: {
159
+ resource: ['subscriber'],
160
+ operation: ['createSubscriber'],
161
+ },
162
+ },
163
+ routing: {
164
+ request: {
165
+ body: {
166
+ has_opt_in_email: '={{ $value ? $value : undefined }}',
167
+ },
168
+ },
169
+ },
170
+ },
171
+ {
172
+ displayName: 'Consent Phrase',
173
+ name: 'consent_phrase',
174
+ type: 'string',
175
+ description: 'Consent phrase is required if property Has Opt In SMS equal true',
176
+ default: '',
177
+ displayOptions: {
178
+ show: {
179
+ resource: ['subscriber'],
180
+ operation: ['createSubscriber'],
181
+ has_opt_in_sms: [true],
182
+ },
183
+ },
184
+ routing: {
185
+ request: {
186
+ body: {
187
+ consent_phrase: '={{ $parameter.has_opt_in_sms ? $value : undefined }}',
188
+ },
189
+ },
190
+ },
191
+ },
192
+ ];
193
+ //# sourceMappingURL=createSubscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSubscriber.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/createSubscriber.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,UAAU,EAAE,oCAAoC;iBAChD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,SAAS,EAAE,oCAAoC;iBAC/C;aACD;SAC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AgB;QAC7B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,kBAAkB,CAAC;gBAC/B,cAAc,EAAE,CAAC,IAAI,CAAC;aACtB;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,cAAc,EAAE,uDAAuD;iBACvE;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const findByCustomField: INodeProperties[];
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findByCustomField = void 0;
4
+ exports.findByCustomField = [
5
+ {
6
+ displayName: 'Field ID',
7
+ name: 'fieldId',
8
+ type: 'number',
9
+ default: 0,
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['subscriber'],
14
+ operation: ['findByCustomField'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ qs: {
20
+ field_id: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ {
26
+ displayName: 'Field Value',
27
+ name: 'fieldValue',
28
+ type: 'string',
29
+ default: '',
30
+ required: true,
31
+ displayOptions: {
32
+ show: {
33
+ resource: ['subscriber'],
34
+ operation: ['findByCustomField'],
35
+ },
36
+ },
37
+ routing: {
38
+ request: {
39
+ qs: {
40
+ field_value: '={{ $value }}',
41
+ },
42
+ },
43
+ },
44
+ },
45
+ ];
46
+ //# sourceMappingURL=findByCustomField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findByCustomField.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/findByCustomField.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,EAAE,EAAE;oBACH,QAAQ,EAAE,eAAe;iBACzB;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,EAAE,EAAE;oBACH,WAAW,EAAE,eAAe;iBAC5B;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const findByName: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findByName = void 0;
4
+ exports.findByName = [
5
+ {
6
+ displayName: 'Name',
7
+ name: 'name',
8
+ type: 'string',
9
+ default: '',
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['subscriber'],
14
+ operation: ['findByName'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ qs: {
20
+ name: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ ];
26
+ //# sourceMappingURL=findByName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findByName.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/findByName.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,YAAY,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,EAAE,EAAE;oBACH,IAAI,EAAE,eAAe;iBACrB;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const findBySystemField: INodeProperties[];
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findBySystemField = void 0;
4
+ exports.findBySystemField = [
5
+ {
6
+ displayName: 'Find By',
7
+ name: 'findType',
8
+ type: 'options',
9
+ default: 'email',
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['subscriber'],
13
+ operation: ['findBySystemField'],
14
+ },
15
+ },
16
+ options: [
17
+ { name: 'E-Mail', value: 'email' },
18
+ { name: 'Phone', value: 'phone' },
19
+ ],
20
+ routing: {
21
+ request: {
22
+ qs: {
23
+ email: `={{ $parameter.findType === 'email' ? $parameter.value : undefined }}`,
24
+ phone: `={{ $parameter.findType === 'phone' ? $parameter.value : undefined }}`,
25
+ },
26
+ },
27
+ },
28
+ },
29
+ {
30
+ displayName: 'Value',
31
+ name: 'value',
32
+ type: 'string',
33
+ default: '',
34
+ required: true,
35
+ placeholder: '+49123456789 or name@email.com',
36
+ description: 'Enter the email or phone (depending on "Find By")',
37
+ displayOptions: {
38
+ show: {
39
+ resource: ['subscriber'],
40
+ operation: ['findBySystemField'],
41
+ },
42
+ },
43
+ },
44
+ ];
45
+ //# sourceMappingURL=findBySystemField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findBySystemField.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/findBySystemField.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;YAClC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SACjC;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,EAAE,EAAE;oBACH,KAAK,EAAE,uEAAuE;oBAC9E,KAAK,EAAE,uEAAuE;iBAC9E;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getInfo: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInfo = void 0;
4
+ exports.getInfo = [
5
+ {
6
+ displayName: 'Subscriber ID',
7
+ name: 'subscriber_id',
8
+ type: 'number',
9
+ default: 0,
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['subscriber'],
14
+ operation: ['getInfo'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ qs: {
20
+ subscriber_id: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ ];
26
+ //# sourceMappingURL=getInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInfo.js","sourceRoot":"","sources":["../../../../../nodes/ManyChat/Page/Subscriber/getInfo.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAsB;IACzC;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,SAAS,CAAC;aACtB;SACD;QACD,OAAO,EAAE;YACR,OAAO,EAAE;gBACR,EAAE,EAAE;oBACH,aAAa,EAAE,eAAe;iBAC9B;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getInfoByUserRef: INodeProperties[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInfoByUserRef = void 0;
4
+ exports.getInfoByUserRef = [
5
+ {
6
+ displayName: 'User Ref',
7
+ name: 'userRef',
8
+ type: 'number',
9
+ default: 0,
10
+ required: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['subscriber'],
14
+ operation: ['getInfoByUserRef'],
15
+ },
16
+ },
17
+ routing: {
18
+ request: {
19
+ qs: {
20
+ user_ref: '={{ $value }}',
21
+ },
22
+ },
23
+ },
24
+ },
25
+ ];
26
+ //# sourceMappingURL=getInfoByUserRef.js.map