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
olivermrbl
8c0b49fed4
chore: Version packages
2025-05-16 11:04:39 +02:00
olivermrbl
d2dd2e7c72
chore: Version packages
2025-05-15 09:49:09 +02:00
olivermrbl
d3a5868e8b
chore: Version packages
2025-05-13 12:56:07 +02: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
olivermrbl
2fec5f4aa0
chore: Version packages
2025-04-23 09:27:02 +02: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
olivermrbl
d61694385d
chore: Version packages
2025-04-11 10:25:36 +02: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
olivermrbl
f1cac99316
chore: Version packages
2025-03-10 15:44:09 +01:00
Oli Juhl
3b470f4142
chore: remove ranges on medusa packages ( #11738 )
2025-03-06 14:17:05 +01:00
Shahed Nasser
3256a1f740
chore(js-sdk): fix tsdocs for properties and methods ( #11748 )
2025-03-06 09:12:05 +02:00
olivermrbl
5d74ac3cc3
chore: Version packages
2025-03-04 14:11:37 +01: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
olivermrbl
3f7470022c
chore: Version packages
2025-02-24 11:36:46 +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
olivermrbl
682dcf6507
chore: Version packages
2025-02-11 12:00:43 +01:00
Oli Juhl
db03738b5f
chore: Revert version range to ^ ( #11390 )
2025-02-11 11:35:25 +01: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
olivermrbl
986ee8008e
chore: Version packages
2025-01-27 09:35:06 +01:00
Adrien de Peretti
9321920227
fix: Medusa package version should use ~ instead of ^ ( #11077 )
...
RESOLVES FRMW-2859
2025-01-22 15:15:30 +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
olivermrbl
57e9a7a5bf
chore: Version packages
2025-01-20 07:41:15 -05:00
olivermrbl
efe141f54b
chore: Version packages
2025-01-17 10:29:04 -05: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
olivermrbl
3919b26eb6
chore: Version packages
2025-01-07 13:31:40 +01: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
olivermrbl
348f866ffe
chore: Version packages
2024-12-20 11:25:36 +01:00