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
Frane Polić
576da17da3
fix(dashboard): user invite search ( #9973 )
...
**What**
- fix prefix for table search which caused the other table rendered on the page to fire query
- additionally, fix a typo in js SDK and only format the file
---
FIXES SUP-112
CLOSES https://github.com/medusajs/medusa/issues/9968
2024-11-07 19:13:28 +00:00
Stevche Radevski
30edc8fa40
fix: Support relative path in SDK ( #9942 )
2024-11-06 09:45:59 +01:00
Shahed Nasser
43a44cf426
chore(js-sdk,types): add tsdocs for admin JS SDK methods [4/n] ( #9745 )
...
Add TSDocs to admin JS SDK from notification to payment
[4/n]
2024-10-28 04:42:17 +00:00
Shahed Nasser
f40ea9cfbf
chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n] ( #9788 )
...
* chore(js-sdk,types): add tsdocs for admin JS SDK methods [5/n]
* add api route link
2024-10-25 13:02:17 +03:00
Frane Polić
259d050e53
feat: customer bulk endpoint form managing customer groups ( #9761 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-10-25 11:55:57 +02:00
Shahed Nasser
92bbd7953b
chore: update links to v2 docs in source code and comments ( #9732 )
2024-10-24 15:18:38 +03:00
Shahed Nasser
669adbcdc9
fix(js-sdk): remove list and retrieve methods of paymentCollection ( #9746 )
...
Co-authored-by: Harminder Virk <virk.officials@gmail.com >
2024-10-24 12:27:57 +02:00
Shahed Nasser
14efb2a420
chore(js-sdk,types): add tsdocs for admin JS SDK methods [3/n] ( #9712 )
2024-10-22 18:08:33 +03:00
Shahed Nasser
3df7ebe3d1
chore(js-sdk,types): add tsdocs for admin JS SDK methods [2/n] ( #9696 )
...
Add TSDocs to admin JS SDK from customer groups to fulfillment providers
[2/n]
2024-10-22 11:53:09 +00:00
Shahed Nasser
5ea3100c10
chore(js-sdk,types): add tsdocs for admin JS SDK methods [1/n] ( #9667 )
...
Add TSDocs to admin JS SDK from API keys to currencies
[1/n]
2024-10-22 11:19:04 +00:00
Stevche Radevski
abe003a5d6
fix: Don't store token in SDK by default ( #9704 )
2024-10-22 10:42:55 +02:00
Shahed Nasser
a0668adefa
fix(dashboard,js-sdk): remove methods / hooks to non existing exchange routes ( #9697 )
...
Remove the following exchange methods (and hooks from dashboard) which point to routes that don't exist:
- `delete`
- `addItems`
- `updateItem`
- `removeItem`
2024-10-21 14:00:30 +00:00
Shahed Nasser
fa15db4538
chore(types,js-sdk,medusa): Add TSDocs for store and auth's JS SDK + small type fixes ( #9657 )
...
* added jsdocs
* more tsdocs
* added for cart completion
* finish up the store tsdocs
2024-10-21 11:03:33 +03:00
Frane Polić
24a1b81fb2
fix(dashboard, js-sdk): undefined RMA activity items ( #9649 )
...
**What**
- fix for showing removed items in rma flows
---
DEPENDS ON https://github.com/medusajs/medusa/pull/9646
FIXES CC-597
2024-10-20 12:56:08 +00:00
Shahed Nasser
2ea766daf5
fix(dashboard,js-sdk): remove method and hook for deleting claim ( #9668 )
2024-10-18 19:43:53 +03:00
Shahed Nasser
ab113cdc38
chore(js-sdk): add ignore tsdoc tag to client and constructor of inner classes ( #9635 )
2024-10-17 19:31:51 +03:00
J Kendal
0dd3d9b1c4
fix: js-sdk compilation error ( #9523 )
2024-10-10 13:48:47 +02:00
Frane Polić
0a2ecdc889
feat(dashboard, js-sdk): reset password UI ( #9451 )
...
**What**
- add password reset flow on Admin
---
https://github.com/user-attachments/assets/3438ace2-c661-4121-a580-794a69ad4518
---
CLOSES CC-568
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-10-04 09:10:26 +00:00