Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(client-sdk): Refactor SDK Dependencies #80

Merged
merged 15 commits into from
Jul 29, 2021

Conversation

ajimae
Copy link
Contributor

@ajimae ajimae commented Jun 11, 2021

What does this PR do
Refactor all package dependencies into a client packages

What are the tasks to be completed

  • Merge auth-middleware package into sdk-client package
  • Merge http-middleware into sdk-client package
  • Clean up entire import and compress all exports to a single entry point

How can this be manually tested

  • Pull the remote develop branch and install all required dependencies
  • Create an sdk-client (e.g sdk-client) using the necessary middleware (auth and http middleware).
  • Alternatively, you can switch directory into sdk-client package and run yarn test

TODO:

  • Remove // @ts-nocheck from the all files
  • Improve test coverage
  • Fix failing test on Circle-Ci

Any background context
This is in no way a finished feature, it is still a work in progress.

Issue ID
Github Issue

Screenshots
None

@ajimae ajimae added the WIP label Jun 11, 2021
@ajimae ajimae requested a review from a team June 11, 2021 04:38
@ajimae ajimae self-assigned this Jun 11, 2021
@ajimae ajimae force-pushed the chore/refactor-into-single-package branch from 1dbe0cf to fef8a4a Compare June 16, 2021 08:27
@ajimae ajimae requested a review from jenschude June 24, 2021 14:37
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code
@ajimae ajimae force-pushed the chore/refactor-into-single-package branch from c071a2c to c1efa55 Compare June 26, 2021 19:52
@ajimae ajimae marked this pull request as draft June 29, 2021 09:01
@ajimae ajimae linked an issue Jun 29, 2021 that may be closed by this pull request
3 tasks
@ajimae ajimae force-pushed the chore/refactor-into-single-package branch from 735f1bb to be9fe5a Compare July 7, 2021 04:29
@ajimae ajimae removed request for a team and jenschude July 9, 2021 10:22
@ajimae ajimae force-pushed the chore/refactor-into-single-package branch from bd87262 to ce09710 Compare July 13, 2021 16:05
@ajimae ajimae force-pushed the chore/refactor-into-single-package branch from 0d6e9b3 to 5ef9363 Compare July 13, 2021 16:28
…ient package

- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks
@ajimae ajimae requested a review from jenschude July 20, 2021 13:26
@ajimae ajimae marked this pull request as ready for review July 21, 2021 09:12
@ajimae ajimae removed the WIP label Jul 25, 2021
refactor ClientBuilder to return the client only
@ajimae ajimae merged commit 075176a into develop Jul 29, 2021
@ajimae ajimae deleted the chore/refactor-into-single-package branch July 29, 2021 14:01
ajimae added a commit that referenced this pull request Aug 13, 2021
* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>
ajimae added a commit that referenced this pull request Aug 19, 2021
* Update generated SDKs (#68)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.15.0
 - @commercetools/importapi-sdk@1.15.0
 - @commercetools/ml-sdk@1.15.0
 - @commercetools/platform-sdk@1.15.0

* Update generated SDKs (#82)

* TASK: Updating Platform SDK

* Adding Generated Request builder unit tests (#83)

* improvement: Adding Generated unit tests of Request builders

* Update generated SDKs (#84)

* TASK: Updating Platform SDK
* Adding unit test for the request builders

* chore(release): releasing component

 - @commercetools/history-sdk@1.16.0
 - @commercetools/importapi-sdk@1.16.0
 - @commercetools/ml-sdk@1.16.0
 - @commercetools/platform-sdk@1.16.0

* Update generated SDKs (#86)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.17.0
 - @commercetools/importapi-sdk@1.17.0
 - @commercetools/ml-sdk@1.17.0
 - @commercetools/platform-sdk@1.17.0

* chore: setup changesets and release workflow (#91)

* chore: setup changesets and release workflow

* docs: update readmes

* chore(ci): use yarn cache

* Version Packages (#92)

* ci(changesets): version packages

* chore: regenerate lockfile

* fix(ci): build platform-sdk before running tests

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* Update generated SDKs (#94)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* Create metal-bees-type.md

Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>

* Improve monorepo setup and tooling (#93)

* chore: improve monorepo setup and tools to develop and build packages

* chore(ci): use node 14

* docs: add contributing and update readme

* docs: changeset

* fix: command

* chore(ci): also build packages

* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* chore(preconstruct): rebase the develop on master branch and include preconstruct

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Michele George <michele.george@commercetools.de>
Co-authored-by: Michele George <30607195+MicheleRezk@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
Co-authored-by: CT Release Bot <24736072+ct-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
Co-authored-by: Jens Schulze <jenschude@gmail.com>
ajimae added a commit that referenced this pull request Aug 25, 2021
* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>
ajimae added a commit that referenced this pull request Aug 25, 2021
* Update generated SDKs (#68)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.15.0
 - @commercetools/importapi-sdk@1.15.0
 - @commercetools/ml-sdk@1.15.0
 - @commercetools/platform-sdk@1.15.0

* Update generated SDKs (#82)

* TASK: Updating Platform SDK

* Adding Generated Request builder unit tests (#83)

* improvement: Adding Generated unit tests of Request builders

* Update generated SDKs (#84)

* TASK: Updating Platform SDK
* Adding unit test for the request builders

* chore(release): releasing component

 - @commercetools/history-sdk@1.16.0
 - @commercetools/importapi-sdk@1.16.0
 - @commercetools/ml-sdk@1.16.0
 - @commercetools/platform-sdk@1.16.0

* Update generated SDKs (#86)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.17.0
 - @commercetools/importapi-sdk@1.17.0
 - @commercetools/ml-sdk@1.17.0
 - @commercetools/platform-sdk@1.17.0

* chore: setup changesets and release workflow (#91)

* chore: setup changesets and release workflow

* docs: update readmes

* chore(ci): use yarn cache

* Version Packages (#92)

* ci(changesets): version packages

* chore: regenerate lockfile

* fix(ci): build platform-sdk before running tests

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* Update generated SDKs (#94)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* Create metal-bees-type.md

Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>

* Improve monorepo setup and tooling (#93)

* chore: improve monorepo setup and tools to develop and build packages

* chore(ci): use node 14

* docs: add contributing and update readme

* docs: changeset

* fix: command

* chore(ci): also build packages

* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* chore(preconstruct): rebase the develop on master branch and include preconstruct

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Michele George <michele.george@commercetools.de>
Co-authored-by: Michele George <30607195+MicheleRezk@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
Co-authored-by: CT Release Bot <24736072+ct-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
Co-authored-by: Jens Schulze <jenschude@gmail.com>
ajimae added a commit that referenced this pull request Aug 31, 2021
* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* Rebase on Master add Preconstruct Cli Tool (#96)

* Update generated SDKs (#68)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.15.0
 - @commercetools/importapi-sdk@1.15.0
 - @commercetools/ml-sdk@1.15.0
 - @commercetools/platform-sdk@1.15.0

* Update generated SDKs (#82)

* TASK: Updating Platform SDK

* Adding Generated Request builder unit tests (#83)

* improvement: Adding Generated unit tests of Request builders

* Update generated SDKs (#84)

* TASK: Updating Platform SDK
* Adding unit test for the request builders

* chore(release): releasing component

 - @commercetools/history-sdk@1.16.0
 - @commercetools/importapi-sdk@1.16.0
 - @commercetools/ml-sdk@1.16.0
 - @commercetools/platform-sdk@1.16.0

* Update generated SDKs (#86)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.17.0
 - @commercetools/importapi-sdk@1.17.0
 - @commercetools/ml-sdk@1.17.0
 - @commercetools/platform-sdk@1.17.0

* chore: setup changesets and release workflow (#91)

* chore: setup changesets and release workflow

* docs: update readmes

* chore(ci): use yarn cache

* Version Packages (#92)

* ci(changesets): version packages

* chore: regenerate lockfile

* fix(ci): build platform-sdk before running tests

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* Update generated SDKs (#94)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* Create metal-bees-type.md

Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>

* Improve monorepo setup and tooling (#93)

* chore: improve monorepo setup and tools to develop and build packages

* chore(ci): use node 14

* docs: add contributing and update readme

* docs: changeset

* fix: command

* chore(ci): also build packages

* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* chore(preconstruct): rebase the develop on master branch and include preconstruct

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Michele George <michele.george@commercetools.de>
Co-authored-by: Michele George <30607195+MicheleRezk@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
Co-authored-by: CT Release Bot <24736072+ct-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
Co-authored-by: Jens Schulze <jenschude@gmail.com>

* chore(sdk-client-v2): final package cleanup and refactor (#104)

* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* Rebase on Master add Preconstruct Cli Tool (#96)

* Update generated SDKs (#68)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.15.0
 - @commercetools/importapi-sdk@1.15.0
 - @commercetools/ml-sdk@1.15.0
 - @commercetools/platform-sdk@1.15.0

* Update generated SDKs (#82)

* TASK: Updating Platform SDK

* Adding Generated Request builder unit tests (#83)

* improvement: Adding Generated unit tests of Request builders

* Update generated SDKs (#84)

* TASK: Updating Platform SDK
* Adding unit test for the request builders

* chore(release): releasing component

 - @commercetools/history-sdk@1.16.0
 - @commercetools/importapi-sdk@1.16.0
 - @commercetools/ml-sdk@1.16.0
 - @commercetools/platform-sdk@1.16.0

* Update generated SDKs (#86)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

Co-authored-by: Auto Mation <automation@commercetools.com>

* chore(release): releasing component

 - @commercetools/history-sdk@1.17.0
 - @commercetools/importapi-sdk@1.17.0
 - @commercetools/ml-sdk@1.17.0
 - @commercetools/platform-sdk@1.17.0

* chore: setup changesets and release workflow (#91)

* chore: setup changesets and release workflow

* docs: update readmes

* chore(ci): use yarn cache

* Version Packages (#92)

* ci(changesets): version packages

* chore: regenerate lockfile

* fix(ci): build platform-sdk before running tests

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* Update generated SDKs (#94)

* TASK: Updating Platform SDK

* TASK: Updating Platform SDK

* Create metal-bees-type.md

Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>

* Improve monorepo setup and tooling (#93)

* chore: improve monorepo setup and tools to develop and build packages

* chore(ci): use node 14

* docs: add contributing and update readme

* docs: changeset

* fix: command

* chore(ci): also build packages

* feat(sdk-client): build the typescript sdk-client

* feat(sdk-middleware-auth): build out the sdk middleware auth

* feat(middleware-http): add the http middleware for the clent-sdk

* feat(typescript-client-sdk): build typescript sdk client
- add typescript client
- add auth middleware
- add http middleware
- include test coverage report

* chore(test): increase the timeout for time consuming tests in ml package

* Chore(client-sdk): Refactor SDK Dependencies (#80)

* chore(client-sdk): refactor as dependencies into a single client package

* chore(middleware): abstract all middleware builder functions
- refactor code to abstract the auth middleware
- refactor code to abstract the http middleware
- write test for the new refactored code

* chore(tests): debug tests to isolate issues causing circleci to fail

* debugging circleci

* debugging circleci error

* debugging circleci error

* debugging circleci errors

* chore(tsconfig): use existing tsconfig.json configurations from existing (history) package

* fix OOM issue on cicleci

* chore(sdk-client): refactor entire all middleware package into sdk-client package
- add a builder class
- add all sdk-middleware
- remove unwanted comments and code blocks

* chore(auth-middlewares): add other authentication middlewares methods to the build class

* refactor middleware order and auth methods

* refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder

refactor ClientBuilder to return the client only

* rewrite tests to conform with new ClientBuilder class

* chore(client-builder): remove the private identifier from the withMiddleware method.

Co-authored-by: Jens Schulze <jenschude@gmail.com>

* fix(usr-agent): fix user agent to conform with the new format (#87)

* chore(preconstruct): rebase the develop on master branch and include preconstruct

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Michele George <michele.george@commercetools.de>
Co-authored-by: Michele George <30607195+MicheleRezk@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
Co-authored-by: CT Release Bot <24736072+ct-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
Co-authored-by: Jens Schulze <jenschude@gmail.com>

* chore(sdk-client-v2): final package cleanup and refactor (#104)

* fix(develop): fix all merge conflicts on develop

* chore(sdk-client): implement feedback
- rename builder to client-builder
- remove abortController property and fix http test
- add changeset for package release
- change sdk-client version to 0.0.1

Co-authored-by: Jens Schulze <jenschude@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Auto Mation <automation@commercetools.com>
Co-authored-by: Michele George <michele.george@commercetools.de>
Co-authored-by: Michele George <30607195+MicheleRezk@users.noreply.github.com>
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
Co-authored-by: CT Release Bot <24736072+ct-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
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.

[31st July] Write new TypeScript SDK Client
2 participants