Shahed Nasser
7d09981440
chore: remove ignore tag for import function + update version tag ( #12774 )
2025-06-19 13:08:34 +03:00
Harminder Virk
f2cb528a56
feat: wire up direct uploads with local file provider ( #12643 )
2025-06-10 15:07:54 +05:30
Frane Polić
9866baa852
feat(core-flows,js-sdk,medusa,types): draft order delete ( #12172 )
2025-05-28 14:37:00 +02:00
Shahed Nasser
d155f492be
chore(core-flows, types): change base64 comment fo files in TSDocs to binary ( #12627 )
...
* chore(core-flows, types): change base64 comment fo files in TSDocs to binary
* add in generatd
2025-05-27 18:35:39 +03:00
Christian
ca9ffcc80b
feat: add presignedUrl method to upload sdk ( #12569 )
2025-05-21 22:21:50 +02:00
Shahed Nasser
9f376ff1f1
fix(js-sdk): allow passing custom request body parameters in auth.register method ( #12545 )
...
The `auth.login` method of the JS SDK allows passing custom, which is useful for custom authentication providers. For example:
```ts
const response = await sdk.auth.login("customer", "phone-auth", {
phone
})
```
However, the `auth.register` method doesn't allow that, so we can't do the following:
```ts
const response = await sdk.auth.register("customer", "phone-auth", {
phone
})
```
Instead, we'd have to use the `client.fetch` method.
This PR fixes the input type of the payload passed to the `register` method to be similar to that of `login`, which would allow using it with custom authentication providers
2025-05-20 16:27:13 +00:00
Harminder Virk
fca5ad77b4
feat: process import from pre-processed chunks ( #12527 )
...
Fixes: FRMW-2968
In this PR we have done two major things.
- First, we remove storing CSV contents within the workflow storage and neither store the JSON payloads to be created/updated in workflows. Earlier, they all were workflow inputs, hence were stored in the workflow
- Introduce a naive concept of chunks and process chunks one by one. The next PR making chunking a bit more robust while using streams, adding ability to resume from the failed chunk and so on.
> [!IMPORTANT]
> The new endpoint `/admin/product/imports` is not in use yet. But it will be after the next (final) PR.
## Old context in workflow storage

## New context in workflow storage

2025-05-20 12:33:18 +00:00
Shahed Nasser
0f802a977a
chore(js-sdk, types): update TSDocs related to tax provider changes ( #12428 )
2025-05-09 14:34:45 +03:00
Shahed Nasser
6032f3ec40
chore(js-sdk,types,utils): updates to file TSDocs ( #12426 )
...
* chore(js-sdk,types,utils): updates to file TSDocs
* remove ignore tag for file provider
* update file service tsdocs
2025-05-09 14:34:31 +03:00
Frane Polić
9cedeb182d
feat(dashboard, js-sdk, medusa, tax, types): custom tax providers ( #12297 )
...
* wip: setup loaders, add endpoints, module work, types, js sdk
* fix: tax module provider loader
* feat: select provider on region create, fix enpoint middleware registration
* feat: edit form
* fix: rename param
* chore: changeset
* fix: don't default to system provider
* fix: admin fixes, dispalt tax provider
* fix: some tests and types
* fix: remove provider from province regions in test
* fix: more tests, optional provider for sublevel regions, fix few types
* fix: OE test
* feat: edit tax region admin, update tax region core flow changes
* feat: migrate script
* fix: refactor
* chore: use query graph
* feat: provider section
2025-05-06 19:26:33 +02:00
Harminder Virk
84f58f9058
feat: implement direct upload ( #12328 )
...
* feat: implement direct upload
* feat: add direct-upload endpoint
* refactor: implement feedback
* refactor: have a dedicated endpoint for direct uploads
* refactor: convert responses to snakecase
* refactor: rename method to createImport
* test: add tests for the presigned-urls endpoint
2025-05-04 12:58:10 +02:00
Shahed Nasser
876a14eb98
chore(js-sdk): fix TSDocs of draft orders in JS SDK ( #12270 )
2025-04-23 12:48:13 +03:00
Frane Polić
01542f6973
feat(core-flows, js-sdk, medusa): draft order shipping removal ( #12124 )
...
**What**
- allow removal of a shipping method
---
CLOSES CMRC-1013
2025-04-16 06:10:24 +00:00
Shahed Nasser
90f9149735
chore: fixes to JS SDK TSDocs ( #12159 )
2025-04-11 16:41:52 +03:00
Shahed Nasser
83d29c2e79
chore(js-sdk, types): add TSDocs for plugin methods in JS SDK ( #12106 )
...
* chore(js-sdk, types): add TSDocs for plugin methods in JS SDK
* tsdocs for draft orders
2025-04-07 18:11:33 +03:00
Kasper Fabricius Kristensen
f441362f4a
feat(medusa,core-flows,types,js-sdk): Draft Order workflows and API endpoints ( #11805 )
2025-04-02 10:23:33 +02:00
Shahed Nasser
e998366aba
chore(js-sdk): improve the TSDocs of auth methods in JS SDK ( #12033 )
2025-03-28 17:55:01 +02:00
Shahed Nasser
0cc306bf56
fix(js-sdk, types): fixes types and deprecate duplicate methods ( #11975 )
2025-03-25 16:37:30 +01:00
Shahed Nasser
768ea91e1b
chore(js-sdk,types): add missing examples for JS SDK methods ( #11934 )
...
* chore(js-sdk,types): add TSDocs for calculate method
* added tsdocs for promotions
* finished adding examples
* fixes
* remove unused import
2025-03-25 14:55:54 +02:00
Shahed Nasser
c6f2f444ed
fix(js-sdk): fix the return type of the promotion.listRules method ( #11937 )
2025-03-24 07:35:15 +01:00
Shahed Nasser
053326950d
fix(js-sdk): fix the API route used in fulfillment.cancel method ( #11936 )
2025-03-21 15:08:44 +00:00
Riqwan Thamir
c3440e5e38
feat(medusa,types): add enabled plugins route ( #11876 )
2025-03-17 20:11:46 +01:00
Riqwan Thamir
5ab15a2988
feat(dashboard,js-sdk,admin-shared): add customer addresses + layout change ( #11871 )
...
what:
- changes customer layout from 1 layout to 2
- adds ability to create and delete customer addresses
- adds 2 customer widget locations
- adds is_giftcard=false by default to products list
<img width="1663" alt="Screenshot 2025-03-08 at 21 34 02" src="https://github.com/user-attachments/assets/e66f05da-718c-4c25-81ce-67ba0a814ca3 " />
2025-03-17 16:16:27 +00:00
Riqwan Thamir
cb6249320e
fix(types,order,medusa): Create credit lines + hooks ( #11569 )
...
what:
- api/workflows to create credit lines
- hooks to enable extending credit lines
2025-03-17 15:20:59 +00:00
Shahed Nasser
3256a1f740
chore(js-sdk): fix tsdocs for properties and methods ( #11748 )
2025-03-06 09:12:05 +02:00
Frane Polić
bdf9723239
fix(dashboard): filter outbound shipping options in RMA ( #11629 )
...
**What**
- filter out return shipping options for Claims/Exchanges
- fix the incorrect display of "missing inventory" warning
---
CLOSES CMRC-946
CLOSES CMRC-947
2025-02-28 14:55:35 +00:00
Oli Juhl
54a6ef91ac
chore: Move token from params to headers ( #11281 )
...
* chore: Move token from params to body
* chore: Add type
* wip
* chore: clean up
* clean ip
2025-02-26 17:41:16 +01:00
Kasper Fabricius Kristensen
f00e6bf660
fix(js-sdk): Export Draft Order methods ( #11572 )
2025-02-24 10:30:07 +01:00
Kasper Fabricius Kristensen
3b4997840e
fix(medusa,js-sdk,types): Add basic draft order operations to js-sdk ( #11514 )
...
**What**
- Exposes `sdk.admin.draftOrder.create/update/retrieve/list` functions from the js-sdk
- Implements the necessary types in the types package.
- Adds missing endpoints to admin API.
2025-02-20 16:05:21 +00:00
Ranjith kumar
32ad13813b
feat(js-sdk): implement custom storage config to support react native ( #11467 )
...
* feat(js-sdk): implement custom storage config to support react native
* chore: add changeset
* feat(js-sdk): implement custom storage config to support react native
* chore: add changeset
* test: ✅ add unit tests for custom storage
2025-02-18 08:38:23 +01:00
Shahed Nasser
e3b93c679f
chore(core-flows): update TSDocs of createProductsWorkflow ( #11439 )
...
* chore(core-flows): update TSDocs of createProductsWorkflow
* update example in js sdk
2025-02-13 15:30:56 +02:00
Oli Juhl
ae3292c98b
chore(js-sdk): Remove create user method from SDK ( #11186 )
...
Endpoint doesn't exist. Admin users can only be created through invites at the HTTP level.
2025-01-28 12:11:58 +00:00
Kasper Fabricius Kristensen
65d8d6dc0e
fix(js-sdk,admin-bundler): Fix qs import ( #11172 )
2025-01-27 15:00:18 +00:00
Kasper Fabricius Kristensen
d4e042e9ad
fix(dashboard,js-sdk,types): Remove redundant body for markAsDelivered ( #10964 )
...
Resolves CMRC-623
2025-01-20 17:17:48 +00:00
Shahed Nasser
effee5c8bb
chore(js-sdk): update TSDocs of auth callback ( #11005 )
...
* chore(js-sdk): update TSDocs of auth callback
* generate doc
2025-01-16 20:13:01 +02:00
Kasper Fabricius Kristensen
bc22b81cdf
feat(inventory,dashboard,types,core-flows,js-sdk,medusa): Improve inventory UX ( #10630 )
...
* feat(dashboard): Add UI for bulk editing inventory stock (#10556 )
* progress
* cleanup types
* add changeset
* fix 0 values
* format schema
* add delete event and allow copy/pasting enabled for some fields
* add response types
* add tests
* work on fixing setValue behaviour
* cleanup toggle logic
* add loading state
* format schema
* add support for bidirectional actions in DataGrid and update Checkbox and RadioGroup
* update lock
* lint
* fix 404
* address feedback
* update cursor on bidirectional select
2025-01-12 19:07:14 -05:00
Shahed Nasser
688e1e60a5
chore(js-sdk): add tags to js-sdk ( #10739 )
2024-12-26 11:18:02 +02:00
Shahed Nasser
13ddf27c68
fix(medusa,types,js-sdk): fix request query parameter types for store product routes ( #10707 )
...
* fix(medusa,types): fix request query parameter types for store product routes
* fix test errors
2024-12-23 18:10:08 +02:00
Frane Polić
bde4b82194
feat(core-flows,dashboard,js-sdk,medusa,types): support Fulfillment Options ( #10622 )
...
**What**
- add a list point for fetching fulfillment options for a provider
- add FO support on SO create & update on dashboard
- pass `cart` and `stockLocation` to `validateFufillmentData` context
---
CLOSES CMRC-789
CLOSES CMRC-790
2024-12-18 09:16:26 +00:00
Stevche Radevski
bed00e154d
feat(js-sdk): Make credentials configurable in SDK ( #10464 )
2024-12-06 15:39:35 +08:00
Salvador Girones Gil
a7ad809520
fix(core/js-sdk) Add the credentials field in the fetch() only if supported ( #10446 )
...
fixes https://github.com/medusajs/nextjs-starter-medusa/issues/421
The root cause of the issue is that credentials is not supported by CloudFlare workers.
2024-12-05 14:10:40 +00:00
Frane Polić
340769595a
feat(admin, js-sdk, types): update order forms ( #10418 )
...
* feat: edit shipping, billing and email forms
* feat: timeline history, update change model, update tests
* fix: address comments
* fix: invalidation, translation schema, update label
* fix: old/new
2024-12-04 14:56:40 +01:00
Frane Polić
1bf60c7a7d
feat(dashboard, js-sdk): customer page transfer order + cancel request in timeline ( #10250 )
...
**What**
- request order transfer from admin customers details page
- cancel transfer request from order timeline
---
CLOSES CMRC-730
2024-11-26 11:42:47 +00:00
Frane Polić
b12408dbd8
feat(medusa,core-flows,types,js-sdk): decline / cancel order transfer ( #10202 )
...
**What**
- **core-flows**:
- cancel transfer
- decline transfer
- **API**:
- admin cancel transfer
- store decline transfer
- store cancel transfer
- **js-sdk**:
- add methods for store endpoints
---
CLOSES CMRC-726
2024-11-25 07:44:31 +00:00
Kasper Fabricius Kristensen
d6ff8d7aa1
fix(js-sdk): Preserve path in baseUrl ( #10222 )
...
**What**
- Currently the `js-sdk` will discard the path in the `baseUrl` and only use the `origin`. As an example passing a `baseUrl` of `"http://localhost:9000/custom/path "`, will result in only `"http://localhost:9000 "` being used.
- This PR preserves the path, so using `sdk.admin.products()` will make a request to `"http://localhost:9000/custom/path/admin/products `. For an explanation of when this might be useful see this issue: https://github.com/medusajs/medusa/issues/10190#issuecomment-2492974845
Resolves CMRC-740
2024-11-22 14:52:54 +00:00
Oli Juhl
1efe4e9e33
fix: Update js-sdk with token ( #10211 )
2024-11-22 09:32:48 +01:00
Frane Polić
44265a928d
feat(dashboard): transfer order admin ( #10189 )
...
**What**
- request order transfer from order details page
- timeline events
---
CLOSES CMRC-706
CLOSES CMRC-707
2024-11-22 08:29:12 +00:00
Riqwan Thamir
6680f69588
fix: move transfer cart under cart ( #10175 )
...
made a whoopsie!
2024-11-20 11:12:49 +00:00
Riqwan Thamir
495c381709
feat(types, js-sdk): add updateCustomer to js-sdk ( #10158 )
...
what:
- adds new `POST /store/cart/:id/customer` endpoint to js sdk
2024-11-19 18:32:49 +00:00
Shahed Nasser
b43febda54
chore(js-sdk,types): add tsdocs for admin JS SDK methods [6/n] ( #10028 )
...
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [6/n]
* fix error
* remove type changes
2024-11-19 19:15:44 +02:00