Commit graph

13 commits

Author SHA1 Message Date
Lukasz Ostrowski
9420209a2d
Add sync webhook (#202)
* Change process-async-saleor-webhook to process-saleor-webhook and add better debug logs

* Change processWebhook name

* wip

* Add base class structure

* refactor

* add sync payload builder

* wip

* wip

* Add some missing webhook responses

* Fix tests for Async version

* Fix tests

* Add MockAPL test util

* Refactor tests to use MockAPL

* Add test to sync webhook

* Restore legacy subscriptionQueryAst field for compatibility

* CR Fixes - TS type & event -> eventType

* Changelog, docs and remove old payment webhooks

* Apply suggestions from code review

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Update src/handlers/next/saleor-webhooks/process-saleor-webhook.ts

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-03-06 15:01:22 +01:00
Lukasz Ostrowski
ea65d37474
Add better error handling for async webhook factory (#176)
* Add better error handling for async webhook factory

* Add docs, make formatter function async

* Add docs, make formatter function async
2023-02-14 16:19:07 +01:00
Krzysztof Wolski
bec148e696
Add Upstash APL (#78) 2022-10-12 15:13:57 +02:00
Krzysztof Wolski
b41f54ad4c Split APL into single purpose ones, fix module export issue 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
0c4cabe229 Remove release-it/bumper package and bump release it version 2022-09-01 12:20:52 +02:00
Lukasz Ostrowski
710210cdf5 Merge branch 'main' into merge-bridge 2022-08-26 08:46:11 +02:00
Krzysztof Wolski
43f81f1af6 Introduce APL interface 2022-08-25 16:49:54 +02:00
Lukasz Ostrowski
8110818251 move app-bridge code and tests to app-sdk 2022-08-11 14:03:51 +02:00
Lukasz Ostrowski
cba596c910 Add test for urls 2022-08-08 16:55:57 +02:00
Krzysztof Wolski
c48f02ca6f Configure eslint ts parser 2022-07-22 18:16:08 +02:00
Krzysztof Wolski
cd039517d2
Lint for using for ... in in favor of for ... of
Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
2022-07-22 17:53:33 +02:00
Krzysztof Wolski
3f9f854e7d
Linting for unhandled promises
Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
2022-07-22 17:52:02 +02:00
Krzysztof Wolski
e535b66b4a Add code formatting 2022-07-20 16:01:20 +02:00