@ehrenkind/shopify-lib 0.5.2 → 0.6.1
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.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -13
- package/dist/index.d.ts +31 -13
- package/dist/index.mjs +18 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
-
/**
|
|
3846
|
+
/** This value is internally-set and read-only. */
|
|
3847
3847
|
Invalid = "INVALID",
|
|
3848
|
-
/**
|
|
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",
|
|
@@ -8201,7 +8205,7 @@ type FulfillmentOrderInternationalDuties = {
|
|
|
8201
8205
|
*
|
|
8202
8206
|
* The line item provides additional fulfillment data including whether the item requires shipping. Financial summaries show pricing details with discounts applied, while warning messages alert merchants to any issues that might affect fulfillment.
|
|
8203
8207
|
*/
|
|
8204
|
-
type FulfillmentOrderLineItem = Node & {
|
|
8208
|
+
type FulfillmentOrderLineItem$1 = Node & {
|
|
8205
8209
|
__typename?: 'FulfillmentOrderLineItem';
|
|
8206
8210
|
/** The financial summary for the Fulfillment Order's Line Items. */
|
|
8207
8211
|
financialSummaries: Array<FulfillmentOrderLineItemFinancialSummary>;
|
|
@@ -8245,7 +8249,7 @@ type FulfillmentOrderLineItemConnection = {
|
|
|
8245
8249
|
/** The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node. */
|
|
8246
8250
|
edges: Array<FulfillmentOrderLineItemEdge>;
|
|
8247
8251
|
/** A list of nodes that are contained in FulfillmentOrderLineItemEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve. */
|
|
8248
|
-
nodes: Array<FulfillmentOrderLineItem>;
|
|
8252
|
+
nodes: Array<FulfillmentOrderLineItem$1>;
|
|
8249
8253
|
/** An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page. */
|
|
8250
8254
|
pageInfo: PageInfo;
|
|
8251
8255
|
};
|
|
@@ -8255,7 +8259,7 @@ type FulfillmentOrderLineItemEdge = {
|
|
|
8255
8259
|
/** The position of each node in an array, used in [pagination](https://shopify.dev/api/usage/pagination-graphql). */
|
|
8256
8260
|
cursor: Scalars['String']['output'];
|
|
8257
8261
|
/** The item at the end of FulfillmentOrderLineItemEdge. */
|
|
8258
|
-
node: FulfillmentOrderLineItem;
|
|
8262
|
+
node: FulfillmentOrderLineItem$1;
|
|
8259
8263
|
};
|
|
8260
8264
|
/** The financial details of a fulfillment order line item. */
|
|
8261
8265
|
type FulfillmentOrderLineItemFinancialSummary = {
|
|
@@ -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
|
-
/**
|
|
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 `
|
|
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
|
|
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
|
|
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']>;
|
|
@@ -19818,7 +19825,7 @@ type FulfillmentOrdersByOrderIdQuery = {
|
|
|
19818
19825
|
node: (Pick<FulfillmentOrder$1, 'id' | 'status'> & {
|
|
19819
19826
|
lineItems: {
|
|
19820
19827
|
edges: Array<{
|
|
19821
|
-
node: (Pick<FulfillmentOrderLineItem, 'id' | 'remainingQuantity' | 'totalQuantity'> & {
|
|
19828
|
+
node: (Pick<FulfillmentOrderLineItem$1, 'id' | 'remainingQuantity' | 'totalQuantity'> & {
|
|
19822
19829
|
lineItem: Pick<LineItem, 'id'>;
|
|
19823
19830
|
});
|
|
19824
19831
|
}>;
|
|
@@ -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
|
};
|
|
@@ -20744,6 +20761,7 @@ declare function getFulfillmentById(id: string | number | bigint): Promise<Fulfi
|
|
|
20744
20761
|
|
|
20745
20762
|
type FulfillmentOrderEdge = NonNullable<FulfillmentOrdersByOrderIdQuery['order']>['fulfillmentOrders']['edges'][number];
|
|
20746
20763
|
type FulfillmentOrder = FulfillmentOrderEdge['node'];
|
|
20764
|
+
type FulfillmentOrderLineItem = FulfillmentOrder['lineItems']['edges'][number]['node'];
|
|
20747
20765
|
/**
|
|
20748
20766
|
* Retrieves all fulfillment orders for a given Shopify order.
|
|
20749
20767
|
* Returns an empty array if no order is found or if the order has no fulfillment orders.
|
|
@@ -20833,4 +20851,4 @@ type Metaobject = NonNullable<MetaobjectByHandleQuery['metaobjectByHandle']>;
|
|
|
20833
20851
|
*/
|
|
20834
20852
|
declare function getMetaobjectByHandle(handle: MetaobjectHandleInput): Promise<Metaobject | undefined>;
|
|
20835
20853
|
|
|
20836
|
-
export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type Fulfillment, type FulfillmentLineItem$1 as FulfillmentLineItem, type FulfillmentOrder, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type Metaobject, type MetaobjectFieldDefinition$1 as MetaobjectFieldDefinition, type MetaobjectHandleInput, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateFulfillmentTrackingResult, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, parseGid, updateFulfillmentTracking, upsertMetaobject };
|
|
20854
|
+
export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type Fulfillment, type FulfillmentLineItem$1 as FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type Metaobject, type MetaobjectFieldDefinition$1 as MetaobjectFieldDefinition, type MetaobjectHandleInput, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateFulfillmentTrackingResult, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, parseGid, updateFulfillmentTracking, upsertMetaobject };
|
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
|
-
/**
|
|
3846
|
+
/** This value is internally-set and read-only. */
|
|
3847
3847
|
Invalid = "INVALID",
|
|
3848
|
-
/**
|
|
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",
|
|
@@ -8201,7 +8205,7 @@ type FulfillmentOrderInternationalDuties = {
|
|
|
8201
8205
|
*
|
|
8202
8206
|
* The line item provides additional fulfillment data including whether the item requires shipping. Financial summaries show pricing details with discounts applied, while warning messages alert merchants to any issues that might affect fulfillment.
|
|
8203
8207
|
*/
|
|
8204
|
-
type FulfillmentOrderLineItem = Node & {
|
|
8208
|
+
type FulfillmentOrderLineItem$1 = Node & {
|
|
8205
8209
|
__typename?: 'FulfillmentOrderLineItem';
|
|
8206
8210
|
/** The financial summary for the Fulfillment Order's Line Items. */
|
|
8207
8211
|
financialSummaries: Array<FulfillmentOrderLineItemFinancialSummary>;
|
|
@@ -8245,7 +8249,7 @@ type FulfillmentOrderLineItemConnection = {
|
|
|
8245
8249
|
/** The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node. */
|
|
8246
8250
|
edges: Array<FulfillmentOrderLineItemEdge>;
|
|
8247
8251
|
/** A list of nodes that are contained in FulfillmentOrderLineItemEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve. */
|
|
8248
|
-
nodes: Array<FulfillmentOrderLineItem>;
|
|
8252
|
+
nodes: Array<FulfillmentOrderLineItem$1>;
|
|
8249
8253
|
/** An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page. */
|
|
8250
8254
|
pageInfo: PageInfo;
|
|
8251
8255
|
};
|
|
@@ -8255,7 +8259,7 @@ type FulfillmentOrderLineItemEdge = {
|
|
|
8255
8259
|
/** The position of each node in an array, used in [pagination](https://shopify.dev/api/usage/pagination-graphql). */
|
|
8256
8260
|
cursor: Scalars['String']['output'];
|
|
8257
8261
|
/** The item at the end of FulfillmentOrderLineItemEdge. */
|
|
8258
|
-
node: FulfillmentOrderLineItem;
|
|
8262
|
+
node: FulfillmentOrderLineItem$1;
|
|
8259
8263
|
};
|
|
8260
8264
|
/** The financial details of a fulfillment order line item. */
|
|
8261
8265
|
type FulfillmentOrderLineItemFinancialSummary = {
|
|
@@ -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
|
-
/**
|
|
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 `
|
|
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
|
|
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
|
|
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']>;
|
|
@@ -19818,7 +19825,7 @@ type FulfillmentOrdersByOrderIdQuery = {
|
|
|
19818
19825
|
node: (Pick<FulfillmentOrder$1, 'id' | 'status'> & {
|
|
19819
19826
|
lineItems: {
|
|
19820
19827
|
edges: Array<{
|
|
19821
|
-
node: (Pick<FulfillmentOrderLineItem, 'id' | 'remainingQuantity' | 'totalQuantity'> & {
|
|
19828
|
+
node: (Pick<FulfillmentOrderLineItem$1, 'id' | 'remainingQuantity' | 'totalQuantity'> & {
|
|
19822
19829
|
lineItem: Pick<LineItem, 'id'>;
|
|
19823
19830
|
});
|
|
19824
19831
|
}>;
|
|
@@ -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
|
};
|
|
@@ -20744,6 +20761,7 @@ declare function getFulfillmentById(id: string | number | bigint): Promise<Fulfi
|
|
|
20744
20761
|
|
|
20745
20762
|
type FulfillmentOrderEdge = NonNullable<FulfillmentOrdersByOrderIdQuery['order']>['fulfillmentOrders']['edges'][number];
|
|
20746
20763
|
type FulfillmentOrder = FulfillmentOrderEdge['node'];
|
|
20764
|
+
type FulfillmentOrderLineItem = FulfillmentOrder['lineItems']['edges'][number]['node'];
|
|
20747
20765
|
/**
|
|
20748
20766
|
* Retrieves all fulfillment orders for a given Shopify order.
|
|
20749
20767
|
* Returns an empty array if no order is found or if the order has no fulfillment orders.
|
|
@@ -20833,4 +20851,4 @@ type Metaobject = NonNullable<MetaobjectByHandleQuery['metaobjectByHandle']>;
|
|
|
20833
20851
|
*/
|
|
20834
20852
|
declare function getMetaobjectByHandle(handle: MetaobjectHandleInput): Promise<Metaobject | undefined>;
|
|
20835
20853
|
|
|
20836
|
-
export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type Fulfillment, type FulfillmentLineItem$1 as FulfillmentLineItem, type FulfillmentOrder, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type Metaobject, type MetaobjectFieldDefinition$1 as MetaobjectFieldDefinition, type MetaobjectHandleInput, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateFulfillmentTrackingResult, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, parseGid, updateFulfillmentTracking, upsertMetaobject };
|
|
20854
|
+
export { type BulkUpdateProductVariantsResult, type CalculateRefundLineItem, type CalculateRefundOptions, type CreateFulfillmentResult, type CreateMetaobjectDefinitionInput, type CreateMetaobjectDefinitionResult, type CreateRefundLineItem, type CreateRefundOptions, type CreateRefundResult, type CreateRefundTransaction, type Customer, type CustomerSegmentMember, type CustomerSegmentMembersResult, type Fulfillment, type FulfillmentLineItem$1 as FulfillmentLineItem, type FulfillmentOrder, type FulfillmentOrderLineItem, type FulfillmentTrackingIds, type FullOrder, type FullOrderByName, type LeanOrder, type LeanOrderByName, type LeanProductVariant, type LeanProductVariantsOptions, type Metaobject, type MetaobjectFieldDefinition$1 as MetaobjectFieldDefinition, type MetaobjectHandleInput, type OrderCancellationInfo, type OrderPaymentDetails, type OrderPreview, type ProductVariant, type ProductVariantBySku, type ProductVariantsBySkusOptions, type RefundMoney, type SegmentAttributeStatistics, ShopifyUserError, type ShopifyUserErrorDetail, type SuggestedRefund, type UpdateFulfillmentTrackingResult, type UpsertMetaobjectInput, type UpsertMetaobjectResult, type VariantUpdateInput, bulkUpdateProductVariants, calculateRefund, cancelOrderById, createFile, createFulfillment, createMetaobjectDefinition, createRefund, deleteCustomerById, deleteFilesByIds, getAllProductVariants, getCustomerSegmentMembers, getCustomersByEmail, getFulfillmentById, getFulfillmentOrdersByOrderId, getFulfillmentTrackingIds, getLeanProductVariants, getMetaobjectByHandle, getOrderById, getOrderByName, getOrderCancellationInfoByName, getOrderPaymentDetailsById, getOrdersByCustomerId, getProductVariantsBySkus, parseGid, updateFulfillmentTracking, upsertMetaobject };
|
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 {
|