...
Task 1 - Update GraphQL Query to get new data
Task 2 - Update hook for get new objects of sanity (validate cache)
Task 2 3 - Validate if purchased products have a refill for this store
Task 3 4 - Create a new request for backend “intl-whitelabel-graphql” - GetRefillDrinkQRCode (Request GraphQL implementation)
Task 4 5 - Get and use QRCode of GetRefillDrinkQRCode (Request GraphQL implementation)
Task 4 6 - Get QRCode for purchased scheduled
...
Add secrets in DynamoDB
Create a new provider into directory src/functions/graphql/providers/ RefillDrinkQRCodeProvider;
Create a request for get secrets of MD5
In this provider, we need to create a hash, this code is an example of how to create the logic for it.
Run
graphql:types
Create a new function for generated hash with MD5, but we need to get the key of cryptography of MD5;
Use the library
crypto
to create a hash with MD5, we have an example in src/functions/graphql/providers/users.tsCreate a new resolver into directory src/functions/graphql/resolvers/;
Create new types, interface, etc;
...
Validate if items purchased have can generate a QRCode
have a store;
have an item available;
have a service mode;
Create a unit tests
Task
...
4 - Create a new request for backend “intl-whitelabel-graphql” - GetRefillDrinkQRCode (Request GraphQL implementation)
We need to create new request for back-end, case the system have an item purchased available for get a refill drink, so we must call the back-end to generate a QRCode.
...
create unit test
receive a hash code with sucess
Task
...
5 - Get and use QRCode of GetRefillDrinkQRCode (Request GraphQL implementation)
Get the response of GetRefillDrinkQRCode and return hash, use this hash in our application for transform in QRCode.
...