Merged in feat/LOY-431-profile-v2 (pull request #3202)

Feat/LOY-431: Switch to V2 of Profile endpoint

* feat(LOY-431): switch to v2 of profile endpoint

* feat(LOY-431): use CreditCard

* feat(LOY-431): remove hotelinformation from friendTransaction schema

* chore(LOY-431): add hotel data request to transactions

* fix(LOY-431): use v1 of friendTransactions


Approved-by: Linus Flood
Approved-by: Erik Tiekstra
Approved-by: Anton Gunnarsson
This commit is contained in:
Matilda Landström
2025-11-28 13:58:06 +00:00
parent c29b724317
commit 22dd2f60fe
15 changed files with 98 additions and 81 deletions

View File

@@ -7,17 +7,8 @@ type TransactionResponse = Awaited<
ReturnType<UserQueryRouter["transaction"]["friendTransactions"]>
>
type TransactionsNonNullResponseObject = NonNullable<TransactionResponse>
type Transactions =
export type Transactions =
NonNullable<TransactionsNonNullResponseObject>["data"]["transactions"]
type Transaction =
NonNullable<TransactionsNonNullResponseObject>["data"]["transactions"][number]
export interface ClientTableProps {
transactions: Transactions
}
export interface RowProps {
transaction: Transaction
}
export type Transaction = Transactions[number]
export type AwardPointsVariantProps = VariantProps<typeof awardPointsVariants>