diff --git a/lib/seam/routes/clients/access_codes.rb b/lib/seam/routes/clients/access_codes.rb index 7893ea7..9120018 100644 --- a/lib/seam/routes/clients/access_codes.rb +++ b/lib/seam/routes/clients/access_codes.rb @@ -46,8 +46,8 @@ def get(access_code_id: nil, code: nil, device_id: nil) Seam::Resources::AccessCode.load_from_response(res.body["access_code"]) end - def list(access_code_ids: nil, access_method_id: nil, customer_key: nil, device_id: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil) - res = @client.post("/access_codes/list", {access_code_ids: access_code_ids, access_method_id: access_method_id, customer_key: customer_key, device_id: device_id, limit: limit, page_cursor: page_cursor, search: search, user_identifier_key: user_identifier_key}.compact) + def list(access_code_ids: nil, access_grant_id: nil, access_method_id: nil, customer_key: nil, device_id: nil, limit: nil, page_cursor: nil, search: nil, user_identifier_key: nil) + res = @client.post("/access_codes/list", {access_code_ids: access_code_ids, access_grant_id: access_grant_id, access_method_id: access_method_id, customer_key: customer_key, device_id: device_id, limit: limit, page_cursor: page_cursor, search: search, user_identifier_key: user_identifier_key}.compact) Seam::Resources::AccessCode.load_from_response(res.body["access_codes"]) end diff --git a/lib/seam/routes/clients/access_grants.rb b/lib/seam/routes/clients/access_grants.rb index e24a44c..a0e5e2b 100644 --- a/lib/seam/routes/clients/access_grants.rb +++ b/lib/seam/routes/clients/access_grants.rb @@ -36,8 +36,8 @@ def get_related(access_grant_ids: nil, access_grant_keys: nil, exclude: nil, inc Seam::Resources::Batch.load_from_response(res.body["batch"]) end - def list(access_grant_ids: nil, access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, limit: nil, location_id: nil, page_cursor: nil, reservation_key: nil, space_id: nil, user_identity_id: nil) - res = @client.post("/access_grants/list", {access_grant_ids: access_grant_ids, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, limit: limit, location_id: location_id, page_cursor: page_cursor, reservation_key: reservation_key, space_id: space_id, user_identity_id: user_identity_id}.compact) + def list(access_code_id: nil, access_grant_ids: nil, access_grant_key: nil, acs_entrance_id: nil, acs_system_id: nil, customer_key: nil, limit: nil, location_id: nil, page_cursor: nil, reservation_key: nil, space_id: nil, user_identity_id: nil) + res = @client.post("/access_grants/list", {access_code_id: access_code_id, access_grant_ids: access_grant_ids, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, acs_system_id: acs_system_id, customer_key: customer_key, limit: limit, location_id: location_id, page_cursor: page_cursor, reservation_key: reservation_key, space_id: space_id, user_identity_id: user_identity_id}.compact) Seam::Resources::AccessGrant.load_from_response(res.body["access_grants"]) end diff --git a/lib/seam/routes/clients/access_methods.rb b/lib/seam/routes/clients/access_methods.rb index 56c3787..9557b47 100644 --- a/lib/seam/routes/clients/access_methods.rb +++ b/lib/seam/routes/clients/access_methods.rb @@ -40,8 +40,8 @@ def get_related(access_method_ids:, exclude: nil, include: nil) Seam::Resources::Batch.load_from_response(res.body["batch"]) end - def list(access_grant_id: nil, access_grant_key: nil, acs_entrance_id: nil, device_id: nil, space_id: nil) - res = @client.post("/access_methods/list", {access_grant_id: access_grant_id, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, device_id: device_id, space_id: space_id}.compact) + def list(access_code_id: nil, access_grant_id: nil, access_grant_key: nil, acs_entrance_id: nil, device_id: nil, space_id: nil) + res = @client.post("/access_methods/list", {access_code_id: access_code_id, access_grant_id: access_grant_id, access_grant_key: access_grant_key, acs_entrance_id: acs_entrance_id, device_id: device_id, space_id: space_id}.compact) Seam::Resources::AccessMethod.load_from_response(res.body["access_methods"]) end diff --git a/package-lock.json b/package-lock.json index 6e1bf77..f1e208a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.783.0", + "@seamapi/types": "1.785.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -536,9 +536,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.783.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.783.0.tgz", - "integrity": "sha512-lDcuQwLtVSoAEE7p2UJYdVJ8w3NdHeD/3LEjtjTQizfd1lClpOtakpSMcblT7NfPgPLWMpCy5DTLu235hLkleA==", + "version": "1.785.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.785.0.tgz", + "integrity": "sha512-TIgTqdahRXW/WnKtK2+fj3y73hfADC3kPcViA4LRnwtvpkihO/LqmysFmdlazweCMDcjQtvmRf8vIP28Q8BppA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 245cf6c..23c8f0b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.783.0", + "@seamapi/types": "1.785.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"