@scalemule/sdk 0.0.24 → 0.0.25

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/dist/index.d.mts CHANGED
@@ -4854,6 +4854,7 @@ interface Task {
4854
4854
  status: string;
4855
4855
  priority?: string;
4856
4856
  due_date?: string;
4857
+ sort_order?: number;
4857
4858
  assigned_agent_id?: string;
4858
4859
  metadata?: Record<string, unknown>;
4859
4860
  created_at: string;
@@ -4998,6 +4999,7 @@ declare class AgentProjectsService extends ServiceModule {
4998
4999
  actual_hours: number;
4999
5000
  metadata: Record<string, unknown>;
5000
5001
  }>, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Task>>;
5002
+ reorderTasks(projectId: string, taskIds: string[], applicationId?: string, options?: RequestOptions): Promise<ApiResponse<void>>;
5001
5003
  claimNext(agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ClaimResult | null>>;
5002
5004
  claim(taskId: string, agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ClaimResult>>;
5003
5005
  heartbeat(taskId: string, agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<{
package/dist/index.d.ts CHANGED
@@ -4854,6 +4854,7 @@ interface Task {
4854
4854
  status: string;
4855
4855
  priority?: string;
4856
4856
  due_date?: string;
4857
+ sort_order?: number;
4857
4858
  assigned_agent_id?: string;
4858
4859
  metadata?: Record<string, unknown>;
4859
4860
  created_at: string;
@@ -4998,6 +4999,7 @@ declare class AgentProjectsService extends ServiceModule {
4998
4999
  actual_hours: number;
4999
5000
  metadata: Record<string, unknown>;
5000
5001
  }>, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<Task>>;
5002
+ reorderTasks(projectId: string, taskIds: string[], applicationId?: string, options?: RequestOptions): Promise<ApiResponse<void>>;
5001
5003
  claimNext(agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ClaimResult | null>>;
5002
5004
  claim(taskId: string, agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<ClaimResult>>;
5003
5005
  heartbeat(taskId: string, agentId: string, applicationId?: string, options?: RequestOptions): Promise<ApiResponse<{
package/dist/index.js CHANGED
@@ -5951,6 +5951,13 @@ var AgentProjectsService = class extends ServiceModule {
5951
5951
  async updateTask(id, data, applicationId, options) {
5952
5952
  return this.patch(this.withAppId(`/tasks/${id}`, applicationId), data, options);
5953
5953
  }
5954
+ async reorderTasks(projectId, taskIds, applicationId, options) {
5955
+ return this.post(
5956
+ this.withAppId(`/projects/${projectId}/tasks/reorder`, applicationId),
5957
+ { task_ids: taskIds },
5958
+ options
5959
+ );
5960
+ }
5954
5961
  // Lifecycle (use registry agent_id)
5955
5962
  async claimNext(agentId, applicationId, options) {
5956
5963
  const result = await this.post(
package/dist/index.mjs CHANGED
@@ -5592,6 +5592,13 @@ var AgentProjectsService = class extends ServiceModule {
5592
5592
  async updateTask(id, data, applicationId, options) {
5593
5593
  return this.patch(this.withAppId(`/tasks/${id}`, applicationId), data, options);
5594
5594
  }
5595
+ async reorderTasks(projectId, taskIds, applicationId, options) {
5596
+ return this.post(
5597
+ this.withAppId(`/projects/${projectId}/tasks/reorder`, applicationId),
5598
+ { task_ids: taskIds },
5599
+ options
5600
+ );
5601
+ }
5595
5602
  // Lifecycle (use registry agent_id)
5596
5603
  async claimNext(agentId, applicationId, options) {
5597
5604
  const result = await this.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Official TypeScript/JavaScript SDK for ScaleMule Backend-as-a-Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",