Commit Graph

259 Commits

Author SHA1 Message Date
Riqwan Thamir
a729fb3fbb feat(utils,types,framework,medusa): store endpoints should require publishable key (#9068)
* feat(utils,types,framework,medusa): store endpoints should require publishable key

* chore: fix specs

* chore: fix more specs

* chore: update js-sdk

* chore: fix specs wrt to default SC

* chore: revert custom headers + change error message

* chore: fix specs

* chore: fix new store specs
2024-09-11 15:08:37 +02:00
Carlos R. L. Rodrigues
fdd0543011 chore: joiner config entity property (#9084) 2024-09-11 06:25:25 -03:00
Riqwan Thamir
d398009d3f feat(payment): Payment providers are upserted upon loading (#9090) 2024-09-11 09:01:24 +02:00
Oli Juhl
4bf42f7889 fix: Update auth app_metadata when deleting users + customers (#9041)
* wip

* more work

* working on stuff

* more

* fix test

* remove incorrect test

* fix test

* fix: Only allow deletion of yourself

* remove redundant tests
2024-09-10 19:58:16 +02:00
Riqwan Thamir
afd0921326 fix(utils,medusa,order,cart): fix totals when promotions are included (#9014)
* fix(utils): fix totals when promotions are included

* chore: update totals calc

* chore: ignore taxes when taxable amount is 0

* chore: use subtotals everywhere

* chore: fix shipping totals + tests
2024-09-10 10:59:22 +02:00
Shahed Nasser
c962283281 fix(types, medusa): request / response types clean-up (#9043)
More clean-up of request / response types
2024-09-09 06:59:43 +00:00
Adrien de Peretti
2c5e72d141 feat: Application types generation from project GQL schema's (#8995) 2024-09-06 15:15:32 +05:30
Riqwan Thamir
0573bb924a chore: Remove typeORM (#9005)
* chore: rename js files to txt

* chore: rename ts files to txt

* chore: delete environment helpers

* chore: convert global setup & teardown to txt

* chore: rename helper js/ts files to txt

* chore: rename seeder js/ts files to txt

* chore: remove typeorm

* chore: reintroduce used helpers
2024-09-05 15:45:30 +02:00
Riqwan Thamir
5d7179b7d0 feat(core-flows,types,promotion): register promotion campaign usage upon cart completion (#8970)
* feat(core-flows,types,promotion): register promotion campaign usage upon cart completion

* Apply suggestions from code review

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

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-09-05 10:43:29 +02:00
Carlos R. L. Rodrigues
2a055b71ef feat(core-flows): custom price flag for order line items and shipping methods (#8969)
CLOSES: CC-402
2024-09-04 20:30:59 +00:00
Riqwan Thamir
e49d004fef chore: remove promotions in campaign validators + move tests to http (#8965) 2024-09-03 14:19:42 +02:00
Riqwan Thamir
230acb700b feat(core-flows,types): Refunds can only be performed when order is imbalanced (#8944)
* feat(core-flows,types): Refunds can only be performed when order is imbalanced

* Apply suggestions from code review

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

* chore: fix tests

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-09-03 13:53:20 +02:00
Adrien de Peretti
99461e24ab feat(notification): Handle long running transaction and add status support (#8900)
RESOLVES FRMW-2110
RESOLVES FRMW-2095

**What**
- Fix notification module to not retain transactions open while sending notification
- Add support for notification status [success, pending, failure]
2024-09-01 08:01:47 +00:00
Carlos R. L. Rodrigues
4ffb49efd0 chore(cart): completed at (#8921) 2024-08-31 12:42:58 -03:00
Carlos R. L. Rodrigues
891037081d chore(core-flows): apply taxes to items and shipping on RMA flows (#8858)
** What
Apply taxes to order line items and shipping methods
2024-08-29 17:33:39 +00:00
Oli Juhl
c11ef01c15 feat: Separate registration from authentication in auth domain (#8683)
* wip

* feat: Introduce register

* fix: user command

* fix: Invite HTTP tests

* fix: Auth tests

* fix: Invite modules tests
2024-08-27 13:44:52 +02:00
Carlos R. L. Rodrigues
058378970a chore: dependecies reorg (#8535) 2024-08-23 07:16:04 -03:00
Carlos R. L. Rodrigues
9931b69a2a chore(core-flows): test allow backorder (#8725) 2024-08-22 11:47:31 +00:00
Riqwan Thamir
335061d8cd feat(medusa,types,core-flows): apply created_by values - claims, exchanges, returns, fulfillment (#8712)
what:

- Applies created_by values - claims, exchanges, returns, fulfillment

RESOLVES CC-96
2024-08-21 18:15:55 +00:00
Harminder Virk
5f310c0a00 breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix (#8672) 2024-08-20 17:05:19 +05:30
Riqwan Thamir
4791d1d775 fix(promotion): validate rules accurately when attribute is scoped by context (#8655) 2024-08-19 15:38:42 +02:00
Stevche Radevski
a013c4edc5 feat: Move userpass default definition to defineConfig instead of a hard-coded value (#8557) 2024-08-13 11:10:23 +02:00
Carlos R. L. Rodrigues
96bdf3e2c6 chore(core-flows): order transactions (#8568)
What:

- Add order transaction when Cart is completed and payment is refunded
2024-08-12 19:06:58 +00:00
Carlos R. L. Rodrigues
c9c1a5b41c chore: rm pg dependency (#8526) 2024-08-08 17:22:57 +00:00
Carlos R. L. Rodrigues
3f5ddc5bce chore: normalize packages version (#8492) 2024-08-08 13:52:05 +00:00
Carlos R. L. Rodrigues
1fb679e785 feat(core-flows): manage inventory reservation of claims and exchanges (#8448) 2024-08-07 07:49:58 -03:00
Carlos R. L. Rodrigues
3d7dce2bec fix(core-flows): copy line items attribute (#8471)
removing `requires_shipping` from variant won't be part of this PR
2024-08-06 18:58:08 +00:00
Carlos R. L. Rodrigues
5125d1328d chore(medusa,core-flows): cart payment collection link (#8457) 2024-08-06 06:12:21 -03:00
Carlos R. L. Rodrigues
8700896ce6 fix(medusa): plus sign to space (#8454) 2024-08-06 08:01:39 +02:00
Stevche Radevski
3a068c6b27 feat: Use tag ids instead of values wherever possible (#8394) 2024-08-02 09:22:03 +02:00
Oli Juhl
dbd0b18726 feat: Add requested_at + open status to return (#8391)
* feat: Add requested_at + open status to return

* Update return in confirm claim workflow

* Revert snapshot

* feat: Change OrderChangeType

* fix test
2024-08-01 16:20:45 +02:00
Carlos R. L. Rodrigues
accf884bb1 chore(core-flows): Order Exchange - initial workflows (#8374)
PR: 1:n

This is the first PR with a initial skeleton for Order exchange workflows.
This is not yet to be considered functional or reflecting the exact behavior of Order Exchanges.

What:
* organize folder structure of order-related steps and workflows 
* initial worklows for Order exchange - This first draft is just a copy of Claims behavior
2024-08-01 10:27:06 +00:00
Adrien de Peretti
a9fea986b0 chore(framework): Move and improve subscriber loader (#8347)
**What**
Move `SubscriberLoader` and improve implementation

FIXES FRMW-2635
2024-07-30 12:54:31 +00:00
Carlos R. L. Rodrigues
d63ca00214 chore(core-flows): return fulfillment link (#8304) 2024-07-27 10:20:48 -03:00
Riqwan Thamir
71411463b1 feat(core-flows,medusa): add endpoint to add/remove fulfillment providers to location (#8299)
what:

- add endpoint to add/remove fulfillment providers to location
- specs cleanup from previous PR

RESOLVES CC-259
2024-07-26 14:35:19 +00:00
Riqwan Thamir
91c17651f1 feat(core-flows, fulfillment): validate shipping options to stock locations (#8291)
what:

- validate shipping options to stock locations

RESOLVES CC-232
2024-07-26 12:26:26 +00:00
Adrien de Peretti
2188a4e1ba fix: isList on field alias in link configuration (#8244)
* fix/link-configuration-is-list-on-fieldsAlias

* fix tests

* fix tests

* fix tests
2024-07-24 10:18:38 +02:00
Carlos R. L. Rodrigues
7a5349c0ae chore(core-flows): adjust inventory when return is received (#8222) 2024-07-23 13:36:46 -03:00
Adrien de Peretti
47dde05517 chore(framework): Initial commit (#8221)
**What**
- Initiate the framework package (which is just a place to move things around for now)
- move the config loader and related resources as well as the `ConfigModule` type
- Create a ConfigManager singleton which prepare and store the config (later can be stored entirely in the container) and allow for easier test override
- re export the logger from the framework
- replace medusa config loader with the framework one
- `build` run type check on tests as well but `prepublishOnly` will not fail on build if tests are typed broken

FIXES FRMW-2607
FIXES FRMW-2609
FIXES FRMW-2614
FIXES FRMW-2618
2024-07-23 15:46:28 +00:00
Stevche Radevski
4b09be3a88 feat: Add skeleton for supporting product imports in BE (#8232) 2024-07-23 11:16:14 +02:00
Stevche Radevski
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
Carlos R. L. Rodrigues
fb29b958fa chore(inventory, core-flows): big number support (#8204) 2024-07-22 06:32:25 -03:00
Adrien de Peretti
f74fdcb644 breaking: rework how links database migrations are managed (#8162) 2024-07-22 13:12:23 +05:30
Carlos R. L. Rodrigues
07205e4249 fix(utils): totals calculation (#8190) 2024-07-19 06:49:49 -03:00
Adrien de Peretti
398e39d163 fix: product module joiner config (#8170)
* fix: product module joiner config

* fix aliases

* revert package.json

* add js doc
2024-07-18 11:27:21 +02:00
Carlos R. L. Rodrigues
1acfdc4ffe chore(core-flows, medusa): cancel request return (#8153)
* fix(core-flow): request item return reason

* chore(core-flows): cancel request return
2024-07-17 09:35:46 +01:00
Harminder Virk
f579f0b3be feat: restructure events payload (#8143)
* refactor: restructure events payload

Breaking change: This PR changes the event payload accepted by the event
listeners

* refactor: fix failing tests and implement feedback

* add integration tests

* fix timeout

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
2024-07-16 17:09:16 +01:00
Carlos R. L. Rodrigues
5813216c88 core(core-flows, medusa): remove request item return (#8146) 2024-07-16 11:23:34 -03:00
Carlos R. L. Rodrigues
7123f9ff63 feat(core-flows,medusa,order): remove return shipping (#8137)
What:
* `DELETE /admin/returs/:id/shipping_methods/:action_id`

FIXES: CC-187
2024-07-16 10:27:16 +00:00
Oli Juhl
b7e6b1461b feat: Returns order previews (#8135)
* work on order previews

* fix create return shipping flow

* fix http tests

* fix tests
2024-07-16 11:07:04 +01:00