Skip to content

Commit

Permalink
chore(generated): commit build after updating branch with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-medusajs committed Mar 16, 2023
1 parent 2907bca commit 0bee564
Show file tree
Hide file tree
Showing 56 changed files with 1,130 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { ProductCollection } from "./ProductCollection"

export interface AdminCollectionsRes {
collection: ProductCollection
collection: SetRelation<ProductCollection, "products">
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { Customer } from "./Customer"

export interface AdminCustomersRes {
customer: Customer
customer: SetRelation<Customer, "orders" | "shipping_addresses">
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { DiscountCondition } from "./DiscountCondition"

export interface AdminDiscountConditionsRes {
discount_condition: DiscountCondition
discount_condition: SetRelation<DiscountCondition, "discount_rule">
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Discount>
discounts: Array<
Merge<
SetRelation<Discount, "parent_discount" | "regions" | "rule">,
{
rule: SetRelation<DiscountRule, "conditions">
}
>
>
/**
* The total number of items available
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Discount, "parent_discount" | "regions" | "rule">,
{
regions: Array<
SetRelation<Region, "fulfillment_providers" | "payment_providers">
>
rule: SetRelation<DiscountRule, "conditions">
}
>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<DraftOrder>
draft_orders: Array<
Merge<
SetRelation<DraftOrder, "order" | "cart">,
{
cart: Merge<
SetRelation<Cart, "items">,
{
items: Array<SetRelation<LineItem, "adjustments">>
}
>
}
>
>
/**
* The total number of items available
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<DraftOrder, "order" | "cart">,
{
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<ProductVariant, "product">
}
>
>
discounts: Array<SetRelation<Discount, "rule">>
region: SetRelation<
Region,
"payment_providers" | "tax_rates" | "fulfillment_providers"
>
shipping_methods: Array<
SetRelation<ShippingMethod, "shipping_option" | "tax_lines">
>
}
>
}
>
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { ExtendedStoreDTO } from "./ExtendedStoreDTO"

export interface AdminExtendedStoresRes {
store: ExtendedStoreDTO
store: SetRelation<ExtendedStoreDTO, "currencies" | "default_currency">
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<GiftCard>
gift_cards: Array<
Merge<
SetRelation<GiftCard, "order" | "region">,
{
region: SetRelation<
Region,
"fulfillment_providers" | "payment_providers"
>
}
>
>
/**
* The total number of items available
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<GiftCard, "order" | "region">,
{
region: SetRelation<Region, "fulfillment_providers" | "payment_providers">
}
>
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { Notification } from "./Notification"

export interface AdminNotificationsListRes {
notifications: Array<Notification>
notifications: Array<SetRelation<Notification, "resends">>
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { SetRelation, Merge } from "../core/ModelUtils"
import type { Notification } from "./Notification"

export interface AdminNotificationsRes {
notification: Notification
notification: SetRelation<Notification, "resends">
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<OrderEdit>
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<OrderItemChange, "line_item" | "original_line_item">,
{
line_item: SetRelation<LineItem, "variant">
original_line_item: SetRelation<LineItem, "variant">
}
>
>
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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<OrderItemChange, "line_item" | "original_line_item">,
{
line_item: SetRelation<LineItem, "variant">
original_line_item: SetRelation<LineItem, "variant">
}
>
>
items: Array<
SetRelation<
LineItem,
| "adjustments"
| "tax_lines"
| "variant"
| "discount_total"
| "gift_card_total"
| "original_tax_total"
| "original_total"
| "refundable"
| "subtotal"
| "tax_total"
| "total"
>
>
}
>
}
Loading

0 comments on commit 0bee564

Please sign in to comment.