28 March 2023
GraphQLB2B
We fixed the Reference Expansion input types on Business Unit Messages to provide a consistent experience when working with the GraphQL API. Additionally, we updated the type
BusinessUnitConfiguration to align it with the HTTP API. We have also made the roles field optional on AssociateDraft in the HTTP and GraphQL API to allow creating Associates without having to assign roles.Changes:
- [API] Changed
rolesfield to be optional on AssociateDraft. - [GraphQL API] Changed the
AssociateDrafttype:AssociateDraft.rolesinput field type changed from[SimpleAssociateRole!]!to[SimpleAssociateRole!]
- [GraphQL API] Added the following types to the GraphQL schema:
BusinessUnitConfigurationStatus. - [GraphQL API] Changed the
BusinessUnitConfigurationtype:BusinessUnitConfiguration.myBusinessUnitStatusOnCreationfield type changed fromBusinessUnitStatus!toBusinessUnitConfigurationStatus!
- [GraphQL API] Changed the
BusinessUnitStoreAddedtype:BusinessUnitStoreAdded.storefield type changed fromKeyReference!toStore!- Added the
storeReffield to theBusinessUnitStoreAddedtype.
- [GraphQL API] Changed the
BusinessUnitStoresSettype:BusinessUnitStoresSet.storesfield type changed from[KeyReference!]!to[Store!]!- Added the
storesReffield to theBusinessUnitStoresSettype.
- [GraphQL API] Changed the
BusinessUnitStoreModeChangedtype:- Added the
oldStoresReffield to theBusinessUnitStoreModeChangedtype. - Added the
storesReffield to theBusinessUnitStoreModeChangedtype. BusinessUnitStoreModeChanged.storesfield type changed from[KeyReference!]to[Store!]BusinessUnitStoreModeChanged.oldStoresfield type changed from[KeyReference!]to[Store!]
- Added the
- [GraphQL API] Changed the
BusinessUnitParentChangedtype:- Added the
oldParentUnitReffield to theBusinessUnitParentChangedtype. - Added the
newParentUnitReffield to theBusinessUnitParentChangedtype. BusinessUnitParentChanged.newParentUnitfield type changed fromKeyReferencetoBusinessUnitBusinessUnitParentChanged.oldParentUnitfield type changed fromKeyReferencetoBusinessUnit
- Added the
- [GraphQL API] Changed the
ChangeProjectSettingsMyBusinessUnitStatusOnCreationtype:ChangeProjectSettingsMyBusinessUnitStatusOnCreation.statusinput field type changed fromBusinessUnitStatus!toBusinessUnitConfigurationStatus!
- [GraphQL API] Changed the
BusinessUnitStoreRemovedtype:BusinessUnitStoreRemoved.storefield type changed fromKeyReference!toStore!- Added the
storeReffield to theBusinessUnitStoreRemovedtype.
The following changes were introduced in terms of GraphQL SDL:
extend type BusinessUnitStoreAdded {
storeRef: KeyReference!
}
extend type BusinessUnitStoreModeChanged {
oldStoresRef: [KeyReference!]
storesRef: [KeyReference!]
}
extend type BusinessUnitParentChanged {
newParentUnitRef: KeyReference
oldParentUnitRef: KeyReference
}
extend type BusinessUnitStoreRemoved {
storeRef: KeyReference!
}
extend type BusinessUnitStoresSet {
storesRef: [KeyReference!]!
}
enum BusinessUnitStatusOnCreation {
Active
Inactive
}