...
Add new graphQl call FE to BE in Admin App.
Add new resolver (getUserByLoyaltyId) in BE to consume the Intl Loyalty Middleware service. This resolver will receive the loyaltyId and will return the this response
Code Block |
---|
{
"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"
} |
Expand | ||
---|---|---|
| ||
Schemas/Customer
queries/customersCreate a new query inside the customers queries hooks/use-universal-searchCreate a use query for consume the customerByLoyaltyId Add on the map section the new query universal-search/searchInstructionsAdd new descriptions to this list for loyalty id The text for loyaltyId already exist in Lokalize, avoiding the necessity of create a new string text. |
...