@medusajs/order 2.0.2-preview-20241106202314 → 2.0.2-preview-20241106210232

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,6 @@ export default class OrderLineItem {
16
16
  product_description: string | null;
17
17
  product_subtitle: string | null;
18
18
  product_type: string | null;
19
- product_type_id: string | null;
20
19
  product_collection: string | null;
21
20
  product_handle: string | null;
22
21
  variant_sku: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.d.ts","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EACL,SAAS,EAKV,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,UAAU,EAKV,aAAa,EAId,MAAM,iBAAiB,CAAA;AACxB,OAAO,uBAAuB,MAAM,wBAAwB,CAAA;AAC5D,OAAO,oBAAoB,MAAM,sBAAsB,CAAA;AAEvD,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA6BjD,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IAGV,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAG9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAO/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAOhC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAGhC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IAGnC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGzC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGtC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAIlC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAO;IAGrC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGxC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IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
@@ -26,12 +26,6 @@ const ProductIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
26
26
  columns: "product_id",
27
27
  where: "deleted_at IS NOT NULL",
28
28
  });
29
- const ProductTypeIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
30
- name: "IDX_line_item_product_type_id",
31
- tableName: "order_line_item",
32
- columns: "product_type_id",
33
- where: "deleted_at IS NOT NULL AND product_type_id IS NOT NULL",
34
- }).MikroORMIndex;
35
29
  const VariantIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
36
30
  tableName: "order_line_item",
37
31
  columns: "variant_id",
@@ -47,7 +41,6 @@ let OrderLineItem = class OrderLineItem {
47
41
  this.product_description = null;
48
42
  this.product_subtitle = null;
49
43
  this.product_type = null;
50
- this.product_type_id = null;
51
44
  this.product_collection = null;
52
45
  this.product_handle = null;
53
46
  this.variant_sku = null;
@@ -120,11 +113,6 @@ __decorate([
120
113
  (0, core_1.Property)({ columnType: "text", nullable: true }),
121
114
  __metadata("design:type", Object)
122
115
  ], OrderLineItem.prototype, "product_type", void 0);
123
- __decorate([
124
- ProductTypeIdIndex(),
125
- (0, core_1.Property)({ columnType: "text", nullable: true }),
126
- __metadata("design:type", Object)
127
- ], OrderLineItem.prototype, "product_type_id", void 0);
128
116
  __decorate([
129
117
  (0, core_1.Property)({ columnType: "text", nullable: true }),
130
118
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qDAMkC;AAClC,0CAYwB;AACxB,kFAA4D;AAC5D,8EAAuD;AAIvD,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;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H;AAO/C;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;iDAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;iDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;iDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;6CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CAGR;AA/HkB,aAAa;IAFjC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IACxC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,aAAa,CAgIjC;kBAhIoB,aAAa"}
@@ -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 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_type_id: 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";
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,wBAyiBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBAwiBC"}
@@ -163,7 +163,6 @@ type OrderLineItem {
163
163
  product_description: String
164
164
  product_subtitle: String
165
165
  product_type: String
166
- product_type_id: String
167
166
  product_collection: String
168
167
  product_handle: String
169
168
  variant_sku: String
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;CAwiBd,CAAA"}
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/Migration20240219102530.ts","../src/migrations/Migration20240604100512.ts","../src/migrations/Migration20240715102100.ts","../src/migrations/Migration20240715174100.ts","../src/migrations/Migration20240716081800.ts","../src/migrations/Migration20240801085921.ts","../src/migrations/Migration20240821164505.ts","../src/migrations/Migration20240821170920.ts","../src/migrations/Migration20240827133639.ts","../src/migrations/Migration20240902195921.ts","../src/migrations/Migration20240913092514.ts","../src/migrations/Migration20240930122627.ts","../src/migrations/Migration20241014142943.ts","../src/migrations/Migration20241106085223.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/claim-item-image.ts","../src/models/claim-item.ts","../src/models/claim.ts","../src/models/exchange-item.ts","../src/models/exchange.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/order-change-action.ts","../src/models/order-change.ts","../src/models/order-item.ts","../src/models/order-shipping-method.ts","../src/models/order-summary.ts","../src/models/order.ts","../src/models/return-item.ts","../src/models/return-reason.ts","../src/models/return.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/models/transaction.ts","../src/repositories/claim.ts","../src/repositories/exchange.ts","../src/repositories/index.ts","../src/repositories/order.ts","../src/repositories/return.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/order-module-service.ts","../src/services/order-service.ts","../src/services/__tests__/util/actions/exchanges.ts","../src/services/__tests__/util/actions/returns.ts","../src/services/actions/cancel-claim.ts","../src/services/actions/cancel-exchange.ts","../src/services/actions/cancel-fulfillment.ts","../src/services/actions/cancel-return.ts","../src/services/actions/create-claim.ts","../src/services/actions/create-exchange.ts","../src/services/actions/create-return.ts","../src/services/actions/index.ts","../src/services/actions/receive-return.ts","../src/services/actions/register-delivery.ts","../src/services/actions/register-fulfillment.ts","../src/services/actions/register-shipment.ts","../src/types/address.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/order-change.ts","../src/types/order-detail.ts","../src/types/order.ts","../src/types/return-reason.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts","../src/types/transaction.ts","../src/types/utils/index.ts","../src/utils/apply-order-changes.ts","../src/utils/base-repository-find.ts","../src/utils/calculate-order-change.ts","../src/utils/index.ts","../src/utils/set-action-reference.ts","../src/utils/transform-order.ts","../src/utils/actions/cancel-item-fulfillment.ts","../src/utils/actions/cancel-return.ts","../src/utils/actions/deliver-item.ts","../src/utils/actions/fulfill-item.ts","../src/utils/actions/index.ts","../src/utils/actions/item-add.ts","../src/utils/actions/item-remove.ts","../src/utils/actions/item-update.ts","../src/utils/actions/receive-damaged-return-item.ts","../src/utils/actions/receive-return-item.ts","../src/utils/actions/reinstate-item.ts","../src/utils/actions/return-item.ts","../src/utils/actions/ship-item.ts","../src/utils/actions/shipping-add.ts","../src/utils/actions/shipping-remove.ts","../src/utils/actions/write-off-item.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/Migration20240219102530.ts","../src/migrations/Migration20240604100512.ts","../src/migrations/Migration20240715102100.ts","../src/migrations/Migration20240715174100.ts","../src/migrations/Migration20240716081800.ts","../src/migrations/Migration20240801085921.ts","../src/migrations/Migration20240821164505.ts","../src/migrations/Migration20240821170920.ts","../src/migrations/Migration20240827133639.ts","../src/migrations/Migration20240902195921.ts","../src/migrations/Migration20240913092514.ts","../src/migrations/Migration20240930122627.ts","../src/migrations/Migration20241014142943.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/claim-item-image.ts","../src/models/claim-item.ts","../src/models/claim.ts","../src/models/exchange-item.ts","../src/models/exchange.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/order-change-action.ts","../src/models/order-change.ts","../src/models/order-item.ts","../src/models/order-shipping-method.ts","../src/models/order-summary.ts","../src/models/order.ts","../src/models/return-item.ts","../src/models/return-reason.ts","../src/models/return.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/models/transaction.ts","../src/repositories/claim.ts","../src/repositories/exchange.ts","../src/repositories/index.ts","../src/repositories/order.ts","../src/repositories/return.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/order-module-service.ts","../src/services/order-service.ts","../src/services/__tests__/util/actions/exchanges.ts","../src/services/__tests__/util/actions/returns.ts","../src/services/actions/cancel-claim.ts","../src/services/actions/cancel-exchange.ts","../src/services/actions/cancel-fulfillment.ts","../src/services/actions/cancel-return.ts","../src/services/actions/create-claim.ts","../src/services/actions/create-exchange.ts","../src/services/actions/create-return.ts","../src/services/actions/index.ts","../src/services/actions/receive-return.ts","../src/services/actions/register-delivery.ts","../src/services/actions/register-fulfillment.ts","../src/services/actions/register-shipment.ts","../src/types/address.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/order-change.ts","../src/types/order-detail.ts","../src/types/order.ts","../src/types/return-reason.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts","../src/types/transaction.ts","../src/types/utils/index.ts","../src/utils/apply-order-changes.ts","../src/utils/base-repository-find.ts","../src/utils/calculate-order-change.ts","../src/utils/index.ts","../src/utils/set-action-reference.ts","../src/utils/transform-order.ts","../src/utils/actions/cancel-item-fulfillment.ts","../src/utils/actions/cancel-return.ts","../src/utils/actions/deliver-item.ts","../src/utils/actions/fulfill-item.ts","../src/utils/actions/index.ts","../src/utils/actions/item-add.ts","../src/utils/actions/item-remove.ts","../src/utils/actions/item-update.ts","../src/utils/actions/receive-damaged-return-item.ts","../src/utils/actions/receive-return-item.ts","../src/utils/actions/reinstate-item.ts","../src/utils/actions/return-item.ts","../src/utils/actions/ship-item.ts","../src/utils/actions/shipping-add.ts","../src/utils/actions/shipping-remove.ts","../src/utils/actions/write-off-item.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/order",
3
- "version": "2.0.2-preview-20241106202314",
3
+ "version": "2.0.2-preview-20241106210232",
4
4
  "description": "Medusa Order module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
38
38
  },
39
39
  "devDependencies": {
40
- "@medusajs/framework": "2.0.2-preview-20241106202314",
41
- "@medusajs/test-utils": "2.0.2-preview-20241106202314",
40
+ "@medusajs/framework": "2.0.2-preview-20241106210232",
41
+ "@medusajs/test-utils": "2.0.2-preview-20241106210232",
42
42
  "@mikro-orm/cli": "5.9.7",
43
43
  "@mikro-orm/core": "5.9.7",
44
44
  "@mikro-orm/migrations": "5.9.7",
@@ -51,7 +51,7 @@
51
51
  "typescript": "^5.6.2"
52
52
  },
53
53
  "peerDependencies": {
54
- "@medusajs/framework": "2.0.2-preview-20241106202314",
54
+ "@medusajs/framework": "2.0.2-preview-20241106210232",
55
55
  "@mikro-orm/core": "5.9.7",
56
56
  "@mikro-orm/migrations": "5.9.7",
57
57
  "@mikro-orm/postgresql": "5.9.7",
@@ -1,6 +0,0 @@
1
- import { Migration } from '@mikro-orm/migrations';
2
- export declare class Migration20241106085223 extends Migration {
3
- up(): Promise<void>;
4
- down(): Promise<void>;
5
- }
6
- //# sourceMappingURL=Migration20241106085223.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Migration20241106085223.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20241106085223.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAE9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAKnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migration20241106085223 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
5
- class Migration20241106085223 extends migrations_1.Migration {
6
- async up() {
7
- this.addSql('alter table if exists "order_line_item" add column if not exists "product_type_id" text null;');
8
- this.addSql('CREATE INDEX IF NOT EXISTS "IDX_line_item_product_type_id" ON "order_line_item" (product_type_id) WHERE deleted_at IS NOT NULL AND product_type_id IS NOT NULL;');
9
- }
10
- async down() {
11
- this.addSql('drop index if exists "IDX_line_item_product_type_id";');
12
- this.addSql('alter table if exists "order_line_item" drop column if exists "product_type_id";');
13
- }
14
- }
15
- exports.Migration20241106085223 = Migration20241106085223;
16
- //# sourceMappingURL=Migration20241106085223.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Migration20241106085223.js","sourceRoot":"","sources":["../../src/migrations/Migration20241106085223.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAEpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,+FAA+F,CAAC,CAAC;QAC7G,IAAI,CAAC,MAAM,CAAC,iKAAiK,CAAC,CAAC;IACjL,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,uDAAuD,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;IAClG,CAAC;CAEF;AAZD,0DAYC"}