Merge remote-tracking branch 'origin' into feature/tracking

This commit is contained in:
Linus Flood
2024-12-13 09:02:37 +01:00
329 changed files with 4494 additions and 1910 deletions

View File

@@ -0,0 +1,16 @@
query GetRewards($locale: String!, $rewardIds: [String!]) {
all_reward(locale: $locale, where: { reward_id_in: $rewardIds }) {
items {
taxonomies {
term_uid
}
label
grouped_label
description
redeem_description
grouped_description
value
reward_id
}
}
}

View File

@@ -1,6 +1,6 @@
import "server-only"
import { ClientError, GraphQLClient } from "graphql-request"
import { ClientError, type GraphQLClient } from "graphql-request"
import { Lang } from "@/constants/languages"
import { env } from "@/env/server"

View File

@@ -1,11 +1,12 @@
import { DocumentNode } from "graphql"
import { GraphQLClient } from "graphql-request"
import { env } from "@/env/server"
import { request as _request } from "./_request"
import { Data } from "@/types/request"
import type { DocumentNode } from "graphql"
import type { Data } from "@/types/request"
export async function edgeRequest<T>(
query: string | DocumentNode,

View File

@@ -1,5 +1,4 @@
import fetchRetry from "fetch-retry"
import { DocumentNode } from "graphql"
import { GraphQLClient } from "graphql-request"
import { cache } from "react"
@@ -8,7 +7,9 @@ import { getPreviewHash, isPreviewByUid } from "@/lib/previewContext"
import { request as _request } from "./_request"
import { Data } from "@/types/request"
import type { DocumentNode } from "graphql"
import type { Data } from "@/types/request"
export async function request<T>(
query: string | DocumentNode,