Commit Graph

2185 Commits

Author SHA1 Message Date
Shahed Nasser
c50e9aaeb6 docs: updated frontend checkout flow documentation
docs: updated frontend checkout flow documentation
2022-06-16 17:26:43 +03:00
Shahed Nasser
890fdacfdb Merge branch 'docs/checkout-flow' of https://github.com/medusajs/medusa into docs/checkout-flow 2022-06-16 17:07:02 +03:00
Shahed Nasser
b3abf02a21 updated frontend checkout flow 2022-06-16 17:06:53 +03:00
Shahed Nasser
d0c384cba1 Docs: added integration with Segment
Docs: added integration with Segment
2022-06-16 16:57:58 +03:00
Shahed Nasser
c6b857251a fix double segment 2022-06-16 16:00:07 +03:00
Shahed Nasser
f7161d7693 Merge branch 'docs/segment-integration' of https://github.com/medusajs/medusa into docs/segment-integration 2022-06-16 15:58:28 +03:00
Shahed Nasser
1af5a83e19 add segment for API reference 2022-06-16 15:57:15 +03:00
Shahed Nasser
8a3e4ba355 added integration 2022-06-16 15:55:50 +03:00
Shahed Nasser
50412fb52d docs: use npm2yarn plugin in MinIO doc
docs: use npm2yarn plugin in MinIO doc
2022-06-16 15:43:54 +03:00
Shahed Nasser
bf5f13a9e2 Merge branch 'docs/fix-minio' of https://github.com/medusajs/medusa into docs/fix-minio 2022-06-16 15:22:42 +03:00
Shahed Nasser
ef344bb255 Use npm2yarn where missing 2022-06-16 15:21:16 +03:00
Shahed Nasser
c0eda251f6 docs: disable running tests for docs
docs: disable running tests for docs
2022-06-16 15:17:31 +03:00
Shahed Nasser
6c3ea4b2d7 Merge branch 'master' of https://github.com/medusajs/medusa into fix/action-for-docs 2022-06-16 15:00:40 +03:00
Adrien de Peretti
453688682c feat(medusa): Support batch-job API (#1547)
* feat(medusa): Implement confirm batch job end point

* feat(medusa): Implement confirm batch-job end point

* feat(medusa): Add create batch job end point and implementation

* feat(medusa): remove cancelled related

* feat(medusa): Remove unrelated content for batch job creation

* feat(medusa): Cleanup migration

* feat(medusa): Cleanup context

* fix(medusa): Batch-job service import

* feat(medusa): Update migration

* test(medusa): Fix batch job tests

* feat(medusa): Start batch job end point

* feat(medusa): Continue end points

* feat(medusa): Continue end points

* feat(medusa): Finalize batch-job end points

* style(medusa): Lint

* feat(medusa): Cleanup

* feat(medusa): Fix list-batch-job endpoint column selection

* feat(medusa): Batch-job feedback

* feat(medusa): Update create-batch-job endpoint doc

* test(integration-tests): Fix batch-job integration reguarding the response status code

* feat(medusa): Finalize rebase from develop

* feat(medusa): Extend batch job status with ready_at and failed_at

* feat(medusa): Update migration and tests accordingly

* feat(medusa): Update status order on batchJob

* feat(medusa): Enhance batchJobService status update

* style(medusa): Cleanup

* style(medusa): Typo

* style(medusa): Remove unnecessary comment

* cleanup(medusa): Address feedback

* test(integration-tests): Update naming and snapshots

* fix(medusa): Update validator

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>

* Fix(medusa): update validator

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>

* test(intergration-tests): Fix creates batch job

* test(integration-tests): Fix snapshot

* feat(medusa): Re-work status

* tests(integration-tests): Fix batch job

* feat(medusa): Addresses feedback

* fix(medusa): Revert package.json script

* feat(medusa/batch-job-api): Improve status management

* feat(medusa): Improve batch job status and remove some context validation from the service

* feat(medusa): BatchJob api merge params

* feat(medusa): Apply last changes on the batch job service

* Update packages/medusa/src/services/batch-job.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* feat(medusa): BatchJobStrategy and loaders (#1434)

* add batch job strategy interface

* update plugin loaders

* remove comment

* make map async

* ensure that only one of each strategy is registered

* register strategies plural

* add identifier and batchType properties

* extend batch job strategy identification method

* initial test

* update loaders to accomodate different ways of accessing batch job strategies

* identifier batch type field

* redo merge in plugins

* update interface and load only js files

* use switches instead of elif

* remove comments

* use static properties for strategy registration

* update tests

* fix unit tests

* update test names

* update isBatchJobStrategy method

* add check for TransactionBaseService in services for plugins

* update interfaces export

* update batchjob strategy interface with a prepare script

* update loaders

* update batchjob strategy interface

* remove everything but public interface methods from batchJobStrategy

* add default implementation to prepareBathJobForProcessing

* remove unused import

* docs: Add Services reference (#1548)

* added events reference

* add upgrade guide for 1.3.0

* Update 1-3-0.md

* merge 1.3.0 with 1.3.1

* rename to 1.3.0

* added paypal documentation

* Improve storefront quickstart documents

* chore(deps): bump sqlite3 from 5.0.2 to 5.0.3 (#1453)

Bumps [sqlite3](https://github.com/TryGhost/node-sqlite3) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/TryGhost/node-sqlite3/releases)
- [Changelog](https://github.com/TryGhost/node-sqlite3/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TryGhost/node-sqlite3/compare/v5.0.2...v5.0.3)

* fix: Issue with cache in CI pipeline

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-16 13:57:18 +02:00
olivermrbl
ee9fb8324c Merge branch 'master' into develop 2022-06-16 13:25:45 +02:00
Oliver Windall Juhl
c9041d042e fix: Issue with cache in CI pipeline 2022-06-16 13:25:04 +02:00
olivermrbl
34f3d1c242 Merge branch 'master' into develop 2022-06-15 13:47:38 +02:00
dependabot[bot]
150fc4978f chore(deps): bump sqlite3 from 5.0.2 to 5.0.3 (#1453)
Bumps [sqlite3](https://github.com/TryGhost/node-sqlite3) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/TryGhost/node-sqlite3/releases)
- [Changelog](https://github.com/TryGhost/node-sqlite3/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TryGhost/node-sqlite3/compare/v5.0.2...v5.0.3)
2022-06-15 13:44:16 +02:00
Philip Korsholm
886dcbc82f feat(medusa): BatchJobStrategy and loaders (#1434)
* add batch job strategy interface

* update plugin loaders

* remove comment

* make map async

* ensure that only one of each strategy is registered

* register strategies plural

* add identifier and batchType properties

* extend batch job strategy identification method

* initial test

* update loaders to accomodate different ways of accessing batch job strategies

* identifier batch type field

* redo merge in plugins

* update interface and load only js files

* use switches instead of elif

* remove comments

* use static properties for strategy registration

* update tests

* fix unit tests

* update test names

* update isBatchJobStrategy method

* add check for TransactionBaseService in services for plugins

* update interfaces export

* update batchjob strategy interface with a prepare script

* update loaders

* update batchjob strategy interface

* remove everything but public interface methods from batchJobStrategy

* add default implementation to prepareBathJobForProcessing

* remove unused import
2022-06-15 10:46:55 +02:00
Sebastian Rindom
cffb03d197 fix(medusa): update cron schedule to be every 6 hours (#1658) 2022-06-14 14:52:27 +02:00
Sebastian Rindom
14366f536d fix: adds tax calculation to product pricing (#1354)
* fix: adds tax calculation to product pricing

* fix: dedupe

* fix: merge inconsistencies

* fix: merge inconsistencies
2022-06-14 10:11:18 +02:00
Shahed Nasser
7bfc224ca4 docs: Improve storefront quickstart documents
docs: Improve storefront quickstart documents
2022-06-14 10:40:50 +03:00
Shahed Nasser
a66babe9f1 docs: added PayPal documentation
docs: added PayPal documentation
2022-06-14 10:40:25 +03:00
Shahed Nasser
04079b86a8 Merge branch 'master' into docs/checkout-flow 2022-06-14 10:39:34 +03:00
Adrien de Peretti
9a3ff32b42 refactor(medusa): Convert DraftOrderService to TS (#1259) 2022-06-13 20:29:23 +02:00
Adrien de Peretti
28ddf10446 fix(medusa): Plugin loader must also check for TransactionBaseService (#1601) 2022-06-13 17:53:52 +02:00
Adrien de Peretti
012513b6a1 feat(medusa-cli): Allow to revert migrations from the CLI (#1353) 2022-06-13 14:15:09 +02:00
Philip Korsholm
b478b10438 refactor(medusa): Convert ShippingOptionService to typescript (#1644)
* convert shipping option service to typescript

* update jsdoc

* make update look update object

* update price reverting for calculated prices  when deselecting free shipping option

* update typescript service implementation

* pr feedback
2022-06-13 09:55:50 +02:00
Adrien de Peretti
3359e189a7 feat(medusa): Support transformQuery/Body middleware, introduction of pipe feature (#1593)
* feat(medusa): Support transformQuery middleware

* feat(medusa): Add support for transformBody

* test(medusa): Fix unit tests

* feat(medusa): Cleanup import

* feat(medusa): Update pipe required fields

* feat(medusa): Cleanup

* feat(medusa): Types cleanup

* feat(medusa): Types cleanup

* feat(medusa): Improve global typings and add one more example

* fix(medusa): Wrong wording in the error for prepareListQuery utility
2022-06-10 16:25:09 +02:00
Philip Korsholm
d011f38305 add default file service (#1627) 2022-06-10 16:24:11 +02:00
Shahed Nasser
98e61b8b20 Merge branch 'master' into docs/segment-integration 2022-06-10 17:20:07 +03:00
Philip Korsholm
1fe518b4af Feat(medusa) refactor claim-item service to typescript (#1640)
* refactor claim-item service to typescript

* update pr
2022-06-10 10:15:48 +02:00
Adrien de Peretti
a605622bcb refactor(medusa): Migrate StoreService to TS (#1413) 2022-06-09 19:46:50 +01:00
Adrien de Peretti
5172b21d09 refactor(medusa): Refactor and fix EventBusService (#1377) 2022-06-09 17:18:22 +01:00
Shahed Nasser
2ac07400a6 added how to create notification provider 2022-06-09 16:35:06 +03:00
Adrien de Peretti
78bd61abe1 Refactor: claim service to TS + refactoring (#1287) 2022-06-09 10:29:44 +01:00
Shahed Nasser
f6d1d06228 Added guidelines for sidebar labels 2022-06-09 11:06:34 +03:00
Shahed Nasser
c5d52240aa added notification overview 2022-06-08 18:55:01 +03:00
Adrien de Peretti
63bf684e66 refactor(medusa): Migrate middlewares to ts (#1469) 2022-06-08 14:52:45 +01:00
Shahed Nasser
37261e0eb4 added additional steps section 2022-06-08 15:35:57 +03:00
Adrien de Peretti
d98cd85d23 feat(medusa): Migrate utils to TS (#1415) 2022-06-08 11:05:24 +01:00
Shahed Nasser
40f5ed89a6 Use npm2yarn where missing 2022-06-06 19:12:40 +03:00
Zakaria El Asri
247ad6dc6d fix: includes variant prices when listing products using a search query (#1607)
* fix: return prices when lsiting products with a query

* add: integration test

* fix: integration test

* fix: move WithRequiredProperty to common.ts

* fix: comment
2022-06-05 21:52:31 +01:00
Philip Korsholm
abaf10b31d feat(medusa-file-spaces): DigitalOcean fileservice streaming (#1585)
* add file service interface initial

* pr feedback

* use abstract fileservice for file service plugins

* update plugin loader for services

* implement fileservices with abstractFileService and convert to ts

* update fileservice interface

* remove fileservice loading of old interface

* re-add loading of old fileservice interface

* re-rename digital ocean fileservice to javascript

* revert s3 to js

* revert minio to js

* remove irrelevant method implementation

* rename download stream method to reflect upload stream method

* update fileservice

* use isFileService in loaders

* remove fields from js class

* rename "generatePresignedDownloadUrl" to "getPresignedDownloadUrl"

* make methods abstract in AbstractFileService

* create download stream endpoint (#1583)

* Feat/upload to storage (#1580)

* add test generate endpoint to api

* rename method to getUploadStream

* cleanup generate example

* upload file example

* remove comment

* make vars const

* Feat/create presigned download url (#1582)

* implement "generatePresignedDownloadUrl"

* add get-download-url endpoint for testing

* remove examples

* update index ts

* create generalized method for aws update in DO fileservice

* update bucket configuration

* update interface types

* add typings to fileservice methods

* update service loaders

* update fileservice interface to extend transaction base service

* create download stream endpoint (#1583)

* Feat/upload to storage (#1580)

* add test generate endpoint to api

* rename method to getUploadStream

* cleanup generate example

* upload file example

* remove comment

* make vars const

* Feat/create presigned download url (#1582)

* implement "generatePresignedDownloadUrl"

* add get-download-url endpoint for testing

* remove examples

* update index ts

* create generalized method for aws update in DO fileservice

* update bucket configuration

* update interface types

* update download method name

* revert changes

* add filekey and optional extension to the fileservice result

* add key to the result of getUploadStream

* rename key to filekey

* rename key to filekey in getUploadStream result

* rename key to filekey in getDownloadStream and getPresignedDownloadUrl

* rename key to fileKey for getUploadedFileType

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2022-06-04 10:37:21 +02:00
Philip Korsholm
8e42d37e84 feat(medusa): Extend file-service interface + move to core (#1577) 2022-06-04 10:11:17 +02:00
Shahed Nasser
e562d2749f added docs contribution guidelines 2022-06-02 19:05:04 +03:00
Shahed Nasser
5af629a10b docs: disable running tests for docs 2022-06-02 12:07:12 +03:00
Shahed Nasser
9059a7c61e added documentation for entities 2022-06-02 10:36:04 +03:00
Shahed Nasser
2eb2126fe3 docs: Update upgrade guide for 1.3.0
docs: Update upgrade guide for 1.3.0
2022-06-01 19:46:30 +03:00
Shahed Nasser
045bd8d6af docs: Add events reference
docs: Add events reference
2022-06-01 19:45:44 +03:00