@xnkee/n8n-nodes-instagram 1.7.0 → 2.1.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 (141) hide show
  1. package/{LICENSE.md → LICENSE} +21 -21
  2. package/README.md +132 -437
  3. package/dist/credentials/InstagramApi.credentials.d.ts +10 -0
  4. package/dist/credentials/InstagramApi.credentials.js +55 -0
  5. package/dist/credentials/InstagramApi.credentials.js.map +1 -0
  6. package/dist/credentials/InstagramOAuth2Api.credentials.d.ts +2 -2
  7. package/dist/credentials/InstagramOAuth2Api.credentials.js +33 -113
  8. package/dist/credentials/InstagramOAuth2Api.credentials.js.map +1 -1
  9. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.d.ts +17 -0
  10. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.js +116 -0
  11. package/dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.js.map +1 -0
  12. package/dist/credentials/instagram.svg +1 -0
  13. package/dist/index.d.ts +5 -0
  14. package/dist/index.js +22 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/nodes/Instagram/GenericFunctions.d.ts +27 -23
  17. package/dist/nodes/Instagram/GenericFunctions.js +182 -223
  18. package/dist/nodes/Instagram/GenericFunctions.js.map +1 -1
  19. package/dist/nodes/Instagram/Instagram.node.d.ts +1 -1
  20. package/dist/nodes/Instagram/Instagram.node.js +109 -2353
  21. package/dist/nodes/Instagram/Instagram.node.js.map +1 -1
  22. package/dist/nodes/Instagram/Instagram.node.json +17 -0
  23. package/dist/nodes/Instagram/InstagramChatTrigger.node.d.ts +17 -0
  24. package/dist/nodes/Instagram/InstagramChatTrigger.node.js +415 -0
  25. package/dist/nodes/Instagram/InstagramChatTrigger.node.js.map +1 -0
  26. package/dist/nodes/Instagram/InstagramChatTrigger.node.json +16 -0
  27. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.d.ts +2 -0
  28. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.js +161 -0
  29. package/dist/nodes/Instagram/descriptions/comment/Comment.fields.js.map +1 -0
  30. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.d.ts +2 -0
  31. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.js +62 -0
  32. package/dist/nodes/Instagram/descriptions/comment/Comment.operations.js.map +1 -0
  33. package/dist/nodes/Instagram/descriptions/comment/index.d.ts +2 -0
  34. package/dist/nodes/Instagram/descriptions/comment/index.js +8 -0
  35. package/dist/nodes/Instagram/descriptions/comment/index.js.map +1 -0
  36. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.d.ts +2 -0
  37. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.js +65 -0
  38. package/dist/nodes/Instagram/descriptions/custom/Custom.fields.js.map +1 -0
  39. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.d.ts +2 -0
  40. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.js +26 -0
  41. package/dist/nodes/Instagram/descriptions/custom/Custom.operations.js.map +1 -0
  42. package/dist/nodes/Instagram/descriptions/custom/index.d.ts +2 -0
  43. package/dist/nodes/Instagram/descriptions/custom/index.js +8 -0
  44. package/dist/nodes/Instagram/descriptions/custom/index.js.map +1 -0
  45. package/dist/nodes/Instagram/descriptions/index.d.ts +7 -0
  46. package/dist/nodes/Instagram/descriptions/index.js +24 -0
  47. package/dist/nodes/Instagram/descriptions/index.js.map +1 -0
  48. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.d.ts +2 -0
  49. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.js +164 -0
  50. package/dist/nodes/Instagram/descriptions/insight/AccountInsight.fields.js.map +1 -0
  51. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.d.ts +2 -0
  52. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.js +32 -0
  53. package/dist/nodes/Instagram/descriptions/insight/Insight.operations.js.map +1 -0
  54. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.d.ts +2 -0
  55. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.js +87 -0
  56. package/dist/nodes/Instagram/descriptions/insight/MediaInsight.fields.js.map +1 -0
  57. package/dist/nodes/Instagram/descriptions/insight/index.d.ts +4 -0
  58. package/dist/nodes/Instagram/descriptions/insight/index.js +12 -0
  59. package/dist/nodes/Instagram/descriptions/insight/index.js.map +1 -0
  60. package/dist/nodes/Instagram/descriptions/media/Media.operations.d.ts +2 -0
  61. package/dist/nodes/Instagram/descriptions/media/Media.operations.js +62 -0
  62. package/dist/nodes/Instagram/descriptions/media/Media.operations.js.map +1 -0
  63. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.d.ts +2 -0
  64. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.js +163 -0
  65. package/dist/nodes/Instagram/descriptions/media/MediaGet.fields.js.map +1 -0
  66. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.d.ts +2 -0
  67. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.js +285 -0
  68. package/dist/nodes/Instagram/descriptions/media/MediaPublish.fields.js.map +1 -0
  69. package/dist/nodes/Instagram/descriptions/media/index.d.ts +4 -0
  70. package/dist/nodes/Instagram/descriptions/media/index.js +12 -0
  71. package/dist/nodes/Instagram/descriptions/media/index.js.map +1 -0
  72. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.d.ts +2 -0
  73. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.js +122 -0
  74. package/dist/nodes/Instagram/descriptions/mention/Mention.fields.js.map +1 -0
  75. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.d.ts +2 -0
  76. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.js +38 -0
  77. package/dist/nodes/Instagram/descriptions/mention/Mention.operations.js.map +1 -0
  78. package/dist/nodes/Instagram/descriptions/mention/index.d.ts +2 -0
  79. package/dist/nodes/Instagram/descriptions/mention/index.js +8 -0
  80. package/dist/nodes/Instagram/descriptions/mention/index.js.map +1 -0
  81. package/dist/nodes/Instagram/descriptions/message/Message.fields.d.ts +2 -0
  82. package/dist/nodes/Instagram/descriptions/message/Message.fields.js +123 -0
  83. package/dist/nodes/Instagram/descriptions/message/Message.fields.js.map +1 -0
  84. package/dist/nodes/Instagram/descriptions/message/Message.operations.d.ts +2 -0
  85. package/dist/nodes/Instagram/descriptions/message/Message.operations.js +44 -0
  86. package/dist/nodes/Instagram/descriptions/message/Message.operations.js.map +1 -0
  87. package/dist/nodes/Instagram/descriptions/message/index.d.ts +2 -0
  88. package/dist/nodes/Instagram/descriptions/message/index.js +8 -0
  89. package/dist/nodes/Instagram/descriptions/message/index.js.map +1 -0
  90. package/dist/nodes/Instagram/descriptions/user/User.operations.d.ts +2 -0
  91. package/dist/nodes/Instagram/descriptions/user/User.operations.js +38 -0
  92. package/dist/nodes/Instagram/descriptions/user/User.operations.js.map +1 -0
  93. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.d.ts +2 -0
  94. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.js +164 -0
  95. package/dist/nodes/Instagram/descriptions/user/UserInsights.fields.js.map +1 -0
  96. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.d.ts +2 -0
  97. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.js +83 -0
  98. package/dist/nodes/Instagram/descriptions/user/UserProfile.fields.js.map +1 -0
  99. package/dist/nodes/Instagram/descriptions/user/index.d.ts +4 -0
  100. package/dist/nodes/Instagram/descriptions/user/index.js +12 -0
  101. package/dist/nodes/Instagram/descriptions/user/index.js.map +1 -0
  102. package/dist/nodes/Instagram/handlers/CommentHandler.d.ts +2 -0
  103. package/dist/nodes/Instagram/handlers/CommentHandler.js +63 -0
  104. package/dist/nodes/Instagram/handlers/CommentHandler.js.map +1 -0
  105. package/dist/nodes/Instagram/handlers/CustomHandler.d.ts +2 -0
  106. package/dist/nodes/Instagram/handlers/CustomHandler.js +28 -0
  107. package/dist/nodes/Instagram/handlers/CustomHandler.js.map +1 -0
  108. package/dist/nodes/Instagram/handlers/InsightHandler.d.ts +2 -0
  109. package/dist/nodes/Instagram/handlers/InsightHandler.js +42 -0
  110. package/dist/nodes/Instagram/handlers/InsightHandler.js.map +1 -0
  111. package/dist/nodes/Instagram/handlers/MediaHandler.d.ts +2 -0
  112. package/dist/nodes/Instagram/handlers/MediaHandler.js +172 -0
  113. package/dist/nodes/Instagram/handlers/MediaHandler.js.map +1 -0
  114. package/dist/nodes/Instagram/handlers/MentionHandler.d.ts +2 -0
  115. package/dist/nodes/Instagram/handlers/MentionHandler.js +48 -0
  116. package/dist/nodes/Instagram/handlers/MentionHandler.js.map +1 -0
  117. package/dist/nodes/Instagram/handlers/MessageHandler.d.ts +2 -0
  118. package/dist/nodes/Instagram/handlers/MessageHandler.js +57 -0
  119. package/dist/nodes/Instagram/handlers/MessageHandler.js.map +1 -0
  120. package/dist/nodes/Instagram/handlers/UserHandler.d.ts +2 -0
  121. package/dist/nodes/Instagram/handlers/UserHandler.js +48 -0
  122. package/dist/nodes/Instagram/handlers/UserHandler.js.map +1 -0
  123. package/dist/nodes/Instagram/instagram.svg +1 -0
  124. package/package.json +34 -46
  125. package/API_REFERENCE.md +0 -907
  126. package/AUTHENTICATION_GUIDE.md +0 -718
  127. package/CHANGELOG.md +0 -391
  128. package/dist/credentials/InstagramUnifiedLoginApi.credentials.d.ts +0 -9
  129. package/dist/credentials/InstagramUnifiedLoginApi.credentials.js +0 -481
  130. package/dist/credentials/InstagramUnifiedLoginApi.credentials.js.map +0 -1
  131. package/dist/nodes/Instagram/InstagramTrigger.node.d.ts +0 -17
  132. package/dist/nodes/Instagram/InstagramTrigger.node.js +0 -398
  133. package/dist/nodes/Instagram/InstagramTrigger.node.js.map +0 -1
  134. package/dist/nodes/Instagram/instagram-large.svg +0 -27
  135. package/dist/nodes/Instagram/instagram-small.svg +0 -14
  136. package/dist/nodes/Instagram/types.d.ts +0 -171
  137. package/dist/nodes/Instagram/types.js +0 -3
  138. package/dist/nodes/Instagram/types.js.map +0 -1
  139. package/dist/package.json +0 -76
  140. package/dist/tsconfig.tsbuildinfo +0 -1
  141. package/index.js +0 -0
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleUser = handleUser;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const GenericFunctions_1 = require("../GenericFunctions");
6
+ const ALL_USER_FIELDS = 'id,user_id,username,name,account_type,profile_picture_url,followers_count,follows_count,media_count,biography,website';
7
+ // graph.facebook.com (Unified Login) does not expose the Instagram Login-only fields user_id and account_type
8
+ const ALL_USER_FIELDS_UNIFIED_LOGIN = 'id,username,name,profile_picture_url,followers_count,follows_count,media_count,biography,website';
9
+ const ALL_USER_INSIGHTS_METRICS = 'reach,views,accounts_engaged,total_interactions,likes,comments,shares,saves,replies,profile_views,website_clicks,content_views';
10
+ async function handleGetUserProfile(operation, i) {
11
+ const allFields = (await GenericFunctions_1.isUnifiedLogin.call(this))
12
+ ? ALL_USER_FIELDS_UNIFIED_LOGIN
13
+ : ALL_USER_FIELDS;
14
+ const fields = GenericFunctions_1.resolveParameterList.call(this, i, allFields, 'fields', 'fieldsMode');
15
+ const endpoint = operation === 'getMe' ? '/me' : `/${this.getNodeParameter('userId', i)}`;
16
+ return await GenericFunctions_1.instagramApiRequest.call(this, 'GET', endpoint, {}, { fields });
17
+ }
18
+ async function handleGetUserInsights(_operation, i) {
19
+ const rawUserId = this.getNodeParameter('userId', i, 'me');
20
+ const resolvedUserId = await GenericFunctions_1.getResolvedUserId.call(this, rawUserId);
21
+ const metric = GenericFunctions_1.resolveParameterList.call(this, i, ALL_USER_INSIGHTS_METRICS, 'metrics', 'metricsMode');
22
+ const period = this.getNodeParameter('period', i, 'day');
23
+ const additionalFields = this.getNodeParameter('additionalFields', i, {});
24
+ const qs = { metric, period };
25
+ if (additionalFields.since)
26
+ qs.since = additionalFields.since;
27
+ if (additionalFields.until)
28
+ qs.until = additionalFields.until;
29
+ if (additionalFields.metric_type && additionalFields.metric_type !== 'default') {
30
+ qs.metric_type = additionalFields.metric_type;
31
+ }
32
+ return await GenericFunctions_1.instagramApiRequest.call(this, 'GET', `/${resolvedUserId}/insights`, {}, qs);
33
+ }
34
+ const userOperationHandlers = {
35
+ getMe: handleGetUserProfile,
36
+ get: handleGetUserProfile,
37
+ getInsights: handleGetUserInsights,
38
+ };
39
+ async function handleUser(operation, i) {
40
+ const handler = userOperationHandlers[operation];
41
+ if (!handler) {
42
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported User operation: ${operation}`, {
43
+ itemIndex: i,
44
+ });
45
+ }
46
+ return await handler.call(this, operation, i);
47
+ }
48
+ //# sourceMappingURL=UserHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserHandler.js","sourceRoot":"","sources":["../../../../nodes/Instagram/handlers/UserHandler.ts"],"names":[],"mappings":";;AA6DA,gCAYC;AAzED,+CAAkF;AAClF,0DAK6B;AAE7B,MAAM,eAAe,GACnB,uHAAuH,CAAC;AAE1H,8GAA8G;AAC9G,MAAM,6BAA6B,GACjC,kGAAkG,CAAC;AAErG,MAAM,yBAAyB,GAC7B,gIAAgI,CAAC;AAEnI,KAAK,UAAU,oBAAoB,CAEjC,SAAiB,EACjB,CAAS;IAET,MAAM,SAAS,GAAG,CAAC,MAAM,iCAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,CAAC,CAAC,6BAA6B;QAC/B,CAAC,CAAC,eAAe,CAAC;IACpB,MAAM,MAAM,GAAG,uCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IACrF,MAAM,QAAQ,GAAG,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,EAAE,CAAC;IACpG,OAAO,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED,KAAK,UAAU,qBAAqB,CAElC,UAAkB,EAClB,CAAS;IAET,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAW,CAAC;IACrE,MAAM,cAAc,GAAG,MAAM,oCAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,uCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,yBAAyB,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IACvG,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,CAAW,CAAC;IACnE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAEzF,MAAM,EAAE,GAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC3C,IAAI,gBAAgB,CAAC,KAAK;QAAE,EAAE,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;IAC9D,IAAI,gBAAgB,CAAC,KAAK;QAAE,EAAE,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;IAC9D,IAAI,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QAC/E,EAAE,CAAC,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC;IAChD,CAAC;IAED,OAAO,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,cAAc,WAAW,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,qBAAqB,GAGvB;IACF,KAAK,EAAE,oBAAoB;IAC3B,GAAG,EAAE,oBAAoB;IACzB,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEK,KAAK,UAAU,UAAU,CAE9B,SAAiB,EACjB,CAAS;IAET,MAAM,OAAO,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,+BAA+B,SAAS,EAAE,EAAE;YACvF,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="1000" height="1000" viewBox="0 0 264.5833 264.5833" inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)" sodipodi:docname="Instagram_(2022).svg"><defs><radialGradient id="f" cx="158.429" cy="578.088" r="52.3515" xlink:href="#a" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0 -4.03418 4.28018 0 -2332.2273 942.2356)" fx="158.429" fy="578.088"/><radialGradient inkscape:collect="always" xlink:href="#b" id="g" gradientUnits="userSpaceOnUse" gradientTransform="matrix(.67441 -1.16203 1.51283 .87801 -814.3657 -47.8354)" cx="172.6149" cy="600.6924" fx="172.6149" fy="600.6924" r="65"/><radialGradient inkscape:collect="always" xlink:href="#c" id="h" cx="144.012" cy="51.3367" fx="144.012" fy="51.3367" r="67.081" gradientTransform="matrix(-2.3989 .67549 -.23008 -.81732 464.9957 -26.4035)" gradientUnits="userSpaceOnUse"/><radialGradient inkscape:collect="always" xlink:href="#d" id="e" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-3.10797 .87652 -.6315 -2.23914 1345.6503 1374.1983)" cx="199.7884" cy="628.4379" fx="199.7884" fy="628.4379" r="52.3515"/><linearGradient inkscape:collect="always" id="d"><stop offset="0" stop-color="#ff005f"/><stop offset="1" stop-color="#fc01d8"/></linearGradient><linearGradient id="c"><stop offset="0" stop-color="#780cff"/><stop stop-color="#820bff" offset="1" stop-opacity="0"/></linearGradient><linearGradient inkscape:collect="always" id="b"><stop offset="0" stop-color="#fc0"/><stop offset="1" stop-color="#fc0" stop-opacity="0"/></linearGradient><linearGradient id="a"><stop offset="0" stop-color="#fc0"/><stop offset=".1242" stop-color="#fc0"/><stop offset=".5672" stop-color="#fe4a05"/><stop offset=".6942" stop-color="#ff0f3f"/><stop offset="1" stop-color="#fe0657" stop-opacity="0"/></linearGradient></defs><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:zoom=".515" inkscape:cx="500" inkscape:cy="500" inkscape:document-units="mm" inkscape:current-layer="layer1" inkscape:document-rotation="0" showgrid="false" inkscape:window-width="1366" inkscape:window-height="705" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:window-maximized="1"/><g inkscape:label="Layer 1" inkscape:groupmode="layer"><path d="M204.1503 18.1429c-55.2305 0-71.3834.057-74.5232.3175-11.3342.9424-18.387 2.7275-26.0708 6.554-5.9214 2.9413-10.5915 6.3506-15.2005 11.1298-8.3938 8.7157-13.481 19.4383-15.3226 32.1842-.8953 6.1877-1.1558 7.4496-1.2087 39.0558-.0203 10.5354 0 24.4007 0 42.9984 0 55.2008.061 71.3418.3256 74.4764.9157 11.032 2.6453 17.9728 6.3081 25.565 7 14.5329 20.369 25.4428 36.119 29.5137 5.4535 1.4044 11.4767 2.1779 19.2092 2.5442 3.2762.1425 36.6684.2443 70.081.2443 33.4127 0 66.8253-.0407 70.02-.2035 8.9535-.4214 14.1526-1.1195 19.9011-2.6054 15.8517-4.0912 28.9767-14.8383 36.119-29.5748 3.5916-7.409 5.4128-14.6144 6.237-25.0704.179-2.2796.2543-38.6263.2543-74.924 0-36.304-.0814-72.5835-.2605-74.8632-.8343-10.6249-2.6555-17.7692-6.363-25.3207-3.0421-6.1816-6.42-10.798-11.324-15.518-8.752-8.3616-19.4555-13.4502-32.2101-15.2902-6.18-.8936-7.411-1.1582-39.033-1.2131z" inkscape:connector-curvature="0" fill="url(#e)" transform="translate(-71.8155 -18.1429)"/><path d="M204.1503 18.1429c-55.2305 0-71.3834.057-74.5232.3175-11.3342.9424-18.387 2.7275-26.0708 6.554-5.9214 2.9413-10.5915 6.3506-15.2005 11.1298-8.3938 8.7157-13.481 19.4383-15.3226 32.1842-.8953 6.1877-1.1558 7.4496-1.2087 39.0558-.0203 10.5354 0 24.4007 0 42.9984 0 55.2008.061 71.3418.3256 74.4764.9157 11.032 2.6453 17.9728 6.3081 25.565 7 14.5329 20.369 25.4428 36.119 29.5137 5.4535 1.4044 11.4767 2.1779 19.2092 2.5442 3.2762.1425 36.6684.2443 70.081.2443 33.4127 0 66.8253-.0407 70.02-.2035 8.9535-.4214 14.1526-1.1195 19.9011-2.6054 15.8517-4.0912 28.9767-14.8383 36.119-29.5748 3.5916-7.409 5.4128-14.6144 6.237-25.0704.179-2.2796.2543-38.6263.2543-74.924 0-36.304-.0814-72.5835-.2605-74.8632-.8343-10.6249-2.6555-17.7692-6.363-25.3207-3.0421-6.1816-6.42-10.798-11.324-15.518-8.752-8.3616-19.4555-13.4502-32.2101-15.2902-6.18-.8936-7.411-1.1582-39.033-1.2131z" inkscape:connector-curvature="0" fill="url(#f)" transform="translate(-71.8155 -18.1429)"/><path d="M204.1503 18.1429c-55.2305 0-71.3834.057-74.5232.3175-11.3342.9424-18.387 2.7275-26.0708 6.554-5.9214 2.9413-10.5915 6.3506-15.2005 11.1298-8.3938 8.7157-13.481 19.4383-15.3226 32.1842-.8953 6.1877-1.1558 7.4496-1.2087 39.0558-.0203 10.5354 0 24.4007 0 42.9984 0 55.2008.061 71.3418.3256 74.4764.9157 11.032 2.6453 17.9728 6.3081 25.565 7 14.5329 20.369 25.4428 36.119 29.5137 5.4535 1.4044 11.4767 2.1779 19.2092 2.5442 3.2762.1425 36.6684.2443 70.081.2443 33.4127 0 66.8253-.0407 70.02-.2035 8.9535-.4214 14.1526-1.1195 19.9011-2.6054 15.8517-4.0912 28.9767-14.8383 36.119-29.5748 3.5916-7.409 5.4128-14.6144 6.237-25.0704.179-2.2796.2543-38.6263.2543-74.924 0-36.304-.0814-72.5835-.2605-74.8632-.8343-10.6249-2.6555-17.7692-6.363-25.3207-3.0421-6.1816-6.42-10.798-11.324-15.518-8.752-8.3616-19.4555-13.4502-32.2101-15.2902-6.18-.8936-7.411-1.1582-39.033-1.2131z" inkscape:connector-curvature="0" fill="url(#g)" transform="translate(-71.8155 -18.1429)"/><path d="M204.1503 18.1429c-55.2305 0-71.3834.057-74.5232.3175-11.3342.9424-18.387 2.7275-26.0708 6.554-5.9214 2.9413-10.5915 6.3506-15.2005 11.1298-8.3938 8.7157-13.481 19.4383-15.3226 32.1842-.8953 6.1877-1.1558 7.4496-1.2087 39.0558-.0203 10.5354 0 24.4007 0 42.9984 0 55.2008.061 71.3418.3256 74.4764.9157 11.032 2.6453 17.9728 6.3081 25.565 7 14.5329 20.369 25.4428 36.119 29.5137 5.4535 1.4044 11.4767 2.1779 19.2092 2.5442 3.2762.1425 36.6684.2443 70.081.2443 33.4127 0 66.8253-.0407 70.02-.2035 8.9535-.4214 14.1526-1.1195 19.9011-2.6054 15.8517-4.0912 28.9767-14.8383 36.119-29.5748 3.5916-7.409 5.4128-14.6144 6.237-25.0704.179-2.2796.2543-38.6263.2543-74.924 0-36.304-.0814-72.5835-.2605-74.8632-.8343-10.6249-2.6555-17.7692-6.363-25.3207-3.0421-6.1816-6.42-10.798-11.324-15.518-8.752-8.3616-19.4555-13.4502-32.2101-15.2902-6.18-.8936-7.411-1.1582-39.033-1.2131z" inkscape:connector-curvature="0" fill="url(#h)" transform="translate(-71.8155 -18.1429)"/><path d="M132.3452 33.973c-26.7167 0-30.0696.1167-40.5629.5939-10.4727.4792-17.6212 2.136-23.8762 4.567-6.4701 2.5107-11.9586 5.8693-17.4265 11.3352-5.472 5.464-8.8332 10.9483-11.354 17.4116-2.4389 6.2524-4.099 13.3976-4.5703 23.8585-.4693 10.4854-.5923 13.8379-.5923 40.5348 0 26.697.1189 30.0371.5943 40.5225.4817 10.465 2.1397 17.6082 4.5703 23.8585 2.5147 6.4654 5.8758 11.9497 11.3458 17.4136 5.466 5.468 10.9544 8.8349 17.4204 11.3456 6.259 2.4309 13.4097 4.0877 23.8803 4.567 10.4933.477 13.8441.5938 40.5588.5938 26.7188 0 30.0615-.1167 40.5547-.5939 10.4728-.4792 17.6295-2.136 23.8885-4.567 6.4681-2.5106 11.9484-5.8775 17.4143-11.3455 5.472-5.4639 8.8332-10.9482 11.354-17.4115 2.4183-6.2524 4.0784-13.3976 4.5703-23.8585.4713-10.4854.5943-13.8277.5943-40.5246 0-26.697-.123-30.0473-.5943-40.5328-.4919-10.465-2.152-17.6081-4.5703-23.8584-2.5208-6.4654-5.882-11.9498-11.354-17.4137-5.4721-5.468-10.9442-8.8266-17.4204-11.3353-6.2714-2.4309-13.424-4.0877-23.8967-4.5669-10.4933-.4772-13.8339-.5939-40.5588-.5939zm-8.825 17.7147c2.6193-.0041 5.5418 0 8.825 0 26.2659 0 29.379.0942 39.7513.5652 9.5915.4383 14.7971 2.0397 18.2648 3.3852 4.5908 1.7817 7.8638 3.9116 11.3048 7.3521 3.4431 3.4406 5.5745 6.7173 7.3617 11.3046 1.3465 3.461 2.9512 8.6628 3.3877 18.2472.4714 10.3625.5739 13.4754.5739 39.7095 0 26.234-.1025 29.347-.5739 39.7095-.4386 9.5843-2.0412 14.7861-3.3877 18.2471-1.783 4.5874-3.9186 7.8539-7.3617 11.2923-3.443 3.4406-6.712 5.5704-11.3048 7.3521-3.4636 1.3517-8.6733 2.949-18.2648 3.3873-10.3702.471-13.4854.5734-39.7513.5734-26.2679 0-29.381-.1024-39.7513-.5734-9.5914-.4423-14.797-2.0438-18.2668-3.3893-4.5908-1.7817-7.87-3.9116-11.313-7.3521-3.4431-3.4405-5.5745-6.709-7.3617-11.2985-1.3465-3.461-2.9512-8.6628-3.3877-18.2471-.4714-10.3626-.5657-13.4754-.5657-39.7259 0-26.2504.0943-29.347.5657-39.7095.4386-9.5844 2.0412-14.7861 3.3877-18.2512 1.783-4.5874 3.9186-7.8641 7.3617-11.3046 3.443-3.4406 6.7222-5.5704 11.313-7.3562 3.4677-1.3517 8.6754-2.949 18.2668-3.3894 9.075-.4096 12.5919-.5324 30.9264-.553zm61.3363 16.322c-6.5173 0-11.805 5.2776-11.805 11.792 0 6.5125 5.2877 11.7962 11.805 11.7962 6.5172 0 11.8049-5.2837 11.8049-11.7962 0-6.5124-5.2877-11.796-11.805-11.796zm-52.5113 13.7826c-27.8993 0-50.5191 22.6031-50.5191 50.4817 0 27.8786 22.6198 50.4714 50.5191 50.4714s50.511-22.5928 50.511-50.4714c0-27.8786-22.6137-50.4817-50.513-50.4817zm0 17.7147c18.109 0 32.7914 14.6694 32.7914 32.767 0 18.0956-14.6824 32.767-32.7914 32.767-18.111 0-32.7913-14.6714-32.7913-32.767 0-18.0976 14.6803-32.767 32.7913-32.767z" inkscape:connector-curvature="0" fill="#fff"/></g></svg>
package/package.json CHANGED
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "name": "@xnkee/n8n-nodes-instagram",
3
- "version": "1.7.0",
4
- "description": "N8N nodes for Instagram API integration with Unified Login (Instagram or Facebook) and OAuth2 authentication",
3
+ "version": "2.1.0",
4
+ "description": "n8n community node for the Instagram API with Unified Login (Instagram or Facebook), Instagram Login (Business Login for Instagram) & AI Agent Tool",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
5
8
  "keywords": [
6
9
  "n8n-community-node-package",
10
+ "n8n",
7
11
  "instagram",
8
- "messaging",
9
12
  "instagram-api",
10
- "social-media",
11
- "content-management"
13
+ "instagram-login",
14
+ "unified-login",
15
+ "meta",
16
+ "business-login",
17
+ "ai-tool",
18
+ "ai-agent"
12
19
  ],
13
20
  "license": "MIT",
14
21
  "author": {
@@ -16,61 +23,42 @@
16
23
  },
17
24
  "contributors": [
18
25
  {
19
- "name": "Mohammad Mahdi Samei",
20
- "email": "9259samei@gmail.com",
21
- "url": "https://github.com/Msameim181/n8n-nodes-instagram-integrations"
26
+ "name": "Rizki Firmansyah",
27
+ "email": "firmansyah720.fs@gmail.com",
28
+ "url": "https://github.com/legenhand/n8n-nodes-instagram-api"
22
29
  }
23
30
  ],
24
- "publishConfig": {
25
- "access": "public"
26
- },
27
- "engines": {
28
- "node": ">=20.15"
29
- },
30
- "main": "index.js",
31
- "scripts": {
32
- "build": "n8n-node build",
33
- "build:watch": "tsc --watch",
34
- "dev": "n8n-node dev",
35
- "dev:manual": "npm run build && npm link && N8N_CUSTOM_EXTENSIONS=$(pwd) n8n start",
36
- "link": "npm link",
37
- "unlink": "npm unlink",
38
- "format": "prettier nodes credentials --write",
39
- "lint": "n8n-node lint",
40
- "lintfix": "n8n-node lint --fix",
41
- "test": "n8n-node test",
42
- "release": "n8n-node release",
43
- "prepublishOnly": "n8n-node prerelease"
44
- },
31
+ "homepage": "https://www.npmjs.com/package/@xnkee/n8n-nodes-instagram",
32
+ "main": "dist/index.js",
45
33
  "files": [
46
- "dist",
47
- "CHANGELOG.md",
48
- "AUTHENTICATION_GUIDE.md",
49
- "API_REFERENCE.md",
50
- "CONTRIBUTING.md"
34
+ "dist"
51
35
  ],
52
36
  "n8n": {
53
37
  "n8nNodesApiVersion": 1,
54
38
  "credentials": [
55
- "dist/credentials/InstagramUnifiedLoginApi.credentials.js",
56
- "dist/credentials/InstagramOAuth2Api.credentials.js"
39
+ "dist/credentials/InstagramApi.credentials.js",
40
+ "dist/credentials/InstagramOAuth2Api.credentials.js",
41
+ "dist/credentials/InstagramUnifiedLoginOAuth2Api.credentials.js"
57
42
  ],
58
43
  "nodes": [
59
44
  "dist/nodes/Instagram/Instagram.node.js",
60
- "dist/nodes/Instagram/InstagramTrigger.node.js"
45
+ "dist/nodes/Instagram/InstagramChatTrigger.node.js"
61
46
  ]
62
47
  },
63
- "devDependencies": {
64
- "@n8n/node-cli": "^0.13.0",
65
- "@types/node": "^24.6.2",
66
- "@typescript-eslint/parser": "~8.32.0",
67
- "eslint": "^9.0.0",
68
- "eslint-plugin-n8n-nodes-base": "^1.16.3",
69
- "gulp": "^5.0.0",
70
- "prettier": "^3.5.3",
71
- "typescript": "^5.8.2"
48
+ "scripts": {
49
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc && node scripts/copy-assets.mjs",
50
+ "dev": "tsc --watch",
51
+ "docs:dev": "bun --cwd docs dev",
52
+ "docs:build": "bun --cwd docs build",
53
+ "docs:preview": "bun --cwd docs preview"
72
54
  },
73
55
  "peerDependencies": {
74
56
  "n8n-workflow": "*"
57
+ },
58
+ "devDependencies": {
59
+ "@n8n/node-cli": "^0.45.4",
60
+ "@types/node": "^20.17.19",
61
+ "n8n-workflow": "^1.78.0",
62
+ "typescript": "^5.7.3"
75
63
  }
76
64
  }