@medusajs/order 0.1.3-snapshot-20240918131323 → 0.1.3-snapshot-20240923094807

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
- declare const _default: "\nenum ChangeActionType {\n CANCEL_RETURN_ITEM\n FULFILL_ITEM\n CANCEL_ITEM_FULFILLMENT\n ITEM_ADD\n ITEM_REMOVE\n ITEM_UPDATE\n RECEIVE_DAMAGED_RETURN_ITEM\n RECEIVE_RETURN_ITEM\n RETURN_ITEM\n SHIPPING_ADD\n SHIPPING_REMOVE\n SHIP_ITEM\n WRITE_OFF_ITEM\n REINSTATE_ITEM\n}\n\ntype OrderSummary {\n total: Float\n subtotal: Float\n total_tax: Float\n ordered_total: Float\n fulfilled_total: Float\n returned_total: Float\n return_request_total: Float\n write_off_total: Float\n projected_total: Float\n net_total: Float\n net_subtotal: Float\n net_total_tax: Float\n balance: Float\n paid_total: Float\n refunded_total: Float\n pending_difference: Float\n raw_pending_difference: JSON\n}\n\ntype OrderAdjustmentLine {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethodAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n}\n\ntype OrderLineItemAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n}\n\ntype OrderTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethodTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderLineItemTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderAddress {\n id: ID!\n customer_id: String\n first_name: String\n last_name: String\n phone: String\n company: String\n address_1: String\n address_2: String\n city: String\n country_code: String\n province: String\n postal_code: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethod {\n id: ID!\n order_id: String!\n name: String!\n description: String\n amount: Float\n raw_amount: JSON\n is_tax_inclusive: Boolean\n shipping_option_id: String\n data: JSON\n metadata: JSON\n tax_lines: [OrderShippingMethodTaxLine]\n adjustments: [OrderShippingMethodAdjustment]\n created_at: DateTime\n updated_at: DateTime\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n}\n\ntype OrderLineItem {\n id: ID!\n title: String!\n subtitle: String\n thumbnail: String\n variant_id: String\n product_id: String\n product_title: String\n product_description: String\n product_subtitle: String\n product_type: String\n product_collection: String\n product_handle: String\n variant_sku: String\n variant_barcode: String\n variant_title: String\n variant_option_values: JSON\n requires_shipping: Boolean!\n is_discountable: Boolean!\n is_tax_inclusive: Boolean!\n compare_at_unit_price: Float\n raw_compare_at_unit_price: JSON\n unit_price: Float!\n raw_unit_price: JSON\n quantity: Int!\n raw_quantity: JSON\n tax_lines: [OrderLineItemTaxLine]\n adjustments: [OrderLineItemAdjustment]\n detail: OrderItem!\n created_at: DateTime!\n updated_at: DateTime!\n metadata: JSON\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n item_total: Float\n item_subtotal: Float\n item_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n refundable_total: Float\n refundable_total_per_unit: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_refundable_total: JSON\n raw_refundable_total_per_unit: JSON\n}\n\ntype OrderItem {\n id: ID!\n item_id: String!\n item: OrderLineItem!\n quantity: Int!\n raw_quantity: JSON\n fulfilled_quantity: Int!\n raw_fulfilled_quantity: JSON\n shipped_quantity: Int!\n raw_shipped_quantity: JSON\n return_requested_quantity: Int!\n raw_return_requested_quantity: JSON\n return_received_quantity: Int!\n raw_return_received_quantity: JSON\n return_dismissed_quantity: Int!\n raw_return_dismissed_quantity: JSON\n written_off_quantity: Int!\n raw_written_off_quantity: JSON\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\nenum OrderStatus {\n pending\n completed\n draft\n archived\n canceled\n requires_action\n}\n\ntype Order {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n}\n\nenum ReturnStatus {\n requested\n received\n partially_received\n canceled\n}\n\ntype Return {\n id: ID!\n status: ReturnStatus!\n refund_amount: Float\n order_id: String!\n items: [OrderReturnItem]!\n}\n\ntype OrderReturnItem {\n id: ID!\n return_id: String!\n order_id: String!\n item_id: String!\n reason_id: String\n quantity: Int!\n raw_quantity: JSON\n received_quantity: Int\n raw_received_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItem {\n id: ID!\n claim_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n reason: ClaimReason!\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItemImage {\n id: ID!\n claim_item_id: String!\n url: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderExchangeItem {\n id: ID!\n exchange_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaim {\n order_id: String!\n claim_items: [OrderClaimItem]!\n additional_items: [OrderClaimItem]!\n return: Return\n return_id: String\n no_notification: Boolean\n refund_amount: Float\n created_by: String\n}\n\ntype OrderExchange {\n order_id: String!\n return_items: [OrderReturnItem]!\n additional_items: [OrderClaimItem]!\n no_notification: Boolean\n difference_due: Float\n return: Return\n return_id: String\n created_by: String\n}\n\nenum PaymentStatus {\n not_paid\n awaiting\n authorized\n partially_authorized\n captured\n partially_captured\n partially_refunded\n refunded\n canceled\n requires_action\n}\n\nenum FulfillmentStatus {\n not_fulfilled\n partially_fulfilled\n fulfilled\n partially_shipped\n shipped\n partially_delivered\n delivered\n canceled\n}\n\ntype OrderDetail {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n payment_collections: [PaymentCollection]\n payment_status: PaymentStatus!\n fulfillments: [Fulfillment]\n fulfillment_status: FulfillmentStatus!\n}\n\ntype OrderChange {\n id: ID!\n version: Int!\n change_type: String\n order_id: String!\n return_id: String\n exchange_id: String\n claim_id: String\n order: Order!\n return_order: Return\n exchange: OrderExchange\n claim: OrderClaim\n actions: [OrderChangeAction]!\n status: String!\n requested_by: String\n requested_at: DateTime\n confirmed_by: String\n confirmed_at: DateTime\n declined_by: String\n declined_reason: String\n metadata: JSON\n declined_at: DateTime\n canceled_by: String\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderChangeAction {\n id: ID!\n order_change_id: String\n order_change: OrderChange\n order_id: String\n return_id: String\n claim_id: String\n exchange_id: String\n order: Order\n reference: String!\n reference_id: String!\n action: ChangeActionType!\n details: JSON\n internal_note: String\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderTransaction {\n id: ID!\n order_id: String!\n order: Order!\n amount: Float!\n raw_amount: JSON\n currency_code: String!\n reference: String!\n reference_id: String!\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\n";
1
+ declare const _default: "\nenum ChangeActionType {\n CANCEL_RETURN_ITEM\n FULFILL_ITEM\n CANCEL_ITEM_FULFILLMENT\n ITEM_ADD\n ITEM_REMOVE\n ITEM_UPDATE\n RECEIVE_DAMAGED_RETURN_ITEM\n RECEIVE_RETURN_ITEM\n RETURN_ITEM\n SHIPPING_ADD\n SHIPPING_REMOVE\n SHIP_ITEM\n WRITE_OFF_ITEM\n REINSTATE_ITEM\n}\n\ntype OrderSummary {\n total: Float\n subtotal: Float\n total_tax: Float\n ordered_total: Float\n fulfilled_total: Float\n returned_total: Float\n return_request_total: Float\n write_off_total: Float\n projected_total: Float\n net_total: Float\n net_subtotal: Float\n net_total_tax: Float\n balance: Float\n paid_total: Float\n refunded_total: Float\n pending_difference: Float\n raw_pending_difference: JSON\n}\n\ntype OrderShippingMethodAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n}\n\ntype OrderLineItemAdjustment {\n id: ID!\n code: String\n amount: Float\n order_id: String!\n description: String\n promotion_id: String\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n}\n\n\ntype OrderShippingMethodTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n shipping_method: OrderShippingMethod\n shipping_method_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderLineItemTaxLine {\n id: ID!\n description: String\n tax_rate_id: String\n code: String!\n rate: Float\n provider_id: String\n created_at: DateTime\n updated_at: DateTime\n item: OrderLineItem\n item_id: String!\n total: Float\n subtotal: Float\n raw_total: JSON\n raw_subtotal: JSON\n}\n\ntype OrderAddress {\n id: ID!\n customer_id: String\n first_name: String\n last_name: String\n phone: String\n company: String\n address_1: String\n address_2: String\n city: String\n country_code: String\n province: String\n postal_code: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderShippingMethod {\n id: ID!\n order_id: String!\n name: String!\n description: String\n amount: Float\n raw_amount: JSON\n is_tax_inclusive: Boolean\n shipping_option_id: String\n data: JSON\n metadata: JSON\n tax_lines: [OrderShippingMethodTaxLine]\n adjustments: [OrderShippingMethodAdjustment]\n created_at: DateTime\n updated_at: DateTime\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n}\n\ntype OrderLineItem {\n id: ID!\n title: String!\n subtitle: String\n thumbnail: String\n variant_id: String\n product_id: String\n product_title: String\n product_description: String\n product_subtitle: String\n product_type: String\n product_collection: String\n product_handle: String\n variant_sku: String\n variant_barcode: String\n variant_title: String\n variant_option_values: JSON\n requires_shipping: Boolean!\n is_discountable: Boolean!\n is_tax_inclusive: Boolean!\n compare_at_unit_price: Float\n raw_compare_at_unit_price: JSON\n unit_price: Float!\n raw_unit_price: JSON\n quantity: Int!\n raw_quantity: JSON\n tax_lines: [OrderLineItemTaxLine]\n adjustments: [OrderLineItemAdjustment]\n detail: OrderItem!\n created_at: DateTime!\n updated_at: DateTime!\n metadata: JSON\n original_total: Float\n original_subtotal: Float\n original_tax_total: Float\n item_total: Float\n item_subtotal: Float\n item_tax_total: Float\n total: Float\n subtotal: Float\n tax_total: Float\n discount_total: Float\n discount_tax_total: Float\n refundable_total: Float\n refundable_total_per_unit: Float\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_refundable_total: JSON\n raw_refundable_total_per_unit: JSON\n}\n\ntype OrderItem {\n id: ID!\n item_id: String!\n item: OrderLineItem!\n quantity: Int!\n raw_quantity: JSON\n fulfilled_quantity: Int!\n raw_fulfilled_quantity: JSON\n shipped_quantity: Int!\n raw_shipped_quantity: JSON\n return_requested_quantity: Int!\n raw_return_requested_quantity: JSON\n return_received_quantity: Int!\n raw_return_received_quantity: JSON\n return_dismissed_quantity: Int!\n raw_return_dismissed_quantity: JSON\n written_off_quantity: Int!\n raw_written_off_quantity: JSON\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\nenum OrderStatus {\n pending\n completed\n draft\n archived\n canceled\n requires_action\n}\n\ntype Order {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n}\n\nenum ReturnStatus {\n requested\n received\n partially_received\n canceled\n}\n\ntype Return {\n id: ID!\n status: ReturnStatus!\n refund_amount: Float\n order_id: String!\n items: [OrderReturnItem]!\n}\n\ntype OrderReturnItem {\n id: ID!\n return_id: String!\n order_id: String!\n item_id: String!\n reason_id: String\n quantity: Int!\n raw_quantity: JSON\n received_quantity: Int\n raw_received_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItem {\n id: ID!\n claim_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n reason: ClaimReason!\n images: [OrderClaimItemImage]\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaimItemImage {\n id: ID!\n claim_item_id: String!\n item: OrderClaimItem!\n url: String\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderExchangeItem {\n id: ID!\n exchange_id: String!\n order_id: String!\n item_id: String!\n quantity: Int!\n raw_quantity: JSON\n metadata: JSON\n created_at: DateTime\n updated_at: DateTime\n}\n\ntype OrderClaim {\n order_id: String!\n claim_items: [OrderClaimItem]!\n additional_items: [OrderClaimItem]!\n return: Return\n return_id: String\n no_notification: Boolean\n refund_amount: Float\n created_by: String\n}\n\ntype OrderExchange {\n order_id: String!\n return_items: [OrderReturnItem]!\n additional_items: [OrderExchangeItem]!\n no_notification: Boolean\n difference_due: Float\n return: Return\n return_id: String\n created_by: String\n}\n\nenum PaymentStatus {\n not_paid\n awaiting\n authorized\n partially_authorized\n captured\n partially_captured\n partially_refunded\n refunded\n canceled\n requires_action\n}\n\nenum FulfillmentStatus {\n not_fulfilled\n partially_fulfilled\n fulfilled\n partially_shipped\n shipped\n partially_delivered\n delivered\n canceled\n}\n\ntype OrderDetail {\n id: ID!\n version: Int!\n order_change: OrderChange\n status: OrderStatus!\n region_id: String\n customer_id: String\n sales_channel_id: String\n email: String\n currency_code: String!\n shipping_address: OrderAddress\n billing_address: OrderAddress\n items: [OrderLineItem]\n shipping_methods: [OrderShippingMethod]\n transactions: [OrderTransaction]\n summary: OrderSummary\n metadata: JSON\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n original_item_total: Float!\n original_item_subtotal: Float!\n original_item_tax_total: Float!\n item_total: Float!\n item_subtotal: Float!\n item_tax_total: Float!\n original_total: Float!\n original_subtotal: Float!\n original_tax_total: Float!\n total: Float!\n subtotal: Float!\n tax_total: Float!\n discount_total: Float!\n discount_tax_total: Float!\n gift_card_total: Float!\n gift_card_tax_total: Float!\n shipping_total: Float!\n shipping_subtotal: Float!\n shipping_tax_total: Float!\n original_shipping_total: Float!\n original_shipping_subtotal: Float!\n original_shipping_tax_total: Float!\n raw_original_item_total: JSON\n raw_original_item_subtotal: JSON\n raw_original_item_tax_total: JSON\n raw_item_total: JSON\n raw_item_subtotal: JSON\n raw_item_tax_total: JSON\n raw_original_total: JSON\n raw_original_subtotal: JSON\n raw_original_tax_total: JSON\n raw_total: JSON\n raw_subtotal: JSON\n raw_tax_total: JSON\n raw_discount_total: JSON\n raw_discount_tax_total: JSON\n raw_gift_card_total: JSON\n raw_gift_card_tax_total: JSON\n raw_shipping_total: JSON\n raw_shipping_subtotal: JSON\n raw_shipping_tax_total: JSON\n raw_original_shipping_total: JSON\n raw_original_shipping_subtotal: JSON\n raw_original_shipping_tax_total: JSON\n payment_collections: [PaymentCollection]\n payment_status: PaymentStatus!\n fulfillments: [Fulfillment]\n fulfillment_status: FulfillmentStatus!\n}\n\ntype OrderChange {\n id: ID!\n version: Int!\n change_type: String\n order_id: String!\n return_id: String\n exchange_id: String\n claim_id: String\n order: Order!\n return_order: Return\n exchange: OrderExchange\n claim: OrderClaim\n actions: [OrderChangeAction]!\n status: String!\n requested_by: String\n requested_at: DateTime\n confirmed_by: String\n confirmed_at: DateTime\n declined_by: String\n declined_reason: String\n metadata: JSON\n declined_at: DateTime\n canceled_by: String\n canceled_at: DateTime\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderChangeAction {\n id: ID!\n order_change_id: String\n order_change: OrderChange\n order_id: String\n return_id: String\n claim_id: String\n exchange_id: String\n order: Order\n reference: String!\n reference_id: String!\n action: ChangeActionType!\n details: JSON\n internal_note: String\n created_at: DateTime!\n updated_at: DateTime!\n}\n\ntype OrderTransaction {\n id: ID!\n order_id: String!\n order: Order!\n amount: Float!\n raw_amount: JSON\n currency_code: String!\n reference: String!\n reference_id: String!\n metadata: JSON\n created_at: DateTime!\n updated_at: DateTime!\n}\n\n";
2
2
  export default _default;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBA4jBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBAwiBC"}
@@ -38,18 +38,6 @@ type OrderSummary {
38
38
  raw_pending_difference: JSON
39
39
  }
40
40
 
41
- type OrderAdjustmentLine {
42
- id: ID!
43
- code: String
44
- amount: Float
45
- order_id: String!
46
- description: String
47
- promotion_id: String
48
- provider_id: String
49
- created_at: DateTime
50
- updated_at: DateTime
51
- }
52
-
53
41
  type OrderShippingMethodAdjustment {
54
42
  id: ID!
55
43
  code: String
@@ -78,16 +66,6 @@ type OrderLineItemAdjustment {
78
66
  item_id: String!
79
67
  }
80
68
 
81
- type OrderTaxLine {
82
- id: ID!
83
- description: String
84
- tax_rate_id: String
85
- code: String!
86
- rate: Float
87
- provider_id: String
88
- created_at: DateTime
89
- updated_at: DateTime
90
- }
91
69
 
92
70
  type OrderShippingMethodTaxLine {
93
71
  id: ID!
@@ -369,6 +347,7 @@ type OrderClaimItem {
369
347
  item_id: String!
370
348
  quantity: Int!
371
349
  reason: ClaimReason!
350
+ images: [OrderClaimItemImage]
372
351
  raw_quantity: JSON
373
352
  metadata: JSON
374
353
  created_at: DateTime
@@ -378,6 +357,7 @@ type OrderClaimItem {
378
357
  type OrderClaimItemImage {
379
358
  id: ID!
380
359
  claim_item_id: String!
360
+ item: OrderClaimItem!
381
361
  url: String
382
362
  metadata: JSON
383
363
  created_at: DateTime
@@ -410,7 +390,7 @@ type OrderClaim {
410
390
  type OrderExchange {
411
391
  order_id: String!
412
392
  return_items: [OrderReturnItem]!
413
- additional_items: [OrderClaimItem]!
393
+ additional_items: [OrderExchangeItem]!
414
394
  no_notification: Boolean
415
395
  difference_due: Float
416
396
  return: Return
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4jBd,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwiBd,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/order",
3
- "version": "0.1.3-snapshot-20240918131323",
3
+ "version": "0.1.3-snapshot-20240923094807",
4
4
  "description": "Medusa Order module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,18 +33,18 @@
33
33
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
34
34
  },
35
35
  "devDependencies": {
36
- "@medusajs/types": "1.12.0-snapshot-20240918131323",
36
+ "@medusajs/types": "1.12.0-snapshot-20240923094807",
37
37
  "@mikro-orm/cli": "5.9.7",
38
38
  "cross-env": "^5.2.1",
39
39
  "jest": "^29.7.0",
40
- "medusa-test-utils": "1.1.45-snapshot-20240918131323",
40
+ "medusa-test-utils": "1.1.45-snapshot-20240923094807",
41
41
  "rimraf": "^3.0.2",
42
42
  "ts-node": "^10.9.1",
43
43
  "tsc-alias": "^1.8.6",
44
44
  "typescript": "^5.1.6"
45
45
  },
46
46
  "dependencies": {
47
- "@medusajs/utils": "1.12.0-snapshot-20240918131323"
47
+ "@medusajs/utils": "1.12.0-snapshot-20240923094807"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@mikro-orm/core": "5.9.7",