n8n-nodes-tiktok-bigboss 1.0.1 → 1.0.4

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.
@@ -30,6 +30,9 @@ async function tiktokApiRequest(method, resource, body = {}, qs = {}, fullOutput
30
30
  }
31
31
  }
32
32
  catch (error) {
33
+ if (error.message && error.message.includes('unaudited_client_can_only_post_to_private_accounts')) {
34
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), { message: '⛔ DEVELOPMENT MODE ERROR: Unaudited TikTok apps can ONLY post to "Only Me" (Private). Please change the "Privacy Level" option in this node to "Only Me" to fix this.' });
35
+ }
33
36
  const errObject = error instanceof Error ? { message: error.message } : { message: String(error) };
34
37
  throw new n8n_workflow_1.NodeApiError(this.getNode(), errObject);
35
38
  }
@@ -171,7 +174,7 @@ class TikTokBigBoss {
171
174
  { name: 'Followers of Creator', value: 'FOLLOWER_OF_CREATOR' },
172
175
  { name: 'Only Me', value: 'SELF_ONLY' },
173
176
  ],
174
- default: 'PUBLIC_TO_EVERYONE',
177
+ default: 'SELF_ONLY',
175
178
  required: true,
176
179
  displayOptions: {
177
180
  show: {
@@ -179,7 +182,7 @@ class TikTokBigBoss {
179
182
  operation: ['upload'],
180
183
  },
181
184
  },
182
- description: 'Who can view this post',
185
+ description: 'Who can view this post. Note: Unaudited apps can ONLY use "Only Me".',
183
186
  },
184
187
  {
185
188
  displayName: 'Additional Fields',
@@ -324,7 +327,8 @@ class TikTokBigBoss {
324
327
  { name: 'Followers of Creator', value: 'FOLLOWER_OF_CREATOR' },
325
328
  { name: 'Only Me', value: 'SELF_ONLY' },
326
329
  ],
327
- default: 'PUBLIC_TO_EVERYONE',
330
+ default: 'SELF_ONLY',
331
+ description: 'Note: Unaudited apps can ONLY use "Only Me".',
328
332
  },
329
333
  {
330
334
  displayName: 'Auto Add Music',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-tiktok-bigboss",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "TikTok BigBoss node for n8n - Upload, Analytics, and Search",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -47,4 +47,4 @@
47
47
  "dependencies": {
48
48
  "n8n-core": "^1.75.0"
49
49
  }
50
- }
50
+ }