ugcinc 1.5.0 → 1.6.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.
package/README.md CHANGED
@@ -59,6 +59,7 @@ For complete API documentation, including all endpoints, parameters, and example
59
59
  ### Tasks
60
60
  - Get scheduled tasks
61
61
  - View task history
62
+ - Retry tasks
62
63
 
63
64
  ### Statistics
64
65
  - Get account statistics
@@ -178,6 +179,17 @@ if (response.ok) {
178
179
  }
179
180
  ```
180
181
 
182
+ **Retry tasks:**
183
+ ```typescript
184
+ const response = await client.tasks.retryTasks({
185
+ taskIds: ['task-uuid-1', 'task-uuid-2']
186
+ });
187
+
188
+ if (response.ok) {
189
+ console.log(`Retried ${response.data.retried} task(s)`);
190
+ }
191
+ ```
192
+
181
193
  ## TypeScript Support
182
194
 
183
195
  This package is written in TypeScript and provides full type definitions:
package/dist/tasks.d.ts CHANGED
@@ -8,4 +8,13 @@ export declare class TasksClient extends BaseClient {
8
8
  * Get tasks with optional filters
9
9
  */
10
10
  getTasks(params?: GetTasksParams): Promise<ApiResponse<Task[]>>;
11
+ /**
12
+ * Retry failed or completed tasks
13
+ */
14
+ retryTasks(params: {
15
+ taskIds: string[];
16
+ }): Promise<ApiResponse<{
17
+ retried: number;
18
+ ids: string[];
19
+ }>>;
11
20
  }
package/dist/tasks.js CHANGED
@@ -12,5 +12,11 @@ class TasksClient extends base_1.BaseClient {
12
12
  async getTasks(params) {
13
13
  return this.post('/tasks', params ?? {});
14
14
  }
15
+ /**
16
+ * Retry failed or completed tasks
17
+ */
18
+ async retryTasks(params) {
19
+ return this.post('/tasks/retry', params);
20
+ }
15
21
  }
16
22
  exports.TasksClient = TasksClient;
package/dist/types.d.ts CHANGED
@@ -26,6 +26,7 @@ export interface Account {
26
26
  username: string | null;
27
27
  nick_name: string | null;
28
28
  pfp_url: string | null;
29
+ bio: string | null;
29
30
  warmup_enabled: boolean | null;
30
31
  keywords: string | null;
31
32
  profiles: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,10 +24,11 @@
24
24
  "@types/node": "^20.0.0",
25
25
  "typescript": "^5.0.0"
26
26
  },
27
- "dependencies": {},
27
+ "dependencies": {
28
+ "ugcinc": "^1.6.0"
29
+ },
28
30
  "files": [
29
31
  "dist",
30
32
  "README.md"
31
33
  ]
32
34
  }
33
-