Commit graph

351 commits

Author SHA1 Message Date
Lukasz Ostrowski
75eff60856 Changelog 2023-03-07 12:25:17 +01:00
Lukasz Ostrowski
e35d9c7fc1 Add comment to typed payload 2023-03-07 12:21:54 +01:00
Lukasz Ostrowski
0f750657cf export SyncWebhookResponsesMap 2023-03-07 12:21:54 +01:00
github-actions[bot]
92ecc327a4
Release to npm (#203)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-07 11:42:19 +01:00
Lukasz Ostrowski
f5643fba6b Update expected payloads 2023-03-07 11:02:37 +01:00
Lukasz Ostrowski
ff65b615a8 Fix debug message for SaleorWebhook 2023-03-07 10:52:23 +01:00
Lukasz Ostrowski
a17232632c Fix webhook legacy fields 2023-03-07 08:30:38 +01:00
Lukasz Ostrowski
4574178fff Export NextWebhookApiHandler 2023-03-06 16:36:32 +01:00
Lukasz Ostrowski
15bacfeef1 Improve formatting for comments 2023-03-06 15:51:22 +01:00
Lukasz Ostrowski
256d17bc23 Add npm token to workflow 2023-03-06 15:42:37 +01:00
Lukasz Ostrowski
4de957e5b3 Improve the workflow 2023-03-06 15:35:50 +01:00
Lukasz Ostrowski
17428c8a3b Run publish to @dev tag in npm on each commit 2023-03-06 15:31:49 +01:00
Lukasz Ostrowski
b79c188cfd dry-run app-sdk snapshot 2023-03-06 15:24:15 +01:00
Lukasz Ostrowski
1f4bb64a3e Fix test 2023-03-06 15:06:10 +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
github-actions[bot]
bc6e68db84
Release to npm (#197)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-28 13:59:29 +01:00
Lukasz Ostrowski
a939281e98
Improve register handler errors API (#201) 2023-02-28 13:54:58 +01:00
Hazem Khaled
5a93a166ab
typo: UpstashAPL need restURL not restUrl (#196)
* typo restURL not restUrl

* Create .changeset/wild-suits-hug.md

---------

Co-authored-by: Lukasz Ostrowski <lukasz@monolog.tech>
2023-02-27 20:41:06 +01:00
Lukasz Ostrowski
aa6fbaf2ec Restore previous setup 2023-02-27 18:53:51 +01:00
Lukasz Ostrowski
ee80d38390 Add env to publish step 2023-02-27 18:49:48 +01:00
Lukasz Ostrowski
9db4eee700 Fix workflow 2023-02-27 18:46:13 +01:00
Lukasz Ostrowski
e7b7badefd Remove release-it 2023-02-27 18:40:22 +01:00
github-actions[bot]
c1c5dbe133
Release to npm (#195)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 18:34:06 +01:00
Lukasz Ostrowski
8be1d39bdf fix scirpt 2023-02-27 18:32:16 +01:00
github-actions[bot]
ae75fa3be4
Release to npm (#194)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 18:29:49 +01:00
Lukasz Ostrowski
481cc55543 Try to fix workflow 2023-02-27 18:27:02 +01:00
github-actions[bot]
e71fa4c993
Release to npm (#193)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 18:22:07 +01:00
Lukasz Ostrowski
bf5764fa73 Change how tagging works 2023-02-27 18:19:30 +01:00
github-actions[bot]
eda827847b
Release to npm (#192)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 18:12:05 +01:00
Lukasz Ostrowski
5b5e6821be Run tags publish only after changesets publish 2023-02-27 18:09:36 +01:00
Lukasz Ostrowski
5b7f3cf539 Fix worfklow tag creation 2023-02-27 18:05:29 +01:00
github-actions[bot]
bea1e176c1
Release to npm (#191)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 17:56:21 +01:00
Lukasz Ostrowski
cce32fbbf3 Fix workflow tags 2023-02-27 17:54:07 +01:00
github-actions[bot]
3d64c29ef1
Release to npm (#190)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 17:38:36 +01:00
Lukasz Ostrowski
d83c7ab09b fix publishing workflow 2023-02-27 17:36:23 +01:00
github-actions[bot]
2f5c44352e
Release to npm (#189)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 17:30:29 +01:00
Lukasz Ostrowski
cd25a3bb0e Enable npm publish on changeset 2023-02-27 17:27:33 +01:00
github-actions[bot]
e42d4b9d88
Release to npm (#188)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 17:17:26 +01:00
Lukasz Ostrowski
0868baaa05 Enable dry run publish 2023-02-27 17:14:12 +01:00
Lukasz Ostrowski
9e22a49acc
Change AppBridge default autoNotifyReady to true (#185)
* Change AppBridge default autoNotifyReady to true

* Add changeset
2023-02-27 16:39:01 +01:00
Lukasz Ostrowski
8beab201be Release 0.31.0 2023-02-27 14:37:43 +01:00
Lukasz Ostrowski
195f2d9127
Add hooks to createAppRegsiterHandler (#183)
* Add hooks to createAppRegsiterHandler

* Add error handling and flatten structure

* Add tests

* Add docs

* CR suggestions applied

* Update docs
2023-02-27 14:36:22 +01:00
Lukasz Ostrowski
ff1d92a48a Release 0.30.0 2023-02-26 18:38:10 +01:00
Hazem Khaled
b743987e4a
Import types from the right path (#184) 2023-02-26 18:37:19 +01:00
Lukasz Ostrowski
020d6aaa39
Remove Vercel APL (#170) 2023-02-26 18:35:04 +01:00
Lukasz Ostrowski
745cb49cbf
Add note about protected handler (#182) 2023-02-20 10:50:33 +01:00
Lukasz Ostrowski
258a203c5c
Update README.md 2023-02-15 12:07:55 +01:00
Lukasz Ostrowski
d86bbb85fa Disabled dry run push 2023-02-15 12:06:39 +01:00
Lukasz Ostrowski
3292b5d172 Fix pnpm action 2023-02-15 11:54:44 +01:00
Lukasz Ostrowski
a6c26bbb6e Release 0.29.0 2023-02-15 11:30:20 +01:00