Commit graph

46 commits

Author SHA1 Message Date
Lukasz Ostrowski
b365c7c830
Add saleor versions to app bridge (#260) 2023-06-22 15:46:16 +02:00
Lukasz Ostrowski
86d963e1e4
add request to createManifestHandler context (#258) 2023-06-22 11:32:11 +02:00
Lukasz Ostrowski
859c7277ca
Update AP docs (#254)
Remove retes from code examples
2023-06-14 12:31:02 +02:00
Lukasz Ostrowski
390fae2c97
Extend protectedHandler to contain user object with email and permissions (#252) 2023-06-13 14:52:53 +02:00
Lukasz Ostrowski
194745c02a
Update apl.md 2023-05-26 08:58:20 +02:00
Lukasz Ostrowski
f809368e4f
Add tokenRefresh event (#244)
* Add tokenRefresh event

* Create slow-oranges-serve.md

* update docs
2023-05-22 19:26:03 +02:00
Lukasz Ostrowski
d4169dc35a
Add delete method do settings manager and implement it metadata manager (#241)
* Add delete method do settings manager and implement it metadata manager

* Implement EncrypedMetadataManager.delete + changesets + docs

* Update src/settings-manager/metadata-manager.test.ts

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

* Fix test

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-05-21 18:42:35 +02:00
Michał Miszczyszyn
b108460435
Add types for payment webhooks (#212)
* Add types for payment webhooks

* Add transaction webhooks

* Update responses for transactions

* Create .changeset/gold-buses-warn.md

* Simplify returned values for some webhooks

* Update changesets

---------

Co-authored-by: Lukasz Ostrowski <lukasz@monolog.tech>
2023-03-30 14:23:12 +02:00
Lukasz Ostrowski
f7d38dc8d7
Authenticated fetch update (#215)
* Remove MANAGE_APPS permission for available permission

* Fix missing header in useAuthenticatedFetch and add docs

* Update docs/protected-handlers.md

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

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-03-14 12:31:11 +01:00
Lukasz Ostrowski
dfd632bb14
Add EnvAPL (#213)
* Add EnvAPL

* Add extra check for api url matching

* Add EnvAPL in exported files

* Change Apl to APL

* Change configured to always true

* Add readme

* Replace console table with log
2023-03-14 11:34:53 +01:00
Lukasz Ostrowski
f38f3f403b
Update saleor-webhook.md (#214) 2023-03-13 11:08:19 +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
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
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
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
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
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
51284efa00
Handle missing encryption key for the EncryptedMetadataManager (#159)
* Handle missing encryption key for the EncryptedMetadataManager

* Fancy up the documentation

* Throw an error instead of process exit
2023-01-23 15:39:42 +01:00
Lukasz Ostrowski
74e3f40ca5
Update doc for register handler (#151) 2023-01-19 14:17:36 +01:00
Krzysztof Wolski
c4fa6a1c05
Rename apiUrl to saleorApiUrl for consistency (#144) 2023-01-12 13:39: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
Krzysztof Wolski
58244a465f
Restrict VercelAPL reinstallations to the same domain (#141) 2022-12-19 13:44:08 +01:00
Krzysztof Wolski
52c31f7d30
Add protected handler docs (#135) 2022-12-06 18:25:56 +01:00
Lukasz Ostrowski
95eac760ca
Add action that informs Dashboard that AppBridge is ready (#129)
* Add action that informs Dashboard that AppBridge is ready

* Allow AppBridge to disable automated notifyReady event

* Remove unused strategy field from RoutePropagator

* Apply suggestions from code review

Co-authored-by: Dawid <tarasiukdawid@gmail.com>

Co-authored-by: Dawid <tarasiukdawid@gmail.com>
2022-12-05 17:17:17 +01:00
Lukasz Ostrowski
ddd65dabf1
Add saleorApiUrl state param to AppBridge (#114)
* Add saleorApiUrl state param to AppBridge

* Apply payload verification check based on full api endpoint url

* Remove deprecation info

* Check if either domain or saleorApiUrl is provided
2022-11-23 10:08:04 +01:00
Lukasz Ostrowski
6fbf692a44
Add doc about SaleorAsyncWebhook (#109)
* Add doc about SaleorAsyncWebhook

* Apply suggestions from code review

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

* Update docs/saleor-async-webhook.md

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

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2022-11-22 11:46:05 +01:00
Lukasz Ostrowski
b9aa9008e7
Add REST APL (#115)
* Add RestAPL

* Add docs
2022-11-21 11:32:36 +01:00
Lukasz Ostrowski
ed9c94299e
Add isReady and isConfigured docs to APL section (#80) 2022-10-12 15:16:36 +02:00
Krzysztof Wolski
bec148e696
Add Upstash APL (#78) 2022-10-12 15:13:57 +02:00
Krzysztof Wolski
be79af2d63
Add metadata manager (#73)
* Add metadata manager
2022-10-12 13:28:00 +02:00
Lukasz Ostrowski
d81e61d3f6
Update apl.md (#77) 2022-10-11 19:12:46 +02:00
Lukasz Ostrowski
390143db17
Update api-handlers.md (#68) 2022-10-05 15:41:27 +02:00
Lukasz Ostrowski
9b5ed6471d
Add doc about protected views (#66) 2022-10-05 14:56:22 +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
126e949366
Detect locale param from URL in AppBridge (#58)
* Detect locale param from URL in AppBridge

* Add docs
2022-09-14 14:21:53 +02:00
Lukasz Ostrowski
cac668adb2
Update app-bridge.md 2022-09-05 14:03:45 +02:00
Krzysztof Wolski
027b239114 Use APL debug util 2022-09-05 11:09:06 +02:00
Krzysztof Wolski
01cd1dc525 Update APL documentation 2022-09-05 10:18:12 +02:00
Lukasz Ostrowski
47e7865dc5 Add debug messages to middlewares
Add debug messages to middlewares

Apply suggestions from code review

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

better debug messages

Add experimental debug middleware
2022-09-05 10:13:46 +02:00
Lukasz Ostrowski
191f12a87d
Add docs about debugging (#37)
* Add CODEOWNERS

* Add doc for debug

* Update readme

* Update readme

* Update docs/debugging.md

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>

* Update docs/debugging.md

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>

* Update docs/debugging.md

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>

* Apply suggestions from code review

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>

* Add info about debug in iframe

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>
2022-08-30 11:53:21 +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
683f19b5c0 Add docs and test 2022-08-22 15:47:40 +02:00