Adrien de Peretti and GitHub
3084008fc9
feat(index): Provide a similar API to Query ( #9193 )
...
**What**
Align the index engine API to be similar to the Query API
## Example
```ts
// Benefit from the same level of typing like the remote query
const { data, metadata } = await indexEngine.query<'product'>({
fields: [
"product.*",
"product.variants.*",
"product.variants.prices.*",
],
filters: {
product: {
variants: {
prices: {
amount: { $gt: 50 },
},
},
},
},
pagination: {
order: {
product: {
variants: {
prices: {
amount: "DESC",
},
},
},
},
},
})
```
2024-09-20 10:02:42 +00:00
Carlos R. L. Rodrigues and GitHub
1215a7c094
chore(orchestrator): remote joiner using entitymap ( #9205 )
2024-09-20 05:30:08 -03:00
58167b5dfa
feat(index): Index module foundation ( #9095 )
...
**What**
Index module foundation
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-18 19:04:04 +00:00
Adrien de Peretti and GitHub
c6795dfc47
feat(modules-sdk): Parse filters based on loaded modules graph ( #9158 )
2024-09-17 14:20:04 -03:00
8829f89402
chore: query graph api ( #9125 )
...
CLOSES: FRMW-2704
**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-09-16 11:32:44 +00:00
Carlos R. L. Rodrigues and GitHub
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Adrien de Peretti and GitHub
03d6b64a20
fix(): Query Missing bindings ( #9131 )
2024-09-13 18:22:38 +02:00
Harminder Virk and GitHub
c97ea9546d
feature: add tracing to remote query ( #9128 )
2024-09-13 14:09:59 +05:30
Adrien de Peretti and GitHub
a01e7e4ffe
chore: Register Query in container ( #9103 )
...
* chore(framework): Register the query
* chore(framework): Register the query
2024-09-11 15:08:46 +02:00
Carlos R. L. Rodrigues and GitHub
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Adrien de Peretti and GitHub
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
Harminder Virk and GitHub
32ebfa619f
feature: introduce types for query.graph method ( #9031 )
2024-09-09 13:26:40 +05:30
Adrien de Peretti and GitHub
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Carlos R. L. Rodrigues and GitHub
5a097d8954
feat(utils): dml to graphql ( #8951 )
2024-09-04 06:15:07 -03:00
Adrien de Peretti and GitHub
77b874f272
feat: Add support for providers to validate their options at loading time ( #8853 )
...
* feat: Add support for providers to validate their options at loading time
* fix missing removal
* fix integration tests
* add tests
2024-08-29 09:08:49 +02:00
2bacf86d3c
chore: Remove prepublishOnly script ( #8699 )
...
* wip
* wip
* verbose logging
* remove prepublish scripts
* chore: add back prepublish scripts
* wip
* remove prepublishOnly script
* chore: Clean up rest of build scripts
* add back build script
* feedback
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-27 10:31:38 +02:00
Carlos R. L. Rodrigues and GitHub
3b4eea08ef
chore: peer dependency version ( #8771 )
...
* fix peer dependency version
* dotenv
* commands
* dotenv cli
2024-08-26 21:55:57 +02:00
Carlos R. L. Rodrigues and GitHub
afd25846f0
chore: dependencies reorg ( #8744 )
2024-08-26 09:37:05 +00:00
Carlos R. L. Rodrigues and GitHub
058378970a
chore: dependecies reorg ( #8535 )
2024-08-23 07:16:04 -03:00
Carlos R. L. Rodrigues and GitHub
c9c1a5b41c
chore: rm pg dependency ( #8526 )
2024-08-08 17:22:57 +00:00
Carlos R. L. Rodrigues and GitHub
3f5ddc5bce
chore: normalize packages version ( #8492 )
2024-08-08 13:52:05 +00:00
Shahed Nasser and GitHub
848d0892d9
chore(core-flows,modules-sdk): add TSDocs to helper steps ( #8355 )
2024-07-30 18:59:02 +03:00
Stevche Radevski and GitHub
0d2e7befbd
feat: Add support for exporting products in backend ( #8214 )
...
CLOSES CC-221
CLOSES CC-223
CLOSES CC-224
2024-07-22 13:40:04 +00:00
Adrien de Peretti and GitHub
f74fdcb644
breaking: rework how links database migrations are managed ( #8162 )
2024-07-22 13:12:23 +05:30
Adrien de Peretti and GitHub
ecc97076b5
chore: default isQueryable module ( #8192 )
...
* chore: default isQueryable module
* fix defaults
* fix
2024-07-19 16:14:42 +02:00
Stevche Radevski and GitHub
26d600b6db
feat: Ensure async workflow executions have access to shared container ( #8157 )
...
* feat: Ensure async workflow executions have access to shared container
* fix: Register workflow worker on application start
2024-07-17 12:17:48 +02:00
Adrien de Peretti and GitHub
f6e86f1b99
chore: temporarely disabling link revert ( #8105 )
2024-07-12 15:05:56 +02:00
Adrien de Peretti and GitHub
104b00d4e9
feat(migrations): CLI generate command ( #8103 )
2024-07-12 13:12:49 +02:00
Harminder Virk and GitHub
45c573b03a
Feat: Improvements to the migrations CLI and workflow ( #8060 )
2024-07-11 16:52:34 +05:30
Carlos R. L. Rodrigues and GitHub
de36e2b36e
chore: rename return flow ( #8050 )
2024-07-10 08:09:10 -03:00
Adrien de Peretti and GitHub
fc7f5ff71a
fix: Modules providers loading mechanism to infer the source dir ( #8015 )
...
* fix: Modules providers loading mechanism to infer the source dir
* finalize
2024-07-08 14:11:45 +02:00
Adrien de Peretti and GitHub
f49139b20f
fix: custom link resolution in medusa app ( #7950 )
...
* fix custom link resolution in medusa app
* improve
* fix duplicate
2024-07-04 16:50:53 +02:00
Adrien de Peretti and GitHub
7b84d854f0
Feat/mikro orm based linkable ( #7944 )
...
**What**
- Generate simple linkable for mikro orm based modules
- fix module util
- fix joiner config builder
- fix define link relationship extension
- fix migrations not loading custom links
2024-07-04 13:30:47 +00:00
Adrien de Peretti and GitHub
41c4307fc7
feat: define link util ( #7931 )
...
* feat: define link util
* handle pluralized fieldAlias for isList
* serviceName ar reference
* finalize
* todo
* WIP
* finalize
* fix tests
* update typings
* fix Module
* linkable
* update errors
2024-07-04 10:37:30 +02:00
Riqwan Thamir and GitHub
78a4bcc700
fix(dashboard): breaking store page due to default currency ( #7915 )
...
* chore: fix breaking store page due to default currency
* fix: remote query checks all data when scoped by id
* chore: minor change
2024-07-04 09:37:36 +02:00
Stevche Radevski and GitHub
012a624ee4
feat: Flatten the provider config for all modules ( #7930 )
2024-07-03 16:57:12 +02:00
617a5972bf
feat: refactor module joiner config and links generation ( #7859 )
...
* feat: refactor module joiner config and links generation
* improve typings
* WIP
* WIP
* WIP
* rename type file
* create link config
* finish typings and add utils
* improve links
* WIP typings
* finalize ExportModule utils
* finalize ExportModule utils
* fix: dml tests
* improve and fixes
* simplify typings with id changes
* add toJSON
* multiple fixes and entity builder fixes
* fix currency searchable
* fix tests
* medusa service refactoring
* cleanup
* cleanup and fixes
* make module name optional
* renaming
---------
Co-authored-by: Harminder Virk <virk.officials@gmail.com >
2024-07-03 13:12:49 +02:00
Carlos R. L. Rodrigues and GitHub
a7844efd09
chore: move ModuleRegistrationName to utils ( #7911 )
2024-07-03 06:30:56 -03:00
Carlos R. L. Rodrigues and GitHub
5600e58b7f
chore(orchestration): idempotent ( #7771 )
2024-06-25 10:34:00 -03:00
Adrien de Peretti and GitHub
937a632eb6
chore: make module loaders DML aware and auto generate joiner config ( #7781 )
...
* chore: make module loaders DML aware and auto generate joiner config
* fixes and cleanup
* improve dml entity check
* add unit tests on load resources
* cleanup deps
* cleanup deps
* cleanup Modules
* finalise
* fix modules-sdk jest
* fix modules-sdk jest
* fix import
* fix import
2024-06-20 18:18:07 +02:00
Riqwan Thamir and GitHub
03924a4ff6
chore: move to swc/jest ( #7739 )
...
* chore: move to swc
* chore: fix tax rate tests
* chore: undo failed test
* chore: fix unit tests script
* chore: use node 20
* Update scripts/run-workspace-unit-tests-in-chunks.sh
2024-06-20 12:59:33 +02:00
48963f55ef
Chore/rm main entity concept ( #7709 )
...
**What**
Update the `MedusaService` class, factory and types to remove the concept of main modules. The idea being that all method will be explicitly named and suffixes to represent the object you are trying to manipulate.
This pr also includes various fixes in different modules
Co-authored-by: Stevche Radevski <4820812+sradevski@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-06-19 13:02:16 +00:00
Carlos R. L. Rodrigues and GitHub
bc0c65c6b3
feat(modules-sdk): define link ( #7743 )
2024-06-17 09:28:42 -03:00
Riqwan Thamir and GitHub
3d33f06e77
chore: upgrade jest everywhere ( #7703 )
2024-06-14 07:35:30 +02:00
Carlos R. L. Rodrigues and GitHub
56f65f319d
fix(modules-sdk): dependencies ( #7622 )
2024-06-05 11:46:07 -03:00
Harminder Virk and GitHub
2b62686ec6
implement events to the pricing module ( #7584 )
2024-06-05 17:33:49 +05:30
Riqwan Thamir and GitHub
ecfbfcc707
feat(core-flows,modules-sdk,types,medusa,link-modules): adds variant <> inventory item link endpoints ( #7576 )
...
what:
- adds variant inventory link management endpoints:
```
Link inventory item to variant
POST /products/:id/variants/:vid/inventory-items
Update variant's inventory item link
POST /products/:id/variants/:vid/inventory-items/:iid
Unlink variant's inventory item
DELETE /products/:id/variants/:vid/inventory-items/:iid
```
- a batch endpoint that does the above 3 across variants
```
POST /products/:id/variants/inventory-items
```
2024-06-03 18:23:29 +00:00
Carlos R. L. Rodrigues and GitHub
122186a78d
chore(order): cancel order ( #7586 )
2024-06-03 12:31:33 -03:00
Harminder Virk and GitHub
11528526fa
feat: loosely typed container
2024-05-31 15:22:03 +05:30
Adrien de Peretti and GitHub
61977bd392
chore: Allow modules to discover resources from ts/js and local directories ( #7520 )
...
**What**
Update the module resources discovery to account to the source directory to look into.
example:
```ts
user: { resolve: 'user' }
```
The above config will load the resources from the resolved path looking from the node modules
```ts
user: { resolve: './modules/user' }
```
The above config will load the resources from the local directory under dist if not run with ts node and under src otherwise
2024-05-30 09:14:55 +00:00