Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@commercetools-test-data/business-unit
Advanced tools
Data models for commercetools API Business Unit
This package provides the data model for the commercetools platform BusinessUnit
representations
https://docs.commercetools.com/api/projects/business-units#representations
$ pnpm add -D @commercetools-test-data/business-unit
Company and Division are classified as distinct types of Business Units, and therefore share a common representation within the package.
The strategic separation of splitting them into separate models within this package aims to simplify both the test data itself, as well as their underlying distinctions.
import { CompanyDraft, DivisionDraft, type TBusinessUnitDraft } from from '@commercetools-test-data/business-unit';
const companyDraft = CompanyDraft.random().build<TBusinessUnitDraft>();
const divisionDraft = DivisionDraft.random().build<TBusinessUnitDraft>();
import { Associate, AssociateRoleAssignment, type TAssociateDefault, type TAssociateRoleAssignmentDefault } from from '@commercetools-test-data/business-unit';
const associate = Associate.random().build<TAssociateDefault>();
const associateRoleAssignment = AssociateRoleAssignment.random().build<TAssociateRoleAssignmentDefault>();
FAQs
Data models for commercetools API Business Unit
We found that @commercetools-test-data/business-unit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.