Commit graph

39 commits

Author SHA1 Message Date
Lukasz Ostrowski
1d7af07764
Remove @types/node-fetch dep (#210) 2023-03-09 14:01:01 +01:00
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
e7b7badefd Remove release-it 2023-02-27 18:40:22 +01:00
Lukasz Ostrowski
dffd4f5318
Install changesets (#179)
* Install changesets

* Add CICD workflows
2023-02-15 09:29:12 +01:00
Lukasz Ostrowski
6ffaba2dab
Allow setting initial theme from constructor in AppBridge (#162)
* Allow passing initial theme value, change initial notifyOnReady

* Update doc
2023-01-24 19:21:05 +01:00
Krzysztof Wolski
75eacaf49c
Bump vitest version (#157) 2023-01-23 09:35:49 +01:00
Krzysztof Wolski
62bdb80385
Implement APL 2.0 (#143)
* Implement APL 2.0

* Rename RestAPL to SaleorCloud APL

* Add mapping helper

* Modify Saleor APL documentation

* Update rest of the docs

* Update the node version in actions

* Update fetch mock

* Remove node-fetch pkg

* Remove console log

* Update test after the rebase
2023-01-11 16:55:10 +01:00
Lukasz Ostrowski
f612da9035
Add authenticated fetch (#138)
* Add authenticated fetch

* Add tests

* Update vitest

* setup node-fetch

* update lockfle

* change to global.fetch

* add mock fetch

* Change window.fetch to global.fetch
2022-12-12 11:47:23 +01:00
Lukasz Ostrowski
9061c76df7
Install lint-staged in devDependency, so it doesnt require internet on precommit (#111) 2022-11-21 15:29:50 +01:00
Krzysztof Wolski
e439438d8f
Add functions to process the Saleor webhooks (#100)
* Add functions to process the saleor webhooks

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2022-11-03 13:05:28 +01:00
Michał Miszczyszyn
8465582166
Downgrade node-fetch to maintain compatibility with commonjs (#85) 2022-10-17 12:08:26 +02:00
Lukasz Ostrowski
864ca16f78
Auth features (#64)
* Add useDashboardToken to app bridge module

* Add authorization HOC

* Fixes
2022-10-05 13:12:19 +02:00
Lukasz Ostrowski
0352356fd3
Add Handler factories (#61)
* Add createManifestHandler

* Add register handler factory

* Add docs to handlers factory

* Improve tsup configuration (select entry points)

* Reexport symbols from index

* Improve tests
2022-09-21 11:25:01 +02:00
Lukasz Ostrowski
df504ecd29
Setup code coverage report to github action (#62) 2022-09-16 11:01:02 +02:00
Lukasz Ostrowski
cc18c3deac
Add AppBridgeProvider and events factory (#51)
* Add events factory

* Add AppBridgeProvider

* Rewrite useAppBridge, add tests
2022-09-13 12:00:02 +02:00
Jakub Neander
aaab88b9ae
Update dependencies (#48)
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2022-09-12 14:58:47 +02:00
Krzysztof Wolski
18bdeff68b Add localEnv apl 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
Krzysztof Wolski
1f0961a4de Fix lock file 2022-09-01 12:09:07 +02:00
Lukasz Ostrowski
ded5b5d955 Remove np package
0.9.0-0

Publish dist folder

cancel dist contents

0.9.0-1

Fix package dist exports

0.9.0-2

debug np

Bump version

Remove np package

rollback npm version
2022-09-01 09:39:05 +02:00
Lukasz Ostrowski
9602422dbe Install release-it 2022-08-30 11:55:37 +02:00
Lukasz Ostrowski
6de0675784 Install debug package and add debug messages to AppBridge 2022-08-26 09:24:56 +02:00
Lukasz Ostrowski
a627e876ad install debug pakcage 2022-08-26 09:06:49 +02:00
Lukasz Ostrowski
8110818251 move app-bridge code and tests to app-sdk 2022-08-11 14:03:51 +02:00
Zaiste
e12156d988
Update dependencies 2022-08-10 10:59:48 +02:00
Zaiste
e9b9e4f1e1
Update the GitHub action 2022-08-10 10:57:07 +02:00
Krzysztof Wolski
215545aec5 Drop unused package watchlist 2022-08-09 19:21:23 +02:00
Lukasz Ostrowski
758e8646fc Install vitest, remove uvu 2022-08-08 14:57:00 +02:00
Krzysztof Wolski
60d824e351 Bump tsup and use it for the watch mode 2022-07-29 15:52:31 +02:00
Krzysztof Wolski
c48f02ca6f Configure eslint ts parser 2022-07-22 18:16:08 +02:00
Krzysztof Wolski
ebb0cfa01a Add husky/lint-staged 2022-07-20 16:33:03 +02:00
Krzysztof Wolski
e535b66b4a Add code formatting 2022-07-20 16:01:20 +02:00
Zaiste
41a4139943
Update dependencies 2022-07-14 14:41:37 +02:00
Zaiste
391b5921f3
Update dependencies 2022-07-06 16:26:38 +02:00
Tomasz Magulski
cc13260ef6 Webhooks signature verification middleware 2022-07-06 16:05:36 +02:00
Zaiste
11ab2af8cf
Fix the const subpath in exports 2022-05-30 16:14:54 +02:00
Zaiste
9b61a616fb
Update dependencies 2022-05-27 13:36:00 +02:00
Zaiste
9da7c92642
Add Saleor specific middlewares 2022-05-26 14:14:13 +02:00
Zaiste
3f4fdb5f57
initial commit 2022-05-24 22:16:49 +02:00