...
Zenuml sequence macro lite | ||||||
---|---|---|---|---|---|---|
| ||||||
Tasks breakdown
Schemas/Customer
Update the Query with the new method customerByLoyaltyId and update graphQl queries
Create a new method customerByLoyaltyId inside the Query resolvers section (with the same signature and name of query above)
and this is the loyalty response
{ "createdAt": "string", "id": "string", "name": "string", "updatedAt": "string", "clientUserId": "string", "dateOfBirth": "string", "email": "string", "emailVerified": true, "expirationBuckets": [ { "expirationDate": "string", "pointsToExpire": 0 } ], "loyaltyTier": { "loyaltyTierExpiryDate": "string", "loyaltyTierKey": "Tier_1", "pointsEarnedInTimeConstraint": 0, "startAt": "string" }, "metadata": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "offerRedemptionAvailability": { "availableAfter": "string", "transactionId": "string" }, "phoneNumber": "string", "phoneVerified": true, "points": 0, "pointsEarningDisabled": true, "pointsExpiryDateKey": "string" }Code Block This method should get all the user permissions, and based on this, make requests for each country that this user can access. All this requests, like a promise to be made in parallel
To get the User from Loyalty service,
will be
necessary update this method to override the header x-region
...
queries/customers
Create a new query inside the customers queries
...
hooks/use-universal-search
Create a use query for consume the customerByLoyaltyId
...
Add on the map section the new query
...
universal-search/searchInstructions
Add new descriptions to this list for loyalty id
...