Commit Graph

3953 Commits

Author SHA1 Message Date
github-actions[bot] 37378988f6 chore(docs): Generated Docs Announcement Bar (automated) (#2650) 2022-11-22 13:43:22 +01:00
olivermrbl a4d75f4a40 fix: merge conflicts with develop 2022-11-22 13:39:27 +01:00
olivermrbl ade898d434 chore(release): Publish 2022-11-22 13:35:50 +01:00
Philip Korsholm e7c4cc3751 fix(medusa): Separate JWT auth strategies per domain (#2646)
**What**
Separate JWT auth strategies per domain

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2022-11-22 12:30:05 +00:00
olivermrbl a767624188 chore: Add missing changeset for medusa-telemetry 2022-11-21 10:24:26 +01:00
github-actions[bot] 6a1df8b1a9 chore(docs): Removed Docs Announcement Bar (automated) (#2611) 2022-11-21 08:46:08 +01:00
Adrien de Peretti 5d977a8f57 perf(medusa): Shipping options + TransactionBaseService initialization (#2632) 2022-11-21 08:09:18 +01:00
Oliver Windall Juhl d7997ef256 feat(medusa): Module Resolution API (#2597) 2022-11-20 22:01:46 +01:00
Adrien de Peretti e09f6e8a1e fix(medusa-payment-stripe): handle webhook sirialization failure (#2607) 2022-11-20 20:47:15 +01:00
Carlos R. L. Rodrigues 01a879ac94 chore: markAsAuthorized and payment collection tests (#2620)
* chore: markAsAuthorized and payment collection tests
2022-11-18 11:23:35 -03:00
Adrien de Peretti a77780671a fix(medusa): Transaction lock issues on create/update cart items (#2612)
* fix(medusa): Transaction lock issues on create/update cart items

* fix add missing trans

* cleanup

* cleanup

* Create perfect-bears-invent.md

* cleanup

* revert draft order to no take it in that pr

* cleanup handler

* cleanup steps

* fix reference issue

* cleanup + fix tests and mock

* cleanup type

* rename file

* cleanup

* fix missing transaction

* wip

* Address pr feedback

* cleanup and fix unit tests

* fix handler

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-11-18 12:15:53 +01:00
Philip Korsholm 5332081972 fix(medusa, medusa-plugin-discount-generator, medusa-plugin-restock-notification): Bump Medusa package versions (#2623) 2022-11-18 10:50:13 +01:00
Philip Korsholm c6c5667cdd Fix/staging release install and versioning (#2621) 2022-11-17 16:38:14 +00:00
Frane Polić 9eafde07fe feat(medusa-js): Register PublishableApiKey (#2616)
**What**
- register a publishable API key through `medusa-js` i.e. define the key that will be sent with each request

**How**
- introduce KeyManager class which is used to share keys between medusa-js objects.

**Usage**
1. Set the key through the `Medusa` config
2. Set the key through `KeyManager` dynamically:
```ts
import { KeyManager } from "medusa-js"

KeyManager.registerPublishableApiKey("pk_123")
```

---

RESOLVES CORE-794
2022-11-17 12:19:18 +00:00
Philip Korsholm f60267a494 feat(medusa): Release staging version on push to develop (#2594)
* initial

* working config

* update name and add snapshot to release

* add changeset

* use correct command for action

* pr feedback
2022-11-16 20:08:18 +01:00
Patrick 022a84691e fix(draft-order): create tax-inclusive with discount (#2579)
**What**
Fix system error (500) with DraftOrder create operation when payload includes discount in a tax-inclusive context.

**How**
* Ensure newly created cart contains all required relation in order to calculate line item tax-inclusive pricing with discounts.
* Add resilience to TotalsService.getLineDiscounts()
* Ensure newly generate line items have variant relation loaded.
* fix TotalsService.getLineItemTotals to use the passed lineItem instead of relying on cartOrOrder.items.

**Test**
* Unit:
  *  TotalsService.getLineDiscounts - coverage
* Integration:
  * Admin API draft-order - coverage
  * Admin API draft-order create w/ discount in tax-inclusive

Resolves: CORE-771

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2022-11-16 15:34:18 +00:00
Frane Polić 03fc9e18e9 feat(medusa, medusa-js, medusa-react): PublishableApiKey "update" endpoint & add "title" property (#2609)
**What**
- update PK endpoint
  - medusa-js/react implementation
- add a title property to the entity
  - update the migration file
  - pass a title on create
  - list PKs by title
  - update the client libs with new param signatures
- change id prefix to: "pk_"
2022-11-16 04:35:22 +00:00
Carlos R. L. Rodrigues ccfc5f666d feat(medusa-js): Add payment and payment collections clients (#2608) 2022-11-15 21:27:00 +01:00
Frane Polić 3de553c27f feat(medusa-js, medusa-react): PublishableApiKeys clients (#2582)
**What**
- add `PublishableApiKeys` endpoints to the `medusa-js` and `medusa-react` clients

--- 

RESOLVES CORE-791
DEPENDS ON https://github.com/medusajs/medusa/pull/2567
2022-11-15 15:41:58 +00:00
Carlos R. L. Rodrigues 4baa2e0149 docs: payment and payment collection OAS (#2604) 2022-11-15 14:30:47 +00:00
Adrien de Peretti 9e91a50df1 fix(medusa-payment-stripe): Missing transactions in Stripe provider (#2603) 2022-11-14 20:03:06 +01:00
Frane Polić d0809bdf25 feat(medusa): PublishableApiKeys CRUD (#2567) 2022-11-14 19:30:24 +01:00
Adrien de Peretti d2b1848e52 feat(medusa): Cart and totals computational optimizations (#2475) 2022-11-14 15:45:47 +01:00
Carlos R. L. Rodrigues 755ba90c05 feat(medusa): Payment Collection endpoints (#2525) 2022-11-11 18:28:45 +01:00
github-actions[bot] 3aa082714b chore(docs): Generated Docs Announcement Bar (automated) (#2591) 2022-11-10 19:37:17 +01:00
olivermrbl 27184f3878 Merge branch 'master' into develop 2022-11-10 19:35:57 +01:00
olivermrbl 5dcbec3788 chore(release): Publish 2022-11-10 19:31:03 +01:00
Oliver Windall Juhl 04e894ec39 hotfix(medusa-payment-stripe): Support provider specific intent options (#2581) 2022-11-10 19:28:35 +01:00
Shahed Nasser c0cdbd025e docs: fix duplicate labels (#2589) 2022-11-10 18:43:04 +02:00
Shahed Nasser 7c5523160d docs: changed introduction title (#2588) 2022-11-10 18:08:55 +02:00
Shahed Nasser 208809b635 docs: update readme (#2587)
* docs: added features list

* docs: update readme
2022-11-10 17:52:03 +02:00
Shahed Nasser 7b96bb1f1a docs: added settings user guides (#2586) 2022-11-10 16:31:56 +02:00
Adrien de Peretti 699bb1d57b hotfix(medusa): Deleted region are missing on order retrieval (#2583) 2022-11-10 14:44:35 +01:00
Shahed Nasser 657d0a6586 docs: added user guide for tax-inclusive pricing (#2580) 2022-11-10 14:44:17 +02:00
Shahed Nasser 8f39ee26d9 docs: temporary fix for memory error that occurs during build (#2584)
* docs: temporary fixes for build error

* docs: added env variable to the build step

* docs: undo unnecessary updates
2022-11-10 14:04:34 +02:00
Frane Polić aa8eba38e9 feat(medusa): PublishableAPI keys model (#2543) 2022-11-10 10:14:06 +01:00
github-actions[bot] 51c4cdd978 chore(docs): Generated Entities Reference (automated) (#2573)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-11-10 10:38:07 +02:00
github-actions[bot] 88ac804b63 chore(docs): Generated Services Reference (automated) (#2575)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-10 10:36:05 +02:00
github-actions[bot] 557352cdfe chore(docs): Generated JS Client Reference (automated) (#2576)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-11-10 10:35:17 +02:00
olivermrbl dda886a77f Merge branch 'master' into develop 2022-11-09 20:37:48 +01:00
olivermrbl 7914f2a82a chore: Version medusa-payment-stripe 2022-11-09 20:36:31 +01:00
olivermrbl 715bdf6b15 chore: Patch bump stripe 2022-11-09 20:35:21 +01:00
github-actions[bot] a7aa53f0b2 chore(docs): Generated Docs Announcement Bar (automated) (#2577) 2022-11-09 21:08:02 +02:00
olivermrbl a4dd26e137 chore(release): Publish 2022-11-09 19:34:59 +01:00
olivermrbl 41fc095a3d Merge branch 'master' into develop 2022-11-09 19:32:30 +01:00
Oliver Windall Juhl cfb24d72fa fix(medusa-telemetry): Fix incorrect import (#2574)
Duplicate of #2126
2022-11-09 16:51:37 +00:00
github-actions[bot] 441690e90c chore(docs): Generated Entities Reference (automated) (#2571)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-11-09 18:30:17 +02:00
github-actions[bot] 325b1e9017 chore(docs): Generated API Reference (#2572)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-11-09 18:30:06 +02:00
Shahed Nasser 884322447e docs: fixes to the API reference (#2570) 2022-11-09 18:24:48 +02:00
Patrick 7b0ceeffb4 feat: /store api product types (#2552)
## What
Allow users to fetch ProductTypes from the storefront API.

## Why
This endpoint will allow developers to implement better faceted product search in Medusa without the need for search plugin. Developers will be able to use this to render refinement lists based on types, like this:
![image](https://user-images.githubusercontent.com/116003638/200417828-863065de-3607-49db-bd72-62a6815129fa.png)

## How
Endpoint `GET /store/products/types` and `GET /store/product-types` (use [product types listing in admin](https://github.com/medusajs/medusa/blob/master/packages/medusa/src/api/routes/admin/products/list-types.ts) as reference)

Support added in @medusajs/medusa-js
Support added in medusa-react

## Testing
Similar automated tests as `GET /admin/products/types` and `GET /admin/product-types`

---

Resolves CORE-699
2022-11-09 16:10:17 +00:00