Skip to content

Feat: update frontify api module#43

Merged
d-klotz merged 1 commit intonextfrom
feat/update-frontify-api-module
Aug 8, 2025
Merged

Feat: update frontify api module#43
d-klotz merged 1 commit intonextfrom
feat/update-frontify-api-module

Conversation

@d-klotz
Copy link
Contributor

@d-klotz d-klotz commented Aug 8, 2025

This pull requests added new methods for retrieving and setting custom metadata fields from Frontify in the Frontify api-module.

Version

Published prerelease version: @friggframework/api-module-frontify@2.0.0-next.9

Changelog

🚀 Enhancement

  • @friggframework/api-module-frontify
  • @friggframework/api-module-microsoft-teams, @friggframework/api-module-slack, @friggframework/api-module-42matters, @friggframework/api-module-asana, @friggframework/api-module-attio, @friggframework/api-module-connectwise, @friggframework/api-module-contentful, @friggframework/api-module-contentstack, @friggframework/api-module-crossbeam, @friggframework/api-module-deel, @friggframework/api-module-frontify, @friggframework/api-module-google-calendar, @friggframework/api-module-google-drive, @friggframework/api-module-helpscout, @friggframework/api-module-hubspot, @friggframework/api-module-ironclad, @friggframework/api-module-linear, @friggframework/api-module-salesforce, @friggframework/api-module-stripe, @friggframework/api-module-unbabel-projects, @friggframework/api-module-unbabel, @friggframework/api-module-zoho-crm, @friggframework/api-module-zoom

Authors: 2

- Updated `getMetadataFields` method to retrieve custom metadata properties.
- Introduced `setAssetCustomMetadata` method for setting or updating custom metadata values on assets.
- Improved type mapping for custom metadata properties.
@d-klotz d-klotz requested a review from seanspeaks August 8, 2025 21:16
@d-klotz d-klotz added the release label Aug 8, 2025
Comment on lines +874 to +879
if (Array.isArray(e.value)) {
const values = e.value
.map((v) => normalizeValue(v))
.filter((v) => v !== null)
.join(', ');
return `{ propertyId: "${e.propertyId}", values: [ ${values} ] }`;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The array handling in this code has a potential issue with GraphQL syntax. When joining normalized values with commas, string values aren't properly quoted in the resulting GraphQL query. For example, if e.value contains ["apple", "orange"], the current implementation would produce something like:

{ propertyId: "123", values: [ "apple", "orange" ] }

But GraphQL requires each string value to be individually quoted:

{ propertyId: "123", values: [ "apple", "orange" ] }

Consider modifying the array handling to ensure proper GraphQL syntax for all value types, particularly for arrays of strings.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor

@seanspeaks seanspeaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d-klotz d-klotz merged commit 7326d29 into next Aug 8, 2025
4 checks passed
@d-klotz d-klotz deleted the feat/update-frontify-api-module branch August 8, 2025 21:23
@seanspeaks
Copy link
Contributor

🚀 PR was released in @friggframework/api-module-frontify@2.0.0-next.9 🚀

@seanspeaks seanspeaks added the prerelease This change is available in a prerelease. label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prerelease This change is available in a prerelease. release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants