Commit Graph

4985 Commits

Author SHA1 Message Date
Oli Juhl
c31dea02eb feat: Add generic link filter middleware (#6969) 2024-04-06 11:18:03 +02:00
Oli Juhl
94146e4bfe chore: Trigger pipeline on merge to develop (#6954) 2024-04-06 11:02:47 +02:00
Frane Polić
01759cae65 fix(region): update regions countries (#6970)
* fix: update regions countries

* fix: test case
2024-04-06 09:50:46 +02:00
Shahed Nasser
cbf2e6300d chore: added tsdocs to Region Module resources (#6799)
* chore: added tsdocs to Region Module resources

* typo fix
2024-04-05 19:35:14 +02:00
Oli Juhl
626aa09497 feat: Add create location fulfillment set flow + API (#6945) 2024-04-05 19:27:38 +02:00
Carlos R. L. Rodrigues
01487970b2 chore:(product): renaming vars (#6972)
* feat(product): return parents tree

* query mpath with IN

* more tests

* remove where filters

* revert where

* naming

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
2024-04-05 19:22:55 +02:00
Carlos R. L. Rodrigues
09a2220569 feat(product): return parents tree (#6944)
*What*

include option `include_ancestors_tree` to list products including the parent tree.
2024-04-05 16:46:55 +00:00
Oli Juhl
8ecfa4b6f5 fix: Add count to stock-locations response (#6965) 2024-04-05 18:28:03 +02:00
Kasper Fabricius Kristensen
8a5c6928f7 feat(dashboard): Migrate to new hooks and API client (#6963) 2024-04-05 18:27:08 +02:00
Oli Juhl
5ba74ec5fc feat: Add zod middleware (#6961) 2024-04-05 16:24:31 +02:00
Adrien de Peretti
ee73031d0e feat: Shipping options API (#6957)
**What**
Add support for shipping options management API

PARTIALLY FIXES CORE-1918
2024-04-05 14:23:45 +00:00
Adrien de Peretti
21990fcd4b feat(utils): Support free text configuration (#6942)
**What**
- Add support for searchable entity properties to configure default free text search when providing a `q` filter
- `@Searchable` decorator to mark a property or relation to be searchable form the current entity

FIXES CORE-1910
2024-04-05 13:59:40 +00:00
Stevche Radevski
a0005faa14 fix: upsertWithReplace should delete non-persist relationship fields … (#6960)
…before upsert
2024-04-05 13:26:14 +00:00
Stevche Radevski
9ccd88d025 feat: Add boilerplate for the file module (#6956) 2024-04-05 14:46:02 +02:00
Riqwan Thamir
eb93e8f386 chore: rename rule endpoints validators (#6955) 2024-04-05 10:41:31 +00:00
Shahed Nasser
bde80a8371 chore: add TSDocs to the Promotion Module (#6793) 2024-04-05 12:06:35 +02:00
Shahed Nasser
0a8718f0c5 chore: added tsdocs to Cart Module (#6881) 2024-04-05 12:04:15 +02:00
Shahed Nasser
bd2c5aca16 chore: added tsdocs for the Tax Module (#6902) 2024-04-05 12:03:03 +02:00
Shahed Nasser
3507e5e263 chore: updated TSDocs of the Pricing Module (#6894) 2024-04-05 12:02:46 +02:00
Shahed Nasser
4c374e3a14 chore: add TSDocs to the Payment Module (#6885) 2024-04-05 12:01:36 +02:00
Shahed Nasser
d345496dbc chore: added tsdocs for the Auth Module (#6863) 2024-04-05 12:01:08 +02:00
Shahed Nasser
f65e1dedbc chore: added tsdocs for Stock Location Next Module (#6817) 2024-04-05 12:00:46 +02:00
Shahed Nasser
f25d55bd4f chore: added tsdocs to the Inventory Next Module (#6814) 2024-04-05 12:00:23 +02:00
Shahed Nasser
72564c917f chore: add tsdocs for the Customer Module (#6784) 2024-04-05 11:59:08 +02:00
Shahed Nasser
8901e32dba chore: add tsdocs for the Store Module resources (#6795)
* chore: add tsdocs to Store Module resources

* added examples
2024-04-05 11:58:53 +02:00
Oli Juhl
eadc5e8a79 feat: Admin V2 API keys (#6883)
Add API key management UI for V2

This PR only adds publishable API key UI. Secret API key management will come in a follow-up PR.
2024-04-05 09:55:59 +00:00
Kasper Fabricius Kristensen
e915169e11 feat(dashboard): Edit variant options + create option callback for combobox (#6920) 2024-04-05 11:40:33 +02:00
Shahed Nasser
0bf0bf819b fix(admin-ui): Resolve node-gyp error during installation with npm (#6952)
Fix `node-gyp` error that occurs during installation when using NPM and 20+ versions of Node.js. The error results from the package `@stdlib/number-float64-base-normalize` which is a dependency of `@segment/analytics-next`. Installing v0.0.8 resolves the error.

More details in PR #6485

## Testing

To test out the fix:

1. In a Medusa backend, remove the installation of `@stdlib/number-float64-base-normalize` (if available) and add instead the following override:

```json
  "overrides": {
    "@medusajs/admin": {
      "@medusajs/admin-ui": "2.1.14-snapshot-20240405070935"
    }
  }
```

2. Remove node_modules + any previous package-lock.json
3. Change to node v20+ and use npm to install dependencies -> no error occurs during installation.
2024-04-05 07:56:39 +00:00
Adrien de Peretti
71aeda7347 fix(workflows-sdk): Handle result from a trasnformer after a step fail (#6951)
* fix(workflows-sdk): Handle result from a trasnformer after a step fail

* Create plenty-ravens-lay.md

* fix
2024-04-05 08:59:28 +02:00
Kasper Fabricius Kristensen
849010d875 feat(dashboard): Setup workflows in V2 routes (#6939) 2024-04-04 21:27:48 +02:00
Stevche Radevski
20e8df914e feat: Normalize known DB errors to a MedusaError when possible (#6922)
Before we would swallow the error and return a generic error to the user. This will provide more information to the caller if it is one of the known errors.
2024-04-04 19:12:59 +00:00
Adrien de Peretti
e944a627f0 feat: region payment providers management workflows/api (#6864) 2024-04-04 20:41:34 +02:00
Adrien de Peretti
12fcb655cd chore: Ensure Redis connection is ready with callback (#6924)
* chore(workflow-engine-redis): await for the connection callback

* cleanup

* cleanup

* Create early-rice-marry.md

* cleanup
2024-04-04 20:40:41 +02:00
Kasper Fabricius Kristensen
880bbbd4af feat(dashboard): Add forms for edit and create product options (#6907) 2024-04-04 18:14:05 +02:00
Philip Korsholm
fd3fc1384b Feat(dashboard): admin locations v2 (#6868)
* initial create

* add list for stock locations

* add changeset

* redo changes for stock locatino module'

* add changeset

* naming

* prep for pr

* move integration tests

* fix pr feedback

* add changeset

* update changeset

* init

* undo versioning updates

* rm whitespace

* move common files to modules

* Update packages/admin-next/dashboard/src/v2-routes/locations/location-edit/location-edit.tsx

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>

* rm logs

* fields instead of expands

---------

Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
2024-04-04 14:45:05 +02:00
Kasper Fabricius Kristensen
6c6e5307cf feat(dashboard): Setup V2 collections (#6935) 2024-04-04 14:06:44 +02:00
Stevche Radevski
06b2f0a8dc feat: Add some of the missing pieces in the create product form (#6918)
The changes are still partial, there is more work to be done to have everything function properly.
Also, refactored the file upload from the product media form to a separate component
2024-04-04 10:27:33 +00:00
Riqwan Thamir
483bf98a49 feat(medusa): added endpoints for rule attribute/operator/values options (#6911)
what:

adds endpoints that returns attribute options, operator options and value options for a particular rule.
2024-04-04 09:56:17 +00:00
Omar Hawwash
9ca38eba04 docs: Update fulfillment.AbstractFulfillmentService.mdx (#6936) 2024-04-04 09:36:16 +00:00
Kasper Fabricius Kristensen
7385a67dc7 feat(dashboard): Update v2 store domain to follow conventions, and abstract some logic (#6927)
**What**
- Updates the V2 store domain.
- Abstracts some of the API requests logic into re-usable hooks

**Note**
- Partial PR as we need to add support for setting a default currency, region and location. Currently the `q` param is missing on all V2 endpoints, so we can't use our combobox component to list these options. Will be added later when that has been fixed in core.
- The PR includes a generic hook for fetching combobox data, that I added before realising that `q` is not currently supported. But keeping it as it will be useful once support is added.
2024-04-04 07:15:17 +00:00
Kasper Fabricius Kristensen
3044ecaf61 fix promotions loader (#6928) 2024-04-04 07:34:43 +02:00
Adrien de Peretti
49f16ab08d fix(medusa): Fix get-query-config backward compatiblity (#6913) 2024-04-03 17:14:29 +02:00
Carlos R. L. Rodrigues
56c04f452c Fix(medusa-test-utils): config loader (#6919) 2024-04-03 09:28:40 -03:00
Adrien de Peretti
b3a3993423 fix(medusa-test-utils): recompute driver options (#6917)
* fix(medusa-test-utils): recompute driver options

* Create seven-bears-reply.md

* Update seven-bears-reply.md
2024-04-03 11:59:29 +02:00
Carlos R. L. Rodrigues
a164c0d512 feat(workflows-sdk,orchestration): async step as background task (#6886) 2024-04-03 11:17:00 +02:00
Shahed Nasser
3dcf5224a1 chore: updated TSDocs of the Currency Module (#6908)
Updated TSDocs of the Currency Module
2024-04-03 07:32:08 +00:00
github-actions[bot]
62752c70c8 chore(docs): Removed Docs Announcement Bar (automated) (#6915)
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-04-03 07:12:17 +00:00
Philip Korsholm
edafe7db47 Feat(link-module, core-flows, medusa): Add sales channel location management (#6905)
* add locations with sales channels

* init, not working location based management

* working adding sales channel stock locations

* remote sales channels from location

* remove console log

* rm allowedFields

* redo errorhandler

* make validation take an array

* add changeset

* fix build

* Update packages/core-flows/src/sales-channel/workflows/remove-locations-from-sales-channel.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* add default cases to return early

* cleanup

* add sc test and remove associations

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-04-03 08:38:53 +02:00
Adrien de Peretti
27f4f0d724 fix(fulfillment): Wrong type usage (#6914)
**What**
Fix the types used in the fulfillment module service interface
2024-04-02 16:22:57 +00:00
Kasper Fabricius Kristensen
982fb44cde fix(dashboard): Combobox should not disable body after being closed (#6909)
**What**
- Fixes an issue where opening a Combobox inside a modal, and then closing the modal would result in the body preserving the `pointer-events: none;` style.
2024-04-02 14:31:27 +00:00