Commit Graph

6446 Commits

Author SHA1 Message Date
Riqwan Thamir
e9e0267aa8 fix: broken order page due to missing inventory (#9083) 2024-09-10 13:24:13 +00:00
Frane Polić
3e7d4ddcd5 fix(dashboard): campaign fixes (#9082)
**What**
- fix campaign dropdown placeholder
- fix create campaign broken modal

---

![Screenshot 2024-09-10 at 14 23 55](https://github.com/user-attachments/assets/279451ec-72f4-49be-8d70-d18bc87e7fc3)

---

FIXES CC-112
2024-09-10 13:21:06 +00:00
Riqwan Thamir
3593bdfebe fix(promotion): handle promotion buy X get X scenario (#9002)
* fix(promotion): handle promotion buy X get X scenario

* chore: fix qualifiication rules
2024-09-10 15:12:56 +02:00
Shahed Nasser
e9b5f76f9a docs: add Query documentation (#9079)
- Replace remote query documentation with new Query documentation
- Add redirect from old remote query to new query documentation
- Update remote query usages across docs to use new query usage.
2024-09-10 12:31:47 +00:00
Shahed Nasser
1d8dd54014 fix(core-flows): fix emitted event for deleting sales channel (#9081)
Fix the usage of the user event instead of sales channel event
2024-09-10 12:24:19 +00:00
Adrien de Peretti
e56607c97c fix(medusa-test-utils): Run with modules without models (#9062)
* fix(medusa-test-utils): Run with modules without models

* cleanup

* rm dummy model

* rm dummy model

* improve models loading

* find models

* find models

* find models

* finalize

* cleanup

* fix deps

* fix deps

* fix deps

* fix deps

* fix deps
2024-09-10 14:22:21 +02:00
Frane Polić
36f30b4833 fix(dashboard): refresh order list when fulfilment status changes (#9076)
**What**
- update order list when fulfillment/shipment status changes

---

RESOLVES TRI-224
CLOSES [9052](https://github.com/medusajs/medusa/issues/9052)
2024-09-10 12:21:04 +00:00
Shahed Nasser
4b663a4559 docs: document events reference (#9080)
- Remove old hidden reference files that document modules' events
- Add new events reference for workflow events
- Reference events reference in the main docs
2024-09-10 12:20:09 +00:00
Shahed Nasser
3fb2f10ccb docs: fix links to inventory model references (#9073)
Closes #9070
2024-09-10 12:18:10 +00:00
Shahed Nasser
464a3e692f docs-util: fix after updating node version (#9072)
Small fix in imports after updating node version
2024-09-10 12:05:19 +00:00
Shahed Nasser
5eafa5a184 oas: [5/n] improve oas schemas (#9066)
Improve oas schemas [5/n]
2024-09-10 12:03:18 +00:00
Harminder Virk
a944226025 fix: JSON stringify DML json property default value (#9074) 2024-09-10 15:58:42 +05:30
Riqwan Thamir
afd0921326 fix(utils,medusa,order,cart): fix totals when promotions are included (#9014)
* fix(utils): fix totals when promotions are included

* chore: update totals calc

* chore: ignore taxes when taxable amount is 0

* chore: use subtotals everywhere

* chore: fix shipping totals + tests
2024-09-10 10:59:22 +02:00
Stevche Radevski
3244067ee4 feat: Add support for fetch streaming to js SDK (#9065) 2024-09-10 09:14:10 +02:00
Frane Polić
0714315792 fix(dashboard): rq cache and pending flag (#9063)
**What**
- fix issues from stale data on modal pages

---

FIXES CC-137
2024-09-09 19:06:10 +00:00
Shahed Nasser
6e46baa2cb docs-util: fix generated hooks example (#9060)
Fix generated hook examples by the placement of `async` keyword
2024-09-09 18:53:44 +00:00
Shahed Nasser
abb5f0c2fe oas: [4/n] improve oas schemas (#9064)
Improve oas schemas [4/n]
2024-09-09 18:52:49 +00:00
Shahed Nasser
dfb095e2ea chore(types, medusa): clean up to request / response types (#9067)
Smaller clean up to request / response types
2024-09-09 18:52:02 +00:00
Harminder Virk
2020b35e52 breaking: turn off mikro orm casing change with DML properties (#9058) 2024-09-09 19:54:02 +05:30
Shahed Nasser
c091cf5868 docs: add prerequisites link for test guides (#9057)
- Add a prerequisites link to test guides pointing to how to setup the testing tools
- Add in the main http / module integration guides the command to run the tests
2024-09-09 13:58:42 +00:00
Shahed Nasser
2189ff2dc8 chore: fix build errors in OAS (#9059)
Fix errors stopping OAS from building
2024-09-09 13:54:14 +00:00
Shahed Nasser
4ffcc41fe7 chore(utils): update auth provider TSDocs + fix errors stopping references build (#9023)
- Updated the TSDocs of the auth provider
- Update the Node version in the docs-util as the outdated version was causing TypeScript error
- Add `@ts-ignore` for a line that was causing a typescript error. If there's a better fix here let me know
2024-09-09 13:53:33 +00:00
Adrien de Peretti
423bae1d73 chore(modules-sdk): Move Query and cleanup (#9054)
* chore(modules-sdk): Move Query and cleanup

* cleanup

* fix memoization
2024-09-09 12:42:17 +02:00
Stevche Radevski
4031da35b0 fix: Allow specifying PORT for tests through environment (#9055) 2024-09-09 11:56:15 +02:00
Harminder Virk
32ebfa619f feature: introduce types for query.graph method (#9031) 2024-09-09 13:26:40 +05:30
Shahed Nasser
a5e8a55d63 docs: added storefront development guide on retrieving variant inventory details (#9032)
* docs: added storefront development guide on retrieving variant inventory details

* fix vale error
2024-09-09 10:02:59 +03:00
Shahed Nasser
c962283281 fix(types, medusa): request / response types clean-up (#9043)
More clean-up of request / response types
2024-09-09 06:59:43 +00:00
Shahed Nasser
3eb2387746 docs: fix pricing query params in storefront guide + modules restructure (#9021)
- Fix pricing query params previously using `customer_group_id` and `customer_id` as expected / accepted queries and update information around them
- Other: reorganize the introduction page of each module to show how to use it at the very beginning.
2024-09-09 06:43:43 +00:00
Carlos R. L. Rodrigues
afb83b2408 fix(orchestration): filter out undefined items (#9046) 2024-09-08 07:58:48 -03:00
Shahed Nasser
4b8d9cc735 oas: [3/n] improve oas schemas (#9042)
Improve oas schemas [3/n]
2024-09-07 06:16:00 +00:00
Shahed Nasser
a7180e29b8 oas: [1/n] improve store oas (#8993)
* oas: [1/n] improve store oas

* add missing postal code param
2024-09-07 08:09:10 +02:00
Shahed Nasser
cf387aafa2 chore: re-add oas tests for generated OAS (#9036)
* chore: re-add oas tests for generated OAS

* test fix
2024-09-07 08:01:22 +02:00
Shahed Nasser
7a80593b68 oas: [2/n] improve schema oas (#9040) 2024-09-06 18:53:07 +03:00
Shahed Nasser
0482b7751d oas: [1/n] improve oas schemas (#9039) 2024-09-06 18:52:51 +03:00
Shahed Nasser
cd909f9db3 oas: [2/2] improve store OAS (#9035) 2024-09-06 18:52:38 +03:00
Shahed Nasser
b5dbf572e3 docs: document star actor types (#9044) 2024-09-06 17:38:51 +02:00
Shahed Nasser
89f21e4a60 docs: fix admin actor type -> user (#9028) 2024-09-06 17:38:33 +02:00
Stevche Radevski
f32091f702 fix: Check for star actor types when allowing unregistered access (#9037) 2024-09-06 15:16:10 +02:00
github-actions[bot]
95a3ac045d chore(docs): Generated References (#9034)
Generated the following references:
- `auth`
- `core_flows`
- `fulfillment`
- `modules`
- `modules_sdk`
- `order`
- `types`

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-09-06 12:39:45 +00:00
Shahed Nasser
a28c911c24 docs: update auth docs + add new storefront guides (#9020)
* docs: update auth docs + add new storefront guides

* lint content

* fix vale error

* add callback response schema

* Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx

Co-authored-by: Stevche Radevski <sradevski@live.com>

* Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx

Co-authored-by: Stevche Radevski <sradevski@live.com>

* Update www/apps/resources/app/commerce-modules/auth/authentication-route/page.mdx

Co-authored-by: Stevche Radevski <sradevski@live.com>

* address PR comments

* replace google -> github

* better explanation for refresh token

---------

Co-authored-by: Stevche Radevski <sradevski@live.com>
2024-09-06 15:26:10 +03:00
github-actions[bot]
cf3c25addf chore(docs): Updated API Reference (v2) (#9033)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-09-06 12:25:48 +00:00
Alexander Nortung
20545b194e fix: wrap ModuleImplementations so that all methods are async (#9012) 2024-09-06 12:59:52 +02:00
Shahed Nasser
72f7ff882d chore: fix incorrect oas property name (#9009) 2024-09-06 12:59:11 +02:00
Stevche Radevski
62e0c593c8 feat: Add support for refreshing JWT tokens (#9013)
* feat: Add support for refreshing JWT tokens

* feat: Add refresh method to the auth SDK
2024-09-06 12:58:57 +02:00
Shahed Nasser
3ba0ddcd43 fix(types): add inventory_quantity to http variant type (#9030) 2024-09-06 13:33:02 +03:00
Oli Juhl
e27056b3c3 feat: Reset password (#8962)
* wip

* more work

* wip

* more work

* wrap up first iteration

* work on new approach

* more work

* move middleware func to route

* cleanup

* more work

* wrap up

* more work

* fix workflow

* minor tweaks

* finalize

* Use JWT secret instead
2024-09-06 12:28:29 +02:00
Adrien de Peretti
2c5e72d141 feat: Application types generation from project GQL schema's (#8995) 2024-09-06 15:15:32 +05:30
Shahed Nasser
ac30a989f4 feat(create-medusa-app): add publishable API key environment variable to Next.js storefront (#9029)
When installing with Next.js starter, retrieve the publishable API key seeded and add it to the environment variable in the `.env.local` or `.env.template` file
2024-09-06 09:43:55 +00:00
github-actions[bot]
a5748c6e1f chore(docs): Generated References (#9026)
Generated the following references:
- `modules`
- `product`
- `promotion`
- `types`
2024-09-06 08:53:22 +00:00
Shahed Nasser
abe7b66999 docs: rename admin-shared -> admin-sdk (#9008) 2024-09-06 10:33:34 +02:00