n8n-nodes-hypebridge-actors 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 (173) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +204 -0
  3. package/dist/credentials/ApifyApi.credentials.d.ts +10 -0
  4. package/dist/credentials/ApifyApi.credentials.js +36 -0
  5. package/dist/credentials/ApifyApi.credentials.js.map +1 -0
  6. package/dist/credentials/ApifyOAuth2Api.credentials.d.ts +9 -0
  7. package/dist/credentials/ApifyOAuth2Api.credentials.js +66 -0
  8. package/dist/credentials/ApifyOAuth2Api.credentials.js.map +1 -0
  9. package/dist/docs/actions.png +0 -0
  10. package/dist/docs/actor-subtitle.png +0 -0
  11. package/dist/docs/auth.png +0 -0
  12. package/dist/docs/node-description.png +0 -0
  13. package/dist/docs/run-actor.png +0 -0
  14. package/dist/docs/trigger.png +0 -0
  15. package/dist/docs/workflow.png +0 -0
  16. package/dist/icons/apify.svg +5 -0
  17. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.node.d.ts +13 -0
  18. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.node.js +88 -0
  19. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.node.js.map +1 -0
  20. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.node.json +23 -0
  21. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.properties.d.ts +4 -0
  22. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.properties.js +143 -0
  23. package/dist/nodes/ApifyBlindPostCommentsScraper/ApifyBlindPostCommentsScraper.properties.js.map +1 -0
  24. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/executeActor.d.ts +5 -0
  25. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/executeActor.js +68 -0
  26. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/executeActor.js.map +1 -0
  27. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/genericFunctions.d.ts +10 -0
  28. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/genericFunctions.js +90 -0
  29. package/dist/nodes/ApifyBlindPostCommentsScraper/helpers/genericFunctions.js.map +1 -0
  30. package/dist/nodes/ApifyBlindPostCommentsScraper/logo.svg +5 -0
  31. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.node.d.ts +13 -0
  32. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.node.js +88 -0
  33. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.node.js.map +1 -0
  34. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.node.json +23 -0
  35. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.properties.d.ts +4 -0
  36. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.properties.js +90 -0
  37. package/dist/nodes/ApifyDiceFm/ApifyDiceFm.properties.js.map +1 -0
  38. package/dist/nodes/ApifyDiceFm/helpers/executeActor.d.ts +5 -0
  39. package/dist/nodes/ApifyDiceFm/helpers/executeActor.js +68 -0
  40. package/dist/nodes/ApifyDiceFm/helpers/executeActor.js.map +1 -0
  41. package/dist/nodes/ApifyDiceFm/helpers/genericFunctions.d.ts +10 -0
  42. package/dist/nodes/ApifyDiceFm/helpers/genericFunctions.js +90 -0
  43. package/dist/nodes/ApifyDiceFm/helpers/genericFunctions.js.map +1 -0
  44. package/dist/nodes/ApifyDiceFm/logo.svg +5 -0
  45. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.node.d.ts +13 -0
  46. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.node.js +88 -0
  47. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.node.js.map +1 -0
  48. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.node.json +23 -0
  49. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.properties.d.ts +4 -0
  50. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.properties.js +138 -0
  51. package/dist/nodes/ApifyDraftkingsPredictions/ApifyDraftkingsPredictions.properties.js.map +1 -0
  52. package/dist/nodes/ApifyDraftkingsPredictions/helpers/executeActor.d.ts +5 -0
  53. package/dist/nodes/ApifyDraftkingsPredictions/helpers/executeActor.js +68 -0
  54. package/dist/nodes/ApifyDraftkingsPredictions/helpers/executeActor.js.map +1 -0
  55. package/dist/nodes/ApifyDraftkingsPredictions/helpers/genericFunctions.d.ts +10 -0
  56. package/dist/nodes/ApifyDraftkingsPredictions/helpers/genericFunctions.js +90 -0
  57. package/dist/nodes/ApifyDraftkingsPredictions/helpers/genericFunctions.js.map +1 -0
  58. package/dist/nodes/ApifyDraftkingsPredictions/logo.svg +5 -0
  59. package/dist/nodes/ApifyEater/ApifyEater.node.d.ts +13 -0
  60. package/dist/nodes/ApifyEater/ApifyEater.node.js +88 -0
  61. package/dist/nodes/ApifyEater/ApifyEater.node.js.map +1 -0
  62. package/dist/nodes/ApifyEater/ApifyEater.node.json +23 -0
  63. package/dist/nodes/ApifyEater/ApifyEater.properties.d.ts +4 -0
  64. package/dist/nodes/ApifyEater/ApifyEater.properties.js +82 -0
  65. package/dist/nodes/ApifyEater/ApifyEater.properties.js.map +1 -0
  66. package/dist/nodes/ApifyEater/helpers/executeActor.d.ts +5 -0
  67. package/dist/nodes/ApifyEater/helpers/executeActor.js +68 -0
  68. package/dist/nodes/ApifyEater/helpers/executeActor.js.map +1 -0
  69. package/dist/nodes/ApifyEater/helpers/genericFunctions.d.ts +10 -0
  70. package/dist/nodes/ApifyEater/helpers/genericFunctions.js +90 -0
  71. package/dist/nodes/ApifyEater/helpers/genericFunctions.js.map +1 -0
  72. package/dist/nodes/ApifyEater/logo.svg +5 -0
  73. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.node.d.ts +13 -0
  74. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.node.js +88 -0
  75. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.node.js.map +1 -0
  76. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.node.json +23 -0
  77. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.properties.d.ts +4 -0
  78. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.properties.js +99 -0
  79. package/dist/nodes/ApifyEventbriteSearch/ApifyEventbriteSearch.properties.js.map +1 -0
  80. package/dist/nodes/ApifyEventbriteSearch/helpers/executeActor.d.ts +5 -0
  81. package/dist/nodes/ApifyEventbriteSearch/helpers/executeActor.js +68 -0
  82. package/dist/nodes/ApifyEventbriteSearch/helpers/executeActor.js.map +1 -0
  83. package/dist/nodes/ApifyEventbriteSearch/helpers/genericFunctions.d.ts +10 -0
  84. package/dist/nodes/ApifyEventbriteSearch/helpers/genericFunctions.js +90 -0
  85. package/dist/nodes/ApifyEventbriteSearch/helpers/genericFunctions.js.map +1 -0
  86. package/dist/nodes/ApifyEventbriteSearch/logo.svg +5 -0
  87. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.node.d.ts +13 -0
  88. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.node.js +88 -0
  89. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.node.js.map +1 -0
  90. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.node.json +23 -0
  91. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.properties.d.ts +4 -0
  92. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.properties.js +90 -0
  93. package/dist/nodes/ApifyEventnoire/ApifyEventnoire.properties.js.map +1 -0
  94. package/dist/nodes/ApifyEventnoire/helpers/executeActor.d.ts +5 -0
  95. package/dist/nodes/ApifyEventnoire/helpers/executeActor.js +68 -0
  96. package/dist/nodes/ApifyEventnoire/helpers/executeActor.js.map +1 -0
  97. package/dist/nodes/ApifyEventnoire/helpers/genericFunctions.d.ts +10 -0
  98. package/dist/nodes/ApifyEventnoire/helpers/genericFunctions.js +90 -0
  99. package/dist/nodes/ApifyEventnoire/helpers/genericFunctions.js.map +1 -0
  100. package/dist/nodes/ApifyEventnoire/logo.svg +5 -0
  101. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.node.d.ts +13 -0
  102. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.node.js +88 -0
  103. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.node.js.map +1 -0
  104. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.node.json +23 -0
  105. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.d.ts +4 -0
  106. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.js +110 -0
  107. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.js.map +1 -0
  108. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/executeActor.d.ts +5 -0
  109. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/executeActor.js +68 -0
  110. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/executeActor.js.map +1 -0
  111. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/genericFunctions.d.ts +10 -0
  112. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/genericFunctions.js +90 -0
  113. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/genericFunctions.js.map +1 -0
  114. package/dist/nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/logo.svg +5 -0
  115. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.node.d.ts +13 -0
  116. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.node.js +88 -0
  117. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.node.js.map +1 -0
  118. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.node.json +23 -0
  119. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.properties.d.ts +4 -0
  120. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.properties.js +60 -0
  121. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.properties.js.map +1 -0
  122. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/executeActor.d.ts +5 -0
  123. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/executeActor.js +68 -0
  124. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/executeActor.js.map +1 -0
  125. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/genericFunctions.d.ts +10 -0
  126. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/genericFunctions.js +90 -0
  127. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/genericFunctions.js.map +1 -0
  128. package/dist/nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/logo.svg +5 -0
  129. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.node.d.ts +13 -0
  130. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.node.js +88 -0
  131. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.node.js.map +1 -0
  132. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.node.json +23 -0
  133. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.properties.d.ts +4 -0
  134. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.properties.js +90 -0
  135. package/dist/nodes/ApifyPoshVip/ApifyPoshVip.properties.js.map +1 -0
  136. package/dist/nodes/ApifyPoshVip/helpers/executeActor.d.ts +5 -0
  137. package/dist/nodes/ApifyPoshVip/helpers/executeActor.js +68 -0
  138. package/dist/nodes/ApifyPoshVip/helpers/executeActor.js.map +1 -0
  139. package/dist/nodes/ApifyPoshVip/helpers/genericFunctions.d.ts +10 -0
  140. package/dist/nodes/ApifyPoshVip/helpers/genericFunctions.js +90 -0
  141. package/dist/nodes/ApifyPoshVip/helpers/genericFunctions.js.map +1 -0
  142. package/dist/nodes/ApifyPoshVip/logo.svg +5 -0
  143. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.node.d.ts +13 -0
  144. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.node.js +88 -0
  145. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.node.js.map +1 -0
  146. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.node.json +23 -0
  147. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.properties.d.ts +4 -0
  148. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.properties.js +90 -0
  149. package/dist/nodes/ApifyPrekindle/ApifyPrekindle.properties.js.map +1 -0
  150. package/dist/nodes/ApifyPrekindle/helpers/executeActor.d.ts +5 -0
  151. package/dist/nodes/ApifyPrekindle/helpers/executeActor.js +68 -0
  152. package/dist/nodes/ApifyPrekindle/helpers/executeActor.js.map +1 -0
  153. package/dist/nodes/ApifyPrekindle/helpers/genericFunctions.d.ts +10 -0
  154. package/dist/nodes/ApifyPrekindle/helpers/genericFunctions.js +90 -0
  155. package/dist/nodes/ApifyPrekindle/helpers/genericFunctions.js.map +1 -0
  156. package/dist/nodes/ApifyPrekindle/logo.svg +5 -0
  157. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.node.d.ts +13 -0
  158. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.node.js +88 -0
  159. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.node.js.map +1 -0
  160. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.node.json +23 -0
  161. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.properties.d.ts +4 -0
  162. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.properties.js +90 -0
  163. package/dist/nodes/ApifyShotgunLive/ApifyShotgunLive.properties.js.map +1 -0
  164. package/dist/nodes/ApifyShotgunLive/helpers/executeActor.d.ts +5 -0
  165. package/dist/nodes/ApifyShotgunLive/helpers/executeActor.js +68 -0
  166. package/dist/nodes/ApifyShotgunLive/helpers/executeActor.js.map +1 -0
  167. package/dist/nodes/ApifyShotgunLive/helpers/genericFunctions.d.ts +10 -0
  168. package/dist/nodes/ApifyShotgunLive/helpers/genericFunctions.js +90 -0
  169. package/dist/nodes/ApifyShotgunLive/helpers/genericFunctions.js.map +1 -0
  170. package/dist/nodes/ApifyShotgunLive/logo.svg +5 -0
  171. package/dist/package.json +71 -0
  172. package/dist/tsconfig.tsbuildinfo +1 -0
  173. package/package.json +71 -0
@@ -0,0 +1,23 @@
1
+ {
2
+ "node": "n8n-nodes-base.apifyInfluencerDiscoveryAgentInstagramTiktok",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Data & Storage",
7
+ "Marketing & Content"
8
+ ],
9
+ "resources": {
10
+ "primaryDocumentation": [
11
+ {
12
+ "url": "https://apify.com/hypebridge/influencer-discovery-agent-instagram-tiktok"
13
+ }
14
+ ]
15
+ },
16
+ "alias": [
17
+ "influencer discovery agent instagram tiktok",
18
+ "apify",
19
+ "scraper",
20
+ "automation",
21
+ "hypebridge"
22
+ ]
23
+ }
@@ -0,0 +1,4 @@
1
+ import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare function buildActorInput(context: IExecuteFunctions, itemIndex: number, defaultInput: Record<string, any>): Record<string, any>;
3
+ export declare const actorProperties: INodeProperties[];
4
+ export declare const properties: INodeProperties[];
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.properties = exports.actorProperties = void 0;
4
+ exports.buildActorInput = buildActorInput;
5
+ function getOptionalParam(context, paramName, itemIndex) {
6
+ const value = context.getNodeParameter(paramName, itemIndex);
7
+ return value !== undefined && value !== null && value !== '' ? { [paramName]: value } : {};
8
+ }
9
+ function buildActorInput(context, itemIndex, defaultInput) {
10
+ return {
11
+ ...defaultInput,
12
+ request: context.getNodeParameter('request', itemIndex),
13
+ targetQuantity: context.getNodeParameter('targetQuantity', itemIndex),
14
+ platform: context.getNodeParameter('platform', itemIndex),
15
+ minFollowers: context.getNodeParameter('minFollowers', itemIndex),
16
+ maxFollowers: context.getNodeParameter('maxFollowers', itemIndex),
17
+ ...getOptionalParam(context, 'location', itemIndex),
18
+ };
19
+ }
20
+ const authenticationProperties = [
21
+ {
22
+ displayName: 'Authentication',
23
+ name: 'authentication',
24
+ type: 'options',
25
+ options: [
26
+ {
27
+ name: 'API Key',
28
+ value: 'apifyApi',
29
+ },
30
+ {
31
+ name: 'OAuth2',
32
+ value: 'apifyOAuth2Api',
33
+ },
34
+ ],
35
+ default: 'apifyApi',
36
+ description: 'Choose which authentication method to use',
37
+ },
38
+ ];
39
+ exports.actorProperties = [
40
+ {
41
+ "displayName": "Influencer Description",
42
+ "name": "request",
43
+ "description": "Describe your ideal influencer and the actor will find matches (Instagram and TikTok only).",
44
+ "required": true,
45
+ "default": "Fashion influencer on Instagram with 100k+ followers who focuses on sustainable clothing and lifestyle",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "displayName": "Target Quantity",
50
+ "name": "targetQuantity",
51
+ "description": "Number of influencers to find (optional, defaults to 10). Note that result quantity may vary based on platform and filters.",
52
+ "required": false,
53
+ "default": 10,
54
+ "type": "number",
55
+ "typeOptions": {
56
+ "minValue": 1,
57
+ "maxValue": 30
58
+ }
59
+ },
60
+ {
61
+ "displayName": "Platform",
62
+ "name": "platform",
63
+ "description": "Social media platform (optional filter)",
64
+ "required": false,
65
+ "default": "",
66
+ "type": "options",
67
+ "options": [
68
+ {
69
+ "name": "Instagram",
70
+ "value": "instagram"
71
+ },
72
+ {
73
+ "name": "TikTok",
74
+ "value": "tiktok"
75
+ },
76
+ {
77
+ "name": "Mixed",
78
+ "value": "mixed"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "displayName": "Minimum Followers",
84
+ "name": "minFollowers",
85
+ "description": "Minimum follower count (optional filter)",
86
+ "required": false,
87
+ "default": 0,
88
+ "type": "number",
89
+ "typeOptions": {}
90
+ },
91
+ {
92
+ "displayName": "Maximum Followers",
93
+ "name": "maxFollowers",
94
+ "description": "Maximum follower count (optional filter)",
95
+ "required": false,
96
+ "default": 0,
97
+ "type": "number",
98
+ "typeOptions": {}
99
+ },
100
+ {
101
+ "displayName": "Location",
102
+ "name": "location",
103
+ "description": "Preferred location (optional filter)",
104
+ "required": false,
105
+ "default": "United States",
106
+ "type": "string"
107
+ }
108
+ ];
109
+ exports.properties = [...exports.actorProperties, ...authenticationProperties];
110
+ //# sourceMappingURL=ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.js","sourceRoot":"","sources":["../../../nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/ApifyInfluencerDiscoveryAgentInstagramTiktok.properties.ts"],"names":[],"mappings":";;;AAOA,0CAoBC;AAzBD,SAAS,gBAAgB,CAAC,OAA0B,EAAE,SAAiB,EAAE,SAAiB;IACzF,MAAM,KAAK,GAAG,OAAO,CAAC,gBAAg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@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function getDefaultBuild(this: IExecuteFunctions, actorId: string): Promise<any>;
3
+ export declare function getDefaultInputsFromBuild(build: any): Record<string, any>;
4
+ export declare function runActorApi(this: IExecuteFunctions, actorId: string, mergedInput: Record<string, any>, qs: Record<string, any>): Promise<any>;
5
+ export declare function runActor(this: IExecuteFunctions, i: number): Promise<INodeExecutionData>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDefaultBuild = getDefaultBuild;
4
+ exports.getDefaultInputsFromBuild = getDefaultInputsFromBuild;
5
+ exports.runActorApi = runActorApi;
6
+ exports.runActor = runActor;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ const genericFunctions_1 = require("./genericFunctions");
9
+ const ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1 = require("../ApifyInfluencerDiscoveryAgentInstagramTiktok.node");
10
+ const ApifyInfluencerDiscoveryAgentInstagramTiktok_properties_1 = require("../ApifyInfluencerDiscoveryAgentInstagramTiktok.properties");
11
+ async function getDefaultBuild(actorId) {
12
+ const defaultBuildResp = await genericFunctions_1.apiRequest.call(this, {
13
+ method: 'GET',
14
+ uri: `/v2/acts/${actorId}/builds/default`,
15
+ });
16
+ if (!(defaultBuildResp === null || defaultBuildResp === void 0 ? void 0 : defaultBuildResp.data)) {
17
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
18
+ message: `Could not fetch default build for Actor ${actorId}`,
19
+ });
20
+ }
21
+ return defaultBuildResp.data;
22
+ }
23
+ function getDefaultInputsFromBuild(build) {
24
+ var _a, _b;
25
+ const buildInputProperties = (_b = (_a = build === null || build === void 0 ? void 0 : build.actorDefinition) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.properties;
26
+ const defaultInput = {};
27
+ if (buildInputProperties && typeof buildInputProperties === 'object') {
28
+ for (const [key, property] of Object.entries(buildInputProperties)) {
29
+ if (property &&
30
+ typeof property === 'object' &&
31
+ 'prefill' in property &&
32
+ property.prefill !== undefined &&
33
+ property.prefill !== null) {
34
+ defaultInput[key] = property.prefill;
35
+ }
36
+ }
37
+ }
38
+ return defaultInput;
39
+ }
40
+ async function runActorApi(actorId, mergedInput, qs) {
41
+ return await genericFunctions_1.apiRequest.call(this, {
42
+ method: 'POST',
43
+ uri: `/v2/acts/${actorId}/runs`,
44
+ body: mergedInput,
45
+ qs,
46
+ });
47
+ }
48
+ async function runActor(i) {
49
+ var _a;
50
+ const build = await getDefaultBuild.call(this, ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.ACTOR_ID);
51
+ const defaultInput = getDefaultInputsFromBuild(build);
52
+ const mergedInput = (0, ApifyInfluencerDiscoveryAgentInstagramTiktok_properties_1.buildActorInput)(this, i, defaultInput);
53
+ const run = await runActorApi.call(this, ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.ACTOR_ID, mergedInput, { waitForFinish: 0 });
54
+ if (!((_a = run === null || run === void 0 ? void 0 : run.data) === null || _a === void 0 ? void 0 : _a.id)) {
55
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
56
+ message: `Run ID not found after running the Actor`,
57
+ });
58
+ }
59
+ const runId = run.data.id;
60
+ const datasetId = run.data.defaultDatasetId;
61
+ const lastRunData = await genericFunctions_1.pollRunStatus.call(this, runId);
62
+ const resultData = await genericFunctions_1.getResults.call(this, datasetId);
63
+ if ((0, genericFunctions_1.isUsedAsAiTool)(this.getNode().type)) {
64
+ return { json: { ...resultData } };
65
+ }
66
+ return { json: { ...lastRunData, ...resultData } };
67
+ }
68
+ //# sourceMappingURL=executeActor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeActor.js","sourceRoot":"","sources":["../../../../nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/executeActor.ts"],"names":[],"mappings":";;AAKA,0CAWC;AAED,8DAiBC;AAED,kCAYC;AAED,4BA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EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,CAAC;IACpC,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,UAAU,EAAE,EAAE,CAAC;AACpD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type IExecuteFunctions, type IHookFunctions, type ILoadOptionsFunctions, type IHttpRequestOptions } from 'n8n-workflow';
2
+ type IApiRequestOptions = Omit<IHttpRequestOptions, 'url'> & {
3
+ uri?: string;
4
+ url?: string;
5
+ };
6
+ export declare function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, requestOptions: IApiRequestOptions): Promise<any>;
7
+ export declare function isUsedAsAiTool(nodeType: string): boolean;
8
+ export declare function pollRunStatus(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, runId: string): Promise<any>;
9
+ export declare function getResults(this: IExecuteFunctions, datasetId: string): Promise<any>;
10
+ export {};
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apiRequest = apiRequest;
4
+ exports.isUsedAsAiTool = isUsedAsAiTool;
5
+ exports.pollRunStatus = pollRunStatus;
6
+ exports.getResults = getResults;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ const ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1 = require("../ApifyInfluencerDiscoveryAgentInstagramTiktok.node");
9
+ async function apiRequest(requestOptions) {
10
+ var _a;
11
+ const { method = 'GET', qs, uri, ...rest } = requestOptions;
12
+ const query = qs || {};
13
+ const endpoint = `https://api.apify.com${uri !== null && uri !== void 0 ? uri : ''}`;
14
+ const headers = {
15
+ 'x-apify-integration-platform': ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.X_PLATFORM_HEADER_ID,
16
+ ...(ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.X_PLATFORM_APP_HEADER_ID && { 'x-apify-integration-app-id': ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.X_PLATFORM_APP_HEADER_ID }),
17
+ };
18
+ if (isUsedAsAiTool(this.getNode().type)) {
19
+ headers['x-apify-integration-ai-tool'] = 'true';
20
+ }
21
+ const options = {
22
+ ...rest,
23
+ method,
24
+ qs: query,
25
+ url: endpoint,
26
+ headers,
27
+ json: true,
28
+ };
29
+ if (method === 'GET' && 'body' in options) {
30
+ delete options.body;
31
+ }
32
+ try {
33
+ const authenticationMethod = this.getNodeParameter('authentication', 0);
34
+ try {
35
+ await this.getCredentials(authenticationMethod);
36
+ }
37
+ catch {
38
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No valid credentials found for ${authenticationMethod}. Please configure them first.`);
39
+ }
40
+ return await this.helpers.httpRequestWithAuthentication.call(this, authenticationMethod, options);
41
+ }
42
+ catch (error) {
43
+ if (error instanceof n8n_workflow_1.NodeApiError)
44
+ throw error;
45
+ if ((_a = error.response) === null || _a === void 0 ? void 0 : _a.body) {
46
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
47
+ message: error.response.body,
48
+ description: error.message,
49
+ });
50
+ }
51
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
52
+ }
53
+ }
54
+ function isUsedAsAiTool(nodeType) {
55
+ const parts = nodeType.split('.');
56
+ return parts[parts.length - 1] === `${ApifyInfluencerDiscoveryAgentInstagramTiktok_node_1.ClassNameCamel}Tool`;
57
+ }
58
+ async function pollRunStatus(runId) {
59
+ var _a;
60
+ let lastRunData;
61
+ while (true) {
62
+ try {
63
+ const pollResult = await apiRequest.call(this, {
64
+ method: 'GET',
65
+ uri: `/v2/actor-runs/${runId}`,
66
+ });
67
+ const status = (_a = pollResult === null || pollResult === void 0 ? void 0 : pollResult.data) === null || _a === void 0 ? void 0 : _a.status;
68
+ lastRunData = pollResult === null || pollResult === void 0 ? void 0 : pollResult.data;
69
+ if (['SUCCEEDED', 'FAILED', 'TIMED-OUT', 'ABORTED'].includes(status))
70
+ break;
71
+ }
72
+ catch (err) {
73
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
74
+ message: `Error polling run status: ${err}`,
75
+ });
76
+ }
77
+ await (0, n8n_workflow_1.sleep)(1000);
78
+ }
79
+ return lastRunData;
80
+ }
81
+ async function getResults(datasetId) {
82
+ const results = await apiRequest.call(this, {
83
+ method: 'GET',
84
+ uri: `/v2/datasets/${datasetId}/items`,
85
+ });
86
+ if (isUsedAsAiTool(this.getNode().type)) {
87
+ }
88
+ return this.helpers.returnJsonArray(results);
89
+ }
90
+ //# sourceMappingURL=genericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genericFunctions.js","sourceRoot":"","sources":["../../../../nodes/ApifyInfluencerDiscoveryAgentInstagramTiktok/helpers/genericFunctions.ts"],"names":[],"mappings":";;AAgBA,gCA4DC;AAED,wCAGC;AAED,sCAuBC;AAED,gCAYC;AAxHD,+CAQsB;AACtB,4HAAsI;AAO/H,KAAK,UAAU,UAAU,CAE/B,cAAkC;;IAElC,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,cAAc,CAAC;IAE5D,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,wBAAwB,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,EAAE,EAAE,CAAC;IAErD,MAAM,OAAO,GAA2B;QACvC,8BAA8B,EAAE,wEAAoB;QACpD,GAAG,CAAC,4EAAwB,IAAI,EAAE,4BAA4B,EAAE,4EAAwB,EAAE,CAAC;KAC3F,CAAC;IAEF,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,OAAO,CAAC,6BAA6B,CAAC,GAAG,MAAM,CAAC;IACjD,CAAC;IAED,MAAM,OAAO,GAAwB;QACpC,GAAG,IAAI;QACP,MAAM;QACN,EAAE,EAAE,KAAK;QACT,GAAG,EAAE,QAAQ;QACb,OAAO;QACP,IAAI,E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org/2000/svg">
2
+ <path d="M47.6495 0H81.83C82.5252 0 83.0889 0.563639 83.0889 1.25892V53.4951C83.0889 54.7462 81.4616 55.2313 80.7765 54.1844L46.596 1.94824C46.0481 1.11095 46.6489 0 47.6495 0Z" fill="#202F3F"/>
3
+ <path d="M35.4394 0H1.25892C0.563639 0 0 0.563639 0 1.25892V53.4951C0 54.7462 1.62729 55.2313 2.31236 54.1844L36.4929 1.94824C37.0407 1.11095 36.44 0 35.4394 0Z" fill="#202F3F"/>
4
+ <path d="M40.9589 41.8221L2.12976 80.9431C1.34126 81.7375 1.90397 83.0889 3.02328 83.0889H80.0976C81.2123 83.0889 81.777 81.747 80.9978 80.9499L42.7526 41.8289C42.2614 41.3264 41.4539 41.3233 40.9589 41.8221Z" fill="#202F3F"/>
5
+ </svg>
@@ -0,0 +1,13 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare const ACTOR_ID: string;
3
+ export declare const PACKAGE_NAME: string;
4
+ export declare const CLASS_NAME: string;
5
+ export declare const ClassNameCamel: string;
6
+ export declare const X_PLATFORM_HEADER_ID: string;
7
+ export declare const X_PLATFORM_APP_HEADER_ID: string;
8
+ export declare const DISPLAY_NAME: string;
9
+ export declare const DESCRIPTION: string;
10
+ export declare class ApifyInfluencerEvaluationAgentInstagramTiktok implements INodeType {
11
+ description: INodeTypeDescription;
12
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
13
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApifyInfluencerEvaluationAgentInstagramTiktok = exports.DESCRIPTION = exports.DISPLAY_NAME = exports.X_PLATFORM_APP_HEADER_ID = exports.X_PLATFORM_HEADER_ID = exports.ClassNameCamel = exports.CLASS_NAME = exports.PACKAGE_NAME = exports.ACTOR_ID = void 0;
4
+ const ApifyInfluencerEvaluationAgentInstagramTiktok_properties_1 = require("./ApifyInfluencerEvaluationAgentInstagramTiktok.properties");
5
+ const executeActor_1 = require("./helpers/executeActor");
6
+ exports.ACTOR_ID = 'wMq6Lnj8aX8EVRRTa';
7
+ exports.PACKAGE_NAME = 'n8n-nodes-hypebridge-actors';
8
+ exports.CLASS_NAME = 'ApifyInfluencerEvaluationAgentInstagramTiktok';
9
+ exports.ClassNameCamel = 'apifyInfluencerEvaluationAgentInstagramTiktok';
10
+ exports.X_PLATFORM_HEADER_ID = 'n8n';
11
+ exports.X_PLATFORM_APP_HEADER_ID = 'wMq6Lnj8aX8EVRRTa';
12
+ exports.DISPLAY_NAME = 'Influencer Evaluation Agent (Instagram + Tiktok)';
13
+ exports.DESCRIPTION = 'Return a rigorous influencer evaluation using HypeBridge\'s AI-powered evaluation service. (Instagram + TikTok)';
14
+ class ApifyInfluencerEvaluationAgentInstagramTiktok {
15
+ constructor() {
16
+ this.description = {
17
+ displayName: exports.DISPLAY_NAME,
18
+ name: exports.ClassNameCamel,
19
+ icon: 'file:logo.svg',
20
+ group: ['transform'],
21
+ version: [1],
22
+ defaultVersion: 1,
23
+ subtitle: 'Run Actor',
24
+ description: exports.DESCRIPTION,
25
+ defaults: {
26
+ name: exports.DISPLAY_NAME,
27
+ },
28
+ inputs: ["main"],
29
+ outputs: ["main"],
30
+ usableAsTool: true,
31
+ credentials: [
32
+ {
33
+ displayName: 'Apify API key connection',
34
+ name: 'apifyApi',
35
+ required: false,
36
+ displayOptions: {
37
+ show: {
38
+ authentication: ['apifyApi'],
39
+ },
40
+ },
41
+ },
42
+ {
43
+ displayName: 'Apify OAuth2 connection',
44
+ name: 'apifyOAuth2Api',
45
+ required: false,
46
+ displayOptions: {
47
+ show: {
48
+ authentication: ['apifyOAuth2Api'],
49
+ },
50
+ },
51
+ },
52
+ ],
53
+ properties: ApifyInfluencerEvaluationAgentInstagramTiktok_properties_1.properties,
54
+ };
55
+ }
56
+ async execute() {
57
+ const items = this.getInputData();
58
+ const returnData = [];
59
+ for (let i = 0; i < items.length; i++) {
60
+ try {
61
+ const data = await executeActor_1.runActor.call(this, i);
62
+ const addPairedItem = (item) => ({
63
+ ...item,
64
+ pairedItem: { item: i },
65
+ });
66
+ if (Array.isArray(data)) {
67
+ returnData.push(...data.map(addPairedItem));
68
+ }
69
+ else {
70
+ returnData.push(addPairedItem(data));
71
+ }
72
+ }
73
+ catch (error) {
74
+ if (this.continueOnFail()) {
75
+ returnData.push({
76
+ json: { error: error.message },
77
+ pairedItem: { item: i },
78
+ });
79
+ continue;
80
+ }
81
+ throw error;
82
+ }
83
+ }
84
+ return [returnData];
85
+ }
86
+ }
87
+ exports.ApifyInfluencerEvaluationAgentInstagramTiktok = ApifyInfluencerEvaluationAgentInstagramTiktok;
88
+ //# sourceMappingURL=ApifyInfluencerEvaluationAgentInstagramTiktok.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApifyInfluencerEvaluationAgentInstagramTiktok.node.js","sourceRoot":"","sources":["../../../nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.node.ts"],"names":[],"mappings":";;;AAOA,yIAAwF;AACxF,yDAAkD;AAGrC,QAAA,QAAQ,GAAG,mBAA6B,CAAC;AAEzC,QAAA,YAAY,GAAG,6BAAuC,CAAC;AACvD,QAAA,UAAU,GAAG,+CAAyD,CAAC;AACvE,QAAA,cAAc,GAAG,+CAAyD,CAAC;AAE3E,QAAA,oBAAoB,GAAG,KAAe,CAAC;AACvC,QAAA,wBAAwB,GAAG,mBAA6B,CAAC;AAEzD,QAAA,YAAY,GAAG,kDAA4D,CAAC;AAC5E,QAAA,WAAW,GAAG,iHAA2H,CAAC;AAEvJ,MAAa,6CAA6C;IAA1D;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,oBAAY;YACzB,IAAI,EAAE,sBAAc;YAGpB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC,CAAC,CAAC;YACZ,cAAc,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AC,CAAC;gBAC7C,CAAC;qBAAM,CAAC;oBACP,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;gBACtC,CAAC;YACF,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE;wBAC9B,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAhFD,sGAgFC"}
@@ -0,0 +1,23 @@
1
+ {
2
+ "node": "n8n-nodes-base.apifyInfluencerEvaluationAgentInstagramTiktok",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Data & Storage",
7
+ "Marketing & Content"
8
+ ],
9
+ "resources": {
10
+ "primaryDocumentation": [
11
+ {
12
+ "url": "https://apify.com/hypebridge/influencer-evaluation-agent-instagram-tiktok"
13
+ }
14
+ ]
15
+ },
16
+ "alias": [
17
+ "influencer evaluation agent instagram tiktok",
18
+ "apify",
19
+ "scraper",
20
+ "automation",
21
+ "hypebridge"
22
+ ]
23
+ }
@@ -0,0 +1,4 @@
1
+ import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare function buildActorInput(context: IExecuteFunctions, itemIndex: number, defaultInput: Record<string, any>): Record<string, any>;
3
+ export declare const actorProperties: INodeProperties[];
4
+ export declare const properties: INodeProperties[];
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.properties = exports.actorProperties = void 0;
4
+ exports.buildActorInput = buildActorInput;
5
+ function buildActorInput(context, itemIndex, defaultInput) {
6
+ return {
7
+ ...defaultInput,
8
+ influencerHandle: context.getNodeParameter('influencerHandle', itemIndex),
9
+ platform: context.getNodeParameter('platform', itemIndex),
10
+ };
11
+ }
12
+ const authenticationProperties = [
13
+ {
14
+ displayName: 'Authentication',
15
+ name: 'authentication',
16
+ type: 'options',
17
+ options: [
18
+ {
19
+ name: 'API Key',
20
+ value: 'apifyApi',
21
+ },
22
+ {
23
+ name: 'OAuth2',
24
+ value: 'apifyOAuth2Api',
25
+ },
26
+ ],
27
+ default: 'apifyApi',
28
+ description: 'Choose which authentication method to use',
29
+ },
30
+ ];
31
+ exports.actorProperties = [
32
+ {
33
+ "displayName": "Influencer Handle",
34
+ "name": "influencerHandle",
35
+ "description": "The Instagram or TikTok handle of the influencer to evaluate (e.g., 'natgeo' or '@natgeo'). The @ symbol is optional.",
36
+ "required": true,
37
+ "default": "natgeo",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "displayName": "Platform",
42
+ "name": "platform",
43
+ "description": "Social media platform of the influencer. Defaults to Instagram if not specified.",
44
+ "required": false,
45
+ "default": "instagram",
46
+ "type": "options",
47
+ "options": [
48
+ {
49
+ "name": "Instagram",
50
+ "value": "instagram"
51
+ },
52
+ {
53
+ "name": "TikTok",
54
+ "value": "tiktok"
55
+ }
56
+ ]
57
+ }
58
+ ];
59
+ exports.properties = [...exports.actorProperties, ...authenticationProperties];
60
+ //# sourceMappingURL=ApifyInfluencerEvaluationAgentInstagramTiktok.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApifyInfluencerEvaluationAgentInstagramTiktok.properties.js","sourceRoot":"","sources":["../../../nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/ApifyInfluencerEvaluationAgentInstagramTiktok.properties.ts"],"names":[],"mappings":";;;AAEA,0CAYC;AAZD,SAAgB,eAAe,CAC9B,OAA0B,EAC1B,SAAiB,EACjB,YAAiC;IAEjC,OAAO;QACN,GAAG,YAAY;QAEf,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,SAAS,CAAC;QAEzE,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC;KACzD,CAAC;AACH,CAAC;AAED,MAAM,wBAAwB,GAAsB;IACnD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,gBAAgB;aACvB;SACD;QACD,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,2CAA2C;KACxD;CACD,CAAC;AAEW,QAAA,eAAe,GAAsB;IAChD;QACE,aAAa,EAAE,mBAAmB;QAClC,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,uHAAuH;QACtI,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,QAAQ;KACjB;IACD;QACE,aAAa,EAAE,UAAU;QACzB,MAAM,EAAE,UAAU;QAClB,aAAa,EAAE,kFAAkF;QACjG,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE;YACT;gBACE,MAAM,EAAE,WAAW;gBACnB,OAAO,EAAE,WAAW;aACrB;YACD;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO,EAAE,QAAQ;aAClB;SACF;KACF;CACF,CAAC;AAEW,QAAA,UAAU,GAAsB,CAAC,GAAG,uBAAe,EAAE,GAAG,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function getDefaultBuild(this: IExecuteFunctions, actorId: string): Promise<any>;
3
+ export declare function getDefaultInputsFromBuild(build: any): Record<string, any>;
4
+ export declare function runActorApi(this: IExecuteFunctions, actorId: string, mergedInput: Record<string, any>, qs: Record<string, any>): Promise<any>;
5
+ export declare function runActor(this: IExecuteFunctions, i: number): Promise<INodeExecutionData>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDefaultBuild = getDefaultBuild;
4
+ exports.getDefaultInputsFromBuild = getDefaultInputsFromBuild;
5
+ exports.runActorApi = runActorApi;
6
+ exports.runActor = runActor;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ const genericFunctions_1 = require("./genericFunctions");
9
+ const ApifyInfluencerEvaluationAgentInstagramTiktok_node_1 = require("../ApifyInfluencerEvaluationAgentInstagramTiktok.node");
10
+ const ApifyInfluencerEvaluationAgentInstagramTiktok_properties_1 = require("../ApifyInfluencerEvaluationAgentInstagramTiktok.properties");
11
+ async function getDefaultBuild(actorId) {
12
+ const defaultBuildResp = await genericFunctions_1.apiRequest.call(this, {
13
+ method: 'GET',
14
+ uri: `/v2/acts/${actorId}/builds/default`,
15
+ });
16
+ if (!(defaultBuildResp === null || defaultBuildResp === void 0 ? void 0 : defaultBuildResp.data)) {
17
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
18
+ message: `Could not fetch default build for Actor ${actorId}`,
19
+ });
20
+ }
21
+ return defaultBuildResp.data;
22
+ }
23
+ function getDefaultInputsFromBuild(build) {
24
+ var _a, _b;
25
+ const buildInputProperties = (_b = (_a = build === null || build === void 0 ? void 0 : build.actorDefinition) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.properties;
26
+ const defaultInput = {};
27
+ if (buildInputProperties && typeof buildInputProperties === 'object') {
28
+ for (const [key, property] of Object.entries(buildInputProperties)) {
29
+ if (property &&
30
+ typeof property === 'object' &&
31
+ 'prefill' in property &&
32
+ property.prefill !== undefined &&
33
+ property.prefill !== null) {
34
+ defaultInput[key] = property.prefill;
35
+ }
36
+ }
37
+ }
38
+ return defaultInput;
39
+ }
40
+ async function runActorApi(actorId, mergedInput, qs) {
41
+ return await genericFunctions_1.apiRequest.call(this, {
42
+ method: 'POST',
43
+ uri: `/v2/acts/${actorId}/runs`,
44
+ body: mergedInput,
45
+ qs,
46
+ });
47
+ }
48
+ async function runActor(i) {
49
+ var _a;
50
+ const build = await getDefaultBuild.call(this, ApifyInfluencerEvaluationAgentInstagramTiktok_node_1.ACTOR_ID);
51
+ const defaultInput = getDefaultInputsFromBuild(build);
52
+ const mergedInput = (0, ApifyInfluencerEvaluationAgentInstagramTiktok_properties_1.buildActorInput)(this, i, defaultInput);
53
+ const run = await runActorApi.call(this, ApifyInfluencerEvaluationAgentInstagramTiktok_node_1.ACTOR_ID, mergedInput, { waitForFinish: 0 });
54
+ if (!((_a = run === null || run === void 0 ? void 0 : run.data) === null || _a === void 0 ? void 0 : _a.id)) {
55
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
56
+ message: `Run ID not found after running the Actor`,
57
+ });
58
+ }
59
+ const runId = run.data.id;
60
+ const datasetId = run.data.defaultDatasetId;
61
+ const lastRunData = await genericFunctions_1.pollRunStatus.call(this, runId);
62
+ const resultData = await genericFunctions_1.getResults.call(this, datasetId);
63
+ if ((0, genericFunctions_1.isUsedAsAiTool)(this.getNode().type)) {
64
+ return { json: { ...resultData } };
65
+ }
66
+ return { json: { ...lastRunData, ...resultData } };
67
+ }
68
+ //# sourceMappingURL=executeActor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeActor.js","sourceRoot":"","sources":["../../../../nodes/ApifyInfluencerEvaluationAgentInstagramTiktok/helpers/executeActor.ts"],"names":[],"mappings":";;AAKA,0CAWC;AAED,8DAiBC;AAED,kCAYC;AAED,4BAsBC;AAzED,+CAAmF;AACnF,yDAA2F;AAC3F,8HAAiF;AACjF,0IAA8F;AAEvF,KAAK,UAAU,eAAe,CAA0B,OAAe;IAC7E,MAAM,gBAAgB,GAAG,MAAM,6BAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACpD,MAAM,EAAE,KAAK;QACb,GA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