Merged in feat/LOY-361-add-promo-campaign-page-type (pull request #2826)

Feat/LOY-361 add promo campaign page type

* feat(LOY-361): add Pomo Campaign page type

* chore(SW-361): remove campaign page flag

* fix(LOY-361): cleanup

* fix(LOY-361): add promo code


Approved-by: Erik Tiekstra
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-09-19 07:20:17 +00:00
parent c791fef2c6
commit 0e30a2d218
34 changed files with 613 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ import { batchRequest } from "../graphql/batchRequest"
import {
EntryByUrlBatch1,
EntryByUrlBatch2,
EntryByUrlBatch3,
} from "../graphql/Query/ResolveEntry.graphql"
import { validateEntryResolveSchema } from "../types/entry"
@@ -34,10 +35,16 @@ export async function resolve(url: string, lang = Lang.en) {
key: cacheKey,
},
},
{
document: EntryByUrlBatch3,
variables,
cacheOptions: {
ttl: "max",
key: cacheKey,
},
},
])
const validatedData = validateEntryResolveSchema.safeParse(response.data)
if (!validatedData.success) {
return {
error: validatedData.error,