Carlos R. L. Rodrigues
45134e4d11
chore: local workflow proxying methods to pass context ( #6263 )
...
What:
- When calling a module's method inside a Local Workflow the MedusaContext is passed as the last argument to the method if not provided
- Add `requestId` to req
- A couple of fixes on Remote Joiner and the data fetcher for internal services
Why:
- The context used to initialize the workflow has to be shared with all modules. properties like transactionId will be used to emit events and requestId to trace logs for example.
2024-02-01 13:37:26 +00:00
Riqwan Thamir
e749dd653c
feat(types): added computed actions for automatic promotions ( #6272 )
...
what:
- compute actions account for automatic promotions (RESOLVES CORE-1701)
RESOLVES CORE-1689
2024-01-31 12:30:33 +00:00
Sebastian Rindom
36ec3ea3aa
feat(customer): admin addresses ( #6235 )
...
**What**
- GET /admin/customers/:id/addresses
- POST /admin/customers/:id/addresses
- POST /admin/customers/:id/addresses/:address_id
- DELETE /admin/customers/:id/addresses/:address_id
2024-01-31 09:55:07 +00:00
Sebastian Rindom
ca0e0631af
feat(customer): add customer group management apis ( #6233 )
...
**What**
```
POST /admin/customer-groups
POST /admin/customer-groups/:id
GET /admin/customer-groups/:id
DELETE /admin/customer-groups/:id
```
- Workflows
2024-01-30 19:37:53 +00:00
Philip Korsholm
7d5a6f8b00
feat(auth, medusa): Initial auth module middleware ( #6271 )
...
note: This is an initial implementation
Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com >
2024-01-30 12:23:20 +00:00
Sebastian Rindom
18ff739a94
feat(customer): admin CRUD endpoints ( #6232 )
...
**What**
- GET /customers/:id
- POST /customers/:id
- DELETE /customers/:id
- POST /customers
Including workflows for each.
2024-01-30 11:43:30 +00:00
Sebastian Rindom
87390704be
feat(customer): list customer ( #6206 )
...
**What**
- GET /admin/customers
- GET /admin/customer-groups
2024-01-29 16:56:39 +00:00
Philip Korsholm
512b041929
Feat(auth): Rename authentication to auth ( #6229 )
...
**What**
- rename `authenticationModule` -> `authModule`
2024-01-29 10:19:30 +00:00
Philip Korsholm
a41aad4bea
feat(authentication, types, utils): Add Authentication provider scopes ( #6228 )
...
* initial implementation
* add test for invalid scope
* get config from scope not db
* assign config from scope
* fix package.json
* optional providers
* make providers options
* update type
2024-01-29 17:42:42 +08:00
Philip Korsholm
d1c18a3090
feat(medusa, stock-location, types): Add q and order params to list-stock-locations ( #6197 )
...
**What**
- add `q` and `order` params to list-stock-location endpoint
closes #6189
2024-01-29 09:14:39 +00:00
Frane Polić
3db2f95e65
feat: sales channel module ( #5923 )
2024-01-29 09:47:28 +01:00
Sebastian Rindom
8c6cc82c5d
feat(customer): add customer addresses ( #6224 )
...
**What**
- adds methods to create update list customer addresses
- removes default_shipping_id and billing id from customer record and moves them to address (better normalization)
2024-01-26 15:35:23 +00:00
Philip Korsholm
638b47ff70
feat(authentication, types): split authenticate method into two ( #6184 )
...
* init
* fetch providers using updated string
* update loaders
* add more tests
* add authenticationresponse type
* update types for authentication method
* add entity_id and update provider
* update pr with return type
* create loaders onApplicationStart
* cleanup provider class
* run application start hook before each
* fix pr feedback
* create private onApplicationStart method
* assign repository
* init
* add entity_id and update provider
* initial implementation
* update lockfile
* fix conflicts
* add config variables
* update types
* refactor google provider
* re-order methods
* fix pr feedback p. 1
* add initial type and update callback authorization
* add google provider to integration test
* fix feedback
* initial implementation (#6171 )
* initial implementation
* remove oauth lib
* move abstract authentication provider
* shuffle files around
* init
* add entity_id and update provider
* initial implementation
* update lockfile
* fix conflicts
* add config variables
* update types
* refactor google provider
* re-order methods
* fix pr feedback p. 1
* add initial type and update callback authorization
* add google provider to integration test
* fix feedback
* initial implementation (#6171 )
* initial implementation
* remove oauth lib
* move abstract authentication provider
* shuffle files around
* Update packages/authentication/src/migrations/Migration20240122041959.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* split authentication methods
* call verify with token
* update integration tests
* feedback
* rename split methods
* fix provider integration test
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-01-26 11:37:23 +08:00
github-actions[bot]
3d0ae72887
chore: Version Packages ( #6039 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25 16:23:53 +01:00
Sebastian Rindom
e9435a8680
feat(customer): add softdelete/restore ( #6203 )
2024-01-25 12:38:02 +00:00
Oli Juhl
2b35700dbc
feat(cart): Item tax lines + shipping method tax lines ( #6136 )
2024-01-24 11:42:27 +00:00
Shahed Nasser
f29948a6a8
docs-util: created docblock-generator tool ( #6096 )
2024-01-24 11:13:40 +01:00
Philip Korsholm
b3d013940f
feat(authentication): Google authentication provider ( #6104 )
...
* init
* add entity_id and update provider
* initial implementation
* update lockfile
* fix conflicts
* add config variables
* update types
* refactor google provider
* re-order methods
* fix pr feedback p. 1
* add initial type and update callback authorization
* add google provider to integration test
* fix feedback
* initial implementation (#6171 )
* initial implementation
* remove oauth lib
* move abstract authentication provider
* shuffle files around
* Update packages/authentication/src/migrations/Migration20240122041959.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* call verify with token
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-01-24 09:57:58 +08:00
Riqwan Thamir
68d8daccd2
feat(medusa,types): added buyget support for modules ( #6159 )
2024-01-23 21:01:44 +01:00
Carlos R. L. Rodrigues
302323916b
feat: Workflow engine modules ( #6128 )
2024-01-23 10:08:08 -03:00
Carlos R. L. Rodrigues
d85fee42ee
chore: use loaded module reference ( #5763 )
2024-01-23 08:31:02 -03:00
Philip Korsholm
24bb26b81a
Feat(authentication): username password provider ( #6052 )
2024-01-23 09:04:22 +00:00
Shahed Nasser
4792c55226
docs: migrate guides to TSDoc references ( #6100 )
2024-01-22 18:38:35 +01:00
Sebastian Rindom
f72340ad87
feat(customer): add remove from group, update group ( #6158 )
...
Open #6149 again - was merged to wrong base branch.
2024-01-22 13:49:13 +00:00
Riqwan Thamir
99045848fd
feat(medusa,types,core-flows,utils): added delete endpoints for campaigns and promotions ( #6152 )
...
what:
adds delete endpoints for:
- campaigns (RESOLVES CORE-1686)
- promotions (RESOLVES CORE-1680)
2024-01-22 13:06:49 +00:00
Sebastian Rindom
76291823f4
feat(customers): add delete and update ( #6148 )
...
Depends on #6137
**What**
- Add update and delete methods to the customer module
2024-01-22 12:31:46 +00:00
Sebastian Rindom
a52586880c
feat(customer): Introduce customer group ( #6137 )
...
**What**
Methods for:
- Bulk create customers
- Bulk and single create of customer groups
- Assigning customer <> group relationships
- listing of customers and customer groups
++ Uses new repository loading mechanism
2024-01-22 11:24:22 +00:00
Oli Juhl
fd78f5e242
feat(cart): Shipping method adjustments ( #6119 )
2024-01-22 11:29:20 +01:00
Frane Polić
d47e946496
feat(payment): PaymentCollection CRUD ( #6124 )
2024-01-22 11:04:46 +01:00
Oli Juhl
06b33a9b45
feat(cart): Line item adjustments ( #6112 )
2024-01-22 09:55:47 +01:00
Riqwan Thamir
af7af73745
feat(medusa,utils): added campaign get endpoints ( #6125 )
...
what:
adds endpoints for the following:
- list endpoint (RESOLVES CORE-1682)
- retrieve endpoint (RESOLVES CORE-1683)
2024-01-19 14:54:40 +00:00
Adrien de Peretti
5e655dd59b
chore: Hide repository creation if they are not custom + add upsert support by default ( #6127 )
2024-01-19 15:09:38 +01:00
Sebastian Rindom
12aa1737d5
feat: customer module skeleton ( #6126 )
2024-01-19 10:18:54 +00:00
Riqwan Thamir
a12c28b7d5
feat(medusa,types): add promotion list/get endpoint ( #6110 )
...
what:
- adds get promotion endpoint (RESOLVES CORE-1677)
- adds list promotions endpoint (RESOLVES CORE-1676)
- uses new API routes
2024-01-18 16:01:19 +00:00
fPolic
8e4e6b043d
Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces
2024-01-18 16:01:51 +01:00
Oli Juhl
b132ff7669
feat(cart): Add line items in cart-creation ( #6114 )
2024-01-18 14:39:40 +01:00
Oli Juhl
7f7cb2a263
feat(cart): Shipping methods ( #6101 )
2024-01-18 12:16:15 +01:00
fPolic
81544088d3
fix: change type
2024-01-18 10:52:14 +01:00
Adrien de Peretti
130c641e5c
chore: Abstract module services ( #6087 )
...
**What**
Create a service abstraction for the modules internal service layer. The objective is to reduce the effort of building new modules when the logic is the same or otherwise allow to override the default behavior.
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-01-18 09:20:08 +00:00
fPolic
57b88968a7
fix: update DTO
2024-01-17 10:59:59 +01:00
Riqwan Thamir
68ddd866a5
feat(utils,types): add registerUsages for promotions + computeActions consider usage ( #6094 )
...
RESOLVES CORE-1639
RESOLVES CORE-1640
RESOLVES CORE-1634
2024-01-16 20:06:06 +00:00
Oli Juhl
a5e8bf06c6
feat(cart): Line items operations ( #6066 )
2024-01-16 15:44:49 +01:00
fPolic
ca0d6f5a9f
fix: method overloads
2024-01-16 14:13:48 +01:00
fPolic
dcdb6df6f8
fix: listPaymentCollections shape
2024-01-16 12:26:07 +01:00
fPolic
1cc888df80
feat: Sessions API update
2024-01-16 09:56:54 +01:00
Riqwan Thamir
e28fa7fbdf
feat(utils): add campaign + promotion create / update ( #6077 )
...
* chore: add campaign + promotion operations
* chore: update type
* chore: added validation for campaign_id and campaign
* chore: added update promotions for campaigns
* chore: update campaign on promotion
* chore: fix lint
* chore: add test to remove promotions
2024-01-16 09:37:57 +01:00
fPolic
66ec3d0931
wip: session methods
2024-01-15 18:40:05 +01:00
fPolic
fbd3fedb68
wip: service
2024-01-15 17:15:49 +01:00
fPolic
56752039cf
wip: interface and types
2024-01-15 15:18:02 +01:00
Riqwan Thamir
fade8ea7bf
feat(utils,types): campaigns and campaign budgets + services CRUD ( #6063 )
...
* chore: added item/shipping adjustments for order/items/shipping_methods
* chore: add validation for order type and target rules
* chore: add comment for applied promotions
* chore: add shipping method and item adjustments
* chore: include applied promotions to items/shipping_method for each case
* chore: handle case for items across and order to consider existing applications
* chore: handle case for applied promo values to shipping => across
* chore: added changeset
* chore: update return of function
* chore: campaigns and campaign budgets + services CRUD
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* chore: minor refactor
* chore: added single/bulk interfaces
* Apply suggestions from code review
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
* chore: use DAL date entity
* chore: align nullable
* Update packages/promotion/src/models/promotion-rule.ts
* chore: fix types
* chore: review changes
* Update packages/promotion/src/utils/compute-actions/shipping-methods.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2024-01-12 14:14:34 +01:00