Commit graph

32 commits

Author SHA1 Message Date
Lukasz Ostrowski
c777275a64
Fix SaleorCloudAPL getAll method (#240)
* add debug log for not existing api url in register handler

* Fix SaleoCloudApl.getAll to map data properly
2023-05-15 11:43:04 +02:00
Krzysztof Wolski
5a68bec557
Fix data serialization in the UpstashAPL (#228) 2023-04-12 21:21:19 +02: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
Hazem Khaled
3786c86506
Improve error messages in UpstashAPL (#200)
* Fix #199

Fix #199

* Throw formatted error on UpstashAPL error

* Create .changeset/big-beans-grab.md

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Lukasz Ostrowski <lukasz@monolog.tech>
2023-03-09 08:59:35 +01:00
Lukasz Ostrowski
020d6aaa39
Remove Vercel APL (#170) 2023-02-26 18:35:04 +01:00
Lukasz Ostrowski
a15d72602f
Add more debug messages to SaleorCloudAPL (#175)
* Add more debug messages to SaleorCloudAPL

* Refactor error message extraction
2023-02-14 13:00:46 +01:00
Krzysztof Wolski
b84049246b
Use b64url and fix incoming data validation (#156) 2023-01-23 09:35:31 +01:00
Krzysztof Wolski
8dccb00edd
Fix CloudAPL response parsing (#149)
* Fix CloudAPL response parsing

* Mock signature fetch
2023-01-13 16:35:16 +01:00
Krzysztof Wolski
bc622dd3e1
Rename api url field in the Cloud APL (#146) 2023-01-12 16:13:27 +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
Lukasz Ostrowski
b9aa9008e7
Add REST APL (#115)
* Add RestAPL

* Add docs
2022-11-21 11:32:36 +01:00
Krzysztof Wolski
6e389db9be
Remove variables from the env if are already existing (#103) 2022-11-02 14:18:27 +01:00
Lukasz Ostrowski
ff49281123
Change behavior when FileAPL reads file that doesnt exist to fallback value (#96) 2022-10-24 16:11:15 +02:00
Krzysztof Wolski
bec148e696
Add Upstash APL (#78) 2022-10-12 15:13:57 +02:00
Lukasz Ostrowski
bb0786a544
Fix checking APL configuration state (#79) 2022-10-12 10:08:32 +02:00
Lukasz Ostrowski
aa4d55b83d
Disable token iss validation (#75)
* Disable token iss validation

* Disable VercelApl constructor validation
2022-10-11 16:09:29 +02:00
Lukasz Ostrowski
a839314f08
Add central SaleorApp instance (#71)
* Add SaleorApp class

* Add middleware and tests

* Move APL validation to APL

* Fix test

* Add prepush hook

* Add better error for missing vercel envs

* Add test
2022-10-11 09:40:08 +02:00
Krzysztof Wolski
a50b055c7c
Fix Vercel APL set method + add tests for it (#52)
* Fix Vercel APL set method + add tests for it
2022-09-07 17:33:48 +02:00
Krzysztof Wolski
027b239114 Use APL debug util 2022-09-05 11:09:06 +02:00
Krzysztof Wolski
668b96ac4c Update names to kebab case 2022-09-05 10:31:31 +02:00
Krzysztof Wolski
2fc57718a6 Code review changes 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
3b81151cca Rename helper function 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
ace6efbdba Change default file name for FileAPL 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
6adabd1cba Introduce debug namespaces 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
5b7bb5d878 Add util function docstring 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
b2f84b51c8 Reduce duplication in the test code 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
10b3171b9d Fix delete test 2022-09-05 10:18:12 +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
18bdeff68b Add localEnv apl 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
43f81f1af6 Introduce APL interface 2022-08-25 16:49:54 +02:00