{"id":19622184,"url":"https://github.com/commercetools/cofe-ct-b2b-ecommerce","last_synced_at":"2026-01-02T01:15:50.375Z","repository":{"id":65929579,"uuid":"602251597","full_name":"commercetools/cofe-ct-b2b-ecommerce","owner":"commercetools","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T23:20:41.000Z","size":457,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":34,"default_branch":"main","last_synced_at":"2025-08-28T19:03:32.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commercetools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-15T20:17:03.000Z","updated_at":"2024-03-19T11:54:56.000Z","dependencies_parsed_at":"2023-11-09T14:26:53.957Z","dependency_job_id":"d2e248ba-605b-444c-a06b-44e56df98a67","html_url":"https://github.com/commercetools/cofe-ct-b2b-ecommerce","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.019607843137254943","last_synced_commit":"c21c1285ecd02ebea7d797e9dee82c6c84b2d5a0"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/commercetools/cofe-ct-b2b-ecommerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcofe-ct-b2b-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcofe-ct-b2b-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcofe-ct-b2b-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcofe-ct-b2b-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercetools","download_url":"https://codeload.github.com/commercetools/cofe-ct-b2b-ecommerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcofe-ct-b2b-ecommerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275348306,"owners_count":25448628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:26:28.754Z","updated_at":"2025-09-16T01:31:26.895Z","avatar_url":"https://github.com/commercetools.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoFe B2B extensions\n\n## NOTE:\nThis is **NOT** an official B2B extension code and **NOT** production ready. Use it at your own risk\n\n## Installation\n```\nyarn add cofe-ct-ecommerce cofe-ct-b2b-ecommerce\n```\n## How to use it\nIn order to use B2B extensions, edit `commerce-commercetools/index.ts`\n```\nimport { QuoteAction, AssociateAction, AccountAction, ... } from 'cofe-ct-b2b-ecommerce';\n\nexport default {\n    ...\n    actions: {\n        account: AccountAction,\n        quote: QuoteAction,\n    ...\n    }\n}\n```\n\n## How to extend\n### Action\nIf you plan to extend the login method in the `AccountAction`, create the file `AccountController.ts`\n```\n// this line has to be the first line at the top\nexport * from 'cofe-ct-b2b-ecommerce/actionControllers/AccountController';\nimport { Request, Response } from '@frontastic/extension-types';\n...\n\nexport const login: ActionHook = async (request: Request, actionContext: ActionContext) =\u003e {\n    // implement you code here\n}\n```\n### API\nIf you plan to extend createCart endpoint in Cart, create a file `CartApi.ts`\n```\n// your imports\nimport { CartApi as B2BCartApi } from 'cofe-ct-b2b-ecommerce/apis/CartApi';\n\nexport class CartApi extends B2BCartApi {\n    createCart: (...args) =\u003e Cart {\n        // your implementation\n    }\n}\n```\n\n## Configuration\n### project configuration schema\n```\n{\n  \"schema\": [\n    {\n      \"name\": \"B2B configuration\",\n      \"fields\": [\n        {\n          \"label\": \"Default admin role key\",\n          \"field\": \"EXTENSION_B2B_DEFAULT_ADMIN_ROLE\",\n          \"type\": \"string\",\n          \"translatable\": false,\n          \"required\": true\n        },\n        {\n          \"label\": \"Default buyer role key\",\n          \"field\": \"EXTENSION_B2B_DEFAULT_BUYER_ROLE\",\n          \"type\": \"string\",\n          \"translatable\": false,\n          \"required\": true\n        },\n        {\n          \"label\": \"Default superuser role key\",\n          \"field\": \"EXTENSION_B2B_DEFAULT_SUPERUSER_ROLE\",\n          \"type\": \"string\",\n          \"translatable\": false,\n          \"required\": true\n        },\n        {\n          \"label\": \"Wishlist sharing custom type\",\n          \"field\": \"EXTENSION_B2B_WISHLIST_SHARING_CUSTOM_TYPE\",\n          \"type\": \"string\",\n          \"translatable\": false,\n          \"required\": false\n        },\n        {\n          \"label\": \"Wishlist sharing custom field\",\n          \"field\": \"EXTENSION_B2B_WISHLIST_SHARING_CUSTOM_FIELD\",\n          \"type\": \"string\",\n          \"translatable\": false,\n          \"required\": false\n        },\n      ]\n    }\n  ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fcofe-ct-b2b-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercetools%2Fcofe-ct-b2b-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fcofe-ct-b2b-ecommerce/lists"}