diff --git a/lib/seam/routes/clients/action_attempts.rb b/lib/seam/routes/clients/action_attempts.rb index b9d44d1..7a3119b 100644 --- a/lib/seam/routes/clients/action_attempts.rb +++ b/lib/seam/routes/clients/action_attempts.rb @@ -18,8 +18,8 @@ def get(action_attempt_id:, wait_for_action_attempt: nil) Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt) end - def list(action_attempt_ids:) - res = @client.post("/action_attempts/list", {action_attempt_ids: action_attempt_ids}.compact) + def list(action_attempt_ids: nil, device_id: nil, limit: nil, page_cursor: nil) + res = @client.post("/action_attempts/list", {action_attempt_ids: action_attempt_ids, device_id: device_id, limit: limit, page_cursor: page_cursor}.compact) Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempts"]) end diff --git a/lib/seam/routes/clients/events.rb b/lib/seam/routes/clients/events.rb index 69eca1a..37aeca1 100644 --- a/lib/seam/routes/clients/events.rb +++ b/lib/seam/routes/clients/events.rb @@ -14,8 +14,8 @@ def get(device_id: nil, event_id: nil, event_type: nil) Seam::Resources::SeamEvent.load_from_response(res.body["event"]) end - def list(access_code_id: nil, access_code_ids: nil, acs_system_id: nil, acs_system_ids: nil, between: nil, connect_webview_id: nil, connected_account_id: nil, customer_key: nil, device_id: nil, device_ids: nil, event_ids: nil, event_type: nil, event_types: nil, limit: nil, since: nil, unstable_offset: nil) - res = @client.post("/events/list", {access_code_id: access_code_id, access_code_ids: access_code_ids, acs_system_id: acs_system_id, acs_system_ids: acs_system_ids, between: between, connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, customer_key: customer_key, device_id: device_id, device_ids: device_ids, event_ids: event_ids, event_type: event_type, event_types: event_types, limit: limit, since: since, unstable_offset: unstable_offset}.compact) + def list(access_code_id: nil, access_code_ids: nil, acs_entrance_id: nil, acs_system_id: nil, acs_system_ids: nil, acs_user_id: nil, between: nil, connect_webview_id: nil, connected_account_id: nil, customer_key: nil, device_id: nil, device_ids: nil, event_ids: nil, event_type: nil, event_types: nil, limit: nil, since: nil, unstable_offset: nil, user_identity_id: nil) + res = @client.post("/events/list", {access_code_id: access_code_id, access_code_ids: access_code_ids, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, acs_system_ids: acs_system_ids, acs_user_id: acs_user_id, between: between, connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, customer_key: customer_key, device_id: device_id, device_ids: device_ids, event_ids: event_ids, event_type: event_type, event_types: event_types, limit: limit, since: since, unstable_offset: unstable_offset, user_identity_id: user_identity_id}.compact) Seam::Resources::SeamEvent.load_from_response(res.body["events"]) end diff --git a/package-lock.json b/package-lock.json index 4431e68..ba3d3b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.6", - "@seamapi/types": "1.673.0", + "@seamapi/types": "1.677.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -536,9 +536,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.673.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.673.0.tgz", - "integrity": "sha512-OnqrVBIr1qgw1s7ZA9jQNbt/tV21fUmFx6aOZ2bjI6byUE0vJm7xDDLB4MTCAAUZRefXXi8xyhq2K5zs+8oXgQ==", + "version": "1.677.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.677.0.tgz", + "integrity": "sha512-TbYg+vUgphu8jNNgksjWOHvc1HXEx3vHyx7eTzDaECvjp+RlCsdES0EFgGJ535CsVUxlxfhg+fMlqiQPupPYDw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 6f7bb38..ef5b49e 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.85.1", "@seamapi/nextlove-sdk-generator": "^1.19.6", - "@seamapi/types": "1.673.0", + "@seamapi/types": "1.677.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"