-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(business-unit): fixes for business units (#202)
- updated sdk - added better business-unit handling - added approval rule mode updating
- Loading branch information
1 parent
48e6236
commit 8737a6a
Showing
17 changed files
with
173 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@labdigital/commercetools-mock": minor | ||
--- | ||
|
||
Fixed issues with business units, updated sdk to latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { | ||
ProductTailoring, | ||
ProductTailoringUpdateAction, | ||
} from "@commercetools/platform-sdk"; | ||
import { AbstractStorage } from "~src/storage"; | ||
import { | ||
AbstractResourceRepository, | ||
AbstractUpdateHandler, | ||
RepositoryContext, | ||
UpdateHandlerInterface, | ||
} from "./abstract"; | ||
|
||
export class ProductTailoringRepository extends AbstractResourceRepository<"product-tailoring"> { | ||
constructor(storage: AbstractStorage) { | ||
super("product-tailoring", storage); | ||
this.actions = new ProductTailoringUpdateHandler(this._storage); | ||
} | ||
|
||
create(context: RepositoryContext, draft: any): ProductTailoring { | ||
throw new Error("Create method for product-tailoring not implemented."); | ||
} | ||
} | ||
|
||
class ProductTailoringUpdateHandler | ||
extends AbstractUpdateHandler | ||
implements | ||
Partial< | ||
UpdateHandlerInterface<ProductTailoring, ProductTailoringUpdateAction> | ||
> | ||
{ | ||
setSlug() { | ||
throw new Error("SetSlug method for product-tailoring not implemented."); | ||
} | ||
} |
Oops, something went wrong.