Skip to content

Conversation

@jpausa
Copy link

@jpausa jpausa commented Dec 17, 2025

New Export/Import Scripts for CommerceTools and Bluestone PIM

What's new:
CommerceTools Custom Types
export-custom-types.ts - Exports all custom types to JSON
import-custom-types.ts - Imports custom types (non-destructive, additive-only)

Bluestone PIM Attributes
export-attributes.ts - Exports all attribute definitions to JSON
import-attributes.ts - Imports attributes and groups (non-destructive, additive-only)

Key features:

  • Safe, incremental sync - only adds missing fields/attributes, never deletes existing ones
  • Interactive preview before import with confirmation prompt
  • Automatic group creation and attribute assignment for Bluestone
  • Handles API pagination and 409 conflict responses gracefully
  • Supports large data exports with optimized file writing

Supporting changes:

  • New Bluestone TypeScript types (bluestone.types.ts)
  • Utility modules: attribute-mapper.ts, group-manager.ts, import-orchestrator.ts
  • Updated Bluestone client with pagination and OAuth2 authentication
  • Fixed husky pre-commit hook to use npx lint-staged

Documentation was generated with AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant