From 0bee5645c4458554ee25fed6e868a5e519a06509 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 16 Mar 2023 08:34:35 -0400 Subject: [PATCH] chore(generated): commit build after updating branch with develop --- .../src/lib/models/AdminCollectionsRes.ts | 2 +- .../src/lib/models/AdminCustomersRes.ts | 2 +- .../lib/models/AdminDiscountConditionsRes.ts | 2 +- .../src/lib/models/AdminDiscountsListRes.ts | 10 +- .../src/lib/models/AdminDiscountsRes.ts | 12 +- .../src/lib/models/AdminDraftOrdersListRes.ts | 16 +- .../src/lib/models/AdminDraftOrdersRes.ts | 69 +++++++- .../src/lib/models/AdminExtendedStoresRes.ts | 2 +- .../src/lib/models/AdminGiftCardsListRes.ts | 13 +- .../src/lib/models/AdminGiftCardsRes.ts | 8 +- .../lib/models/AdminNotificationsListRes.ts | 2 +- .../src/lib/models/AdminNotificationsRes.ts | 2 +- .../src/lib/models/AdminOrderEditsListRes.ts | 48 +++++- .../src/lib/models/AdminOrderEditsRes.ts | 46 +++++- .../src/lib/models/AdminOrdersListRes.ts | 152 +++++++++++++++++- .../src/lib/models/AdminOrdersRes.ts | 145 ++++++++++++++++- .../lib/models/AdminPaymentCollectionsRes.ts | 8 +- .../src/lib/models/AdminPriceListRes.ts | 2 +- .../models/AdminPriceListsProductsListRes.ts | 19 ++- .../AdminProductCategoriesCategoryRes.ts | 5 +- .../models/AdminProductCategoriesListRes.ts | 4 +- .../models/AdminProductsDeleteOptionRes.ts | 13 +- .../models/AdminProductsDeleteVariantRes.ts | 13 +- .../src/lib/models/AdminProductsListRes.ts | 14 +- .../src/lib/models/AdminProductsRes.ts | 13 +- .../src/lib/models/AdminRegionsListRes.ts | 7 +- .../src/lib/models/AdminRegionsRes.ts | 5 +- .../lib/models/AdminReturnReasonsListRes.ts | 4 +- .../src/lib/models/AdminReturnReasonsRes.ts | 5 +- .../src/lib/models/AdminReturnsCancelRes.ts | 91 ++++++++++- .../lib/models/AdminShippingOptionsListRes.ts | 13 +- .../src/lib/models/AdminShippingOptionsRes.ts | 8 +- .../lib/models/AdminShippingProfilesRes.ts | 5 +- .../src/lib/models/AdminSwapsRes.ts | 29 +++- .../src/lib/models/AdminVariantsListRes.ts | 4 +- .../src/lib/models/AdminVariantsRes.ts | 2 +- .../src/lib/models/StoreAuthRes.ts | 8 +- .../src/lib/models/StoreCartsRes.ts | 4 +- .../lib/models/StoreCustomersListOrdersRes.ts | 119 +++++++++++++- .../src/lib/models/StoreCustomersRes.ts | 2 +- .../lib/models/StoreGetCollectionsParams.ts | 4 + .../StoreGetProductCategoriesCategoryRes.ts | 5 +- .../models/StoreGetProductCategoriesRes.ts | 4 +- .../src/lib/models/StoreOrderEditsRes.ts | 46 +++++- .../src/lib/models/StoreOrdersRes.ts | 114 ++++++++++++- .../lib/models/StorePaymentCollectionsRes.ts | 8 +- .../src/lib/models/StoreProductsListRes.ts | 15 +- .../src/lib/models/StoreProductsRes.ts | 13 +- .../lib/models/StoreReturnReasonsListRes.ts | 4 +- .../src/lib/models/StoreReturnReasonsRes.ts | 5 +- .../src/lib/models/StoreReturnsRes.ts | 8 +- .../lib/models/StoreShippingOptionsListRes.ts | 4 +- .../src/lib/models/StoreSwapsRes.ts | 22 ++- .../src/lib/models/StoreVariantsListRes.ts | 2 +- .../src/lib/models/StoreVariantsRes.ts | 2 +- .../client-types/src/lib/models/index.ts | 7 + 56 files changed, 1130 insertions(+), 61 deletions(-) diff --git a/packages/generated/client-types/src/lib/models/AdminCollectionsRes.ts b/packages/generated/client-types/src/lib/models/AdminCollectionsRes.ts index 4056604c04830..8888e1a9b9bbd 100644 --- a/packages/generated/client-types/src/lib/models/AdminCollectionsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminCollectionsRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ProductCollection } from "./ProductCollection" export interface AdminCollectionsRes { - collection: ProductCollection + collection: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminCustomersRes.ts b/packages/generated/client-types/src/lib/models/AdminCustomersRes.ts index 4ed4f2edefd69..5bdfbab740b9f 100644 --- a/packages/generated/client-types/src/lib/models/AdminCustomersRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminCustomersRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Customer } from "./Customer" export interface AdminCustomersRes { - customer: Customer + customer: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminDiscountConditionsRes.ts b/packages/generated/client-types/src/lib/models/AdminDiscountConditionsRes.ts index b4d8f18eed40c..6f602ca72d842 100644 --- a/packages/generated/client-types/src/lib/models/AdminDiscountConditionsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminDiscountConditionsRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { DiscountCondition } from "./DiscountCondition" export interface AdminDiscountConditionsRes { - discount_condition: DiscountCondition + discount_condition: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminDiscountsListRes.ts b/packages/generated/client-types/src/lib/models/AdminDiscountsListRes.ts index d7417df24654e..0a3640362fa70 100644 --- a/packages/generated/client-types/src/lib/models/AdminDiscountsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminDiscountsListRes.ts @@ -4,9 +4,17 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Discount } from "./Discount" +import type { DiscountRule } from "./DiscountRule" export interface AdminDiscountsListRes { - discounts: Array + discounts: Array< + Merge< + SetRelation, + { + rule: SetRelation + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminDiscountsRes.ts b/packages/generated/client-types/src/lib/models/AdminDiscountsRes.ts index 3cbd07937b4b3..7e6ae42801038 100644 --- a/packages/generated/client-types/src/lib/models/AdminDiscountsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminDiscountsRes.ts @@ -4,7 +4,17 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Discount } from "./Discount" +import type { DiscountRule } from "./DiscountRule" +import type { Region } from "./Region" export interface AdminDiscountsRes { - discount: Discount + discount: Merge< + SetRelation, + { + regions: Array< + SetRelation + > + rule: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminDraftOrdersListRes.ts b/packages/generated/client-types/src/lib/models/AdminDraftOrdersListRes.ts index 16d5e664b8c5b..4f312f6e1e7da 100644 --- a/packages/generated/client-types/src/lib/models/AdminDraftOrdersListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminDraftOrdersListRes.ts @@ -3,10 +3,24 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Cart } from "./Cart" import type { DraftOrder } from "./DraftOrder" +import type { LineItem } from "./LineItem" export interface AdminDraftOrdersListRes { - draft_orders: Array + draft_orders: Array< + Merge< + SetRelation, + { + cart: Merge< + SetRelation, + { + items: Array> + } + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminDraftOrdersRes.ts b/packages/generated/client-types/src/lib/models/AdminDraftOrdersRes.ts index be8b0a6d345a9..6c8d1fe048f07 100644 --- a/packages/generated/client-types/src/lib/models/AdminDraftOrdersRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminDraftOrdersRes.ts @@ -3,8 +3,75 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Cart } from "./Cart" +import type { Discount } from "./Discount" import type { DraftOrder } from "./DraftOrder" +import type { LineItem } from "./LineItem" +import type { ProductVariant } from "./ProductVariant" +import type { Region } from "./Region" +import type { ShippingMethod } from "./ShippingMethod" export interface AdminDraftOrdersRes { - draft_order: DraftOrder + draft_order: Merge< + SetRelation, + { + cart: Merge< + SetRelation< + Cart, + | "items" + | "billing_address" + | "customer" + | "discounts" + | "payment" + | "payment_sessions" + | "region" + | "shipping_address" + | "shipping_methods" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "item_tax_total" + | "refundable_amount" + | "refunded_total" + | "shipping_tax_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + | "gift_cards" + >, + { + items: Array< + Merge< + SetRelation< + LineItem, + | "adjustments" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "tax_lines" + | "variant" + >, + { + variant: SetRelation + } + > + > + discounts: Array> + region: SetRelation< + Region, + "payment_providers" | "tax_rates" | "fulfillment_providers" + > + shipping_methods: Array< + SetRelation + > + } + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminExtendedStoresRes.ts b/packages/generated/client-types/src/lib/models/AdminExtendedStoresRes.ts index 41111e357fab3..0a23998ff06dd 100644 --- a/packages/generated/client-types/src/lib/models/AdminExtendedStoresRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminExtendedStoresRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ExtendedStoreDTO } from "./ExtendedStoreDTO" export interface AdminExtendedStoresRes { - store: ExtendedStoreDTO + store: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminGiftCardsListRes.ts b/packages/generated/client-types/src/lib/models/AdminGiftCardsListRes.ts index a94b4e2149270..ad04c9d19472f 100644 --- a/packages/generated/client-types/src/lib/models/AdminGiftCardsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminGiftCardsListRes.ts @@ -4,9 +4,20 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { GiftCard } from "./GiftCard" +import type { Region } from "./Region" export interface AdminGiftCardsListRes { - gift_cards: Array + gift_cards: Array< + Merge< + SetRelation, + { + region: SetRelation< + Region, + "fulfillment_providers" | "payment_providers" + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminGiftCardsRes.ts b/packages/generated/client-types/src/lib/models/AdminGiftCardsRes.ts index 9ac21b61abda5..09b0e20d0e7d3 100644 --- a/packages/generated/client-types/src/lib/models/AdminGiftCardsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminGiftCardsRes.ts @@ -4,7 +4,13 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { GiftCard } from "./GiftCard" +import type { Region } from "./Region" export interface AdminGiftCardsRes { - gift_card: GiftCard + gift_card: Merge< + SetRelation, + { + region: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminNotificationsListRes.ts b/packages/generated/client-types/src/lib/models/AdminNotificationsListRes.ts index 7750a134e275a..4f045be97fe1d 100644 --- a/packages/generated/client-types/src/lib/models/AdminNotificationsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminNotificationsListRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Notification } from "./Notification" export interface AdminNotificationsListRes { - notifications: Array + notifications: Array> } diff --git a/packages/generated/client-types/src/lib/models/AdminNotificationsRes.ts b/packages/generated/client-types/src/lib/models/AdminNotificationsRes.ts index 1abc5994ec263..98dd0662c3683 100644 --- a/packages/generated/client-types/src/lib/models/AdminNotificationsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminNotificationsRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Notification } from "./Notification" export interface AdminNotificationsRes { - notification: Notification + notification: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminOrderEditsListRes.ts b/packages/generated/client-types/src/lib/models/AdminOrderEditsListRes.ts index 15388d7ab0d75..63ae56cc533f3 100644 --- a/packages/generated/client-types/src/lib/models/AdminOrderEditsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminOrderEditsListRes.ts @@ -3,10 +3,56 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { LineItem } from "./LineItem" import type { OrderEdit } from "./OrderEdit" +import type { OrderItemChange } from "./OrderItemChange" export interface AdminOrderEditsListRes { - order_edits: Array + order_edits: Array< + Merge< + SetRelation< + OrderEdit, + | "changes" + | "items" + | "payment_collection" + | "difference_due" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + >, + { + changes: Array< + Merge< + SetRelation, + { + line_item: SetRelation + original_line_item: SetRelation + } + > + > + items: Array< + SetRelation< + LineItem, + | "adjustments" + | "tax_lines" + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + > + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminOrderEditsRes.ts b/packages/generated/client-types/src/lib/models/AdminOrderEditsRes.ts index c5d707f125dc4..67b0ab9912e6f 100644 --- a/packages/generated/client-types/src/lib/models/AdminOrderEditsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminOrderEditsRes.ts @@ -3,8 +3,52 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { LineItem } from "./LineItem" import type { OrderEdit } from "./OrderEdit" +import type { OrderItemChange } from "./OrderItemChange" export interface AdminOrderEditsRes { - order_edit: OrderEdit + order_edit: Merge< + SetRelation< + OrderEdit, + | "changes" + | "items" + | "payment_collection" + | "difference_due" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + >, + { + changes: Array< + Merge< + SetRelation, + { + line_item: SetRelation + original_line_item: SetRelation + } + > + > + items: Array< + SetRelation< + LineItem, + | "adjustments" + | "tax_lines" + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + > + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminOrdersListRes.ts b/packages/generated/client-types/src/lib/models/AdminOrdersListRes.ts index e70f7a73124dc..e48039db3b634 100644 --- a/packages/generated/client-types/src/lib/models/AdminOrdersListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminOrdersListRes.ts @@ -3,10 +3,160 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { ClaimItem } from "./ClaimItem" +import type { ClaimOrder } from "./ClaimOrder" +import type { Discount } from "./Discount" +import type { Fulfillment } from "./Fulfillment" +import type { GiftCardTransaction } from "./GiftCardTransaction" +import type { LineItem } from "./LineItem" import type { Order } from "./Order" +import type { ProductVariant } from "./ProductVariant" +import type { Region } from "./Region" +import type { Return } from "./Return" +import type { ReturnItem } from "./ReturnItem" +import type { ShippingMethod } from "./ShippingMethod" +import type { Swap } from "./Swap" export interface AdminOrdersListRes { - orders: Array + orders: Array< + Merge< + SetRelation< + Order, + | "billing_address" + | "claims" + | "customer" + | "discounts" + | "fulfillments" + | "gift_card_transactions" + | "gift_cards" + | "items" + | "payments" + | "refunds" + | "region" + | "returns" + | "shipping_address" + | "shipping_methods" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "paid_total" + | "refundable_amount" + | "refunded_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + | "swaps" + >, + { + claims: Array< + Merge< + SetRelation< + ClaimOrder, + | "additional_items" + | "claim_items" + | "fulfillments" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array< + SetRelation< + LineItem, + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + claim_items: Array> + fulfillments: Array> + return_order: Merge< + SetRelation, + { + shipping_method: SetRelation + } + > + } + > + > + discounts: Array> + fulfillments: Array< + SetRelation + > + gift_card_transactions: Array< + SetRelation + > + items: Array< + Merge< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + | "variant" + >, + { + variant: SetRelation + } + > + > + region: SetRelation< + Region, + "fulfillment_providers" | "payment_providers" + > + returns: Array< + Merge< + SetRelation, + { + items: Array> + shipping_method: SetRelation + } + > + > + shipping_methods: Array< + SetRelation + > + swaps: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminOrdersRes.ts b/packages/generated/client-types/src/lib/models/AdminOrdersRes.ts index e0bdbbc04f285..95af1c0bcb1f0 100644 --- a/packages/generated/client-types/src/lib/models/AdminOrdersRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminOrdersRes.ts @@ -3,8 +3,151 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { ClaimItem } from "./ClaimItem" +import type { ClaimOrder } from "./ClaimOrder" +import type { Discount } from "./Discount" +import type { Fulfillment } from "./Fulfillment" +import type { GiftCardTransaction } from "./GiftCardTransaction" +import type { LineItem } from "./LineItem" import type { Order } from "./Order" +import type { ProductVariant } from "./ProductVariant" +import type { Region } from "./Region" +import type { Return } from "./Return" +import type { ReturnItem } from "./ReturnItem" +import type { ShippingMethod } from "./ShippingMethod" +import type { Swap } from "./Swap" export interface AdminOrdersRes { - order: Order + order: Merge< + SetRelation< + Order, + | "billing_address" + | "claims" + | "customer" + | "discounts" + | "fulfillments" + | "gift_card_transactions" + | "gift_cards" + | "items" + | "payments" + | "refunds" + | "region" + | "returns" + | "shipping_address" + | "shipping_methods" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "paid_total" + | "refundable_amount" + | "refunded_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + | "swaps" + >, + { + claims: Array< + Merge< + SetRelation< + ClaimOrder, + | "additional_items" + | "claim_items" + | "fulfillments" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array< + SetRelation< + LineItem, + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + claim_items: Array> + fulfillments: Array> + return_order: Merge< + SetRelation, + { + shipping_method: SetRelation + } + > + } + > + > + discounts: Array> + fulfillments: Array> + gift_card_transactions: Array< + SetRelation + > + items: Array< + Merge< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + | "variant" + >, + { + variant: SetRelation + } + > + > + region: SetRelation + returns: Array< + Merge< + SetRelation, + { + items: Array> + shipping_method: SetRelation + } + > + > + shipping_methods: Array< + SetRelation + > + swaps: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminPaymentCollectionsRes.ts b/packages/generated/client-types/src/lib/models/AdminPaymentCollectionsRes.ts index 357fd252691a8..e958305dd3880 100644 --- a/packages/generated/client-types/src/lib/models/AdminPaymentCollectionsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminPaymentCollectionsRes.ts @@ -4,7 +4,13 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PaymentCollection } from "./PaymentCollection" +import type { Region } from "./Region" export interface AdminPaymentCollectionsRes { - payment_collection: PaymentCollection + payment_collection: Merge< + SetRelation, + { + region: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminPriceListRes.ts b/packages/generated/client-types/src/lib/models/AdminPriceListRes.ts index 487c48249391c..9a6f9d5176699 100644 --- a/packages/generated/client-types/src/lib/models/AdminPriceListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminPriceListRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PriceList } from "./PriceList" export interface AdminPriceListRes { - price_list: PriceList + price_list: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/AdminPriceListsProductsListRes.ts b/packages/generated/client-types/src/lib/models/AdminPriceListsProductsListRes.ts index 47800070c86a0..9008f06b3b08c 100644 --- a/packages/generated/client-types/src/lib/models/AdminPriceListsProductsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminPriceListsProductsListRes.ts @@ -4,9 +4,26 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Product } from "./Product" +import type { ProductVariant } from "./ProductVariant" export interface AdminPriceListsProductsListRes { - products: Array + products: Array< + Merge< + SetRelation< + Product, + | "categories" + | "collection" + | "images" + | "options" + | "tags" + | "type" + | "variants" + >, + { + variants: Array> + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminProductCategoriesCategoryRes.ts b/packages/generated/client-types/src/lib/models/AdminProductCategoriesCategoryRes.ts index 0389bbc6aef6f..68eefd2adb0fc 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductCategoriesCategoryRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductCategoriesCategoryRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ProductCategory } from "./ProductCategory" export interface AdminProductCategoriesCategoryRes { - product_category: ProductCategory + product_category: SetRelation< + ProductCategory, + "category_children" | "parent_category" + > } diff --git a/packages/generated/client-types/src/lib/models/AdminProductCategoriesListRes.ts b/packages/generated/client-types/src/lib/models/AdminProductCategoriesListRes.ts index a25a521523b4f..fb7e2055f9f8e 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductCategoriesListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductCategoriesListRes.ts @@ -6,7 +6,9 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ProductCategory } from "./ProductCategory" export interface AdminProductCategoriesListRes { - product_categories: Array + product_categories: Array< + SetRelation + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminProductsDeleteOptionRes.ts b/packages/generated/client-types/src/lib/models/AdminProductsDeleteOptionRes.ts index 52d24c6860630..85c9c3ab8100f 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductsDeleteOptionRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductsDeleteOptionRes.ts @@ -3,7 +3,8 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" -import type { Product } from "./Product" +import type { PricedProduct } from "./PricedProduct" +import type { ProductVariant } from "./ProductVariant" export interface AdminProductsDeleteOptionRes { /** @@ -18,5 +19,13 @@ export interface AdminProductsDeleteOptionRes { * Whether or not the items were deleted. */ deleted: boolean - product: Product + product: Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + variants: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminProductsDeleteVariantRes.ts b/packages/generated/client-types/src/lib/models/AdminProductsDeleteVariantRes.ts index 953c76e8c6cf5..4bc42f01cb905 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductsDeleteVariantRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductsDeleteVariantRes.ts @@ -3,7 +3,8 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" -import type { Product } from "./Product" +import type { PricedProduct } from "./PricedProduct" +import type { ProductVariant } from "./ProductVariant" export interface AdminProductsDeleteVariantRes { /** @@ -18,5 +19,13 @@ export interface AdminProductsDeleteVariantRes { * Whether or not the items were deleted. */ deleted: boolean - product: Product + product: Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + variants: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminProductsListRes.ts b/packages/generated/client-types/src/lib/models/AdminProductsListRes.ts index f454ff7df9a4f..e15082d11513e 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductsListRes.ts @@ -4,10 +4,20 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedProduct } from "./PricedProduct" -import type { Product } from "./Product" +import type { ProductVariant } from "./ProductVariant" export interface AdminProductsListRes { - products: Array + products: Array< + Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + variants: Array> + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminProductsRes.ts b/packages/generated/client-types/src/lib/models/AdminProductsRes.ts index 67f3ab68d0e43..c98cac915d8e8 100644 --- a/packages/generated/client-types/src/lib/models/AdminProductsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminProductsRes.ts @@ -3,8 +3,17 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" -import type { Product } from "./Product" +import type { PricedProduct } from "./PricedProduct" +import type { ProductVariant } from "./ProductVariant" export interface AdminProductsRes { - product: Product + product: Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + variants: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminRegionsListRes.ts b/packages/generated/client-types/src/lib/models/AdminRegionsListRes.ts index 3f2f5d8669150..2d64a103137ac 100644 --- a/packages/generated/client-types/src/lib/models/AdminRegionsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminRegionsListRes.ts @@ -6,7 +6,12 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Region } from "./Region" export interface AdminRegionsListRes { - regions: Array + regions: Array< + SetRelation< + Region, + "countries" | "fulfillment_providers" | "payment_providers" + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminRegionsRes.ts b/packages/generated/client-types/src/lib/models/AdminRegionsRes.ts index 0c18e9e2acf06..a8a0a61974325 100644 --- a/packages/generated/client-types/src/lib/models/AdminRegionsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminRegionsRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Region } from "./Region" export interface AdminRegionsRes { - region: Region + region: SetRelation< + Region, + "countries" | "fulfillment_providers" | "payment_providers" + > } diff --git a/packages/generated/client-types/src/lib/models/AdminReturnReasonsListRes.ts b/packages/generated/client-types/src/lib/models/AdminReturnReasonsListRes.ts index 62fe53cb8ba3f..fb985e22a59e5 100644 --- a/packages/generated/client-types/src/lib/models/AdminReturnReasonsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminReturnReasonsListRes.ts @@ -6,5 +6,7 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ReturnReason } from "./ReturnReason" export interface AdminReturnReasonsListRes { - return_reasons: Array + return_reasons: Array< + SetRelation + > } diff --git a/packages/generated/client-types/src/lib/models/AdminReturnReasonsRes.ts b/packages/generated/client-types/src/lib/models/AdminReturnReasonsRes.ts index 1c4b739b932ef..c48622d74c5c7 100644 --- a/packages/generated/client-types/src/lib/models/AdminReturnReasonsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminReturnReasonsRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ReturnReason } from "./ReturnReason" export interface AdminReturnReasonsRes { - return_reason: ReturnReason + return_reason: SetRelation< + ReturnReason, + "parent_return_reason" | "return_reason_children" + > } diff --git a/packages/generated/client-types/src/lib/models/AdminReturnsCancelRes.ts b/packages/generated/client-types/src/lib/models/AdminReturnsCancelRes.ts index a4e21b8d423a6..f634eec7bc4be 100644 --- a/packages/generated/client-types/src/lib/models/AdminReturnsCancelRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminReturnsCancelRes.ts @@ -3,8 +3,97 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { ClaimItem } from "./ClaimItem" +import type { ClaimOrder } from "./ClaimOrder" +import type { Discount } from "./Discount" +import type { Fulfillment } from "./Fulfillment" +import type { LineItem } from "./LineItem" import type { Order } from "./Order" +import type { Return } from "./Return" +import type { ReturnItem } from "./ReturnItem" +import type { ShippingMethod } from "./ShippingMethod" +import type { Swap } from "./Swap" export interface AdminReturnsCancelRes { - order: Order + order: Merge< + SetRelation< + Order, + | "billing_address" + | "claims" + | "customer" + | "discounts" + | "fulfillments" + | "gift_card_transactions" + | "gift_cards" + | "items" + | "payments" + | "refunds" + | "region" + | "returns" + | "shipping_address" + | "shipping_methods" + | "swaps" + >, + { + claims: Array< + Merge< + SetRelation< + ClaimOrder, + | "additional_items" + | "claim_items" + | "fulfillments" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array> + claim_items: Array> + fulfillments: Array> + return_order: Merge< + SetRelation, + { + shipping_method: SetRelation + } + > + } + > + > + discounts: Array> + fulfillments: Array> + returns: Array< + Merge< + SetRelation, + { + items: Array> + shipping_method: SetRelation + } + > + > + swaps: Array< + Merge< + SetRelation< + Swap, + | "additional_items" + | "fulfillments" + | "payment" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array> + fulfillments: Array> + return_order: Merge< + SetRelation, + { + shipping_method: SetRelation + } + > + shipping_methods: Array> + } + > + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminShippingOptionsListRes.ts b/packages/generated/client-types/src/lib/models/AdminShippingOptionsListRes.ts index ae0c03794927f..4ed29401dc746 100644 --- a/packages/generated/client-types/src/lib/models/AdminShippingOptionsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminShippingOptionsListRes.ts @@ -3,10 +3,21 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Region } from "./Region" import type { ShippingOption } from "./ShippingOption" export interface AdminShippingOptionsListRes { - shipping_options: Array + shipping_options: Array< + Merge< + SetRelation, + { + region: SetRelation< + Region, + "fulfillment_providers" | "payment_providers" + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminShippingOptionsRes.ts b/packages/generated/client-types/src/lib/models/AdminShippingOptionsRes.ts index 797808592be24..9613dda08d7f5 100644 --- a/packages/generated/client-types/src/lib/models/AdminShippingOptionsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminShippingOptionsRes.ts @@ -3,8 +3,14 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Region } from "./Region" import type { ShippingOption } from "./ShippingOption" export interface AdminShippingOptionsRes { - shipping_option: ShippingOption + shipping_option: Merge< + SetRelation, + { + region: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminShippingProfilesRes.ts b/packages/generated/client-types/src/lib/models/AdminShippingProfilesRes.ts index 898e3b09b5cda..0844d0e7756b9 100644 --- a/packages/generated/client-types/src/lib/models/AdminShippingProfilesRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminShippingProfilesRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ShippingProfile } from "./ShippingProfile" export interface AdminShippingProfilesRes { - shipping_profile: ShippingProfile + shipping_profile: SetRelation< + ShippingProfile, + "products" | "shipping_options" + > } diff --git a/packages/generated/client-types/src/lib/models/AdminSwapsRes.ts b/packages/generated/client-types/src/lib/models/AdminSwapsRes.ts index 561d41867949c..24731dc76502e 100644 --- a/packages/generated/client-types/src/lib/models/AdminSwapsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminSwapsRes.ts @@ -3,8 +3,35 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Cart } from "./Cart" +import type { Fulfillment } from "./Fulfillment" +import type { LineItem } from "./LineItem" +import type { ShippingMethod } from "./ShippingMethod" import type { Swap } from "./Swap" export interface AdminSwapsRes { - swap: Swap + swap: Merge< + SetRelation< + Swap, + | "additional_items" + | "cart" + | "fulfillments" + | "order" + | "payment" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array> + cart: Merge< + SetRelation, + { + items: Array> + } + > + fulfillments: Array> + shipping_methods: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/AdminVariantsListRes.ts b/packages/generated/client-types/src/lib/models/AdminVariantsListRes.ts index c873423517364..d6708fc3c5aba 100644 --- a/packages/generated/client-types/src/lib/models/AdminVariantsListRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminVariantsListRes.ts @@ -3,10 +3,10 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" -import type { ProductVariant } from "./ProductVariant" +import type { PricedVariant } from "./PricedVariant" export interface AdminVariantsListRes { - variants: Array + variants: Array> /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/AdminVariantsRes.ts b/packages/generated/client-types/src/lib/models/AdminVariantsRes.ts index b96b135f9f44b..5e506f4a72d26 100644 --- a/packages/generated/client-types/src/lib/models/AdminVariantsRes.ts +++ b/packages/generated/client-types/src/lib/models/AdminVariantsRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedVariant } from "./PricedVariant" export interface AdminVariantsRes { - variant: PricedVariant + variant: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/StoreAuthRes.ts b/packages/generated/client-types/src/lib/models/StoreAuthRes.ts index 491ad48255ea0..108933be43dab 100644 --- a/packages/generated/client-types/src/lib/models/StoreAuthRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreAuthRes.ts @@ -4,7 +4,13 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Customer } from "./Customer" +import type { Order } from "./Order" export interface StoreAuthRes { - customer: Customer + customer: Merge< + SetRelation, + { + orders: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreCartsRes.ts b/packages/generated/client-types/src/lib/models/StoreCartsRes.ts index 4cd47cd0d1fad..c5864d0ada50e 100644 --- a/packages/generated/client-types/src/lib/models/StoreCartsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreCartsRes.ts @@ -62,11 +62,11 @@ export interface StoreCartsRes { Region, | "countries" | "payment_providers" - | "fulfillment_providers" | "tax_rates" + | "fulfillment_providers" > shipping_methods: Array< - SetRelation + SetRelation > } > diff --git a/packages/generated/client-types/src/lib/models/StoreCustomersListOrdersRes.ts b/packages/generated/client-types/src/lib/models/StoreCustomersListOrdersRes.ts index 760eb6c18a8e0..72957782db618 100644 --- a/packages/generated/client-types/src/lib/models/StoreCustomersListOrdersRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreCustomersListOrdersRes.ts @@ -3,10 +3,127 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { ClaimOrder } from "./ClaimOrder" +import type { Discount } from "./Discount" +import type { Fulfillment } from "./Fulfillment" +import type { GiftCardTransaction } from "./GiftCardTransaction" +import type { LineItem } from "./LineItem" import type { Order } from "./Order" +import type { ProductVariant } from "./ProductVariant" +import type { Region } from "./Region" +import type { ShippingMethod } from "./ShippingMethod" +import type { Swap } from "./Swap" export interface StoreCustomersListOrdersRes { - orders: Array + orders: Array< + Merge< + SetRelation< + Order, + | "customer" + | "discounts" + | "fulfillments" + | "items" + | "payments" + | "region" + | "shipping_address" + | "shipping_methods" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "paid_total" + | "refundable_amount" + | "refunded_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + | "claims" + | "swaps" + | "gift_card_transactions" + | "gift_cards" + | "refunds" + >, + { + discounts: Array> + fulfillments: Array> + items: Array< + Merge< + SetRelation< + LineItem, + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + >, + { + variant: SetRelation + } + > + > + region: SetRelation< + Region, + "fulfillment_providers" | "payment_providers" + > + shipping_methods: Array< + SetRelation + > + claims: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + swaps: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + gift_card_transactions: Array< + SetRelation + > + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/StoreCustomersRes.ts b/packages/generated/client-types/src/lib/models/StoreCustomersRes.ts index 3d37128c42336..0540c23b76d03 100644 --- a/packages/generated/client-types/src/lib/models/StoreCustomersRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreCustomersRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Customer } from "./Customer" export interface StoreCustomersRes { - customer: Customer + customer: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/StoreGetCollectionsParams.ts b/packages/generated/client-types/src/lib/models/StoreGetCollectionsParams.ts index d8721ce381981..1ef12142edc45 100644 --- a/packages/generated/client-types/src/lib/models/StoreGetCollectionsParams.ts +++ b/packages/generated/client-types/src/lib/models/StoreGetCollectionsParams.ts @@ -12,6 +12,10 @@ export interface StoreGetCollectionsParams { * The number of collections to return */ limit?: number + /** + * Filter by the collection handle + */ + handle?: Array /** * Date comparison for when resulting collections were created. */ diff --git a/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesCategoryRes.ts b/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesCategoryRes.ts index 75b5d28c8d0ee..0e04eae68993d 100644 --- a/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesCategoryRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesCategoryRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ProductCategory } from "./ProductCategory" export interface StoreGetProductCategoriesCategoryRes { - product_category: ProductCategory + product_category: SetRelation< + ProductCategory, + "category_children" | "parent_category" + > } diff --git a/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesRes.ts b/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesRes.ts index db757649cf03b..9ba92c7faf55b 100644 --- a/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreGetProductCategoriesRes.ts @@ -6,7 +6,9 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ProductCategory } from "./ProductCategory" export interface StoreGetProductCategoriesRes { - product_categories: Array + product_categories: Array< + SetRelation + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/StoreOrderEditsRes.ts b/packages/generated/client-types/src/lib/models/StoreOrderEditsRes.ts index 6c0bd732be8ac..8bc930f858a2e 100644 --- a/packages/generated/client-types/src/lib/models/StoreOrderEditsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreOrderEditsRes.ts @@ -3,8 +3,52 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { LineItem } from "./LineItem" import type { OrderEdit } from "./OrderEdit" +import type { OrderItemChange } from "./OrderItemChange" export interface StoreOrderEditsRes { - order_edit: OrderEdit + order_edit: Merge< + SetRelation< + OrderEdit, + | "changes" + | "items" + | "payment_collection" + | "difference_due" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + >, + { + changes: Array< + Merge< + SetRelation, + { + line_item: SetRelation + original_line_item: SetRelation + } + > + > + items: Array< + SetRelation< + LineItem, + | "adjustments" + | "tax_lines" + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + > + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreOrdersRes.ts b/packages/generated/client-types/src/lib/models/StoreOrdersRes.ts index c56df656e0acf..f60b33407a3ee 100644 --- a/packages/generated/client-types/src/lib/models/StoreOrdersRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreOrdersRes.ts @@ -3,8 +3,120 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { ClaimOrder } from "./ClaimOrder" +import type { Discount } from "./Discount" +import type { Fulfillment } from "./Fulfillment" +import type { GiftCardTransaction } from "./GiftCardTransaction" +import type { LineItem } from "./LineItem" import type { Order } from "./Order" +import type { ProductVariant } from "./ProductVariant" +import type { Region } from "./Region" +import type { ShippingMethod } from "./ShippingMethod" +import type { Swap } from "./Swap" export interface StoreOrdersRes { - order: Order + order: Merge< + SetRelation< + Order, + | "customer" + | "discounts" + | "fulfillments" + | "items" + | "payments" + | "region" + | "shipping_address" + | "shipping_methods" + | "discount_total" + | "gift_card_tax_total" + | "gift_card_total" + | "paid_total" + | "refundable_amount" + | "refunded_total" + | "shipping_total" + | "subtotal" + | "tax_total" + | "total" + | "claims" + | "swaps" + | "gift_card_transactions" + | "gift_cards" + | "refunds" + >, + { + discounts: Array> + fulfillments: Array> + items: Array< + Merge< + SetRelation< + LineItem, + | "variant" + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + >, + { + variant: SetRelation + } + > + > + region: SetRelation + shipping_methods: Array< + SetRelation + > + claims: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + swaps: Array< + Merge< + SetRelation, + { + additional_items: Array< + SetRelation< + LineItem, + | "discount_total" + | "gift_card_total" + | "original_tax_total" + | "original_total" + | "refundable" + | "subtotal" + | "tax_total" + | "total" + | "adjustments" + | "tax_lines" + > + > + } + > + > + gift_card_transactions: Array< + SetRelation + > + } + > } diff --git a/packages/generated/client-types/src/lib/models/StorePaymentCollectionsRes.ts b/packages/generated/client-types/src/lib/models/StorePaymentCollectionsRes.ts index 3e2a30a24721b..acc9ac71627b5 100644 --- a/packages/generated/client-types/src/lib/models/StorePaymentCollectionsRes.ts +++ b/packages/generated/client-types/src/lib/models/StorePaymentCollectionsRes.ts @@ -4,7 +4,13 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PaymentCollection } from "./PaymentCollection" +import type { Region } from "./Region" export interface StorePaymentCollectionsRes { - payment_collection: PaymentCollection + payment_collection: Merge< + SetRelation, + { + region: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreProductsListRes.ts b/packages/generated/client-types/src/lib/models/StoreProductsListRes.ts index e98d03bae4fbf..f850e16b1ed24 100644 --- a/packages/generated/client-types/src/lib/models/StoreProductsListRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreProductsListRes.ts @@ -4,9 +4,22 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedProduct } from "./PricedProduct" +import type { ProductOption } from "./ProductOption" +import type { ProductVariant } from "./ProductVariant" export interface StoreProductsListRes { - products: Array + products: Array< + Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + options: Array> + variants: Array> + } + > + > /** * The total number of items available */ diff --git a/packages/generated/client-types/src/lib/models/StoreProductsRes.ts b/packages/generated/client-types/src/lib/models/StoreProductsRes.ts index f337d97b8251a..8be3fc3e6d2e5 100644 --- a/packages/generated/client-types/src/lib/models/StoreProductsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreProductsRes.ts @@ -4,7 +4,18 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedProduct } from "./PricedProduct" +import type { ProductOption } from "./ProductOption" +import type { ProductVariant } from "./ProductVariant" export interface StoreProductsRes { - product: PricedProduct + product: Merge< + SetRelation< + PricedProduct, + "collection" | "images" | "options" | "tags" | "type" | "variants" + >, + { + options: Array> + variants: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreReturnReasonsListRes.ts b/packages/generated/client-types/src/lib/models/StoreReturnReasonsListRes.ts index c6ae6ff267397..c849f99fe2444 100644 --- a/packages/generated/client-types/src/lib/models/StoreReturnReasonsListRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreReturnReasonsListRes.ts @@ -6,5 +6,7 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ReturnReason } from "./ReturnReason" export interface StoreReturnReasonsListRes { - return_reasons: Array + return_reasons: Array< + SetRelation + > } diff --git a/packages/generated/client-types/src/lib/models/StoreReturnReasonsRes.ts b/packages/generated/client-types/src/lib/models/StoreReturnReasonsRes.ts index cba16a5933cb0..ac1effde5a8ab 100644 --- a/packages/generated/client-types/src/lib/models/StoreReturnReasonsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreReturnReasonsRes.ts @@ -6,5 +6,8 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { ReturnReason } from "./ReturnReason" export interface StoreReturnReasonsRes { - return_reason: ReturnReason + return_reason: SetRelation< + ReturnReason, + "parent_return_reason" | "return_reason_children" + > } diff --git a/packages/generated/client-types/src/lib/models/StoreReturnsRes.ts b/packages/generated/client-types/src/lib/models/StoreReturnsRes.ts index 5ffc1df8039af..18a9c02991a3f 100644 --- a/packages/generated/client-types/src/lib/models/StoreReturnsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreReturnsRes.ts @@ -4,7 +4,13 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { Return } from "./Return" +import type { ReturnItem } from "./ReturnItem" export interface StoreReturnsRes { - return: Return + return: Merge< + SetRelation, + { + items: Array> + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreShippingOptionsListRes.ts b/packages/generated/client-types/src/lib/models/StoreShippingOptionsListRes.ts index 57b50cafae3fa..35a22285dff9a 100644 --- a/packages/generated/client-types/src/lib/models/StoreShippingOptionsListRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreShippingOptionsListRes.ts @@ -3,8 +3,8 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" -import type { ShippingOption } from "./ShippingOption" +import type { PricedShippingOption } from "./PricedShippingOption" export interface StoreShippingOptionsListRes { - shipping_options: Array + shipping_options: Array> } diff --git a/packages/generated/client-types/src/lib/models/StoreSwapsRes.ts b/packages/generated/client-types/src/lib/models/StoreSwapsRes.ts index 3ad47844856bf..e6745d4571ee2 100644 --- a/packages/generated/client-types/src/lib/models/StoreSwapsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreSwapsRes.ts @@ -3,8 +3,28 @@ /* eslint-disable */ import { SetRelation, Merge } from "../core/ModelUtils" +import type { Fulfillment } from "./Fulfillment" +import type { LineItem } from "./LineItem" +import type { Return } from "./Return" import type { Swap } from "./Swap" export interface StoreSwapsRes { - swap: Swap + swap: Merge< + SetRelation< + Swap, + | "additional_items" + | "cart" + | "fulfillments" + | "order" + | "payment" + | "return_order" + | "shipping_address" + | "shipping_methods" + >, + { + additional_items: Array> + fulfillments: Array> + return_order: SetRelation + } + > } diff --git a/packages/generated/client-types/src/lib/models/StoreVariantsListRes.ts b/packages/generated/client-types/src/lib/models/StoreVariantsListRes.ts index 6ccdf2cf9050c..e73739f319256 100644 --- a/packages/generated/client-types/src/lib/models/StoreVariantsListRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreVariantsListRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedVariant } from "./PricedVariant" export interface StoreVariantsListRes { - variants: Array + variants: Array> } diff --git a/packages/generated/client-types/src/lib/models/StoreVariantsRes.ts b/packages/generated/client-types/src/lib/models/StoreVariantsRes.ts index 382f687e5f4de..f9c33d6171bd5 100644 --- a/packages/generated/client-types/src/lib/models/StoreVariantsRes.ts +++ b/packages/generated/client-types/src/lib/models/StoreVariantsRes.ts @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils" import type { PricedVariant } from "./PricedVariant" export interface StoreVariantsRes { - variant: PricedVariant + variant: SetRelation } diff --git a/packages/generated/client-types/src/lib/models/index.ts b/packages/generated/client-types/src/lib/models/index.ts index bfde60ca229ed..6d280e52f0d12 100644 --- a/packages/generated/client-types/src/lib/models/index.ts +++ b/packages/generated/client-types/src/lib/models/index.ts @@ -148,9 +148,13 @@ export type { AdminPostDraftOrdersDraftOrderReq } from "./AdminPostDraftOrdersDr export type { AdminPostDraftOrdersReq } from "./AdminPostDraftOrdersReq" export type { AdminPostGiftCardsGiftCardReq } from "./AdminPostGiftCardsGiftCardReq" export type { AdminPostGiftCardsReq } from "./AdminPostGiftCardsReq" +export type { AdminPostInventoryItemsInventoryItemParams } from "./AdminPostInventoryItemsInventoryItemParams" export type { AdminPostInventoryItemsInventoryItemReq } from "./AdminPostInventoryItemsInventoryItemReq" +export type { AdminPostInventoryItemsItemLocationLevelsLevelParams } from "./AdminPostInventoryItemsItemLocationLevelsLevelParams" export type { AdminPostInventoryItemsItemLocationLevelsLevelReq } from "./AdminPostInventoryItemsItemLocationLevelsLevelReq" +export type { AdminPostInventoryItemsItemLocationLevelsParams } from "./AdminPostInventoryItemsItemLocationLevelsParams" export type { AdminPostInventoryItemsItemLocationLevelsReq } from "./AdminPostInventoryItemsItemLocationLevelsReq" +export type { AdminPostInventoryItemsParams } from "./AdminPostInventoryItemsParams" export type { AdminPostInventoryItemsReq } from "./AdminPostInventoryItemsReq" export type { AdminPostInvitesInviteAcceptReq } from "./AdminPostInvitesInviteAcceptReq" export type { AdminPostInvitesReq } from "./AdminPostInvitesReq" @@ -351,6 +355,7 @@ export type { PaymentCollection } from "./PaymentCollection" export type { PaymentProvider } from "./PaymentProvider" export type { PaymentSession } from "./PaymentSession" export type { PricedProduct } from "./PricedProduct" +export type { PricedShippingOption } from "./PricedShippingOption" export type { PricedVariant } from "./PricedVariant" export type { PriceList } from "./PriceList" export type { Product } from "./Product" @@ -388,6 +393,7 @@ export type { StockLocationDTO } from "./StockLocationDTO" export type { StockLocationExpandedDTO } from "./StockLocationExpandedDTO" export type { Store } from "./Store" export type { StoreAuthRes } from "./StoreAuthRes" +export type { StoreCartShippingOptionsListRes } from "./StoreCartShippingOptionsListRes" export type { StoreCartsRes } from "./StoreCartsRes" export type { StoreCollectionsListRes } from "./StoreCollectionsListRes" export type { StoreCollectionsRes } from "./StoreCollectionsRes" @@ -395,6 +401,7 @@ export type { StoreCompleteCartRes } from "./StoreCompleteCartRes" export type { StoreCustomersListOrdersRes } from "./StoreCustomersListOrdersRes" export type { StoreCustomersListPaymentMethodsRes } from "./StoreCustomersListPaymentMethodsRes" export type { StoreCustomersRes } from "./StoreCustomersRes" +export type { StoreCustomersResetPasswordRes } from "./StoreCustomersResetPasswordRes" export type { StoreGetAuthEmailRes } from "./StoreGetAuthEmailRes" export type { StoreGetCollectionsParams } from "./StoreGetCollectionsParams" export type { StoreGetCustomersCustomerOrdersParams } from "./StoreGetCustomersCustomerOrdersParams"