diff --git a/codegen/data/resource-sample-definitions/all-resources.yaml b/codegen/data/resource-sample-definitions/all-resources.yaml index 431ead80a..70ec5c57c 100644 --- a/codegen/data/resource-sample-definitions/all-resources.yaml +++ b/codegen/data/resource-sample-definitions/all-resources.yaml @@ -598,11 +598,10 @@ supports_offline_access_codes: false warnings: [] workspace_id: 5d7f2e1a-9c8b-4f3e-8d2c-1a0b9e8f7c6d -- title: Magic Link - description: A magic link resource. - resource_type: magic_link +- title: Customer Portal + description: A customer portal resource. + resource_type: customer_portal properties: - building_block_type: connect_accounts created_at: '2025-06-16T16:54:17.946594Z' customer_key: My Company expires_at: '2025-06-17T16:54:17.946594Z' diff --git a/docs/guides/capability-guides/customer-portals/filtering-portal-resources-by-custom-metadata.md b/docs/guides/capability-guides/customer-portals/filtering-portal-resources-by-custom-metadata.md index c526f0ecb..cff33e2db 100644 --- a/docs/guides/capability-guides/customer-portals/filtering-portal-resources-by-custom-metadata.md +++ b/docs/guides/capability-guides/customer-portals/filtering-portal-resources-by-custom-metadata.md @@ -49,7 +49,7 @@ Create property listings with a `region` field in `custom_metadata`, then filter {% tabs %} {% tab title="JavaScript" %} ```javascript -const { magic_link } = await seam.customers.createPortal({ +const { customer_portal } = await seam.customers.createPortal({ customer_data: { customer_key: "customer_123", property_listings: [ @@ -71,7 +71,7 @@ const { magic_link } = await seam.customers.createPortal({ }); // The portal will only show "Lisbon Apartment" -console.log(magic_link.url); +console.log(customer_portal.url); ``` {% endtab %} @@ -112,7 +112,7 @@ When you provide multiple filters, a resource must match all of them. Here, only {% tabs %} {% tab title="JavaScript" %} ```javascript -const { magic_link } = await seam.customers.createPortal({ +const { customer_portal } = await seam.customers.createPortal({ customer_data: { customer_key: "customer_123", property_listings: [ @@ -140,7 +140,7 @@ const { magic_link } = await seam.customers.createPortal({ }); // Only "Premium Villa" is visible in the portal -console.log(magic_link.url); +console.log(customer_portal.url); ``` {% endtab %} @@ -187,7 +187,7 @@ Filter by a boolean `custom_metadata` value, such as showing only premium listin {% tabs %} {% tab title="JavaScript" %} ```javascript -const { magic_link } = await seam.customers.createPortal({ +const { customer_portal } = await seam.customers.createPortal({ customer_data: { customer_key: "customer_123", property_listings: [ @@ -209,7 +209,7 @@ const { magic_link } = await seam.customers.createPortal({ }); // Only "Premium Villa" is visible -console.log(magic_link.url); +console.log(customer_portal.url); ``` {% endtab %} @@ -250,7 +250,7 @@ Filters also apply to reservations. Here, only reservations that are both premiu {% tabs %} {% tab title="JavaScript" %} ```javascript -const { magic_link } = await seam.customers.createPortal({ +const { customer_portal } = await seam.customers.createPortal({ customer_data: { customer_key: "customer_123", property_listings: [ @@ -287,7 +287,7 @@ const { magic_link } = await seam.customers.createPortal({ }); // Only "Premium EU Reservation" is visible in the portal -console.log(magic_link.url); +console.log(customer_portal.url); ``` {% endtab %} diff --git a/docs/guides/capability-guides/customer-portals/integrate-customer-portal-into-your-application.md b/docs/guides/capability-guides/customer-portals/integrate-customer-portal-into-your-application.md index 00454bfbd..1dcc1db32 100644 --- a/docs/guides/capability-guides/customer-portals/integrate-customer-portal-into-your-application.md +++ b/docs/guides/capability-guides/customer-portals/integrate-customer-portal-into-your-application.md @@ -56,7 +56,7 @@ The Seam Customer Portal is a hosted, pre-authenticated interface for managing d ### How it works -When you create a customer portal via the API, Seam returns a `magic_link` URL. This URL can be loaded in a standard HTML ` ``` -In practice, your backend generates the `magic_link.url` and passes it to your frontend, which sets it as the iFrame `src`. Don't hardcode the URL — it contains a session token that expires. +In practice, your backend generates the `customer_portal.url` and passes it to your frontend, which sets it as the iFrame `src`. Don't hardcode the URL — it contains a session token that expires. ### Step 3: Refresh the link before it expires diff --git a/package-lock.json b/package-lock.json index 35c3bd2e5..55828ce74 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,9 @@ "@metalsmith/metadata": "^0.3.0", "@prettier/plugin-php": "^0.24.0", "@prettier/plugin-ruby": "^4.0.4", - "@seamapi/blueprint": "^0.53.2", + "@seamapi/blueprint": "^0.55.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.803.0", + "@seamapi/types": "1.805.0", "@types/command-exists": "^1.2.3", "change-case": "^5.4.4", "command-exists": "^1.2.9", @@ -935,9 +935,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "0.53.2", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-0.53.2.tgz", - "integrity": "sha512-L991izMQpQGpwknIdPB1Y9tk70fXTycmLMspgELAQlR0N536WlQgj/cXpt8TIX37g/UNfHaPOrIWZindn66s+Q==", + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-0.55.0.tgz", + "integrity": "sha512-2Xk3XQ486WufuZ4ar7aP1XWQXaadg04x1VVjHGWrI1lMpSfWAeOTs8ol3EdRzI/NK6pUdIfgED86aH62KsyQ9w==", "dev": true, "license": "MIT", "dependencies": { @@ -983,9 +983,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.803.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.803.0.tgz", - "integrity": "sha512-dy35ew29Znc3bBz9vgosOa/Fb2mGAEapGEU9Ff5xl+HsWeRuwZzVNoZ3ffH8jJ9dIPOqmPM/BCDzrzEdH9cMuw==", + "version": "1.805.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.805.0.tgz", + "integrity": "sha512-G9STdKRht2qkUAp7jqQdH7U75N1UDUJspt/TnfRVaI0EO1GTWAjGd7NfVm28rsB8rkU9sN2M3fb6TBGUjfwfdA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 870dcd5a9..1af114cd7 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "@metalsmith/metadata": "^0.3.0", "@prettier/plugin-php": "^0.24.0", "@prettier/plugin-ruby": "^4.0.4", - "@seamapi/blueprint": "^0.53.2", + "@seamapi/blueprint": "^0.55.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.803.0", + "@seamapi/types": "1.805.0", "@types/command-exists": "^1.2.3", "change-case": "^5.4.4", "command-exists": "^1.2.9",