@ehrenkind/shopify-lib 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3843,9 +3843,13 @@ type CustomerEmailMarketingConsentState = {
3843
3843
  };
3844
3844
  /** The possible email marketing states for a customer. */
3845
3845
  declare enum CustomerEmailMarketingState {
3846
- /** The customer’s email address marketing state is invalid. */
3846
+ /** This value is internally-set and read-only. */
3847
3847
  Invalid = "INVALID",
3848
- /** The customer isn't subscribed to email marketing. */
3848
+ /**
3849
+ * Default state for customers who have never subscribed to email marketing.
3850
+ * This value cannot be set via the mutation; use UNSUBSCRIBED instead to indicate
3851
+ * a customer has opted out.
3852
+ */
3849
3853
  NotSubscribed = "NOT_SUBSCRIBED",
3850
3854
  /** The customer is in the process of subscribing to email marketing. */
3851
3855
  Pending = "PENDING",
@@ -9313,7 +9317,10 @@ type InventoryLevel = Node & {
9313
9317
  * [name](https://shopify.dev/docs/apps/fulfillment/inventory-management-apps#inventory-states).
9314
9318
  */
9315
9319
  quantities: Array<InventoryQuantity>;
9316
- /** Scheduled changes for the requested quantity names. */
9320
+ /**
9321
+ * Scheduled changes for the requested quantity names.
9322
+ * @deprecated Scheduled changes will be phased out in a future version.
9323
+ */
9317
9324
  scheduledChanges: InventoryScheduledChangeConnection;
9318
9325
  /** The date and time when the inventory level was updated. */
9319
9326
  updatedAt: Scalars['DateTime']['output'];
@@ -11289,7 +11296,7 @@ declare enum MetafieldGrantAccessLevel {
11289
11296
  * [metafieldsSet](https://shopify.dev/api/admin-graphql/latest/mutations/metafieldsSet) mutation.
11290
11297
  */
11291
11298
  type MetafieldInput = {
11292
- /** The unique ID of the metafield. Using `owner_id`, `namespace`, and `key` is preferred for creating and updating. */
11299
+ /** The unique ID of the metafield. Using `namespace` and `key` is preferred for creating and updating. */
11293
11300
  id?: InputMaybe<Scalars['ID']['input']>;
11294
11301
  /**
11295
11302
  * The unique identifier for a metafield within its namespace.
@@ -16462,11 +16469,11 @@ type ShippingLine = {
16462
16469
  /** Whether the shipping line has been removed. */
16463
16470
  isRemoved: Scalars['Boolean']['output'];
16464
16471
  /**
16465
- * The pre-tax shipping price without any discounts applied.
16472
+ * The shipping price without any discounts applied. If the parent order.taxesIncluded field is true, then this price includes taxes. Otherwise, this field is the pre-tax price.
16466
16473
  * @deprecated Use `originalPriceSet` instead.
16467
16474
  */
16468
16475
  originalPrice: MoneyV2;
16469
- /** The pre-tax shipping price without any discounts applied. */
16476
+ /** The shipping price without any discounts applied. If the parent order.taxesIncluded field is true, then this price includes taxes. Otherwise, this field is the pre-tax price. */
16470
16477
  originalPriceSet: MoneyBag;
16471
16478
  /** The phone number at the shipping address. */
16472
16479
  phone?: Maybe<Scalars['String']['output']>;
@@ -19902,9 +19909,19 @@ type SuggestedRefundQuery = {
19902
19909
  maximumRefundableSet: {
19903
19910
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19904
19911
  };
19912
+ taxSet: {
19913
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19914
+ };
19905
19915
  };
19906
19916
  refundLineItems: Array<(Pick<RefundLineItem, 'quantity' | 'restockType'> & {
19907
- lineItem: Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'>;
19917
+ lineItem: (Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'> & {
19918
+ discountedUnitPriceSet: {
19919
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19920
+ };
19921
+ totalDiscountSet: {
19922
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19923
+ };
19924
+ });
19908
19925
  priceSet: {
19909
19926
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19910
19927
  };
@@ -20231,7 +20248,7 @@ interface GeneratedQueryTypes {
20231
20248
  return: MetaobjectByHandleQuery;
20232
20249
  variables: MetaobjectByHandleQueryVariables;
20233
20250
  };
20234
- "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
20251
+ "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
20235
20252
  return: SuggestedRefundQuery;
20236
20253
  variables: SuggestedRefundQueryVariables;
20237
20254
  };
package/dist/index.d.ts CHANGED
@@ -3843,9 +3843,13 @@ type CustomerEmailMarketingConsentState = {
3843
3843
  };
3844
3844
  /** The possible email marketing states for a customer. */
3845
3845
  declare enum CustomerEmailMarketingState {
3846
- /** The customer’s email address marketing state is invalid. */
3846
+ /** This value is internally-set and read-only. */
3847
3847
  Invalid = "INVALID",
3848
- /** The customer isn't subscribed to email marketing. */
3848
+ /**
3849
+ * Default state for customers who have never subscribed to email marketing.
3850
+ * This value cannot be set via the mutation; use UNSUBSCRIBED instead to indicate
3851
+ * a customer has opted out.
3852
+ */
3849
3853
  NotSubscribed = "NOT_SUBSCRIBED",
3850
3854
  /** The customer is in the process of subscribing to email marketing. */
3851
3855
  Pending = "PENDING",
@@ -9313,7 +9317,10 @@ type InventoryLevel = Node & {
9313
9317
  * [name](https://shopify.dev/docs/apps/fulfillment/inventory-management-apps#inventory-states).
9314
9318
  */
9315
9319
  quantities: Array<InventoryQuantity>;
9316
- /** Scheduled changes for the requested quantity names. */
9320
+ /**
9321
+ * Scheduled changes for the requested quantity names.
9322
+ * @deprecated Scheduled changes will be phased out in a future version.
9323
+ */
9317
9324
  scheduledChanges: InventoryScheduledChangeConnection;
9318
9325
  /** The date and time when the inventory level was updated. */
9319
9326
  updatedAt: Scalars['DateTime']['output'];
@@ -11289,7 +11296,7 @@ declare enum MetafieldGrantAccessLevel {
11289
11296
  * [metafieldsSet](https://shopify.dev/api/admin-graphql/latest/mutations/metafieldsSet) mutation.
11290
11297
  */
11291
11298
  type MetafieldInput = {
11292
- /** The unique ID of the metafield. Using `owner_id`, `namespace`, and `key` is preferred for creating and updating. */
11299
+ /** The unique ID of the metafield. Using `namespace` and `key` is preferred for creating and updating. */
11293
11300
  id?: InputMaybe<Scalars['ID']['input']>;
11294
11301
  /**
11295
11302
  * The unique identifier for a metafield within its namespace.
@@ -16462,11 +16469,11 @@ type ShippingLine = {
16462
16469
  /** Whether the shipping line has been removed. */
16463
16470
  isRemoved: Scalars['Boolean']['output'];
16464
16471
  /**
16465
- * The pre-tax shipping price without any discounts applied.
16472
+ * The shipping price without any discounts applied. If the parent order.taxesIncluded field is true, then this price includes taxes. Otherwise, this field is the pre-tax price.
16466
16473
  * @deprecated Use `originalPriceSet` instead.
16467
16474
  */
16468
16475
  originalPrice: MoneyV2;
16469
- /** The pre-tax shipping price without any discounts applied. */
16476
+ /** The shipping price without any discounts applied. If the parent order.taxesIncluded field is true, then this price includes taxes. Otherwise, this field is the pre-tax price. */
16470
16477
  originalPriceSet: MoneyBag;
16471
16478
  /** The phone number at the shipping address. */
16472
16479
  phone?: Maybe<Scalars['String']['output']>;
@@ -19902,9 +19909,19 @@ type SuggestedRefundQuery = {
19902
19909
  maximumRefundableSet: {
19903
19910
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19904
19911
  };
19912
+ taxSet: {
19913
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19914
+ };
19905
19915
  };
19906
19916
  refundLineItems: Array<(Pick<RefundLineItem, 'quantity' | 'restockType'> & {
19907
- lineItem: Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'>;
19917
+ lineItem: (Pick<LineItem, 'id' | 'sku' | 'title' | 'quantity'> & {
19918
+ discountedUnitPriceSet: {
19919
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19920
+ };
19921
+ totalDiscountSet: {
19922
+ shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19923
+ };
19924
+ });
19908
19925
  priceSet: {
19909
19926
  shopMoney: Pick<MoneyV2, 'amount' | 'currencyCode'>;
19910
19927
  };
@@ -20231,7 +20248,7 @@ interface GeneratedQueryTypes {
20231
20248
  return: MetaobjectByHandleQuery;
20232
20249
  variables: MetaobjectByHandleQueryVariables;
20233
20250
  };
20234
- "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
20251
+ "#graphql\n query suggestedRefund(\n $orderId: ID!\n $refundLineItems: [RefundLineItemInput!]\n $refundShipping: Boolean\n $shippingAmount: Money\n $suggestFullRefund: Boolean\n ) {\n order(id: $orderId) {\n id\n name\n suggestedRefund(\n refundLineItems: $refundLineItems\n refundShipping: $refundShipping\n shippingAmount: $shippingAmount\n suggestFullRefund: $suggestFullRefund\n ) {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n discountedSubtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalCartDiscountAmountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n shipping {\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n taxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n refundLineItems {\n lineItem {\n id\n sku\n title\n quantity\n discountedUnitPriceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalDiscountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n quantity\n priceSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n subtotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n totalTaxSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n restockType\n }\n suggestedTransactions {\n gateway\n kind\n amountSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n maximumRefundableSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n parentTransaction {\n id\n }\n }\n }\n }\n }\n": {
20235
20252
  return: SuggestedRefundQuery;
20236
20253
  variables: SuggestedRefundQueryVariables;
20237
20254
  };
package/dist/index.mjs CHANGED
@@ -925,6 +925,12 @@ var querySuggestedRefund = gql`#graphql
925
925
  currencyCode
926
926
  }
927
927
  }
928
+ taxSet {
929
+ shopMoney {
930
+ amount
931
+ currencyCode
932
+ }
933
+ }
928
934
  }
929
935
  refundLineItems {
930
936
  lineItem {
@@ -932,6 +938,18 @@ var querySuggestedRefund = gql`#graphql
932
938
  sku
933
939
  title
934
940
  quantity
941
+ discountedUnitPriceSet {
942
+ shopMoney {
943
+ amount
944
+ currencyCode
945
+ }
946
+ }
947
+ totalDiscountSet {
948
+ shopMoney {
949
+ amount
950
+ currencyCode
951
+ }
952
+ }
935
953
  }
936
954
  quantity
937
955
  priceSet {